diff --git a/all/databases/academic_minus_1_0/academic_minus_1_0.sql b/all/databases/academic_minus_1_0/academic_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..1de51a47ccca939fe5e7c7ff5ce7feefd9225899 --- /dev/null +++ b/all/databases/academic_minus_1_0/academic_minus_1_0.sql @@ -0,0 +1,448 @@ +create table author ( +aid text, +homepage text, +name text, +oid text +); +insert into author values('i', 'o', 'i', 'y'); +insert into author values('s', 'r', 'r', 'e'); +insert into author values('g', 'o', 'r', 'g'); +insert into author values('y', 'p', 'p', 's'); +insert into author values('i', 'o', 'r', 'g'); +insert into author values('i', 'y', 'd', 'p'); +insert into author values('l', 'd', 'l', 's'); + +create table conference ( +cid text, +homepage text, +name text +); +insert into conference values('d', 'p', 'o'); +insert into conference values('p', 'o', 'p'); +insert into conference values('l', 'g', 'r'); +insert into conference values('e', 'i', 'r'); +insert into conference values('p', 'o', 'o'); +insert into conference values('e', 'r', 'o'); +insert into conference values('r', 'y', 'p'); +insert into conference values('r', 'o', 'y'); +insert into conference values('i', 'g', 'r'); +insert into conference values('d', 's', 'y'); +insert into conference values('r', 'y', 's'); +insert into conference values('i', 'o', 's'); +insert into conference values('d', 'o', 'y'); +insert into conference values('l', 'l', 's'); +insert into conference values('o', 'd', 'o'); +insert into conference values('g', 's', 'r'); +insert into conference values('y', 'o', 'g'); +insert into conference values('r', 'o', 'e'); +insert into conference values('l', 'd', 'g'); +insert into conference values('p', 'i', 's'); +insert into conference values('s', 'o', 'i'); +insert into conference values('e', 's', 'o'); +insert into conference values('o', 'o', 'i'); +insert into conference values('r', 'y', 'l'); +insert into conference values('e', 'r', 'p'); +insert into conference values('p', 'l', 'l'); +insert into conference values('y', 'i', 'd'); +insert into conference values('g', 'o', 'i'); +insert into conference values('i', 's', 'o'); + +create table domain ( +did text, +name text +); +insert into domain values('e', 'r'); +insert into domain values('r', 'e'); +insert into domain values('g', 'r'); +insert into domain values('l', 's'); +insert into domain values('d', 'e'); +insert into domain values('p', 'l'); +insert into domain values('p', 's'); +insert into domain values('y', 'o'); +insert into domain values('p', 'd'); +insert into domain values('o', 's'); +insert into domain values('s', 'l'); +insert into domain values('g', 'y'); +insert into domain values('o', 'y'); +insert into domain values('s', 'o'); +insert into domain values('o', 's'); +insert into domain values('l', 'i'); +insert into domain values('o', 'o'); + +create table domain_author ( +aid text, +did text +); +insert into domain_author values('o', 'y'); +insert into domain_author values('l', 'p'); +insert into domain_author values('r', 'p'); +insert into domain_author values('o', 'r'); +insert into domain_author values('r', 'p'); +insert into domain_author values('i', 'd'); +insert into domain_author values('o', 'e'); +insert into domain_author values('y', 'o'); +insert into domain_author values('o', 'y'); +insert into domain_author values('l', 'i'); +insert into domain_author values('i', 'o'); +insert into domain_author values('e', 'i'); +insert into domain_author values('d', 'l'); +insert into domain_author values('s', 'g'); +insert into domain_author values('p', 'o'); +insert into domain_author values('e', 's'); +insert into domain_author values('y', 'o'); +insert into domain_author values('y', 'g'); +insert into domain_author values('p', 'o'); +insert into domain_author values('e', 'p'); +insert into domain_author values('e', 'o'); +insert into domain_author values('y', 'r'); +insert into domain_author values('y', 'l'); +insert into domain_author values('i', 'r'); +insert into domain_author values('e', 'y'); +insert into domain_author values('d', 'e'); +insert into domain_author values('l', 'd'); +insert into domain_author values('l', 'o'); +insert into domain_author values('p', 'r'); +insert into domain_author values('l', 's'); + +create table domain_conference ( +cid text, +did text +); +insert into domain_conference values('r', 's'); +insert into domain_conference values('o', 'o'); +insert into domain_conference values('y', 'g'); +insert into domain_conference values('o', 'p'); +insert into domain_conference values('y', 'y'); +insert into domain_conference values('y', 'p'); +insert into domain_conference values('y', 'l'); + +create table journal ( +homepage text, +jid text, +name text +); +insert into journal values('y', 's', 'e'); +insert into journal values('y', 's', 'o'); +insert into journal values('y', 'p', 'o'); +insert into journal values('o', 'r', 'o'); +insert into journal values('g', 'e', 'g'); +insert into journal values('p', 'r', 'o'); +insert into journal values('i', 'g', 'i'); +insert into journal values('l', 'g', 'r'); +insert into journal values('e', 'o', 'r'); +insert into journal values('s', 'o', 'i'); +insert into journal values('r', 'y', 'l'); +insert into journal values('o', 'o', 'd'); +insert into journal values('o', 'l', 'y'); +insert into journal values('d', 'o', 'g'); +insert into journal values('r', 'p', 'i'); +insert into journal values('y', 'e', 'd'); +insert into journal values('i', 'i', 'd'); +insert into journal values('o', 'r', 'o'); +insert into journal values('g', 'y', 'o'); +insert into journal values('r', 'o', 'o'); +insert into journal values('i', 'g', 'e'); +insert into journal values('d', 'i', 'r'); +insert into journal values('s', 'l', 'p'); +insert into journal values('s', 's', 'o'); +insert into journal values('r', 'e', 'd'); +insert into journal values('i', 'e', 's'); +insert into journal values('s', 's', 'e'); +insert into journal values('p', 'r', 'd'); +insert into journal values('s', 'y', 'p'); +insert into journal values('e', 'o', 's'); + +create table domain_journal ( +did text, +jid text +); +insert into domain_journal values('o', 'o'); +insert into domain_journal values('l', 'r'); +insert into domain_journal values('l', 'g'); +insert into domain_journal values('r', 'l'); +insert into domain_journal values('y', 'p'); +insert into domain_journal values('i', 'y'); +insert into domain_journal values('r', 'd'); +insert into domain_journal values('i', 'l'); +insert into domain_journal values('e', 'r'); +insert into domain_journal values('d', 'o'); +insert into domain_journal values('l', 'e'); +insert into domain_journal values('o', 'l'); +insert into domain_journal values('i', 'p'); +insert into domain_journal values('s', 'o'); +insert into domain_journal values('i', 'o'); +insert into domain_journal values('l', 'd'); +insert into domain_journal values('p', 'p'); +insert into domain_journal values('r', 'i'); +insert into domain_journal values('e', 'p'); +insert into domain_journal values('l', 's'); + +create table domain_keyword ( +did text, +kid text +); +insert into domain_keyword values('p', 'l'); +insert into domain_keyword values('s', 'g'); +insert into domain_keyword values('o', 'e'); +insert into domain_keyword values('e', 'e'); +insert into domain_keyword values('o', 'o'); +insert into domain_keyword values('r', 'y'); +insert into domain_keyword values('e', 'p'); +insert into domain_keyword values('s', 'o'); +insert into domain_keyword values('i', 'o'); +insert into domain_keyword values('o', 'o'); +insert into domain_keyword values('i', 'r'); +insert into domain_keyword values('o', 'o'); +insert into domain_keyword values('i', 'y'); +insert into domain_keyword values('o', 'l'); +insert into domain_keyword values('o', 'i'); +insert into domain_keyword values('r', 'l'); +insert into domain_keyword values('e', 'e'); +insert into domain_keyword values('e', 'y'); +insert into domain_keyword values('o', 'p'); +insert into domain_keyword values('o', 'i'); +insert into domain_keyword values('d', 's'); +insert into domain_keyword values('e', 'y'); +insert into domain_keyword values('e', 'r'); +insert into domain_keyword values('i', 'r'); +insert into domain_keyword values('o', 'd'); +insert into domain_keyword values('y', 'r'); +insert into domain_keyword values('r', 'r'); + +create table publication ( +abstract text, +cid text, +citation_num text, +jid text, +pid text, +reference_num text, +title text, +year text +); +insert into publication values('o', 'o', 'o', 'p', 'y', 'l', 'o', 's'); +insert into publication values('y', 'o', 'l', 'd', 'o', 'l', 'p', 'd'); +insert into publication values('o', 'i', 'g', 'o', 'g', 's', 'e', 'p'); +insert into publication values('i', 'y', 'r', 'd', 's', 'g', 'g', 'r'); +insert into publication values('g', 'e', 'o', 's', 'l', 'r', 'o', 's'); +insert into publication values('d', 'o', 's', 'e', 'l', 'i', 'p', 'g'); +insert into publication values('o', 'e', 'l', 'i', 'd', 'y', 'r', 'g'); +insert into publication values('p', 's', 'o', 'o', 'l', 'd', 'r', 'p'); +insert into publication values('y', 'o', 'o', 'd', 'r', 'l', 'g', 'l'); +insert into publication values('l', 's', 'o', 'e', 'g', 'p', 'p', 'd'); +insert into publication values('y', 'l', 'r', 'y', 'l', 'y', 'o', 'p'); +insert into publication values('e', 'y', 'd', 'e', 'l', 'y', 'g', 'o'); +insert into publication values('s', 'i', 'l', 'o', 'd', 'e', 's', 'i'); +insert into publication values('y', 'o', 'p', 'd', 'g', 'e', 'o', 'r'); +insert into publication values('o', 'l', 'p', 'y', 'g', 'i', 'd', 's'); +insert into publication values('r', 'e', 'y', 'y', 'i', 'g', 'e', 'o'); +insert into publication values('i', 'i', 'r', 'i', 'g', 'g', 'y', 'o'); +insert into publication values('s', 'o', 's', 'l', 'r', 'p', 'i', 'y'); +insert into publication values('l', 'y', 'y', 'l', 'r', 'p', 'd', 'o'); +insert into publication values('o', 's', 'r', 'g', 'y', 'g', 'd', 's'); +insert into publication values('o', 'e', 'y', 'l', 'e', 'g', 'y', 'e'); +insert into publication values('l', 'l', 'r', 'd', 's', 'g', 's', 'o'); + +create table domain_publication ( +did text, +pid text +); +insert into domain_publication values('e', 'o'); +insert into domain_publication values('s', 'p'); +insert into domain_publication values('s', 'd'); +insert into domain_publication values('o', 'y'); +insert into domain_publication values('p', 'l'); +insert into domain_publication values('l', 'e'); +insert into domain_publication values('o', 'r'); +insert into domain_publication values('r', 'l'); +insert into domain_publication values('l', 's'); +insert into domain_publication values('r', 'l'); +insert into domain_publication values('g', 's'); +insert into domain_publication values('y', 'l'); +insert into domain_publication values('e', 'p'); +insert into domain_publication values('d', 'd'); +insert into domain_publication values('r', 's'); +insert into domain_publication values('p', 'e'); + +create table organization ( +continent text, +homepage text, +name text, +oid text +); +insert into organization values('g', 'r', 's', 'l'); +insert into organization values('r', 'g', 's', 'y'); +insert into organization values('r', 'l', 'o', 'd'); +insert into organization values('s', 'r', 's', 'p'); +insert into organization values('s', 'i', 's', 'd'); +insert into organization values('r', 'o', 'o', 'g'); +insert into organization values('r', 's', 'e', 'l'); +insert into organization values('g', 'p', 'r', 'd'); +insert into organization values('y', 'p', 'r', 'o'); +insert into organization values('i', 'o', 'y', 'p'); +insert into organization values('s', 'i', 'e', 'l'); +insert into organization values('s', 's', 'y', 's'); +insert into organization values('y', 'd', 'o', 'r'); +insert into organization values('y', 'e', 'o', 'o'); +insert into organization values('p', 'o', 'd', 's'); +insert into organization values('r', 'p', 'y', 'd'); +insert into organization values('g', 'e', 'd', 'r'); +insert into organization values('s', 'p', 'o', 'o'); +insert into organization values('y', 'e', 's', 'o'); +insert into organization values('y', 'y', 'l', 'i'); +insert into organization values('l', 'r', 'r', 'r'); +insert into organization values('y', 'y', 'l', 'p'); + +create table writes ( +aid text, +pid text +); +insert into writes values('o', 'l'); +insert into writes values('i', 'o'); +insert into writes values('o', 'o'); +insert into writes values('y', 'l'); +insert into writes values('o', 'r'); +insert into writes values('l', 'i'); +insert into writes values('l', 's'); +insert into writes values('d', 'r'); +insert into writes values('g', 's'); +insert into writes values('p', 'o'); +insert into writes values('g', 'l'); +insert into writes values('e', 'p'); + +create table cite ( +cited text, +citing text +); +insert into cite values('p', 'r'); +insert into cite values('s', 'p'); +insert into cite values('l', 'o'); +insert into cite values('i', 's'); +insert into cite values('i', 'e'); +insert into cite values('l', 'y'); +insert into cite values('r', 'e'); +insert into cite values('i', 'i'); +insert into cite values('p', 'y'); +insert into cite values('g', 'p'); +insert into cite values('r', 'y'); +insert into cite values('d', 'o'); +create table publication_keyword_keyword ( +pid text, +kid text, +keyword text); +insert into publication_keyword_keyword values('r', 'o', 'd'); +insert into publication_keyword_keyword values('r', 'o', 'o'); +insert into publication_keyword_keyword values('r', 'o', 'o'); +insert into publication_keyword_keyword values('r', 'o', 'o'); +insert into publication_keyword_keyword values('r', 'o', 'o'); +insert into publication_keyword_keyword values('r', 'o', 'p'); +insert into publication_keyword_keyword values('r', 'o', 'y'); +insert into publication_keyword_keyword values('s', 'o', 'd'); +insert into publication_keyword_keyword values('s', 'o', 'o'); +insert into publication_keyword_keyword values('s', 'o', 'o'); +insert into publication_keyword_keyword values('s', 'o', 'o'); +insert into publication_keyword_keyword values('s', 'o', 'o'); +insert into publication_keyword_keyword values('s', 'o', 'p'); +insert into publication_keyword_keyword values('s', 'o', 'y'); +insert into publication_keyword_keyword values('d', 'l', 's'); +insert into publication_keyword_keyword values('d', 'l', 'y'); +insert into publication_keyword_keyword values('o', 'y', 'd'); +insert into publication_keyword_keyword values('o', 'y', 'l'); +insert into publication_keyword_keyword values('o', 'y', 'o'); +insert into publication_keyword_keyword values('o', 'y', 'y'); +insert into publication_keyword_keyword values('s', 'r', 'i'); +insert into publication_keyword_keyword values('s', 'r', 'o'); +insert into publication_keyword_keyword values('s', 'r', 's'); +insert into publication_keyword_keyword values('y', 'r', 'i'); +insert into publication_keyword_keyword values('y', 'r', 'o'); +insert into publication_keyword_keyword values('y', 'r', 's'); +insert into publication_keyword_keyword values('o', 'e', 'i'); +insert into publication_keyword_keyword values('o', 'e', 'r'); +insert into publication_keyword_keyword values('o', 'g', 'd'); +insert into publication_keyword_keyword values('o', 'g', 'g'); +insert into publication_keyword_keyword values('o', 'g', 'g'); +insert into publication_keyword_keyword values('o', 'g', 'r'); +insert into publication_keyword_keyword values('o', 'g', 'y'); +insert into publication_keyword_keyword values('y', 'y', 'd'); +insert into publication_keyword_keyword values('y', 'y', 'l'); +insert into publication_keyword_keyword values('y', 'y', 'o'); +insert into publication_keyword_keyword values('y', 'y', 'y'); +insert into publication_keyword_keyword values('r', 'o', 'd'); +insert into publication_keyword_keyword values('r', 'o', 'o'); +insert into publication_keyword_keyword values('r', 'o', 'o'); +insert into publication_keyword_keyword values('r', 'o', 'o'); +insert into publication_keyword_keyword values('r', 'o', 'o'); +insert into publication_keyword_keyword values('r', 'o', 'p'); +insert into publication_keyword_keyword values('r', 'o', 'y'); +insert into publication_keyword_keyword values('d', 'o', 'd'); +insert into publication_keyword_keyword values('d', 'o', 'o'); +insert into publication_keyword_keyword values('d', 'o', 'o'); +insert into publication_keyword_keyword values('d', 'o', 'o'); +insert into publication_keyword_keyword values('d', 'o', 'o'); +insert into publication_keyword_keyword values('d', 'o', 'p'); +insert into publication_keyword_keyword values('d', 'o', 'y'); +insert into publication_keyword_keyword values('d', 's', 'd'); +insert into publication_keyword_keyword values('d', 's', 'o'); +insert into publication_keyword_keyword values('g', 'o', 'd'); +insert into publication_keyword_keyword values('g', 'o', 'o'); +insert into publication_keyword_keyword values('g', 'o', 'o'); +insert into publication_keyword_keyword values('g', 'o', 'o'); +insert into publication_keyword_keyword values('g', 'o', 'o'); +insert into publication_keyword_keyword values('g', 'o', 'p'); +insert into publication_keyword_keyword values('g', 'o', 'y'); +insert into publication_keyword_keyword values('o', 'i', 'None'); +insert into publication_keyword_keyword values('e', 'e', 'i'); +insert into publication_keyword_keyword values('e', 'e', 'r'); +insert into publication_keyword_keyword values('s', 'o', 'd'); +insert into publication_keyword_keyword values('s', 'o', 'o'); +insert into publication_keyword_keyword values('s', 'o', 'o'); +insert into publication_keyword_keyword values('s', 'o', 'o'); +insert into publication_keyword_keyword values('s', 'o', 'o'); +insert into publication_keyword_keyword values('s', 'o', 'p'); +insert into publication_keyword_keyword values('s', 'o', 'y'); +insert into publication_keyword_keyword values('y', 's', 'd'); +insert into publication_keyword_keyword values('y', 's', 'o'); +insert into publication_keyword_keyword values('o', 'p', 'None'); +insert into publication_keyword_keyword values('g', 'd', 'o'); +insert into publication_keyword_keyword values('g', 'd', 's'); +insert into publication_keyword_keyword values('p', 'd', 'o'); +insert into publication_keyword_keyword values('p', 'd', 's'); +insert into publication_keyword_keyword values('g', 'g', 'd'); +insert into publication_keyword_keyword values('g', 'g', 'g'); +insert into publication_keyword_keyword values('g', 'g', 'g'); +insert into publication_keyword_keyword values('g', 'g', 'r'); +insert into publication_keyword_keyword values('g', 'g', 'y'); +insert into publication_keyword_keyword values('l', 'o', 'd'); +insert into publication_keyword_keyword values('l', 'o', 'o'); +insert into publication_keyword_keyword values('l', 'o', 'o'); +insert into publication_keyword_keyword values('l', 'o', 'o'); +insert into publication_keyword_keyword values('l', 'o', 'o'); +insert into publication_keyword_keyword values('l', 'o', 'p'); +insert into publication_keyword_keyword values('l', 'o', 'y'); +insert into publication_keyword_keyword values('l', 'g', 'd'); +insert into publication_keyword_keyword values('l', 'g', 'g'); +insert into publication_keyword_keyword values('l', 'g', 'g'); +insert into publication_keyword_keyword values('l', 'g', 'r'); +insert into publication_keyword_keyword values('l', 'g', 'y'); +insert into publication_keyword_keyword values('g', 'd', 'o'); +insert into publication_keyword_keyword values('g', 'd', 's'); +insert into publication_keyword_keyword values('o', 'p', 'None'); +insert into publication_keyword_keyword values('p', 'o', 'd'); +insert into publication_keyword_keyword values('p', 'o', 'o'); +insert into publication_keyword_keyword values('p', 'o', 'o'); +insert into publication_keyword_keyword values('p', 'o', 'o'); +insert into publication_keyword_keyword values('p', 'o', 'o'); +insert into publication_keyword_keyword values('p', 'o', 'p'); +insert into publication_keyword_keyword values('p', 'o', 'y'); +insert into publication_keyword_keyword values('d', 'y', 'd'); +insert into publication_keyword_keyword values('d', 'y', 'l'); +insert into publication_keyword_keyword values('d', 'y', 'o'); +insert into publication_keyword_keyword values('d', 'y', 'y'); +insert into publication_keyword_keyword values('r', 'g', 'd'); +insert into publication_keyword_keyword values('r', 'g', 'g'); +insert into publication_keyword_keyword values('r', 'g', 'g'); +insert into publication_keyword_keyword values('r', 'g', 'r'); +insert into publication_keyword_keyword values('r', 'g', 'y'); +insert into publication_keyword_keyword values('d', 'd', 'o'); +insert into publication_keyword_keyword values('d', 'd', 's'); +insert into publication_keyword_keyword values('r', 'p', 'None'); + diff --git a/all/databases/academic_minus_1_0/academic_minus_1_0.sqlite b/all/databases/academic_minus_1_0/academic_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..83cac0975118161966cf3e7219ed4198566544af Binary files /dev/null and b/all/databases/academic_minus_1_0/academic_minus_1_0.sqlite differ diff --git a/all/databases/academic_minus_1_1/academic_minus_1_1.sql b/all/databases/academic_minus_1_1/academic_minus_1_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..880a5b76508ec0bd0df191da258886aa04f39938 --- /dev/null +++ b/all/databases/academic_minus_1_1/academic_minus_1_1.sql @@ -0,0 +1,385 @@ +create table conference ( +cid text, +homepage text, +name text +); +insert into conference values('d', 'p', 'o'); +insert into conference values('p', 'o', 'p'); +insert into conference values('l', 'g', 'r'); +insert into conference values('e', 'i', 'r'); +insert into conference values('p', 'o', 'o'); +insert into conference values('e', 'r', 'o'); +insert into conference values('r', 'y', 'p'); +insert into conference values('r', 'o', 'y'); +insert into conference values('i', 'g', 'r'); +insert into conference values('d', 's', 'y'); +insert into conference values('r', 'y', 's'); +insert into conference values('i', 'o', 's'); +insert into conference values('d', 'o', 'y'); +insert into conference values('l', 'l', 's'); +insert into conference values('o', 'd', 'o'); +insert into conference values('g', 's', 'r'); +insert into conference values('y', 'o', 'g'); +insert into conference values('r', 'o', 'e'); +insert into conference values('l', 'd', 'g'); +insert into conference values('p', 'i', 's'); +insert into conference values('s', 'o', 'i'); +insert into conference values('e', 's', 'o'); +insert into conference values('o', 'o', 'i'); +insert into conference values('r', 'y', 'l'); +insert into conference values('e', 'r', 'p'); +insert into conference values('p', 'l', 'l'); +insert into conference values('y', 'i', 'd'); +insert into conference values('g', 'o', 'i'); +insert into conference values('i', 's', 'o'); + +create table domain ( +did text, +name text +); +insert into domain values('e', 'r'); +insert into domain values('r', 'e'); +insert into domain values('g', 'r'); +insert into domain values('l', 's'); +insert into domain values('d', 'e'); +insert into domain values('p', 'l'); +insert into domain values('p', 's'); +insert into domain values('y', 'o'); +insert into domain values('p', 'd'); +insert into domain values('o', 's'); +insert into domain values('s', 'l'); +insert into domain values('g', 'y'); +insert into domain values('o', 'y'); +insert into domain values('s', 'o'); +insert into domain values('o', 's'); +insert into domain values('l', 'i'); +insert into domain values('o', 'o'); + +create table domain_author ( +aid text, +did text +); +insert into domain_author values('o', 'y'); +insert into domain_author values('l', 'p'); +insert into domain_author values('r', 'p'); +insert into domain_author values('o', 'r'); +insert into domain_author values('r', 'p'); +insert into domain_author values('i', 'd'); +insert into domain_author values('o', 'e'); +insert into domain_author values('y', 'o'); +insert into domain_author values('o', 'y'); +insert into domain_author values('l', 'i'); +insert into domain_author values('i', 'o'); +insert into domain_author values('e', 'i'); +insert into domain_author values('d', 'l'); +insert into domain_author values('s', 'g'); +insert into domain_author values('p', 'o'); +insert into domain_author values('e', 's'); +insert into domain_author values('y', 'o'); +insert into domain_author values('y', 'g'); +insert into domain_author values('p', 'o'); +insert into domain_author values('e', 'p'); +insert into domain_author values('e', 'o'); +insert into domain_author values('y', 'r'); +insert into domain_author values('y', 'l'); +insert into domain_author values('i', 'r'); +insert into domain_author values('e', 'y'); +insert into domain_author values('d', 'e'); +insert into domain_author values('l', 'd'); +insert into domain_author values('l', 'o'); +insert into domain_author values('p', 'r'); +insert into domain_author values('l', 's'); + +create table domain_conference ( +cid text, +did text +); +insert into domain_conference values('r', 's'); +insert into domain_conference values('o', 'o'); +insert into domain_conference values('y', 'g'); +insert into domain_conference values('o', 'p'); +insert into domain_conference values('y', 'y'); +insert into domain_conference values('y', 'p'); +insert into domain_conference values('y', 'l'); + +create table journal ( +homepage text, +jid text, +name text +); +insert into journal values('y', 's', 'e'); +insert into journal values('y', 's', 'o'); +insert into journal values('y', 'p', 'o'); +insert into journal values('o', 'r', 'o'); +insert into journal values('g', 'e', 'g'); +insert into journal values('p', 'r', 'o'); +insert into journal values('i', 'g', 'i'); +insert into journal values('l', 'g', 'r'); +insert into journal values('e', 'o', 'r'); +insert into journal values('s', 'o', 'i'); +insert into journal values('r', 'y', 'l'); +insert into journal values('o', 'o', 'd'); +insert into journal values('o', 'l', 'y'); +insert into journal values('d', 'o', 'g'); +insert into journal values('r', 'p', 'i'); +insert into journal values('y', 'e', 'd'); +insert into journal values('i', 'i', 'd'); +insert into journal values('o', 'r', 'o'); +insert into journal values('g', 'y', 'o'); +insert into journal values('r', 'o', 'o'); +insert into journal values('i', 'g', 'e'); +insert into journal values('d', 'i', 'r'); +insert into journal values('s', 'l', 'p'); +insert into journal values('s', 's', 'o'); +insert into journal values('r', 'e', 'd'); +insert into journal values('i', 'e', 's'); +insert into journal values('s', 's', 'e'); +insert into journal values('p', 'r', 'd'); +insert into journal values('s', 'y', 'p'); +insert into journal values('e', 'o', 's'); + +create table domain_journal ( +did text, +jid text +); +insert into domain_journal values('o', 'o'); +insert into domain_journal values('l', 'r'); +insert into domain_journal values('l', 'g'); +insert into domain_journal values('r', 'l'); +insert into domain_journal values('y', 'p'); +insert into domain_journal values('i', 'y'); +insert into domain_journal values('r', 'd'); +insert into domain_journal values('i', 'l'); +insert into domain_journal values('e', 'r'); +insert into domain_journal values('d', 'o'); +insert into domain_journal values('l', 'e'); +insert into domain_journal values('o', 'l'); +insert into domain_journal values('i', 'p'); +insert into domain_journal values('s', 'o'); +insert into domain_journal values('i', 'o'); +insert into domain_journal values('l', 'd'); +insert into domain_journal values('p', 'p'); +insert into domain_journal values('r', 'i'); +insert into domain_journal values('e', 'p'); +insert into domain_journal values('l', 's'); + +create table keyword ( +keyword text, +kid text +); +insert into keyword values('r', 'g'); +insert into keyword values('o', 'o'); +insert into keyword values('d', 'o'); +insert into keyword values('d', 's'); +insert into keyword values('s', 'r'); +insert into keyword values('y', 'l'); +insert into keyword values('y', 'o'); +insert into keyword values('o', 'r'); +insert into keyword values('s', 'l'); +insert into keyword values('o', 'o'); +insert into keyword values('i', 'e'); +insert into keyword values('g', 'g'); +insert into keyword values('r', 'e'); +insert into keyword values('o', 's'); +insert into keyword values('s', 'd'); +insert into keyword values('o', 'o'); +insert into keyword values('l', 'y'); +insert into keyword values('d', 'y'); +insert into keyword values('o', 'y'); +insert into keyword values('p', 'o'); +insert into keyword values('o', 'd'); +insert into keyword values('i', 'r'); +insert into keyword values('g', 'g'); +insert into keyword values('y', 'y'); +insert into keyword values('d', 'g'); +insert into keyword values('y', 'g'); +insert into keyword values('o', 'o'); + +create table domain_keyword ( +did text, +kid text +); +insert into domain_keyword values('p', 'l'); +insert into domain_keyword values('s', 'g'); +insert into domain_keyword values('o', 'e'); +insert into domain_keyword values('e', 'e'); +insert into domain_keyword values('o', 'o'); +insert into domain_keyword values('r', 'y'); +insert into domain_keyword values('e', 'p'); +insert into domain_keyword values('s', 'o'); +insert into domain_keyword values('i', 'o'); +insert into domain_keyword values('o', 'o'); +insert into domain_keyword values('i', 'r'); +insert into domain_keyword values('o', 'o'); +insert into domain_keyword values('i', 'y'); +insert into domain_keyword values('o', 'l'); +insert into domain_keyword values('o', 'i'); +insert into domain_keyword values('r', 'l'); +insert into domain_keyword values('e', 'e'); +insert into domain_keyword values('e', 'y'); +insert into domain_keyword values('o', 'p'); +insert into domain_keyword values('o', 'i'); +insert into domain_keyword values('d', 's'); +insert into domain_keyword values('e', 'y'); +insert into domain_keyword values('e', 'r'); +insert into domain_keyword values('i', 'r'); +insert into domain_keyword values('o', 'd'); +insert into domain_keyword values('y', 'r'); +insert into domain_keyword values('r', 'r'); + +create table publication ( +abstract text, +cid text, +citation_num text, +jid text, +pid text, +reference_num text, +title text, +year text +); +insert into publication values('o', 'o', 'o', 'p', 'y', 'l', 'o', 's'); +insert into publication values('y', 'o', 'l', 'd', 'o', 'l', 'p', 'd'); +insert into publication values('o', 'i', 'g', 'o', 'g', 's', 'e', 'p'); +insert into publication values('i', 'y', 'r', 'd', 's', 'g', 'g', 'r'); +insert into publication values('g', 'e', 'o', 's', 'l', 'r', 'o', 's'); +insert into publication values('d', 'o', 's', 'e', 'l', 'i', 'p', 'g'); +insert into publication values('o', 'e', 'l', 'i', 'd', 'y', 'r', 'g'); +insert into publication values('p', 's', 'o', 'o', 'l', 'd', 'r', 'p'); +insert into publication values('y', 'o', 'o', 'd', 'r', 'l', 'g', 'l'); +insert into publication values('l', 's', 'o', 'e', 'g', 'p', 'p', 'd'); +insert into publication values('y', 'l', 'r', 'y', 'l', 'y', 'o', 'p'); +insert into publication values('e', 'y', 'd', 'e', 'l', 'y', 'g', 'o'); +insert into publication values('s', 'i', 'l', 'o', 'd', 'e', 's', 'i'); +insert into publication values('y', 'o', 'p', 'd', 'g', 'e', 'o', 'r'); +insert into publication values('o', 'l', 'p', 'y', 'g', 'i', 'd', 's'); +insert into publication values('r', 'e', 'y', 'y', 'i', 'g', 'e', 'o'); +insert into publication values('i', 'i', 'r', 'i', 'g', 'g', 'y', 'o'); +insert into publication values('s', 'o', 's', 'l', 'r', 'p', 'i', 'y'); +insert into publication values('l', 'y', 'y', 'l', 'r', 'p', 'd', 'o'); +insert into publication values('o', 's', 'r', 'g', 'y', 'g', 'd', 's'); +insert into publication values('o', 'e', 'y', 'l', 'e', 'g', 'y', 'e'); +insert into publication values('l', 'l', 'r', 'd', 's', 'g', 's', 'o'); + +create table domain_publication ( +did text, +pid text +); +insert into domain_publication values('e', 'o'); +insert into domain_publication values('s', 'p'); +insert into domain_publication values('s', 'd'); +insert into domain_publication values('o', 'y'); +insert into domain_publication values('p', 'l'); +insert into domain_publication values('l', 'e'); +insert into domain_publication values('o', 'r'); +insert into domain_publication values('r', 'l'); +insert into domain_publication values('l', 's'); +insert into domain_publication values('r', 'l'); +insert into domain_publication values('g', 's'); +insert into domain_publication values('y', 'l'); +insert into domain_publication values('e', 'p'); +insert into domain_publication values('d', 'd'); +insert into domain_publication values('r', 's'); +insert into domain_publication values('p', 'e'); + +create table organization ( +continent text, +homepage text, +name text, +oid text +); +insert into organization values('g', 'r', 's', 'l'); +insert into organization values('r', 'g', 's', 'y'); +insert into organization values('r', 'l', 'o', 'd'); +insert into organization values('s', 'r', 's', 'p'); +insert into organization values('s', 'i', 's', 'd'); +insert into organization values('r', 'o', 'o', 'g'); +insert into organization values('r', 's', 'e', 'l'); +insert into organization values('g', 'p', 'r', 'd'); +insert into organization values('y', 'p', 'r', 'o'); +insert into organization values('i', 'o', 'y', 'p'); +insert into organization values('s', 'i', 'e', 'l'); +insert into organization values('s', 's', 'y', 's'); +insert into organization values('y', 'd', 'o', 'r'); +insert into organization values('y', 'e', 'o', 'o'); +insert into organization values('p', 'o', 'd', 's'); +insert into organization values('r', 'p', 'y', 'd'); +insert into organization values('g', 'e', 'd', 'r'); +insert into organization values('s', 'p', 'o', 'o'); +insert into organization values('y', 'e', 's', 'o'); +insert into organization values('y', 'y', 'l', 'i'); +insert into organization values('l', 'r', 'r', 'r'); +insert into organization values('y', 'y', 'l', 'p'); + +create table publication_keyword ( +pid text, +kid text +); +insert into publication_keyword values('r', 'o'); +insert into publication_keyword values('s', 'o'); +insert into publication_keyword values('d', 'l'); +insert into publication_keyword values('o', 'y'); +insert into publication_keyword values('s', 'r'); +insert into publication_keyword values('y', 'r'); +insert into publication_keyword values('o', 'e'); +insert into publication_keyword values('o', 'g'); +insert into publication_keyword values('y', 'y'); +insert into publication_keyword values('r', 'o'); +insert into publication_keyword values('d', 'o'); +insert into publication_keyword values('d', 's'); +insert into publication_keyword values('g', 'o'); +insert into publication_keyword values('o', 'i'); +insert into publication_keyword values('e', 'e'); +insert into publication_keyword values('s', 'o'); +insert into publication_keyword values('y', 's'); +insert into publication_keyword values('o', 'p'); +insert into publication_keyword values('g', 'd'); +insert into publication_keyword values('p', 'd'); +insert into publication_keyword values('g', 'g'); +insert into publication_keyword values('l', 'o'); +insert into publication_keyword values('l', 'g'); +insert into publication_keyword values('g', 'd'); +insert into publication_keyword values('o', 'p'); +insert into publication_keyword values('p', 'o'); +insert into publication_keyword values('d', 'y'); +insert into publication_keyword values('r', 'g'); +insert into publication_keyword values('d', 'd'); +insert into publication_keyword values('r', 'p'); + +create table cite ( +cited text, +citing text +); +insert into cite values('p', 'r'); +insert into cite values('s', 'p'); +insert into cite values('l', 'o'); +insert into cite values('i', 's'); +insert into cite values('i', 'e'); +insert into cite values('l', 'y'); +insert into cite values('r', 'e'); +insert into cite values('i', 'i'); +insert into cite values('p', 'y'); +insert into cite values('g', 'p'); +insert into cite values('r', 'y'); +insert into cite values('d', 'o'); +create table writes_author ( +aid text, +pid text, +homepage text, +name text, +oid text); +insert into writes_author values('o', 'l', 'None', 'None', 'None'); +insert into writes_author values('i', 'o', 'o', 'i', 'y'); +insert into writes_author values('i', 'o', 'o', 'r', 'g'); +insert into writes_author values('i', 'o', 'y', 'd', 'p'); +insert into writes_author values('o', 'o', 'None', 'None', 'None'); +insert into writes_author values('y', 'l', 'p', 'p', 's'); +insert into writes_author values('o', 'r', 'None', 'None', 'None'); +insert into writes_author values('l', 'i', 'd', 'l', 's'); +insert into writes_author values('l', 's', 'd', 'l', 's'); +insert into writes_author values('d', 'r', 'None', 'None', 'None'); +insert into writes_author values('g', 's', 'o', 'r', 'g'); +insert into writes_author values('p', 'o', 'None', 'None', 'None'); +insert into writes_author values('g', 'l', 'o', 'r', 'g'); +insert into writes_author values('e', 'p', 'None', 'None', 'None'); +insert into writes_author values('s', 'None', 'r', 'r', 'e'); + diff --git a/all/databases/academic_minus_1_1/academic_minus_1_1.sqlite b/all/databases/academic_minus_1_1/academic_minus_1_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..11d710d2b4f9a6fa869eb11b02929efddc6162c1 Binary files /dev/null and b/all/databases/academic_minus_1_1/academic_minus_1_1.sqlite differ diff --git a/all/databases/aircraft/aircraft.sql b/all/databases/aircraft/aircraft.sql new file mode 100644 index 0000000000000000000000000000000000000000..968d9d0f509999e730182ec7553880a8156bfb7c --- /dev/null +++ b/all/databases/aircraft/aircraft.sql @@ -0,0 +1,88 @@ +CREATE TABLE "pilot" ( +"pilot_id" integer, +"name" text, +"age" integer +); + +INSERT INTO pilot VALUES (1, "prof. zackery collins", 23); +INSERT INTO pilot VALUES (2, "katheryn gorczany iv", 20); +INSERT INTO pilot VALUES (3, "mr. cristian halvorson ii", 23); +INSERT INTO pilot VALUES (4, "ayana spencer", 25); +INSERT INTO pilot VALUES (5, "ellen ledner iii", 31); +INSERT INTO pilot VALUES (6, "elisha hickle v", 37); +INSERT INTO pilot VALUES (7, "dr. jade bradtke v", 26); +INSERT INTO pilot VALUES (8, "winnifred boyle", 30); +INSERT INTO pilot VALUES (9, "della lindgren", 29); +INSERT INTO pilot VALUES (10, "maxwell graham", 26); +INSERT INTO pilot VALUES (11, "blaise muller", 33); +INSERT INTO pilot VALUES (12, "baylee steuber", 30); + +CREATE TABLE "aircraft" ( +"aircraft_id" integer, +"aircraft" text, +"description" text, +"max_gross_weight" text, +"total_disk_area" text, +"max_disk_loading" text +); + +INSERT INTO aircraft VALUES (1, "robinson r-22", "light utility helicopter", "1370 lb 635 kg", "497 ft² 46.2 m²", "2.6 lb/ft² 14 kg/m²"); +INSERT INTO aircraft VALUES (2, "bell 206b3 jetranger", "turboshaft utility helicopter", "3200 lb 1451 kg", "872 ft² 81.1 m²", "3.7 lb/ft² 18 kg/m²"); +INSERT INTO aircraft VALUES (3, "ch-47d chinook", "tandem rotor helicopter", "50000 lb 22680 kg", "5655 ft² 526 m²", "8.8 lb/ft² 43 kg/m²"); +INSERT INTO aircraft VALUES (4, "mil mi-26", "heavy-lift helicopter", "123500 lb 56000 kg", "8495 ft² 789 m²", "14.5 lb/ft² 71 kg/m²"); +INSERT INTO aircraft VALUES (5, "ch-53e super stallion", "heavy-lift helicopter", "73500 lb 33300 kg", "4900 ft² 460 m²", "15 lb/ft² 72 kg/m²"); + +CREATE TABLE "match" ( +"round" real, +"location" text, +"country" text, +"date" text, +"fastest_qualifying" text, +"winning_pilot" text, +"winning_aircraft" text +); + +INSERT INTO match VALUES (1.0, "mina zayid abu dhabi", "united arab emirates", "march 26–27", "hannes arch", "1", "1"); +INSERT INTO match VALUES (2.0, "swan river perth", "australia", "april 17–18", "paul bonhomme", "4", "1"); +INSERT INTO match VALUES (3.0, "flamengo beach rio de janeiro", "brazil", "may 8–9", "hannes arch", "6", "2"); +INSERT INTO match VALUES (4.0, "windsor ontario", "canada", "june 5–6", "nigel lamb", "4", "4"); +INSERT INTO match VALUES (5.0, "new york city", "united states", "june 19–20", "hannes arch", "9", "3"); +INSERT INTO match VALUES (6.0, "eurospeedway lausitz", "germany", "august 7–8", "paul bonhomme", "2", "4"); +INSERT INTO match VALUES (7.0, "river danube budapest", "hungary", "cancelled", "cancelled", "6", "5"); + +CREATE TABLE "airport" ( +"airport_id" integer, +"airport_name" text, +"total_passengers" real, +"%_change_2007" text, +"international_passengers" real, +"domestic_passengers" real, +"transit_passengers" real, +"aircraft_movements" real, +"freight_metric_tonnes" real +); + +INSERT INTO airport VALUES (1, "london heathrow", 67054745.0, "1.5%", 61344438.0, 5562516.0, 147791.0, 478693.0, 1397054.0); +INSERT INTO airport VALUES (2, "london gatwick", 34205887.0, "2.9%", 30431051.0, 3730963.0, 43873.0, 263653.0, 107702.0); +INSERT INTO airport VALUES (3, "london stansted", 22360364.0, "6.0%", 19996947.0, 2343428.0, 19989.0, 193282.0, 197738.0); +INSERT INTO airport VALUES (4, "manchester", 21219195.0, "4.0%", 18119230.0, 2943719.0, 156246.0, 204610.0, 141781.0); +INSERT INTO airport VALUES (5, "london luton", 10180734.0, "2.6%", 8853224.0, 1320678.0, 6832.0, 117859.0, 40518.0); +INSERT INTO airport VALUES (6, "birmingham airport", 9627589.0, "4.3%", 8105162.0, 1471538.0, 50889.0, 112227.0, 12192.0); +INSERT INTO airport VALUES (7, "edinburgh", 9006702.0, "0.5%", 3711140.0, 5281038.0, 14524.0, 125550.0, 12418.0); +INSERT INTO airport VALUES (8, "glasgow international", 8178891.0, "7.0%", 3943139.0, 4192121.0, 43631.0, 100087.0, 3546.0); +INSERT INTO airport VALUES (9, "bristol", 6267114.0, "5.7%", 5057051.0, 1171605.0, 38458.0, 76517.0, 3.0); +INSERT INTO airport VALUES (10, "east midlands", 5620673.0, "3.8%", 4870184.0, 746094.0, 4395.0, 93038.0, 261507.0); + +CREATE TABLE "airport_aircraft" ( +"id" integer, +"airport_id" integer, +"aircraft_id" integer +); + +INSERT INTO airport_aircraft VALUES (1, 1, 2); +INSERT INTO airport_aircraft VALUES (2, 2, 1); +INSERT INTO airport_aircraft VALUES (3, 6, 5); +INSERT INTO airport_aircraft VALUES (4, 9, 3); + + +COMMIT; diff --git a/all/databases/aircraft/aircraft.sqlite b/all/databases/aircraft/aircraft.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..9b01eab4730eaf0577f1c8b40a48e0050117277c Binary files /dev/null and b/all/databases/aircraft/aircraft.sqlite differ diff --git a/all/databases/battle_death_total_0/battle_death_total_0.sql b/all/databases/battle_death_total_0/battle_death_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..c1bd5332e2d6050162e7b35adf7a88e57ee68e29 --- /dev/null +++ b/all/databases/battle_death_total_0/battle_death_total_0.sql @@ -0,0 +1,43 @@ +create table battle ( +id integer, +name text, +date text, +bulgarian_commander text, +latin_commander text, +result text +); +insert into battle values(1, 'battle of adrianople', '14 april 1205', 'kaloyan', 'baldwin i', 'bulgarian victory'); +insert into battle values(2, 'battle of serres', 'june 1205', 'kaloyan', 'unknown', 'bulgarian victory'); +insert into battle values(3, 'battle of rusion', '31 january 1206', 'kaloyan', 'thierry de termond', 'bulgarian victory'); +insert into battle values(4, 'battle of rodosto', 'february 1206', 'kaloyan', 'unknown', 'bulgarian victory'); +insert into battle values(5, 'battle of messinopolis', '4 september 1207', 'unknown', 'boniface of montferrat', 'bulgarian victory'); +insert into battle values(6, 'battle of boruy', 'june 1205', 'boril', 'henry i', 'bulgarian victory'); +insert into battle values(7, 'battle of philippopolis', '31 june 1208', 'boril', 'henry i', 'latin victory'); +insert into battle values(8, 'siege of constantinople', 1235, 'ivan asen ii', 'john of brienne', 'two year truce'); +create table death_ship ( +caused_by_ship_id integer, +id_death integer, +note text, +killed integer, +injured integer, +lost_in_battle integer, +name text, +tonnage text, +ship_type text, +location text, +disposition_of_ship text); +insert into death_ship values(1, 1, 'dantewada chhattisgarh', 8, 0, 8, 'lettice', 't', 'brig', 'english channel', 'captured'); +insert into death_ship values(2, 2, 'dantewada chhattisgarh', 3, 0, 7, 'bon accord', 't', 'brig', 'english channel', 'captured'); +insert into death_ship values(3, 3, 'erraboru chhattisgarh', 25, 0, 6, 'mary', 't', 'brig', 'english channel', 'captured'); +insert into death_ship values(3, 4, 'east champaran bihar', 2, 0, 6, 'mary', 't', 'brig', 'english channel', 'captured'); +insert into death_ship values(4, 5, 'gajapati odisha', 3, 0, 5, 'hms avon', '391', '18-gun brig', 'english channel', 'wrecked'); +insert into death_ship values(4, 6, 'sundargarh odisha', 0, 9, 5, 'hms avon', '391', '18-gun brig', 'english channel', 'wrecked'); +insert into death_ship values(5, 7, 'dantewada chhattisgarh', 0, 0, 5, 'three brothers', 't', 'brig', 'sw approaches', 'scuttled'); +insert into death_ship values(5, 8, 'dantewada chhattisgarh', 4, 5, 5, 'three brothers', 't', 'brig', 'sw approaches', 'scuttled'); +insert into death_ship values(6, 9, 'kanker chhattisgarh', 0, 0, 4, 'bacchus', 't', 'brig', 'english channel', 'sank'); +insert into death_ship values(1, 10, 'dantewada chhattisgarh', 29, 0, 8, 'lettice', 't', 'brig', 'english channel', 'captured'); +insert into death_ship values(3, 11, 'westmidnapore west bengal', 0, 0, 6, 'mary', 't', 'brig', 'english channel', 'captured'); +insert into death_ship values(2, 12, 'bastar chattisgarh', 0, 0, 7, 'bon accord', 't', 'brig', 'english channel', 'captured'); +insert into death_ship values(5, 13, 'bokaro jharkhand', 14, 0, 5, 'three brothers', 't', 'brig', 'sw approaches', 'scuttled'); +insert into death_ship values(7, 'None', 'None', 'None', 'None', 8, 'hms atalanta', '225', '8 gun brig', 'mid-atlantic', 'captured'); + diff --git a/all/databases/battle_death_total_0/battle_death_total_0.sqlite b/all/databases/battle_death_total_0/battle_death_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..3c487b3576632718449c88304dfb7b45a84be089 Binary files /dev/null and b/all/databases/battle_death_total_0/battle_death_total_0.sqlite differ diff --git a/all/databases/bike_1/bike_1.sql b/all/databases/bike_1/bike_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..f41d94dace035967aa611e3909ccbf29c9056808 --- /dev/null +++ b/all/databases/bike_1/bike_1.sql @@ -0,0 +1,434 @@ +CREATE TABLE "station" ( +"id" integer, +"name" text, +"lat" real, +"long" real, +"dock_count" integer, +"city" text, +"installation_date" text +); + +INSERT INTO station VALUES (2, "san jose diridon caltrain station", 37.329732, -121.90178200000001, 27, "san jose", "8/6/2013"); +INSERT INTO station VALUES (3, "san jose civic center", 37.330698, -121.888979, 15, "san jose", "8/5/2013"); +INSERT INTO station VALUES (4, "santa clara at almaden", 37.333988, -121.894902, 11, "san jose", "8/6/2013"); +INSERT INTO station VALUES (5, "adobe on almaden", 37.331415, -121.8932, 19, "san jose", "8/5/2013"); +INSERT INTO station VALUES (6, "san pedro square", 37.336721000000004, -121.894074, 15, "san jose", "8/7/2013"); +INSERT INTO station VALUES (7, "paseo de san antonio", 37.333798, -121.88694299999999, 15, "san jose", "8/7/2013"); +INSERT INTO station VALUES (8, "san salvador at 1st", 37.330165, -121.88583100000001, 15, "san jose", "8/5/2013"); +INSERT INTO station VALUES (9, "japantown", 37.348742, -121.89471499999999, 15, "san jose", "8/5/2013"); +INSERT INTO station VALUES (10, "san jose city hall", 37.337391, -121.886995, 15, "san jose", "8/6/2013"); +INSERT INTO station VALUES (11, "mlk library", 37.335885, -121.88566000000002, 19, "san jose", "8/6/2013"); +INSERT INTO station VALUES (12, "sjsu 4th at san carlos", 37.332808, -121.88389099999999, 19, "san jose", "8/7/2013"); +INSERT INTO station VALUES (13, "st james park", 37.339301, -121.88993700000002, 15, "san jose", "8/6/2013"); +INSERT INTO station VALUES (14, "arena green / sap center", 37.332692, -121.900084, 19, "san jose", "8/5/2013"); +INSERT INTO station VALUES (16, "sjsu - san salvador at 9th", 37.333954999999996, -121.877349, 15, "san jose", "8/7/2013"); +INSERT INTO station VALUES (21, "franklin at maple", 37.481758, -122.226904, 15, "redwood city", "8/12/2013"); +INSERT INTO station VALUES (22, "redwood city caltrain station", 37.486078000000006, -122.23208899999999, 25, "redwood city", "8/15/2013"); +INSERT INTO station VALUES (23, "san mateo county center", 37.487615999999996, -122.229951, 15, "redwood city", "8/15/2013"); +INSERT INTO station VALUES (24, "redwood city public library", 37.484219, -122.227424, 15, "redwood city", "8/12/2013"); +INSERT INTO station VALUES (25, "stanford in redwood city", 37.48537, -122.20328799999999, 15, "redwood city", "8/12/2013"); +INSERT INTO station VALUES (26, "redwood city medical center", 37.487682, -122.223492, 15, "redwood city", "8/12/2013"); +INSERT INTO station VALUES (27, "mountain view city hall", 37.389218, -122.081896, 15, "mountain view", "8/16/2013"); +INSERT INTO station VALUES (28, "mountain view caltrain station", 37.394358000000004, -122.07671299999998, 23, "mountain view", "8/15/2013"); +INSERT INTO station VALUES (29, "san antonio caltrain station", 37.406940000000006, -122.10675800000001, 23, "mountain view", "8/15/2013"); +INSERT INTO station VALUES (30, "evelyn park and ride", 37.390277000000005, -122.066553, 15, "mountain view", "8/16/2013"); +INSERT INTO station VALUES (31, "san antonio shopping center", 37.400443, -122.10833799999999, 15, "mountain view", "12/31/2013"); +INSERT INTO station VALUES (32, "castro street and el camino real", 37.385956, -122.083678, 11, "mountain view", "12/31/2013"); +INSERT INTO station VALUES (33, "rengstorff avenue / california street", 37.400240999999994, -122.099076, 15, "mountain view", "8/16/2013"); +INSERT INTO station VALUES (34, "palo alto caltrain station", 37.443988, -122.164759, 23, "palo alto", "8/14/2013"); +INSERT INTO station VALUES (35, "university and emerson", 37.444521, -122.16309299999999, 11, "palo alto", "8/15/2013"); +INSERT INTO station VALUES (36, "california ave caltrain station", 37.429082, -122.14280500000001, 15, "palo alto", "8/14/2013"); +INSERT INTO station VALUES (37, "cowper at university", 37.448598, -122.159504, 11, "palo alto", "8/14/2013"); +INSERT INTO station VALUES (38, "park at olive", 37.425683899999996, -122.13777749999998, 15, "palo alto", "8/14/2013"); +INSERT INTO station VALUES (39, "powell street bart", 37.783871000000005, -122.408433, 19, "san francisco", "8/25/2013"); +INSERT INTO station VALUES (41, "clay at battery", 37.795001, -122.39997, 15, "san francisco", "8/19/2013"); +INSERT INTO station VALUES (42, "davis at jackson", 37.79728, -122.398436, 15, "san francisco", "8/19/2013"); +INSERT INTO station VALUES (45, "commercial at montgomery", 37.794230999999996, -122.402923, 15, "san francisco", "8/19/2013"); +INSERT INTO station VALUES (46, "washington at kearney", 37.795425, -122.40476699999999, 15, "san francisco", "8/19/2013"); +INSERT INTO station VALUES (47, "post at kearney", 37.788975, -122.403452, 19, "san francisco", "8/19/2013"); +INSERT INTO station VALUES (48, "embarcadero at vallejo", 37.799953, -122.398525, 15, "san francisco", "8/19/2013"); +INSERT INTO station VALUES (49, "spear at folsom", 37.790302000000004, -122.39063700000001, 19, "san francisco", "8/20/2013"); +INSERT INTO station VALUES (50, "harry bridges plaza ferry building", 37.795392, -122.394203, 23, "san francisco", "8/20/2013"); +INSERT INTO station VALUES (51, "embarcadero at folsom", 37.791464000000005, -122.391034, 19, "san francisco", "8/20/2013"); +INSERT INTO station VALUES (54, "embarcadero at bryant", 37.787152, -122.38801299999999, 15, "san francisco", "8/20/2013"); +INSERT INTO station VALUES (55, "temporary transbay terminal howard at beale", 37.789756, -122.39464299999999, 23, "san francisco", "8/20/2013"); +INSERT INTO station VALUES (56, "beale at market", 37.792251, -122.39708600000002, 19, "san francisco", "8/20/2013"); +INSERT INTO station VALUES (57, "5th at howard", 37.781752000000004, -122.40512700000001, 15, "san francisco", "8/21/2013"); +INSERT INTO station VALUES (58, "san francisco city hall", 37.77865, -122.41823500000001, 19, "san francisco", "8/21/2013"); +INSERT INTO station VALUES (59, "golden gate at polk", 37.781332, -122.418603, 23, "san francisco", "8/21/2013"); +INSERT INTO station VALUES (60, "embarcadero at sansome", 37.80477, -122.40323400000001, 15, "san francisco", "8/21/2013"); +INSERT INTO station VALUES (61, "2nd at townsend", 37.780526, -122.39028799999998, 27, "san francisco", "8/22/2013"); +INSERT INTO station VALUES (62, "2nd at folsom", 37.785299, -122.39623600000002, 19, "san francisco", "8/22/2013"); +INSERT INTO station VALUES (63, "howard at 2nd", 37.786978000000005, -122.39810800000001, 19, "san francisco", "8/22/2013"); +INSERT INTO station VALUES (64, "2nd at south park", 37.782259, -122.392738, 15, "san francisco", "8/22/2013"); +INSERT INTO station VALUES (65, "townsend at 7th", 37.771058000000004, -122.402717, 15, "san francisco", "8/22/2013"); +INSERT INTO station VALUES (66, "south van ness at market", 37.774814, -122.418954, 19, "san francisco", "8/23/2013"); +INSERT INTO station VALUES (67, "market at 10th", 37.776619000000004, -122.41738500000001, 27, "san francisco", "8/23/2013"); +INSERT INTO station VALUES (68, "yerba buena center of the arts 3rd @ howard", 37.784878000000006, -122.40101399999999, 19, "san francisco", "8/23/2013"); +INSERT INTO station VALUES (69, "san francisco caltrain 2 330 townsend", 37.7766, -122.39546999999999, 23, "san francisco", "8/23/2013"); +INSERT INTO station VALUES (70, "san francisco caltrain townsend at 4th", 37.776617, -122.39526000000001, 19, "san francisco", "8/23/2013"); +INSERT INTO station VALUES (71, "powell at post union square", 37.788446, -122.408499, 19, "san francisco", "8/23/2013"); +INSERT INTO station VALUES (72, "civic center bart 7th at market", 37.781039, -122.411748, 23, "san francisco", "8/23/2013"); +INSERT INTO station VALUES (73, "grant avenue at columbus avenue", 37.798522, -122.40724499999999, 15, "san francisco", "8/21/2013"); +INSERT INTO station VALUES (74, "steuart at market", 37.794139, -122.394434, 23, "san francisco", "8/25/2013"); +INSERT INTO station VALUES (75, "mechanics plaza market at battery", 37.7913, -122.399051, 19, "san francisco", "8/25/2013"); +INSERT INTO station VALUES (76, "market at 4th", 37.786305, -122.40496599999999, 19, "san francisco", "8/25/2013"); +INSERT INTO station VALUES (77, "market at sansome", 37.789625, -122.400811, 27, "san francisco", "8/25/2013"); +INSERT INTO station VALUES (80, "santa clara county civic center", 37.352601, -121.90573300000001, 15, "san jose", "12/31/2013"); +INSERT INTO station VALUES (82, "broadway st at battery st", 37.798541, -122.40086200000002, 15, "san francisco", "1/22/2014"); +INSERT INTO station VALUES (83, "mezes park", 37.491269, -122.23623400000001, 15, "redwood city", "2/20/2014"); +INSERT INTO station VALUES (84, "ryland park", 37.342725, -121.89561699999999, 15, "san jose", "4/9/2014"); + +CREATE TABLE "status" ( +"station_id" integer, +"bikes_available" integer, +"docks_available" integer, +"time" text +); + +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:46:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:47:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:48:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:49:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:50:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:51:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:52:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:53:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:54:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:55:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:56:01"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:57:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:58:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 12:59:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:00:01"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:01:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:02:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:03:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:04:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:05:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:06:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:07:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:08:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:09:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:10:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:11:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:12:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:13:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:14:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:15:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:16:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:17:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:18:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:19:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:20:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:21:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:22:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:23:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:24:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:25:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:26:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:27:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:28:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:29:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:30:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:31:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:32:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:33:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:34:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:35:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:36:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:37:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:38:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:39:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:40:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:41:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:42:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:43:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:44:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:45:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:46:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:47:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:48:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:49:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:50:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:51:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:52:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:53:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:54:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:55:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:56:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:57:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:58:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 13:59:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:00:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:01:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:02:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:03:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:04:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:05:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:06:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:07:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:08:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:09:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:10:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:11:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:12:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:13:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:14:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:15:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:16:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:17:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:18:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:19:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:20:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:21:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:22:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:23:03"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:24:02"); +INSERT INTO status VALUES (3, 12, 3, "2015-06-02 14:25:01"); + +CREATE TABLE "trip" ( +"id" integer, +"duration" integer, +"start_date" text, +"start_station_name" text, +"start_station_id" integer, +"end_date" text, +"end_station_name" text, +"end_station_id" integer, +"bike_id" integer, +"subscription_type" text, +"zip_code" integer +); + +INSERT INTO trip VALUES (900504, 384, "8/21/2015 17:03", "howard at 2nd", 63, "8/21/2015 17:10", "san francisco caltrain 2 330 townsend", 69, 454, "subscriber", 94041); +INSERT INTO trip VALUES (900505, 588, "8/21/2015 17:03", "south van ness at market", 66, "8/21/2015 17:13", "san francisco caltrain 2 330 townsend", 69, 574, "subscriber", 95119); +INSERT INTO trip VALUES (900506, 196, "8/21/2015 17:04", "market at sansome", 77, "8/21/2015 17:07", "harry bridges plaza ferry building", 50, 636, "subscriber", 94925); +INSERT INTO trip VALUES (900507, 823, "8/21/2015 17:04", "washington at kearny", 46, "8/21/2015 17:18", "2nd at townsend", 61, 187, "subscriber", 94103); +INSERT INTO trip VALUES (900508, 1059, "8/21/2015 17:04", "beale at market", 56, "8/21/2015 17:22", "san francisco caltrain townsend at 4th", 70, 363, "customer", 94107); +INSERT INTO trip VALUES (900509, 362, "8/21/2015 17:05", "clay at battery", 41, "8/21/2015 17:11", "howard at 2nd", 63, 16, "subscriber", 94107); +INSERT INTO trip VALUES (900511, 528, "8/21/2015 17:05", "embarcadero at vallejo", 48, "8/21/2015 17:14", "temporary transbay terminal howard at beale", 55, 67, "subscriber", 94608); +INSERT INTO trip VALUES (900514, 984, "8/21/2015 17:06", "davis at jackson", 42, "8/21/2015 17:22", "san francisco caltrain townsend at 4th", 70, 427, "subscriber", 94087); +INSERT INTO trip VALUES (900515, 982, "8/21/2015 17:06", "davis at jackson", 42, "8/21/2015 17:22", "san francisco caltrain 2 330 townsend", 69, 603, "subscriber", 94107); +INSERT INTO trip VALUES (900518, 422, "8/21/2015 17:07", "howard at 2nd", 63, "8/21/2015 17:14", "san francisco caltrain 2 330 townsend", 69, 503, "subscriber", 94010); +INSERT INTO trip VALUES (900519, 837, "8/21/2015 17:07", "2nd at townsend", 61, "8/21/2015 17:21", "market at sansome", 77, 351, "subscriber", 94609); +INSERT INTO trip VALUES (900520, 710, "8/21/2015 17:07", "powell street bart", 39, "8/21/2015 17:19", "townsend at 7th", 65, 507, "subscriber", 94107); +INSERT INTO trip VALUES (900521, 209, "8/21/2015 17:07", "temporary transbay terminal howard at beale", 55, "8/21/2015 17:11", "harry bridges plaza ferry building", 50, 415, "subscriber", 94901); +INSERT INTO trip VALUES (900522, 1155, "8/21/2015 17:07", "clay at battery", 41, "8/21/2015 17:26", "san francisco caltrain 2 330 townsend", 69, 29, "subscriber", 94061); +INSERT INTO trip VALUES (900523, 841, "8/21/2015 17:08", "park at olive", 38, "8/21/2015 17:22", "palo alto caltrain station", 34, 110, "subscriber", 94002); +INSERT INTO trip VALUES (900524, 693, "8/21/2015 17:08", "market at sansome", 77, "8/21/2015 17:20", "market at 10th", 67, 343, "subscriber", 94117); +INSERT INTO trip VALUES (900527, 614, "8/21/2015 17:08", "2nd at south park", 64, "8/21/2015 17:19", "civic center bart 7th at market", 72, 374, "subscriber", 94122); +INSERT INTO trip VALUES (900528, 400, "8/21/2015 17:09", "embarcadero at vallejo", 48, "8/21/2015 17:15", "embarcadero at folsom", 51, 520, "subscriber", 94547); +INSERT INTO trip VALUES (900529, 787, "8/21/2015 17:08", "market at sansome", 77, "8/21/2015 17:22", "grant avenue at columbus avenue", 73, 531, "subscriber", 94133); +INSERT INTO trip VALUES (900530, 278, "8/21/2015 17:09", "market at sansome", 77, "8/21/2015 17:13", "market at 4th", 76, 521, "subscriber", 94107); +INSERT INTO trip VALUES (900531, 804, "8/21/2015 17:09", "harry bridges plaza ferry building", 50, "8/21/2015 17:22", "5th at howard", 57, 636, "subscriber", 94107); +INSERT INTO trip VALUES (900534, 915, "8/21/2015 17:10", "steuart at market", 74, "8/21/2015 17:25", "south van ness at market", 66, 512, "subscriber", 94114); +INSERT INTO trip VALUES (900536, 1131, "8/21/2015 17:10", "embarcadero at sansome", 60, "8/21/2015 17:29", "san francisco caltrain 2 330 townsend", 69, 275, "subscriber", 95111); +INSERT INTO trip VALUES (900537, 535, "8/21/2015 17:10", "powell street bart", 39, "8/21/2015 17:19", "steuart at market", 74, 137, "subscriber", 94941); +INSERT INTO trip VALUES (900538, 419, "8/21/2015 17:10", "5th at howard", 57, "8/21/2015 17:17", "temporary transbay terminal howard at beale", 55, 451, "subscriber", 94170); +INSERT INTO trip VALUES (900539, 336, "8/21/2015 17:10", "2nd at townsend", 61, "8/21/2015 17:16", "harry bridges plaza ferry building", 50, 259, "subscriber", 94901); +INSERT INTO trip VALUES (900540, 673, "8/21/2015 17:11", "spear at folsom", 49, "8/21/2015 17:22", "townsend at 7th", 65, 537, "subscriber", 94105); +INSERT INTO trip VALUES (900541, 693, "8/21/2015 17:11", "south van ness at market", 66, "8/21/2015 17:23", "san francisco caltrain 2 330 townsend", 69, 563, "subscriber", 95118); +INSERT INTO trip VALUES (900542, 404, "8/21/2015 17:11", "embarcadero at sansome", 60, "8/21/2015 17:18", "steuart at market", 74, 425, "subscriber", 94102); +INSERT INTO trip VALUES (900543, 785, "8/21/2015 17:11", "san francisco caltrain townsend at 4th", 70, "8/21/2015 17:24", "powell at post union square", 71, 266, "subscriber", 94070); +INSERT INTO trip VALUES (900544, 251, "8/21/2015 17:12", "market at sansome", 77, "8/21/2015 17:16", "harry bridges plaza ferry building", 50, 538, "subscriber", 94925); +INSERT INTO trip VALUES (900545, 680, "8/21/2015 17:12", "temporary transbay terminal howard at beale", 55, "8/21/2015 17:23", "san francisco caltrain 2 330 townsend", 69, 285, "subscriber", 95110); +INSERT INTO trip VALUES (900546, 222, "8/21/2015 17:12", "2nd at south park", 64, "8/21/2015 17:16", "san francisco caltrain 2 330 townsend", 69, 434, "subscriber", 95014); +INSERT INTO trip VALUES (900547, 319, "8/21/2015 17:12", "yerba buena center of the arts 3rd @ howard", 68, "8/21/2015 17:17", "san francisco caltrain 2 330 townsend", 69, 360, "subscriber", 94401); +INSERT INTO trip VALUES (900548, 461, "8/21/2015 17:12", "embarcadero at bryant", 54, "8/21/2015 17:20", "san francisco caltrain 2 330 townsend", 69, 528, "subscriber", 94005); +INSERT INTO trip VALUES (900549, 262, "8/21/2015 17:12", "market at 10th", 67, "8/21/2015 17:17", "powell street bart", 39, 193, "subscriber", 94103); +INSERT INTO trip VALUES (900550, 803, "8/21/2015 17:12", "embarcadero at folsom", 51, "8/21/2015 17:26", "2nd at townsend", 61, 535, "customer", 94549); +INSERT INTO trip VALUES (900551, 511, "8/21/2015 17:13", "yerba buena center of the arts 3rd @ howard", 68, "8/21/2015 17:22", "san francisco caltrain townsend at 4th", 70, 593, "subscriber", 95014); +INSERT INTO trip VALUES (900552, 839, "8/21/2015 17:13", "san francisco caltrain townsend at 4th", 70, "8/21/2015 17:27", "steuart at market", 74, 448, "subscriber", 94609); +INSERT INTO trip VALUES (900553, 705, "8/21/2015 17:13", "spear at folsom", 49, "8/21/2015 17:25", "san francisco caltrain 2 330 townsend", 69, 416, "subscriber", 94404); +INSERT INTO trip VALUES (900554, 646, "8/21/2015 17:13", "san francisco caltrain townsend at 4th", 70, "8/21/2015 17:24", "market at sansome", 77, 687, "subscriber", 94549); +INSERT INTO trip VALUES (900555, 810, "8/21/2015 17:13", "townsend at 7th", 65, "8/21/2015 17:27", "harry bridges plaza ferry building", 50, 552, "subscriber", 94904); +INSERT INTO trip VALUES (900556, 445, "8/21/2015 17:10", "market at 4th", 76, "8/21/2015 17:18", "san francisco caltrain townsend at 4th", 70, 449, "subscriber", 94403); +INSERT INTO trip VALUES (900557, 243, "8/21/2015 17:15", "mountain view city hall", 27, "8/21/2015 17:19", "mountain view caltrain station", 28, 90, "subscriber", 94107); +INSERT INTO trip VALUES (900558, 389, "8/21/2015 17:16", "5th at howard", 57, "8/21/2015 17:22", "san francisco caltrain 2 330 townsend", 69, 522, "subscriber", 94402); +INSERT INTO trip VALUES (900560, 278, "8/21/2015 17:16", "beale at market", 56, "8/21/2015 17:21", "commercial at montgomery", 45, 370, "subscriber", 94133); +INSERT INTO trip VALUES (900561, 261, "8/21/2015 17:17", "mountain view city hall", 27, "8/21/2015 17:21", "mountain view caltrain station", 28, 94, "subscriber", 94040); +INSERT INTO trip VALUES (900562, 647, "8/21/2015 17:17", "commercial at montgomery", 45, "8/21/2015 17:27", "san francisco caltrain 2 330 townsend", 69, 386, "subscriber", 94087); +INSERT INTO trip VALUES (900563, 811, "8/21/2015 17:17", "market at sansome", 77, "8/21/2015 17:30", "market at 10th", 67, 260, "subscriber", 94110); +INSERT INTO trip VALUES (900564, 234, "8/21/2015 17:17", "embarcadero at vallejo", 48, "8/21/2015 17:21", "steuart at market", 74, 418, "subscriber", 94102); +INSERT INTO trip VALUES (900565, 808, "8/21/2015 17:17", "embarcadero at vallejo", 48, "8/21/2015 17:30", "san francisco caltrain 2 330 townsend", 69, 359, "subscriber", 94103); +INSERT INTO trip VALUES (900566, 685, "8/21/2015 17:17", "san francisco caltrain 2 330 townsend", 69, "8/21/2015 17:29", "harry bridges plaza ferry building", 50, 405, "subscriber", 94965); +INSERT INTO trip VALUES (900567, 607, "8/21/2015 17:17", "2nd at townsend", 61, "8/21/2015 17:27", "davis at jackson", 42, 598, "subscriber", 94111); +INSERT INTO trip VALUES (900568, 679, "8/21/2015 17:17", "market at 10th", 67, "8/21/2015 17:28", "san francisco caltrain 2 330 townsend", 69, 327, "subscriber", 94401); +INSERT INTO trip VALUES (900569, 253, "8/21/2015 17:18", "mountain view caltrain station", 28, "8/21/2015 17:23", "mountain view caltrain station", 28, 233, "subscriber", 94109); +INSERT INTO trip VALUES (900570, 464, "8/21/2015 17:19", "san pedro square", 6, "8/21/2015 17:26", "san jose diridon caltrain station", 2, 57, "subscriber", 95377); +INSERT INTO trip VALUES (900571, 554, "8/21/2015 17:19", "golden gate at polk", 59, "8/21/2015 17:28", "temporary transbay terminal howard at beale", 55, 672, "subscriber", 94610); +INSERT INTO trip VALUES (900572, 509, "8/21/2015 17:19", "2nd at townsend", 61, "8/21/2015 17:28", "market at sansome", 77, 187, "subscriber", 94107); +INSERT INTO trip VALUES (900573, 508, "8/21/2015 17:20", "townsend at 7th", 65, "8/21/2015 17:28", "2nd at townsend", 61, 507, "subscriber", 94107); +INSERT INTO trip VALUES (900574, 273, "8/21/2015 17:20", "2nd at south park", 64, "8/21/2015 17:24", "howard at 2nd", 63, 441, "subscriber", 94108); +INSERT INTO trip VALUES (900576, 201, "8/21/2015 17:20", "townsend at 7th", 65, "8/21/2015 17:23", "san francisco caltrain 2 330 townsend", 69, 408, "customer", 94134); +INSERT INTO trip VALUES (900577, 874, "8/21/2015 17:20", "beale at market", 56, "8/21/2015 17:35", "golden gate at polk", 59, 111, "subscriber", 94109); +INSERT INTO trip VALUES (900578, 438, "8/21/2015 17:20", "market at 4th", 76, "8/21/2015 17:28", "san francisco caltrain 2 330 townsend", 69, 625, "subscriber", 94107); +INSERT INTO trip VALUES (900579, 447, "8/21/2015 17:21", "embarcadero at folsom", 51, "8/21/2015 17:28", "san francisco caltrain 2 330 townsend", 69, 628, "subscriber", 94303); +INSERT INTO trip VALUES (900580, 406, "8/21/2015 17:21", "market at sansome", 77, "8/21/2015 17:28", "2nd at south park", 64, 351, "subscriber", 94121); +INSERT INTO trip VALUES (900581, 614, "8/21/2015 17:21", "2nd at south park", 64, "8/21/2015 17:31", "powell street bart", 39, 392, "subscriber", 94612); +INSERT INTO trip VALUES (900583, 767, "8/21/2015 17:22", "san francisco caltrain townsend at 4th", 70, "8/21/2015 17:35", "spear at folsom", 49, 449, "subscriber", 94061); +INSERT INTO trip VALUES (900584, 341, "8/21/2015 17:22", "2nd at south park", 64, "8/21/2015 17:28", "market at sansome", 77, 361, "subscriber", 94610); +INSERT INTO trip VALUES (900585, 222, "8/21/2015 17:19", "embarcadero at vallejo", 48, "8/21/2015 17:23", "steuart at market", 74, 473, "subscriber", 94597); +INSERT INTO trip VALUES (900586, 422, "8/21/2015 17:19", "embarcadero at vallejo", 48, "8/21/2015 17:26", "temporary transbay terminal howard at beale", 55, 279, "subscriber", 94611); +INSERT INTO trip VALUES (900587, 71, "8/21/2015 17:23", "2nd at south park", 64, "8/21/2015 17:24", "2nd at south park", 64, 282, "subscriber", 94901); +INSERT INTO trip VALUES (900588, 834, "8/21/2015 17:23", "steuart at market", 74, "8/21/2015 17:37", "san francisco caltrain 2 330 townsend", 69, 575, "subscriber", 94404); +INSERT INTO trip VALUES (900589, 279, "8/21/2015 17:22", "steuart at market", 74, "8/21/2015 17:26", "embarcadero at bryant", 54, 590, "subscriber", 94105); +INSERT INTO trip VALUES (900590, 265, "8/21/2015 17:24", "embarcadero at vallejo", 48, "8/21/2015 17:28", "steuart at market", 74, 278, "subscriber", 94556); +INSERT INTO trip VALUES (900591, 69, "8/21/2015 17:24", "2nd at south park", 64, "8/21/2015 17:25", "2nd at townsend", 61, 282, "subscriber", 94107); +INSERT INTO trip VALUES (900592, 479, "8/21/2015 17:24", "embarcadero at folsom", 51, "8/21/2015 17:32", "embarcadero at sansome", 60, 422, "subscriber", 94133); +INSERT INTO trip VALUES (900594, 371, "8/21/2015 17:26", "santa clara at almaden", 4, "8/21/2015 17:32", "san jose diridon caltrain station", 2, 20, "subscriber", 94306); +INSERT INTO trip VALUES (900598, 768, "8/21/2015 17:27", "davis at jackson", 42, "8/21/2015 17:40", "san francisco caltrain 2 330 townsend", 69, 546, "subscriber", 94025); +INSERT INTO trip VALUES (900601, 557, "8/21/2015 17:28", "steuart at market", 74, "8/21/2015 17:37", "san francisco caltrain 2 330 townsend", 69, 425, "subscriber", 94061); +INSERT INTO trip VALUES (900604, 394, "8/21/2015 17:29", "civic center bart 7th at market", 72, "8/21/2015 17:35", "market at 4th", 76, 315, "subscriber", 94110); +INSERT INTO trip VALUES (900607, 335, "8/21/2015 17:30", "embarcadero at sansome", 60, "8/21/2015 17:35", "harry bridges plaza ferry building", 50, 470, "subscriber", 94602); +INSERT INTO trip VALUES (900610, 648, "8/21/2015 17:30", "steuart at market", 74, "8/21/2015 17:41", "san francisco caltrain 2 330 townsend", 69, 473, "subscriber", 94024); +INSERT INTO trip VALUES (900613, 446, "8/21/2015 17:31", "2nd at folsom", 62, "8/21/2015 17:38", "harry bridges plaza ferry building", 50, 289, "subscriber", 94949); +INSERT INTO trip VALUES (900616, 202, "8/21/2015 17:32", "townsend at 7th", 65, "8/21/2015 17:35", "san francisco caltrain 2 330 townsend", 69, 537, "subscriber", 94127); +INSERT INTO trip VALUES (900617, 605, "8/21/2015 17:32", "civic center bart 7th at market", 72, "8/21/2015 17:42", "townsend at 7th", 65, 659, "subscriber", 94112); +INSERT INTO trip VALUES (900618, 627, "8/21/2015 17:32", "san francisco city hall", 58, "8/21/2015 17:43", "5th at howard", 57, 292, "subscriber", 94103); +INSERT INTO trip VALUES (900619, 557, "8/21/2015 17:33", "yerba buena center of the arts 3rd @ howard", 68, "8/21/2015 17:42", "san francisco caltrain townsend at 4th", 70, 602, "subscriber", 94402); +INSERT INTO trip VALUES (900620, 622, "8/21/2015 17:33", "san francisco caltrain 2 330 townsend", 69, "8/21/2015 17:44", "market at 10th", 67, 581, "subscriber", 94102); +INSERT INTO trip VALUES (900621, 636, "8/21/2015 17:33", "embarcadero at sansome", 60, "8/21/2015 17:44", "post at kearny", 47, 422, "subscriber", 94109); +INSERT INTO trip VALUES (900622, 777, "8/21/2015 17:33", "temporary transbay terminal howard at beale", 55, "8/21/2015 17:46", "san francisco caltrain townsend at 4th", 70, 573, "subscriber", 94030); +INSERT INTO trip VALUES (900623, 453, "8/21/2015 17:34", "howard at 2nd", 63, "8/21/2015 17:41", "san francisco caltrain 2 330 townsend", 69, 437, "subscriber", 94061); +INSERT INTO trip VALUES (900624, 365, "8/21/2015 17:34", "2nd at south park", 64, "8/21/2015 17:40", "market at sansome", 77, 351, "subscriber", 94607); +INSERT INTO trip VALUES (900625, 2146, "8/21/2015 17:34", "golden gate at polk", 59, "8/21/2015 18:10", "davis at jackson", 42, 417, "subscriber", 94530); +INSERT INTO trip VALUES (900626, 348, "8/21/2015 17:35", "yerba buena center of the arts 3rd @ howard", 68, "8/21/2015 17:40", "san francisco caltrain townsend at 4th", 70, 578, "subscriber", 94087); +INSERT INTO trip VALUES (900629, 530, "8/21/2015 17:36", "2nd at townsend", 61, "8/21/2015 17:45", "townsend at 7th", 65, 535, "subscriber", 94103); +INSERT INTO trip VALUES (900630, 691, "8/21/2015 17:36", "mountain view caltrain station", 28, "8/21/2015 17:47", "rengstorff avenue / california street", 33, 105, "subscriber", "94040-1724"); +INSERT INTO trip VALUES (900631, 712, "8/21/2015 17:33", "redwood city medical center", 26, "8/21/2015 17:45", "san mateo county center", 23, 299, "subscriber", 94040); +INSERT INTO trip VALUES (900632, 410, "8/21/2015 17:37", "market at 4th", 76, "8/21/2015 17:43", "temporary transbay terminal howard at beale", 55, 309, "subscriber", 94501); +INSERT INTO trip VALUES (900635, 971, "8/21/2015 17:37", "spear at folsom", 49, "8/21/2015 17:53", "market at 4th", 76, 449, "subscriber", 94117); +INSERT INTO trip VALUES (900636, 892, "8/21/2015 17:37", "embarcadero at folsom", 51, "8/21/2015 17:52", "civic center bart 7th at market", 72, 494, "subscriber", 94080); + +CREATE TABLE "weather" ( +"date" text, +"max_temperature_f" integer, +"mean_temperature_f" integer, +"min_temperature_f" integer, +"max_dew_point_f" integer, +"mean_dew_point_f" integer, +"min_dew_point_f" integer, +"max_humidity" integer, +"mean_humidity" integer, +"min_humidity" integer, +"max_sea_level_pressure_inches" real, +"mean_sea_level_pressure_inches" real, +"min_sea_level_pressure_inches" real, +"max_visibility_miles" integer, +"mean_visibility_miles" integer, +"min_visibility_miles" integer, +"max_wind_speed_mph" integer, +"mean_wind_speed_mph" integer, +"max_gust_speed_mph" integer, +"precipitation_inches" integer, +"cloud_cover" integer, +"events" text, +"wind_dir_degrees" integer, +"zip_code" integer +); + +INSERT INTO weather VALUES ("8/29/2013", 74, 68, 61, 61, 58, 56, 93, 75, 57, 30.07, 30.02, 29.97, 10, 10, 10, 23, 11, 28, 0, 4, "", 286, 94107); +INSERT INTO weather VALUES ("8/30/2013", 78, 69, 60, 61, 58, 56, 90, 70, 50, 30.05, 30, 29.93, 10, 10, 7, 29, 13, 35, 0, 2, "", 291, 94107); +INSERT INTO weather VALUES ("8/31/2013", 71, 64, 57, 57, 56, 54, 93, 75, 57, 30, 29.96, 29.92, 10, 10, 10, 26, 15, 31, 0, 4, "", 284, 94107); +INSERT INTO weather VALUES ("9/1/2013", 74, 66, 58, 60, 56, 53, 87, 68, 49, 29.96, 29.93, 29.91, 10, 10, 10, 25, 13, 29, 0, 4, "", 284, 94107); +INSERT INTO weather VALUES ("9/2/2013", 75, 69, 62, 61, 60, 58, 93, 77, 61, 29.97, 29.94, 29.9, 10, 10, 6, 23, 12, 30, 0, 6, "", 277, 94107); +INSERT INTO weather VALUES ("9/3/2013", 73, 67, 60, 59, 56, 51, 84, 65, 46, 30.02, 29.98, 29.95, 10, 10, 10, 24, 15, 31, 0, 2, "", 276, 94107); +INSERT INTO weather VALUES ("9/4/2013", 74, 68, 61, 59, 57, 56, 90, 72, 53, 30.05, 30.01, 29.97, 10, 10, 10, 29, 19, 35, 0, 4, "", 269, 94107); +INSERT INTO weather VALUES ("9/5/2013", 72, 66, 60, 57, 56, 54, 90, 74, 57, 30.04, 30, 29.97, 10, 10, 10, 31, 21, 37, 0, 3, "", 270, 94107); +INSERT INTO weather VALUES ("9/6/2013", 85, 71, 56, 57, 51, 45, 86, 58, 29, 30, 29.92, 29.83, 10, 10, 10, 24, 8, 28, 0, 0, "", 287, 94107); +INSERT INTO weather VALUES ("9/7/2013", 88, 73, 58, 64, 54, 46, 86, 59, 31, 29.88, 29.85, 29.81, 10, 10, 10, 21, 8, 25, 0, 1, "", 305, 94107); +INSERT INTO weather VALUES ("9/8/2013", 74, 65, 56, 58, 54, 52, 86, 70, 53, 29.88, 29.83, 29.76, 10, 10, 10, 26, 11, 31, 0, 2, "", 299, 94107); +INSERT INTO weather VALUES ("9/9/2013", 76, 66, 55, 58, 55, 52, 90, 70, 50, 29.82, 29.77, 29.72, 10, 10, 10, 26, 11, 30, 0, 1, "", 303, 94107); +INSERT INTO weather VALUES ("9/10/2013", 74, 66, 57, 59, 56, 54, 93, 73, 53, 29.91, 29.82, 29.76, 10, 10, 10, 17, 8, 21, 0, 1, "", 230, 94107); +INSERT INTO weather VALUES ("9/11/2013", 74, 68, 62, 57, 55, 54, 78, 68, 57, 30, 29.97, 29.91, 10, 10, 10, 18, 9, 23, 0, 5, "", 219, 94107); +INSERT INTO weather VALUES ("9/12/2013", 71, 65, 59, 58, 57, 55, 84, 73, 61, 29.99, 29.95, 29.91, 10, 10, 9, 25, 11, 30, 0, 7, "fog", 268, 94107); +INSERT INTO weather VALUES ("9/13/2013", 66, 62, 57, 55, 54, 54, 93, 80, 67, 29.92, 29.87, 29.8, 10, 10, 7, 30, 15, 37, 0, 6, "", 271, 94107); +INSERT INTO weather VALUES ("9/14/2013", 66, 62, 57, 55, 54, 53, 87, 77, 67, 29.86, 29.81, 29.77, 10, 10, 9, 25, 16, 33, 0, 7, "", 265, 94107); +INSERT INTO weather VALUES ("9/15/2013", 73, 66, 58, 59, 55, 52, 90, 72, 53, 29.88, 29.85, 29.81, 10, 10, 6, 23, 13, 26, 0, 5, "", 276, 94107); +INSERT INTO weather VALUES ("9/16/2013", 71, 65, 59, 58, 55, 53, 90, 74, 57, 29.91, 29.87, 29.81, 10, 10, 6, 31, 16, 39, 0, 3, "", 274, 94107); +INSERT INTO weather VALUES ("9/17/2013", 68, 63, 57, 55, 53, 50, 86, 72, 58, 29.91, 29.87, 29.84, 10, 10, 10, 39, 22, 51, 0, 3, "", 270, 94107); +INSERT INTO weather VALUES ("9/18/2013", 78, 66, 54, 55, 49, 47, 78, 60, 41, 29.92, 29.88, 29.85, 10, 10, 10, 25, 10, 30, 0, 1, "", 278, 94107); +INSERT INTO weather VALUES ("9/19/2013", 80, 67, 54, 56, 50, 46, 77, 58, 38, 29.87, 29.82, 29.76, 10, 10, 10, 26, 10, 33, 0, 0, "", 297, 94107); +INSERT INTO weather VALUES ("9/20/2013", 73, 65, 56, 59, 56, 50, 87, 70, 53, 29.88, 29.84, 29.79, 10, 10, 9, 17, 10, 23, 0, 6, "", 248, 94107); +INSERT INTO weather VALUES ("9/21/2013", 68, 63, 58, 59, 56, 53, 90, 75, 59, 29.91, 29.85, 29.82, 10, 9, 2, 24, 12, 28, 0.23, 6, "rain", 218, 94107); +INSERT INTO weather VALUES ("9/22/2013", 70, 63, 55, 55, 53, 49, 93, 70, 47, 30.02, 29.97, 29.92, 10, 10, 10, 29, 10, 35, 0, 1, "", 292, 94107); +INSERT INTO weather VALUES ("9/23/2013", 78, 68, 57, 58, 54, 50, 78, 64, 50, 30.03, 29.99, 29.95, 10, 10, 10, 24, 9, 30, 0, 0, "", 294, 94107); +INSERT INTO weather VALUES ("9/24/2013", 71, 65, 58, 54, 52, 50, 78, 66, 53, 30.01, 29.97, 29.93, 10, 10, 10, 36, 19, 43, 0, 1, "", 277, 94107); +INSERT INTO weather VALUES ("9/25/2013", 67, 62, 56, 51, 47, 45, 83, 64, 45, 29.95, 29.91, 29.84, 10, 10, 10, 35, 20, 45, 0, 1, "", 281, 94107); +INSERT INTO weather VALUES ("9/26/2013", 71, 62, 53, 46, 43, 38, 72, 53, 33, 29.99, 29.92, 29.85, 10, 10, 10, 24, 11, 29, 0, 0, "", 281, 94107); +INSERT INTO weather VALUES ("9/27/2013", 78, 66, 54, 47, 41, 34, 67, 46, 25, 30.11, 30.06, 30, 10, 10, 10, 23, 7, 28, 0, 0, "", 279, 94107); +INSERT INTO weather VALUES ("9/28/2013", 78, 66, 53, 55, 48, 38, 84, 60, 35, 30.1, 30.06, 30.02, 10, 10, 10, 28, 9, 32, 0, 1, "", 296, 94107); +INSERT INTO weather VALUES ("9/29/2013", 75, 66, 57, 59, 56, 53, 87, 70, 53, 30.11, 30.09, 30.06, 10, 10, 10, 16, 7, 21, 0, 3, "", 253, 94107); +INSERT INTO weather VALUES ("9/30/2013", 73, 66, 59, 60, 57, 43, 87, 69, 51, 30.07, 30.03, 29.98, 10, 10, 10, 22, 10, 26, "t", 4, "fog", 264, 94107); +INSERT INTO weather VALUES ("10/1/2013", 69, 63, 56, 50, 48, 46, 77, 61, 45, 30.03, 29.98, 29.94, 10, 10, 10, 22, 13, 26, 0, 3, "", 273, 94107); +INSERT INTO weather VALUES ("10/2/2013", 69, 62, 54, 49, 46, 44, 77, 61, 45, 30.02, 29.98, 29.94, 10, 10, 10, 29, 14, 35, 0, 2, "", 280, 94107); +INSERT INTO weather VALUES ("10/3/2013", 70, 62, 54, 44, 41, 35, 66, 47, 28, 30.09, 30.02, 29.96, 10, 10, 10, 25, 13, 30, 0, 0, "", 294, 94107); +INSERT INTO weather VALUES ("10/4/2013", 76, 69, 61, 51, 42, 28, 53, 38, 22, 30.1, 30.05, 29.98, 10, 10, 10, 22, 9, 25, 0, 0, "", 13, 94107); +INSERT INTO weather VALUES ("10/5/2013", 80, 69, 57, 52, 36, 24, 56, 36, 15, 30.2, 30.14, 30.1, 10, 10, 10, 12, 5, 13, 0, 0, "", 122, 94107); +INSERT INTO weather VALUES ("10/6/2013", 83, 70, 56, 52, 44, 27, 66, 40, 13, 30.13, 30.07, 30, 10, 10, 10, 14, 5, 15, 0.01, 4, "", 345, 94107); +INSERT INTO weather VALUES ("10/7/2013", 80, 68, 56, 49, 41, 31, 72, 46, 19, 30, 29.95, 29.89, 10, 10, 10, 28, 9, 31, 0, 3, "", 295, 94107); +INSERT INTO weather VALUES ("10/8/2013", 72, 62, 52, 50, 47, 44, 77, 59, 41, 29.92, 29.84, 29.74, 10, 10, 10, 20, 10, 24, 0, 2, "", 278, 94107); +INSERT INTO weather VALUES ("10/9/2013", 68, 60, 52, 48, 45, 39, 83, 60, 37, 29.77, 29.69, 29.64, 10, 10, 10, 17, 8, 21, 0, 2, "", 286, 94107); +INSERT INTO weather VALUES ("10/10/2013", 70, 62, 53, 52, 47, 43, 77, 61, 45, 30.02, 29.91, 29.77, 10, 10, 10, 13, 5, 15, 0, 1, "", 302, 94107); +INSERT INTO weather VALUES ("10/11/2013", 63, 57, 51, 49, 47, 45, 83, 70, 56, 30.09, 30.04, 30, 10, 10, 10, 25, 9, 30, 0, 4, "", 275, 94107); +INSERT INTO weather VALUES ("10/12/2013", 64, 56, 47, 50, 46, 42, 89, 71, 53, 30.02, 29.98, 29.91, 10, 8, 0, 32, 13, 40, 0, 3, "fog", 252, 94107); +INSERT INTO weather VALUES ("10/13/2013", 73, 62, 51, 51, 47, 40, 89, 60, 31, 30.07, 30.01, 29.94, 10, 10, 10, 22, 7, 26, 0, 1, "", 286, 94107); +INSERT INTO weather VALUES ("10/14/2013", 77, 64, 51, 50, 41, 36, 71, 49, 27, 30.12, 30.06, 30.01, 10, 10, 10, 18, 5, "", 0, 0, "", 272, 94107); +INSERT INTO weather VALUES ("10/15/2013", 80, 67, 53, 50, 37, 31, 61, 40, 18, 30.05, 30.01, 29.96, 10, 10, 10, 21, 5, 22, 0, 0, "", 294, 94107); +INSERT INTO weather VALUES ("10/16/2013", 80, 67, 53, 54, 42, 32, 63, 41, 19, 30.09, 30.05, 30, 10, 10, 10, 13, 4, 14, 0, 1, "", 305, 94107); +INSERT INTO weather VALUES ("10/17/2013", 81, 68, 54, 53, 45, 35, 72, 56, 39, 30.09, 30.03, 29.97, 10, 10, 10, 20, 7, 24, 0, 0, "", 306, 94107); +INSERT INTO weather VALUES ("10/18/2013", 68, 60, 51, 52, 48, 46, 83, 66, 48, 30.06, 30.02, 29.99, 10, 10, 10, 23, 10, 25, 0, 1, "", 294, 94107); +INSERT INTO weather VALUES ("10/19/2013", 74, 62, 49, 52, 48, 45, 86, 65, 44, 30.09, 30.04, 30, 10, 10, 10, 21, 9, 23, 0, 0, "", 301, 94107); +INSERT INTO weather VALUES ("10/20/2013", 64, 57, 49, 52, 47, 45, 93, 77, 60, 30.03, 29.99, 29.92, 10, 8, 0, 22, 11, 26, 0, 2, "fog", 290, 94107); +INSERT INTO weather VALUES ("10/21/2013", 61, 55, 48, 50, 47, 45, 93, 80, 67, 30.03, 29.98, 29.93, 10, 10, 7, 21, 9, 25, 0, 3, "", 284, 94107); +INSERT INTO weather VALUES ("10/22/2013", 64, 56, 47, 51, 48, 46, 100, 82, 64, 30.03, 29.99, 29.93, 10, 5, 0, 21, 10, 25, 0, 5, "fog", 281, 94107); +INSERT INTO weather VALUES ("10/23/2013", 61, 55, 49, 51, 48, 46, 93, 83, 72, 30, 29.96, 29.91, 10, 7, 2, 23, 9, 28, 0, 6, "fog", 282, 94107); +INSERT INTO weather VALUES ("10/24/2013", 60, 57, 53, 48, 47, 45, 83, 73, 62, 30.12, 30.05, 29.99, 10, 10, 8, 15, 9, 20, 0, 6, "", 269, 94107); +INSERT INTO weather VALUES ("10/25/2013", 67, 59, 50, 50, 47, 45, 86, 69, 52, 30.18, 30.13, 30.09, 10, 10, 10, 21, 9, 24, 0, 4, "", 263, 94107); +INSERT INTO weather VALUES ("10/26/2013", 70, 60, 49, 53, 48, 43, 89, 67, 44, 30.15, 30.09, 30.02, 10, 10, 10, 22, 9, 25, 0, 1, "fog", 292, 94107); +INSERT INTO weather VALUES ("10/27/2013", 60, 55, 50, 49, 47, 45, 89, 76, 62, 30.04, 29.9, 29.69, 10, 10, 10, 43, 18, 51, "t", 6, "rain", 267, 94107); +INSERT INTO weather VALUES ("10/28/2013", 61, 57, 52, 48, 46, 44, 83, 69, 55, 29.86, 29.75, 29.69, 10, 10, 10, 36, 15, 43, 0, 5, "", 263, 94107); +INSERT INTO weather VALUES ("10/29/2013", 63, 58, 52, 48, 45, 42, 83, 66, 48, 30.06, 29.97, 29.87, 10, 10, 10, 17, 7, 21, 0, 4, "", 256, 94107); +INSERT INTO weather VALUES ("10/30/2013", 65, 57, 48, 50, 45, 42, 83, 66, 48, 30.16, 30.11, 30.07, 10, 10, 10, 18, 7, 22, 0, 2, "", 286, 94107); +INSERT INTO weather VALUES ("10/31/2013", 70, 59, 48, 51, 43, 38, 71, 54, 37, 30.19, 30.13, 30.08, 10, 10, 10, 14, 4, "", 0, 0, "", 300, 94107); +INSERT INTO weather VALUES ("11/1/2013", 74, 63, 51, 53, 45, 41, 77, 57, 37, 30.14, 30.08, 30.01, 10, 10, 10, 15, 4, 18, 0, 0, "", 315, 94107); +INSERT INTO weather VALUES ("11/2/2013", 63, 57, 50, 51, 47, 41, 89, 73, 56, 30.03, 29.99, 29.93, 10, 9, 2, 28, 13, 33, 0, 3, "", 284, 94107); +INSERT INTO weather VALUES ("11/3/2013", 63, 55, 47, 45, 41, 34, 77, 56, 34, 30.06, 29.99, 29.94, 10, 10, 10, 22, 9, 24, 0, 4, "", 277, 94107); +INSERT INTO weather VALUES ("11/4/2013", 67, 56, 44, 43, 39, 32, 80, 56, 31, 30.07, 30, 29.94, 10, 10, 10, 23, 9, 28, 0, 0, "", 286, 94107); +INSERT INTO weather VALUES ("11/5/2013", 71, 61, 50, 45, 38, 29, 66, 44, 22, 30.22, 30.16, 30.08, 10, 10, 10, 15, 4, 17, 0, 1, "", 279, 94107); +INSERT INTO weather VALUES ("11/6/2013", 70, 61, 51, 49, 42, 36, 72, 52, 31, 30.26, 30.21, 30.16, 10, 10, 9, 5, 0, 6, 0, 5, "", 68, 94107); +INSERT INTO weather VALUES ("11/7/2013", 71, 64, 56, 51, 46, 40, 80, 61, 42, 30.18, 30.13, 30.09, 10, 10, 9, 22, 8, 26, 0, 4, "", 284, 94107); +INSERT INTO weather VALUES ("11/8/2013", 70, 60, 50, 53, 48, 40, 100, 72, 43, 30.1, 30.05, 29.98, 10, 7, 0, 24, 8, 26, 0, 2, "fog", 269, 94107); +INSERT INTO weather VALUES ("11/9/2013", 66, 57, 48, 53, 47, 40, 80, 64, 48, 30.05, 30.01, 29.97, 10, 10, 9, 12, 3, 14, 0, 1, "", 334, 94107); +INSERT INTO weather VALUES ("11/10/2013", 64, 58, 51, 51, 48, 45, 83, 72, 60, 30.13, 30.09, 30.04, 10, 10, 9, 13, 5, 16, 0, 3, "", 269, 94107); +INSERT INTO weather VALUES ("11/11/2013", 62, 58, 54, 51, 49, 46, 83, 72, 60, 30.17, 30.13, 30.09, 10, 9, 6, 12, 5, 15, 0, 7, "", 76, 94107); +INSERT INTO weather VALUES ("11/12/2013", 70, 64, 57, 53, 50, 46, 77, 62, 47, 30.27, 30.23, 30.17, 10, 10, 10, 18, 7, 22, "t", 4, "", 312, 94107); +INSERT INTO weather VALUES ("11/13/2013", 68, 60, 52, 55, 51, 47, 93, 77, 60, 30.25, 30.18, 30.12, 10, 10, 9, 23, 8, 26, 0, 3, "fog", 303, 94107); +INSERT INTO weather VALUES ("11/14/2013", 61, 56, 51, 52, 49, 45, 96, 84, 71, 30.13, 30.03, 29.9, 10, 10, 8, 29, 13, 37, 0, 5, "", 266, 94107); +INSERT INTO weather VALUES ("11/15/2013", 65, 58, 50, 46, 44, 41, 83, 66, 48, 29.89, 29.82, 29.76, 10, 10, 10, 35, 12, 40, 0, 1, "", 268, 94107); +INSERT INTO weather VALUES ("11/16/2013", 62, 56, 49, 50, 46, 42, 83, 67, 51, 29.94, 29.86, 29.79, 10, 10, 10, 26, 14, 35, 0, 2, "", 273, 94107); +INSERT INTO weather VALUES ("11/17/2013", 63, 56, 49, 49, 45, 42, 89, 69, 48, 30.1, 30.03, 29.94, 10, 10, 10, 13, 6, 16, 0, 4, "", 245, 94107); +INSERT INTO weather VALUES ("11/18/2013", 60, 53, 46, 46, 44, 40, 82, 69, 55, 30.16, 30.12, 30.1, 10, 10, 10, 15, 5, 18, 0, 5, "", 199, 94107); +INSERT INTO weather VALUES ("11/19/2013", 61, 58, 54, 55, 50, 45, 93, 80, 66, 30.1, 30.03, 29.95, 10, 9, 6, 14, 7, 16, 0.28, 7, "rain", 131, 94107); +INSERT INTO weather VALUES ("11/20/2013", 59, 55, 51, 56, 53, 47, 93, 90, 86, 29.94, 29.9, 29.85, 10, 9, 4, 22, 7, 24, 0.63, 7, "rain", 239, 94107); +INSERT INTO weather VALUES ("11/21/2013", 62, 56, 50, 49, 42, 32, 93, 64, 35, 29.99, 29.94, 29.91, 10, 10, 9, 32, 11, 39, "t", 5, "rain", 349, 94107); +INSERT INTO weather VALUES ("11/22/2013", 69, 63, 57, 39, 32, 25, 40, 30, 19, 30.03, 29.97, 29.91, 10, 10, 10, 26, 14, 32, 0, 1, "", 47, 94107); +INSERT INTO weather VALUES ("11/23/2013", 65, 58, 50, 45, 38, 31, 71, 50, 28, 30.11, 30.04, 29.97, 10, 10, 10, 22, 5, 32, 0, 0, "", 79, 94107); +INSERT INTO weather VALUES ("11/24/2013", 60, 53, 45, 49, 43, 39, 86, 70, 53, 30.26, 30.19, 30.12, 10, 10, 10, 9, 3, 10, 0, 0, "", 319, 94107); +INSERT INTO weather VALUES ("11/25/2013", 61, 53, 44, 46, 43, 38, 86, 70, 53, 30.33, 30.28, 30.25, 10, 10, 9, 7, 2, 10, 0, 1, "", 180, 94107); +INSERT INTO weather VALUES ("11/26/2013", 62, 55, 47, 47, 44, 39, 86, 65, 43, 30.27, 30.16, 30.04, 10, 9, 6, 7, 2, 8, 0, 5, "", 100, 94107); +INSERT INTO weather VALUES ("11/27/2013", 62, 55, 48, 49, 45, 41, 86, 69, 52, 30.03, 29.92, 29.85, 10, 9, 7, 7, 1, 7, 0, 5, "", 137, 94107); +INSERT INTO weather VALUES ("11/28/2013", 66, 58, 49, 51, 44, 37, 83, 64, 44, 30.08, 29.96, 29.88, 10, 9, 7, 16, 4, 18, 0, 3, "", 280, 94107); +INSERT INTO weather VALUES ("11/29/2013", 62, 54, 46, 51, 45, 38, 77, 70, 63, 30.22, 30.15, 30.09, 10, 10, 9, 24, 3, 28, 0, 0, "fog", 316, 94107); +INSERT INTO weather VALUES ("11/30/2013", 63, 54, 45, 51, 47, 41, 93, 79, 65, 30.28, 30.25, 30.19, 10, 6, 0, 15, 4, 20, 0, 3, "fog", 303, 94107); +INSERT INTO weather VALUES ("12/1/2013", 67, 57, 46, 50, 46, 41, 86, 66, 46, 30.35, 30.27, 30.22, 10, 10, 9, 14, 4, 16, 0, 1, "", 308, 94107); +INSERT INTO weather VALUES ("12/2/2013", 62, 54, 46, 54, 49, 44, 96, 80, 64, 30.22, 30.1, 29.99, 10, 8, 0, 33, 14, 38, "t", 5, "fog-rain", 277, 94107); +INSERT INTO weather VALUES ("12/3/2013", 56, 51, 46, 54, 38, 25, 93, 69, 45, 29.98, 29.92, 29.87, 10, 10, 4, 24, 14, 31, 0, 4, "", 285, 94107); +INSERT INTO weather VALUES ("12/4/2013", 52, 46, 39, 31, 26, 21, 62, 46, 30, 30.09, 30.04, 29.96, 10, 10, 10, 14, 5, 16, 0, 0, "", 309, 94107); +INSERT INTO weather VALUES ("12/5/2013", 51, 43, 35, 31, 24, 18, 64, 45, 26, 30.18, 30.14, 30.09, 10, 10, 10, 12, 4, 14, 0, 0, "", 196, 94107); +INSERT INTO weather VALUES ("12/6/2013", 53, 45, 37, 48, 37, 31, 80, 65, 50, 30.19, 30.1, 29.94, 10, 10, 6, 30, 9, 43, 0.29, 6, "rain", 180, 94107); + + +COMMIT; diff --git a/all/databases/bike_1/bike_1.sqlite b/all/databases/bike_1/bike_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..e6eedb490f373beeca72aa2813ee081cada1bbd9 Binary files /dev/null and b/all/databases/bike_1/bike_1.sqlite differ diff --git a/all/databases/browser_web/browser_web.sql b/all/databases/browser_web/browser_web.sql new file mode 100644 index 0000000000000000000000000000000000000000..ae230063097c0c957a0f9ae57b93d8a0e4bb1a2b --- /dev/null +++ b/all/databases/browser_web/browser_web.sql @@ -0,0 +1,57 @@ +CREATE TABLE "web_client_accelerator" ( +"id" integer, +"name" text, +"operating_system" text, +"client" text, +"connection" text +); + +INSERT INTO web_client_accelerator VALUES (1, "cachebox", "appliance linux", "end user isp", "broadband satellite wireless fiber dsl"); +INSERT INTO web_client_accelerator VALUES (2, "cproxy", "windows", "user", "up to 756kbit/s"); +INSERT INTO web_client_accelerator VALUES (3, "fasterfox", "windows mac linux and mobile devices", "user", "dialup wireless broadband dsl"); +INSERT INTO web_client_accelerator VALUES (4, "fastun", "any", "all", "any"); +INSERT INTO web_client_accelerator VALUES (5, "freewire", "windows except nt and 95", "isp", "dial-up"); +INSERT INTO web_client_accelerator VALUES (6, "google web accelerator discontinued", "windows", "user/google server", "broadband"); +INSERT INTO web_client_accelerator VALUES (7, "heigh speed", "windows", "all", "any"); +INSERT INTO web_client_accelerator VALUES (8, "netfury", "windows mac", "end user isp", "dial-up broadband dsl isdn satellite wireless"); +INSERT INTO web_client_accelerator VALUES (9, "nitro", "windows mac", "end user isp", "dial-up broadband dsl isdn satellite wireless"); +INSERT INTO web_client_accelerator VALUES (10, "onspeed", "windows mac and mobile devices", "user", "dialup wireless broadband dsl"); +INSERT INTO web_client_accelerator VALUES (11, "opera turbo", "android linux mac and windows devices", "user/opera server", "any"); +INSERT INTO web_client_accelerator VALUES (12, "polipo", "unix linux *bsd mac os x others windows", "user/isp", "any"); +INSERT INTO web_client_accelerator VALUES (13, "propel", "windows mac", "end user isp", "dial dsl isdn satellite wireless"); +INSERT INTO web_client_accelerator VALUES (14, "proxyconn web accelerator", "windows mac mobile devices", "user", "dialup wireless broadband dsl"); +INSERT INTO web_client_accelerator VALUES (15, "rabbit", "any system with java 1.6 vm available", "isp", "any"); +INSERT INTO web_client_accelerator VALUES (16, "squid", "unix linux *bsd mac os x others windows", "user/isp", "any"); +INSERT INTO web_client_accelerator VALUES (17, "toonel", "windows linux mac os symbian windowsmobile", "user/isp", "any"); +INSERT INTO web_client_accelerator VALUES (18, "wingate", "windows 2000 onwards", "all", "any"); +INSERT INTO web_client_accelerator VALUES (19, "ziproxy", "unix linux *bsd mac os x others", "isp", "any"); + +CREATE TABLE "browser" ( +"id" integer, +"name" text, +"market_share" real +); + +INSERT INTO browser VALUES (1, "internet explorer", 28.96); +INSERT INTO browser VALUES (2, "firefox", 18.11); +INSERT INTO browser VALUES (3, "safari", 8.54); +INSERT INTO browser VALUES (4, "opera", 1.2); + +CREATE TABLE "accelerator_compatible_browser" ( +"accelerator_id" integer, +"browser_id" integer, +"compatible_since_year" integer +); + +INSERT INTO accelerator_compatible_browser VALUES (1, 1, 1995); +INSERT INTO accelerator_compatible_browser VALUES (1, 2, 1996); +INSERT INTO accelerator_compatible_browser VALUES (2, 3, 1996); +INSERT INTO accelerator_compatible_browser VALUES (2, 4, 2000); +INSERT INTO accelerator_compatible_browser VALUES (3, 1, 2005); +INSERT INTO accelerator_compatible_browser VALUES (3, 2, 2007); +INSERT INTO accelerator_compatible_browser VALUES (3, 3, 2008); +INSERT INTO accelerator_compatible_browser VALUES (4, 4, 2009); +INSERT INTO accelerator_compatible_browser VALUES (9, 1, 2010); + + +COMMIT; diff --git a/all/databases/browser_web/browser_web.sqlite b/all/databases/browser_web/browser_web.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..2b1c1dc29471c691e5b5690891bc9e2cdb1f3933 Binary files /dev/null and b/all/databases/browser_web/browser_web.sqlite differ diff --git a/all/databases/candidate_poll/candidate_poll.sql b/all/databases/candidate_poll/candidate_poll.sql new file mode 100644 index 0000000000000000000000000000000000000000..f43a8782c981ffae97c28ac59ff595e8ed0ff51e --- /dev/null +++ b/all/databases/candidate_poll/candidate_poll.sql @@ -0,0 +1,39 @@ +CREATE TABLE "candidate" ( +"candidate_id" integer, +"people_id" integer, +"poll_source" text, +"date" text, +"support_rate" real, +"consider_rate" real, +"oppose_rate" real, +"unsure_rate" real +); + +INSERT INTO candidate VALUES (1, 1, "wnbc/marist poll", "feb 12–15 2007", 0.25, 0.3, 0.43, 0.2); +INSERT INTO candidate VALUES (2, 3, "wnbc/marist poll", "feb 12–15 2007", 0.17, 0.42, 0.32, 0.9); +INSERT INTO candidate VALUES (3, 4, "fox news/opinion dynamics poll", "feb 13–14 2007", 0.18, 0.34, 0.44, 0.3); +INSERT INTO candidate VALUES (4, 6, "newsweek poll", "nov 9–10 2006", 0.33, 0.2, 0.45, 0.2); +INSERT INTO candidate VALUES (5, 7, "newsweek poll", "nov 9–10 2006", 0.24, 0.3, 0.32, 0.4); +INSERT INTO candidate VALUES (6, 9, "newsweek poll", "nov 9–10 2006", 0.24, 0.27, 0.43, 0.2); + +CREATE TABLE "people" ( +"people_id" integer, +"sex" text, +"name" text, +"date_of_birth" text, +"height" real, +"weight" real +); + +INSERT INTO people VALUES (1, "m", "hubert henno", "06.10.1976", 188.0, 83.0); +INSERT INTO people VALUES (2, "m", "dominique daquin", "10.11.1972", 197.0, 85.0); +INSERT INTO people VALUES (3, "f", "stéphane antiga", "03.02.1976", 200.0, 94.0); +INSERT INTO people VALUES (4, "m", "laurent capet", "05.05.1972", 202.0, 92.0); +INSERT INTO people VALUES (5, "f", "frantz granvorka", "10.03.1976", 195.0, 90.0); +INSERT INTO people VALUES (6, "m", "vincent montméat", "01.09.1977", 196.0, 88.0); +INSERT INTO people VALUES (7, "m", "loïc de kergret", "20.08.1970", 193.0, 89.0); +INSERT INTO people VALUES (8, "m", "philippe barça-cysique", "22.04.1977", 194.0, 88.0); +INSERT INTO people VALUES (9, "m", "guillaume samica", "28.09.1981", 196.0, 82.0); + + +COMMIT; diff --git a/all/databases/candidate_poll/candidate_poll.sqlite b/all/databases/candidate_poll/candidate_poll.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..e821c7d5e30e423d8f1dfdca72b343325f5ea7cc Binary files /dev/null and b/all/databases/candidate_poll/candidate_poll.sqlite differ diff --git a/all/databases/car_1_minus_1_0/car_1_minus_1_0.sql b/all/databases/car_1_minus_1_0/car_1_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..bc73a9327480efeb90819103fdb3045ce9633ddf --- /dev/null +++ b/all/databases/car_1_minus_1_0/car_1_minus_1_0.sql @@ -0,0 +1,308 @@ +create table car_makers ( +id integer, +maker text, +fullname text, +country text +); +insert into car_makers values(1, 'amc', 'american motor company', 1); +insert into car_makers values(2, 'volkswagen', 'volkswagen', 2); +insert into car_makers values(3, 'bmw', 'bmw', 2); +insert into car_makers values(4, 'gm', 'general motors', 1); +insert into car_makers values(5, 'ford', 'ford motor company', 1); +insert into car_makers values(6, 'chrysler', 'chrysler', 1); +insert into car_makers values(7, 'citroen', 'citroen', 3); +insert into car_makers values(8, 'nissan', 'nissan motors', 4); +insert into car_makers values(9, 'fiat', 'fiat', 5); +insert into car_makers values(11, 'honda', 'honda', 4); +insert into car_makers values(12, 'mazda', 'mazda', 4); +insert into car_makers values(13, 'daimler benz', 'daimler benz', 2); +insert into car_makers values(14, 'opel', 'opel', 2); +insert into car_makers values(15, 'peugeaut', 'peugeaut', 3); +insert into car_makers values(16, 'renault', 'renault', 3); +insert into car_makers values(17, 'saab', 'saab', 6); +insert into car_makers values(18, 'subaru', 'subaru', 4); +insert into car_makers values(19, 'toyota', 'toyota', 4); +insert into car_makers values(20, 'triumph', 'triumph', 7); +insert into car_makers values(21, 'volvo', 'volvo', 6); +insert into car_makers values(22, 'kia', 'kia motors', 8); +insert into car_makers values(23, 'hyundai', 'hyundai', 8); + +create table model_list ( +modelid integer, +maker integer, +model text +); +insert into model_list values(1, 1, 'amc'); +insert into model_list values(2, 2, 'audi'); +insert into model_list values(3, 3, 'bmw'); +insert into model_list values(4, 4, 'buick'); +insert into model_list values(5, 4, 'cadillac'); +insert into model_list values(6, 5, 'capri'); +insert into model_list values(7, 4, 'chevrolet'); +insert into model_list values(8, 6, 'chrysler'); +insert into model_list values(9, 7, 'citroen'); +insert into model_list values(10, 8, 'datsun'); +insert into model_list values(11, 6, 'dodge'); +insert into model_list values(12, 9, 'fiat'); +insert into model_list values(13, 5, 'ford'); +insert into model_list values(14, 10, 'hi'); +insert into model_list values(15, 11, 'honda'); +insert into model_list values(34, 12, 'hyundai'); +insert into model_list values(35, 13, 'jeep'); +insert into model_list values(33, 13, 'kia'); +insert into model_list values(16, 5, 'mazda'); +insert into model_list values(17, 8, 'mercedes'); +insert into model_list values(18, 4, 'mercedes-benz'); +insert into model_list values(19, 14, 'mercury'); +insert into model_list values(20, 15, 'nissan'); +insert into model_list values(21, 6, 'oldsmobile'); +insert into model_list values(22, 4, 'opel'); +insert into model_list values(23, 16, 'peugeot'); +insert into model_list values(24, 17, 'plymouth'); +insert into model_list values(25, 18, 'pontiac'); +insert into model_list values(26, 19, 'renault'); +insert into model_list values(27, 20, 'saab'); +insert into model_list values(36, 2, 'scion'); +insert into model_list values(28, 21, 'subaru'); +insert into model_list values(29, 22, 'toyota'); +insert into model_list values(30, 23, 'triumph'); +insert into model_list values(31, 6, 'volkswagen'); +insert into model_list values(32, 19, 'volvo'); + +create table car_names ( +makeid integer, +model text, +make text +); +insert into car_names values(1, 'chevrolet', 'chevrolet chevelle malibu'); +insert into car_names values(2, 'buick', 'buick skylark 320'); +insert into car_names values(3, 'plymouth', 'plymouth satellite'); +insert into car_names values(4, 'amc', 'amc rebel sst'); +insert into car_names values(5, 'ford', 'ford torino'); +insert into car_names values(6, 'ford', 'ford galaxie 500'); +insert into car_names values(7, 'chevrolet', 'chevrolet impala'); +insert into car_names values(8, 'plymouth', 'plymouth fury iii'); +insert into car_names values(9, 'pontiac', 'pontiac catalina'); +insert into car_names values(10, 'amc', 'amc ambassador dpl'); +insert into car_names values(11, 'citroen', 'citroen ds-21 pallas'); +insert into car_names values(12, 'chevrolet', 'chevrolet chevelle concours sw'); +insert into car_names values(13, 'ford', 'ford torino sw'); +insert into car_names values(14, 'plymouth', 'plymouth satellite sw'); +insert into car_names values(15, 'amc', 'amc rebel sst sw'); +insert into car_names values(16, 'dodge', 'dodge challenger se'); +insert into car_names values(17, 'plymouth', 'plymouth cuda 340'); +insert into car_names values(18, 'ford', 'ford mustang boss 302'); +insert into car_names values(19, 'chevrolet', 'chevrolet monte carlo'); +insert into car_names values(20, 'buick', 'buick estate wagon sw'); +insert into car_names values(21, 'toyota', 'toyota corona mark ii'); +insert into car_names values(22, 'plymouth', 'plymouth duster'); +insert into car_names values(23, 'amc', 'amc hornet'); +insert into car_names values(24, 'ford', 'ford maverick'); +insert into car_names values(25, 'datsun', 'datsun pl510'); +insert into car_names values(26, 'volkswagen', 'volkswagen 1131 deluxe sedan'); +insert into car_names values(27, 'peugeot', 'peugeot 504'); +insert into car_names values(28, 'audi', 'audi 100 ls'); +insert into car_names values(29, 'saab', 'saab 99e'); +insert into car_names values(30, 'bmw', 'bmw 2002'); +insert into car_names values(31, 'amc', 'amc gremlin'); +insert into car_names values(32, 'ford', 'ford f250'); +insert into car_names values(33, 'chevrolet', 'chevy c20'); +insert into car_names values(34, 'dodge', 'dodge d200'); +insert into car_names values(35, 'hi', 'hi 1200d'); +insert into car_names values(36, 'datsun', 'datsun pl510'); +insert into car_names values(37, 'chevrolet', 'chevrolet vega 2300'); +insert into car_names values(38, 'toyota', 'toyota corona'); +insert into car_names values(39, 'ford', 'ford pinto'); +insert into car_names values(40, 'volkswagen', 'volkswagen super beetle 117'); +insert into car_names values(41, 'amc', 'amc gremlin'); +insert into car_names values(42, 'plymouth', 'plymouth satellite custom'); +insert into car_names values(43, 'chevrolet', 'chevrolet chevelle malibu'); +insert into car_names values(44, 'ford', 'ford torino 500'); +insert into car_names values(45, 'amc', 'amc matador'); +insert into car_names values(46, 'chevrolet', 'chevrolet impala'); +insert into car_names values(47, 'pontiac', 'pontiac catalina brougham'); +insert into car_names values(48, 'ford', 'ford galaxie 500'); +insert into car_names values(49, 'plymouth', 'plymouth fury iii'); +insert into car_names values(50, 'dodge', 'dodge monaco sw'); +insert into car_names values(51, 'ford', 'ford country squire sw'); +insert into car_names values(52, 'pontiac', 'pontiac safari sw'); +insert into car_names values(53, 'amc', 'amc hornet sportabout sw'); +insert into car_names values(54, 'chevrolet', 'chevrolet vega sw'); +insert into car_names values(55, 'pontiac', 'pontiac firebird'); +insert into car_names values(56, 'ford', 'ford mustang'); +insert into car_names values(57, 'mercury', 'mercury capri 2000'); +insert into car_names values(58, 'opel', 'opel 1900'); +insert into car_names values(59, 'peugeot', 'peugeot 304'); +insert into car_names values(60, 'fiat', 'fiat 124b'); +insert into car_names values(61, 'toyota', 'toyota corolla 1200'); +insert into car_names values(62, 'datsun', 'datsun 1200'); +insert into car_names values(63, 'volkswagen', 'volkswagen model 111'); +insert into car_names values(64, 'plymouth', 'plymouth cricket'); +insert into car_names values(65, 'toyota', 'toyota corona hardtop'); +insert into car_names values(66, 'dodge', 'dodge colt hardtop'); +insert into car_names values(67, 'volkswagen', 'volkswagen type 3'); +insert into car_names values(68, 'chevrolet', 'chevrolet vega'); +insert into car_names values(69, 'ford', 'ford pinto runabout'); +insert into car_names values(70, 'chevrolet', 'chevrolet impala'); +insert into car_names values(71, 'pontiac', 'pontiac catalina'); +insert into car_names values(72, 'plymouth', 'plymouth fury iii'); +insert into car_names values(73, 'ford', 'ford galaxie 500'); +insert into car_names values(74, 'amc', 'amc ambassador sst'); +insert into car_names values(75, 'mercury', 'mercury marquis'); +insert into car_names values(76, 'buick', 'buick lesabre custom'); +insert into car_names values(77, 'oldsmobile', 'oldsmobile delta 88 royale'); +insert into car_names values(78, 'chrysler', 'chrysler newport royal'); +insert into car_names values(79, 'mazda', 'mazda rx2 coupe'); +insert into car_names values(80, 'amc', 'amc matador sw'); +insert into car_names values(81, 'chevrolet', 'chevrolet chevelle concours sw'); +insert into car_names values(82, 'ford', 'ford gran torino sw'); +insert into car_names values(83, 'plymouth', 'plymouth satellite custom sw'); +insert into car_names values(84, 'volvo', 'volvo 145e sw'); +insert into car_names values(85, 'volkswagen', 'volkswagen 411 sw'); +insert into car_names values(86, 'peugeot', 'peugeot 504 sw'); +insert into car_names values(87, 'renault', 'renault 12 sw'); +insert into car_names values(88, 'ford', 'ford pinto sw'); +insert into car_names values(89, 'datsun', 'datsun 510 sw'); +insert into car_names values(90, 'toyota', 'toyota corona mark ii sw'); +insert into car_names values(91, 'dodge', 'dodge colt sw'); +insert into car_names values(92, 'toyota', 'toyota corolla 1600 sw'); +insert into car_names values(93, 'buick', 'buick century 350'); +insert into car_names values(94, 'amc', 'amc matador'); +insert into car_names values(95, 'chevrolet', 'chevrolet malibu'); +insert into car_names values(96, 'ford', 'ford gran torino'); +insert into car_names values(97, 'dodge', 'dodge coronet custom'); +insert into car_names values(98, 'mercury', 'mercury marquis brougham'); +insert into car_names values(99, 'chevrolet', 'chevrolet caprice classic'); +insert into car_names values(100, 'ford', 'ford ltd'); + +create table cars_data ( +id integer, +mpg text, +cylinders integer, +edispl real, +horsepower text, +weight integer, +accelerate real, +year integer +); +insert into cars_data values(1, 18, 8, 307.0, 130, 3504, 12.0, 1970); +insert into cars_data values(2, 15, 8, 350.0, 165, 3693, 11.5, 1970); +insert into cars_data values(3, 18, 8, 318.0, 150, 3436, 11.0, 1970); +insert into cars_data values(4, 16, 8, 304.0, 150, 3433, 12.0, 1970); +insert into cars_data values(5, 17, 8, 302.0, 140, 3449, 10.5, 1970); +insert into cars_data values(6, 15, 8, 429.0, 198, 4341, 10.0, 1970); +insert into cars_data values(7, 14, 8, 454.0, 220, 4354, 9.0, 1970); +insert into cars_data values(8, 14, 8, 440.0, 215, 4312, 8.5, 1970); +insert into cars_data values(9, 14, 8, 455.0, 225, 4425, 10.0, 1970); +insert into cars_data values(10, 15, 8, 390.0, 190, 3850, 8.5, 1970); +insert into cars_data values(11, 'null', 4, 133.0, 115, 3090, 17.5, 1970); +insert into cars_data values(12, 'null', 8, 350.0, 165, 4142, 11.5, 1970); +insert into cars_data values(13, 'null', 8, 351.0, 153, 4034, 11.0, 1970); +insert into cars_data values(14, 'null', 8, 383.0, 175, 4166, 10.5, 1970); +insert into cars_data values(15, 'null', 8, 360.0, 175, 3850, 11.0, 1970); +insert into cars_data values(16, 15, 8, 383.0, 170, 3563, 10.0, 1970); +insert into cars_data values(17, 14, 8, 340.0, 160, 3609, 8.0, 1970); +insert into cars_data values(18, 'null', 8, 302.0, 140, 3353, 8.0, 1970); +insert into cars_data values(19, 15, 8, 400.0, 150, 3761, 9.5, 1970); +insert into cars_data values(20, 14, 8, 455.0, 225, 3086, 10.0, 1970); +insert into cars_data values(21, 24, 4, 113.0, 95, 2372, 15.0, 1970); +insert into cars_data values(22, 22, 6, 198.0, 95, 2833, 15.5, 1970); +insert into cars_data values(23, 18, 6, 199.0, 97, 2774, 15.5, 1970); +insert into cars_data values(24, 21, 6, 200.0, 85, 2587, 16.0, 1970); +insert into cars_data values(25, 27, 4, 97.0, 88, 2130, 14.5, 1970); +insert into cars_data values(26, 26, 4, 97.0, 46, 1835, 20.5, 1970); +insert into cars_data values(27, 25, 4, 110.0, 87, 2672, 17.5, 1970); +insert into cars_data values(28, 24, 4, 107.0, 90, 2430, 14.5, 1970); +insert into cars_data values(29, 25, 4, 104.0, 95, 2375, 17.5, 1970); +insert into cars_data values(30, 26, 4, 121.0, 113, 2234, 12.5, 1970); +insert into cars_data values(31, 21, 6, 199.0, 90, 2648, 15.0, 1970); +insert into cars_data values(32, 10, 8, 360.0, 215, 4615, 14.0, 1970); +insert into cars_data values(33, 10, 8, 307.0, 200, 4376, 15.0, 1970); +insert into cars_data values(34, 11, 8, 318.0, 210, 4382, 13.5, 1970); +insert into cars_data values(35, 9, 8, 304.0, 193, 4732, 18.5, 1970); +insert into cars_data values(36, 27, 4, 97.0, 88, 2130, 14.5, 1971); +insert into cars_data values(37, 28, 4, 140.0, 90, 2264, 15.5, 1971); +insert into cars_data values(38, 25, 4, 113.0, 95, 2228, 14.0, 1971); +insert into cars_data values(39, 25, 4, 98.0, 'null', 2046, 19.0, 1971); +insert into cars_data values(40, 'null', 4, 97.0, 48, 1978, 20.0, 1971); +insert into cars_data values(41, 19, 6, 232.0, 100, 2634, 13.0, 1971); +insert into cars_data values(42, 16, 6, 225.0, 105, 3439, 15.5, 1971); +insert into cars_data values(43, 17, 6, 250.0, 100, 3329, 15.5, 1971); +insert into cars_data values(44, 19, 6, 250.0, 88, 3302, 15.5, 1971); +insert into cars_data values(45, 18, 6, 232.0, 100, 3288, 15.5, 1971); +insert into cars_data values(46, 14, 8, 350.0, 165, 4209, 12.0, 1971); +insert into cars_data values(47, 14, 8, 400.0, 175, 4464, 11.5, 1971); +insert into cars_data values(48, 14, 8, 351.0, 153, 4154, 13.5, 1971); +insert into cars_data values(49, 14, 8, 318.0, 150, 4096, 13.0, 1971); +insert into cars_data values(50, 12, 8, 383.0, 180, 4955, 11.5, 1971); +insert into cars_data values(51, 13, 8, 400.0, 170, 4746, 12.0, 1971); +insert into cars_data values(52, 13, 8, 400.0, 175, 5140, 12.0, 1971); +insert into cars_data values(53, 18, 6, 258.0, 110, 2962, 13.5, 1971); +insert into cars_data values(54, 22, 4, 140.0, 72, 2408, 19.0, 1971); +insert into cars_data values(55, 19, 6, 250.0, 100, 3282, 15.0, 1971); +insert into cars_data values(56, 18, 6, 250.0, 88, 3139, 14.5, 1971); +insert into cars_data values(57, 23, 4, 122.0, 86, 2220, 14.0, 1971); +insert into cars_data values(58, 28, 4, 116.0, 90, 2123, 14.0, 1971); +insert into cars_data values(59, 30, 4, 79.0, 70, 2074, 19.5, 1971); +insert into cars_data values(60, 30, 4, 88.0, 76, 2065, 14.5, 1971); +insert into cars_data values(61, 31, 4, 71.0, 65, 1773, 19.0, 1971); +insert into cars_data values(62, 35, 4, 72.0, 69, 1613, 18.0, 1971); +insert into cars_data values(63, 27, 4, 97.0, 60, 1834, 19.0, 1971); +insert into cars_data values(64, 26, 4, 91.0, 70, 1955, 20.5, 1971); +insert into cars_data values(65, 24, 4, 113.0, 95, 2278, 15.5, 1972); +insert into cars_data values(66, 25, 4, 97.5, 80, 2126, 17.0, 1972); +insert into cars_data values(67, 23, 4, 97.0, 54, 2254, 23.5, 1972); +insert into cars_data values(68, 20, 4, 140.0, 90, 2408, 19.5, 1972); +insert into cars_data values(69, 21, 4, 122.0, 86, 2226, 16.5, 1972); +insert into cars_data values(70, 13, 8, 350.0, 165, 4274, 12.0, 1972); +insert into cars_data values(71, 14, 8, 400.0, 175, 4385, 12.0, 1972); +insert into cars_data values(72, 15, 8, 318.0, 150, 4135, 13.5, 1972); +insert into cars_data values(73, 14, 8, 351.0, 153, 4129, 13.0, 1972); +insert into cars_data values(74, 17, 8, 304.0, 150, 3672, 11.5, 1972); +insert into cars_data values(75, 11, 8, 429.0, 208, 4633, 11.0, 1972); +insert into cars_data values(76, 13, 8, 350.0, 155, 4502, 13.5, 1972); +insert into cars_data values(77, 12, 8, 350.0, 160, 4456, 13.5, 1972); +insert into cars_data values(78, 13, 8, 400.0, 190, 4422, 12.5, 1972); +insert into cars_data values(79, 19, 3, 70.0, 97, 2330, 13.5, 1972); +insert into cars_data values(80, 15, 8, 304.0, 150, 3892, 12.5, 1972); +insert into cars_data values(81, 13, 8, 307.0, 130, 4098, 14.0, 1972); +insert into cars_data values(82, 13, 8, 302.0, 140, 4294, 16.0, 1972); +insert into cars_data values(83, 14, 8, 318.0, 150, 4077, 14.0, 1972); +insert into cars_data values(84, 18, 4, 121.0, 112, 2933, 14.5, 1972); +insert into cars_data values(85, 22, 4, 121.0, 76, 2511, 18.0, 1972); +insert into cars_data values(86, 21, 4, 120.0, 87, 2979, 19.5, 1972); +insert into cars_data values(87, 26, 4, 96.0, 69, 2189, 18.0, 1972); +insert into cars_data values(88, 22, 4, 122.0, 86, 2395, 16.0, 1972); +insert into cars_data values(89, 28, 4, 97.0, 92, 2288, 17.0, 1972); +insert into cars_data values(90, 23, 4, 120.0, 97, 2506, 14.5, 1972); +insert into cars_data values(91, 28, 4, 98.0, 80, 2164, 15.0, 1972); +insert into cars_data values(92, 27, 4, 97.0, 88, 2100, 16.5, 1972); +insert into cars_data values(93, 13, 8, 350.0, 175, 4100, 13.0, 1973); +insert into cars_data values(94, 14, 8, 304.0, 150, 3672, 11.5, 1973); +insert into cars_data values(95, 13, 8, 350.0, 145, 3988, 13.0, 1973); +insert into cars_data values(96, 14, 8, 302.0, 137, 4042, 14.5, 1973); +insert into cars_data values(97, 15, 8, 318.0, 150, 3777, 12.5, 1973); +insert into cars_data values(98, 12, 8, 429.0, 198, 4952, 11.5, 1973); +insert into cars_data values(99, 13, 8, 400.0, 150, 4464, 12.0, 1973); +insert into cars_data values(100, 13, 8, 351.0, 158, 4363, 13.0, 1973); +create table countries_continents ( +countryid integer, +countryname text, +continent integer, +continent_continents text); +insert into countries_continents values(1, 'usa', 1, 'america'); +insert into countries_continents values(2, 'germany', 2, 'europe'); +insert into countries_continents values(3, 'france', 2, 'europe'); +insert into countries_continents values(4, 'japan', 3, 'asia'); +insert into countries_continents values(5, 'italy', 2, 'europe'); +insert into countries_continents values(6, 'sweden', 2, 'europe'); +insert into countries_continents values(7, 'uk', 2, 'europe'); +insert into countries_continents values(8, 'korea', 3, 'asia'); +insert into countries_continents values(9, 'russia', 2, 'europe'); +insert into countries_continents values(10, 'nigeria', 4, 'africa'); +insert into countries_continents values(11, 'australia', 5, 'australia'); +insert into countries_continents values(12, 'new zealand', 5, 'australia'); +insert into countries_continents values(13, 'egypt', 4, 'africa'); +insert into countries_continents values(14, 'mexico', 1, 'america'); +insert into countries_continents values(15, 'brazil', 1, 'america'); + diff --git a/all/databases/car_1_minus_1_0/car_1_minus_1_0.sqlite b/all/databases/car_1_minus_1_0/car_1_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..dde005bcdaa26c5307150c453eb4ccc72e224c3e Binary files /dev/null and b/all/databases/car_1_minus_1_0/car_1_minus_1_0.sqlite differ diff --git a/all/databases/car_1_minus_1_1/car_1_minus_1_1.sql b/all/databases/car_1_minus_1_1/car_1_minus_1_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..3e94103e81cbad6ccc93a27b11eed67c378cc1d0 --- /dev/null +++ b/all/databases/car_1_minus_1_1/car_1_minus_1_1.sql @@ -0,0 +1,291 @@ +create table continents ( +contid integer, +continent text +); +insert into continents values(1, 'america'); +insert into continents values(2, 'europe'); +insert into continents values(3, 'asia'); +insert into continents values(4, 'africa'); +insert into continents values(5, 'australia'); + +create table countries ( +countryid integer, +countryname text, +continent integer +); +insert into countries values(1, 'usa', 1); +insert into countries values(2, 'germany', 2); +insert into countries values(3, 'france', 2); +insert into countries values(4, 'japan', 3); +insert into countries values(5, 'italy', 2); +insert into countries values(6, 'sweden', 2); +insert into countries values(7, 'uk', 2); +insert into countries values(8, 'korea', 3); +insert into countries values(9, 'russia', 2); +insert into countries values(10, 'nigeria', 4); +insert into countries values(11, 'australia', 5); +insert into countries values(12, 'new zealand', 5); +insert into countries values(13, 'egypt', 4); +insert into countries values(14, 'mexico', 1); +insert into countries values(15, 'brazil', 1); + +create table car_names ( +makeid integer, +model text, +make text +); +insert into car_names values(1, 'chevrolet', 'chevrolet chevelle malibu'); +insert into car_names values(2, 'buick', 'buick skylark 320'); +insert into car_names values(3, 'plymouth', 'plymouth satellite'); +insert into car_names values(4, 'amc', 'amc rebel sst'); +insert into car_names values(5, 'ford', 'ford torino'); +insert into car_names values(6, 'ford', 'ford galaxie 500'); +insert into car_names values(7, 'chevrolet', 'chevrolet impala'); +insert into car_names values(8, 'plymouth', 'plymouth fury iii'); +insert into car_names values(9, 'pontiac', 'pontiac catalina'); +insert into car_names values(10, 'amc', 'amc ambassador dpl'); +insert into car_names values(11, 'citroen', 'citroen ds-21 pallas'); +insert into car_names values(12, 'chevrolet', 'chevrolet chevelle concours sw'); +insert into car_names values(13, 'ford', 'ford torino sw'); +insert into car_names values(14, 'plymouth', 'plymouth satellite sw'); +insert into car_names values(15, 'amc', 'amc rebel sst sw'); +insert into car_names values(16, 'dodge', 'dodge challenger se'); +insert into car_names values(17, 'plymouth', 'plymouth cuda 340'); +insert into car_names values(18, 'ford', 'ford mustang boss 302'); +insert into car_names values(19, 'chevrolet', 'chevrolet monte carlo'); +insert into car_names values(20, 'buick', 'buick estate wagon sw'); +insert into car_names values(21, 'toyota', 'toyota corona mark ii'); +insert into car_names values(22, 'plymouth', 'plymouth duster'); +insert into car_names values(23, 'amc', 'amc hornet'); +insert into car_names values(24, 'ford', 'ford maverick'); +insert into car_names values(25, 'datsun', 'datsun pl510'); +insert into car_names values(26, 'volkswagen', 'volkswagen 1131 deluxe sedan'); +insert into car_names values(27, 'peugeot', 'peugeot 504'); +insert into car_names values(28, 'audi', 'audi 100 ls'); +insert into car_names values(29, 'saab', 'saab 99e'); +insert into car_names values(30, 'bmw', 'bmw 2002'); +insert into car_names values(31, 'amc', 'amc gremlin'); +insert into car_names values(32, 'ford', 'ford f250'); +insert into car_names values(33, 'chevrolet', 'chevy c20'); +insert into car_names values(34, 'dodge', 'dodge d200'); +insert into car_names values(35, 'hi', 'hi 1200d'); +insert into car_names values(36, 'datsun', 'datsun pl510'); +insert into car_names values(37, 'chevrolet', 'chevrolet vega 2300'); +insert into car_names values(38, 'toyota', 'toyota corona'); +insert into car_names values(39, 'ford', 'ford pinto'); +insert into car_names values(40, 'volkswagen', 'volkswagen super beetle 117'); +insert into car_names values(41, 'amc', 'amc gremlin'); +insert into car_names values(42, 'plymouth', 'plymouth satellite custom'); +insert into car_names values(43, 'chevrolet', 'chevrolet chevelle malibu'); +insert into car_names values(44, 'ford', 'ford torino 500'); +insert into car_names values(45, 'amc', 'amc matador'); +insert into car_names values(46, 'chevrolet', 'chevrolet impala'); +insert into car_names values(47, 'pontiac', 'pontiac catalina brougham'); +insert into car_names values(48, 'ford', 'ford galaxie 500'); +insert into car_names values(49, 'plymouth', 'plymouth fury iii'); +insert into car_names values(50, 'dodge', 'dodge monaco sw'); +insert into car_names values(51, 'ford', 'ford country squire sw'); +insert into car_names values(52, 'pontiac', 'pontiac safari sw'); +insert into car_names values(53, 'amc', 'amc hornet sportabout sw'); +insert into car_names values(54, 'chevrolet', 'chevrolet vega sw'); +insert into car_names values(55, 'pontiac', 'pontiac firebird'); +insert into car_names values(56, 'ford', 'ford mustang'); +insert into car_names values(57, 'mercury', 'mercury capri 2000'); +insert into car_names values(58, 'opel', 'opel 1900'); +insert into car_names values(59, 'peugeot', 'peugeot 304'); +insert into car_names values(60, 'fiat', 'fiat 124b'); +insert into car_names values(61, 'toyota', 'toyota corolla 1200'); +insert into car_names values(62, 'datsun', 'datsun 1200'); +insert into car_names values(63, 'volkswagen', 'volkswagen model 111'); +insert into car_names values(64, 'plymouth', 'plymouth cricket'); +insert into car_names values(65, 'toyota', 'toyota corona hardtop'); +insert into car_names values(66, 'dodge', 'dodge colt hardtop'); +insert into car_names values(67, 'volkswagen', 'volkswagen type 3'); +insert into car_names values(68, 'chevrolet', 'chevrolet vega'); +insert into car_names values(69, 'ford', 'ford pinto runabout'); +insert into car_names values(70, 'chevrolet', 'chevrolet impala'); +insert into car_names values(71, 'pontiac', 'pontiac catalina'); +insert into car_names values(72, 'plymouth', 'plymouth fury iii'); +insert into car_names values(73, 'ford', 'ford galaxie 500'); +insert into car_names values(74, 'amc', 'amc ambassador sst'); +insert into car_names values(75, 'mercury', 'mercury marquis'); +insert into car_names values(76, 'buick', 'buick lesabre custom'); +insert into car_names values(77, 'oldsmobile', 'oldsmobile delta 88 royale'); +insert into car_names values(78, 'chrysler', 'chrysler newport royal'); +insert into car_names values(79, 'mazda', 'mazda rx2 coupe'); +insert into car_names values(80, 'amc', 'amc matador sw'); +insert into car_names values(81, 'chevrolet', 'chevrolet chevelle concours sw'); +insert into car_names values(82, 'ford', 'ford gran torino sw'); +insert into car_names values(83, 'plymouth', 'plymouth satellite custom sw'); +insert into car_names values(84, 'volvo', 'volvo 145e sw'); +insert into car_names values(85, 'volkswagen', 'volkswagen 411 sw'); +insert into car_names values(86, 'peugeot', 'peugeot 504 sw'); +insert into car_names values(87, 'renault', 'renault 12 sw'); +insert into car_names values(88, 'ford', 'ford pinto sw'); +insert into car_names values(89, 'datsun', 'datsun 510 sw'); +insert into car_names values(90, 'toyota', 'toyota corona mark ii sw'); +insert into car_names values(91, 'dodge', 'dodge colt sw'); +insert into car_names values(92, 'toyota', 'toyota corolla 1600 sw'); +insert into car_names values(93, 'buick', 'buick century 350'); +insert into car_names values(94, 'amc', 'amc matador'); +insert into car_names values(95, 'chevrolet', 'chevrolet malibu'); +insert into car_names values(96, 'ford', 'ford gran torino'); +insert into car_names values(97, 'dodge', 'dodge coronet custom'); +insert into car_names values(98, 'mercury', 'mercury marquis brougham'); +insert into car_names values(99, 'chevrolet', 'chevrolet caprice classic'); +insert into car_names values(100, 'ford', 'ford ltd'); + +create table cars_data ( +id integer, +mpg text, +cylinders integer, +edispl real, +horsepower text, +weight integer, +accelerate real, +year integer +); +insert into cars_data values(1, 18, 8, 307.0, 130, 3504, 12.0, 1970); +insert into cars_data values(2, 15, 8, 350.0, 165, 3693, 11.5, 1970); +insert into cars_data values(3, 18, 8, 318.0, 150, 3436, 11.0, 1970); +insert into cars_data values(4, 16, 8, 304.0, 150, 3433, 12.0, 1970); +insert into cars_data values(5, 17, 8, 302.0, 140, 3449, 10.5, 1970); +insert into cars_data values(6, 15, 8, 429.0, 198, 4341, 10.0, 1970); +insert into cars_data values(7, 14, 8, 454.0, 220, 4354, 9.0, 1970); +insert into cars_data values(8, 14, 8, 440.0, 215, 4312, 8.5, 1970); +insert into cars_data values(9, 14, 8, 455.0, 225, 4425, 10.0, 1970); +insert into cars_data values(10, 15, 8, 390.0, 190, 3850, 8.5, 1970); +insert into cars_data values(11, 'null', 4, 133.0, 115, 3090, 17.5, 1970); +insert into cars_data values(12, 'null', 8, 350.0, 165, 4142, 11.5, 1970); +insert into cars_data values(13, 'null', 8, 351.0, 153, 4034, 11.0, 1970); +insert into cars_data values(14, 'null', 8, 383.0, 175, 4166, 10.5, 1970); +insert into cars_data values(15, 'null', 8, 360.0, 175, 3850, 11.0, 1970); +insert into cars_data values(16, 15, 8, 383.0, 170, 3563, 10.0, 1970); +insert into cars_data values(17, 14, 8, 340.0, 160, 3609, 8.0, 1970); +insert into cars_data values(18, 'null', 8, 302.0, 140, 3353, 8.0, 1970); +insert into cars_data values(19, 15, 8, 400.0, 150, 3761, 9.5, 1970); +insert into cars_data values(20, 14, 8, 455.0, 225, 3086, 10.0, 1970); +insert into cars_data values(21, 24, 4, 113.0, 95, 2372, 15.0, 1970); +insert into cars_data values(22, 22, 6, 198.0, 95, 2833, 15.5, 1970); +insert into cars_data values(23, 18, 6, 199.0, 97, 2774, 15.5, 1970); +insert into cars_data values(24, 21, 6, 200.0, 85, 2587, 16.0, 1970); +insert into cars_data values(25, 27, 4, 97.0, 88, 2130, 14.5, 1970); +insert into cars_data values(26, 26, 4, 97.0, 46, 1835, 20.5, 1970); +insert into cars_data values(27, 25, 4, 110.0, 87, 2672, 17.5, 1970); +insert into cars_data values(28, 24, 4, 107.0, 90, 2430, 14.5, 1970); +insert into cars_data values(29, 25, 4, 104.0, 95, 2375, 17.5, 1970); +insert into cars_data values(30, 26, 4, 121.0, 113, 2234, 12.5, 1970); +insert into cars_data values(31, 21, 6, 199.0, 90, 2648, 15.0, 1970); +insert into cars_data values(32, 10, 8, 360.0, 215, 4615, 14.0, 1970); +insert into cars_data values(33, 10, 8, 307.0, 200, 4376, 15.0, 1970); +insert into cars_data values(34, 11, 8, 318.0, 210, 4382, 13.5, 1970); +insert into cars_data values(35, 9, 8, 304.0, 193, 4732, 18.5, 1970); +insert into cars_data values(36, 27, 4, 97.0, 88, 2130, 14.5, 1971); +insert into cars_data values(37, 28, 4, 140.0, 90, 2264, 15.5, 1971); +insert into cars_data values(38, 25, 4, 113.0, 95, 2228, 14.0, 1971); +insert into cars_data values(39, 25, 4, 98.0, 'null', 2046, 19.0, 1971); +insert into cars_data values(40, 'null', 4, 97.0, 48, 1978, 20.0, 1971); +insert into cars_data values(41, 19, 6, 232.0, 100, 2634, 13.0, 1971); +insert into cars_data values(42, 16, 6, 225.0, 105, 3439, 15.5, 1971); +insert into cars_data values(43, 17, 6, 250.0, 100, 3329, 15.5, 1971); +insert into cars_data values(44, 19, 6, 250.0, 88, 3302, 15.5, 1971); +insert into cars_data values(45, 18, 6, 232.0, 100, 3288, 15.5, 1971); +insert into cars_data values(46, 14, 8, 350.0, 165, 4209, 12.0, 1971); +insert into cars_data values(47, 14, 8, 400.0, 175, 4464, 11.5, 1971); +insert into cars_data values(48, 14, 8, 351.0, 153, 4154, 13.5, 1971); +insert into cars_data values(49, 14, 8, 318.0, 150, 4096, 13.0, 1971); +insert into cars_data values(50, 12, 8, 383.0, 180, 4955, 11.5, 1971); +insert into cars_data values(51, 13, 8, 400.0, 170, 4746, 12.0, 1971); +insert into cars_data values(52, 13, 8, 400.0, 175, 5140, 12.0, 1971); +insert into cars_data values(53, 18, 6, 258.0, 110, 2962, 13.5, 1971); +insert into cars_data values(54, 22, 4, 140.0, 72, 2408, 19.0, 1971); +insert into cars_data values(55, 19, 6, 250.0, 100, 3282, 15.0, 1971); +insert into cars_data values(56, 18, 6, 250.0, 88, 3139, 14.5, 1971); +insert into cars_data values(57, 23, 4, 122.0, 86, 2220, 14.0, 1971); +insert into cars_data values(58, 28, 4, 116.0, 90, 2123, 14.0, 1971); +insert into cars_data values(59, 30, 4, 79.0, 70, 2074, 19.5, 1971); +insert into cars_data values(60, 30, 4, 88.0, 76, 2065, 14.5, 1971); +insert into cars_data values(61, 31, 4, 71.0, 65, 1773, 19.0, 1971); +insert into cars_data values(62, 35, 4, 72.0, 69, 1613, 18.0, 1971); +insert into cars_data values(63, 27, 4, 97.0, 60, 1834, 19.0, 1971); +insert into cars_data values(64, 26, 4, 91.0, 70, 1955, 20.5, 1971); +insert into cars_data values(65, 24, 4, 113.0, 95, 2278, 15.5, 1972); +insert into cars_data values(66, 25, 4, 97.5, 80, 2126, 17.0, 1972); +insert into cars_data values(67, 23, 4, 97.0, 54, 2254, 23.5, 1972); +insert into cars_data values(68, 20, 4, 140.0, 90, 2408, 19.5, 1972); +insert into cars_data values(69, 21, 4, 122.0, 86, 2226, 16.5, 1972); +insert into cars_data values(70, 13, 8, 350.0, 165, 4274, 12.0, 1972); +insert into cars_data values(71, 14, 8, 400.0, 175, 4385, 12.0, 1972); +insert into cars_data values(72, 15, 8, 318.0, 150, 4135, 13.5, 1972); +insert into cars_data values(73, 14, 8, 351.0, 153, 4129, 13.0, 1972); +insert into cars_data values(74, 17, 8, 304.0, 150, 3672, 11.5, 1972); +insert into cars_data values(75, 11, 8, 429.0, 208, 4633, 11.0, 1972); +insert into cars_data values(76, 13, 8, 350.0, 155, 4502, 13.5, 1972); +insert into cars_data values(77, 12, 8, 350.0, 160, 4456, 13.5, 1972); +insert into cars_data values(78, 13, 8, 400.0, 190, 4422, 12.5, 1972); +insert into cars_data values(79, 19, 3, 70.0, 97, 2330, 13.5, 1972); +insert into cars_data values(80, 15, 8, 304.0, 150, 3892, 12.5, 1972); +insert into cars_data values(81, 13, 8, 307.0, 130, 4098, 14.0, 1972); +insert into cars_data values(82, 13, 8, 302.0, 140, 4294, 16.0, 1972); +insert into cars_data values(83, 14, 8, 318.0, 150, 4077, 14.0, 1972); +insert into cars_data values(84, 18, 4, 121.0, 112, 2933, 14.5, 1972); +insert into cars_data values(85, 22, 4, 121.0, 76, 2511, 18.0, 1972); +insert into cars_data values(86, 21, 4, 120.0, 87, 2979, 19.5, 1972); +insert into cars_data values(87, 26, 4, 96.0, 69, 2189, 18.0, 1972); +insert into cars_data values(88, 22, 4, 122.0, 86, 2395, 16.0, 1972); +insert into cars_data values(89, 28, 4, 97.0, 92, 2288, 17.0, 1972); +insert into cars_data values(90, 23, 4, 120.0, 97, 2506, 14.5, 1972); +insert into cars_data values(91, 28, 4, 98.0, 80, 2164, 15.0, 1972); +insert into cars_data values(92, 27, 4, 97.0, 88, 2100, 16.5, 1972); +insert into cars_data values(93, 13, 8, 350.0, 175, 4100, 13.0, 1973); +insert into cars_data values(94, 14, 8, 304.0, 150, 3672, 11.5, 1973); +insert into cars_data values(95, 13, 8, 350.0, 145, 3988, 13.0, 1973); +insert into cars_data values(96, 14, 8, 302.0, 137, 4042, 14.5, 1973); +insert into cars_data values(97, 15, 8, 318.0, 150, 3777, 12.5, 1973); +insert into cars_data values(98, 12, 8, 429.0, 198, 4952, 11.5, 1973); +insert into cars_data values(99, 13, 8, 400.0, 150, 4464, 12.0, 1973); +insert into cars_data values(100, 13, 8, 351.0, 158, 4363, 13.0, 1973); +create table model_list_car_makers ( +modelid integer, +maker integer, +model text, +maker_car_makers text, +fullname text, +country text); +insert into model_list_car_makers values(1, 1, 'amc', 'amc', 'american motor company', '1'); +insert into model_list_car_makers values(2, 2, 'audi', 'volkswagen', 'volkswagen', '2'); +insert into model_list_car_makers values(3, 3, 'bmw', 'bmw', 'bmw', '2'); +insert into model_list_car_makers values(4, 4, 'buick', 'gm', 'general motors', '1'); +insert into model_list_car_makers values(5, 4, 'cadillac', 'gm', 'general motors', '1'); +insert into model_list_car_makers values(6, 5, 'capri', 'ford', 'ford motor company', '1'); +insert into model_list_car_makers values(7, 4, 'chevrolet', 'gm', 'general motors', '1'); +insert into model_list_car_makers values(8, 6, 'chrysler', 'chrysler', 'chrysler', '1'); +insert into model_list_car_makers values(9, 7, 'citroen', 'citroen', 'citroen', '3'); +insert into model_list_car_makers values(10, 8, 'datsun', 'nissan', 'nissan motors', '4'); +insert into model_list_car_makers values(11, 6, 'dodge', 'chrysler', 'chrysler', '1'); +insert into model_list_car_makers values(12, 9, 'fiat', 'fiat', 'fiat', '5'); +insert into model_list_car_makers values(13, 5, 'ford', 'ford', 'ford motor company', '1'); +insert into model_list_car_makers values(14, 10, 'hi', 'None', 'None', 'None'); +insert into model_list_car_makers values(15, 11, 'honda', 'honda', 'honda', '4'); +insert into model_list_car_makers values(34, 12, 'hyundai', 'mazda', 'mazda', '4'); +insert into model_list_car_makers values(35, 13, 'jeep', 'daimler benz', 'daimler benz', '2'); +insert into model_list_car_makers values(33, 13, 'kia', 'daimler benz', 'daimler benz', '2'); +insert into model_list_car_makers values(16, 5, 'mazda', 'ford', 'ford motor company', '1'); +insert into model_list_car_makers values(17, 8, 'mercedes', 'nissan', 'nissan motors', '4'); +insert into model_list_car_makers values(18, 4, 'mercedes-benz', 'gm', 'general motors', '1'); +insert into model_list_car_makers values(19, 14, 'mercury', 'opel', 'opel', '2'); +insert into model_list_car_makers values(20, 15, 'nissan', 'peugeaut', 'peugeaut', '3'); +insert into model_list_car_makers values(21, 6, 'oldsmobile', 'chrysler', 'chrysler', '1'); +insert into model_list_car_makers values(22, 4, 'opel', 'gm', 'general motors', '1'); +insert into model_list_car_makers values(23, 16, 'peugeot', 'renault', 'renault', '3'); +insert into model_list_car_makers values(24, 17, 'plymouth', 'saab', 'saab', '6'); +insert into model_list_car_makers values(25, 18, 'pontiac', 'subaru', 'subaru', '4'); +insert into model_list_car_makers values(26, 19, 'renault', 'toyota', 'toyota', '4'); +insert into model_list_car_makers values(27, 20, 'saab', 'triumph', 'triumph', '7'); +insert into model_list_car_makers values(36, 2, 'scion', 'volkswagen', 'volkswagen', '2'); +insert into model_list_car_makers values(28, 21, 'subaru', 'volvo', 'volvo', '6'); +insert into model_list_car_makers values(29, 22, 'toyota', 'kia', 'kia motors', '8'); +insert into model_list_car_makers values(30, 23, 'triumph', 'hyundai', 'hyundai', '8'); +insert into model_list_car_makers values(31, 6, 'volkswagen', 'chrysler', 'chrysler', '1'); +insert into model_list_car_makers values(32, 19, 'volvo', 'toyota', 'toyota', '4'); + diff --git a/all/databases/car_1_minus_1_1/car_1_minus_1_1.sqlite b/all/databases/car_1_minus_1_1/car_1_minus_1_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..77353bf6d24499137ae9de4d0e99f96e452c28f9 Binary files /dev/null and b/all/databases/car_1_minus_1_1/car_1_minus_1_1.sqlite differ diff --git a/all/databases/car_1_total_7/car_1_total_7.sql b/all/databases/car_1_total_7/car_1_total_7.sql new file mode 100644 index 0000000000000000000000000000000000000000..053e5f53bb639ee936509b307c4d36aa985b09b2 --- /dev/null +++ b/all/databases/car_1_total_7/car_1_total_7.sql @@ -0,0 +1,291 @@ +create table continents ( +contid integer, +continent text +); +insert into continents values(1, 'america'); +insert into continents values(2, 'europe'); +insert into continents values(3, 'asia'); +insert into continents values(4, 'africa'); +insert into continents values(5, 'australia'); + +create table countries ( +countryid integer, +countryname text, +continent integer +); +insert into countries values(1, 'usa', 1); +insert into countries values(2, 'germany', 2); +insert into countries values(3, 'france', 2); +insert into countries values(4, 'japan', 3); +insert into countries values(5, 'italy', 2); +insert into countries values(6, 'sweden', 2); +insert into countries values(7, 'uk', 2); +insert into countries values(8, 'korea', 3); +insert into countries values(9, 'russia', 2); +insert into countries values(10, 'nigeria', 4); +insert into countries values(11, 'australia', 5); +insert into countries values(12, 'new zealand', 5); +insert into countries values(13, 'egypt', 4); +insert into countries values(14, 'mexico', 1); +insert into countries values(15, 'brazil', 1); + +create table car_names ( +makeid integer, +model text, +make text +); +insert into car_names values(1, 'chevrolet', 'chevrolet chevelle malibu'); +insert into car_names values(2, 'buick', 'buick skylark 320'); +insert into car_names values(3, 'plymouth', 'plymouth satellite'); +insert into car_names values(4, 'amc', 'amc rebel sst'); +insert into car_names values(5, 'ford', 'ford torino'); +insert into car_names values(6, 'ford', 'ford galaxie 500'); +insert into car_names values(7, 'chevrolet', 'chevrolet impala'); +insert into car_names values(8, 'plymouth', 'plymouth fury iii'); +insert into car_names values(9, 'pontiac', 'pontiac catalina'); +insert into car_names values(10, 'amc', 'amc ambassador dpl'); +insert into car_names values(11, 'citroen', 'citroen ds-21 pallas'); +insert into car_names values(12, 'chevrolet', 'chevrolet chevelle concours sw'); +insert into car_names values(13, 'ford', 'ford torino sw'); +insert into car_names values(14, 'plymouth', 'plymouth satellite sw'); +insert into car_names values(15, 'amc', 'amc rebel sst sw'); +insert into car_names values(16, 'dodge', 'dodge challenger se'); +insert into car_names values(17, 'plymouth', 'plymouth cuda 340'); +insert into car_names values(18, 'ford', 'ford mustang boss 302'); +insert into car_names values(19, 'chevrolet', 'chevrolet monte carlo'); +insert into car_names values(20, 'buick', 'buick estate wagon sw'); +insert into car_names values(21, 'toyota', 'toyota corona mark ii'); +insert into car_names values(22, 'plymouth', 'plymouth duster'); +insert into car_names values(23, 'amc', 'amc hornet'); +insert into car_names values(24, 'ford', 'ford maverick'); +insert into car_names values(25, 'datsun', 'datsun pl510'); +insert into car_names values(26, 'volkswagen', 'volkswagen 1131 deluxe sedan'); +insert into car_names values(27, 'peugeot', 'peugeot 504'); +insert into car_names values(28, 'audi', 'audi 100 ls'); +insert into car_names values(29, 'saab', 'saab 99e'); +insert into car_names values(30, 'bmw', 'bmw 2002'); +insert into car_names values(31, 'amc', 'amc gremlin'); +insert into car_names values(32, 'ford', 'ford f250'); +insert into car_names values(33, 'chevrolet', 'chevy c20'); +insert into car_names values(34, 'dodge', 'dodge d200'); +insert into car_names values(35, 'hi', 'hi 1200d'); +insert into car_names values(36, 'datsun', 'datsun pl510'); +insert into car_names values(37, 'chevrolet', 'chevrolet vega 2300'); +insert into car_names values(38, 'toyota', 'toyota corona'); +insert into car_names values(39, 'ford', 'ford pinto'); +insert into car_names values(40, 'volkswagen', 'volkswagen super beetle 117'); +insert into car_names values(41, 'amc', 'amc gremlin'); +insert into car_names values(42, 'plymouth', 'plymouth satellite custom'); +insert into car_names values(43, 'chevrolet', 'chevrolet chevelle malibu'); +insert into car_names values(44, 'ford', 'ford torino 500'); +insert into car_names values(45, 'amc', 'amc matador'); +insert into car_names values(46, 'chevrolet', 'chevrolet impala'); +insert into car_names values(47, 'pontiac', 'pontiac catalina brougham'); +insert into car_names values(48, 'ford', 'ford galaxie 500'); +insert into car_names values(49, 'plymouth', 'plymouth fury iii'); +insert into car_names values(50, 'dodge', 'dodge monaco sw'); +insert into car_names values(51, 'ford', 'ford country squire sw'); +insert into car_names values(52, 'pontiac', 'pontiac safari sw'); +insert into car_names values(53, 'amc', 'amc hornet sportabout sw'); +insert into car_names values(54, 'chevrolet', 'chevrolet vega sw'); +insert into car_names values(55, 'pontiac', 'pontiac firebird'); +insert into car_names values(56, 'ford', 'ford mustang'); +insert into car_names values(57, 'mercury', 'mercury capri 2000'); +insert into car_names values(58, 'opel', 'opel 1900'); +insert into car_names values(59, 'peugeot', 'peugeot 304'); +insert into car_names values(60, 'fiat', 'fiat 124b'); +insert into car_names values(61, 'toyota', 'toyota corolla 1200'); +insert into car_names values(62, 'datsun', 'datsun 1200'); +insert into car_names values(63, 'volkswagen', 'volkswagen model 111'); +insert into car_names values(64, 'plymouth', 'plymouth cricket'); +insert into car_names values(65, 'toyota', 'toyota corona hardtop'); +insert into car_names values(66, 'dodge', 'dodge colt hardtop'); +insert into car_names values(67, 'volkswagen', 'volkswagen type 3'); +insert into car_names values(68, 'chevrolet', 'chevrolet vega'); +insert into car_names values(69, 'ford', 'ford pinto runabout'); +insert into car_names values(70, 'chevrolet', 'chevrolet impala'); +insert into car_names values(71, 'pontiac', 'pontiac catalina'); +insert into car_names values(72, 'plymouth', 'plymouth fury iii'); +insert into car_names values(73, 'ford', 'ford galaxie 500'); +insert into car_names values(74, 'amc', 'amc ambassador sst'); +insert into car_names values(75, 'mercury', 'mercury marquis'); +insert into car_names values(76, 'buick', 'buick lesabre custom'); +insert into car_names values(77, 'oldsmobile', 'oldsmobile delta 88 royale'); +insert into car_names values(78, 'chrysler', 'chrysler newport royal'); +insert into car_names values(79, 'mazda', 'mazda rx2 coupe'); +insert into car_names values(80, 'amc', 'amc matador sw'); +insert into car_names values(81, 'chevrolet', 'chevrolet chevelle concours sw'); +insert into car_names values(82, 'ford', 'ford gran torino sw'); +insert into car_names values(83, 'plymouth', 'plymouth satellite custom sw'); +insert into car_names values(84, 'volvo', 'volvo 145e sw'); +insert into car_names values(85, 'volkswagen', 'volkswagen 411 sw'); +insert into car_names values(86, 'peugeot', 'peugeot 504 sw'); +insert into car_names values(87, 'renault', 'renault 12 sw'); +insert into car_names values(88, 'ford', 'ford pinto sw'); +insert into car_names values(89, 'datsun', 'datsun 510 sw'); +insert into car_names values(90, 'toyota', 'toyota corona mark ii sw'); +insert into car_names values(91, 'dodge', 'dodge colt sw'); +insert into car_names values(92, 'toyota', 'toyota corolla 1600 sw'); +insert into car_names values(93, 'buick', 'buick century 350'); +insert into car_names values(94, 'amc', 'amc matador'); +insert into car_names values(95, 'chevrolet', 'chevrolet malibu'); +insert into car_names values(96, 'ford', 'ford gran torino'); +insert into car_names values(97, 'dodge', 'dodge coronet custom'); +insert into car_names values(98, 'mercury', 'mercury marquis brougham'); +insert into car_names values(99, 'chevrolet', 'chevrolet caprice classic'); +insert into car_names values(100, 'ford', 'ford ltd'); + +create table cars_data ( +id integer, +mpg text, +cylinders integer, +edispl real, +horsepower text, +weight integer, +accelerate real, +year integer +); +insert into cars_data values(1, 18, 8, 307.0, 130, 3504, 12.0, 1970); +insert into cars_data values(2, 15, 8, 350.0, 165, 3693, 11.5, 1970); +insert into cars_data values(3, 18, 8, 318.0, 150, 3436, 11.0, 1970); +insert into cars_data values(4, 16, 8, 304.0, 150, 3433, 12.0, 1970); +insert into cars_data values(5, 17, 8, 302.0, 140, 3449, 10.5, 1970); +insert into cars_data values(6, 15, 8, 429.0, 198, 4341, 10.0, 1970); +insert into cars_data values(7, 14, 8, 454.0, 220, 4354, 9.0, 1970); +insert into cars_data values(8, 14, 8, 440.0, 215, 4312, 8.5, 1970); +insert into cars_data values(9, 14, 8, 455.0, 225, 4425, 10.0, 1970); +insert into cars_data values(10, 15, 8, 390.0, 190, 3850, 8.5, 1970); +insert into cars_data values(11, 'null', 4, 133.0, 115, 3090, 17.5, 1970); +insert into cars_data values(12, 'null', 8, 350.0, 165, 4142, 11.5, 1970); +insert into cars_data values(13, 'null', 8, 351.0, 153, 4034, 11.0, 1970); +insert into cars_data values(14, 'null', 8, 383.0, 175, 4166, 10.5, 1970); +insert into cars_data values(15, 'null', 8, 360.0, 175, 3850, 11.0, 1970); +insert into cars_data values(16, 15, 8, 383.0, 170, 3563, 10.0, 1970); +insert into cars_data values(17, 14, 8, 340.0, 160, 3609, 8.0, 1970); +insert into cars_data values(18, 'null', 8, 302.0, 140, 3353, 8.0, 1970); +insert into cars_data values(19, 15, 8, 400.0, 150, 3761, 9.5, 1970); +insert into cars_data values(20, 14, 8, 455.0, 225, 3086, 10.0, 1970); +insert into cars_data values(21, 24, 4, 113.0, 95, 2372, 15.0, 1970); +insert into cars_data values(22, 22, 6, 198.0, 95, 2833, 15.5, 1970); +insert into cars_data values(23, 18, 6, 199.0, 97, 2774, 15.5, 1970); +insert into cars_data values(24, 21, 6, 200.0, 85, 2587, 16.0, 1970); +insert into cars_data values(25, 27, 4, 97.0, 88, 2130, 14.5, 1970); +insert into cars_data values(26, 26, 4, 97.0, 46, 1835, 20.5, 1970); +insert into cars_data values(27, 25, 4, 110.0, 87, 2672, 17.5, 1970); +insert into cars_data values(28, 24, 4, 107.0, 90, 2430, 14.5, 1970); +insert into cars_data values(29, 25, 4, 104.0, 95, 2375, 17.5, 1970); +insert into cars_data values(30, 26, 4, 121.0, 113, 2234, 12.5, 1970); +insert into cars_data values(31, 21, 6, 199.0, 90, 2648, 15.0, 1970); +insert into cars_data values(32, 10, 8, 360.0, 215, 4615, 14.0, 1970); +insert into cars_data values(33, 10, 8, 307.0, 200, 4376, 15.0, 1970); +insert into cars_data values(34, 11, 8, 318.0, 210, 4382, 13.5, 1970); +insert into cars_data values(35, 9, 8, 304.0, 193, 4732, 18.5, 1970); +insert into cars_data values(36, 27, 4, 97.0, 88, 2130, 14.5, 1971); +insert into cars_data values(37, 28, 4, 140.0, 90, 2264, 15.5, 1971); +insert into cars_data values(38, 25, 4, 113.0, 95, 2228, 14.0, 1971); +insert into cars_data values(39, 25, 4, 98.0, 'null', 2046, 19.0, 1971); +insert into cars_data values(40, 'null', 4, 97.0, 48, 1978, 20.0, 1971); +insert into cars_data values(41, 19, 6, 232.0, 100, 2634, 13.0, 1971); +insert into cars_data values(42, 16, 6, 225.0, 105, 3439, 15.5, 1971); +insert into cars_data values(43, 17, 6, 250.0, 100, 3329, 15.5, 1971); +insert into cars_data values(44, 19, 6, 250.0, 88, 3302, 15.5, 1971); +insert into cars_data values(45, 18, 6, 232.0, 100, 3288, 15.5, 1971); +insert into cars_data values(46, 14, 8, 350.0, 165, 4209, 12.0, 1971); +insert into cars_data values(47, 14, 8, 400.0, 175, 4464, 11.5, 1971); +insert into cars_data values(48, 14, 8, 351.0, 153, 4154, 13.5, 1971); +insert into cars_data values(49, 14, 8, 318.0, 150, 4096, 13.0, 1971); +insert into cars_data values(50, 12, 8, 383.0, 180, 4955, 11.5, 1971); +insert into cars_data values(51, 13, 8, 400.0, 170, 4746, 12.0, 1971); +insert into cars_data values(52, 13, 8, 400.0, 175, 5140, 12.0, 1971); +insert into cars_data values(53, 18, 6, 258.0, 110, 2962, 13.5, 1971); +insert into cars_data values(54, 22, 4, 140.0, 72, 2408, 19.0, 1971); +insert into cars_data values(55, 19, 6, 250.0, 100, 3282, 15.0, 1971); +insert into cars_data values(56, 18, 6, 250.0, 88, 3139, 14.5, 1971); +insert into cars_data values(57, 23, 4, 122.0, 86, 2220, 14.0, 1971); +insert into cars_data values(58, 28, 4, 116.0, 90, 2123, 14.0, 1971); +insert into cars_data values(59, 30, 4, 79.0, 70, 2074, 19.5, 1971); +insert into cars_data values(60, 30, 4, 88.0, 76, 2065, 14.5, 1971); +insert into cars_data values(61, 31, 4, 71.0, 65, 1773, 19.0, 1971); +insert into cars_data values(62, 35, 4, 72.0, 69, 1613, 18.0, 1971); +insert into cars_data values(63, 27, 4, 97.0, 60, 1834, 19.0, 1971); +insert into cars_data values(64, 26, 4, 91.0, 70, 1955, 20.5, 1971); +insert into cars_data values(65, 24, 4, 113.0, 95, 2278, 15.5, 1972); +insert into cars_data values(66, 25, 4, 97.5, 80, 2126, 17.0, 1972); +insert into cars_data values(67, 23, 4, 97.0, 54, 2254, 23.5, 1972); +insert into cars_data values(68, 20, 4, 140.0, 90, 2408, 19.5, 1972); +insert into cars_data values(69, 21, 4, 122.0, 86, 2226, 16.5, 1972); +insert into cars_data values(70, 13, 8, 350.0, 165, 4274, 12.0, 1972); +insert into cars_data values(71, 14, 8, 400.0, 175, 4385, 12.0, 1972); +insert into cars_data values(72, 15, 8, 318.0, 150, 4135, 13.5, 1972); +insert into cars_data values(73, 14, 8, 351.0, 153, 4129, 13.0, 1972); +insert into cars_data values(74, 17, 8, 304.0, 150, 3672, 11.5, 1972); +insert into cars_data values(75, 11, 8, 429.0, 208, 4633, 11.0, 1972); +insert into cars_data values(76, 13, 8, 350.0, 155, 4502, 13.5, 1972); +insert into cars_data values(77, 12, 8, 350.0, 160, 4456, 13.5, 1972); +insert into cars_data values(78, 13, 8, 400.0, 190, 4422, 12.5, 1972); +insert into cars_data values(79, 19, 3, 70.0, 97, 2330, 13.5, 1972); +insert into cars_data values(80, 15, 8, 304.0, 150, 3892, 12.5, 1972); +insert into cars_data values(81, 13, 8, 307.0, 130, 4098, 14.0, 1972); +insert into cars_data values(82, 13, 8, 302.0, 140, 4294, 16.0, 1972); +insert into cars_data values(83, 14, 8, 318.0, 150, 4077, 14.0, 1972); +insert into cars_data values(84, 18, 4, 121.0, 112, 2933, 14.5, 1972); +insert into cars_data values(85, 22, 4, 121.0, 76, 2511, 18.0, 1972); +insert into cars_data values(86, 21, 4, 120.0, 87, 2979, 19.5, 1972); +insert into cars_data values(87, 26, 4, 96.0, 69, 2189, 18.0, 1972); +insert into cars_data values(88, 22, 4, 122.0, 86, 2395, 16.0, 1972); +insert into cars_data values(89, 28, 4, 97.0, 92, 2288, 17.0, 1972); +insert into cars_data values(90, 23, 4, 120.0, 97, 2506, 14.5, 1972); +insert into cars_data values(91, 28, 4, 98.0, 80, 2164, 15.0, 1972); +insert into cars_data values(92, 27, 4, 97.0, 88, 2100, 16.5, 1972); +insert into cars_data values(93, 13, 8, 350.0, 175, 4100, 13.0, 1973); +insert into cars_data values(94, 14, 8, 304.0, 150, 3672, 11.5, 1973); +insert into cars_data values(95, 13, 8, 350.0, 145, 3988, 13.0, 1973); +insert into cars_data values(96, 14, 8, 302.0, 137, 4042, 14.5, 1973); +insert into cars_data values(97, 15, 8, 318.0, 150, 3777, 12.5, 1973); +insert into cars_data values(98, 12, 8, 429.0, 198, 4952, 11.5, 1973); +insert into cars_data values(99, 13, 8, 400.0, 150, 4464, 12.0, 1973); +insert into cars_data values(100, 13, 8, 351.0, 158, 4363, 13.0, 1973); +create table car_makers_model_list ( +id integer, +maker_car_makers text, +fullname text, +country text, +modelid integer, +model text); +insert into car_makers_model_list values(1, 'amc', 'american motor company', '1', 1, 'amc'); +insert into car_makers_model_list values(2, 'volkswagen', 'volkswagen', '2', 2, 'audi'); +insert into car_makers_model_list values(2, 'volkswagen', 'volkswagen', '2', 36, 'scion'); +insert into car_makers_model_list values(3, 'bmw', 'bmw', '2', 3, 'bmw'); +insert into car_makers_model_list values(4, 'gm', 'general motors', '1', 4, 'buick'); +insert into car_makers_model_list values(4, 'gm', 'general motors', '1', 5, 'cadillac'); +insert into car_makers_model_list values(4, 'gm', 'general motors', '1', 7, 'chevrolet'); +insert into car_makers_model_list values(4, 'gm', 'general motors', '1', 18, 'mercedes-benz'); +insert into car_makers_model_list values(4, 'gm', 'general motors', '1', 22, 'opel'); +insert into car_makers_model_list values(5, 'ford', 'ford motor company', '1', 6, 'capri'); +insert into car_makers_model_list values(5, 'ford', 'ford motor company', '1', 13, 'ford'); +insert into car_makers_model_list values(5, 'ford', 'ford motor company', '1', 16, 'mazda'); +insert into car_makers_model_list values(6, 'chrysler', 'chrysler', '1', 8, 'chrysler'); +insert into car_makers_model_list values(6, 'chrysler', 'chrysler', '1', 11, 'dodge'); +insert into car_makers_model_list values(6, 'chrysler', 'chrysler', '1', 21, 'oldsmobile'); +insert into car_makers_model_list values(6, 'chrysler', 'chrysler', '1', 31, 'volkswagen'); +insert into car_makers_model_list values(7, 'citroen', 'citroen', '3', 9, 'citroen'); +insert into car_makers_model_list values(8, 'nissan', 'nissan motors', '4', 10, 'datsun'); +insert into car_makers_model_list values(8, 'nissan', 'nissan motors', '4', 17, 'mercedes'); +insert into car_makers_model_list values(9, 'fiat', 'fiat', '5', 12, 'fiat'); +insert into car_makers_model_list values(11, 'honda', 'honda', '4', 15, 'honda'); +insert into car_makers_model_list values(12, 'mazda', 'mazda', '4', 34, 'hyundai'); +insert into car_makers_model_list values(13, 'daimler benz', 'daimler benz', '2', 33, 'kia'); +insert into car_makers_model_list values(13, 'daimler benz', 'daimler benz', '2', 35, 'jeep'); +insert into car_makers_model_list values(14, 'opel', 'opel', '2', 19, 'mercury'); +insert into car_makers_model_list values(15, 'peugeaut', 'peugeaut', '3', 20, 'nissan'); +insert into car_makers_model_list values(16, 'renault', 'renault', '3', 23, 'peugeot'); +insert into car_makers_model_list values(17, 'saab', 'saab', '6', 24, 'plymouth'); +insert into car_makers_model_list values(18, 'subaru', 'subaru', '4', 25, 'pontiac'); +insert into car_makers_model_list values(19, 'toyota', 'toyota', '4', 26, 'renault'); +insert into car_makers_model_list values(19, 'toyota', 'toyota', '4', 32, 'volvo'); +insert into car_makers_model_list values(20, 'triumph', 'triumph', '7', 27, 'saab'); +insert into car_makers_model_list values(21, 'volvo', 'volvo', '6', 28, 'subaru'); +insert into car_makers_model_list values(22, 'kia', 'kia motors', '8', 29, 'toyota'); +insert into car_makers_model_list values(23, 'hyundai', 'hyundai', '8', 30, 'triumph'); +insert into car_makers_model_list values(10, 'None', 'None', 'None', 14, 'hi'); + diff --git a/all/databases/car_1_total_7/car_1_total_7.sqlite b/all/databases/car_1_total_7/car_1_total_7.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..0486fe70165927302bf7095a64bd7d61a8163d7e Binary files /dev/null and b/all/databases/car_1_total_7/car_1_total_7.sqlite differ diff --git a/all/databases/cinema/cinema.sql b/all/databases/cinema/cinema.sql new file mode 100644 index 0000000000000000000000000000000000000000..525e7523eef25b06ad6c63800f3449e4ddcd1a0b --- /dev/null +++ b/all/databases/cinema/cinema.sql @@ -0,0 +1,53 @@ +CREATE TABLE "film" ( +"film_id" integer, +"rank_in_series" integer, +"number_in_season" integer, +"title" text, +"directed_by" text, +"original_air_date" text, +"production_code" text +); + +INSERT INTO film VALUES (1, 26, 1, "the case of the mystery weekend", "bill schreiner", "september 21–25 1992", "50021–50025"); +INSERT INTO film VALUES (2, 27, 2, "the case of the smart dummy", "bill schreiner", "september 28–october 2 1992", "50231–50235"); +INSERT INTO film VALUES (3, 28, 3, "the case: off the record", "bill schreiner", "october 5–9 1992", "50011–50015"); +INSERT INTO film VALUES (4, 29, 4, "the case of the bermuda triangle", "jesus salvador treviño", "october 12–16 1992", "50251–50255"); +INSERT INTO film VALUES (5, 30, 5, "the case of the piggy banker", "bill schreiner", "october 19–23 1992", "50241–50245"); + +CREATE TABLE "cinema" ( +"cinema_id" integer, +"name" text, +"openning_year" integer, +"capacity" integer, +"location" text +); + +INSERT INTO cinema VALUES (1, "codling", 2010, 1100, "county wicklow"); +INSERT INTO cinema VALUES (2, "carrowleagh", 2012, 368, "county cork"); +INSERT INTO cinema VALUES (3, "dublin array", 2015, 364, "county dublin"); +INSERT INTO cinema VALUES (4, "glenmore", 2009, 305, "county clare"); +INSERT INTO cinema VALUES (5, "glenough", 2010, 325, "county tipperary"); +INSERT INTO cinema VALUES (6, "gortahile", 2010, 208, "county laois"); +INSERT INTO cinema VALUES (7, "grouse lodge", 2011, 203, "county tipperary"); +INSERT INTO cinema VALUES (8, "moneypoint", 2011, 225, "county clare"); +INSERT INTO cinema VALUES (9, "mount callan", 2011, 908, "county clare"); +INSERT INTO cinema VALUES (10, "oriel", 2013, 330, "county louth"); + +CREATE TABLE "schedule" ( +"cinema_id" integer, +"film_id" integer, +"date" text, +"show_times_per_day" integer, +"price" real +); + +INSERT INTO schedule VALUES (1, 1, "21 may", 5, 12.99); +INSERT INTO schedule VALUES (1, 2, "21 may", 3, 12.99); +INSERT INTO schedule VALUES (1, 3, "21 jun", 2, 8.99); +INSERT INTO schedule VALUES (2, 1, "11 july", 5, 9.99); +INSERT INTO schedule VALUES (6, 5, "2 aug", 4, 12.99); +INSERT INTO schedule VALUES (9, 4, "20 may", 5, 9.99); +INSERT INTO schedule VALUES (10, 1, "19 may", 5, 15.99); + + +COMMIT; diff --git a/all/databases/cinema/cinema.sqlite b/all/databases/cinema/cinema.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..9afae230a6b296f758e9ed9c7f5e1d58d3704f0c Binary files /dev/null and b/all/databases/cinema/cinema.sqlite differ diff --git a/all/databases/college_1_minus_1_2/college_1_minus_1_2.sql b/all/databases/college_1_minus_1_2/college_1_minus_1_2.sql new file mode 100644 index 0000000000000000000000000000000000000000..d5afa436f65066804e564b70e2a1bcb045999d1e --- /dev/null +++ b/all/databases/college_1_minus_1_2/college_1_minus_1_2.sql @@ -0,0 +1,159 @@ +create table class ( +class_code text, +crs_code text, +class_section text, +class_time text, +class_room text, +prof_num integer +); +insert into class values(10012, 'acct-211', 1, 'mwf 8:00-8:50 a.m.', 'bus311', 105); +insert into class values(10013, 'acct-211', 2, 'mwf 9:00-9:50 a.m.', 'bus200', 105); +insert into class values(10014, 'acct-211', 3, 'tth 2:30-3:45 p.m.', 'bus252', 342); +insert into class values(10015, 'acct-212', 1, 'mwf 10:00-10:50 a.m.', 'bus311', 301); +insert into class values(10016, 'acct-212', 2, 'th 6:00-8:40 p.m.', 'bus252', 301); +insert into class values(10017, 'cis-220', 1, 'mwf 9:00-9:50 a.m.', 'klr209', 228); +insert into class values(10018, 'cis-220', 2, 'mwf 9:00-9:50 a.m.', 'klr211', 114); +insert into class values(10019, 'cis-220', 3, 'mwf 10:00-10:50 a.m.', 'klr209', 228); +insert into class values(10020, 'cis-420', 1, 'w 6:00-8:40 p.m.', 'klr209', 162); +insert into class values(10021, 'qm-261', 1, 'mwf 8:00-8:50 a.m.', 'klr200', 114); +insert into class values(10022, 'qm-261', 2, 'tth 1:00-2:15 p.m.', 'klr200', 114); +insert into class values(10023, 'qm-362', 1, 'mwf 11:00-11:50 a.m.', 'klr200', 162); +insert into class values(10024, 'qm-362', 2, 'tth 2:30-3:45 p.m.', 'klr200', 162); + +create table course ( +crs_code text, +dept_code text, +crs_description text, +crs_credit real +); +insert into course values('acct-211', 'acct', 'accounting i', 3.0); +insert into course values('acct-212', 'acct', 'accounting ii', 3.0); +insert into course values('cis-220', 'cis', 'intro. to microcomputing', 3.0); +insert into course values('cis-420', 'cis', 'database design and implementation', 4.0); +insert into course values('qm-261', 'cis', 'intro. to statistics', 3.0); +insert into course values('qm-362', 'cis', 'statistical applications', 4.0); + +create table department ( +dept_code text, +dept_name text, +school_code text, +emp_num integer, +dept_address text, +dept_extension text +); +insert into department values('acct', 'accounting', 'bus', 114, 'klr 211 box 52', 3119); +insert into department values('art', 'fine arts', 'a&sci', 435, 'bbg 185 box 128', 2278); +insert into department values('biol', 'biology', 'a&sci', 387, 'aak 230 box 415', 4117); +insert into department values('cis', 'computer info. systems', 'bus', 209, 'klr 333 box 56', 3245); +insert into department values('econ/fin', 'economics/finance', 'bus', 299, 'klr 284 box 63', 3126); +insert into department values('eng', 'english', 'a&sci', 160, 'dre 102 box 223', 1004); +insert into department values('hist', 'history', 'a&sci', 103, 'dre 156 box 284', 1867); +insert into department values('math', 'mathematics', 'a&sci', 297, 'aak 194 box 422', 4234); +insert into department values('mkt/mgt', 'marketing/management', 'bus', 106, 'klr 126 box 55', 3342); +insert into department values('psych', 'psychology', 'a&sci', 195, 'aak 297 box 438', 4110); +insert into department values('soc', 'sociology', 'a&sci', 342, 'bbg 208 box 132', 2008); + +create table employee ( +emp_num integer, +emp_lname text, +emp_fname text, +emp_initial text, +emp_jobcode text, +emp_hiredate text, +emp_dob text +); +insert into employee values(100, 'worley', 'james', 'f', 'cust', '1978-2-23', '1950-6-12'); +insert into employee values(101, 'ramso', 'henry', 'b', 'cust', '1994-11-15', '1961-11-2'); +insert into employee values(102, 'edwards', 'rosemary', 'd', 'tech', '1990-7-23', '1953-7-3'); +insert into employee values(103, 'donelly', 'ronald', 'o', 'prof', '1987-7-1', '1952-10-2'); +insert into employee values(104, 'yukon', 'preston', 'd', 'prof', '1992-5-1', '1948-2-23'); +insert into employee values(105, 'heffington', 'arnelle', 'b', 'prof', '1991-7-1', '1950-11-2'); +insert into employee values(106, 'washington', 'ross', 'e', 'prof', '1976-8-1', '1941-3-4'); +insert into employee values(108, 'robertson', 'elaine', 'w', 'tech', '1983-10-18', '1961-6-20'); +insert into employee values(110, 'thieu', 'van', 's', 'prof', '1989-8-1', '1951-8-12'); +insert into employee values(114, 'graztevski', 'gerald', 'b', 'prof', '1978-8-1', '1939-3-18'); +insert into employee values(122, 'wilson', 'todd', 'h', 'cust', '1990-11-6', '1966-10-19'); +insert into employee values(123, 'jones', 'suzanne', 'b', 'tech', '1994-1-5', '1967-12-30'); +insert into employee values(124, 'smith', 'elsa', 'k', 'clrk', '1982-12-16', '1943-9-13'); +insert into employee values(126, 'ardano', 'james', 'g', 'clrk', '1994-10-1', '1970-3-12'); +insert into employee values(155, 'ritula', 'annelise', '', 'prof', '1990-8-1', '1957-5-24'); +insert into employee values(160, 'smith', 'robert', 't', 'prof', '1992-8-1', '1955-6-19'); +insert into employee values(161, 'watson', 'george', 'f', 'cust', '1994-11-1', '1962-10-2'); +insert into employee values(162, 'rob', 'peter', '', 'prof', '1981-8-1', '1940-6-20'); +insert into employee values(165, 'williamson', 'kathryn', 'a', 'clrk', '1992-6-15', '1968-11-17'); +insert into employee values(166, 'herndon', 'jill', 'm', 'tech', '1990-8-18', '1965-8-29'); +insert into employee values(173, 'teng', 'weston', 'j', 'tech', '1980-7-15', '1951-11-17'); +insert into employee values(191, 'dexter', 'willa', 'n', 'prof', '1984-8-1', '1953-5-17'); +insert into employee values(195, 'williams', 'herman', 'h', 'prof', '1988-8-1', '1955-11-19'); +insert into employee values(209, 'smith', 'melanie', 'k', 'prof', '1983-8-1', '1946-5-24'); +insert into employee values(228, 'coronel', 'carlos', 'm', 'prof', '1988-8-1', '1949-5-16'); +insert into employee values(231, 'shebert', 'rebecca', 'a', 'cust', '1994-2-21', '1963-2-27'); +insert into employee values(297, 'jones', 'hermine', '', 'prof', '1985-1-1', '1950-7-4'); +insert into employee values(299, 'stoddard', 'doreen', 'l', 'prof', '1994-8-1', '1960-4-25'); +insert into employee values(301, 'osaki', 'ismael', 'k', 'prof', '1989-8-1', '1952-5-25'); +insert into employee values(333, 'jordan', 'julian', 'h', 'tech', '1991-4-23', '1968-7-16'); +insert into employee values(335, 'okomoto', 'ronald', 'f', 'prof', '1975-8-1', '1944-3-3'); +insert into employee values(342, 'smith', 'robert', 'a', 'prof', '1978-8-1', '1937-12-30'); +insert into employee values(387, 'smithson', 'george', 'd', 'prof', '1982-8-1', '1948-10-1'); +insert into employee values(401, 'blalock', 'james', 'g', 'prof', '1981-8-1', '1945-3-15'); +insert into employee values(412, 'smith', 'robert', 'e', 'cust', '1985-6-24', '1963-9-25'); +insert into employee values(425, 'matler', 'ralph', 'f', 'prof', '1995-8-1', '1973-12-2'); +insert into employee values(435, 'doornberg', 'anne', 'd', 'prof', '1992-8-1', '1963-10-2'); + +create table professor ( +emp_num integer, +dept_code text, +prof_office text, +prof_extension text, +prof_high_degree text +); +insert into professor values(103, 'hist', 'dre 156', 6783, 'ph.d.'); +insert into professor values(104, 'eng', 'dre 102', 5561, 'ma'); +insert into professor values(105, 'acct', 'klr 229d', 8665, 'ph.d.'); +insert into professor values(106, 'mkt/mgt', 'klr 126', 3899, 'ph.d.'); +insert into professor values(110, 'biol', 'aak 160', 3412, 'ph.d.'); +insert into professor values(114, 'acct', 'klr 211', 4436, 'ph.d.'); +insert into professor values(155, 'math', 'aak 201', 4440, 'ph.d.'); +insert into professor values(160, 'eng', 'dre 102', 2248, 'ph.d.'); +insert into professor values(162, 'cis', 'klr 203e', 2359, 'ph.d.'); +insert into professor values(191, 'mkt/mgt', 'klr 409b', 4016, 'dba'); +insert into professor values(195, 'psych', 'aak 297', 3550, 'ph.d.'); +insert into professor values(209, 'cis', 'klr 333', 3421, 'ph.d.'); +insert into professor values(228, 'cis', 'klr 300', 3000, 'ph.d.'); +insert into professor values(297, 'math', 'aak 194', 1145, 'ph.d.'); +insert into professor values(299, 'econ/fin', 'klr 284', 2851, 'ph.d.'); +insert into professor values(301, 'acct', 'klr 244', 4683, 'ph.d.'); +insert into professor values(335, 'eng', 'dre 208', 2000, 'ph.d.'); +insert into professor values(342, 'soc', 'bbg 208', 5514, 'ph.d.'); +insert into professor values(387, 'biol', 'aak 230', 8665, 'ph.d.'); +insert into professor values(401, 'hist', 'dre 156', 6783, 'ma'); +insert into professor values(425, 'econ/fin', 'klr 284', 2851, 'mba'); +insert into professor values(435, 'art', 'bbg 185', 2278, 'ph.d.'); +create table student_enroll ( +stu_num integer, +stu_lname text, +stu_fname text, +stu_init text, +stu_dob text, +stu_hrs integer, +stu_class text, +stu_gpa real, +stu_transfer integer, +dept_code text, +stu_phone text, +prof_num integer, +class_code text, +enroll_grade text); +insert into student_enroll values(321452, 'bowser', 'william', 'c', '1975-2-12', 42, 'so', 2.84, 0, 'biol', '2134', 205, '10014', 'c'); +insert into student_enroll values(321452, 'bowser', 'william', 'c', '1975-2-12', 42, 'so', 2.84, 0, 'biol', '2134', 205, '10018', 'a'); +insert into student_enroll values(321452, 'bowser', 'william', 'c', '1975-2-12', 42, 'so', 2.84, 0, 'biol', '2134', 205, '10021', 'c'); +insert into student_enroll values(324257, 'smithson', 'anne', 'k', '1981-11-15', 81, 'jr', 3.27, 1, 'cis', '2256', 222, '10014', 'b'); +insert into student_enroll values(324257, 'smithson', 'anne', 'k', '1981-11-15', 81, 'jr', 3.27, 1, 'cis', '2256', 222, '10018', 'b'); +insert into student_enroll values(324257, 'smithson', 'anne', 'k', '1981-11-15', 81, 'jr', 3.27, 1, 'cis', '2256', 222, '10021', 'c'); +insert into student_enroll values(324258, 'brewer', 'juliette', '', '1969-8-23', 36, 'so', 2.26, 1, 'acct', '2256', 228, 'None', 'None'); +insert into student_enroll values(324269, 'oblonski', 'walter', 'h', '1976-9-16', 66, 'jr', 3.09, 0, 'cis', '2114', 222, 'None', 'None'); +insert into student_enroll values(324273, 'smith', 'john', 'd', '1958-12-30', 102, 'sr', 2.11, 1, 'engl', '2231', 199, 'None', 'None'); +insert into student_enroll values(324274, 'katinga', 'raphael', 'p', '1979-10-21', 114, 'sr', 3.15, 0, 'acct', '2267', 228, 'None', 'None'); +insert into student_enroll values(324291, 'robertson', 'gerald', 't', '1973-4-8', 120, 'sr', 3.87, 0, 'edu', '2267', 311, 'None', 'None'); +insert into student_enroll values(324299, 'smith', 'john', 'b', '1986-11-30', 15, 'fr', 2.92, 0, 'acct', '2315', 230, 'None', 'None'); + diff --git a/all/databases/college_1_minus_1_2/college_1_minus_1_2.sqlite b/all/databases/college_1_minus_1_2/college_1_minus_1_2.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..8c5739030e9e5dcc2ea1336fa729d1f642353882 Binary files /dev/null and b/all/databases/college_1_minus_1_2/college_1_minus_1_2.sqlite differ diff --git a/all/databases/college_1_total_0/college_1_total_0.sql b/all/databases/college_1_total_0/college_1_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..82b2b13d93f7624f45be86951c4332dd27b08067 --- /dev/null +++ b/all/databases/college_1_total_0/college_1_total_0.sql @@ -0,0 +1,142 @@ +create table employee ( +emp_num integer, +emp_lname text, +emp_fname text, +emp_initial text, +emp_jobcode text, +emp_hiredate text, +emp_dob text +); +insert into employee values(100, 'worley', 'james', 'f', 'cust', '1978-2-23', '1950-6-12'); +insert into employee values(101, 'ramso', 'henry', 'b', 'cust', '1994-11-15', '1961-11-2'); +insert into employee values(102, 'edwards', 'rosemary', 'd', 'tech', '1990-7-23', '1953-7-3'); +insert into employee values(103, 'donelly', 'ronald', 'o', 'prof', '1987-7-1', '1952-10-2'); +insert into employee values(104, 'yukon', 'preston', 'd', 'prof', '1992-5-1', '1948-2-23'); +insert into employee values(105, 'heffington', 'arnelle', 'b', 'prof', '1991-7-1', '1950-11-2'); +insert into employee values(106, 'washington', 'ross', 'e', 'prof', '1976-8-1', '1941-3-4'); +insert into employee values(108, 'robertson', 'elaine', 'w', 'tech', '1983-10-18', '1961-6-20'); +insert into employee values(110, 'thieu', 'van', 's', 'prof', '1989-8-1', '1951-8-12'); +insert into employee values(114, 'graztevski', 'gerald', 'b', 'prof', '1978-8-1', '1939-3-18'); +insert into employee values(122, 'wilson', 'todd', 'h', 'cust', '1990-11-6', '1966-10-19'); +insert into employee values(123, 'jones', 'suzanne', 'b', 'tech', '1994-1-5', '1967-12-30'); +insert into employee values(124, 'smith', 'elsa', 'k', 'clrk', '1982-12-16', '1943-9-13'); +insert into employee values(126, 'ardano', 'james', 'g', 'clrk', '1994-10-1', '1970-3-12'); +insert into employee values(155, 'ritula', 'annelise', '', 'prof', '1990-8-1', '1957-5-24'); +insert into employee values(160, 'smith', 'robert', 't', 'prof', '1992-8-1', '1955-6-19'); +insert into employee values(161, 'watson', 'george', 'f', 'cust', '1994-11-1', '1962-10-2'); +insert into employee values(162, 'rob', 'peter', '', 'prof', '1981-8-1', '1940-6-20'); +insert into employee values(165, 'williamson', 'kathryn', 'a', 'clrk', '1992-6-15', '1968-11-17'); +insert into employee values(166, 'herndon', 'jill', 'm', 'tech', '1990-8-18', '1965-8-29'); +insert into employee values(173, 'teng', 'weston', 'j', 'tech', '1980-7-15', '1951-11-17'); +insert into employee values(191, 'dexter', 'willa', 'n', 'prof', '1984-8-1', '1953-5-17'); +insert into employee values(195, 'williams', 'herman', 'h', 'prof', '1988-8-1', '1955-11-19'); +insert into employee values(209, 'smith', 'melanie', 'k', 'prof', '1983-8-1', '1946-5-24'); +insert into employee values(228, 'coronel', 'carlos', 'm', 'prof', '1988-8-1', '1949-5-16'); +insert into employee values(231, 'shebert', 'rebecca', 'a', 'cust', '1994-2-21', '1963-2-27'); +insert into employee values(297, 'jones', 'hermine', '', 'prof', '1985-1-1', '1950-7-4'); +insert into employee values(299, 'stoddard', 'doreen', 'l', 'prof', '1994-8-1', '1960-4-25'); +insert into employee values(301, 'osaki', 'ismael', 'k', 'prof', '1989-8-1', '1952-5-25'); +insert into employee values(333, 'jordan', 'julian', 'h', 'tech', '1991-4-23', '1968-7-16'); +insert into employee values(335, 'okomoto', 'ronald', 'f', 'prof', '1975-8-1', '1944-3-3'); +insert into employee values(342, 'smith', 'robert', 'a', 'prof', '1978-8-1', '1937-12-30'); +insert into employee values(387, 'smithson', 'george', 'd', 'prof', '1982-8-1', '1948-10-1'); +insert into employee values(401, 'blalock', 'james', 'g', 'prof', '1981-8-1', '1945-3-15'); +insert into employee values(412, 'smith', 'robert', 'e', 'cust', '1985-6-24', '1963-9-25'); +insert into employee values(425, 'matler', 'ralph', 'f', 'prof', '1995-8-1', '1973-12-2'); +insert into employee values(435, 'doornberg', 'anne', 'd', 'prof', '1992-8-1', '1963-10-2'); + +create table professor ( +emp_num integer, +dept_code text, +prof_office text, +prof_extension text, +prof_high_degree text +); +insert into professor values(103, 'hist', 'dre 156', 6783, 'ph.d.'); +insert into professor values(104, 'eng', 'dre 102', 5561, 'ma'); +insert into professor values(105, 'acct', 'klr 229d', 8665, 'ph.d.'); +insert into professor values(106, 'mkt/mgt', 'klr 126', 3899, 'ph.d.'); +insert into professor values(110, 'biol', 'aak 160', 3412, 'ph.d.'); +insert into professor values(114, 'acct', 'klr 211', 4436, 'ph.d.'); +insert into professor values(155, 'math', 'aak 201', 4440, 'ph.d.'); +insert into professor values(160, 'eng', 'dre 102', 2248, 'ph.d.'); +insert into professor values(162, 'cis', 'klr 203e', 2359, 'ph.d.'); +insert into professor values(191, 'mkt/mgt', 'klr 409b', 4016, 'dba'); +insert into professor values(195, 'psych', 'aak 297', 3550, 'ph.d.'); +insert into professor values(209, 'cis', 'klr 333', 3421, 'ph.d.'); +insert into professor values(228, 'cis', 'klr 300', 3000, 'ph.d.'); +insert into professor values(297, 'math', 'aak 194', 1145, 'ph.d.'); +insert into professor values(299, 'econ/fin', 'klr 284', 2851, 'ph.d.'); +insert into professor values(301, 'acct', 'klr 244', 4683, 'ph.d.'); +insert into professor values(335, 'eng', 'dre 208', 2000, 'ph.d.'); +insert into professor values(342, 'soc', 'bbg 208', 5514, 'ph.d.'); +insert into professor values(387, 'biol', 'aak 230', 8665, 'ph.d.'); +insert into professor values(401, 'hist', 'dre 156', 6783, 'ma'); +insert into professor values(425, 'econ/fin', 'klr 284', 2851, 'mba'); +insert into professor values(435, 'art', 'bbg 185', 2278, 'ph.d.'); + +create table student ( +stu_num integer, +stu_lname text, +stu_fname text, +stu_init text, +stu_dob text, +stu_hrs integer, +stu_class text, +stu_gpa real, +stu_transfer integer, +dept_code text, +stu_phone text, +prof_num integer +); +insert into student values(321452, 'bowser', 'william', 'c', '1975-2-12', 42, 'so', 2.84, 0, 'biol', 2134, 205); +insert into student values(324257, 'smithson', 'anne', 'k', '1981-11-15', 81, 'jr', 3.27, 1, 'cis', 2256, 222); +insert into student values(324258, 'brewer', 'juliette', '', '1969-8-23', 36, 'so', 2.26, 1, 'acct', 2256, 228); +insert into student values(324269, 'oblonski', 'walter', 'h', '1976-9-16', 66, 'jr', 3.09, 0, 'cis', 2114, 222); +insert into student values(324273, 'smith', 'john', 'd', '1958-12-30', 102, 'sr', 2.11, 1, 'engl', 2231, 199); +insert into student values(324274, 'katinga', 'raphael', 'p', '1979-10-21', 114, 'sr', 3.15, 0, 'acct', 2267, 228); +insert into student values(324291, 'robertson', 'gerald', 't', '1973-4-8', 120, 'sr', 3.87, 0, 'edu', 2267, 311); +insert into student values(324299, 'smith', 'john', 'b', '1986-11-30', 15, 'fr', 2.92, 0, 'acct', 2315, 230); +create table class_enroll_course_department ( +class_code text, +crs_code text, +class_section text, +class_time text, +class_room text, +prof_num integer, +stu_num integer, +enroll_grade text, +dept_code text, +crs_description text, +crs_credit real, +dept_name text, +school_code text, +emp_num integer, +dept_address text, +dept_extension text); +insert into class_enroll_course_department values('10012', 'acct-211', '1', 'mwf 8:00-8:50 a.m.', 'bus311', 105, 'None', 'None', 'acct', 'accounting i', 3.0, 'accounting', 'bus', 114, 'klr 211 box 52', '3119'); +insert into class_enroll_course_department values('10013', 'acct-211', '2', 'mwf 9:00-9:50 a.m.', 'bus200', 105, 'None', 'None', 'acct', 'accounting i', 3.0, 'accounting', 'bus', 114, 'klr 211 box 52', '3119'); +insert into class_enroll_course_department values('10014', 'acct-211', '3', 'tth 2:30-3:45 p.m.', 'bus252', 342, 321452, 'c', 'acct', 'accounting i', 3.0, 'accounting', 'bus', 114, 'klr 211 box 52', '3119'); +insert into class_enroll_course_department values('10014', 'acct-211', '3', 'tth 2:30-3:45 p.m.', 'bus252', 342, 324257, 'b', 'acct', 'accounting i', 3.0, 'accounting', 'bus', 114, 'klr 211 box 52', '3119'); +insert into class_enroll_course_department values('10015', 'acct-212', '1', 'mwf 10:00-10:50 a.m.', 'bus311', 301, 'None', 'None', 'acct', 'accounting ii', 3.0, 'accounting', 'bus', 114, 'klr 211 box 52', '3119'); +insert into class_enroll_course_department values('10016', 'acct-212', '2', 'th 6:00-8:40 p.m.', 'bus252', 301, 'None', 'None', 'acct', 'accounting ii', 3.0, 'accounting', 'bus', 114, 'klr 211 box 52', '3119'); +insert into class_enroll_course_department values('10017', 'cis-220', '1', 'mwf 9:00-9:50 a.m.', 'klr209', 228, 'None', 'None', 'cis', 'intro. to microcomputing', 3.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('10018', 'cis-220', '2', 'mwf 9:00-9:50 a.m.', 'klr211', 114, 321452, 'a', 'cis', 'intro. to microcomputing', 3.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('10018', 'cis-220', '2', 'mwf 9:00-9:50 a.m.', 'klr211', 114, 324257, 'b', 'cis', 'intro. to microcomputing', 3.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('10019', 'cis-220', '3', 'mwf 10:00-10:50 a.m.', 'klr209', 228, 'None', 'None', 'cis', 'intro. to microcomputing', 3.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('10020', 'cis-420', '1', 'w 6:00-8:40 p.m.', 'klr209', 162, 'None', 'None', 'cis', 'database design and implementation', 4.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('10021', 'qm-261', '1', 'mwf 8:00-8:50 a.m.', 'klr200', 114, 321452, 'c', 'cis', 'intro. to statistics', 3.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('10021', 'qm-261', '1', 'mwf 8:00-8:50 a.m.', 'klr200', 114, 324257, 'c', 'cis', 'intro. to statistics', 3.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('10022', 'qm-261', '2', 'tth 1:00-2:15 p.m.', 'klr200', 114, 'None', 'None', 'cis', 'intro. to statistics', 3.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('10023', 'qm-362', '1', 'mwf 11:00-11:50 a.m.', 'klr200', 162, 'None', 'None', 'cis', 'statistical applications', 4.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('10024', 'qm-362', '2', 'tth 2:30-3:45 p.m.', 'klr200', 162, 'None', 'None', 'cis', 'statistical applications', 4.0, 'computer info. systems', 'bus', 209, 'klr 333 box 56', '3245'); +insert into class_enroll_course_department values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'art', 'None', 'None', 'fine arts', 'a&sci', 435, 'bbg 185 box 128', '2278'); +insert into class_enroll_course_department values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'biol', 'None', 'None', 'biology', 'a&sci', 387, 'aak 230 box 415', '4117'); +insert into class_enroll_course_department values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'econ/fin', 'None', 'None', 'economics/finance', 'bus', 299, 'klr 284 box 63', '3126'); +insert into class_enroll_course_department values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'eng', 'None', 'None', 'english', 'a&sci', 160, 'dre 102 box 223', '1004'); +insert into class_enroll_course_department values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'hist', 'None', 'None', 'history', 'a&sci', 103, 'dre 156 box 284', '1867'); +insert into class_enroll_course_department values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'math', 'None', 'None', 'mathematics', 'a&sci', 297, 'aak 194 box 422', '4234'); +insert into class_enroll_course_department values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'mkt/mgt', 'None', 'None', 'marketing/management', 'bus', 106, 'klr 126 box 55', '3342'); +insert into class_enroll_course_department values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'psych', 'None', 'None', 'psychology', 'a&sci', 195, 'aak 297 box 438', '4110'); +insert into class_enroll_course_department values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'soc', 'None', 'None', 'sociology', 'a&sci', 342, 'bbg 208 box 132', '2008'); + diff --git a/all/databases/college_1_total_0/college_1_total_0.sqlite b/all/databases/college_1_total_0/college_1_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..62ed49a8e3b69ac56df2fe1e149d7e43a36a20d6 Binary files /dev/null and b/all/databases/college_1_total_0/college_1_total_0.sqlite differ diff --git a/all/databases/college_2/college_2.sql b/all/databases/college_2/college_2.sql new file mode 100644 index 0000000000000000000000000000000000000000..ae8fb1376438e22337467b42a685dbb549b2197c --- /dev/null +++ b/all/databases/college_2/college_2.sql @@ -0,0 +1,912 @@ +CREATE TABLE "classroom" ( +"building" text, +"room_number" text, +"capacity" integer +); + +INSERT INTO classroom VALUES ("alumni", "143", 10); +INSERT INTO classroom VALUES ("alumni", "547", 10); +INSERT INTO classroom VALUES ("bronfman", "700", 27); +INSERT INTO classroom VALUES ("chandler", "375", 92); +INSERT INTO classroom VALUES ("chandler", "804", 34); +INSERT INTO classroom VALUES ("drown", "757", 120); +INSERT INTO classroom VALUES ("fairchild", "145", 10); +INSERT INTO classroom VALUES ("garfield", "119", 115); +INSERT INTO classroom VALUES ("gates", "314", 109); +INSERT INTO classroom VALUES ("gates", "707", 97); +INSERT INTO classroom VALUES ("grace", "40", 26); +INSERT INTO classroom VALUES ("lambeau", "348", 47); +INSERT INTO classroom VALUES ("lamberton", "134", 18); +INSERT INTO classroom VALUES ("lamberton", "143", 15); +INSERT INTO classroom VALUES ("main", "425", 32); +INSERT INTO classroom VALUES ("main", "45", 24); +INSERT INTO classroom VALUES ("nassau", "45", 12); +INSERT INTO classroom VALUES ("painter", "86", 28); +INSERT INTO classroom VALUES ("polya", "808", 65); +INSERT INTO classroom VALUES ("power", "717", 10); +INSERT INTO classroom VALUES ("power", "972", 30); +INSERT INTO classroom VALUES ("rathbone", "261", 71); +INSERT INTO classroom VALUES ("saucon", "113", 10); +INSERT INTO classroom VALUES ("saucon", "180", 59); +INSERT INTO classroom VALUES ("saucon", "844", 60); +INSERT INTO classroom VALUES ("stabler", "105", 113); +INSERT INTO classroom VALUES ("taylor", "183", 12); +INSERT INTO classroom VALUES ("taylor", "812", 22); +INSERT INTO classroom VALUES ("whitman", "134", 51); +INSERT INTO classroom VALUES ("whitman", "434", 11); + +CREATE TABLE "department" ( +"dept_name" text, +"building" text, +"budget" real +); + +INSERT INTO department VALUES ("accounting", "chandler", 255041.46); +INSERT INTO department VALUES ("astronomy", "candlestick", 647610.55); +INSERT INTO department VALUES ("athletics", "taylor", 699140.86); +INSERT INTO department VALUES ("biology", "wrigley", 942162.76); +INSERT INTO department VALUES ("civil eng.", "lambeau", 210627.58); +INSERT INTO department VALUES ("comp. sci.", "whitman", 573745.09); +INSERT INTO department VALUES ("cybernetics", "palmer", 611042.66); +INSERT INTO department VALUES ("elec. eng.", "saucon", 441840.92); +INSERT INTO department VALUES ("english", "lamberton", 106378.69); +INSERT INTO department VALUES ("finance", "linderman", 601283.6); +INSERT INTO department VALUES ("geology", "candlestick", 866831.75); +INSERT INTO department VALUES ("history", "palmer", 406557.93); +INSERT INTO department VALUES ("languages", "mercer", 794541.46); +INSERT INTO department VALUES ("marketing", "taylor", 617253.94); +INSERT INTO department VALUES ("math", "bronfman", 734550.7); +INSERT INTO department VALUES ("mech. eng.", "taylor", 395051.74); +INSERT INTO department VALUES ("physics", "thompson", 848175.04); +INSERT INTO department VALUES ("pol. sci.", "brodhead", 777605.11); +INSERT INTO department VALUES ("psychology", "main", 276527.61); +INSERT INTO department VALUES ("statistics", "rauch", 520350.65); + +CREATE TABLE "course" ( +"course_id" text, +"title" text, +"dept_name" text, +"credits" integer +); + +INSERT INTO course VALUES ("101", "c programming", "mech. eng.", 4); +INSERT INTO course VALUES ("105", "the music of donovan", "mech. eng.", 3); +INSERT INTO course VALUES ("123", "electron microscopy", "mech. eng.", 3); +INSERT INTO course VALUES ("127", "international finance", "comp. sci.", 3); +INSERT INTO course VALUES ("130", "greek tragedy", "statistics", 4); +INSERT INTO course VALUES ("133", "greek tragedy", "psychology", 4); +INSERT INTO course VALUES ("137", "virology", "biology", 3); +INSERT INTO course VALUES ("139", "compiler design", "elec. eng.", 3); +INSERT INTO course VALUES ("158", "geology", "mech. eng.", 3); +INSERT INTO course VALUES ("169", "mobile computing", "physics", 3); +INSERT INTO course VALUES ("190", "surfing", "cybernetics", 3); +INSERT INTO course VALUES ("192", "international trade", "marketing", 3); +INSERT INTO course VALUES ("195", "latin", "mech. eng.", 3); +INSERT INTO course VALUES ("200", "composition and literature", "cybernetics", 3); +INSERT INTO course VALUES ("209", "music of the 50s", "history", 3); +INSERT INTO course VALUES ("224", "biostatistics", "geology", 3); +INSERT INTO course VALUES ("227", "graph theory", "psychology", 3); +INSERT INTO course VALUES ("235", "visual basic", "psychology", 4); +INSERT INTO course VALUES ("236", "how to groom your cat", "accounting", 3); +INSERT INTO course VALUES ("237", "finite element analysis", "cybernetics", 3); +INSERT INTO course VALUES ("238", "the monkeys", "history", 4); +INSERT INTO course VALUES ("239", "rock and roll", "marketing", 3); +INSERT INTO course VALUES ("241", "focal programming", "psychology", 4); +INSERT INTO course VALUES ("242", "calculus", "pol. sci.", 4); +INSERT INTO course VALUES ("254", "environmental law", "math", 4); +INSERT INTO course VALUES ("258", "the beatles", "math", 3); +INSERT INTO course VALUES ("265", "marine mammals", "geology", 4); +INSERT INTO course VALUES ("267", "game programming", "cybernetics", 4); +INSERT INTO course VALUES ("270", "shakespeare", "pol. sci.", 4); +INSERT INTO course VALUES ("272", "world history", "finance", 4); +INSERT INTO course VALUES ("274", "tort law", "civil eng.", 3); +INSERT INTO course VALUES ("275", "corporate law", "comp. sci.", 4); +INSERT INTO course VALUES ("276", "video gaming", "finance", 3); +INSERT INTO course VALUES ("278", "world history", "athletics", 4); +INSERT INTO course VALUES ("284", "bankruptcy", "accounting", 3); +INSERT INTO course VALUES ("292", "organic chemistry", "english", 4); +INSERT INTO course VALUES ("304", "existentialism", "finance", 3); +INSERT INTO course VALUES ("313", "quantum mechanics", "elec. eng.", 4); +INSERT INTO course VALUES ("318", "embedded systems", "finance", 4); +INSERT INTO course VALUES ("319", "quantum mechanics", "cybernetics", 3); +INSERT INTO course VALUES ("324", "marine mammals", "cybernetics", 3); +INSERT INTO course VALUES ("328", "the ibm 360 architecture", "history", 3); +INSERT INTO course VALUES ("334", "marine mammals", "elec. eng.", 3); +INSERT INTO course VALUES ("337", "electricity and magnetism", "civil eng.", 3); +INSERT INTO course VALUES ("338", "elastic structures", "languages", 4); +INSERT INTO course VALUES ("340", "transaction processing", "psychology", 3); +INSERT INTO course VALUES ("341", "computational biology", "english", 3); +INSERT INTO course VALUES ("344", "cost accounting", "physics", 4); +INSERT INTO course VALUES ("345", "journalism", "astronomy", 4); +INSERT INTO course VALUES ("348", "geology", "psychology", 3); +INSERT INTO course VALUES ("349", "physical chemistry", "math", 3); +INSERT INTO course VALUES ("352", "image processing", "astronomy", 3); +INSERT INTO course VALUES ("353", "industrial organization", "languages", 4); +INSERT INTO course VALUES ("359", "security", "cybernetics", 3); +INSERT INTO course VALUES ("362", "immunology", "civil eng.", 4); +INSERT INTO course VALUES ("366", "systems software", "history", 3); +INSERT INTO course VALUES ("371", "sanitary engineering", "athletics", 4); +INSERT INTO course VALUES ("376", "thermodynamics", "geology", 3); +INSERT INTO course VALUES ("377", "rpg programming", "pol. sci.", 4); +INSERT INTO course VALUES ("391", "japanese", "comp. sci.", 3); +INSERT INTO course VALUES ("392", "aquatic chemistry", "cybernetics", 3); +INSERT INTO course VALUES ("393", "international trade", "athletics", 3); +INSERT INTO course VALUES ("394", "differential geometry", "statistics", 3); +INSERT INTO course VALUES ("396", "database system concepts", "pol. sci.", 4); +INSERT INTO course VALUES ("399", "romantic literature", "civil eng.", 3); +INSERT INTO course VALUES ("400", "religion", "english", 3); +INSERT INTO course VALUES ("401", "existentialism", "athletics", 3); +INSERT INTO course VALUES ("403", "introduction to burglary", "cybernetics", 4); +INSERT INTO course VALUES ("407", "compiler design", "finance", 4); +INSERT INTO course VALUES ("408", "composition and literature", "statistics", 4); +INSERT INTO course VALUES ("411", "geology", "cybernetics", 3); +INSERT INTO course VALUES ("415", "operating systems", "psychology", 3); +INSERT INTO course VALUES ("416", "c programming", "athletics", 3); +INSERT INTO course VALUES ("421", "manufacturing", "finance", 3); +INSERT INTO course VALUES ("426", "drama", "languages", 4); +INSERT INTO course VALUES ("436", "medieval civilization or lack thereof", "english", 3); +INSERT INTO course VALUES ("442", "differential geometry", "astronomy", 4); +INSERT INTO course VALUES ("443", "bacteriology", "physics", 4); +INSERT INTO course VALUES ("445", "international trade", "math", 3); +INSERT INTO course VALUES ("451", "aquatic chemistry", "athletics", 4); +INSERT INTO course VALUES ("456", "service-oriented architectures", "comp. sci.", 4); +INSERT INTO course VALUES ("457", "number theory", "accounting", 4); +INSERT INTO course VALUES ("458", "sailing", "math", 4); +INSERT INTO course VALUES ("461", "physical chemistry", "history", 3); +INSERT INTO course VALUES ("468", "antidisestablishmentarianism in modern america", "biology", 4); +INSERT INTO course VALUES ("476", "hydraulics", "physics", 4); +INSERT INTO course VALUES ("482", "the music of the ramones", "accounting", 4); +INSERT INTO course VALUES ("486", "elastic structures", "english", 3); +INSERT INTO course VALUES ("487", "mechanics", "psychology", 4); +INSERT INTO course VALUES ("489", "hebrew", "civil eng.", 3); +INSERT INTO course VALUES ("493", "environmental law", "psychology", 3); +INSERT INTO course VALUES ("494", "computability theory", "math", 3); +INSERT INTO course VALUES ("496", "creative writing", "mech. eng.", 4); +INSERT INTO course VALUES ("500", "the monkeys", "astronomy", 4); +INSERT INTO course VALUES ("527", "composition and literature", "biology", 4); +INSERT INTO course VALUES ("539", "differential geometry", "statistics", 3); +INSERT INTO course VALUES ("544", "virology", "languages", 4); +INSERT INTO course VALUES ("545", "care and feeding of cats", "statistics", 3); +INSERT INTO course VALUES ("546", "international practicum", "comp. sci.", 4); +INSERT INTO course VALUES ("549", "geology", "math", 4); + +CREATE TABLE "instructor" ( +"id" text, +"name" text, +"dept_name" text, +"salary" real +); + +INSERT INTO instructor VALUES ("14365", "mckinnon", "cybernetics", 94333.99); +INSERT INTO instructor VALUES ("15347", "pingr", "statistics", 59303.62); +INSERT INTO instructor VALUES ("16807", "mird", "marketing", 119921.41); +INSERT INTO instructor VALUES ("19368", "luo", "english", 88791.45); +INSERT INTO instructor VALUES ("22591", "murata", "athletics", 61387.56); +INSERT INTO instructor VALUES ("25946", "konstantinides", "languages", 32570.5); +INSERT INTO instructor VALUES ("28097", "levine", "elec. eng.", 89805.83); +INSERT INTO instructor VALUES ("28400", "shuming", "physics", 108011.81); +INSERT INTO instructor VALUES ("31955", "queiroz", "biology", 45538.32); +INSERT INTO instructor VALUES ("3199", "sullivan", "elec. eng.", 90038.09); +INSERT INTO instructor VALUES ("3335", "bertolino", "mech. eng.", 51647.57); +INSERT INTO instructor VALUES ("34175", "hau", "accounting", 43966.29); +INSERT INTO instructor VALUES ("35579", "voronina", "physics", 121141.99); +INSERT INTO instructor VALUES ("36897", "soisalon-soininen", "psychology", 62579.61); +INSERT INTO instructor VALUES ("37687", "moreira", "accounting", 71351.42); +INSERT INTO instructor VALUES ("4034", "arias", "statistics", 104563.38); +INSERT INTO instructor VALUES ("41930", "mingoz", "finance", 105311.38); +INSERT INTO instructor VALUES ("4233", "yazdi", "athletics", 98333.65); +INSERT INTO instructor VALUES ("42782", "lembr", "accounting", 32241.56); +INSERT INTO instructor VALUES ("43779", "choll", "statistics", 57807.09); +INSERT INTO instructor VALUES ("48507", "valtchev", "biology", 77036.18); +INSERT INTO instructor VALUES ("48570", "arinb", "statistics", 54805.11); +INSERT INTO instructor VALUES ("50330", "bawa", "athletics", 72140.88); +INSERT INTO instructor VALUES ("50885", "kenje", "marketing", 106554.73); +INSERT INTO instructor VALUES ("52647", "vicentino", "elec. eng.", 34272.67); +INSERT INTO instructor VALUES ("57180", "dusserre", "marketing", 66143.25); +INSERT INTO instructor VALUES ("58558", "jaekel", "athletics", 103146.87); +INSERT INTO instructor VALUES ("59795", "desyl", "languages", 48803.38); +INSERT INTO instructor VALUES ("63287", "dagostino", "psychology", 59706.49); +INSERT INTO instructor VALUES ("63395", "sarkar", "pol. sci.", 87549.8); +INSERT INTO instructor VALUES ("64871", "ullman", "accounting", 47307.1); +INSERT INTO instructor VALUES ("6569", "bancilhon", "pol. sci.", 87958.01); +INSERT INTO instructor VALUES ("65931", "liley", "languages", 90891.69); +INSERT INTO instructor VALUES ("72553", "morris", "marketing", 43770.36); +INSERT INTO instructor VALUES ("73623", "yin", "english", 46397.59); +INSERT INTO instructor VALUES ("74420", "gustafsson", "elec. eng.", 82534.37); +INSERT INTO instructor VALUES ("74426", "bondi", "comp. sci.", 115469.11); +INSERT INTO instructor VALUES ("77346", "lent", "mech. eng.", 107978.47); +INSERT INTO instructor VALUES ("78699", "pimenta", "cybernetics", 79866.95); +INSERT INTO instructor VALUES ("79081", "bourrier", "comp. sci.", 80797.83); +INSERT INTO instructor VALUES ("79653", "gutierrez", "statistics", 45310.53); +INSERT INTO instructor VALUES ("80759", "sakurai", "english", 118143.98); +INSERT INTO instructor VALUES ("81991", "romero", "astronomy", 79070.08); +INSERT INTO instructor VALUES ("90376", "mahmoud", "geology", 99382.59); +INSERT INTO instructor VALUES ("90643", "kean", "english", 35023.18); +INSERT INTO instructor VALUES ("95030", "bietzk", "cybernetics", 117836.5); +INSERT INTO instructor VALUES ("95709", "atanassov", "statistics", 84982.92); +INSERT INTO instructor VALUES ("96895", "tung", "athletics", 50482.03); +INSERT INTO instructor VALUES ("97302", "wieland", "pol. sci.", 124651.41); +INSERT INTO instructor VALUES ("99052", "dale", "cybernetics", 93348.83); + +CREATE TABLE "section" ( +"course_id" text, +"sec_id" text, +"semester" text, +"year" integer, +"building" text, +"room_number" text, +"time_slot_id" text +); + +INSERT INTO section VALUES ("105", "1", "fall", 2009, "chandler", "804", "n"); +INSERT INTO section VALUES ("105", "2", "fall", 2002, "gates", "314", "k"); +INSERT INTO section VALUES ("137", "1", "spring", 2002, "whitman", "434", "o"); +INSERT INTO section VALUES ("158", "1", "fall", 2008, "fairchild", "145", "b"); +INSERT INTO section VALUES ("158", "2", "spring", 2008, "fairchild", "145", "d"); +INSERT INTO section VALUES ("169", "1", "spring", 2007, "saucon", "844", "d"); +INSERT INTO section VALUES ("169", "2", "fall", 2002, "alumni", "547", "j"); +INSERT INTO section VALUES ("192", "1", "fall", 2002, "lamberton", "134", "j"); +INSERT INTO section VALUES ("200", "1", "spring", 2007, "taylor", "183", "c"); +INSERT INTO section VALUES ("200", "2", "fall", 2002, "saucon", "113", "j"); +INSERT INTO section VALUES ("237", "1", "spring", 2008, "whitman", "434", "f"); +INSERT INTO section VALUES ("237", "2", "fall", 2009, "drown", "757", "d"); +INSERT INTO section VALUES ("239", "1", "fall", 2006, "power", "717", "d"); +INSERT INTO section VALUES ("242", "1", "fall", 2009, "fairchild", "145", "g"); +INSERT INTO section VALUES ("258", "1", "fall", 2007, "power", "717", "k"); +INSERT INTO section VALUES ("270", "1", "spring", 2010, "saucon", "180", "f"); +INSERT INTO section VALUES ("274", "1", "fall", 2002, "taylor", "183", "i"); +INSERT INTO section VALUES ("304", "1", "fall", 2009, "taylor", "183", "e"); +INSERT INTO section VALUES ("313", "1", "fall", 2010, "main", "45", "l"); +INSERT INTO section VALUES ("319", "1", "spring", 2003, "bronfman", "700", "n"); +INSERT INTO section VALUES ("334", "1", "fall", 2009, "polya", "808", "h"); +INSERT INTO section VALUES ("338", "1", "spring", 2007, "saucon", "180", "m"); +INSERT INTO section VALUES ("338", "2", "spring", 2006, "saucon", "113", "o"); +INSERT INTO section VALUES ("345", "1", "spring", 2008, "taylor", "183", "e"); +INSERT INTO section VALUES ("349", "1", "spring", 2008, "taylor", "812", "o"); +INSERT INTO section VALUES ("352", "1", "spring", 2006, "main", "425", "n"); +INSERT INTO section VALUES ("362", "1", "fall", 2005, "saucon", "844", "o"); +INSERT INTO section VALUES ("362", "2", "fall", 2006, "saucon", "180", "p"); +INSERT INTO section VALUES ("362", "3", "spring", 2008, "whitman", "134", "k"); +INSERT INTO section VALUES ("366", "1", "fall", 2005, "lamberton", "134", "g"); +INSERT INTO section VALUES ("376", "1", "fall", 2006, "main", "45", "k"); +INSERT INTO section VALUES ("400", "1", "spring", 2007, "taylor", "183", "j"); +INSERT INTO section VALUES ("400", "2", "fall", 2003, "saucon", "113", "k"); +INSERT INTO section VALUES ("401", "1", "fall", 2003, "lamberton", "134", "d"); +INSERT INTO section VALUES ("408", "1", "spring", 2007, "fairchild", "145", "i"); +INSERT INTO section VALUES ("408", "2", "spring", 2003, "lamberton", "143", "h"); +INSERT INTO section VALUES ("415", "1", "fall", 2010, "lambeau", "348", "j"); +INSERT INTO section VALUES ("421", "1", "fall", 2004, "saucon", "180", "l"); +INSERT INTO section VALUES ("426", "1", "spring", 2006, "alumni", "143", "o"); +INSERT INTO section VALUES ("443", "1", "spring", 2010, "taylor", "183", "a"); +INSERT INTO section VALUES ("443", "2", "spring", 2002, "lambeau", "348", "m"); +INSERT INTO section VALUES ("445", "1", "spring", 2001, "alumni", "547", "g"); +INSERT INTO section VALUES ("457", "1", "spring", 2001, "lamberton", "134", "h"); +INSERT INTO section VALUES ("461", "1", "fall", 2002, "lamberton", "143", "d"); +INSERT INTO section VALUES ("468", "1", "fall", 2005, "nassau", "45", "f"); +INSERT INTO section VALUES ("468", "2", "fall", 2007, "fairchild", "145", "j"); +INSERT INTO section VALUES ("476", "1", "fall", 2010, "lamberton", "143", "i"); +INSERT INTO section VALUES ("482", "1", "fall", 2005, "saucon", "113", "d"); +INSERT INTO section VALUES ("486", "1", "fall", 2009, "polya", "808", "m"); +INSERT INTO section VALUES ("489", "1", "fall", 2007, "saucon", "844", "d"); +INSERT INTO section VALUES ("493", "1", "spring", 2010, "stabler", "105", "f"); +INSERT INTO section VALUES ("496", "1", "fall", 2001, "lambeau", "348", "m"); +INSERT INTO section VALUES ("527", "1", "fall", 2004, "chandler", "804", "d"); +INSERT INTO section VALUES ("545", "1", "fall", 2001, "garfield", "119", "a"); +INSERT INTO section VALUES ("559", "1", "fall", 2002, "fairchild", "145", "j"); +INSERT INTO section VALUES ("561", "1", "fall", 2006, "saucon", "180", "d"); +INSERT INTO section VALUES ("571", "1", "spring", 2004, "gates", "707", "k"); +INSERT INTO section VALUES ("581", "1", "spring", 2005, "lamberton", "143", "g"); +INSERT INTO section VALUES ("591", "1", "spring", 2005, "gates", "314", "a"); +INSERT INTO section VALUES ("599", "1", "spring", 2003, "polya", "808", "h"); +INSERT INTO section VALUES ("603", "1", "fall", 2003, "lamberton", "134", "m"); +INSERT INTO section VALUES ("604", "1", "spring", 2009, "lamberton", "143", "d"); +INSERT INTO section VALUES ("612", "1", "fall", 2007, "taylor", "812", "d"); +INSERT INTO section VALUES ("626", "1", "fall", 2006, "fairchild", "145", "c"); +INSERT INTO section VALUES ("629", "1", "spring", 2003, "lamberton", "134", "j"); +INSERT INTO section VALUES ("631", "1", "spring", 2007, "gates", "707", "e"); +INSERT INTO section VALUES ("642", "1", "fall", 2004, "chandler", "375", "c"); +INSERT INTO section VALUES ("663", "1", "spring", 2005, "saucon", "180", "f"); +INSERT INTO section VALUES ("679", "1", "spring", 2010, "polya", "808", "b"); +INSERT INTO section VALUES ("692", "1", "spring", 2010, "alumni", "547", "a"); +INSERT INTO section VALUES ("694", "1", "fall", 2002, "power", "717", "m"); +INSERT INTO section VALUES ("696", "1", "spring", 2002, "main", "425", "p"); +INSERT INTO section VALUES ("702", "1", "spring", 2001, "taylor", "812", "e"); +INSERT INTO section VALUES ("704", "1", "spring", 2008, "lamberton", "143", "b"); +INSERT INTO section VALUES ("735", "1", "spring", 2003, "taylor", "183", "c"); +INSERT INTO section VALUES ("735", "2", "spring", 2010, "saucon", "180", "e"); +INSERT INTO section VALUES ("747", "1", "spring", 2004, "nassau", "45", "l"); +INSERT INTO section VALUES ("748", "1", "fall", 2003, "bronfman", "700", "l"); +INSERT INTO section VALUES ("760", "1", "spring", 2004, "gates", "707", "f"); +INSERT INTO section VALUES ("791", "1", "spring", 2006, "saucon", "180", "b"); +INSERT INTO section VALUES ("793", "1", "spring", 2002, "whitman", "434", "h"); +INSERT INTO section VALUES ("795", "1", "spring", 2004, "saucon", "113", "m"); +INSERT INTO section VALUES ("802", "1", "spring", 2003, "drown", "757", "c"); +INSERT INTO section VALUES ("808", "1", "fall", 2003, "lamberton", "134", "j"); +INSERT INTO section VALUES ("843", "1", "fall", 2010, "taylor", "812", "c"); +INSERT INTO section VALUES ("852", "1", "spring", 2008, "rathbone", "261", "e"); +INSERT INTO section VALUES ("864", "1", "spring", 2006, "main", "425", "o"); +INSERT INTO section VALUES ("867", "1", "fall", 2006, "saucon", "180", "a"); +INSERT INTO section VALUES ("867", "2", "fall", 2010, "power", "717", "m"); +INSERT INTO section VALUES ("875", "1", "spring", 2005, "power", "972", "i"); +INSERT INTO section VALUES ("893", "1", "fall", 2007, "power", "717", "l"); +INSERT INTO section VALUES ("927", "1", "fall", 2002, "taylor", "183", "d"); +INSERT INTO section VALUES ("949", "1", "fall", 2007, "drown", "757", "l"); +INSERT INTO section VALUES ("959", "1", "fall", 2006, "taylor", "812", "i"); +INSERT INTO section VALUES ("960", "1", "fall", 2009, "chandler", "375", "d"); +INSERT INTO section VALUES ("960", "2", "fall", 2006, "power", "717", "p"); +INSERT INTO section VALUES ("962", "1", "spring", 2008, "taylor", "812", "p"); +INSERT INTO section VALUES ("972", "1", "spring", 2009, "taylor", "183", "j"); +INSERT INTO section VALUES ("974", "1", "fall", 2003, "stabler", "105", "j"); +INSERT INTO section VALUES ("991", "1", "spring", 2008, "power", "972", "d"); + +CREATE TABLE "teaches" ( +"id" text, +"course_id" text, +"sec_id" text, +"semester" text, +"year" integer +); + +INSERT INTO teaches VALUES ("34175", "747", "1", "spring", 2004); +INSERT INTO teaches VALUES ("3199", "169", "1", "spring", 2007); +INSERT INTO teaches VALUES ("6569", "445", "1", "spring", 2001); +INSERT INTO teaches VALUES ("28097", "808", "1", "fall", 2003); +INSERT INTO teaches VALUES ("22591", "962", "1", "spring", 2008); +INSERT INTO teaches VALUES ("90376", "158", "1", "fall", 2008); +INSERT INTO teaches VALUES ("3199", "561", "1", "fall", 2006); +INSERT INTO teaches VALUES ("34175", "274", "1", "fall", 2002); +INSERT INTO teaches VALUES ("34175", "571", "1", "spring", 2004); +INSERT INTO teaches VALUES ("79081", "345", "1", "spring", 2008); +INSERT INTO teaches VALUES ("80759", "559", "1", "fall", 2002); +INSERT INTO teaches VALUES ("22591", "991", "1", "spring", 2008); +INSERT INTO teaches VALUES ("22591", "400", "2", "fall", 2003); +INSERT INTO teaches VALUES ("74420", "376", "1", "fall", 2006); +INSERT INTO teaches VALUES ("73623", "694", "1", "fall", 2002); +INSERT INTO teaches VALUES ("6569", "137", "1", "spring", 2002); +INSERT INTO teaches VALUES ("95709", "270", "1", "spring", 2010); +INSERT INTO teaches VALUES ("36897", "795", "1", "spring", 2004); +INSERT INTO teaches VALUES ("74420", "443", "2", "spring", 2002); +INSERT INTO teaches VALUES ("77346", "486", "1", "fall", 2009); +INSERT INTO teaches VALUES ("79081", "408", "1", "spring", 2007); +INSERT INTO teaches VALUES ("6569", "362", "3", "spring", 2008); +INSERT INTO teaches VALUES ("6569", "527", "1", "fall", 2004); +INSERT INTO teaches VALUES ("41930", "401", "1", "fall", 2003); +INSERT INTO teaches VALUES ("79081", "408", "2", "spring", 2003); +INSERT INTO teaches VALUES ("77346", "493", "1", "spring", 2010); +INSERT INTO teaches VALUES ("4233", "679", "1", "spring", 2010); +INSERT INTO teaches VALUES ("99052", "237", "2", "fall", 2009); +INSERT INTO teaches VALUES ("95709", "258", "1", "fall", 2007); +INSERT INTO teaches VALUES ("63287", "334", "1", "fall", 2009); +INSERT INTO teaches VALUES ("28097", "366", "1", "fall", 2005); +INSERT INTO teaches VALUES ("19368", "581", "1", "spring", 2005); +INSERT INTO teaches VALUES ("42782", "793", "1", "spring", 2002); +INSERT INTO teaches VALUES ("74420", "959", "1", "fall", 2006); +INSERT INTO teaches VALUES ("41930", "421", "1", "fall", 2004); +INSERT INTO teaches VALUES ("6569", "426", "1", "spring", 2006); +INSERT INTO teaches VALUES ("6569", "362", "2", "fall", 2006); +INSERT INTO teaches VALUES ("77346", "864", "1", "spring", 2006); +INSERT INTO teaches VALUES ("3335", "960", "1", "fall", 2009); +INSERT INTO teaches VALUES ("43779", "105", "1", "fall", 2009); +INSERT INTO teaches VALUES ("48507", "626", "1", "fall", 2006); +INSERT INTO teaches VALUES ("99052", "893", "1", "fall", 2007); +INSERT INTO teaches VALUES ("22591", "663", "1", "spring", 2005); +INSERT INTO teaches VALUES ("25946", "192", "1", "fall", 2002); +INSERT INTO teaches VALUES ("6569", "349", "1", "spring", 2008); +INSERT INTO teaches VALUES ("99052", "237", "1", "spring", 2008); +INSERT INTO teaches VALUES ("22591", "972", "1", "spring", 2009); +INSERT INTO teaches VALUES ("77346", "704", "1", "spring", 2008); +INSERT INTO teaches VALUES ("36897", "242", "1", "fall", 2009); +INSERT INTO teaches VALUES ("99052", "158", "2", "spring", 2008); +INSERT INTO teaches VALUES ("19368", "545", "1", "fall", 2001); +INSERT INTO teaches VALUES ("36897", "791", "1", "spring", 2006); +INSERT INTO teaches VALUES ("22591", "642", "1", "fall", 2004); +INSERT INTO teaches VALUES ("95709", "468", "1", "fall", 2005); +INSERT INTO teaches VALUES ("3335", "949", "1", "fall", 2007); +INSERT INTO teaches VALUES ("99052", "748", "1", "fall", 2003); +INSERT INTO teaches VALUES ("43779", "489", "1", "fall", 2007); +INSERT INTO teaches VALUES ("28400", "603", "1", "fall", 2003); +INSERT INTO teaches VALUES ("81991", "415", "1", "fall", 2010); +INSERT INTO teaches VALUES ("48570", "867", "2", "fall", 2010); +INSERT INTO teaches VALUES ("3199", "631", "1", "spring", 2007); +INSERT INTO teaches VALUES ("74420", "443", "1", "spring", 2010); +INSERT INTO teaches VALUES ("81991", "702", "1", "spring", 2001); +INSERT INTO teaches VALUES ("14365", "843", "1", "fall", 2010); +INSERT INTO teaches VALUES ("74420", "612", "1", "fall", 2007); +INSERT INTO teaches VALUES ("99052", "629", "1", "spring", 2003); +INSERT INTO teaches VALUES ("43779", "105", "2", "fall", 2002); +INSERT INTO teaches VALUES ("79081", "200", "2", "fall", 2002); +INSERT INTO teaches VALUES ("99052", "496", "1", "fall", 2001); +INSERT INTO teaches VALUES ("50330", "468", "2", "fall", 2007); +INSERT INTO teaches VALUES ("36897", "696", "1", "spring", 2002); +INSERT INTO teaches VALUES ("77346", "735", "1", "spring", 2003); +INSERT INTO teaches VALUES ("14365", "200", "1", "spring", 2007); +INSERT INTO teaches VALUES ("90643", "461", "1", "fall", 2002); +INSERT INTO teaches VALUES ("77346", "735", "2", "spring", 2010); +INSERT INTO teaches VALUES ("6569", "362", "1", "fall", 2005); +INSERT INTO teaches VALUES ("43779", "476", "1", "fall", 2010); +INSERT INTO teaches VALUES ("74420", "239", "1", "fall", 2006); +INSERT INTO teaches VALUES ("6569", "304", "1", "fall", 2009); +INSERT INTO teaches VALUES ("22591", "599", "1", "spring", 2003); +INSERT INTO teaches VALUES ("63287", "852", "1", "spring", 2008); +INSERT INTO teaches VALUES ("79081", "760", "1", "spring", 2004); +INSERT INTO teaches VALUES ("19368", "591", "1", "spring", 2005); +INSERT INTO teaches VALUES ("3199", "169", "2", "fall", 2002); +INSERT INTO teaches VALUES ("36897", "313", "1", "fall", 2010); +INSERT INTO teaches VALUES ("41930", "692", "1", "spring", 2010); +INSERT INTO teaches VALUES ("22591", "867", "1", "fall", 2006); +INSERT INTO teaches VALUES ("22591", "482", "1", "fall", 2005); +INSERT INTO teaches VALUES ("15347", "457", "1", "spring", 2001); +INSERT INTO teaches VALUES ("99052", "802", "1", "spring", 2003); +INSERT INTO teaches VALUES ("22591", "338", "1", "spring", 2007); +INSERT INTO teaches VALUES ("22591", "352", "1", "spring", 2006); +INSERT INTO teaches VALUES ("22591", "338", "2", "spring", 2006); +INSERT INTO teaches VALUES ("95709", "960", "2", "fall", 2006); +INSERT INTO teaches VALUES ("65931", "875", "1", "spring", 2005); +INSERT INTO teaches VALUES ("22591", "400", "1", "spring", 2007); +INSERT INTO teaches VALUES ("99052", "927", "1", "fall", 2002); +INSERT INTO teaches VALUES ("79081", "974", "1", "fall", 2003); +INSERT INTO teaches VALUES ("28400", "604", "1", "spring", 2009); +INSERT INTO teaches VALUES ("6569", "319", "1", "spring", 2003); + +CREATE TABLE "student" ( +"id" text, +"name" text, +"dept_name" text, +"tot_cred" integer +); + +INSERT INTO student VALUES ("1000", "schrefl", "history", 4); +INSERT INTO student VALUES ("10033", "rumat", "finance", 100); +INSERT INTO student VALUES ("10076", "miliko", "statistics", 116); +INSERT INTO student VALUES ("1018", "moszkowski", "civil eng.", 73); +INSERT INTO student VALUES ("10204", "prieto", "biology", 91); +INSERT INTO student VALUES ("10267", "marcol", "cybernetics", 15); +INSERT INTO student VALUES ("10269", "quimby", "history", 4); +INSERT INTO student VALUES ("10454", "sowerby", "english", 108); +INSERT INTO student VALUES ("10481", "coppens", "math", 58); +INSERT INTO student VALUES ("10527", "cirsto", "math", 115); +INSERT INTO student VALUES ("10556", "velikovs", "marketing", 110); +INSERT INTO student VALUES ("10663", "marek", "psychology", 53); +INSERT INTO student VALUES ("10693", "tran-", "marketing", 116); +INSERT INTO student VALUES ("107", "guerra", "elec. eng.", 59); +INSERT INTO student VALUES ("10705", "hawthorne", "marketing", 78); +INSERT INTO student VALUES ("10727", "leuen", "math", 43); +INSERT INTO student VALUES ("10736", "eguchi", "astronomy", 14); +INSERT INTO student VALUES ("108", "moei", "elec. eng.", 15); +INSERT INTO student VALUES ("1080", "alfaro", "elec. eng.", 69); +INSERT INTO student VALUES ("10814", "krishnakumar", "physics", 81); +INSERT INTO student VALUES ("10834", "inoue", "math", 18); +INSERT INTO student VALUES ("10838", "sahm", "finance", 4); +INSERT INTO student VALUES ("1087", "tomason", "pol. sci.", 118); +INSERT INTO student VALUES ("10904", "karande", "astronomy", 57); +INSERT INTO student VALUES ("10917", "wunderli", "languages", 117); +INSERT INTO student VALUES ("11055", "greve", "psychology", 113); +INSERT INTO student VALUES ("11057", "cerime", "accounting", 35); +INSERT INTO student VALUES ("11076", "crick", "comp. sci.", 86); +INSERT INTO student VALUES ("11083", "hashimoto", "athletics", 102); +INSERT INTO student VALUES ("11095", "dage", "physics", 7); +INSERT INTO student VALUES ("1110", "pearlman", "biology", 45); +INSERT INTO student VALUES ("11101", "macias", "psychology", 128); +INSERT INTO student VALUES ("11126", "dawson", "mech. eng.", 88); +INSERT INTO student VALUES ("11152", "gay", "statistics", 92); +INSERT INTO student VALUES ("11194", "tiamp", "pol. sci.", 63); +INSERT INTO student VALUES ("11195", "weller", "geology", 45); +INSERT INTO student VALUES ("11201", "kee", "languages", 57); +INSERT INTO student VALUES ("11202", "milner", "finance", 8); +INSERT INTO student VALUES ("11237", "guthk", "finance", 80); +INSERT INTO student VALUES ("11262", "kagd", "cybernetics", 61); +INSERT INTO student VALUES ("11377", "samel", "math", 100); +INSERT INTO student VALUES ("11419", "vanrell", "comp. sci.", 61); +INSERT INTO student VALUES ("11422", "zaniolo", "math", 0); +INSERT INTO student VALUES ("11441", "dhav", "biology", 80); +INSERT INTO student VALUES ("11453", "she", "statistics", 29); +INSERT INTO student VALUES ("11455", "holn", "math", 27); +INSERT INTO student VALUES ("11510", "agar", "geology", 58); +INSERT INTO student VALUES ("11530", "curutchet", "languages", 121); +INSERT INTO student VALUES ("11578", "di", "civil eng.", 81); +INSERT INTO student VALUES ("11604", "lemoine", "athletics", 60); +INSERT INTO student VALUES ("11682", "kereth", "accounting", 96); +INSERT INTO student VALUES ("11855", "cal", "cybernetics", 20); +INSERT INTO student VALUES ("11966", "mccarter", "cybernetics", 38); +INSERT INTO student VALUES ("12069", "yemini", "statistics", 43); +INSERT INTO student VALUES ("12078", "erol", "statistics", 21); +INSERT INTO student VALUES ("12173", "chyr", "math", 10); +INSERT INTO student VALUES ("1220", "moreira", "comp. sci.", 107); +INSERT INTO student VALUES ("12214", "kruglyak", "pol. sci.", 99); +INSERT INTO student VALUES ("12216", "keuk", "geology", 107); +INSERT INTO student VALUES ("12236", "katzenb", "statistics", 78); +INSERT INTO student VALUES ("123", "dano", "civil eng.", 16); +INSERT INTO student VALUES ("1232", "torres", "cybernetics", 108); +INSERT INTO student VALUES ("12326", "garze", "physics", 92); +INSERT INTO student VALUES ("12362", "gibbs", "finance", 129); +INSERT INTO student VALUES ("12563", "murphy", "marketing", 30); +INSERT INTO student VALUES ("12615", "hughes", "languages", 79); +INSERT INTO student VALUES ("12666", "frolova", "comp. sci.", 13); +INSERT INTO student VALUES ("12683", "falconer", "physics", 78); +INSERT INTO student VALUES ("12711", "cochran", "english", 127); +INSERT INTO student VALUES ("1285", "bannac", "biology", 56); +INSERT INTO student VALUES ("12941", "paul", "mech. eng.", 62); +INSERT INTO student VALUES ("12971", "rakoj", "mech. eng.", 37); +INSERT INTO student VALUES ("12979", "otterm", "finance", 73); +INSERT INTO student VALUES ("13023", "bai", "geology", 100); +INSERT INTO student VALUES ("13028", "seike", "geology", 2); +INSERT INTO student VALUES ("13081", "kite", "history", 47); +INSERT INTO student VALUES ("13211", "terauchi", "physics", 48); +INSERT INTO student VALUES ("13217", "boyle", "languages", 87); +INSERT INTO student VALUES ("13290", "harrison", "elec. eng.", 81); +INSERT INTO student VALUES ("13352", "pavlovico", "marketing", 90); +INSERT INTO student VALUES ("13365", "bouamama", "comp. sci.", 8); +INSERT INTO student VALUES ("13403", "liley", "english", 34); +INSERT INTO student VALUES ("13408", "triebel", "comp. sci.", 115); +INSERT INTO student VALUES ("13495", "prabhakaran", "statistics", 26); +INSERT INTO student VALUES ("13504", "benson", "mech. eng.", 63); +INSERT INTO student VALUES ("13506", "vogel", "psychology", 46); +INSERT INTO student VALUES ("13511", "midu", "languages", 33); +INSERT INTO student VALUES ("1367", "ivanov", "finance", 11); +INSERT INTO student VALUES ("13741", "boldin", "mech. eng.", 89); +INSERT INTO student VALUES ("13749", "kannan", "athletics", 99); +INSERT INTO student VALUES ("13753", "collet", "geology", 76); +INSERT INTO student VALUES ("13757", "anse", "history", 58); +INSERT INTO student VALUES ("13826", "ishihara", "elec. eng.", 86); +INSERT INTO student VALUES ("13880", "nirenbu", "history", 102); +INSERT INTO student VALUES ("13921", "hoov", "math", 118); +INSERT INTO student VALUES ("1402", "andrews", "psychology", 7); +INSERT INTO student VALUES ("14023", "xiong", "athletics", 27); +INSERT INTO student VALUES ("14032", "carey", "marketing", 56); +INSERT INTO student VALUES ("14065", "corbac", "mech. eng.", 86); +INSERT INTO student VALUES ("14094", "kok", "geology", 57); + +CREATE TABLE "takes" ( +"id" text, +"course_id" text, +"sec_id" text, +"semester" text, +"year" integer, +"grade" text +); + +INSERT INTO takes VALUES ("1000", "239", "1", "fall", 2006, "c-"); +INSERT INTO takes VALUES ("1000", "319", "1", "spring", 2003, "b-"); +INSERT INTO takes VALUES ("1000", "362", "1", "fall", 2005, "a-"); +INSERT INTO takes VALUES ("1000", "493", "1", "spring", 2010, "a"); +INSERT INTO takes VALUES ("1000", "571", "1", "spring", 2004, "b+"); +INSERT INTO takes VALUES ("1000", "642", "1", "fall", 2004, "b-"); +INSERT INTO takes VALUES ("1000", "663", "1", "spring", 2005, "b"); +INSERT INTO takes VALUES ("1000", "696", "1", "spring", 2002, "a"); +INSERT INTO takes VALUES ("1000", "748", "1", "fall", 2003, "c+"); +INSERT INTO takes VALUES ("1000", "802", "1", "spring", 2003, "b-"); +INSERT INTO takes VALUES ("1000", "959", "1", "fall", 2006, "c-"); +INSERT INTO takes VALUES ("1000", "962", "1", "spring", 2008, "a+"); +INSERT INTO takes VALUES ("1000", "972", "1", "spring", 2009, "c"); +INSERT INTO takes VALUES ("10033", "242", "1", "fall", 2009, "a-"); +INSERT INTO takes VALUES ("10033", "334", "1", "fall", 2009, "c-"); +INSERT INTO takes VALUES ("10033", "338", "1", "spring", 2007, "b"); +INSERT INTO takes VALUES ("10033", "338", "2", "spring", 2006, "a"); +INSERT INTO takes VALUES ("10033", "352", "1", "spring", 2006, "a-"); +INSERT INTO takes VALUES ("10033", "362", "3", "spring", 2008, "c+"); +INSERT INTO takes VALUES ("10033", "408", "1", "spring", 2007, "a-"); +INSERT INTO takes VALUES ("10033", "408", "2", "spring", 2003, "c+"); +INSERT INTO takes VALUES ("10033", "443", "2", "spring", 2002, "a+"); +INSERT INTO takes VALUES ("10033", "445", "1", "spring", 2001, "a+"); +INSERT INTO takes VALUES ("10033", "457", "1", "spring", 2001, "a+"); +INSERT INTO takes VALUES ("10033", "486", "1", "fall", 2009, "c"); +INSERT INTO takes VALUES ("10033", "493", "1", "spring", 2010, "a"); +INSERT INTO takes VALUES ("10033", "603", "1", "fall", 2003, "c"); +INSERT INTO takes VALUES ("10033", "604", "1", "spring", 2009, "a-"); +INSERT INTO takes VALUES ("10033", "629", "1", "spring", 2003, "b-"); +INSERT INTO takes VALUES ("10033", "679", "1", "spring", 2010, "c"); +INSERT INTO takes VALUES ("10033", "692", "1", "spring", 2010, "a-"); +INSERT INTO takes VALUES ("10033", "702", "1", "spring", 2001, "b"); +INSERT INTO takes VALUES ("10033", "791", "1", "spring", 2006, "a-"); +INSERT INTO takes VALUES ("10033", "960", "1", "fall", 2009, "a"); +INSERT INTO takes VALUES ("10033", "972", "1", "spring", 2009, "a+"); +INSERT INTO takes VALUES ("10076", "105", "1", "fall", 2009, "a+"); +INSERT INTO takes VALUES ("10076", "137", "1", "spring", 2002, "b-"); +INSERT INTO takes VALUES ("10076", "237", "1", "spring", 2008, "b-"); +INSERT INTO takes VALUES ("10076", "482", "1", "fall", 2005, "a+"); +INSERT INTO takes VALUES ("10076", "493", "1", "spring", 2010, "a"); +INSERT INTO takes VALUES ("10076", "559", "1", "fall", 2002, "b-"); +INSERT INTO takes VALUES ("10076", "629", "1", "spring", 2003, "b-"); +INSERT INTO takes VALUES ("10076", "663", "1", "spring", 2005, "c-"); +INSERT INTO takes VALUES ("10076", "692", "1", "spring", 2010, "a+"); +INSERT INTO takes VALUES ("10076", "696", "1", "spring", 2002, "a"); +INSERT INTO takes VALUES ("10076", "704", "1", "spring", 2008, "c"); +INSERT INTO takes VALUES ("10076", "747", "1", "spring", 2004, "b+"); +INSERT INTO takes VALUES ("10076", "949", "1", "fall", 2007, "a-"); +INSERT INTO takes VALUES ("10076", "962", "1", "spring", 2008, "a-"); +INSERT INTO takes VALUES ("1018", "105", "1", "fall", 2009, "b"); +INSERT INTO takes VALUES ("1018", "158", "1", "fall", 2008, "c+"); +INSERT INTO takes VALUES ("1018", "192", "1", "fall", 2002, "c-"); +INSERT INTO takes VALUES ("1018", "200", "2", "fall", 2002, "c-"); +INSERT INTO takes VALUES ("1018", "239", "1", "fall", 2006, "b"); +INSERT INTO takes VALUES ("1018", "274", "1", "fall", 2002, "b-"); +INSERT INTO takes VALUES ("1018", "304", "1", "fall", 2009, "b"); +INSERT INTO takes VALUES ("1018", "319", "1", "spring", 2003, "c+"); +INSERT INTO takes VALUES ("1018", "338", "1", "spring", 2007, "c+"); +INSERT INTO takes VALUES ("1018", "349", "1", "spring", 2008, "b-"); +INSERT INTO takes VALUES ("1018", "362", "3", "spring", 2008, "c+"); +INSERT INTO takes VALUES ("1018", "401", "1", "fall", 2003, "b"); +INSERT INTO takes VALUES ("1018", "421", "1", "fall", 2004, "a"); +INSERT INTO takes VALUES ("1018", "457", "1", "spring", 2001, "a+"); +INSERT INTO takes VALUES ("1018", "468", "1", "fall", 2005, "b"); +INSERT INTO takes VALUES ("1018", "476", "1", "fall", 2010, "c"); +INSERT INTO takes VALUES ("1018", "482", "1", "fall", 2005, "a"); +INSERT INTO takes VALUES ("1018", "581", "1", "spring", 2005, "b+"); +INSERT INTO takes VALUES ("1018", "599", "1", "spring", 2003, "b-"); +INSERT INTO takes VALUES ("1018", "603", "1", "fall", 2003, "c-"); +INSERT INTO takes VALUES ("1018", "791", "1", "spring", 2006, "c"); +INSERT INTO takes VALUES ("1018", "972", "1", "spring", 2009, "a-"); +INSERT INTO takes VALUES ("10204", "137", "1", "spring", 2002, "a"); +INSERT INTO takes VALUES ("10204", "169", "1", "spring", 2007, "b-"); +INSERT INTO takes VALUES ("10204", "200", "2", "fall", 2002, "a-"); +INSERT INTO takes VALUES ("10204", "237", "2", "fall", 2009, "a-"); +INSERT INTO takes VALUES ("10204", "274", "1", "fall", 2002, "c-"); +INSERT INTO takes VALUES ("10204", "408", "2", "spring", 2003, "c-"); +INSERT INTO takes VALUES ("10204", "443", "1", "spring", 2010, "c-"); +INSERT INTO takes VALUES ("10204", "692", "1", "spring", 2010, "a-"); +INSERT INTO takes VALUES ("10204", "696", "1", "spring", 2002, "a+"); +INSERT INTO takes VALUES ("10204", "735", "2", "spring", 2010, "b-"); +INSERT INTO takes VALUES ("10204", "791", "1", "spring", 2006, "c"); +INSERT INTO takes VALUES ("10204", "875", "1", "spring", 2005, "b+"); +INSERT INTO takes VALUES ("10267", "192", "1", "fall", 2002, "a"); +INSERT INTO takes VALUES ("10267", "237", "2", "fall", 2009, "b+"); +INSERT INTO takes VALUES ("10267", "242", "1", "fall", 2009, "c"); +INSERT INTO takes VALUES ("10267", "345", "1", "spring", 2008, "c-"); +INSERT INTO takes VALUES ("10267", "362", "2", "fall", 2006, "b+"); +INSERT INTO takes VALUES ("10267", "366", "1", "fall", 2005, "c-"); +INSERT INTO takes VALUES ("10267", "545", "1", "fall", 2001, "a+"); +INSERT INTO takes VALUES ("10267", "603", "1", "fall", 2003, "b+"); +INSERT INTO takes VALUES ("10267", "604", "1", "spring", 2009, "c"); +INSERT INTO takes VALUES ("10267", "748", "1", "fall", 2003, "c-"); +INSERT INTO takes VALUES ("10267", "793", "1", "spring", 2002, "c-"); +INSERT INTO takes VALUES ("10269", "237", "2", "fall", 2009, "c+"); +INSERT INTO takes VALUES ("10269", "352", "1", "spring", 2006, "b"); +INSERT INTO takes VALUES ("10269", "362", "2", "fall", 2006, "c-"); +INSERT INTO takes VALUES ("10269", "408", "2", "spring", 2003, "c"); +INSERT INTO takes VALUES ("10269", "421", "1", "fall", 2004, "c-"); +INSERT INTO takes VALUES ("10269", "489", "1", "fall", 2007, "b-"); + +CREATE TABLE "advisor" ( +"s_id" text, +"i_id" text +); + +INSERT INTO advisor VALUES ("1000", "19368"); +INSERT INTO advisor VALUES ("10033", "95030"); +INSERT INTO advisor VALUES ("10076", "22591"); +INSERT INTO advisor VALUES ("1018", "77346"); +INSERT INTO advisor VALUES ("10204", "31955"); +INSERT INTO advisor VALUES ("10267", "73623"); +INSERT INTO advisor VALUES ("10269", "90643"); +INSERT INTO advisor VALUES ("10454", "58558"); +INSERT INTO advisor VALUES ("10481", "73623"); +INSERT INTO advisor VALUES ("10527", "25946"); +INSERT INTO advisor VALUES ("10556", "58558"); +INSERT INTO advisor VALUES ("10663", "48570"); +INSERT INTO advisor VALUES ("10693", "6569"); +INSERT INTO advisor VALUES ("107", "31955"); +INSERT INTO advisor VALUES ("10705", "99052"); +INSERT INTO advisor VALUES ("10727", "58558"); +INSERT INTO advisor VALUES ("10736", "28097"); +INSERT INTO advisor VALUES ("108", "74420"); +INSERT INTO advisor VALUES ("1080", "64871"); +INSERT INTO advisor VALUES ("10814", "50330"); +INSERT INTO advisor VALUES ("10834", "57180"); +INSERT INTO advisor VALUES ("10838", "3335"); +INSERT INTO advisor VALUES ("1087", "48507"); +INSERT INTO advisor VALUES ("10904", "58558"); +INSERT INTO advisor VALUES ("10917", "59795"); +INSERT INTO advisor VALUES ("11055", "6569"); +INSERT INTO advisor VALUES ("11057", "41930"); +INSERT INTO advisor VALUES ("11076", "25946"); +INSERT INTO advisor VALUES ("11083", "48507"); +INSERT INTO advisor VALUES ("11095", "81991"); +INSERT INTO advisor VALUES ("1110", "36897"); +INSERT INTO advisor VALUES ("11101", "3199"); +INSERT INTO advisor VALUES ("11126", "15347"); +INSERT INTO advisor VALUES ("11152", "25946"); +INSERT INTO advisor VALUES ("11194", "48507"); +INSERT INTO advisor VALUES ("11195", "52647"); +INSERT INTO advisor VALUES ("11201", "22591"); +INSERT INTO advisor VALUES ("11202", "28400"); +INSERT INTO advisor VALUES ("11237", "58558"); +INSERT INTO advisor VALUES ("11262", "48570"); +INSERT INTO advisor VALUES ("11377", "15347"); +INSERT INTO advisor VALUES ("11419", "59795"); +INSERT INTO advisor VALUES ("11422", "64871"); +INSERT INTO advisor VALUES ("11441", "77346"); +INSERT INTO advisor VALUES ("11453", "50885"); +INSERT INTO advisor VALUES ("11455", "65931"); +INSERT INTO advisor VALUES ("11510", "64871"); +INSERT INTO advisor VALUES ("11530", "90376"); +INSERT INTO advisor VALUES ("11578", "73623"); +INSERT INTO advisor VALUES ("11604", "79081"); +INSERT INTO advisor VALUES ("11682", "3199"); +INSERT INTO advisor VALUES ("11855", "48507"); +INSERT INTO advisor VALUES ("11966", "52647"); +INSERT INTO advisor VALUES ("12069", "81991"); +INSERT INTO advisor VALUES ("12078", "25946"); +INSERT INTO advisor VALUES ("12173", "64871"); +INSERT INTO advisor VALUES ("1220", "96895"); +INSERT INTO advisor VALUES ("12214", "80759"); +INSERT INTO advisor VALUES ("12216", "41930"); +INSERT INTO advisor VALUES ("12236", "96895"); +INSERT INTO advisor VALUES ("123", "72553"); +INSERT INTO advisor VALUES ("1232", "77346"); +INSERT INTO advisor VALUES ("12326", "79081"); +INSERT INTO advisor VALUES ("12362", "15347"); +INSERT INTO advisor VALUES ("12563", "37687"); +INSERT INTO advisor VALUES ("12615", "28097"); +INSERT INTO advisor VALUES ("12666", "80759"); +INSERT INTO advisor VALUES ("12683", "80759"); +INSERT INTO advisor VALUES ("12711", "28097"); +INSERT INTO advisor VALUES ("1285", "16807"); +INSERT INTO advisor VALUES ("12941", "79653"); +INSERT INTO advisor VALUES ("12971", "95709"); +INSERT INTO advisor VALUES ("12979", "74420"); +INSERT INTO advisor VALUES ("13023", "80759"); +INSERT INTO advisor VALUES ("13028", "96895"); +INSERT INTO advisor VALUES ("13081", "73623"); +INSERT INTO advisor VALUES ("13211", "6569"); +INSERT INTO advisor VALUES ("13217", "74426"); +INSERT INTO advisor VALUES ("13290", "34175"); +INSERT INTO advisor VALUES ("13352", "14365"); +INSERT INTO advisor VALUES ("13365", "28400"); +INSERT INTO advisor VALUES ("13403", "58558"); +INSERT INTO advisor VALUES ("13408", "42782"); +INSERT INTO advisor VALUES ("13495", "25946"); +INSERT INTO advisor VALUES ("13504", "3335"); +INSERT INTO advisor VALUES ("13506", "4034"); +INSERT INTO advisor VALUES ("13511", "36897"); +INSERT INTO advisor VALUES ("1367", "74420"); +INSERT INTO advisor VALUES ("13741", "95030"); +INSERT INTO advisor VALUES ("13749", "72553"); +INSERT INTO advisor VALUES ("13753", "3335"); +INSERT INTO advisor VALUES ("13757", "79081"); +INSERT INTO advisor VALUES ("13826", "97302"); +INSERT INTO advisor VALUES ("13880", "58558"); +INSERT INTO advisor VALUES ("13921", "25946"); +INSERT INTO advisor VALUES ("1402", "35579"); +INSERT INTO advisor VALUES ("14023", "28400"); +INSERT INTO advisor VALUES ("14032", "6569"); +INSERT INTO advisor VALUES ("14065", "41930"); +INSERT INTO advisor VALUES ("14094", "59795"); + +CREATE TABLE "time_slot" ( +"time_slot_id" text, +"day" text, +"start_hr" integer, +"start_min" integer, +"end_hr" integer, +"end_min" integer +); + +INSERT INTO time_slot VALUES ("a", "f", 8, 0, 8, 50); +INSERT INTO time_slot VALUES ("a", "m", 8, 0, 8, 50); +INSERT INTO time_slot VALUES ("a", "w", 8, 0, 8, 50); +INSERT INTO time_slot VALUES ("b", "f", 9, 0, 9, 50); +INSERT INTO time_slot VALUES ("b", "m", 9, 0, 9, 50); +INSERT INTO time_slot VALUES ("b", "w", 9, 0, 9, 50); +INSERT INTO time_slot VALUES ("c", "f", 11, 0, 11, 50); +INSERT INTO time_slot VALUES ("c", "m", 11, 0, 11, 50); +INSERT INTO time_slot VALUES ("c", "w", 11, 0, 11, 50); +INSERT INTO time_slot VALUES ("d", "f", 13, 0, 13, 50); +INSERT INTO time_slot VALUES ("d", "m", 13, 0, 13, 50); +INSERT INTO time_slot VALUES ("d", "w", 13, 0, 13, 50); +INSERT INTO time_slot VALUES ("e", "r", 10, 30, 11, 45); +INSERT INTO time_slot VALUES ("e", "t", 10, 30, 11, 45); +INSERT INTO time_slot VALUES ("f", "r", 14, 30, 15, 45); +INSERT INTO time_slot VALUES ("f", "t", 14, 30, 15, 45); +INSERT INTO time_slot VALUES ("g", "f", 16, 0, 16, 50); +INSERT INTO time_slot VALUES ("g", "m", 16, 0, 16, 50); +INSERT INTO time_slot VALUES ("g", "w", 16, 0, 16, 50); +INSERT INTO time_slot VALUES ("h", "w", 10, 0, 12, 30); + +CREATE TABLE "prereq" ( +"course_id" text, +"prereq_id" text +); + +INSERT INTO prereq VALUES ("376", "130"); +INSERT INTO prereq VALUES ("760", "169"); +INSERT INTO prereq VALUES ("403", "345"); +INSERT INTO prereq VALUES ("353", "647"); +INSERT INTO prereq VALUES ("629", "139"); +INSERT INTO prereq VALUES ("608", "864"); +INSERT INTO prereq VALUES ("158", "408"); +INSERT INTO prereq VALUES ("496", "489"); +INSERT INTO prereq VALUES ("241", "486"); +INSERT INTO prereq VALUES ("958", "969"); +INSERT INTO prereq VALUES ("591", "403"); +INSERT INTO prereq VALUES ("656", "659"); +INSERT INTO prereq VALUES ("864", "634"); +INSERT INTO prereq VALUES ("559", "500"); +INSERT INTO prereq VALUES ("209", "780"); +INSERT INTO prereq VALUES ("603", "735"); +INSERT INTO prereq VALUES ("804", "947"); +INSERT INTO prereq VALUES ("545", "947"); +INSERT INTO prereq VALUES ("353", "694"); +INSERT INTO prereq VALUES ("692", "761"); +INSERT INTO prereq VALUES ("774", "258"); +INSERT INTO prereq VALUES ("747", "927"); +INSERT INTO prereq VALUES ("496", "416"); +INSERT INTO prereq VALUES ("544", "702"); +INSERT INTO prereq VALUES ("608", "421"); +INSERT INTO prereq VALUES ("313", "731"); +INSERT INTO prereq VALUES ("258", "137"); +INSERT INTO prereq VALUES ("486", "371"); +INSERT INTO prereq VALUES ("224", "227"); +INSERT INTO prereq VALUES ("972", "958"); +INSERT INTO prereq VALUES ("359", "694"); +INSERT INTO prereq VALUES ("998", "319"); +INSERT INTO prereq VALUES ("392", "875"); +INSERT INTO prereq VALUES ("443", "852"); +INSERT INTO prereq VALUES ("324", "408"); +INSERT INTO prereq VALUES ("805", "774"); +INSERT INTO prereq VALUES ("242", "304"); +INSERT INTO prereq VALUES ("795", "123"); +INSERT INTO prereq VALUES ("169", "603"); +INSERT INTO prereq VALUES ("774", "769"); +INSERT INTO prereq VALUES ("958", "735"); +INSERT INTO prereq VALUES ("692", "426"); +INSERT INTO prereq VALUES ("958", "139"); +INSERT INTO prereq VALUES ("663", "998"); +INSERT INTO prereq VALUES ("586", "468"); +INSERT INTO prereq VALUES ("254", "877"); +INSERT INTO prereq VALUES ("802", "666"); +INSERT INTO prereq VALUES ("820", "371"); +INSERT INTO prereq VALUES ("902", "130"); +INSERT INTO prereq VALUES ("362", "242"); +INSERT INTO prereq VALUES ("359", "818"); +INSERT INTO prereq VALUES ("664", "489"); +INSERT INTO prereq VALUES ("276", "403"); +INSERT INTO prereq VALUES ("582", "487"); +INSERT INTO prereq VALUES ("694", "254"); +INSERT INTO prereq VALUES ("841", "818"); +INSERT INTO prereq VALUES ("852", "133"); +INSERT INTO prereq VALUES ("843", "324"); +INSERT INTO prereq VALUES ("810", "966"); +INSERT INTO prereq VALUES ("628", "340"); +INSERT INTO prereq VALUES ("242", "594"); +INSERT INTO prereq VALUES ("292", "399"); +INSERT INTO prereq VALUES ("618", "352"); +INSERT INTO prereq VALUES ("664", "704"); +INSERT INTO prereq VALUES ("793", "791"); +INSERT INTO prereq VALUES ("692", "774"); +INSERT INTO prereq VALUES ("324", "857"); +INSERT INTO prereq VALUES ("612", "123"); +INSERT INTO prereq VALUES ("991", "598"); +INSERT INTO prereq VALUES ("544", "254"); +INSERT INTO prereq VALUES ("852", "267"); +INSERT INTO prereq VALUES ("792", "814"); +INSERT INTO prereq VALUES ("133", "852"); +INSERT INTO prereq VALUES ("496", "443"); +INSERT INTO prereq VALUES ("338", "133"); +INSERT INTO prereq VALUES ("399", "664"); +INSERT INTO prereq VALUES ("747", "272"); +INSERT INTO prereq VALUES ("696", "101"); +INSERT INTO prereq VALUES ("403", "352"); +INSERT INTO prereq VALUES ("545", "318"); +INSERT INTO prereq VALUES ("634", "864"); +INSERT INTO prereq VALUES ("947", "494"); +INSERT INTO prereq VALUES ("647", "792"); +INSERT INTO prereq VALUES ("631", "681"); +INSERT INTO prereq VALUES ("236", "984"); +INSERT INTO prereq VALUES ("362", "696"); +INSERT INTO prereq VALUES ("875", "458"); +INSERT INTO prereq VALUES ("457", "544"); +INSERT INTO prereq VALUES ("704", "416"); +INSERT INTO prereq VALUES ("656", "559"); +INSERT INTO prereq VALUES ("272", "275"); +INSERT INTO prereq VALUES ("338", "852"); +INSERT INTO prereq VALUES ("780", "345"); +INSERT INTO prereq VALUES ("458", "696"); +INSERT INTO prereq VALUES ("239", "628"); +INSERT INTO prereq VALUES ("411", "401"); +INSERT INTO prereq VALUES ("830", "748"); +INSERT INTO prereq VALUES ("558", "130"); +INSERT INTO prereq VALUES ("877", "599"); +INSERT INTO prereq VALUES ("349", "612"); + + +COMMIT; diff --git a/all/databases/college_2/college_2.sqlite b/all/databases/college_2/college_2.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..e599b0b5d4f3e7312a488d709df837e027c05640 Binary files /dev/null and b/all/databases/college_2/college_2.sqlite differ diff --git a/all/databases/college_2_minus_1_0/college_2_minus_1_0.sql b/all/databases/college_2_minus_1_0/college_2_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..6a575236fa57f6ffa180cb5108efbceb7b649816 --- /dev/null +++ b/all/databases/college_2_minus_1_0/college_2_minus_1_0.sql @@ -0,0 +1,862 @@ +create table classroom ( +building text, +room_number text, +capacity integer +); +insert into classroom values('alumni', 143, 10); +insert into classroom values('alumni', 547, 10); +insert into classroom values('bronfman', 700, 27); +insert into classroom values('chandler', 375, 92); +insert into classroom values('chandler', 804, 34); +insert into classroom values('drown', 757, 120); +insert into classroom values('fairchild', 145, 10); +insert into classroom values('garfield', 119, 115); +insert into classroom values('gates', 314, 109); +insert into classroom values('gates', 707, 97); +insert into classroom values('grace', 40, 26); +insert into classroom values('lambeau', 348, 47); +insert into classroom values('lamberton', 134, 18); +insert into classroom values('lamberton', 143, 15); +insert into classroom values('main', 425, 32); +insert into classroom values('main', 45, 24); +insert into classroom values('nassau', 45, 12); +insert into classroom values('painter', 86, 28); +insert into classroom values('polya', 808, 65); +insert into classroom values('power', 717, 10); +insert into classroom values('power', 972, 30); +insert into classroom values('rathbone', 261, 71); +insert into classroom values('saucon', 113, 10); +insert into classroom values('saucon', 180, 59); +insert into classroom values('saucon', 844, 60); +insert into classroom values('stabler', 105, 113); +insert into classroom values('taylor', 183, 12); +insert into classroom values('taylor', 812, 22); +insert into classroom values('whitman', 134, 51); +insert into classroom values('whitman', 434, 11); + +create table department ( +dept_name text, +building text, +budget real +); +insert into department values('accounting', 'chandler', 255041.46); +insert into department values('astronomy', 'candlestick', 647610.55); +insert into department values('athletics', 'taylor', 699140.86); +insert into department values('biology', 'wrigley', 942162.76); +insert into department values('civil eng.', 'lambeau', 210627.58); +insert into department values('comp. sci.', 'whitman', 573745.09); +insert into department values('cybernetics', 'palmer', 611042.66); +insert into department values('elec. eng.', 'saucon', 441840.92); +insert into department values('english', 'lamberton', 106378.69); +insert into department values('finance', 'linderman', 601283.6); +insert into department values('geology', 'candlestick', 866831.75); +insert into department values('history', 'palmer', 406557.93); +insert into department values('languages', 'mercer', 794541.46); +insert into department values('marketing', 'taylor', 617253.94); +insert into department values('math', 'bronfman', 734550.7); +insert into department values('mech. eng.', 'taylor', 395051.74); +insert into department values('physics', 'thompson', 848175.04); +insert into department values('pol. sci.', 'brodhead', 777605.11); +insert into department values('psychology', 'main', 276527.61); +insert into department values('statistics', 'rauch', 520350.65); + +create table course ( +course_id text, +title text, +dept_name text, +credits integer +); +insert into course values(101, 'c programming', 'mech. eng.', 4); +insert into course values(105, 'the music of donovan', 'mech. eng.', 3); +insert into course values(123, 'electron microscopy', 'mech. eng.', 3); +insert into course values(127, 'international finance', 'comp. sci.', 3); +insert into course values(130, 'greek tragedy', 'statistics', 4); +insert into course values(133, 'greek tragedy', 'psychology', 4); +insert into course values(137, 'virology', 'biology', 3); +insert into course values(139, 'compiler design', 'elec. eng.', 3); +insert into course values(158, 'geology', 'mech. eng.', 3); +insert into course values(169, 'mobile computing', 'physics', 3); +insert into course values(190, 'surfing', 'cybernetics', 3); +insert into course values(192, 'international trade', 'marketing', 3); +insert into course values(195, 'latin', 'mech. eng.', 3); +insert into course values(200, 'composition and literature', 'cybernetics', 3); +insert into course values(209, 'music of the 50s', 'history', 3); +insert into course values(224, 'biostatistics', 'geology', 3); +insert into course values(227, 'graph theory', 'psychology', 3); +insert into course values(235, 'visual basic', 'psychology', 4); +insert into course values(236, 'how to groom your cat', 'accounting', 3); +insert into course values(237, 'finite element analysis', 'cybernetics', 3); +insert into course values(238, 'the monkeys', 'history', 4); +insert into course values(239, 'rock and roll', 'marketing', 3); +insert into course values(241, 'focal programming', 'psychology', 4); +insert into course values(242, 'calculus', 'pol. sci.', 4); +insert into course values(254, 'environmental law', 'math', 4); +insert into course values(258, 'the beatles', 'math', 3); +insert into course values(265, 'marine mammals', 'geology', 4); +insert into course values(267, 'game programming', 'cybernetics', 4); +insert into course values(270, 'shakespeare', 'pol. sci.', 4); +insert into course values(272, 'world history', 'finance', 4); +insert into course values(274, 'tort law', 'civil eng.', 3); +insert into course values(275, 'corporate law', 'comp. sci.', 4); +insert into course values(276, 'video gaming', 'finance', 3); +insert into course values(278, 'world history', 'athletics', 4); +insert into course values(284, 'bankruptcy', 'accounting', 3); +insert into course values(292, 'organic chemistry', 'english', 4); +insert into course values(304, 'existentialism', 'finance', 3); +insert into course values(313, 'quantum mechanics', 'elec. eng.', 4); +insert into course values(318, 'embedded systems', 'finance', 4); +insert into course values(319, 'quantum mechanics', 'cybernetics', 3); +insert into course values(324, 'marine mammals', 'cybernetics', 3); +insert into course values(328, 'the ibm 360 architecture', 'history', 3); +insert into course values(334, 'marine mammals', 'elec. eng.', 3); +insert into course values(337, 'electricity and magnetism', 'civil eng.', 3); +insert into course values(338, 'elastic structures', 'languages', 4); +insert into course values(340, 'transaction processing', 'psychology', 3); +insert into course values(341, 'computational biology', 'english', 3); +insert into course values(344, 'cost accounting', 'physics', 4); +insert into course values(345, 'journalism', 'astronomy', 4); +insert into course values(348, 'geology', 'psychology', 3); +insert into course values(349, 'physical chemistry', 'math', 3); +insert into course values(352, 'image processing', 'astronomy', 3); +insert into course values(353, 'industrial organization', 'languages', 4); +insert into course values(359, 'security', 'cybernetics', 3); +insert into course values(362, 'immunology', 'civil eng.', 4); +insert into course values(366, 'systems software', 'history', 3); +insert into course values(371, 'sanitary engineering', 'athletics', 4); +insert into course values(376, 'thermodynamics', 'geology', 3); +insert into course values(377, 'rpg programming', 'pol. sci.', 4); +insert into course values(391, 'japanese', 'comp. sci.', 3); +insert into course values(392, 'aquatic chemistry', 'cybernetics', 3); +insert into course values(393, 'international trade', 'athletics', 3); +insert into course values(394, 'differential geometry', 'statistics', 3); +insert into course values(396, 'database system concepts', 'pol. sci.', 4); +insert into course values(399, 'romantic literature', 'civil eng.', 3); +insert into course values(400, 'religion', 'english', 3); +insert into course values(401, 'existentialism', 'athletics', 3); +insert into course values(403, 'introduction to burglary', 'cybernetics', 4); +insert into course values(407, 'compiler design', 'finance', 4); +insert into course values(408, 'composition and literature', 'statistics', 4); +insert into course values(411, 'geology', 'cybernetics', 3); +insert into course values(415, 'operating systems', 'psychology', 3); +insert into course values(416, 'c programming', 'athletics', 3); +insert into course values(421, 'manufacturing', 'finance', 3); +insert into course values(426, 'drama', 'languages', 4); +insert into course values(436, 'medieval civilization or lack thereof', 'english', 3); +insert into course values(442, 'differential geometry', 'astronomy', 4); +insert into course values(443, 'bacteriology', 'physics', 4); +insert into course values(445, 'international trade', 'math', 3); +insert into course values(451, 'aquatic chemistry', 'athletics', 4); +insert into course values(456, 'service-oriented architectures', 'comp. sci.', 4); +insert into course values(457, 'number theory', 'accounting', 4); +insert into course values(458, 'sailing', 'math', 4); +insert into course values(461, 'physical chemistry', 'history', 3); +insert into course values(468, 'antidisestablishmentarianism in modern america', 'biology', 4); +insert into course values(476, 'hydraulics', 'physics', 4); +insert into course values(482, 'the music of the ramones', 'accounting', 4); +insert into course values(486, 'elastic structures', 'english', 3); +insert into course values(487, 'mechanics', 'psychology', 4); +insert into course values(489, 'hebrew', 'civil eng.', 3); +insert into course values(493, 'environmental law', 'psychology', 3); +insert into course values(494, 'computability theory', 'math', 3); +insert into course values(496, 'creative writing', 'mech. eng.', 4); +insert into course values(500, 'the monkeys', 'astronomy', 4); +insert into course values(527, 'composition and literature', 'biology', 4); +insert into course values(539, 'differential geometry', 'statistics', 3); +insert into course values(544, 'virology', 'languages', 4); +insert into course values(545, 'care and feeding of cats', 'statistics', 3); +insert into course values(546, 'international practicum', 'comp. sci.', 4); +insert into course values(549, 'geology', 'math', 4); + +create table section ( +course_id text, +sec_id text, +semester text, +year integer, +building text, +room_number text, +time_slot_id text +); +insert into section values(105, 1, 'fall', 2009, 'chandler', 804, 'n'); +insert into section values(105, 2, 'fall', 2002, 'gates', 314, 'k'); +insert into section values(137, 1, 'spring', 2002, 'whitman', 434, 'o'); +insert into section values(158, 1, 'fall', 2008, 'fairchild', 145, 'b'); +insert into section values(158, 2, 'spring', 2008, 'fairchild', 145, 'd'); +insert into section values(169, 1, 'spring', 2007, 'saucon', 844, 'd'); +insert into section values(169, 2, 'fall', 2002, 'alumni', 547, 'j'); +insert into section values(192, 1, 'fall', 2002, 'lamberton', 134, 'j'); +insert into section values(200, 1, 'spring', 2007, 'taylor', 183, 'c'); +insert into section values(200, 2, 'fall', 2002, 'saucon', 113, 'j'); +insert into section values(237, 1, 'spring', 2008, 'whitman', 434, 'f'); +insert into section values(237, 2, 'fall', 2009, 'drown', 757, 'd'); +insert into section values(239, 1, 'fall', 2006, 'power', 717, 'd'); +insert into section values(242, 1, 'fall', 2009, 'fairchild', 145, 'g'); +insert into section values(258, 1, 'fall', 2007, 'power', 717, 'k'); +insert into section values(270, 1, 'spring', 2010, 'saucon', 180, 'f'); +insert into section values(274, 1, 'fall', 2002, 'taylor', 183, 'i'); +insert into section values(304, 1, 'fall', 2009, 'taylor', 183, 'e'); +insert into section values(313, 1, 'fall', 2010, 'main', 45, 'l'); +insert into section values(319, 1, 'spring', 2003, 'bronfman', 700, 'n'); +insert into section values(334, 1, 'fall', 2009, 'polya', 808, 'h'); +insert into section values(338, 1, 'spring', 2007, 'saucon', 180, 'm'); +insert into section values(338, 2, 'spring', 2006, 'saucon', 113, 'o'); +insert into section values(345, 1, 'spring', 2008, 'taylor', 183, 'e'); +insert into section values(349, 1, 'spring', 2008, 'taylor', 812, 'o'); +insert into section values(352, 1, 'spring', 2006, 'main', 425, 'n'); +insert into section values(362, 1, 'fall', 2005, 'saucon', 844, 'o'); +insert into section values(362, 2, 'fall', 2006, 'saucon', 180, 'p'); +insert into section values(362, 3, 'spring', 2008, 'whitman', 134, 'k'); +insert into section values(366, 1, 'fall', 2005, 'lamberton', 134, 'g'); +insert into section values(376, 1, 'fall', 2006, 'main', 45, 'k'); +insert into section values(400, 1, 'spring', 2007, 'taylor', 183, 'j'); +insert into section values(400, 2, 'fall', 2003, 'saucon', 113, 'k'); +insert into section values(401, 1, 'fall', 2003, 'lamberton', 134, 'd'); +insert into section values(408, 1, 'spring', 2007, 'fairchild', 145, 'i'); +insert into section values(408, 2, 'spring', 2003, 'lamberton', 143, 'h'); +insert into section values(415, 1, 'fall', 2010, 'lambeau', 348, 'j'); +insert into section values(421, 1, 'fall', 2004, 'saucon', 180, 'l'); +insert into section values(426, 1, 'spring', 2006, 'alumni', 143, 'o'); +insert into section values(443, 1, 'spring', 2010, 'taylor', 183, 'a'); +insert into section values(443, 2, 'spring', 2002, 'lambeau', 348, 'm'); +insert into section values(445, 1, 'spring', 2001, 'alumni', 547, 'g'); +insert into section values(457, 1, 'spring', 2001, 'lamberton', 134, 'h'); +insert into section values(461, 1, 'fall', 2002, 'lamberton', 143, 'd'); +insert into section values(468, 1, 'fall', 2005, 'nassau', 45, 'f'); +insert into section values(468, 2, 'fall', 2007, 'fairchild', 145, 'j'); +insert into section values(476, 1, 'fall', 2010, 'lamberton', 143, 'i'); +insert into section values(482, 1, 'fall', 2005, 'saucon', 113, 'd'); +insert into section values(486, 1, 'fall', 2009, 'polya', 808, 'm'); +insert into section values(489, 1, 'fall', 2007, 'saucon', 844, 'd'); +insert into section values(493, 1, 'spring', 2010, 'stabler', 105, 'f'); +insert into section values(496, 1, 'fall', 2001, 'lambeau', 348, 'm'); +insert into section values(527, 1, 'fall', 2004, 'chandler', 804, 'd'); +insert into section values(545, 1, 'fall', 2001, 'garfield', 119, 'a'); +insert into section values(559, 1, 'fall', 2002, 'fairchild', 145, 'j'); +insert into section values(561, 1, 'fall', 2006, 'saucon', 180, 'd'); +insert into section values(571, 1, 'spring', 2004, 'gates', 707, 'k'); +insert into section values(581, 1, 'spring', 2005, 'lamberton', 143, 'g'); +insert into section values(591, 1, 'spring', 2005, 'gates', 314, 'a'); +insert into section values(599, 1, 'spring', 2003, 'polya', 808, 'h'); +insert into section values(603, 1, 'fall', 2003, 'lamberton', 134, 'm'); +insert into section values(604, 1, 'spring', 2009, 'lamberton', 143, 'd'); +insert into section values(612, 1, 'fall', 2007, 'taylor', 812, 'd'); +insert into section values(626, 1, 'fall', 2006, 'fairchild', 145, 'c'); +insert into section values(629, 1, 'spring', 2003, 'lamberton', 134, 'j'); +insert into section values(631, 1, 'spring', 2007, 'gates', 707, 'e'); +insert into section values(642, 1, 'fall', 2004, 'chandler', 375, 'c'); +insert into section values(663, 1, 'spring', 2005, 'saucon', 180, 'f'); +insert into section values(679, 1, 'spring', 2010, 'polya', 808, 'b'); +insert into section values(692, 1, 'spring', 2010, 'alumni', 547, 'a'); +insert into section values(694, 1, 'fall', 2002, 'power', 717, 'm'); +insert into section values(696, 1, 'spring', 2002, 'main', 425, 'p'); +insert into section values(702, 1, 'spring', 2001, 'taylor', 812, 'e'); +insert into section values(704, 1, 'spring', 2008, 'lamberton', 143, 'b'); +insert into section values(735, 1, 'spring', 2003, 'taylor', 183, 'c'); +insert into section values(735, 2, 'spring', 2010, 'saucon', 180, 'e'); +insert into section values(747, 1, 'spring', 2004, 'nassau', 45, 'l'); +insert into section values(748, 1, 'fall', 2003, 'bronfman', 700, 'l'); +insert into section values(760, 1, 'spring', 2004, 'gates', 707, 'f'); +insert into section values(791, 1, 'spring', 2006, 'saucon', 180, 'b'); +insert into section values(793, 1, 'spring', 2002, 'whitman', 434, 'h'); +insert into section values(795, 1, 'spring', 2004, 'saucon', 113, 'm'); +insert into section values(802, 1, 'spring', 2003, 'drown', 757, 'c'); +insert into section values(808, 1, 'fall', 2003, 'lamberton', 134, 'j'); +insert into section values(843, 1, 'fall', 2010, 'taylor', 812, 'c'); +insert into section values(852, 1, 'spring', 2008, 'rathbone', 261, 'e'); +insert into section values(864, 1, 'spring', 2006, 'main', 425, 'o'); +insert into section values(867, 1, 'fall', 2006, 'saucon', 180, 'a'); +insert into section values(867, 2, 'fall', 2010, 'power', 717, 'm'); +insert into section values(875, 1, 'spring', 2005, 'power', 972, 'i'); +insert into section values(893, 1, 'fall', 2007, 'power', 717, 'l'); +insert into section values(927, 1, 'fall', 2002, 'taylor', 183, 'd'); +insert into section values(949, 1, 'fall', 2007, 'drown', 757, 'l'); +insert into section values(959, 1, 'fall', 2006, 'taylor', 812, 'i'); +insert into section values(960, 1, 'fall', 2009, 'chandler', 375, 'd'); +insert into section values(960, 2, 'fall', 2006, 'power', 717, 'p'); +insert into section values(962, 1, 'spring', 2008, 'taylor', 812, 'p'); +insert into section values(972, 1, 'spring', 2009, 'taylor', 183, 'j'); +insert into section values(974, 1, 'fall', 2003, 'stabler', 105, 'j'); +insert into section values(991, 1, 'spring', 2008, 'power', 972, 'd'); + +create table student ( +id text, +name text, +dept_name text, +tot_cred integer +); +insert into student values(1000, 'schrefl', 'history', 4); +insert into student values(10033, 'rumat', 'finance', 100); +insert into student values(10076, 'miliko', 'statistics', 116); +insert into student values(1018, 'moszkowski', 'civil eng.', 73); +insert into student values(10204, 'prieto', 'biology', 91); +insert into student values(10267, 'marcol', 'cybernetics', 15); +insert into student values(10269, 'quimby', 'history', 4); +insert into student values(10454, 'sowerby', 'english', 108); +insert into student values(10481, 'coppens', 'math', 58); +insert into student values(10527, 'cirsto', 'math', 115); +insert into student values(10556, 'velikovs', 'marketing', 110); +insert into student values(10663, 'marek', 'psychology', 53); +insert into student values(10693, 'tran-', 'marketing', 116); +insert into student values(107, 'guerra', 'elec. eng.', 59); +insert into student values(10705, 'hawthorne', 'marketing', 78); +insert into student values(10727, 'leuen', 'math', 43); +insert into student values(10736, 'eguchi', 'astronomy', 14); +insert into student values(108, 'moei', 'elec. eng.', 15); +insert into student values(1080, 'alfaro', 'elec. eng.', 69); +insert into student values(10814, 'krishnakumar', 'physics', 81); +insert into student values(10834, 'inoue', 'math', 18); +insert into student values(10838, 'sahm', 'finance', 4); +insert into student values(1087, 'tomason', 'pol. sci.', 118); +insert into student values(10904, 'karande', 'astronomy', 57); +insert into student values(10917, 'wunderli', 'languages', 117); +insert into student values(11055, 'greve', 'psychology', 113); +insert into student values(11057, 'cerime', 'accounting', 35); +insert into student values(11076, 'crick', 'comp. sci.', 86); +insert into student values(11083, 'hashimoto', 'athletics', 102); +insert into student values(11095, 'dage', 'physics', 7); +insert into student values(1110, 'pearlman', 'biology', 45); +insert into student values(11101, 'macias', 'psychology', 128); +insert into student values(11126, 'dawson', 'mech. eng.', 88); +insert into student values(11152, 'gay', 'statistics', 92); +insert into student values(11194, 'tiamp', 'pol. sci.', 63); +insert into student values(11195, 'weller', 'geology', 45); +insert into student values(11201, 'kee', 'languages', 57); +insert into student values(11202, 'milner', 'finance', 8); +insert into student values(11237, 'guthk', 'finance', 80); +insert into student values(11262, 'kagd', 'cybernetics', 61); +insert into student values(11377, 'samel', 'math', 100); +insert into student values(11419, 'vanrell', 'comp. sci.', 61); +insert into student values(11422, 'zaniolo', 'math', 0); +insert into student values(11441, 'dhav', 'biology', 80); +insert into student values(11453, 'she', 'statistics', 29); +insert into student values(11455, 'holn', 'math', 27); +insert into student values(11510, 'agar', 'geology', 58); +insert into student values(11530, 'curutchet', 'languages', 121); +insert into student values(11578, 'di', 'civil eng.', 81); +insert into student values(11604, 'lemoine', 'athletics', 60); +insert into student values(11682, 'kereth', 'accounting', 96); +insert into student values(11855, 'cal', 'cybernetics', 20); +insert into student values(11966, 'mccarter', 'cybernetics', 38); +insert into student values(12069, 'yemini', 'statistics', 43); +insert into student values(12078, 'erol', 'statistics', 21); +insert into student values(12173, 'chyr', 'math', 10); +insert into student values(1220, 'moreira', 'comp. sci.', 107); +insert into student values(12214, 'kruglyak', 'pol. sci.', 99); +insert into student values(12216, 'keuk', 'geology', 107); +insert into student values(12236, 'katzenb', 'statistics', 78); +insert into student values(123, 'dano', 'civil eng.', 16); +insert into student values(1232, 'torres', 'cybernetics', 108); +insert into student values(12326, 'garze', 'physics', 92); +insert into student values(12362, 'gibbs', 'finance', 129); +insert into student values(12563, 'murphy', 'marketing', 30); +insert into student values(12615, 'hughes', 'languages', 79); +insert into student values(12666, 'frolova', 'comp. sci.', 13); +insert into student values(12683, 'falconer', 'physics', 78); +insert into student values(12711, 'cochran', 'english', 127); +insert into student values(1285, 'bannac', 'biology', 56); +insert into student values(12941, 'paul', 'mech. eng.', 62); +insert into student values(12971, 'rakoj', 'mech. eng.', 37); +insert into student values(12979, 'otterm', 'finance', 73); +insert into student values(13023, 'bai', 'geology', 100); +insert into student values(13028, 'seike', 'geology', 2); +insert into student values(13081, 'kite', 'history', 47); +insert into student values(13211, 'terauchi', 'physics', 48); +insert into student values(13217, 'boyle', 'languages', 87); +insert into student values(13290, 'harrison', 'elec. eng.', 81); +insert into student values(13352, 'pavlovico', 'marketing', 90); +insert into student values(13365, 'bouamama', 'comp. sci.', 8); +insert into student values(13403, 'liley', 'english', 34); +insert into student values(13408, 'triebel', 'comp. sci.', 115); +insert into student values(13495, 'prabhakaran', 'statistics', 26); +insert into student values(13504, 'benson', 'mech. eng.', 63); +insert into student values(13506, 'vogel', 'psychology', 46); +insert into student values(13511, 'midu', 'languages', 33); +insert into student values(1367, 'ivanov', 'finance', 11); +insert into student values(13741, 'boldin', 'mech. eng.', 89); +insert into student values(13749, 'kannan', 'athletics', 99); +insert into student values(13753, 'collet', 'geology', 76); +insert into student values(13757, 'anse', 'history', 58); +insert into student values(13826, 'ishihara', 'elec. eng.', 86); +insert into student values(13880, 'nirenbu', 'history', 102); +insert into student values(13921, 'hoov', 'math', 118); +insert into student values(1402, 'andrews', 'psychology', 7); +insert into student values(14023, 'xiong', 'athletics', 27); +insert into student values(14032, 'carey', 'marketing', 56); +insert into student values(14065, 'corbac', 'mech. eng.', 86); +insert into student values(14094, 'kok', 'geology', 57); + +create table takes ( +id text, +course_id text, +sec_id text, +semester text, +year integer, +grade text +); +insert into takes values(1000, 239, 1, 'fall', 2006, 'c-'); +insert into takes values(1000, 319, 1, 'spring', 2003, 'b-'); +insert into takes values(1000, 362, 1, 'fall', 2005, 'a-'); +insert into takes values(1000, 493, 1, 'spring', 2010, 'a'); +insert into takes values(1000, 571, 1, 'spring', 2004, 'b+'); +insert into takes values(1000, 642, 1, 'fall', 2004, 'b-'); +insert into takes values(1000, 663, 1, 'spring', 2005, 'b'); +insert into takes values(1000, 696, 1, 'spring', 2002, 'a'); +insert into takes values(1000, 748, 1, 'fall', 2003, 'c+'); +insert into takes values(1000, 802, 1, 'spring', 2003, 'b-'); +insert into takes values(1000, 959, 1, 'fall', 2006, 'c-'); +insert into takes values(1000, 962, 1, 'spring', 2008, 'a+'); +insert into takes values(1000, 972, 1, 'spring', 2009, 'c'); +insert into takes values(10033, 242, 1, 'fall', 2009, 'a-'); +insert into takes values(10033, 334, 1, 'fall', 2009, 'c-'); +insert into takes values(10033, 338, 1, 'spring', 2007, 'b'); +insert into takes values(10033, 338, 2, 'spring', 2006, 'a'); +insert into takes values(10033, 352, 1, 'spring', 2006, 'a-'); +insert into takes values(10033, 362, 3, 'spring', 2008, 'c+'); +insert into takes values(10033, 408, 1, 'spring', 2007, 'a-'); +insert into takes values(10033, 408, 2, 'spring', 2003, 'c+'); +insert into takes values(10033, 443, 2, 'spring', 2002, 'a+'); +insert into takes values(10033, 445, 1, 'spring', 2001, 'a+'); +insert into takes values(10033, 457, 1, 'spring', 2001, 'a+'); +insert into takes values(10033, 486, 1, 'fall', 2009, 'c'); +insert into takes values(10033, 493, 1, 'spring', 2010, 'a'); +insert into takes values(10033, 603, 1, 'fall', 2003, 'c'); +insert into takes values(10033, 604, 1, 'spring', 2009, 'a-'); +insert into takes values(10033, 629, 1, 'spring', 2003, 'b-'); +insert into takes values(10033, 679, 1, 'spring', 2010, 'c'); +insert into takes values(10033, 692, 1, 'spring', 2010, 'a-'); +insert into takes values(10033, 702, 1, 'spring', 2001, 'b'); +insert into takes values(10033, 791, 1, 'spring', 2006, 'a-'); +insert into takes values(10033, 960, 1, 'fall', 2009, 'a'); +insert into takes values(10033, 972, 1, 'spring', 2009, 'a+'); +insert into takes values(10076, 105, 1, 'fall', 2009, 'a+'); +insert into takes values(10076, 137, 1, 'spring', 2002, 'b-'); +insert into takes values(10076, 237, 1, 'spring', 2008, 'b-'); +insert into takes values(10076, 482, 1, 'fall', 2005, 'a+'); +insert into takes values(10076, 493, 1, 'spring', 2010, 'a'); +insert into takes values(10076, 559, 1, 'fall', 2002, 'b-'); +insert into takes values(10076, 629, 1, 'spring', 2003, 'b-'); +insert into takes values(10076, 663, 1, 'spring', 2005, 'c-'); +insert into takes values(10076, 692, 1, 'spring', 2010, 'a+'); +insert into takes values(10076, 696, 1, 'spring', 2002, 'a'); +insert into takes values(10076, 704, 1, 'spring', 2008, 'c'); +insert into takes values(10076, 747, 1, 'spring', 2004, 'b+'); +insert into takes values(10076, 949, 1, 'fall', 2007, 'a-'); +insert into takes values(10076, 962, 1, 'spring', 2008, 'a-'); +insert into takes values(1018, 105, 1, 'fall', 2009, 'b'); +insert into takes values(1018, 158, 1, 'fall', 2008, 'c+'); +insert into takes values(1018, 192, 1, 'fall', 2002, 'c-'); +insert into takes values(1018, 200, 2, 'fall', 2002, 'c-'); +insert into takes values(1018, 239, 1, 'fall', 2006, 'b'); +insert into takes values(1018, 274, 1, 'fall', 2002, 'b-'); +insert into takes values(1018, 304, 1, 'fall', 2009, 'b'); +insert into takes values(1018, 319, 1, 'spring', 2003, 'c+'); +insert into takes values(1018, 338, 1, 'spring', 2007, 'c+'); +insert into takes values(1018, 349, 1, 'spring', 2008, 'b-'); +insert into takes values(1018, 362, 3, 'spring', 2008, 'c+'); +insert into takes values(1018, 401, 1, 'fall', 2003, 'b'); +insert into takes values(1018, 421, 1, 'fall', 2004, 'a'); +insert into takes values(1018, 457, 1, 'spring', 2001, 'a+'); +insert into takes values(1018, 468, 1, 'fall', 2005, 'b'); +insert into takes values(1018, 476, 1, 'fall', 2010, 'c'); +insert into takes values(1018, 482, 1, 'fall', 2005, 'a'); +insert into takes values(1018, 581, 1, 'spring', 2005, 'b+'); +insert into takes values(1018, 599, 1, 'spring', 2003, 'b-'); +insert into takes values(1018, 603, 1, 'fall', 2003, 'c-'); +insert into takes values(1018, 791, 1, 'spring', 2006, 'c'); +insert into takes values(1018, 972, 1, 'spring', 2009, 'a-'); +insert into takes values(10204, 137, 1, 'spring', 2002, 'a'); +insert into takes values(10204, 169, 1, 'spring', 2007, 'b-'); +insert into takes values(10204, 200, 2, 'fall', 2002, 'a-'); +insert into takes values(10204, 237, 2, 'fall', 2009, 'a-'); +insert into takes values(10204, 274, 1, 'fall', 2002, 'c-'); +insert into takes values(10204, 408, 2, 'spring', 2003, 'c-'); +insert into takes values(10204, 443, 1, 'spring', 2010, 'c-'); +insert into takes values(10204, 692, 1, 'spring', 2010, 'a-'); +insert into takes values(10204, 696, 1, 'spring', 2002, 'a+'); +insert into takes values(10204, 735, 2, 'spring', 2010, 'b-'); +insert into takes values(10204, 791, 1, 'spring', 2006, 'c'); +insert into takes values(10204, 875, 1, 'spring', 2005, 'b+'); +insert into takes values(10267, 192, 1, 'fall', 2002, 'a'); +insert into takes values(10267, 237, 2, 'fall', 2009, 'b+'); +insert into takes values(10267, 242, 1, 'fall', 2009, 'c'); +insert into takes values(10267, 345, 1, 'spring', 2008, 'c-'); +insert into takes values(10267, 362, 2, 'fall', 2006, 'b+'); +insert into takes values(10267, 366, 1, 'fall', 2005, 'c-'); +insert into takes values(10267, 545, 1, 'fall', 2001, 'a+'); +insert into takes values(10267, 603, 1, 'fall', 2003, 'b+'); +insert into takes values(10267, 604, 1, 'spring', 2009, 'c'); +insert into takes values(10267, 748, 1, 'fall', 2003, 'c-'); +insert into takes values(10267, 793, 1, 'spring', 2002, 'c-'); +insert into takes values(10269, 237, 2, 'fall', 2009, 'c+'); +insert into takes values(10269, 352, 1, 'spring', 2006, 'b'); +insert into takes values(10269, 362, 2, 'fall', 2006, 'c-'); +insert into takes values(10269, 408, 2, 'spring', 2003, 'c'); +insert into takes values(10269, 421, 1, 'fall', 2004, 'c-'); +insert into takes values(10269, 489, 1, 'fall', 2007, 'b-'); + +create table advisor ( +s_id text, +i_id text +); +insert into advisor values(1000, 19368); +insert into advisor values(10033, 95030); +insert into advisor values(10076, 22591); +insert into advisor values(1018, 77346); +insert into advisor values(10204, 31955); +insert into advisor values(10267, 73623); +insert into advisor values(10269, 90643); +insert into advisor values(10454, 58558); +insert into advisor values(10481, 73623); +insert into advisor values(10527, 25946); +insert into advisor values(10556, 58558); +insert into advisor values(10663, 48570); +insert into advisor values(10693, 6569); +insert into advisor values(107, 31955); +insert into advisor values(10705, 99052); +insert into advisor values(10727, 58558); +insert into advisor values(10736, 28097); +insert into advisor values(108, 74420); +insert into advisor values(1080, 64871); +insert into advisor values(10814, 50330); +insert into advisor values(10834, 57180); +insert into advisor values(10838, 3335); +insert into advisor values(1087, 48507); +insert into advisor values(10904, 58558); +insert into advisor values(10917, 59795); +insert into advisor values(11055, 6569); +insert into advisor values(11057, 41930); +insert into advisor values(11076, 25946); +insert into advisor values(11083, 48507); +insert into advisor values(11095, 81991); +insert into advisor values(1110, 36897); +insert into advisor values(11101, 3199); +insert into advisor values(11126, 15347); +insert into advisor values(11152, 25946); +insert into advisor values(11194, 48507); +insert into advisor values(11195, 52647); +insert into advisor values(11201, 22591); +insert into advisor values(11202, 28400); +insert into advisor values(11237, 58558); +insert into advisor values(11262, 48570); +insert into advisor values(11377, 15347); +insert into advisor values(11419, 59795); +insert into advisor values(11422, 64871); +insert into advisor values(11441, 77346); +insert into advisor values(11453, 50885); +insert into advisor values(11455, 65931); +insert into advisor values(11510, 64871); +insert into advisor values(11530, 90376); +insert into advisor values(11578, 73623); +insert into advisor values(11604, 79081); +insert into advisor values(11682, 3199); +insert into advisor values(11855, 48507); +insert into advisor values(11966, 52647); +insert into advisor values(12069, 81991); +insert into advisor values(12078, 25946); +insert into advisor values(12173, 64871); +insert into advisor values(1220, 96895); +insert into advisor values(12214, 80759); +insert into advisor values(12216, 41930); +insert into advisor values(12236, 96895); +insert into advisor values(123, 72553); +insert into advisor values(1232, 77346); +insert into advisor values(12326, 79081); +insert into advisor values(12362, 15347); +insert into advisor values(12563, 37687); +insert into advisor values(12615, 28097); +insert into advisor values(12666, 80759); +insert into advisor values(12683, 80759); +insert into advisor values(12711, 28097); +insert into advisor values(1285, 16807); +insert into advisor values(12941, 79653); +insert into advisor values(12971, 95709); +insert into advisor values(12979, 74420); +insert into advisor values(13023, 80759); +insert into advisor values(13028, 96895); +insert into advisor values(13081, 73623); +insert into advisor values(13211, 6569); +insert into advisor values(13217, 74426); +insert into advisor values(13290, 34175); +insert into advisor values(13352, 14365); +insert into advisor values(13365, 28400); +insert into advisor values(13403, 58558); +insert into advisor values(13408, 42782); +insert into advisor values(13495, 25946); +insert into advisor values(13504, 3335); +insert into advisor values(13506, 4034); +insert into advisor values(13511, 36897); +insert into advisor values(1367, 74420); +insert into advisor values(13741, 95030); +insert into advisor values(13749, 72553); +insert into advisor values(13753, 3335); +insert into advisor values(13757, 79081); +insert into advisor values(13826, 97302); +insert into advisor values(13880, 58558); +insert into advisor values(13921, 25946); +insert into advisor values(1402, 35579); +insert into advisor values(14023, 28400); +insert into advisor values(14032, 6569); +insert into advisor values(14065, 41930); +insert into advisor values(14094, 59795); + +create table time_slot ( +time_slot_id text, +day text, +start_hr integer, +start_min integer, +end_hr integer, +end_min integer +); +insert into time_slot values('a', 'f', 8, 0, 8, 50); +insert into time_slot values('a', 'm', 8, 0, 8, 50); +insert into time_slot values('a', 'w', 8, 0, 8, 50); +insert into time_slot values('b', 'f', 9, 0, 9, 50); +insert into time_slot values('b', 'm', 9, 0, 9, 50); +insert into time_slot values('b', 'w', 9, 0, 9, 50); +insert into time_slot values('c', 'f', 11, 0, 11, 50); +insert into time_slot values('c', 'm', 11, 0, 11, 50); +insert into time_slot values('c', 'w', 11, 0, 11, 50); +insert into time_slot values('d', 'f', 13, 0, 13, 50); +insert into time_slot values('d', 'm', 13, 0, 13, 50); +insert into time_slot values('d', 'w', 13, 0, 13, 50); +insert into time_slot values('e', 'r', 10, 30, 11, 45); +insert into time_slot values('e', 't', 10, 30, 11, 45); +insert into time_slot values('f', 'r', 14, 30, 15, 45); +insert into time_slot values('f', 't', 14, 30, 15, 45); +insert into time_slot values('g', 'f', 16, 0, 16, 50); +insert into time_slot values('g', 'm', 16, 0, 16, 50); +insert into time_slot values('g', 'w', 16, 0, 16, 50); +insert into time_slot values('h', 'w', 10, 0, 12, 30); + +create table prereq ( +course_id text, +prereq_id text +); +insert into prereq values(376, 130); +insert into prereq values(760, 169); +insert into prereq values(403, 345); +insert into prereq values(353, 647); +insert into prereq values(629, 139); +insert into prereq values(608, 864); +insert into prereq values(158, 408); +insert into prereq values(496, 489); +insert into prereq values(241, 486); +insert into prereq values(958, 969); +insert into prereq values(591, 403); +insert into prereq values(656, 659); +insert into prereq values(864, 634); +insert into prereq values(559, 500); +insert into prereq values(209, 780); +insert into prereq values(603, 735); +insert into prereq values(804, 947); +insert into prereq values(545, 947); +insert into prereq values(353, 694); +insert into prereq values(692, 761); +insert into prereq values(774, 258); +insert into prereq values(747, 927); +insert into prereq values(496, 416); +insert into prereq values(544, 702); +insert into prereq values(608, 421); +insert into prereq values(313, 731); +insert into prereq values(258, 137); +insert into prereq values(486, 371); +insert into prereq values(224, 227); +insert into prereq values(972, 958); +insert into prereq values(359, 694); +insert into prereq values(998, 319); +insert into prereq values(392, 875); +insert into prereq values(443, 852); +insert into prereq values(324, 408); +insert into prereq values(805, 774); +insert into prereq values(242, 304); +insert into prereq values(795, 123); +insert into prereq values(169, 603); +insert into prereq values(774, 769); +insert into prereq values(958, 735); +insert into prereq values(692, 426); +insert into prereq values(958, 139); +insert into prereq values(663, 998); +insert into prereq values(586, 468); +insert into prereq values(254, 877); +insert into prereq values(802, 666); +insert into prereq values(820, 371); +insert into prereq values(902, 130); +insert into prereq values(362, 242); +insert into prereq values(359, 818); +insert into prereq values(664, 489); +insert into prereq values(276, 403); +insert into prereq values(582, 487); +insert into prereq values(694, 254); +insert into prereq values(841, 818); +insert into prereq values(852, 133); +insert into prereq values(843, 324); +insert into prereq values(810, 966); +insert into prereq values(628, 340); +insert into prereq values(242, 594); +insert into prereq values(292, 399); +insert into prereq values(618, 352); +insert into prereq values(664, 704); +insert into prereq values(793, 791); +insert into prereq values(692, 774); +insert into prereq values(324, 857); +insert into prereq values(612, 123); +insert into prereq values(991, 598); +insert into prereq values(544, 254); +insert into prereq values(852, 267); +insert into prereq values(792, 814); +insert into prereq values(133, 852); +insert into prereq values(496, 443); +insert into prereq values(338, 133); +insert into prereq values(399, 664); +insert into prereq values(747, 272); +insert into prereq values(696, 101); +insert into prereq values(403, 352); +insert into prereq values(545, 318); +insert into prereq values(634, 864); +insert into prereq values(947, 494); +insert into prereq values(647, 792); +insert into prereq values(631, 681); +insert into prereq values(236, 984); +insert into prereq values(362, 696); +insert into prereq values(875, 458); +insert into prereq values(457, 544); +insert into prereq values(704, 416); +insert into prereq values(656, 559); +insert into prereq values(272, 275); +insert into prereq values(338, 852); +insert into prereq values(780, 345); +insert into prereq values(458, 696); +insert into prereq values(239, 628); +insert into prereq values(411, 401); +insert into prereq values(830, 748); +insert into prereq values(558, 130); +insert into prereq values(877, 599); +insert into prereq values(349, 612); +create table instructor_teaches ( +id text, +name text, +dept_name text, +salary real, +course_id text, +sec_id text, +semester text, +year integer); +insert into instructor_teaches values('14365', 'mckinnon', 'cybernetics', 94333.99, '200', '1', 'spring', 2007); +insert into instructor_teaches values('14365', 'mckinnon', 'cybernetics', 94333.99, '843', '1', 'fall', 2010); +insert into instructor_teaches values('15347', 'pingr', 'statistics', 59303.62, '457', '1', 'spring', 2001); +insert into instructor_teaches values('16807', 'mird', 'marketing', 119921.41, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('19368', 'luo', 'english', 88791.45, '545', '1', 'fall', 2001); +insert into instructor_teaches values('19368', 'luo', 'english', 88791.45, '581', '1', 'spring', 2005); +insert into instructor_teaches values('19368', 'luo', 'english', 88791.45, '591', '1', 'spring', 2005); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '338', '1', 'spring', 2007); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '338', '2', 'spring', 2006); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '352', '1', 'spring', 2006); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '400', '1', 'spring', 2007); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '400', '2', 'fall', 2003); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '482', '1', 'fall', 2005); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '599', '1', 'spring', 2003); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '642', '1', 'fall', 2004); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '663', '1', 'spring', 2005); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '867', '1', 'fall', 2006); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '962', '1', 'spring', 2008); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '972', '1', 'spring', 2009); +insert into instructor_teaches values('22591', 'murata', 'athletics', 61387.56, '991', '1', 'spring', 2008); +insert into instructor_teaches values('25946', 'konstantinides', 'languages', 32570.5, '192', '1', 'fall', 2002); +insert into instructor_teaches values('28097', 'levine', 'elec. eng.', 89805.83, '366', '1', 'fall', 2005); +insert into instructor_teaches values('28097', 'levine', 'elec. eng.', 89805.83, '808', '1', 'fall', 2003); +insert into instructor_teaches values('28400', 'shuming', 'physics', 108011.81, '603', '1', 'fall', 2003); +insert into instructor_teaches values('28400', 'shuming', 'physics', 108011.81, '604', '1', 'spring', 2009); +insert into instructor_teaches values('31955', 'queiroz', 'biology', 45538.32, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('3199', 'sullivan', 'elec. eng.', 90038.09, '169', '1', 'spring', 2007); +insert into instructor_teaches values('3199', 'sullivan', 'elec. eng.', 90038.09, '169', '2', 'fall', 2002); +insert into instructor_teaches values('3199', 'sullivan', 'elec. eng.', 90038.09, '561', '1', 'fall', 2006); +insert into instructor_teaches values('3199', 'sullivan', 'elec. eng.', 90038.09, '631', '1', 'spring', 2007); +insert into instructor_teaches values('3335', 'bertolino', 'mech. eng.', 51647.57, '949', '1', 'fall', 2007); +insert into instructor_teaches values('3335', 'bertolino', 'mech. eng.', 51647.57, '960', '1', 'fall', 2009); +insert into instructor_teaches values('34175', 'hau', 'accounting', 43966.29, '274', '1', 'fall', 2002); +insert into instructor_teaches values('34175', 'hau', 'accounting', 43966.29, '571', '1', 'spring', 2004); +insert into instructor_teaches values('34175', 'hau', 'accounting', 43966.29, '747', '1', 'spring', 2004); +insert into instructor_teaches values('35579', 'voronina', 'physics', 121141.99, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('36897', 'soisalon-soininen', 'psychology', 62579.61, '242', '1', 'fall', 2009); +insert into instructor_teaches values('36897', 'soisalon-soininen', 'psychology', 62579.61, '313', '1', 'fall', 2010); +insert into instructor_teaches values('36897', 'soisalon-soininen', 'psychology', 62579.61, '696', '1', 'spring', 2002); +insert into instructor_teaches values('36897', 'soisalon-soininen', 'psychology', 62579.61, '791', '1', 'spring', 2006); +insert into instructor_teaches values('36897', 'soisalon-soininen', 'psychology', 62579.61, '795', '1', 'spring', 2004); +insert into instructor_teaches values('37687', 'moreira', 'accounting', 71351.42, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('4034', 'arias', 'statistics', 104563.38, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('41930', 'mingoz', 'finance', 105311.38, '401', '1', 'fall', 2003); +insert into instructor_teaches values('41930', 'mingoz', 'finance', 105311.38, '421', '1', 'fall', 2004); +insert into instructor_teaches values('41930', 'mingoz', 'finance', 105311.38, '692', '1', 'spring', 2010); +insert into instructor_teaches values('4233', 'yazdi', 'athletics', 98333.65, '679', '1', 'spring', 2010); +insert into instructor_teaches values('42782', 'lembr', 'accounting', 32241.56, '793', '1', 'spring', 2002); +insert into instructor_teaches values('43779', 'choll', 'statistics', 57807.09, '105', '1', 'fall', 2009); +insert into instructor_teaches values('43779', 'choll', 'statistics', 57807.09, '105', '2', 'fall', 2002); +insert into instructor_teaches values('43779', 'choll', 'statistics', 57807.09, '476', '1', 'fall', 2010); +insert into instructor_teaches values('43779', 'choll', 'statistics', 57807.09, '489', '1', 'fall', 2007); +insert into instructor_teaches values('48507', 'valtchev', 'biology', 77036.18, '626', '1', 'fall', 2006); +insert into instructor_teaches values('48570', 'arinb', 'statistics', 54805.11, '867', '2', 'fall', 2010); +insert into instructor_teaches values('50330', 'bawa', 'athletics', 72140.88, '468', '2', 'fall', 2007); +insert into instructor_teaches values('50885', 'kenje', 'marketing', 106554.73, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('52647', 'vicentino', 'elec. eng.', 34272.67, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('57180', 'dusserre', 'marketing', 66143.25, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('58558', 'jaekel', 'athletics', 103146.87, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('59795', 'desyl', 'languages', 48803.38, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('63287', 'dagostino', 'psychology', 59706.49, '334', '1', 'fall', 2009); +insert into instructor_teaches values('63287', 'dagostino', 'psychology', 59706.49, '852', '1', 'spring', 2008); +insert into instructor_teaches values('63395', 'sarkar', 'pol. sci.', 87549.8, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('64871', 'ullman', 'accounting', 47307.1, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '137', '1', 'spring', 2002); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '304', '1', 'fall', 2009); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '319', '1', 'spring', 2003); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '349', '1', 'spring', 2008); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '362', '1', 'fall', 2005); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '362', '2', 'fall', 2006); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '362', '3', 'spring', 2008); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '426', '1', 'spring', 2006); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '445', '1', 'spring', 2001); +insert into instructor_teaches values('6569', 'bancilhon', 'pol. sci.', 87958.01, '527', '1', 'fall', 2004); +insert into instructor_teaches values('65931', 'liley', 'languages', 90891.69, '875', '1', 'spring', 2005); +insert into instructor_teaches values('72553', 'morris', 'marketing', 43770.36, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('73623', 'yin', 'english', 46397.59, '694', '1', 'fall', 2002); +insert into instructor_teaches values('74420', 'gustafsson', 'elec. eng.', 82534.37, '239', '1', 'fall', 2006); +insert into instructor_teaches values('74420', 'gustafsson', 'elec. eng.', 82534.37, '376', '1', 'fall', 2006); +insert into instructor_teaches values('74420', 'gustafsson', 'elec. eng.', 82534.37, '443', '1', 'spring', 2010); +insert into instructor_teaches values('74420', 'gustafsson', 'elec. eng.', 82534.37, '443', '2', 'spring', 2002); +insert into instructor_teaches values('74420', 'gustafsson', 'elec. eng.', 82534.37, '612', '1', 'fall', 2007); +insert into instructor_teaches values('74420', 'gustafsson', 'elec. eng.', 82534.37, '959', '1', 'fall', 2006); +insert into instructor_teaches values('74426', 'bondi', 'comp. sci.', 115469.11, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('77346', 'lent', 'mech. eng.', 107978.47, '486', '1', 'fall', 2009); +insert into instructor_teaches values('77346', 'lent', 'mech. eng.', 107978.47, '493', '1', 'spring', 2010); +insert into instructor_teaches values('77346', 'lent', 'mech. eng.', 107978.47, '704', '1', 'spring', 2008); +insert into instructor_teaches values('77346', 'lent', 'mech. eng.', 107978.47, '735', '1', 'spring', 2003); +insert into instructor_teaches values('77346', 'lent', 'mech. eng.', 107978.47, '735', '2', 'spring', 2010); +insert into instructor_teaches values('77346', 'lent', 'mech. eng.', 107978.47, '864', '1', 'spring', 2006); +insert into instructor_teaches values('78699', 'pimenta', 'cybernetics', 79866.95, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('79081', 'bourrier', 'comp. sci.', 80797.83, '200', '2', 'fall', 2002); +insert into instructor_teaches values('79081', 'bourrier', 'comp. sci.', 80797.83, '345', '1', 'spring', 2008); +insert into instructor_teaches values('79081', 'bourrier', 'comp. sci.', 80797.83, '408', '1', 'spring', 2007); +insert into instructor_teaches values('79081', 'bourrier', 'comp. sci.', 80797.83, '408', '2', 'spring', 2003); +insert into instructor_teaches values('79081', 'bourrier', 'comp. sci.', 80797.83, '760', '1', 'spring', 2004); +insert into instructor_teaches values('79081', 'bourrier', 'comp. sci.', 80797.83, '974', '1', 'fall', 2003); +insert into instructor_teaches values('79653', 'gutierrez', 'statistics', 45310.53, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('80759', 'sakurai', 'english', 118143.98, '559', '1', 'fall', 2002); +insert into instructor_teaches values('81991', 'romero', 'astronomy', 79070.08, '415', '1', 'fall', 2010); +insert into instructor_teaches values('81991', 'romero', 'astronomy', 79070.08, '702', '1', 'spring', 2001); +insert into instructor_teaches values('90376', 'mahmoud', 'geology', 99382.59, '158', '1', 'fall', 2008); +insert into instructor_teaches values('90643', 'kean', 'english', 35023.18, '461', '1', 'fall', 2002); +insert into instructor_teaches values('95030', 'bietzk', 'cybernetics', 117836.5, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('95709', 'atanassov', 'statistics', 84982.92, '258', '1', 'fall', 2007); +insert into instructor_teaches values('95709', 'atanassov', 'statistics', 84982.92, '270', '1', 'spring', 2010); +insert into instructor_teaches values('95709', 'atanassov', 'statistics', 84982.92, '468', '1', 'fall', 2005); +insert into instructor_teaches values('95709', 'atanassov', 'statistics', 84982.92, '960', '2', 'fall', 2006); +insert into instructor_teaches values('96895', 'tung', 'athletics', 50482.03, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('97302', 'wieland', 'pol. sci.', 124651.41, 'None', 'None', 'None', 'None'); +insert into instructor_teaches values('99052', 'dale', 'cybernetics', 93348.83, '158', '2', 'spring', 2008); +insert into instructor_teaches values('99052', 'dale', 'cybernetics', 93348.83, '237', '1', 'spring', 2008); +insert into instructor_teaches values('99052', 'dale', 'cybernetics', 93348.83, '237', '2', 'fall', 2009); +insert into instructor_teaches values('99052', 'dale', 'cybernetics', 93348.83, '496', '1', 'fall', 2001); +insert into instructor_teaches values('99052', 'dale', 'cybernetics', 93348.83, '629', '1', 'spring', 2003); +insert into instructor_teaches values('99052', 'dale', 'cybernetics', 93348.83, '748', '1', 'fall', 2003); +insert into instructor_teaches values('99052', 'dale', 'cybernetics', 93348.83, '802', '1', 'spring', 2003); +insert into instructor_teaches values('99052', 'dale', 'cybernetics', 93348.83, '893', '1', 'fall', 2007); +insert into instructor_teaches values('99052', 'dale', 'cybernetics', 93348.83, '927', '1', 'fall', 2002); + diff --git a/all/databases/college_2_minus_1_0/college_2_minus_1_0.sqlite b/all/databases/college_2_minus_1_0/college_2_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..b9a569048aa536dc191fec70db9c084e3a5ae7ff Binary files /dev/null and b/all/databases/college_2_minus_1_0/college_2_minus_1_0.sqlite differ diff --git a/all/databases/college_3/college_3.sql b/all/databases/college_3/college_3.sql new file mode 100644 index 0000000000000000000000000000000000000000..ded85596bef35f5cfcb914d1b025e40e8b96ad55 --- /dev/null +++ b/all/databases/college_3/college_3.sql @@ -0,0 +1,453 @@ +CREATE TABLE "student" ( +"stuid" integer, +"lname" text, +"fname" text, +"age" integer, +"sex" text, +"major" integer, +"advisor" integer, +"city_code" text +); + +INSERT INTO student VALUES (1001, "smith", "linda", 18, "f", 600, 1121, "bal"); +INSERT INTO student VALUES (1002, "kim", "tracy", 19, "f", 600, 7712, "hkg"); +INSERT INTO student VALUES (1003, "jones", "shiela", 21, "f", 600, 7792, "was"); +INSERT INTO student VALUES (1004, "kumar", "dinesh", 20, "m", 600, 8423, "chi"); +INSERT INTO student VALUES (1005, "gompers", "paul", 26, "m", 600, 1121, "yyz"); +INSERT INTO student VALUES (1006, "schultz", "andy", 18, "m", 600, 1148, "bal"); +INSERT INTO student VALUES (1007, "apap", "lisa", 18, "f", 600, 8918, "pit"); +INSERT INTO student VALUES (1008, "nelson", "jandy", 20, "f", 600, 9172, "bal"); +INSERT INTO student VALUES (1009, "tai", "eric", 19, "m", 600, 2192, "yyz"); +INSERT INTO student VALUES (1010, "lee", "derek", 17, "m", 600, 2192, "hou"); +INSERT INTO student VALUES (1011, "adams", "david", 22, "m", 600, 1148, "phl"); +INSERT INTO student VALUES (1012, "davis", "steven", 20, "m", 600, 7723, "pit"); +INSERT INTO student VALUES (1014, "norris", "charles", 18, "m", 600, 8741, "dal"); +INSERT INTO student VALUES (1015, "lee", "susan", 16, "f", 600, 8721, "hkg"); +INSERT INTO student VALUES (1016, "schwartz", "mark", 17, "m", 600, 2192, "det"); +INSERT INTO student VALUES (1017, "wilson", "bruce", 27, "m", 600, 1148, "lon"); +INSERT INTO student VALUES (1018, "leighton", "michael", 20, "m", 600, 1121, "pit"); +INSERT INTO student VALUES (1019, "pang", "arthur", 18, "m", 600, 2192, "was"); +INSERT INTO student VALUES (1020, "thornton", "ian", 22, "m", 520, 7271, "nyc"); +INSERT INTO student VALUES (1021, "andreou", "george", 19, "m", 520, 8722, "nyc"); +INSERT INTO student VALUES (1022, "woods", "michael", 17, "m", 540, 8722, "phl"); +INSERT INTO student VALUES (1023, "shieber", "david", 20, "m", 520, 8722, "nyc"); +INSERT INTO student VALUES (1024, "prater", "stacy", 18, "f", 540, 7271, "bal"); +INSERT INTO student VALUES (1025, "goldman", "mark", 18, "m", 520, 7134, "pit"); +INSERT INTO student VALUES (1026, "pang", "eric", 19, "m", 520, 7134, "hkg"); +INSERT INTO student VALUES (1027, "brody", "paul", 18, "m", 520, 8723, "los"); +INSERT INTO student VALUES (1028, "rugh", "eric", 20, "m", 550, 2311, "roc"); +INSERT INTO student VALUES (1029, "han", "jun", 17, "m", 100, 2311, "pek"); +INSERT INTO student VALUES (1030, "cheng", "lisa", 21, "f", 550, 2311, "sfo"); +INSERT INTO student VALUES (1031, "smith", "sarah", 20, "f", 550, 8772, "phl"); +INSERT INTO student VALUES (1032, "brown", "eric", 20, "m", 550, 8772, "atl"); +INSERT INTO student VALUES (1033, "simms", "william", 18, "m", 550, 8772, "nar"); +INSERT INTO student VALUES (1034, "epp", "eric", 18, "m", 50, 5718, "bos"); +INSERT INTO student VALUES (1035, "schmidt", "sarah", 26, "f", 50, 5718, "was"); + +CREATE TABLE "faculty" ( +"facid" integer, +"lname" text, +"fname" text, +"rank" text, +"sex" text, +"phone" integer, +"room" text, +"building" text +); + +INSERT INTO faculty VALUES (1082, "giuliano", "mark", "instructor", "m", 2424, "224", "neb"); +INSERT INTO faculty VALUES (1121, "goodrich", "michael", "professor", "m", 3593, "219", "neb"); +INSERT INTO faculty VALUES (1148, "masson", "gerald", "professor", "m", 3402, "224b", "neb"); +INSERT INTO faculty VALUES (1172, "runolfsson", "thordur", "assocprof", "m", 3121, "119", "barton"); +INSERT INTO faculty VALUES (1177, "naiman", "daniel", "professor", "m", 3571, "288", "krieger"); +INSERT INTO faculty VALUES (1193, "jones", "stacey", "instructor", "f", 3550, "224", "neb"); +INSERT INTO faculty VALUES (1823, "davidson", "frederic", "professor", "m", 5629, "119", "barton"); +INSERT INTO faculty VALUES (2028, "brody", "william", "professor", "m", 6073, "119", "barton"); +INSERT INTO faculty VALUES (2119, "meyer", "gerard", "professor", "m", 6350, "119", "barton"); +INSERT INTO faculty VALUES (2192, "yarowsky", "david", "asstprof", "m", 6587, "324", "neb"); +INSERT INTO faculty VALUES (2291, "scheinerman", "edward", "professor", "m", 6654, "288", "krieger"); +INSERT INTO faculty VALUES (2311, "priebe", "carey", "asstprof", "m", 6953, "288", "krieger"); +INSERT INTO faculty VALUES (2738, "fill", "james", "professor", "m", 8209, "288", "krieger"); +INSERT INTO faculty VALUES (2881, "goldman", "alan", "professor", "m", 8335, "288", "krieger"); +INSERT INTO faculty VALUES (3457, "smith", "scott", "assocprof", "m", 1035, "318", "neb"); +INSERT INTO faculty VALUES (4230, "houlahan", "joanne", "instructor", "f", 1260, "328", "neb"); +INSERT INTO faculty VALUES (4432, "burzio", "luigi", "professor", "m", 1813, "288", "krieger"); +INSERT INTO faculty VALUES (5718, "frank", "robert", "asstprof", "m", 1751, "288", "krieger"); +INSERT INTO faculty VALUES (6112, "beach", "louis", "instructor", "m", 1838, "207", "neb"); +INSERT INTO faculty VALUES (6182, "cheng", "cheng", "asstprof", "m", 1856, "288", "krieger"); +INSERT INTO faculty VALUES (6191, "kaplan", "alexander", "professor", "m", 1825, "119", "barton"); +INSERT INTO faculty VALUES (6330, "byrne", "william", "instructor", "m", 1691, "119", "barton"); +INSERT INTO faculty VALUES (6541, "han", "shih-ping", "professor", "m", 1914, "288", "krieger"); +INSERT INTO faculty VALUES (6910, "smolensky", "paul", "professor", "m", 2072, "288", "krieger"); +INSERT INTO faculty VALUES (6925, "iglesias", "pablo", "asstprof", "m", 2021, "119", "barton"); +INSERT INTO faculty VALUES (7134, "goutsias", "john", "professor", "m", 2184, "119", "barton"); +INSERT INTO faculty VALUES (7231, "rugh", "wilson", "professor", "m", 2191, "119", "barton"); +INSERT INTO faculty VALUES (7271, "jelinek", "frederick", "professor", "m", 2890, "119", "barton"); +INSERT INTO faculty VALUES (7506, "westgate", "charles", "professor", "m", 2932, "119", "barton"); +INSERT INTO faculty VALUES (7712, "awerbuch", "baruch", "professor", "m", 2105, "220", "neb"); +INSERT INTO faculty VALUES (7723, "taylor", "russell", "professor", "m", 2435, "317", "neb"); +INSERT INTO faculty VALUES (7792, "brill", "eric", "asstprof", "m", 2303, "324b", "neb"); +INSERT INTO faculty VALUES (8102, "james", "lancelot", "asstprof", "m", 2792, "288", "krieger"); +INSERT INTO faculty VALUES (8114, "angelopoulou", "ellie", "instructor", "f", 2152, "316", "neb"); +INSERT INTO faculty VALUES (8118, "weinert", "howard", "professor", "m", 3272, "119", "barton"); +INSERT INTO faculty VALUES (8122, "wierman", "john", "professor", "m", 3392, "288", "krieger"); +INSERT INTO faculty VALUES (8423, "kumar", "subodh", "asstprof", "m", 2522, "218", "neb"); +INSERT INTO faculty VALUES (8721, "wolff", "lawrence", "assocprof", "m", 2342, "316", "neb"); +INSERT INTO faculty VALUES (8722, "cauwenberghs", "gert", "asstprof", "m", 1372, "119", "barton"); +INSERT INTO faculty VALUES (8723, "andreou", "andreas", "professor", "m", 1402, "119", "barton"); +INSERT INTO faculty VALUES (8741, "salzberg", "steven", "assocprof", "m", 2641, "324a", "neb"); +INSERT INTO faculty VALUES (8772, "cowen", "lenore", "asstprof", "f", 2870, "288", "krieger"); +INSERT INTO faculty VALUES (8791, "mccloskey", "michael", "professor", "m", 3440, "288", "krieger"); +INSERT INTO faculty VALUES (8918, "amir", "yair", "asstprof", "m", 2672, "308", "neb"); +INSERT INTO faculty VALUES (8989, "brent", "michael", "asstprof", "m", 9373, "288", "krieger"); +INSERT INTO faculty VALUES (9011, "rapp", "brenda", "asstprof", "f", 2032, "288", "krieger"); +INSERT INTO faculty VALUES (9172, "kosaraju", "rao", "professor", "m", 2757, "319", "neb"); +INSERT INTO faculty VALUES (9191, "collins", "oliver", "assocprof", "m", 5427, "119", "barton"); +INSERT INTO faculty VALUES (9199, "hughes", "brian", "assocprof", "m", 5666, "119", "barton"); +INSERT INTO faculty VALUES (9210, "joseph", "richard", "professor", "m", 5996, "119", "barton"); +INSERT INTO faculty VALUES (9379, "khurgin", "jacob", "professor", "m", 1060, "119", "barton"); +INSERT INTO faculty VALUES (9514, "prince", "jerry", "assocprof", "m", 5106, "119", "barton"); +INSERT INTO faculty VALUES (9643, "legendre", "geraldine", "assocprof", "f", 8972, "288", "krieger"); +INSERT INTO faculty VALUES (9811, "wu", "colin", "asstprof", "m", 2906, "288", "krieger"); +INSERT INTO faculty VALUES (9823, "pang", "jong-shi", "professor", "m", 4366, "288", "krieger"); +INSERT INTO faculty VALUES (9824, "glaser", "robert", "instructor", "m", 4396, "119", "barton"); +INSERT INTO faculty VALUES (9826, "delcher", "arthur", "instructor", "m", 2956, "329", "neb"); +INSERT INTO faculty VALUES (9922, "hall", "leslie", "asstprof", "f", 7332, "288", "krieger"); + +CREATE TABLE "department" ( +"dno" integer, +"division" text, +"dname" text, +"room" text, +"building" text, +"dphone" integer +); + +INSERT INTO department VALUES (10, "as", "history of art", "268", "mergenthaler", 7117); +INSERT INTO department VALUES (20, "as", "biology", "144", "mudd", 7330); +INSERT INTO department VALUES (30, "as", "chemistry", "113", "remsen", 7429); +INSERT INTO department VALUES (40, "as", "classics", "121", "gilman", 7556); +INSERT INTO department VALUES (50, "as", "cognitive science", "381", "krieger", 7119); +INSERT INTO department VALUES (60, "as", "english", "146", "gilman", 7544); +INSERT INTO department VALUES (70, "as", "anthropology", "404b", "macaulay", 7272); +INSERT INTO department VALUES (90, "as", "german", "245", "gilman", 7508); +INSERT INTO department VALUES (100, "as", "history", "312", "gilman", 7575); +INSERT INTO department VALUES (110, "as", "mathematics", "404", "krieger", 7399); +INSERT INTO department VALUES (130, "as", "near eastern studies", "128", "gilman", 7499); +INSERT INTO department VALUES (140, "as", "history of science", "234", "gilman", 7501); +INSERT INTO department VALUES (150, "as", "philosophy", "347", "gilman", 7524); +INSERT INTO department VALUES (170, "as", "physics and astronomy", "366", "bloomberg", 7347); +INSERT INTO department VALUES (180, "as", "economics", "440", "mergenthaler", 7601); +INSERT INTO department VALUES (190, "as", "political science", "338", "mergenthaler", 7540); +INSERT INTO department VALUES (200, "as", "psychology", "223", "ames", 7055); +INSERT INTO department VALUES (340, "as", "french", "225", "gilman", 7227); +INSERT INTO department VALUES (350, "as", "hispanic/italian studies", "221", "gilman", 7226); +INSERT INTO department VALUES (520, "en", "ece", "105", "barton", 7033); +INSERT INTO department VALUES (530, "en", "mechanical engineering", "122", "latrobe", 7132); +INSERT INTO department VALUES (540, "en", "chemical engineering", "24", "neb", 7170); +INSERT INTO department VALUES (550, "en", "mathematical sciences", "221", "maryland", 7195); +INSERT INTO department VALUES (560, "en", "civil engineering", "206", "latrobe", 8680); +INSERT INTO department VALUES (580, "en", "biomedical engineering", "144", "neb", 8482); +INSERT INTO department VALUES (600, "en", "computer science", "224", "neb", 8577); + +CREATE TABLE "member_of" ( +"facid" integer, +"dno" integer, +"appt_type" text +); + +INSERT INTO member_of VALUES (7792, 600, "primary"); +INSERT INTO member_of VALUES (9210, 520, "primary"); +INSERT INTO member_of VALUES (9811, 550, "primary"); +INSERT INTO member_of VALUES (9643, 50, "primary"); +INSERT INTO member_of VALUES (9379, 520, "primary"); +INSERT INTO member_of VALUES (8918, 600, "primary"); +INSERT INTO member_of VALUES (7712, 600, "primary"); +INSERT INTO member_of VALUES (1121, 600, "primary"); +INSERT INTO member_of VALUES (9172, 600, "primary"); +INSERT INTO member_of VALUES (8423, 600, "primary"); +INSERT INTO member_of VALUES (1148, 600, "primary"); +INSERT INTO member_of VALUES (8741, 600, "primary"); +INSERT INTO member_of VALUES (3457, 600, "primary"); +INSERT INTO member_of VALUES (7723, 600, "primary"); +INSERT INTO member_of VALUES (8721, 600, "primary"); +INSERT INTO member_of VALUES (2192, 600, "primary"); +INSERT INTO member_of VALUES (8114, 600, "primary"); +INSERT INTO member_of VALUES (6112, 600, "primary"); +INSERT INTO member_of VALUES (9826, 600, "primary"); +INSERT INTO member_of VALUES (1193, 600, "primary"); +INSERT INTO member_of VALUES (1082, 600, "primary"); +INSERT INTO member_of VALUES (4230, 600, "primary"); +INSERT INTO member_of VALUES (8989, 600, "secondary"); +INSERT INTO member_of VALUES (7271, 600, "secondary"); +INSERT INTO member_of VALUES (8721, 520, "secondary"); +INSERT INTO member_of VALUES (8741, 50, "secondary"); +INSERT INTO member_of VALUES (7271, 50, "secondary"); +INSERT INTO member_of VALUES (6182, 550, "primary"); +INSERT INTO member_of VALUES (8772, 550, "primary"); +INSERT INTO member_of VALUES (2738, 550, "primary"); +INSERT INTO member_of VALUES (2881, 550, "primary"); +INSERT INTO member_of VALUES (9922, 550, "primary"); +INSERT INTO member_of VALUES (6541, 550, "primary"); +INSERT INTO member_of VALUES (8102, 550, "primary"); +INSERT INTO member_of VALUES (1177, 550, "primary"); +INSERT INTO member_of VALUES (9823, 550, "primary"); +INSERT INTO member_of VALUES (2311, 550, "primary"); +INSERT INTO member_of VALUES (2291, 550, "primary"); +INSERT INTO member_of VALUES (8122, 550, "primary"); +INSERT INTO member_of VALUES (8989, 50, "primary"); +INSERT INTO member_of VALUES (4432, 50, "primary"); +INSERT INTO member_of VALUES (5718, 50, "primary"); +INSERT INTO member_of VALUES (8791, 50, "primary"); +INSERT INTO member_of VALUES (9011, 50, "primary"); +INSERT INTO member_of VALUES (6910, 50, "primary"); +INSERT INTO member_of VALUES (8723, 520, "primary"); +INSERT INTO member_of VALUES (2028, 520, "primary"); +INSERT INTO member_of VALUES (8722, 520, "primary"); +INSERT INTO member_of VALUES (9191, 520, "primary"); +INSERT INTO member_of VALUES (1823, 520, "primary"); +INSERT INTO member_of VALUES (7134, 520, "primary"); +INSERT INTO member_of VALUES (9199, 520, "primary"); +INSERT INTO member_of VALUES (6925, 520, "primary"); +INSERT INTO member_of VALUES (7271, 520, "primary"); +INSERT INTO member_of VALUES (6191, 520, "primary"); +INSERT INTO member_of VALUES (2119, 520, "primary"); +INSERT INTO member_of VALUES (9514, 520, "primary"); +INSERT INTO member_of VALUES (7231, 520, "primary"); +INSERT INTO member_of VALUES (1172, 520, "primary"); +INSERT INTO member_of VALUES (8118, 520, "primary"); +INSERT INTO member_of VALUES (7506, 520, "primary"); +INSERT INTO member_of VALUES (6330, 520, "primary"); +INSERT INTO member_of VALUES (9824, 520, "primary"); + +CREATE TABLE "course" ( +"cid" text, +"cname" text, +"credits" integer, +"instructor" integer, +"days" text, +"hours" text, +"dno" integer +); + +INSERT INTO course VALUES ("050.102", "computer literacy", 3, 6112, "mtw", "3", 600); +INSERT INTO course VALUES ("050.109", "introduction to computer science", 1, 4230, "th", "4", 600); +INSERT INTO course VALUES ("050.203", "intro to programming in java", 3, 1193, "mtw", "3", 600); +INSERT INTO course VALUES ("050.325", "intro to programming in c/c++", 3, 4230, "mtw", "12", 600); +INSERT INTO course VALUES ("050.370", "exploring the internet", 3, 6112, "mtw", "4", 600); +INSERT INTO course VALUES ("050.381", "java programming", 3, 6112, "thf", "10:30-12", 600); +INSERT INTO course VALUES ("050.427", "unix systems programming", 3, 6112, "thf", "1-2:15", 600); +INSERT INTO course VALUES ("050.670", "data structures in java", 3, 1121, "mtw", "9", 600); +INSERT INTO course VALUES ("050.802", "multimedia computing", 3, 9826, "mw", "1-2:30", 600); +INSERT INTO course VALUES ("050.821", "computational models", 3, 9172, "mtw", "1", 600); +INSERT INTO course VALUES ("500.203", "supercomputing", 1, 9826, "w", "4-6:20", 600); +INSERT INTO course VALUES ("500.204", "database systems", 3, 2192, "thf", "2:30-4", 600); +INSERT INTO course VALUES ("500.205", "computer system fundamentals", 3, 1148, "mtw", "8", 600); +INSERT INTO course VALUES ("500.206", "distributed systems", 3, 8918, "m", "3", 600); +INSERT INTO course VALUES ("520.137", "introduction to algorithms", 3, 7712, "mtw", "9", 600); +INSERT INTO course VALUES ("520.213", "database systems", 3, 2192, "thf", "2:30-4", 600); +INSERT INTO course VALUES ("520.219", "computer systems", 3, 1148, "mtw", "8", 600); +INSERT INTO course VALUES ("520.325", "distributed systems", 3, 8918, "m", "3", 600); +INSERT INTO course VALUES ("520.345", "quantitative medical computing", 3, 7723, "thf", "1-2:15", 600); +INSERT INTO course VALUES ("520.349", "computer vision", 3, 8114, "mtw", "1", 600); +INSERT INTO course VALUES ("520.353", "algorithms i", 3, 7712, "mtw", "9", 600); +INSERT INTO course VALUES ("520.401", "intro to natural language processing", 3, 7792, "mtw", "2", 600); +INSERT INTO course VALUES ("520.410", "computer science internship", 3, 1121, "m", "1", 600); +INSERT INTO course VALUES ("520.419", "computer science seminar", 1, 6191, "thf", "10:30-12", 600); +INSERT INTO course VALUES ("520.421", "high performance graphics and modeling", 3, 8423, "m", "4-5:30", 600); +INSERT INTO course VALUES ("520.432", "seminar on computational geometry", 3, 1121, "th", "2", 600); +INSERT INTO course VALUES ("520.435", "statistical analysis", 4, 2311, "mtw", "12", 550); +INSERT INTO course VALUES ("520.475", "discrete mathematics", 4, 8772, "mtw", "11", 550); +INSERT INTO course VALUES ("520.490", "accounting i", 3, 9823, "t", "6:15-8:45", 550); +INSERT INTO course VALUES ("520.603", "accounting ii", 3, 9823, "th", "6:15-8:45", 550); +INSERT INTO course VALUES ("520.605", "business law i", 3, 8791, "w", "6:15-8:45", 550); +INSERT INTO course VALUES ("520.609", "business law ii", 3, 8791, "m", "6:15-8:45", 550); +INSERT INTO course VALUES ("520.651", "linear algebra and differential eqns", 4, 6541, "mtw", "9", 550); +INSERT INTO course VALUES ("550.111", "probability and statistics", 4, 8102, "mtw", "10", 550); +INSERT INTO course VALUES ("550.171", "introduction to optimization", 4, 2881, "mtw", "2", 550); +INSERT INTO course VALUES ("550.291", "applied statistics and data analysis", 4, 1177, "mtw", "11", 550); +INSERT INTO course VALUES ("550.310", "introduction to probability", 4, 2738, "mtw", "1", 550); +INSERT INTO course VALUES ("550.361", "combinatorial analysis", 4, 8772, "mtw", "12", 550); +INSERT INTO course VALUES ("550.413", "probability theory i", 3, 2738, "mtw", "2", 550); +INSERT INTO course VALUES ("550.420", "stochastic processes ii", 3, 8102, "mtw", "1", 550); +INSERT INTO course VALUES ("550.471", "statistical inference", 3, 6182, "mtw", "3", 550); +INSERT INTO course VALUES ("550.620", "foundations of optimization", 3, 9823, "mtw", "10", 550); +INSERT INTO course VALUES ("550.626", "combinatorial analysis", 3, 8772, "mtw", "12", 550); +INSERT INTO course VALUES ("550.631", "numerical analysis", 3, 6541, "mtw", "11", 550); +INSERT INTO course VALUES ("550.661", "percolation theory", 3, 8122, "mtw", "9", 550); +INSERT INTO course VALUES ("550.671", "topics in operations research", 3, 9922, "mw", "3-4:30", 550); +INSERT INTO course VALUES ("550.681", "topics in applied math", 2, 2881, "mt", "4:30-6", 550); +INSERT INTO course VALUES ("550.721", "introduction to ece", 3, 8723, "mtw", "11", 520); +INSERT INTO course VALUES ("550.750", "circuits", 4, 9210, "mtw", "2", 520); +INSERT INTO course VALUES ("550.790", "fields matter and waves", 3, 9210, "mtw", "3", 520); +INSERT INTO course VALUES ("600.101", "integrated electronics", 3, 6191, "mtw", "3", 520); +INSERT INTO course VALUES ("600.103", "ece laboratory", 3, 1823, "w", "2", 520); +INSERT INTO course VALUES ("600.107", "microprocessor lab i", 3, 9824, "th", "8", 520); +INSERT INTO course VALUES ("600.109", "control systems", 3, 6925, "mtw", "10", 520); +INSERT INTO course VALUES ("600.113", "basic communications", 3, 6191, "mtw", "1", 520); +INSERT INTO course VALUES ("600.121", "fiber optics and photonics", 3, 6191, "mtw", "1", 520); +INSERT INTO course VALUES ("600.211", "iterative algorithms", 3, 2119, "mt", "4-5:15", 520); +INSERT INTO course VALUES ("600.227", "introduction to non-linear systems", 3, 7231, "mtw", "9", 520); +INSERT INTO course VALUES ("600.232", "topics in medical imaging systems", 3, 9514, "tth", "8:30-10", 520); +INSERT INTO course VALUES ("600.271", "digital signal processing", 4, 8118, "mtw", "11", 520); +INSERT INTO course VALUES ("600.303", "processing and recognition of speech", 3, 6330, "tw", "2-3:30", 520); +INSERT INTO course VALUES ("600.315", "analog and digital vlsi systems", 3, 8722, "thf", "10:30-12", 520); +INSERT INTO course VALUES ("600.333", "electromagnetic waves", 4, 9210, "th", "1-4:30", 520); +INSERT INTO course VALUES ("600.337", "solid state physics", 3, 9379, "tu", "1-4", 520); +INSERT INTO course VALUES ("600.363", "nonlinear technical image processing", 3, 7134, "th", "1-4", 520); +INSERT INTO course VALUES ("600.415", "random signal analysis", 3, 9514, "thf", "10:30-12", 520); +INSERT INTO course VALUES ("600.433", "language and mind", 3, 4432, "mtw", "10", 50); +INSERT INTO course VALUES ("600.437", "mind brain computers", 3, 6910, "mw", "2-3:15", 50); +INSERT INTO course VALUES ("600.445", "cognitive neuroscience", 4, 9011, "mt", "3:30-4:45", 50); +INSERT INTO course VALUES ("600.461", "sound structures in natural language", 3, 4432, "t", "10-12", 50); +INSERT INTO course VALUES ("600.463", "formal methods in cognitive science", 3, 6910, "mw", "11:30", 50); +INSERT INTO course VALUES ("600.465", "language development", 3, 8989, "t", "1-3", 50); +INSERT INTO course VALUES ("600.509", "the history of romance languages", 3, 4432, "w", "1-3", 50); +INSERT INTO course VALUES ("600.601", "formal methods in cognitive science", 3, 4432, "mw", "11:30-12:45", 50); +INSERT INTO course VALUES ("600.657", "research seminar in cognitive processes", 1, 9011, "w", "1-3", 50); +INSERT INTO course VALUES ("600.787", "comp. models of sentence processing", 3, 5718, "m", "1-4", 50); + +CREATE TABLE "minor_in" ( +"stuid" integer, +"dno" integer +); + +INSERT INTO minor_in VALUES (1004, 520); +INSERT INTO minor_in VALUES (1005, 550); +INSERT INTO minor_in VALUES (1006, 50); +INSERT INTO minor_in VALUES (1007, 520); +INSERT INTO minor_in VALUES (1008, 550); +INSERT INTO minor_in VALUES (1014, 90); +INSERT INTO minor_in VALUES (1015, 140); +INSERT INTO minor_in VALUES (1016, 190); +INSERT INTO minor_in VALUES (1027, 530); +INSERT INTO minor_in VALUES (1031, 540); + +CREATE TABLE "enrolled_in" ( +"stuid" integer, +"cid" text, +"grade" text +); + +INSERT INTO enrolled_in VALUES (1001, "550.681", "a-"); +INSERT INTO enrolled_in VALUES (1001, "600.303", "b"); +INSERT INTO enrolled_in VALUES (1001, "600.315", "b+"); +INSERT INTO enrolled_in VALUES (1001, "600.337", "a"); +INSERT INTO enrolled_in VALUES (1001, "600.461", "b-"); +INSERT INTO enrolled_in VALUES (1001, "600.465", "b"); +INSERT INTO enrolled_in VALUES (1002, "520.213", "b+"); +INSERT INTO enrolled_in VALUES (1002, "600.211", "c"); +INSERT INTO enrolled_in VALUES (1002, "600.303", "c+"); +INSERT INTO enrolled_in VALUES (1002, "600.337", "a"); +INSERT INTO enrolled_in VALUES (1002, "600.463", "b"); +INSERT INTO enrolled_in VALUES (1002, "600.465", "b+"); +INSERT INTO enrolled_in VALUES (1003, "600.333", "b"); +INSERT INTO enrolled_in VALUES (1003, "600.337", "b"); +INSERT INTO enrolled_in VALUES (1003, "600.415", "b"); +INSERT INTO enrolled_in VALUES (1003, "600.461", "b+"); +INSERT INTO enrolled_in VALUES (1003, "600.465", "b"); +INSERT INTO enrolled_in VALUES (1004, "600.303", "c-"); +INSERT INTO enrolled_in VALUES (1004, "600.415", "c-"); +INSERT INTO enrolled_in VALUES (1004, "600.437", "c-"); +INSERT INTO enrolled_in VALUES (1004, "600.445", "a-"); +INSERT INTO enrolled_in VALUES (1004, "600.461", "c"); +INSERT INTO enrolled_in VALUES (1004, "600.463", "a+"); +INSERT INTO enrolled_in VALUES (1004, "600.465", "a"); +INSERT INTO enrolled_in VALUES (1005, "600.103", "a"); +INSERT INTO enrolled_in VALUES (1005, "600.107", "c+"); +INSERT INTO enrolled_in VALUES (1005, "600.113", "c"); +INSERT INTO enrolled_in VALUES (1005, "600.227", "a"); +INSERT INTO enrolled_in VALUES (1005, "600.303", "b"); +INSERT INTO enrolled_in VALUES (1006, "550.420", "b"); +INSERT INTO enrolled_in VALUES (1006, "600.107", "b+"); +INSERT INTO enrolled_in VALUES (1006, "600.227", "b-"); +INSERT INTO enrolled_in VALUES (1006, "600.232", "c-"); +INSERT INTO enrolled_in VALUES (1006, "600.303", "a-"); +INSERT INTO enrolled_in VALUES (1006, "600.315", "a"); +INSERT INTO enrolled_in VALUES (1007, "550.420", "a"); +INSERT INTO enrolled_in VALUES (1007, "600.113", "a-"); +INSERT INTO enrolled_in VALUES (1007, "600.227", "c+"); +INSERT INTO enrolled_in VALUES (1007, "600.315", "a"); +INSERT INTO enrolled_in VALUES (1007, "600.333", "a-"); +INSERT INTO enrolled_in VALUES (1007, "600.337", "c"); +INSERT INTO enrolled_in VALUES (1008, "600.415", "a+"); +INSERT INTO enrolled_in VALUES (1008, "600.463", "b"); +INSERT INTO enrolled_in VALUES (1008, "600.465", "b"); +INSERT INTO enrolled_in VALUES (1008, "600.657", "b"); +INSERT INTO enrolled_in VALUES (1008, "600.787", "b"); +INSERT INTO enrolled_in VALUES (1009, "550.413", "b+"); +INSERT INTO enrolled_in VALUES (1009, "550.471", "c"); +INSERT INTO enrolled_in VALUES (1009, "550.620", "a-"); +INSERT INTO enrolled_in VALUES (1009, "550.626", "b"); +INSERT INTO enrolled_in VALUES (1009, "550.671", "c"); +INSERT INTO enrolled_in VALUES (1009, "550.681", "a"); +INSERT INTO enrolled_in VALUES (1009, "550.661", "b-"); +INSERT INTO enrolled_in VALUES (1009, "550.631", "a-"); +INSERT INTO enrolled_in VALUES (1010, "550.291", "a"); +INSERT INTO enrolled_in VALUES (1010, "550.310", "a"); +INSERT INTO enrolled_in VALUES (1010, "550.413", "c+"); +INSERT INTO enrolled_in VALUES (1010, "550.420", "a"); +INSERT INTO enrolled_in VALUES (1010, "550.471", "a"); +INSERT INTO enrolled_in VALUES (1010, "600.107", "b+"); +INSERT INTO enrolled_in VALUES (1011, "520.213", "b"); +INSERT INTO enrolled_in VALUES (1011, "520.345", "b"); +INSERT INTO enrolled_in VALUES (1011, "520.349", "a"); +INSERT INTO enrolled_in VALUES (1011, "520.353", "a-"); +INSERT INTO enrolled_in VALUES (1011, "550.420", "b"); +INSERT INTO enrolled_in VALUES (1011, "600.415", "b+"); +INSERT INTO enrolled_in VALUES (1012, "050.109", "b-"); +INSERT INTO enrolled_in VALUES (1012, "050.203", "b-"); +INSERT INTO enrolled_in VALUES (1012, "050.325", "a-"); +INSERT INTO enrolled_in VALUES (1012, "600.107", "a"); +INSERT INTO enrolled_in VALUES (1012, "600.315", "b"); +INSERT INTO enrolled_in VALUES (1014, "600.107", "a"); +INSERT INTO enrolled_in VALUES (1014, "600.227", "a"); +INSERT INTO enrolled_in VALUES (1014, "600.232", "a"); +INSERT INTO enrolled_in VALUES (1014, "600.315", "a+"); +INSERT INTO enrolled_in VALUES (1014, "600.445", "b"); +INSERT INTO enrolled_in VALUES (1014, "600.461", "b"); +INSERT INTO enrolled_in VALUES (1014, "600.463", "b"); +INSERT INTO enrolled_in VALUES (1015, "550.420", "a"); +INSERT INTO enrolled_in VALUES (1015, "600.227", "a+"); +INSERT INTO enrolled_in VALUES (1015, "600.303", "a"); +INSERT INTO enrolled_in VALUES (1015, "600.315", "c-"); +INSERT INTO enrolled_in VALUES (1015, "600.333", "a"); +INSERT INTO enrolled_in VALUES (1016, "050.109", "b-"); +INSERT INTO enrolled_in VALUES (1016, "050.203", "d-"); +INSERT INTO enrolled_in VALUES (1016, "050.325", "a"); +INSERT INTO enrolled_in VALUES (1016, "050.821", "a"); +INSERT INTO enrolled_in VALUES (1016, "550.420", "a-"); +INSERT INTO enrolled_in VALUES (1016, "600.107", "b+"); +INSERT INTO enrolled_in VALUES (1016, "600.315", "b-"); +INSERT INTO enrolled_in VALUES (1017, "050.427", "b"); +INSERT INTO enrolled_in VALUES (1017, "050.670", "b"); +INSERT INTO enrolled_in VALUES (1017, "050.802", "c"); +INSERT INTO enrolled_in VALUES (1017, "550.681", "b"); +INSERT INTO enrolled_in VALUES (1017, "600.109", "a-"); +INSERT INTO enrolled_in VALUES (1017, "600.461", "a"); +INSERT INTO enrolled_in VALUES (1017, "600.465", "c"); +INSERT INTO enrolled_in VALUES (1018, "520.213", "a-"); +INSERT INTO enrolled_in VALUES (1018, "600.211", "a"); +INSERT INTO enrolled_in VALUES (1018, "600.303", "a"); + +CREATE TABLE "gradeconversion" ( +"lettergrade" text, +"gradepoint" real +); + +INSERT INTO gradeconversion VALUES ("a", 4.0); +INSERT INTO gradeconversion VALUES ("a+", 4.0); +INSERT INTO gradeconversion VALUES ("a-", 3.7); +INSERT INTO gradeconversion VALUES ("b", 3.3); +INSERT INTO gradeconversion VALUES ("b+", 3.0); +INSERT INTO gradeconversion VALUES ("b-", 2.7); +INSERT INTO gradeconversion VALUES ("c", 2.3); +INSERT INTO gradeconversion VALUES ("c+", 2.0); +INSERT INTO gradeconversion VALUES ("c-", 1.7); +INSERT INTO gradeconversion VALUES ("d", 1.3); +INSERT INTO gradeconversion VALUES ("d+", 1.0); +INSERT INTO gradeconversion VALUES ("d-", 0.7); +INSERT INTO gradeconversion VALUES ("f", 0.0); + + +COMMIT; diff --git a/all/databases/college_3/college_3.sqlite b/all/databases/college_3/college_3.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..01c1c700ea74ccb2d286ddead598291c12c38bd5 Binary files /dev/null and b/all/databases/college_3/college_3.sqlite differ diff --git a/all/databases/course_teach/course_teach.sql b/all/databases/course_teach/course_teach.sql new file mode 100644 index 0000000000000000000000000000000000000000..5525db854604243407fc77082bf61c1065c6580b --- /dev/null +++ b/all/databases/course_teach/course_teach.sql @@ -0,0 +1,47 @@ +CREATE TABLE "course" ( +"course_id" integer, +"staring_date" text, +"course" text +); + +INSERT INTO course VALUES (1, "5 may", "language arts"); +INSERT INTO course VALUES (2, "6 may", "math"); +INSERT INTO course VALUES (3, "7 may", "science"); +INSERT INTO course VALUES (4, "9 may", "history"); +INSERT INTO course VALUES (5, "10 may", "bible"); +INSERT INTO course VALUES (6, "11 may", "geography"); +INSERT INTO course VALUES (7, "13 may", "sports"); +INSERT INTO course VALUES (8, "14 may", "french"); +INSERT INTO course VALUES (9, "15 may", "health"); +INSERT INTO course VALUES (10, "17 may", "music"); + +CREATE TABLE "teacher" ( +"teacher_id" integer, +"name" text, +"age" text, +"hometown" text +); + +INSERT INTO teacher VALUES (1, "joseph huts", "32", "blackrod urban district"); +INSERT INTO teacher VALUES (2, "gustaaf deloor", "29", "bolton county borough"); +INSERT INTO teacher VALUES (3, "vicente carretero", "26", "farnworth municipal borough"); +INSERT INTO teacher VALUES (4, "john deloor", "33", "horwich urban district"); +INSERT INTO teacher VALUES (5, "kearsley brown", "45", "kearsley urban district"); +INSERT INTO teacher VALUES (6, "anne walker", "41", "little lever urban district"); +INSERT INTO teacher VALUES (7, "lucy wong", "39", "turton urban district"); + +CREATE TABLE "course_arrange" ( +"course_id" integer, +"teacher_id" integer, +"grade" integer +); + +INSERT INTO course_arrange VALUES (2, 5, 1); +INSERT INTO course_arrange VALUES (2, 3, 3); +INSERT INTO course_arrange VALUES (3, 2, 5); +INSERT INTO course_arrange VALUES (4, 6, 7); +INSERT INTO course_arrange VALUES (5, 6, 1); +INSERT INTO course_arrange VALUES (10, 7, 4); + + +COMMIT; diff --git a/all/databases/course_teach/course_teach.sqlite b/all/databases/course_teach/course_teach.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..76c41f3b86c9deed3ebd2dabb805ca1e27e1b6d3 Binary files /dev/null and b/all/databases/course_teach/course_teach.sqlite differ diff --git a/all/databases/course_teach_total_0/course_teach_total_0.sql b/all/databases/course_teach_total_0/course_teach_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..deaf36a6bf6e971fd0fac9e3eb9268d5532f185b --- /dev/null +++ b/all/databases/course_teach_total_0/course_teach_total_0.sql @@ -0,0 +1,31 @@ +create table course ( +course_id integer, +staring_date text, +course text +); +insert into course values(1, '5 may', 'language arts'); +insert into course values(2, '6 may', 'math'); +insert into course values(3, '7 may', 'science'); +insert into course values(4, '9 may', 'history'); +insert into course values(5, '10 may', 'bible'); +insert into course values(6, '11 may', 'geography'); +insert into course values(7, '13 may', 'sports'); +insert into course values(8, '14 may', 'french'); +insert into course values(9, '15 may', 'health'); +insert into course values(10, '17 may', 'music'); +create table course_arrange_teacher ( +course_id integer, +teacher_id integer, +grade integer, +name text, +age text, +hometown text); +insert into course_arrange_teacher values(2, 5, 1, 'kearsley brown', '45', 'kearsley urban district'); +insert into course_arrange_teacher values(2, 3, 3, 'vicente carretero', '26', 'farnworth municipal borough'); +insert into course_arrange_teacher values(3, 2, 5, 'gustaaf deloor', '29', 'bolton county borough'); +insert into course_arrange_teacher values(4, 6, 7, 'anne walker', '41', 'little lever urban district'); +insert into course_arrange_teacher values(5, 6, 1, 'anne walker', '41', 'little lever urban district'); +insert into course_arrange_teacher values(10, 7, 4, 'lucy wong', '39', 'turton urban district'); +insert into course_arrange_teacher values('None', 1, 'None', 'joseph huts', '32', 'blackrod urban district'); +insert into course_arrange_teacher values('None', 4, 'None', 'john deloor', '33', 'horwich urban district'); + diff --git a/all/databases/course_teach_total_0/course_teach_total_0.sqlite b/all/databases/course_teach_total_0/course_teach_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..dd37ee094768a16066c105e19fde5ad50634ab64 Binary files /dev/null and b/all/databases/course_teach_total_0/course_teach_total_0.sqlite differ diff --git a/all/databases/cre_Doc_Control_Systems/cre_Doc_Control_Systems.sql b/all/databases/cre_Doc_Control_Systems/cre_Doc_Control_Systems.sql new file mode 100644 index 0000000000000000000000000000000000000000..26d7176721fdbdee55ee34c2747a9578eef00a84 --- /dev/null +++ b/all/databases/cre_Doc_Control_Systems/cre_Doc_Control_Systems.sql @@ -0,0 +1,168 @@ +CREATE TABLE "ref_document_types" ( +"document_type_code" text, +"document_type_description" text +); + +INSERT INTO ref_document_types VALUES ("cd", "b"); +INSERT INTO ref_document_types VALUES ("hard drive", "u"); +INSERT INTO ref_document_types VALUES ("paper", "f"); + +CREATE TABLE "roles" ( +"role_code" text, +"role_description" text +); + +INSERT INTO roles VALUES ("ed", "editor"); +INSERT INTO roles VALUES ("mg", "photo"); +INSERT INTO roles VALUES ("pr", "manager"); +INSERT INTO roles VALUES ("pt", "proof manager"); + +CREATE TABLE "addresses" ( +"address_id" integer, +"address_details" text +); + +INSERT INTO addresses VALUES (0, "it"); +INSERT INTO addresses VALUES (1, "mx"); +INSERT INTO addresses VALUES (2, "de"); +INSERT INTO addresses VALUES (3, "es"); +INSERT INTO addresses VALUES (4, "es"); +INSERT INTO addresses VALUES (5, "ie"); +INSERT INTO addresses VALUES (6, "us"); +INSERT INTO addresses VALUES (7, "pt"); +INSERT INTO addresses VALUES (8, "ie"); +INSERT INTO addresses VALUES (9, "mx"); + +CREATE TABLE "ref_document_status" ( +"document_status_code" text, +"document_status_description" text +); + +INSERT INTO ref_document_status VALUES ("done", "currently working on"); +INSERT INTO ref_document_status VALUES ("overdue", "mailed"); +INSERT INTO ref_document_status VALUES ("working", "mailed late"); + +CREATE TABLE "ref_shipping_agents" ( +"shipping_agent_code" text, +"shipping_agent_name" text, +"shipping_agent_description" text +); + +INSERT INTO ref_shipping_agents VALUES ("al", "ups", "g"); +INSERT INTO ref_shipping_agents VALUES ("fe", "usps", "q"); +INSERT INTO ref_shipping_agents VALUES ("sh", "airline", "w"); +INSERT INTO ref_shipping_agents VALUES ("up", "fedex", "k"); +INSERT INTO ref_shipping_agents VALUES ("us", "ship", "t"); + +CREATE TABLE "documents" ( +"document_id" integer, +"document_status_code" text, +"document_type_code" text, +"shipping_agent_code" text, +"receipt_date" text, +"receipt_number" text, +"other_details" text +); + +INSERT INTO documents VALUES (1, "working", "cd", "up", "2008-04-21 20:42:25", "19", "z"); +INSERT INTO documents VALUES (2, "done", "paper", "us", "1974-05-08 00:00:46", "34", "h"); +INSERT INTO documents VALUES (3, "done", "paper", "up", "2014-12-25 17:22:44", "93", "h"); +INSERT INTO documents VALUES (4, "done", "paper", "us", "1973-11-05 21:48:53", "80", "q"); +INSERT INTO documents VALUES (7, "working", "cd", "sh", "1982-09-27 14:52:15", "61", "w"); +INSERT INTO documents VALUES (10, "overdue", "paper", "up", "1976-09-15 19:24:17", "8", "m"); +INSERT INTO documents VALUES (12, "overdue", "hard drive", "us", "1996-05-31 06:51:58", "69", "n"); +INSERT INTO documents VALUES (13, "working", "cd", "up", "2015-04-03 09:36:19", "79", "y"); +INSERT INTO documents VALUES (14, "working", "cd", "fe", "2017-07-02 17:39:09", "117", "u"); +INSERT INTO documents VALUES (15, "overdue", "cd", "up", "1986-12-14 14:18:59", "37", "r"); +INSERT INTO documents VALUES (17, "done", "paper", "fe", "1983-09-26 09:32:56", "55", "p"); +INSERT INTO documents VALUES (20, "working", "paper", "up", "1996-07-27 03:30:40", "189", "x"); +INSERT INTO documents VALUES (23, "working", "hard drive", "fe", "1999-04-17 14:19:32", "124", "b"); +INSERT INTO documents VALUES (24, "working", "hard drive", "fe", "2005-09-30 00:10:02", "114", "j"); +INSERT INTO documents VALUES (25, "overdue", "hard drive", "al", "1985-11-05 17:59:34", "83", "u"); + +CREATE TABLE "employees" ( +"employee_id" integer, +"role_code" text, +"employee_name" text, +"other_details" text +); + +INSERT INTO employees VALUES (1, "ed", "koby", "h"); +INSERT INTO employees VALUES (2, "ed", "kenyon", "f"); +INSERT INTO employees VALUES (3, "pr", "haley", "b"); +INSERT INTO employees VALUES (5, "pt", "clemens", "b"); +INSERT INTO employees VALUES (7, "pt", "jordyn", "v"); +INSERT INTO employees VALUES (8, "mg", "erling", "u"); + +CREATE TABLE "document_drafts" ( +"document_id" integer, +"draft_number" integer, +"draft_details" text +); + +INSERT INTO document_drafts VALUES (1, 0, "e"); +INSERT INTO document_drafts VALUES (1, 2, "k"); +INSERT INTO document_drafts VALUES (2, 1, "v"); +INSERT INTO document_drafts VALUES (2, 8, "v"); +INSERT INTO document_drafts VALUES (4, 9, "r"); +INSERT INTO document_drafts VALUES (7, 10, "m"); +INSERT INTO document_drafts VALUES (10, 20, "k"); +INSERT INTO document_drafts VALUES (12, 11, "b"); +INSERT INTO document_drafts VALUES (12, 12, "r"); +INSERT INTO document_drafts VALUES (13, 4, "w"); +INSERT INTO document_drafts VALUES (13, 16, "p"); +INSERT INTO document_drafts VALUES (14, 14, "x"); +INSERT INTO document_drafts VALUES (17, 19, "a"); +INSERT INTO document_drafts VALUES (20, 17, "l"); +INSERT INTO document_drafts VALUES (23, 9, "r"); + +CREATE TABLE "draft_copies" ( +"document_id" integer, +"draft_number" integer, +"copy_number" integer +); + +INSERT INTO draft_copies VALUES (2, 8, 5); +INSERT INTO draft_copies VALUES (4, 9, 6); +INSERT INTO draft_copies VALUES (23, 9, 15); +INSERT INTO draft_copies VALUES (10, 20, 10); +INSERT INTO draft_copies VALUES (2, 1, 4); +INSERT INTO draft_copies VALUES (1, 2, 5); +INSERT INTO draft_copies VALUES (20, 17, 15); +INSERT INTO draft_copies VALUES (12, 12, 10); + +CREATE TABLE "circulation_history" ( +"document_id" integer, +"draft_number" integer, +"copy_number" integer, +"employee_id" integer +); + +INSERT INTO circulation_history VALUES (20, 17, 15, 8); +INSERT INTO circulation_history VALUES (1, 2, 5, 1); +INSERT INTO circulation_history VALUES (2, 1, 4, 2); +INSERT INTO circulation_history VALUES (10, 20, 10, 2); + +CREATE TABLE "documents_mailed" ( +"document_id" integer, +"mailed_to_address_id" integer, +"mailing_date" text +); + +INSERT INTO documents_mailed VALUES (2, 8, "1977-04-01 17:03:50"); +INSERT INTO documents_mailed VALUES (4, 3, "1992-11-07 15:03:41"); +INSERT INTO documents_mailed VALUES (4, 9, "1973-02-21 10:17:01"); +INSERT INTO documents_mailed VALUES (7, 5, "1979-09-21 10:30:52"); +INSERT INTO documents_mailed VALUES (10, 3, "1993-05-24 22:13:48"); +INSERT INTO documents_mailed VALUES (12, 0, "1999-05-22 23:21:07"); +INSERT INTO documents_mailed VALUES (12, 7, "2007-01-01 22:32:11"); +INSERT INTO documents_mailed VALUES (12, 8, "2007-03-20 05:22:01"); +INSERT INTO documents_mailed VALUES (13, 4, "1991-05-27 14:17:37"); +INSERT INTO documents_mailed VALUES (14, 5, "1986-05-16 06:25:33"); +INSERT INTO documents_mailed VALUES (20, 2, "2010-11-04 04:00:16"); +INSERT INTO documents_mailed VALUES (20, 7, "1982-01-14 05:50:54"); +INSERT INTO documents_mailed VALUES (23, 8, "1971-11-03 12:32:14"); +INSERT INTO documents_mailed VALUES (24, 0, "2013-01-27 03:29:31"); + + +COMMIT; diff --git a/all/databases/cre_Doc_Control_Systems/cre_Doc_Control_Systems.sqlite b/all/databases/cre_Doc_Control_Systems/cre_Doc_Control_Systems.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..a81b404e1169c1fd586dd3520439a08e46a7fff2 Binary files /dev/null and b/all/databases/cre_Doc_Control_Systems/cre_Doc_Control_Systems.sqlite differ diff --git a/all/databases/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sql b/all/databases/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sql new file mode 100644 index 0000000000000000000000000000000000000000..2a36912f74f22724651066c278498c5101f15b8e --- /dev/null +++ b/all/databases/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sql @@ -0,0 +1,90 @@ +CREATE TABLE "ref_template_types" ( +"template_type_code" text, +"template_type_description" text +); + +INSERT INTO ref_template_types VALUES ("ad", "presentation"); +INSERT INTO ref_template_types VALUES ("bk", "cv"); +INSERT INTO ref_template_types VALUES ("cv", "advertisement"); +INSERT INTO ref_template_types VALUES ("pp", "paper"); +INSERT INTO ref_template_types VALUES ("ppt", "book"); + +CREATE TABLE "templates" ( +"template_id" integer, +"version_number" integer, +"template_type_code" text, +"date_effective_from" text, +"date_effective_to" text, +"template_details" text +); + +INSERT INTO templates VALUES (0, 5, "pp", "2005-11-12 07:09:48", "2008-01-05 14:19:28", ""); +INSERT INTO templates VALUES (1, 9, "pp", "2010-09-24 01:15:11", "1999-07-08 03:31:04", ""); +INSERT INTO templates VALUES (4, 4, "bk", "2002-03-02 14:39:49", "2001-04-18 09:29:52", ""); +INSERT INTO templates VALUES (6, 2, "ppt", "1975-05-20 22:51:19", "1992-05-02 20:06:11", ""); +INSERT INTO templates VALUES (7, 8, "ppt", "1993-10-07 02:33:04", "1975-07-16 04:52:10", ""); +INSERT INTO templates VALUES (8, 3, "bk", "1983-07-16 21:16:16", "1976-10-28 10:08:50", ""); +INSERT INTO templates VALUES (9, 2, "bk", "1997-04-17 08:29:44", "1994-12-07 13:26:23", ""); +INSERT INTO templates VALUES (10, 1, "ppt", "2003-06-05 04:03:45", "2007-06-06 06:18:53", ""); +INSERT INTO templates VALUES (11, 6, "bk", "1996-02-04 11:27:24", "1995-09-19 22:27:48", ""); +INSERT INTO templates VALUES (14, 7, "ad", "1975-10-20 02:28:58", "1979-11-04 08:58:39", ""); +INSERT INTO templates VALUES (15, 9, "cv", "1986-12-09 14:51:36", "1993-03-24 14:30:23", ""); +INSERT INTO templates VALUES (16, 5, "cv", "2012-04-05 07:11:42", "1980-05-07 12:15:47", ""); +INSERT INTO templates VALUES (18, 5, "pp", "1984-08-07 13:36:26", "1998-05-12 12:51:29", ""); +INSERT INTO templates VALUES (19, 7, "ad", "1999-06-21 11:10:30", "1974-09-14 06:34:39", ""); +INSERT INTO templates VALUES (20, 6, "bk", "1986-11-14 12:20:18", "2008-08-08 18:36:43", ""); +INSERT INTO templates VALUES (21, 9, "ad", "2002-08-25 13:26:23", "2015-09-06 01:08:44", ""); +INSERT INTO templates VALUES (22, 0, "pp", "2005-02-20 00:31:34", "1989-11-24 19:06:06", ""); +INSERT INTO templates VALUES (23, 2, "bk", "1979-12-24 10:28:16", "2000-10-22 11:57:12", ""); +INSERT INTO templates VALUES (24, 8, "pp", "2008-08-01 13:57:26", "1973-01-12 14:13:34", ""); +INSERT INTO templates VALUES (25, 5, "pp", "1979-10-20 21:23:20", "2006-02-06 23:52:04", ""); + +CREATE TABLE "documents" ( +"document_id" integer, +"template_id" integer, +"document_name" text, +"document_description" text, +"other_details" null +); + +INSERT INTO documents VALUES (0, 7, "introduction of os", "n", "NULL"); +INSERT INTO documents VALUES (1, 25, "understanding db", "y", "NULL"); +INSERT INTO documents VALUES (3, 6, "summer show", "u", "NULL"); +INSERT INTO documents VALUES (76, 20, "robbin cv", "y", "NULL"); +INSERT INTO documents VALUES (80, 14, "welcome to ny", "h", "NULL"); +INSERT INTO documents VALUES (82, 11, "data base", "w", "NULL"); +INSERT INTO documents VALUES (2394, 10, "customer reviews", "y", "NULL"); +INSERT INTO documents VALUES (3830, 14, "do not panic", "k", "NULL"); +INSERT INTO documents VALUES (33930, 1, "how google people work", "z", "NULL"); +INSERT INTO documents VALUES (50123, 22, "learning french", "r", "NULL"); +INSERT INTO documents VALUES (651512, 21, "how to write a cv", "f", "NULL"); +INSERT INTO documents VALUES (801801, 4, "how to read a book", "w", "NULL"); +INSERT INTO documents VALUES (3540024, 8, "palm reading", "y", "NULL"); +INSERT INTO documents VALUES (16514113, 25, "a history of arts", "h", "NULL"); +INSERT INTO documents VALUES (385906526, 11, "about korea", "b", "NULL"); + +CREATE TABLE "paragraphs" ( +"paragraph_id" integer, +"document_id" integer, +"paragraph_text" text, +"other_details" null +); + +INSERT INTO paragraphs VALUES (7, 2394, "korea", "NULL"); +INSERT INTO paragraphs VALUES (9, 3, "somalia", "NULL"); +INSERT INTO paragraphs VALUES (65, 50123, "palestinian territory", "NULL"); +INSERT INTO paragraphs VALUES (241, 651512, "jersey", "NULL"); +INSERT INTO paragraphs VALUES (3708, 33930, "uk", "NULL"); +INSERT INTO paragraphs VALUES (9946, 385906526, "fiji", "NULL"); +INSERT INTO paragraphs VALUES (16615, 80, "japan", "NULL"); +INSERT INTO paragraphs VALUES (1104059, 3830, "senegal", "NULL"); +INSERT INTO paragraphs VALUES (243399026, 651512, "indonesia", "NULL"); +INSERT INTO paragraphs VALUES (280120913, 2394, "ukraine", "NULL"); +INSERT INTO paragraphs VALUES (510442723, 2394, "korea", "NULL"); +INSERT INTO paragraphs VALUES (571212310, 16514113, "brazil", "NULL"); +INSERT INTO paragraphs VALUES (608931827, 80, "micronesia", "NULL"); +INSERT INTO paragraphs VALUES (765713812, 16514113, "ireland", "NULL"); +INSERT INTO paragraphs VALUES (946335436, 3540024, "papua new guinea", "NULL"); + + +COMMIT; diff --git a/all/databases/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sqlite b/all/databases/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..3017f20ab375795be9cc1ea5a35ea6b0dd300fc4 Binary files /dev/null and b/all/databases/cre_Doc_Template_Mgt/cre_Doc_Template_Mgt.sqlite differ diff --git a/all/databases/cre_Theme_park/cre_Theme_park.sql b/all/databases/cre_Theme_park/cre_Theme_park.sql new file mode 100644 index 0000000000000000000000000000000000000000..e4fde48375a3b0a668398eb16946dca48ab29883 --- /dev/null +++ b/all/databases/cre_Theme_park/cre_Theme_park.sql @@ -0,0 +1,290 @@ +CREATE TABLE "ref_hotel_star_ratings" ( +"star_rating_code" text, +"star_rating_description" text +); + +INSERT INTO ref_hotel_star_ratings VALUES ("1", "star"); +INSERT INTO ref_hotel_star_ratings VALUES ("2", "star"); +INSERT INTO ref_hotel_star_ratings VALUES ("3", "star"); +INSERT INTO ref_hotel_star_ratings VALUES ("4", "star"); +INSERT INTO ref_hotel_star_ratings VALUES ("5", "star"); + +CREATE TABLE "locations" ( +"location_id" integer, +"location_name" text, +"address" text, +"other_details" null +); + +INSERT INTO locations VALUES (333, "astro orbiter", "660 shea crescent", "NULL"); +INSERT INTO locations VALUES (368, "african animals", "254 ottilie junction", "NULL"); +INSERT INTO locations VALUES (417, "american adventure", "53815 sawayn tunnel apt. 297", "NULL"); +INSERT INTO locations VALUES (579, "the barnstormer", "3374 sarina manor", "NULL"); +INSERT INTO locations VALUES (603, "african adventure", "88271 barrows union suite 203", "NULL"); +INSERT INTO locations VALUES (650, "uk gallery", "4411 sabrina radial suite 582", "NULL"); +INSERT INTO locations VALUES (655, "the boneyard", "0692 georgiana pass", "NULL"); +INSERT INTO locations VALUES (661, "shark world", "2485 mueller squares suite 537", "NULL"); +INSERT INTO locations VALUES (740, "space spin", "5536 betsy street apt. 646", "NULL"); +INSERT INTO locations VALUES (759, "butterflies", "959 feest glen suite 523", "NULL"); +INSERT INTO locations VALUES (858, "soak station", "4908 reinger vista", "NULL"); +INSERT INTO locations VALUES (861, "castle", "14034 kohler drive", "NULL"); +INSERT INTO locations VALUES (867, "coral reefs", "4510 schuster stream apt. 613", "NULL"); +INSERT INTO locations VALUES (868, "film festival", "770 edd lane apt. 098", "NULL"); +INSERT INTO locations VALUES (885, "fossil fun games", "101 paucek crescent", "NULL"); + +CREATE TABLE "ref_attraction_types" ( +"attraction_type_code" text, +"attraction_type_description" text +); + +INSERT INTO ref_attraction_types VALUES ("2", "park"); +INSERT INTO ref_attraction_types VALUES ("3", "garden"); +INSERT INTO ref_attraction_types VALUES ("5", "gallery"); +INSERT INTO ref_attraction_types VALUES ("6", "adventure"); +INSERT INTO ref_attraction_types VALUES ("9", "museum"); + +CREATE TABLE "visitors" ( +"tourist_id" integer, +"tourist_details" text +); + +INSERT INTO visitors VALUES (164, "toney"); +INSERT INTO visitors VALUES (189, "graciela"); +INSERT INTO visitors VALUES (204, "vincent"); +INSERT INTO visitors VALUES (211, "vivian"); +INSERT INTO visitors VALUES (241, "nettie"); +INSERT INTO visitors VALUES (295, "laurence"); +INSERT INTO visitors VALUES (359, "newell"); +INSERT INTO visitors VALUES (377, "marisol"); +INSERT INTO visitors VALUES (399, "jarrell"); +INSERT INTO visitors VALUES (439, "edna"); +INSERT INTO visitors VALUES (500, "maud"); +INSERT INTO visitors VALUES (513, "alison"); +INSERT INTO visitors VALUES (541, "rosalind"); +INSERT INTO visitors VALUES (545, "tevin"); +INSERT INTO visitors VALUES (578, "aleen"); +INSERT INTO visitors VALUES (610, "marcelle"); +INSERT INTO visitors VALUES (652, "lizzie"); +INSERT INTO visitors VALUES (779, "wayne"); +INSERT INTO visitors VALUES (841, "teresa"); +INSERT INTO visitors VALUES (888, "elnora"); + +CREATE TABLE "features" ( +"feature_id" integer, +"feature_details" text +); + +INSERT INTO features VALUES (523, "cafe"); +INSERT INTO features VALUES (528, "park"); +INSERT INTO features VALUES (543, "garden"); +INSERT INTO features VALUES (681, "shopping"); +INSERT INTO features VALUES (955, "parking"); + +CREATE TABLE "hotels" ( +"hotel_id" integer, +"star_rating_code" text, +"pets_allowed_yn" text, +"price_range" real, +"other_hotel_details" null +); + +INSERT INTO hotels VALUES (123, "5", "1", 2914989.571, "NULL"); +INSERT INTO hotels VALUES (144, "4", "", "", "NULL"); +INSERT INTO hotels VALUES (172, "5", "", 17012.682586009, "NULL"); +INSERT INTO hotels VALUES (222, "5", "1", "", "NULL"); +INSERT INTO hotels VALUES (239, "3", "1", "", "NULL"); +INSERT INTO hotels VALUES (264, "1", "1", 48525.4530675, "NULL"); +INSERT INTO hotels VALUES (314, "5", "1", 766712918.96763, "NULL"); +INSERT INTO hotels VALUES (331, "1", "1", "", "NULL"); +INSERT INTO hotels VALUES (350, "1", "", "", "NULL"); +INSERT INTO hotels VALUES (373, "5", "1", 250548014.90329, "NULL"); +INSERT INTO hotels VALUES (376, "2", "", "", "NULL"); +INSERT INTO hotels VALUES (379, "4", "1", 38014975.47848, "NULL"); +INSERT INTO hotels VALUES (420, "5", "1", 9393.86291219, "NULL"); +INSERT INTO hotels VALUES (421, "3", "", 5526556.6412, "NULL"); +INSERT INTO hotels VALUES (426, "5", "", 245.067720121, "NULL"); +INSERT INTO hotels VALUES (431, "2", "1", 43.729525, "NULL"); +INSERT INTO hotels VALUES (442, "2", "1", 289775.7331715, "NULL"); +INSERT INTO hotels VALUES (473, "1", "1", 2374.7971074, "NULL"); +INSERT INTO hotels VALUES (514, "5", "", 1381255.81865, "NULL"); +INSERT INTO hotels VALUES (555, "5", "1", 5390.432113, "NULL"); + +CREATE TABLE "tourist_attractions" ( +"tourist_attraction_id" integer, +"attraction_type_code" text, +"location_id" integer, +"how_to_get_there" text, +"name" text, +"description" null, +"opening_hours" null, +"other_details" null +); + +INSERT INTO tourist_attractions VALUES (2113, "2", 579, "bus", "art museum", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (2701, "6", 417, "walk", "uk gallery", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (5076, "2", 868, "shuttle", "flying elephant", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (5265, "5", 603, "bus", "film festival", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (6476, "3", 417, "shuttle", "us museum", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (6523, "9", 858, "walk", "fun games", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (6653, "9", 655, "walk", "history gallery", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (6852, "5", 858, "walk", "exploration trial", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (7067, "5", 417, "bus", "haunted mansion", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (8429, "9", 867, "walk", "presidents hall", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (8449, "2", 579, "bus", "impressions de france", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (8698, "5", 661, "bus", "jungle cruise", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (9360, "5", 868, "shuttle", "fun shops", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (9561, "2", 759, "bus", "cafe", "NULL", "NULL", "NULL"); +INSERT INTO tourist_attractions VALUES (9919, "6", 579, "shuttle", "parking", "NULL", "NULL", "NULL"); + +CREATE TABLE "street_markets" ( +"market_id" integer, +"market_details" text +); + +INSERT INTO street_markets VALUES (6852, "broadway"); +INSERT INTO street_markets VALUES (7067, "fish farm market"); + +CREATE TABLE "shops" ( +"shop_id" integer, +"shop_details" text +); + +INSERT INTO shops VALUES (8429, "soup"); +INSERT INTO shops VALUES (8449, "coffee"); +INSERT INTO shops VALUES (8698, "flower"); +INSERT INTO shops VALUES (9360, "see food"); + +CREATE TABLE "museums" ( +"museum_id" integer, +"museum_details" text +); + +INSERT INTO museums VALUES (2113, "yale center for british art"); +INSERT INTO museums VALUES (2701, "the metropolitan museum of art"); +INSERT INTO museums VALUES (5076, "moma"); + +CREATE TABLE "royal_family" ( +"royal_family_id" integer, +"royal_family_details" null +); + +INSERT INTO royal_family VALUES (9561, "NULL"); +INSERT INTO royal_family VALUES (9919, "NULL"); + +CREATE TABLE "theme_parks" ( +"theme_park_id" integer, +"theme_park_details" text +); + +INSERT INTO theme_parks VALUES (5265, "disney"); +INSERT INTO theme_parks VALUES (6476, "sea world"); +INSERT INTO theme_parks VALUES (6523, "universal studios"); + +CREATE TABLE "visits" ( +"visit_id" integer, +"tourist_attraction_id" integer, +"tourist_id" integer, +"visit_date" text, +"visit_details" text +); + +INSERT INTO visits VALUES (183, 6653, 377, "2004-08-21 03:06:14", ""); +INSERT INTO visits VALUES (268, 5076, 204, "2013-08-06 05:35:51", ""); +INSERT INTO visits VALUES (273, 9360, 211, "2013-10-27 09:56:08", ""); +INSERT INTO visits VALUES (302, 6476, 377, "1990-08-15 14:24:10", ""); +INSERT INTO visits VALUES (356, 6476, 439, "1980-11-26 02:08:00", ""); +INSERT INTO visits VALUES (381, 6523, 211, "2017-03-19 08:48:19", ""); +INSERT INTO visits VALUES (416, 6476, 841, "2008-11-09 01:28:01", ""); +INSERT INTO visits VALUES (479, 6852, 439, "1989-08-24 20:26:37", ""); +INSERT INTO visits VALUES (563, 6852, 610, "1993-02-01 15:27:20", ""); +INSERT INTO visits VALUES (612, 9919, 204, "2007-09-17 10:12:45", ""); +INSERT INTO visits VALUES (729, 6476, 513, "1998-05-12 00:50:20", ""); +INSERT INTO visits VALUES (776, 8698, 513, "2010-10-04 01:34:12", ""); +INSERT INTO visits VALUES (781, 6852, 779, "2018-01-09 20:39:52", ""); +INSERT INTO visits VALUES (866, 8429, 545, "1971-12-16 06:41:26", ""); +INSERT INTO visits VALUES (909, 8698, 779, "1998-12-10 02:46:43", ""); +INSERT INTO visits VALUES (937, 6523, 541, "1996-01-08 13:23:41", ""); +INSERT INTO visits VALUES (962, 9919, 610, "2007-09-03 04:30:01", ""); +INSERT INTO visits VALUES (968, 6852, 377, "1974-12-31 23:18:24", ""); +INSERT INTO visits VALUES (977, 8698, 500, "2001-11-13 10:08:28", ""); +INSERT INTO visits VALUES (999, 2701, 610, "1990-11-12 00:54:50", ""); + +CREATE TABLE "photos" ( +"photo_id" integer, +"tourist_attraction_id" integer, +"name" text, +"description" null, +"filename" text, +"other_details" null +); + +INSERT INTO photos VALUES (211, 8449, "game1", "NULL", "702", "NULL"); +INSERT INTO photos VALUES (280, 7067, "game2", "NULL", "762", "NULL"); +INSERT INTO photos VALUES (303, 5076, "game3", "NULL", "392", "NULL"); +INSERT INTO photos VALUES (327, 9919, "fun1", "NULL", "820", "NULL"); +INSERT INTO photos VALUES (332, 5076, "fun2", "NULL", "060", "NULL"); +INSERT INTO photos VALUES (428, 6523, "fun3", "NULL", "148", "NULL"); +INSERT INTO photos VALUES (435, 8429, "fun4", "NULL", "453", "NULL"); +INSERT INTO photos VALUES (437, 2701, "fun5", "NULL", "128", "NULL"); +INSERT INTO photos VALUES (525, 5265, "park1", "NULL", "538", "NULL"); +INSERT INTO photos VALUES (534, 6852, "park2", "NULL", "325", "NULL"); +INSERT INTO photos VALUES (537, 6653, "park3", "NULL", "695", "NULL"); +INSERT INTO photos VALUES (550, 5076, "din1", "NULL", "259", "NULL"); +INSERT INTO photos VALUES (558, 8698, "din2", "NULL", "863", "NULL"); +INSERT INTO photos VALUES (571, 6653, "din3", "NULL", "864", "NULL"); +INSERT INTO photos VALUES (596, 9561, "din4", "NULL", "141", "NULL"); + +CREATE TABLE "staff" ( +"staff_id" integer, +"tourist_attraction_id" integer, +"name" text, +"other_details" null +); + +INSERT INTO staff VALUES (170, 6476, "whitney", "NULL"); +INSERT INTO staff VALUES (219, 6476, "kaela", "NULL"); +INSERT INTO staff VALUES (237, 7067, "eunice", "NULL"); +INSERT INTO staff VALUES (249, 5265, "kiarra", "NULL"); +INSERT INTO staff VALUES (310, 9561, "phoebe", "NULL"); +INSERT INTO staff VALUES (433, 9360, "vickie", "NULL"); +INSERT INTO staff VALUES (463, 6653, "jannie", "NULL"); +INSERT INTO staff VALUES (470, 6523, "lenore", "NULL"); +INSERT INTO staff VALUES (487, 6852, "asia", "NULL"); +INSERT INTO staff VALUES (491, 6852, "janet", "NULL"); +INSERT INTO staff VALUES (532, 6852, "elouise", "NULL"); +INSERT INTO staff VALUES (591, 9360, "gina", "NULL"); +INSERT INTO staff VALUES (595, 8698, "beth", "NULL"); +INSERT INTO staff VALUES (596, 2701, "ruthie", "NULL"); +INSERT INTO staff VALUES (604, 6852, "aurore", "NULL"); +INSERT INTO staff VALUES (619, 2113, "cortney", "NULL"); +INSERT INTO staff VALUES (643, 6523, "astrid", "NULL"); +INSERT INTO staff VALUES (667, 9561, "shemar", "NULL"); +INSERT INTO staff VALUES (860, 6476, "trinity", "NULL"); +INSERT INTO staff VALUES (952, 5265, "carmella", "NULL"); + +CREATE TABLE "tourist_attraction_features" ( +"tourist_attraction_id" integer, +"feature_id" integer +); + +INSERT INTO tourist_attraction_features VALUES (5076, 528); +INSERT INTO tourist_attraction_features VALUES (5076, 681); +INSERT INTO tourist_attraction_features VALUES (5265, 523); +INSERT INTO tourist_attraction_features VALUES (5265, 955); +INSERT INTO tourist_attraction_features VALUES (6476, 543); +INSERT INTO tourist_attraction_features VALUES (6476, 681); +INSERT INTO tourist_attraction_features VALUES (6476, 955); +INSERT INTO tourist_attraction_features VALUES (6523, 528); +INSERT INTO tourist_attraction_features VALUES (6852, 528); +INSERT INTO tourist_attraction_features VALUES (6852, 955); +INSERT INTO tourist_attraction_features VALUES (7067, 543); +INSERT INTO tourist_attraction_features VALUES (8429, 681); +INSERT INTO tourist_attraction_features VALUES (8449, 528); +INSERT INTO tourist_attraction_features VALUES (8698, 528); +INSERT INTO tourist_attraction_features VALUES (8698, 543); +INSERT INTO tourist_attraction_features VALUES (8698, 681); +INSERT INTO tourist_attraction_features VALUES (9561, 681); +INSERT INTO tourist_attraction_features VALUES (9919, 681); + + +COMMIT; diff --git a/all/databases/cre_Theme_park/cre_Theme_park.sqlite b/all/databases/cre_Theme_park/cre_Theme_park.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..ab8c95026ab90a4ac7757ecd885a6b205b26c6ec Binary files /dev/null and b/all/databases/cre_Theme_park/cre_Theme_park.sqlite differ diff --git a/all/databases/culture_company/culture_company.sql b/all/databases/culture_company/culture_company.sql new file mode 100644 index 0000000000000000000000000000000000000000..54c4c9ccef8782d878a6a5b40b178d2e413a5734 --- /dev/null +++ b/all/databases/culture_company/culture_company.sql @@ -0,0 +1,61 @@ +CREATE TABLE "book_club" ( +"book_club_id" integer, +"year" integer, +"author_or_editor" text, +"book_title" text, +"publisher" text, +"category" text, +"result" text +); + +INSERT INTO book_club VALUES (1, 1989, "michael nava", "goldenboy", "alyson", "gay m/sf", "won [a ]"); +INSERT INTO book_club VALUES (2, 1989, "donald ward", "death takes the stage", "st. martins press", "gay m/sf", "nom"); +INSERT INTO book_club VALUES (3, 1989, "michael bishop", "unicorn mountain", "william morrow", "gay m/sf", "nom"); +INSERT INTO book_club VALUES (4, 1989, "joseph hansen", "obedience", "mysterious press", "gay m/sf", "nom"); +INSERT INTO book_club VALUES (5, 1989, "george baxt", "whoӳ next", "international polygonics", "gay m/sf", "nom"); +INSERT INTO book_club VALUES (6, 1989, "antoinette azolakov", "skiptrace", "banned books", "lesb. m/sf", "won"); +INSERT INTO book_club VALUES (7, 1989, "claire mcnab", "lessons in murder", "naiad press", "lesb. m/sf", "nom"); +INSERT INTO book_club VALUES (8, 1989, "judy grahn", "mundaneӳ world", "crossing press", "lesb. m/sf", "nom"); +INSERT INTO book_club VALUES (9, 1989, "dolores klaich", "heavy gilt", "naiad press", "lesb. m/sf", "nom"); +INSERT INTO book_club VALUES (10, 1989, "sandy bayer", "the crystal curtain", "alyson", "lesb. m/sf", "nom"); +INSERT INTO book_club VALUES (11, 1990, "jeffrey n. mcmahan", "somewhere in the night", "alyson", "gay sf/f", "won [b ]"); +INSERT INTO book_club VALUES (12, 1990, "thom nickels", "walking water / after all this", "banned books", "gay sf/f", "nom"); + +CREATE TABLE "movie" ( +"movie_id" integer, +"title" text, +"year" integer, +"director" text, +"budget_million" real, +"gross_worldwide" integer +); + +INSERT INTO movie VALUES (1, "the boondock saints", 1999, "troy duffy", 6.0, 30471); +INSERT INTO movie VALUES (2, "the big kahuna", 1999, "john swanbeck", 7.0, 3728888); +INSERT INTO movie VALUES (3, "storm catcher", 1999, "anthony hickox", 5.0, 40500); +INSERT INTO movie VALUES (4, "jill rips", 2000, "anthony hickox", 4.0, 456774); +INSERT INTO movie VALUES (5, "the whole nine yards", 2000, "jonathan lynn", 41.3, 106371651); +INSERT INTO movie VALUES (6, "battlefield earth", 2000, "roger christian", 44.0, 29725663); +INSERT INTO movie VALUES (7, "get carter", 2000, "stephen kay", 63.6, 19412993); +INSERT INTO movie VALUES (8, "the art of war", 2000, "christian duguay", 60.0, 40400425); +INSERT INTO movie VALUES (9, "agent red", 2000, "damian lee", 47.0, 543356); +INSERT INTO movie VALUES (10, "3000 miles to graceland", 2001, "demian lichtenstein", 62.0, 18720175); + +CREATE TABLE "culture_company" ( +"company_name" text, +"type" text, +"incorporated_in" text, +"group_equity_shareholding" real, +"book_club_id" text, +"movie_id" text +); + +INSERT INTO culture_company VALUES ("cathay pacific culture", "corporate", "china", 18.77, "1", "2"); +INSERT INTO culture_company VALUES ("cathay pacific culture services hk limited", "joint venture", "china", 49.0, "2", "3"); +INSERT INTO culture_company VALUES ("culture china", "joint venture", "hong kong", 60.0, "3", "4"); +INSERT INTO culture_company VALUES ("culture china cargo", "subsidiary", "hong kong", 100.0, "5", "7"); +INSERT INTO culture_company VALUES ("culture hong kong", "subsidiary", "hong kong", 100.0, "5", "5"); +INSERT INTO culture_company VALUES ("dragonair", "subsidiary", "hong kong", 100.0, "6", "6"); + + +COMMIT; diff --git a/all/databases/culture_company/culture_company.sqlite b/all/databases/culture_company/culture_company.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..5e3da7b928eb0fe4780f772966ba6f2d5bce46e3 Binary files /dev/null and b/all/databases/culture_company/culture_company.sqlite differ diff --git a/all/databases/customers_and_invoices/customers_and_invoices.sql b/all/databases/customers_and_invoices/customers_and_invoices.sql new file mode 100644 index 0000000000000000000000000000000000000000..cebd6f8b30a6eb54c003d1f96fdc624064a86952 --- /dev/null +++ b/all/databases/customers_and_invoices/customers_and_invoices.sql @@ -0,0 +1,218 @@ +CREATE TABLE "customers" ( +"customer_id" integer, +"customer_first_name" text, +"customer_middle_initial" text, +"customer_last_name" text, +"gender" text, +"email_address" text, +"login_name" text, +"login_password" text, +"phone_number" text, +"town_city" text, +"state_county_province" text, +"country" text +); + +INSERT INTO customers VALUES (1, "dee", "a", "larkin", "1", "thora.torphy@example.org", "xhartmann", "77789d292604ea04406f", "241.796.1219x37862", "north nellie", "westvirginia", "usa"); +INSERT INTO customers VALUES (2, "brennon", "h", "weimann", "0", "roosevelt.collier@example.org", "shayne.lesch", "ce97a3e4539347daab96", "943219-4234x415", "south isabell", "oklahoma", "usa"); +INSERT INTO customers VALUES (3, "joesph", "k", "schaefer", "0", "homenick.ambrose@example.net", "feeney.lauriane", "a6c7a7064c36b038d402", "488524-5345", "new nikolas", "arkansas", "usa"); +INSERT INTO customers VALUES (4, "zita", "l", "trantow", "0", "destinee06@example.com", "rubye.padberg", "eb32d2933362d38faff7", "193465-6674x4952", "ellaburgh", "colorado", "usa"); +INSERT INTO customers VALUES (5, "murl", "b", "shanahan", "1", "jovani64@example.com", "jankunding", "398c1603aec3e9de2684", "1-546-447-9843x13741", "north helmerbury", "idaho", "usa"); +INSERT INTO customers VALUES (6, "vesta", "e", "leuschke", "1", "philip94@example.org", "zdeckow", "bdbc3c18cf28303c4f6a", "+6907149212554", "north devonte", "mississippi", "usa"); +INSERT INTO customers VALUES (7, "dangelo", "m", "spinka", "1", "zullrich@example.net", "camilla.dubuque", "180a37476c537e78d3de", "1-904-787-7320", "west khaliltown", "kansas", "usa"); +INSERT INTO customers VALUES (8, "meaghan", "m", "keeling", "0", "pyundt@example.org", "lowe.wilber", "e67856613cd71f1b2884", "06015518212", "kenshire", "mississippi", "usa"); +INSERT INTO customers VALUES (9, "abbey", "b", "ruecker", "0", "anastacio45@example.org", "dubuque.gina", "d7629de5171fe29106c8", "1-344-593-4896x425", "bruenchester", "california", "usa"); +INSERT INTO customers VALUES (10, "devin", "v", "glover", "0", "udeckow@example.com", "ypowlowski", "604f9062a5a0de83ef9d", "197-955-3766", "lake eusebiomouth", "florida", "usa"); +INSERT INTO customers VALUES (11, "neoma", "g", "hauck", "1", "michel92@example.org", "ahmad.hagenes", "035f2ba1e2a675c4f426", "+9501523064649", "new rachellefort", "alabama", "usa"); +INSERT INTO customers VALUES (12, "jensen", "m", "muller", "0", "lew.nicolas@example.org", "pbecker", "5fe7c12dc3176ddf67c4", "650406-8761", "carleefort", "montana", "usa"); +INSERT INTO customers VALUES (13, "kieran", "a", "auer", "0", "nnolan@example.org", "sophia97", "d4ade599672bccdabeee", "157046-6255x98627", "lake freemanville", "kentucky", "usa"); +INSERT INTO customers VALUES (14, "percival", "b", "kessler", "1", "jacobi.shanon@example.org", "lucy.jast", "178613c20728eec256db", "791562-7792x45732", "port hollie", "louisiana", "usa"); +INSERT INTO customers VALUES (15, "ruby", "k", "boyle", "0", "gwolff@example.net", "dthiel", "eff2c0dbf972481ba23c", "1-546-302-5676", "east stephaniafort", "southdakota", "usa"); + +CREATE TABLE "orders" ( +"order_id" integer, +"customer_id" integer, +"date_order_placed" text, +"order_details" null +); + +INSERT INTO orders VALUES (1, 12, "2012-06-27 20:49:56", "NULL"); +INSERT INTO orders VALUES (2, 12, "2012-08-25 07:51:54", "NULL"); +INSERT INTO orders VALUES (3, 8, "2017-11-05 15:32:38", "NULL"); +INSERT INTO orders VALUES (4, 5, "2017-11-27 21:50:58", "NULL"); +INSERT INTO orders VALUES (5, 15, "2015-05-17 03:05:32", "NULL"); +INSERT INTO orders VALUES (6, 5, "2015-11-25 22:55:41", "NULL"); +INSERT INTO orders VALUES (7, 3, "2016-04-15 03:33:59", "NULL"); +INSERT INTO orders VALUES (8, 3, "2010-01-28 03:43:26", "NULL"); +INSERT INTO orders VALUES (9, 2, "2017-03-08 05:42:10", "NULL"); +INSERT INTO orders VALUES (10, 11, "2017-12-04 02:59:10", "NULL"); +INSERT INTO orders VALUES (11, 14, "2010-10-22 06:45:16", "NULL"); +INSERT INTO orders VALUES (12, 1, "2017-05-24 19:26:44", "NULL"); +INSERT INTO orders VALUES (13, 10, "2015-08-06 22:40:40", "NULL"); +INSERT INTO orders VALUES (14, 10, "2017-10-29 04:20:08", "NULL"); +INSERT INTO orders VALUES (15, 6, "2013-10-25 17:40:25", "NULL"); + +CREATE TABLE "invoices" ( +"invoice_number" integer, +"order_id" integer, +"invoice_date" text +); + +INSERT INTO invoices VALUES (1, 9, "2018-03-01 16:40:48"); +INSERT INTO invoices VALUES (2, 9, "2018-03-20 00:21:41"); +INSERT INTO invoices VALUES (3, 3, "2018-03-05 08:47:33"); +INSERT INTO invoices VALUES (4, 9, "2018-02-28 19:01:06"); +INSERT INTO invoices VALUES (5, 13, "2018-03-07 02:04:32"); +INSERT INTO invoices VALUES (6, 8, "2018-03-16 21:57:43"); +INSERT INTO invoices VALUES (7, 10, "2018-03-13 07:27:38"); +INSERT INTO invoices VALUES (8, 10, "2018-03-19 17:06:30"); +INSERT INTO invoices VALUES (9, 12, "2018-03-16 11:01:06"); +INSERT INTO invoices VALUES (10, 11, "2018-03-01 01:44:08"); +INSERT INTO invoices VALUES (11, 5, "2018-03-23 04:59:28"); +INSERT INTO invoices VALUES (12, 3, "2018-03-15 21:24:13"); +INSERT INTO invoices VALUES (13, 3, "2018-03-03 20:44:06"); +INSERT INTO invoices VALUES (14, 4, "2018-03-19 22:38:10"); +INSERT INTO invoices VALUES (15, 14, "2018-03-15 09:38:49"); + +CREATE TABLE "accounts" ( +"account_id" integer, +"customer_id" integer, +"date_account_opened" text, +"account_name" text, +"other_account_details" text +); + +INSERT INTO accounts VALUES (1, 8, "2016-07-30 22:22:24", "900", "regular"); +INSERT INTO accounts VALUES (2, 3, "2017-05-29 16:45:17", "520", "vip"); +INSERT INTO accounts VALUES (3, 8, "2012-05-04 18:50:32", "323", "regular"); +INSERT INTO accounts VALUES (4, 15, "2011-03-29 15:06:59", "390", "vip"); +INSERT INTO accounts VALUES (5, 15, "2014-08-11 18:15:14", "935", "regular"); +INSERT INTO accounts VALUES (6, 12, "2014-05-30 12:16:52", "371", "regular"); +INSERT INTO accounts VALUES (7, 13, "2015-11-03 08:04:15", "398", "vip"); +INSERT INTO accounts VALUES (8, 9, "2009-06-13 11:41:52", "710", "regular"); +INSERT INTO accounts VALUES (9, 8, "2010-10-22 13:33:45", "337", "regular"); +INSERT INTO accounts VALUES (10, 15, "2016-04-25 21:49:17", "429", "vip"); +INSERT INTO accounts VALUES (11, 13, "2012-07-09 23:40:15", "191", "vip"); +INSERT INTO accounts VALUES (12, 8, "2015-02-02 09:47:08", "601", "regular"); +INSERT INTO accounts VALUES (13, 13, "2010-06-16 09:35:00", "272", "regular"); +INSERT INTO accounts VALUES (14, 13, "2014-12-28 07:29:42", "861", "vip"); +INSERT INTO accounts VALUES (15, 6, "2008-05-04 22:15:56", "662", "vip"); + +CREATE TABLE "product_categories" ( +"production_type_code" text, +"product_type_description" text, +"vat_rating" real +); + +INSERT INTO product_categories VALUES ("books", "food", 15.84); +INSERT INTO product_categories VALUES ("dvds", "dvd products", 11.4); +INSERT INTO product_categories VALUES ("electronics", "books", 13.95); +INSERT INTO product_categories VALUES ("food", "electrical devices", 17.9); + +CREATE TABLE "products" ( +"product_id" integer, +"parent_product_id" integer, +"production_type_code" text, +"unit_price" real, +"product_name" text, +"product_color" text, +"product_size" text +); + +INSERT INTO products VALUES (1, 4, "food", 617.95, "coffee bean", "red", "medium"); +INSERT INTO products VALUES (2, 4, "books", 558.49, "learning french", "yellow", "medium"); +INSERT INTO products VALUES (3, 8, "electronics", 563.58, "fans", "black", "medium"); +INSERT INTO products VALUES (4, 8, "electronics", 985.78, "hard drive", "black", "small"); +INSERT INTO products VALUES (5, 7, "dvds", 682.06, "arts", "yellow", "small"); +INSERT INTO products VALUES (6, 7, "books", 469.71, "art history", "yellow", "small"); +INSERT INTO products VALUES (7, 5, "books", 409.83, "learning english", "red", "large"); +INSERT INTO products VALUES (8, 1, "books", 49.62, "menus", "black", "small"); +INSERT INTO products VALUES (9, 8, "food", 694.31, "beer menus", "black", "small"); +INSERT INTO products VALUES (10, 9, "electronics", 937.85, "tv", "red", "medium"); +INSERT INTO products VALUES (11, 8, "dvds", 52.88, "harry potter 1", "black", "small"); +INSERT INTO products VALUES (12, 1, "dvds", 729.09, "harry potter 2", "red", "medium"); +INSERT INTO products VALUES (13, 6, "food", 639.76, "chocolate", "yellow", "small"); +INSERT INTO products VALUES (14, 1, "dvds", 469.87, "harry potter 3", "yellow", "small"); +INSERT INTO products VALUES (15, 2, "dvds", 82.96, "harry potter 4", "yellow", "large"); + +CREATE TABLE "financial_transactions" ( +"transaction_id" integer, +"account_id" integer, +"invoice_number" integer, +"transaction_type" text, +"transaction_date" text, +"transaction_amount" real, +"transaction_comment" null, +"other_transaction_details" null +); + +INSERT INTO financial_transactions VALUES (1, 13, 12, "payment", "2018-03-15 21:13:57", 613.96, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (2, 9, 1, "payment", "2018-03-13 13:27:46", 368.46, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (3, 6, 1, "refund", "2018-03-03 01:50:25", 1598.25, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (4, 9, 12, "payment", "2018-03-10 13:46:48", 540.73, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (5, 9, 2, "payment", "2018-03-23 04:56:12", 1214.22, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (6, 12, 3, "refund", "2018-03-22 21:58:37", 1903.41, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (7, 13, 14, "payment", "2018-03-12 03:06:52", 1585.03, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (8, 14, 15, "payment", "2018-03-11 21:57:47", 1425.41, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (9, 8, 12, "payment", "2018-03-07 04:32:54", 1517.77, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (10, 6, 15, "payment", "2018-03-14 19:09:07", 1477.57, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (11, 6, 13, "refund", "2018-03-12 22:51:05", 1567.64, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (12, 9, 6, "refund", "2018-03-05 19:55:23", 1781.24, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (13, 13, 12, "refund", "2018-03-24 12:05:11", 899.87, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (14, 11, 5, "refund", "2018-03-13 03:51:59", 1462.62, "NULL", "NULL"); +INSERT INTO financial_transactions VALUES (15, 4, 14, "refund", "2018-02-27 14:58:30", 1979.66, "NULL", "NULL"); + +CREATE TABLE "order_items" ( +"order_item_id" integer, +"order_id" integer, +"product_id" integer, +"product_quantity" text, +"other_order_item_details" null +); + +INSERT INTO order_items VALUES (1, 4, 4, "6", "NULL"); +INSERT INTO order_items VALUES (2, 4, 10, "7", "NULL"); +INSERT INTO order_items VALUES (3, 15, 5, "4", "NULL"); +INSERT INTO order_items VALUES (4, 1, 3, "9", "NULL"); +INSERT INTO order_items VALUES (5, 2, 14, "3", "NULL"); +INSERT INTO order_items VALUES (6, 13, 12, "8", "NULL"); +INSERT INTO order_items VALUES (7, 1, 15, "3", "NULL"); +INSERT INTO order_items VALUES (8, 10, 4, "4", "NULL"); +INSERT INTO order_items VALUES (9, 14, 5, "1", "NULL"); +INSERT INTO order_items VALUES (10, 13, 9, "2", "NULL"); +INSERT INTO order_items VALUES (11, 15, 7, "5", "NULL"); +INSERT INTO order_items VALUES (12, 4, 14, "4", "NULL"); +INSERT INTO order_items VALUES (13, 12, 13, "1", "NULL"); +INSERT INTO order_items VALUES (14, 13, 14, "2", "NULL"); +INSERT INTO order_items VALUES (15, 13, 14, "6", "NULL"); + +CREATE TABLE "invoice_line_items" ( +"order_item_id" integer, +"invoice_number" integer, +"product_id" integer, +"product_title" text, +"product_quantity" text, +"product_price" real, +"derived_product_cost" real, +"derived_vat_payable" null, +"derived_total_cost" real +); + +INSERT INTO invoice_line_items VALUES (14, 9, 5, "prod_name", "4", 742.37, 191.11, "NULL", 69.82); +INSERT INTO invoice_line_items VALUES (3, 9, 15, "prod_name", "1", 814.87, 176.29, "NULL", 59.56); +INSERT INTO invoice_line_items VALUES (4, 10, 15, "prod_name", "8", 943.07, 73.14, "NULL", 59.93); +INSERT INTO invoice_line_items VALUES (6, 15, 14, "prod_name", "2", 749.6, 197.06, "NULL", 82.77); +INSERT INTO invoice_line_items VALUES (8, 11, 10, "prod_name", "2", 942.99, 88.43, "NULL", 86.56); +INSERT INTO invoice_line_items VALUES (9, 11, 9, "prod_name", "6", 486.69, 64.67, "NULL", 83.4); +INSERT INTO invoice_line_items VALUES (8, 14, 3, "prod_name", "3", 995.34, 28.18, "NULL", 58.24); +INSERT INTO invoice_line_items VALUES (11, 1, 6, "prod_name", "9", 429.05, 254.08, "NULL", 79.48); +INSERT INTO invoice_line_items VALUES (15, 9, 3, "prod_name", "4", 727.41, 66, "NULL", 53.53); +INSERT INTO invoice_line_items VALUES (7, 9, 14, "prod_name", "9", 559.95, 89.16, "NULL", 45.66); +INSERT INTO invoice_line_items VALUES (5, 7, 8, "prod_name", "6", 787.61, 150.04, "NULL", 51.27); +INSERT INTO invoice_line_items VALUES (10, 10, 1, "prod_name", "9", 781.46, 256.84, "NULL", 71.22); +INSERT INTO invoice_line_items VALUES (10, 14, 11, "prod_name", "7", 884.4, 249.19, "NULL", 78.26); +INSERT INTO invoice_line_items VALUES (10, 5, 11, "prod_name", "5", 556.36, 295.26, "NULL", 61); +INSERT INTO invoice_line_items VALUES (8, 12, 6, "prod_name", "8", 597.28, 188.71, "NULL", 98.77); + + +COMMIT; diff --git a/all/databases/customers_and_invoices/customers_and_invoices.sqlite b/all/databases/customers_and_invoices/customers_and_invoices.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..ce2232261eb1c7bc36c821bfe330e0925750fe2b Binary files /dev/null and b/all/databases/customers_and_invoices/customers_and_invoices.sqlite differ diff --git a/all/databases/customers_and_invoices_minus_1_0/customers_and_invoices_minus_1_0.sql b/all/databases/customers_and_invoices_minus_1_0/customers_and_invoices_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..348c116abcd3fefabe2dcb8fc5899e315c4637b4 --- /dev/null +++ b/all/databases/customers_and_invoices_minus_1_0/customers_and_invoices_minus_1_0.sql @@ -0,0 +1,191 @@ +create table customers ( +customer_id integer, +customer_first_name text, +customer_middle_initial text, +customer_last_name text, +gender text, +email_address text, +login_name text, +login_password text, +phone_number text, +town_city text, +state_county_province text, +country text +); +insert into customers values(1, 'dee', 'a', 'larkin', 1, 'thora.torphy@example.org', 'xhartmann', '77789d292604ea04406f', '241.796.1219x37862', 'north nellie', 'westvirginia', 'usa'); +insert into customers values(2, 'brennon', 'h', 'weimann', 0, 'roosevelt.collier@example.org', 'shayne.lesch', 'ce97a3e4539347daab96', '943219-4234x415', 'south isabell', 'oklahoma', 'usa'); +insert into customers values(3, 'joesph', 'k', 'schaefer', 0, 'homenick.ambrose@example.net', 'feeney.lauriane', 'a6c7a7064c36b038d402', '488524-5345', 'new nikolas', 'arkansas', 'usa'); +insert into customers values(4, 'zita', 'l', 'trantow', 0, 'destinee06@example.com', 'rubye.padberg', 'eb32d2933362d38faff7', '193465-6674x4952', 'ellaburgh', 'colorado', 'usa'); +insert into customers values(5, 'murl', 'b', 'shanahan', 1, 'jovani64@example.com', 'jankunding', '398c1603aec3e9de2684', '1-546-447-9843x13741', 'north helmerbury', 'idaho', 'usa'); +insert into customers values(6, 'vesta', 'e', 'leuschke', 1, 'philip94@example.org', 'zdeckow', 'bdbc3c18cf28303c4f6a', '+6907149212554', 'north devonte', 'mississippi', 'usa'); +insert into customers values(7, 'dangelo', 'm', 'spinka', 1, 'zullrich@example.net', 'camilla.dubuque', '180a37476c537e78d3de', '1-904-787-7320', 'west khaliltown', 'kansas', 'usa'); +insert into customers values(8, 'meaghan', 'm', 'keeling', 0, 'pyundt@example.org', 'lowe.wilber', 'e67856613cd71f1b2884', 06015518212, 'kenshire', 'mississippi', 'usa'); +insert into customers values(9, 'abbey', 'b', 'ruecker', 0, 'anastacio45@example.org', 'dubuque.gina', 'd7629de5171fe29106c8', '1-344-593-4896x425', 'bruenchester', 'california', 'usa'); +insert into customers values(10, 'devin', 'v', 'glover', 0, 'udeckow@example.com', 'ypowlowski', '604f9062a5a0de83ef9d', '197-955-3766', 'lake eusebiomouth', 'florida', 'usa'); +insert into customers values(11, 'neoma', 'g', 'hauck', 1, 'michel92@example.org', 'ahmad.hagenes', '035f2ba1e2a675c4f426', '+9501523064649', 'new rachellefort', 'alabama', 'usa'); +insert into customers values(12, 'jensen', 'm', 'muller', 0, 'lew.nicolas@example.org', 'pbecker', '5fe7c12dc3176ddf67c4', '650406-8761', 'carleefort', 'montana', 'usa'); +insert into customers values(13, 'kieran', 'a', 'auer', 0, 'nnolan@example.org', 'sophia97', 'd4ade599672bccdabeee', '157046-6255x98627', 'lake freemanville', 'kentucky', 'usa'); +insert into customers values(14, 'percival', 'b', 'kessler', 1, 'jacobi.shanon@example.org', 'lucy.jast', '178613c20728eec256db', '791562-7792x45732', 'port hollie', 'louisiana', 'usa'); +insert into customers values(15, 'ruby', 'k', 'boyle', 0, 'gwolff@example.net', 'dthiel', 'eff2c0dbf972481ba23c', '1-546-302-5676', 'east stephaniafort', 'southdakota', 'usa'); + +create table orders ( +order_id integer, +customer_id integer, +date_order_placed text, +order_details null +); +insert into orders values(1, 12, '2012-06-27 20:49:56', 'null'); +insert into orders values(2, 12, '2012-08-25 07:51:54', 'null'); +insert into orders values(3, 8, '2017-11-05 15:32:38', 'null'); +insert into orders values(4, 5, '2017-11-27 21:50:58', 'null'); +insert into orders values(5, 15, '2015-05-17 03:05:32', 'null'); +insert into orders values(6, 5, '2015-11-25 22:55:41', 'null'); +insert into orders values(7, 3, '2016-04-15 03:33:59', 'null'); +insert into orders values(8, 3, '2010-01-28 03:43:26', 'null'); +insert into orders values(9, 2, '2017-03-08 05:42:10', 'null'); +insert into orders values(10, 11, '2017-12-04 02:59:10', 'null'); +insert into orders values(11, 14, '2010-10-22 06:45:16', 'null'); +insert into orders values(12, 1, '2017-05-24 19:26:44', 'null'); +insert into orders values(13, 10, '2015-08-06 22:40:40', 'null'); +insert into orders values(14, 10, '2017-10-29 04:20:08', 'null'); +insert into orders values(15, 6, '2013-10-25 17:40:25', 'null'); + +create table invoices ( +invoice_number integer, +order_id integer, +invoice_date text +); +insert into invoices values(1, 9, '2018-03-01 16:40:48'); +insert into invoices values(2, 9, '2018-03-20 00:21:41'); +insert into invoices values(3, 3, '2018-03-05 08:47:33'); +insert into invoices values(4, 9, '2018-02-28 19:01:06'); +insert into invoices values(5, 13, '2018-03-07 02:04:32'); +insert into invoices values(6, 8, '2018-03-16 21:57:43'); +insert into invoices values(7, 10, '2018-03-13 07:27:38'); +insert into invoices values(8, 10, '2018-03-19 17:06:30'); +insert into invoices values(9, 12, '2018-03-16 11:01:06'); +insert into invoices values(10, 11, '2018-03-01 01:44:08'); +insert into invoices values(11, 5, '2018-03-23 04:59:28'); +insert into invoices values(12, 3, '2018-03-15 21:24:13'); +insert into invoices values(13, 3, '2018-03-03 20:44:06'); +insert into invoices values(14, 4, '2018-03-19 22:38:10'); +insert into invoices values(15, 14, '2018-03-15 09:38:49'); + +create table accounts ( +account_id integer, +customer_id integer, +date_account_opened text, +account_name text, +other_account_details text +); +insert into accounts values(1, 8, '2016-07-30 22:22:24', 900, 'regular'); +insert into accounts values(2, 3, '2017-05-29 16:45:17', 520, 'vip'); +insert into accounts values(3, 8, '2012-05-04 18:50:32', 323, 'regular'); +insert into accounts values(4, 15, '2011-03-29 15:06:59', 390, 'vip'); +insert into accounts values(5, 15, '2014-08-11 18:15:14', 935, 'regular'); +insert into accounts values(6, 12, '2014-05-30 12:16:52', 371, 'regular'); +insert into accounts values(7, 13, '2015-11-03 08:04:15', 398, 'vip'); +insert into accounts values(8, 9, '2009-06-13 11:41:52', 710, 'regular'); +insert into accounts values(9, 8, '2010-10-22 13:33:45', 337, 'regular'); +insert into accounts values(10, 15, '2016-04-25 21:49:17', 429, 'vip'); +insert into accounts values(11, 13, '2012-07-09 23:40:15', 191, 'vip'); +insert into accounts values(12, 8, '2015-02-02 09:47:08', 601, 'regular'); +insert into accounts values(13, 13, '2010-06-16 09:35:00', 272, 'regular'); +insert into accounts values(14, 13, '2014-12-28 07:29:42', 861, 'vip'); +insert into accounts values(15, 6, '2008-05-04 22:15:56', 662, 'vip'); + +create table product_categories ( +production_type_code text, +product_type_description text, +vat_rating real +); +insert into product_categories values('books', 'food', 15.84); +insert into product_categories values('dvds', 'dvd products', 11.4); +insert into product_categories values('electronics', 'books', 13.95); +insert into product_categories values('food', 'electrical devices', 17.9); + +create table financial_transactions ( +transaction_id integer, +account_id integer, +invoice_number integer, +transaction_type text, +transaction_date text, +transaction_amount real, +transaction_comment null, +other_transaction_details null +); +insert into financial_transactions values(1, 13, 12, 'payment', '2018-03-15 21:13:57', 613.96, 'null', 'null'); +insert into financial_transactions values(2, 9, 1, 'payment', '2018-03-13 13:27:46', 368.46, 'null', 'null'); +insert into financial_transactions values(3, 6, 1, 'refund', '2018-03-03 01:50:25', 1598.25, 'null', 'null'); +insert into financial_transactions values(4, 9, 12, 'payment', '2018-03-10 13:46:48', 540.73, 'null', 'null'); +insert into financial_transactions values(5, 9, 2, 'payment', '2018-03-23 04:56:12', 1214.22, 'null', 'null'); +insert into financial_transactions values(6, 12, 3, 'refund', '2018-03-22 21:58:37', 1903.41, 'null', 'null'); +insert into financial_transactions values(7, 13, 14, 'payment', '2018-03-12 03:06:52', 1585.03, 'null', 'null'); +insert into financial_transactions values(8, 14, 15, 'payment', '2018-03-11 21:57:47', 1425.41, 'null', 'null'); +insert into financial_transactions values(9, 8, 12, 'payment', '2018-03-07 04:32:54', 1517.77, 'null', 'null'); +insert into financial_transactions values(10, 6, 15, 'payment', '2018-03-14 19:09:07', 1477.57, 'null', 'null'); +insert into financial_transactions values(11, 6, 13, 'refund', '2018-03-12 22:51:05', 1567.64, 'null', 'null'); +insert into financial_transactions values(12, 9, 6, 'refund', '2018-03-05 19:55:23', 1781.24, 'null', 'null'); +insert into financial_transactions values(13, 13, 12, 'refund', '2018-03-24 12:05:11', 899.87, 'null', 'null'); +insert into financial_transactions values(14, 11, 5, 'refund', '2018-03-13 03:51:59', 1462.62, 'null', 'null'); +insert into financial_transactions values(15, 4, 14, 'refund', '2018-02-27 14:58:30', 1979.66, 'null', 'null'); + +create table invoice_line_items ( +order_item_id integer, +invoice_number integer, +product_id integer, +product_title text, +product_quantity text, +product_price real, +derived_product_cost real, +derived_vat_payable null, +derived_total_cost real +); +insert into invoice_line_items values(14, 9, 5, 'prod_name', 4, 742.37, 191.11, 'null', 69.82); +insert into invoice_line_items values(3, 9, 15, 'prod_name', 1, 814.87, 176.29, 'null', 59.56); +insert into invoice_line_items values(4, 10, 15, 'prod_name', 8, 943.07, 73.14, 'null', 59.93); +insert into invoice_line_items values(6, 15, 14, 'prod_name', 2, 749.6, 197.06, 'null', 82.77); +insert into invoice_line_items values(8, 11, 10, 'prod_name', 2, 942.99, 88.43, 'null', 86.56); +insert into invoice_line_items values(9, 11, 9, 'prod_name', 6, 486.69, 64.67, 'null', 83.4); +insert into invoice_line_items values(8, 14, 3, 'prod_name', 3, 995.34, 28.18, 'null', 58.24); +insert into invoice_line_items values(11, 1, 6, 'prod_name', 9, 429.05, 254.08, 'null', 79.48); +insert into invoice_line_items values(15, 9, 3, 'prod_name', 4, 727.41, 66, 'null', 53.53); +insert into invoice_line_items values(7, 9, 14, 'prod_name', 9, 559.95, 89.16, 'null', 45.66); +insert into invoice_line_items values(5, 7, 8, 'prod_name', 6, 787.61, 150.04, 'null', 51.27); +insert into invoice_line_items values(10, 10, 1, 'prod_name', 9, 781.46, 256.84, 'null', 71.22); +insert into invoice_line_items values(10, 14, 11, 'prod_name', 7, 884.4, 249.19, 'null', 78.26); +insert into invoice_line_items values(10, 5, 11, 'prod_name', 5, 556.36, 295.26, 'null', 61); +insert into invoice_line_items values(8, 12, 6, 'prod_name', 8, 597.28, 188.71, 'null', 98.77); +create table order_items_products ( +order_item_id integer, +order_id integer, +product_id integer, +product_quantity text, +other_order_item_details null, +parent_product_id integer, +production_type_code text, +unit_price real, +product_name text, +product_color text, +product_size text); +insert into order_items_products values(1, 4, 4, '6', 'NULL', 8, 'electronics', 985.78, 'hard drive', 'black', 'small'); +insert into order_items_products values(2, 4, 10, '7', 'NULL', 9, 'electronics', 937.85, 'tv', 'red', 'medium'); +insert into order_items_products values(3, 15, 5, '4', 'NULL', 7, 'dvds', 682.06, 'arts', 'yellow', 'small'); +insert into order_items_products values(4, 1, 3, '9', 'NULL', 8, 'electronics', 563.58, 'fans', 'black', 'medium'); +insert into order_items_products values(5, 2, 14, '3', 'NULL', 1, 'dvds', 469.87, 'harry potter 3', 'yellow', 'small'); +insert into order_items_products values(6, 13, 12, '8', 'NULL', 1, 'dvds', 729.09, 'harry potter 2', 'red', 'medium'); +insert into order_items_products values(7, 1, 15, '3', 'NULL', 2, 'dvds', 82.96, 'harry potter 4', 'yellow', 'large'); +insert into order_items_products values(8, 10, 4, '4', 'NULL', 8, 'electronics', 985.78, 'hard drive', 'black', 'small'); +insert into order_items_products values(9, 14, 5, '1', 'NULL', 7, 'dvds', 682.06, 'arts', 'yellow', 'small'); +insert into order_items_products values(10, 13, 9, '2', 'NULL', 8, 'food', 694.31, 'beer menus', 'black', 'small'); +insert into order_items_products values(11, 15, 7, '5', 'NULL', 5, 'books', 409.83, 'learning english', 'red', 'large'); +insert into order_items_products values(12, 4, 14, '4', 'NULL', 1, 'dvds', 469.87, 'harry potter 3', 'yellow', 'small'); +insert into order_items_products values(13, 12, 13, '1', 'NULL', 6, 'food', 639.76, 'chocolate', 'yellow', 'small'); +insert into order_items_products values(14, 13, 14, '2', 'NULL', 1, 'dvds', 469.87, 'harry potter 3', 'yellow', 'small'); +insert into order_items_products values(15, 13, 14, '6', 'NULL', 1, 'dvds', 469.87, 'harry potter 3', 'yellow', 'small'); +insert into order_items_products values('None', 'None', 1, 'None', 'None', 4, 'food', 617.95, 'coffee bean', 'red', 'medium'); +insert into order_items_products values('None', 'None', 2, 'None', 'None', 4, 'books', 558.49, 'learning french', 'yellow', 'medium'); +insert into order_items_products values('None', 'None', 6, 'None', 'None', 7, 'books', 469.71, 'art history', 'yellow', 'small'); +insert into order_items_products values('None', 'None', 8, 'None', 'None', 1, 'books', 49.62, 'menus', 'black', 'small'); +insert into order_items_products values('None', 'None', 11, 'None', 'None', 8, 'dvds', 52.88, 'harry potter 1', 'black', 'small'); + diff --git a/all/databases/customers_and_invoices_minus_1_0/customers_and_invoices_minus_1_0.sqlite b/all/databases/customers_and_invoices_minus_1_0/customers_and_invoices_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..12cd9f246ac0212b247b08bc0aa6b6ee3237852b Binary files /dev/null and b/all/databases/customers_and_invoices_minus_1_0/customers_and_invoices_minus_1_0.sqlite differ diff --git a/all/databases/debate_minus_1_0/debate_minus_1_0.sql b/all/databases/debate_minus_1_0/debate_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..6eef3beaec3982efed6cdcfd90045336a1bdf1e5 --- /dev/null +++ b/all/databases/debate_minus_1_0/debate_minus_1_0.sql @@ -0,0 +1,32 @@ +create table people ( +people_id integer, +district text, +name text, +party text, +age integer +); +insert into people values(1, 'new york 1', 'luther c. carter', 'republican', 35); +insert into people values(2, 'new york 2', 'james humphrey', 'republican', 38); +insert into people values(3, 'new york 3', 'daniel sickles', 'democratic', 46); +insert into people values(4, 'new york 4', 'thomas j. barr', 'independent democrat', 48); +insert into people values(5, 'new york 5', 'william b. maclay', 'democratic', 36); +insert into people values(6, 'new york 6', 'john cochrane', 'democratic', 46); +insert into people values(7, 'new york 7', 'george briggs', 'republican', 42); +insert into people values(8, 'new york 8', 'horace f. clark', 'anti-lecompton democrat', 45); +insert into people values(9, 'new york 9', 'john b. haskin', 'anti-lecompton democrat', 43); +insert into people values(10, 'new york 10', 'charles van wyck', 'republican', 36); +create table debate_people_debate ( +debate_id integer, +affirmative integer, +negative integer, +if_affirmative_win text, +date text, +venue text, +num_of_audience integer); +insert into debate_people_debate values(1, 1, 10, 'f', 'october 21 2011', 'manama bahrain', 342); +insert into debate_people_debate values(3, 4, 7, 'f', 'august 3 2015', 'manama bahrain', 90); +insert into debate_people_debate values(4, 5, 8, 't', 'october 27 2015', 'manama bahrain', 209); +insert into debate_people_debate values(5, 2, 8, 't', 'january 12 2017', 'dubai uae', 313); +insert into debate_people_debate values(6, 5, 6, 'f', 'january 21 2017', 'abu dhabi uae', 159); +insert into debate_people_debate values(2, 'None', 'None', 'None', 'december 17 2014', 'doha qatar', 134); + diff --git a/all/databases/debate_minus_1_0/debate_minus_1_0.sqlite b/all/databases/debate_minus_1_0/debate_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..db3da0df7748f320f083b54b68698afb93da31bd Binary files /dev/null and b/all/databases/debate_minus_1_0/debate_minus_1_0.sqlite differ diff --git a/all/databases/department_management/department_management.sql b/all/databases/department_management/department_management.sql new file mode 100644 index 0000000000000000000000000000000000000000..1a8e1140c0d1ceacfcbaca0094f4371952c53bb5 --- /dev/null +++ b/all/databases/department_management/department_management.sql @@ -0,0 +1,57 @@ +CREATE TABLE "department" ( +"department_id" integer, +"name" text, +"creation" text, +"ranking" integer, +"budget_in_billions" real, +"num_employees" real +); + +INSERT INTO department VALUES (1, "state", "1789", 1, 9.96, 30266.0); +INSERT INTO department VALUES (2, "treasury", "1789", 2, 11.1, 115897.0); +INSERT INTO department VALUES (3, "defense", "1947", 3, 439.3, 3000000.0); +INSERT INTO department VALUES (4, "justice", "1870", 4, 23.4, 112557.0); +INSERT INTO department VALUES (5, "interior", "1849", 5, 10.7, 71436.0); +INSERT INTO department VALUES (6, "agriculture", "1889", 6, 77.6, 109832.0); +INSERT INTO department VALUES (7, "commerce", "1903", 7, 6.2, 36000.0); +INSERT INTO department VALUES (8, "labor", "1913", 8, 59.7, 17347.0); +INSERT INTO department VALUES (9, "health and human services", "1953", 9, 543.2, 67000.0); +INSERT INTO department VALUES (10, "housing and urban development", "1965", 10, 46.2, 10600.0); +INSERT INTO department VALUES (11, "transportation", "1966", 11, 58.0, 58622.0); +INSERT INTO department VALUES (12, "energy", "1977", 12, 21.5, 116100.0); +INSERT INTO department VALUES (13, "education", "1979", 13, 62.8, 4487.0); +INSERT INTO department VALUES (14, "veterans affairs", "1989", 14, 73.2, 235000.0); +INSERT INTO department VALUES (15, "homeland security", "2002", 15, 44.6, 208000.0); + +CREATE TABLE "head" ( +"head_id" integer, +"name" text, +"born_state" text, +"age" real +); + +INSERT INTO head VALUES (1, "tiger woods", "alabama", 67.0); +INSERT INTO head VALUES (2, "sergio garcía", "california", 68.0); +INSERT INTO head VALUES (3, "k. j. choi", "alabama", 69.0); +INSERT INTO head VALUES (4, "dudley hart", "california", 52.0); +INSERT INTO head VALUES (5, "jeff maggert", "delaware", 53.0); +INSERT INTO head VALUES (6, "billy mayfair", "california", 69.0); +INSERT INTO head VALUES (7, "stewart cink", "florida", 50.0); +INSERT INTO head VALUES (8, "nick faldo", "california", 56.0); +INSERT INTO head VALUES (9, "pádraig harrington", "connecticut", 43.0); +INSERT INTO head VALUES (10, "franklin langham", "connecticut", 67.0); + +CREATE TABLE "management" ( +"department_id" integer, +"head_id" integer, +"temporary_acting" text +); + +INSERT INTO management VALUES (2, 5, "yes"); +INSERT INTO management VALUES (2, 6, "yes"); +INSERT INTO management VALUES (7, 3, "yes"); +INSERT INTO management VALUES (11, 10, "no"); +INSERT INTO management VALUES (15, 4, "no"); + + +COMMIT; diff --git a/all/databases/department_management/department_management.sqlite b/all/databases/department_management/department_management.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..9c3268fbebfa4d03e076d47e93da2db6ff84eab1 Binary files /dev/null and b/all/databases/department_management/department_management.sqlite differ diff --git a/all/databases/document_management/document_management.sql b/all/databases/document_management/document_management.sql new file mode 100644 index 0000000000000000000000000000000000000000..935e6d5b543f71b42030b84fc406de5f39cc218b --- /dev/null +++ b/all/databases/document_management/document_management.sql @@ -0,0 +1,174 @@ +CREATE TABLE "roles" ( +"role_code" text, +"role_description" text +); + +INSERT INTO roles VALUES ("dba", "database administrator"); +INSERT INTO roles VALUES ("proj-mgr", "project manager"); + +CREATE TABLE "users" ( +"user_id" integer, +"role_code" text, +"user_name" text, +"user_login" text, +"password" text +); + +INSERT INTO users VALUES (1, "proj-mgr", "dickens.elta", "0", "e72b5a2d50b39a8760764a5f7a9d68ca2f076877"); +INSERT INTO users VALUES (2, "dba", "tremblay.raheem", "1", "9bc25a040d5647ced5ec32e1a455e90fafc10bcb"); +INSERT INTO users VALUES (3, "dba", "lynn.haley", "0", "90db8f51449e6c39e2a01f0b649d5a92fe76bbbb"); +INSERT INTO users VALUES (4, "proj-mgr", "ycremin", "0", "f6977378f409f5d2d230016a6678a582e14f43b0"); +INSERT INTO users VALUES (5, "proj-mgr", "larson.vesta", "1", "da383455a05a824606c54e99f671c4d6a2ddae26"); +INSERT INTO users VALUES (6, "dba", "amelie53", "0", "6aa66440864ff8143fe7dee5940a6af3460bad07"); +INSERT INTO users VALUES (7, "dba", "jacklyn.schmitt", "1", "3f6affa583bfdf7fac6faeb2ca418431909d4b39"); +INSERT INTO users VALUES (8, "proj-mgr", "joanne.deckow", "0", "20241478f890508ac47870cfba472e1db04a71ca"); +INSERT INTO users VALUES (9, "proj-mgr", "dickinson.lenora", "0", "a0fe5434a5f4c218e37b0082f2408b357feb0fa6"); +INSERT INTO users VALUES (10, "dba", "heller.harley", "1", "11af7569a5c1e8b455add5755e18131be2ac8636"); +INSERT INTO users VALUES (11, "dba", "roger.oconner", "0", "3d478d7056d6417966f6b1676f6ec81b3094f44f"); +INSERT INTO users VALUES (12, "dba", "gussie00", "1", "75f7b5ed8e70e86467155e003ccda6fce1011c29"); +INSERT INTO users VALUES (13, "proj-mgr", "johanna.fisher", "1", "1fb26eea854962d41512827bf90a5b7ce4b359d8"); +INSERT INTO users VALUES (14, "dba", "faye30", "0", "27cca8f94136f0e8971b5ca555a21ff756871b27"); +INSERT INTO users VALUES (15, "proj-mgr", "glenna.simonis", "1", "95f489fc0921bbb3e7d661a550ae208b88d9b11a"); + +CREATE TABLE "document_structures" ( +"document_structure_code" text, +"parent_document_structure_code" text, +"document_structure_description" text +); + +INSERT INTO document_structures VALUES ("1", "1", "header"); +INSERT INTO document_structures VALUES ("5", "1", "main section"); +INSERT INTO document_structures VALUES ("6", "1", "bib"); +INSERT INTO document_structures VALUES ("8", "6", "image section"); +INSERT INTO document_structures VALUES ("9", "8", "author section"); + +CREATE TABLE "functional_areas" ( +"functional_area_code" text, +"parent_functional_area_code" text, +"functional_area_description" text +); + +INSERT INTO functional_areas VALUES ("1", "8", "signature"); +INSERT INTO functional_areas VALUES ("8", "8", "acknowledgement"); +INSERT INTO functional_areas VALUES ("9", "8", "keep blank"); + +CREATE TABLE "images" ( +"image_id" integer, +"image_alt_text" text, +"image_name" text, +"image_url" text +); + +INSERT INTO images VALUES (1, "lea", "top1", "http://www.rempelnader.com/1.jpg"); +INSERT INTO images VALUES (2, "arden", "top2", "http://connellykertzmann.org/1.jpg"); +INSERT INTO images VALUES (3, "mohamed", "top3", "http://www.bernierconnelly.com/1.jpg"); +INSERT INTO images VALUES (4, "chaya", "top4", "http://abernathyboehm.com/1.jpg"); +INSERT INTO images VALUES (5, "percival", "chapter1", "http://gaylord.info/1.jpg"); +INSERT INTO images VALUES (6, "lincoln", "chapter2", "http://www.hellerreinger.com/1.jpg"); +INSERT INTO images VALUES (7, "camylle", "chapter3", "http://faycummerata.net/1.jpg"); +INSERT INTO images VALUES (8, "ashtyn", "chapter4", "http://haleychamplin.net/1.jpg"); +INSERT INTO images VALUES (9, "filomena", "chapter5", "http://www.fritsch.net/1.jpg"); +INSERT INTO images VALUES (10, "jeanette", "data1", "http://sauer.com/1.jpg"); +INSERT INTO images VALUES (11, "name", "data2", "http://www.heller.com/1.jpg"); +INSERT INTO images VALUES (12, "marianna", "data3", "http://www.hermann.com/1.jpg"); +INSERT INTO images VALUES (13, "stephen", "data4", "http://rowelakin.com/1.jpg"); +INSERT INTO images VALUES (14, "miller", "data5", "http://andersonluettgen.net/1.jpg"); +INSERT INTO images VALUES (15, "trycia", "data6", "http://www.beahan.biz/1.jpg"); + +CREATE TABLE "documents" ( +"document_code" text, +"document_structure_code" text, +"document_type_code" text, +"access_count" integer, +"document_name" text +); + +INSERT INTO documents VALUES ("217", "8", "book", 1864, "learning english"); +INSERT INTO documents VALUES ("349", "1", "paper", 8208, "research about art history"); +INSERT INTO documents VALUES ("465", "8", "book", 3769, "learning database"); +INSERT INTO documents VALUES ("510", "5", "advertisement", 6661, "summer sails"); +INSERT INTO documents VALUES ("566", "9", "book", 2910, "learning japanese"); +INSERT INTO documents VALUES ("621", "9", "cv", 6345, "david cv"); +INSERT INTO documents VALUES ("675", "8", "book", 2045, "how to cook pasta"); +INSERT INTO documents VALUES ("706", "6", "paper", 3479, "humanity: a fact"); +INSERT INTO documents VALUES ("713", "9", "advertisement", 8623, "winter sails"); +INSERT INTO documents VALUES ("714", "9", "cv", 5924, "john cv"); +INSERT INTO documents VALUES ("928", "8", "cv", 2294, "joe cv"); +INSERT INTO documents VALUES ("930", "5", "advertisement", 3289, "spring sails"); +INSERT INTO documents VALUES ("958", "9", "book", 1219, "life about claude monet"); +INSERT INTO documents VALUES ("961", "1", "advertisement", 7509, "fall sails"); +INSERT INTO documents VALUES ("989", "6", "paper", 9948, "relationships between history and arts"); + +CREATE TABLE "document_functional_areas" ( +"document_code" text, +"functional_area_code" text +); + +INSERT INTO document_functional_areas VALUES ("675", "9"); +INSERT INTO document_functional_areas VALUES ("930", "1"); +INSERT INTO document_functional_areas VALUES ("217", "1"); +INSERT INTO document_functional_areas VALUES ("465", "1"); +INSERT INTO document_functional_areas VALUES ("958", "1"); +INSERT INTO document_functional_areas VALUES ("958", "9"); +INSERT INTO document_functional_areas VALUES ("217", "9"); +INSERT INTO document_functional_areas VALUES ("961", "9"); +INSERT INTO document_functional_areas VALUES ("928", "9"); +INSERT INTO document_functional_areas VALUES ("958", "9"); +INSERT INTO document_functional_areas VALUES ("349", "1"); +INSERT INTO document_functional_areas VALUES ("961", "8"); +INSERT INTO document_functional_areas VALUES ("989", "1"); +INSERT INTO document_functional_areas VALUES ("706", "8"); +INSERT INTO document_functional_areas VALUES ("713", "8"); + +CREATE TABLE "document_sections" ( +"section_id" integer, +"document_code" text, +"section_sequence" integer, +"section_code" text, +"section_title" text +); + +INSERT INTO document_sections VALUES (12, "714", 6072, "70", "after"); +INSERT INTO document_sections VALUES (15, "217", 4510, "14", "after"); +INSERT INTO document_sections VALUES (19, "675", 7236, "90", "after"); +INSERT INTO document_sections VALUES (21, "675", 9847, "72", "before"); +INSERT INTO document_sections VALUES (23, "465", 8548, "49", "after"); +INSERT INTO document_sections VALUES (27, "566", 6016, "18", "before"); +INSERT INTO document_sections VALUES (38, "930", 6521, "58", "after"); +INSERT INTO document_sections VALUES (40, "465", 4964, "93", "after"); +INSERT INTO document_sections VALUES (54, "961", 4794, "34", "before"); +INSERT INTO document_sections VALUES (57, "989", 6349, "22", "after"); +INSERT INTO document_sections VALUES (62, "621", 5552, "16", "after"); +INSERT INTO document_sections VALUES (86, "706", 2170, "60", "after"); +INSERT INTO document_sections VALUES (89, "566", 2354, "34", "before"); +INSERT INTO document_sections VALUES (93, "713", 4433, "91", "before"); +INSERT INTO document_sections VALUES (95, "621", 8805, "38", "before"); + +CREATE TABLE "document_sections_images" ( +"section_id" integer, +"image_id" integer +); + +INSERT INTO document_sections_images VALUES (93, 6); +INSERT INTO document_sections_images VALUES (86, 2); +INSERT INTO document_sections_images VALUES (27, 3); +INSERT INTO document_sections_images VALUES (12, 12); +INSERT INTO document_sections_images VALUES (19, 12); +INSERT INTO document_sections_images VALUES (38, 12); +INSERT INTO document_sections_images VALUES (89, 8); +INSERT INTO document_sections_images VALUES (23, 8); +INSERT INTO document_sections_images VALUES (40, 5); +INSERT INTO document_sections_images VALUES (19, 2); +INSERT INTO document_sections_images VALUES (62, 14); +INSERT INTO document_sections_images VALUES (21, 2); +INSERT INTO document_sections_images VALUES (86, 4); +INSERT INTO document_sections_images VALUES (15, 14); +INSERT INTO document_sections_images VALUES (54, 12); +INSERT INTO document_sections_images VALUES (38, 7); +INSERT INTO document_sections_images VALUES (15, 13); +INSERT INTO document_sections_images VALUES (27, 10); +INSERT INTO document_sections_images VALUES (40, 6); +INSERT INTO document_sections_images VALUES (19, 6); + + +COMMIT; diff --git a/all/databases/document_management/document_management.sqlite b/all/databases/document_management/document_management.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..7b29c3844a9666a9948c3e9e95720aa8c596bdf2 Binary files /dev/null and b/all/databases/document_management/document_management.sqlite differ diff --git a/all/databases/dog_kennels/dog_kennels.sql b/all/databases/dog_kennels/dog_kennels.sql new file mode 100644 index 0000000000000000000000000000000000000000..9507db11cca54299381b76baa699e5ad788b1685 --- /dev/null +++ b/all/databases/dog_kennels/dog_kennels.sql @@ -0,0 +1,170 @@ +CREATE TABLE "breeds" ( +"breed_code" text, +"breed_name" text +); + +INSERT INTO breeds VALUES ("bul", "eskimo"); +INSERT INTO breeds VALUES ("esk", "husky"); +INSERT INTO breeds VALUES ("hus", "bulldog"); + +CREATE TABLE "charges" ( +"charge_id" integer, +"charge_type" text, +"charge_amount" integer +); + +INSERT INTO charges VALUES (1, "daily accommodation", 98); +INSERT INTO charges VALUES (2, "drugs", 322); +INSERT INTO charges VALUES (3, "health check", 640); + +CREATE TABLE "sizes" ( +"size_code" text, +"size_description" text +); + +INSERT INTO sizes VALUES ("lge", "small"); +INSERT INTO sizes VALUES ("med", "medium"); +INSERT INTO sizes VALUES ("sml", "large"); + +CREATE TABLE "treatment_types" ( +"treatment_type_code" text, +"treatment_type_description" text +); + +INSERT INTO treatment_types VALUES ("exam", "physical examination"); +INSERT INTO treatment_types VALUES ("vac", "vaccination"); +INSERT INTO treatment_types VALUES ("walk", "take for a walk"); + +CREATE TABLE "owners" ( +"owner_id" integer, +"first_name" text, +"last_name" text, +"street" text, +"city" text, +"state" text, +"zip_code" text, +"email_address" text, +"home_phone" text, +"cell_number" text +); + +INSERT INTO owners VALUES (1, "nora", "haley", "0647 hintz village apt. 024", "lake tia", "wisconsin", "93165", "lynn81@example.org", "1-682-845-0116x63235", "478.978.0729"); +INSERT INTO owners VALUES (2, "melisa", "dubuque", "1204 mae highway apt. 107", "port reannamouth", "virginia", "45244", "ykris@example.com", "799563-0260x454", "722768-5439x484"); +INSERT INTO owners VALUES (3, "jaclyn", "stoltenberg", "2635 caitlyn plains", "barrettburgh", "vermont", "02647", "hudson.favian@example.com", "916.976.9480x13851", "481-483-9083x37986"); +INSERT INTO owners VALUES (4, "tre", "hamill", "692 jaskolski forges", "brakusfurt", "florida", "87304", "marks.gail@example.org", "1-332-849-1908", "739-136-7202"); +INSERT INTO owners VALUES (5, "johann", "fisher", "68118 daniel row", "lake valentin", "northdakota", "61019", "zboncak.madonna@example.net", "544034-1670", "1-626-264-7659x1697"); +INSERT INTO owners VALUES (6, "kade", "rippin", "51934 treutel harbor", "lake carleyborough", "arizona", "25609", "margaretta.runte@example.net", "318-052-6573", "+7049217952551"); +INSERT INTO owners VALUES (7, "emelie", "mertz", "2417 keara stravenue apt. 146", "lake jennyferfort", "newyork", "00589", "angeline99@example.com", "058997-7627", "121.381.3316x6535"); +INSERT INTO owners VALUES (8, "rolando", "prohaska", "57382 yost ridges", "south afton", "arkansas", "86010", "kturner@example.net", "01802479758", "783271-6744x4507"); +INSERT INTO owners VALUES (9, "adelle", "ondricka", "9212 rosenbaum lights", "east hillardberg", "washington", "92406", "fschoen@example.net", "066.264.7885", "+0024323592985"); +INSERT INTO owners VALUES (10, "lorenz", "nicolas", "59509 mellie mountain", "new margaretteborough", "southdakota", "78297", "ymaggio@example.com", "085.557.0379x84348", "559.874.3011x989"); +INSERT INTO owners VALUES (11, "gay", "feil", "60352 kayleigh crossing suite 700", "port zackery", "indiana", "35747", "pearlie18@example.com", "130-796-4589x05454", "762.589.6117x1328"); +INSERT INTO owners VALUES (12, "orlando", "price", "89011 kertzmann spring suite 642", "east maribelbury", "mississippi", "11990", "christy49@example.org", "363.948.1090", "1-739-421-2225x38148"); +INSERT INTO owners VALUES (13, "cindy", "schmitt", "6950 katherine forges apt. 630", "beerton", "northdakota", "36871", "wpfeffer@example.net", "094747-5094x8134", "633.455.3045x85484"); +INSERT INTO owners VALUES (14, "rachelle", "funk", "15828 spencer extensions", "west leonard", "maryland", "22731", "edythe62@example.org", "1-346-655-5842x768", "257399-3116"); +INSERT INTO owners VALUES (15, "heather", "hauck", "1858 jan park", "south daisyfurt", "pennsylvania", "22693", "ybergstrom@example.com", "893-862-5295x61709", "341.667.8085"); + +CREATE TABLE "dogs" ( +"dog_id" integer, +"owner_id" integer, +"abandoned_yn" text, +"breed_code" text, +"size_code" text, +"name" text, +"age" text, +"date_of_birth" text, +"gender" text, +"weight" text, +"date_arrived" text, +"date_adopted" text, +"date_departed" text +); + +INSERT INTO dogs VALUES (1, 3, "1", "esk", "lge", "kacey", "6", "2012-01-27 05:11:53", "1", "7.57", "2017-09-08 20:10:13", "2018-03-06 16:32:11", "2018-03-25 06:58:44"); +INSERT INTO dogs VALUES (2, 11, "0", "bul", "lge", "hipolito", "9", "2013-02-13 05:15:21", "0", "1.72", "2017-12-22 05:02:02", "2018-03-25 08:12:51", "2018-03-25 02:11:32"); +INSERT INTO dogs VALUES (3, 1, "0", "bul", "med", "mavis", "8", "2008-05-19 15:54:49", "1", "8.04", "2017-06-25 10:14:05", "2018-03-07 21:45:43", "2018-03-25 10:25:46"); +INSERT INTO dogs VALUES (4, 14, "0", "esk", "lge", "houston", "5", "2008-10-09 22:38:53", "0", "2.18", "2017-04-20 00:58:55", "2018-03-18 15:12:50", "2018-03-24 19:12:22"); +INSERT INTO dogs VALUES (5, 7, "0", "bul", "med", "jeffrey", "4", "2018-03-17 04:05:12", "0", "1.39", "2017-10-25 00:55:34", "2018-02-27 11:54:35", "2018-03-25 04:50:22"); +INSERT INTO dogs VALUES (6, 5, "0", "hus", "med", "merritt", "9", "2015-02-26 21:31:22", "1", "9.8", "2017-04-15 09:25:31", "2018-03-08 15:03:00", "2018-03-25 13:07:04"); +INSERT INTO dogs VALUES (7, 3, "0", "bul", "med", "narciso", "2", "2017-09-19 05:39:09", "1", "9.48", "2017-05-06 08:03:52", "2018-02-27 00:27:57", "2018-03-25 06:29:10"); +INSERT INTO dogs VALUES (8, 14, "0", "esk", "sml", "george", "2", "2013-02-20 14:50:56", "0", "8.95", "2017-10-16 20:06:21", "2018-03-23 16:02:04", "2018-03-25 02:47:40"); +INSERT INTO dogs VALUES (9, 2, "0", "bul", "med", "bessie", "4", "2012-05-31 08:01:36", "1", "3.52", "2018-01-17 11:44:16", "2018-02-25 23:45:30", "2018-03-25 06:46:07"); +INSERT INTO dogs VALUES (10, 6, "0", "hus", "med", "troy", "9", "2012-07-11 17:15:10", "0", "8.96", "2017-12-29 06:08:26", "2018-03-18 07:47:40", "2018-03-25 04:42:14"); +INSERT INTO dogs VALUES (11, 13, "0", "bul", "lge", "betty", "3", "2012-10-14 14:44:37", "0", "8.16", "2017-07-25 15:19:07", "2018-03-14 08:05:18", "2018-03-25 15:05:16"); +INSERT INTO dogs VALUES (12, 12, "0", "hus", "med", "holden", "8", "2009-04-12 06:02:48", "0", "6.92", "2017-10-24 04:45:13", "2018-03-05 06:05:23", "2018-03-25 14:15:41"); +INSERT INTO dogs VALUES (13, 8, "0", "hus", "sml", "jesus", "2", "2012-05-03 21:42:25", "0", "5.16", "2018-01-02 03:15:29", "2018-03-21 10:41:18", "2018-03-25 05:07:47"); +INSERT INTO dogs VALUES (14, 14, "1", "esk", "med", "lyric", "4", "2010-11-11 07:11:53", "0", "4.36", "2017-06-18 19:45:38", "2018-03-13 12:47:15", "2018-03-24 23:48:59"); +INSERT INTO dogs VALUES (15, 10, "1", "bul", "med", "evangeline", "1", "2008-05-30 12:51:34", "1", "4.01", "2017-12-29 23:24:13", "2018-03-10 15:06:43", "2018-03-24 19:36:59"); + +CREATE TABLE "professionals" ( +"professional_id" integer, +"role_code" text, +"first_name" text, +"street" text, +"city" text, +"state" text, +"zip_code" text, +"last_name" text, +"email_address" text, +"home_phone" text, +"cell_number" text +); + +INSERT INTO professionals VALUES (1, "employee", "taryn", "6915 oberbrunner point suite 491 +gleasonville la", "west heidi", "indiana", "06646", "braun", "deanna.schuster@example.com", "+7162898266914", "275939-2435x80863"); +INSERT INTO professionals VALUES (2, "employee", "jayson", "88665 terence lodge apt. 904 +corneliusfort nc 194", "north odellfurt", "connecticut", "43129", "ullrich", "lucile.shanahan@example.org", "+0210259033559", "889-940-2676"); +INSERT INTO professionals VALUES (3, "employee", "olaf", "68589 bradly manor +new audrey in 91497", "jaceton", "wisconsin", "77129", "watsica", "uboehm@example.org", "325-155-0801x7005", "369908-7311x065"); +INSERT INTO professionals VALUES (4, "veterenarian", "vernice", "72532 hane course +lake berylland nd 95283", "domenickton", "mississippi", "02281", "tillman", "lourdes.lowe@example.net", "312.216.3352", "00230569697"); +INSERT INTO professionals VALUES (5, "veterenarian", "danny", "188 vonrueden tunnel suite 630 +north macibury nv", "new laurytown", "hawaii", "84515", "considine", "mekhi.little@example.org", "1-609-566-2752x25197", "011.193.9081x3186"); +INSERT INTO professionals VALUES (6, "veterenarian", "ruben", "17286 waters green +east bernadinefort ca 89573", "baileymouth", "newmexico", "52476", "oreilly", "jacynthe.mclaughlin@example.net", "+4351132733868", "139-321-7313"); +INSERT INTO professionals VALUES (7, "veterenarian", "velva", "44234 marvin shoals suite 659 +north frances al 23", "mclaughlinfort", "northcarolina", "67980", "hayes", "lambert62@example.org", "022.529.0550x1319", "499-434-0215x1628"); +INSERT INTO professionals VALUES (8, "employee", "karley", "36895 eli ferry +port marcelle fl 45712", "kirastad", "indiana", "33020", "hyatt", "goyette.roosevelt@example.net", "891.475.2256", "328.842.3792"); +INSERT INTO professionals VALUES (9, "veterenarian", "monte", "07073 brenna ways suite 089 +lowehaven ky 93275-96", "south rockyport", "southcarolina", "80775", "kshlerin", "schneider.kathryne@example.org", "320-508-6023", "962-983-8109x3509"); +INSERT INTO professionals VALUES (10, "employee", "domenica", "7284 torphy flats apt. 610 +diannaburgh sc 78560", "new maryjane", "california", "54312", "jacobs", "jerrod.bahringer@example.org", "230338-3342x585", "461-801-2600"); +INSERT INTO professionals VALUES (11, "employee", "brady", "09615 mckenzie stravenue apt. 128 +west elliottview", "raynorfort", "alabama", "07412", "pouros", "west.eula@example.net", "920304-4499x59146", "609-405-2990"); +INSERT INTO professionals VALUES (12, "veterenarian", "winfield", "92912 langworth valleys apt. 743 +thompsonborough", "juddton", "utah", "34041", "christiansen", "marquardt.furman@example.org", "246-951-0080x76716", "1-181-670-9466"); +INSERT INTO professionals VALUES (13, "veterenarian", "ericka", "7783 abraham alley +port madelynhaven ky 59172-273", "borisside", "wyoming", "17902", "murazik", "delphine29@example.com", "346.594.3739", "880-659-7577x736"); +INSERT INTO professionals VALUES (14, "employee", "sigurd", "390 bryce drive +north dock la 65357-7228", "east ila", "connecticut", "41215", "frami", "cole.margarita@example.org", "971.048.3763x9404", "1-185-137-1945x409"); +INSERT INTO professionals VALUES (15, "employee", "lesly", "63949 keeling landing apt. 502 +johnsview sd 06780", "north adelberttown", "montana", "98844", "walter", "jeichmann@example.com", "1-138-287-3775", "1-258-285-4707x8020"); + +CREATE TABLE "treatments" ( +"treatment_id" integer, +"dog_id" integer, +"professional_id" integer, +"treatment_type_code" text, +"date_of_treatment" text, +"cost_of_treatment" integer +); + +INSERT INTO treatments VALUES (1, 14, 9, "walk", "2018-03-19 04:39:54", 567); +INSERT INTO treatments VALUES (2, 4, 10, "vac", "2018-03-15 20:25:34", 147); +INSERT INTO treatments VALUES (3, 14, 4, "exam", "2018-03-08 05:26:23", 429); +INSERT INTO treatments VALUES (4, 2, 8, "vac", "2018-03-01 04:14:46", 266); +INSERT INTO treatments VALUES (5, 12, 14, "vac", "2018-03-23 13:52:10", 668); +INSERT INTO treatments VALUES (6, 10, 4, "exam", "2018-03-11 04:23:15", 313); +INSERT INTO treatments VALUES (7, 15, 14, "exam", "2018-03-10 11:45:58", 852); +INSERT INTO treatments VALUES (8, 2, 6, "exam", "2018-03-24 22:25:58", 407); +INSERT INTO treatments VALUES (9, 14, 10, "walk", "2018-03-14 19:10:40", 139); +INSERT INTO treatments VALUES (10, 10, 7, "walk", "2018-02-28 17:09:43", 681); +INSERT INTO treatments VALUES (11, 15, 5, "vac", "2018-03-13 12:22:58", 514); +INSERT INTO treatments VALUES (12, 13, 9, "exam", "2018-03-16 10:27:36", 428); +INSERT INTO treatments VALUES (13, 7, 8, "vac", "2018-02-26 09:08:53", 945); +INSERT INTO treatments VALUES (14, 10, 9, "walk", "2018-03-04 20:33:43", 349); +INSERT INTO treatments VALUES (15, 1, 6, "walk", "2018-03-15 19:10:02", 656); + + +COMMIT; diff --git a/all/databases/dog_kennels/dog_kennels.sqlite b/all/databases/dog_kennels/dog_kennels.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..f44b6032da193ac860c1c91ee53a30de18427c67 Binary files /dev/null and b/all/databases/dog_kennels/dog_kennels.sqlite differ diff --git a/all/databases/dog_kennels_total_0/dog_kennels_total_0.sql b/all/databases/dog_kennels_total_0/dog_kennels_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..583b05994ba9707cf9b36340fa312c41bcb40f30 --- /dev/null +++ b/all/databases/dog_kennels_total_0/dog_kennels_total_0.sql @@ -0,0 +1,136 @@ +create table breeds ( +breed_code text, +breed_name text +); +insert into breeds values('bul', 'eskimo'); +insert into breeds values('esk', 'husky'); +insert into breeds values('hus', 'bulldog'); + +create table charges ( +charge_id integer, +charge_type text, +charge_amount integer +); +insert into charges values(1, 'daily accommodation', 98); +insert into charges values(2, 'drugs', 322); +insert into charges values(3, 'health check', 640); + +create table sizes ( +size_code text, +size_description text +); +insert into sizes values('lge', 'small'); +insert into sizes values('med', 'medium'); +insert into sizes values('sml', 'large'); + +create table owners ( +owner_id integer, +first_name text, +last_name text, +street text, +city text, +state text, +zip_code text, +email_address text, +home_phone text, +cell_number text +); +insert into owners values(1, 'nora', 'haley', '0647 hintz village apt. 024', 'lake tia', 'wisconsin', 93165, 'lynn81@example.org', '1-682-845-0116x63235', '478.978.0729'); +insert into owners values(2, 'melisa', 'dubuque', '1204 mae highway apt. 107', 'port reannamouth', 'virginia', 45244, 'ykris@example.com', '799563-0260x454', '722768-5439x484'); +insert into owners values(3, 'jaclyn', 'stoltenberg', '2635 caitlyn plains', 'barrettburgh', 'vermont', 02647, 'hudson.favian@example.com', '916.976.9480x13851', '481-483-9083x37986'); +insert into owners values(4, 'tre', 'hamill', '692 jaskolski forges', 'brakusfurt', 'florida', 87304, 'marks.gail@example.org', '1-332-849-1908', '739-136-7202'); +insert into owners values(5, 'johann', 'fisher', '68118 daniel row', 'lake valentin', 'northdakota', 61019, 'zboncak.madonna@example.net', '544034-1670', '1-626-264-7659x1697'); +insert into owners values(6, 'kade', 'rippin', '51934 treutel harbor', 'lake carleyborough', 'arizona', 25609, 'margaretta.runte@example.net', '318-052-6573', '+7049217952551'); +insert into owners values(7, 'emelie', 'mertz', '2417 keara stravenue apt. 146', 'lake jennyferfort', 'newyork', 00589, 'angeline99@example.com', '058997-7627', '121.381.3316x6535'); +insert into owners values(8, 'rolando', 'prohaska', '57382 yost ridges', 'south afton', 'arkansas', 86010, 'kturner@example.net', 01802479758, '783271-6744x4507'); +insert into owners values(9, 'adelle', 'ondricka', '9212 rosenbaum lights', 'east hillardberg', 'washington', 92406, 'fschoen@example.net', '066.264.7885', '+0024323592985'); +insert into owners values(10, 'lorenz', 'nicolas', '59509 mellie mountain', 'new margaretteborough', 'southdakota', 78297, 'ymaggio@example.com', '085.557.0379x84348', '559.874.3011x989'); +insert into owners values(11, 'gay', 'feil', '60352 kayleigh crossing suite 700', 'port zackery', 'indiana', 35747, 'pearlie18@example.com', '130-796-4589x05454', '762.589.6117x1328'); +insert into owners values(12, 'orlando', 'price', '89011 kertzmann spring suite 642', 'east maribelbury', 'mississippi', 11990, 'christy49@example.org', '363.948.1090', '1-739-421-2225x38148'); +insert into owners values(13, 'cindy', 'schmitt', '6950 katherine forges apt. 630', 'beerton', 'northdakota', 36871, 'wpfeffer@example.net', '094747-5094x8134', '633.455.3045x85484'); +insert into owners values(14, 'rachelle', 'funk', '15828 spencer extensions', 'west leonard', 'maryland', 22731, 'edythe62@example.org', '1-346-655-5842x768', '257399-3116'); +insert into owners values(15, 'heather', 'hauck', '1858 jan park', 'south daisyfurt', 'pennsylvania', 22693, 'ybergstrom@example.com', '893-862-5295x61709', '341.667.8085'); + +create table dogs ( +dog_id integer, +owner_id integer, +abandoned_yn text, +breed_code text, +size_code text, +name text, +age text, +date_of_birth text, +gender text, +weight text, +date_arrived text, +date_adopted text, +date_departed text +); +insert into dogs values(1, 3, 1, 'esk', 'lge', 'kacey', 6, '2012-01-27 05:11:53', 1, 7.57, '2017-09-08 20:10:13', '2018-03-06 16:32:11', '2018-03-25 06:58:44'); +insert into dogs values(2, 11, 0, 'bul', 'lge', 'hipolito', 9, '2013-02-13 05:15:21', 0, 1.72, '2017-12-22 05:02:02', '2018-03-25 08:12:51', '2018-03-25 02:11:32'); +insert into dogs values(3, 1, 0, 'bul', 'med', 'mavis', 8, '2008-05-19 15:54:49', 1, 8.04, '2017-06-25 10:14:05', '2018-03-07 21:45:43', '2018-03-25 10:25:46'); +insert into dogs values(4, 14, 0, 'esk', 'lge', 'houston', 5, '2008-10-09 22:38:53', 0, 2.18, '2017-04-20 00:58:55', '2018-03-18 15:12:50', '2018-03-24 19:12:22'); +insert into dogs values(5, 7, 0, 'bul', 'med', 'jeffrey', 4, '2018-03-17 04:05:12', 0, 1.39, '2017-10-25 00:55:34', '2018-02-27 11:54:35', '2018-03-25 04:50:22'); +insert into dogs values(6, 5, 0, 'hus', 'med', 'merritt', 9, '2015-02-26 21:31:22', 1, 9.8, '2017-04-15 09:25:31', '2018-03-08 15:03:00', '2018-03-25 13:07:04'); +insert into dogs values(7, 3, 0, 'bul', 'med', 'narciso', 2, '2017-09-19 05:39:09', 1, 9.48, '2017-05-06 08:03:52', '2018-02-27 00:27:57', '2018-03-25 06:29:10'); +insert into dogs values(8, 14, 0, 'esk', 'sml', 'george', 2, '2013-02-20 14:50:56', 0, 8.95, '2017-10-16 20:06:21', '2018-03-23 16:02:04', '2018-03-25 02:47:40'); +insert into dogs values(9, 2, 0, 'bul', 'med', 'bessie', 4, '2012-05-31 08:01:36', 1, 3.52, '2018-01-17 11:44:16', '2018-02-25 23:45:30', '2018-03-25 06:46:07'); +insert into dogs values(10, 6, 0, 'hus', 'med', 'troy', 9, '2012-07-11 17:15:10', 0, 8.96, '2017-12-29 06:08:26', '2018-03-18 07:47:40', '2018-03-25 04:42:14'); +insert into dogs values(11, 13, 0, 'bul', 'lge', 'betty', 3, '2012-10-14 14:44:37', 0, 8.16, '2017-07-25 15:19:07', '2018-03-14 08:05:18', '2018-03-25 15:05:16'); +insert into dogs values(12, 12, 0, 'hus', 'med', 'holden', 8, '2009-04-12 06:02:48', 0, 6.92, '2017-10-24 04:45:13', '2018-03-05 06:05:23', '2018-03-25 14:15:41'); +insert into dogs values(13, 8, 0, 'hus', 'sml', 'jesus', 2, '2012-05-03 21:42:25', 0, 5.16, '2018-01-02 03:15:29', '2018-03-21 10:41:18', '2018-03-25 05:07:47'); +insert into dogs values(14, 14, 1, 'esk', 'med', 'lyric', 4, '2010-11-11 07:11:53', 0, 4.36, '2017-06-18 19:45:38', '2018-03-13 12:47:15', '2018-03-24 23:48:59'); +insert into dogs values(15, 10, 1, 'bul', 'med', 'evangeline', 1, '2008-05-30 12:51:34', 1, 4.01, '2017-12-29 23:24:13', '2018-03-10 15:06:43', '2018-03-24 19:36:59'); + +create table professionals ( +professional_id integer, +role_code text, +first_name text, +street text, +city text, +state text, +zip_code text, +last_name text, +email_address text, +home_phone text, +cell_number text +); +insert into professionals values(1, 'employee', 'taryn', '6915 oberbrunner point suite 491 gleasonville la', 'west heidi', 'indiana', 06646, 'braun', 'deanna.schuster@example.com', '+7162898266914', '275939-2435x80863'); +insert into professionals values(2, 'employee', 'jayson', '88665 terence lodge apt. 904 corneliusfort nc 194', 'north odellfurt', 'connecticut', 43129, 'ullrich', 'lucile.shanahan@example.org', '+0210259033559', '889-940-2676'); +insert into professionals values(3, 'employee', 'olaf', '68589 bradly manor new audrey in 91497', 'jaceton', 'wisconsin', 77129, 'watsica', 'uboehm@example.org', '325-155-0801x7005', '369908-7311x065'); +insert into professionals values(4, 'veterenarian', 'vernice', '72532 hane course lake berylland nd 95283', 'domenickton', 'mississippi', 02281, 'tillman', 'lourdes.lowe@example.net', '312.216.3352', 00230569697); +insert into professionals values(5, 'veterenarian', 'danny', '188 vonrueden tunnel suite 630 north macibury nv', 'new laurytown', 'hawaii', 84515, 'considine', 'mekhi.little@example.org', '1-609-566-2752x25197', '011.193.9081x3186'); +insert into professionals values(6, 'veterenarian', 'ruben', '17286 waters green east bernadinefort ca 89573', 'baileymouth', 'newmexico', 52476, 'oreilly', 'jacynthe.mclaughlin@example.net', '+4351132733868', '139-321-7313'); +insert into professionals values(7, 'veterenarian', 'velva', '44234 marvin shoals suite 659 north frances al 23', 'mclaughlinfort', 'northcarolina', 67980, 'hayes', 'lambert62@example.org', '022.529.0550x1319', '499-434-0215x1628'); +insert into professionals values(8, 'employee', 'karley', '36895 eli ferry port marcelle fl 45712', 'kirastad', 'indiana', 33020, 'hyatt', 'goyette.roosevelt@example.net', '891.475.2256', '328.842.3792'); +insert into professionals values(9, 'veterenarian', 'monte', '07073 brenna ways suite 089 lowehaven ky 93275-96', 'south rockyport', 'southcarolina', 80775, 'kshlerin', 'schneider.kathryne@example.org', '320-508-6023', '962-983-8109x3509'); +insert into professionals values(10, 'employee', 'domenica', '7284 torphy flats apt. 610 diannaburgh sc 78560', 'new maryjane', 'california', 54312, 'jacobs', 'jerrod.bahringer@example.org', '230338-3342x585', '461-801-2600'); +insert into professionals values(11, 'employee', 'brady', '09615 mckenzie stravenue apt. 128 west elliottview', 'raynorfort', 'alabama', 07412, 'pouros', 'west.eula@example.net', '920304-4499x59146', '609-405-2990'); +insert into professionals values(12, 'veterenarian', 'winfield', '92912 langworth valleys apt. 743 thompsonborough', 'juddton', 'utah', 34041, 'christiansen', 'marquardt.furman@example.org', '246-951-0080x76716', '1-181-670-9466'); +insert into professionals values(13, 'veterenarian', 'ericka', '7783 abraham alley port madelynhaven ky 59172-273', 'borisside', 'wyoming', 17902, 'murazik', 'delphine29@example.com', '346.594.3739', '880-659-7577x736'); +insert into professionals values(14, 'employee', 'sigurd', '390 bryce drive north dock la 65357-7228', 'east ila', 'connecticut', 41215, 'frami', 'cole.margarita@example.org', '971.048.3763x9404', '1-185-137-1945x409'); +insert into professionals values(15, 'employee', 'lesly', '63949 keeling landing apt. 502 johnsview sd 06780', 'north adelberttown', 'montana', 98844, 'walter', 'jeichmann@example.com', '1-138-287-3775', '1-258-285-4707x8020'); +create table treatments_treatment_types ( +treatment_id integer, +dog_id integer, +professional_id integer, +treatment_type_code text, +date_of_treatment text, +cost_of_treatment integer, +treatment_type_description text); +insert into treatments_treatment_types values(1, 14, 9, 'walk', '2018-03-19 04:39:54', 567, 'take for a walk'); +insert into treatments_treatment_types values(2, 4, 10, 'vac', '2018-03-15 20:25:34', 147, 'vaccination'); +insert into treatments_treatment_types values(3, 14, 4, 'exam', '2018-03-08 05:26:23', 429, 'physical examination'); +insert into treatments_treatment_types values(4, 2, 8, 'vac', '2018-03-01 04:14:46', 266, 'vaccination'); +insert into treatments_treatment_types values(5, 12, 14, 'vac', '2018-03-23 13:52:10', 668, 'vaccination'); +insert into treatments_treatment_types values(6, 10, 4, 'exam', '2018-03-11 04:23:15', 313, 'physical examination'); +insert into treatments_treatment_types values(7, 15, 14, 'exam', '2018-03-10 11:45:58', 852, 'physical examination'); +insert into treatments_treatment_types values(8, 2, 6, 'exam', '2018-03-24 22:25:58', 407, 'physical examination'); +insert into treatments_treatment_types values(9, 14, 10, 'walk', '2018-03-14 19:10:40', 139, 'take for a walk'); +insert into treatments_treatment_types values(10, 10, 7, 'walk', '2018-02-28 17:09:43', 681, 'take for a walk'); +insert into treatments_treatment_types values(11, 15, 5, 'vac', '2018-03-13 12:22:58', 514, 'vaccination'); +insert into treatments_treatment_types values(12, 13, 9, 'exam', '2018-03-16 10:27:36', 428, 'physical examination'); +insert into treatments_treatment_types values(13, 7, 8, 'vac', '2018-02-26 09:08:53', 945, 'vaccination'); +insert into treatments_treatment_types values(14, 10, 9, 'walk', '2018-03-04 20:33:43', 349, 'take for a walk'); +insert into treatments_treatment_types values(15, 1, 6, 'walk', '2018-03-15 19:10:02', 656, 'take for a walk'); + diff --git a/all/databases/dog_kennels_total_0/dog_kennels_total_0.sqlite b/all/databases/dog_kennels_total_0/dog_kennels_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..7484dadff895fc7a3b11eb52a5548ef34b67b75a Binary files /dev/null and b/all/databases/dog_kennels_total_0/dog_kennels_total_0.sqlite differ diff --git a/all/databases/dog_kennels_total_1/dog_kennels_total_1.sql b/all/databases/dog_kennels_total_1/dog_kennels_total_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..40f694ab8b2d10b21b90ec35f880d03f3bf86da0 --- /dev/null +++ b/all/databases/dog_kennels_total_1/dog_kennels_total_1.sql @@ -0,0 +1,153 @@ +create table breeds ( +breed_code text, +breed_name text +); +insert into breeds values('bul', 'eskimo'); +insert into breeds values('esk', 'husky'); +insert into breeds values('hus', 'bulldog'); + +create table charges ( +charge_id integer, +charge_type text, +charge_amount integer +); +insert into charges values(1, 'daily accommodation', 98); +insert into charges values(2, 'drugs', 322); +insert into charges values(3, 'health check', 640); + +create table sizes ( +size_code text, +size_description text +); +insert into sizes values('lge', 'small'); +insert into sizes values('med', 'medium'); +insert into sizes values('sml', 'large'); + +create table treatment_types ( +treatment_type_code text, +treatment_type_description text +); +insert into treatment_types values('exam', 'physical examination'); +insert into treatment_types values('vac', 'vaccination'); +insert into treatment_types values('walk', 'take for a walk'); + +create table owners ( +owner_id integer, +first_name text, +last_name text, +street text, +city text, +state text, +zip_code text, +email_address text, +home_phone text, +cell_number text +); +insert into owners values(1, 'nora', 'haley', '0647 hintz village apt. 024', 'lake tia', 'wisconsin', 93165, 'lynn81@example.org', '1-682-845-0116x63235', '478.978.0729'); +insert into owners values(2, 'melisa', 'dubuque', '1204 mae highway apt. 107', 'port reannamouth', 'virginia', 45244, 'ykris@example.com', '799563-0260x454', '722768-5439x484'); +insert into owners values(3, 'jaclyn', 'stoltenberg', '2635 caitlyn plains', 'barrettburgh', 'vermont', 02647, 'hudson.favian@example.com', '916.976.9480x13851', '481-483-9083x37986'); +insert into owners values(4, 'tre', 'hamill', '692 jaskolski forges', 'brakusfurt', 'florida', 87304, 'marks.gail@example.org', '1-332-849-1908', '739-136-7202'); +insert into owners values(5, 'johann', 'fisher', '68118 daniel row', 'lake valentin', 'northdakota', 61019, 'zboncak.madonna@example.net', '544034-1670', '1-626-264-7659x1697'); +insert into owners values(6, 'kade', 'rippin', '51934 treutel harbor', 'lake carleyborough', 'arizona', 25609, 'margaretta.runte@example.net', '318-052-6573', '+7049217952551'); +insert into owners values(7, 'emelie', 'mertz', '2417 keara stravenue apt. 146', 'lake jennyferfort', 'newyork', 00589, 'angeline99@example.com', '058997-7627', '121.381.3316x6535'); +insert into owners values(8, 'rolando', 'prohaska', '57382 yost ridges', 'south afton', 'arkansas', 86010, 'kturner@example.net', 01802479758, '783271-6744x4507'); +insert into owners values(9, 'adelle', 'ondricka', '9212 rosenbaum lights', 'east hillardberg', 'washington', 92406, 'fschoen@example.net', '066.264.7885', '+0024323592985'); +insert into owners values(10, 'lorenz', 'nicolas', '59509 mellie mountain', 'new margaretteborough', 'southdakota', 78297, 'ymaggio@example.com', '085.557.0379x84348', '559.874.3011x989'); +insert into owners values(11, 'gay', 'feil', '60352 kayleigh crossing suite 700', 'port zackery', 'indiana', 35747, 'pearlie18@example.com', '130-796-4589x05454', '762.589.6117x1328'); +insert into owners values(12, 'orlando', 'price', '89011 kertzmann spring suite 642', 'east maribelbury', 'mississippi', 11990, 'christy49@example.org', '363.948.1090', '1-739-421-2225x38148'); +insert into owners values(13, 'cindy', 'schmitt', '6950 katherine forges apt. 630', 'beerton', 'northdakota', 36871, 'wpfeffer@example.net', '094747-5094x8134', '633.455.3045x85484'); +insert into owners values(14, 'rachelle', 'funk', '15828 spencer extensions', 'west leonard', 'maryland', 22731, 'edythe62@example.org', '1-346-655-5842x768', '257399-3116'); +insert into owners values(15, 'heather', 'hauck', '1858 jan park', 'south daisyfurt', 'pennsylvania', 22693, 'ybergstrom@example.com', '893-862-5295x61709', '341.667.8085'); + +create table dogs ( +dog_id integer, +owner_id integer, +abandoned_yn text, +breed_code text, +size_code text, +name text, +age text, +date_of_birth text, +gender text, +weight text, +date_arrived text, +date_adopted text, +date_departed text +); +insert into dogs values(1, 3, 1, 'esk', 'lge', 'kacey', 6, '2012-01-27 05:11:53', 1, 7.57, '2017-09-08 20:10:13', '2018-03-06 16:32:11', '2018-03-25 06:58:44'); +insert into dogs values(2, 11, 0, 'bul', 'lge', 'hipolito', 9, '2013-02-13 05:15:21', 0, 1.72, '2017-12-22 05:02:02', '2018-03-25 08:12:51', '2018-03-25 02:11:32'); +insert into dogs values(3, 1, 0, 'bul', 'med', 'mavis', 8, '2008-05-19 15:54:49', 1, 8.04, '2017-06-25 10:14:05', '2018-03-07 21:45:43', '2018-03-25 10:25:46'); +insert into dogs values(4, 14, 0, 'esk', 'lge', 'houston', 5, '2008-10-09 22:38:53', 0, 2.18, '2017-04-20 00:58:55', '2018-03-18 15:12:50', '2018-03-24 19:12:22'); +insert into dogs values(5, 7, 0, 'bul', 'med', 'jeffrey', 4, '2018-03-17 04:05:12', 0, 1.39, '2017-10-25 00:55:34', '2018-02-27 11:54:35', '2018-03-25 04:50:22'); +insert into dogs values(6, 5, 0, 'hus', 'med', 'merritt', 9, '2015-02-26 21:31:22', 1, 9.8, '2017-04-15 09:25:31', '2018-03-08 15:03:00', '2018-03-25 13:07:04'); +insert into dogs values(7, 3, 0, 'bul', 'med', 'narciso', 2, '2017-09-19 05:39:09', 1, 9.48, '2017-05-06 08:03:52', '2018-02-27 00:27:57', '2018-03-25 06:29:10'); +insert into dogs values(8, 14, 0, 'esk', 'sml', 'george', 2, '2013-02-20 14:50:56', 0, 8.95, '2017-10-16 20:06:21', '2018-03-23 16:02:04', '2018-03-25 02:47:40'); +insert into dogs values(9, 2, 0, 'bul', 'med', 'bessie', 4, '2012-05-31 08:01:36', 1, 3.52, '2018-01-17 11:44:16', '2018-02-25 23:45:30', '2018-03-25 06:46:07'); +insert into dogs values(10, 6, 0, 'hus', 'med', 'troy', 9, '2012-07-11 17:15:10', 0, 8.96, '2017-12-29 06:08:26', '2018-03-18 07:47:40', '2018-03-25 04:42:14'); +insert into dogs values(11, 13, 0, 'bul', 'lge', 'betty', 3, '2012-10-14 14:44:37', 0, 8.16, '2017-07-25 15:19:07', '2018-03-14 08:05:18', '2018-03-25 15:05:16'); +insert into dogs values(12, 12, 0, 'hus', 'med', 'holden', 8, '2009-04-12 06:02:48', 0, 6.92, '2017-10-24 04:45:13', '2018-03-05 06:05:23', '2018-03-25 14:15:41'); +insert into dogs values(13, 8, 0, 'hus', 'sml', 'jesus', 2, '2012-05-03 21:42:25', 0, 5.16, '2018-01-02 03:15:29', '2018-03-21 10:41:18', '2018-03-25 05:07:47'); +insert into dogs values(14, 14, 1, 'esk', 'med', 'lyric', 4, '2010-11-11 07:11:53', 0, 4.36, '2017-06-18 19:45:38', '2018-03-13 12:47:15', '2018-03-24 23:48:59'); +insert into dogs values(15, 10, 1, 'bul', 'med', 'evangeline', 1, '2008-05-30 12:51:34', 1, 4.01, '2017-12-29 23:24:13', '2018-03-10 15:06:43', '2018-03-24 19:36:59'); +create table professionals_treatments ( +professional_id integer, +role_code text, +first_name text, +street text, +city text, +state text, +zip_code text, +last_name text, +email_address text, +home_phone text, +cell_number text, +treatment_id integer, +dog_id integer, +treatment_type_code text, +date_of_treatment text, +cost_of_treatment integer); +insert into professionals_treatments values(1, 'employee', 'taryn', '6915 oberbrunner point suite 491 +gleasonville la', 'west heidi', 'indiana', '06646', 'braun', 'deanna.schuster@example.com', '+7162898266914', '275939-2435x80863', 'None', 'None', 'None', 'None', 'None'); +insert into professionals_treatments values(2, 'employee', 'jayson', '88665 terence lodge apt. 904 +corneliusfort nc 194', 'north odellfurt', 'connecticut', '43129', 'ullrich', 'lucile.shanahan@example.org', '+0210259033559', '889-940-2676', 'None', 'None', 'None', 'None', 'None'); +insert into professionals_treatments values(3, 'employee', 'olaf', '68589 bradly manor +new audrey in 91497', 'jaceton', 'wisconsin', '77129', 'watsica', 'uboehm@example.org', '325-155-0801x7005', '369908-7311x065', 'None', 'None', 'None', 'None', 'None'); +insert into professionals_treatments values(4, 'veterenarian', 'vernice', '72532 hane course +lake berylland nd 95283', 'domenickton', 'mississippi', '02281', 'tillman', 'lourdes.lowe@example.net', '312.216.3352', '00230569697', 3, 14, 'exam', '2018-03-08 05:26:23', 429); +insert into professionals_treatments values(4, 'veterenarian', 'vernice', '72532 hane course +lake berylland nd 95283', 'domenickton', 'mississippi', '02281', 'tillman', 'lourdes.lowe@example.net', '312.216.3352', '00230569697', 6, 10, 'exam', '2018-03-11 04:23:15', 313); +insert into professionals_treatments values(5, 'veterenarian', 'danny', '188 vonrueden tunnel suite 630 +north macibury nv', 'new laurytown', 'hawaii', '84515', 'considine', 'mekhi.little@example.org', '1-609-566-2752x25197', '011.193.9081x3186', 11, 15, 'vac', '2018-03-13 12:22:58', 514); +insert into professionals_treatments values(6, 'veterenarian', 'ruben', '17286 waters green +east bernadinefort ca 89573', 'baileymouth', 'newmexico', '52476', 'oreilly', 'jacynthe.mclaughlin@example.net', '+4351132733868', '139-321-7313', 8, 2, 'exam', '2018-03-24 22:25:58', 407); +insert into professionals_treatments values(6, 'veterenarian', 'ruben', '17286 waters green +east bernadinefort ca 89573', 'baileymouth', 'newmexico', '52476', 'oreilly', 'jacynthe.mclaughlin@example.net', '+4351132733868', '139-321-7313', 15, 1, 'walk', '2018-03-15 19:10:02', 656); +insert into professionals_treatments values(7, 'veterenarian', 'velva', '44234 marvin shoals suite 659 +north frances al 23', 'mclaughlinfort', 'northcarolina', '67980', 'hayes', 'lambert62@example.org', '022.529.0550x1319', '499-434-0215x1628', 10, 10, 'walk', '2018-02-28 17:09:43', 681); +insert into professionals_treatments values(8, 'employee', 'karley', '36895 eli ferry +port marcelle fl 45712', 'kirastad', 'indiana', '33020', 'hyatt', 'goyette.roosevelt@example.net', '891.475.2256', '328.842.3792', 4, 2, 'vac', '2018-03-01 04:14:46', 266); +insert into professionals_treatments values(8, 'employee', 'karley', '36895 eli ferry +port marcelle fl 45712', 'kirastad', 'indiana', '33020', 'hyatt', 'goyette.roosevelt@example.net', '891.475.2256', '328.842.3792', 13, 7, 'vac', '2018-02-26 09:08:53', 945); +insert into professionals_treatments values(9, 'veterenarian', 'monte', '07073 brenna ways suite 089 +lowehaven ky 93275-96', 'south rockyport', 'southcarolina', '80775', 'kshlerin', 'schneider.kathryne@example.org', '320-508-6023', '962-983-8109x3509', 1, 14, 'walk', '2018-03-19 04:39:54', 567); +insert into professionals_treatments values(9, 'veterenarian', 'monte', '07073 brenna ways suite 089 +lowehaven ky 93275-96', 'south rockyport', 'southcarolina', '80775', 'kshlerin', 'schneider.kathryne@example.org', '320-508-6023', '962-983-8109x3509', 12, 13, 'exam', '2018-03-16 10:27:36', 428); +insert into professionals_treatments values(9, 'veterenarian', 'monte', '07073 brenna ways suite 089 +lowehaven ky 93275-96', 'south rockyport', 'southcarolina', '80775', 'kshlerin', 'schneider.kathryne@example.org', '320-508-6023', '962-983-8109x3509', 14, 10, 'walk', '2018-03-04 20:33:43', 349); +insert into professionals_treatments values(10, 'employee', 'domenica', '7284 torphy flats apt. 610 +diannaburgh sc 78560', 'new maryjane', 'california', '54312', 'jacobs', 'jerrod.bahringer@example.org', '230338-3342x585', '461-801-2600', 2, 4, 'vac', '2018-03-15 20:25:34', 147); +insert into professionals_treatments values(10, 'employee', 'domenica', '7284 torphy flats apt. 610 +diannaburgh sc 78560', 'new maryjane', 'california', '54312', 'jacobs', 'jerrod.bahringer@example.org', '230338-3342x585', '461-801-2600', 9, 14, 'walk', '2018-03-14 19:10:40', 139); +insert into professionals_treatments values(11, 'employee', 'brady', '09615 mckenzie stravenue apt. 128 +west elliottview', 'raynorfort', 'alabama', '07412', 'pouros', 'west.eula@example.net', '920304-4499x59146', '609-405-2990', 'None', 'None', 'None', 'None', 'None'); +insert into professionals_treatments values(12, 'veterenarian', 'winfield', '92912 langworth valleys apt. 743 +thompsonborough', 'juddton', 'utah', '34041', 'christiansen', 'marquardt.furman@example.org', '246-951-0080x76716', '1-181-670-9466', 'None', 'None', 'None', 'None', 'None'); +insert into professionals_treatments values(13, 'veterenarian', 'ericka', '7783 abraham alley +port madelynhaven ky 59172-273', 'borisside', 'wyoming', '17902', 'murazik', 'delphine29@example.com', '346.594.3739', '880-659-7577x736', 'None', 'None', 'None', 'None', 'None'); +insert into professionals_treatments values(14, 'employee', 'sigurd', '390 bryce drive +north dock la 65357-7228', 'east ila', 'connecticut', '41215', 'frami', 'cole.margarita@example.org', '971.048.3763x9404', '1-185-137-1945x409', 5, 12, 'vac', '2018-03-23 13:52:10', 668); +insert into professionals_treatments values(14, 'employee', 'sigurd', '390 bryce drive +north dock la 65357-7228', 'east ila', 'connecticut', '41215', 'frami', 'cole.margarita@example.org', '971.048.3763x9404', '1-185-137-1945x409', 7, 15, 'exam', '2018-03-10 11:45:58', 852); +insert into professionals_treatments values(15, 'employee', 'lesly', '63949 keeling landing apt. 502 +johnsview sd 06780', 'north adelberttown', 'montana', '98844', 'walter', 'jeichmann@example.com', '1-138-287-3775', '1-258-285-4707x8020', 'None', 'None', 'None', 'None', 'None'); + diff --git a/all/databases/dog_kennels_total_1/dog_kennels_total_1.sqlite b/all/databases/dog_kennels_total_1/dog_kennels_total_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..6bee1054ce9413f3ec8e0baa5de2e52e074aedeb Binary files /dev/null and b/all/databases/dog_kennels_total_1/dog_kennels_total_1.sqlite differ diff --git a/all/databases/farm/farm.sql b/all/databases/farm/farm.sql new file mode 100644 index 0000000000000000000000000000000000000000..a573f5e97e691b27310a1b5ffbec2881c76ca7a4 --- /dev/null +++ b/all/databases/farm/farm.sql @@ -0,0 +1,73 @@ +CREATE TABLE "city" ( +"city_id" integer, +"official_name" text, +"status" text, +"area_km_2" real, +"population" real, +"census_ranking" text +); + +INSERT INTO city VALUES (1, "grand falls/grand-sault", "town", 18.06, 5706.0, "636 of 5008"); +INSERT INTO city VALUES (2, "perth-andover", "village", 8.89, 1778.0, "1442 of 5008"); +INSERT INTO city VALUES (3, "plaster rock", "village", 3.09, 1135.0, "1936 of 5008"); +INSERT INTO city VALUES (4, "drummond", "village", 8.91, 775.0, "2418 of 5008"); +INSERT INTO city VALUES (5, "aroostook", "village", 2.24, 351.0, "3460 of 5008"); + +CREATE TABLE "farm" ( +"farm_id" integer, +"year" integer, +"total_horses" real, +"working_horses" real, +"total_cattle" real, +"oxen" real, +"bulls" real, +"cows" real, +"pigs" real, +"sheep_and_goats" real +); + +INSERT INTO farm VALUES (1, 1927, 5056.5, 3900.1, 8374.5, 805.5, 31.6, 3852.1, 4412.4, 7956.3); +INSERT INTO farm VALUES (2, 1928, 5486.9, 4090.5, 8604.8, 895.3, 32.8, 3987.0, 6962.9, 8112.2); +INSERT INTO farm VALUES (3, 1929, 5607.5, 4198.8, 7611.0, 593.7, 26.9, 3873.0, 4161.2, 7030.8); +INSERT INTO farm VALUES (4, 1930, 5308.2, 3721.6, 6274.1, 254.8, 49.6, 3471.6, 3171.8, 4533.4); +INSERT INTO farm VALUES (5, 1931, 4781.3, 3593.7, 6189.5, 113.8, 40.0, 3377.0, 3373.3, 3364.8); +INSERT INTO farm VALUES (6, 1932, 3658.9, 3711.6, 5006.7, 105.2, 71.6, 2739.5, 2623.7, 2109.5); +INSERT INTO farm VALUES (7, 1933, 2604.8, 3711.2, 4446.3, 116.9, 37.6, 2407.2, 2089.2, 2004.7); +INSERT INTO farm VALUES (8, 1934, 2546.9, 2197.3, 5277.5, 156.5, 46.7, 2518.0, 4236.7, 2197.1); + +CREATE TABLE "farm_competition" ( +"competition_id" integer, +"year" integer, +"theme" text, +"host_city_id" integer, +"hosts" text +); + +INSERT INTO farm_competition VALUES (1, 2013, "carnival m is back!", 1, "miley cyrus jared leto and karen mok"); +INSERT INTO farm_competition VALUES (2, 2006, "codehunters", 2, "leehom wang and kelly rowland"); +INSERT INTO farm_competition VALUES (3, 2005, "mtv asia aid", 3, "alicia keys"); +INSERT INTO farm_competition VALUES (4, 2004, "valentines day", 4, "vanness wu and michelle branch"); +INSERT INTO farm_competition VALUES (5, 2003, "mtv cube", 5, "shaggy and coco lee"); +INSERT INTO farm_competition VALUES (6, 2002, "aliens", 5, "mandy moore and ronan keating"); + +CREATE TABLE "competition_record" ( +"competition_id" integer, +"farm_id" integer, +"rank" integer +); + +INSERT INTO competition_record VALUES (1, 2, 1); +INSERT INTO competition_record VALUES (1, 3, 2); +INSERT INTO competition_record VALUES (1, 8, 3); +INSERT INTO competition_record VALUES (2, 1, 3); +INSERT INTO competition_record VALUES (2, 3, 1); +INSERT INTO competition_record VALUES (2, 4, 2); +INSERT INTO competition_record VALUES (3, 1, 1); +INSERT INTO competition_record VALUES (3, 7, 3); +INSERT INTO competition_record VALUES (4, 1, 2); +INSERT INTO competition_record VALUES (4, 3, 4); +INSERT INTO competition_record VALUES (5, 3, 1); +INSERT INTO competition_record VALUES (5, 5, 2); + + +COMMIT; diff --git a/all/databases/farm/farm.sqlite b/all/databases/farm/farm.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..cb07530a259139e1a2794bb0f191d545eef63ac9 Binary files /dev/null and b/all/databases/farm/farm.sqlite differ diff --git a/all/databases/flight_1/flight_1.sql b/all/databases/flight_1/flight_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..03fd439d134305112deb8bb07a86dc803392b306 --- /dev/null +++ b/all/databases/flight_1/flight_1.sql @@ -0,0 +1,160 @@ +CREATE TABLE "flight" ( +"flno" integer, +"origin" text, +"destination" text, +"distance" integer, +"departure_date" text, +"arrival_date" text, +"price" real, +"aid" integer +); + +INSERT INTO flight VALUES (2, "los angeles", "washington d.c.", 2308, "04/12/2005 09:30", "04/12/2005 09:40", 235.98, 1); +INSERT INTO flight VALUES (7, "los angeles", "chicago", 1749, "04/12/2005 08:45", "04/12/2005 08:45", 220.98, 3); +INSERT INTO flight VALUES (13, "los angeles", "dallas", 1251, "04/12/2005 11:50", "04/12/2005 07:05", 182, 2); +INSERT INTO flight VALUES (33, "los angeles", "boston", 2606, "04/12/2005 07:03", "04/12/2005 05:03", 261.56, 6); +INSERT INTO flight VALUES (34, "los angeles", "sydney", 7487, "04/12/2005 05:30", "04/12/2005 11:10", 278.56, 3); +INSERT INTO flight VALUES (68, "los angeles", "tokyo", 5478, "04/12/2005 06:30", "04/12/2005 03:55", 780.99, 9); +INSERT INTO flight VALUES (76, "los angeles", "honolulu", 2551, "04/12/2005 09:15", "04/12/2005 11:15", 375.23, 7); +INSERT INTO flight VALUES (99, "los angeles", "honolulu", 2551, "04/12/2005 12:45", "04/12/2005 03:18", 425.98, 5); +INSERT INTO flight VALUES (346, "chicago", "los angeles", 1749, "04/12/2005 08:32", "04/12/2005 10:03", 220.98, 9); +INSERT INTO flight VALUES (387, "chicago", "new york", 802, "04/12/2005 09:00", "04/12/2005 12:02", 202.45, 10); + +CREATE TABLE "aircraft" ( +"aid" integer, +"name" text, +"distance" integer +); + +INSERT INTO aircraft VALUES (1, "boeing 747-400", 8430); +INSERT INTO aircraft VALUES (2, "boeing 737-800", 3383); +INSERT INTO aircraft VALUES (3, "airbus a340-300", 7120); +INSERT INTO aircraft VALUES (4, "british aerospace jetstream 41", 1502); +INSERT INTO aircraft VALUES (5, "embraer erj-145", 1530); +INSERT INTO aircraft VALUES (6, "saab 340", 2128); +INSERT INTO aircraft VALUES (7, "piper archer iii", 520); +INSERT INTO aircraft VALUES (8, "tupolev 154", 4103); +INSERT INTO aircraft VALUES (9, "schwitzer 2-33", 30); +INSERT INTO aircraft VALUES (10, "lockheed l1011", 6900); +INSERT INTO aircraft VALUES (11, "boeing 757-300", 4010); +INSERT INTO aircraft VALUES (12, "boeing 777-300", 6441); +INSERT INTO aircraft VALUES (13, "boeing 767-400er", 6475); +INSERT INTO aircraft VALUES (14, "airbus a320", 2605); +INSERT INTO aircraft VALUES (15, "airbus a319", 1805); +INSERT INTO aircraft VALUES (16, "boeing 727", 1504); + +CREATE TABLE "employee" ( +"eid" integer, +"name" text, +"salary" integer +); + +INSERT INTO employee VALUES (11564812, "james smith", 120433); +INSERT INTO employee VALUES (15645489, "mary johnson", 178345); +INSERT INTO employee VALUES (90873519, "john williams", 153972); +INSERT INTO employee VALUES (141582651, "lisa walker", 256481); +INSERT INTO employee VALUES (142519864, "larry west", 101745); +INSERT INTO employee VALUES (159542516, "karen scott", 205187); +INSERT INTO employee VALUES (242518965, "lawrence sperry", 212156); +INSERT INTO employee VALUES (248965255, "michael miller", 99890); +INSERT INTO employee VALUES (254099823, "patricia jones", 24450); +INSERT INTO employee VALUES (269734834, "robert brown", 44740); +INSERT INTO employee VALUES (274878974, "angela martinez", 212156); +INSERT INTO employee VALUES (287321212, "joseph thompson", 212156); +INSERT INTO employee VALUES (310454876, "linda davis", 27984); +INSERT INTO employee VALUES (310454877, "richard jackson", 23980); +INSERT INTO employee VALUES (348121549, "william ward", 84476); +INSERT INTO employee VALUES (355548984, "chad stewart", 33546); +INSERT INTO employee VALUES (356187925, "betty adams", 227489); +INSERT INTO employee VALUES (390487451, "george wright", 289950); +INSERT INTO employee VALUES (486512566, "michael miller", 48090); +INSERT INTO employee VALUES (489221823, "dorthy lewis", 152013); +INSERT INTO employee VALUES (489456522, "barbara wilson", 43723); +INSERT INTO employee VALUES (548977562, "william moore", 48250); +INSERT INTO employee VALUES (550156548, "haywood kelly", 32899); +INSERT INTO employee VALUES (552455318, "elizabeth taylor", 32021); +INSERT INTO employee VALUES (552455348, "david anderson", 43001); +INSERT INTO employee VALUES (556784565, "jennifer thomas", 54921); +INSERT INTO employee VALUES (567354612, "donald king", 18050); +INSERT INTO employee VALUES (573284895, "mark young", 205187); +INSERT INTO employee VALUES (574489456, "eric cooper", 114323); +INSERT INTO employee VALUES (574489457, "william jones", 105743); +INSERT INTO employee VALUES (619023588, "milo brooks", 20); + +CREATE TABLE "certificate" ( +"eid" integer, +"aid" integer +); + +INSERT INTO certificate VALUES (11564812, 2); +INSERT INTO certificate VALUES (11564812, 10); +INSERT INTO certificate VALUES (90873519, 6); +INSERT INTO certificate VALUES (141582651, 2); +INSERT INTO certificate VALUES (141582651, 10); +INSERT INTO certificate VALUES (141582651, 12); +INSERT INTO certificate VALUES (142519864, 1); +INSERT INTO certificate VALUES (142519864, 2); +INSERT INTO certificate VALUES (142519864, 3); +INSERT INTO certificate VALUES (142519864, 7); +INSERT INTO certificate VALUES (142519864, 10); +INSERT INTO certificate VALUES (142519864, 11); +INSERT INTO certificate VALUES (142519864, 12); +INSERT INTO certificate VALUES (142519864, 13); +INSERT INTO certificate VALUES (159542516, 5); +INSERT INTO certificate VALUES (159542516, 7); +INSERT INTO certificate VALUES (242518965, 2); +INSERT INTO certificate VALUES (242518965, 10); +INSERT INTO certificate VALUES (269734834, 1); +INSERT INTO certificate VALUES (269734834, 2); +INSERT INTO certificate VALUES (269734834, 3); +INSERT INTO certificate VALUES (269734834, 4); +INSERT INTO certificate VALUES (269734834, 5); +INSERT INTO certificate VALUES (269734834, 6); +INSERT INTO certificate VALUES (269734834, 7); +INSERT INTO certificate VALUES (269734834, 8); +INSERT INTO certificate VALUES (269734834, 9); +INSERT INTO certificate VALUES (269734834, 10); +INSERT INTO certificate VALUES (269734834, 11); +INSERT INTO certificate VALUES (269734834, 12); +INSERT INTO certificate VALUES (269734834, 13); +INSERT INTO certificate VALUES (269734834, 14); +INSERT INTO certificate VALUES (269734834, 15); +INSERT INTO certificate VALUES (274878974, 10); +INSERT INTO certificate VALUES (274878974, 12); +INSERT INTO certificate VALUES (310454876, 8); +INSERT INTO certificate VALUES (310454876, 9); +INSERT INTO certificate VALUES (355548984, 8); +INSERT INTO certificate VALUES (355548984, 9); +INSERT INTO certificate VALUES (356187925, 6); +INSERT INTO certificate VALUES (390487451, 3); +INSERT INTO certificate VALUES (390487451, 13); +INSERT INTO certificate VALUES (390487451, 14); +INSERT INTO certificate VALUES (548977562, 7); +INSERT INTO certificate VALUES (550156548, 1); +INSERT INTO certificate VALUES (550156548, 12); +INSERT INTO certificate VALUES (552455318, 2); +INSERT INTO certificate VALUES (552455318, 7); +INSERT INTO certificate VALUES (552455318, 14); +INSERT INTO certificate VALUES (556784565, 2); +INSERT INTO certificate VALUES (556784565, 3); +INSERT INTO certificate VALUES (556784565, 5); +INSERT INTO certificate VALUES (567354612, 1); +INSERT INTO certificate VALUES (567354612, 2); +INSERT INTO certificate VALUES (567354612, 3); +INSERT INTO certificate VALUES (567354612, 4); +INSERT INTO certificate VALUES (567354612, 5); +INSERT INTO certificate VALUES (567354612, 7); +INSERT INTO certificate VALUES (567354612, 9); +INSERT INTO certificate VALUES (567354612, 10); +INSERT INTO certificate VALUES (567354612, 11); +INSERT INTO certificate VALUES (567354612, 12); +INSERT INTO certificate VALUES (567354612, 15); +INSERT INTO certificate VALUES (573284895, 3); +INSERT INTO certificate VALUES (573284895, 4); +INSERT INTO certificate VALUES (573284895, 5); +INSERT INTO certificate VALUES (574489456, 6); +INSERT INTO certificate VALUES (574489456, 8); +INSERT INTO certificate VALUES (574489457, 7); + + +COMMIT; diff --git a/all/databases/flight_1/flight_1.sqlite b/all/databases/flight_1/flight_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..f45ccc706fc908cba8751cbe32d221542185df86 Binary files /dev/null and b/all/databases/flight_1/flight_1.sqlite differ diff --git a/all/databases/flight_1_minus_1_0/flight_1_minus_1_0.sql b/all/databases/flight_1_minus_1_0/flight_1_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..9b2ac7e12d7f047cee706f1f68fde342c06006a7 --- /dev/null +++ b/all/databases/flight_1_minus_1_0/flight_1_minus_1_0.sql @@ -0,0 +1,128 @@ +create table flight ( +flno integer, +origin text, +destination text, +distance integer, +departure_date text, +arrival_date text, +price real, +aid integer +); +insert into flight values(2, 'los angeles', 'washington d.c.', 2308, '04/12/2005 09:30', '04/12/2005 09:40', 235.98, 1); +insert into flight values(7, 'los angeles', 'chicago', 1749, '04/12/2005 08:45', '04/12/2005 08:45', 220.98, 3); +insert into flight values(13, 'los angeles', 'dallas', 1251, '04/12/2005 11:50', '04/12/2005 07:05', 182, 2); +insert into flight values(33, 'los angeles', 'boston', 2606, '04/12/2005 07:03', '04/12/2005 05:03', 261.56, 6); +insert into flight values(34, 'los angeles', 'sydney', 7487, '04/12/2005 05:30', '04/12/2005 11:10', 278.56, 3); +insert into flight values(68, 'los angeles', 'tokyo', 5478, '04/12/2005 06:30', '04/12/2005 03:55', 780.99, 9); +insert into flight values(76, 'los angeles', 'honolulu', 2551, '04/12/2005 09:15', '04/12/2005 11:15', 375.23, 7); +insert into flight values(99, 'los angeles', 'honolulu', 2551, '04/12/2005 12:45', '04/12/2005 03:18', 425.98, 5); +insert into flight values(346, 'chicago', 'los angeles', 1749, '04/12/2005 08:32', '04/12/2005 10:03', 220.98, 9); +insert into flight values(387, 'chicago', 'new york', 802, '04/12/2005 09:00', '04/12/2005 12:02', 202.45, 10); + +create table aircraft ( +aid integer, +name text, +distance integer +); +insert into aircraft values(1, 'boeing 747-400', 8430); +insert into aircraft values(2, 'boeing 737-800', 3383); +insert into aircraft values(3, 'airbus a340-300', 7120); +insert into aircraft values(4, 'british aerospace jetstream 41', 1502); +insert into aircraft values(5, 'embraer erj-145', 1530); +insert into aircraft values(6, 'saab 340', 2128); +insert into aircraft values(7, 'piper archer iii', 520); +insert into aircraft values(8, 'tupolev 154', 4103); +insert into aircraft values(9, 'schwitzer 2-33', 30); +insert into aircraft values(10, 'lockheed l1011', 6900); +insert into aircraft values(11, 'boeing 757-300', 4010); +insert into aircraft values(12, 'boeing 777-300', 6441); +insert into aircraft values(13, 'boeing 767-400er', 6475); +insert into aircraft values(14, 'airbus a320', 2605); +insert into aircraft values(15, 'airbus a319', 1805); +insert into aircraft values(16, 'boeing 727', 1504); +create table employee_certificate ( +eid integer, +name text, +salary integer, +aid integer); +insert into employee_certificate values(11564812, 'james smith', 120433, 2); +insert into employee_certificate values(11564812, 'james smith', 120433, 10); +insert into employee_certificate values(15645489, 'mary johnson', 178345, 'None'); +insert into employee_certificate values(90873519, 'john williams', 153972, 6); +insert into employee_certificate values(141582651, 'lisa walker', 256481, 2); +insert into employee_certificate values(141582651, 'lisa walker', 256481, 10); +insert into employee_certificate values(141582651, 'lisa walker', 256481, 12); +insert into employee_certificate values(142519864, 'larry west', 101745, 1); +insert into employee_certificate values(142519864, 'larry west', 101745, 2); +insert into employee_certificate values(142519864, 'larry west', 101745, 3); +insert into employee_certificate values(142519864, 'larry west', 101745, 7); +insert into employee_certificate values(142519864, 'larry west', 101745, 10); +insert into employee_certificate values(142519864, 'larry west', 101745, 11); +insert into employee_certificate values(142519864, 'larry west', 101745, 12); +insert into employee_certificate values(142519864, 'larry west', 101745, 13); +insert into employee_certificate values(159542516, 'karen scott', 205187, 5); +insert into employee_certificate values(159542516, 'karen scott', 205187, 7); +insert into employee_certificate values(242518965, 'lawrence sperry', 212156, 2); +insert into employee_certificate values(242518965, 'lawrence sperry', 212156, 10); +insert into employee_certificate values(248965255, 'michael miller', 99890, 'None'); +insert into employee_certificate values(254099823, 'patricia jones', 24450, 'None'); +insert into employee_certificate values(269734834, 'robert brown', 44740, 1); +insert into employee_certificate values(269734834, 'robert brown', 44740, 2); +insert into employee_certificate values(269734834, 'robert brown', 44740, 3); +insert into employee_certificate values(269734834, 'robert brown', 44740, 4); +insert into employee_certificate values(269734834, 'robert brown', 44740, 5); +insert into employee_certificate values(269734834, 'robert brown', 44740, 6); +insert into employee_certificate values(269734834, 'robert brown', 44740, 7); +insert into employee_certificate values(269734834, 'robert brown', 44740, 8); +insert into employee_certificate values(269734834, 'robert brown', 44740, 9); +insert into employee_certificate values(269734834, 'robert brown', 44740, 10); +insert into employee_certificate values(269734834, 'robert brown', 44740, 11); +insert into employee_certificate values(269734834, 'robert brown', 44740, 12); +insert into employee_certificate values(269734834, 'robert brown', 44740, 13); +insert into employee_certificate values(269734834, 'robert brown', 44740, 14); +insert into employee_certificate values(269734834, 'robert brown', 44740, 15); +insert into employee_certificate values(274878974, 'angela martinez', 212156, 10); +insert into employee_certificate values(274878974, 'angela martinez', 212156, 12); +insert into employee_certificate values(287321212, 'joseph thompson', 212156, 'None'); +insert into employee_certificate values(310454876, 'linda davis', 27984, 8); +insert into employee_certificate values(310454876, 'linda davis', 27984, 9); +insert into employee_certificate values(310454877, 'richard jackson', 23980, 'None'); +insert into employee_certificate values(348121549, 'william ward', 84476, 'None'); +insert into employee_certificate values(355548984, 'chad stewart', 33546, 8); +insert into employee_certificate values(355548984, 'chad stewart', 33546, 9); +insert into employee_certificate values(356187925, 'betty adams', 227489, 6); +insert into employee_certificate values(390487451, 'george wright', 289950, 3); +insert into employee_certificate values(390487451, 'george wright', 289950, 13); +insert into employee_certificate values(390487451, 'george wright', 289950, 14); +insert into employee_certificate values(486512566, 'michael miller', 48090, 'None'); +insert into employee_certificate values(489221823, 'dorthy lewis', 152013, 'None'); +insert into employee_certificate values(489456522, 'barbara wilson', 43723, 'None'); +insert into employee_certificate values(548977562, 'william moore', 48250, 7); +insert into employee_certificate values(550156548, 'haywood kelly', 32899, 1); +insert into employee_certificate values(550156548, 'haywood kelly', 32899, 12); +insert into employee_certificate values(552455318, 'elizabeth taylor', 32021, 2); +insert into employee_certificate values(552455318, 'elizabeth taylor', 32021, 7); +insert into employee_certificate values(552455318, 'elizabeth taylor', 32021, 14); +insert into employee_certificate values(552455348, 'david anderson', 43001, 'None'); +insert into employee_certificate values(556784565, 'jennifer thomas', 54921, 2); +insert into employee_certificate values(556784565, 'jennifer thomas', 54921, 3); +insert into employee_certificate values(556784565, 'jennifer thomas', 54921, 5); +insert into employee_certificate values(567354612, 'donald king', 18050, 1); +insert into employee_certificate values(567354612, 'donald king', 18050, 2); +insert into employee_certificate values(567354612, 'donald king', 18050, 3); +insert into employee_certificate values(567354612, 'donald king', 18050, 4); +insert into employee_certificate values(567354612, 'donald king', 18050, 5); +insert into employee_certificate values(567354612, 'donald king', 18050, 7); +insert into employee_certificate values(567354612, 'donald king', 18050, 9); +insert into employee_certificate values(567354612, 'donald king', 18050, 10); +insert into employee_certificate values(567354612, 'donald king', 18050, 11); +insert into employee_certificate values(567354612, 'donald king', 18050, 12); +insert into employee_certificate values(567354612, 'donald king', 18050, 15); +insert into employee_certificate values(573284895, 'mark young', 205187, 3); +insert into employee_certificate values(573284895, 'mark young', 205187, 4); +insert into employee_certificate values(573284895, 'mark young', 205187, 5); +insert into employee_certificate values(574489456, 'eric cooper', 114323, 6); +insert into employee_certificate values(574489456, 'eric cooper', 114323, 8); +insert into employee_certificate values(574489457, 'william jones', 105743, 7); +insert into employee_certificate values(619023588, 'milo brooks', 20, 'None'); + diff --git a/all/databases/flight_1_minus_1_0/flight_1_minus_1_0.sqlite b/all/databases/flight_1_minus_1_0/flight_1_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..adf0fb7fa3cc725f89a427a1744d372dbed4d3a7 Binary files /dev/null and b/all/databases/flight_1_minus_1_0/flight_1_minus_1_0.sqlite differ diff --git a/all/databases/flight_2_total_0/flight_2_total_0.sql b/all/databases/flight_2_total_0/flight_2_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..f91074af0d90d8a4c23d4e2eb7b755196079ebca --- /dev/null +++ b/all/databases/flight_2_total_0/flight_2_total_0.sql @@ -0,0 +1,227 @@ +create table airports ( +city text, +airportcode text, +airportname text, +country text, +countryabbrev text +); +insert into airports values('aberdeen', 'aaf', 'phillips aaf', 'united states', 'us'); +insert into airports values('aberdeen', 'abi', 'municipal', 'united states', 'us'); +insert into airports values('abilene', 'abl', 'dyess afb', 'united states', 'us'); +insert into airports values('abilene', 'abq', 'municipal', 'united states', 'us'); +insert into airports values('abingdon', 'abr', 'virginia highlands', 'united states', 'us'); +insert into airports values('ada', 'aby', 'ada', 'united states', 'us'); +insert into airports values('adak island', 'acv', 'adak island ns', 'united states', 'us'); +insert into airports values('adrian', 'adg', 'lenawee county', 'united states', 'us'); +insert into airports values('afton', 'adk', 'municipal', 'united states', 'us'); +insert into airports values('aiken', 'adm', 'municipal', 'united states', 'us'); +insert into airports values('ainsworth', 'adr', 'ainsworth', 'united states', 'us'); +insert into airports values('akhiok', 'adt', 'akhiok spb', 'united states', 'us'); +insert into airports values('akiachak', 'aed', 'spb', 'united states', 'us'); +insert into airports values('akiak', 'ael', 'akiak', 'united states', 'us'); +insert into airports values('akron co', 'aet', 'colorado plains regional airport', 'united states', 'us'); +insert into airports values('akron/canton oh', 'aex', 'akron/canton regional', 'united states', 'us'); +insert into airports values('akron/canton', 'afo', 'fulton international', 'united states', 'us'); +insert into airports values('akutan', 'agn', 'akutan', 'united states', 'us'); +insert into airports values('alakanuk', 'ahd', 'alakanuk', 'united states', 'us'); +insert into airports values('alameda', 'ahf', 'nas', 'united states', 'us'); +insert into airports values('alamogordo', 'ahh', 'holloman afb', 'united states', 'us'); +insert into airports values('alamogordo', 'ahn', 'municipal', 'united states', 'us'); +insert into airports values('alamosa', 'aht', 'municipal', 'united states', 'us'); +insert into airports values('albany', 'aia', 'albany nas', 'united states', 'us'); +insert into airports values('albany', 'aib', 'dougherty county', 'united states', 'us'); +insert into airports values('albany', 'aid', 'albany international', 'united states', 'us'); +insert into airports values('albany', 'aik', 'albany', 'united states', 'us'); +insert into airports values('albert lea', 'aiv', 'albert lea', 'united states', 'us'); +insert into airports values('albuquerque', 'akc', 'albuquerque international', 'united states', 'us'); +insert into airports values('aleknagik', 'aki', 'aleknagik', 'united states', 'us'); +insert into airports values('aleneva', 'akk', 'aleneva', 'united states', 'us'); +insert into airports values('alexander city al', 'ako', 'thomas c russell fld', 'united states', 'us'); +insert into airports values('alexandria la', 'akp', 'alexandria international', 'united states', 'us'); +insert into airports values('alexandria', 'alb', 'esler field', 'united states', 'us'); +insert into airports values('alexandria', 'ale', 'alexandria', 'united states', 'us'); +insert into airports values('alexandria bay', 'ali', 'alexandria bay', 'united states', 'us'); +insert into airports values('algona', 'alm', 'algona', 'united states', 'us'); +insert into airports values('alice', 'aln', 'international', 'united states', 'us'); +insert into airports values('aliceville al', 'als', 'george downer', 'united states', 'us'); +insert into airports values('alitak', 'alx', 'alitak spb', 'united states', 'us'); +insert into airports values('allakaket', 'alz', 'allakaket', 'united states', 'us'); +insert into airports values('alliance', 'ama', 'alliance', 'united states', 'us'); +insert into airports values('alma', 'amn', 'gratiot community', 'united states', 'us'); +insert into airports values('alpena', 'amw', 'alpena county regional', 'united states', 'us'); +insert into airports values('alpine', 'ana', 'alpine', 'united states', 'us'); +insert into airports values('alton', 'anb', 'alton', 'united states', 'us'); +insert into airports values('altus', 'anc', 'altus afb', 'united states', 'us'); +insert into airports values('altus', 'and', 'municipal', 'united states', 'us'); +insert into airports values('alyeska', 'ani', 'alyeska', 'united states', 'us'); +insert into airports values('amarillo', 'ann', 'rick husband amarillo international', 'united states', 'us'); +insert into airports values('amarillo', 'anp', 'tradewind', 'united states', 'us'); +insert into airports values('ambler', 'anq', 'ambler', 'united states', 'us'); +insert into airports values('amchitka', 'anv', 'amchitka', 'united states', 'us'); +insert into airports values('amery', 'anw', 'municipal', 'united states', 'us'); +insert into airports values('ames', 'any', 'ames', 'united states', 'us'); +insert into airports values('amityville', 'aos', 'zahns', 'united states', 'us'); +insert into airports values('amook', 'apg', 'amook', 'united states', 'us'); +insert into airports values('anacortes', 'apn', 'anacortes', 'united states', 'us'); +insert into airports values('anacostia', 'apv', 'usn heliport', 'united states', 'us'); +insert into airports values('anaheim', 'aqy', 'orange county steel salvage heliport', 'united states', 'us'); +insert into airports values('anaktuvuk', 'arb', 'anaktuvuk', 'united states', 'us'); +insert into airports values('anchorage', 'arc', 'elmendorf afb', 'united states', 'us'); +insert into airports values('anchorage', 'arx', 'ted stevens anchorage international airport', 'united states', 'us'); +insert into airports values('anchorage', 'ase', 'merrill field', 'united states', 'us'); +insert into airports values('anderson', 'ast', 'municipal', 'united states', 'us'); +insert into airports values('anderson', 'asx', 'anderson', 'united states', 'us'); +insert into airports values('andrews', 'asy', 'andrews', 'united states', 'us'); +insert into airports values('angel fire', 'ate', 'angel fire', 'united states', 'us'); +insert into airports values('angola', 'ato', 'tri-state steuben cty', 'united states', 'us'); +insert into airports values('angoon', 'ats', 'angoon', 'united states', 'us'); +insert into airports values('anguilla', 'atw', 'rollang field', 'united states', 'us'); +insert into airports values('aniak', 'auk', 'aniak', 'united states', 'us'); +insert into airports values('anita bay', 'axb', 'anita bay', 'united states', 'us'); +insert into airports values('ann arbor mi', 'axg', 'municipal', 'united states', 'us'); +insert into airports values('annapolis', 'axn', 'lee', 'united states', 'us'); +insert into airports values('annette island', 'axs', 'annette island', 'united states', 'us'); +insert into airports values('anniston al', 'axx', 'anniston metropolitan', 'united states', 'us'); +insert into airports values('anniston', 'ayz', 'ft mcclellan bus trml', 'united states', 'us'); +insert into airports values('anniston', 'cak', 'reilly ahp', 'united states', 'us'); +insert into airports values('anthony', 'cvo', 'anthony', 'united states', 'us'); +insert into airports values('antlers', 'dys', 'antlers', 'united states', 'us'); +insert into airports values('anvik', 'edf', 'anvik', 'united states', 'us'); +insert into airports values('apalachicola', 'esf', 'municipal', 'united states', 'us'); +insert into airports values('apple valley', 'hmn', 'apple valley', 'united states', 'us'); +insert into airports values('appleton', 'jlh', 'outagamie county', 'united states', 'us'); +insert into airports values('arapahoe', 'kki', 'municipal', 'united states', 'us'); +insert into airports values('arcata', 'kqa', 'arcata', 'united states', 'us'); +insert into airports values('arctic village', 'lts', 'arctic village', 'united states', 'us'); +insert into airports values('ardmore', 'mmi', 'downtown', 'united states', 'us'); +insert into airports values('ardmore', 'mri', 'ardmore municipal arpt', 'united states', 'us'); +insert into airports values('arlington heights', 'nab', 'us army heliport', 'united states', 'us'); +insert into airports values('artesia', 'ndv', 'artesia', 'united states', 'us'); +insert into airports values('neptune', 'ngz', 'asbury park', 'united states', 'us'); +insert into airports values('ashland', 'ots', 'ashland', 'united states', 'us'); +insert into airports values('ashley', 'qaw', 'ashley', 'united states', 'us'); +insert into airports values('aspen', 'rfk', 'aspen', 'united states', 'us'); +insert into airports values('astoria', 'rli', 'astoria', 'united states', 'us'); +insert into airports values('athens', 'tdw', 'athens', 'united states', 'us'); +insert into airports values('athens', 'vji', 'ohio university', 'united states', 'us'); +insert into airports values('athens', 'wkk', 'mcminn county', 'united states', 'us'); +create table airlines_flights ( +uid integer, +airline_airlines text, +abbreviation text, +country text, +flightno integer, +sourceairport text, +destairport text); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 28, 'apg', 'asy'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 29, 'asy', 'apg'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 44, 'cvo', 'acv'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 45, 'acv', 'cvo'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 54, 'ahd', 'aht'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 55, 'aht', 'ahd'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 90, 'ato', 'abr'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 91, 'abr', 'ato'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 108, 'anv', 'mmi'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 109, 'mmi', 'anv'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 142, 'ali', 'akc'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 143, 'akc', 'ali'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 148, 'hmn', 'abl'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 149, 'abl', 'hmn'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 198, 'ngz', 'aaf'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 199, 'aaf', 'ngz'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 226, 'cvo', 'kki'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 227, 'kki', 'cvo'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 276, 'arb', 'anv'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 277, 'anv', 'arb'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 308, 'ate', 'akc'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 309, 'akc', 'ate'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 326, 'alx', 'ali'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 327, 'ali', 'alx'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 370, 'akc', 'wkk'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 371, 'wkk', 'akc'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 414, 'aaf', 'alb'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 415, 'alb', 'aaf'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 424, 'adg', 'aos'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 425, 'aos', 'adg'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 470, 'abq', 'mmi'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 471, 'mmi', 'abq'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 520, 'aiv', 'als'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 521, 'als', 'aiv'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 556, 'ayz', 'ahd'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 557, 'ahd', 'ayz'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 560, 'ahf', 'ato'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 561, 'ato', 'ahf'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 604, 'adg', 'ann'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 605, 'ann', 'adg'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 608, 'ast', 'dys'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 609, 'dys', 'ast'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 626, 'aki', 'ael'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 627, 'ael', 'aki'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 658, 'arc', 'alm'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 659, 'alm', 'arc'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 708, 'axb', 'afo'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 709, 'afo', 'axb'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 744, 'aed', 'ots'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 745, 'ots', 'aed'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 754, 'cvo', 'any'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 755, 'any', 'cvo'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 786, 'acv', 'ahd'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 787, 'ahd', 'acv'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 810, 'arc', 'aqy'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 811, 'aqy', 'arc'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 828, 'hmn', 'edf'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 829, 'edf', 'hmn'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 878, 'kki', 'alm'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 879, 'alm', 'kki'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 888, 'alz', 'anw'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 889, 'anw', 'alz'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 900, 'aht', 'axx'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 901, 'axx', 'aht'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 924, 'axg', 'asx'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 925, 'asx', 'axg'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 946, 'apv', 'adr'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 947, 'adr', 'apv'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 996, 'axg', 'axs'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 997, 'axs', 'axg'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1000, 'adk', 'kki'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1001, 'kki', 'adk'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1026, 'ahn', 'dys'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1027, 'dys', 'ahn'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1062, 'aqy', 'afo'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1063, 'afo', 'aqy'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1068, 'apn', 'alb'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1069, 'alb', 'apn'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1100, 'ate', 'ale'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1101, 'ale', 'ate'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1144, 'aia', 'amw'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1145, 'amw', 'aia'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1166, 'abq', 'aaf'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1167, 'aaf', 'abq'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1168, 'adk', 'nab'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1169, 'nab', 'adk'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1192, 'qaw', 'ahh'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1193, 'ahh', 'qaw'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1208, 'nab', 'mmi'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1209, 'mmi', 'nab'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1216, 'ate', 'alx'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1217, 'alx', 'ate'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1250, 'arc', 'aed'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1251, 'aed', 'arc'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1274, 'als', 'apg'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1275, 'apg', 'als'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1284, 'adk', 'adg'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1285, 'adg', 'adk'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1328, 'rli', 'lts'); +insert into airlines_flights values(1, 'united airlines', 'ual', 'usa', 1329, 'lts', 'rli'); +insert into airlines_flights values(2, 'us airways', 'usair', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(3, 'delta airlines', 'delta', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(4, 'southwest airlines', 'southwest', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(5, 'american airlines', 'american', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(6, 'northwest airlines', 'northwest', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(7, 'continental airlines', 'continental', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(8, 'jetblue airways', 'jetblue', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(9, 'frontier airlines', 'frontier', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(10, 'airtran airways', 'airtran', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(11, 'allegiant air', 'allegiant', 'usa', 'None', 'None', 'None'); +insert into airlines_flights values(12, 'virgin america', 'virgin', 'usa', 'None', 'None', 'None'); + diff --git a/all/databases/flight_2_total_0/flight_2_total_0.sqlite b/all/databases/flight_2_total_0/flight_2_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..ab779c3e9c9c6ec31c6f97a5112858e7ca9f0b71 Binary files /dev/null and b/all/databases/flight_2_total_0/flight_2_total_0.sqlite differ diff --git a/all/databases/flight_2_total_1/flight_2_total_1.sql b/all/databases/flight_2_total_1/flight_2_total_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..833c1747853cc75cc1810b7a169580dfd475ee0c --- /dev/null +++ b/all/databases/flight_2_total_1/flight_2_total_1.sql @@ -0,0 +1,166 @@ +create table airlines ( +uid integer, +airline text, +abbreviation text, +country text +); +insert into airlines values(1, 'united airlines', 'ual', 'usa'); +insert into airlines values(2, 'us airways', 'usair', 'usa'); +insert into airlines values(3, 'delta airlines', 'delta', 'usa'); +insert into airlines values(4, 'southwest airlines', 'southwest', 'usa'); +insert into airlines values(5, 'american airlines', 'american', 'usa'); +insert into airlines values(6, 'northwest airlines', 'northwest', 'usa'); +insert into airlines values(7, 'continental airlines', 'continental', 'usa'); +insert into airlines values(8, 'jetblue airways', 'jetblue', 'usa'); +insert into airlines values(9, 'frontier airlines', 'frontier', 'usa'); +insert into airlines values(10, 'airtran airways', 'airtran', 'usa'); +insert into airlines values(11, 'allegiant air', 'allegiant', 'usa'); +insert into airlines values(12, 'virgin america', 'virgin', 'usa'); +create table flights_airports ( +airline integer, +flightno integer, +sourceairport text, +destairport text, +city text, +airportname text, +country text, +countryabbrev text); +insert into flights_airports values(1, 28, 'apg', 'asy', 'andrews', 'andrews', 'united states', 'us'); +insert into flights_airports values(1, 29, 'asy', 'apg', 'amook', 'amook', 'united states', 'us'); +insert into flights_airports values(1, 44, 'cvo', 'acv', 'adak island', 'adak island ns', 'united states', 'us'); +insert into flights_airports values(1, 45, 'acv', 'cvo', 'anthony', 'anthony', 'united states', 'us'); +insert into flights_airports values(1, 54, 'ahd', 'aht', 'alamosa', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 55, 'aht', 'ahd', 'alakanuk', 'alakanuk', 'united states', 'us'); +insert into flights_airports values(1, 90, 'ato', 'abr', 'abingdon', 'virginia highlands', 'united states', 'us'); +insert into flights_airports values(1, 91, 'abr', 'ato', 'angola', 'tri-state steuben cty', 'united states', 'us'); +insert into flights_airports values(1, 108, 'anv', 'mmi', 'ardmore', 'downtown', 'united states', 'us'); +insert into flights_airports values(1, 109, 'mmi', 'anv', 'amchitka', 'amchitka', 'united states', 'us'); +insert into flights_airports values(1, 142, 'ali', 'akc', 'albuquerque', 'albuquerque international', 'united states', 'us'); +insert into flights_airports values(1, 143, 'akc', 'ali', 'alexandria bay', 'alexandria bay', 'united states', 'us'); +insert into flights_airports values(1, 148, 'hmn', 'abl', 'abilene', 'dyess afb', 'united states', 'us'); +insert into flights_airports values(1, 149, 'abl', 'hmn', 'apple valley', 'apple valley', 'united states', 'us'); +insert into flights_airports values(1, 198, 'ngz', 'aaf', 'aberdeen', 'phillips aaf', 'united states', 'us'); +insert into flights_airports values(1, 199, 'aaf', 'ngz', 'neptune', 'asbury park', 'united states', 'us'); +insert into flights_airports values(1, 226, 'cvo', 'kki', 'arapahoe', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 227, 'kki', 'cvo', 'anthony', 'anthony', 'united states', 'us'); +insert into flights_airports values(1, 276, 'arb', 'anv', 'amchitka', 'amchitka', 'united states', 'us'); +insert into flights_airports values(1, 277, 'anv', 'arb', 'anaktuvuk', 'anaktuvuk', 'united states', 'us'); +insert into flights_airports values(1, 308, 'ate', 'akc', 'albuquerque', 'albuquerque international', 'united states', 'us'); +insert into flights_airports values(1, 309, 'akc', 'ate', 'angel fire', 'angel fire', 'united states', 'us'); +insert into flights_airports values(1, 326, 'alx', 'ali', 'alexandria bay', 'alexandria bay', 'united states', 'us'); +insert into flights_airports values(1, 327, 'ali', 'alx', 'alitak', 'alitak spb', 'united states', 'us'); +insert into flights_airports values(1, 370, 'akc', 'wkk', 'athens', 'mcminn county', 'united states', 'us'); +insert into flights_airports values(1, 371, 'wkk', 'akc', 'albuquerque', 'albuquerque international', 'united states', 'us'); +insert into flights_airports values(1, 414, 'aaf', 'alb', 'alexandria', 'esler field', 'united states', 'us'); +insert into flights_airports values(1, 415, 'alb', 'aaf', 'aberdeen', 'phillips aaf', 'united states', 'us'); +insert into flights_airports values(1, 424, 'adg', 'aos', 'amityville', 'zahns', 'united states', 'us'); +insert into flights_airports values(1, 425, 'aos', 'adg', 'adrian', 'lenawee county', 'united states', 'us'); +insert into flights_airports values(1, 470, 'abq', 'mmi', 'ardmore', 'downtown', 'united states', 'us'); +insert into flights_airports values(1, 471, 'mmi', 'abq', 'abilene', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 520, 'aiv', 'als', 'aliceville al', 'george downer', 'united states', 'us'); +insert into flights_airports values(1, 521, 'als', 'aiv', 'albert lea', 'albert lea', 'united states', 'us'); +insert into flights_airports values(1, 556, 'ayz', 'ahd', 'alakanuk', 'alakanuk', 'united states', 'us'); +insert into flights_airports values(1, 557, 'ahd', 'ayz', 'anniston', 'ft mcclellan bus trml', 'united states', 'us'); +insert into flights_airports values(1, 560, 'ahf', 'ato', 'angola', 'tri-state steuben cty', 'united states', 'us'); +insert into flights_airports values(1, 561, 'ato', 'ahf', 'alameda', 'nas', 'united states', 'us'); +insert into flights_airports values(1, 604, 'adg', 'ann', 'amarillo', 'rick husband amarillo international', 'united states', 'us'); +insert into flights_airports values(1, 605, 'ann', 'adg', 'adrian', 'lenawee county', 'united states', 'us'); +insert into flights_airports values(1, 608, 'ast', 'dys', 'antlers', 'antlers', 'united states', 'us'); +insert into flights_airports values(1, 609, 'dys', 'ast', 'anderson', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 626, 'aki', 'ael', 'akiak', 'akiak', 'united states', 'us'); +insert into flights_airports values(1, 627, 'ael', 'aki', 'aleknagik', 'aleknagik', 'united states', 'us'); +insert into flights_airports values(1, 658, 'arc', 'alm', 'algona', 'algona', 'united states', 'us'); +insert into flights_airports values(1, 659, 'alm', 'arc', 'anchorage', 'elmendorf afb', 'united states', 'us'); +insert into flights_airports values(1, 708, 'axb', 'afo', 'akron/canton', 'fulton international', 'united states', 'us'); +insert into flights_airports values(1, 709, 'afo', 'axb', 'anita bay', 'anita bay', 'united states', 'us'); +insert into flights_airports values(1, 744, 'aed', 'ots', 'ashland', 'ashland', 'united states', 'us'); +insert into flights_airports values(1, 745, 'ots', 'aed', 'akiachak', 'spb', 'united states', 'us'); +insert into flights_airports values(1, 754, 'cvo', 'any', 'ames', 'ames', 'united states', 'us'); +insert into flights_airports values(1, 755, 'any', 'cvo', 'anthony', 'anthony', 'united states', 'us'); +insert into flights_airports values(1, 786, 'acv', 'ahd', 'alakanuk', 'alakanuk', 'united states', 'us'); +insert into flights_airports values(1, 787, 'ahd', 'acv', 'adak island', 'adak island ns', 'united states', 'us'); +insert into flights_airports values(1, 810, 'arc', 'aqy', 'anaheim', 'orange county steel salvage heliport', 'united states', 'us'); +insert into flights_airports values(1, 811, 'aqy', 'arc', 'anchorage', 'elmendorf afb', 'united states', 'us'); +insert into flights_airports values(1, 828, 'hmn', 'edf', 'anvik', 'anvik', 'united states', 'us'); +insert into flights_airports values(1, 829, 'edf', 'hmn', 'apple valley', 'apple valley', 'united states', 'us'); +insert into flights_airports values(1, 878, 'kki', 'alm', 'algona', 'algona', 'united states', 'us'); +insert into flights_airports values(1, 879, 'alm', 'kki', 'arapahoe', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 888, 'alz', 'anw', 'amery', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 889, 'anw', 'alz', 'allakaket', 'allakaket', 'united states', 'us'); +insert into flights_airports values(1, 900, 'aht', 'axx', 'anniston al', 'anniston metropolitan', 'united states', 'us'); +insert into flights_airports values(1, 901, 'axx', 'aht', 'alamosa', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 924, 'axg', 'asx', 'anderson', 'anderson', 'united states', 'us'); +insert into flights_airports values(1, 925, 'asx', 'axg', 'ann arbor mi', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 946, 'apv', 'adr', 'ainsworth', 'ainsworth', 'united states', 'us'); +insert into flights_airports values(1, 947, 'adr', 'apv', 'anacostia', 'usn heliport', 'united states', 'us'); +insert into flights_airports values(1, 996, 'axg', 'axs', 'annette island', 'annette island', 'united states', 'us'); +insert into flights_airports values(1, 997, 'axs', 'axg', 'ann arbor mi', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 1000, 'adk', 'kki', 'arapahoe', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 1001, 'kki', 'adk', 'afton', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 1026, 'ahn', 'dys', 'antlers', 'antlers', 'united states', 'us'); +insert into flights_airports values(1, 1027, 'dys', 'ahn', 'alamogordo', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 1062, 'aqy', 'afo', 'akron/canton', 'fulton international', 'united states', 'us'); +insert into flights_airports values(1, 1063, 'afo', 'aqy', 'anaheim', 'orange county steel salvage heliport', 'united states', 'us'); +insert into flights_airports values(1, 1068, 'apn', 'alb', 'alexandria', 'esler field', 'united states', 'us'); +insert into flights_airports values(1, 1069, 'alb', 'apn', 'anacortes', 'anacortes', 'united states', 'us'); +insert into flights_airports values(1, 1100, 'ate', 'ale', 'alexandria', 'alexandria', 'united states', 'us'); +insert into flights_airports values(1, 1101, 'ale', 'ate', 'angel fire', 'angel fire', 'united states', 'us'); +insert into flights_airports values(1, 1144, 'aia', 'amw', 'alpena', 'alpena county regional', 'united states', 'us'); +insert into flights_airports values(1, 1145, 'amw', 'aia', 'albany', 'albany nas', 'united states', 'us'); +insert into flights_airports values(1, 1166, 'abq', 'aaf', 'aberdeen', 'phillips aaf', 'united states', 'us'); +insert into flights_airports values(1, 1167, 'aaf', 'abq', 'abilene', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 1168, 'adk', 'nab', 'arlington heights', 'us army heliport', 'united states', 'us'); +insert into flights_airports values(1, 1169, 'nab', 'adk', 'afton', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 1192, 'qaw', 'ahh', 'alamogordo', 'holloman afb', 'united states', 'us'); +insert into flights_airports values(1, 1193, 'ahh', 'qaw', 'ashley', 'ashley', 'united states', 'us'); +insert into flights_airports values(1, 1208, 'nab', 'mmi', 'ardmore', 'downtown', 'united states', 'us'); +insert into flights_airports values(1, 1209, 'mmi', 'nab', 'arlington heights', 'us army heliport', 'united states', 'us'); +insert into flights_airports values(1, 1216, 'ate', 'alx', 'alitak', 'alitak spb', 'united states', 'us'); +insert into flights_airports values(1, 1217, 'alx', 'ate', 'angel fire', 'angel fire', 'united states', 'us'); +insert into flights_airports values(1, 1250, 'arc', 'aed', 'akiachak', 'spb', 'united states', 'us'); +insert into flights_airports values(1, 1251, 'aed', 'arc', 'anchorage', 'elmendorf afb', 'united states', 'us'); +insert into flights_airports values(1, 1274, 'als', 'apg', 'amook', 'amook', 'united states', 'us'); +insert into flights_airports values(1, 1275, 'apg', 'als', 'aliceville al', 'george downer', 'united states', 'us'); +insert into flights_airports values(1, 1284, 'adk', 'adg', 'adrian', 'lenawee county', 'united states', 'us'); +insert into flights_airports values(1, 1285, 'adg', 'adk', 'afton', 'municipal', 'united states', 'us'); +insert into flights_airports values(1, 1328, 'rli', 'lts', 'arctic village', 'arctic village', 'united states', 'us'); +insert into flights_airports values(1, 1329, 'lts', 'rli', 'astoria', 'astoria', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'abi', 'aberdeen', 'municipal', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'aby', 'ada', 'ada', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'adm', 'aiken', 'municipal', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'adt', 'akhiok', 'akhiok spb', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'aet', 'akron co', 'colorado plains regional airport', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'aex', 'akron/canton oh', 'akron/canton regional', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'agn', 'akutan', 'akutan', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'aib', 'albany', 'dougherty county', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'aid', 'albany', 'albany international', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'aik', 'albany', 'albany', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'akk', 'aleneva', 'aleneva', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'ako', 'alexander city al', 'thomas c russell fld', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'akp', 'alexandria la', 'alexandria international', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'aln', 'alice', 'international', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'ama', 'alliance', 'alliance', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'amn', 'alma', 'gratiot community', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'ana', 'alpine', 'alpine', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'anb', 'alton', 'alton', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'anc', 'altus', 'altus afb', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'and', 'altus', 'municipal', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'ani', 'alyeska', 'alyeska', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'anp', 'amarillo', 'tradewind', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'anq', 'ambler', 'ambler', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'arx', 'anchorage', 'ted stevens anchorage international airport', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'ase', 'anchorage', 'merrill field', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'ats', 'angoon', 'angoon', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'atw', 'anguilla', 'rollang field', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'auk', 'aniak', 'aniak', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'axn', 'annapolis', 'lee', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'cak', 'anniston', 'reilly ahp', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'esf', 'apalachicola', 'municipal', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'jlh', 'appleton', 'outagamie county', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'kqa', 'arcata', 'arcata', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'mri', 'ardmore', 'ardmore municipal arpt', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'ndv', 'artesia', 'artesia', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'rfk', 'aspen', 'aspen', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'tdw', 'athens', 'athens', 'united states', 'us'); +insert into flights_airports values('None', 'None', 'None', 'vji', 'athens', 'ohio university', 'united states', 'us'); + diff --git a/all/databases/flight_2_total_1/flight_2_total_1.sqlite b/all/databases/flight_2_total_1/flight_2_total_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..05677e29160f44051e95829a21af8d6775ba30de Binary files /dev/null and b/all/databases/flight_2_total_1/flight_2_total_1.sqlite differ diff --git a/all/databases/formula_1/formula_1.sql b/all/databases/formula_1/formula_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..caa304e6190d749be02172e9ee78d8d9bc3f00f8 --- /dev/null +++ b/all/databases/formula_1/formula_1.sql @@ -0,0 +1,1235 @@ +CREATE TABLE "circuits" ( +"circuitid" integer, +"circuitref" text, +"name" text, +"location" text, +"country" text, +"lat" real, +"lng" real, +"alt" text, +"url" text +); + +INSERT INTO circuits VALUES (1, "albert_park", "albert park grand prix circuit", "melbourne", "australia", -37.8497, 144.968, "10", "http://en.wikipedia.org/wiki/melbourne_grand_prix_circuit"); +INSERT INTO circuits VALUES (2, "sepang", "sepang international circuit", "kuala lumpur", "malaysia", 2.76083, 101.738, "", "http://en.wikipedia.org/wiki/sepang_international_circuit"); +INSERT INTO circuits VALUES (3, "bahrain", "bahrain international circuit", "sakhir", "bahrain", 26.0325, 50.5106, "", "http://en.wikipedia.org/wiki/bahrain_international_circuit"); +INSERT INTO circuits VALUES (4, "catalunya", "circuit de barcelona-catalunya", "montmel_", "spain", 41.57, 2.26111, "", "http://en.wikipedia.org/wiki/circuit_de_barcelona-catalunya"); +INSERT INTO circuits VALUES (5, "istanbul", "istanbul park", "istanbul", "turkey", 40.9517, 29.405, "", "http://en.wikipedia.org/wiki/istanbul_park"); +INSERT INTO circuits VALUES (6, "monaco", "circuit de monaco", "monte-carlo", "monaco", 43.7347, 7.42056, "", "http://en.wikipedia.org/wiki/circuit_de_monaco"); +INSERT INTO circuits VALUES (7, "villeneuve", "circuit gilles villeneuve", "montreal", "canada", 45.5, -73.5228, "", "http://en.wikipedia.org/wiki/circuit_gilles_villeneuve"); +INSERT INTO circuits VALUES (8, "magny_cours", "circuit de nevers magny-cours", "magny cours", "france", 46.8642, 3.16361, "", "http://en.wikipedia.org/wiki/circuit_de_nevers_magny-cours"); +INSERT INTO circuits VALUES (9, "silverstone", "silverstone circuit", "silverstone", "uk", 52.0786, -1.01694, "", "http://en.wikipedia.org/wiki/silverstone_circuit"); +INSERT INTO circuits VALUES (10, "hockenheimring", "hockenheimring", "hockenheim", "germany", 49.3278, 8.56583, "", "http://en.wikipedia.org/wiki/hockenheimring"); +INSERT INTO circuits VALUES (11, "hungaroring", "hungaroring", "budapest", "hungary", 47.5789, 19.2486, "", "http://en.wikipedia.org/wiki/hungaroring"); +INSERT INTO circuits VALUES (12, "valencia", "valencia street circuit", "valencia", "spain", 39.4589, -0.331667, "", "http://en.wikipedia.org/wiki/valencia_street_circuit"); +INSERT INTO circuits VALUES (13, "spa", "circuit de spa-francorchamps", "spa", "belgium", 50.4372, 5.97139, "", "http://en.wikipedia.org/wiki/circuit_de_spa-francorchamps"); +INSERT INTO circuits VALUES (14, "monza", "autodromo nazionale di monza", "monza", "italy", 45.6156, 9.28111, "", "http://en.wikipedia.org/wiki/autodromo_nazionale_monza"); +INSERT INTO circuits VALUES (15, "marina_bay", "marina bay street circuit", "marina bay", "singapore", 1.2914, 103.864, "", "http://en.wikipedia.org/wiki/marina_bay_street_circuit"); +INSERT INTO circuits VALUES (16, "fuji", "fuji speedway", "oyama", "japan", 35.3717, 138.927, "", "http://en.wikipedia.org/wiki/fuji_speedway"); +INSERT INTO circuits VALUES (17, "shanghai", "shanghai international circuit", "shanghai", "china", 31.3389, 121.22, "", "http://en.wikipedia.org/wiki/shanghai_international_circuit"); +INSERT INTO circuits VALUES (18, "interlagos", "aut_dromo jo carlos pace", "ṣo paulo", "brazil", -23.7036, -46.6997, "", "http://en.wikipedia.org/wiki/aut%c3%b3dromo_jos%c3%a9_carlos_pace"); +INSERT INTO circuits VALUES (19, "indianapolis", "indianapolis motor speedway", "indianapolis", "usa", 39.795, -86.2347, "", "http://en.wikipedia.org/wiki/indianapolis_motor_speedway"); +INSERT INTO circuits VALUES (20, "nurburgring", "n_rburgring", "n_rburg", "germany", 50.3356, 6.9475, "", "http://en.wikipedia.org/wiki/n%c3%bcrburgring"); +INSERT INTO circuits VALUES (21, "imola", "autodromo enzo e dino ferrari", "imola", "italy", 44.3439, 11.7167, "", "http://en.wikipedia.org/wiki/autodromo_enzo_e_dino_ferrari"); +INSERT INTO circuits VALUES (22, "suzuka", "suzuka circuit", "suzuka", "japan", 34.8431, 136.541, "", "http://en.wikipedia.org/wiki/suzuka_circuit"); +INSERT INTO circuits VALUES (23, "osterreichring", "a1-ring", "spielburg", "austria", 47.2197, 14.7647, "", "http://en.wikipedia.org/wiki/a1-ring"); +INSERT INTO circuits VALUES (24, "yas_marina", "yas marina circuit", "abu dhabi", "uae", 24.4672, 54.6031, "", "http://en.wikipedia.org/wiki/yas_marina_circuit"); +INSERT INTO circuits VALUES (25, "galvez", "aut_dromo juan y oscar glvez", "buenos aires", "argentina", -34.6943, -58.4593, "", "http://en.wikipedia.org/wiki/aut%c3%b3dromo_oscar_alfredo_g%c3%a1lvez"); +INSERT INTO circuits VALUES (26, "jerez", "circuito de jerez", "jerez de la frontera", "spain", 36.7083, -6.03417, "", "http://en.wikipedia.org/wiki/circuito_permanente_de_jerez"); +INSERT INTO circuits VALUES (27, "estoril", "aut_dromo do estoril", "estoril", "portugal", 38.7506, -9.39417, "", "http://en.wikipedia.org/wiki/aut%c3%b3dromo_do_estoril"); +INSERT INTO circuits VALUES (28, "okayama", "okayama international circuit", "okayama", "japan", 34.915, 134.221, "", "http://en.wikipedia.org/wiki/ti_circuit"); +INSERT INTO circuits VALUES (29, "adelaide", "adelaide street circuit", "adelaide", "australia", -34.9272, 138.617, "", "http://en.wikipedia.org/wiki/adelaide_street_circuit"); +INSERT INTO circuits VALUES (30, "kyalami", "kyalami", "midrand", "south africa", -25.9894, 28.0767, "", "http://en.wikipedia.org/wiki/kyalami"); +INSERT INTO circuits VALUES (31, "donington", "donington park", "castle donington", "uk", 52.8306, -1.37528, "", "http://en.wikipedia.org/wiki/donington_park"); +INSERT INTO circuits VALUES (32, "rodriguez", "aut_dromo hermanos rodr_guez", "mexico city", "mexico", 19.4042, -99.0907, "", "http://en.wikipedia.org/wiki/aut%c3%b3dromo_hermanos_rodr%c3%adguez"); +INSERT INTO circuits VALUES (33, "phoenix", "phoenix street circuit", "phoenix", "usa", 33.4479, -112.075, "", "http://en.wikipedia.org/wiki/phoenix_street_circuit"); +INSERT INTO circuits VALUES (34, "ricard", "circuit paul ricard", "le castellet", "france", 43.2506, 5.79167, "", "http://en.wikipedia.org/wiki/paul_ricard_circuit"); +INSERT INTO circuits VALUES (35, "yeongam", "korean international circuit", "yeongam county", "korea", 34.7333, 126.417, "", "http://en.wikipedia.org/wiki/korean_international_circuit"); +INSERT INTO circuits VALUES (36, "jacarepagua", "aut_dromo internacional nelson piquet", "rio de janeiro", "brazil", -22.9756, -43.395, "", "http://en.wikipedia.org/wiki/aut%c3%b3dromo_internacional_nelson_piquet"); +INSERT INTO circuits VALUES (37, "detroit", "detroit street circuit", "detroit", "usa", 42.3298, -83.0401, "", "http://en.wikipedia.org/wiki/detroit_street_circuit"); +INSERT INTO circuits VALUES (38, "brands_hatch", "brands hatch", "kent", "uk", 51.3569, 0.263056, "", "http://en.wikipedia.org/wiki/brands_hatch"); +INSERT INTO circuits VALUES (39, "zandvoort", "circuit park zandvoort", "zandvoort", "netherlands", 52.3888, 4.54092, "", "http://en.wikipedia.org/wiki/circuit_zandvoort"); +INSERT INTO circuits VALUES (40, "zolder", "zolder", "heusden-zolder", "belgium", 50.9894, 5.25694, "", "http://en.wikipedia.org/wiki/zolder"); +INSERT INTO circuits VALUES (41, "dijon", "dijon-prenois", "dijon", "france", 47.3625, 4.89913, "", "http://en.wikipedia.org/wiki/dijon-prenois"); +INSERT INTO circuits VALUES (42, "dallas", "fair park", "dallas", "usa", 32.7774, -96.7587, "", "http://en.wikipedia.org/wiki/fair_park"); +INSERT INTO circuits VALUES (43, "long_beach", "long beach", "california", "usa", 33.7651, -118.189, "", "http://en.wikipedia.org/wiki/long_beach_california"); +INSERT INTO circuits VALUES (44, "las_vegas", "las vegas street circuit", "nevada", "usa", 36.1162, -115.174, "", "http://en.wikipedia.org/wiki/las_vegas_nevada"); +INSERT INTO circuits VALUES (45, "jarama", "jarama", "madrid", "spain", 40.6171, -3.58558, "", "http://en.wikipedia.org/wiki/circuito_permanente_del_jarama"); +INSERT INTO circuits VALUES (46, "watkins_glen", "watkins glen", "new york state", "usa", 42.3369, -76.9272, "", "http://en.wikipedia.org/wiki/watkins_glen_international"); +INSERT INTO circuits VALUES (47, "anderstorp", "scandinavian raceway", "anderstorp", "sweden", 57.2653, 13.6042, "", "http://en.wikipedia.org/wiki/scandinavian_raceway"); +INSERT INTO circuits VALUES (48, "mosport", "mosport international raceway", "ontario", "canada", 44.0481, -78.6756, "", "http://en.wikipedia.org/wiki/mosport"); +INSERT INTO circuits VALUES (49, "montjuic", "montjuc", "barcelona", "spain", 41.3664, 2.15167, "", "http://en.wikipedia.org/wiki/montju%c3%afc_circuit"); +INSERT INTO circuits VALUES (50, "nivelles", "nivelles-baulers", "brussels", "belgium", 50.6211, 4.32694, "", "http://en.wikipedia.org/wiki/nivelles-baulers"); +INSERT INTO circuits VALUES (51, "charade", "charade circuit", "clermont-ferrand", "france", 45.7472, 3.03889, "", "http://en.wikipedia.org/wiki/charade_circuit"); +INSERT INTO circuits VALUES (52, "tremblant", "circuit mont-tremblant", "quebec", "canada", 46.1877, -74.6099, "", "http://en.wikipedia.org/wiki/circuit_mont-tremblant"); +INSERT INTO circuits VALUES (53, "essarts", "rouen-les-essarts", "rouen", "france", 49.3306, 1.00458, "", "http://en.wikipedia.org/wiki/rouen-les-essarts"); +INSERT INTO circuits VALUES (54, "lemans", "le mans", "le mans", "france", 47.95, 0.224231, "", "http://en.wikipedia.org/wiki/circuit_de_la_sarthe#bugatti_circuit"); +INSERT INTO circuits VALUES (55, "reims", "reims-gueux", "reims", "france", 49.2542, 3.93083, "", "http://en.wikipedia.org/wiki/reims-gueux"); +INSERT INTO circuits VALUES (56, "george", "prince george circuit", "eastern cape province", "south africa", -33.0486, 27.8736, "", "http://en.wikipedia.org/wiki/prince_george_circuit"); +INSERT INTO circuits VALUES (57, "zeltweg", "zeltweg", "styria", "austria", 47.2039, 14.7478, "", "http://en.wikipedia.org/wiki/zeltweg_airfield"); +INSERT INTO circuits VALUES (58, "aintree", "aintree", "liverpool", "uk", 53.4769, -2.94056, "", "http://en.wikipedia.org/wiki/aintree_motor_racing_circuit"); +INSERT INTO circuits VALUES (59, "boavista", "circuito da boavista", "oporto", "portugal", 41.1705, -8.67325, "", "http://en.wikipedia.org/wiki/circuito_da_boavista"); +INSERT INTO circuits VALUES (60, "riverside", "riverside international raceway", "california", "usa", 33.937, -117.273, "", "http://en.wikipedia.org/wiki/riverside_international_raceway"); +INSERT INTO circuits VALUES (61, "avus", "avus", "berlin", "germany", 52.4806, 13.2514, "", "http://en.wikipedia.org/wiki/avus"); +INSERT INTO circuits VALUES (62, "monsanto", "monsanto park circuit", "lisbon", "portugal", 38.7197, -9.20306, "", "http://en.wikipedia.org/wiki/monsanto_park_circuit"); +INSERT INTO circuits VALUES (63, "sebring", "sebring international raceway", "florida", "usa", 27.4547, -81.3483, "", "http://en.wikipedia.org/wiki/sebring_raceway"); +INSERT INTO circuits VALUES (64, "ain-diab", "ain diab", "casablanca", "morocco", 33.5786, -7.6875, "", "http://en.wikipedia.org/wiki/ain-diab_circuit"); +INSERT INTO circuits VALUES (65, "pescara", "pescara circuit", "pescara", "italy", 42.475, 14.1508, "", "http://en.wikipedia.org/wiki/pescara_circuit"); +INSERT INTO circuits VALUES (66, "bremgarten", "circuit bremgarten", "bern", "switzerland", 46.9589, 7.40194, "", "http://en.wikipedia.org/wiki/circuit_bremgarten"); +INSERT INTO circuits VALUES (67, "pedralbes", "circuit de pedralbes", "barcelona", "spain", 41.3903, 2.11667, "", "http://en.wikipedia.org/wiki/pedralbes_circuit"); +INSERT INTO circuits VALUES (68, "buddh", "buddh international circuit", "uttar pradesh", "india", 28.3487, 77.5331, "", "http://en.wikipedia.org/wiki/buddh_international_circuit"); +INSERT INTO circuits VALUES (69, "americas", "circuit of the americas", "austin", "usa", 30.1328, -97.6411, "", "http://en.wikipedia.org/wiki/circuit_of_the_americas"); +INSERT INTO circuits VALUES (70, "red_bull_ring", "red bull ring", "spielburg", "austria", 47.2197, 14.7647, "", "http://en.wikipedia.org/wiki/red_bull_ring"); +INSERT INTO circuits VALUES (71, "sochi", "sochi autodrom", "sochi", "russia", 43.4057, 39.9578, "", "http://en.wikipedia.org/wiki/sochi_autodrom"); +INSERT INTO circuits VALUES (72, "port_imperial", "port imperial street circuit", "new jersey", "usa", 40.7769, -74.0111, "", "http://en.wikipedia.org/wiki/port_imperial_street_circuit"); +INSERT INTO circuits VALUES (73, "bak", "baku city circuit", "baku", "azerbaijan", 40.3725, 49.8533, "", "http://en.wikipedia.org/wiki/baku_city_circuit"); + +CREATE TABLE "races" ( +"raceid" integer, +"year" integer, +"round" integer, +"circuitid" integer, +"name" text, +"date" text, +"time" text, +"url" text +); + +INSERT INTO races VALUES (1, 2009, 1, 1, "australian grand prix", "2009-03-29", "06:00:00", "http://en.wikipedia.org/wiki/2009_australian_grand_prix"); +INSERT INTO races VALUES (2, 2009, 2, 2, "malaysian grand prix", "2009-04-05", "09:00:00", "http://en.wikipedia.org/wiki/2009_malaysian_grand_prix"); +INSERT INTO races VALUES (3, 2009, 3, 17, "chinese grand prix", "2009-04-19", "07:00:00", "http://en.wikipedia.org/wiki/2009_chinese_grand_prix"); +INSERT INTO races VALUES (4, 2009, 4, 3, "bahrain grand prix", "2009-04-26", "12:00:00", "http://en.wikipedia.org/wiki/2009_bahrain_grand_prix"); +INSERT INTO races VALUES (5, 2009, 5, 4, "spanish grand prix", "2009-05-10", "12:00:00", "http://en.wikipedia.org/wiki/2009_spanish_grand_prix"); +INSERT INTO races VALUES (6, 2009, 6, 6, "monaco grand prix", "2009-05-24", "12:00:00", "http://en.wikipedia.org/wiki/2009_monaco_grand_prix"); +INSERT INTO races VALUES (7, 2009, 7, 5, "turkish grand prix", "2009-06-07", "12:00:00", "http://en.wikipedia.org/wiki/2009_turkish_grand_prix"); +INSERT INTO races VALUES (8, 2009, 8, 9, "british grand prix", "2009-06-21", "12:00:00", "http://en.wikipedia.org/wiki/2009_british_grand_prix"); +INSERT INTO races VALUES (9, 2009, 9, 20, "german grand prix", "2009-07-12", "12:00:00", "http://en.wikipedia.org/wiki/2009_german_grand_prix"); +INSERT INTO races VALUES (10, 2009, 10, 11, "hungarian grand prix", "2009-07-26", "12:00:00", "http://en.wikipedia.org/wiki/2009_hungarian_grand_prix"); +INSERT INTO races VALUES (11, 2009, 11, 12, "european grand prix", "2009-08-23", "12:00:00", "http://en.wikipedia.org/wiki/2009_european_grand_prix"); +INSERT INTO races VALUES (12, 2009, 12, 13, "belgian grand prix", "2009-08-30", "12:00:00", "http://en.wikipedia.org/wiki/2009_belgian_grand_prix"); +INSERT INTO races VALUES (13, 2009, 13, 14, "italian grand prix", "2009-09-13", "12:00:00", "http://en.wikipedia.org/wiki/2009_italian_grand_prix"); +INSERT INTO races VALUES (14, 2009, 14, 15, "singapore grand prix", "2009-09-27", "12:00:00", "http://en.wikipedia.org/wiki/2009_singapore_grand_prix"); +INSERT INTO races VALUES (15, 2009, 15, 22, "japanese grand prix", "2009-10-04", "05:00:00", "http://en.wikipedia.org/wiki/2009_japanese_grand_prix"); +INSERT INTO races VALUES (16, 2009, 16, 18, "brazilian grand prix", "2009-10-18", "16:00:00", "http://en.wikipedia.org/wiki/2009_brazilian_grand_prix"); +INSERT INTO races VALUES (17, 2009, 17, 24, "abu dhabi grand prix", "2009-11-01", "11:00:00", "http://en.wikipedia.org/wiki/2009_abu_dhabi_grand_prix"); +INSERT INTO races VALUES (18, 2008, 1, 1, "australian grand prix", "2008-03-16", "04:30:00", "http://en.wikipedia.org/wiki/2008_australian_grand_prix"); +INSERT INTO races VALUES (19, 2008, 2, 2, "malaysian grand prix", "2008-03-23", "07:00:00", "http://en.wikipedia.org/wiki/2008_malaysian_grand_prix"); +INSERT INTO races VALUES (20, 2008, 3, 3, "bahrain grand prix", "2008-04-06", "11:30:00", "http://en.wikipedia.org/wiki/2008_bahrain_grand_prix"); +INSERT INTO races VALUES (21, 2008, 4, 4, "spanish grand prix", "2008-04-27", "12:00:00", "http://en.wikipedia.org/wiki/2008_spanish_grand_prix"); +INSERT INTO races VALUES (22, 2008, 5, 5, "turkish grand prix", "2008-05-11", "12:00:00", "http://en.wikipedia.org/wiki/2008_turkish_grand_prix"); +INSERT INTO races VALUES (23, 2008, 6, 6, "monaco grand prix", "2008-05-25", "12:00:00", "http://en.wikipedia.org/wiki/2008_monaco_grand_prix"); +INSERT INTO races VALUES (24, 2008, 7, 7, "canadian grand prix", "2008-06-08", "17:00:00", "http://en.wikipedia.org/wiki/2008_canadian_grand_prix"); +INSERT INTO races VALUES (25, 2008, 8, 8, "french grand prix", "2008-06-22", "12:00:00", "http://en.wikipedia.org/wiki/2008_french_grand_prix"); +INSERT INTO races VALUES (26, 2008, 9, 9, "british grand prix", "2008-07-06", "12:00:00", "http://en.wikipedia.org/wiki/2008_british_grand_prix"); +INSERT INTO races VALUES (27, 2008, 10, 10, "german grand prix", "2008-07-20", "12:00:00", "http://en.wikipedia.org/wiki/2008_german_grand_prix"); +INSERT INTO races VALUES (28, 2008, 11, 11, "hungarian grand prix", "2008-08-03", "12:00:00", "http://en.wikipedia.org/wiki/2008_hungarian_grand_prix"); +INSERT INTO races VALUES (29, 2008, 12, 12, "european grand prix", "2008-08-24", "12:00:00", "http://en.wikipedia.org/wiki/2008_european_grand_prix"); +INSERT INTO races VALUES (30, 2008, 13, 13, "belgian grand prix", "2008-09-07", "12:00:00", "http://en.wikipedia.org/wiki/2008_belgian_grand_prix"); +INSERT INTO races VALUES (31, 2008, 14, 14, "italian grand prix", "2008-09-14", "12:00:00", "http://en.wikipedia.org/wiki/2008_italian_grand_prix"); +INSERT INTO races VALUES (32, 2008, 15, 15, "singapore grand prix", "2008-09-28", "12:00:00", "http://en.wikipedia.org/wiki/2008_singapore_grand_prix"); +INSERT INTO races VALUES (33, 2008, 16, 16, "japanese grand prix", "2008-10-12", "04:30:00", "http://en.wikipedia.org/wiki/2008_japanese_grand_prix"); +INSERT INTO races VALUES (34, 2008, 17, 17, "chinese grand prix", "2008-10-19", "07:00:00", "http://en.wikipedia.org/wiki/2008_chinese_grand_prix"); +INSERT INTO races VALUES (35, 2008, 18, 18, "brazilian grand prix", "2008-11-02", "17:00:00", "http://en.wikipedia.org/wiki/2008_brazilian_grand_prix"); +INSERT INTO races VALUES (36, 2007, 1, 1, "australian grand prix", "2007-03-18", "03:00:00", "http://en.wikipedia.org/wiki/2007_australian_grand_prix"); +INSERT INTO races VALUES (37, 2007, 2, 2, "malaysian grand prix", "2007-04-08", "07:00:00", "http://en.wikipedia.org/wiki/2007_malaysian_grand_prix"); +INSERT INTO races VALUES (38, 2007, 3, 3, "bahrain grand prix", "2007-04-15", "11:30:00", "http://en.wikipedia.org/wiki/2007_bahrain_grand_prix"); +INSERT INTO races VALUES (39, 2007, 4, 4, "spanish grand prix", "2007-05-13", "12:00:00", "http://en.wikipedia.org/wiki/2007_spanish_grand_prix"); +INSERT INTO races VALUES (40, 2007, 5, 6, "monaco grand prix", "2007-05-27", "12:00:00", "http://en.wikipedia.org/wiki/2007_monaco_grand_prix"); +INSERT INTO races VALUES (41, 2007, 6, 7, "canadian grand prix", "2007-06-10", "17:00:00", "http://en.wikipedia.org/wiki/2007_canadian_grand_prix"); +INSERT INTO races VALUES (42, 2007, 7, 19, "united states grand prix", "2007-06-17", "17:00:00", "http://en.wikipedia.org/wiki/2007_united_states_grand_prix"); +INSERT INTO races VALUES (43, 2007, 8, 8, "french grand prix", "2007-07-01", "12:00:00", "http://en.wikipedia.org/wiki/2007_french_grand_prix"); +INSERT INTO races VALUES (44, 2007, 9, 9, "british grand prix", "2007-07-08", "12:00:00", "http://en.wikipedia.org/wiki/2007_british_grand_prix"); +INSERT INTO races VALUES (45, 2007, 10, 20, "european grand prix", "2007-07-22", "12:00:00", "http://en.wikipedia.org/wiki/2007_european_grand_prix"); +INSERT INTO races VALUES (46, 2007, 11, 11, "hungarian grand prix", "2007-08-05", "12:00:00", "http://en.wikipedia.org/wiki/2007_hungarian_grand_prix"); +INSERT INTO races VALUES (47, 2007, 12, 5, "turkish grand prix", "2007-08-26", "12:00:00", "http://en.wikipedia.org/wiki/2007_turkish_grand_prix"); +INSERT INTO races VALUES (48, 2007, 13, 14, "italian grand prix", "2007-09-09", "12:00:00", "http://en.wikipedia.org/wiki/2007_italian_grand_prix"); +INSERT INTO races VALUES (49, 2007, 14, 13, "belgian grand prix", "2007-09-16", "12:00:00", "http://en.wikipedia.org/wiki/2007_belgian_grand_prix"); +INSERT INTO races VALUES (50, 2007, 15, 16, "japanese grand prix", "2007-09-30", "04:30:00", "http://en.wikipedia.org/wiki/2007_japanese_grand_prix"); +INSERT INTO races VALUES (51, 2007, 16, 17, "chinese grand prix", "2007-10-07", "06:00:00", "http://en.wikipedia.org/wiki/2007_chinese_grand_prix"); +INSERT INTO races VALUES (52, 2007, 17, 18, "brazilian grand prix", "2007-10-21", "16:00:00", "http://en.wikipedia.org/wiki/2007_brazilian_grand_prix"); +INSERT INTO races VALUES (53, 2006, 1, 3, "bahrain grand prix", "2006-03-12", "14:30:00", "http://en.wikipedia.org/wiki/2006_bahrain_grand_prix"); +INSERT INTO races VALUES (54, 2006, 2, 2, "malaysian grand prix", "2006-03-19", "15:00:00", "http://en.wikipedia.org/wiki/2006_malaysian_grand_prix"); +INSERT INTO races VALUES (55, 2006, 3, 1, "australian grand prix", "2006-04-02", "14:00:00", "http://en.wikipedia.org/wiki/2006_australian_grand_prix"); +INSERT INTO races VALUES (56, 2006, 4, 21, "san marino grand prix", "2006-04-23", "14:00:00", "http://en.wikipedia.org/wiki/2006_san_marino_grand_prix"); +INSERT INTO races VALUES (57, 2006, 5, 20, "european grand prix", "2006-05-07", "14:00:00", "http://en.wikipedia.org/wiki/2006_european_grand_prix"); +INSERT INTO races VALUES (58, 2006, 6, 4, "spanish grand prix", "2006-05-14", "14:00:00", "http://en.wikipedia.org/wiki/2006_spanish_grand_prix"); +INSERT INTO races VALUES (59, 2006, 7, 6, "monaco grand prix", "2006-05-28", "14:00:00", "http://en.wikipedia.org/wiki/2006_monaco_grand_prix"); +INSERT INTO races VALUES (60, 2006, 8, 9, "british grand prix", "2006-06-11", "12:00:00", "http://en.wikipedia.org/wiki/2006_british_grand_prix"); +INSERT INTO races VALUES (61, 2006, 9, 7, "canadian grand prix", "2006-06-25", "13:00:00", "http://en.wikipedia.org/wiki/2006_canadian_grand_prix"); +INSERT INTO races VALUES (62, 2006, 10, 19, "united states grand prix", "2006-07-02", "14:00:00", "http://en.wikipedia.org/wiki/2006_united_states_grand_prix"); +INSERT INTO races VALUES (63, 2006, 11, 8, "french grand prix", "2006-07-16", "14:00:00", "http://en.wikipedia.org/wiki/2006_french_grand_prix"); +INSERT INTO races VALUES (64, 2006, 12, 10, "german grand prix", "2006-07-30", "14:00:00", "http://en.wikipedia.org/wiki/2006_german_grand_prix"); +INSERT INTO races VALUES (65, 2006, 13, 11, "hungarian grand prix", "2006-08-06", "14:00:00", "http://en.wikipedia.org/wiki/2006_hungarian_grand_prix"); +INSERT INTO races VALUES (66, 2006, 14, 5, "turkish grand prix", "2006-08-27", "15:00:00", "http://en.wikipedia.org/wiki/2006_turkish_grand_prix"); +INSERT INTO races VALUES (67, 2006, 15, 14, "italian grand prix", "2006-09-10", "14:00:00", "http://en.wikipedia.org/wiki/2006_italian_grand_prix"); +INSERT INTO races VALUES (68, 2006, 16, 17, "chinese grand prix", "2006-10-01", "14:00:00", "http://en.wikipedia.org/wiki/2006_chinese_grand_prix"); +INSERT INTO races VALUES (69, 2006, 17, 22, "japanese grand prix", "2006-10-08", "14:00:00", "http://en.wikipedia.org/wiki/2006_japanese_grand_prix"); +INSERT INTO races VALUES (70, 2006, 18, 18, "brazilian grand prix", "2006-10-22", "14:00:00", "http://en.wikipedia.org/wiki/2006_brazilian_grand_prix"); +INSERT INTO races VALUES (71, 2005, 1, 1, "australian grand prix", "2005-03-06", "14:00:00", "http://en.wikipedia.org/wiki/2005_australian_grand_prix"); +INSERT INTO races VALUES (72, 2005, 2, 2, "malaysian grand prix", "2005-03-20", "15:00:00", "http://en.wikipedia.org/wiki/2005_malaysian_grand_prix"); +INSERT INTO races VALUES (73, 2005, 3, 3, "bahrain grand prix", "2005-04-03", "14:30:00", "http://en.wikipedia.org/wiki/2005_bahrain_grand_prix"); +INSERT INTO races VALUES (74, 2005, 4, 21, "san marino grand prix", "2005-04-24", "14:00:00", "http://en.wikipedia.org/wiki/2005_san_marino_grand_prix"); +INSERT INTO races VALUES (75, 2005, 5, 4, "spanish grand prix", "2005-05-08", "14:00:00", "http://en.wikipedia.org/wiki/2005_spanish_grand_prix"); +INSERT INTO races VALUES (76, 2005, 6, 6, "monaco grand prix", "2005-05-22", "14:00:00", "http://en.wikipedia.org/wiki/2005_monaco_grand_prix"); +INSERT INTO races VALUES (77, 2005, 7, 20, "european grand prix", "2005-05-29", "14:00:00", "http://en.wikipedia.org/wiki/2005_european_grand_prix"); +INSERT INTO races VALUES (78, 2005, 8, 7, "canadian grand prix", "2005-06-12", "13:00:00", "http://en.wikipedia.org/wiki/2005_canadian_grand_prix"); +INSERT INTO races VALUES (79, 2005, 9, 19, "united states grand prix", "2005-06-19", "14:00:00", "http://en.wikipedia.org/wiki/2005_united_states_grand_prix"); +INSERT INTO races VALUES (80, 2005, 10, 8, "french grand prix", "2005-07-03", "14:00:00", "http://en.wikipedia.org/wiki/2005_french_grand_prix"); +INSERT INTO races VALUES (81, 2005, 11, 9, "british grand prix", "2005-07-10", "14:00:00", "http://en.wikipedia.org/wiki/2005_british_grand_prix"); +INSERT INTO races VALUES (82, 2005, 12, 10, "german grand prix", "2005-07-24", "14:00:00", "http://en.wikipedia.org/wiki/2005_german_grand_prix"); +INSERT INTO races VALUES (83, 2005, 13, 11, "hungarian grand prix", "2005-07-31", "14:00:00", "http://en.wikipedia.org/wiki/2005_hungarian_grand_prix"); +INSERT INTO races VALUES (84, 2005, 14, 5, "turkish grand prix", "2005-08-21", "15:00:00", "http://en.wikipedia.org/wiki/2005_turkish_grand_prix"); +INSERT INTO races VALUES (85, 2005, 15, 14, "italian grand prix", "2005-09-04", "14:00:00", "http://en.wikipedia.org/wiki/2005_italian_grand_prix"); +INSERT INTO races VALUES (86, 2005, 16, 13, "belgian grand prix", "2005-09-11", "14:00:00", "http://en.wikipedia.org/wiki/2005_belgian_grand_prix"); +INSERT INTO races VALUES (87, 2005, 17, 18, "brazilian grand prix", "2005-09-25", "14:00:00", "http://en.wikipedia.org/wiki/2005_brazilian_grand_prix"); +INSERT INTO races VALUES (88, 2005, 18, 22, "japanese grand prix", "2005-10-09", "14:00:00", "http://en.wikipedia.org/wiki/2005_japanese_grand_prix"); +INSERT INTO races VALUES (89, 2005, 19, 17, "chinese grand prix", "2005-10-16", "14:00:00", "http://en.wikipedia.org/wiki/2005_chinese_grand_prix"); +INSERT INTO races VALUES (90, 2004, 1, 1, "australian grand prix", "2004-03-07", "", "http://en.wikipedia.org/wiki/2004_australian_grand_prix"); +INSERT INTO races VALUES (91, 2004, 2, 2, "malaysian grand prix", "2004-03-21", "", "http://en.wikipedia.org/wiki/2004_malaysian_grand_prix"); +INSERT INTO races VALUES (92, 2004, 3, 3, "bahrain grand prix", "2004-04-04", "", "http://en.wikipedia.org/wiki/2004_bahrain_grand_prix"); +INSERT INTO races VALUES (93, 2004, 4, 21, "san marino grand prix", "2004-04-25", "", "http://en.wikipedia.org/wiki/2004_san_marino_grand_prix"); +INSERT INTO races VALUES (94, 2004, 5, 4, "spanish grand prix", "2004-05-09", "", "http://en.wikipedia.org/wiki/2004_spanish_grand_prix"); +INSERT INTO races VALUES (95, 2004, 6, 6, "monaco grand prix", "2004-05-23", "", "http://en.wikipedia.org/wiki/2004_monaco_grand_prix"); +INSERT INTO races VALUES (96, 2004, 7, 20, "european grand prix", "2004-05-30", "", "http://en.wikipedia.org/wiki/2004_european_grand_prix"); +INSERT INTO races VALUES (97, 2004, 8, 7, "canadian grand prix", "2004-06-13", "", "http://en.wikipedia.org/wiki/2004_canadian_grand_prix"); +INSERT INTO races VALUES (98, 2004, 9, 19, "united states grand prix", "2004-06-20", "", "http://en.wikipedia.org/wiki/2004_united_states_grand_prix"); +INSERT INTO races VALUES (99, 2004, 10, 8, "french grand prix", "2004-07-04", "", "http://en.wikipedia.org/wiki/2004_french_grand_prix"); +INSERT INTO races VALUES (100, 2004, 11, 9, "british grand prix", "2004-07-11", "", "http://en.wikipedia.org/wiki/2004_british_grand_prix"); + +CREATE TABLE "drivers" ( +"driverid" integer, +"driverref" text, +"number" text, +"code" text, +"forename" text, +"surname" text, +"dob" text, +"nationality" text, +"url" text +); + +INSERT INTO drivers VALUES (1, "hamilton", "44", "ham", "lewis", "hamilton", "07/01/1985", "british", "http://en.wikipedia.org/wiki/lewis_hamilton"); +INSERT INTO drivers VALUES (2, "heidfeld", "", "hei", "nick", "heidfeld", "10/05/1977", "german", "http://en.wikipedia.org/wiki/nick_heidfeld"); +INSERT INTO drivers VALUES (3, "rosberg", "6", "ros", "nico", "rosberg", "27/06/1985", "german", "http://en.wikipedia.org/wiki/nico_rosberg"); +INSERT INTO drivers VALUES (4, "alonso", "14", "alo", "fernando", "alonso", "29/07/1981", "spanish", "http://en.wikipedia.org/wiki/fernando_alonso"); +INSERT INTO drivers VALUES (5, "kovalainen", "", "kov", "heikki", "kovalainen", "19/10/1981", "finnish", "http://en.wikipedia.org/wiki/heikki_kovalainen"); +INSERT INTO drivers VALUES (6, "nakajima", "", "nak", "kazuki", "nakajima", "11/01/1985", "japanese", "http://en.wikipedia.org/wiki/kazuki_nakajima"); +INSERT INTO drivers VALUES (7, "bourdais", "", "bou", "s̩bastien", "bourdais", "28/02/1979", "french", "http://en.wikipedia.org/wiki/s%c3%a9bastien_bourdais"); +INSERT INTO drivers VALUES (8, "raikkonen", "7", "rai", "kimi", "r�_ikk̦nen", "17/10/1979", "finnish", "http://en.wikipedia.org/wiki/kimi_r%c3%a4ikk%c3%b6nen"); +INSERT INTO drivers VALUES (9, "kubica", "", "kub", "robert", "kubica", "07/12/1984", "polish", "http://en.wikipedia.org/wiki/robert_kubica"); +INSERT INTO drivers VALUES (10, "glock", "", "glo", "timo", "glock", "18/03/1982", "german", "http://en.wikipedia.org/wiki/timo_glock"); +INSERT INTO drivers VALUES (11, "sato", "", "sat", "takuma", "sato", "28/01/1977", "japanese", "http://en.wikipedia.org/wiki/takuma_sato"); +INSERT INTO drivers VALUES (12, "piquet_jr", "", "piq", "nelson", "piquet jr.", "25/07/1985", "brazilian", "http://en.wikipedia.org/wiki/nelson_piquet_jr."); +INSERT INTO drivers VALUES (13, "massa", "19", "mas", "felipe", "massa", "25/04/1981", "brazilian", "http://en.wikipedia.org/wiki/felipe_massa"); +INSERT INTO drivers VALUES (14, "coulthard", "", "cou", "david", "coulthard", "27/03/1971", "british", "http://en.wikipedia.org/wiki/david_coulthard"); +INSERT INTO drivers VALUES (15, "trulli", "", "tru", "jarno", "trulli", "13/07/1974", "italian", "http://en.wikipedia.org/wiki/jarno_trulli"); +INSERT INTO drivers VALUES (16, "sutil", "99", "sut", "adrian", "sutil", "11/01/1983", "german", "http://en.wikipedia.org/wiki/adrian_sutil"); +INSERT INTO drivers VALUES (17, "webber", "", "web", "mark", "webber", "27/08/1976", "australian", "http://en.wikipedia.org/wiki/mark_webber"); +INSERT INTO drivers VALUES (18, "button", "22", "but", "jenson", "button", "19/01/1980", "british", "http://en.wikipedia.org/wiki/jenson_button"); +INSERT INTO drivers VALUES (19, "davidson", "", "dav", "anthony", "davidson", "18/04/1979", "british", "http://en.wikipedia.org/wiki/anthony_davidson"); +INSERT INTO drivers VALUES (20, "vettel", "5", "vet", "sebastian", "vettel", "03/07/1987", "german", "http://en.wikipedia.org/wiki/sebastian_vettel"); +INSERT INTO drivers VALUES (21, "fisichella", "", "fis", "giancarlo", "fisichella", "14/01/1973", "italian", "http://en.wikipedia.org/wiki/giancarlo_fisichella"); +INSERT INTO drivers VALUES (22, "barrichello", "", "bar", "rubens", "barrichello", "23/05/1972", "brazilian", "http://en.wikipedia.org/wiki/rubens_barrichello"); +INSERT INTO drivers VALUES (23, "ralf_schumacher", "", "sch", "ralf", "schumacher", "30/06/1975", "german", "http://en.wikipedia.org/wiki/ralf_schumacher"); +INSERT INTO drivers VALUES (24, "liuzzi", "", "liu", "vitantonio", "liuzzi", "06/08/1980", "italian", "http://en.wikipedia.org/wiki/vitantonio_liuzzi"); +INSERT INTO drivers VALUES (25, "wurz", "", "wur", "alexander", "wurz", "15/02/1974", "austrian", "http://en.wikipedia.org/wiki/alexander_wurz"); +INSERT INTO drivers VALUES (26, "speed", "", "spe", "scott", "speed", "24/01/1983", "american", "http://en.wikipedia.org/wiki/scott_speed"); +INSERT INTO drivers VALUES (27, "albers", "", "alb", "christijan", "albers", "16/04/1979", "dutch", "http://en.wikipedia.org/wiki/christijan_albers"); +INSERT INTO drivers VALUES (28, "markus_winkelhock", "", "win", "markus", "winkelhock", "13/06/1980", "german", "http://en.wikipedia.org/wiki/markus_winkelhock"); +INSERT INTO drivers VALUES (29, "yamamoto", "", "yam", "sakon", "yamamoto", "09/07/1982", "japanese", "http://en.wikipedia.org/wiki/sakon_yamamoto"); +INSERT INTO drivers VALUES (30, "michael_schumacher", "", "msc", "michael", "schumacher", "03/01/1969", "german", "http://en.wikipedia.org/wiki/michael_schumacher"); +INSERT INTO drivers VALUES (31, "montoya", "", "mon", "juan", "pablo montoya", "20/09/1975", "colombian", "http://en.wikipedia.org/wiki/juan_pablo_montoya"); +INSERT INTO drivers VALUES (32, "klien", "", "kli", "christian", "klien", "07/02/1983", "austrian", "http://en.wikipedia.org/wiki/christian_klien"); +INSERT INTO drivers VALUES (33, "monteiro", "", "tmo", "tiago", "monteiro", "24/07/1976", "portuguese", "http://en.wikipedia.org/wiki/tiago_monteiro"); +INSERT INTO drivers VALUES (34, "ide", "", "ide", "yuji", "ide", "21/01/1975", "japanese", "http://en.wikipedia.org/wiki/yuji_ide"); +INSERT INTO drivers VALUES (35, "villeneuve", "", "vil", "jacques", "villeneuve", "09/04/1971", "canadian", "http://en.wikipedia.org/wiki/jacques_villeneuve"); +INSERT INTO drivers VALUES (36, "montagny", "", "fmo", "franck", "montagny", "05/01/1978", "french", "http://en.wikipedia.org/wiki/franck_montagny"); +INSERT INTO drivers VALUES (37, "rosa", "", "dlr", "pedro", "de la rosa", "24/02/1971", "spanish", "http://en.wikipedia.org/wiki/pedro_de_la_rosa"); +INSERT INTO drivers VALUES (38, "doornbos", "", "doo", "robert", "doornbos", "23/09/1981", "dutch", "http://en.wikipedia.org/wiki/robert_doornbos"); +INSERT INTO drivers VALUES (39, "karthikeyan", "", "kar", "narain", "karthikeyan", "14/01/1977", "indian", "http://en.wikipedia.org/wiki/narain_karthikeyan"); +INSERT INTO drivers VALUES (40, "friesacher", "", "fri", "patrick", "friesacher", "26/09/1980", "austrian", "http://en.wikipedia.org/wiki/patrick_friesacher"); +INSERT INTO drivers VALUES (41, "zonta", "", "zon", "ricardo", "zonta", "23/03/1976", "brazilian", "http://en.wikipedia.org/wiki/ricardo_zonta"); +INSERT INTO drivers VALUES (42, "pizzonia", "", "piz", "ant̫nio", "pizzonia", "11/09/1980", "brazilian", "http://en.wikipedia.org/wiki/ant%c3%b4nio_pizzonia"); +INSERT INTO drivers VALUES (43, "matta", "", "", "cristiano", "da matta", "19/09/1973", "brazilian", "http://en.wikipedia.org/wiki/cristiano_da_matta"); +INSERT INTO drivers VALUES (44, "panis", "", "", "olivier", "panis", "02/09/1966", "french", "http://en.wikipedia.org/wiki/olivier_panis"); +INSERT INTO drivers VALUES (45, "pantano", "", "", "giorgio", "pantano", "04/02/1979", "italian", "http://en.wikipedia.org/wiki/giorgio_pantano"); +INSERT INTO drivers VALUES (46, "bruni", "", "", "gianmaria", "bruni", "30/05/1981", "italian", "http://en.wikipedia.org/wiki/gianmaria_bruni"); +INSERT INTO drivers VALUES (47, "baumgartner", "", "", "zsolt", "baumgartner", "01/01/1981", "hungarian", "http://en.wikipedia.org/wiki/zsolt_baumgartner"); +INSERT INTO drivers VALUES (48, "gene", "", "", "marc", "gen̩", "29/03/1974", "spanish", "http://en.wikipedia.org/wiki/marc_gen%c3%a9"); +INSERT INTO drivers VALUES (49, "frentzen", "", "", "heinz-harald", "frentzen", "18/05/1967", "german", "http://en.wikipedia.org/wiki/heinz-harald_frentzen"); +INSERT INTO drivers VALUES (50, "verstappen", "", "", "jos", "verstappen", "04/03/1972", "dutch", "http://en.wikipedia.org/wiki/jos_verstappen"); +INSERT INTO drivers VALUES (51, "wilson", "", "", "justin", "wilson", "31/07/1978", "british", "http://en.wikipedia.org/wiki/justin_wilson_racing_driver"); +INSERT INTO drivers VALUES (52, "firman", "", "", "ralph", "firman", "20/05/1975", "irish", "http://en.wikipedia.org/wiki/ralph_firman"); +INSERT INTO drivers VALUES (53, "kiesa", "", "", "nicolas", "kiesa", "03/03/1978", "danish", "http://en.wikipedia.org/wiki/nicolas_kiesa"); +INSERT INTO drivers VALUES (54, "burti", "", "", "luciano", "burti", "05/03/1975", "brazilian", "http://en.wikipedia.org/wiki/luciano_burti"); +INSERT INTO drivers VALUES (55, "alesi", "", "", "jean", "alesi", "11/06/1964", "french", "http://en.wikipedia.org/wiki/jean_alesi"); +INSERT INTO drivers VALUES (56, "irvine", "", "", "eddie", "irvine", "10/11/1965", "british", "http://en.wikipedia.org/wiki/eddie_irvine"); +INSERT INTO drivers VALUES (57, "hakkinen", "", "", "mika", "h�_kkinen", "28/09/1968", "finnish", "http://en.wikipedia.org/wiki/mika_h%c3%a4kkinen"); +INSERT INTO drivers VALUES (58, "marques", "", "", "tarso", "marques", "19/01/1976", "brazilian", "http://en.wikipedia.org/wiki/tarso_marques"); +INSERT INTO drivers VALUES (59, "bernoldi", "", "", "enrique", "bernoldi", "19/10/1978", "brazilian", "http://en.wikipedia.org/wiki/enrique_bernoldi"); +INSERT INTO drivers VALUES (60, "mazzacane", "", "", "gast�_n", "mazzacane", "08/05/1975", "argentine", "http://en.wikipedia.org/wiki/gast%c3%b3n_mazzacane"); +INSERT INTO drivers VALUES (61, "enge", "", "", "tom����", "enge", "11/09/1976", "czech", "http://en.wikipedia.org/wiki/tom%c3%a1%c5%a1_enge"); +INSERT INTO drivers VALUES (62, "yoong", "", "", "alex", "yoong", "20/07/1976", "malaysian", "http://en.wikipedia.org/wiki/alex_yoong"); +INSERT INTO drivers VALUES (63, "salo", "", "", "mika", "salo", "30/11/1966", "finnish", "http://en.wikipedia.org/wiki/mika_salo"); +INSERT INTO drivers VALUES (64, "diniz", "", "", "pedro", "diniz", "22/05/1970", "brazilian", "http://en.wikipedia.org/wiki/pedro_diniz"); +INSERT INTO drivers VALUES (65, "herbert", "", "", "johnny", "herbert", "25/06/1964", "british", "http://en.wikipedia.org/wiki/johnny_herbert"); +INSERT INTO drivers VALUES (66, "mcnish", "", "", "allan", "mcnish", "29/12/1969", "british", "http://en.wikipedia.org/wiki/allan_mcnish"); +INSERT INTO drivers VALUES (67, "buemi", "", "bue", "s̩bastien", "buemi", "31/10/1988", "swiss", "http://en.wikipedia.org/wiki/s%c3%a9bastien_buemi"); +INSERT INTO drivers VALUES (68, "takagi", "", "", "toranosuke", "takagi", "12/02/1974", "japanese", "http://en.wikipedia.org/wiki/toranosuke_takagi"); +INSERT INTO drivers VALUES (69, "badoer", "", "bad", "luca", "badoer", "25/01/1971", "italian", "http://en.wikipedia.org/wiki/luca_badoer"); +INSERT INTO drivers VALUES (70, "zanardi", "", "", "alessandro", "zanardi", "23/10/1966", "italian", "http://en.wikipedia.org/wiki/alex_zanardi"); +INSERT INTO drivers VALUES (71, "damon_hill", "", "", "damon", "hill", "17/09/1960", "british", "http://en.wikipedia.org/wiki/damon_hill"); +INSERT INTO drivers VALUES (72, "sarrazin", "", "", "st̩phane", "sarrazin", "02/11/1975", "french", "http://en.wikipedia.org/wiki/st%c3%a9phane_sarrazin"); +INSERT INTO drivers VALUES (73, "rosset", "", "", "ricardo", "rosset", "27/07/1968", "brazilian", "http://en.wikipedia.org/wiki/ricardo_rosset"); +INSERT INTO drivers VALUES (74, "tuero", "", "", "esteban", "tuero", "22/04/1978", "argentine", "http://en.wikipedia.org/wiki/esteban_tuero"); +INSERT INTO drivers VALUES (75, "nakano", "", "", "shinji", "nakano", "01/04/1971", "japanese", "http://en.wikipedia.org/wiki/shinji_nakano"); +INSERT INTO drivers VALUES (76, "magnussen", "", "mag", "jan", "magnussen", "04/07/1973", "danish", "http://en.wikipedia.org/wiki/jan_magnussen"); +INSERT INTO drivers VALUES (77, "berger", "", "", "gerhard", "berger", "27/08/1959", "austrian", "http://en.wikipedia.org/wiki/gerhard_berger"); +INSERT INTO drivers VALUES (78, "larini", "", "", "nicola", "larini", "19/03/1964", "italian", "http://en.wikipedia.org/wiki/nicola_larini"); +INSERT INTO drivers VALUES (79, "katayama", "", "", "ukyo", "katayama", "29/05/1963", "japanese", "http://en.wikipedia.org/wiki/ukyo_katayama"); +INSERT INTO drivers VALUES (80, "sospiri", "", "", "vincenzo", "sospiri", "07/10/1966", "italian", "http://en.wikipedia.org/wiki/vincenzo_sospiri"); +INSERT INTO drivers VALUES (81, "morbidelli", "", "", "gianni", "morbidelli", "13/01/1968", "italian", "http://en.wikipedia.org/wiki/gianni_morbidelli"); +INSERT INTO drivers VALUES (82, "fontana", "", "", "norberto", "fontana", "20/01/1975", "argentine", "http://en.wikipedia.org/wiki/norberto_fontana"); +INSERT INTO drivers VALUES (83, "lamy", "", "", "pedro", "lamy", "20/03/1972", "portuguese", "http://en.wikipedia.org/wiki/pedro_lamy"); +INSERT INTO drivers VALUES (84, "brundle", "", "", "martin", "brundle", "01/06/1959", "british", "http://en.wikipedia.org/wiki/martin_brundle"); +INSERT INTO drivers VALUES (85, "montermini", "", "", "andrea", "montermini", "30/05/1964", "italian", "http://en.wikipedia.org/wiki/andrea_montermini"); +INSERT INTO drivers VALUES (86, "lavaggi", "", "", "giovanni", "lavaggi", "18/02/1958", "italian", "http://en.wikipedia.org/wiki/giovanni_lavaggi"); +INSERT INTO drivers VALUES (87, "blundell", "", "", "mark", "blundell", "08/04/1966", "british", "http://en.wikipedia.org/wiki/mark_blundell"); +INSERT INTO drivers VALUES (88, "suzuki", "", "", "aguri", "suzuki", "08/09/1960", "japanese", "http://en.wikipedia.org/wiki/aguri_suzuki"); +INSERT INTO drivers VALUES (89, "inoue", "", "", "taki", "inoue", "05/09/1963", "japanese", "http://en.wikipedia.org/wiki/taki_inoue"); +INSERT INTO drivers VALUES (90, "moreno", "", "", "roberto", "moreno", "11/02/1959", "brazilian", "http://en.wikipedia.org/wiki/roberto_moreno"); +INSERT INTO drivers VALUES (91, "wendlinger", "", "", "karl", "wendlinger", "20/12/1968", "austrian", "http://en.wikipedia.org/wiki/karl_wendlinger"); +INSERT INTO drivers VALUES (92, "gachot", "", "", "bertrand", "gachot", "23/12/1962", "belgian", "http://en.wikipedia.org/wiki/bertrand_gachot"); +INSERT INTO drivers VALUES (93, "schiattarella", "", "", "domenico", "schiattarella", "17/11/1967", "italian", "http://en.wikipedia.org/wiki/domenico_schiattarella"); +INSERT INTO drivers VALUES (94, "martini", "", "", "pierluigi", "martini", "23/04/1961", "italian", "http://en.wikipedia.org/wiki/pierluigi_martini"); +INSERT INTO drivers VALUES (95, "mansell", "", "", "nigel", "mansell", "08/08/1953", "british", "http://en.wikipedia.org/wiki/nigel_mansell"); +INSERT INTO drivers VALUES (96, "boullion", "", "", "jean-christophe", "boullion", "27/12/1969", "french", "http://en.wikipedia.org/wiki/jean-christophe_boullion"); +INSERT INTO drivers VALUES (97, "papis", "", "", "massimiliano", "papis", "03/10/1969", "italian", "http://en.wikipedia.org/wiki/massimiliano_papis"); +INSERT INTO drivers VALUES (98, "deletraz", "", "", "jean-denis", "d̩l̩traz", "01/10/1963", "swiss", "http://en.wikipedia.org/wiki/jean-denis_deletraz"); +INSERT INTO drivers VALUES (99, "tarquini", "", "", "gabriele", "tarquini", "02/03/1962", "italian", "http://en.wikipedia.org/wiki/gabriele_tarquini"); +INSERT INTO drivers VALUES (100, "comas", "", "", "��rik", "comas", "28/09/1963", "french", "http://en.wikipedia.org/wiki/%c3%89rik_comas"); + +CREATE TABLE "status" ( +"statusid" integer, +"status" text +); + +INSERT INTO status VALUES (1, "finished"); +INSERT INTO status VALUES (2, "disqualified"); +INSERT INTO status VALUES (3, "accident"); +INSERT INTO status VALUES (4, "collision"); +INSERT INTO status VALUES (5, "engine"); +INSERT INTO status VALUES (6, "gearbox"); +INSERT INTO status VALUES (7, "transmission"); +INSERT INTO status VALUES (8, "clutch"); +INSERT INTO status VALUES (9, "hydraulics"); +INSERT INTO status VALUES (10, "electrical"); +INSERT INTO status VALUES (11, "+1 lap"); +INSERT INTO status VALUES (12, "+2 laps"); +INSERT INTO status VALUES (13, "+3 laps"); +INSERT INTO status VALUES (14, "+4 laps"); +INSERT INTO status VALUES (15, "+5 laps"); +INSERT INTO status VALUES (16, "+6 laps"); +INSERT INTO status VALUES (17, "+7 laps"); +INSERT INTO status VALUES (18, "+8 laps"); +INSERT INTO status VALUES (19, "+9 laps"); +INSERT INTO status VALUES (20, "spun off"); +INSERT INTO status VALUES (21, "radiator"); +INSERT INTO status VALUES (22, "suspension"); +INSERT INTO status VALUES (23, "brakes"); +INSERT INTO status VALUES (24, "differential"); +INSERT INTO status VALUES (25, "overheating"); +INSERT INTO status VALUES (26, "mechanical"); +INSERT INTO status VALUES (27, "tyre"); +INSERT INTO status VALUES (28, "driver seat"); +INSERT INTO status VALUES (29, "puncture"); +INSERT INTO status VALUES (30, "driveshaft"); +INSERT INTO status VALUES (31, "retired"); +INSERT INTO status VALUES (32, "fuel pressure"); +INSERT INTO status VALUES (33, "front wing"); +INSERT INTO status VALUES (34, "water pressure"); +INSERT INTO status VALUES (35, "refuelling"); +INSERT INTO status VALUES (36, "wheel"); +INSERT INTO status VALUES (37, "throttle"); +INSERT INTO status VALUES (38, "steering"); +INSERT INTO status VALUES (39, "technical"); +INSERT INTO status VALUES (40, "electronics"); +INSERT INTO status VALUES (41, "broken wing"); +INSERT INTO status VALUES (42, "heat shield fire"); +INSERT INTO status VALUES (43, "exhaust"); +INSERT INTO status VALUES (44, "oil leak"); +INSERT INTO status VALUES (45, "+11 laps"); +INSERT INTO status VALUES (46, "wheel rim"); +INSERT INTO status VALUES (47, "water leak"); +INSERT INTO status VALUES (48, "fuel pump"); +INSERT INTO status VALUES (49, "track rod"); +INSERT INTO status VALUES (50, "+17 laps"); +INSERT INTO status VALUES (51, "oil pressure"); +INSERT INTO status VALUES (53, "+13 laps"); +INSERT INTO status VALUES (54, "withdrew"); +INSERT INTO status VALUES (55, "+12 laps"); +INSERT INTO status VALUES (56, "engine fire"); +INSERT INTO status VALUES (58, "+26 laps"); +INSERT INTO status VALUES (59, "tyre puncture"); +INSERT INTO status VALUES (60, "out of fuel"); +INSERT INTO status VALUES (61, "wheel nut"); +INSERT INTO status VALUES (62, "not classified"); +INSERT INTO status VALUES (63, "pneumatics"); +INSERT INTO status VALUES (64, "handling"); +INSERT INTO status VALUES (65, "rear wing"); +INSERT INTO status VALUES (66, "fire"); +INSERT INTO status VALUES (67, "wheel bearing"); +INSERT INTO status VALUES (68, "physical"); +INSERT INTO status VALUES (69, "fuel system"); +INSERT INTO status VALUES (70, "oil line"); +INSERT INTO status VALUES (71, "fuel rig"); +INSERT INTO status VALUES (72, "launch control"); +INSERT INTO status VALUES (73, "injured"); +INSERT INTO status VALUES (74, "fuel"); +INSERT INTO status VALUES (75, "power loss"); +INSERT INTO status VALUES (76, "vibrations"); +INSERT INTO status VALUES (77, "107% rule"); +INSERT INTO status VALUES (78, "safety"); +INSERT INTO status VALUES (79, "drivetrain"); +INSERT INTO status VALUES (80, "ignition"); +INSERT INTO status VALUES (81, "did not qualify"); +INSERT INTO status VALUES (82, "injury"); +INSERT INTO status VALUES (83, "chassis"); +INSERT INTO status VALUES (84, "battery"); +INSERT INTO status VALUES (85, "stalled"); +INSERT INTO status VALUES (86, "halfshaft"); +INSERT INTO status VALUES (87, "crankshaft"); +INSERT INTO status VALUES (88, "+10 laps"); +INSERT INTO status VALUES (89, "safety concerns"); +INSERT INTO status VALUES (90, "not restarted"); +INSERT INTO status VALUES (91, "alternator"); +INSERT INTO status VALUES (92, "underweight"); +INSERT INTO status VALUES (93, "safety belt"); +INSERT INTO status VALUES (94, "oil pump"); +INSERT INTO status VALUES (95, "fuel leak"); +INSERT INTO status VALUES (96, "excluded"); +INSERT INTO status VALUES (97, "did not prequalify"); +INSERT INTO status VALUES (98, "injection"); +INSERT INTO status VALUES (99, "distributor"); +INSERT INTO status VALUES (100, "driver unwell"); +INSERT INTO status VALUES (101, "turbo"); +INSERT INTO status VALUES (102, "cv joint"); + +CREATE TABLE "seasons" ( +"year" integer, +"url" text +); + +INSERT INTO seasons VALUES (1950, "http://en.wikipedia.org/wiki/1950_formula_one_season"); +INSERT INTO seasons VALUES (1951, "http://en.wikipedia.org/wiki/1951_formula_one_season"); +INSERT INTO seasons VALUES (1952, "http://en.wikipedia.org/wiki/1952_formula_one_season"); +INSERT INTO seasons VALUES (1953, "http://en.wikipedia.org/wiki/1953_formula_one_season"); +INSERT INTO seasons VALUES (1954, "http://en.wikipedia.org/wiki/1954_formula_one_season"); +INSERT INTO seasons VALUES (1955, "http://en.wikipedia.org/wiki/1955_formula_one_season"); +INSERT INTO seasons VALUES (1956, "http://en.wikipedia.org/wiki/1956_formula_one_season"); +INSERT INTO seasons VALUES (1957, "http://en.wikipedia.org/wiki/1957_formula_one_season"); +INSERT INTO seasons VALUES (1958, "http://en.wikipedia.org/wiki/1958_formula_one_season"); +INSERT INTO seasons VALUES (1959, "http://en.wikipedia.org/wiki/1959_formula_one_season"); +INSERT INTO seasons VALUES (1960, "http://en.wikipedia.org/wiki/1960_formula_one_season"); +INSERT INTO seasons VALUES (1961, "http://en.wikipedia.org/wiki/1961_formula_one_season"); +INSERT INTO seasons VALUES (1962, "http://en.wikipedia.org/wiki/1962_formula_one_season"); +INSERT INTO seasons VALUES (1963, "http://en.wikipedia.org/wiki/1963_formula_one_season"); +INSERT INTO seasons VALUES (1964, "http://en.wikipedia.org/wiki/1964_formula_one_season"); +INSERT INTO seasons VALUES (1965, "http://en.wikipedia.org/wiki/1965_formula_one_season"); +INSERT INTO seasons VALUES (1966, "http://en.wikipedia.org/wiki/1966_formula_one_season"); +INSERT INTO seasons VALUES (1967, "http://en.wikipedia.org/wiki/1967_formula_one_season"); +INSERT INTO seasons VALUES (1968, "http://en.wikipedia.org/wiki/1968_formula_one_season"); +INSERT INTO seasons VALUES (1969, "http://en.wikipedia.org/wiki/1969_formula_one_season"); +INSERT INTO seasons VALUES (1970, "http://en.wikipedia.org/wiki/1970_formula_one_season"); +INSERT INTO seasons VALUES (1971, "http://en.wikipedia.org/wiki/1971_formula_one_season"); +INSERT INTO seasons VALUES (1972, "http://en.wikipedia.org/wiki/1972_formula_one_season"); +INSERT INTO seasons VALUES (1973, "http://en.wikipedia.org/wiki/1973_formula_one_season"); +INSERT INTO seasons VALUES (1974, "http://en.wikipedia.org/wiki/1974_formula_one_season"); +INSERT INTO seasons VALUES (1975, "http://en.wikipedia.org/wiki/1975_formula_one_season"); +INSERT INTO seasons VALUES (1976, "http://en.wikipedia.org/wiki/1976_formula_one_season"); +INSERT INTO seasons VALUES (1977, "http://en.wikipedia.org/wiki/1977_formula_one_season"); +INSERT INTO seasons VALUES (1978, "http://en.wikipedia.org/wiki/1978_formula_one_season"); +INSERT INTO seasons VALUES (1979, "http://en.wikipedia.org/wiki/1979_formula_one_season"); +INSERT INTO seasons VALUES (1980, "http://en.wikipedia.org/wiki/1980_formula_one_season"); +INSERT INTO seasons VALUES (1981, "http://en.wikipedia.org/wiki/1981_formula_one_season"); +INSERT INTO seasons VALUES (1982, "http://en.wikipedia.org/wiki/1982_formula_one_season"); +INSERT INTO seasons VALUES (1983, "http://en.wikipedia.org/wiki/1983_formula_one_season"); +INSERT INTO seasons VALUES (1984, "http://en.wikipedia.org/wiki/1984_formula_one_season"); +INSERT INTO seasons VALUES (1985, "http://en.wikipedia.org/wiki/1985_formula_one_season"); +INSERT INTO seasons VALUES (1986, "http://en.wikipedia.org/wiki/1986_formula_one_season"); +INSERT INTO seasons VALUES (1987, "http://en.wikipedia.org/wiki/1987_formula_one_season"); +INSERT INTO seasons VALUES (1988, "http://en.wikipedia.org/wiki/1988_formula_one_season"); +INSERT INTO seasons VALUES (1989, "http://en.wikipedia.org/wiki/1989_formula_one_season"); +INSERT INTO seasons VALUES (1990, "http://en.wikipedia.org/wiki/1990_formula_one_season"); +INSERT INTO seasons VALUES (1991, "http://en.wikipedia.org/wiki/1991_formula_one_season"); +INSERT INTO seasons VALUES (1992, "http://en.wikipedia.org/wiki/1992_formula_one_season"); +INSERT INTO seasons VALUES (1993, "http://en.wikipedia.org/wiki/1993_formula_one_season"); +INSERT INTO seasons VALUES (1994, "http://en.wikipedia.org/wiki/1994_formula_one_season"); +INSERT INTO seasons VALUES (1995, "http://en.wikipedia.org/wiki/1995_formula_one_season"); +INSERT INTO seasons VALUES (1996, "http://en.wikipedia.org/wiki/1996_formula_one_season"); +INSERT INTO seasons VALUES (1997, "http://en.wikipedia.org/wiki/1997_formula_one_season"); +INSERT INTO seasons VALUES (1998, "http://en.wikipedia.org/wiki/1998_formula_one_season"); +INSERT INTO seasons VALUES (1999, "http://en.wikipedia.org/wiki/1999_formula_one_season"); +INSERT INTO seasons VALUES (2000, "http://en.wikipedia.org/wiki/2000_formula_one_season"); +INSERT INTO seasons VALUES (2001, "http://en.wikipedia.org/wiki/2001_formula_one_season"); +INSERT INTO seasons VALUES (2002, "http://en.wikipedia.org/wiki/2002_formula_one_season"); +INSERT INTO seasons VALUES (2003, "http://en.wikipedia.org/wiki/2003_formula_one_season"); +INSERT INTO seasons VALUES (2004, "http://en.wikipedia.org/wiki/2004_formula_one_season"); +INSERT INTO seasons VALUES (2005, "http://en.wikipedia.org/wiki/2005_formula_one_season"); +INSERT INTO seasons VALUES (2006, "http://en.wikipedia.org/wiki/2006_formula_one_season"); +INSERT INTO seasons VALUES (2007, "http://en.wikipedia.org/wiki/2007_formula_one_season"); +INSERT INTO seasons VALUES (2008, "http://en.wikipedia.org/wiki/2008_formula_one_season"); +INSERT INTO seasons VALUES (2009, "http://en.wikipedia.org/wiki/2009_formula_one_season"); +INSERT INTO seasons VALUES (2010, "http://en.wikipedia.org/wiki/2010_formula_one_season"); +INSERT INTO seasons VALUES (2011, "http://en.wikipedia.org/wiki/2011_formula_one_season"); +INSERT INTO seasons VALUES (2012, "http://en.wikipedia.org/wiki/2012_formula_one_season"); +INSERT INTO seasons VALUES (2013, "http://en.wikipedia.org/wiki/2013_formula_one_season"); +INSERT INTO seasons VALUES (2014, "http://en.wikipedia.org/wiki/2014_formula_one_season"); +INSERT INTO seasons VALUES (2015, "http://en.wikipedia.org/wiki/2015_formula_one_season"); +INSERT INTO seasons VALUES (2016, "https://en.wikipedia.org/wiki/2016_formula_one_season"); +INSERT INTO seasons VALUES (2017, "https://en.wikipedia.org/wiki/2017_formula_one_season"); +INSERT INTO seasons VALUES (2018, "http://en.wikipedia.org/wiki/2018_fia_formula_one_world_championship"); + +CREATE TABLE "constructors" ( +"constructorid" integer, +"constructorref" text, +"name" text, +"nationality" text, +"url" text +); + +INSERT INTO constructors VALUES (1, "mclaren", "mclaren", "british", "http://en.wikipedia.org/wiki/mclaren"); +INSERT INTO constructors VALUES (2, "bmw_sauber", "bmw sauber", "german", "http://en.wikipedia.org/wiki/bmw_sauber"); +INSERT INTO constructors VALUES (3, "williams", "williams", "british", "http://en.wikipedia.org/wiki/williams_grand_prix_engineering"); +INSERT INTO constructors VALUES (4, "renault", "renault", "french", "http://en.wikipedia.org/wiki/renault_f1"); +INSERT INTO constructors VALUES (5, "toro_rosso", "toro rosso", "italian", "http://en.wikipedia.org/wiki/scuderia_toro_rosso"); +INSERT INTO constructors VALUES (6, "ferrari", "ferrari", "italian", "http://en.wikipedia.org/wiki/scuderia_ferrari"); +INSERT INTO constructors VALUES (7, "toyota", "toyota", "japanese", "http://en.wikipedia.org/wiki/toyota_racing"); +INSERT INTO constructors VALUES (8, "super_aguri", "super aguri", "japanese", "http://en.wikipedia.org/wiki/super_aguri_f1"); +INSERT INTO constructors VALUES (9, "red_bull", "red bull", "austrian", "http://en.wikipedia.org/wiki/red_bull_racing"); +INSERT INTO constructors VALUES (10, "force_india", "force india", "indian", "http://en.wikipedia.org/wiki/force_india"); +INSERT INTO constructors VALUES (11, "honda", "honda", "japanese", "http://en.wikipedia.org/wiki/honda_racing_f1"); +INSERT INTO constructors VALUES (12, "spyker", "spyker", "dutch", "http://en.wikipedia.org/wiki/spyker_f1"); +INSERT INTO constructors VALUES (13, "mf1", "mf1", "russian", "http://en.wikipedia.org/wiki/midland_f1_racing"); +INSERT INTO constructors VALUES (14, "spyker_mf1", "spyker mf1", "dutch", "http://en.wikipedia.org/wiki/midland_f1_racing"); +INSERT INTO constructors VALUES (15, "sauber", "sauber", "swiss", "http://en.wikipedia.org/wiki/sauber"); +INSERT INTO constructors VALUES (16, "bar", "bar", "british", "http://en.wikipedia.org/wiki/british_american_racing"); +INSERT INTO constructors VALUES (17, "jordan", "jordan", "irish", "http://en.wikipedia.org/wiki/jordan_grand_prix"); +INSERT INTO constructors VALUES (18, "minardi", "minardi", "italian", "http://en.wikipedia.org/wiki/minardi"); +INSERT INTO constructors VALUES (19, "jaguar", "jaguar", "british", "http://en.wikipedia.org/wiki/jaguar_racing"); +INSERT INTO constructors VALUES (20, "prost", "prost", "french", "http://en.wikipedia.org/wiki/prost_grand_prix"); +INSERT INTO constructors VALUES (21, "arrows", "arrows", "british", "http://en.wikipedia.org/wiki/arrows_grand_prix_international"); +INSERT INTO constructors VALUES (22, "benetton", "benetton", "italian", "http://en.wikipedia.org/wiki/benetton_formula"); +INSERT INTO constructors VALUES (23, "brawn", "brawn", "british", "http://en.wikipedia.org/wiki/brawn_gp"); +INSERT INTO constructors VALUES (24, "stewart", "stewart", "british", "http://en.wikipedia.org/wiki/stewart_grand_prix"); +INSERT INTO constructors VALUES (25, "tyrrell", "tyrrell", "british", "http://en.wikipedia.org/wiki/tyrrell_racing"); +INSERT INTO constructors VALUES (26, "lola", "lola", "british", "http://en.wikipedia.org/wiki/mastercard_lola"); +INSERT INTO constructors VALUES (27, "ligier", "ligier", "french", "http://en.wikipedia.org/wiki/ligier"); +INSERT INTO constructors VALUES (28, "forti", "forti", "italian", "http://en.wikipedia.org/wiki/forti"); +INSERT INTO constructors VALUES (29, "footwork", "footwork", "british", "http://en.wikipedia.org/wiki/footwork_arrows"); +INSERT INTO constructors VALUES (30, "pacific", "pacific", "british", "http://en.wikipedia.org/wiki/pacific_racing"); +INSERT INTO constructors VALUES (31, "simtek", "simtek", "british", "http://en.wikipedia.org/wiki/simtek"); +INSERT INTO constructors VALUES (32, "team_lotus", "team lotus", "british", "http://en.wikipedia.org/wiki/team_lotus"); +INSERT INTO constructors VALUES (33, "larrousse", "larrousse", "french", "http://en.wikipedia.org/wiki/larrousse"); +INSERT INTO constructors VALUES (34, "brabham", "brabham", "british", "http://en.wikipedia.org/wiki/brabham"); +INSERT INTO constructors VALUES (35, "dallara", "dallara", "italian", "http://en.wikipedia.org/wiki/dallara"); +INSERT INTO constructors VALUES (36, "fondmetal", "fondmetal", "italian", "http://en.wikipedia.org/wiki/fondmetal"); +INSERT INTO constructors VALUES (37, "march", "march", "british", "http://en.wikipedia.org/wiki/march_engineering"); +INSERT INTO constructors VALUES (38, "moda", "andrea moda", "italian", "http://en.wikipedia.org/wiki/andrea_moda_formula"); +INSERT INTO constructors VALUES (39, "ags", "ags", "french", "http://en.wikipedia.org/wiki/automobiles_gonfaronnaises_sportives"); +INSERT INTO constructors VALUES (40, "lambo", "lambo", "italian", "http://en.wikipedia.org/wiki/modena_racing_team"); +INSERT INTO constructors VALUES (41, "leyton", "leyton house", "british", "http://en.wikipedia.org/wiki/leyton_house"); +INSERT INTO constructors VALUES (42, "coloni", "coloni", "italian", "http://en.wikipedia.org/wiki/enzo_coloni_racing_car_systems"); +INSERT INTO constructors VALUES (44, "eurobrun", "euro brun", "italian", "http://en.wikipedia.org/wiki/euro_brun"); +INSERT INTO constructors VALUES (45, "osella", "osella", "italian", "http://en.wikipedia.org/wiki/osella"); +INSERT INTO constructors VALUES (46, "onyx", "onyx", "british", "http://en.wikipedia.org/wiki/onyx_racing_team"); +INSERT INTO constructors VALUES (47, "life", "life", "italian", "http://en.wikipedia.org/wiki/life_racing_team"); +INSERT INTO constructors VALUES (48, "rial", "rial", "german", "http://en.wikipedia.org/wiki/rial_%28racing_team%29"); +INSERT INTO constructors VALUES (49, "zakspeed", "zakspeed", "german", "http://en.wikipedia.org/wiki/zakspeed"); +INSERT INTO constructors VALUES (50, "ram", "ram", "british", "http://en.wikipedia.org/wiki/ram_racing"); +INSERT INTO constructors VALUES (51, "alfa", "alfa romeo", "italian", "http://en.wikipedia.org/wiki/alfa_romeo_formula_one"); +INSERT INTO constructors VALUES (52, "spirit", "spirit", "british", "http://en.wikipedia.org/wiki/spirit_racing_team"); +INSERT INTO constructors VALUES (53, "toleman", "toleman", "british", "http://en.wikipedia.org/wiki/toleman"); +INSERT INTO constructors VALUES (54, "ats", "ats", "italian", "http://en.wikipedia.org/wiki/ats_wheels"); +INSERT INTO constructors VALUES (55, "theodore", "theodore", "hong kong", "http://en.wikipedia.org/wiki/theodore_racing"); +INSERT INTO constructors VALUES (56, "fittipaldi", "fittipaldi", "brazilian", "http://en.wikipedia.org/wiki/fittipaldi_%28constructor%29"); +INSERT INTO constructors VALUES (57, "ensign", "ensign", "british", "http://en.wikipedia.org/wiki/ensign_%28racing_team%29"); +INSERT INTO constructors VALUES (58, "shadow", "shadow", "british", "http://en.wikipedia.org/wiki/shadow_racing_cars"); +INSERT INTO constructors VALUES (59, "wolf", "wolf", "canadian", "http://en.wikipedia.org/wiki/walter_wolf_racing"); +INSERT INTO constructors VALUES (60, "merzario", "merzario", "italian", "http://en.wikipedia.org/wiki/merzario"); +INSERT INTO constructors VALUES (61, "kauhsen", "kauhsen", "german", "http://en.wikipedia.org/wiki/kauhsen"); +INSERT INTO constructors VALUES (62, "rebaque", "rebaque", "mexican", "http://en.wikipedia.org/wiki/rebaque"); +INSERT INTO constructors VALUES (63, "surtees", "surtees", "british", "http://en.wikipedia.org/wiki/surtees"); +INSERT INTO constructors VALUES (64, "hesketh", "hesketh", "british", "http://en.wikipedia.org/wiki/hesketh_racing"); +INSERT INTO constructors VALUES (65, "martini", "martini", "french", "http://en.wikipedia.org/wiki/martini_cars"); +INSERT INTO constructors VALUES (66, "brm", "brm", "british", "http://en.wikipedia.org/wiki/brm"); +INSERT INTO constructors VALUES (67, "penske", "penske", "american", "http://en.wikipedia.org/wiki/penske_racing"); +INSERT INTO constructors VALUES (68, "lec", "lec", "british", "http://en.wikipedia.org/wiki/lec_formula_one"); +INSERT INTO constructors VALUES (69, "mcguire", "mcguire", "australian", "http://en.wikipedia.org/wiki/mcguire_formula_one"); +INSERT INTO constructors VALUES (70, "boro", "boro", "dutch", "http://en.wikipedia.org/wiki/boro_formula_one"); +INSERT INTO constructors VALUES (71, "apollon", "apollon", "swiss", "http://en.wikipedia.org/wiki/apollon_formula_one"); +INSERT INTO constructors VALUES (72, "kojima", "kojima", "japanese", "http://en.wikipedia.org/wiki/kojima_engineering"); +INSERT INTO constructors VALUES (73, "parnelli", "parnelli", "american", "http://en.wikipedia.org/wiki/parnelli"); +INSERT INTO constructors VALUES (74, "maki", "maki", "japanese", "http://en.wikipedia.org/wiki/maki_cars"); +INSERT INTO constructors VALUES (75, "hill", "embassy hill", "british", "http://en.wikipedia.org/wiki/hill_constructor"); +INSERT INTO constructors VALUES (76, "lyncar", "lyncar", "british", "http://en.wikipedia.org/wiki/lyncar"); +INSERT INTO constructors VALUES (77, "trojan", "trojan", "british", "http://en.wikipedia.org/wiki/trojan_racing_team"); +INSERT INTO constructors VALUES (78, "amon", "amon", "new zealand", "http://en.wikipedia.org/wiki/amon_formula_one_team"); +INSERT INTO constructors VALUES (79, "token", "token", "british", "http://en.wikipedia.org/wiki/token_racing_team"); +INSERT INTO constructors VALUES (80, "iso_marlboro", "iso marlboro", "british", "http://en.wikipedia.org/wiki/iso_marlboro"); +INSERT INTO constructors VALUES (81, "tecno", "tecno", "italian", "http://en.wikipedia.org/wiki/tecno"); +INSERT INTO constructors VALUES (82, "matra", "matra", "french", "http://en.wikipedia.org/wiki/matra"); +INSERT INTO constructors VALUES (83, "politoys", "politoys", "british", "http://en.wikipedia.org/wiki/frank_williams_racing_cars"); +INSERT INTO constructors VALUES (84, "connew", "connew", "british", "http://en.wikipedia.org/wiki/connew"); +INSERT INTO constructors VALUES (85, "bellasi", "bellasi", "swiss", "http://en.wikipedia.org/wiki/bellasi"); +INSERT INTO constructors VALUES (86, "tomaso", "de tomaso", "italian", "http://en.wikipedia.org/wiki/de_tomaso"); +INSERT INTO constructors VALUES (87, "cooper", "cooper", "british", "http://en.wikipedia.org/wiki/cooper_car_company"); +INSERT INTO constructors VALUES (88, "eagle", "eagle", "american", "http://en.wikipedia.org/wiki/anglo_american_racers"); +INSERT INTO constructors VALUES (89, "lds", "lds", "south african", "http://en.wikipedia.org/wiki/lds_automobile"); +INSERT INTO constructors VALUES (90, "protos", "protos", "british", "http://en.wikipedia.org/wiki/protos_constructor"); +INSERT INTO constructors VALUES (91, "shannon", "shannon", "british", "http://en.wikipedia.org/wiki/shannon_formula_one"); +INSERT INTO constructors VALUES (92, "scirocco", "scirocco", "british", "http://en.wikipedia.org/wiki/scirocco-powell"); +INSERT INTO constructors VALUES (93, "re", "re", "rhodesian", "http://en.wikipedia.org/wiki/re_%28automobile%29"); +INSERT INTO constructors VALUES (94, "brp", "brp", "british", "http://en.wikipedia.org/wiki/british_racing_partnership"); +INSERT INTO constructors VALUES (95, "porsche", "porsche", "german", "http://en.wikipedia.org/wiki/porsche_in_formula_one"); +INSERT INTO constructors VALUES (96, "derrington", "derrington", "british", "http://en.wikipedia.org/wiki/derrington-francis"); +INSERT INTO constructors VALUES (97, "gilby", "gilby", "british", "http://en.wikipedia.org/wiki/gilby"); +INSERT INTO constructors VALUES (98, "stebro", "stebro", "canadian", "http://en.wikipedia.org/wiki/stebro"); +INSERT INTO constructors VALUES (99, "emeryson", "emeryson", "british", "http://en.wikipedia.org/wiki/emeryson"); +INSERT INTO constructors VALUES (100, "enb", "enb", "belgium", "http://en.wikipedia.org/wiki/ecurie_nationale_belge"); +INSERT INTO constructors VALUES (101, "jbw", "jbw", "british", "http://en.wikipedia.org/wiki/jbw"); + +CREATE TABLE "constructorstandings" ( +"constructorstandingsid" integer, +"raceid" integer, +"constructorid" integer, +"points" real, +"position" integer, +"positiontext" text, +"wins" integer +); + +INSERT INTO constructorstandings VALUES (1, 18, 1, 14.0, 1, "1", 1); +INSERT INTO constructorstandings VALUES (2, 18, 2, 8.0, 3, "3", 0); +INSERT INTO constructorstandings VALUES (3, 18, 3, 9.0, 2, "2", 0); +INSERT INTO constructorstandings VALUES (4, 18, 4, 5.0, 4, "4", 0); +INSERT INTO constructorstandings VALUES (5, 18, 5, 2.0, 5, "5", 0); +INSERT INTO constructorstandings VALUES (6, 18, 6, 1.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (7, 19, 1, 24.0, 1, "1", 1); +INSERT INTO constructorstandings VALUES (8, 19, 2, 19.0, 2, "2", 0); +INSERT INTO constructorstandings VALUES (9, 19, 3, 9.0, 4, "4", 0); +INSERT INTO constructorstandings VALUES (10, 19, 4, 6.0, 5, "5", 0); +INSERT INTO constructorstandings VALUES (11, 19, 5, 2.0, 8, "8", 0); +INSERT INTO constructorstandings VALUES (12, 19, 6, 11.0, 3, "3", 1); +INSERT INTO constructorstandings VALUES (13, 19, 7, 5.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (14, 19, 9, 2.0, 7, "7", 0); +INSERT INTO constructorstandings VALUES (15, 19, 11, 0.0, 9, "9", 0); +INSERT INTO constructorstandings VALUES (16, 19, 10, 0.0, 10, "10", 0); +INSERT INTO constructorstandings VALUES (17, 19, 8, 0.0, 11, "11", 0); +INSERT INTO constructorstandings VALUES (18, 20, 1, 28.0, 3, "3", 1); +INSERT INTO constructorstandings VALUES (19, 20, 2, 30.0, 1, "1", 0); +INSERT INTO constructorstandings VALUES (20, 20, 3, 10.0, 4, "4", 0); +INSERT INTO constructorstandings VALUES (21, 20, 4, 6.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (22, 20, 5, 2.0, 8, "8", 0); +INSERT INTO constructorstandings VALUES (23, 20, 6, 29.0, 2, "2", 2); +INSERT INTO constructorstandings VALUES (24, 20, 7, 8.0, 5, "5", 0); +INSERT INTO constructorstandings VALUES (25, 20, 9, 4.0, 7, "7", 0); +INSERT INTO constructorstandings VALUES (26, 20, 11, 0.0, 9, "9", 0); +INSERT INTO constructorstandings VALUES (27, 20, 10, 0.0, 10, "10", 0); +INSERT INTO constructorstandings VALUES (28, 20, 8, 0.0, 11, "11", 0); +INSERT INTO constructorstandings VALUES (29, 21, 1, 34.0, 3, "3", 1); +INSERT INTO constructorstandings VALUES (30, 21, 2, 35.0, 2, "2", 0); +INSERT INTO constructorstandings VALUES (31, 21, 3, 12.0, 4, "4", 0); +INSERT INTO constructorstandings VALUES (32, 21, 4, 6.0, 7, "7", 0); +INSERT INTO constructorstandings VALUES (33, 21, 5, 2.0, 9, "9", 0); +INSERT INTO constructorstandings VALUES (34, 21, 6, 47.0, 1, "1", 3); +INSERT INTO constructorstandings VALUES (35, 21, 7, 9.0, 5, "5", 0); +INSERT INTO constructorstandings VALUES (36, 21, 9, 8.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (37, 21, 11, 3.0, 8, "8", 0); +INSERT INTO constructorstandings VALUES (38, 21, 10, 0.0, 10, "10", 0); +INSERT INTO constructorstandings VALUES (39, 21, 8, 0.0, 11, "11", 0); +INSERT INTO constructorstandings VALUES (40, 22, 1, 42.0, 3, "3", 1); +INSERT INTO constructorstandings VALUES (41, 22, 2, 44.0, 2, "2", 0); +INSERT INTO constructorstandings VALUES (42, 22, 3, 13.0, 4, "4", 0); +INSERT INTO constructorstandings VALUES (43, 22, 4, 9.0, 7, "7", 0); +INSERT INTO constructorstandings VALUES (44, 22, 5, 2.0, 9, "9", 0); +INSERT INTO constructorstandings VALUES (45, 22, 6, 63.0, 1, "1", 4); +INSERT INTO constructorstandings VALUES (46, 22, 7, 9.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (47, 22, 9, 10.0, 5, "5", 0); +INSERT INTO constructorstandings VALUES (48, 22, 11, 3.0, 8, "8", 0); +INSERT INTO constructorstandings VALUES (49, 22, 10, 0.0, 10, "10", 0); +INSERT INTO constructorstandings VALUES (50, 22, 8, 0.0, 11, "11", 0); +INSERT INTO constructorstandings VALUES (51, 23, 1, 53.0, 2, "2", 2); +INSERT INTO constructorstandings VALUES (52, 23, 2, 52.0, 3, "3", 0); +INSERT INTO constructorstandings VALUES (53, 23, 3, 15.0, 4, "4", 0); +INSERT INTO constructorstandings VALUES (54, 23, 4, 9.0, 7, "7", 0); +INSERT INTO constructorstandings VALUES (55, 23, 5, 6.0, 8, "8", 0); +INSERT INTO constructorstandings VALUES (56, 23, 6, 69.0, 1, "1", 4); +INSERT INTO constructorstandings VALUES (57, 23, 7, 9.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (58, 23, 9, 15.0, 5, "5", 0); +INSERT INTO constructorstandings VALUES (59, 23, 11, 6.0, 9, "9", 0); +INSERT INTO constructorstandings VALUES (60, 23, 10, 0.0, 10, "10", 0); +INSERT INTO constructorstandings VALUES (61, 23, 8, 0.0, 11, "11", 0); +INSERT INTO constructorstandings VALUES (62, 24, 1, 53.0, 3, "3", 2); +INSERT INTO constructorstandings VALUES (63, 24, 2, 70.0, 2, "2", 1); +INSERT INTO constructorstandings VALUES (64, 24, 3, 15.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (65, 24, 4, 9.0, 7, "7", 0); +INSERT INTO constructorstandings VALUES (66, 24, 5, 7.0, 9, "9", 0); +INSERT INTO constructorstandings VALUES (67, 24, 6, 73.0, 1, "1", 4); +INSERT INTO constructorstandings VALUES (68, 24, 7, 17.0, 5, "5", 0); +INSERT INTO constructorstandings VALUES (69, 24, 9, 21.0, 4, "4", 0); +INSERT INTO constructorstandings VALUES (70, 24, 11, 8.0, 8, "8", 0); +INSERT INTO constructorstandings VALUES (71, 24, 10, 0.0, 10, "10", 0); +INSERT INTO constructorstandings VALUES (72, 24, 8, 0.0, 11, "11", 0); +INSERT INTO constructorstandings VALUES (73, 25, 1, 58.0, 3, "3", 2); +INSERT INTO constructorstandings VALUES (74, 25, 2, 74.0, 2, "2", 1); +INSERT INTO constructorstandings VALUES (75, 25, 3, 15.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (76, 25, 4, 12.0, 7, "7", 0); +INSERT INTO constructorstandings VALUES (77, 25, 5, 7.0, 9, "9", 0); +INSERT INTO constructorstandings VALUES (78, 25, 6, 91.0, 1, "1", 5); +INSERT INTO constructorstandings VALUES (79, 25, 7, 23.0, 5, "5", 0); +INSERT INTO constructorstandings VALUES (80, 25, 9, 24.0, 4, "4", 0); +INSERT INTO constructorstandings VALUES (81, 25, 11, 8.0, 8, "8", 0); +INSERT INTO constructorstandings VALUES (82, 25, 10, 0.0, 10, "10", 0); +INSERT INTO constructorstandings VALUES (83, 25, 8, 0.0, 11, "11", 0); +INSERT INTO constructorstandings VALUES (84, 26, 1, 72.0, 3, "3", 3); +INSERT INTO constructorstandings VALUES (85, 26, 2, 82.0, 2, "2", 1); +INSERT INTO constructorstandings VALUES (86, 26, 3, 16.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (87, 26, 4, 15.0, 7, "7", 0); +INSERT INTO constructorstandings VALUES (88, 26, 5, 7.0, 9, "9", 0); +INSERT INTO constructorstandings VALUES (89, 26, 6, 96.0, 1, "1", 5); +INSERT INTO constructorstandings VALUES (90, 26, 7, 25.0, 4, "4", 0); +INSERT INTO constructorstandings VALUES (91, 26, 9, 24.0, 5, "5", 0); +INSERT INTO constructorstandings VALUES (92, 26, 11, 14.0, 8, "8", 0); +INSERT INTO constructorstandings VALUES (93, 26, 10, 0.0, 10, "10", 0); +INSERT INTO constructorstandings VALUES (94, 26, 8, 0.0, 11, "11", 0); +INSERT INTO constructorstandings VALUES (95, 27, 1, 86.0, 3, "3", 4); +INSERT INTO constructorstandings VALUES (96, 27, 2, 89.0, 2, "2", 1); +INSERT INTO constructorstandings VALUES (97, 27, 3, 16.0, 7, "7", 0); +INSERT INTO constructorstandings VALUES (98, 27, 4, 23.0, 6, "6", 0); +INSERT INTO constructorstandings VALUES (99, 27, 5, 8.0, 9, "9", 0); +INSERT INTO constructorstandings VALUES (100, 27, 6, 105.0, 1, "1", 5); + +CREATE TABLE "results" ( +"resultid" integer, +"raceid" integer, +"driverid" integer, +"constructorid" integer, +"number" integer, +"grid" integer, +"position" text, +"positiontext" text, +"positionorder" integer, +"points" real, +"laps" text, +"time" text, +"milliseconds" text, +"fastestlap" text, +"rank" text, +"fastestlaptime" text, +"fastestlapspeed" text, +"statusid" integer +); + +INSERT INTO results VALUES (1, 18, 1, 1, 22, 1, "1", "1", 1, 10.0, "58", "34:50.6", "5690616", "39", "2", "01:27.5", "218.3", 1); +INSERT INTO results VALUES (2, 18, 2, 2, 3, 5, "2", "2", 2, 8.0, "58", "5.478", "5696094", "41", "3", "01:27.7", "217.586", 1); +INSERT INTO results VALUES (3, 18, 3, 3, 7, 7, "3", "3", 3, 6.0, "58", "8.163", "5698779", "41", "5", "01:28.1", "216.719", 1); +INSERT INTO results VALUES (4, 18, 4, 4, 5, 11, "4", "4", 4, 5.0, "58", "17.181", "5707797", "58", "7", "01:28.6", "215.464", 1); +INSERT INTO results VALUES (5, 18, 5, 1, 23, 3, "5", "5", 5, 4.0, "58", "18.014", "5708630", "43", "1", "01:27.4", "218.385", 1); +INSERT INTO results VALUES (6, 18, 6, 3, 8, 13, "6", "6", 6, 3.0, "57", "", "", "50", "14", "01:29.6", "212.974", 11); +INSERT INTO results VALUES (7, 18, 7, 5, 14, 17, "7", "7", 7, 2.0, "55", "", "", "22", "12", "01:29.5", "213.224", 5); +INSERT INTO results VALUES (8, 18, 8, 6, 1, 15, "8", "8", 8, 1.0, "53", "", "", "20", "4", "01:27.9", "217.18", 5); +INSERT INTO results VALUES (9, 18, 9, 2, 4, 2, "", "r", 9, 0.0, "47", "", "", "15", "9", "01:28.8", "215.1", 4); +INSERT INTO results VALUES (10, 18, 10, 7, 12, 18, "", "r", 10, 0.0, "43", "", "", "23", "13", "01:29.6", "213.166", 3); +INSERT INTO results VALUES (11, 18, 11, 8, 18, 19, "", "r", 11, 0.0, "32", "", "", "24", "15", "01:30.9", "210.038", 7); +INSERT INTO results VALUES (12, 18, 12, 4, 6, 20, "", "r", 12, 0.0, "30", "", "", "20", "16", "01:31.4", "208.907", 8); +INSERT INTO results VALUES (13, 18, 13, 6, 2, 4, "", "r", 13, 0.0, "29", "", "", "23", "6", "01:28.2", "216.51", 5); +INSERT INTO results VALUES (14, 18, 14, 9, 9, 8, "", "r", 14, 0.0, "25", "", "", "21", "11", "01:29.5", "213.3", 4); +INSERT INTO results VALUES (15, 18, 15, 7, 11, 6, "", "r", 15, 0.0, "19", "", "", "18", "10", "01:29.3", "213.758", 10); +INSERT INTO results VALUES (16, 18, 16, 10, 20, 22, "", "r", 16, 0.0, "8", "", "", "8", "17", "01:32.0", "207.461", 9); +INSERT INTO results VALUES (17, 18, 17, 9, 10, 14, "", "r", 17, 0.0, "0", "", "", "", "", "", "", 4); +INSERT INTO results VALUES (18, 18, 18, 11, 16, 12, "", "r", 18, 0.0, "0", "", "", "", "", "", "", 4); +INSERT INTO results VALUES (19, 18, 19, 8, 19, 21, "", "r", 19, 0.0, "0", "", "", "", "", "", "", 4); +INSERT INTO results VALUES (20, 18, 20, 5, 15, 9, "", "r", 20, 0.0, "0", "", "", "", "", "", "", 4); +INSERT INTO results VALUES (21, 18, 21, 10, 21, 16, "", "r", 21, 0.0, "0", "", "", "", "", "", "", 4); +INSERT INTO results VALUES (22, 18, 22, 11, 17, 10, "", "d", 22, 0.0, "58", "", "", "44", "8", "01:28.7", "215.141", 2); +INSERT INTO results VALUES (23, 19, 8, 6, 1, 2, "1", "1", 1, 10.0, "56", "31:18.6", "5478555", "37", "2", "01:35.4", "209.158", 1); +INSERT INTO results VALUES (24, 19, 9, 2, 4, 4, "2", "2", 2, 8.0, "56", "19.57", "5498125", "39", "6", "01:35.9", "208.033", 1); +INSERT INTO results VALUES (25, 19, 5, 1, 23, 8, "3", "3", 3, 6.0, "56", "38.45", "5517005", "19", "7", "01:35.9", "208.031", 1); +INSERT INTO results VALUES (26, 19, 15, 7, 11, 3, "4", "4", 4, 5.0, "56", "45.832", "5524387", "53", "8", "01:36.1", "207.715", 1); +INSERT INTO results VALUES (27, 19, 1, 1, 22, 9, "5", "5", 5, 4.0, "56", "46.548", "5525103", "53", "3", "01:35.5", "209.033", 1); +INSERT INTO results VALUES (28, 19, 2, 2, 3, 5, "6", "6", 6, 3.0, "56", "49.833", "5528388", "55", "1", "01:35.4", "209.244", 1); +INSERT INTO results VALUES (29, 19, 17, 9, 10, 6, "7", "7", 7, 2.0, "56", "+1:08.130", "5546685", "53", "12", "01:36.7", "206.366", 1); +INSERT INTO results VALUES (30, 19, 4, 4, 5, 7, "8", "8", 8, 1.0, "56", "+1:10.041", "5548596", "40", "10", "01:36.3", "207.24", 1); +INSERT INTO results VALUES (31, 19, 14, 9, 9, 12, "9", "9", 9, 0.0, "56", "+1:16.220", "5554775", "55", "9", "01:36.2", "207.417", 1); +INSERT INTO results VALUES (32, 19, 18, 11, 16, 11, "10", "10", 10, 0.0, "56", "+1:26.214", "5564769", "56", "4", "01:35.7", "208.481", 1); +INSERT INTO results VALUES (33, 19, 12, 4, 6, 13, "11", "11", 11, 0.0, "56", "+1:32.202", "5570757", "52", "15", "01:37.0", "205.812", 1); +INSERT INTO results VALUES (34, 19, 21, 10, 21, 17, "12", "12", 12, 0.0, "55", "", "", "52", "16", "01:37.0", "205.8", 11); +INSERT INTO results VALUES (35, 19, 22, 11, 17, 14, "13", "13", 13, 0.0, "55", "", "", "55", "11", "01:36.7", "206.372", 11); +INSERT INTO results VALUES (36, 19, 3, 3, 7, 16, "14", "14", 14, 0.0, "55", "", "", "55", "13", "01:36.8", "206.182", 11); +INSERT INTO results VALUES (37, 19, 19, 8, 19, 21, "15", "15", 15, 0.0, "55", "", "", "55", "18", "01:38.2", "203.265", 11); +INSERT INTO results VALUES (38, 19, 11, 8, 18, 19, "16", "16", 16, 0.0, "54", "", "", "53", "19", "01:38.5", "202.578", 12); +INSERT INTO results VALUES (39, 19, 6, 3, 8, 22, "17", "17", 17, 0.0, "54", "", "", "19", "17", "01:37.7", "204.222", 12); +INSERT INTO results VALUES (40, 19, 20, 5, 15, 15, "", "r", 18, 0.0, "39", "", "", "37", "14", "01:36.9", "205.995", 5); +INSERT INTO results VALUES (41, 19, 13, 6, 2, 1, "", "r", 19, 0.0, "30", "", "", "15", "5", "01:35.9", "208.048", 20); +INSERT INTO results VALUES (42, 19, 16, 10, 20, 20, "", "r", 20, 0.0, "5", "", "", "3", "20", "01:40.3", "198.891", 9); +INSERT INTO results VALUES (43, 19, 10, 7, 12, 10, "", "r", 21, 0.0, "1", "", "", "", "", "", "", 4); +INSERT INTO results VALUES (44, 19, 7, 5, 14, 18, "", "r", 22, 0.0, "0", "", "", "", "", "", "", 20); +INSERT INTO results VALUES (45, 20, 13, 6, 2, 2, "1", "1", 1, 10.0, "57", "31:07.0", "5466970", "38", "3", "01:33.6", "208.153", 1); +INSERT INTO results VALUES (46, 20, 8, 6, 1, 4, "2", "2", 2, 8.0, "57", "3.339", "5470309", "35", "4", "01:33.7", "207.911", 1); +INSERT INTO results VALUES (47, 20, 9, 2, 4, 1, "3", "3", 3, 6.0, "57", "4.998", "5471968", "55", "5", "01:33.8", "207.765", 1); +INSERT INTO results VALUES (48, 20, 2, 2, 3, 6, "4", "4", 4, 5.0, "57", "8.409", "5475379", "48", "2", "01:33.6", "208.231", 1); +INSERT INTO results VALUES (49, 20, 5, 1, 23, 5, "5", "5", 5, 4.0, "57", "26.789", "5493759", "49", "1", "01:33.2", "209.062", 1); +INSERT INTO results VALUES (50, 20, 15, 7, 11, 7, "6", "6", 6, 3.0, "57", "41.314", "5508284", "45", "7", "01:34.2", "206.819", 1); +INSERT INTO results VALUES (51, 20, 17, 9, 10, 11, "7", "7", 7, 2.0, "57", "45.473", "5512443", "51", "8", "01:34.3", "206.597", 1); +INSERT INTO results VALUES (52, 20, 3, 3, 7, 8, "8", "8", 8, 1.0, "57", "55.889", "5522859", "57", "6", "01:34.1", "207.109", 1); +INSERT INTO results VALUES (53, 20, 10, 7, 12, 13, "9", "9", 9, 0.0, "57", "+1:09.500", "5536470", "56", "9", "01:34.8", "205.503", 1); +INSERT INTO results VALUES (54, 20, 4, 4, 5, 10, "10", "10", 10, 0.0, "57", "+1:17.181", "5544151", "35", "13", "01:35.2", "204.668", 1); +INSERT INTO results VALUES (55, 20, 22, 11, 17, 12, "11", "11", 11, 0.0, "57", "+1:17.862", "5544832", "40", "10", "01:34.9", "205.399", 1); +INSERT INTO results VALUES (56, 20, 21, 10, 21, 18, "12", "12", 12, 0.0, "56", "", "", "56", "11", "01:35.1", "204.963", 11); +INSERT INTO results VALUES (57, 20, 1, 1, 22, 3, "13", "13", 13, 0.0, "56", "", "", "25", "19", "01:35.5", "203.969", 11); +INSERT INTO results VALUES (58, 20, 6, 3, 8, 16, "14", "14", 14, 0.0, "56", "", "", "30", "17", "01:35.4", "204.155", 11); +INSERT INTO results VALUES (59, 20, 7, 5, 14, 15, "15", "15", 15, 0.0, "56", "", "", "33", "15", "01:35.3", "204.369", 11); +INSERT INTO results VALUES (60, 20, 19, 8, 19, 21, "16", "16", 16, 0.0, "56", "", "", "45", "14", "01:35.3", "204.389", 11); +INSERT INTO results VALUES (61, 20, 11, 8, 18, 22, "17", "17", 17, 0.0, "56", "", "", "56", "20", "01:35.9", "203.18", 11); +INSERT INTO results VALUES (62, 20, 14, 9, 9, 17, "18", "18", 18, 0.0, "56", "", "", "43", "16", "01:35.4", "204.331", 11); +INSERT INTO results VALUES (63, 20, 16, 10, 20, 20, "19", "19", 19, 0.0, "56", "", "", "55", "18", "01:35.4", "204.136", 12); +INSERT INTO results VALUES (64, 20, 12, 4, 6, 14, "", "r", 20, 0.0, "40", "", "", "31", "12", "01:35.1", "204.808", 6); +INSERT INTO results VALUES (65, 20, 18, 11, 16, 9, "", "r", 21, 0.0, "19", "", "", "11", "21", "01:36.1", "202.686", 4); +INSERT INTO results VALUES (66, 20, 20, 5, 15, 19, "", "r", 22, 0.0, "0", "", "", "", "", "", "", 5); +INSERT INTO results VALUES (67, 21, 8, 6, 1, 1, "1", "1", 1, 10.0, "66", "38:19.1", "5899051", "46", "1", "01:21.7", "205.191", 1); +INSERT INTO results VALUES (68, 21, 13, 6, 2, 3, "2", "2", 2, 8.0, "66", "3.228", "5902279", "45", "2", "01:21.8", "204.863", 1); +INSERT INTO results VALUES (69, 21, 1, 1, 22, 5, "3", "3", 3, 6.0, "66", "4.187", "5903238", "20", "3", "01:22.0", "204.323", 1); +INSERT INTO results VALUES (70, 21, 9, 2, 4, 4, "4", "4", 4, 5.0, "66", "5.694", "5904745", "20", "4", "01:22.1", "204.102", 1); +INSERT INTO results VALUES (71, 21, 17, 9, 10, 7, "5", "5", 5, 4.0, "66", "35.938", "5934989", "19", "8", "01:22.6", "202.969", 1); +INSERT INTO results VALUES (72, 21, 18, 11, 16, 13, "6", "6", 6, 3.0, "66", "53.01", "5952061", "66", "5", "01:22.4", "203.489", 1); +INSERT INTO results VALUES (73, 21, 6, 3, 8, 12, "7", "7", 7, 2.0, "66", "58.244", "5957295", "48", "15", "01:23.5", "200.576", 1); +INSERT INTO results VALUES (74, 21, 15, 7, 11, 8, "8", "8", 8, 1.0, "66", "59.435", "5958486", "45", "10", "01:22.8", "202.494", 1); +INSERT INTO results VALUES (75, 21, 2, 2, 3, 9, "9", "9", 9, 0.0, "66", "+1:03.073", "5962124", "21", "7", "01:22.5", "203.08", 1); +INSERT INTO results VALUES (76, 21, 21, 10, 21, 19, "10", "10", 10, 0.0, "65", "", "", "40", "14", "01:23.4", "200.841", 11); +INSERT INTO results VALUES (77, 21, 10, 7, 12, 14, "11", "11", 11, 0.0, "65", "", "", "57", "12", "01:23.0", "201.886", 11); +INSERT INTO results VALUES (78, 21, 14, 9, 9, 17, "12", "12", 12, 0.0, "65", "", "", "57", "11", "01:22.8", "202.288", 11); +INSERT INTO results VALUES (79, 21, 11, 8, 18, 22, "13", "13", 13, 0.0, "65", "", "", "34", "17", "01:24.6", "198.045", 11); +INSERT INTO results VALUES (80, 21, 3, 3, 7, 15, "", "r", 14, 0.0, "41", "", "", "20", "13", "01:23.3", "201.13", 5); +INSERT INTO results VALUES (81, 21, 4, 4, 5, 2, "", "r", 15, 0.0, "34", "", "", "15", "9", "01:22.7", "202.677", 5); +INSERT INTO results VALUES (82, 21, 22, 11, 17, 11, "", "r", 16, 0.0, "34", "", "", "21", "16", "01:23.9", "199.837", 4); +INSERT INTO results VALUES (83, 21, 5, 1, 23, 6, "", "r", 17, 0.0, "21", "", "", "19", "6", "01:22.5", "203.243", 3); +INSERT INTO results VALUES (84, 21, 19, 8, 19, 21, "", "r", 18, 0.0, "8", "", "", "6", "20", "01:26.9", "192.922", 21); +INSERT INTO results VALUES (85, 21, 7, 5, 14, 16, "", "r", 19, 0.0, "7", "", "", "6", "19", "01:26.0", "194.862", 4); +INSERT INTO results VALUES (86, 21, 12, 4, 6, 10, "", "r", 20, 0.0, "6", "", "", "6", "18", "01:25.4", "196.128", 4); +INSERT INTO results VALUES (87, 21, 16, 10, 20, 20, "", "r", 21, 0.0, "0", "", "", "", "", "", "", 4); +INSERT INTO results VALUES (88, 21, 20, 5, 15, 18, "", "r", 22, 0.0, "0", "", "", "", "", "", "", 4); +INSERT INTO results VALUES (89, 22, 13, 6, 2, 1, "1", "1", 1, 10.0, "58", "26:49.5", "5209451", "16", "3", "01:26.7", "221.734", 1); +INSERT INTO results VALUES (90, 22, 1, 1, 22, 3, "2", "2", 2, 8.0, "58", "3.779", "5213230", "31", "2", "01:26.5", "222.085", 1); +INSERT INTO results VALUES (91, 22, 8, 6, 1, 4, "3", "3", 3, 6.0, "58", "4.271", "5213722", "20", "1", "01:26.5", "222.144", 1); +INSERT INTO results VALUES (92, 22, 9, 2, 4, 5, "4", "4", 4, 5.0, "58", "21.945", "5231396", "17", "4", "01:26.8", "221.442", 1); +INSERT INTO results VALUES (93, 22, 2, 2, 3, 9, "5", "5", 5, 4.0, "58", "38.741", "5248192", "20", "5", "01:27.2", "220.328", 1); +INSERT INTO results VALUES (94, 22, 4, 4, 5, 7, "6", "6", 6, 3.0, "58", "53.724", "5263175", "57", "6", "01:27.3", "220.174", 1); +INSERT INTO results VALUES (95, 22, 17, 9, 10, 6, "7", "7", 7, 2.0, "58", "+1:04.229", "5273680", "14", "7", "01:27.6", "219.294", 1); +INSERT INTO results VALUES (96, 22, 3, 3, 7, 11, "8", "8", 8, 1.0, "58", "+1:11.406", "5280857", "55", "9", "01:27.8", "218.882", 1); +INSERT INTO results VALUES (97, 22, 14, 9, 9, 10, "9", "9", 9, 0.0, "58", "+1:15.270", "5284721", "41", "12", "01:28.0", "218.457", 1); +INSERT INTO results VALUES (98, 22, 15, 7, 11, 8, "10", "10", 10, 0.0, "58", "+1:16.344", "5285795", "52", "11", "01:27.9", "218.556", 1); +INSERT INTO results VALUES (99, 22, 18, 11, 16, 13, "11", "11", 11, 0.0, "57", "", "", "57", "13", "01:28.0", "218.377", 11); +INSERT INTO results VALUES (100, 22, 5, 1, 23, 2, "12", "12", 12, 0.0, "57", "", "", "55", "8", "01:27.6", "219.269", 11); + +CREATE TABLE "driverstandings" ( +"driverstandingsid" integer, +"raceid" integer, +"driverid" integer, +"points" real, +"position" integer, +"positiontext" text, +"wins" integer +); + +INSERT INTO driverstandings VALUES (1, 18, 1, 10.0, 1, "1", 1); +INSERT INTO driverstandings VALUES (2, 18, 2, 8.0, 2, "2", 0); +INSERT INTO driverstandings VALUES (3, 18, 3, 6.0, 3, "3", 0); +INSERT INTO driverstandings VALUES (4, 18, 4, 5.0, 4, "4", 0); +INSERT INTO driverstandings VALUES (5, 18, 5, 4.0, 5, "5", 0); +INSERT INTO driverstandings VALUES (6, 18, 6, 3.0, 6, "6", 0); +INSERT INTO driverstandings VALUES (7, 18, 7, 2.0, 7, "7", 0); +INSERT INTO driverstandings VALUES (8, 18, 8, 1.0, 8, "8", 0); +INSERT INTO driverstandings VALUES (9, 19, 1, 14.0, 1, "1", 1); +INSERT INTO driverstandings VALUES (10, 19, 2, 11.0, 3, "3", 0); +INSERT INTO driverstandings VALUES (11, 19, 3, 6.0, 6, "6", 0); +INSERT INTO driverstandings VALUES (12, 19, 4, 6.0, 7, "7", 0); +INSERT INTO driverstandings VALUES (13, 19, 5, 10.0, 4, "4", 0); +INSERT INTO driverstandings VALUES (14, 19, 6, 3.0, 9, "9", 0); +INSERT INTO driverstandings VALUES (15, 19, 7, 2.0, 10, "10", 0); +INSERT INTO driverstandings VALUES (16, 19, 8, 11.0, 2, "2", 1); +INSERT INTO driverstandings VALUES (17, 19, 9, 8.0, 5, "5", 0); +INSERT INTO driverstandings VALUES (18, 19, 15, 5.0, 8, "8", 0); +INSERT INTO driverstandings VALUES (19, 19, 17, 2.0, 11, "11", 0); +INSERT INTO driverstandings VALUES (20, 19, 14, 0.0, 12, "12", 0); +INSERT INTO driverstandings VALUES (21, 19, 18, 0.0, 13, "13", 0); +INSERT INTO driverstandings VALUES (22, 19, 12, 0.0, 14, "14", 0); +INSERT INTO driverstandings VALUES (23, 19, 21, 0.0, 15, "15", 0); +INSERT INTO driverstandings VALUES (24, 19, 22, 0.0, 16, "16", 0); +INSERT INTO driverstandings VALUES (25, 19, 19, 0.0, 17, "17", 0); +INSERT INTO driverstandings VALUES (26, 19, 11, 0.0, 18, "18", 0); +INSERT INTO driverstandings VALUES (27, 20, 1, 14.0, 3, "3", 1); +INSERT INTO driverstandings VALUES (28, 20, 2, 16.0, 2, "2", 0); +INSERT INTO driverstandings VALUES (29, 20, 3, 7.0, 8, "8", 0); +INSERT INTO driverstandings VALUES (30, 20, 4, 6.0, 9, "9", 0); +INSERT INTO driverstandings VALUES (31, 20, 5, 14.0, 5, "5", 0); +INSERT INTO driverstandings VALUES (32, 20, 6, 3.0, 11, "11", 0); +INSERT INTO driverstandings VALUES (33, 20, 7, 2.0, 12, "12", 0); +INSERT INTO driverstandings VALUES (34, 20, 8, 19.0, 1, "1", 1); +INSERT INTO driverstandings VALUES (35, 20, 9, 14.0, 4, "4", 0); +INSERT INTO driverstandings VALUES (36, 20, 15, 8.0, 7, "7", 0); +INSERT INTO driverstandings VALUES (37, 20, 17, 4.0, 10, "10", 0); +INSERT INTO driverstandings VALUES (38, 20, 14, 0.0, 13, "13", 0); +INSERT INTO driverstandings VALUES (39, 20, 18, 0.0, 15, "15", 0); +INSERT INTO driverstandings VALUES (40, 20, 12, 0.0, 17, "17", 0); +INSERT INTO driverstandings VALUES (41, 20, 21, 0.0, 18, "18", 0); +INSERT INTO driverstandings VALUES (42, 20, 22, 0.0, 16, "16", 0); +INSERT INTO driverstandings VALUES (43, 20, 19, 0.0, 19, "19", 0); +INSERT INTO driverstandings VALUES (44, 20, 11, 0.0, 20, "20", 0); +INSERT INTO driverstandings VALUES (45, 20, 13, 10.0, 6, "6", 1); +INSERT INTO driverstandings VALUES (46, 20, 10, 0.0, 14, "14", 0); +INSERT INTO driverstandings VALUES (47, 20, 16, 0.0, 21, "21", 0); +INSERT INTO driverstandings VALUES (48, 21, 1, 20.0, 2, "2", 1); +INSERT INTO driverstandings VALUES (49, 21, 2, 16.0, 5, "5", 0); +INSERT INTO driverstandings VALUES (50, 21, 3, 7.0, 9, "9", 0); +INSERT INTO driverstandings VALUES (51, 21, 4, 6.0, 10, "10", 0); +INSERT INTO driverstandings VALUES (52, 21, 5, 14.0, 6, "6", 0); +INSERT INTO driverstandings VALUES (53, 21, 6, 5.0, 11, "11", 0); +INSERT INTO driverstandings VALUES (54, 21, 7, 2.0, 13, "13", 0); +INSERT INTO driverstandings VALUES (55, 21, 8, 29.0, 1, "1", 2); +INSERT INTO driverstandings VALUES (56, 21, 9, 19.0, 3, "3", 0); +INSERT INTO driverstandings VALUES (57, 21, 15, 9.0, 7, "7", 0); +INSERT INTO driverstandings VALUES (58, 21, 17, 8.0, 8, "8", 0); +INSERT INTO driverstandings VALUES (59, 21, 14, 0.0, 15, "15", 0); +INSERT INTO driverstandings VALUES (60, 21, 18, 3.0, 12, "12", 0); +INSERT INTO driverstandings VALUES (61, 21, 12, 0.0, 18, "18", 0); +INSERT INTO driverstandings VALUES (62, 21, 21, 0.0, 16, "16", 0); +INSERT INTO driverstandings VALUES (63, 21, 22, 0.0, 17, "17", 0); +INSERT INTO driverstandings VALUES (64, 21, 19, 0.0, 20, "20", 0); +INSERT INTO driverstandings VALUES (65, 21, 11, 0.0, 19, "19", 0); +INSERT INTO driverstandings VALUES (66, 21, 13, 18.0, 4, "4", 1); +INSERT INTO driverstandings VALUES (67, 21, 10, 0.0, 14, "14", 0); +INSERT INTO driverstandings VALUES (68, 21, 16, 0.0, 21, "21", 0); +INSERT INTO driverstandings VALUES (69, 22, 1, 28.0, 3, "3", 1); +INSERT INTO driverstandings VALUES (70, 22, 2, 20.0, 5, "5", 0); +INSERT INTO driverstandings VALUES (71, 22, 3, 8.0, 10, "10", 0); +INSERT INTO driverstandings VALUES (72, 22, 4, 9.0, 8, "8", 0); +INSERT INTO driverstandings VALUES (73, 22, 5, 14.0, 6, "6", 0); +INSERT INTO driverstandings VALUES (74, 22, 6, 5.0, 11, "11", 0); +INSERT INTO driverstandings VALUES (75, 22, 7, 2.0, 13, "13", 0); +INSERT INTO driverstandings VALUES (76, 22, 8, 35.0, 1, "1", 2); +INSERT INTO driverstandings VALUES (77, 22, 9, 24.0, 4, "4", 0); +INSERT INTO driverstandings VALUES (78, 22, 15, 9.0, 9, "9", 0); +INSERT INTO driverstandings VALUES (79, 22, 17, 10.0, 7, "7", 0); +INSERT INTO driverstandings VALUES (80, 22, 14, 0.0, 14, "14", 0); +INSERT INTO driverstandings VALUES (81, 22, 18, 3.0, 12, "12", 0); +INSERT INTO driverstandings VALUES (82, 22, 12, 0.0, 18, "18", 0); +INSERT INTO driverstandings VALUES (83, 22, 21, 0.0, 16, "16", 0); +INSERT INTO driverstandings VALUES (84, 22, 22, 0.0, 17, "17", 0); +INSERT INTO driverstandings VALUES (85, 22, 19, 0.0, 20, "20", 0); +INSERT INTO driverstandings VALUES (86, 22, 11, 0.0, 19, "19", 0); +INSERT INTO driverstandings VALUES (87, 22, 13, 28.0, 2, "2", 2); +INSERT INTO driverstandings VALUES (88, 22, 10, 0.0, 15, "15", 0); +INSERT INTO driverstandings VALUES (89, 22, 16, 0.0, 21, "21", 0); +INSERT INTO driverstandings VALUES (90, 22, 20, 0.0, 22, "22", 0); +INSERT INTO driverstandings VALUES (91, 23, 1, 38.0, 1, "1", 2); +INSERT INTO driverstandings VALUES (92, 23, 2, 20.0, 5, "5", 0); +INSERT INTO driverstandings VALUES (93, 23, 3, 8.0, 10, "10", 0); +INSERT INTO driverstandings VALUES (94, 23, 4, 9.0, 8, "8", 0); +INSERT INTO driverstandings VALUES (95, 23, 5, 15.0, 6, "6", 0); +INSERT INTO driverstandings VALUES (96, 23, 6, 7.0, 11, "11", 0); +INSERT INTO driverstandings VALUES (97, 23, 7, 2.0, 15, "15", 0); +INSERT INTO driverstandings VALUES (98, 23, 8, 35.0, 2, "2", 2); +INSERT INTO driverstandings VALUES (99, 23, 9, 32.0, 4, "4", 0); +INSERT INTO driverstandings VALUES (100, 23, 15, 9.0, 9, "9", 0); + +CREATE TABLE "constructorresults" ( +"constructorresultsid" integer, +"raceid" integer, +"constructorid" integer, +"points" real, +"status" text +); + +INSERT INTO constructorresults VALUES (1, 18, 1, 14.0, "null"); +INSERT INTO constructorresults VALUES (2, 18, 2, 8.0, "null"); +INSERT INTO constructorresults VALUES (3, 18, 3, 9.0, "null"); +INSERT INTO constructorresults VALUES (4, 18, 4, 5.0, "null"); +INSERT INTO constructorresults VALUES (5, 18, 5, 2.0, "null"); +INSERT INTO constructorresults VALUES (6, 18, 6, 1.0, "null"); +INSERT INTO constructorresults VALUES (7, 18, 7, 0.0, "null"); +INSERT INTO constructorresults VALUES (8, 18, 8, 0.0, "null"); +INSERT INTO constructorresults VALUES (9, 18, 9, 0.0, "null"); +INSERT INTO constructorresults VALUES (10, 18, 10, 0.0, "null"); +INSERT INTO constructorresults VALUES (11, 18, 11, 0.0, "null"); +INSERT INTO constructorresults VALUES (12, 19, 6, 10.0, "null"); +INSERT INTO constructorresults VALUES (13, 19, 2, 11.0, "null"); +INSERT INTO constructorresults VALUES (14, 19, 1, 10.0, "null"); +INSERT INTO constructorresults VALUES (15, 19, 7, 5.0, "null"); +INSERT INTO constructorresults VALUES (16, 19, 9, 2.0, "null"); +INSERT INTO constructorresults VALUES (17, 19, 4, 1.0, "null"); +INSERT INTO constructorresults VALUES (18, 19, 11, 0.0, "null"); +INSERT INTO constructorresults VALUES (19, 19, 10, 0.0, "null"); +INSERT INTO constructorresults VALUES (20, 19, 3, 0.0, "null"); +INSERT INTO constructorresults VALUES (21, 19, 8, 0.0, "null"); +INSERT INTO constructorresults VALUES (22, 19, 5, 0.0, "null"); +INSERT INTO constructorresults VALUES (23, 20, 6, 18.0, "null"); +INSERT INTO constructorresults VALUES (24, 20, 2, 11.0, "null"); +INSERT INTO constructorresults VALUES (25, 20, 1, 4.0, "null"); +INSERT INTO constructorresults VALUES (26, 20, 7, 3.0, "null"); +INSERT INTO constructorresults VALUES (27, 20, 9, 2.0, "null"); +INSERT INTO constructorresults VALUES (28, 20, 3, 1.0, "null"); +INSERT INTO constructorresults VALUES (29, 20, 4, 0.0, "null"); +INSERT INTO constructorresults VALUES (30, 20, 11, 0.0, "null"); +INSERT INTO constructorresults VALUES (31, 20, 10, 0.0, "null"); +INSERT INTO constructorresults VALUES (32, 20, 5, 0.0, "null"); +INSERT INTO constructorresults VALUES (33, 20, 8, 0.0, "null"); +INSERT INTO constructorresults VALUES (34, 21, 6, 18.0, "null"); +INSERT INTO constructorresults VALUES (35, 21, 1, 6.0, "null"); +INSERT INTO constructorresults VALUES (36, 21, 2, 5.0, "null"); +INSERT INTO constructorresults VALUES (37, 21, 9, 4.0, "null"); +INSERT INTO constructorresults VALUES (38, 21, 11, 3.0, "null"); +INSERT INTO constructorresults VALUES (39, 21, 3, 2.0, "null"); +INSERT INTO constructorresults VALUES (40, 21, 7, 1.0, "null"); +INSERT INTO constructorresults VALUES (41, 21, 10, 0.0, "null"); +INSERT INTO constructorresults VALUES (42, 21, 8, 0.0, "null"); +INSERT INTO constructorresults VALUES (43, 21, 4, 0.0, "null"); +INSERT INTO constructorresults VALUES (44, 21, 5, 0.0, "null"); +INSERT INTO constructorresults VALUES (45, 22, 6, 16.0, "null"); +INSERT INTO constructorresults VALUES (46, 22, 1, 8.0, "null"); +INSERT INTO constructorresults VALUES (47, 22, 2, 9.0, "null"); +INSERT INTO constructorresults VALUES (48, 22, 4, 3.0, "null"); +INSERT INTO constructorresults VALUES (49, 22, 9, 2.0, "null"); +INSERT INTO constructorresults VALUES (50, 22, 3, 1.0, "null"); +INSERT INTO constructorresults VALUES (51, 22, 7, 0.0, "null"); +INSERT INTO constructorresults VALUES (52, 22, 11, 0.0, "null"); +INSERT INTO constructorresults VALUES (53, 22, 10, 0.0, "null"); +INSERT INTO constructorresults VALUES (54, 22, 5, 0.0, "null"); +INSERT INTO constructorresults VALUES (55, 23, 1, 11.0, "null"); +INSERT INTO constructorresults VALUES (56, 23, 2, 8.0, "null"); +INSERT INTO constructorresults VALUES (57, 23, 6, 6.0, "null"); +INSERT INTO constructorresults VALUES (58, 23, 9, 5.0, "null"); +INSERT INTO constructorresults VALUES (59, 23, 5, 4.0, "null"); +INSERT INTO constructorresults VALUES (60, 23, 11, 3.0, "null"); +INSERT INTO constructorresults VALUES (61, 23, 3, 2.0, "null"); +INSERT INTO constructorresults VALUES (62, 23, 4, 0.0, "null"); +INSERT INTO constructorresults VALUES (63, 23, 7, 0.0, "null"); +INSERT INTO constructorresults VALUES (64, 23, 10, 0.0, "null"); +INSERT INTO constructorresults VALUES (65, 24, 2, 18.0, "null"); +INSERT INTO constructorresults VALUES (66, 24, 9, 6.0, "null"); +INSERT INTO constructorresults VALUES (67, 24, 7, 8.0, "null"); +INSERT INTO constructorresults VALUES (68, 24, 6, 4.0, "null"); +INSERT INTO constructorresults VALUES (69, 24, 11, 2.0, "null"); +INSERT INTO constructorresults VALUES (70, 24, 5, 1.0, "null"); +INSERT INTO constructorresults VALUES (71, 24, 1, 0.0, "null"); +INSERT INTO constructorresults VALUES (72, 24, 3, 0.0, "null"); +INSERT INTO constructorresults VALUES (73, 24, 10, 0.0, "null"); +INSERT INTO constructorresults VALUES (74, 24, 4, 0.0, "null"); +INSERT INTO constructorresults VALUES (75, 25, 6, 18.0, "null"); +INSERT INTO constructorresults VALUES (76, 25, 7, 6.0, "null"); +INSERT INTO constructorresults VALUES (77, 25, 1, 5.0, "null"); +INSERT INTO constructorresults VALUES (78, 25, 2, 4.0, "null"); +INSERT INTO constructorresults VALUES (79, 25, 9, 3.0, "null"); +INSERT INTO constructorresults VALUES (80, 25, 4, 3.0, "null"); +INSERT INTO constructorresults VALUES (81, 25, 5, 0.0, "null"); +INSERT INTO constructorresults VALUES (82, 25, 11, 0.0, "null"); +INSERT INTO constructorresults VALUES (83, 25, 3, 0.0, "null"); +INSERT INTO constructorresults VALUES (84, 25, 10, 0.0, "null"); +INSERT INTO constructorresults VALUES (85, 26, 1, 14.0, "null"); +INSERT INTO constructorresults VALUES (86, 26, 2, 8.0, "null"); +INSERT INTO constructorresults VALUES (87, 26, 11, 6.0, "null"); +INSERT INTO constructorresults VALUES (88, 26, 6, 5.0, "null"); +INSERT INTO constructorresults VALUES (89, 26, 4, 3.0, "null"); +INSERT INTO constructorresults VALUES (90, 26, 7, 2.0, "null"); +INSERT INTO constructorresults VALUES (91, 26, 3, 1.0, "null"); +INSERT INTO constructorresults VALUES (92, 26, 9, 0.0, "null"); +INSERT INTO constructorresults VALUES (93, 26, 5, 0.0, "null"); +INSERT INTO constructorresults VALUES (94, 26, 10, 0.0, "null"); +INSERT INTO constructorresults VALUES (95, 27, 1, 14.0, "null"); +INSERT INTO constructorresults VALUES (96, 27, 4, 8.0, "null"); +INSERT INTO constructorresults VALUES (97, 27, 6, 9.0, "null"); +INSERT INTO constructorresults VALUES (98, 27, 2, 7.0, "null"); +INSERT INTO constructorresults VALUES (99, 27, 5, 1.0, "null"); +INSERT INTO constructorresults VALUES (100, 27, 7, 0.0, "null"); + +CREATE TABLE "qualifying" ( +"qualifyid" integer, +"raceid" integer, +"driverid" integer, +"constructorid" integer, +"number" integer, +"position" integer, +"q1" text, +"q2" text, +"q3" text +); + +INSERT INTO qualifying VALUES (1, 18, 1, 1, 22, 1, "1:26.572", "1:25.187", "1:26.714"); +INSERT INTO qualifying VALUES (2, 18, 9, 2, 4, 2, "1:26.103", "1:25.315", "1:26.869"); +INSERT INTO qualifying VALUES (3, 18, 5, 1, 23, 3, "1:25.664", "1:25.452", "1:27.079"); +INSERT INTO qualifying VALUES (4, 18, 13, 6, 2, 4, "1:25.994", "1:25.691", "1:27.178"); +INSERT INTO qualifying VALUES (5, 18, 2, 2, 3, 5, "1:25.960", "1:25.518", "1:27.236"); +INSERT INTO qualifying VALUES (6, 18, 15, 7, 11, 6, "1:26.427", "1:26.101", "1:28.527"); +INSERT INTO qualifying VALUES (7, 18, 3, 3, 7, 7, "1:26.295", "1:26.059", "1:28.687"); +INSERT INTO qualifying VALUES (8, 18, 14, 9, 9, 8, "1:26.381", "1:26.063", "1:29.041"); +INSERT INTO qualifying VALUES (9, 18, 10, 7, 12, 9, "1:26.919", "1:26.164", "1:29.593"); +INSERT INTO qualifying VALUES (10, 18, 20, 5, 15, 10, "1:26.702", "1:25.842", "null"); +INSERT INTO qualifying VALUES (11, 18, 22, 11, 17, 11, "1:26.369", "1:26.173", "null"); +INSERT INTO qualifying VALUES (12, 18, 4, 4, 5, 12, "1:26.907", "1:26.188", "null"); +INSERT INTO qualifying VALUES (13, 18, 18, 11, 16, 13, "1:26.712", "1:26.259", "null"); +INSERT INTO qualifying VALUES (14, 18, 6, 3, 8, 14, "1:26.891", "1:26.413", "null"); +INSERT INTO qualifying VALUES (15, 18, 17, 9, 10, 15, "1:26.914", "", "null"); +INSERT INTO qualifying VALUES (16, 18, 8, 6, 1, 16, "1:26.140", "", "null"); +INSERT INTO qualifying VALUES (17, 18, 21, 10, 21, 17, "1:27.207", "", "null"); +INSERT INTO qualifying VALUES (18, 18, 7, 5, 14, 18, "1:27.446", "", "null"); +INSERT INTO qualifying VALUES (19, 18, 16, 10, 20, 19, "1:27.859", "", "null"); +INSERT INTO qualifying VALUES (20, 18, 11, 8, 18, 20, "1:28.208", "", "null"); +INSERT INTO qualifying VALUES (21, 18, 12, 4, 6, 21, "1:28.330", "", "null"); +INSERT INTO qualifying VALUES (22, 18, 19, 8, 19, 22, "1:29.059", "", "null"); +INSERT INTO qualifying VALUES (23, 19, 13, 6, 2, 1, "1:35.347", "1:34.412", "1:35.748"); +INSERT INTO qualifying VALUES (24, 19, 8, 6, 1, 2, "1:35.645", "1:34.188", "1:36.230"); +INSERT INTO qualifying VALUES (25, 19, 5, 1, 23, 3, "1:35.227", "1:34.759", "1:36.613"); +INSERT INTO qualifying VALUES (26, 19, 1, 1, 22, 4, "1:35.392", "1:34.627", "1:36.709"); +INSERT INTO qualifying VALUES (27, 19, 15, 7, 11, 5, "1:35.205", "1:34.960", "1:36.711"); +INSERT INTO qualifying VALUES (28, 19, 9, 2, 4, 6, "1:35.794", "1:34.811", "1:36.727"); +INSERT INTO qualifying VALUES (29, 19, 2, 2, 3, 7, "1:35.729", "1:34.648", "1:36.753"); +INSERT INTO qualifying VALUES (30, 19, 17, 9, 10, 8, "1:35.440", "1:34.967", "1:37.009"); +INSERT INTO qualifying VALUES (31, 19, 4, 4, 5, 9, "1:35.983", "1:35.140", "1:38.450"); +INSERT INTO qualifying VALUES (32, 19, 10, 7, 12, 10, "1:35.891", "1:35.000", "1:39.656"); +INSERT INTO qualifying VALUES (33, 19, 18, 11, 16, 11, "1:35.847", "1:35.208", "null"); +INSERT INTO qualifying VALUES (34, 19, 14, 9, 9, 12, "1:36.058", "1:35.408", "null"); +INSERT INTO qualifying VALUES (35, 19, 12, 4, 6, 13, "1:36.074", "1:35.562", "null"); +INSERT INTO qualifying VALUES (36, 19, 22, 11, 17, 14, "1:36.198", "1:35.622", "null"); +INSERT INTO qualifying VALUES (37, 19, 20, 5, 15, 15, "1:36.111", "1:35.648", "null"); +INSERT INTO qualifying VALUES (38, 19, 3, 3, 7, 16, "1:35.843", "1:35.670", "null"); +INSERT INTO qualifying VALUES (39, 19, 21, 10, 21, 17, "1:36.240", "", "null"); +INSERT INTO qualifying VALUES (40, 19, 6, 3, 8, 18, "1:36.388", "", "null"); +INSERT INTO qualifying VALUES (41, 19, 7, 5, 14, 19, "1:36.677", "", "null"); +INSERT INTO qualifying VALUES (42, 19, 11, 8, 18, 20, "1:37.087", "", "null"); +INSERT INTO qualifying VALUES (43, 19, 16, 10, 20, 21, "1:37.101", "", "null"); +INSERT INTO qualifying VALUES (44, 19, 19, 8, 19, 22, "1:37.481", "", "null"); +INSERT INTO qualifying VALUES (45, 20, 9, 2, 4, 1, "1:32.893", "1:31.745", "1:33.096"); +INSERT INTO qualifying VALUES (46, 20, 13, 6, 2, 2, "1:31.937", "1:31.188", "1:33.123"); +INSERT INTO qualifying VALUES (47, 20, 1, 1, 22, 3, "1:32.750", "1:31.922", "1:33.292"); +INSERT INTO qualifying VALUES (48, 20, 8, 6, 1, 4, "1:32.652", "1:31.933", "1:33.418"); +INSERT INTO qualifying VALUES (49, 20, 5, 1, 23, 5, "1:33.057", "1:31.718", "1:33.488"); +INSERT INTO qualifying VALUES (50, 20, 2, 2, 3, 6, "1:33.137", "1:31.909", "1:33.737"); +INSERT INTO qualifying VALUES (51, 20, 15, 7, 11, 7, "1:32.493", "1:32.159", "1:33.994"); +INSERT INTO qualifying VALUES (52, 20, 3, 3, 7, 8, "1:32.903", "1:32.185", "1:34.015"); +INSERT INTO qualifying VALUES (53, 20, 18, 11, 16, 9, "1:32.793", "1:32.362", "1:35.057"); +INSERT INTO qualifying VALUES (54, 20, 4, 4, 5, 10, "1:32.947", "1:32.345", "1:35.115"); +INSERT INTO qualifying VALUES (55, 20, 17, 9, 10, 11, "1:33.194", "1:32.371", "null"); +INSERT INTO qualifying VALUES (56, 20, 22, 11, 17, 12, "1:32.944", "1:32.508", "null"); +INSERT INTO qualifying VALUES (57, 20, 10, 7, 12, 13, "1:32.800", "1:32.528", "null"); +INSERT INTO qualifying VALUES (58, 20, 12, 4, 6, 14, "1:32.975", "1:32.790", "null"); +INSERT INTO qualifying VALUES (59, 20, 7, 5, 14, 15, "1:33.415", "1:32.915", "null"); +INSERT INTO qualifying VALUES (60, 20, 6, 3, 8, 16, "1:33.386", "1:32.943", "null"); +INSERT INTO qualifying VALUES (61, 20, 14, 9, 9, 17, "1:33.433", "", "null"); +INSERT INTO qualifying VALUES (62, 20, 21, 10, 21, 18, "1:33.501", "", "null"); +INSERT INTO qualifying VALUES (63, 20, 20, 5, 15, 19, "1:34.127", "", "null"); +INSERT INTO qualifying VALUES (64, 20, 16, 10, 20, 20, "1:33.562", "", "null"); +INSERT INTO qualifying VALUES (65, 20, 19, 8, 19, 21, "1:34.140", "", "null"); +INSERT INTO qualifying VALUES (66, 20, 11, 8, 18, 22, "1:35.725", "", "null"); +INSERT INTO qualifying VALUES (67, 21, 8, 6, 1, 1, "1:20.701", "1:20.784", "1:21.813"); +INSERT INTO qualifying VALUES (68, 21, 4, 4, 5, 2, "1:21.347", "1:20.804", "1:21.904"); +INSERT INTO qualifying VALUES (69, 21, 13, 6, 2, 3, "1:21.528", "1:20.584", "1:22.058"); +INSERT INTO qualifying VALUES (70, 21, 9, 2, 4, 4, "1:21.423", "1:20.597", "1:22.065"); +INSERT INTO qualifying VALUES (71, 21, 1, 1, 22, 5, "1:21.366", "1:20.825", "1:22.096"); +INSERT INTO qualifying VALUES (72, 21, 5, 1, 23, 6, "1:21.430", "1:20.817", "1:22.231"); +INSERT INTO qualifying VALUES (73, 21, 17, 9, 10, 7, "1:21.494", "1:20.984", "1:22.429"); +INSERT INTO qualifying VALUES (74, 21, 15, 7, 11, 8, "1:21.158", "1:20.907", "1:22.529"); +INSERT INTO qualifying VALUES (75, 21, 2, 2, 3, 9, "1:21.466", "1:20.815", "1:22.542"); +INSERT INTO qualifying VALUES (76, 21, 12, 4, 6, 10, "1:21.409", "1:20.894", "1:22.699"); +INSERT INTO qualifying VALUES (77, 21, 22, 11, 17, 11, "1:21.548", "1:21.049", "null"); +INSERT INTO qualifying VALUES (78, 21, 6, 3, 8, 12, "1:21.690", "1:21.117", "null"); +INSERT INTO qualifying VALUES (79, 21, 18, 11, 16, 13, "1:21.757", "1:21.211", "null"); +INSERT INTO qualifying VALUES (80, 21, 10, 7, 12, 14, "1:21.427", "1:21.230", "null"); +INSERT INTO qualifying VALUES (81, 21, 3, 3, 7, 15, "1:21.472", "1:21.349", "null"); +INSERT INTO qualifying VALUES (82, 21, 7, 5, 14, 16, "1:21.540", "1:21.724", "null"); +INSERT INTO qualifying VALUES (83, 21, 14, 9, 9, 17, "1:21.810", "", "null"); +INSERT INTO qualifying VALUES (84, 21, 20, 5, 15, 18, "1:22.108", "", "null"); +INSERT INTO qualifying VALUES (85, 21, 21, 10, 21, 19, "1:22.516", "", "null"); +INSERT INTO qualifying VALUES (86, 21, 16, 10, 20, 20, "1:23.224", "", "null"); +INSERT INTO qualifying VALUES (87, 21, 19, 8, 19, 21, "1:23.318", "", "null"); +INSERT INTO qualifying VALUES (88, 21, 11, 8, 18, 22, "1:23.496", "", "null"); +INSERT INTO qualifying VALUES (89, 22, 13, 6, 2, 1, "1:25.994", "1:26.192", "1:27.617"); +INSERT INTO qualifying VALUES (90, 22, 5, 1, 23, 2, "1:26.736", "1:26.290", "1:27.808"); +INSERT INTO qualifying VALUES (91, 22, 1, 1, 22, 3, "1:26.192", "1:26.477", "1:27.923"); +INSERT INTO qualifying VALUES (92, 22, 8, 6, 1, 4, "1:26.457", "1:26.050", "1:27.936"); +INSERT INTO qualifying VALUES (93, 22, 9, 2, 4, 5, "1:26.761", "1:26.129", "1:28.390"); +INSERT INTO qualifying VALUES (94, 22, 17, 9, 10, 6, "1:26.773", "1:26.466", "1:28.417"); +INSERT INTO qualifying VALUES (95, 22, 4, 4, 5, 7, "1:26.836", "1:26.522", "1:28.422"); +INSERT INTO qualifying VALUES (96, 22, 15, 7, 11, 8, "1:26.695", "1:26.822", "1:28.836"); +INSERT INTO qualifying VALUES (97, 22, 2, 2, 3, 9, "1:27.107", "1:27.607", "1:28.882"); +INSERT INTO qualifying VALUES (98, 22, 14, 9, 9, 10, "1:26.939", "1:26.520", "1:29.959"); +INSERT INTO qualifying VALUES (99, 22, 3, 3, 7, 11, "1:27.367", "1:27.012", "null"); +INSERT INTO qualifying VALUES (100, 22, 22, 11, 17, 12, "1:27.355", "1:27.219", "null"); + +CREATE TABLE "pitstops" ( +"raceid" text, +"driverid" text, +"stop" text, +"lap" text, +"time" text, +"duration" text, +"milliseconds" text +); + +INSERT INTO pitstops VALUES ("o", "g", "r", "i", "d", "p", "y"); +INSERT INTO pitstops VALUES ("i", "g", "l", "s", "r", "o", "e"); +INSERT INTO pitstops VALUES ("d", "l", "g", "o", "s", "g", "e"); +INSERT INTO pitstops VALUES ("p", "r", "r", "s", "r", "d", "i"); +INSERT INTO pitstops VALUES ("g", "i", "o", "l", "g", "d", "d"); +INSERT INTO pitstops VALUES ("o", "p", "r", "e", "l", "y", "d"); +INSERT INTO pitstops VALUES ("s", "l", "o", "p", "s", "d", "d"); +INSERT INTO pitstops VALUES ("d", "l", "o", "g", "r", "p", "e"); +INSERT INTO pitstops VALUES ("g", "e", "o", "e", "l", "g", "d"); +INSERT INTO pitstops VALUES ("g", "r", "y", "l", "p", "o", "l"); +INSERT INTO pitstops VALUES ("p", "g", "p", "i", "y", "s", "p"); +INSERT INTO pitstops VALUES ("d", "s", "r", "p", "y", "i", "r"); +INSERT INTO pitstops VALUES ("g", "y", "i", "e", "o", "o", "o"); +INSERT INTO pitstops VALUES ("p", "l", "o", "y", "i", "s", "l"); +INSERT INTO pitstops VALUES ("i", "o", "e", "p", "r", "y", "s"); +INSERT INTO pitstops VALUES ("s", "y", "g", "y", "e", "i", "s"); +INSERT INTO pitstops VALUES ("s", "i", "d", "l", "r", "g", "y"); +INSERT INTO pitstops VALUES ("g", "o", "s", "e", "g", "y", "e"); +INSERT INTO pitstops VALUES ("r", "d", "e", "y", "r", "g", "s"); + +CREATE TABLE "laptimes" ( +"raceid" text, +"driverid" text, +"lap" text, +"position" text, +"time" text, +"milliseconds" text +); + +INSERT INTO laptimes VALUES ("s", "r", "i", "s", "g", "r"); +INSERT INTO laptimes VALUES ("r", "d", "l", "l", "g", "e"); +INSERT INTO laptimes VALUES ("s", "o", "y", "o", "e", "s"); +INSERT INTO laptimes VALUES ("g", "d", "l", "r", "y", "y"); +INSERT INTO laptimes VALUES ("e", "o", "o", "y", "o", "d"); +INSERT INTO laptimes VALUES ("l", "i", "e", "p", "r", "e"); +INSERT INTO laptimes VALUES ("d", "i", "o", "l", "o", "p"); +INSERT INTO laptimes VALUES ("p", "e", "o", "y", "y", "p"); +INSERT INTO laptimes VALUES ("l", "o", "o", "e", "o", "g"); +INSERT INTO laptimes VALUES ("i", "d", "r", "l", "r", "y"); +INSERT INTO laptimes VALUES ("e", "p", "e", "g", "i", "y"); +INSERT INTO laptimes VALUES ("p", "l", "y", "y", "i", "y"); +INSERT INTO laptimes VALUES ("s", "r", "e", "e", "g", "o"); +INSERT INTO laptimes VALUES ("e", "o", "e", "s", "p", "d"); +INSERT INTO laptimes VALUES ("e", "i", "o", "o", "o", "o"); +INSERT INTO laptimes VALUES ("g", "g", "r", "e", "d", "o"); +INSERT INTO laptimes VALUES ("e", "s", "o", "y", "o", "g"); +INSERT INTO laptimes VALUES ("s", "i", "r", "e", "o", "d"); +INSERT INTO laptimes VALUES ("s", "p", "g", "r", "i", "o"); +INSERT INTO laptimes VALUES ("g", "r", "e", "y", "s", "o"); +INSERT INTO laptimes VALUES ("l", "e", "i", "r", "d", "r"); +INSERT INTO laptimes VALUES ("i", "e", "s", "o", "d", "e"); +INSERT INTO laptimes VALUES ("y", "o", "i", "s", "s", "o"); +INSERT INTO laptimes VALUES ("r", "p", "r", "p", "s", "l"); +INSERT INTO laptimes VALUES ("d", "i", "r", "o", "s", "i"); +INSERT INTO laptimes VALUES ("s", "s", "e", "l", "p", "o"); + + +COMMIT; diff --git a/all/databases/formula_1/formula_1.sqlite b/all/databases/formula_1/formula_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..d53e188dc7c1accefe3d07e154231f4682c44e77 Binary files /dev/null and b/all/databases/formula_1/formula_1.sqlite differ diff --git a/all/databases/game_injury/game_injury.sql b/all/databases/game_injury/game_injury.sql new file mode 100644 index 0000000000000000000000000000000000000000..3e1ffc35d5cf581162c49e0183b36221fc8d0c19 --- /dev/null +++ b/all/databases/game_injury/game_injury.sql @@ -0,0 +1,82 @@ +CREATE TABLE "stadium" ( +"id" integer, +"name" text, +"home_games" integer, +"average_attendance" real, +"total_attendance" real, +"capacity_percentage" real +); + +INSERT INTO stadium VALUES (1, "cowboys stadium", 8, 87047.0, 696377.0, 108.8); +INSERT INTO stadium VALUES (2, "fedexfield", 8, 83172.0, 665380.0, 90.7); +INSERT INTO stadium VALUES (3, "new meadowlands stadium", 8, 79019.0, 632156.0, 95.8); +INSERT INTO stadium VALUES (4, "new meadowlands stadium", 8, 78596.0, 628768.0, 95.3); +INSERT INTO stadium VALUES (5, "invesco field at mile high", 8, 74908.0, 599264.0, 98.4); +INSERT INTO stadium VALUES (6, "bank of america stadium", 8, 72620.0, 580965.0, 98.4); +INSERT INTO stadium VALUES (7, "m&t bank stadium", 8, 71227.0, 569817.0, 100.3); +INSERT INTO stadium VALUES (8, "reliant stadium", 8, 71080.0, 568643.0, 100.0); +INSERT INTO stadium VALUES (9, "lambeau field", 8, 70795.0, 566362.0, 97.1); +INSERT INTO stadium VALUES (10, "louisiana superdome", 8, 70038.0, 560304.0, 96.0); +INSERT INTO stadium VALUES (11, "lincoln financial field", 8, 69144.0, 553152.0, 102.3); +INSERT INTO stadium VALUES (12, "lp field", 8, 69143.0, 553144.0, 100.0); +INSERT INTO stadium VALUES (13, "gillette stadium", 8, 68756.0, 550048.0, 100.0); + +CREATE TABLE "game" ( +"stadium_id" integer, +"id" integer, +"season" integer, +"date" text, +"home_team" text, +"away_team" text, +"score" text, +"competition" text +); + +INSERT INTO game VALUES (1, 1, 2007, "18 may 2007", "quruvchi", "pakhtakor", "1–1", "league"); +INSERT INTO game VALUES (2, 2, 2007, "22 september 2007", "pakhtakor", "quruvchi", "0–0", "league"); +INSERT INTO game VALUES (3, 3, 2007, "9 december 2007", "pakhtakor", "quruvchi", "0–0 7:6", "cup"); +INSERT INTO game VALUES (4, 4, 2008, "10 july 2008", "pakhtakor", "quruvchi", "1–1", "league"); +INSERT INTO game VALUES (5, 5, 2008, "16 august 2008", "bunyodkor", "pakhtakor", "1–1", "league"); +INSERT INTO game VALUES (6, 6, 2008, "31 october 2008", "bunyodkor", "pakhtakor", "3–1", "cup"); +INSERT INTO game VALUES (7, 7, 2009, "12 july 2009", "bunyodkor", "pakhtakor", "2–1", "league"); +INSERT INTO game VALUES (8, 8, 2009, "14 october 2009", "pakhtakor", "bunyodkor", "0–0", "league"); +INSERT INTO game VALUES (9, 9, 2009, "8 august 2009", "pakhtakor", "bunyodkor", "1–0", "cup"); +INSERT INTO game VALUES (10, 10, 2010, "14 march 2010", "bunyodkor", "pakhtakor", "2–1", "league"); +INSERT INTO game VALUES (10, 11, 2010, "31 october 2010", "pakhtakor", "bunyodkor", "0–0", "league"); +INSERT INTO game VALUES (10, 12, 2011, "7 july 2011", "pakhtakor", "bunyodkor", "0–0", "league"); +INSERT INTO game VALUES (1, 13, 2011, "21 august 2011", "bunyodkor", "pakhtakor", "2–1", "league"); +INSERT INTO game VALUES (2, 14, 2012, "11 march 2012", "bunyodkor", "pakhtakor", "–", "supercup"); +INSERT INTO game VALUES (3, 15, 2012, "26 june 2012", "bunyodkor", "pakhtakor", "2–0", "league"); +INSERT INTO game VALUES (4, 16, 2012, "9 august 2012", "pakhtakor", "bunyodkor", "1–1", "league"); +INSERT INTO game VALUES (5, 17, 2012, "22 august 2012", "bunyodkor", "pakhtakor", "1–1", "cup"); +INSERT INTO game VALUES (11, 18, 2012, "25 november 2012", "pakhtakor", "bunyodkor", "1–3", "cup"); +INSERT INTO game VALUES (12, 19, 2013, "30 june 2013", "pakhtakor", "bunyodkor", "0–2", "league"); +INSERT INTO game VALUES (7, 20, 2013, "8 august 2013", "bunyodkor", "pakhtakor", "1–2", "league"); + +CREATE TABLE "injury_accident" ( +"game_id" integer, +"id" integer, +"player" text, +"injury" text, +"number_of_matches" text, +"source" text +); + +INSERT INTO injury_accident VALUES (1, 1, "davide santon", "clean-up surgery on his right knee", "12", "inter.it"); +INSERT INTO injury_accident VALUES (2, 2, "maicon", "knee problem", "2", "inter.it"); +INSERT INTO injury_accident VALUES (3, 3, "dejan stanković", "hamstring muscle strain in his left thigh", "2", "inter.it"); +INSERT INTO injury_accident VALUES (4, 4, "wesley sneijder", "foot injury", "1", "inter.it"); +INSERT INTO injury_accident VALUES (5, 5, "diego milito", "slight thigh strain in right leg", "1", "inter.it"); +INSERT INTO injury_accident VALUES (5, 6, "javier zanetti", "post-traumatic pneumothrorax", "4", "inter.it"); +INSERT INTO injury_accident VALUES (6, 7, "walter samuel", "right thigh muscle strain", "3", "inter.it"); +INSERT INTO injury_accident VALUES (6, 8, "thiago motta", "surgery on his right knee", "10", "inter.it"); +INSERT INTO injury_accident VALUES (6, 9, "goran pandev", "ankle problem", "3", "inter.it"); +INSERT INTO injury_accident VALUES (8, 10, "iván córdoba", "sustained a biceps femoris strain in his left leg", "1", "inter.it"); +INSERT INTO injury_accident VALUES (9, 11, "esteban cambiasso", "first-degree strain left hamstring muscles", "2", "inter.it"); +INSERT INTO injury_accident VALUES (10, 12, "dejan stanković 2", "right calf strain", "4 6", "inter.it"); +INSERT INTO injury_accident VALUES (10, 13, "wesley sneijder 2", "fainted during half time", "1 2", "inter.it"); +INSERT INTO injury_accident VALUES (11, 14, "esteban cambiasso 2", "sustained posterior thigh strains in his left leg", "4 6", "inter.it"); +INSERT INTO injury_accident VALUES (12, 15, "thiago motta 2", "knee problem", "7 17", "inter.it"); + + +COMMIT; diff --git a/all/databases/game_injury/game_injury.sqlite b/all/databases/game_injury/game_injury.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..8782c072ba4f44676ee05de3e4e67c8eb3ca2ae2 Binary files /dev/null and b/all/databases/game_injury/game_injury.sqlite differ diff --git a/all/databases/game_injury_minus_1_0/game_injury_minus_1_0.sql b/all/databases/game_injury_minus_1_0/game_injury_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..b60799ac7cff9a50e38a69ff6678d65e260d9246 --- /dev/null +++ b/all/databases/game_injury_minus_1_0/game_injury_minus_1_0.sql @@ -0,0 +1,59 @@ +create table injury_accident ( +game_id integer, +id integer, +player text, +injury text, +number_of_matches text, +source text +); +insert into injury_accident values(1, 1, 'davide santon', 'clean-up surgery on his right knee', 12, 'inter.it'); +insert into injury_accident values(2, 2, 'maicon', 'knee problem', 2, 'inter.it'); +insert into injury_accident values(3, 3, 'dejan stanković', 'hamstring muscle strain in his left thigh', 2, 'inter.it'); +insert into injury_accident values(4, 4, 'wesley sneijder', 'foot injury', 1, 'inter.it'); +insert into injury_accident values(5, 5, 'diego milito', 'slight thigh strain in right leg', 1, 'inter.it'); +insert into injury_accident values(5, 6, 'javier zanetti', 'post-traumatic pneumothrorax', 4, 'inter.it'); +insert into injury_accident values(6, 7, 'walter samuel', 'right thigh muscle strain', 3, 'inter.it'); +insert into injury_accident values(6, 8, 'thiago motta', 'surgery on his right knee', 10, 'inter.it'); +insert into injury_accident values(6, 9, 'goran pandev', 'ankle problem', 3, 'inter.it'); +insert into injury_accident values(8, 10, 'iván córdoba', 'sustained a biceps femoris strain in his left leg', 1, 'inter.it'); +insert into injury_accident values(9, 11, 'esteban cambiasso', 'first-degree strain left hamstring muscles', 2, 'inter.it'); +insert into injury_accident values(10, 12, 'dejan stanković 2', 'right calf strain', '4 6', 'inter.it'); +insert into injury_accident values(10, 13, 'wesley sneijder 2', 'fainted during half time', '1 2', 'inter.it'); +insert into injury_accident values(11, 14, 'esteban cambiasso 2', 'sustained posterior thigh strains in his left leg', '4 6', 'inter.it'); +insert into injury_accident values(12, 15, 'thiago motta 2', 'knee problem', '7 17', 'inter.it'); +create table stadium_game ( +id integer, +name text, +home_games integer, +average_attendance real, +total_attendance real, +capacity_percentage real, +id_game integer, +season integer, +date text, +home_team text, +away_team text, +score text, +competition text); +insert into stadium_game values(1, 'cowboys stadium', 8, 87047.0, 696377.0, 108.8, 1, 2007, '18 may 2007', 'quruvchi', 'pakhtakor', '1–1', 'league'); +insert into stadium_game values(1, 'cowboys stadium', 8, 87047.0, 696377.0, 108.8, 13, 2011, '21 august 2011', 'bunyodkor', 'pakhtakor', '2–1', 'league'); +insert into stadium_game values(2, 'fedexfield', 8, 83172.0, 665380.0, 90.7, 2, 2007, '22 september 2007', 'pakhtakor', 'quruvchi', '0–0', 'league'); +insert into stadium_game values(2, 'fedexfield', 8, 83172.0, 665380.0, 90.7, 14, 2012, '11 march 2012', 'bunyodkor', 'pakhtakor', '–', 'supercup'); +insert into stadium_game values(3, 'new meadowlands stadium', 8, 79019.0, 632156.0, 95.8, 3, 2007, '9 december 2007', 'pakhtakor', 'quruvchi', '0–0 7:6', 'cup'); +insert into stadium_game values(3, 'new meadowlands stadium', 8, 79019.0, 632156.0, 95.8, 15, 2012, '26 june 2012', 'bunyodkor', 'pakhtakor', '2–0', 'league'); +insert into stadium_game values(4, 'new meadowlands stadium', 8, 78596.0, 628768.0, 95.3, 4, 2008, '10 july 2008', 'pakhtakor', 'quruvchi', '1–1', 'league'); +insert into stadium_game values(4, 'new meadowlands stadium', 8, 78596.0, 628768.0, 95.3, 16, 2012, '9 august 2012', 'pakhtakor', 'bunyodkor', '1–1', 'league'); +insert into stadium_game values(5, 'invesco field at mile high', 8, 74908.0, 599264.0, 98.4, 5, 2008, '16 august 2008', 'bunyodkor', 'pakhtakor', '1–1', 'league'); +insert into stadium_game values(5, 'invesco field at mile high', 8, 74908.0, 599264.0, 98.4, 17, 2012, '22 august 2012', 'bunyodkor', 'pakhtakor', '1–1', 'cup'); +insert into stadium_game values(6, 'bank of america stadium', 8, 72620.0, 580965.0, 98.4, 6, 2008, '31 october 2008', 'bunyodkor', 'pakhtakor', '3–1', 'cup'); +insert into stadium_game values(7, 'm&t bank stadium', 8, 71227.0, 569817.0, 100.3, 7, 2009, '12 july 2009', 'bunyodkor', 'pakhtakor', '2–1', 'league'); +insert into stadium_game values(7, 'm&t bank stadium', 8, 71227.0, 569817.0, 100.3, 20, 2013, '8 august 2013', 'bunyodkor', 'pakhtakor', '1–2', 'league'); +insert into stadium_game values(8, 'reliant stadium', 8, 71080.0, 568643.0, 100.0, 8, 2009, '14 october 2009', 'pakhtakor', 'bunyodkor', '0–0', 'league'); +insert into stadium_game values(9, 'lambeau field', 8, 70795.0, 566362.0, 97.1, 9, 2009, '8 august 2009', 'pakhtakor', 'bunyodkor', '1–0', 'cup'); +insert into stadium_game values(10, 'louisiana superdome', 8, 70038.0, 560304.0, 96.0, 10, 2010, '14 march 2010', 'bunyodkor', 'pakhtakor', '2–1', 'league'); +insert into stadium_game values(10, 'louisiana superdome', 8, 70038.0, 560304.0, 96.0, 11, 2010, '31 october 2010', 'pakhtakor', 'bunyodkor', '0–0', 'league'); +insert into stadium_game values(10, 'louisiana superdome', 8, 70038.0, 560304.0, 96.0, 12, 2011, '7 july 2011', 'pakhtakor', 'bunyodkor', '0–0', 'league'); +insert into stadium_game values(11, 'lincoln financial field', 8, 69144.0, 553152.0, 102.3, 18, 2012, '25 november 2012', 'pakhtakor', 'bunyodkor', '1–3', 'cup'); +insert into stadium_game values(12, 'lp field', 8, 69143.0, 553144.0, 100.0, 19, 2013, '30 june 2013', 'pakhtakor', 'bunyodkor', '0–2', 'league'); +insert into stadium_game values(13, 'gillette stadium', 8, 68756.0, 550048.0, 100.0, 'None', 'None', 'None', 'None', 'None', 'None', 'None'); + diff --git a/all/databases/game_injury_minus_1_0/game_injury_minus_1_0.sqlite b/all/databases/game_injury_minus_1_0/game_injury_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..c2250b66db9b6c59478df00a07a5e225679e6940 Binary files /dev/null and b/all/databases/game_injury_minus_1_0/game_injury_minus_1_0.sqlite differ diff --git a/all/databases/gas_company/gas_company.sql b/all/databases/gas_company/gas_company.sql new file mode 100644 index 0000000000000000000000000000000000000000..95ff890fd266b4faba34ca2441418fff71dce43f --- /dev/null +++ b/all/databases/gas_company/gas_company.sql @@ -0,0 +1,59 @@ +CREATE TABLE "company" ( +"company_id" integer, +"rank" integer, +"company" text, +"headquarters" text, +"main_industry" text, +"sales_billion" real, +"profits_billion" real, +"assets_billion" real, +"market_value" real +); + +INSERT INTO company VALUES (1, 1, "exxonmobil", "usa", "oil and gas", 433.5, 41.1, 331.1, 407.4); +INSERT INTO company VALUES (2, 3, "general electric", "usa", "conglomerate", 147.3, 14.2, 717.2, 213.7); +INSERT INTO company VALUES (3, 4, "royal dutch shell", "netherlands", "oil and gas", 470.2, 30.9, 340.5, 227.6); +INSERT INTO company VALUES (4, 5, "industrial and commercial bank of china", "china", "banking", 82.6, 25.1, 2039.1, 237.4); +INSERT INTO company VALUES (5, 6, "hsbc", "uk", "banking", 102.0, 16.2, 2550.0, 164.3); +INSERT INTO company VALUES (6, 7, "petrochina", "china", "oil and gas", 310.1, 20.6, 304.7, 294.7); +INSERT INTO company VALUES (7, 8, "berkshire hathaway", "usa", "conglomerate", 143.7, 10.3, 392.6, 202.2); +INSERT INTO company VALUES (8, 9, "wells fargo", "usa", "banking", 87.6, 15.9, 1313.9, 178.7); +INSERT INTO company VALUES (9, 10, "petrobras", "brazil", "oil and gas", 145.9, 20.1, 319.4, 180.0); +INSERT INTO company VALUES (10, 11, "bp", "uk", "oil and gas", 375.5, 25.7, 292.5, 147.4); + +CREATE TABLE "gas_station" ( +"station_id" integer, +"open_year" integer, +"location" text, +"manager_name" text, +"vice_manager_name" text, +"representative_name" text +); + +INSERT INTO gas_station VALUES (1, 1998, "herne hill", "brianwingrave", "russell denman", "clive burr"); +INSERT INTO gas_station VALUES (2, 1999, "channel hill", "simonmarloe", "russell brown", "rob jefferies"); +INSERT INTO gas_station VALUES (3, 2000, "reading north", "simon cope derek marloe", "james colin", "dave edwards roger"); +INSERT INTO gas_station VALUES (4, 2002, "herne st", "colin denman", "martin garnham", "ray hughes"); +INSERT INTO gas_station VALUES (5, 2003, "reading", "colin denman", "martin freeman", "andrew russell"); +INSERT INTO gas_station VALUES (6, 2004, "herne ave", "tom whit", "simon gaywood", "tony gibb"); +INSERT INTO gas_station VALUES (7, 2005, "hennry hill", "bryan taylor", "james holland-leader", "simon gaywood"); +INSERT INTO gas_station VALUES (8, 2006, "jane ave", "bryandenman", "james holland-leader", "simon gaywood"); +INSERT INTO gas_station VALUES (9, 2007, "maindy hill", "tony bristow", "jamemarloe", "courtney rowe"); +INSERT INTO gas_station VALUES (10, 2008, "maindy ave", "luke rowe", "tonybristow", "chris pyatt"); +INSERT INTO gas_station VALUES (11, 2009, "newport rd", "jon rowe", "steve parsons", "tim read"); + +CREATE TABLE "station_company" ( +"station_id" integer, +"company_id" integer, +"rank_of_the_year" integer +); + +INSERT INTO station_company VALUES (1, 3, 1); +INSERT INTO station_company VALUES (4, 1, 2); +INSERT INTO station_company VALUES (6, 6, 3); +INSERT INTO station_company VALUES (7, 9, 4); +INSERT INTO station_company VALUES (10, 10, 9); +INSERT INTO station_company VALUES (11, 1, 13); + + +COMMIT; diff --git a/all/databases/gas_company/gas_company.sqlite b/all/databases/gas_company/gas_company.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..8027e415e70227aaf5285f8481f68513a2f0a12b Binary files /dev/null and b/all/databases/gas_company/gas_company.sqlite differ diff --git a/all/databases/hospital_1/hospital_1.sql b/all/databases/hospital_1/hospital_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..1dd1e37910b4c6d94cc4d455c0b3247ed114d91a --- /dev/null +++ b/all/databases/hospital_1/hospital_1.sql @@ -0,0 +1,262 @@ +CREATE TABLE "physician" ( +"employeeid" integer, +"name" text, +"position" text, +"ssn" integer +); + +INSERT INTO physician VALUES (1, "john dorian", "staff internist", 111111111); +INSERT INTO physician VALUES (2, "elliot reid", "attending physician", 222222222); +INSERT INTO physician VALUES (3, "christopher turk", "surgical attending physician", 333333333); +INSERT INTO physician VALUES (4, "percival cox", "senior attending physician", 444444444); +INSERT INTO physician VALUES (5, "bob kelso", "head chief of medicine", 555555555); +INSERT INTO physician VALUES (6, "todd quinlan", "surgical attending physician", 666666666); +INSERT INTO physician VALUES (7, "john wen", "surgical attending physician", 777777777); +INSERT INTO physician VALUES (8, "keith dudemeister", "md resident", 888888888); +INSERT INTO physician VALUES (9, "molly clock", "attending psychiatrist", 999999999); + +CREATE TABLE "department" ( +"departmentid" integer, +"name" text, +"head" integer +); + +INSERT INTO department VALUES (1, "general medicine", 4); +INSERT INTO department VALUES (2, "surgery", 7); +INSERT INTO department VALUES (3, "psychiatry", 9); + +CREATE TABLE "affiliated_with" ( +"physician" integer, +"department" integer, +"primaryaffiliation" integer +); + +INSERT INTO affiliated_with VALUES (1, 1, 1); +INSERT INTO affiliated_with VALUES (2, 1, 1); +INSERT INTO affiliated_with VALUES (3, 1, 0); +INSERT INTO affiliated_with VALUES (3, 2, 1); +INSERT INTO affiliated_with VALUES (4, 1, 1); +INSERT INTO affiliated_with VALUES (5, 1, 1); +INSERT INTO affiliated_with VALUES (6, 2, 1); +INSERT INTO affiliated_with VALUES (7, 1, 0); +INSERT INTO affiliated_with VALUES (7, 2, 1); +INSERT INTO affiliated_with VALUES (8, 1, 1); +INSERT INTO affiliated_with VALUES (9, 3, 1); + +CREATE TABLE "procedures" ( +"code" integer, +"name" text, +"cost" real +); + +INSERT INTO procedures VALUES (1, "reverse rhinopodoplasty", 1500.0); +INSERT INTO procedures VALUES (2, "obtuse pyloric recombobulation", 3750.0); +INSERT INTO procedures VALUES (3, "folded demiophtalmectomy", 4500.0); +INSERT INTO procedures VALUES (4, "complete walletectomy", 10000.0); +INSERT INTO procedures VALUES (5, "obfuscated dermogastrotomy", 4899.0); +INSERT INTO procedures VALUES (6, "reversible pancreomyoplasty", 5600.0); +INSERT INTO procedures VALUES (7, "follicular demiectomy", 25.0); + +CREATE TABLE "trained_in" ( +"physician" integer, +"treatment" integer, +"certificationdate" text, +"certificationexpires" text +); + +INSERT INTO trained_in VALUES (3, 1, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (3, 2, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (3, 5, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (3, 6, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (3, 7, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (6, 2, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (6, 5, "2007-01-01", "2007-12-31"); +INSERT INTO trained_in VALUES (6, 6, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (7, 1, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (7, 2, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (7, 3, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (7, 4, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (7, 5, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (7, 6, "2008-01-01", "2008-12-31"); +INSERT INTO trained_in VALUES (7, 7, "2008-01-01", "2008-12-31"); + +CREATE TABLE "patient" ( +"ssn" integer, +"name" text, +"address" text, +"phone" text, +"insuranceid" integer, +"pcp" integer +); + +INSERT INTO patient VALUES (100000001, "john smith", "42 foobar lane", "555-0256", 68476213, 1); +INSERT INTO patient VALUES (100000002, "grace ritchie", "37 snafu drive", "555-0512", 36546321, 2); +INSERT INTO patient VALUES (100000003, "random j. patient", "101 omgbbq street", "555-1204", 65465421, 2); +INSERT INTO patient VALUES (100000004, "dennis doe", "1100 foobaz avenue", "555-2048", 68421879, 3); + +CREATE TABLE "nurse" ( +"employeeid" integer, +"name" text, +"position" text, +"registered" integer, +"ssn" integer +); + +INSERT INTO nurse VALUES (101, "carla espinosa", "head nurse", 1, 111111110); +INSERT INTO nurse VALUES (102, "laverne roberts", "nurse", 1, 222222220); +INSERT INTO nurse VALUES (103, "paul flowers", "nurse", 0, 333333330); + +CREATE TABLE "appointment" ( +"appointmentid" integer, +"patient" integer, +"prepnurse" integer, +"physician" integer, +"start" text, +"end" text, +"examinationroom" text +); + +INSERT INTO appointment VALUES (13216584, 100000001, 101, 1, "2008-04-24 10:00", "2008-04-24 11:00", "a"); +INSERT INTO appointment VALUES (26548913, 100000002, 101, 2, "2008-04-24 10:00", "2008-04-24 11:00", "b"); +INSERT INTO appointment VALUES (36549879, 100000001, 102, 1, "2008-04-25 10:00", "2008-04-25 11:00", "a"); +INSERT INTO appointment VALUES (46846589, 100000004, 103, 4, "2008-04-25 10:00", "2008-04-25 11:00", "b"); +INSERT INTO appointment VALUES (59871321, 100000004, "NULL", 4, "2008-04-26 10:00", "2008-04-26 11:00", "c"); +INSERT INTO appointment VALUES (69879231, 100000003, 103, 2, "2008-04-26 11:00", "2008-04-26 12:00", "c"); +INSERT INTO appointment VALUES (76983231, 100000001, "NULL", 3, "2008-04-26 12:00", "2008-04-26 13:00", "c"); +INSERT INTO appointment VALUES (86213939, 100000004, 102, 9, "2008-04-27 10:00", "2008-04-21 11:00", "a"); +INSERT INTO appointment VALUES (93216548, 100000002, 101, 2, "2008-04-27 10:00", "2008-04-27 11:00", "b"); + +CREATE TABLE "medication" ( +"code" integer, +"name" text, +"brand" text, +"description" text +); + +INSERT INTO medication VALUES (1, "procrastin-x", "x", "n/a"); +INSERT INTO medication VALUES (2, "thesisin", "foo labs", "n/a"); +INSERT INTO medication VALUES (3, "awakin", "bar laboratories", "n/a"); +INSERT INTO medication VALUES (4, "crescavitin", "baz industries", "n/a"); +INSERT INTO medication VALUES (5, "melioraurin", "snafu pharmaceuticals", "n/a"); + +CREATE TABLE "prescribes" ( +"physician" integer, +"patient" integer, +"medication" integer, +"date" text, +"appointment" integer, +"dose" text +); + +INSERT INTO prescribes VALUES (1, 100000001, 1, "2008-04-24 10:47", 13216584, "5"); +INSERT INTO prescribes VALUES (9, 100000004, 2, "2008-04-27 10:53", 86213939, "10"); +INSERT INTO prescribes VALUES (9, 100000004, 2, "2008-04-30 16:53", "NULL", "5"); + +CREATE TABLE "block" ( +"blockfloor" integer, +"blockcode" integer +); + +INSERT INTO block VALUES (1, 1); +INSERT INTO block VALUES (1, 2); +INSERT INTO block VALUES (1, 3); +INSERT INTO block VALUES (2, 1); +INSERT INTO block VALUES (2, 2); +INSERT INTO block VALUES (2, 3); +INSERT INTO block VALUES (3, 1); +INSERT INTO block VALUES (3, 2); +INSERT INTO block VALUES (3, 3); +INSERT INTO block VALUES (4, 1); +INSERT INTO block VALUES (4, 2); +INSERT INTO block VALUES (4, 3); + +CREATE TABLE "room" ( +"roomnumber" integer, +"roomtype" text, +"blockfloor" integer, +"blockcode" integer, +"unavailable" integer +); + +INSERT INTO room VALUES (101, "single", 1, 1, 0); +INSERT INTO room VALUES (102, "single", 1, 1, 0); +INSERT INTO room VALUES (103, "single", 1, 1, 0); +INSERT INTO room VALUES (111, "single", 1, 2, 0); +INSERT INTO room VALUES (112, "single", 1, 2, 1); +INSERT INTO room VALUES (113, "single", 1, 2, 0); +INSERT INTO room VALUES (121, "single", 1, 3, 0); +INSERT INTO room VALUES (122, "single", 1, 3, 0); +INSERT INTO room VALUES (123, "single", 1, 3, 0); +INSERT INTO room VALUES (201, "single", 2, 1, 1); +INSERT INTO room VALUES (202, "single", 2, 1, 0); +INSERT INTO room VALUES (203, "single", 2, 1, 0); +INSERT INTO room VALUES (211, "single", 2, 2, 0); +INSERT INTO room VALUES (212, "single", 2, 2, 0); +INSERT INTO room VALUES (213, "single", 2, 2, 1); +INSERT INTO room VALUES (221, "single", 2, 3, 0); +INSERT INTO room VALUES (222, "single", 2, 3, 0); +INSERT INTO room VALUES (223, "single", 2, 3, 0); +INSERT INTO room VALUES (301, "single", 3, 1, 0); +INSERT INTO room VALUES (302, "single", 3, 1, 1); +INSERT INTO room VALUES (303, "single", 3, 1, 0); +INSERT INTO room VALUES (311, "single", 3, 2, 0); +INSERT INTO room VALUES (312, "single", 3, 2, 0); +INSERT INTO room VALUES (313, "single", 3, 2, 0); +INSERT INTO room VALUES (321, "single", 3, 3, 1); +INSERT INTO room VALUES (322, "single", 3, 3, 0); +INSERT INTO room VALUES (323, "single", 3, 3, 0); +INSERT INTO room VALUES (401, "single", 4, 1, 0); +INSERT INTO room VALUES (402, "single", 4, 1, 1); +INSERT INTO room VALUES (403, "single", 4, 1, 0); +INSERT INTO room VALUES (411, "single", 4, 2, 0); +INSERT INTO room VALUES (412, "single", 4, 2, 0); +INSERT INTO room VALUES (413, "single", 4, 2, 0); +INSERT INTO room VALUES (421, "single", 4, 3, 1); +INSERT INTO room VALUES (422, "single", 4, 3, 0); +INSERT INTO room VALUES (423, "single", 4, 3, 0); + +CREATE TABLE "on_call" ( +"nurse" integer, +"blockfloor" integer, +"blockcode" integer, +"oncallstart" text, +"oncallend" text +); + +INSERT INTO on_call VALUES (101, 1, 1, "2008-11-04 11:00", "2008-11-04 19:00"); +INSERT INTO on_call VALUES (101, 1, 2, "2008-11-04 11:00", "2008-11-04 19:00"); +INSERT INTO on_call VALUES (102, 1, 3, "2008-11-04 11:00", "2008-11-04 19:00"); +INSERT INTO on_call VALUES (103, 1, 1, "2008-11-04 19:00", "2008-11-05 03:00"); +INSERT INTO on_call VALUES (103, 1, 2, "2008-11-04 19:00", "2008-11-05 03:00"); +INSERT INTO on_call VALUES (103, 1, 3, "2008-11-04 19:00", "2008-11-05 03:00"); + +CREATE TABLE "stay" ( +"stayid" integer, +"patient" integer, +"room" integer, +"staystart" text, +"stayend" text +); + +INSERT INTO stay VALUES (3215, 100000001, 111, "2008-05-01", "2008-05-04"); +INSERT INTO stay VALUES (3216, 100000003, 123, "2008-05-03", "2008-05-14"); +INSERT INTO stay VALUES (3217, 100000004, 112, "2008-05-02", "2008-05-03"); + +CREATE TABLE "undergoes" ( +"patient" integer, +"procedures" integer, +"stay" integer, +"dateundergoes" text, +"physician" integer, +"assistingnurse" integer +); + +INSERT INTO undergoes VALUES (100000001, 2, 3215, "2008-05-03", 3, 101); +INSERT INTO undergoes VALUES (100000001, 6, 3215, "2008-05-02", 7, 101); +INSERT INTO undergoes VALUES (100000001, 7, 3217, "2008-05-10", 3, 102); +INSERT INTO undergoes VALUES (100000004, 1, 3217, "2008-05-07", 6, 105); +INSERT INTO undergoes VALUES (100000004, 4, 3217, "2008-05-13", 7, 101); +INSERT INTO undergoes VALUES (100000004, 5, 3217, "2008-05-09", 3, 103); + + +COMMIT; diff --git a/all/databases/hospital_1/hospital_1.sqlite b/all/databases/hospital_1/hospital_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..98bf5f534efa50ab0931f99c655ea181043bb29e Binary files /dev/null and b/all/databases/hospital_1/hospital_1.sqlite differ diff --git a/all/databases/hospital_1_minus_1_0/hospital_1_minus_1_0.sql b/all/databases/hospital_1_minus_1_0/hospital_1_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..2720f67296f46d808a6f1070bfa901e56624a836 --- /dev/null +++ b/all/databases/hospital_1_minus_1_0/hospital_1_minus_1_0.sql @@ -0,0 +1,236 @@ +create table physician ( +employeeid integer, +name text, +position text, +ssn integer +); +insert into physician values(1, 'john dorian', 'staff internist', 111111111); +insert into physician values(2, 'elliot reid', 'attending physician', 222222222); +insert into physician values(3, 'christopher turk', 'surgical attending physician', 333333333); +insert into physician values(4, 'percival cox', 'senior attending physician', 444444444); +insert into physician values(5, 'bob kelso', 'head chief of medicine', 555555555); +insert into physician values(6, 'todd quinlan', 'surgical attending physician', 666666666); +insert into physician values(7, 'john wen', 'surgical attending physician', 777777777); +insert into physician values(8, 'keith dudemeister', 'md resident', 888888888); +insert into physician values(9, 'molly clock', 'attending psychiatrist', 999999999); + +create table department ( +departmentid integer, +name text, +head integer +); +insert into department values(1, 'general medicine', 4); +insert into department values(2, 'surgery', 7); +insert into department values(3, 'psychiatry', 9); + +create table affiliated_with ( +physician integer, +department integer, +primaryaffiliation integer +); +insert into affiliated_with values(1, 1, 1); +insert into affiliated_with values(2, 1, 1); +insert into affiliated_with values(3, 1, 0); +insert into affiliated_with values(3, 2, 1); +insert into affiliated_with values(4, 1, 1); +insert into affiliated_with values(5, 1, 1); +insert into affiliated_with values(6, 2, 1); +insert into affiliated_with values(7, 1, 0); +insert into affiliated_with values(7, 2, 1); +insert into affiliated_with values(8, 1, 1); +insert into affiliated_with values(9, 3, 1); + +create table procedures ( +code integer, +name text, +cost real +); +insert into procedures values(1, 'reverse rhinopodoplasty', 1500.0); +insert into procedures values(2, 'obtuse pyloric recombobulation', 3750.0); +insert into procedures values(3, 'folded demiophtalmectomy', 4500.0); +insert into procedures values(4, 'complete walletectomy', 10000.0); +insert into procedures values(5, 'obfuscated dermogastrotomy', 4899.0); +insert into procedures values(6, 'reversible pancreomyoplasty', 5600.0); +insert into procedures values(7, 'follicular demiectomy', 25.0); + +create table trained_in ( +physician integer, +treatment integer, +certificationdate text, +certificationexpires text +); +insert into trained_in values(3, 1, '2008-01-01', '2008-12-31'); +insert into trained_in values(3, 2, '2008-01-01', '2008-12-31'); +insert into trained_in values(3, 5, '2008-01-01', '2008-12-31'); +insert into trained_in values(3, 6, '2008-01-01', '2008-12-31'); +insert into trained_in values(3, 7, '2008-01-01', '2008-12-31'); +insert into trained_in values(6, 2, '2008-01-01', '2008-12-31'); +insert into trained_in values(6, 5, '2007-01-01', '2007-12-31'); +insert into trained_in values(6, 6, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 1, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 2, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 3, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 4, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 5, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 6, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 7, '2008-01-01', '2008-12-31'); + +create table nurse ( +employeeid integer, +name text, +position text, +registered integer, +ssn integer +); +insert into nurse values(101, 'carla espinosa', 'head nurse', 1, 111111110); +insert into nurse values(102, 'laverne roberts', 'nurse', 1, 222222220); +insert into nurse values(103, 'paul flowers', 'nurse', 0, 333333330); + +create table appointment ( +appointmentid integer, +patient integer, +prepnurse integer, +physician integer, +start text, +end text, +examinationroom text +); +insert into appointment values(13216584, 100000001, 101, 1, '2008-04-24 10:00', '2008-04-24 11:00', 'a'); +insert into appointment values(26548913, 100000002, 101, 2, '2008-04-24 10:00', '2008-04-24 11:00', 'b'); +insert into appointment values(36549879, 100000001, 102, 1, '2008-04-25 10:00', '2008-04-25 11:00', 'a'); +insert into appointment values(46846589, 100000004, 103, 4, '2008-04-25 10:00', '2008-04-25 11:00', 'b'); +insert into appointment values(59871321, 100000004, 'null', 4, '2008-04-26 10:00', '2008-04-26 11:00', 'c'); +insert into appointment values(69879231, 100000003, 103, 2, '2008-04-26 11:00', '2008-04-26 12:00', 'c'); +insert into appointment values(76983231, 100000001, 'null', 3, '2008-04-26 12:00', '2008-04-26 13:00', 'c'); +insert into appointment values(86213939, 100000004, 102, 9, '2008-04-27 10:00', '2008-04-21 11:00', 'a'); +insert into appointment values(93216548, 100000002, 101, 2, '2008-04-27 10:00', '2008-04-27 11:00', 'b'); + +create table medication ( +code integer, +name text, +brand text, +description text +); +insert into medication values(1, 'procrastin-x', 'x', 'n/a'); +insert into medication values(2, 'thesisin', 'foo labs', 'n/a'); +insert into medication values(3, 'awakin', 'bar laboratories', 'n/a'); +insert into medication values(4, 'crescavitin', 'baz industries', 'n/a'); +insert into medication values(5, 'melioraurin', 'snafu pharmaceuticals', 'n/a'); + +create table prescribes ( +physician integer, +patient integer, +medication integer, +date text, +appointment integer, +dose text +); +insert into prescribes values(1, 100000001, 1, '2008-04-24 10:47', 13216584, 5); +insert into prescribes values(9, 100000004, 2, '2008-04-27 10:53', 86213939, 10); +insert into prescribes values(9, 100000004, 2, '2008-04-30 16:53', 'null', 5); + +create table block ( +blockfloor integer, +blockcode integer +); +insert into block values(1, 1); +insert into block values(1, 2); +insert into block values(1, 3); +insert into block values(2, 1); +insert into block values(2, 2); +insert into block values(2, 3); +insert into block values(3, 1); +insert into block values(3, 2); +insert into block values(3, 3); +insert into block values(4, 1); +insert into block values(4, 2); +insert into block values(4, 3); + +create table room ( +roomnumber integer, +roomtype text, +blockfloor integer, +blockcode integer, +unavailable integer +); +insert into room values(101, 'single', 1, 1, 0); +insert into room values(102, 'single', 1, 1, 0); +insert into room values(103, 'single', 1, 1, 0); +insert into room values(111, 'single', 1, 2, 0); +insert into room values(112, 'single', 1, 2, 1); +insert into room values(113, 'single', 1, 2, 0); +insert into room values(121, 'single', 1, 3, 0); +insert into room values(122, 'single', 1, 3, 0); +insert into room values(123, 'single', 1, 3, 0); +insert into room values(201, 'single', 2, 1, 1); +insert into room values(202, 'single', 2, 1, 0); +insert into room values(203, 'single', 2, 1, 0); +insert into room values(211, 'single', 2, 2, 0); +insert into room values(212, 'single', 2, 2, 0); +insert into room values(213, 'single', 2, 2, 1); +insert into room values(221, 'single', 2, 3, 0); +insert into room values(222, 'single', 2, 3, 0); +insert into room values(223, 'single', 2, 3, 0); +insert into room values(301, 'single', 3, 1, 0); +insert into room values(302, 'single', 3, 1, 1); +insert into room values(303, 'single', 3, 1, 0); +insert into room values(311, 'single', 3, 2, 0); +insert into room values(312, 'single', 3, 2, 0); +insert into room values(313, 'single', 3, 2, 0); +insert into room values(321, 'single', 3, 3, 1); +insert into room values(322, 'single', 3, 3, 0); +insert into room values(323, 'single', 3, 3, 0); +insert into room values(401, 'single', 4, 1, 0); +insert into room values(402, 'single', 4, 1, 1); +insert into room values(403, 'single', 4, 1, 0); +insert into room values(411, 'single', 4, 2, 0); +insert into room values(412, 'single', 4, 2, 0); +insert into room values(413, 'single', 4, 2, 0); +insert into room values(421, 'single', 4, 3, 1); +insert into room values(422, 'single', 4, 3, 0); +insert into room values(423, 'single', 4, 3, 0); + +create table on_call ( +nurse integer, +blockfloor integer, +blockcode integer, +oncallstart text, +oncallend text +); +insert into on_call values(101, 1, 1, '2008-11-04 11:00', '2008-11-04 19:00'); +insert into on_call values(101, 1, 2, '2008-11-04 11:00', '2008-11-04 19:00'); +insert into on_call values(102, 1, 3, '2008-11-04 11:00', '2008-11-04 19:00'); +insert into on_call values(103, 1, 1, '2008-11-04 19:00', '2008-11-05 03:00'); +insert into on_call values(103, 1, 2, '2008-11-04 19:00', '2008-11-05 03:00'); +insert into on_call values(103, 1, 3, '2008-11-04 19:00', '2008-11-05 03:00'); + +create table undergoes ( +patient integer, +procedures integer, +stay integer, +dateundergoes text, +physician integer, +assistingnurse integer +); +insert into undergoes values(100000001, 2, 3215, '2008-05-03', 3, 101); +insert into undergoes values(100000001, 6, 3215, '2008-05-02', 7, 101); +insert into undergoes values(100000001, 7, 3217, '2008-05-10', 3, 102); +insert into undergoes values(100000004, 1, 3217, '2008-05-07', 6, 105); +insert into undergoes values(100000004, 4, 3217, '2008-05-13', 7, 101); +insert into undergoes values(100000004, 5, 3217, '2008-05-09', 3, 103); +create table stay_patient ( +stayid integer, +patient integer, +room integer, +staystart text, +stayend text, +name text, +address text, +phone text, +insuranceid integer, +pcp integer); +insert into stay_patient values(3215, 100000001, 111, '2008-05-01', '2008-05-04', 'john smith', '42 foobar lane', '555-0256', 68476213, 1); +insert into stay_patient values(3216, 100000003, 123, '2008-05-03', '2008-05-14', 'random j. patient', '101 omgbbq street', '555-1204', 65465421, 2); +insert into stay_patient values(3217, 100000004, 112, '2008-05-02', '2008-05-03', 'dennis doe', '1100 foobaz avenue', '555-2048', 68421879, 3); +insert into stay_patient values('None', 100000002, 'None', 'None', 'None', 'grace ritchie', '37 snafu drive', '555-0512', 36546321, 2); + diff --git a/all/databases/hospital_1_minus_1_0/hospital_1_minus_1_0.sqlite b/all/databases/hospital_1_minus_1_0/hospital_1_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..e6b965788793b5ec1585e8db3c966e9d85dca892 Binary files /dev/null and b/all/databases/hospital_1_minus_1_0/hospital_1_minus_1_0.sqlite differ diff --git a/all/databases/hospital_1_total_0/hospital_1_total_0.sql b/all/databases/hospital_1_total_0/hospital_1_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..c79315372342efa88d8e7f8151837af4d9eb661c --- /dev/null +++ b/all/databases/hospital_1_total_0/hospital_1_total_0.sql @@ -0,0 +1,224 @@ +create table physician ( +employeeid integer, +name text, +position text, +ssn integer +); +insert into physician values(1, 'john dorian', 'staff internist', 111111111); +insert into physician values(2, 'elliot reid', 'attending physician', 222222222); +insert into physician values(3, 'christopher turk', 'surgical attending physician', 333333333); +insert into physician values(4, 'percival cox', 'senior attending physician', 444444444); +insert into physician values(5, 'bob kelso', 'head chief of medicine', 555555555); +insert into physician values(6, 'todd quinlan', 'surgical attending physician', 666666666); +insert into physician values(7, 'john wen', 'surgical attending physician', 777777777); +insert into physician values(8, 'keith dudemeister', 'md resident', 888888888); +insert into physician values(9, 'molly clock', 'attending psychiatrist', 999999999); + +create table department ( +departmentid integer, +name text, +head integer +); +insert into department values(1, 'general medicine', 4); +insert into department values(2, 'surgery', 7); +insert into department values(3, 'psychiatry', 9); + +create table affiliated_with ( +physician integer, +department integer, +primaryaffiliation integer +); +insert into affiliated_with values(1, 1, 1); +insert into affiliated_with values(2, 1, 1); +insert into affiliated_with values(3, 1, 0); +insert into affiliated_with values(3, 2, 1); +insert into affiliated_with values(4, 1, 1); +insert into affiliated_with values(5, 1, 1); +insert into affiliated_with values(6, 2, 1); +insert into affiliated_with values(7, 1, 0); +insert into affiliated_with values(7, 2, 1); +insert into affiliated_with values(8, 1, 1); +insert into affiliated_with values(9, 3, 1); + +create table procedures ( +code integer, +name text, +cost real +); +insert into procedures values(1, 'reverse rhinopodoplasty', 1500.0); +insert into procedures values(2, 'obtuse pyloric recombobulation', 3750.0); +insert into procedures values(3, 'folded demiophtalmectomy', 4500.0); +insert into procedures values(4, 'complete walletectomy', 10000.0); +insert into procedures values(5, 'obfuscated dermogastrotomy', 4899.0); +insert into procedures values(6, 'reversible pancreomyoplasty', 5600.0); +insert into procedures values(7, 'follicular demiectomy', 25.0); + +create table trained_in ( +physician integer, +treatment integer, +certificationdate text, +certificationexpires text +); +insert into trained_in values(3, 1, '2008-01-01', '2008-12-31'); +insert into trained_in values(3, 2, '2008-01-01', '2008-12-31'); +insert into trained_in values(3, 5, '2008-01-01', '2008-12-31'); +insert into trained_in values(3, 6, '2008-01-01', '2008-12-31'); +insert into trained_in values(3, 7, '2008-01-01', '2008-12-31'); +insert into trained_in values(6, 2, '2008-01-01', '2008-12-31'); +insert into trained_in values(6, 5, '2007-01-01', '2007-12-31'); +insert into trained_in values(6, 6, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 1, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 2, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 3, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 4, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 5, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 6, '2008-01-01', '2008-12-31'); +insert into trained_in values(7, 7, '2008-01-01', '2008-12-31'); + +create table nurse ( +employeeid integer, +name text, +position text, +registered integer, +ssn integer +); +insert into nurse values(101, 'carla espinosa', 'head nurse', 1, 111111110); +insert into nurse values(102, 'laverne roberts', 'nurse', 1, 222222220); +insert into nurse values(103, 'paul flowers', 'nurse', 0, 333333330); + +create table appointment ( +appointmentid integer, +patient integer, +prepnurse integer, +physician integer, +start text, +end text, +examinationroom text +); +insert into appointment values(13216584, 100000001, 101, 1, '2008-04-24 10:00', '2008-04-24 11:00', 'a'); +insert into appointment values(26548913, 100000002, 101, 2, '2008-04-24 10:00', '2008-04-24 11:00', 'b'); +insert into appointment values(36549879, 100000001, 102, 1, '2008-04-25 10:00', '2008-04-25 11:00', 'a'); +insert into appointment values(46846589, 100000004, 103, 4, '2008-04-25 10:00', '2008-04-25 11:00', 'b'); +insert into appointment values(59871321, 100000004, 'null', 4, '2008-04-26 10:00', '2008-04-26 11:00', 'c'); +insert into appointment values(69879231, 100000003, 103, 2, '2008-04-26 11:00', '2008-04-26 12:00', 'c'); +insert into appointment values(76983231, 100000001, 'null', 3, '2008-04-26 12:00', '2008-04-26 13:00', 'c'); +insert into appointment values(86213939, 100000004, 102, 9, '2008-04-27 10:00', '2008-04-21 11:00', 'a'); +insert into appointment values(93216548, 100000002, 101, 2, '2008-04-27 10:00', '2008-04-27 11:00', 'b'); + +create table block ( +blockfloor integer, +blockcode integer +); +insert into block values(1, 1); +insert into block values(1, 2); +insert into block values(1, 3); +insert into block values(2, 1); +insert into block values(2, 2); +insert into block values(2, 3); +insert into block values(3, 1); +insert into block values(3, 2); +insert into block values(3, 3); +insert into block values(4, 1); +insert into block values(4, 2); +insert into block values(4, 3); + +create table room ( +roomnumber integer, +roomtype text, +blockfloor integer, +blockcode integer, +unavailable integer +); +insert into room values(101, 'single', 1, 1, 0); +insert into room values(102, 'single', 1, 1, 0); +insert into room values(103, 'single', 1, 1, 0); +insert into room values(111, 'single', 1, 2, 0); +insert into room values(112, 'single', 1, 2, 1); +insert into room values(113, 'single', 1, 2, 0); +insert into room values(121, 'single', 1, 3, 0); +insert into room values(122, 'single', 1, 3, 0); +insert into room values(123, 'single', 1, 3, 0); +insert into room values(201, 'single', 2, 1, 1); +insert into room values(202, 'single', 2, 1, 0); +insert into room values(203, 'single', 2, 1, 0); +insert into room values(211, 'single', 2, 2, 0); +insert into room values(212, 'single', 2, 2, 0); +insert into room values(213, 'single', 2, 2, 1); +insert into room values(221, 'single', 2, 3, 0); +insert into room values(222, 'single', 2, 3, 0); +insert into room values(223, 'single', 2, 3, 0); +insert into room values(301, 'single', 3, 1, 0); +insert into room values(302, 'single', 3, 1, 1); +insert into room values(303, 'single', 3, 1, 0); +insert into room values(311, 'single', 3, 2, 0); +insert into room values(312, 'single', 3, 2, 0); +insert into room values(313, 'single', 3, 2, 0); +insert into room values(321, 'single', 3, 3, 1); +insert into room values(322, 'single', 3, 3, 0); +insert into room values(323, 'single', 3, 3, 0); +insert into room values(401, 'single', 4, 1, 0); +insert into room values(402, 'single', 4, 1, 1); +insert into room values(403, 'single', 4, 1, 0); +insert into room values(411, 'single', 4, 2, 0); +insert into room values(412, 'single', 4, 2, 0); +insert into room values(413, 'single', 4, 2, 0); +insert into room values(421, 'single', 4, 3, 1); +insert into room values(422, 'single', 4, 3, 0); +insert into room values(423, 'single', 4, 3, 0); + +create table on_call ( +nurse integer, +blockfloor integer, +blockcode integer, +oncallstart text, +oncallend text +); +insert into on_call values(101, 1, 1, '2008-11-04 11:00', '2008-11-04 19:00'); +insert into on_call values(101, 1, 2, '2008-11-04 11:00', '2008-11-04 19:00'); +insert into on_call values(102, 1, 3, '2008-11-04 11:00', '2008-11-04 19:00'); +insert into on_call values(103, 1, 1, '2008-11-04 19:00', '2008-11-05 03:00'); +insert into on_call values(103, 1, 2, '2008-11-04 19:00', '2008-11-05 03:00'); +insert into on_call values(103, 1, 3, '2008-11-04 19:00', '2008-11-05 03:00'); + +create table undergoes ( +patient integer, +procedures integer, +stay integer, +dateundergoes text, +physician integer, +assistingnurse integer +); +insert into undergoes values(100000001, 2, 3215, '2008-05-03', 3, 101); +insert into undergoes values(100000001, 6, 3215, '2008-05-02', 7, 101); +insert into undergoes values(100000001, 7, 3217, '2008-05-10', 3, 102); +insert into undergoes values(100000004, 1, 3217, '2008-05-07', 6, 105); +insert into undergoes values(100000004, 4, 3217, '2008-05-13', 7, 101); +insert into undergoes values(100000004, 5, 3217, '2008-05-09', 3, 103); +create table stay_patient_prescribes_medication ( +stayid integer, +patient integer, +room integer, +staystart text, +stayend text, +name_stay_patient_prescribes text, +address text, +phone text, +insuranceid integer, +pcp integer, +physician integer, +medication integer, +date text, +appointment integer, +dose text, +name_medication text, +brand text, +description text); +insert into stay_patient_prescribes_medication values(3215, 100000001, 111, '2008-05-01', '2008-05-04', 'john smith', '42 foobar lane', '555-0256', 68476213, 1, 1, 1, '2008-04-24 10:47', 13216584, '5', 'procrastin-x', 'x', 'n/a'); +insert into stay_patient_prescribes_medication values(3216, 100000003, 123, '2008-05-03', '2008-05-14', 'random j. patient', '101 omgbbq street', '555-1204', 65465421, 2, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into stay_patient_prescribes_medication values(3217, 100000004, 112, '2008-05-02', '2008-05-03', 'dennis doe', '1100 foobaz avenue', '555-2048', 68421879, 3, 9, 2, '2008-04-27 10:53', 86213939, '10', 'thesisin', 'foo labs', 'n/a'); +insert into stay_patient_prescribes_medication values(3217, 100000004, 112, '2008-05-02', '2008-05-03', 'dennis doe', '1100 foobaz avenue', '555-2048', 68421879, 3, 9, 2, '2008-04-30 16:53', 'null', '5', 'thesisin', 'foo labs', 'n/a'); +insert into stay_patient_prescribes_medication values('None', 100000002, 'None', 'None', 'None', 'grace ritchie', '37 snafu drive', '555-0512', 36546321, 2, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into stay_patient_prescribes_medication values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 3, 'None', 'None', 'None', 'awakin', 'bar laboratories', 'n/a'); +insert into stay_patient_prescribes_medication values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 4, 'None', 'None', 'None', 'crescavitin', 'baz industries', 'n/a'); +insert into stay_patient_prescribes_medication values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 5, 'None', 'None', 'None', 'melioraurin', 'snafu pharmaceuticals', 'n/a'); + diff --git a/all/databases/hospital_1_total_0/hospital_1_total_0.sqlite b/all/databases/hospital_1_total_0/hospital_1_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..b17eade7adceb6b10b9130fa910c8734ada1c8a1 Binary files /dev/null and b/all/databases/hospital_1_total_0/hospital_1_total_0.sqlite differ diff --git a/all/databases/hr_1/hr_1.sql b/all/databases/hr_1/hr_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..a050bc07e5b3fc6b8817cf34ff519fc4406e6fba --- /dev/null +++ b/all/databases/hr_1/hr_1.sql @@ -0,0 +1,274 @@ +CREATE TABLE "regions" ( +"region_id" integer, +"region_name" text +); + +INSERT INTO regions VALUES (1, "europer"); +INSERT INTO regions VALUES (2, "americasr"); +INSERT INTO regions VALUES (3, "asiar"); +INSERT INTO regions VALUES (4, "middle east and africar"); + +CREATE TABLE "countries" ( +"country_id" text, +"country_name" text, +"region_id" integer +); + +INSERT INTO countries VALUES ("ar", "argentina", 2); +INSERT INTO countries VALUES ("au", "australia", 3); +INSERT INTO countries VALUES ("be", "belgium", 1); +INSERT INTO countries VALUES ("br", "brazil", 2); +INSERT INTO countries VALUES ("ca", "canada", 2); +INSERT INTO countries VALUES ("ch", "switzerland", 1); +INSERT INTO countries VALUES ("cn", "china", 3); +INSERT INTO countries VALUES ("de", "germany", 1); +INSERT INTO countries VALUES ("dk", "denmark", 1); +INSERT INTO countries VALUES ("eg", "egypt", 4); +INSERT INTO countries VALUES ("fr", "france", 1); +INSERT INTO countries VALUES ("hk", "hongkong", 3); +INSERT INTO countries VALUES ("il", "israel", 4); +INSERT INTO countries VALUES ("in", "india", 3); +INSERT INTO countries VALUES ("it", "italy", 1); +INSERT INTO countries VALUES ("jp", "japan", 3); +INSERT INTO countries VALUES ("kw", "kuwait", 4); +INSERT INTO countries VALUES ("mx", "mexico", 2); +INSERT INTO countries VALUES ("ng", "nigeria", 4); +INSERT INTO countries VALUES ("nl", "netherlands", 1); +INSERT INTO countries VALUES ("sg", "singapore", 3); +INSERT INTO countries VALUES ("uk", "united kingdom", 1); +INSERT INTO countries VALUES ("us", "united states of america", 2); +INSERT INTO countries VALUES ("zm", "zambia", 4); +INSERT INTO countries VALUES ("zw", "zimbabwe", 4); + +CREATE TABLE "departments" ( +"department_id" integer, +"department_name" text, +"manager_id" integer, +"location_id" integer +); + +INSERT INTO departments VALUES (10, "administration", 200, 1700); +INSERT INTO departments VALUES (20, "marketing", 201, 1800); +INSERT INTO departments VALUES (30, "purchasing", 114, 1700); +INSERT INTO departments VALUES (40, "human resources", 203, 2400); +INSERT INTO departments VALUES (50, "shipping", 121, 1500); +INSERT INTO departments VALUES (60, "it", 103, 1400); +INSERT INTO departments VALUES (70, "public relations", 204, 2700); +INSERT INTO departments VALUES (80, "sales", 145, 2500); +INSERT INTO departments VALUES (90, "executive", 100, 1700); +INSERT INTO departments VALUES (100, "finance", 108, 1700); +INSERT INTO departments VALUES (110, "accounting", 205, 1700); +INSERT INTO departments VALUES (120, "treasury", 0, 1700); +INSERT INTO departments VALUES (130, "corporate tax", 0, 1700); +INSERT INTO departments VALUES (140, "control and credit", 0, 1700); +INSERT INTO departments VALUES (150, "shareholder services", 0, 1700); +INSERT INTO departments VALUES (160, "benefits", 0, 1700); +INSERT INTO departments VALUES (170, "manufacturing", 0, 1700); +INSERT INTO departments VALUES (180, "construction", 0, 1700); +INSERT INTO departments VALUES (190, "contracting", 0, 1700); +INSERT INTO departments VALUES (200, "operations", 0, 1700); +INSERT INTO departments VALUES (210, "it support", 0, 1700); +INSERT INTO departments VALUES (220, "noc", 0, 1700); +INSERT INTO departments VALUES (230, "it helpdesk", 0, 1700); +INSERT INTO departments VALUES (240, "government sales", 0, 1700); +INSERT INTO departments VALUES (250, "retail sales", 0, 1700); +INSERT INTO departments VALUES (260, "recruiting", 0, 1700); +INSERT INTO departments VALUES (270, "payroll", 0, 1700); + +CREATE TABLE "jobs" ( +"job_id" text, +"job_title" text, +"min_salary" integer, +"max_salary" integer +); + +INSERT INTO jobs VALUES ("ac_account", "president", 20000, 40000); +INSERT INTO jobs VALUES ("ac_mgr", "administration vice president", 15000, 30000); +INSERT INTO jobs VALUES ("ad_asst", "administration assistant", 3000, 6000); +INSERT INTO jobs VALUES ("ad_pres", "finance manager", 8200, 16000); +INSERT INTO jobs VALUES ("ad_vp", "accountant", 4200, 9000); +INSERT INTO jobs VALUES ("fi_account", "accounting manager", 8200, 16000); +INSERT INTO jobs VALUES ("fi_mgr", "public accountant", 4200, 9000); +INSERT INTO jobs VALUES ("hr_rep", "sales manager", 10000, 20000); +INSERT INTO jobs VALUES ("it_prog", "sales representative", 6000, 12000); +INSERT INTO jobs VALUES ("mk_man", "purchasing manager", 8000, 15000); +INSERT INTO jobs VALUES ("mk_rep", "purchasing clerk", 2500, 5500); +INSERT INTO jobs VALUES ("pr_rep", "stock manager", 5500, 8500); +INSERT INTO jobs VALUES ("pu_clerk", "stock clerk", 2000, 5000); +INSERT INTO jobs VALUES ("pu_man", "shipping clerk", 2500, 5500); +INSERT INTO jobs VALUES ("sa_man", "programmer", 4000, 10000); +INSERT INTO jobs VALUES ("sa_rep", "marketing manager", 9000, 15000); +INSERT INTO jobs VALUES ("sh_clerk", "marketing representative", 4000, 9000); +INSERT INTO jobs VALUES ("st_clerk", "human resources representative", 4000, 9000); +INSERT INTO jobs VALUES ("st_man", "public relations representative", 4500, 10500); + +CREATE TABLE "employees" ( +"employee_id" integer, +"first_name" text, +"last_name" text, +"email" text, +"phone_number" text, +"hire_date" text, +"job_id" text, +"salary" integer, +"commission_pct" integer, +"manager_id" integer, +"department_id" integer +); + +INSERT INTO employees VALUES (100, "steven", "king", "sking", "515.123.4567", "1987-06-17", "ad_pres", 24000, 0, 0, 90); +INSERT INTO employees VALUES (101, "neena", "kochhar", "nkochhar", "515.123.4568", "1987-06-18", "ad_vp", 17000, 0, 100, 90); +INSERT INTO employees VALUES (102, "lex", "de haan", "ldehaan", "515.123.4569", "1987-06-19", "ad_vp", 17000, 0, 100, 90); +INSERT INTO employees VALUES (103, "alexander", "hunold", "ahunold", "590.423.4567", "1987-06-20", "it_prog", 9000, 0, 102, 60); +INSERT INTO employees VALUES (104, "bruce", "ernst", "bernst", "590.423.4568", "1987-06-21", "it_prog", 6000, 0, 103, 60); +INSERT INTO employees VALUES (105, "david", "austin", "daustin", "590.423.4569", "1987-06-22", "it_prog", 4800, 0, 103, 60); +INSERT INTO employees VALUES (106, "valli", "pataballa", "vpatabal", "590.423.4560", "1987-06-23", "it_prog", 4800, 0, 103, 60); +INSERT INTO employees VALUES (107, "diana", "lorentz", "dlorentz", "590.423.5567", "1987-06-24", "it_prog", 4200, 0, 103, 60); +INSERT INTO employees VALUES (108, "nancy", "greenberg", "ngreenbe", "515.124.4569", "1987-06-25", "fi_mgr", 12000, 0, 101, 100); +INSERT INTO employees VALUES (109, "daniel", "faviet", "dfaviet", "515.124.4169", "1987-06-26", "fi_account", 9000, 0, 108, 100); +INSERT INTO employees VALUES (110, "john", "chen", "jchen", "515.124.4269", "1987-06-27", "fi_account", 8200, 0, 108, 100); +INSERT INTO employees VALUES (111, "ismael", "sciarra", "isciarra", "515.124.4369", "1987-06-28", "fi_account", 7700, 0, 108, 100); +INSERT INTO employees VALUES (112, "jose manuel", "urman", "jmurman", "515.124.4469", "1987-06-29", "fi_account", 7800, 0, 108, 100); +INSERT INTO employees VALUES (113, "luis", "popp", "lpopp", "515.124.4567", "1987-06-30", "fi_account", 6900, 0, 108, 100); +INSERT INTO employees VALUES (114, "den", "raphaely", "drapheal", "515.127.4561", "1987-07-01", "pu_man", 11000, 0, 100, 30); +INSERT INTO employees VALUES (115, "alexander", "khoo", "akhoo", "515.127.4562", "1987-07-02", "pu_clerk", 3100, 0, 114, 30); +INSERT INTO employees VALUES (116, "shelli", "baida", "sbaida", "515.127.4563", "1987-07-03", "pu_clerk", 2900, 0, 114, 30); +INSERT INTO employees VALUES (117, "sigal", "tobias", "stobias", "515.127.4564", "1987-07-04", "pu_clerk", 2800, 0, 114, 30); +INSERT INTO employees VALUES (118, "guy", "himuro", "ghimuro", "515.127.4565", "1987-07-05", "pu_clerk", 2600, 0, 114, 30); +INSERT INTO employees VALUES (119, "karen", "colmenares", "kcolmena", "515.127.4566", "1987-07-06", "pu_clerk", 2500, 0, 114, 30); +INSERT INTO employees VALUES (120, "matthew", "weiss", "mweiss", "650.123.1234", "1987-07-07", "st_man", 8000, 0, 100, 50); +INSERT INTO employees VALUES (121, "adam", "fripp", "afripp", "650.123.2234", "1987-07-08", "st_man", 8200, 0, 100, 50); +INSERT INTO employees VALUES (122, "payam", "kaufling", "pkauflin", "650.123.3234", "1987-07-09", "st_man", 7900, 0, 100, 50); +INSERT INTO employees VALUES (123, "shanta", "vollman", "svollman", "650.123.4234", "1987-07-10", "st_man", 6500, 0, 100, 50); +INSERT INTO employees VALUES (124, "kevin", "mourgos", "kmourgos", "650.123.5234", "1987-07-11", "st_man", 5800, 0, 100, 50); +INSERT INTO employees VALUES (125, "julia", "nayer", "jnayer", "650.124.1214", "1987-07-12", "st_clerk", 3200, 0, 120, 50); +INSERT INTO employees VALUES (126, "irene", "mikkilineni", "imikkili", "650.124.1224", "1987-07-13", "st_clerk", 2700, 0, 120, 50); +INSERT INTO employees VALUES (127, "james", "landry", "jlandry", "650.124.1334", "1987-07-14", "st_clerk", 2400, 0, 120, 50); +INSERT INTO employees VALUES (128, "steven", "markle", "smarkle", "650.124.1434", "1987-07-15", "st_clerk", 2200, 0, 120, 50); +INSERT INTO employees VALUES (129, "laura", "bissot", "lbissot", "650.124.5234", "1987-07-16", "st_clerk", 3300, 0, 121, 50); +INSERT INTO employees VALUES (130, "mozhe", "atkinson", "matkinso", "650.124.6234", "1987-07-17", "st_clerk", 2800, 0, 121, 50); +INSERT INTO employees VALUES (131, "james", "marlow", "jamrlow", "650.124.7234", "1987-07-18", "st_clerk", 2500, 0, 121, 50); +INSERT INTO employees VALUES (132, "tj", "olson", "tjolson", "650.124.8234", "1987-07-19", "st_clerk", 2100, 0, 121, 50); +INSERT INTO employees VALUES (133, "jason", "mallin", "jmallin", "650.127.1934", "1987-07-20", "st_clerk", 3300, 0, 122, 50); +INSERT INTO employees VALUES (134, "michael", "rogers", "mrogers", "650.127.1834", "1987-07-21", "st_clerk", 2900, 0, 122, 50); +INSERT INTO employees VALUES (135, "ki", "gee", "kgee", "650.127.1734", "1987-07-22", "st_clerk", 2400, 0, 122, 50); +INSERT INTO employees VALUES (136, "hazel", "philtanker", "hphiltan", "650.127.1634", "1987-07-23", "st_clerk", 2200, 0, 122, 50); +INSERT INTO employees VALUES (137, "renske", "ladwig", "rladwig", "650.121.1234", "1987-07-24", "st_clerk", 3600, 0, 123, 50); +INSERT INTO employees VALUES (138, "stephen", "stiles", "sstiles", "650.121.2034", "1987-07-25", "st_clerk", 3200, 0, 123, 50); +INSERT INTO employees VALUES (139, "john", "seo", "jseo", "650.121.2019", "1987-07-26", "st_clerk", 2700, 0, 123, 50); +INSERT INTO employees VALUES (140, "joshua", "patel", "jpatel", "650.121.1834", "1987-07-27", "st_clerk", 2500, 0, 123, 50); +INSERT INTO employees VALUES (141, "trenna", "rajs", "trajs", "650.121.8009", "1987-07-28", "st_clerk", 3500, 0, 124, 50); +INSERT INTO employees VALUES (142, "curtis", "davies", "cdavies", "650.121.2994", "1987-07-29", "st_clerk", 3100, 0, 124, 50); +INSERT INTO employees VALUES (143, "randall", "matos", "rmatos", "650.121.2874", "1987-07-30", "st_clerk", 2600, 0, 124, 50); +INSERT INTO employees VALUES (144, "peter", "vargas", "pvargas", "650.121.2004", "1987-07-31", "st_clerk", 2500, 0, 124, 50); +INSERT INTO employees VALUES (145, "john", "russell", "jrussel", "011.44.1344.429268", "1987-08-01", "sa_man", 14000, 0.4, 100, 80); +INSERT INTO employees VALUES (146, "karen", "partners", "kpartner", "011.44.1344.467268", "1987-08-02", "sa_man", 13500, 0.3, 100, 80); +INSERT INTO employees VALUES (147, "alberto", "errazuriz", "aerrazur", "011.44.1344.429278", "1987-08-03", "sa_man", 12000, 0.3, 100, 80); +INSERT INTO employees VALUES (148, "gerald", "cambrault", "gcambrau", "011.44.1344.619268", "1987-08-04", "sa_man", 11000, 0.3, 100, 80); +INSERT INTO employees VALUES (149, "eleni", "zlotkey", "ezlotkey", "011.44.1344.429018", "1987-08-05", "sa_man", 10500, 0.2, 100, 80); +INSERT INTO employees VALUES (150, "peter", "tucker", "ptucker", "011.44.1344.129268", "1987-08-06", "sa_rep", 10000, 0.3, 145, 80); +INSERT INTO employees VALUES (151, "david", "bernstein", "dbernste", "011.44.1344.345268", "1987-08-07", "sa_rep", 9500, 0.25, 145, 80); +INSERT INTO employees VALUES (152, "peter", "hall", "phall", "011.44.1344.478968", "1987-08-08", "sa_rep", 9000, 0.25, 145, 80); +INSERT INTO employees VALUES (153, "christopher", "olsen", "colsen", "011.44.1344.498718", "1987-08-09", "sa_rep", 8000, 0.2, 145, 80); +INSERT INTO employees VALUES (154, "nanette", "cambrault", "ncambrau", "011.44.1344.987668", "1987-08-10", "sa_rep", 7500, 0.2, 145, 80); +INSERT INTO employees VALUES (155, "oliver", "tuvault", "otuvault", "011.44.1344.486508", "1987-08-11", "sa_rep", 7000, 0.15, 145, 80); +INSERT INTO employees VALUES (156, "janette", "king", "jking", "011.44.1345.429268", "1987-08-12", "sa_rep", 10000, 0.35, 146, 80); +INSERT INTO employees VALUES (157, "patrick", "sully", "psully", "011.44.1345.929268", "1987-08-13", "sa_rep", 9500, 0.35, 146, 80); +INSERT INTO employees VALUES (158, "allan", "mcewen", "amcewen", "011.44.1345.829268", "1987-08-14", "sa_rep", 9000, 0.35, 146, 80); +INSERT INTO employees VALUES (159, "lindsey", "smith", "lsmith", "011.44.1345.729268", "1987-08-15", "sa_rep", 8000, 0.3, 146, 80); +INSERT INTO employees VALUES (160, "louise", "doran", "ldoran", "011.44.1345.629268", "1987-08-16", "sa_rep", 7500, 0.3, 146, 80); +INSERT INTO employees VALUES (161, "sarath", "sewall", "ssewall", "011.44.1345.529268", "1987-08-17", "sa_rep", 7000, 0.25, 146, 80); +INSERT INTO employees VALUES (162, "clara", "vishney", "cvishney", "011.44.1346.129268", "1987-08-18", "sa_rep", 10500, 0.25, 147, 80); +INSERT INTO employees VALUES (163, "danielle", "greene", "dgreene", "011.44.1346.229268", "1987-08-19", "sa_rep", 9500, 0.15, 147, 80); +INSERT INTO employees VALUES (164, "mattea", "marvins", "mmarvins", "011.44.1346.329268", "1987-08-20", "sa_rep", 7200, 0.1, 147, 80); +INSERT INTO employees VALUES (165, "david", "lee", "dlee", "011.44.1346.529268", "1987-08-21", "sa_rep", 6800, 0.1, 147, 80); +INSERT INTO employees VALUES (166, "sundar", "ande", "sande", "011.44.1346.629268", "1987-08-22", "sa_rep", 6400, 0.1, 147, 80); +INSERT INTO employees VALUES (167, "amit", "banda", "abanda", "011.44.1346.729268", "1987-08-23", "sa_rep", 6200, 0.1, 147, 80); +INSERT INTO employees VALUES (168, "lisa", "ozer", "lozer", "011.44.1343.929268", "1987-08-24", "sa_rep", 11500, 0.25, 148, 80); +INSERT INTO employees VALUES (169, "harrison", "bloom", "hbloom", "011.44.1343.829268", "1987-08-25", "sa_rep", 10000, 0.2, 148, 80); +INSERT INTO employees VALUES (170, "tayler", "fox", "tfox", "011.44.1343.729268", "1987-08-26", "sa_rep", 9600, 0.2, 148, 80); +INSERT INTO employees VALUES (171, "william", "smith", "wsmith", "011.44.1343.629268", "1987-08-27", "sa_rep", 7400, 0.15, 148, 80); +INSERT INTO employees VALUES (172, "elizabeth", "bates", "ebates", "011.44.1343.529268", "1987-08-28", "sa_rep", 7300, 0.15, 148, 80); +INSERT INTO employees VALUES (173, "sundita", "kumar", "skumar", "011.44.1343.329268", "1987-08-29", "sa_rep", 6100, 0.1, 148, 80); +INSERT INTO employees VALUES (174, "ellen", "abel", "eabel", "011.44.1644.429267", "1987-08-30", "sa_rep", 11000, 0.3, 149, 80); +INSERT INTO employees VALUES (175, "alyssa", "hutton", "ahutton", "011.44.1644.429266", "1987-08-31", "sa_rep", 8800, 0.25, 149, 80); +INSERT INTO employees VALUES (176, "jonathon", "taylor", "jtaylor", "011.44.1644.429265", "1987-09-01", "sa_rep", 8600, 0.2, 149, 80); +INSERT INTO employees VALUES (177, "jack", "livingston", "jlivings", "011.44.1644.429264", "1987-09-02", "sa_rep", 8400, 0.2, 149, 80); +INSERT INTO employees VALUES (178, "kimberely", "grant", "kgrant", "011.44.1644.429263", "1987-09-03", "sa_rep", 7000, 0.15, 149, 0); +INSERT INTO employees VALUES (179, "charles", "johnson", "cjohnson", "011.44.1644.429262", "1987-09-04", "sa_rep", 6200, 0.1, 149, 80); +INSERT INTO employees VALUES (180, "winston", "taylor", "wtaylor", "650.507.9876", "1987-09-05", "sh_clerk", 3200, 0, 120, 50); +INSERT INTO employees VALUES (181, "jean", "fleaur", "jfleaur", "650.507.9877", "1987-09-06", "sh_clerk", 3100, 0, 120, 50); +INSERT INTO employees VALUES (182, "martha", "sullivan", "msulliva", "650.507.9878", "1987-09-07", "sh_clerk", 2500, 0, 120, 50); +INSERT INTO employees VALUES (183, "girard", "geoni", "ggeoni", "650.507.9879", "1987-09-08", "sh_clerk", 2800, 0, 120, 50); +INSERT INTO employees VALUES (184, "nandita", "sarchand", "nsarchan", "650.509.1876", "1987-09-09", "sh_clerk", 4200, 0, 121, 50); +INSERT INTO employees VALUES (185, "alexis", "bull", "abull", "650.509.2876", "1987-09-10", "sh_clerk", 4100, 0, 121, 50); +INSERT INTO employees VALUES (186, "julia", "dellinger", "jdelling", "650.509.3876", "1987-09-11", "sh_clerk", 3400, 0, 121, 50); +INSERT INTO employees VALUES (187, "anthony", "cabrio", "acabrio", "650.509.4876", "1987-09-12", "sh_clerk", 3000, 0, 121, 50); +INSERT INTO employees VALUES (188, "kelly", "chung", "kchung", "650.505.1876", "1987-09-13", "sh_clerk", 3800, 0, 122, 50); +INSERT INTO employees VALUES (189, "jennifer", "dilly", "jdilly", "650.505.2876", "1987-09-14", "sh_clerk", 3600, 0, 122, 50); +INSERT INTO employees VALUES (190, "timothy", "gates", "tgates", "650.505.3876", "1987-09-15", "sh_clerk", 2900, 0, 122, 50); +INSERT INTO employees VALUES (191, "randall", "perkins", "rperkins", "650.505.4876", "1987-09-16", "sh_clerk", 2500, 0, 122, 50); +INSERT INTO employees VALUES (192, "sarah", "bell", "sbell", "650.501.1876", "1987-09-17", "sh_clerk", 4000, 0, 123, 50); +INSERT INTO employees VALUES (193, "britney", "everett", "beverett", "650.501.2876", "1987-09-18", "sh_clerk", 3900, 0, 123, 50); +INSERT INTO employees VALUES (194, "samuel", "mccain", "smccain", "650.501.3876", "1987-09-19", "sh_clerk", 3200, 0, 123, 50); +INSERT INTO employees VALUES (195, "vance", "jones", "vjones", "650.501.4876", "1987-09-20", "sh_clerk", 2800, 0, 123, 50); +INSERT INTO employees VALUES (196, "alana", "walsh", "awalsh", "650.507.9811", "1987-09-21", "sh_clerk", 3100, 0, 124, 50); +INSERT INTO employees VALUES (197, "kevin", "feeney", "kfeeney", "650.507.9822", "1987-09-22", "sh_clerk", 3000, 0, 124, 50); +INSERT INTO employees VALUES (198, "donald", "oconnell", "doconnel", "650.507.9833", "1987-09-23", "sh_clerk", 2600, 0, 124, 50); +INSERT INTO employees VALUES (199, "douglas", "grant", "dgrant", "650.507.9844", "1987-09-24", "sh_clerk", 2600, 0, 124, 50); + +CREATE TABLE "job_history" ( +"employee_id" integer, +"start_date" text, +"end_date" text, +"job_id" text, +"department_id" integer +); + +INSERT INTO job_history VALUES (0, "0000-00-00", "1998-07-24", "it_prog", 60); +INSERT INTO job_history VALUES (101, "1989-09-21", "1993-10-27", "ac_account", 110); +INSERT INTO job_history VALUES (101, "1993-10-28", "1997-03-15", "ac_mgr", 110); +INSERT INTO job_history VALUES (102, "1993-01-13", "1999-12-19", "mk_rep", 20); +INSERT INTO job_history VALUES (114, "1998-03-24", "1999-12-31", "st_clerk", 50); +INSERT INTO job_history VALUES (122, "1999-01-01", "1999-12-31", "st_clerk", 50); +INSERT INTO job_history VALUES (176, "1998-03-24", "1993-06-17", "ad_asst", 90); +INSERT INTO job_history VALUES (176, "1999-01-01", "1998-12-31", "sa_rep", 80); +INSERT INTO job_history VALUES (200, "1987-09-17", "1999-12-31", "sa_man", 80); +INSERT INTO job_history VALUES (200, "1994-07-01", "1998-12-31", "ac_account", 90); +INSERT INTO job_history VALUES (201, "1996-02-17", "0000-00-00", "", 0); + +CREATE TABLE "locations" ( +"location_id" integer, +"street_address" text, +"postal_code" text, +"city" text, +"state_province" text, +"country_id" text +); + +INSERT INTO locations VALUES (1000, "1297 via cola di rie", "989", "roma", "", "it"); +INSERT INTO locations VALUES (1100, "93091 calle della testa", "10934", "venice", "", "it"); +INSERT INTO locations VALUES (1200, "2017 shinjuku-ku", "1689", "tokyo", "tokyo prefecture", "jp"); +INSERT INTO locations VALUES (1300, "9450 kamiya-cho", "6823", "hiroshima", "", "jp"); +INSERT INTO locations VALUES (1400, "2014 jabberwocky rd", "26192", "southlake", "texas", "us"); +INSERT INTO locations VALUES (1500, "2011 interiors blvd", "99236", "south san francisco", "california", "us"); +INSERT INTO locations VALUES (1600, "2007 zagora st", "50090", "south brunswick", "new jersey", "us"); +INSERT INTO locations VALUES (1700, "2004 charade rd", "98199", "seattle", "washington", "us"); +INSERT INTO locations VALUES (1800, "147 spadina ave", "m5v 2l7", "toronto", "ontario", "ca"); +INSERT INTO locations VALUES (1900, "6092 boxwood st", "ysw 9t2", "whitehorse", "yukon", "ca"); +INSERT INTO locations VALUES (2000, "40-5-12 laogianggen", "190518", "beijing", "", "cn"); +INSERT INTO locations VALUES (2100, "1298 vileparle e", "490231", "bombay", "maharashtra", "in"); +INSERT INTO locations VALUES (2200, "12-98 victoria street", "2901", "sydney", "new south wales", "au"); +INSERT INTO locations VALUES (2300, "198 clementi north", "540198", "singapore", "", "sg"); +INSERT INTO locations VALUES (2400, "8204 arthur st", "", "london", "", "uk"); +INSERT INTO locations VALUES (2500, "magdalen centre", "the oxford", "ox9 9zb", "oxford", "ox"); +INSERT INTO locations VALUES (2600, "9702 chester road", "9629850293", "stretford", "manchester", "uk"); +INSERT INTO locations VALUES (2700, "schwanthalerstr. 7031", "80925", "munich", "bavaria", "de"); +INSERT INTO locations VALUES (2800, "rua frei caneca 1360", "01307-002", "sao paulo", "sao paulo", "br"); +INSERT INTO locations VALUES (2900, "20 rue des corps-saints", "1730", "geneva", "geneve", "ch"); +INSERT INTO locations VALUES (3000, "murtenstrasse 921", "3095", "bern", "be", "ch"); +INSERT INTO locations VALUES (3100, "pieter breughelstraat 837", "3029sk", "utrecht", "utrecht", "nl"); +INSERT INTO locations VALUES (3200, "mariano escobedo 9991", "11932", "mexico city", "distrito federal", ""); + + +COMMIT; diff --git a/all/databases/hr_1/hr_1.sqlite b/all/databases/hr_1/hr_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..006001a8b1f83ffa429487a5ac1737a9c639cf16 Binary files /dev/null and b/all/databases/hr_1/hr_1.sqlite differ diff --git a/all/databases/imdb_minus_1_2/imdb_minus_1_2.sql b/all/databases/imdb_minus_1_2/imdb_minus_1_2.sql new file mode 100644 index 0000000000000000000000000000000000000000..eb62741b0f28da76d195f2115edd3b1c54350e7d --- /dev/null +++ b/all/databases/imdb_minus_1_2/imdb_minus_1_2.sql @@ -0,0 +1,436 @@ +create table actor ( +aid text, +gender text, +name text, +nationality text, +birth_city text, +birth_year text +); +insert into actor values('e', 'e', 'e', 'y', 'l', 'e'); +insert into actor values('o', 'g', 'o', 'l', 'p', 'g'); +insert into actor values('o', 'd', 'y', 'g', 's', 'l'); +insert into actor values('l', 'l', 'p', 'p', 'l', 'd'); +insert into actor values('p', 'p', 'y', 'p', 'g', 'g'); +insert into actor values('g', 's', 'p', 'd', 'i', 'l'); +insert into actor values('o', 's', 'd', 'e', 'l', 'r'); +insert into actor values('g', 'r', 'y', 'l', 's', 's'); +insert into actor values('y', 'o', 'd', 'l', 'o', 'p'); +insert into actor values('l', 'y', 'i', 's', 'o', 'e'); +insert into actor values('i', 's', 'e', 'p', 'g', 'e'); + +create table copyright ( +id text, +msid text, +cid text +); +insert into copyright values('p', 'p', 'i'); +insert into copyright values('i', 's', 'o'); +insert into copyright values('i', 'e', 'e'); +insert into copyright values('r', 'p', 'i'); +insert into copyright values('e', 'd', 'r'); +insert into copyright values('d', 'l', 'd'); +insert into copyright values('g', 'd', 'y'); +insert into copyright values('e', 'r', 'g'); +insert into copyright values('g', 'y', 'y'); +insert into copyright values('y', 'g', 'o'); +insert into copyright values('l', 'e', 'e'); +insert into copyright values('e', 'o', 'd'); +insert into copyright values('d', 'y', 'y'); +insert into copyright values('y', 'o', 'y'); +insert into copyright values('d', 'r', 'e'); +insert into copyright values('y', 'i', 'o'); +insert into copyright values('o', 'o', 'l'); +insert into copyright values('s', 'o', 'p'); +insert into copyright values('s', 's', 'e'); +insert into copyright values('y', 'l', 'p'); +insert into copyright values('o', 'y', 'i'); +insert into copyright values('e', 'l', 'o'); +insert into copyright values('p', 'g', 'o'); +insert into copyright values('o', 'e', 'o'); +insert into copyright values('p', 's', 's'); +insert into copyright values('r', 'd', 'p'); + +create table cast ( +id text, +msid text, +aid text, +role text +); +insert into cast values('e', 'g', 'y', 'l'); +insert into cast values('g', 'o', 'e', 'r'); +insert into cast values('o', 'p', 'p', 'd'); +insert into cast values('p', 'i', 'g', 'e'); +insert into cast values('g', 'l', 'y', 'l'); +insert into cast values('p', 'o', 'y', 's'); +insert into cast values('r', 'i', 'd', 'l'); +insert into cast values('s', 'p', 'i', 'r'); +insert into cast values('o', 'e', 's', 'o'); +insert into cast values('y', 'r', 'p', 'o'); +insert into cast values('o', 'i', 'r', 'r'); +insert into cast values('i', 'e', 'p', 'r'); +insert into cast values('d', 'p', 'd', 'l'); +insert into cast values('i', 's', 'y', 'y'); +insert into cast values('i', 'o', 'g', 'y'); + +create table genre ( +gid text, +genre text +); +insert into genre values('g', 'o'); +insert into genre values('r', 'p'); +insert into genre values('y', 'l'); +insert into genre values('d', 'o'); +insert into genre values('i', 'i'); +insert into genre values('s', 'l'); +insert into genre values('e', 'p'); +insert into genre values('y', 'o'); +insert into genre values('g', 'o'); +insert into genre values('e', 'g'); +insert into genre values('s', 'e'); +insert into genre values('p', 'd'); +insert into genre values('s', 'o'); +insert into genre values('s', 'p'); +insert into genre values('o', 'o'); +insert into genre values('i', 'i'); +insert into genre values('y', 'd'); +insert into genre values('o', 's'); + +create table classification ( +id text, +msid text, +gid text +); +insert into classification values('g', 'g', 'p'); +insert into classification values('e', 'o', 'o'); +insert into classification values('y', 'l', 'o'); +insert into classification values('o', 'r', 'r'); +insert into classification values('l', 'e', 'e'); +insert into classification values('y', 'e', 'r'); +insert into classification values('s', 'o', 'i'); +insert into classification values('d', 'd', 'p'); +insert into classification values('l', 'e', 'o'); +insert into classification values('o', 'y', 'r'); +insert into classification values('y', 'e', 'r'); +insert into classification values('s', 'e', 'o'); + +create table company ( +id text, +name text, +country_code text +); +insert into company values('o', 'i', 'd'); +insert into company values('r', 'i', 'i'); +insert into company values('l', 's', 's'); +insert into company values('o', 'y', 'l'); +insert into company values('l', 'o', 'i'); +insert into company values('p', 'g', 'e'); +insert into company values('p', 'd', 'i'); +insert into company values('d', 'r', 'g'); +insert into company values('r', 'p', 'i'); +insert into company values('r', 'e', 'e'); +insert into company values('e', 'l', 'r'); +insert into company values('r', 'i', 'r'); +insert into company values('y', 'y', 's'); + +create table director ( +did text, +gender text, +name text, +nationality text, +birth_city text, +birth_year text +); +insert into director values('i', 's', 'o', 'p', 'o', 'y'); +insert into director values('s', 'e', 'd', 'i', 'r', 'o'); +insert into director values('o', 'o', 'r', 'e', 'o', 'l'); +insert into director values('o', 'e', 'o', 'y', 'g', 'd'); +insert into director values('s', 'p', 'y', 'd', 'o', 'e'); +insert into director values('s', 's', 'p', 's', 'i', 'l'); +insert into director values('l', 'd', 'g', 'o', 'i', 'd'); +insert into director values('o', 'o', 'd', 'i', 'r', 'g'); +insert into director values('y', 'p', 's', 'o', 'o', 'd'); +insert into director values('y', 'p', 'd', 's', 'l', 'y'); +insert into director values('d', 'g', 's', 'g', 'i', 'p'); +insert into director values('s', 'd', 'p', 'y', 'd', 'o'); +insert into director values('i', 'y', 'p', 'r', 'r', 'd'); +insert into director values('e', 'l', 'o', 'r', 'e', 's'); +insert into director values('g', 'o', 'o', 'o', 'o', 'r'); +insert into director values('r', 'g', 'o', 'o', 'i', 'y'); + +create table producer ( +pid text, +gender text, +name text, +nationality text, +birth_city text, +birth_year text +); +insert into producer values('o', 'l', 'l', 'o', 'o', 's'); +insert into producer values('y', 'o', 'r', 'p', 's', 'o'); +insert into producer values('l', 'o', 'g', 'e', 'p', 'o'); +insert into producer values('l', 'i', 's', 'e', 'e', 'r'); +insert into producer values('s', 'g', 'i', 'p', 'o', 'o'); +insert into producer values('d', 'd', 'r', 'l', 'g', 'e'); +insert into producer values('g', 'i', 'e', 's', 'o', 's'); +insert into producer values('e', 'y', 's', 'r', 'p', 'i'); +insert into producer values('d', 'e', 'd', 'y', 'o', 'o'); +insert into producer values('p', 'r', 'p', 'e', 'p', 's'); +insert into producer values('r', 'y', 'i', 'i', 'g', 'y'); +insert into producer values('o', 'p', 'y', 'o', 'p', 'y'); +insert into producer values('i', 'o', 's', 'o', 's', 'o'); +insert into producer values('d', 'p', 'd', 'e', 'o', 'g'); +insert into producer values('e', 'r', 'l', 's', 'p', 'i'); +insert into producer values('d', 'l', 'e', 'l', 's', 'd'); +insert into producer values('r', 'i', 'o', 'o', 'y', 'l'); +insert into producer values('i', 'l', 'y', 'p', 'l', 'o'); +insert into producer values('y', 'o', 's', 's', 'y', 'r'); +insert into producer values('l', 'p', 'i', 'o', 'l', 'i'); +insert into producer values('i', 'e', 'o', 'l', 'd', 'd'); +insert into producer values('g', 'd', 'r', 's', 'g', 'g'); +insert into producer values('l', 'i', 'o', 's', 'y', 'd'); +insert into producer values('o', 'i', 'e', 'e', 'y', 'g'); +insert into producer values('o', 'p', 'i', 'p', 'e', 'p'); + +create table directed_by ( +id text, +msid text, +did text +); +insert into directed_by values('o', 'y', 'l'); +insert into directed_by values('l', 'o', 'r'); +insert into directed_by values('d', 'p', 'i'); +insert into directed_by values('o', 'p', 's'); +insert into directed_by values('i', 'o', 'l'); +insert into directed_by values('o', 'g', 'r'); +insert into directed_by values('s', 'o', 'g'); +insert into directed_by values('y', 'e', 'o'); +insert into directed_by values('e', 'y', 's'); +insert into directed_by values('p', 'o', 's'); +insert into directed_by values('o', 'o', 'e'); +insert into directed_by values('p', 'g', 'y'); +insert into directed_by values('e', 'l', 'g'); +insert into directed_by values('i', 's', 'r'); +insert into directed_by values('e', 'g', 's'); + +create table keyword ( +id text, +keyword text +); +insert into keyword values('g', 'g'); +insert into keyword values('r', 'd'); +insert into keyword values('p', 'o'); +insert into keyword values('y', 'e'); +insert into keyword values('d', 'e'); +insert into keyword values('p', 's'); +insert into keyword values('r', 'l'); +insert into keyword values('s', 'd'); +insert into keyword values('l', 'd'); +insert into keyword values('s', 'o'); +insert into keyword values('d', 'l'); +insert into keyword values('e', 'o'); +insert into keyword values('o', 'i'); +insert into keyword values('o', 'o'); +insert into keyword values('l', 'd'); +insert into keyword values('s', 'p'); +insert into keyword values('p', 'l'); +insert into keyword values('y', 's'); +insert into keyword values('i', 'r'); +insert into keyword values('y', 's'); +insert into keyword values('o', 's'); +insert into keyword values('r', 'l'); +insert into keyword values('r', 'p'); +insert into keyword values('g', 'o'); +insert into keyword values('e', 'r'); +insert into keyword values('s', 'd'); +insert into keyword values('e', 'g'); + +create table tags ( +id text, +msid text, +kid text +); +insert into tags values('l', 'o', 'p'); +insert into tags values('i', 'y', 'g'); +insert into tags values('o', 's', 'p'); +insert into tags values('o', 'r', 'o'); +insert into tags values('o', 'd', 'i'); +insert into tags values('l', 'i', 'l'); +insert into tags values('o', 'i', 'e'); +insert into tags values('o', 'o', 'o'); +insert into tags values('l', 'e', 'p'); +insert into tags values('l', 'l', 'p'); +insert into tags values('p', 'o', 'y'); +insert into tags values('o', 'd', 's'); +insert into tags values('p', 'g', 'y'); +insert into tags values('y', 'i', 'e'); +insert into tags values('i', 'o', 'o'); +insert into tags values('d', 'o', 'i'); +insert into tags values('o', 'r', 'g'); +insert into tags values('i', 'o', 'l'); +insert into tags values('o', 'l', 'o'); + +create table tv_series ( +sid text, +title text, +release_year text, +num_of_seasons text, +num_of_episodes text, +title_aka text, +budget text +); +insert into tv_series values('i', 'y', 'p', 'o', 'y', 'g', 'd'); +insert into tv_series values('y', 'o', 'o', 'r', 'y', 'd', 's'); +insert into tv_series values('g', 'o', 'p', 'y', 'o', 'o', 'r'); +insert into tv_series values('i', 'g', 'e', 'o', 'o', 'o', 's'); +insert into tv_series values('l', 'i', 'l', 'o', 'g', 'o', 's'); +insert into tv_series values('o', 'o', 'y', 'l', 'l', 'p', 'y'); +insert into tv_series values('r', 'd', 'p', 'y', 'g', 'o', 'i'); +insert into tv_series values('p', 'p', 'd', 'o', 'e', 'd', 'p'); +insert into tv_series values('y', 'g', 'l', 'i', 'r', 'i', 'i'); +insert into tv_series values('p', 'i', 'r', 'i', 'r', 'o', 'o'); +insert into tv_series values('l', 'y', 'y', 'o', 'o', 'r', 'e'); +insert into tv_series values('g', 's', 'y', 'r', 'd', 'y', 'p'); +insert into tv_series values('e', 'i', 's', 'o', 's', 'p', 'p'); +insert into tv_series values('p', 's', 'o', 's', 'i', 'o', 'i'); + +create table writer ( +wid text, +gender text, +name text, +nationality text, +num_of_episodes text, +birth_city text, +birth_year text +); +insert into writer values('o', 'y', 'y', 'p', 'i', 's', 's'); +insert into writer values('i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into writer values('s', 'l', 'g', 's', 'o', 'o', 's'); +insert into writer values('l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into writer values('o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into writer values('r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into writer values('s', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into writer values('s', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into writer values('i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into writer values('o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into writer values('e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into writer values('l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into writer values('o', 'o', 's', 's', 'e', 'e', 'r'); +insert into writer values('d', 'o', 's', 'i', 'o', 'o', 'o'); +insert into writer values('d', 'd', 'r', 'o', 's', 'r', 'r'); +insert into writer values('r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into writer values('i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into writer values('o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into writer values('y', 'o', 'g', 'o', 'y', 'p', 'o'); +insert into writer values('r', 'y', 'o', 'p', 'p', 'g', 's'); + +create table written_by ( +id text, +msid text, +wid text +); +insert into written_by values('y', 'o', 'l'); +insert into written_by values('p', 'e', 'd'); +insert into written_by values('s', 'l', 's'); +insert into written_by values('l', 's', 'i'); +insert into written_by values('d', 's', 'e'); +insert into written_by values('l', 'y', 'l'); +insert into written_by values('o', 'r', 'o'); +insert into written_by values('i', 'l', 'i'); +insert into written_by values('s', 'l', 'i'); +insert into written_by values('r', 'y', 'd'); +insert into written_by values('o', 'g', 'p'); +insert into written_by values('d', 'g', 'e'); +insert into written_by values('d', 'o', 's'); +insert into written_by values('d', 'e', 'g'); +insert into written_by values('s', 's', 'p'); +insert into written_by values('o', 'o', 'r'); +insert into written_by values('o', 'r', 'l'); +insert into written_by values('r', 'g', 'p'); +insert into written_by values('l', 'o', 'l'); +insert into written_by values('l', 's', 'p'); +insert into written_by values('i', 'g', 'o'); +insert into written_by values('r', 'e', 'g'); +insert into written_by values('g', 'e', 'i'); +insert into written_by values('d', 'o', 'i'); +insert into written_by values('o', 'd', 's'); +insert into written_by values('s', 'e', 'o'); +insert into written_by values('e', 'o', 'e'); +insert into written_by values('r', 'r', 'i'); +insert into written_by values('l', 'l', 'l'); +create table movie_made_by ( +mid text, +title text, +release_year text, +title_aka text, +budget text, +id text, +pid text); +insert into movie_made_by values('l', 'p', 'p', 'p', 'g', 'd', 'p'); +insert into movie_made_by values('l', 'p', 'p', 'p', 'g', 'y', 'i'); +insert into movie_made_by values('o', 'l', 'e', 'o', 'e', 'd', 'p'); +insert into movie_made_by values('o', 'l', 'e', 'o', 'e', 'e', 'o'); +insert into movie_made_by values('o', 'l', 'e', 'o', 'e', 'o', 'g'); +insert into movie_made_by values('l', 'y', 'i', 'y', 'r', 'd', 'p'); +insert into movie_made_by values('l', 'y', 'i', 'y', 'r', 'y', 'i'); +insert into movie_made_by values('d', 'r', 's', 'o', 'o', 'None', 'None'); +insert into movie_made_by values('d', 'd', 's', 's', 'y', 'None', 'None'); +insert into movie_made_by values('g', 'o', 'p', 'd', 'r', 'i', 'd'); +insert into movie_made_by values('g', 'o', 'p', 'd', 'r', 'o', 'o'); +insert into movie_made_by values('g', 'o', 'p', 'd', 'r', 'r', 'o'); +insert into movie_made_by values('y', 'r', 'l', 'i', 'e', 'None', 'None'); +insert into movie_made_by values('g', 'r', 'e', 'e', 'r', 'i', 'd'); +insert into movie_made_by values('g', 'r', 'e', 'e', 'r', 'o', 'o'); +insert into movie_made_by values('g', 'r', 'e', 'e', 'r', 'r', 'o'); +insert into movie_made_by values('g', 'o', 'o', 'd', 'g', 'i', 'd'); +insert into movie_made_by values('g', 'o', 'o', 'd', 'g', 'o', 'o'); +insert into movie_made_by values('g', 'o', 'o', 'd', 'g', 'r', 'o'); +insert into movie_made_by values('p', 's', 'g', 'e', 'd', 'l', 'd'); +insert into movie_made_by values('o', 's', 'o', 'o', 'd', 'd', 'p'); +insert into movie_made_by values('o', 's', 'o', 'o', 'd', 'e', 'o'); +insert into movie_made_by values('o', 's', 'o', 'o', 'd', 'o', 'g'); +insert into movie_made_by values('e', 'r', 'i', 'l', 'y', 'None', 'None'); +insert into movie_made_by values('p', 'e', 'o', 'g', 'i', 'l', 'd'); +insert into movie_made_by values('o', 'o', 'y', 'd', 'd', 'd', 'p'); +insert into movie_made_by values('o', 'o', 'y', 'd', 'd', 'e', 'o'); +insert into movie_made_by values('o', 'o', 'y', 'd', 'd', 'o', 'g'); +insert into movie_made_by values('o', 'd', 'r', 'o', 'i', 'd', 'p'); +insert into movie_made_by values('o', 'd', 'r', 'o', 'i', 'e', 'o'); +insert into movie_made_by values('o', 'd', 'r', 'o', 'i', 'o', 'g'); +insert into movie_made_by values('y', 'r', 'i', 'y', 's', 'None', 'None'); +insert into movie_made_by values('o', 'e', 'l', 'p', 'r', 'd', 'p'); +insert into movie_made_by values('o', 'e', 'l', 'p', 'r', 'e', 'o'); +insert into movie_made_by values('o', 'e', 'l', 'p', 'r', 'o', 'g'); +insert into movie_made_by values('l', 'i', 'o', 'd', 's', 'd', 'p'); +insert into movie_made_by values('l', 'i', 'o', 'd', 's', 'y', 'i'); +insert into movie_made_by values('d', 'i', 'e', 'd', 'y', 'None', 'None'); +insert into movie_made_by values('l', 'o', 'i', 'o', 'i', 'd', 'p'); +insert into movie_made_by values('l', 'o', 'i', 'o', 'i', 'y', 'i'); +insert into movie_made_by values('y', 'o', 'e', 'g', 'l', 'None', 'None'); +insert into movie_made_by values('l', 'i', 'o', 'l', 'o', 'd', 'p'); +insert into movie_made_by values('l', 'i', 'o', 'l', 'o', 'y', 'i'); +insert into movie_made_by values('o', 'e', 'o', 'i', 'g', 'd', 'p'); +insert into movie_made_by values('o', 'e', 'o', 'i', 'g', 'e', 'o'); +insert into movie_made_by values('o', 'e', 'o', 'i', 'g', 'o', 'g'); +insert into movie_made_by values('s', 'y', 'y', 'r', 'r', 'e', 'r'); +insert into movie_made_by values('s', 'y', 'y', 'r', 'r', 'p', 'e'); +insert into movie_made_by values('s', 'y', 'y', 'r', 'r', 's', 'o'); +insert into movie_made_by values('s', 'g', 'e', 's', 's', 'e', 'r'); +insert into movie_made_by values('s', 'g', 'e', 's', 's', 'p', 'e'); +insert into movie_made_by values('s', 'g', 'e', 's', 's', 's', 'o'); +insert into movie_made_by values('s', 'p', 'r', 'g', 's', 'e', 'r'); +insert into movie_made_by values('s', 'p', 'r', 'g', 's', 'p', 'e'); +insert into movie_made_by values('s', 'p', 'r', 'g', 's', 's', 'o'); +insert into movie_made_by values('r', 'o', 'o', 'd', 'r', 'g', 'g'); +insert into movie_made_by values('r', 'o', 'o', 'd', 'r', 'l', 'p'); +insert into movie_made_by values('r', 'o', 'o', 'd', 'r', 'p', 'e'); +insert into movie_made_by values('r', 'o', 'o', 'd', 'r', 'r', 'p'); +insert into movie_made_by values('r', 'e', 'd', 's', 'd', 'g', 'g'); +insert into movie_made_by values('r', 'e', 'd', 's', 'd', 'l', 'p'); +insert into movie_made_by values('r', 'e', 'd', 's', 'd', 'p', 'e'); +insert into movie_made_by values('r', 'e', 'd', 's', 'd', 'r', 'p'); +insert into movie_made_by values('r', 'o', 'o', 'p', 's', 'g', 'g'); +insert into movie_made_by values('r', 'o', 'o', 'p', 's', 'l', 'p'); +insert into movie_made_by values('r', 'o', 'o', 'p', 's', 'p', 'e'); +insert into movie_made_by values('r', 'o', 'o', 'p', 's', 'r', 'p'); +insert into movie_made_by values('i', 'y', 'd', 'o', 'y', 'd', 'i'); + diff --git a/all/databases/imdb_minus_1_2/imdb_minus_1_2.sqlite b/all/databases/imdb_minus_1_2/imdb_minus_1_2.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..82ff8ae58530d741bdf391ba2601a55672351f56 Binary files /dev/null and b/all/databases/imdb_minus_1_2/imdb_minus_1_2.sqlite differ diff --git a/all/databases/imdb_total_0/imdb_total_0.sql b/all/databases/imdb_total_0/imdb_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..e7c36dfd599abd8ffdb3b51fac0feb616c75ed7d --- /dev/null +++ b/all/databases/imdb_total_0/imdb_total_0.sql @@ -0,0 +1,610 @@ +create table copyright ( +id text, +msid text, +cid text +); +insert into copyright values('p', 'p', 'i'); +insert into copyright values('i', 's', 'o'); +insert into copyright values('i', 'e', 'e'); +insert into copyright values('r', 'p', 'i'); +insert into copyright values('e', 'd', 'r'); +insert into copyright values('d', 'l', 'd'); +insert into copyright values('g', 'd', 'y'); +insert into copyright values('e', 'r', 'g'); +insert into copyright values('g', 'y', 'y'); +insert into copyright values('y', 'g', 'o'); +insert into copyright values('l', 'e', 'e'); +insert into copyright values('e', 'o', 'd'); +insert into copyright values('d', 'y', 'y'); +insert into copyright values('y', 'o', 'y'); +insert into copyright values('d', 'r', 'e'); +insert into copyright values('y', 'i', 'o'); +insert into copyright values('o', 'o', 'l'); +insert into copyright values('s', 'o', 'p'); +insert into copyright values('s', 's', 'e'); +insert into copyright values('y', 'l', 'p'); +insert into copyright values('o', 'y', 'i'); +insert into copyright values('e', 'l', 'o'); +insert into copyright values('p', 'g', 'o'); +insert into copyright values('o', 'e', 'o'); +insert into copyright values('p', 's', 's'); +insert into copyright values('r', 'd', 'p'); + +create table genre ( +gid text, +genre text +); +insert into genre values('g', 'o'); +insert into genre values('r', 'p'); +insert into genre values('y', 'l'); +insert into genre values('d', 'o'); +insert into genre values('i', 'i'); +insert into genre values('s', 'l'); +insert into genre values('e', 'p'); +insert into genre values('y', 'o'); +insert into genre values('g', 'o'); +insert into genre values('e', 'g'); +insert into genre values('s', 'e'); +insert into genre values('p', 'd'); +insert into genre values('s', 'o'); +insert into genre values('s', 'p'); +insert into genre values('o', 'o'); +insert into genre values('i', 'i'); +insert into genre values('y', 'd'); +insert into genre values('o', 's'); + +create table classification ( +id text, +msid text, +gid text +); +insert into classification values('g', 'g', 'p'); +insert into classification values('e', 'o', 'o'); +insert into classification values('y', 'l', 'o'); +insert into classification values('o', 'r', 'r'); +insert into classification values('l', 'e', 'e'); +insert into classification values('y', 'e', 'r'); +insert into classification values('s', 'o', 'i'); +insert into classification values('d', 'd', 'p'); +insert into classification values('l', 'e', 'o'); +insert into classification values('o', 'y', 'r'); +insert into classification values('y', 'e', 'r'); +insert into classification values('s', 'e', 'o'); + +create table company ( +id text, +name text, +country_code text +); +insert into company values('o', 'i', 'd'); +insert into company values('r', 'i', 'i'); +insert into company values('l', 's', 's'); +insert into company values('o', 'y', 'l'); +insert into company values('l', 'o', 'i'); +insert into company values('p', 'g', 'e'); +insert into company values('p', 'd', 'i'); +insert into company values('d', 'r', 'g'); +insert into company values('r', 'p', 'i'); +insert into company values('r', 'e', 'e'); +insert into company values('e', 'l', 'r'); +insert into company values('r', 'i', 'r'); +insert into company values('y', 'y', 's'); + +create table producer ( +pid text, +gender text, +name text, +nationality text, +birth_city text, +birth_year text +); +insert into producer values('o', 'l', 'l', 'o', 'o', 's'); +insert into producer values('y', 'o', 'r', 'p', 's', 'o'); +insert into producer values('l', 'o', 'g', 'e', 'p', 'o'); +insert into producer values('l', 'i', 's', 'e', 'e', 'r'); +insert into producer values('s', 'g', 'i', 'p', 'o', 'o'); +insert into producer values('d', 'd', 'r', 'l', 'g', 'e'); +insert into producer values('g', 'i', 'e', 's', 'o', 's'); +insert into producer values('e', 'y', 's', 'r', 'p', 'i'); +insert into producer values('d', 'e', 'd', 'y', 'o', 'o'); +insert into producer values('p', 'r', 'p', 'e', 'p', 's'); +insert into producer values('r', 'y', 'i', 'i', 'g', 'y'); +insert into producer values('o', 'p', 'y', 'o', 'p', 'y'); +insert into producer values('i', 'o', 's', 'o', 's', 'o'); +insert into producer values('d', 'p', 'd', 'e', 'o', 'g'); +insert into producer values('e', 'r', 'l', 's', 'p', 'i'); +insert into producer values('d', 'l', 'e', 'l', 's', 'd'); +insert into producer values('r', 'i', 'o', 'o', 'y', 'l'); +insert into producer values('i', 'l', 'y', 'p', 'l', 'o'); +insert into producer values('y', 'o', 's', 's', 'y', 'r'); +insert into producer values('l', 'p', 'i', 'o', 'l', 'i'); +insert into producer values('i', 'e', 'o', 'l', 'd', 'd'); +insert into producer values('g', 'd', 'r', 's', 'g', 'g'); +insert into producer values('l', 'i', 'o', 's', 'y', 'd'); +insert into producer values('o', 'i', 'e', 'e', 'y', 'g'); +insert into producer values('o', 'p', 'i', 'p', 'e', 'p'); + +create table keyword ( +id text, +keyword text +); +insert into keyword values('g', 'g'); +insert into keyword values('r', 'd'); +insert into keyword values('p', 'o'); +insert into keyword values('y', 'e'); +insert into keyword values('d', 'e'); +insert into keyword values('p', 's'); +insert into keyword values('r', 'l'); +insert into keyword values('s', 'd'); +insert into keyword values('l', 'd'); +insert into keyword values('s', 'o'); +insert into keyword values('d', 'l'); +insert into keyword values('e', 'o'); +insert into keyword values('o', 'i'); +insert into keyword values('o', 'o'); +insert into keyword values('l', 'd'); +insert into keyword values('s', 'p'); +insert into keyword values('p', 'l'); +insert into keyword values('y', 's'); +insert into keyword values('i', 'r'); +insert into keyword values('y', 's'); +insert into keyword values('o', 's'); +insert into keyword values('r', 'l'); +insert into keyword values('r', 'p'); +insert into keyword values('g', 'o'); +insert into keyword values('e', 'r'); +insert into keyword values('s', 'd'); +insert into keyword values('e', 'g'); + +create table made_by ( +id text, +msid text, +pid text +); +insert into made_by values('y', 'l', 'i'); +insert into made_by values('p', 's', 'e'); +insert into made_by values('d', 'o', 'p'); +insert into made_by values('e', 'o', 'o'); +insert into made_by values('d', 'i', 'i'); +insert into made_by values('r', 'r', 'p'); +insert into made_by values('e', 's', 'r'); +insert into made_by values('s', 's', 'o'); +insert into made_by values('p', 'r', 'e'); +insert into made_by values('l', 'r', 'p'); +insert into made_by values('i', 'g', 'd'); +insert into made_by values('d', 'l', 'p'); +insert into made_by values('r', 'g', 'o'); +insert into made_by values('l', 'p', 'd'); +insert into made_by values('g', 'r', 'g'); +insert into made_by values('o', 'g', 'o'); +insert into made_by values('o', 'o', 'g'); + +create table tags ( +id text, +msid text, +kid text +); +insert into tags values('l', 'o', 'p'); +insert into tags values('i', 'y', 'g'); +insert into tags values('o', 's', 'p'); +insert into tags values('o', 'r', 'o'); +insert into tags values('o', 'd', 'i'); +insert into tags values('l', 'i', 'l'); +insert into tags values('o', 'i', 'e'); +insert into tags values('o', 'o', 'o'); +insert into tags values('l', 'e', 'p'); +insert into tags values('l', 'l', 'p'); +insert into tags values('p', 'o', 'y'); +insert into tags values('o', 'd', 's'); +insert into tags values('p', 'g', 'y'); +insert into tags values('y', 'i', 'e'); +insert into tags values('i', 'o', 'o'); +insert into tags values('d', 'o', 'i'); +insert into tags values('o', 'r', 'g'); +insert into tags values('i', 'o', 'l'); +insert into tags values('o', 'l', 'o'); + +create table tv_series ( +sid text, +title text, +release_year text, +num_of_seasons text, +num_of_episodes text, +title_aka text, +budget text +); +insert into tv_series values('i', 'y', 'p', 'o', 'y', 'g', 'd'); +insert into tv_series values('y', 'o', 'o', 'r', 'y', 'd', 's'); +insert into tv_series values('g', 'o', 'p', 'y', 'o', 'o', 'r'); +insert into tv_series values('i', 'g', 'e', 'o', 'o', 'o', 's'); +insert into tv_series values('l', 'i', 'l', 'o', 'g', 'o', 's'); +insert into tv_series values('o', 'o', 'y', 'l', 'l', 'p', 'y'); +insert into tv_series values('r', 'd', 'p', 'y', 'g', 'o', 'i'); +insert into tv_series values('p', 'p', 'd', 'o', 'e', 'd', 'p'); +insert into tv_series values('y', 'g', 'l', 'i', 'r', 'i', 'i'); +insert into tv_series values('p', 'i', 'r', 'i', 'r', 'o', 'o'); +insert into tv_series values('l', 'y', 'y', 'o', 'o', 'r', 'e'); +insert into tv_series values('g', 's', 'y', 'r', 'd', 'y', 'p'); +insert into tv_series values('e', 'i', 's', 'o', 's', 'p', 'p'); +insert into tv_series values('p', 's', 'o', 's', 'i', 'o', 'i'); + +create table writer ( +wid text, +gender text, +name text, +nationality text, +num_of_episodes text, +birth_city text, +birth_year text +); +insert into writer values('o', 'y', 'y', 'p', 'i', 's', 's'); +insert into writer values('i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into writer values('s', 'l', 'g', 's', 'o', 'o', 's'); +insert into writer values('l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into writer values('o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into writer values('r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into writer values('s', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into writer values('s', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into writer values('i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into writer values('o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into writer values('e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into writer values('l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into writer values('o', 'o', 's', 's', 'e', 'e', 'r'); +insert into writer values('d', 'o', 's', 'i', 'o', 'o', 'o'); +insert into writer values('d', 'd', 'r', 'o', 's', 'r', 'r'); +insert into writer values('r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into writer values('i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into writer values('o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into writer values('y', 'o', 'g', 'o', 'y', 'p', 'o'); +insert into writer values('r', 'y', 'o', 'p', 'p', 'g', 's'); + +create table written_by ( +id text, +msid text, +wid text +); +insert into written_by values('y', 'o', 'l'); +insert into written_by values('p', 'e', 'd'); +insert into written_by values('s', 'l', 's'); +insert into written_by values('l', 's', 'i'); +insert into written_by values('d', 's', 'e'); +insert into written_by values('l', 'y', 'l'); +insert into written_by values('o', 'r', 'o'); +insert into written_by values('i', 'l', 'i'); +insert into written_by values('s', 'l', 'i'); +insert into written_by values('r', 'y', 'd'); +insert into written_by values('o', 'g', 'p'); +insert into written_by values('d', 'g', 'e'); +insert into written_by values('d', 'o', 's'); +insert into written_by values('d', 'e', 'g'); +insert into written_by values('s', 's', 'p'); +insert into written_by values('o', 'o', 'r'); +insert into written_by values('o', 'r', 'l'); +insert into written_by values('r', 'g', 'p'); +insert into written_by values('l', 'o', 'l'); +insert into written_by values('l', 's', 'p'); +insert into written_by values('i', 'g', 'o'); +insert into written_by values('r', 'e', 'g'); +insert into written_by values('g', 'e', 'i'); +insert into written_by values('d', 'o', 'i'); +insert into written_by values('o', 'd', 's'); +insert into written_by values('s', 'e', 'o'); +insert into written_by values('e', 'o', 'e'); +insert into written_by values('r', 'r', 'i'); +insert into written_by values('l', 'l', 'l'); +create table cast_actor_movie_directed_by_director ( +id_cast_actor_movie text, +msid text, +aid text, +role text, +gender_cast_actor_movie_directed_by text, +name_cast_actor_movie_directed_by text, +nationality_cast_actor_movie_directed_by text, +birth_city_cast_actor_movie_directed_by text, +birth_year_cast_actor_movie_directed_by text, +title text, +release_year text, +title_aka text, +budget text, +id_directed_by text, +did text, +gender_director text, +name_director text, +nationality_director text, +birth_city_director text, +birth_year_director text); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'o', 'd', 'g', 'e', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'o', 'd', 'g', 'e', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'o', 'd', 'g', 'e', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'o', 'd', 'g', 'e', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'o', 'd', 'g', 'o', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'o', 'd', 'g', 'p', 'y', 'p', 'd', 's', 'l', 'y'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'o', 'd', 'g', 'p', 'y', 'p', 's', 'o', 'o', 'd'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'p', 'd', 'r', 'e', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'p', 'd', 'r', 'e', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'p', 'd', 'r', 'e', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'p', 'd', 'r', 'e', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'p', 'd', 'r', 'o', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'p', 'd', 'r', 'p', 'y', 'p', 'd', 's', 'l', 'y'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'p', 'd', 'r', 'p', 'y', 'p', 's', 'o', 'o', 'd'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'r', 'e', 'e', 'r', 'e', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'r', 'e', 'e', 'r', 'e', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'r', 'e', 'e', 'r', 'e', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'r', 'e', 'e', 'r', 'e', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'r', 'e', 'e', 'r', 'o', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'r', 'e', 'e', 'r', 'p', 'y', 'p', 'd', 's', 'l', 'y'); +insert into cast_actor_movie_directed_by_director values('e', 'g', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'r', 'e', 'e', 'r', 'p', 'y', 'p', 's', 'o', 'o', 'd'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'd', 'r', 'o', 'i', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'd', 'r', 'o', 'i', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'd', 'r', 'o', 'i', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'd', 'r', 'o', 'i', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'd', 'r', 'o', 'i', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'd', 'r', 'o', 'i', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'd', 'r', 'o', 'i', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'd', 'r', 'o', 'i', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'l', 'p', 'r', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'l', 'p', 'r', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'l', 'p', 'r', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'l', 'p', 'r', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'l', 'p', 'r', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'l', 'p', 'r', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'l', 'p', 'r', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'l', 'p', 'r', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'o', 'i', 'g', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'o', 'i', 'g', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'o', 'i', 'g', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'o', 'i', 'g', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'o', 'i', 'g', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'o', 'i', 'g', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'o', 'i', 'g', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'e', 'o', 'i', 'g', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'l', 'e', 'o', 'e', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'l', 'e', 'o', 'e', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'l', 'e', 'o', 'e', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'l', 'e', 'o', 'e', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'l', 'e', 'o', 'e', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'l', 'e', 'o', 'e', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'l', 'e', 'o', 'e', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'l', 'e', 'o', 'e', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'o', 'y', 'd', 'd', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'o', 'y', 'd', 'd', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'o', 'y', 'd', 'd', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'o', 'y', 'd', 'd', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'o', 'y', 'd', 'd', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'o', 'y', 'd', 'd', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'o', 'y', 'd', 'd', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 'o', 'y', 'd', 'd', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 's', 'o', 'o', 'd', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 's', 'o', 'o', 'd', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 's', 'o', 'o', 'd', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 's', 'o', 'o', 'd', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 's', 'o', 'o', 'd', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 's', 'o', 'o', 'd', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 's', 'o', 'o', 'd', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('g', 'o', 'e', 'r', 'e', 'e', 'y', 'l', 'e', 's', 'o', 'o', 'd', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 'e', 'o', 'g', 'i', 'd', 'i', 's', 'o', 'p', 'o', 'y'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 'e', 'o', 'g', 'i', 'd', 'i', 'y', 'p', 'r', 'r', 'd'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 'e', 'o', 'g', 'i', 'o', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 'e', 'o', 'g', 'i', 'o', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 'e', 'o', 'g', 'i', 'o', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 'e', 'o', 'g', 'i', 'o', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 's', 'g', 'e', 'd', 'd', 'i', 's', 'o', 'p', 'o', 'y'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 's', 'g', 'e', 'd', 'd', 'i', 'y', 'p', 'r', 'r', 'd'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 's', 'g', 'e', 'd', 'o', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 's', 'g', 'e', 'd', 'o', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 's', 'g', 'e', 'd', 'o', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('o', 'p', 'p', 'd', 'p', 'y', 'p', 'g', 'g', 's', 'g', 'e', 'd', 'o', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('p', 'i', 'g', 'e', 'r', 'y', 'l', 's', 's', 'y', 'd', 'o', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('p', 'i', 'g', 'e', 's', 'p', 'd', 'i', 'l', 'y', 'd', 'o', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('g', 'l', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'i', 'o', 'd', 's', 'e', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('g', 'l', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'i', 'o', 'l', 'o', 'e', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('g', 'l', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'o', 'i', 'o', 'i', 'e', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('g', 'l', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'p', 'p', 'p', 'g', 'e', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('g', 'l', 'y', 'l', 'o', 'd', 'l', 'o', 'p', 'y', 'i', 'y', 'r', 'e', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'd', 'r', 'o', 'i', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'd', 'r', 'o', 'i', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'd', 'r', 'o', 'i', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'd', 'r', 'o', 'i', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'd', 'r', 'o', 'i', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'd', 'r', 'o', 'i', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'd', 'r', 'o', 'i', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'd', 'r', 'o', 'i', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'l', 'p', 'r', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'l', 'p', 'r', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'l', 'p', 'r', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'l', 'p', 'r', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'l', 'p', 'r', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'l', 'p', 'r', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'l', 'p', 'r', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'l', 'p', 'r', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'o', 'i', 'g', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'o', 'i', 'g', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'o', 'i', 'g', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'o', 'i', 'g', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'o', 'i', 'g', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'o', 'i', 'g', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'o', 'i', 'g', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'e', 'o', 'i', 'g', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'l', 'e', 'o', 'e', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'l', 'e', 'o', 'e', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'l', 'e', 'o', 'e', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'l', 'e', 'o', 'e', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'l', 'e', 'o', 'e', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'l', 'e', 'o', 'e', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'l', 'e', 'o', 'e', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'l', 'e', 'o', 'e', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'o', 'y', 'd', 'd', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'o', 'y', 'd', 'd', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'o', 'y', 'd', 'd', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'o', 'y', 'd', 'd', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'o', 'y', 'd', 'd', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'o', 'y', 'd', 'd', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'o', 'y', 'd', 'd', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 'o', 'y', 'd', 'd', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 's', 'o', 'o', 'd', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 's', 'o', 'o', 'd', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 's', 'o', 'o', 'd', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 's', 'o', 'o', 'd', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 's', 'o', 'o', 'd', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 's', 'o', 'o', 'd', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 's', 'o', 'o', 'd', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('p', 'o', 'y', 's', 'o', 'd', 'l', 'o', 'p', 's', 'o', 'o', 'd', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('r', 'i', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 'y', 'd', 'o', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 'e', 'o', 'g', 'i', 'd', 'i', 's', 'o', 'p', 'o', 'y'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 'e', 'o', 'g', 'i', 'd', 'i', 'y', 'p', 'r', 'r', 'd'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 'e', 'o', 'g', 'i', 'o', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 'e', 'o', 'g', 'i', 'o', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 'e', 'o', 'g', 'i', 'o', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 'e', 'o', 'g', 'i', 'o', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 's', 'g', 'e', 'd', 'd', 'i', 's', 'o', 'p', 'o', 'y'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 's', 'g', 'e', 'd', 'd', 'i', 'y', 'p', 'r', 'r', 'd'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 's', 'g', 'e', 'd', 'o', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 's', 'g', 'e', 'd', 'o', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 's', 'g', 'e', 'd', 'o', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('s', 'p', 'i', 'r', 's', 'e', 'p', 'g', 'e', 's', 'g', 'e', 'd', 'o', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('o', 'e', 's', 'o', 'None', 'None', 'None', 'None', 'None', 'r', 'i', 'l', 'y', 'y', 'o', 'e', 'o', 'y', 'g', 'd'); +insert into cast_actor_movie_directed_by_director values('o', 'e', 's', 'o', 'None', 'None', 'None', 'None', 'None', 'r', 'i', 'l', 'y', 'y', 'o', 'o', 'd', 'i', 'r', 'g'); +insert into cast_actor_movie_directed_by_director values('o', 'e', 's', 'o', 'None', 'None', 'None', 'None', 'None', 'r', 'i', 'l', 'y', 'y', 'o', 'o', 'r', 'e', 'o', 'l'); +insert into cast_actor_movie_directed_by_director values('y', 'r', 'p', 'o', 'p', 'y', 'p', 'g', 'g', 'e', 'd', 's', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('y', 'r', 'p', 'o', 'p', 'y', 'p', 'g', 'g', 'o', 'o', 'd', 'r', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('y', 'r', 'p', 'o', 'p', 'y', 'p', 'g', 'g', 'o', 'o', 'p', 's', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('o', 'i', 'r', 'r', 'None', 'None', 'None', 'None', 'None', 'y', 'd', 'o', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('i', 'e', 'p', 'r', 'p', 'y', 'p', 'g', 'g', 'r', 'i', 'l', 'y', 'y', 'o', 'e', 'o', 'y', 'g', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'e', 'p', 'r', 'p', 'y', 'p', 'g', 'g', 'r', 'i', 'l', 'y', 'y', 'o', 'o', 'd', 'i', 'r', 'g'); +insert into cast_actor_movie_directed_by_director values('i', 'e', 'p', 'r', 'p', 'y', 'p', 'g', 'g', 'r', 'i', 'l', 'y', 'y', 'o', 'o', 'r', 'e', 'o', 'l'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 'e', 'o', 'g', 'i', 'd', 'i', 's', 'o', 'p', 'o', 'y'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 'e', 'o', 'g', 'i', 'd', 'i', 'y', 'p', 'r', 'r', 'd'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 'e', 'o', 'g', 'i', 'o', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 'e', 'o', 'g', 'i', 'o', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 'e', 'o', 'g', 'i', 'o', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 'e', 'o', 'g', 'i', 'o', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 's', 'g', 'e', 'd', 'd', 'i', 's', 'o', 'p', 'o', 'y'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 's', 'g', 'e', 'd', 'd', 'i', 'y', 'p', 'r', 'r', 'd'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 's', 'g', 'e', 'd', 'o', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 's', 'g', 'e', 'd', 'o', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 's', 'g', 'e', 'd', 'o', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('d', 'p', 'd', 'l', 'None', 'None', 'None', 'None', 'None', 's', 'g', 'e', 'd', 'o', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 's', 'y', 'y', 'o', 'd', 'l', 'o', 'p', 'g', 'e', 's', 's', 'i', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 's', 'y', 'y', 'o', 'd', 'l', 'o', 'p', 'p', 'r', 'g', 's', 'i', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 's', 'y', 'y', 'o', 'd', 'l', 'o', 'p', 'y', 'y', 'r', 'r', 'i', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'd', 'r', 'o', 'i', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'd', 'r', 'o', 'i', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'd', 'r', 'o', 'i', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'd', 'r', 'o', 'i', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'd', 'r', 'o', 'i', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'd', 'r', 'o', 'i', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'd', 'r', 'o', 'i', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'd', 'r', 'o', 'i', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'l', 'p', 'r', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'l', 'p', 'r', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'l', 'p', 'r', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'l', 'p', 'r', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'l', 'p', 'r', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'l', 'p', 'r', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'l', 'p', 'r', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'l', 'p', 'r', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'o', 'i', 'g', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'o', 'i', 'g', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'o', 'i', 'g', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'o', 'i', 'g', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'o', 'i', 'g', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'o', 'i', 'g', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'o', 'i', 'g', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'e', 'o', 'i', 'g', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'l', 'e', 'o', 'e', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'l', 'e', 'o', 'e', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'l', 'e', 'o', 'e', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'l', 'e', 'o', 'e', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'l', 'e', 'o', 'e', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'l', 'e', 'o', 'e', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'l', 'e', 'o', 'e', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'l', 'e', 'o', 'e', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'o', 'y', 'd', 'd', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'o', 'y', 'd', 'd', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'o', 'y', 'd', 'd', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'o', 'y', 'd', 'd', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'o', 'y', 'd', 'd', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'o', 'y', 'd', 'd', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'o', 'y', 'd', 'd', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 'o', 'y', 'd', 'd', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 's', 'o', 'o', 'd', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 's', 'o', 'o', 'd', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 's', 'o', 'o', 'd', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 's', 'o', 'o', 'd', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 's', 'o', 'o', 'd', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 's', 'o', 'o', 'd', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 's', 'o', 'o', 'd', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 'r', 'y', 'l', 's', 's', 's', 'o', 'o', 'd', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'd', 'r', 'o', 'i', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'd', 'r', 'o', 'i', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'd', 'r', 'o', 'i', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'd', 'r', 'o', 'i', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'd', 'r', 'o', 'i', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'd', 'r', 'o', 'i', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'd', 'r', 'o', 'i', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'd', 'r', 'o', 'i', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'l', 'p', 'r', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'l', 'p', 'r', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'l', 'p', 'r', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'l', 'p', 'r', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'l', 'p', 'r', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'l', 'p', 'r', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'l', 'p', 'r', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'l', 'p', 'r', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'o', 'i', 'g', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'o', 'i', 'g', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'o', 'i', 'g', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'o', 'i', 'g', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'o', 'i', 'g', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'o', 'i', 'g', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'o', 'i', 'g', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'e', 'o', 'i', 'g', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'l', 'e', 'o', 'e', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'l', 'e', 'o', 'e', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'l', 'e', 'o', 'e', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'l', 'e', 'o', 'e', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'l', 'e', 'o', 'e', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'l', 'e', 'o', 'e', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'l', 'e', 'o', 'e', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'l', 'e', 'o', 'e', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'o', 'y', 'd', 'd', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'o', 'y', 'd', 'd', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'o', 'y', 'd', 'd', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'o', 'y', 'd', 'd', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'o', 'y', 'd', 'd', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'o', 'y', 'd', 'd', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'o', 'y', 'd', 'd', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 'o', 'y', 'd', 'd', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 's', 'o', 'o', 'd', 'i', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 's', 'o', 'o', 'd', 'l', 'r', 'g', 'o', 'o', 'i', 'y'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 's', 'o', 'o', 'd', 'o', 'e', 'l', 'o', 'r', 'e', 's'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 's', 'o', 'o', 'd', 'p', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 's', 'o', 'o', 'd', 'p', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 's', 'o', 'o', 'd', 'p', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 's', 'o', 'o', 'd', 'p', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('i', 'o', 'g', 'y', 's', 'p', 'd', 'i', 'l', 's', 'o', 'o', 'd', 's', 'g', 'o', 'o', 'o', 'o', 'r'); +insert into cast_actor_movie_directed_by_director values('None', 'None', 'o', 'None', 'g', 'o', 'l', 'p', 'g', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('None', 'None', 'o', 'None', 'd', 'y', 'g', 's', 'l', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('None', 'None', 'l', 'None', 'l', 'p', 'p', 'l', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('None', 'None', 'o', 'None', 's', 'd', 'e', 'l', 'r', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('None', 'None', 'l', 'None', 'y', 'i', 's', 'o', 'e', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('None', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 's', 'o', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('None', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'd', 's', 's', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'l', 'i', 'e', 'e', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'l', 'i', 'e', 'e', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'l', 'i', 'e', 'e', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'l', 'i', 'e', 'e', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'l', 'i', 'e', 'o', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'i', 'y', 's', 'e', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'i', 'y', 's', 'e', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'i', 'y', 's', 'e', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'i', 'y', 's', 'e', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'i', 'y', 's', 'o', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('None', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'i', 'e', 'd', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 'e', 'g', 'l', 'e', 's', 'd', 'p', 'y', 'd', 'o'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 'e', 'g', 'l', 'e', 's', 'e', 'd', 'i', 'r', 'o'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 'e', 'g', 'l', 'e', 's', 'p', 'y', 'd', 'o', 'e'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 'e', 'g', 'l', 'e', 's', 's', 'p', 's', 'i', 'l'); +insert into cast_actor_movie_directed_by_director values('None', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 'e', 'g', 'l', 'o', 'l', 'd', 'g', 'o', 'i', 'd'); +insert into cast_actor_movie_directed_by_director values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'd', 'g', 's', 'g', 'i', 'p'); + diff --git a/all/databases/imdb_total_0/imdb_total_0.sqlite b/all/databases/imdb_total_0/imdb_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..092ed0e8ea71404957ad41d892078c77e6fd819f Binary files /dev/null and b/all/databases/imdb_total_0/imdb_total_0.sqlite differ diff --git a/all/databases/imdb_total_1/imdb_total_1.sql b/all/databases/imdb_total_1/imdb_total_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..dbe6f85c536db11fae2222b67dab504ac0af48b8 --- /dev/null +++ b/all/databases/imdb_total_1/imdb_total_1.sql @@ -0,0 +1,1754 @@ +create table actor ( +aid text, +gender text, +name text, +nationality text, +birth_city text, +birth_year text +); +insert into actor values('e', 'e', 'e', 'y', 'l', 'e'); +insert into actor values('o', 'g', 'o', 'l', 'p', 'g'); +insert into actor values('o', 'd', 'y', 'g', 's', 'l'); +insert into actor values('l', 'l', 'p', 'p', 'l', 'd'); +insert into actor values('p', 'p', 'y', 'p', 'g', 'g'); +insert into actor values('g', 's', 'p', 'd', 'i', 'l'); +insert into actor values('o', 's', 'd', 'e', 'l', 'r'); +insert into actor values('g', 'r', 'y', 'l', 's', 's'); +insert into actor values('y', 'o', 'd', 'l', 'o', 'p'); +insert into actor values('l', 'y', 'i', 's', 'o', 'e'); +insert into actor values('i', 's', 'e', 'p', 'g', 'e'); + +create table copyright ( +id text, +msid text, +cid text +); +insert into copyright values('p', 'p', 'i'); +insert into copyright values('i', 's', 'o'); +insert into copyright values('i', 'e', 'e'); +insert into copyright values('r', 'p', 'i'); +insert into copyright values('e', 'd', 'r'); +insert into copyright values('d', 'l', 'd'); +insert into copyright values('g', 'd', 'y'); +insert into copyright values('e', 'r', 'g'); +insert into copyright values('g', 'y', 'y'); +insert into copyright values('y', 'g', 'o'); +insert into copyright values('l', 'e', 'e'); +insert into copyright values('e', 'o', 'd'); +insert into copyright values('d', 'y', 'y'); +insert into copyright values('y', 'o', 'y'); +insert into copyright values('d', 'r', 'e'); +insert into copyright values('y', 'i', 'o'); +insert into copyright values('o', 'o', 'l'); +insert into copyright values('s', 'o', 'p'); +insert into copyright values('s', 's', 'e'); +insert into copyright values('y', 'l', 'p'); +insert into copyright values('o', 'y', 'i'); +insert into copyright values('e', 'l', 'o'); +insert into copyright values('p', 'g', 'o'); +insert into copyright values('o', 'e', 'o'); +insert into copyright values('p', 's', 's'); +insert into copyright values('r', 'd', 'p'); + +create table cast ( +id text, +msid text, +aid text, +role text +); +insert into cast values('e', 'g', 'y', 'l'); +insert into cast values('g', 'o', 'e', 'r'); +insert into cast values('o', 'p', 'p', 'd'); +insert into cast values('p', 'i', 'g', 'e'); +insert into cast values('g', 'l', 'y', 'l'); +insert into cast values('p', 'o', 'y', 's'); +insert into cast values('r', 'i', 'd', 'l'); +insert into cast values('s', 'p', 'i', 'r'); +insert into cast values('o', 'e', 's', 'o'); +insert into cast values('y', 'r', 'p', 'o'); +insert into cast values('o', 'i', 'r', 'r'); +insert into cast values('i', 'e', 'p', 'r'); +insert into cast values('d', 'p', 'd', 'l'); +insert into cast values('i', 's', 'y', 'y'); +insert into cast values('i', 'o', 'g', 'y'); + +create table genre ( +gid text, +genre text +); +insert into genre values('g', 'o'); +insert into genre values('r', 'p'); +insert into genre values('y', 'l'); +insert into genre values('d', 'o'); +insert into genre values('i', 'i'); +insert into genre values('s', 'l'); +insert into genre values('e', 'p'); +insert into genre values('y', 'o'); +insert into genre values('g', 'o'); +insert into genre values('e', 'g'); +insert into genre values('s', 'e'); +insert into genre values('p', 'd'); +insert into genre values('s', 'o'); +insert into genre values('s', 'p'); +insert into genre values('o', 'o'); +insert into genre values('i', 'i'); +insert into genre values('y', 'd'); +insert into genre values('o', 's'); + +create table classification ( +id text, +msid text, +gid text +); +insert into classification values('g', 'g', 'p'); +insert into classification values('e', 'o', 'o'); +insert into classification values('y', 'l', 'o'); +insert into classification values('o', 'r', 'r'); +insert into classification values('l', 'e', 'e'); +insert into classification values('y', 'e', 'r'); +insert into classification values('s', 'o', 'i'); +insert into classification values('d', 'd', 'p'); +insert into classification values('l', 'e', 'o'); +insert into classification values('o', 'y', 'r'); +insert into classification values('y', 'e', 'r'); +insert into classification values('s', 'e', 'o'); + +create table company ( +id text, +name text, +country_code text +); +insert into company values('o', 'i', 'd'); +insert into company values('r', 'i', 'i'); +insert into company values('l', 's', 's'); +insert into company values('o', 'y', 'l'); +insert into company values('l', 'o', 'i'); +insert into company values('p', 'g', 'e'); +insert into company values('p', 'd', 'i'); +insert into company values('d', 'r', 'g'); +insert into company values('r', 'p', 'i'); +insert into company values('r', 'e', 'e'); +insert into company values('e', 'l', 'r'); +insert into company values('r', 'i', 'r'); +insert into company values('y', 'y', 's'); + +create table director ( +did text, +gender text, +name text, +nationality text, +birth_city text, +birth_year text +); +insert into director values('i', 's', 'o', 'p', 'o', 'y'); +insert into director values('s', 'e', 'd', 'i', 'r', 'o'); +insert into director values('o', 'o', 'r', 'e', 'o', 'l'); +insert into director values('o', 'e', 'o', 'y', 'g', 'd'); +insert into director values('s', 'p', 'y', 'd', 'o', 'e'); +insert into director values('s', 's', 'p', 's', 'i', 'l'); +insert into director values('l', 'd', 'g', 'o', 'i', 'd'); +insert into director values('o', 'o', 'd', 'i', 'r', 'g'); +insert into director values('y', 'p', 's', 'o', 'o', 'd'); +insert into director values('y', 'p', 'd', 's', 'l', 'y'); +insert into director values('d', 'g', 's', 'g', 'i', 'p'); +insert into director values('s', 'd', 'p', 'y', 'd', 'o'); +insert into director values('i', 'y', 'p', 'r', 'r', 'd'); +insert into director values('e', 'l', 'o', 'r', 'e', 's'); +insert into director values('g', 'o', 'o', 'o', 'o', 'r'); +insert into director values('r', 'g', 'o', 'o', 'i', 'y'); + +create table directed_by ( +id text, +msid text, +did text +); +insert into directed_by values('o', 'y', 'l'); +insert into directed_by values('l', 'o', 'r'); +insert into directed_by values('d', 'p', 'i'); +insert into directed_by values('o', 'p', 's'); +insert into directed_by values('i', 'o', 'l'); +insert into directed_by values('o', 'g', 'r'); +insert into directed_by values('s', 'o', 'g'); +insert into directed_by values('y', 'e', 'o'); +insert into directed_by values('e', 'y', 's'); +insert into directed_by values('p', 'o', 's'); +insert into directed_by values('o', 'o', 'e'); +insert into directed_by values('p', 'g', 'y'); +insert into directed_by values('e', 'l', 'g'); +insert into directed_by values('i', 's', 'r'); +insert into directed_by values('e', 'g', 's'); + +create table keyword ( +id text, +keyword text +); +insert into keyword values('g', 'g'); +insert into keyword values('r', 'd'); +insert into keyword values('p', 'o'); +insert into keyword values('y', 'e'); +insert into keyword values('d', 'e'); +insert into keyword values('p', 's'); +insert into keyword values('r', 'l'); +insert into keyword values('s', 'd'); +insert into keyword values('l', 'd'); +insert into keyword values('s', 'o'); +insert into keyword values('d', 'l'); +insert into keyword values('e', 'o'); +insert into keyword values('o', 'i'); +insert into keyword values('o', 'o'); +insert into keyword values('l', 'd'); +insert into keyword values('s', 'p'); +insert into keyword values('p', 'l'); +insert into keyword values('y', 's'); +insert into keyword values('i', 'r'); +insert into keyword values('y', 's'); +insert into keyword values('o', 's'); +insert into keyword values('r', 'l'); +insert into keyword values('r', 'p'); +insert into keyword values('g', 'o'); +insert into keyword values('e', 'r'); +insert into keyword values('s', 'd'); +insert into keyword values('e', 'g'); + +create table tags ( +id text, +msid text, +kid text +); +insert into tags values('l', 'o', 'p'); +insert into tags values('i', 'y', 'g'); +insert into tags values('o', 's', 'p'); +insert into tags values('o', 'r', 'o'); +insert into tags values('o', 'd', 'i'); +insert into tags values('l', 'i', 'l'); +insert into tags values('o', 'i', 'e'); +insert into tags values('o', 'o', 'o'); +insert into tags values('l', 'e', 'p'); +insert into tags values('l', 'l', 'p'); +insert into tags values('p', 'o', 'y'); +insert into tags values('o', 'd', 's'); +insert into tags values('p', 'g', 'y'); +insert into tags values('y', 'i', 'e'); +insert into tags values('i', 'o', 'o'); +insert into tags values('d', 'o', 'i'); +insert into tags values('o', 'r', 'g'); +insert into tags values('i', 'o', 'l'); +insert into tags values('o', 'l', 'o'); + +create table tv_series ( +sid text, +title text, +release_year text, +num_of_seasons text, +num_of_episodes text, +title_aka text, +budget text +); +insert into tv_series values('i', 'y', 'p', 'o', 'y', 'g', 'd'); +insert into tv_series values('y', 'o', 'o', 'r', 'y', 'd', 's'); +insert into tv_series values('g', 'o', 'p', 'y', 'o', 'o', 'r'); +insert into tv_series values('i', 'g', 'e', 'o', 'o', 'o', 's'); +insert into tv_series values('l', 'i', 'l', 'o', 'g', 'o', 's'); +insert into tv_series values('o', 'o', 'y', 'l', 'l', 'p', 'y'); +insert into tv_series values('r', 'd', 'p', 'y', 'g', 'o', 'i'); +insert into tv_series values('p', 'p', 'd', 'o', 'e', 'd', 'p'); +insert into tv_series values('y', 'g', 'l', 'i', 'r', 'i', 'i'); +insert into tv_series values('p', 'i', 'r', 'i', 'r', 'o', 'o'); +insert into tv_series values('l', 'y', 'y', 'o', 'o', 'r', 'e'); +insert into tv_series values('g', 's', 'y', 'r', 'd', 'y', 'p'); +insert into tv_series values('e', 'i', 's', 'o', 's', 'p', 'p'); +insert into tv_series values('p', 's', 'o', 's', 'i', 'o', 'i'); +create table movie_made_by_producer_written_by_writer ( +mid text, +title text, +release_year text, +title_aka text, +budget text, +id_movie_made_by_producer text, +pid text, +gender_movie_made_by_producer_written_by text, +name_movie_made_by_producer_written_by text, +nationality_movie_made_by_producer_written_by text, +birth_city_movie_made_by_producer_written_by text, +birth_year_movie_made_by_producer_written_by text, +id_written_by text, +wid text, +gender_writer text, +name_writer text, +nationality_writer text, +num_of_episodes text, +birth_city_writer text, +birth_year_writer text); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'p', 'p', 'p', 'g', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'l', 'e', 'o', 'e', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'y', 'i', 'y', 'r', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('d', 'r', 's', 'o', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('d', 'r', 's', 'o', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('d', 'r', 's', 'o', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('d', 'd', 's', 's', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('d', 'd', 's', 's', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('d', 'd', 's', 's', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'p', 'd', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('y', 'r', 'l', 'i', 'e', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('y', 'r', 'l', 'i', 'e', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('y', 'r', 'l', 'i', 'e', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'd', 'd', 'r', 'o', 's', 'r', 'r'); +insert into movie_made_by_producer_written_by_writer values('y', 'r', 'l', 'i', 'e', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'd', 'o', 's', 'i', 'o', 'o', 'o'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'r', 'e', 'e', 'r', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'd', 'r', 'l', 'g', 'e', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'e', 'd', 'y', 'o', 'o', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'l', 'e', 'l', 's', 'd', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'i', 'd', 'p', 'd', 'e', 'o', 'g', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'i', 'e', 'e', 'y', 'g', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'l', 'l', 'o', 'o', 's', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'i', 'p', 'e', 'p', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'o', 'o', 'p', 'y', 'o', 'p', 'y', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'i', 'e', 'e', 'y', 'g', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'l', 'l', 'o', 'o', 's', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'i', 'p', 'e', 'p', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'i', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('g', 'o', 'o', 'd', 'g', 'r', 'o', 'p', 'y', 'o', 'p', 'y', 'r', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('p', 's', 'g', 'e', 'd', 'l', 'd', 'd', 'r', 'l', 'g', 'e', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('p', 's', 'g', 'e', 'd', 'l', 'd', 'e', 'd', 'y', 'o', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('p', 's', 'g', 'e', 'd', 'l', 'd', 'l', 'e', 'l', 's', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('p', 's', 'g', 'e', 'd', 'l', 'd', 'p', 'd', 'e', 'o', 'g', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 's', 'o', 'o', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'd', 'g', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'g', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'g', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'g', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'p', 'd', 'd', 'r', 'o', 's', 'r', 'r'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'p', 'd', 'o', 's', 'i', 'o', 'o', 'o'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'g', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 's', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 's', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 's', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 's', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('e', 'r', 'i', 'l', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 's', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('p', 'e', 'o', 'g', 'i', 'l', 'd', 'd', 'r', 'l', 'g', 'e', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('p', 'e', 'o', 'g', 'i', 'l', 'd', 'e', 'd', 'y', 'o', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('p', 'e', 'o', 'g', 'i', 'l', 'd', 'l', 'e', 'l', 's', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('p', 'e', 'o', 'g', 'i', 'l', 'd', 'p', 'd', 'e', 'o', 'g', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'o', 'y', 'd', 'd', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'd', 'r', 'o', 'i', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('y', 'r', 'i', 'y', 's', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('y', 'r', 'i', 'y', 's', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('y', 'r', 'i', 'y', 's', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'd', 'd', 'r', 'o', 's', 'r', 'r'); +insert into movie_made_by_producer_written_by_writer values('y', 'r', 'i', 'y', 's', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'd', 'o', 's', 'i', 'o', 'o', 'o'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'l', 'p', 'r', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'd', 's', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('d', 'i', 'e', 'd', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('d', 'i', 'e', 'd', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('d', 'i', 'e', 'd', 'y', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'o', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'o', 'i', 'o', 'i', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('y', 'o', 'e', 'g', 'l', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('y', 'o', 'e', 'g', 'l', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('y', 'o', 'e', 'g', 'l', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'd', 'd', 'r', 'o', 's', 'r', 'r'); +insert into movie_made_by_producer_written_by_writer values('y', 'o', 'e', 'g', 'l', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'r', 'd', 'o', 's', 'i', 'o', 'o', 'o'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'd', 'p', 'r', 'p', 'e', 'p', 's', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'e', 'o', 'l', 'd', 'd', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'l', 'y', 'p', 'l', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 'i', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('l', 'i', 'o', 'l', 'o', 'y', 'i', 'o', 's', 'o', 's', 'o', 's', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'd', 'p', 'r', 'p', 'e', 'p', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'i', 'e', 'e', 'y', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'l', 'l', 'o', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'i', 'p', 'e', 'p', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'e', 'o', 'p', 'y', 'o', 'p', 'y', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'd', 'r', 's', 'g', 'g', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'e', 'g', 'd', 'i', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'd', 'o', 'o', 'p', 'o', 'i'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'd', 's', 'l', 'g', 's', 'o', 'o', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'e', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'l', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'e', 'g', 'r', 's', 'y', 'y'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'l', 'd', 'd', 'g', 'd', 'e'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'o', 'r', 'y', 'o', 'p', 'p', 'g', 's'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('o', 'e', 'o', 'i', 'g', 'o', 'g', 'i', 'e', 's', 'o', 's', 'y', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'i', 'e', 'e', 'y', 'g', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'l', 'l', 'o', 'o', 's', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'i', 'p', 'e', 'p', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'y', 'y', 'r', 'r', 's', 'o', 'p', 'y', 'o', 'p', 'y', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'g', 'e', 's', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'i', 'o', 'o', 'y', 'l', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'e', 'r', 'y', 'i', 'i', 'g', 'y', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'i', 'e', 'e', 'y', 'g', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'l', 'l', 'o', 'o', 's', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'i', 'p', 'e', 'p', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'd', 'e', 'd', 'y', 'r', 'l', 'o', 'd'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 'l', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('s', 'p', 'r', 'g', 's', 's', 'o', 'p', 'y', 'o', 'p', 'y', 's', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'g', 'g', 'i', 'e', 's', 'o', 's', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'd', 'r', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'g', 'g', 'i', 'e', 's', 'o', 's', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'e', 'd', 's', 'd', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'd', 'r', 's', 'g', 'g', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'g', 'g', 'i', 'e', 's', 'o', 's', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'l', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'r', 'l', 's', 'p', 'i', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'p', 'e', 'y', 's', 'r', 'p', 'i', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'e', 'e', 'g', 'r', 'g', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'l', 'g', 'o', 'l', 'r', 'l', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'e', 'o', 'o', 'r', 'i', 'i'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'i', 's', 'y', 'o', 'o', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'l', 'e', 'r', 'i', 'o', 'g'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'o', 's', 's', 'e', 'e', 'r'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'o', 'o', 'y', 'y', 'p', 'i', 's', 's'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'g', 'i', 'o', 'y', 'e'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'o', 'l', 'r', 'i', 'e', 'p'); +insert into movie_made_by_producer_written_by_writer values('r', 'o', 'o', 'p', 's', 'r', 'p', 'r', 'p', 'e', 'p', 's', 'r', 'i', 'p', 'o', 'e', 'o', 's', 'i'); +insert into movie_made_by_producer_written_by_writer values('i', 'y', 'd', 'o', 'y', 'd', 'i', 'e', 'o', 'l', 'd', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('i', 'y', 'd', 'o', 'y', 'd', 'i', 'l', 'y', 'p', 'l', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('i', 'y', 'd', 'o', 'y', 'd', 'i', 'o', 's', 'o', 's', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('None', 'None', 'None', 'None', 'None', 'None', 'y', 'o', 'r', 'p', 's', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('None', 'None', 'None', 'None', 'None', 'None', 'l', 'o', 'g', 'e', 'p', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('None', 'None', 'None', 'None', 'None', 'None', 'l', 'i', 's', 'e', 'e', 'r', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('None', 'None', 'None', 'None', 'None', 'None', 's', 'g', 'i', 'p', 'o', 'o', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('None', 'None', 'None', 'None', 'None', 'None', 'y', 'o', 's', 's', 'y', 'r', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('None', 'None', 'None', 'None', 'None', 'None', 'l', 'p', 'i', 'o', 'l', 'i', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('None', 'None', 'None', 'None', 'None', 'None', 'l', 'i', 'o', 's', 'y', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into movie_made_by_producer_written_by_writer values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'y', 'o', 'g', 'o', 'y', 'p', 'o'); + diff --git a/all/databases/imdb_total_1/imdb_total_1.sqlite b/all/databases/imdb_total_1/imdb_total_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..653c06f6763d2a6ca272d6f8b70b45361cc051b1 Binary files /dev/null and b/all/databases/imdb_total_1/imdb_total_1.sqlite differ diff --git a/all/databases/loan_1/loan_1.sql b/all/databases/loan_1/loan_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..120b32f508bb9f606f80ad7b184a03c6365b617d --- /dev/null +++ b/all/databases/loan_1/loan_1.sql @@ -0,0 +1,42 @@ +CREATE TABLE "bank" ( +"branch_id" integer, +"bname" text, +"no_of_customers" integer, +"city" text, +"state" text +); + +INSERT INTO bank VALUES (1, "morningside", 203, "new york city", "new york"); +INSERT INTO bank VALUES (2, "downtown", 123, "salt lake city", "utah"); +INSERT INTO bank VALUES (3, "broadway", 453, "new york city", "new york"); +INSERT INTO bank VALUES (4, "high", 367, "austin", "texas"); + +CREATE TABLE "customer" ( +"cust_id" text, +"cust_name" text, +"acc_type" text, +"acc_bal" integer, +"no_of_loans" integer, +"credit_score" integer, +"branch_id" integer, +"state" text +); + +INSERT INTO customer VALUES ("1", "mary", "saving", 2000, 2, 30, 2, "utah"); +INSERT INTO customer VALUES ("2", "jack", "checking", 1000, 1, 20, 1, "texas"); +INSERT INTO customer VALUES ("3", "owen", "saving", 800000, 0, 210, 3, "new york"); + +CREATE TABLE "loan" ( +"loan_id" text, +"loan_type" text, +"cust_id" text, +"branch_id" text, +"amount" integer +); + +INSERT INTO loan VALUES ("1", "mortgages", "1", "1", 2050); +INSERT INTO loan VALUES ("2", "auto", "1", "2", 3000); +INSERT INTO loan VALUES ("3", "business", "3", "3", 5000); + + +COMMIT; diff --git a/all/databases/loan_1/loan_1.sqlite b/all/databases/loan_1/loan_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..6b6557a99fd5d726451d344be52b4464fb21cb3d Binary files /dev/null and b/all/databases/loan_1/loan_1.sqlite differ diff --git a/all/databases/local_govt_and_lot/local_govt_and_lot.sql b/all/databases/local_govt_and_lot/local_govt_and_lot.sql new file mode 100644 index 0000000000000000000000000000000000000000..6eb4bc35df678e110ef9cb195b5682a60e9e76e7 --- /dev/null +++ b/all/databases/local_govt_and_lot/local_govt_and_lot.sql @@ -0,0 +1,242 @@ +CREATE TABLE "customers" ( +"customer_id" integer, +"customer_details" text +); + +INSERT INTO customers VALUES (4, "mr. raul prosacco"); +INSERT INTO customers VALUES (5, "esteban senger"); +INSERT INTO customers VALUES (16, "tyrique durgan ii"); +INSERT INTO customers VALUES (17, "malcolm farrell"); +INSERT INTO customers VALUES (19, "sabryna moore phd"); +INSERT INTO customers VALUES (21, "dr. haylie hilll iii"); +INSERT INTO customers VALUES (31, "monty sauer iii"); +INSERT INTO customers VALUES (41, "jayme marquardt"); +INSERT INTO customers VALUES (63, "vincenza price"); +INSERT INTO customers VALUES (69, "elva boehm"); +INSERT INTO customers VALUES (76, "kyleigh schuster"); +INSERT INTO customers VALUES (79, "oma smith"); +INSERT INTO customers VALUES (82, "bridgette nitzsche phd"); +INSERT INTO customers VALUES (87, "jeff mccullough md"); +INSERT INTO customers VALUES (91, "mackenzie hettinger v"); + +CREATE TABLE "properties" ( +"property_id" integer, +"property_type_code" text, +"property_address" text, +"other_details" text +); + +INSERT INTO properties VALUES (24, "apartment", "85456 annie lodge suite 449", "usa"); +INSERT INTO properties VALUES (107, "house", "2580 yundt plains", "usa"); +INSERT INTO properties VALUES (108, "house", "5983 fleta throughway", "usa"); +INSERT INTO properties VALUES (120, "apartment", "322 johnston parkway suite 422", "usa"); +INSERT INTO properties VALUES (373, "apartment", "5384 sipes land apt. 344", "usa"); +INSERT INTO properties VALUES (445, "flat", "04164 raul stream", "usa"); +INSERT INTO properties VALUES (586, "apartment", "54591 bernard ridges suite 864", "usa"); +INSERT INTO properties VALUES (605, "house", "7713 bode burgs apt. 113", "usa"); +INSERT INTO properties VALUES (629, "house", "830 jayne points suite 290", "usa"); +INSERT INTO properties VALUES (669, "house", "824 kiehn vista", "usa"); +INSERT INTO properties VALUES (748, "apartment", "3927 spinka loaf suite 347", "usa"); +INSERT INTO properties VALUES (791, "house", "72659 frank locks", "usa"); +INSERT INTO properties VALUES (849, "house", "76714 verla radial apt. 306", "usa"); +INSERT INTO properties VALUES (879, "flat", "129 chasity brook", "usa"); +INSERT INTO properties VALUES (954, "flat", "91002 melvina haven", "usa"); + +CREATE TABLE "residents" ( +"resident_id" integer, +"property_id" integer, +"date_moved_in" text, +"date_moved_out" text, +"other_details" text +); + +INSERT INTO residents VALUES (6, 954, "2017-06-17 15:43:33", "2017-12-18 03:46:04", "anderson batz"); +INSERT INTO residents VALUES (10, 605, "2015-03-27 12:00:00", "2018-03-17 07:48:09", "miss naomie osinski"); +INSERT INTO residents VALUES (23, 879, "2015-03-27 12:00:00", "2017-11-14 06:28:48", "jess wyman"); +INSERT INTO residents VALUES (28, 629, "2015-03-27 12:00:00", "2017-10-05 02:47:31", "miss alanis lockman"); +INSERT INTO residents VALUES (37, 669, "2015-03-27 12:00:00", "2018-01-30 10:20:59", "prof. arvel kozey"); +INSERT INTO residents VALUES (38, 748, "2015-03-27 12:00:00", "2017-12-30 23:55:10", "chaim swaniawski"); +INSERT INTO residents VALUES (43, 108, "2015-03-27 12:00:00", "2018-02-22 06:24:15", "elroy schuster"); +INSERT INTO residents VALUES (45, 954, "2015-03-27 12:00:00", "2017-10-14 10:23:42", "prof. nasir hoppe"); +INSERT INTO residents VALUES (47, 669, "2015-03-27 12:00:00", "2017-10-10 02:25:53", "tiffany jaskolski"); +INSERT INTO residents VALUES (58, 107, "2015-03-27 12:00:00", "2017-11-29 21:24:08", "tomasa hoeger"); +INSERT INTO residents VALUES (67, 120, "2016-09-27 12:00:00", "2017-10-23 16:40:19", "terrill bernhard"); +INSERT INTO residents VALUES (83, 445, "2016-09-27 12:00:00", "2018-01-19 01:35:51", "loy walter"); +INSERT INTO residents VALUES (87, 748, "2016-09-27 12:00:00", "2018-01-28 13:19:54", "mrs. raphaelle fisher"); +INSERT INTO residents VALUES (88, 107, "2016-09-27 12:00:00", "2018-02-03 11:30:20", "jacques glover ii"); +INSERT INTO residents VALUES (90, 373, "2016-09-27 12:00:00", "2017-11-19 03:11:44", "cassie johnson"); + +CREATE TABLE "organizations" ( +"organization_id" integer, +"parent_organization_id" integer, +"organization_details" text +); + +INSERT INTO organizations VALUES (7, 7, "reinger hudson and nolan group"); +INSERT INTO organizations VALUES (8, 7, "denesik and sons party"); +INSERT INTO organizations VALUES (10, 8, "robel-schulist group"); + +CREATE TABLE "services" ( +"service_id" integer, +"organization_id" integer, +"service_type_code" text, +"service_details" text +); + +INSERT INTO services VALUES (10, 10, "cleanning", "satisfied"); +INSERT INTO services VALUES (11, 7, "check", "satisfied"); +INSERT INTO services VALUES (13, 8, "moving out", "satisfied"); +INSERT INTO services VALUES (22, 10, "pay bills", "satisfied"); +INSERT INTO services VALUES (29, 8, "moving out", "satisfied"); +INSERT INTO services VALUES (31, 7, "pay bills", "satisfied"); +INSERT INTO services VALUES (36, 8, "check", "satisfied"); +INSERT INTO services VALUES (41, 10, "check", "satisfied"); +INSERT INTO services VALUES (47, 8, "pay bills", "unsatisfied"); +INSERT INTO services VALUES (49, 8, "moving out", "satisfied"); +INSERT INTO services VALUES (52, 8, "pay bills", "unsatisfied"); +INSERT INTO services VALUES (65, 8, "cleanning", "unsatisfied"); +INSERT INTO services VALUES (66, 8, "pay bills", "unsatisfied"); +INSERT INTO services VALUES (77, 7, "pay bills", "unsatisfied"); +INSERT INTO services VALUES (87, 8, "pay bills", "unsatisfied"); + +CREATE TABLE "residents_services" ( +"resident_id" integer, +"service_id" integer, +"date_moved_in" text, +"property_id" integer, +"date_requested" text, +"date_provided" text, +"other_details" text +); + +INSERT INTO residents_services VALUES (6, 49, "2017-06-17 15:43:33", 954, "2016-07-25 01:32:23", "2018-02-26 00:27:11", "satisfied"); +INSERT INTO residents_services VALUES (23, 41, "2015-03-27 12:00:00", 879, "2016-10-10 21:42:21", "2017-08-21 06:23:06", "unsatisfied"); +INSERT INTO residents_services VALUES (28, 11, "2015-03-27 12:00:00", 629, "2017-07-14 19:03:47", "2017-08-28 03:43:56", "unsatisfied"); +INSERT INTO residents_services VALUES (43, 10, "2015-03-27 12:00:00", 108, "2016-09-20 22:50:26", "2017-10-17 03:30:08", "unsatisfied"); +INSERT INTO residents_services VALUES (45, 49, "2015-03-27 12:00:00", 954, "2017-06-14 14:04:50", "2017-08-14 08:06:43", "unsatisfied"); +INSERT INTO residents_services VALUES (47, 65, "2015-03-27 12:00:00", 669, "2016-12-16 06:08:10", "2018-01-30 09:58:57", "unsatisfied"); +INSERT INTO residents_services VALUES (67, 87, "2016-09-27 12:00:00", 120, "2016-04-27 14:51:07", "2017-11-13 10:28:34", "unsatisfied"); +INSERT INTO residents_services VALUES (83, 65, "2016-09-27 12:00:00", 445, "2016-11-27 15:37:02", "2017-09-10 00:48:58", "unsatisfied"); +INSERT INTO residents_services VALUES (87, 29, "2016-09-27 12:00:00", 748, "2016-10-13 04:15:54", "2017-10-29 13:12:29", "unsatisfied"); +INSERT INTO residents_services VALUES (88, 11, "2016-09-27 12:00:00", 373, "2016-04-13 05:09:24", "2017-10-28 12:36:43", "unsatisfied"); +INSERT INTO residents_services VALUES (90, 36, "2016-09-27 12:00:00", 107, "2016-06-18 20:09:24", "2017-08-08 11:24:50", "unsatisfied"); + +CREATE TABLE "things" ( +"thing_id" integer, +"organization_id" integer, +"type_of_thing_code" text, +"service_type_code" text, +"service_details" text +); + +INSERT INTO things VALUES (1, 8, "electronics", "check", "unsatisfied"); +INSERT INTO things VALUES (2, 8, "electronics", "cleanning", "satisfied"); +INSERT INTO things VALUES (10, 8, "commen", "check", "satisfied"); +INSERT INTO things VALUES (14, 10, "furniture", "cleanning", "satisfied"); +INSERT INTO things VALUES (26, 8, "electronics", "cleanning", "unsatisfied"); +INSERT INTO things VALUES (35, 7, "electronics", "cleanning", "satisfied"); +INSERT INTO things VALUES (45, 8, "commen", "check", "satisfied"); +INSERT INTO things VALUES (46, 8, "commen", "check", "satisfied"); +INSERT INTO things VALUES (47, 10, "commen", "cleanning", "satisfied"); +INSERT INTO things VALUES (58, 8, "electronics", "check", "satisfied"); +INSERT INTO things VALUES (68, 10, "commen", "cleanning", "unsatisfied"); +INSERT INTO things VALUES (80, 8, "furniture", "check", "unsatisfied"); +INSERT INTO things VALUES (84, 8, "commen", "check", "unsatisfied"); +INSERT INTO things VALUES (85, 8, "commen", "cleanning", "unsatisfied"); +INSERT INTO things VALUES (92, 7, "commen", "check", "unsatisfied"); + +CREATE TABLE "customer_events" ( +"customer_event_id" integer, +"customer_id" integer, +"date_moved_in" text, +"property_id" integer, +"resident_id" integer, +"thing_id" integer +); + +INSERT INTO customer_events VALUES (70, 19, "2015-03-27 12:00:00", 605, 10, 1); +INSERT INTO customer_events VALUES (160, 5, "2015-03-27 12:00:00", 879, 23, 80); +INSERT INTO customer_events VALUES (166, 16, "2015-03-27 12:00:00", 629, 28, 14); +INSERT INTO customer_events VALUES (216, 79, "2015-03-27 12:00:00", 669, 37, 46); +INSERT INTO customer_events VALUES (226, 19, "2015-03-27 12:00:00", 748, 38, 80); +INSERT INTO customer_events VALUES (256, 79, "2015-03-27 12:00:00", 108, 43, 2); +INSERT INTO customer_events VALUES (428, 63, "2015-03-27 12:00:00", 954, 45, 68); +INSERT INTO customer_events VALUES (530, 4, "2015-03-27 12:00:00", 669, 47, 10); +INSERT INTO customer_events VALUES (559, 19, "2015-03-27 12:00:00", 107, 58, 1); +INSERT INTO customer_events VALUES (591, 91, "2016-09-27 12:00:00", 120, 67, 10); +INSERT INTO customer_events VALUES (606, 31, "2016-09-27 12:00:00", 445, 83, 85); +INSERT INTO customer_events VALUES (627, 91, "2016-09-27 12:00:00", 748, 87, 92); +INSERT INTO customer_events VALUES (817, 19, "2016-09-27 12:00:00", 107, 88, 10); + +CREATE TABLE "customer_event_notes" ( +"customer_event_note_id" integer, +"customer_event_id" integer, +"service_type_code" text, +"resident_id" integer, +"property_id" integer, +"date_moved_in" text +); + +INSERT INTO customer_event_notes VALUES (18, 70, "cleanning", 58, 107, "2016-08-04 01:06:05"); +INSERT INTO customer_event_notes VALUES (21, 428, "check", 87, 445, "2016-12-11 01:05:14"); +INSERT INTO customer_event_notes VALUES (32, 70, "check", 37, 669, "2016-07-10 04:09:56"); +INSERT INTO customer_event_notes VALUES (46, 627, "cleanning", 87, 373, "2016-05-24 02:56:54"); +INSERT INTO customer_event_notes VALUES (49, 559, "check", 45, 849, "2016-08-08 07:58:26"); +INSERT INTO customer_event_notes VALUES (50, 606, "check", 45, 849, "2017-04-25 09:08:14"); +INSERT INTO customer_event_notes VALUES (55, 817, "cleanning", 43, 120, "2017-06-26 13:24:36"); +INSERT INTO customer_event_notes VALUES (56, 216, "check", 88, 748, "2016-11-04 12:46:21"); +INSERT INTO customer_event_notes VALUES (59, 591, "cleanning", 28, 605, "2016-05-14 15:58:33"); +INSERT INTO customer_event_notes VALUES (65, 591, "cleanning", 28, 879, "2017-04-12 19:47:08"); +INSERT INTO customer_event_notes VALUES (75, 70, "check", 43, 120, "2016-10-28 01:43:42"); +INSERT INTO customer_event_notes VALUES (88, 606, "cleanning", 67, 791, "2016-11-23 05:53:40"); +INSERT INTO customer_event_notes VALUES (91, 817, "cleanning", 43, 120, "2017-04-28 10:17:13"); + +CREATE TABLE "timed_status_of_things" ( +"thing_id" integer, +"date_and_date" text, +"status_of_thing_code" text +); + +INSERT INTO timed_status_of_things VALUES (2, "2016-05-27 23:33:34", "open"); +INSERT INTO timed_status_of_things VALUES (2, "2016-07-17 08:35:27", "close"); +INSERT INTO timed_status_of_things VALUES (2, "2017-06-19 02:59:21", "in progress"); +INSERT INTO timed_status_of_things VALUES (10, "2016-09-06 16:31:13", "close"); +INSERT INTO timed_status_of_things VALUES (10, "2016-11-14 17:30:51", "open"); +INSERT INTO timed_status_of_things VALUES (14, "2017-07-03 02:22:12", "in progress"); +INSERT INTO timed_status_of_things VALUES (26, "2016-04-10 06:32:15", "close"); +INSERT INTO timed_status_of_things VALUES (26, "2017-08-05 02:10:02", "in progress"); +INSERT INTO timed_status_of_things VALUES (26, "2018-02-04 02:44:39", "close"); +INSERT INTO timed_status_of_things VALUES (35, "2017-11-27 06:32:46", "in progress"); +INSERT INTO timed_status_of_things VALUES (47, "2016-04-02 00:57:17", "in progress"); +INSERT INTO timed_status_of_things VALUES (47, "2016-12-02 11:08:16", "close"); +INSERT INTO timed_status_of_things VALUES (58, "2017-05-31 00:52:33", "in progress"); +INSERT INTO timed_status_of_things VALUES (80, "2016-10-08 08:02:57", "open"); +INSERT INTO timed_status_of_things VALUES (84, "2017-12-28 16:05:08", "open"); +INSERT INTO timed_status_of_things VALUES (85, "2017-03-24 12:12:46", "close"); +INSERT INTO timed_status_of_things VALUES (92, "2016-11-24 12:44:00", "in progress"); +INSERT INTO timed_status_of_things VALUES (92, "2017-09-27 01:35:51", "close"); + +CREATE TABLE "timed_locations_of_things" ( +"thing_id" integer, +"date_and_time" text, +"location_code" text +); + +INSERT INTO timed_locations_of_things VALUES (2, "2016-10-12 12:03:07", "064 charles mou"); +INSERT INTO timed_locations_of_things VALUES (10, "2016-12-29 00:39:19", "288 lang ferry"); +INSERT INTO timed_locations_of_things VALUES (10, "2017-10-21 04:21:54", "854 keeling sho"); +INSERT INTO timed_locations_of_things VALUES (14, "2017-03-19 19:28:13", "1316 morgan spr"); +INSERT INTO timed_locations_of_things VALUES (26, "2016-04-26 16:34:09", "192 kub rapids"); +INSERT INTO timed_locations_of_things VALUES (45, "2017-04-19 16:41:03", "4667 kellen fie"); +INSERT INTO timed_locations_of_things VALUES (45, "2017-04-22 00:37:48", "1313 sawayn riv"); +INSERT INTO timed_locations_of_things VALUES (58, "2016-08-04 00:25:55", "94425 nellie kn"); +INSERT INTO timed_locations_of_things VALUES (68, "2017-03-06 01:56:27", "4223 rae fork s"); +INSERT INTO timed_locations_of_things VALUES (68, "2017-08-31 13:54:13", "9628 bins islan"); +INSERT INTO timed_locations_of_things VALUES (85, "2016-11-07 09:43:05", "2677 runolfsson"); +INSERT INTO timed_locations_of_things VALUES (85, "2017-01-02 23:26:47", "26281 holden pa"); +INSERT INTO timed_locations_of_things VALUES (85, "2017-11-26 00:13:44", "1537 schmeler g"); +INSERT INTO timed_locations_of_things VALUES (92, "2017-03-19 13:57:49", "113 geo glens a"); +INSERT INTO timed_locations_of_things VALUES (92, "2017-10-21 21:35:37", "9569 tanner inl"); + + +COMMIT; diff --git a/all/databases/local_govt_and_lot/local_govt_and_lot.sqlite b/all/databases/local_govt_and_lot/local_govt_and_lot.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..7c1c5a9f0949f868bad4e05111e45878518aab3d Binary files /dev/null and b/all/databases/local_govt_and_lot/local_govt_and_lot.sqlite differ diff --git a/all/databases/local_govt_in_alabama_minus_1_0/local_govt_in_alabama_minus_1_0.sql b/all/databases/local_govt_in_alabama_minus_1_0/local_govt_in_alabama_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..e5a282a9c239615ed80991b2851760e3582e6a1d --- /dev/null +++ b/all/databases/local_govt_in_alabama_minus_1_0/local_govt_in_alabama_minus_1_0.sql @@ -0,0 +1,58 @@ +create table services ( +service_id integer, +service_type_code text +); +insert into services values(2, 'marriage'); +insert into services values(5, 'death proof'); +insert into services values(6, 'birth proof'); +insert into services values(8, 'property change'); + +create table events ( +event_id integer, +service_id integer, +event_details text +); +insert into events values(3, 5, 'success'); +insert into events values(8, 8, 'success'); +insert into events values(13, 8, 'fail'); +insert into events values(16, 2, 'fail'); +insert into events values(17, 5, 'fail'); +insert into events values(38, 6, 'fail'); +insert into events values(40, 6, 'fail'); +insert into events values(43, 8, 'fail'); +insert into events values(48, 8, 'fail'); +insert into events values(57, 5, 'success'); +insert into events values(60, 2, 'fail'); +insert into events values(74, 2, 'success'); +insert into events values(80, 5, 'success'); +insert into events values(95, 2, 'fail'); +insert into events values(96, 2, 'success'); +create table participants_participants_in_events ( +participant_id integer, +participant_type_code text, +participant_details text, +event_id integer); +insert into participants_participants_in_events values(9, 'organizer', 'karlee batz', 'None'); +insert into participants_participants_in_events values(26, 'organizer', 'vilma schinner', 3); +insert into participants_participants_in_events values(26, 'organizer', 'vilma schinner', 60); +insert into participants_participants_in_events values(28, 'organizer', 'lupe deckow', 'None'); +insert into participants_participants_in_events values(36, 'organizer', 'kenyatta kuhn', 80); +insert into participants_participants_in_events values(37, 'participant', 'miss kaci lebsack', 17); +insert into participants_participants_in_events values(37, 'participant', 'miss kaci lebsack', 40); +insert into participants_participants_in_events values(38, 'organizer', 'macy mayer dds', 'None'); +insert into participants_participants_in_events values(60, 'participant', 'dewitt walter', 16); +insert into participants_participants_in_events values(63, 'participant', 'prof. michelle maggio jr.', 95); +insert into participants_participants_in_events values(64, 'participant', 'dr. jaydon renner', 13); +insert into participants_participants_in_events values(66, 'participant', 'justyn lebsack', 3); +insert into participants_participants_in_events values(66, 'participant', 'justyn lebsack', 17); +insert into participants_participants_in_events values(66, 'participant', 'justyn lebsack', 38); +insert into participants_participants_in_events values(66, 'participant', 'justyn lebsack', 80); +insert into participants_participants_in_events values(75, 'participant', 'berniece weimann', 'None'); +insert into participants_participants_in_events values(86, 'organizer', 'neil blick', 8); +insert into participants_participants_in_events values(86, 'organizer', 'neil blick', 40); +insert into participants_participants_in_events values(90, 'participant', 'dedrick ebert', 13); +insert into participants_participants_in_events values(90, 'participant', 'dedrick ebert', 57); +insert into participants_participants_in_events values(90, 'participant', 'dedrick ebert', 96); +insert into participants_participants_in_events values(96, 'organizer', 'miss joyce cremin', 80); +insert into participants_participants_in_events values(98, 'participant', 'dr. kris deckow', 'None'); + diff --git a/all/databases/local_govt_in_alabama_minus_1_0/local_govt_in_alabama_minus_1_0.sqlite b/all/databases/local_govt_in_alabama_minus_1_0/local_govt_in_alabama_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..b717615fb39e2fac46c5c8f21a9a1d0864d1df86 Binary files /dev/null and b/all/databases/local_govt_in_alabama_minus_1_0/local_govt_in_alabama_minus_1_0.sqlite differ diff --git a/all/databases/manufactory_1/manufactory_1.sql b/all/databases/manufactory_1/manufactory_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..505e81417db133ed8965967f59ea4a8fa134810a --- /dev/null +++ b/all/databases/manufactory_1/manufactory_1.sql @@ -0,0 +1,36 @@ +CREATE TABLE "manufacturers" ( +"code" integer, +"name" text, +"headquarter" text, +"founder" text, +"revenue" real +); + +INSERT INTO manufacturers VALUES (1, "sony", "tokyo", "andy", 120.0); +INSERT INTO manufacturers VALUES (2, "creative labs", "austin", "owen", 100.0); +INSERT INTO manufacturers VALUES (3, "hewlett-packard", "los angeles", "james", 50.0); +INSERT INTO manufacturers VALUES (4, "iomega", "beijing", "mary", 200.0); +INSERT INTO manufacturers VALUES (5, "fujitsu", "taiwan", "john", 130.0); +INSERT INTO manufacturers VALUES (6, "winchester", "paris", "robert", 30.0); + +CREATE TABLE "products" ( +"code" integer, +"name" text, +"price" integer, +"manufacturer" integer +); + +INSERT INTO products VALUES (1, "hard drive", 240, 5); +INSERT INTO products VALUES (2, "memory", 120, 6); +INSERT INTO products VALUES (3, "zip drive", 150, 4); +INSERT INTO products VALUES (4, "floppy disk", 5, 6); +INSERT INTO products VALUES (5, "monitor", 240, 1); +INSERT INTO products VALUES (6, "dvd drive", 180, 2); +INSERT INTO products VALUES (7, "cd drive", 90, 2); +INSERT INTO products VALUES (8, "printer", 270, 3); +INSERT INTO products VALUES (9, "toner cartridge", 66, 3); +INSERT INTO products VALUES (10, "dvd burner", 180, 2); +INSERT INTO products VALUES (11, "dvd drive", 150, 3); + + +COMMIT; diff --git a/all/databases/manufactory_1/manufactory_1.sqlite b/all/databases/manufactory_1/manufactory_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..c95c11138426608db77b703be10e96ff4558530c Binary files /dev/null and b/all/databases/manufactory_1/manufactory_1.sqlite differ diff --git a/all/databases/manufacturer/manufacturer.sql b/all/databases/manufacturer/manufacturer.sql new file mode 100644 index 0000000000000000000000000000000000000000..886ec51c0c7ee132f36d37b752da1ec2e7129350 --- /dev/null +++ b/all/databases/manufacturer/manufacturer.sql @@ -0,0 +1,45 @@ +CREATE TABLE "manufacturer" ( +"manufacturer_id" integer, +"open_year" real, +"name" text, +"num_of_factories" integer, +"num_of_shops" integer +); + +INSERT INTO manufacturer VALUES (1, 1980.0, "chevrolet house", 36, 8); +INSERT INTO manufacturer VALUES (2, 1990.0, "ikea", 21, 19); +INSERT INTO manufacturer VALUES (3, 1991.0, "ford make", 12, 2); +INSERT INTO manufacturer VALUES (4, 1992.0, "jiaju", 1, 35); +INSERT INTO manufacturer VALUES (5, 2000.0, "chevrolet", 38, 24); +INSERT INTO manufacturer VALUES (6, 2001.0, "dodge", 3, 7); +INSERT INTO manufacturer VALUES (7, 2008.0, "tomorrow", 12, 4); + +CREATE TABLE "furniture" ( +"furniture_id" integer, +"name" text, +"num_of_component" integer, +"market_rate" real +); + +INSERT INTO furniture VALUES (1, "billiard table", 14, 52.5); +INSERT INTO furniture VALUES (2, "chabudai", 4, 40.0); +INSERT INTO furniture VALUES (3, "bookcase", 6, 1.0); +INSERT INTO furniture VALUES (4, "hatstand", 5, 0.5); +INSERT INTO furniture VALUES (5, "bench", 5, 3.5); +INSERT INTO furniture VALUES (6, "four-poster bed", 3, 2.0); +INSERT INTO furniture VALUES (7, "dining set", 12, 0.5); + +CREATE TABLE "furniture_manufacte" ( +"manufacturer_id" integer, +"furniture_id" integer, +"price_in_dollar" real +); + +INSERT INTO furniture_manufacte VALUES (1, 3, 239.0); +INSERT INTO furniture_manufacte VALUES (4, 2, 450.0); +INSERT INTO furniture_manufacte VALUES (5, 1, 2124.0); +INSERT INTO furniture_manufacte VALUES (7, 4, 443.0); +INSERT INTO furniture_manufacte VALUES (7, 7, 1234.0); + + +COMMIT; diff --git a/all/databases/manufacturer/manufacturer.sqlite b/all/databases/manufacturer/manufacturer.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..3fc312ce77408db667f453388208b79834ff2346 Binary files /dev/null and b/all/databases/manufacturer/manufacturer.sqlite differ diff --git a/all/databases/match_season/match_season.sql b/all/databases/match_season/match_season.sql new file mode 100644 index 0000000000000000000000000000000000000000..a49c1bbf53ec55c6297bb9986d61bc9502763247 --- /dev/null +++ b/all/databases/match_season/match_season.sql @@ -0,0 +1,81 @@ +CREATE TABLE "country" ( +"country_id" integer, +"country_name" text, +"capital" text, +"official_native_language" text +); + +INSERT INTO country VALUES (1, "indonesia", "jakarta", "bahasa indonesia"); +INSERT INTO country VALUES (2, "iran", "tehran", "persian arabic script"); +INSERT INTO country VALUES (3, "iraq", "baghdad", "arabic arabic script kurdish"); +INSERT INTO country VALUES (4, "ireland", "dublin", "irish english"); +INSERT INTO country VALUES (5, "isle of man", "douglas", "english manx"); +INSERT INTO country VALUES (6, "united states", "washington", "english"); + +CREATE TABLE "team" ( +"team_id" integer, +"name" text +); + +INSERT INTO team VALUES (1, "columbus crew"); +INSERT INTO team VALUES (2, "evalyn feil"); +INSERT INTO team VALUES (3, "anais vonrueden"); +INSERT INTO team VALUES (4, "miami fusion"); +INSERT INTO team VALUES (5, "enrique osinski"); +INSERT INTO team VALUES (6, "brown erdman"); +INSERT INTO team VALUES (7, "los angeles galaxy"); +INSERT INTO team VALUES (8, "berneice hand"); +INSERT INTO team VALUES (9, "ryley goldner"); +INSERT INTO team VALUES (10, "d.c. united"); + +CREATE TABLE "match_season" ( +"season" real, +"player" text, +"position" text, +"country" integer, +"team" integer, +"draft_pick_number" integer, +"draft_class" text, +"college" text +); + +INSERT INTO match_season VALUES (1996.0, "steve ralston category:articles with hcards", "midfielder", 6, 1, 18, "1996 mls college draft", "florida international"); +INSERT INTO match_season VALUES (1997.0, "mike duhaney category:articles with hcards", "defender", 6, 2, 87, "1996 mls inaugural player draft", "unlv"); +INSERT INTO match_season VALUES (1998.0, "ben olsen category:articles with hcards", "midfielder", 4, 3, 2, "project-40", "virginia"); +INSERT INTO match_season VALUES (1999.0, "jay heaps category:articles with hcards", "defender", 5, 4, 5, "1999 mls college draft", "duke"); +INSERT INTO match_season VALUES (2000.0, "carlos bocanegra category:articles with hcards", "defender", 5, 5, 4, "2000 mls superdraft", "ucla"); +INSERT INTO match_season VALUES (2001.0, "rodrigo faria category:articles with hcards", "forward", 4, 5, 13, "2001 mls superdraft", "concordia college"); +INSERT INTO match_season VALUES (2002.0, "kyle martino category:articles with hcards", "midfielder", 6, 3, 8, "2002 mls superdraft", "virginia"); +INSERT INTO match_season VALUES (2003.0, "damani ralph category:articles with hcards", "forward", 1, 2, 18, "2003 mls superdraft", "connecticut"); +INSERT INTO match_season VALUES (2004.0, "clint dempsey category:articles with hcards", "midfielder", 6, 3, 8, "2004 mls superdraft", "furman"); +INSERT INTO match_season VALUES (2005.0, "michael parkhurst category:articles with hcards", "defender", 6, 4, 9, "2005 mls superdraft", "wake forest"); +INSERT INTO match_season VALUES (2006.0, "jonathan bornstein category:articles with hcards", "defender", 6, 10, 37, "2006 mls superdraft", "ucla"); +INSERT INTO match_season VALUES (2007.0, "maurice edu category:articles with hcards", "midfielder", 4, 9, 1, "2007 mls superdraft", "maryland"); +INSERT INTO match_season VALUES (2008.0, "sean franklin category:articles with hcards", "defender", 6, 5, 4, "2008 mls superdraft", "cal state northridge"); +INSERT INTO match_season VALUES (2009.0, "omar gonzalez category:articles with hcards", "defender", 6, 5, 3, "2009 mls superdraft", "maryland"); +INSERT INTO match_season VALUES (2010.0, "andy najar category:articles with hcards", "midfielder", 4, 5, 6, "d.c. united academy", "none"); +INSERT INTO match_season VALUES (2011.0, "c. j. sapong category:articles with hcards", "forward", 6, 3, 10, "2011 mls superdraft", "james madison"); + +CREATE TABLE "player" ( +"player_id" integer, +"player" text, +"years_played" text, +"total_wl" text, +"singles_wl" text, +"doubles_wl" text, +"team" integer +); + +INSERT INTO player VALUES (1, "cho soong-jae 630", "1 2011", "2–0", "1–0", "1–0", 1); +INSERT INTO player VALUES (2, "chung hong 717", "1 2011", "0–0", "0–0", "0–0", 1); +INSERT INTO player VALUES (3, "im kyu-tae 492", "8 2003–2005 2007–2011", "6–9", "5–7", "1–2", 1); +INSERT INTO player VALUES (4, "jeong suk-young 793", "2 2010–2011", "1–2", "1–2", "0–0", 1); +INSERT INTO player VALUES (5, "kim hyun-joon 908", "2 2010–2011", "3–4", "2–1", "1–3", 2); +INSERT INTO player VALUES (6, "kim young-jun 474", "4 2003–2004 2010–2011", "6–4", "6–3", "0–1", 4); +INSERT INTO player VALUES (7, "lim yong-kyu 288", "3 2009–2011", "7–6", "5–6", "2–0", 6); +INSERT INTO player VALUES (8, "seol jae-min none", "2 2010-2011", "2–2", "0–0", "2–2", 1); +INSERT INTO player VALUES (9, "an jae-sung", "3 2005 2007–2008", "4–3", "3–2", "1–1", 1); +INSERT INTO player VALUES (10, "bae nam-ju", "2 1988 1990", "1–3", "0–2", "1–1", 8); + + +COMMIT; diff --git a/all/databases/match_season/match_season.sqlite b/all/databases/match_season/match_season.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..87918e00a5e6ca462f2e067cfd55341543d2766e Binary files /dev/null and b/all/databases/match_season/match_season.sqlite differ diff --git a/all/databases/museum_visit/museum_visit.sql b/all/databases/museum_visit/museum_visit.sql new file mode 100644 index 0000000000000000000000000000000000000000..1432b2892fc8ebda0bd06f3c6c88cdfbdbcb1434 --- /dev/null +++ b/all/databases/museum_visit/museum_visit.sql @@ -0,0 +1,46 @@ +CREATE TABLE "museum" ( +"museum_id" integer, +"name" text, +"num_of_staff" integer, +"open_year" text +); + +INSERT INTO museum VALUES (1, "plaza museum", 62, "2000"); +INSERT INTO museum VALUES (2, "capital plaza museum", 25, "2012"); +INSERT INTO museum VALUES (3, "jefferson development museum", 18, "2010"); +INSERT INTO museum VALUES (4, "willow grande museum", 17, "2011"); +INSERT INTO museum VALUES (5, "riverpark museum", 16, "2008"); +INSERT INTO museum VALUES (6, "place tower museum", 16, "2008"); +INSERT INTO museum VALUES (7, "central city district residential museum", 15, "2010"); +INSERT INTO museum VALUES (8, "zirmed gateway museum", 12, "2009"); + +CREATE TABLE "visitor" ( +"id" integer, +"name" text, +"level_of_membership" integer, +"age" integer +); + +INSERT INTO visitor VALUES (1, "gonzalo higuaín", 8, 35); +INSERT INTO visitor VALUES (2, "guti midfielder", 5, 28); +INSERT INTO visitor VALUES (3, "arjen robben", 1, 27); +INSERT INTO visitor VALUES (4, "raúl brown", 2, 56); +INSERT INTO visitor VALUES (5, "fernando gago", 6, 36); +INSERT INTO visitor VALUES (6, "rafael van der vaart", 1, 25); + +CREATE TABLE "visit" ( +"museum_id" integer, +"visitor_id" text, +"num_of_ticket" integer, +"total_spent" real +); + +INSERT INTO visit VALUES (1, "5", 20, 320.14); +INSERT INTO visit VALUES (2, "3", 4, 89.98); +INSERT INTO visit VALUES (2, "5", 10, 320.44); +INSERT INTO visit VALUES (4, "3", 24, 209.98); +INSERT INTO visit VALUES (4, "6", 3, 20.44); +INSERT INTO visit VALUES (8, "6", 2, 19.98); + + +COMMIT; diff --git a/all/databases/museum_visit/museum_visit.sqlite b/all/databases/museum_visit/museum_visit.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..a5dc35083d5f80009bdcd04b74ca675896721dca Binary files /dev/null and b/all/databases/museum_visit/museum_visit.sqlite differ diff --git a/all/databases/museum_visit_minus_1_0/museum_visit_minus_1_0.sql b/all/databases/museum_visit_minus_1_0/museum_visit_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..db78da31dcdb88f3bd6e1abfe564cfae6d467870 --- /dev/null +++ b/all/databases/museum_visit_minus_1_0/museum_visit_minus_1_0.sql @@ -0,0 +1,32 @@ +create table museum ( +museum_id integer, +name text, +num_of_staff integer, +open_year text +); +insert into museum values(1, 'plaza museum', 62, 2000); +insert into museum values(2, 'capital plaza museum', 25, 2012); +insert into museum values(3, 'jefferson development museum', 18, 2010); +insert into museum values(4, 'willow grande museum', 17, 2011); +insert into museum values(5, 'riverpark museum', 16, 2008); +insert into museum values(6, 'place tower museum', 16, 2008); +insert into museum values(7, 'central city district residential museum', 15, 2010); +insert into museum values(8, 'zirmed gateway museum', 12, 2009); +create table visitor_visit ( +id integer, +name text, +level_of_membership integer, +age integer, +museum_id integer, +num_of_ticket integer, +total_spent real); +insert into visitor_visit values(1, 'gonzalo higuaín', 8, 35, 'None', 'None', 'None'); +insert into visitor_visit values(2, 'guti midfielder', 5, 28, 'None', 'None', 'None'); +insert into visitor_visit values(3, 'arjen robben', 1, 27, 2, 4, 89.98); +insert into visitor_visit values(3, 'arjen robben', 1, 27, 4, 24, 209.98); +insert into visitor_visit values(4, 'raúl brown', 2, 56, 'None', 'None', 'None'); +insert into visitor_visit values(5, 'fernando gago', 6, 36, 1, 20, 320.14); +insert into visitor_visit values(5, 'fernando gago', 6, 36, 2, 10, 320.44); +insert into visitor_visit values(6, 'rafael van der vaart', 1, 25, 4, 3, 20.44); +insert into visitor_visit values(6, 'rafael van der vaart', 1, 25, 8, 2, 19.98); + diff --git a/all/databases/museum_visit_minus_1_0/museum_visit_minus_1_0.sqlite b/all/databases/museum_visit_minus_1_0/museum_visit_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..51ff635fcdf92e07d8410cbbcffa28edc5fd0a27 Binary files /dev/null and b/all/databases/museum_visit_minus_1_0/museum_visit_minus_1_0.sqlite differ diff --git a/all/databases/music_1/music_1.sql b/all/databases/music_1/music_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..92e57e794f0d7ef1b775bcc8ff1fd7e3e162f120 --- /dev/null +++ b/all/databases/music_1/music_1.sql @@ -0,0 +1,63 @@ +CREATE TABLE "genre" ( +"g_name" text, +"rating" text, +"most_popular_in" text +); + +INSERT INTO genre VALUES ("blues", "8", "bangladesh"); +INSERT INTO genre VALUES ("folk", "7", "bangladesh"); +INSERT INTO genre VALUES ("modern", "9", "sylhetchittagongkustia"); +INSERT INTO genre VALUES ("nazrul", "8", "bangladesh"); +INSERT INTO genre VALUES ("pop", "7", "canada"); +INSERT INTO genre VALUES ("tagore", "9", "america"); + +CREATE TABLE "artist" ( +"artist_name" text, +"country" text, +"gender" text, +"preferred_genre" text +); + +INSERT INTO artist VALUES ("enrique", "india", "male", "tagore"); +INSERT INTO artist VALUES ("farida", "bangladesh", "female", "nazrul"); +INSERT INTO artist VALUES ("michel", "bangladesh", "female", "folk"); +INSERT INTO artist VALUES ("prity", "india", "female", "modern"); +INSERT INTO artist VALUES ("shrikanta", "usa", "male", "blues"); +INSERT INTO artist VALUES ("topu", "uk", "male", "pop"); + +CREATE TABLE "files" ( +"f_id" integer, +"artist_name" text, +"file_size" text, +"duration" text, +"formats" text +); + +INSERT INTO files VALUES (1, "shrikanta", "3.78 mb", "3:45", "mp4"); +INSERT INTO files VALUES (2, "prity", "4.12 mb", "2:56", "mp3"); +INSERT INTO files VALUES (3, "farida", "3.69 mb", "4:12", "mp4"); +INSERT INTO files VALUES (4, "enrique", "4.58 mb", "5:23", "mp4"); +INSERT INTO files VALUES (5, "michel", "5.10 mb", "4:34", "mp3"); +INSERT INTO files VALUES (6, "topu", "4.10 mb", "4:30", "mp4"); + +CREATE TABLE "song" ( +"song_name" text, +"artist_name" text, +"country" text, +"f_id" integer, +"genre_is" text, +"rating" integer, +"languages" text, +"releasedate" text, +"resolution" integer +); + +INSERT INTO song VALUES ("aj ei akash", "shrikanta", "india", 1, "tagore", 8, "bangla", "28-aug-2011", 1080); +INSERT INTO song VALUES ("ami opar hoye", "prity", "bangladesh", 2, "nazrul", 5, "bangla", "21-sep-1997", 512); +INSERT INTO song VALUES ("just beat it", "farida", "bangladesh", 3, "folk", 7, "bangla", "7-apr-2001", 320); +INSERT INTO song VALUES ("my love", "enrique", "usa", 4, "blues", 6, "english", "24-jan-2007", 1080); +INSERT INTO song VALUES ("shukno patar nupur pae", "michel", "uk", 5, "pop", 8, "english", "17-mar-2002", 720); +INSERT INTO song VALUES ("tumi robe nirobe", "topu", "india", 6, "modern", 10, "bangla", "27-mar-2004", 320); + + +COMMIT; diff --git a/all/databases/music_1/music_1.sqlite b/all/databases/music_1/music_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..d0f272e0f52d4367b30f44315ab4a074003fcb1d Binary files /dev/null and b/all/databases/music_1/music_1.sqlite differ diff --git a/all/databases/musical/musical.sql b/all/databases/musical/musical.sql new file mode 100644 index 0000000000000000000000000000000000000000..50732506931a9dcc0fc6a98065fdc889b488623e --- /dev/null +++ b/all/databases/musical/musical.sql @@ -0,0 +1,39 @@ +CREATE TABLE "musical" ( +"musical_id" integer, +"name" text, +"year" integer, +"award" text, +"category" text, +"nominee" text, +"result" text +); + +INSERT INTO musical VALUES (1, "the phantom of the opera", 1986, "tony award", "best book of a musical", "bob fosse", "nominated"); +INSERT INTO musical VALUES (2, "les misérables", 1986, "tony award", "best performance by a leading actor in a musical", "cleavant derricks", "nominated"); +INSERT INTO musical VALUES (3, "wicked", 1986, "tony award", "best direction of a musical", "bob fosse", "nominated"); +INSERT INTO musical VALUES (4, "west side story", 1986, "tony award", "best choreography", "bob fosse", "won"); +INSERT INTO musical VALUES (5, "rent", 1986, "drama desk award", "outstanding actor in a musical", "cleavant derricks", "nominated"); +INSERT INTO musical VALUES (6, "the book of mormon", 1986, "drama desk award", "outstanding director of a musical", "bob fosse", "nominated"); +INSERT INTO musical VALUES (7, "chicago", 1986, "drama desk award", "outstanding choreography", "bob fosse", "won"); + +CREATE TABLE "actor" ( +"actor_id" integer, +"name" text, +"musical_id" integer, +"character" text, +"duration" text, +"age" integer +); + +INSERT INTO actor VALUES (1, "ray meagher", 1, "alf stewart", "1988—", 26); +INSERT INTO actor VALUES (2, "tom oliver", 1, "lou carpenter", "1988 1992—", 22); +INSERT INTO actor VALUES (3, "lynne mcgranger", 2, "irene roberts", "1993—", 21); +INSERT INTO actor VALUES (4, "kate ritchie", 2, "sally fletcher", "1988–2008 2013", 20); +INSERT INTO actor VALUES (5, "alan fletcher", 4, "karl kennedy", "1994—", 20); +INSERT INTO actor VALUES (6, "jackie woodburne", 6, "susan kennedy", "1994—", 20); +INSERT INTO actor VALUES (7, "ryan moloney", 6, "toadfish rebecchi", "1995 1996—", 18); +INSERT INTO actor VALUES (8, "ian smith", 6, "harold bishop", "1987–1991 1996–2009 2011", 17); +INSERT INTO actor VALUES (9, "stefan dennis", 6, "paul robinson", "1985–1992 1993 2004—", 17); + + +COMMIT; diff --git a/all/databases/musical/musical.sqlite b/all/databases/musical/musical.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..69bd6998fb77f9c195fbeb8267540e319a8a7631 Binary files /dev/null and b/all/databases/musical/musical.sqlite differ diff --git a/all/databases/network_1_total_0/network_1_total_0.sql b/all/databases/network_1_total_0/network_1_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..b45b1229259a1da55fc86ebc343e8031e104e289 --- /dev/null +++ b/all/databases/network_1_total_0/network_1_total_0.sql @@ -0,0 +1,46 @@ +create table friend ( +student_id integer, +friend_id integer +); +insert into friend values(1510, 1381); +insert into friend values(1510, 1689); +insert into friend values(1689, 1709); +insert into friend values(1381, 1247); +insert into friend values(1709, 1247); +insert into friend values(1689, 1782); +insert into friend values(1782, 1468); +insert into friend values(1782, 1316); +insert into friend values(1782, 1304); +insert into friend values(1468, 1101); +insert into friend values(1468, 1641); +insert into friend values(1101, 1641); +insert into friend values(1247, 1911); +insert into friend values(1247, 1501); +insert into friend values(1911, 1501); +insert into friend values(1501, 1934); +insert into friend values(1316, 1934); +insert into friend values(1934, 1304); +insert into friend values(1304, 1661); +insert into friend values(1661, 1025); +create table likes_highschooler ( +student_id integer, +liked_id integer, +name text, +grade integer); +insert into likes_highschooler values(1689, 1709, 'jessica', 11); +insert into likes_highschooler values(1709, 1689, 'jordan', 12); +insert into likes_highschooler values(1782, 1709, 'john', 12); +insert into likes_highschooler values(1911, 1247, 'kyle', 12); +insert into likes_highschooler values(1247, 1468, 'tiffany', 9); +insert into likes_highschooler values(1641, 1468, 'austin', 11); +insert into likes_highschooler values(1316, 1304, 'haley', 10); +insert into likes_highschooler values(1501, 1934, 'brittany', 10); +insert into likes_highschooler values(1934, 1501, 'logan', 12); +insert into likes_highschooler values(1025, 1101, 'jordan', 9); +insert into likes_highschooler values(1101, 'None', 'gabriel', 9); +insert into likes_highschooler values(1304, 'None', 'cassandra', 9); +insert into likes_highschooler values(1381, 'None', 'andrew', 10); +insert into likes_highschooler values(1468, 'None', 'kris', 10); +insert into likes_highschooler values(1510, 'None', 'alexis', 11); +insert into likes_highschooler values(1661, 'None', 'gabriel', 11); + diff --git a/all/databases/network_1_total_0/network_1_total_0.sqlite b/all/databases/network_1_total_0/network_1_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..be630957d5259b1d4c7615cb6d42cf532796a56a Binary files /dev/null and b/all/databases/network_1_total_0/network_1_total_0.sqlite differ diff --git a/all/databases/network_1_total_1/network_1_total_1.sql b/all/databases/network_1_total_1/network_1_total_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..45f1fe0140f25dd1e0f1941c36acdaccf81707cc --- /dev/null +++ b/all/databases/network_1_total_1/network_1_total_1.sql @@ -0,0 +1,42 @@ +create table likes ( +student_id integer, +liked_id integer +); +insert into likes values(1689, 1709); +insert into likes values(1709, 1689); +insert into likes values(1782, 1709); +insert into likes values(1911, 1247); +insert into likes values(1247, 1468); +insert into likes values(1641, 1468); +insert into likes values(1316, 1304); +insert into likes values(1501, 1934); +insert into likes values(1934, 1501); +insert into likes values(1025, 1101); +create table friend_highschooler ( +student_id integer, +friend_id integer, +name text, +grade integer); +insert into friend_highschooler values(1510, 1381, 'alexis', 11); +insert into friend_highschooler values(1510, 1689, 'alexis', 11); +insert into friend_highschooler values(1689, 1709, 'jessica', 11); +insert into friend_highschooler values(1381, 1247, 'andrew', 10); +insert into friend_highschooler values(1709, 1247, 'jordan', 12); +insert into friend_highschooler values(1689, 1782, 'jessica', 11); +insert into friend_highschooler values(1782, 1468, 'john', 12); +insert into friend_highschooler values(1782, 1316, 'john', 12); +insert into friend_highschooler values(1782, 1304, 'john', 12); +insert into friend_highschooler values(1468, 1101, 'kris', 10); +insert into friend_highschooler values(1468, 1641, 'kris', 10); +insert into friend_highschooler values(1101, 1641, 'gabriel', 9); +insert into friend_highschooler values(1247, 1911, 'tiffany', 9); +insert into friend_highschooler values(1247, 1501, 'tiffany', 9); +insert into friend_highschooler values(1911, 1501, 'kyle', 12); +insert into friend_highschooler values(1501, 1934, 'brittany', 10); +insert into friend_highschooler values(1316, 1934, 'haley', 10); +insert into friend_highschooler values(1934, 1304, 'logan', 12); +insert into friend_highschooler values(1304, 1661, 'cassandra', 9); +insert into friend_highschooler values(1661, 1025, 'gabriel', 11); +insert into friend_highschooler values(1025, 'None', 'jordan', 9); +insert into friend_highschooler values(1641, 'None', 'austin', 11); + diff --git a/all/databases/network_1_total_1/network_1_total_1.sqlite b/all/databases/network_1_total_1/network_1_total_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..94cbbf329c1157237e38da5bc9479ad7f0440995 Binary files /dev/null and b/all/databases/network_1_total_1/network_1_total_1.sqlite differ diff --git a/all/databases/network_2/network_2.sql b/all/databases/network_2/network_2.sql new file mode 100644 index 0000000000000000000000000000000000000000..bdfa51a205653efa0f02d32a775de596388121ae --- /dev/null +++ b/all/databases/network_2/network_2.sql @@ -0,0 +1,26 @@ +CREATE TABLE "person" ( +"name" text, +"age" integer, +"city" text, +"gender" text, +"job" text +); + +INSERT INTO person VALUES ("alice", 25, "new york city", "female", "student"); +INSERT INTO person VALUES ("bob", 35, "salt lake city", "male", "engineer"); +INSERT INTO person VALUES ("dan", 45, "austin", "male", "doctor"); +INSERT INTO person VALUES ("zach", 26, "chicago", "female", "student"); + +CREATE TABLE "personfriend" ( +"name" text, +"friend" text, +"year" integer +); + +INSERT INTO personfriend VALUES ("alice", "bob", 10); +INSERT INTO personfriend VALUES ("zach", "dan", 12); +INSERT INTO personfriend VALUES ("bob", "zach", 5); +INSERT INTO personfriend VALUES ("zach", "alice", 6); + + +COMMIT; diff --git a/all/databases/network_2/network_2.sqlite b/all/databases/network_2/network_2.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..fa6947037bd444b0fa698c50071fb07d9ddd144e Binary files /dev/null and b/all/databases/network_2/network_2.sqlite differ diff --git a/all/databases/network_2_minus_1_0/network_2_minus_1_0.sql b/all/databases/network_2_minus_1_0/network_2_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..27c44834de5af8696a4d565ccb50caa99bf1467b --- /dev/null +++ b/all/databases/network_2_minus_1_0/network_2_minus_1_0.sql @@ -0,0 +1,14 @@ +create table personfriend_person ( +name text, +friend text, +year integer, +age integer, +city text, +gender text, +job text); +insert into personfriend_person values('alice', 'bob', 10, 25, 'new york city', 'female', 'student'); +insert into personfriend_person values('zach', 'dan', 12, 26, 'chicago', 'female', 'student'); +insert into personfriend_person values('bob', 'zach', 5, 35, 'salt lake city', 'male', 'engineer'); +insert into personfriend_person values('zach', 'alice', 6, 26, 'chicago', 'female', 'student'); +insert into personfriend_person values('dan', 'None', 'None', 45, 'austin', 'male', 'doctor'); + diff --git a/all/databases/network_2_minus_1_0/network_2_minus_1_0.sqlite b/all/databases/network_2_minus_1_0/network_2_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..e59fcc42adace9fe7748fc1fe5a6dada3e7a22cb Binary files /dev/null and b/all/databases/network_2_minus_1_0/network_2_minus_1_0.sqlite differ diff --git a/all/databases/news_report/news_report.sql b/all/databases/news_report/news_report.sql new file mode 100644 index 0000000000000000000000000000000000000000..0c9fae3eb9d2f860c6100e4dcbb9edc2830339b8 --- /dev/null +++ b/all/databases/news_report/news_report.sql @@ -0,0 +1,50 @@ +CREATE TABLE "event" ( +"event_id" integer, +"date" text, +"venue" text, +"name" text, +"event_attendance" integer +); + +INSERT INTO event VALUES (1, "13 october 2008", "marathon", "olympia games openning", 6650); +INSERT INTO event VALUES (2, "11 october 2007", "victoria", "government hearing", 369); +INSERT INTO event VALUES (3, "7 october 2010", "motagua", "public debating", 1675); +INSERT INTO event VALUES (4, "20 june 2018", "platense", "global awarding", 2356); +INSERT INTO event VALUES (5, "9 april 2014", "hispano", "special exhibition", 225); + +CREATE TABLE "journalist" ( +"journalist_id" integer, +"name" text, +"nationality" text, +"age" text, +"years_working" integer +); + +INSERT INTO journalist VALUES (1, "herbert swindells", "england", "37", 10); +INSERT INTO journalist VALUES (2, "fred keenor", "wales", "27", 5); +INSERT INTO journalist VALUES (3, "george gilchrist", "england", "28", 6); +INSERT INTO journalist VALUES (4, "jackie waring", "england", "43", 21); +INSERT INTO journalist VALUES (5, "fred chandler", "england", "34", 6); +INSERT INTO journalist VALUES (6, "ray ferris", "northern ireland", "29", 3); +INSERT INTO journalist VALUES (7, "john meaney", "england", "28", 7); +INSERT INTO journalist VALUES (8, "tony waddington", "england", "43", 12); +INSERT INTO journalist VALUES (9, "jack meaney", "england", "37", 8); +INSERT INTO journalist VALUES (10, "frank mitcheson", "england", "33", 9); +INSERT INTO journalist VALUES (11, "tom briggs", "england", "25", 1); + +CREATE TABLE "news_report" ( +"journalist_id" integer, +"event_id" integer, +"work_type" text +); + +INSERT INTO news_report VALUES (1, 3, "screening"); +INSERT INTO news_report VALUES (4, 1, "screening"); +INSERT INTO news_report VALUES (4, 2, "screening"); +INSERT INTO news_report VALUES (6, 1, "music"); +INSERT INTO news_report VALUES (7, 5, "music"); +INSERT INTO news_report VALUES (8, 4, "host"); +INSERT INTO news_report VALUES (11, 5, "host"); + + +COMMIT; diff --git a/all/databases/news_report/news_report.sqlite b/all/databases/news_report/news_report.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..0739b5073907e32ff2b79c110c9311d8369fa882 Binary files /dev/null and b/all/databases/news_report/news_report.sqlite differ diff --git a/all/databases/party_host/party_host.sql b/all/databases/party_host/party_host.sql new file mode 100644 index 0000000000000000000000000000000000000000..e2549f6496ef719ecd759f4597ebfba8b578a885 --- /dev/null +++ b/all/databases/party_host/party_host.sql @@ -0,0 +1,51 @@ +CREATE TABLE "party" ( +"party_id" integer, +"party_theme" text, +"location" text, +"first_year" text, +"last_year" text, +"number_of_hosts" integer +); + +INSERT INTO party VALUES (1, "spring", "hemkade 48 zaandam", "2000", "2001", 5); +INSERT INTO party VALUES (2, "club q-base", "hemkade 48 zaandam", "2002", "2002", 23); +INSERT INTO party VALUES (3, "hardcore resurrection", "various locations", "2000", "2003", 4); +INSERT INTO party VALUES (4, "teqnology", "heineken music hall amsterdam", "2002", "2004", 6); +INSERT INTO party VALUES (5, "qlubtempo", "hemkade 48 zaandam heineken music hall amsterdam", "2001", "2007", 31); +INSERT INTO party VALUES (6, "qrimetime", "heineken music hall amsterdam", "2004", "2007", 4); +INSERT INTO party VALUES (7, "in qontrol", "rai amsterdam", "2004", "2010", 7); +INSERT INTO party VALUES (8, "houseqlassics", "various locations", "1999", "2010", 18); + +CREATE TABLE "host" ( +"host_id" integer, +"name" text, +"nationality" text, +"age" text +); + +INSERT INTO host VALUES (1, "austin daye", "united states", "43"); +INSERT INTO host VALUES (2, "lloyd daniels", "united states", "37"); +INSERT INTO host VALUES (3, "kornel david", "hungary", "31"); +INSERT INTO host VALUES (4, "antonio davis", "united states", "26"); +INSERT INTO host VALUES (5, "ed davis", "united states", "45"); +INSERT INTO host VALUES (6, "hubert davis", "united states", "47"); +INSERT INTO host VALUES (7, "carlos delfino", "argentina", "30"); +INSERT INTO host VALUES (8, "justin dentmon", "united states", "40"); +INSERT INTO host VALUES (9, "demar derozan", "united states", "31"); +INSERT INTO host VALUES (10, "derrick dial", "united states", "60"); + +CREATE TABLE "party_host" ( +"party_id" integer, +"host_id" integer, +"is_main_in_charge" text +); + +INSERT INTO party_host VALUES (1, 1, "t"); +INSERT INTO party_host VALUES (2, 5, "t"); +INSERT INTO party_host VALUES (4, 2, "f"); +INSERT INTO party_host VALUES (6, 3, "t"); +INSERT INTO party_host VALUES (6, 10, "f"); +INSERT INTO party_host VALUES (8, 7, "t"); + + +COMMIT; diff --git a/all/databases/party_host/party_host.sqlite b/all/databases/party_host/party_host.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..5ea97304eba1692c61f64aba52390a9c69b074d1 Binary files /dev/null and b/all/databases/party_host/party_host.sqlite differ diff --git a/all/databases/party_people/party_people.sql b/all/databases/party_people/party_people.sql new file mode 100644 index 0000000000000000000000000000000000000000..6eb6f05c7041c62bec8620082dcc3d67ecf2065b --- /dev/null +++ b/all/databases/party_people/party_people.sql @@ -0,0 +1,71 @@ +CREATE TABLE "region" ( +"region_id" integer, +"region_name" text, +"date" text, +"label" text, +"format" text, +"catalogue" text +); + +INSERT INTO region VALUES (1, "united kingdom", "1 july 2002", "parlophone", "cd", "540 3622"); +INSERT INTO region VALUES (2, "united kingdom", "1 july 2002", "parlophone", "2× lp", "539 9821"); +INSERT INTO region VALUES (3, "japan", "3 july 2002", "toshiba-emi", "cd", "tocp-66045"); +INSERT INTO region VALUES (4, "united states", "16 july 2002", "astralwerks", "cd", "asw 40362"); +INSERT INTO region VALUES (5, "united states", "16 july 2002", "astralwerks", "cd digipak", "asw 40522"); + +CREATE TABLE "party" ( +"party_id" integer, +"minister" text, +"took_office" text, +"left_office" text, +"region_id" integer, +"party_name" text +); + +INSERT INTO party VALUES (1, "dr. kwame nkrumah mp", "1957", "1958", 1, "convention peoples party"); +INSERT INTO party VALUES (2, "kojo botsio mp", "1958", "1959", 2, "progress party"); +INSERT INTO party VALUES (3, "ebenezer ako-adjei mp", "1959", "1960", 3, "3"); +INSERT INTO party VALUES (4, "imoru egala mp", "1960", "1961", 4, "convention union party"); +INSERT INTO party VALUES (5, "ebenezer ako-adjei mp", "1961", "1962", 5, "sinefine party"); + +CREATE TABLE "member" ( +"member_id" integer, +"member_name" text, +"party_id" text, +"in_office" text +); + +INSERT INTO member VALUES (1, "hon tony abbott", "3", "1994–present"); +INSERT INTO member VALUES (2, "hon dick adams", "2", "1993–2013"); +INSERT INTO member VALUES (3, "anthony albanese", "2", "1996–present"); +INSERT INTO member VALUES (4, "hon john anderson", "1", "1989–2007"); +INSERT INTO member VALUES (5, "peter andren", "3", "1996–2007"); +INSERT INTO member VALUES (6, "hon kevin andrews", "3", "1991–present"); +INSERT INTO member VALUES (7, "hon fran bailey", "3", "1990–1993 1996–2010"); +INSERT INTO member VALUES (8, "hon bruce baird", "3", "2001–2007"); +INSERT INTO member VALUES (9, "mark baker", "3", "2004–2007"); +INSERT INTO member VALUES (10, "hon bob baldwin", "3", "2001–present"); +INSERT INTO member VALUES (11, "phil barresi", "3", "1996–2007"); +INSERT INTO member VALUES (12, "kerry bartlett", "1", "1996–2007"); +INSERT INTO member VALUES (13, "hon kim beazley", "2", "1980–2007"); +INSERT INTO member VALUES (14, "hon arch bevis", "2", "1990–2010"); +INSERT INTO member VALUES (15, "hon bruce billson", "3", "1996–present"); + +CREATE TABLE "party_events" ( +"event_id" integer, +"event_name" text, +"party_id" integer, +"member_in_charge_id" integer +); + +INSERT INTO party_events VALUES (1, "annaual meeting", 1, 4); +INSERT INTO party_events VALUES (2, "conference", 1, 12); +INSERT INTO party_events VALUES (3, "annaual meeting", 2, 2); +INSERT INTO party_events VALUES (4, "budget meeting", 2, 3); +INSERT INTO party_events VALUES (5, "annaual meeting", 3, 10); +INSERT INTO party_events VALUES (6, "election meeting", 3, 11); +INSERT INTO party_events VALUES (7, "budget meeting", 3, 15); +INSERT INTO party_events VALUES (8, "election meeting", 1, 4); + + +COMMIT; diff --git a/all/databases/party_people/party_people.sqlite b/all/databases/party_people/party_people.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..3731082d25ef3e69cfb7c7a16226b212f39065d7 Binary files /dev/null and b/all/databases/party_people/party_people.sqlite differ diff --git a/all/databases/perpetrator/perpetrator.sql b/all/databases/perpetrator/perpetrator.sql new file mode 100644 index 0000000000000000000000000000000000000000..fdacbc2cfc3ae171e0e0cfa02862d55497d6f6d7 --- /dev/null +++ b/all/databases/perpetrator/perpetrator.sql @@ -0,0 +1,39 @@ +CREATE TABLE "perpetrator" ( +"perpetrator_id" integer, +"people_id" integer, +"date" text, +"year" real, +"location" text, +"country" text, +"killed" integer, +"injured" integer +); + +INSERT INTO perpetrator VALUES (1, 1, "04.26 april 26/27", 1982.0, "uiryeong", "south korea", 56, 37); +INSERT INTO perpetrator VALUES (2, 3, "11.18 nov. 18", 1995.0, "zhaodong", "china", 32, 16); +INSERT INTO perpetrator VALUES (3, 4, "05.21 may 21", 1938.0, "kaio", "japan", 30, 3); +INSERT INTO perpetrator VALUES (4, 6, "09.20 sep. 20", 1994.0, "beijing", "china", 23, 80); +INSERT INTO perpetrator VALUES (5, 8, "04.00 april", 1950.0, "nainital", "india", 22, 0); + +CREATE TABLE "people" ( +"people_id" integer, +"name" text, +"height" real, +"weight" real, +"home_town" text +); + +INSERT INTO people VALUES (1, "ron baxter", 6.4, 205.0, "los angeles ca"); +INSERT INTO people VALUES (2, "brent boyd", 6.3, 185.0, "baton rouge la"); +INSERT INTO people VALUES (3, "tyrone brayan", 6.7, 220.0, "placentia ca"); +INSERT INTO people VALUES (4, "rob cunningham", 6.8, 215.0, "westport ct"); +INSERT INTO people VALUES (5, "john danks", 6.6, 190.0, "beaver dam ky"); +INSERT INTO people VALUES (6, "ovie dotson", 6.5, 200.0, "san antonio tx"); +INSERT INTO people VALUES (7, "gary goodner", 6.7, 220.0, "denton tx"); +INSERT INTO people VALUES (8, "henry johnson", 6.6, 190.0, "los angeles ca"); +INSERT INTO people VALUES (9, "jim krivacs", 6.1, 160.0, "indianapolis in"); +INSERT INTO people VALUES (10, "john moore", 6.1, 170.0, "altoona pa"); +INSERT INTO people VALUES (11, "mike murphy", 6.8, 215.0, "austin tx"); + + +COMMIT; diff --git a/all/databases/perpetrator/perpetrator.sqlite b/all/databases/perpetrator/perpetrator.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..d5dcebaddfccff5a91e2a7a533a3de5a3f64ceab Binary files /dev/null and b/all/databases/perpetrator/perpetrator.sqlite differ diff --git a/all/databases/pets_1/pets_1.sql b/all/databases/pets_1/pets_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..bef2423b19eb97b861a05551d48d01e18b5392f7 --- /dev/null +++ b/all/databases/pets_1/pets_1.sql @@ -0,0 +1,68 @@ +CREATE TABLE "student" ( +"stuid" integer, +"lname" text, +"fname" text, +"age" integer, +"sex" text, +"major" integer, +"advisor" integer, +"city_code" text +); + +INSERT INTO student VALUES (1001, "smith", "linda", 18, "f", 600, 1121, "bal"); +INSERT INTO student VALUES (1002, "kim", "tracy", 19, "f", 600, 7712, "hkg"); +INSERT INTO student VALUES (1003, "jones", "shiela", 21, "f", 600, 7792, "was"); +INSERT INTO student VALUES (1004, "kumar", "dinesh", 20, "m", 600, 8423, "chi"); +INSERT INTO student VALUES (1005, "gompers", "paul", 26, "m", 600, 1121, "yyz"); +INSERT INTO student VALUES (1006, "schultz", "andy", 18, "m", 600, 1148, "bal"); +INSERT INTO student VALUES (1007, "apap", "lisa", 18, "f", 600, 8918, "pit"); +INSERT INTO student VALUES (1008, "nelson", "jandy", 20, "f", 600, 9172, "bal"); +INSERT INTO student VALUES (1009, "tai", "eric", 19, "m", 600, 2192, "yyz"); +INSERT INTO student VALUES (1010, "lee", "derek", 17, "m", 600, 2192, "hou"); +INSERT INTO student VALUES (1011, "adams", "david", 22, "m", 600, 1148, "phl"); +INSERT INTO student VALUES (1012, "davis", "steven", 20, "m", 600, 7723, "pit"); +INSERT INTO student VALUES (1014, "norris", "charles", 18, "m", 600, 8741, "dal"); +INSERT INTO student VALUES (1015, "lee", "susan", 16, "f", 600, 8721, "hkg"); +INSERT INTO student VALUES (1016, "schwartz", "mark", 17, "m", 600, 2192, "det"); +INSERT INTO student VALUES (1017, "wilson", "bruce", 27, "m", 600, 1148, "lon"); +INSERT INTO student VALUES (1018, "leighton", "michael", 20, "m", 600, 1121, "pit"); +INSERT INTO student VALUES (1019, "pang", "arthur", 18, "m", 600, 2192, "was"); +INSERT INTO student VALUES (1020, "thornton", "ian", 22, "m", 520, 7271, "nyc"); +INSERT INTO student VALUES (1021, "andreou", "george", 19, "m", 520, 8722, "nyc"); +INSERT INTO student VALUES (1022, "woods", "michael", 17, "m", 540, 8722, "phl"); +INSERT INTO student VALUES (1023, "shieber", "david", 20, "m", 520, 8722, "nyc"); +INSERT INTO student VALUES (1024, "prater", "stacy", 18, "f", 540, 7271, "bal"); +INSERT INTO student VALUES (1025, "goldman", "mark", 18, "m", 520, 7134, "pit"); +INSERT INTO student VALUES (1026, "pang", "eric", 19, "m", 520, 7134, "hkg"); +INSERT INTO student VALUES (1027, "brody", "paul", 18, "m", 520, 8723, "los"); +INSERT INTO student VALUES (1028, "rugh", "eric", 20, "m", 550, 2311, "roc"); +INSERT INTO student VALUES (1029, "han", "jun", 17, "m", 100, 2311, "pek"); +INSERT INTO student VALUES (1030, "cheng", "lisa", 21, "f", 550, 2311, "sfo"); +INSERT INTO student VALUES (1031, "smith", "sarah", 20, "f", 550, 8772, "phl"); +INSERT INTO student VALUES (1032, "brown", "eric", 20, "m", 550, 8772, "atl"); +INSERT INTO student VALUES (1033, "simms", "william", 18, "m", 550, 8772, "nar"); +INSERT INTO student VALUES (1034, "epp", "eric", 18, "m", 50, 5718, "bos"); +INSERT INTO student VALUES (1035, "schmidt", "sarah", 26, "f", 50, 5718, "was"); + +CREATE TABLE "has_pet" ( +"stuid" integer, +"petid" integer +); + +INSERT INTO has_pet VALUES (1001, 2001); +INSERT INTO has_pet VALUES (1002, 2002); +INSERT INTO has_pet VALUES (1002, 2003); + +CREATE TABLE "pets" ( +"petid" integer, +"pettype" text, +"pet_age" integer, +"weight" real +); + +INSERT INTO pets VALUES (2001, "cat", 3, 12.0); +INSERT INTO pets VALUES (2002, "dog", 2, 13.4); +INSERT INTO pets VALUES (2003, "dog", 1, 9.3); + + +COMMIT; diff --git a/all/databases/pets_1/pets_1.sqlite b/all/databases/pets_1/pets_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..3e5941b626e2e37e792dc834887155697660f575 Binary files /dev/null and b/all/databases/pets_1/pets_1.sqlite differ diff --git a/all/databases/phone_1/phone_1.sql b/all/databases/phone_1/phone_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..bc30121ca0c929de05ea47270561ed620ca605ef --- /dev/null +++ b/all/databases/phone_1/phone_1.sql @@ -0,0 +1,64 @@ +CREATE TABLE "chip_model" ( +"model_name" text, +"launch_year" real, +"ram_mib" real, +"rom_mib" real, +"slots" text, +"wifi" text, +"bluetooth" text +); + +INSERT INTO chip_model VALUES ("x3 advanced", 2002.0, 32.0, 32.0, "1cfii1sd", "no", "no"); +INSERT INTO chip_model VALUES ("x3 basic", 2002.0, 64.0, 48.0, "1cfii1sd", "no", "no"); +INSERT INTO chip_model VALUES ("x30 high-end", 2003.0, 32.0, 32.0, "1sd", "no", "no"); +INSERT INTO chip_model VALUES ("x30 low-end", 2003.0, 64.0, 64.0, "1sd", "no", "no"); +INSERT INTO chip_model VALUES ("x30 mid-range", 2003.0, 64.0, 64.0, "1sd", "802.11b", "no"); +INSERT INTO chip_model VALUES ("x3i", 2004.0, 32.0, 32.0, "1sd", "no", "no"); +INSERT INTO chip_model VALUES ("x5", 2004.0, 64.0, 64.0, "1sd", "802.11b", "1.1"); +INSERT INTO chip_model VALUES ("x5 high end", 2004.0, 64.0, 64.0, "1sd", "802.11b", "1.1"); +INSERT INTO chip_model VALUES ("x50 advanced", 2004.0, 64.0, 64.0, "1cfii1sd", "no", "yes"); +INSERT INTO chip_model VALUES ("x50 standard", 2004.0, 64.0, 128.0, "1cfii1sd", "802.11b", "yes"); +INSERT INTO chip_model VALUES ("x50v", 2004.0, 64.0, 128.0, "1cfii1sd", "802.11b", "1.2"); +INSERT INTO chip_model VALUES ("x51 low-end", 2005.0, 64.0, 128.0, "1cfii1sd", "no", "1.2"); +INSERT INTO chip_model VALUES ("x51 mid-range", 2005.0, 64.0, 128.0, "1cfii1sd", "802.11b", "1.2"); +INSERT INTO chip_model VALUES ("x51v", 2005.0, 64.0, 256.0, "1cfii1sd", "802.11b", "1.2"); + +CREATE TABLE "screen_mode" ( +"graphics_mode" real, +"char_cells" text, +"pixels" text, +"hardware_colours" real, +"used_kb" real, +"map" text, +"type" text +); + +INSERT INTO screen_mode VALUES (0.0, "80 × 32", "640 × 256", 2.0, 20.0, "3000–7fff", "graphics"); +INSERT INTO screen_mode VALUES (1.0, "40 × 32", "320 × 256", 4.0, 20.0, "3000–7fff", "graphics"); +INSERT INTO screen_mode VALUES (2.0, "20 × 32", "160 × 256", 8.0, 20.0, "3000–7fff", "graphics"); +INSERT INTO screen_mode VALUES (3.0, "80 × 25", "640 × 200", 2.0, 16.0, "4000–7fff", "text"); +INSERT INTO screen_mode VALUES (4.0, "40 × 32", "320 × 256", 2.0, 10.0, "5800–7fff", "graphics"); +INSERT INTO screen_mode VALUES (5.0, "20 × 32", "160 × 256", 4.0, 10.0, "5800–7fff", "graphics"); +INSERT INTO screen_mode VALUES (6.0, "40 × 25", "320 × 200", 2.0, 8.0, "6000–7fff", "text"); + +CREATE TABLE "phone" ( +"company_name" text, +"hardware_model_name" text, +"accreditation_type" text, +"accreditation_level" text, +"date" text, +"chip_model" text, +"screen_mode" text +); + +INSERT INTO phone VALUES ("sony mobile communications", "gt-i9100", "full", "joyn hot fixes", "approved awarded 15.11.12", "x5", "1"); +INSERT INTO phone VALUES ("lg electronics", "gt-i9300", "full", "joyn hot fixes", "approved awarded 19.11.12", "x51v", "3"); +INSERT INTO phone VALUES ("nokia corporation", "lg-p760", "full", "joyn hot fixes", "approved awarded 05.12.12", "x5", "4"); +INSERT INTO phone VALUES ("samsung electronics co ltd", "lumia 920 lumia 820 lumia 620", "full", "joyn", "approved awarded 23.10.12", "x30 low-end", "5"); +INSERT INTO phone VALUES ("htc corporation", "nokia 700", "provisional", "joyn", "approved valid until 14.09.13", "x3i", "6"); +INSERT INTO phone VALUES ("samsung electronics co ltd", "u8815 asura", "provisional", "joyn", "approved valid until 06.04.13", "x50 advanced", "1"); +INSERT INTO phone VALUES ("nokia corporation", "xperia t xperia j", "provisional", "joyn", "approved valid until 03.05.13", "x5", "2"); +INSERT INTO phone VALUES ("huawei technologies co.ltd.", "z520e", "provisional", "joyn", "approved valid until 03.05.13", "x50 standard", "3"); + + +COMMIT; diff --git a/all/databases/phone_1/phone_1.sqlite b/all/databases/phone_1/phone_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..dbfcc95369cb805985f44abfca69fb6be38ac4ba Binary files /dev/null and b/all/databases/phone_1/phone_1.sqlite differ diff --git a/all/databases/pilot_record/pilot_record.sql b/all/databases/pilot_record/pilot_record.sql new file mode 100644 index 0000000000000000000000000000000000000000..5140118ef2bcc95706170e5b46f2ddc2d6042520 --- /dev/null +++ b/all/databases/pilot_record/pilot_record.sql @@ -0,0 +1,51 @@ +CREATE TABLE "aircraft" ( +"aircraft_id" integer, +"order_year" integer, +"manufacturer" text, +"model" text, +"fleet_series" text, +"powertrain" text, +"fuel_propulsion" text +); + +INSERT INTO aircraft VALUES (1, 1992, "gillig", "phantom high floor", "444-464 21", "dd s50egr allison wb-400r", "diesel"); +INSERT INTO aircraft VALUES (2, 1996, "gillig", "phantom high floor", "465-467 3", "dd s50 allison wb-400r", "diesel"); +INSERT INTO aircraft VALUES (3, 1998, "gillig", "phantom high floor", "468-473 6", "dd s50 allison wb-400r", "diesel"); +INSERT INTO aircraft VALUES (4, 2000, "gillig", "advantage low floor", "474-481 8", "cummins isc allison wb-400r", "diesel"); +INSERT INTO aircraft VALUES (5, 2002, "gillig", "advantage low floor", "482-492 11", "cummins isl allison wb-400r", "diesel"); +INSERT INTO aircraft VALUES (6, 2010, "nfi", "ge40lfr", "300-309 10", "ford triton v10 ise-thundervolt tb40-hg", "hybrid"); +INSERT INTO aircraft VALUES (7, 2011, "nfi", "c40lfr", "310-329 20", "cummins westport isl-g allison wb-400r", "cng"); + +CREATE TABLE "pilot" ( +"pilot_id" integer, +"pilot_name" text, +"rank" integer, +"age" integer, +"nationality" text, +"position" text, +"join_year" integer, +"team" text +); + +INSERT INTO pilot VALUES (1, "patrick obryant", 13, 33, "united states", "center team", 2009, "bradley"); +INSERT INTO pilot VALUES (2, "jermaine oneal", 6, 40, "united states", "forward-center team", 2008, "eau claire high school"); +INSERT INTO pilot VALUES (3, "dan osullivan", 45, 37, "united states", "center team", 1999, "fordham"); +INSERT INTO pilot VALUES (4, "charles oakley", 34, 22, "united kindom", "forward team", 2001, "virginia union"); +INSERT INTO pilot VALUES (5, "hakeem olajuwon", 34, 32, "nigeria", "center team", 2010, "houston"); + +CREATE TABLE "pilot_record" ( +"record_id" integer, +"pilot_id" integer, +"aircraft_id" integer, +"date" text +); + +INSERT INTO pilot_record VALUES (1, 1, 1, "2003/01/04"); +INSERT INTO pilot_record VALUES (2, 1, 4, "2005/01/04"); +INSERT INTO pilot_record VALUES (3, 1, 5, "2008/01/04"); +INSERT INTO pilot_record VALUES (4, 2, 1, "2004/01/04"); +INSERT INTO pilot_record VALUES (5, 3, 6, "2006/01/04"); +INSERT INTO pilot_record VALUES (6, 4, 2, "2007/01/04"); + + +COMMIT; diff --git a/all/databases/pilot_record/pilot_record.sqlite b/all/databases/pilot_record/pilot_record.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..ce750ff7535a7ece8c0a6b1b1001858b3dce1105 Binary files /dev/null and b/all/databases/pilot_record/pilot_record.sqlite differ diff --git a/all/databases/products_gen_characteristics/products_gen_characteristics.sql b/all/databases/products_gen_characteristics/products_gen_characteristics.sql new file mode 100644 index 0000000000000000000000000000000000000000..7de9f7a1b6e03dfe49aa405dbde41712b12dff4d --- /dev/null +++ b/all/databases/products_gen_characteristics/products_gen_characteristics.sql @@ -0,0 +1,107 @@ +CREATE TABLE "ref_characteristic_types" ( +"characteristic_type_code" text, +"characteristic_type_description" text +); + +INSERT INTO ref_characteristic_types VALUES ("grade", "grade"); +INSERT INTO ref_characteristic_types VALUES ("purity", "purity"); + +CREATE TABLE "ref_colors" ( +"color_code" text, +"color_description" text +); + +INSERT INTO ref_colors VALUES ("1", "red"); +INSERT INTO ref_colors VALUES ("2", "green"); +INSERT INTO ref_colors VALUES ("3", "yellow"); +INSERT INTO ref_colors VALUES ("4", "blue"); +INSERT INTO ref_colors VALUES ("5", "black"); +INSERT INTO ref_colors VALUES ("7", "white"); +INSERT INTO ref_colors VALUES ("8", "purple"); +INSERT INTO ref_colors VALUES ("9", "gray"); + +CREATE TABLE "ref_product_categories" ( +"product_category_code" text, +"product_category_description" text, +"unit_of_measure" text +); + +INSERT INTO ref_product_categories VALUES ("herbs", "herbs", "handful"); +INSERT INTO ref_product_categories VALUES ("seeds", "seeds", "weight - poundkilo."); +INSERT INTO ref_product_categories VALUES ("spices", "spices", "weight - poundkilo."); + +CREATE TABLE "characteristics" ( +"characteristic_id" integer, +"characteristic_type_code" text, +"characteristic_data_type" text, +"characteristic_name" text, +"other_characteristic_details" null +); + +INSERT INTO characteristics VALUES (1, "grade", "numquam", "slow", "NULL"); +INSERT INTO characteristics VALUES (2, "grade", "doloribus", "fast", "NULL"); +INSERT INTO characteristics VALUES (3, "purity", "rem", "warm", "NULL"); +INSERT INTO characteristics VALUES (4, "grade", "aut", "hot", "NULL"); +INSERT INTO characteristics VALUES (5, "purity", "impedit", "hot", "NULL"); +INSERT INTO characteristics VALUES (6, "purity", "qui", "warm", "NULL"); +INSERT INTO characteristics VALUES (7, "grade", "et", "cool", "NULL"); +INSERT INTO characteristics VALUES (8, "grade", "dolores", "cool", "NULL"); +INSERT INTO characteristics VALUES (9, "grade", "quam", "cool", "NULL"); +INSERT INTO characteristics VALUES (10, "grade", "velit", "fast", "NULL"); +INSERT INTO characteristics VALUES (11, "purity", "at", "fast", "NULL"); +INSERT INTO characteristics VALUES (12, "grade", "totam", "error", "NULL"); +INSERT INTO characteristics VALUES (13, "purity", "mollitia", "slow", "NULL"); +INSERT INTO characteristics VALUES (14, "purity", "placeat", "slow", "NULL"); +INSERT INTO characteristics VALUES (15, "grade", "facere", "slow", "NULL"); + +CREATE TABLE "products" ( +"product_id" integer, +"color_code" text, +"product_category_code" text, +"product_name" text, +"typical_buying_price" text, +"typical_selling_price" text, +"product_description" text, +"other_product_details" null +); + +INSERT INTO products VALUES (1, "4", "spices", "cumin", "", "2878.3", "et", "NULL"); +INSERT INTO products VALUES (2, "2", "spices", "peper", "352447.2874677", "1892070.2803543", "rerum", "NULL"); +INSERT INTO products VALUES (3, "9", "herbs", "basil", "503.8431967", "0.1859512", "officia", "NULL"); +INSERT INTO products VALUES (4, "1", "herbs", "borage", "", "10377614.847385", "blanditiis", "NULL"); +INSERT INTO products VALUES (5, "4", "spices", "chili", "", "39446", "eius", "NULL"); +INSERT INTO products VALUES (6, "4", "seeds", "ginger", "5.578", "52735.6101", "doloribus", "NULL"); +INSERT INTO products VALUES (7, "9", "seeds", "sesame", "1284268.0659", "68205825.7", "et", "NULL"); +INSERT INTO products VALUES (8, "9", "herbs", "caraway", "24493", "", "nulla", "NULL"); +INSERT INTO products VALUES (9, "2", "herbs", "catnip", "12008702.623", "21577.891642", "vel", "NULL"); +INSERT INTO products VALUES (10, "5", "seeds", "flax", "339404395.7", "59622629.74", "et", "NULL"); +INSERT INTO products VALUES (11, "7", "herbs", "chervil", "", "", "minus", "NULL"); +INSERT INTO products VALUES (12, "4", "seeds", "voluptatem", "162", "149", "officia", "NULL"); +INSERT INTO products VALUES (13, "5", "spices", "cinnam", "1686539.4", "17595111.4", "nisi", "NULL"); +INSERT INTO products VALUES (14, "4", "seeds", "lotus", "43221310.465574", "63589.4054376", "exercitationem", "NULL"); +INSERT INTO products VALUES (15, "2", "herbs", "laurel", "", "57857", "ut", "NULL"); + +CREATE TABLE "product_characteristics" ( +"product_id" integer, +"characteristic_id" integer, +"product_characteristic_value" text +); + +INSERT INTO product_characteristics VALUES (13, 13, "low"); +INSERT INTO product_characteristics VALUES (11, 2, "low"); +INSERT INTO product_characteristics VALUES (5, 15, "low"); +INSERT INTO product_characteristics VALUES (1, 13, "low"); +INSERT INTO product_characteristics VALUES (7, 12, "low"); +INSERT INTO product_characteristics VALUES (11, 6, "low"); +INSERT INTO product_characteristics VALUES (7, 2, "medium"); +INSERT INTO product_characteristics VALUES (12, 10, "medium"); +INSERT INTO product_characteristics VALUES (8, 11, "high"); +INSERT INTO product_characteristics VALUES (14, 4, "medium"); +INSERT INTO product_characteristics VALUES (11, 3, "medium"); +INSERT INTO product_characteristics VALUES (6, 15, "high"); +INSERT INTO product_characteristics VALUES (11, 3, "high"); +INSERT INTO product_characteristics VALUES (6, 10, "high"); +INSERT INTO product_characteristics VALUES (12, 2, "high"); + + +COMMIT; diff --git a/all/databases/products_gen_characteristics/products_gen_characteristics.sqlite b/all/databases/products_gen_characteristics/products_gen_characteristics.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..5029d81faa6945f7be1d5618a4f71bea539279c4 Binary files /dev/null and b/all/databases/products_gen_characteristics/products_gen_characteristics.sqlite differ diff --git a/all/databases/products_gen_characteristics_total_0/products_gen_characteristics_total_0.sql b/all/databases/products_gen_characteristics_total_0/products_gen_characteristics_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..ed356cdb3fd42340a345b2152ffb1f7afd628003 --- /dev/null +++ b/all/databases/products_gen_characteristics_total_0/products_gen_characteristics_total_0.sql @@ -0,0 +1,61 @@ +create table ref_characteristic_types ( +characteristic_type_code text, +characteristic_type_description text +); +insert into ref_characteristic_types values('grade', 'grade'); +insert into ref_characteristic_types values('purity', 'purity'); + +create table ref_product_categories ( +product_category_code text, +product_category_description text, +unit_of_measure text +); +insert into ref_product_categories values('herbs', 'herbs', 'handful'); +insert into ref_product_categories values('seeds', 'seeds', 'weight - poundkilo.'); +insert into ref_product_categories values('spices', 'spices', 'weight - poundkilo.'); +create table products_product_characteristics_characteristics_ref_colors ( +product_id integer, +color_code text, +product_category_code text, +product_name text, +typical_buying_price text, +typical_selling_price text, +product_description text, +other_product_details null, +characteristic_id integer, +product_characteristic_value text, +characteristic_type_code text, +characteristic_data_type text, +characteristic_name text, +other_characteristic_details null, +color_description text); +insert into products_product_characteristics_characteristics_ref_colors values(1, '4', 'spices', 'cumin', '', '2878.3', 'et', 'NULL', 13, 'low', 'purity', 'mollitia', 'slow', 'null', 'blue'); +insert into products_product_characteristics_characteristics_ref_colors values(2, '2', 'spices', 'peper', '352447.2874677', '1892070.2803543', 'rerum', 'NULL', 'None', 'None', 'None', 'None', 'None', 'None', 'green'); +insert into products_product_characteristics_characteristics_ref_colors values(3, '9', 'herbs', 'basil', '503.8431967', '0.1859512', 'officia', 'NULL', 'None', 'None', 'None', 'None', 'None', 'None', 'gray'); +insert into products_product_characteristics_characteristics_ref_colors values(4, '1', 'herbs', 'borage', '', '10377614.847385', 'blanditiis', 'NULL', 'None', 'None', 'None', 'None', 'None', 'None', 'red'); +insert into products_product_characteristics_characteristics_ref_colors values(5, '4', 'spices', 'chili', '', '39446', 'eius', 'NULL', 15, 'low', 'grade', 'facere', 'slow', 'null', 'blue'); +insert into products_product_characteristics_characteristics_ref_colors values(6, '4', 'seeds', 'ginger', '5.578', '52735.6101', 'doloribus', 'NULL', 10, 'high', 'grade', 'velit', 'fast', 'null', 'blue'); +insert into products_product_characteristics_characteristics_ref_colors values(6, '4', 'seeds', 'ginger', '5.578', '52735.6101', 'doloribus', 'NULL', 15, 'high', 'grade', 'facere', 'slow', 'null', 'blue'); +insert into products_product_characteristics_characteristics_ref_colors values(7, '9', 'seeds', 'sesame', '1284268.0659', '68205825.7', 'et', 'NULL', 2, 'medium', 'grade', 'doloribus', 'fast', 'null', 'gray'); +insert into products_product_characteristics_characteristics_ref_colors values(7, '9', 'seeds', 'sesame', '1284268.0659', '68205825.7', 'et', 'NULL', 12, 'low', 'grade', 'totam', 'error', 'null', 'gray'); +insert into products_product_characteristics_characteristics_ref_colors values(8, '9', 'herbs', 'caraway', '24493', '', 'nulla', 'NULL', 11, 'high', 'purity', 'at', 'fast', 'null', 'gray'); +insert into products_product_characteristics_characteristics_ref_colors values(9, '2', 'herbs', 'catnip', '12008702.623', '21577.891642', 'vel', 'NULL', 'None', 'None', 'None', 'None', 'None', 'None', 'green'); +insert into products_product_characteristics_characteristics_ref_colors values(10, '5', 'seeds', 'flax', '339404395.7', '59622629.74', 'et', 'NULL', 'None', 'None', 'None', 'None', 'None', 'None', 'black'); +insert into products_product_characteristics_characteristics_ref_colors values(11, '7', 'herbs', 'chervil', '', '', 'minus', 'NULL', 2, 'low', 'grade', 'doloribus', 'fast', 'null', 'white'); +insert into products_product_characteristics_characteristics_ref_colors values(11, '7', 'herbs', 'chervil', '', '', 'minus', 'NULL', 3, 'high', 'purity', 'rem', 'warm', 'null', 'white'); +insert into products_product_characteristics_characteristics_ref_colors values(11, '7', 'herbs', 'chervil', '', '', 'minus', 'NULL', 3, 'medium', 'purity', 'rem', 'warm', 'null', 'white'); +insert into products_product_characteristics_characteristics_ref_colors values(11, '7', 'herbs', 'chervil', '', '', 'minus', 'NULL', 6, 'low', 'purity', 'qui', 'warm', 'null', 'white'); +insert into products_product_characteristics_characteristics_ref_colors values(12, '4', 'seeds', 'voluptatem', '162', '149', 'officia', 'NULL', 2, 'high', 'grade', 'doloribus', 'fast', 'null', 'blue'); +insert into products_product_characteristics_characteristics_ref_colors values(12, '4', 'seeds', 'voluptatem', '162', '149', 'officia', 'NULL', 10, 'medium', 'grade', 'velit', 'fast', 'null', 'blue'); +insert into products_product_characteristics_characteristics_ref_colors values(13, '5', 'spices', 'cinnam', '1686539.4', '17595111.4', 'nisi', 'NULL', 13, 'low', 'purity', 'mollitia', 'slow', 'null', 'black'); +insert into products_product_characteristics_characteristics_ref_colors values(14, '4', 'seeds', 'lotus', '43221310.465574', '63589.4054376', 'exercitationem', 'NULL', 4, 'medium', 'grade', 'aut', 'hot', 'null', 'blue'); +insert into products_product_characteristics_characteristics_ref_colors values(15, '2', 'herbs', 'laurel', '', '57857', 'ut', 'NULL', 'None', 'None', 'None', 'None', 'None', 'None', 'green'); +insert into products_product_characteristics_characteristics_ref_colors values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'None', 'grade', 'numquam', 'slow', 'null', 'None'); +insert into products_product_characteristics_characteristics_ref_colors values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 5, 'None', 'purity', 'impedit', 'hot', 'null', 'None'); +insert into products_product_characteristics_characteristics_ref_colors values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 7, 'None', 'grade', 'et', 'cool', 'null', 'None'); +insert into products_product_characteristics_characteristics_ref_colors values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 8, 'None', 'grade', 'dolores', 'cool', 'null', 'None'); +insert into products_product_characteristics_characteristics_ref_colors values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 9, 'None', 'grade', 'quam', 'cool', 'null', 'None'); +insert into products_product_characteristics_characteristics_ref_colors values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 14, 'None', 'purity', 'placeat', 'slow', 'null', 'None'); +insert into products_product_characteristics_characteristics_ref_colors values('None', '3', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'yellow'); +insert into products_product_characteristics_characteristics_ref_colors values('None', '8', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'purple'); + diff --git a/all/databases/products_gen_characteristics_total_0/products_gen_characteristics_total_0.sqlite b/all/databases/products_gen_characteristics_total_0/products_gen_characteristics_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..d85703b3fadf1c80441b34553a0ebb1b3aab6182 Binary files /dev/null and b/all/databases/products_gen_characteristics_total_0/products_gen_characteristics_total_0.sqlite differ diff --git a/all/databases/program_share/program_share.sql b/all/databases/program_share/program_share.sql new file mode 100644 index 0000000000000000000000000000000000000000..ea7edec737e9e72200d1e9dd6b69e95559dcdb47 --- /dev/null +++ b/all/databases/program_share/program_share.sql @@ -0,0 +1,70 @@ +CREATE TABLE "program" ( +"program_id" integer, +"name" text, +"origin" text, +"launch" real, +"owner" text +); + +INSERT INTO program VALUES (1, "aniworld", "hunan", 2005.0, "hunan broadcasting system hbs"); +INSERT INTO program VALUES (2, "kaku", "beijing", 2004.0, "beijing television btv"); +INSERT INTO program VALUES (3, "toonmax", "shanghai", 2005.0, "shanghai media group smg"); +INSERT INTO program VALUES (4, "jiajia", "guangdong", 2007.0, "southern media corporation smc"); +INSERT INTO program VALUES (5, "youman", "jiangsu", 2010.0, "jiangsu broadcasting corporation jsbc"); + +CREATE TABLE "channel" ( +"channel_id" integer, +"name" text, +"owner" text, +"share_in_percent" real, +"rating_in_percent" real +); + +INSERT INTO channel VALUES (1, "cctv-1", "cctv", 4.9, 0.54); +INSERT INTO channel VALUES (2, "hunan satellite tv", "hbs", 4.81, 0.53); +INSERT INTO channel VALUES (3, "cctv-8", "cctv", 3.76, 0.41); +INSERT INTO channel VALUES (4, "cctv-13", "cctv", 2.91, 0.32); +INSERT INTO channel VALUES (5, "cctv-3", "cctv", 2.86, 0.31); +INSERT INTO channel VALUES (6, "cctv-6", "cctv", 2.73, 0.3); +INSERT INTO channel VALUES (7, "cctv-14", "cctv", 2.6, 0.29); +INSERT INTO channel VALUES (8, "cctv-4", "cctv", 2.33, 0.26); +INSERT INTO channel VALUES (9, "anhui satellite tv", "anhui television", 1.78, 0.2); +INSERT INTO channel VALUES (10, "shandong satellite tv", "shandong television", 1.74, 0.19); + +CREATE TABLE "broadcast" ( +"channel_id" integer, +"program_id" integer, +"time_of_day" text +); + +INSERT INTO broadcast VALUES (1, 1, "morning"); +INSERT INTO broadcast VALUES (1, 2, "night"); +INSERT INTO broadcast VALUES (2, 1, "morning"); +INSERT INTO broadcast VALUES (3, 2, "night"); +INSERT INTO broadcast VALUES (4, 1, "morning"); +INSERT INTO broadcast VALUES (5, 4, "morning"); +INSERT INTO broadcast VALUES (6, 3, "noon"); +INSERT INTO broadcast VALUES (7, 3, "night"); +INSERT INTO broadcast VALUES (8, 2, "noon"); +INSERT INTO broadcast VALUES (9, 3, "night"); +INSERT INTO broadcast VALUES (10, 4, "night"); + +CREATE TABLE "broadcast_share" ( +"channel_id" integer, +"program_id" integer, +"date" text, +"share_in_percent" real +); + +INSERT INTO broadcast_share VALUES (1, 1, "01may", 3.1); +INSERT INTO broadcast_share VALUES (2, 1, "02may", 1.8); +INSERT INTO broadcast_share VALUES (3, 2, "03may", 2.8); +INSERT INTO broadcast_share VALUES (4, 1, "04april", 3.2); +INSERT INTO broadcast_share VALUES (5, 4, "01may", 1.1); +INSERT INTO broadcast_share VALUES (6, 3, "03may", 2.1); +INSERT INTO broadcast_share VALUES (7, 3, "10jun", 1.9); +INSERT INTO broadcast_share VALUES (8, 2, "11may", 4.2); +INSERT INTO broadcast_share VALUES (9, 3, "13may", 3.0); + + +COMMIT; diff --git a/all/databases/program_share/program_share.sqlite b/all/databases/program_share/program_share.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..dbae6f880facbd6ffc56bab7e8ebd8c8433c8fb9 Binary files /dev/null and b/all/databases/program_share/program_share.sqlite differ diff --git a/all/databases/race_track/race_track.sql b/all/databases/race_track/race_track.sql new file mode 100644 index 0000000000000000000000000000000000000000..db52d4ca80dabac702232f5312740ec45cd35014 --- /dev/null +++ b/all/databases/race_track/race_track.sql @@ -0,0 +1,36 @@ +CREATE TABLE "race" ( +"race_id" integer, +"name" text, +"class" text, +"date" text, +"track_id" text +); + +INSERT INTO race VALUES (1, "rolex 24 at daytona", "dp/gt", "january 26 january 27", "1"); +INSERT INTO race VALUES (2, "gainsco grand prix of miami", "dp/gt", "march 29", "2"); +INSERT INTO race VALUES (3, "mexico city 250", "dp/gt", "april 19", "2"); +INSERT INTO race VALUES (4, "bosch engineering 250 at vir", "gt", "april 27", "4"); +INSERT INTO race VALUES (5, "rumbum.com 250", "dp/gt", "may 17", "5"); +INSERT INTO race VALUES (6, "lime rock gt classic 250", "gt", "may 26", "6"); +INSERT INTO race VALUES (7, "sahlens six hours of the glen", "dp/gt", "june 7", "7"); + +CREATE TABLE "track" ( +"track_id" integer, +"name" text, +"location" text, +"seating" real, +"year_opened" real +); + +INSERT INTO track VALUES (1, "auto club speedway", "fontana ca", 92000.0, 1997.0); +INSERT INTO track VALUES (2, "chicagoland speedway", "joliet il", 75000.0, 2001.0); +INSERT INTO track VALUES (3, "darlington raceway", "darlington sc", 63000.0, 1950.0); +INSERT INTO track VALUES (4, "daytona international speedway", "daytona beach fl", 168000.0, 1959.0); +INSERT INTO track VALUES (5, "homestead-miami speedway", "homestead fl", 65000.0, 1995.0); +INSERT INTO track VALUES (6, "kansas speedway", "kansas city ks", 81687.0, 2001.0); +INSERT INTO track VALUES (7, "martinsville speedway", "ridgeway va", 65000.0, 1947.0); +INSERT INTO track VALUES (8, "michigan international speedway", "brooklyn mi", 137243.0, 1968.0); +INSERT INTO track VALUES (9, "phoenix international raceway", "avondale az", 76812.0, 1964.0); + + +COMMIT; diff --git a/all/databases/race_track/race_track.sqlite b/all/databases/race_track/race_track.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..768ec544bb68e60f67656c79d1a8ae0ac77829b4 Binary files /dev/null and b/all/databases/race_track/race_track.sqlite differ diff --git a/all/databases/railway/railway.sql b/all/databases/railway/railway.sql new file mode 100644 index 0000000000000000000000000000000000000000..759eed2f032e6454a1c1f0bf6f7890ea90af8a1b --- /dev/null +++ b/all/databases/railway/railway.sql @@ -0,0 +1,70 @@ +CREATE TABLE "railway" ( +"railway_id" integer, +"railway" text, +"builder" text, +"built" text, +"wheels" text, +"location" text, +"objectnumber" text +); + +INSERT INTO railway VALUES (1, "secr", "secr ashford", "1901", "4-4-0", "york", "1975-7006"); +INSERT INTO railway VALUES (2, "mr", "mr derby", "1902 midland railway 1000 was rebuilt in 1914.", "4-4-0", "boness", "1975-7018"); +INSERT INTO railway VALUES (3, "gnrd", "gnr doncaster", "1902", "4-4-2", "barrow hill", "1975-7005"); +INSERT INTO railway VALUES (4, "gwrs", "gwr swindon", "1903", "4-4-0", "toddington", "1978-7025"); +INSERT INTO railway VALUES (5, "gerst", "ger stratford", "1904", "0-6-0t", "bressingham", "1975-7003"); +INSERT INTO railway VALUES (6, "gerht", "ger hartford", "1905", "0-6-0", "barrow hill", "1978-7026"); +INSERT INTO railway VALUES (7, "gwrsn", "gwr swindon", "1905", "2-8-0", "shildon", "1976-7001"); +INSERT INTO railway VALUES (8, "gwrwk", "swindon works", "1907", "4-6-0", "swindon", "1978-7027"); +INSERT INTO railway VALUES (9, "ltsr", "stephenson", "1909", "4-4-2t", "bressingham", "1978-7028"); +INSERT INTO railway VALUES (10, "longmoor", "avonside", "1910", "0-6-0st", "basingstoke", "2008-7159"); + +CREATE TABLE "train" ( +"train_id" integer, +"train_num" text, +"name" text, +"from" text, +"arrival" text, +"railway_id" integer +); + +INSERT INTO train VALUES (1, "51195", "wardha-ballarshah pass", "wardha", "08:54", 1); +INSERT INTO train VALUES (2, "12139", "sewagram exp", "mumbai cst", "09:08", 1); +INSERT INTO train VALUES (3, "12140", "ballarshah-mumbai pass", "ballarshah", "09:48", 2); +INSERT INTO train VALUES (4, "57135", "nagpur-kazipet pass", "nagpur", "23:44", 3); +INSERT INTO train VALUES (5, "57136", "kazipet-nagpur pass", "kazipet", "05:09", 5); +INSERT INTO train VALUES (6, "16094", "lucknow-chennai exp", "lucknow", "13:04", 5); +INSERT INTO train VALUES (7, "16032", "andaman exp", "jammu tawi", "13:04", 7); +INSERT INTO train VALUES (8, "16031", "andaman exp", "chennai", "23:39", 9); +INSERT INTO train VALUES (9, "11401", "nandigram exp", "mumbai cst", "13:28", 10); + +CREATE TABLE "manager" ( +"manager_id" integer, +"name" text, +"country" text, +"working_year_starts" text, +"age" integer, +"level" integer +); + +INSERT INTO manager VALUES (1, "ben curtis", "united states", "2003", 45, 5); +INSERT INTO manager VALUES (2, "todd hamilton", "united states", "2004", 55, 5); +INSERT INTO manager VALUES (3, "tiger woods", "united states", "2006", 46, 5); +INSERT INTO manager VALUES (4, "david duval", "united states", "2001", 47, 7); +INSERT INTO manager VALUES (5, "sandy lyle", "scotland", "1985", 48, 8); +INSERT INTO manager VALUES (6, "nick faldo", "england", "1999", 51, 11); +INSERT INTO manager VALUES (7, "greg norman", "australia", "1993", 52, 12); + +CREATE TABLE "railway_manage" ( +"railway_id" integer, +"manager_id" integer, +"from_year" text +); + +INSERT INTO railway_manage VALUES (2, 4, "2010"); +INSERT INTO railway_manage VALUES (7, 3, "2011"); +INSERT INTO railway_manage VALUES (8, 1, "2012"); +INSERT INTO railway_manage VALUES (9, 2, "2013"); + + +COMMIT; diff --git a/all/databases/railway/railway.sqlite b/all/databases/railway/railway.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..1f50efd08375f78881059e8c2118e4f3b6479079 Binary files /dev/null and b/all/databases/railway/railway.sqlite differ diff --git a/all/databases/restaurants/restaurants.sql b/all/databases/restaurants/restaurants.sql new file mode 100644 index 0000000000000000000000000000000000000000..f770e187f5c61210417bbff9bf5497ca7631b8bf --- /dev/null +++ b/all/databases/restaurants/restaurants.sql @@ -0,0 +1,80 @@ +CREATE TABLE "geographic" ( +"city_name" text, +"county" text, +"region" text +); + +INSERT INTO geographic VALUES ("g", "o", "s"); +INSERT INTO geographic VALUES ("g", "o", "l"); +INSERT INTO geographic VALUES ("i", "y", "o"); +INSERT INTO geographic VALUES ("s", "o", "y"); +INSERT INTO geographic VALUES ("o", "y", "g"); +INSERT INTO geographic VALUES ("r", "i", "g"); +INSERT INTO geographic VALUES ("p", "l", "y"); +INSERT INTO geographic VALUES ("o", "r", "y"); +INSERT INTO geographic VALUES ("d", "l", "y"); +INSERT INTO geographic VALUES ("d", "y", "s"); +INSERT INTO geographic VALUES ("p", "i", "o"); +INSERT INTO geographic VALUES ("d", "s", "r"); +INSERT INTO geographic VALUES ("e", "d", "g"); +INSERT INTO geographic VALUES ("s", "s", "o"); +INSERT INTO geographic VALUES ("i", "o", "g"); +INSERT INTO geographic VALUES ("o", "p", "r"); +INSERT INTO geographic VALUES ("d", "r", "o"); +INSERT INTO geographic VALUES ("p", "s", "e"); +INSERT INTO geographic VALUES ("o", "i", "s"); +INSERT INTO geographic VALUES ("l", "p", "g"); +INSERT INTO geographic VALUES ("p", "l", "g"); +INSERT INTO geographic VALUES ("y", "o", "s"); + +CREATE TABLE "restaurant" ( +"id" text, +"name" text, +"food_type" text, +"city_name" text, +"rating" text +); + +INSERT INTO restaurant VALUES ("i", "y", "g", "d", "l"); +INSERT INTO restaurant VALUES ("i", "y", "g", "p", "d"); +INSERT INTO restaurant VALUES ("g", "o", "o", "d", "e"); +INSERT INTO restaurant VALUES ("o", "e", "e", "d", "r"); +INSERT INTO restaurant VALUES ("p", "y", "i", "l", "o"); +INSERT INTO restaurant VALUES ("o", "l", "p", "s", "r"); +INSERT INTO restaurant VALUES ("o", "i", "d", "p", "y"); +INSERT INTO restaurant VALUES ("s", "o", "o", "g", "o"); +INSERT INTO restaurant VALUES ("i", "s", "d", "o", "g"); +INSERT INTO restaurant VALUES ("p", "o", "o", "d", "d"); +INSERT INTO restaurant VALUES ("e", "o", "o", "i", "d"); +INSERT INTO restaurant VALUES ("g", "s", "y", "i", "o"); +INSERT INTO restaurant VALUES ("s", "e", "o", "p", "g"); +INSERT INTO restaurant VALUES ("d", "y", "y", "y", "d"); +INSERT INTO restaurant VALUES ("d", "o", "o", "o", "s"); +INSERT INTO restaurant VALUES ("o", "r", "o", "o", "o"); +INSERT INTO restaurant VALUES ("y", "i", "i", "d", "e"); +INSERT INTO restaurant VALUES ("o", "y", "p", "o", "g"); +INSERT INTO restaurant VALUES ("s", "e", "p", "i", "g"); +INSERT INTO restaurant VALUES ("i", "e", "d", "e", "e"); +INSERT INTO restaurant VALUES ("l", "p", "l", "e", "y"); +INSERT INTO restaurant VALUES ("o", "o", "p", "d", "l"); +INSERT INTO restaurant VALUES ("o", "g", "l", "d", "o"); +INSERT INTO restaurant VALUES ("y", "g", "p", "i", "y"); +INSERT INTO restaurant VALUES ("r", "r", "e", "s", "r"); + +CREATE TABLE "location" ( +"restaurant_id" text, +"house_number" text, +"street_name" text, +"city_name" text +); + +INSERT INTO location VALUES ("o", "y", "d", "o"); +INSERT INTO location VALUES ("l", "y", "r", "r"); +INSERT INTO location VALUES ("i", "r", "p", "s"); +INSERT INTO location VALUES ("o", "e", "s", "p"); +INSERT INTO location VALUES ("o", "r", "r", "l"); +INSERT INTO location VALUES ("l", "d", "g", "r"); +INSERT INTO location VALUES ("y", "l", "g", "s"); + + +COMMIT; diff --git a/all/databases/restaurants/restaurants.sqlite b/all/databases/restaurants/restaurants.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..c292413d058eb13134cc3f8cbcb18ee78015905e Binary files /dev/null and b/all/databases/restaurants/restaurants.sqlite differ diff --git a/all/databases/riding_club_minus_1_0/riding_club_minus_1_0.sql b/all/databases/riding_club_minus_1_0/riding_club_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..7a8c02773b2e5670df91dcb43cb424d10dc2177a --- /dev/null +++ b/all/databases/riding_club_minus_1_0/riding_club_minus_1_0.sql @@ -0,0 +1,70 @@ +create table player ( +player_id integer, +sponsor_name text, +player_name text, +gender text, +residence text, +occupation text, +votes integer, +rank text +); +insert into player values(1, 'brandon—souris', 'jean luc bouché', 'm', 'brandon', 'locomotive engineer', 6055, '2nd'); +insert into player values(2, 'charleswood—st. james—assiniboia', 'fiona shiells', 'f', 'winnipeg', 'ministerial assistant', 7190, '3rd'); +insert into player values(3, 'churchill', 'niki ashton', 'f', 'thompson', 'researcher', 8734, '1st'); +insert into player values(4, 'dauphin—swan river—marquette', 'ron strynadka', 'm', 'birtle', 'retired', 4914, '2nd'); +insert into player values(5, 'elmwood—transcona', 'jim maloway', 'm', 'winnipeg', 'small businessman', 14355, '1st'); +insert into player values(6, 'kildonan—st. paul', 'ross eadie', 'm', 'winnipeg', 'self employed / consultant', 12093, '2nd'); +insert into player values(7, 'portage—lisgar', 'mohamed alli', 'm', 'winnipeg', 'distribution centre associate', 2353, '4th'); +insert into player values(8, 'provencher', 'ross c. martin', 'm', 'oakbank', 'design coordinator', 4947, '2nd'); +insert into player values(9, 'saint boniface', 'matt schaubroeck', 'm', 'winnipeg', 'student', 5502, '3rd'); +insert into player values(10, 'selkirk—interlake', 'patricia cordner', 'f', 'selkirk', 'retired', 9506, '2nd'); +insert into player values(11, 'winnipeg centre', 'pat martin', 'm', 'winnipeg', 'parliamentarian', 12285, '1st'); +insert into player values(12, 'winnipeg north', 'judy wasylycia-leis', 'f', 'winnipeg', 'parliamentarian', 14097, '1st'); +insert into player values(13, 'winnipeg south', 'sean robert', 'm', 'winnipeg', 'product consultant - mlcc', 4673, '3rd'); +insert into player values(14, 'winnipeg south centre', 'rachel heinrichs', 'f', 'winnipeg', 'student', 5490, '3rd'); + +create table club ( +club_id integer, +club_name text, +region text, +start_year integer +); +insert into club values(1, 'aik', 'usa', 2009); +insert into club values(2, 'bk häcken', 'uk', 1998); +insert into club values(3, 'djurgårdens if', 'usa', 2005); +insert into club values(4, 'gefle if', 'korea', 2001); +insert into club values(5, 'halmstads bk', 'russia', 2000); +insert into club values(6, 'helsingborgs if', 'france', 2011); + +create table match_result ( +rank integer, +club_id integer, +gold integer, +big_silver integer, +small_silver integer, +bronze integer, +points integer +); +insert into match_result values(1, 1, 20, 14, 9, 8, 168); +insert into match_result values(2, 2, 13, 11, 16, 9, 139); +insert into match_result values(3, 3, 12, 9, 4, 7, 102); +insert into match_result values(4, 4, 5, 12, 10, 8, 89); +insert into match_result values(5, 5, 7, 7, 9, 10, 84); +insert into match_result values(6, 6, 6, 6, 6, 6, 66); +create table player_coach_coach ( +player_id integer, +coach_id integer, +starting_year integer, +coach_name text, +gender text, +club_id integer, +rank integer); +insert into player_coach_coach values(1, 1, 2010, 'jameson tomas', 'm', 1, 1); +insert into player_coach_coach values(2, 1, 2011, 'jameson tomas', 'm', 1, 1); +insert into player_coach_coach values(3, 1, 2012, 'jameson tomas', 'm', 1, 1); +insert into player_coach_coach values(4, 2, 2013, 'joe fabbri', 'f', 1, 2); +insert into player_coach_coach values(6, 3, 2012, 'robert chen', 'm', 3, 3); +insert into player_coach_coach values(10, 3, 2011, 'robert chen', 'm', 3, 3); +insert into player_coach_coach values(14, 5, 2010, 'smith brown', 'm', 1, 5); +insert into player_coach_coach values('None', 4, 'None', 'james wong', 'm', 3, 4); + diff --git a/all/databases/riding_club_minus_1_0/riding_club_minus_1_0.sqlite b/all/databases/riding_club_minus_1_0/riding_club_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..f0ed92562ec8f168e4d3950c699de90f06c14bd4 Binary files /dev/null and b/all/databases/riding_club_minus_1_0/riding_club_minus_1_0.sqlite differ diff --git a/all/databases/riding_club_total_0/riding_club_total_0.sql b/all/databases/riding_club_total_0/riding_club_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..1e5f7d75791284fbccfed9a40e7c16b687d7ec58 --- /dev/null +++ b/all/databases/riding_club_total_0/riding_club_total_0.sql @@ -0,0 +1,59 @@ +create table club ( +club_id integer, +club_name text, +region text, +start_year integer +); +insert into club values(1, 'aik', 'usa', 2009); +insert into club values(2, 'bk häcken', 'uk', 1998); +insert into club values(3, 'djurgårdens if', 'usa', 2005); +insert into club values(4, 'gefle if', 'korea', 2001); +insert into club values(5, 'halmstads bk', 'russia', 2000); +insert into club values(6, 'helsingborgs if', 'france', 2011); + +create table match_result ( +rank integer, +club_id integer, +gold integer, +big_silver integer, +small_silver integer, +bronze integer, +points integer +); +insert into match_result values(1, 1, 20, 14, 9, 8, 168); +insert into match_result values(2, 2, 13, 11, 16, 9, 139); +insert into match_result values(3, 3, 12, 9, 4, 7, 102); +insert into match_result values(4, 4, 5, 12, 10, 8, 89); +insert into match_result values(5, 5, 7, 7, 9, 10, 84); +insert into match_result values(6, 6, 6, 6, 6, 6, 66); +create table player_coach_coach_player ( +player_id integer, +coach_id integer, +starting_year integer, +coach_name text, +gender_player_coach_coach text, +club_id integer, +rank_player_coach_coach integer, +sponsor_name text, +player_name text, +gender_player text, +residence text, +occupation text, +votes integer, +rank_player text); +insert into player_coach_coach_player values(1, 1, 2010, 'jameson tomas', 'm', 1, 1, 'brandon—souris', 'jean luc bouché', 'm', 'brandon', 'locomotive engineer', 6055, '2nd'); +insert into player_coach_coach_player values(2, 1, 2011, 'jameson tomas', 'm', 1, 1, 'charleswood—st. james—assiniboia', 'fiona shiells', 'f', 'winnipeg', 'ministerial assistant', 7190, '3rd'); +insert into player_coach_coach_player values(3, 1, 2012, 'jameson tomas', 'm', 1, 1, 'churchill', 'niki ashton', 'f', 'thompson', 'researcher', 8734, '1st'); +insert into player_coach_coach_player values(4, 2, 2013, 'joe fabbri', 'f', 1, 2, 'dauphin—swan river—marquette', 'ron strynadka', 'm', 'birtle', 'retired', 4914, '2nd'); +insert into player_coach_coach_player values(6, 3, 2012, 'robert chen', 'm', 3, 3, 'kildonan—st. paul', 'ross eadie', 'm', 'winnipeg', 'self employed / consultant', 12093, '2nd'); +insert into player_coach_coach_player values(10, 3, 2011, 'robert chen', 'm', 3, 3, 'selkirk—interlake', 'patricia cordner', 'f', 'selkirk', 'retired', 9506, '2nd'); +insert into player_coach_coach_player values(14, 5, 2010, 'smith brown', 'm', 1, 5, 'winnipeg south centre', 'rachel heinrichs', 'f', 'winnipeg', 'student', 5490, '3rd'); +insert into player_coach_coach_player values('None', 4, 'None', 'james wong', 'm', 3, 4, 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into player_coach_coach_player values(5, 'None', 'None', 'None', 'None', 'None', 'None', 'elmwood—transcona', 'jim maloway', 'm', 'winnipeg', 'small businessman', 14355, '1st'); +insert into player_coach_coach_player values(7, 'None', 'None', 'None', 'None', 'None', 'None', 'portage—lisgar', 'mohamed alli', 'm', 'winnipeg', 'distribution centre associate', 2353, '4th'); +insert into player_coach_coach_player values(8, 'None', 'None', 'None', 'None', 'None', 'None', 'provencher', 'ross c. martin', 'm', 'oakbank', 'design coordinator', 4947, '2nd'); +insert into player_coach_coach_player values(9, 'None', 'None', 'None', 'None', 'None', 'None', 'saint boniface', 'matt schaubroeck', 'm', 'winnipeg', 'student', 5502, '3rd'); +insert into player_coach_coach_player values(11, 'None', 'None', 'None', 'None', 'None', 'None', 'winnipeg centre', 'pat martin', 'm', 'winnipeg', 'parliamentarian', 12285, '1st'); +insert into player_coach_coach_player values(12, 'None', 'None', 'None', 'None', 'None', 'None', 'winnipeg north', 'judy wasylycia-leis', 'f', 'winnipeg', 'parliamentarian', 14097, '1st'); +insert into player_coach_coach_player values(13, 'None', 'None', 'None', 'None', 'None', 'None', 'winnipeg south', 'sean robert', 'm', 'winnipeg', 'product consultant - mlcc', 4673, '3rd'); + diff --git a/all/databases/riding_club_total_0/riding_club_total_0.sqlite b/all/databases/riding_club_total_0/riding_club_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..364968f57dd77897f510921dde5694450f654b37 Binary files /dev/null and b/all/databases/riding_club_total_0/riding_club_total_0.sqlite differ diff --git a/all/databases/scholar_minus_1_2/scholar_minus_1_2.sql b/all/databases/scholar_minus_1_2/scholar_minus_1_2.sql new file mode 100644 index 0000000000000000000000000000000000000000..86d4e5847e12bcc1752faf115a358f95949836c9 --- /dev/null +++ b/all/databases/scholar_minus_1_2/scholar_minus_1_2.sql @@ -0,0 +1,264 @@ +create table venue ( +venueid text, +venuename text +); +insert into venue values('g', 'l'); +insert into venue values('o', 'l'); +insert into venue values('d', 'l'); +insert into venue values('d', 'd'); +insert into venue values('y', 'e'); +insert into venue values('l', 'l'); +insert into venue values('s', 'p'); +insert into venue values('p', 'y'); +insert into venue values('g', 'o'); +insert into venue values('l', 'i'); +insert into venue values('s', 'e'); +insert into venue values('s', 's'); +insert into venue values('o', 'e'); +insert into venue values('s', 'p'); +insert into venue values('i', 'i'); +insert into venue values('r', 'r'); +insert into venue values('y', 'p'); +insert into venue values('e', 'e'); +insert into venue values('r', 'y'); +insert into venue values('s', 'g'); +insert into venue values('o', 'e'); +insert into venue values('g', 'l'); +insert into venue values('r', 's'); +insert into venue values('o', 'o'); + +create table author ( +authorid text, +authorname text +); +insert into author values('i', 'r'); +insert into author values('g', 'e'); +insert into author values('i', 'p'); +insert into author values('l', 'o'); +insert into author values('d', 'i'); +insert into author values('g', 'i'); +insert into author values('i', 'i'); +insert into author values('g', 'y'); +insert into author values('g', 'o'); +insert into author values('o', 's'); +insert into author values('r', 'o'); +insert into author values('o', 'o'); +insert into author values('y', 'y'); +insert into author values('r', 'l'); +insert into author values('p', 'd'); +insert into author values('s', 'e'); +insert into author values('o', 'r'); +insert into author values('r', 'i'); +insert into author values('o', 'l'); +insert into author values('o', 'r'); +insert into author values('p', 'p'); +insert into author values('o', 'i'); +insert into author values('o', 'y'); +insert into author values('d', 'i'); +insert into author values('p', 'o'); +insert into author values('e', 'o'); + +create table dataset ( +datasetid text, +datasetname text +); +insert into dataset values('g', 'g'); +insert into dataset values('i', 'r'); +insert into dataset values('l', 'g'); +insert into dataset values('d', 'd'); +insert into dataset values('e', 'l'); +insert into dataset values('g', 'g'); +insert into dataset values('e', 'e'); +insert into dataset values('e', 's'); +insert into dataset values('y', 's'); + +create table journal ( +journalid text, +journalname text +); +insert into journal values('r', 'i'); +insert into journal values('e', 'e'); +insert into journal values('r', 'p'); +insert into journal values('o', 's'); +insert into journal values('i', 'y'); +insert into journal values('p', 'g'); +insert into journal values('r', 'i'); +insert into journal values('d', 'y'); +insert into journal values('d', 'o'); +insert into journal values('o', 'g'); +insert into journal values('e', 'o'); +insert into journal values('p', 'l'); + +create table keyphrase ( +keyphraseid text, +keyphrasename text +); +insert into keyphrase values('l', 'r'); +insert into keyphrase values('d', 'd'); +insert into keyphrase values('o', 'e'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('d', 'e'); +insert into keyphrase values('s', 'i'); +insert into keyphrase values('s', 'e'); +insert into keyphrase values('s', 'g'); +insert into keyphrase values('r', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('s', 'y'); +insert into keyphrase values('r', 'i'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('p', 'r'); +insert into keyphrase values('y', 's'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('e', 'y'); +insert into keyphrase values('l', 'p'); +insert into keyphrase values('e', 'g'); +insert into keyphrase values('g', 's'); +insert into keyphrase values('g', 'e'); +insert into keyphrase values('p', 'd'); + +create table paperdataset ( +paperid text, +datasetid text +); +insert into paperdataset values('i', 'l'); +insert into paperdataset values('g', 'p'); +insert into paperdataset values('e', 'r'); +insert into paperdataset values('y', 'o'); +insert into paperdataset values('s', 'p'); +insert into paperdataset values('y', 'r'); +insert into paperdataset values('g', 'o'); +insert into paperdataset values('s', 'g'); +insert into paperdataset values('i', 'y'); +insert into paperdataset values('l', 'o'); +insert into paperdataset values('d', 'l'); +insert into paperdataset values('o', 'l'); +insert into paperdataset values('g', 'y'); + +create table paperkeyphrase ( +paperid text, +keyphraseid text +); +insert into paperkeyphrase values('l', 'i'); +insert into paperkeyphrase values('e', 'e'); +insert into paperkeyphrase values('p', 'g'); +insert into paperkeyphrase values('g', 'd'); +insert into paperkeyphrase values('d', 'o'); +insert into paperkeyphrase values('i', 's'); +insert into paperkeyphrase values('p', 'g'); +insert into paperkeyphrase values('p', 'o'); +insert into paperkeyphrase values('d', 'g'); +insert into paperkeyphrase values('p', 'o'); +insert into paperkeyphrase values('o', 'g'); +insert into paperkeyphrase values('y', 'i'); +insert into paperkeyphrase values('p', 'o'); +insert into paperkeyphrase values('o', 'o'); +insert into paperkeyphrase values('y', 'e'); +insert into paperkeyphrase values('i', 'p'); +insert into paperkeyphrase values('e', 'd'); +insert into paperkeyphrase values('o', 'o'); +insert into paperkeyphrase values('s', 'r'); +insert into paperkeyphrase values('o', 'i'); +insert into paperkeyphrase values('d', 'y'); + +create table writes ( +paperid text, +authorid text +); +insert into writes values('i', 'o'); +insert into writes values('d', 's'); +insert into writes values('o', 'o'); +insert into writes values('o', 'o'); +insert into writes values('l', 'i'); +insert into writes values('i', 'i'); +insert into writes values('g', 'r'); +insert into writes values('d', 's'); +insert into writes values('l', 'g'); +insert into writes values('e', 'e'); +insert into writes values('y', 's'); +insert into writes values('d', 's'); +insert into writes values('o', 'o'); +insert into writes values('y', 's'); +insert into writes values('r', 'g'); +insert into writes values('i', 'd'); +insert into writes values('l', 'y'); +insert into writes values('g', 'e'); +create table paper_cite ( +paperid text, +title text, +venueid text, +year text, +numciting text, +numcitedby text, +journalid text, +citingpaperid text); +insert into paper_cite values('e', 'g', 'e', 'g', 'o', 'r', 'g', 'l'); +insert into paper_cite values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'g'); +insert into paper_cite values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'o'); +insert into paper_cite values('r', 'i', 'o', 'o', 'e', 'y', 'r', 'e'); +insert into paper_cite values('r', 'i', 'o', 'o', 'e', 'y', 'r', 'i'); +insert into paper_cite values('r', 'i', 'o', 'o', 'e', 'y', 'r', 'i'); +insert into paper_cite values('r', 'i', 'o', 'o', 'e', 'y', 'r', 'o'); +insert into paper_cite values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'g'); +insert into paper_cite values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'o'); +insert into paper_cite values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'o'); +insert into paper_cite values('y', 'i', 'l', 'r', 'r', 'g', 'o', 's'); +insert into paper_cite values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'y'); +insert into paper_cite values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's'); +insert into paper_cite values('l', 's', 'o', 'g', 'e', 'o', 'p', 'g'); +insert into paper_cite values('l', 's', 'o', 'g', 'e', 'o', 'p', 'o'); +insert into paper_cite values('p', 'y', 'g', 'g', 's', 'g', 'o', 'y'); +insert into paper_cite values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'y'); +insert into paper_cite values('g', 'o', 'p', 'd', 'g', 'o', 'g', 'e'); +insert into paper_cite values('g', 'o', 'p', 'd', 'g', 'o', 'g', 'o'); +insert into paper_cite values('g', 'o', 'p', 'd', 'g', 'o', 'g', 'p'); +insert into paper_cite values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'g'); +insert into paper_cite values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'o'); +insert into paper_cite values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'o'); +insert into paper_cite values('y', 'o', 'o', 'l', 'p', 'y', 'g', 's'); +insert into paper_cite values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'y'); +insert into paper_cite values('e', 'p', 'e', 'd', 'd', 'p', 'p', 'l'); +insert into paper_cite values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'y'); +insert into paper_cite values('e', 'r', 'o', 'y', 'd', 'o', 's', 'l'); +insert into paper_cite values('i', 'i', 'g', 'e', 'e', 's', 'd', 's'); +insert into paper_cite values('r', 'g', 'd', 'i', 's', 'l', 'd', 'e'); +insert into paper_cite values('r', 'g', 'd', 'i', 's', 'l', 'd', 'i'); +insert into paper_cite values('r', 'g', 'd', 'i', 's', 'l', 'd', 'i'); +insert into paper_cite values('r', 'g', 'd', 'i', 's', 'l', 'd', 'o'); +insert into paper_cite values('s', 'r', 'i', 'g', 'o', 'i', 'l', 's'); +insert into paper_cite values('s', 'r', 'i', 'g', 'o', 'i', 'l', 'y'); +insert into paper_cite values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i'); +insert into paper_cite values('o', 'o', 'e', 'o', 'i', 'i', 's', 'l'); +insert into paper_cite values('o', 'o', 'e', 'o', 'i', 'i', 's', 'l'); +insert into paper_cite values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o'); +insert into paper_cite values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o'); +insert into paper_cite values('o', 'o', 'e', 'o', 'i', 'i', 's', 'y'); +insert into paper_cite values('r', 'y', 'p', 'l', 'p', 's', 'e', 'e'); +insert into paper_cite values('r', 'y', 'p', 'l', 'p', 's', 'e', 'i'); +insert into paper_cite values('r', 'y', 'p', 'l', 'p', 's', 'e', 'i'); +insert into paper_cite values('r', 'y', 'p', 'l', 'p', 's', 'e', 'o'); +insert into paper_cite values('g', 'd', 's', 'o', 's', 'y', 'p', 'e'); +insert into paper_cite values('g', 'd', 's', 'o', 's', 'y', 'p', 'o'); +insert into paper_cite values('g', 'd', 's', 'o', 's', 'y', 'p', 'p'); +insert into paper_cite values('l', 's', 'l', 'p', 'l', 'l', 'y', 'g'); +insert into paper_cite values('l', 's', 'l', 'p', 'l', 'l', 'y', 'o'); +insert into paper_cite values('d', 's', 'p', 'g', 'o', 'y', 'i', 'None'); +insert into paper_cite values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'g'); +insert into paper_cite values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'o'); +insert into paper_cite values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'o'); +insert into paper_cite values('y', 'r', 'i', 'l', 'o', 'p', 'y', 's'); +insert into paper_cite values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'y'); +insert into paper_cite values('g', 'r', 'l', 'd', 'e', 'd', 'i', 'e'); +insert into paper_cite values('g', 'r', 'l', 'd', 'e', 'd', 'i', 'o'); +insert into paper_cite values('g', 'r', 'l', 'd', 'e', 'd', 'i', 'p'); +insert into paper_cite values('p', 'l', 's', 'e', 'i', 'r', 'l', 'y'); +insert into paper_cite values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i'); +insert into paper_cite values('o', 'p', 'i', 's', 'y', 'g', 'y', 'l'); +insert into paper_cite values('o', 'p', 'i', 's', 'y', 'g', 'y', 'l'); +insert into paper_cite values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o'); +insert into paper_cite values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o'); +insert into paper_cite values('o', 'p', 'i', 's', 'y', 'g', 'y', 'y'); + diff --git a/all/databases/scholar_minus_1_2/scholar_minus_1_2.sqlite b/all/databases/scholar_minus_1_2/scholar_minus_1_2.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..f10fb1024f070b6d5c76e4e7c3e12d8da62f207b Binary files /dev/null and b/all/databases/scholar_minus_1_2/scholar_minus_1_2.sqlite differ diff --git a/all/databases/scholar_minus_1_3/scholar_minus_1_3.sql b/all/databases/scholar_minus_1_3/scholar_minus_1_3.sql new file mode 100644 index 0000000000000000000000000000000000000000..9500282df03bcd219c8f33ec9d7b746eb240ac24 --- /dev/null +++ b/all/databases/scholar_minus_1_3/scholar_minus_1_3.sql @@ -0,0 +1,263 @@ +create table venue ( +venueid text, +venuename text +); +insert into venue values('g', 'l'); +insert into venue values('o', 'l'); +insert into venue values('d', 'l'); +insert into venue values('d', 'd'); +insert into venue values('y', 'e'); +insert into venue values('l', 'l'); +insert into venue values('s', 'p'); +insert into venue values('p', 'y'); +insert into venue values('g', 'o'); +insert into venue values('l', 'i'); +insert into venue values('s', 'e'); +insert into venue values('s', 's'); +insert into venue values('o', 'e'); +insert into venue values('s', 'p'); +insert into venue values('i', 'i'); +insert into venue values('r', 'r'); +insert into venue values('y', 'p'); +insert into venue values('e', 'e'); +insert into venue values('r', 'y'); +insert into venue values('s', 'g'); +insert into venue values('o', 'e'); +insert into venue values('g', 'l'); +insert into venue values('r', 's'); +insert into venue values('o', 'o'); + +create table dataset ( +datasetid text, +datasetname text +); +insert into dataset values('g', 'g'); +insert into dataset values('i', 'r'); +insert into dataset values('l', 'g'); +insert into dataset values('d', 'd'); +insert into dataset values('e', 'l'); +insert into dataset values('g', 'g'); +insert into dataset values('e', 'e'); +insert into dataset values('e', 's'); +insert into dataset values('y', 's'); + +create table journal ( +journalid text, +journalname text +); +insert into journal values('r', 'i'); +insert into journal values('e', 'e'); +insert into journal values('r', 'p'); +insert into journal values('o', 's'); +insert into journal values('i', 'y'); +insert into journal values('p', 'g'); +insert into journal values('r', 'i'); +insert into journal values('d', 'y'); +insert into journal values('d', 'o'); +insert into journal values('o', 'g'); +insert into journal values('e', 'o'); +insert into journal values('p', 'l'); + +create table keyphrase ( +keyphraseid text, +keyphrasename text +); +insert into keyphrase values('l', 'r'); +insert into keyphrase values('d', 'd'); +insert into keyphrase values('o', 'e'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('d', 'e'); +insert into keyphrase values('s', 'i'); +insert into keyphrase values('s', 'e'); +insert into keyphrase values('s', 'g'); +insert into keyphrase values('r', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('s', 'y'); +insert into keyphrase values('r', 'i'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('p', 'r'); +insert into keyphrase values('y', 's'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('e', 'y'); +insert into keyphrase values('l', 'p'); +insert into keyphrase values('e', 'g'); +insert into keyphrase values('g', 's'); +insert into keyphrase values('g', 'e'); +insert into keyphrase values('p', 'd'); + +create table paper ( +paperid text, +title text, +venueid text, +year text, +numciting text, +numcitedby text, +journalid text +); +insert into paper values('e', 'g', 'e', 'g', 'o', 'r', 'g'); +insert into paper values('l', 'd', 'i', 'g', 'e', 'g', 'p'); +insert into paper values('r', 'i', 'o', 'o', 'e', 'y', 'r'); +insert into paper values('y', 'i', 'l', 'r', 'r', 'g', 'o'); +insert into paper values('i', 'r', 'r', 'g', 'l', 'i', 'o'); +insert into paper values('l', 's', 'o', 'g', 'e', 'o', 'p'); +insert into paper values('p', 'y', 'g', 'g', 's', 'g', 'o'); +insert into paper values('p', 'y', 'd', 'd', 'r', 'o', 'd'); +insert into paper values('g', 'o', 'p', 'd', 'g', 'o', 'g'); +insert into paper values('y', 'o', 'o', 'l', 'p', 'y', 'g'); +insert into paper values('e', 'p', 'e', 'd', 'd', 'p', 'p'); +insert into paper values('p', 'i', 'd', 'p', 'e', 'e', 'i'); +insert into paper values('e', 'r', 'o', 'y', 'd', 'o', 's'); +insert into paper values('i', 'i', 'g', 'e', 'e', 's', 'd'); +insert into paper values('r', 'g', 'd', 'i', 's', 'l', 'd'); +insert into paper values('s', 'r', 'i', 'g', 'o', 'i', 'l'); +insert into paper values('o', 'o', 'e', 'o', 'i', 'i', 's'); +insert into paper values('r', 'y', 'p', 'l', 'p', 's', 'e'); +insert into paper values('g', 'd', 's', 'o', 's', 'y', 'p'); +insert into paper values('l', 's', 'l', 'p', 'l', 'l', 'y'); +insert into paper values('d', 's', 'p', 'g', 'o', 'y', 'i'); +insert into paper values('y', 'r', 'i', 'l', 'o', 'p', 'y'); +insert into paper values('g', 'r', 'l', 'd', 'e', 'd', 'i'); +insert into paper values('p', 'l', 's', 'e', 'i', 'r', 'l'); +insert into paper values('o', 'p', 'i', 's', 'y', 'g', 'y'); + +create table cite ( +citingpaperid text, +citedpaperid text +); +insert into cite values('y', 'o'); +insert into cite values('g', 'l'); +insert into cite values('y', 'y'); +insert into cite values('s', 'y'); +insert into cite values('o', 'g'); +insert into cite values('o', 'o'); +insert into cite values('o', 'o'); +insert into cite values('e', 'r'); +insert into cite values('e', 'g'); +insert into cite values('o', 'y'); +insert into cite values('i', 'o'); +insert into cite values('i', 'r'); +insert into cite values('p', 'g'); +insert into cite values('o', 'r'); +insert into cite values('i', 'r'); +insert into cite values('o', 'l'); +insert into cite values('l', 'e'); +insert into cite values('y', 'p'); +insert into cite values('g', 'y'); +insert into cite values('l', 'o'); +insert into cite values('y', 's'); +insert into cite values('l', 'o'); +insert into cite values('s', 's'); +insert into cite values('o', 'y'); +insert into cite values('s', 'i'); + +create table paperdataset ( +paperid text, +datasetid text +); +insert into paperdataset values('i', 'l'); +insert into paperdataset values('g', 'p'); +insert into paperdataset values('e', 'r'); +insert into paperdataset values('y', 'o'); +insert into paperdataset values('s', 'p'); +insert into paperdataset values('y', 'r'); +insert into paperdataset values('g', 'o'); +insert into paperdataset values('s', 'g'); +insert into paperdataset values('i', 'y'); +insert into paperdataset values('l', 'o'); +insert into paperdataset values('d', 'l'); +insert into paperdataset values('o', 'l'); +insert into paperdataset values('g', 'y'); + +create table paperkeyphrase ( +paperid text, +keyphraseid text +); +insert into paperkeyphrase values('l', 'i'); +insert into paperkeyphrase values('e', 'e'); +insert into paperkeyphrase values('p', 'g'); +insert into paperkeyphrase values('g', 'd'); +insert into paperkeyphrase values('d', 'o'); +insert into paperkeyphrase values('i', 's'); +insert into paperkeyphrase values('p', 'g'); +insert into paperkeyphrase values('p', 'o'); +insert into paperkeyphrase values('d', 'g'); +insert into paperkeyphrase values('p', 'o'); +insert into paperkeyphrase values('o', 'g'); +insert into paperkeyphrase values('y', 'i'); +insert into paperkeyphrase values('p', 'o'); +insert into paperkeyphrase values('o', 'o'); +insert into paperkeyphrase values('y', 'e'); +insert into paperkeyphrase values('i', 'p'); +insert into paperkeyphrase values('e', 'd'); +insert into paperkeyphrase values('o', 'o'); +insert into paperkeyphrase values('s', 'r'); +insert into paperkeyphrase values('o', 'i'); +insert into paperkeyphrase values('d', 'y'); +create table writes_author ( +paperid text, +authorid text, +authorname text); +insert into writes_author values('i', 'o', 'i'); +insert into writes_author values('i', 'o', 'l'); +insert into writes_author values('i', 'o', 'o'); +insert into writes_author values('i', 'o', 'r'); +insert into writes_author values('i', 'o', 'r'); +insert into writes_author values('i', 'o', 's'); +insert into writes_author values('i', 'o', 'y'); +insert into writes_author values('d', 's', 'e'); +insert into writes_author values('o', 'o', 'i'); +insert into writes_author values('o', 'o', 'l'); +insert into writes_author values('o', 'o', 'o'); +insert into writes_author values('o', 'o', 'r'); +insert into writes_author values('o', 'o', 'r'); +insert into writes_author values('o', 'o', 's'); +insert into writes_author values('o', 'o', 'y'); +insert into writes_author values('o', 'o', 'i'); +insert into writes_author values('o', 'o', 'l'); +insert into writes_author values('o', 'o', 'o'); +insert into writes_author values('o', 'o', 'r'); +insert into writes_author values('o', 'o', 'r'); +insert into writes_author values('o', 'o', 's'); +insert into writes_author values('o', 'o', 'y'); +insert into writes_author values('l', 'i', 'i'); +insert into writes_author values('l', 'i', 'p'); +insert into writes_author values('l', 'i', 'r'); +insert into writes_author values('i', 'i', 'i'); +insert into writes_author values('i', 'i', 'p'); +insert into writes_author values('i', 'i', 'r'); +insert into writes_author values('g', 'r', 'i'); +insert into writes_author values('g', 'r', 'l'); +insert into writes_author values('g', 'r', 'o'); +insert into writes_author values('d', 's', 'e'); +insert into writes_author values('l', 'g', 'e'); +insert into writes_author values('l', 'g', 'i'); +insert into writes_author values('l', 'g', 'o'); +insert into writes_author values('l', 'g', 'y'); +insert into writes_author values('e', 'e', 'o'); +insert into writes_author values('y', 's', 'e'); +insert into writes_author values('d', 's', 'e'); +insert into writes_author values('o', 'o', 'i'); +insert into writes_author values('o', 'o', 'l'); +insert into writes_author values('o', 'o', 'o'); +insert into writes_author values('o', 'o', 'r'); +insert into writes_author values('o', 'o', 'r'); +insert into writes_author values('o', 'o', 's'); +insert into writes_author values('o', 'o', 'y'); +insert into writes_author values('y', 's', 'e'); +insert into writes_author values('r', 'g', 'e'); +insert into writes_author values('r', 'g', 'i'); +insert into writes_author values('r', 'g', 'o'); +insert into writes_author values('r', 'g', 'y'); +insert into writes_author values('i', 'd', 'i'); +insert into writes_author values('i', 'd', 'i'); +insert into writes_author values('l', 'y', 'y'); +insert into writes_author values('g', 'e', 'o'); +insert into writes_author values('None', 'l', 'o'); +insert into writes_author values('None', 'p', 'd'); +insert into writes_author values('None', 'p', 'p'); +insert into writes_author values('None', 'p', 'o'); + diff --git a/all/databases/scholar_minus_1_3/scholar_minus_1_3.sqlite b/all/databases/scholar_minus_1_3/scholar_minus_1_3.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..78b478ca61bf92c0da259cf2cce751118d738408 Binary files /dev/null and b/all/databases/scholar_minus_1_3/scholar_minus_1_3.sqlite differ diff --git a/all/databases/scholar_minus_1_4/scholar_minus_1_4.sql b/all/databases/scholar_minus_1_4/scholar_minus_1_4.sql new file mode 100644 index 0000000000000000000000000000000000000000..040a62274cbfe9561524ba4943a78d01e166c424 --- /dev/null +++ b/all/databases/scholar_minus_1_4/scholar_minus_1_4.sql @@ -0,0 +1,258 @@ +create table author ( +authorid text, +authorname text +); +insert into author values('i', 'r'); +insert into author values('g', 'e'); +insert into author values('i', 'p'); +insert into author values('l', 'o'); +insert into author values('d', 'i'); +insert into author values('g', 'i'); +insert into author values('i', 'i'); +insert into author values('g', 'y'); +insert into author values('g', 'o'); +insert into author values('o', 's'); +insert into author values('r', 'o'); +insert into author values('o', 'o'); +insert into author values('y', 'y'); +insert into author values('r', 'l'); +insert into author values('p', 'd'); +insert into author values('s', 'e'); +insert into author values('o', 'r'); +insert into author values('r', 'i'); +insert into author values('o', 'l'); +insert into author values('o', 'r'); +insert into author values('p', 'p'); +insert into author values('o', 'i'); +insert into author values('o', 'y'); +insert into author values('d', 'i'); +insert into author values('p', 'o'); +insert into author values('e', 'o'); + +create table dataset ( +datasetid text, +datasetname text +); +insert into dataset values('g', 'g'); +insert into dataset values('i', 'r'); +insert into dataset values('l', 'g'); +insert into dataset values('d', 'd'); +insert into dataset values('e', 'l'); +insert into dataset values('g', 'g'); +insert into dataset values('e', 'e'); +insert into dataset values('e', 's'); +insert into dataset values('y', 's'); + +create table journal ( +journalid text, +journalname text +); +insert into journal values('r', 'i'); +insert into journal values('e', 'e'); +insert into journal values('r', 'p'); +insert into journal values('o', 's'); +insert into journal values('i', 'y'); +insert into journal values('p', 'g'); +insert into journal values('r', 'i'); +insert into journal values('d', 'y'); +insert into journal values('d', 'o'); +insert into journal values('o', 'g'); +insert into journal values('e', 'o'); +insert into journal values('p', 'l'); + +create table keyphrase ( +keyphraseid text, +keyphrasename text +); +insert into keyphrase values('l', 'r'); +insert into keyphrase values('d', 'd'); +insert into keyphrase values('o', 'e'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('d', 'e'); +insert into keyphrase values('s', 'i'); +insert into keyphrase values('s', 'e'); +insert into keyphrase values('s', 'g'); +insert into keyphrase values('r', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('s', 'y'); +insert into keyphrase values('r', 'i'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('p', 'r'); +insert into keyphrase values('y', 's'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('e', 'y'); +insert into keyphrase values('l', 'p'); +insert into keyphrase values('e', 'g'); +insert into keyphrase values('g', 's'); +insert into keyphrase values('g', 'e'); +insert into keyphrase values('p', 'd'); + +create table cite ( +citingpaperid text, +citedpaperid text +); +insert into cite values('y', 'o'); +insert into cite values('g', 'l'); +insert into cite values('y', 'y'); +insert into cite values('s', 'y'); +insert into cite values('o', 'g'); +insert into cite values('o', 'o'); +insert into cite values('o', 'o'); +insert into cite values('e', 'r'); +insert into cite values('e', 'g'); +insert into cite values('o', 'y'); +insert into cite values('i', 'o'); +insert into cite values('i', 'r'); +insert into cite values('p', 'g'); +insert into cite values('o', 'r'); +insert into cite values('i', 'r'); +insert into cite values('o', 'l'); +insert into cite values('l', 'e'); +insert into cite values('y', 'p'); +insert into cite values('g', 'y'); +insert into cite values('l', 'o'); +insert into cite values('y', 's'); +insert into cite values('l', 'o'); +insert into cite values('s', 's'); +insert into cite values('o', 'y'); +insert into cite values('s', 'i'); + +create table paperdataset ( +paperid text, +datasetid text +); +insert into paperdataset values('i', 'l'); +insert into paperdataset values('g', 'p'); +insert into paperdataset values('e', 'r'); +insert into paperdataset values('y', 'o'); +insert into paperdataset values('s', 'p'); +insert into paperdataset values('y', 'r'); +insert into paperdataset values('g', 'o'); +insert into paperdataset values('s', 'g'); +insert into paperdataset values('i', 'y'); +insert into paperdataset values('l', 'o'); +insert into paperdataset values('d', 'l'); +insert into paperdataset values('o', 'l'); +insert into paperdataset values('g', 'y'); + +create table paperkeyphrase ( +paperid text, +keyphraseid text +); +insert into paperkeyphrase values('l', 'i'); +insert into paperkeyphrase values('e', 'e'); +insert into paperkeyphrase values('p', 'g'); +insert into paperkeyphrase values('g', 'd'); +insert into paperkeyphrase values('d', 'o'); +insert into paperkeyphrase values('i', 's'); +insert into paperkeyphrase values('p', 'g'); +insert into paperkeyphrase values('p', 'o'); +insert into paperkeyphrase values('d', 'g'); +insert into paperkeyphrase values('p', 'o'); +insert into paperkeyphrase values('o', 'g'); +insert into paperkeyphrase values('y', 'i'); +insert into paperkeyphrase values('p', 'o'); +insert into paperkeyphrase values('o', 'o'); +insert into paperkeyphrase values('y', 'e'); +insert into paperkeyphrase values('i', 'p'); +insert into paperkeyphrase values('e', 'd'); +insert into paperkeyphrase values('o', 'o'); +insert into paperkeyphrase values('s', 'r'); +insert into paperkeyphrase values('o', 'i'); +insert into paperkeyphrase values('d', 'y'); + +create table writes ( +paperid text, +authorid text +); +insert into writes values('i', 'o'); +insert into writes values('d', 's'); +insert into writes values('o', 'o'); +insert into writes values('o', 'o'); +insert into writes values('l', 'i'); +insert into writes values('i', 'i'); +insert into writes values('g', 'r'); +insert into writes values('d', 's'); +insert into writes values('l', 'g'); +insert into writes values('e', 'e'); +insert into writes values('y', 's'); +insert into writes values('d', 's'); +insert into writes values('o', 'o'); +insert into writes values('y', 's'); +insert into writes values('r', 'g'); +insert into writes values('i', 'd'); +insert into writes values('l', 'y'); +insert into writes values('g', 'e'); +create table venue_paper ( +venueid text, +venuename text, +paperid text, +title text, +year text, +numciting text, +numcitedby text, +journalid text); +insert into venue_paper values('g', 'l', 'i', 'i', 'e', 'e', 's', 'd'); +insert into venue_paper values('g', 'l', 'p', 'y', 'g', 's', 'g', 'o'); +insert into venue_paper values('o', 'l', 'e', 'r', 'y', 'd', 'o', 's'); +insert into venue_paper values('o', 'l', 'l', 's', 'g', 'e', 'o', 'p'); +insert into venue_paper values('o', 'l', 'r', 'i', 'o', 'e', 'y', 'r'); +insert into venue_paper values('o', 'l', 'y', 'o', 'l', 'p', 'y', 'g'); +insert into venue_paper values('d', 'l', 'p', 'i', 'p', 'e', 'e', 'i'); +insert into venue_paper values('d', 'l', 'p', 'y', 'd', 'r', 'o', 'd'); +insert into venue_paper values('d', 'l', 'r', 'g', 'i', 's', 'l', 'd'); +insert into venue_paper values('d', 'd', 'p', 'i', 'p', 'e', 'e', 'i'); +insert into venue_paper values('d', 'd', 'p', 'y', 'd', 'r', 'o', 'd'); +insert into venue_paper values('d', 'd', 'r', 'g', 'i', 's', 'l', 'd'); +insert into venue_paper values('y', 'e', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into venue_paper values('l', 'l', 'g', 'r', 'd', 'e', 'd', 'i'); +insert into venue_paper values('l', 'l', 'l', 's', 'p', 'l', 'l', 'y'); +insert into venue_paper values('l', 'l', 'y', 'i', 'r', 'r', 'g', 'o'); +insert into venue_paper values('s', 'p', 'g', 'd', 'o', 's', 'y', 'p'); +insert into venue_paper values('s', 'p', 'p', 'l', 'e', 'i', 'r', 'l'); +insert into venue_paper values('p', 'y', 'd', 's', 'g', 'o', 'y', 'i'); +insert into venue_paper values('p', 'y', 'g', 'o', 'd', 'g', 'o', 'g'); +insert into venue_paper values('p', 'y', 'r', 'y', 'l', 'p', 's', 'e'); +insert into venue_paper values('g', 'o', 'i', 'i', 'e', 'e', 's', 'd'); +insert into venue_paper values('g', 'o', 'p', 'y', 'g', 's', 'g', 'o'); +insert into venue_paper values('l', 'i', 'g', 'r', 'd', 'e', 'd', 'i'); +insert into venue_paper values('l', 'i', 'l', 's', 'p', 'l', 'l', 'y'); +insert into venue_paper values('l', 'i', 'y', 'i', 'r', 'r', 'g', 'o'); +insert into venue_paper values('s', 'e', 'g', 'd', 'o', 's', 'y', 'p'); +insert into venue_paper values('s', 'e', 'p', 'l', 'e', 'i', 'r', 'l'); +insert into venue_paper values('s', 's', 'g', 'd', 'o', 's', 'y', 'p'); +insert into venue_paper values('s', 's', 'p', 'l', 'e', 'i', 'r', 'l'); +insert into venue_paper values('o', 'e', 'e', 'r', 'y', 'd', 'o', 's'); +insert into venue_paper values('o', 'e', 'l', 's', 'g', 'e', 'o', 'p'); +insert into venue_paper values('o', 'e', 'r', 'i', 'o', 'e', 'y', 'r'); +insert into venue_paper values('o', 'e', 'y', 'o', 'l', 'p', 'y', 'g'); +insert into venue_paper values('s', 'p', 'g', 'd', 'o', 's', 'y', 'p'); +insert into venue_paper values('s', 'p', 'p', 'l', 'e', 'i', 'r', 'l'); +insert into venue_paper values('i', 'i', 'l', 'd', 'g', 'e', 'g', 'p'); +insert into venue_paper values('i', 'i', 'o', 'p', 's', 'y', 'g', 'y'); +insert into venue_paper values('i', 'i', 's', 'r', 'g', 'o', 'i', 'l'); +insert into venue_paper values('i', 'i', 'y', 'r', 'l', 'o', 'p', 'y'); +insert into venue_paper values('r', 'r', 'i', 'r', 'g', 'l', 'i', 'o'); +insert into venue_paper values('y', 'p', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into venue_paper values('e', 'e', 'e', 'g', 'g', 'o', 'r', 'g'); +insert into venue_paper values('e', 'e', 'e', 'p', 'd', 'd', 'p', 'p'); +insert into venue_paper values('e', 'e', 'o', 'o', 'o', 'i', 'i', 's'); +insert into venue_paper values('r', 'y', 'i', 'r', 'g', 'l', 'i', 'o'); +insert into venue_paper values('s', 'g', 'g', 'd', 'o', 's', 'y', 'p'); +insert into venue_paper values('s', 'g', 'p', 'l', 'e', 'i', 'r', 'l'); +insert into venue_paper values('o', 'e', 'e', 'r', 'y', 'd', 'o', 's'); +insert into venue_paper values('o', 'e', 'l', 's', 'g', 'e', 'o', 'p'); +insert into venue_paper values('o', 'e', 'r', 'i', 'o', 'e', 'y', 'r'); +insert into venue_paper values('o', 'e', 'y', 'o', 'l', 'p', 'y', 'g'); +insert into venue_paper values('g', 'l', 'i', 'i', 'e', 'e', 's', 'd'); +insert into venue_paper values('g', 'l', 'p', 'y', 'g', 's', 'g', 'o'); +insert into venue_paper values('r', 's', 'i', 'r', 'g', 'l', 'i', 'o'); +insert into venue_paper values('o', 'o', 'e', 'r', 'y', 'd', 'o', 's'); +insert into venue_paper values('o', 'o', 'l', 's', 'g', 'e', 'o', 'p'); +insert into venue_paper values('o', 'o', 'r', 'i', 'o', 'e', 'y', 'r'); +insert into venue_paper values('o', 'o', 'y', 'o', 'l', 'p', 'y', 'g'); + diff --git a/all/databases/scholar_minus_1_4/scholar_minus_1_4.sqlite b/all/databases/scholar_minus_1_4/scholar_minus_1_4.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..4981e43393787e457e21533400238113fd5f2530 Binary files /dev/null and b/all/databases/scholar_minus_1_4/scholar_minus_1_4.sqlite differ diff --git a/all/databases/scholar_minus_1_5/scholar_minus_1_5.sql b/all/databases/scholar_minus_1_5/scholar_minus_1_5.sql new file mode 100644 index 0000000000000000000000000000000000000000..6dcf10fcca982c19e826cd252b244bb9b1c451cc --- /dev/null +++ b/all/databases/scholar_minus_1_5/scholar_minus_1_5.sql @@ -0,0 +1,259 @@ +create table venue ( +venueid text, +venuename text +); +insert into venue values('g', 'l'); +insert into venue values('o', 'l'); +insert into venue values('d', 'l'); +insert into venue values('d', 'd'); +insert into venue values('y', 'e'); +insert into venue values('l', 'l'); +insert into venue values('s', 'p'); +insert into venue values('p', 'y'); +insert into venue values('g', 'o'); +insert into venue values('l', 'i'); +insert into venue values('s', 'e'); +insert into venue values('s', 's'); +insert into venue values('o', 'e'); +insert into venue values('s', 'p'); +insert into venue values('i', 'i'); +insert into venue values('r', 'r'); +insert into venue values('y', 'p'); +insert into venue values('e', 'e'); +insert into venue values('r', 'y'); +insert into venue values('s', 'g'); +insert into venue values('o', 'e'); +insert into venue values('g', 'l'); +insert into venue values('r', 's'); +insert into venue values('o', 'o'); + +create table author ( +authorid text, +authorname text +); +insert into author values('i', 'r'); +insert into author values('g', 'e'); +insert into author values('i', 'p'); +insert into author values('l', 'o'); +insert into author values('d', 'i'); +insert into author values('g', 'i'); +insert into author values('i', 'i'); +insert into author values('g', 'y'); +insert into author values('g', 'o'); +insert into author values('o', 's'); +insert into author values('r', 'o'); +insert into author values('o', 'o'); +insert into author values('y', 'y'); +insert into author values('r', 'l'); +insert into author values('p', 'd'); +insert into author values('s', 'e'); +insert into author values('o', 'r'); +insert into author values('r', 'i'); +insert into author values('o', 'l'); +insert into author values('o', 'r'); +insert into author values('p', 'p'); +insert into author values('o', 'i'); +insert into author values('o', 'y'); +insert into author values('d', 'i'); +insert into author values('p', 'o'); +insert into author values('e', 'o'); + +create table dataset ( +datasetid text, +datasetname text +); +insert into dataset values('g', 'g'); +insert into dataset values('i', 'r'); +insert into dataset values('l', 'g'); +insert into dataset values('d', 'd'); +insert into dataset values('e', 'l'); +insert into dataset values('g', 'g'); +insert into dataset values('e', 'e'); +insert into dataset values('e', 's'); +insert into dataset values('y', 's'); + +create table journal ( +journalid text, +journalname text +); +insert into journal values('r', 'i'); +insert into journal values('e', 'e'); +insert into journal values('r', 'p'); +insert into journal values('o', 's'); +insert into journal values('i', 'y'); +insert into journal values('p', 'g'); +insert into journal values('r', 'i'); +insert into journal values('d', 'y'); +insert into journal values('d', 'o'); +insert into journal values('o', 'g'); +insert into journal values('e', 'o'); +insert into journal values('p', 'l'); + +create table keyphrase ( +keyphraseid text, +keyphrasename text +); +insert into keyphrase values('l', 'r'); +insert into keyphrase values('d', 'd'); +insert into keyphrase values('o', 'e'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('d', 'e'); +insert into keyphrase values('s', 'i'); +insert into keyphrase values('s', 'e'); +insert into keyphrase values('s', 'g'); +insert into keyphrase values('r', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('s', 'y'); +insert into keyphrase values('r', 'i'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('p', 'r'); +insert into keyphrase values('y', 's'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('e', 'y'); +insert into keyphrase values('l', 'p'); +insert into keyphrase values('e', 'g'); +insert into keyphrase values('g', 's'); +insert into keyphrase values('g', 'e'); +insert into keyphrase values('p', 'd'); + +create table cite ( +citingpaperid text, +citedpaperid text +); +insert into cite values('y', 'o'); +insert into cite values('g', 'l'); +insert into cite values('y', 'y'); +insert into cite values('s', 'y'); +insert into cite values('o', 'g'); +insert into cite values('o', 'o'); +insert into cite values('o', 'o'); +insert into cite values('e', 'r'); +insert into cite values('e', 'g'); +insert into cite values('o', 'y'); +insert into cite values('i', 'o'); +insert into cite values('i', 'r'); +insert into cite values('p', 'g'); +insert into cite values('o', 'r'); +insert into cite values('i', 'r'); +insert into cite values('o', 'l'); +insert into cite values('l', 'e'); +insert into cite values('y', 'p'); +insert into cite values('g', 'y'); +insert into cite values('l', 'o'); +insert into cite values('y', 's'); +insert into cite values('l', 'o'); +insert into cite values('s', 's'); +insert into cite values('o', 'y'); +insert into cite values('s', 'i'); + +create table paperdataset ( +paperid text, +datasetid text +); +insert into paperdataset values('i', 'l'); +insert into paperdataset values('g', 'p'); +insert into paperdataset values('e', 'r'); +insert into paperdataset values('y', 'o'); +insert into paperdataset values('s', 'p'); +insert into paperdataset values('y', 'r'); +insert into paperdataset values('g', 'o'); +insert into paperdataset values('s', 'g'); +insert into paperdataset values('i', 'y'); +insert into paperdataset values('l', 'o'); +insert into paperdataset values('d', 'l'); +insert into paperdataset values('o', 'l'); +insert into paperdataset values('g', 'y'); + +create table writes ( +paperid text, +authorid text +); +insert into writes values('i', 'o'); +insert into writes values('d', 's'); +insert into writes values('o', 'o'); +insert into writes values('o', 'o'); +insert into writes values('l', 'i'); +insert into writes values('i', 'i'); +insert into writes values('g', 'r'); +insert into writes values('d', 's'); +insert into writes values('l', 'g'); +insert into writes values('e', 'e'); +insert into writes values('y', 's'); +insert into writes values('d', 's'); +insert into writes values('o', 'o'); +insert into writes values('y', 's'); +insert into writes values('r', 'g'); +insert into writes values('i', 'd'); +insert into writes values('l', 'y'); +insert into writes values('g', 'e'); +create table paper_paperkeyphrase ( +paperid text, +title text, +venueid text, +year text, +numciting text, +numcitedby text, +journalid text, +keyphraseid text); +insert into paper_paperkeyphrase values('e', 'g', 'e', 'g', 'o', 'r', 'g', 'd'); +insert into paper_paperkeyphrase values('e', 'g', 'e', 'g', 'o', 'r', 'g', 'e'); +insert into paper_paperkeyphrase values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'i'); +insert into paper_paperkeyphrase values('r', 'i', 'o', 'o', 'e', 'y', 'r', 'None'); +insert into paper_paperkeyphrase values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'e'); +insert into paper_paperkeyphrase values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'i'); +insert into paper_paperkeyphrase values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p'); +insert into paper_paperkeyphrase values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's'); +insert into paper_paperkeyphrase values('l', 's', 'o', 'g', 'e', 'o', 'p', 'i'); +insert into paper_paperkeyphrase values('p', 'y', 'g', 'g', 's', 'g', 'o', 'g'); +insert into paper_paperkeyphrase values('p', 'y', 'g', 'g', 's', 'g', 'o', 'g'); +insert into paper_paperkeyphrase values('p', 'y', 'g', 'g', 's', 'g', 'o', 'o'); +insert into paper_paperkeyphrase values('p', 'y', 'g', 'g', 's', 'g', 'o', 'o'); +insert into paper_paperkeyphrase values('p', 'y', 'g', 'g', 's', 'g', 'o', 'o'); +insert into paper_paperkeyphrase values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'g'); +insert into paper_paperkeyphrase values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'g'); +insert into paper_paperkeyphrase values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'o'); +insert into paper_paperkeyphrase values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'o'); +insert into paper_paperkeyphrase values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'o'); +insert into paper_paperkeyphrase values('g', 'o', 'p', 'd', 'g', 'o', 'g', 'd'); +insert into paper_paperkeyphrase values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'e'); +insert into paper_paperkeyphrase values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'i'); +insert into paper_paperkeyphrase values('e', 'p', 'e', 'd', 'd', 'p', 'p', 'd'); +insert into paper_paperkeyphrase values('e', 'p', 'e', 'd', 'd', 'p', 'p', 'e'); +insert into paper_paperkeyphrase values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'g'); +insert into paper_paperkeyphrase values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'g'); +insert into paper_paperkeyphrase values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'o'); +insert into paper_paperkeyphrase values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'o'); +insert into paper_paperkeyphrase values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'o'); +insert into paper_paperkeyphrase values('e', 'r', 'o', 'y', 'd', 'o', 's', 'd'); +insert into paper_paperkeyphrase values('e', 'r', 'o', 'y', 'd', 'o', 's', 'e'); +insert into paper_paperkeyphrase values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p'); +insert into paper_paperkeyphrase values('i', 'i', 'g', 'e', 'e', 's', 'd', 's'); +insert into paper_paperkeyphrase values('r', 'g', 'd', 'i', 's', 'l', 'd', 'None'); +insert into paper_paperkeyphrase values('s', 'r', 'i', 'g', 'o', 'i', 'l', 'r'); +insert into paper_paperkeyphrase values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g'); +insert into paper_paperkeyphrase values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i'); +insert into paper_paperkeyphrase values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o'); +insert into paper_paperkeyphrase values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o'); +insert into paper_paperkeyphrase values('r', 'y', 'p', 'l', 'p', 's', 'e', 'None'); +insert into paper_paperkeyphrase values('g', 'd', 's', 'o', 's', 'y', 'p', 'd'); +insert into paper_paperkeyphrase values('l', 's', 'l', 'p', 'l', 'l', 'y', 'i'); +insert into paper_paperkeyphrase values('d', 's', 'p', 'g', 'o', 'y', 'i', 'g'); +insert into paper_paperkeyphrase values('d', 's', 'p', 'g', 'o', 'y', 'i', 'o'); +insert into paper_paperkeyphrase values('d', 's', 'p', 'g', 'o', 'y', 'i', 'y'); +insert into paper_paperkeyphrase values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'e'); +insert into paper_paperkeyphrase values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'i'); +insert into paper_paperkeyphrase values('g', 'r', 'l', 'd', 'e', 'd', 'i', 'd'); +insert into paper_paperkeyphrase values('p', 'l', 's', 'e', 'i', 'r', 'l', 'g'); +insert into paper_paperkeyphrase values('p', 'l', 's', 'e', 'i', 'r', 'l', 'g'); +insert into paper_paperkeyphrase values('p', 'l', 's', 'e', 'i', 'r', 'l', 'o'); +insert into paper_paperkeyphrase values('p', 'l', 's', 'e', 'i', 'r', 'l', 'o'); +insert into paper_paperkeyphrase values('p', 'l', 's', 'e', 'i', 'r', 'l', 'o'); +insert into paper_paperkeyphrase values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g'); +insert into paper_paperkeyphrase values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i'); +insert into paper_paperkeyphrase values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o'); +insert into paper_paperkeyphrase values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o'); + diff --git a/all/databases/scholar_minus_1_5/scholar_minus_1_5.sqlite b/all/databases/scholar_minus_1_5/scholar_minus_1_5.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..af4b88983cc13fa7c749da40726ada6dd9553b8f Binary files /dev/null and b/all/databases/scholar_minus_1_5/scholar_minus_1_5.sqlite differ diff --git a/all/databases/scholar_total_12/scholar_total_12.sql b/all/databases/scholar_total_12/scholar_total_12.sql new file mode 100644 index 0000000000000000000000000000000000000000..3907015b7334f633782af4e677451111a2561c43 --- /dev/null +++ b/all/databases/scholar_total_12/scholar_total_12.sql @@ -0,0 +1,466 @@ +create table venue ( +venueid text, +venuename text +); +insert into venue values('g', 'l'); +insert into venue values('o', 'l'); +insert into venue values('d', 'l'); +insert into venue values('d', 'd'); +insert into venue values('y', 'e'); +insert into venue values('l', 'l'); +insert into venue values('s', 'p'); +insert into venue values('p', 'y'); +insert into venue values('g', 'o'); +insert into venue values('l', 'i'); +insert into venue values('s', 'e'); +insert into venue values('s', 's'); +insert into venue values('o', 'e'); +insert into venue values('s', 'p'); +insert into venue values('i', 'i'); +insert into venue values('r', 'r'); +insert into venue values('y', 'p'); +insert into venue values('e', 'e'); +insert into venue values('r', 'y'); +insert into venue values('s', 'g'); +insert into venue values('o', 'e'); +insert into venue values('g', 'l'); +insert into venue values('r', 's'); +insert into venue values('o', 'o'); + +create table dataset ( +datasetid text, +datasetname text +); +insert into dataset values('g', 'g'); +insert into dataset values('i', 'r'); +insert into dataset values('l', 'g'); +insert into dataset values('d', 'd'); +insert into dataset values('e', 'l'); +insert into dataset values('g', 'g'); +insert into dataset values('e', 'e'); +insert into dataset values('e', 's'); +insert into dataset values('y', 's'); + +create table journal ( +journalid text, +journalname text +); +insert into journal values('r', 'i'); +insert into journal values('e', 'e'); +insert into journal values('r', 'p'); +insert into journal values('o', 's'); +insert into journal values('i', 'y'); +insert into journal values('p', 'g'); +insert into journal values('r', 'i'); +insert into journal values('d', 'y'); +insert into journal values('d', 'o'); +insert into journal values('o', 'g'); +insert into journal values('e', 'o'); +insert into journal values('p', 'l'); + +create table keyphrase ( +keyphraseid text, +keyphrasename text +); +insert into keyphrase values('l', 'r'); +insert into keyphrase values('d', 'd'); +insert into keyphrase values('o', 'e'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('d', 'e'); +insert into keyphrase values('s', 'i'); +insert into keyphrase values('s', 'e'); +insert into keyphrase values('s', 'g'); +insert into keyphrase values('r', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('s', 'y'); +insert into keyphrase values('r', 'i'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('g', 'r'); +insert into keyphrase values('i', 'g'); +insert into keyphrase values('r', 'r'); +insert into keyphrase values('p', 'r'); +insert into keyphrase values('y', 's'); +insert into keyphrase values('d', 'l'); +insert into keyphrase values('e', 'y'); +insert into keyphrase values('l', 'p'); +insert into keyphrase values('e', 'g'); +insert into keyphrase values('g', 's'); +insert into keyphrase values('g', 'e'); +insert into keyphrase values('p', 'd'); + +create table cite ( +citingpaperid text, +citedpaperid text +); +insert into cite values('y', 'o'); +insert into cite values('g', 'l'); +insert into cite values('y', 'y'); +insert into cite values('s', 'y'); +insert into cite values('o', 'g'); +insert into cite values('o', 'o'); +insert into cite values('o', 'o'); +insert into cite values('e', 'r'); +insert into cite values('e', 'g'); +insert into cite values('o', 'y'); +insert into cite values('i', 'o'); +insert into cite values('i', 'r'); +insert into cite values('p', 'g'); +insert into cite values('o', 'r'); +insert into cite values('i', 'r'); +insert into cite values('o', 'l'); +insert into cite values('l', 'e'); +insert into cite values('y', 'p'); +insert into cite values('g', 'y'); +insert into cite values('l', 'o'); +insert into cite values('y', 's'); +insert into cite values('l', 'o'); +insert into cite values('s', 's'); +insert into cite values('o', 'y'); +insert into cite values('s', 'i'); + +create table paperdataset ( +paperid text, +datasetid text +); +insert into paperdataset values('i', 'l'); +insert into paperdataset values('g', 'p'); +insert into paperdataset values('e', 'r'); +insert into paperdataset values('y', 'o'); +insert into paperdataset values('s', 'p'); +insert into paperdataset values('y', 'r'); +insert into paperdataset values('g', 'o'); +insert into paperdataset values('s', 'g'); +insert into paperdataset values('i', 'y'); +insert into paperdataset values('l', 'o'); +insert into paperdataset values('d', 'l'); +insert into paperdataset values('o', 'l'); +insert into paperdataset values('g', 'y'); +create table paper_paperkeyphrase_writes_author ( +paperid text, +title text, +venueid text, +year text, +numciting text, +numcitedby text, +journalid text, +keyphraseid text, +authorid text, +authorname text); +insert into paper_paperkeyphrase_writes_author values('e', 'g', 'e', 'g', 'o', 'r', 'g', 'd', 'e', 'o'); +insert into paper_paperkeyphrase_writes_author values('e', 'g', 'e', 'g', 'o', 'r', 'g', 'e', 'e', 'o'); +insert into paper_paperkeyphrase_writes_author values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'g', 'e'); +insert into paper_paperkeyphrase_writes_author values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'g', 'i'); +insert into paper_paperkeyphrase_writes_author values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'g', 'o'); +insert into paper_paperkeyphrase_writes_author values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'g', 'y'); +insert into paper_paperkeyphrase_writes_author values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'i', 'i'); +insert into paper_paperkeyphrase_writes_author values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'i', 'p'); +insert into paper_paperkeyphrase_writes_author values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'i', 'r'); +insert into paper_paperkeyphrase_writes_author values('l', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'y', 'y'); +insert into paper_paperkeyphrase_writes_author values('r', 'i', 'o', 'o', 'e', 'y', 'r', 'None', 'g', 'e'); +insert into paper_paperkeyphrase_writes_author values('r', 'i', 'o', 'o', 'e', 'y', 'r', 'None', 'g', 'i'); +insert into paper_paperkeyphrase_writes_author values('r', 'i', 'o', 'o', 'e', 'y', 'r', 'None', 'g', 'o'); +insert into paper_paperkeyphrase_writes_author values('r', 'i', 'o', 'o', 'e', 'y', 'r', 'None', 'g', 'y'); +insert into paper_paperkeyphrase_writes_author values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'e', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'e', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'i', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'i', 'l', 'r', 'r', 'g', 'o', 'i', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'd', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'd', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'i', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'i', 'p'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'i', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'd', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'd', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'i', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'i', 'p'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'i', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('i', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'g', 'e'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'g', 'i'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'g', 'o'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'g', 'y'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'i', 'i'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'i', 'p'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'i', 'r'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'y', 'y'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'g', 'g', 's', 'g', 'o', 'g', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'g', 'g', 's', 'g', 'o', 'g', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'g', 'g', 's', 'g', 'o', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'g', 'g', 's', 'g', 'o', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'g', 'g', 's', 'g', 'o', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'y', 'd', 'd', 'r', 'o', 'd', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('g', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'e', 'o'); +insert into paper_paperkeyphrase_writes_author values('g', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'r', 'i'); +insert into paper_paperkeyphrase_writes_author values('g', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'r', 'l'); +insert into paper_paperkeyphrase_writes_author values('g', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'r', 'o'); +insert into paper_paperkeyphrase_writes_author values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'e', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'e', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'i', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'o', 'o', 'l', 'p', 'y', 'g', 'i', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('e', 'p', 'e', 'd', 'd', 'p', 'p', 'd', 'e', 'o'); +insert into paper_paperkeyphrase_writes_author values('e', 'p', 'e', 'd', 'd', 'p', 'p', 'e', 'e', 'o'); +insert into paper_paperkeyphrase_writes_author values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'i', 'd', 'p', 'e', 'e', 'i', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('e', 'r', 'o', 'y', 'd', 'o', 's', 'd', 'e', 'o'); +insert into paper_paperkeyphrase_writes_author values('e', 'r', 'o', 'y', 'd', 'o', 's', 'e', 'e', 'o'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'd', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'd', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'i', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'i', 'p'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'i', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'd', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'd', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'i', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'i', 'p'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'i', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('i', 'i', 'g', 'e', 'e', 's', 'd', 's', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('r', 'g', 'd', 'i', 's', 'l', 'd', 'None', 'g', 'e'); +insert into paper_paperkeyphrase_writes_author values('r', 'g', 'd', 'i', 's', 'l', 'd', 'None', 'g', 'i'); +insert into paper_paperkeyphrase_writes_author values('r', 'g', 'd', 'i', 's', 'l', 'd', 'None', 'g', 'o'); +insert into paper_paperkeyphrase_writes_author values('r', 'g', 'd', 'i', 's', 'l', 'd', 'None', 'g', 'y'); +insert into paper_paperkeyphrase_writes_author values('s', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('r', 'y', 'p', 'l', 'p', 's', 'e', 'None', 'g', 'e'); +insert into paper_paperkeyphrase_writes_author values('r', 'y', 'p', 'l', 'p', 's', 'e', 'None', 'g', 'i'); +insert into paper_paperkeyphrase_writes_author values('r', 'y', 'p', 'l', 'p', 's', 'e', 'None', 'g', 'o'); +insert into paper_paperkeyphrase_writes_author values('r', 'y', 'p', 'l', 'p', 's', 'e', 'None', 'g', 'y'); +insert into paper_paperkeyphrase_writes_author values('g', 'd', 's', 'o', 's', 'y', 'p', 'd', 'e', 'o'); +insert into paper_paperkeyphrase_writes_author values('g', 'd', 's', 'o', 's', 'y', 'p', 'd', 'r', 'i'); +insert into paper_paperkeyphrase_writes_author values('g', 'd', 's', 'o', 's', 'y', 'p', 'd', 'r', 'l'); +insert into paper_paperkeyphrase_writes_author values('g', 'd', 's', 'o', 's', 'y', 'p', 'd', 'r', 'o'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'g', 'e'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'g', 'i'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'g', 'o'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'g', 'y'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'i', 'i'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'i', 'p'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'i', 'r'); +insert into paper_paperkeyphrase_writes_author values('l', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'y', 'y'); +insert into paper_paperkeyphrase_writes_author values('d', 's', 'p', 'g', 'o', 'y', 'i', 'g', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('d', 's', 'p', 'g', 'o', 'y', 'i', 'g', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('d', 's', 'p', 'g', 'o', 'y', 'i', 'g', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('d', 's', 'p', 'g', 'o', 'y', 'i', 'o', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('d', 's', 'p', 'g', 'o', 'y', 'i', 'o', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('d', 's', 'p', 'g', 'o', 'y', 'i', 'o', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('d', 's', 'p', 'g', 'o', 'y', 'i', 'y', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('d', 's', 'p', 'g', 'o', 'y', 'i', 'y', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('d', 's', 'p', 'g', 'o', 'y', 'i', 'y', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'e', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'e', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'i', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('y', 'r', 'i', 'l', 'o', 'p', 'y', 'i', 's', 'e'); +insert into paper_paperkeyphrase_writes_author values('g', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'e', 'o'); +insert into paper_paperkeyphrase_writes_author values('g', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'r', 'i'); +insert into paper_paperkeyphrase_writes_author values('g', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'r', 'l'); +insert into paper_paperkeyphrase_writes_author values('g', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'r', 'o'); +insert into paper_paperkeyphrase_writes_author values('p', 'l', 's', 'e', 'i', 'r', 'l', 'g', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'l', 's', 'e', 'i', 'r', 'l', 'g', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'l', 's', 'e', 'i', 'r', 'l', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'l', 's', 'e', 'i', 'r', 'l', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('p', 'l', 's', 'e', 'i', 'r', 'l', 'o', 'None', 'None'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'i'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'l'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'o'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'r'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 's'); +insert into paper_paperkeyphrase_writes_author values('o', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'o', 'y'); +insert into paper_paperkeyphrase_writes_author values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'l', 'o'); +insert into paper_paperkeyphrase_writes_author values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'p', 'd'); +insert into paper_paperkeyphrase_writes_author values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'p', 'p'); +insert into paper_paperkeyphrase_writes_author values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'p', 'o'); + diff --git a/all/databases/scholar_total_12/scholar_total_12.sqlite b/all/databases/scholar_total_12/scholar_total_12.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..0e87155f3db6af9bb7e7a571091a8b21791ef506 Binary files /dev/null and b/all/databases/scholar_total_12/scholar_total_12.sqlite differ diff --git a/all/databases/scholar_total_13/scholar_total_13.sql b/all/databases/scholar_total_13/scholar_total_13.sql new file mode 100644 index 0000000000000000000000000000000000000000..d70eb386a0d9678f05ec74745b940b065b63361a --- /dev/null +++ b/all/databases/scholar_total_13/scholar_total_13.sql @@ -0,0 +1,338 @@ +create table venue ( +venueid text, +venuename text +); +insert into venue values('g', 'l'); +insert into venue values('o', 'l'); +insert into venue values('d', 'l'); +insert into venue values('d', 'd'); +insert into venue values('y', 'e'); +insert into venue values('l', 'l'); +insert into venue values('s', 'p'); +insert into venue values('p', 'y'); +insert into venue values('g', 'o'); +insert into venue values('l', 'i'); +insert into venue values('s', 'e'); +insert into venue values('s', 's'); +insert into venue values('o', 'e'); +insert into venue values('s', 'p'); +insert into venue values('i', 'i'); +insert into venue values('r', 'r'); +insert into venue values('y', 'p'); +insert into venue values('e', 'e'); +insert into venue values('r', 'y'); +insert into venue values('s', 'g'); +insert into venue values('o', 'e'); +insert into venue values('g', 'l'); +insert into venue values('r', 's'); +insert into venue values('o', 'o'); + +create table author ( +authorid text, +authorname text +); +insert into author values('i', 'r'); +insert into author values('g', 'e'); +insert into author values('i', 'p'); +insert into author values('l', 'o'); +insert into author values('d', 'i'); +insert into author values('g', 'i'); +insert into author values('i', 'i'); +insert into author values('g', 'y'); +insert into author values('g', 'o'); +insert into author values('o', 's'); +insert into author values('r', 'o'); +insert into author values('o', 'o'); +insert into author values('y', 'y'); +insert into author values('r', 'l'); +insert into author values('p', 'd'); +insert into author values('s', 'e'); +insert into author values('o', 'r'); +insert into author values('r', 'i'); +insert into author values('o', 'l'); +insert into author values('o', 'r'); +insert into author values('p', 'p'); +insert into author values('o', 'i'); +insert into author values('o', 'y'); +insert into author values('d', 'i'); +insert into author values('p', 'o'); +insert into author values('e', 'o'); + +create table journal ( +journalid text, +journalname text +); +insert into journal values('r', 'i'); +insert into journal values('e', 'e'); +insert into journal values('r', 'p'); +insert into journal values('o', 's'); +insert into journal values('i', 'y'); +insert into journal values('p', 'g'); +insert into journal values('r', 'i'); +insert into journal values('d', 'y'); +insert into journal values('d', 'o'); +insert into journal values('o', 'g'); +insert into journal values('e', 'o'); +insert into journal values('p', 'l'); + +create table cite ( +citingpaperid text, +citedpaperid text +); +insert into cite values('y', 'o'); +insert into cite values('g', 'l'); +insert into cite values('y', 'y'); +insert into cite values('s', 'y'); +insert into cite values('o', 'g'); +insert into cite values('o', 'o'); +insert into cite values('o', 'o'); +insert into cite values('e', 'r'); +insert into cite values('e', 'g'); +insert into cite values('o', 'y'); +insert into cite values('i', 'o'); +insert into cite values('i', 'r'); +insert into cite values('p', 'g'); +insert into cite values('o', 'r'); +insert into cite values('i', 'r'); +insert into cite values('o', 'l'); +insert into cite values('l', 'e'); +insert into cite values('y', 'p'); +insert into cite values('g', 'y'); +insert into cite values('l', 'o'); +insert into cite values('y', 's'); +insert into cite values('l', 'o'); +insert into cite values('s', 's'); +insert into cite values('o', 'y'); +insert into cite values('s', 'i'); + +create table writes ( +paperid text, +authorid text +); +insert into writes values('i', 'o'); +insert into writes values('d', 's'); +insert into writes values('o', 'o'); +insert into writes values('o', 'o'); +insert into writes values('l', 'i'); +insert into writes values('i', 'i'); +insert into writes values('g', 'r'); +insert into writes values('d', 's'); +insert into writes values('l', 'g'); +insert into writes values('e', 'e'); +insert into writes values('y', 's'); +insert into writes values('d', 's'); +insert into writes values('o', 'o'); +insert into writes values('y', 's'); +insert into writes values('r', 'g'); +insert into writes values('i', 'd'); +insert into writes values('l', 'y'); +insert into writes values('g', 'e'); +create table paperdataset_dataset_paper_paperkeyphrase_keyphrase ( +paperid text, +datasetid text, +datasetname text, +title text, +venueid text, +year text, +numciting text, +numcitedby text, +journalid text, +keyphraseid text, +keyphrasename text); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'i', 'g', 'e', 'e', 's', 'd', 's', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'i', 'g', 'e', 'e', 's', 'd', 's', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'i', 'g', 'e', 'e', 's', 'd', 's', 'i'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'i', 'g', 'e', 'e', 's', 'd', 's', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'i'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'l', 'g', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'd', 's', 'o', 's', 'y', 'p', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'd', 's', 'o', 's', 'y', 'p', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'd', 's', 'o', 's', 'y', 'p', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'd', 's', 'o', 's', 'y', 'p', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'p', 'None', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'g', 'e', 'g', 'o', 'r', 'g', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'g', 'e', 'g', 'o', 'r', 'g', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'g', 'e', 'g', 'o', 'r', 'g', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'g', 'e', 'g', 'o', 'r', 'g', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'g', 'e', 'g', 'o', 'r', 'g', 'e', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'g', 'e', 'g', 'o', 'r', 'g', 'e', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'p', 'e', 'd', 'd', 'p', 'p', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'p', 'e', 'd', 'd', 'p', 'p', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'p', 'e', 'd', 'd', 'p', 'p', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'p', 'e', 'd', 'd', 'p', 'p', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'p', 'e', 'd', 'd', 'p', 'p', 'e', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'p', 'e', 'd', 'd', 'p', 'p', 'e', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'r', 'o', 'y', 'd', 'o', 's', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'r', 'o', 'y', 'd', 'o', 's', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'r', 'o', 'y', 'd', 'o', 's', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'r', 'o', 'y', 'd', 'o', 's', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'r', 'o', 'y', 'd', 'o', 's', 'e', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('e', 'r', 'None', 'r', 'o', 'y', 'd', 'o', 's', 'e', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'i', 'l', 'r', 'r', 'g', 'o', 'e', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'i', 'l', 'r', 'r', 'g', 'o', 'e', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'i', 'l', 'r', 'r', 'g', 'o', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'i', 'l', 'r', 'r', 'g', 'o', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'o', 'o', 'l', 'p', 'y', 'g', 'e', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'o', 'o', 'l', 'p', 'y', 'g', 'e', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'o', 'o', 'l', 'p', 'y', 'g', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'o', 'o', 'l', 'p', 'y', 'g', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'r', 'i', 'l', 'o', 'p', 'y', 'e', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'r', 'i', 'l', 'o', 'p', 'y', 'e', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'r', 'i', 'l', 'o', 'p', 'y', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'o', 'None', 'r', 'i', 'l', 'o', 'p', 'y', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'p', 'None', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'p', 'None', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'i'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'p', 'None', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'p', 'None', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'i', 'l', 'r', 'r', 'g', 'o', 'e', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'i', 'l', 'r', 'r', 'g', 'o', 'e', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'i', 'l', 'r', 'r', 'g', 'o', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'i', 'l', 'r', 'r', 'g', 'o', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'o', 'o', 'l', 'p', 'y', 'g', 'e', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'o', 'o', 'l', 'p', 'y', 'g', 'e', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'o', 'o', 'l', 'p', 'y', 'g', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'o', 'o', 'l', 'p', 'y', 'g', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'r', 'i', 'l', 'o', 'p', 'y', 'e', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'r', 'i', 'l', 'o', 'p', 'y', 'e', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'r', 'i', 'l', 'o', 'p', 'y', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('y', 'r', 'None', 'r', 'i', 'l', 'o', 'p', 'y', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'd', 's', 'o', 's', 'y', 'p', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'd', 's', 'o', 's', 'y', 'p', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'd', 's', 'o', 's', 'y', 'p', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'd', 's', 'o', 's', 'y', 'p', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'o', 'None', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'g', 'g', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'g', 'g', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'i'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'g', 'g', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'g', 'g', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'g', 'g', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'g', 'g', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'i'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'g', 'g', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('s', 'g', 'g', 'r', 'i', 'g', 'o', 'i', 'l', 'r', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'i', 'g', 'e', 'e', 's', 'd', 'p', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'i', 'g', 'e', 'e', 's', 'd', 's', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'i', 'g', 'e', 'e', 's', 'd', 's', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'i', 'g', 'e', 'e', 's', 'd', 's', 'i'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'i', 'g', 'e', 'e', 's', 'd', 's', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'r', 'r', 'g', 'l', 'i', 'o', 'p', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'i'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('i', 'y', 's', 'r', 'r', 'g', 'l', 'i', 'o', 's', 'y'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('l', 'o', 'None', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('l', 'o', 'None', 'd', 'i', 'g', 'e', 'g', 'p', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('l', 'o', 'None', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('l', 'o', 'None', 's', 'l', 'p', 'l', 'l', 'y', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('l', 'o', 'None', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('l', 'o', 'None', 's', 'o', 'g', 'e', 'o', 'p', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('d', 'l', 'g', 's', 'p', 'g', 'o', 'y', 'i', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('d', 'l', 'g', 's', 'p', 'g', 'o', 'y', 'i', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('d', 'l', 'g', 's', 'p', 'g', 'o', 'y', 'i', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('d', 'l', 'g', 's', 'p', 'g', 'o', 'y', 'i', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('d', 'l', 'g', 's', 'p', 'g', 'o', 'y', 'i', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('d', 'l', 'g', 's', 'p', 'g', 'o', 'y', 'i', 'y', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'o', 'e', 'o', 'i', 'i', 's', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'o', 'e', 'o', 'i', 'i', 's', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'o', 'e', 'o', 'i', 'i', 's', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'o', 'e', 'o', 'i', 'i', 's', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'p', 'i', 's', 'y', 'g', 'y', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'p', 'i', 's', 'y', 'g', 'y', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'p', 'i', 's', 'y', 'g', 'y', 'i', 'g'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('o', 'l', 'g', 'p', 'i', 's', 'y', 'g', 'y', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'd', 's', 'o', 's', 'y', 'p', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'd', 's', 'o', 's', 'y', 'p', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'd', 's', 'o', 's', 'y', 'p', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'd', 's', 'o', 's', 'y', 'p', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'o', 'p', 'd', 'g', 'o', 'g', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'd'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('g', 'y', 's', 'r', 'l', 'd', 'e', 'd', 'i', 'd', 'l'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('None', 'i', 'r', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('None', 'd', 'd', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('None', 'e', 'l', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('None', 'e', 'e', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('None', 'e', 's', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('r', 'None', 'None', 'i', 'o', 'o', 'e', 'y', 'r', 'None', 'None'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'g', 'g', 's', 'g', 'o', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'y', 'd', 'd', 'r', 'o', 'd', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'i', 'd', 'p', 'e', 'e', 'i', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('r', 'None', 'None', 'g', 'd', 'i', 's', 'l', 'd', 'None', 'None'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('r', 'None', 'None', 'y', 'p', 'l', 'p', 's', 'e', 'None', 'None'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'g', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'g', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'g', 's'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('p', 'None', 'None', 'l', 's', 'e', 'i', 'r', 'l', 'o', 'e'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'l', 'r'); +insert into paperdataset_dataset_paper_paperkeyphrase_keyphrase values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'l', 'p'); + diff --git a/all/databases/scholar_total_13/scholar_total_13.sqlite b/all/databases/scholar_total_13/scholar_total_13.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..af7d25343a4da1951e15263bfa80b2acd5ec449a Binary files /dev/null and b/all/databases/scholar_total_13/scholar_total_13.sqlite differ diff --git a/all/databases/scientist_1/scientist_1.sql b/all/databases/scientist_1/scientist_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..b6980c50ed049090dcdb319985d1a0d8725e22d7 --- /dev/null +++ b/all/databases/scientist_1/scientist_1.sql @@ -0,0 +1,59 @@ +CREATE TABLE "scientists" ( +"ssn" integer, +"name" text +); + +INSERT INTO scientists VALUES (123234877, "michael rogers"); +INSERT INTO scientists VALUES (152934485, "anand manikutty"); +INSERT INTO scientists VALUES (222364883, "carol smith"); +INSERT INTO scientists VALUES (326587417, "joe stevens"); +INSERT INTO scientists VALUES (332154719, "mary-anne foster"); +INSERT INTO scientists VALUES (332569843, "george odonnell"); +INSERT INTO scientists VALUES (546523478, "john doe"); +INSERT INTO scientists VALUES (631231482, "david smith"); +INSERT INTO scientists VALUES (654873219, "zacary efron"); +INSERT INTO scientists VALUES (745685214, "eric goldsmith"); +INSERT INTO scientists VALUES (845657245, "elizabeth doe"); +INSERT INTO scientists VALUES (845657246, "kumar swamy"); + +CREATE TABLE "projects" ( +"code" text, +"name" text, +"hours" integer +); + +INSERT INTO projects VALUES ("aeh1", "winds: studying bernoullis principle", 156); +INSERT INTO projects VALUES ("aeh2", "aerodynamics and bridge design", 189); +INSERT INTO projects VALUES ("aeh3", "aerodynamics and gas mileage", 256); +INSERT INTO projects VALUES ("aeh4", "aerodynamics and ice hockey", 789); +INSERT INTO projects VALUES ("aeh5", "aerodynamics of a football", 98); +INSERT INTO projects VALUES ("aeh6", "aerodynamics of air hockey", 89); +INSERT INTO projects VALUES ("ast1", "a matter of time", 112); +INSERT INTO projects VALUES ("ast2", "a puzzling parallax", 299); +INSERT INTO projects VALUES ("ast3", "build your own telescope", 6546); +INSERT INTO projects VALUES ("bte1", "juicy: extracting apple juice with pectinase", 321); +INSERT INTO projects VALUES ("bte2", "a magnetic primer designer", 9684); +INSERT INTO projects VALUES ("bte3", "bacterial transformation efficiency", 321); +INSERT INTO projects VALUES ("che1", "a silver-cleaning battery", 545); +INSERT INTO projects VALUES ("che2", "a soluble separation solution", 778); + +CREATE TABLE "assignedto" ( +"scientist" integer, +"project" text +); + +INSERT INTO assignedto VALUES (123234877, "aeh1"); +INSERT INTO assignedto VALUES (152934485, "aeh3"); +INSERT INTO assignedto VALUES (222364883, "ast3"); +INSERT INTO assignedto VALUES (326587417, "ast3"); +INSERT INTO assignedto VALUES (332154719, "bte1"); +INSERT INTO assignedto VALUES (546523478, "che1"); +INSERT INTO assignedto VALUES (631231482, "ast3"); +INSERT INTO assignedto VALUES (654873219, "che1"); +INSERT INTO assignedto VALUES (745685214, "aeh3"); +INSERT INTO assignedto VALUES (845657245, "ast1"); +INSERT INTO assignedto VALUES (845657246, "ast2"); +INSERT INTO assignedto VALUES (332569843, "aeh4"); + + +COMMIT; diff --git a/all/databases/scientist_1/scientist_1.sqlite b/all/databases/scientist_1/scientist_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..044e2261446f263c0805ae74012a8231bba290fe Binary files /dev/null and b/all/databases/scientist_1/scientist_1.sqlite differ diff --git a/all/databases/ship_1/ship_1.sql b/all/databases/ship_1/ship_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..2896f569bad6b0caddaa7cb5f50fe53ad34b7508 --- /dev/null +++ b/all/databases/ship_1/ship_1.sql @@ -0,0 +1,38 @@ +CREATE TABLE "captain" ( +"captain_id" integer, +"name" text, +"ship_id" integer, +"age" text, +"class" text, +"rank" text +); + +INSERT INTO captain VALUES (1, "captain sir henry langford", 1, "40", "third-rate ship of the line", "midshipman"); +INSERT INTO captain VALUES (2, "captain beves conway", 2, "54", "third-rate ship of the line", "midshipman"); +INSERT INTO captain VALUES (3, "lieutenant hugh bolitho", 3, "43", "cutter", "midshipman"); +INSERT INTO captain VALUES (4, "lieutenant montagu verling", 4, "45", "armed schooner", "midshipman"); +INSERT INTO captain VALUES (5, "captain henry dumaresq", 5, "38", "frigate", "lieutenant"); +INSERT INTO captain VALUES (6, "captain gilbert pears", 2, "60", "third-rate ship of the line", "lieutenant"); +INSERT INTO captain VALUES (7, "commander richard bolitho", 3, "38", "sloop-of-war", "commander junior captain"); + +CREATE TABLE "ship" ( +"ship_id" integer, +"name" text, +"type" text, +"built_year" real, +"class" text, +"flag" text +); + +INSERT INTO ship VALUES (1, "hms manxman", "panamax", 1997.0, "kr", "panama"); +INSERT INTO ship VALUES (2, "hms gorgon", "panamax", 1998.0, "kr", "panama"); +INSERT INTO ship VALUES (3, "hm cutter avenger", "panamax", 1997.0, "kr", "panama"); +INSERT INTO ship VALUES (4, "hm schooner hotspur", "panamax", 1998.0, "kr", "panama"); +INSERT INTO ship VALUES (5, "hms destiny", "panamax", 1998.0, "kr", "panama"); +INSERT INTO ship VALUES (6, "hms trojan", "panamax", 1997.0, "kr", "panama"); +INSERT INTO ship VALUES (7, "hm sloop sparrow", "panamax", 1997.0, "kr", "panama"); +INSERT INTO ship VALUES (8, "hms phalarope", "panamax", 1997.0, "kr", "panama"); +INSERT INTO ship VALUES (9, "hms undine", "panamax", 1998.0, "gl", "malta"); + + +COMMIT; diff --git a/all/databases/ship_1/ship_1.sqlite b/all/databases/ship_1/ship_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..5d95465e874edb4b901f7695ece5f5b6489255d4 Binary files /dev/null and b/all/databases/ship_1/ship_1.sqlite differ diff --git a/all/databases/soccer_2/soccer_2.sql b/all/databases/soccer_2/soccer_2.sql new file mode 100644 index 0000000000000000000000000000000000000000..9d98c275a6d10a2ed8d95ec1f9634ffefadf23ad --- /dev/null +++ b/all/databases/soccer_2/soccer_2.sql @@ -0,0 +1,41 @@ +CREATE TABLE "college" ( +"cname" text, +"state" text, +"enr" integer +); + +INSERT INTO college VALUES ("asu", "la", 18000); +INSERT INTO college VALUES ("fsu", "az", 12000); +INSERT INTO college VALUES ("lsu", "ok", 22000); +INSERT INTO college VALUES ("ou", "fl", 19000); + +CREATE TABLE "player" ( +"pid" integer, +"pname" text, +"ycard" text, +"hs" integer +); + +INSERT INTO player VALUES (10001, "andrew", "no", 1200); +INSERT INTO player VALUES (20002, "blake", "no", 1600); +INSERT INTO player VALUES (30003, "charles", "no", 300); +INSERT INTO player VALUES (40002, "david", "yes", 1600); +INSERT INTO player VALUES (40004, "drago", "yes", 1600); +INSERT INTO player VALUES (50005, "eddie", "yes", 600); + +CREATE TABLE "tryout" ( +"pid" integer, +"cname" text, +"ppos" text, +"decision" text +); + +INSERT INTO tryout VALUES (10001, "asu", "goalie", "no"); +INSERT INTO tryout VALUES (10001, "lsu", "goalie", "yes"); +INSERT INTO tryout VALUES (20002, "fsu", "striker", "yes"); +INSERT INTO tryout VALUES (30003, "ou", "mid", "no"); +INSERT INTO tryout VALUES (40004, "asu", "goalie", "no"); +INSERT INTO tryout VALUES (50005, "lsu", "mid", "no"); + + +COMMIT; diff --git a/all/databases/soccer_2/soccer_2.sqlite b/all/databases/soccer_2/soccer_2.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..0108365d73c72bfec7b3f39c630eec0b73bdf495 Binary files /dev/null and b/all/databases/soccer_2/soccer_2.sqlite differ diff --git a/all/databases/solvency_ii/solvency_ii.sql b/all/databases/solvency_ii/solvency_ii.sql new file mode 100644 index 0000000000000000000000000000000000000000..21a2b19cb89bb4019869e52ed1de8a123f6a80b1 --- /dev/null +++ b/all/databases/solvency_ii/solvency_ii.sql @@ -0,0 +1,254 @@ +CREATE TABLE "addresses" ( +"address_id" integer, +"address_details" text +); + +INSERT INTO addresses VALUES (1, "465 emely bypass +west mafalda co 23309"); +INSERT INTO addresses VALUES (2, "669 carter trafficway +port delbert ok 66249"); +INSERT INTO addresses VALUES (3, "38247 ernser gateway suite 442 +bogisichland vt 71460"); +INSERT INTO addresses VALUES (4, "732 greenholt valleys +east marionfort vt 89477-0433"); +INSERT INTO addresses VALUES (5, "382 demond alley +luellamouth mt 67912"); +INSERT INTO addresses VALUES (6, "3851 quigley flats +oreillychester ca 92522-9526"); +INSERT INTO addresses VALUES (7, "78950 kamryn centers +chelsealand ne 22947-6129"); +INSERT INTO addresses VALUES (8, "682 kautzer forest apt. 509 +jaydenfurt ne 85011-5059"); +INSERT INTO addresses VALUES (9, "11093 balistreri forge +gaylordtown vt 05705"); +INSERT INTO addresses VALUES (10, "9113 wisoky glen apt. 601 +lake immanuel ut 01388"); +INSERT INTO addresses VALUES (11, "73409 linnea loop apt. 778 +haagberg ak 41204-1496"); +INSERT INTO addresses VALUES (12, "8220 concepcion neck suite 394 +east beauview la 19968-4755"); +INSERT INTO addresses VALUES (13, "513 lindgren river +north scottymouth in 85224-1392"); +INSERT INTO addresses VALUES (14, "9694 wava roads +ricechester dc 70816-9058"); +INSERT INTO addresses VALUES (15, "068 oconnell tunnel +west colemanburgh mo 87777"); + +CREATE TABLE "locations" ( +"location_id" integer, +"other_details" text +); + +INSERT INTO locations VALUES (1, "rowe plc"); +INSERT INTO locations VALUES (2, "ebert green and bogisich"); +INSERT INTO locations VALUES (3, "prohaska llc"); +INSERT INTO locations VALUES (4, "white kassulke and barrows"); +INSERT INTO locations VALUES (5, "wintheiser-sauer"); +INSERT INTO locations VALUES (6, "morar-denesik"); +INSERT INTO locations VALUES (7, "rowe-stoltenberg"); +INSERT INTO locations VALUES (8, "price-lynch"); +INSERT INTO locations VALUES (9, "ryan-wyman"); +INSERT INTO locations VALUES (10, "hilll ltd"); +INSERT INTO locations VALUES (11, "fritsch llc"); +INSERT INTO locations VALUES (12, "kuvalis-goodwin"); +INSERT INTO locations VALUES (13, "sanford inc"); +INSERT INTO locations VALUES (14, "waelchi-wehner"); +INSERT INTO locations VALUES (15, "daugherty nader and balistreri"); + +CREATE TABLE "products" ( +"product_id" integer, +"product_type_code" text, +"product_name" text, +"product_price" real +); + +INSERT INTO products VALUES (1, "books", "business policy", 1336.26); +INSERT INTO products VALUES (3, "food", "special dinning", 2894.94); +INSERT INTO products VALUES (5, "clothes", "men suits", 3298.84); +INSERT INTO products VALUES (6, "electronics", "tv equipments", 932.25); +INSERT INTO products VALUES (7, "books", "business policy b", 3215.66); +INSERT INTO products VALUES (10, "electronics", "tv equipments", 4427.49); +INSERT INTO products VALUES (11, "electronics", "conference equipments", 3289.47); +INSERT INTO products VALUES (18, "books", "trading policy", 3228.49); +INSERT INTO products VALUES (20, "books", "trading policy b", 4343.83); +INSERT INTO products VALUES (22, "food", "dinning", 3574.56); +INSERT INTO products VALUES (24, "food", "dinning", 4895.86); +INSERT INTO products VALUES (26, "food", "dinning", 2339.97); +INSERT INTO products VALUES (29, "food", "special dinning", 502.15); +INSERT INTO products VALUES (34, "electronics", "tv equipments", 970.77); +INSERT INTO products VALUES (45, "clothes", "men suits", 3541.17); + +CREATE TABLE "parties" ( +"party_id" integer, +"party_details" text +); + +INSERT INTO parties VALUES (3, "european peoples party"); +INSERT INTO parties VALUES (4, "european free alliance"); +INSERT INTO parties VALUES (5, "european alliance for freedom"); +INSERT INTO parties VALUES (6, "european christian political movement"); +INSERT INTO parties VALUES (7, "movement for a europe of nations and freedom"); +INSERT INTO parties VALUES (8, "alliance of liberals and democrats for europe"); +INSERT INTO parties VALUES (9, "eudemocrats"); + +CREATE TABLE "assets" ( +"asset_id" integer, +"other_details" text +); + +INSERT INTO assets VALUES (1, "transportation cars"); +INSERT INTO assets VALUES (2, "meeting rooms"); +INSERT INTO assets VALUES (3, "dinning tables"); + +CREATE TABLE "channels" ( +"channel_id" integer, +"other_details" text +); + +INSERT INTO channels VALUES (1, "145"); +INSERT INTO channels VALUES (2, "348"); +INSERT INTO channels VALUES (3, "933"); +INSERT INTO channels VALUES (4, "631"); +INSERT INTO channels VALUES (5, "681"); +INSERT INTO channels VALUES (6, "993"); +INSERT INTO channels VALUES (7, "249"); +INSERT INTO channels VALUES (8, "644"); +INSERT INTO channels VALUES (9, "668"); +INSERT INTO channels VALUES (10, "058"); +INSERT INTO channels VALUES (11, "163"); +INSERT INTO channels VALUES (12, "285"); +INSERT INTO channels VALUES (13, "943"); +INSERT INTO channels VALUES (14, "292"); +INSERT INTO channels VALUES (15, "177"); + +CREATE TABLE "finances" ( +"finance_id" integer, +"other_details" text +); + +INSERT INTO finances VALUES (1, "mutual"); +INSERT INTO finances VALUES (2, "good"); +INSERT INTO finances VALUES (3, "bad"); +INSERT INTO finances VALUES (4, "mutual"); +INSERT INTO finances VALUES (5, "bad"); +INSERT INTO finances VALUES (6, "good"); +INSERT INTO finances VALUES (7, "good"); +INSERT INTO finances VALUES (8, "mutual"); +INSERT INTO finances VALUES (9, "bad"); +INSERT INTO finances VALUES (10, "bad"); +INSERT INTO finances VALUES (11, "mutual"); +INSERT INTO finances VALUES (12, "mutual"); +INSERT INTO finances VALUES (13, "good"); +INSERT INTO finances VALUES (14, "good"); +INSERT INTO finances VALUES (15, "mutual"); + +CREATE TABLE "events" ( +"event_id" integer, +"address_id" integer, +"channel_id" integer, +"event_type_code" text, +"finance_id" integer, +"location_id" integer +); + +INSERT INTO events VALUES (1, 3, 12, "trade show", 2, 13); +INSERT INTO events VALUES (2, 15, 13, "press conferenc", 8, 11); +INSERT INTO events VALUES (3, 12, 1, "press conferenc", 12, 6); +INSERT INTO events VALUES (4, 13, 10, "ceremonies", 7, 6); +INSERT INTO events VALUES (5, 9, 4, "trade show", 15, 6); +INSERT INTO events VALUES (6, 15, 12, "seminar", 15, 9); +INSERT INTO events VALUES (7, 15, 6, "trade show", 13, 15); +INSERT INTO events VALUES (8, 3, 15, "trade show", 1, 6); +INSERT INTO events VALUES (9, 12, 3, "press conferenc", 3, 11); +INSERT INTO events VALUES (10, 15, 10, "conference", 7, 12); +INSERT INTO events VALUES (11, 10, 4, "trade show", 2, 8); +INSERT INTO events VALUES (12, 14, 9, "trade show", 14, 7); +INSERT INTO events VALUES (13, 12, 13, "trade show", 12, 12); +INSERT INTO events VALUES (14, 10, 11, "seminar", 5, 10); +INSERT INTO events VALUES (15, 2, 2, "conference", 10, 5); + +CREATE TABLE "products_in_events" ( +"product_in_event_id" integer, +"event_id" integer, +"product_id" integer +); + +INSERT INTO products_in_events VALUES (13, 4, 29); +INSERT INTO products_in_events VALUES (23, 8, 3); +INSERT INTO products_in_events VALUES (32, 14, 10); +INSERT INTO products_in_events VALUES (33, 5, 18); +INSERT INTO products_in_events VALUES (43, 4, 45); +INSERT INTO products_in_events VALUES (46, 7, 3); +INSERT INTO products_in_events VALUES (50, 14, 6); +INSERT INTO products_in_events VALUES (61, 7, 3); +INSERT INTO products_in_events VALUES (63, 6, 34); +INSERT INTO products_in_events VALUES (64, 15, 6); +INSERT INTO products_in_events VALUES (69, 8, 20); +INSERT INTO products_in_events VALUES (74, 1, 6); +INSERT INTO products_in_events VALUES (79, 4, 45); +INSERT INTO products_in_events VALUES (90, 14, 26); +INSERT INTO products_in_events VALUES (99, 10, 11); + +CREATE TABLE "parties_in_events" ( +"party_id" integer, +"event_id" integer, +"role_code" text +); + +INSERT INTO parties_in_events VALUES (3, 7, "organizer"); +INSERT INTO parties_in_events VALUES (3, 8, "participant"); +INSERT INTO parties_in_events VALUES (4, 1, "organizer"); +INSERT INTO parties_in_events VALUES (4, 3, "participant"); +INSERT INTO parties_in_events VALUES (4, 8, "organizer"); +INSERT INTO parties_in_events VALUES (5, 9, "participant"); +INSERT INTO parties_in_events VALUES (5, 10, "participant"); +INSERT INTO parties_in_events VALUES (5, 15, "organizer"); +INSERT INTO parties_in_events VALUES (6, 6, "organizer"); +INSERT INTO parties_in_events VALUES (6, 12, "participant"); +INSERT INTO parties_in_events VALUES (6, 13, "organizer"); +INSERT INTO parties_in_events VALUES (9, 3, "participant"); +INSERT INTO parties_in_events VALUES (9, 4, "participant"); +INSERT INTO parties_in_events VALUES (9, 10, "organizer"); +INSERT INTO parties_in_events VALUES (9, 12, "organizer"); + +CREATE TABLE "agreements" ( +"document_id" integer, +"event_id" integer +); + +INSERT INTO agreements VALUES (1, 13); +INSERT INTO agreements VALUES (2, 13); +INSERT INTO agreements VALUES (3, 15); +INSERT INTO agreements VALUES (4, 9); +INSERT INTO agreements VALUES (5, 11); +INSERT INTO agreements VALUES (6, 8); +INSERT INTO agreements VALUES (7, 10); +INSERT INTO agreements VALUES (8, 15); +INSERT INTO agreements VALUES (9, 6); +INSERT INTO agreements VALUES (10, 11); +INSERT INTO agreements VALUES (11, 8); +INSERT INTO agreements VALUES (12, 9); +INSERT INTO agreements VALUES (13, 5); +INSERT INTO agreements VALUES (14, 12); +INSERT INTO agreements VALUES (15, 15); + +CREATE TABLE "assets_in_events" ( +"asset_id" integer, +"event_id" integer +); + +INSERT INTO assets_in_events VALUES (1, 4); +INSERT INTO assets_in_events VALUES (1, 5); +INSERT INTO assets_in_events VALUES (1, 9); +INSERT INTO assets_in_events VALUES (1, 10); +INSERT INTO assets_in_events VALUES (2, 8); +INSERT INTO assets_in_events VALUES (2, 14); +INSERT INTO assets_in_events VALUES (3, 2); +INSERT INTO assets_in_events VALUES (3, 5); +INSERT INTO assets_in_events VALUES (3, 8); +INSERT INTO assets_in_events VALUES (3, 9); +INSERT INTO assets_in_events VALUES (3, 10); +INSERT INTO assets_in_events VALUES (3, 12); + + +COMMIT; diff --git a/all/databases/solvency_ii/solvency_ii.sqlite b/all/databases/solvency_ii/solvency_ii.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..97ea9dc469ea7631b019b33cbc4363ccce622532 Binary files /dev/null and b/all/databases/solvency_ii/solvency_ii.sqlite differ diff --git a/all/databases/station_weather/station_weather.sql b/all/databases/station_weather/station_weather.sql new file mode 100644 index 0000000000000000000000000000000000000000..118541e274789e5bab26f3e9474d6c92f573a27c --- /dev/null +++ b/all/databases/station_weather/station_weather.sql @@ -0,0 +1,93 @@ +CREATE TABLE "train" ( +"id" integer, +"train_number" integer, +"name" text, +"origin" text, +"destination" text, +"time" text, +"interval" text +); + +INSERT INTO train VALUES (1, 16724, "ananthapuri express", "trivandrum", "chennai", "17:15", "daily"); +INSERT INTO train VALUES (2, 16127, "guruvayur express", "chennai", "guruvayur", "22:10", "daily"); +INSERT INTO train VALUES (3, 16128, "guruvayur express", "guruvayur", "chennai", "4:49", "daily"); +INSERT INTO train VALUES (4, 16723, "ananthapuri express", "chennai", "trivandrum", "11:35", "daily"); +INSERT INTO train VALUES (5, 16382, "jayanthi janatha express", "kanniyakumari", "mumbai", "06:30", "daily"); +INSERT INTO train VALUES (6, 16525, "island express", "kanniyakumari", "bangalore", "11:15", "daily"); +INSERT INTO train VALUES (7, 56701, "madurai fast passenger", "quilon", "madurai", "21:49", "daily"); +INSERT INTO train VALUES (8, 56700, "quilon fast passenger", "madurai", "quilon junction", "04:55", "daily"); +INSERT INTO train VALUES (9, 16526, "island express", "bangalore", "kanniyakumari", "16:59", "daily"); +INSERT INTO train VALUES (10, 16381, "jayanthi janatha express", "mumbai", "kanniyakumari", "10:38", "daily"); +INSERT INTO train VALUES (11, 16650, "parasuram express", "nagercoil", "mangalore", "04:20", "daily"); + +CREATE TABLE "station" ( +"id" integer, +"network_name" text, +"services" text, +"local_authority" text +); + +INSERT INTO station VALUES (1, "amersham", "metropolitan line and chiltern railways", "chiltern"); +INSERT INTO station VALUES (2, "bushey", "london overground and london midland", "watford"); +INSERT INTO station VALUES (3, "brentwood", "greater anglia", "brentwood"); +INSERT INTO station VALUES (4, "broxbourne", "greater anglia", "broxbourne"); +INSERT INTO station VALUES (5, "carpenders park", "london overground", "three rivers"); +INSERT INTO station VALUES (6, "chafford hundred", "c2c", "thurrock"); +INSERT INTO station VALUES (7, "chalfont & latimer", "metropolitan line and chiltern railways", "chiltern"); +INSERT INTO station VALUES (8, "chesham", "metropolitan line", "chiltern"); +INSERT INTO station VALUES (9, "cheshunt", "greater anglia", "broxbourne"); +INSERT INTO station VALUES (10, "chorleywood", "metropolitan line and chiltern railways", "three rivers"); +INSERT INTO station VALUES (11, "croxley", "metropolitan line", "three rivers"); + +CREATE TABLE "route" ( +"train_id" integer, +"station_id" integer +); + +INSERT INTO route VALUES (1, 1); +INSERT INTO route VALUES (1, 2); +INSERT INTO route VALUES (1, 3); +INSERT INTO route VALUES (2, 1); +INSERT INTO route VALUES (2, 3); +INSERT INTO route VALUES (2, 7); +INSERT INTO route VALUES (3, 4); +INSERT INTO route VALUES (4, 6); +INSERT INTO route VALUES (4, 2); +INSERT INTO route VALUES (5, 1); +INSERT INTO route VALUES (6, 5); +INSERT INTO route VALUES (7, 4); +INSERT INTO route VALUES (7, 5); +INSERT INTO route VALUES (7, 8); +INSERT INTO route VALUES (8, 8); +INSERT INTO route VALUES (9, 7); +INSERT INTO route VALUES (9, 8); +INSERT INTO route VALUES (10, 9); + +CREATE TABLE "weekly_weather" ( +"station_id" integer, +"day_of_week" text, +"high_temperature" integer, +"low_temperature" integer, +"precipitation" real, +"wind_speed_mph" integer +); + +INSERT INTO weekly_weather VALUES (1, "friday", 59, 54, 90.0, 13); +INSERT INTO weekly_weather VALUES (1, "monday", 66, 55, 20.0, 12); +INSERT INTO weekly_weather VALUES (1, "saturday", 60, 52, 10.0, 14); +INSERT INTO weekly_weather VALUES (1, "sunday", 55, 50, 30.0, 13); +INSERT INTO weekly_weather VALUES (1, "thursday", 55, 52, 50.0, 17); +INSERT INTO weekly_weather VALUES (1, "tuesday", 55, 52, 50.0, 14); +INSERT INTO weekly_weather VALUES (1, "wednesday", 54, 52, 50.0, 12); +INSERT INTO weekly_weather VALUES (2, "monday", 58, 54, 60.0, 20); +INSERT INTO weekly_weather VALUES (2, "thursday", 57, 54, 80.0, 22); +INSERT INTO weekly_weather VALUES (2, "tuesday", 59, 55, 90.0, 23); +INSERT INTO weekly_weather VALUES (2, "wednesday", 59, 56, 70.0, 24); +INSERT INTO weekly_weather VALUES (3, "monday", 49, 46, 30.0, 10); +INSERT INTO weekly_weather VALUES (3, "tuesday", 50, 49, 50.0, 9); +INSERT INTO weekly_weather VALUES (3, "wednesday", 55, 54, 60.0, 8); +INSERT INTO weekly_weather VALUES (4, "monday", 58, 54, 70.0, 7); +INSERT INTO weekly_weather VALUES (10, "tuesday", 59, 52, 90.0, 22); + + +COMMIT; diff --git a/all/databases/station_weather/station_weather.sqlite b/all/databases/station_weather/station_weather.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..c34cdb35c336c1a334ea48bf5ff1f861cd60e4b1 Binary files /dev/null and b/all/databases/station_weather/station_weather.sqlite differ diff --git a/all/databases/store_1_total_0/store_1_total_0.sql b/all/databases/store_1_total_0/store_1_total_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..5e098af80f6f4d13fb3f55c7c7de1a354fcc5c85 --- /dev/null +++ b/all/databases/store_1_total_0/store_1_total_0.sql @@ -0,0 +1,782 @@ +create table artists ( +id integer, +name text +); +insert into artists values(1, 'ac/dc'); +insert into artists values(2, 'accept'); +insert into artists values(3, 'aerosmith'); +insert into artists values(4, 'alanis morissette'); +insert into artists values(5, 'alice in chains'); +insert into artists values(6, 'antônio carlos jobim'); +insert into artists values(7, 'apocalyptica'); +insert into artists values(8, 'audioslave'); +insert into artists values(9, 'backbeat'); +insert into artists values(10, 'billy cobham'); +insert into artists values(11, 'black label society'); +insert into artists values(12, 'black sabbath'); +insert into artists values(13, 'body count'); +insert into artists values(14, 'bruce dickinson'); +insert into artists values(15, 'buddy guy'); +insert into artists values(16, 'caetano veloso'); +insert into artists values(17, 'chico buarque'); +insert into artists values(18, 'chico science & nação zumbi'); +insert into artists values(19, 'cidade negra'); +insert into artists values(20, 'cláudio zoli'); +insert into artists values(21, 'various artists'); +insert into artists values(22, 'led zeppelin'); +insert into artists values(23, 'frank zappa & captain beefheart'); +insert into artists values(24, 'marcos valle'); +insert into artists values(25, 'milton nascimento & bebeto'); +insert into artists values(26, 'azymuth'); +insert into artists values(27, 'gilberto gil'); +insert into artists values(28, 'joão gilberto'); +insert into artists values(29, 'bebel gilberto'); +insert into artists values(30, 'jorge vercilo'); +insert into artists values(31, 'baby consuelo'); +insert into artists values(32, 'ney matogrosso'); +insert into artists values(33, 'luiz melodia'); +insert into artists values(34, 'nando reis'); +insert into artists values(35, 'pedro luís & a parede'); +insert into artists values(36, 'o rappa'); +insert into artists values(37, 'ed motta'); +insert into artists values(38, 'banda black rio'); +insert into artists values(39, 'fernanda porto'); +insert into artists values(40, 'os cariocas'); +insert into artists values(41, 'elis regina'); +insert into artists values(42, 'milton nascimento'); +insert into artists values(43, 'a cor do som'); +insert into artists values(44, 'kid abelha'); +insert into artists values(45, 'sandra de sá'); +insert into artists values(46, 'jorge ben'); +insert into artists values(47, 'hermeto pascoal'); +insert into artists values(48, 'barão vermelho'); +insert into artists values(49, 'edson dj marky & dj patife featuring fernanda porto'); +insert into artists values(50, 'metallica'); +insert into artists values(51, 'queen'); +insert into artists values(52, 'kiss'); +insert into artists values(53, 'spyro gyra'); +insert into artists values(54, 'green day'); +insert into artists values(55, 'david coverdale'); +insert into artists values(56, 'gonzaguinha'); +insert into artists values(57, 'os mutantes'); +insert into artists values(58, 'deep purple'); +insert into artists values(59, 'santana'); +insert into artists values(60, 'santana feat. dave matthews'); +insert into artists values(61, 'santana feat. everlast'); +insert into artists values(62, 'santana feat. rob thomas'); +insert into artists values(63, 'santana feat. lauryn hill & cee-lo'); +insert into artists values(64, 'santana feat. the project g&b'); +insert into artists values(65, 'santana feat. maná'); +insert into artists values(66, 'santana feat. eagle-eye cherry'); +insert into artists values(67, 'santana feat. eric clapton'); +insert into artists values(68, 'miles davis'); +insert into artists values(69, 'gene krupa'); +insert into artists values(70, 'toquinho & vinícius'); +insert into artists values(71, 'vinícius de moraes & baden powell'); +insert into artists values(72, 'vinícius de moraes'); +insert into artists values(73, 'vinícius e qurteto em cy'); +insert into artists values(74, 'vinícius e odette lara'); +insert into artists values(75, 'vinicius toquinho & quarteto em cy'); +insert into artists values(76, 'creedence clearwater revival'); +insert into artists values(77, 'cássia eller'); +insert into artists values(78, 'def leppard'); +insert into artists values(79, 'dennis chambers'); +insert into artists values(80, 'djavan'); +insert into artists values(81, 'eric clapton'); +insert into artists values(82, 'faith no more'); +insert into artists values(83, 'falamansa'); +insert into artists values(84, 'foo fighters'); +insert into artists values(85, 'frank sinatra'); +insert into artists values(86, 'funk como le gusta'); +insert into artists values(87, 'godsmack'); +insert into artists values(88, 'guns n roses'); +insert into artists values(89, 'incognito'); +insert into artists values(90, 'iron maiden'); +insert into artists values(91, 'james brown'); +insert into artists values(92, 'jamiroquai'); +insert into artists values(93, 'jet'); +insert into artists values(94, 'jimi hendrix'); +insert into artists values(95, 'joe satriani'); +insert into artists values(96, 'jota quest'); +insert into artists values(97, 'joão suplicy'); +insert into artists values(98, 'judas priest'); +insert into artists values(99, 'legião urbana'); +insert into artists values(100, 'lenny kravitz'); + +create table something_sequence ( +name text, +seq integer +); +insert into something_sequence values('genres', 25); +insert into something_sequence values('media_types', 5); +insert into something_sequence values('artists', 275); +insert into something_sequence values('albums', 347); +insert into something_sequence values('tracks', 3503); +insert into something_sequence values('employees', 8); +insert into something_sequence values('customers', 59); +insert into something_sequence values('invoices', 412); +insert into something_sequence values('invoice_lines', 2240); +insert into something_sequence values('playlists', 18); + +create table albums ( +id integer, +title text, +artist_id integer +); +insert into albums values(1, 'for those about to rock we salute you', 1); +insert into albums values(4, 'balls to the wall', 1); +insert into albums values(2, 'restless and wild', 2); +insert into albums values(3, 'let there be rock', 2); +insert into albums values(5, 'big ones', 3); +insert into albums values(6, 'jagged little pill', 4); +insert into albums values(7, 'facelift', 5); +insert into albums values(8, 'warner 25 anos', 6); +insert into albums values(34, 'plays metallica by four cellos', 6); +insert into albums values(9, 'audioslave', 7); +insert into albums values(10, 'out of exile', 8); +insert into albums values(11, 'backbeat soundtrack', 8); +insert into albums values(271, 'the best of billy cobham', 8); +insert into albums values(12, 'alcohol fueled brewtality live! [disc 1]', 9); +insert into albums values(13, 'alcohol fueled brewtality live! [disc 2]', 10); +insert into albums values(14, 'black sabbath', 11); +insert into albums values(15, 'black sabbath vol. 4 remaster', 11); +insert into albums values(16, 'body count', 12); +insert into albums values(17, 'chemical wedding', 12); +insert into albums values(18, 'the best of buddy guy - the millenium collection', 13); +insert into albums values(19, 'prenda minha', 14); +insert into albums values(20, 'sozinho remix ao vivo', 15); +insert into albums values(21, 'minha historia', 16); +insert into albums values(22, 'afrociberdelia', 16); +insert into albums values(23, 'da lama ao caos', 17); +insert into albums values(24, 'acústico mtv live', 18); +insert into albums values(25, 'cidade negra - hits', 18); +insert into albums values(26, 'na pista', 19); +insert into albums values(27, 'axé bahia 2001', 19); +insert into albums values(28, 'bbc sessions [disc 1] live', 20); +insert into albums values(29, 'bongo fury', 21); +insert into albums values(32, 'carnaval 2001', 21); +insert into albums values(45, 'chill: brazil disc 1', 21); +insert into albums values(53, 'chill: brazil disc 2', 21); +insert into albums values(30, 'garage inc. disc 1', 22); +insert into albums values(44, 'greatest hits ii', 22); +insert into albums values(127, 'greatest kiss', 22); +insert into albums values(128, 'heart of the night', 22); +insert into albums values(129, 'international superhits', 22); +insert into albums values(130, 'into the light', 22); +insert into albums values(131, 'meus momentos', 22); +insert into albums values(132, 'minha história', 22); +insert into albums values(133, 'mk iii the final concerts [disc 1]', 22); +insert into albums values(134, 'physical graffiti [disc 1]', 22); +insert into albums values(135, 'sambas de enredo 2001', 22); +insert into albums values(136, 'supernatural', 22); +insert into albums values(137, 'the best of ed motta', 22); +insert into albums values(138, 'the essential miles davis [disc 1]', 22); +insert into albums values(31, 'the essential miles davis [disc 2]', 23); +insert into albums values(33, 'the final concerts disc 2', 24); +insert into albums values(85, 'up an atom', 27); +insert into albums values(86, 'vinícius de moraes - sem limite', 27); +insert into albums values(87, 'vozes do mpb', 27); +insert into albums values(259, 'chronicle vol. 1', 36); +insert into albums values(47, 'chronicle vol. 2', 37); +insert into albums values(71, 'cássia eller - coleção sem limite [disc 2]', 41); +insert into albums values(158, 'cássia eller - sem limite [disc 1]', 42); +insert into albums values(159, 'come taste the band', 42); +insert into albums values(122, 'deep purple in rock', 46); +insert into albums values(35, 'fireball', 50); +insert into albums values(148, 'knocking at your back door: the best of deep purple in the 80s', 50); +insert into albums values(149, 'machine head', 50); +insert into albums values(150, 'purpendicular', 50); +insert into albums values(151, 'slaves and masters', 50); +insert into albums values(152, 'stormbringer', 50); +insert into albums values(153, 'the battle rages on', 50); +insert into albums values(154, 'vault: def leppards greatest hits', 50); +insert into albums values(155, 'outbreak', 50); +insert into albums values(156, 'djavan ao vivo - vol. 02', 50); +insert into albums values(36, 'djavan ao vivo - vol. 1', 51); +insert into albums values(185, 'elis regina-minha história', 51); +insert into albums values(186, 'the cream of clapton', 51); +insert into albums values(37, 'unplugged', 52); +insert into albums values(126, 'album of the year', 52); +insert into albums values(38, 'angel dust', 53); +insert into albums values(204, 'king for a day fool for a lifetime', 53); +insert into albums values(39, 'the real thing', 54); +insert into albums values(89, 'deixa entrar', 54); +insert into albums values(40, 'in your honor [disc 1]', 55); +insert into albums values(41, 'in your honor [disc 2]', 56); +insert into albums values(42, 'one by one', 57); +insert into albums values(43, 'the colour and the shape', 58); +insert into albums values(50, 'my way: the best of frank sinatra [disc 1]', 58); +insert into albums values(58, 'roda de funk', 58); +insert into albums values(59, 'as canções de eu tu eles', 58); +insert into albums values(60, 'quanta gente veio ver live', 58); +insert into albums values(61, 'quanta gente veio ver--bônus de carnaval', 58); +insert into albums values(62, 'faceless', 58); +insert into albums values(63, 'american idiot', 58); +insert into albums values(64, 'appetite for destruction', 58); +insert into albums values(65, 'use your illusion i', 58); +insert into albums values(66, 'use your illusion ii', 58); +insert into albums values(46, 'blue moods', 59); +insert into albums values(197, 'a matter of life and death', 59); +insert into albums values(198, 'a real dead one', 59); +insert into albums values(48, 'a real live one', 68); +insert into albums values(49, 'brave new world', 68); +insert into albums values(157, 'dance of death', 68); +insert into albums values(51, 'fear of the dark', 69); +insert into albums values(52, 'iron maiden', 70); + +create table employees ( +id integer, +last_name text, +first_name text, +title text, +reports_to null, +birth_date text, +hire_date text, +address text, +city text, +state text, +country text, +postal_code text, +phone text, +fax text, +email text +); +insert into employees values(1, 'adams', 'andrew', 'general manager', 'null', '1962-02-18 00:00:00', '2002-08-14 00:00:00', '11120 jasper ave nw', 'edmonton', 'ab', 'canada', 't5k 2n1', '+1 780 428-9482', '+1 780 428-3457', 'andrew@chinookcorp.com'); +insert into employees values(2, 'edwards', 'nancy', 'sales manager', 1, '1958-12-08 00:00:00', '2002-05-01 00:00:00', '825 8 ave sw', 'calgary', 'ab', 'canada', 't2p 2t3', '+1 403 262-3443', '+1 403 262-3322', 'nancy@chinookcorp.com'); +insert into employees values(6, 'peacock', 'jane', 'sales support agent', 1, '1973-08-29 00:00:00', '2002-04-01 00:00:00', '1111 6 ave sw', 'calgary', 'ab', 'canada', 't2p 5m5', '+1 403 262-3443', '+1 403 262-6712', 'jane@chinookcorp.com'); +insert into employees values(3, 'park', 'margaret', 'sales support agent', 2, '1947-09-19 00:00:00', '2003-05-03 00:00:00', '683 10 street sw', 'calgary', 'ab', 'canada', 't2p 5g3', '+1 403 263-4423', '+1 403 263-4289', 'margaret@chinookcorp.com'); +insert into employees values(4, 'johnson', 'steve', 'sales support agent', 2, '1965-03-03 00:00:00', '2003-10-17 00:00:00', '7727b 41 ave', 'calgary', 'ab', 'canada', 't3b 1y7', '1 780 836-9987', '1 780 836-9543', 'steve@chinookcorp.com'); +insert into employees values(5, 'mitchell', 'michael', 'it manager', 2, '1973-07-01 00:00:00', '2003-10-17 00:00:00', '5827 bowness road nw', 'calgary', 'ab', 'canada', 't3b 0c5', '+1 403 246-9887', '+1 403 246-9899', 'michael@chinookcorp.com'); +insert into employees values(7, 'king', 'robert', 'it staff', 6, '1970-05-29 00:00:00', '2004-01-02 00:00:00', '590 columbia boulevard west', 'lethbridge', 'ab', 'canada', 't1k 5n8', '+1 403 456-9986', '+1 403 456-8485', 'robert@chinookcorp.com'); +insert into employees values(8, 'callahan', 'laura', 'it staff', 6, '1968-01-09 00:00:00', '2004-03-04 00:00:00', '923 7 st nw', 'lethbridge', 'ab', 'canada', 't1h 1y8', '+1 403 467-3351', '+1 403 467-8772', 'laura@chinookcorp.com'); + +create table customers ( +id integer, +first_name text, +last_name text, +company text, +address text, +city text, +state text, +country text, +postal_code text, +phone text, +fax text, +email text, +support_rep_id integer +); +insert into customers values(1, 'luís', 'gonçalves', 'embraer - empresa brasileira de aeronáutica s.a.', 'av. brigadeiro faria lima 2170', 'são josé dos campos', 'sp', 'brazil', '12227-000', '+55 12 3923-5555', '+55 12 3923-5566', 'luisg@embraer.com.br', 3); +insert into customers values(3, 'leonie', 'köhler', 'null', 'theodor-heuss-straße 34', 'stuttgart', 'null', 'germany', 70174, '+49 0711 2842222', 'null', 'leonekohler@surfeu.de', 3); +insert into customers values(12, 'françois', 'tremblay', 'null', '1498 rue bélanger', 'montréal', 'qc', 'canada', 'h2g 1a7', '+1 514 721-4711', 'null', 'ftremblay@gmail.com', 3); +insert into customers values(15, 'bjørn', 'hansen', 'null', 'ullevålsveien 14', 'oslo', 'null', 'norway', 0171, '+47 22 44 22 22', 'null', 'bjorn.hansen@yahoo.no', 3); +insert into customers values(18, 'františek', 'wichterlová', 'jetbrains s.r.o.', 'klanova 9/506', 'prague', 'null', 'czech republic', 14700, '+420 2 4172 5555', '+420 2 4172 5555', 'frantisekw@jetbrains.com', 3); +insert into customers values(19, 'helena', 'holý', 'null', 'rilská 3174/6', 'prague', 'null', 'czech republic', 14300, '+420 2 4177 0449', 'null', 'hholy@gmail.com', 3); +insert into customers values(24, 'astrid', 'gruber', 'null', 'rotenturmstraße 4 1010 innere stadt', 'vienne', 'null', 'austria', 1010, '+43 01 5134505', 'null', 'astrid.gruber@apple.at', 3); +insert into customers values(29, 'daan', 'peeters', 'null', 'grétrystraat 63', 'brussels', 'null', 'belgium', 1000, '+32 02 219 03 03', 'null', 'daan_peeters@apple.be', 3); +insert into customers values(30, 'kara', 'nielsen', 'null', 'sønder boulevard 51', 'copenhagen', 'null', 'denmark', 1720, '+453 3331 9991', 'null', 'kara.nielsen@jubii.dk', 3); +insert into customers values(33, 'eduardo', 'martins', 'woodstock discos', 'rua dr. falcão filho 155', 'são paulo', 'sp', 'brazil', '01007-010', '+55 11 3033-5446', '+55 11 3033-4564', 'eduardo@woodstock.com.br', 3); +insert into customers values(37, 'alexandre', 'rocha', 'banco do brasil s.a.', 'av. paulista 2022', 'são paulo', 'sp', 'brazil', '01310-200', '+55 11 3055-3278', '+55 11 3055-8131', 'alero@uol.com.br', 3); +insert into customers values(38, 'roberto', 'almeida', 'riotur', 'praça pio x 119', 'rio de janeiro', 'rj', 'brazil', '20040-020', '+55 21 2271-7000', '+55 21 2271-7070', 'roberto.almeida@riotur.gov.br', 3); +insert into customers values(42, 'fernanda', 'ramos', 'null', 'qe 7 bloco g', 'brasília', 'df', 'brazil', '71020-677', '+55 61 3363-5547', '+55 61 3363-7855', 'fernadaramos4@uol.com.br', 3); +insert into customers values(43, 'mark', 'philips', 'telus', '8210 111 st nw', 'edmonton', 'ab', 'canada', 't6g 2c7', '+1 780 434-4554', '+1 780 434-5565', 'mphilips12@shaw.ca', 3); +insert into customers values(44, 'jennifer', 'peterson', 'rogers canada', '700 w pender street', 'vancouver', 'bc', 'canada', 'v6c 1g8', '+1 604 688-2255', '+1 604 688-8756', 'jenniferp@rogers.ca', 3); +insert into customers values(45, 'frank', 'harris', 'google inc.', '1600 amphitheatre parkway', 'mountain view', 'ca', 'usa', '94043-1351', '+1 650 253-0000', '+1 650 253-0000', 'fharris@google.com', 3); +insert into customers values(46, 'jack', 'smith', 'microsoft corporation', '1 microsoft way', 'redmond', 'wa', 'usa', '98052-8300', '+1 425 882-8080', '+1 425 882-8081', 'jacksmith@microsoft.com', 3); +insert into customers values(52, 'michelle', 'brooks', 'null', '627 broadway', 'new york', 'ny', 'usa', '10012-2612', '+1 212 221-3546', '+1 212 221-4679', 'michelleb@aol.com', 3); +insert into customers values(53, 'tim', 'goyer', 'apple inc.', '1 infinite loop', 'cupertino', 'ca', 'usa', 95014, '+1 408 996-1010', '+1 408 996-1011', 'tgoyer@apple.com', 3); +insert into customers values(58, 'dan', 'miller', 'null', '541 del medio avenue', 'mountain view', 'ca', 'usa', '94040-111', '+1 650 644-3358', 'null', 'dmiller@comcast.com', 3); +insert into customers values(59, 'kathy', 'chase', 'null', '801 w 4th street', 'reno', 'nv', 'usa', 89503, '+1 775 223-7665', 'null', 'kachase@hotmail.com', 3); +insert into customers values(4, 'heather', 'leacock', 'null', '120 s orange ave', 'orlando', 'fl', 'usa', 32801, '+1 407 999-7788', 'null', 'hleacock@gmail.com', 4); +insert into customers values(5, 'john', 'gordon', 'null', '69 salem street', 'boston', 'ma', 'usa', 2113, '+1 617 522-1333', 'null', 'johngordon22@yahoo.com', 4); +insert into customers values(8, 'frank', 'ralston', 'null', '162 e superior street', 'chicago', 'il', 'usa', 60611, '+1 312 332-3232', 'null', 'fralston@gmail.com', 4); +insert into customers values(9, 'victor', 'stevens', 'null', '319 n. frances street', 'madison', 'wi', 'usa', 53703, '+1 608 257-0597', 'null', 'vstevens@yahoo.com', 4); +insert into customers values(10, 'richard', 'cunningham', 'null', '2211 w berry street', 'fort worth', 'tx', 'usa', 76110, '+1 817 924-7272', 'null', 'ricunningham@hotmail.com', 4); +insert into customers values(13, 'patrick', 'gray', 'null', '1033 n park ave', 'tucson', 'az', 'usa', 85719, '+1 520 622-4200', 'null', 'patrick.gray@aol.com', 4); +insert into customers values(16, 'julia', 'barnett', 'null', '302 s 700 e', 'salt lake city', 'ut', 'usa', 84102, '+1 801 531-7272', 'null', 'jubarnett@gmail.com', 4); +insert into customers values(20, 'robert', 'brown', 'null', '796 dundas street west', 'toronto', 'on', 'canada', 'm6j 1v1', '+1 416 363-8888', 'null', 'robbrown@shaw.ca', 4); +insert into customers values(22, 'edward', 'francis', 'null', '230 elgin street', 'ottawa', 'on', 'canada', 'k2p 1l7', '+1 613 234-3322', 'null', 'edfrancis@yachoo.ca', 4); +insert into customers values(23, 'martha', 'silk', 'null', '194a chain lake drive', 'halifax', 'ns', 'canada', 'b3s 1c5', '+1 902 450-0450', 'null', 'marthasilk@gmail.com', 4); +insert into customers values(26, 'aaron', 'mitchell', 'null', '696 osborne street', 'winnipeg', 'mb', 'canada', 'r3l 2b9', '+1 204 452-6452', 'null', 'aaronmitchell@yahoo.ca', 4); +insert into customers values(27, 'ellie', 'sullivan', 'null', '5112 48 street', 'yellowknife', 'nt', 'canada', 'x1a 1n6', '+1 867 920-2233', 'null', 'ellie.sullivan@shaw.ca', 4); +insert into customers values(32, 'joão', 'fernandes', 'null', 'rua da assunção 53', 'lisbon', 'null', 'portugal', 'null', '+351 213 466-111', 'null', 'jfernandes@yahoo.pt', 4); +insert into customers values(34, 'madalena', 'sampaio', 'null', 'rua dos campeões europeus de viena 4350', 'porto', 'null', 'portugal', 'null', '+351 225 022-448', 'null', 'masampaio@sapo.pt', 4); +insert into customers values(35, 'hannah', 'schneider', 'null', 'tauentzienstraße 8', 'berlin', 'null', 'germany', 10789, '+49 030 26550280', 'null', 'hannah.schneider@yahoo.de', 4); +insert into customers values(39, 'fynn', 'zimmermann', 'null', 'berger straße 10', 'frankfurt', 'null', 'germany', 60316, '+49 069 40598889', 'null', 'fzimmermann@yahoo.de', 4); +insert into customers values(40, 'niklas', 'schröder', 'null', 'barbarossastraße 19', 'berlin', 'null', 'germany', 10779, '+49 030 2141444', 'null', 'nschroder@surfeu.de', 4); +insert into customers values(49, 'camille', 'bernard', 'null', '4 rue milton', 'paris', 'null', 'france', 75009, '+33 01 49 70 65 65', 'null', 'camille.bernard@yahoo.fr', 4); +insert into customers values(55, 'dominique', 'lefebvre', 'null', '8 rue hanovre', 'paris', 'null', 'france', 75002, '+33 01 47 42 71 71', 'null', 'dominiquelefebvre@gmail.com', 4); +insert into customers values(56, 'marc', 'dubois', 'null', '11 place bellecour', 'lyon', 'null', 'france', 69002, '+33 04 78 30 30 30', 'null', 'marc.dubois@hotmail.com', 4); +insert into customers values(2, 'wyatt', 'girard', 'null', '9 place louis barthou', 'bordeaux', 'null', 'france', 33000, '+33 05 56 96 96 96', 'null', 'wyatt.girard@yahoo.fr', 5); +insert into customers values(6, 'isabelle', 'mercier', 'null', '68 rue jouvence', 'dijon', 'null', 'france', 21000, '+33 03 80 73 66 99', 'null', 'isabelle_mercier@apple.fr', 5); +insert into customers values(7, 'terhi', 'hämäläinen', 'null', 'porthaninkatu 9', 'helsinki', 'null', 'finland', 00530, '+358 09 870 2000', 'null', 'terhi.hamalainen@apple.fi', 5); +insert into customers values(11, 'ladislav', 'kovács', 'null', 'erzsébet krt. 58.', 'budapest', 'null', 'hungary', 'h-1073', 'null', 'null', 'ladislav_kovacs@apple.hu', 5); +insert into customers values(14, 'hugh', 'oreilly', 'null', '3 chatham street', 'dublin', 'dublin', 'ireland', 'null', '+353 01 6792424', 'null', 'hughoreilly@apple.ie', 5); +insert into customers values(17, 'lucas', 'mancini', 'null', 'via degli scipioni 43', 'rome', 'rm', 'italy', 00192, '+39 06 39733434', 'null', 'lucas.mancini@yahoo.it', 5); +insert into customers values(21, 'johannes', 'van der berg', 'null', 'lijnbaansgracht 120bg', 'amsterdam', 'vv', 'netherlands', 1016, '+31 020 6223130', 'null', 'johavanderberg@yahoo.nl', 5); +insert into customers values(25, 'stanisław', 'wójcik', 'null', 'ordynacka 10', 'warsaw', 'null', 'poland', '00-358', '+48 22 828 37 39', 'null', 'stanisław.wójcik@wp.pl', 5); +insert into customers values(28, 'enrique', 'muñoz', 'null', 'c/ san bernardo 85', 'madrid', 'null', 'spain', 28015, '+34 914 454 454', 'null', 'enrique_munoz@yahoo.es', 5); +insert into customers values(31, 'joakim', 'johansson', 'null', 'celsiusg. 9', 'stockholm', 'null', 'sweden', 11230, '+46 08-651 52 52', 'null', 'joakim.johansson@yahoo.se', 5); +insert into customers values(36, 'emma', 'jones', 'null', '202 hoxton street', 'london', 'null', 'united kingdom', 'n1 5lh', '+44 020 7707 0707', 'null', 'emma_jones@hotmail.com', 5); +insert into customers values(41, 'phil', 'hughes', 'null', '113 lupus st', 'london', 'null', 'united kingdom', 'sw1v 3en', '+44 020 7976 5722', 'null', 'phil.hughes@gmail.com', 5); +insert into customers values(47, 'steve', 'murray', 'null', '110 raeburn pl', 'edinburgh', 'null', 'united kingdom', 'eh4 1hh', '+44 0131 315 3300', 'null', 'steve.murray@yahoo.uk', 5); +insert into customers values(48, 'mark', 'taylor', 'null', '421 bourke street', 'sidney', 'nsw', 'australia', 2010, '+61 02 9332 3633', 'null', 'mark.taylor@yahoo.au', 5); +insert into customers values(50, 'diego', 'gutiérrez', 'null', '307 macacha güemes', 'buenos aires', 'null', 'argentina', 1106, '+54 011 4311 4333', 'null', 'diego.gutierrez@yahoo.ar', 5); +insert into customers values(51, 'luis', 'rojas', 'null', 'calle lira 198', 'santiago', 'null', 'chile', 'null', '+56 02 635 4444', 'null', 'luisrojas@yahoo.cl', 5); +insert into customers values(54, 'manoj', 'pareek', 'null', '12community centre', 'delhi', 'null', 'india', 110017, '+91 0124 39883988', 'null', 'manoj.pareek@rediff.com', 5); +insert into customers values(57, 'puja', 'srivastava', 'null', '3raj bhavan road', 'bangalore', 'null', 'india', 560001, '+91 080 22289999', 'null', 'puja_srivastava@yahoo.in', 5); + +create table genres ( +id integer, +name text +); +insert into genres values(1, 'rock'); +insert into genres values(2, 'jazz'); +insert into genres values(3, 'metal'); +insert into genres values(4, 'alternative & punk'); +insert into genres values(5, 'rock and roll'); +insert into genres values(6, 'blues'); +insert into genres values(7, 'latin'); +insert into genres values(8, 'reggae'); +insert into genres values(9, 'pop'); +insert into genres values(10, 'soundtrack'); +insert into genres values(11, 'bossa nova'); +insert into genres values(12, 'easy listening'); +insert into genres values(13, 'heavy metal'); +insert into genres values(14, 'r&b/soul'); +insert into genres values(15, 'electronica/dance'); +insert into genres values(16, 'world'); +insert into genres values(17, 'hip hop/rap'); +insert into genres values(18, 'science fiction'); +insert into genres values(19, 'tv shows'); +insert into genres values(20, 'sci fi & fantasy'); +insert into genres values(21, 'drama'); +insert into genres values(22, 'comedy'); +insert into genres values(23, 'alternative'); +insert into genres values(24, 'classical'); +insert into genres values(25, 'opera'); + +create table invoices ( +id integer, +customer_id integer, +invoice_date text, +billing_address text, +billing_city text, +billing_state null, +billing_country text, +billing_postal_code text, +total real +); +insert into invoices values(98, 1, '2007-01-01 00:00:00', 'theodor-heuss-straße 34', 'stuttgart', 'null', 'germany', 70174, 1.98); +insert into invoices values(121, 1, '2007-01-02 00:00:00', 'ullevålsveien 14', 'oslo', 'null', 'norway', 0171, 3.96); +insert into invoices values(143, 1, '2007-01-03 00:00:00', 'grétrystraat 63', 'brussels', 'null', 'belgium', 1000, 5.94); +insert into invoices values(195, 1, '2007-01-06 00:00:00', '8210 111 st nw', 'edmonton', 'ab', 'canada', 't6g 2c7', 8.91); +insert into invoices values(316, 1, '2007-01-11 00:00:00', '69 salem street', 'boston', 'ma', 'usa', 2113, 13.86); +insert into invoices values(327, 1, '2007-01-19 00:00:00', 'berger straße 10', 'frankfurt', 'null', 'germany', 60316, 0.99); +insert into invoices values(382, 1, '2007-02-01 00:00:00', 'barbarossastraße 19', 'berlin', 'null', 'germany', 10779, 1.98); +insert into invoices values(1, 2, '2007-02-01 00:00:00', '8 rue hanovre', 'paris', 'null', 'france', 75002, 1.98); +insert into invoices values(12, 2, '2007-02-02 00:00:00', '9 place louis barthou', 'bordeaux', 'null', 'france', 33000, 3.96); +insert into invoices values(67, 2, '2007-02-03 00:00:00', '3 chatham street', 'dublin', 'dublin', 'ireland', 'null', 5.94); +insert into invoices values(196, 2, '2007-02-06 00:00:00', '202 hoxton street', 'london', 'null', 'united kingdom', 'n1 5lh', 8.91); +insert into invoices values(219, 2, '2007-02-11 00:00:00', 'theodor-heuss-straße 34', 'stuttgart', 'null', 'germany', 70174, 13.86); +insert into invoices values(241, 2, '2007-02-19 00:00:00', '1600 amphitheatre parkway', 'mountain view', 'ca', 'usa', '94043-1351', 0.99); +insert into invoices values(293, 2, '2007-03-04 00:00:00', '1 microsoft way', 'redmond', 'wa', 'usa', '98052-8300', 1.98); +insert into invoices values(99, 3, '2007-03-04 00:00:00', '1 infinite loop', 'cupertino', 'ca', 'usa', 95014, 1.98); +insert into invoices values(110, 3, '2007-03-05 00:00:00', '801 w 4th street', 'reno', 'nv', 'usa', 89503, 3.96); +insert into invoices values(165, 3, '2007-03-06 00:00:00', '319 n. frances street', 'madison', 'wi', 'usa', 53703, 5.94); +insert into invoices values(294, 3, '2007-03-09 00:00:00', '194a chain lake drive', 'halifax', 'ns', 'canada', 'b3s 1c5', 8.91); +insert into invoices values(317, 3, '2007-03-14 00:00:00', '8 rue hanovre', 'paris', 'null', 'france', 75002, 13.86); +insert into invoices values(339, 3, '2007-03-22 00:00:00', '110 raeburn pl', 'edinburgh', 'null', 'united kingdom', 'eh4 1hh', 0.99); +insert into invoices values(391, 3, '2007-04-04 00:00:00', '421 bourke street', 'sidney', 'nsw', 'australia', 2010, 1.98); +insert into invoices values(2, 4, '2007-04-04 00:00:00', 'calle lira 198', 'santiago', 'null', 'chile', 'null', 1.98); +insert into invoices values(24, 4, '2007-04-05 00:00:00', '3raj bhavan road', 'bangalore', 'null', 'india', 560001, 3.96); +insert into invoices values(76, 4, '2007-04-06 00:00:00', 'ullevålsveien 14', 'oslo', 'null', 'norway', 0171, 5.94); +insert into invoices values(197, 4, '2007-04-09 00:00:00', 'rua dr. falcão filho 155', 'são paulo', 'sp', 'brazil', '01007-010', 8.91); +insert into invoices values(208, 4, '2007-04-14 00:00:00', '1 infinite loop', 'cupertino', 'ca', 'usa', 95014, 13.86); +insert into invoices values(263, 4, '2007-04-22 00:00:00', '5112 48 street', 'yellowknife', 'nt', 'canada', 'x1a 1n6', 0.99); +insert into invoices values(392, 4, '2007-05-05 00:00:00', 'rua da assunção 53', 'lisbon', 'null', 'portugal', 'null', 1.98); +insert into invoices values(77, 5, '2007-05-05 00:00:00', 'tauentzienstraße 8', 'berlin', 'null', 'germany', 10789, 1.98); +insert into invoices values(100, 5, '2007-05-06 00:00:00', 'barbarossastraße 19', 'berlin', 'null', 'germany', 10779, 3.96); +insert into invoices values(122, 5, '2007-05-07 00:00:00', '9 place louis barthou', 'bordeaux', 'null', 'france', 33000, 5.94); +insert into invoices values(174, 5, '2007-05-10 00:00:00', 'lijnbaansgracht 120bg', 'amsterdam', 'vv', 'netherlands', 1016, 8.91); +insert into invoices values(295, 5, '2007-05-15 00:00:00', 'calle lira 198', 'santiago', 'null', 'chile', 'null', 13.86); +insert into invoices values(306, 5, '2007-05-23 00:00:00', 'praça pio x 119', 'rio de janeiro', 'rj', 'brazil', '20040-020', 0.99); +insert into invoices values(361, 5, '2007-06-05 00:00:00', 'qe 7 bloco g', 'brasília', 'df', 'brazil', '71020-677', 1.98); +insert into invoices values(46, 6, '2007-06-05 00:00:00', '700 w pender street', 'vancouver', 'bc', 'canada', 'v6c 1g8', 1.98); +insert into invoices values(175, 6, '2007-06-06 00:00:00', '1 microsoft way', 'redmond', 'wa', 'usa', '98052-8300', 3.96); +insert into invoices values(198, 6, '2007-06-07 00:00:00', '801 w 4th street', 'reno', 'nv', 'usa', 89503, 5.94); +insert into invoices values(220, 6, '2007-06-10 00:00:00', '1033 n park ave', 'tucson', 'az', 'usa', 85719, 8.91); +insert into invoices values(272, 6, '2007-06-15 00:00:00', 'tauentzienstraße 8', 'berlin', 'null', 'germany', 10789, 13.86); +insert into invoices values(393, 6, '2007-06-23 00:00:00', 'c/ san bernardo 85', 'madrid', 'null', 'spain', 28015, 0.99); +insert into invoices values(404, 6, '2007-07-06 00:00:00', 'celsiusg. 9', 'stockholm', 'null', 'sweden', 11230, 1.98); +insert into invoices values(78, 7, '2007-07-06 00:00:00', '113 lupus st', 'london', 'null', 'united kingdom', 'sw1v 3en', 1.98); +insert into invoices values(89, 7, '2007-07-07 00:00:00', '421 bourke street', 'sidney', 'nsw', 'australia', 2010, 3.96); +insert into invoices values(144, 7, '2007-07-08 00:00:00', '3raj bhavan road', 'bangalore', 'null', 'india', 560001, 5.94); +insert into invoices values(273, 7, '2007-07-11 00:00:00', 'rilská 3174/6', 'prague', 'null', 'czech republic', 14300, 8.91); +insert into invoices values(296, 7, '2007-07-16 00:00:00', '700 w pender street', 'vancouver', 'bc', 'canada', 'v6c 1g8', 13.86); +insert into invoices values(318, 7, '2007-07-24 00:00:00', '796 dundas street west', 'toronto', 'on', 'canada', 'm6j 1v1', 0.99); +insert into invoices values(370, 7, '2007-08-06 00:00:00', '230 elgin street', 'ottawa', 'on', 'canada', 'k2p 1l7', 1.98); +insert into invoices values(3, 8, '2007-08-06 00:00:00', '696 osborne street', 'winnipeg', 'mb', 'canada', 'r3l 2b9', 1.98); +insert into invoices values(55, 8, '2007-08-07 00:00:00', 'rua da assunção 53', 'lisbon', 'null', 'portugal', 'null', 3.96); +insert into invoices values(176, 8, '2007-08-08 00:00:00', 'barbarossastraße 19', 'berlin', 'null', 'germany', 10779, 5.94); +insert into invoices values(187, 8, '2007-08-11 00:00:00', 'porthaninkatu 9', 'helsinki', 'null', 'finland', 00530, 8.91); +insert into invoices values(242, 8, '2007-08-16 00:00:00', '113 lupus st', 'london', 'null', 'united kingdom', 'sw1v 3en', 13.86); +insert into invoices values(371, 8, '2007-08-24 00:00:00', 'grétrystraat 63', 'brussels', 'null', 'belgium', 1000, 0.99); +insert into invoices values(394, 8, '2007-09-06 00:00:00', 'sønder boulevard 51', 'copenhagen', 'null', 'denmark', 1720, 1.98); +insert into invoices values(56, 9, '2007-09-06 00:00:00', 'av. paulista 2022', 'são paulo', 'sp', 'brazil', '01310-200', 1.98); +insert into invoices values(79, 9, '2007-09-07 00:00:00', 'qe 7 bloco g', 'brasília', 'df', 'brazil', '71020-677', 3.96); +insert into invoices values(101, 9, '2007-09-08 00:00:00', '1 microsoft way', 'redmond', 'wa', 'usa', '98052-8300', 5.94); +insert into invoices values(153, 9, '2007-09-11 00:00:00', '69 salem street', 'boston', 'ma', 'usa', 2113, 8.91); +insert into invoices values(274, 9, '2007-09-16 00:00:00', '696 osborne street', 'winnipeg', 'mb', 'canada', 'r3l 2b9', 13.86); +insert into invoices values(285, 9, '2007-09-24 00:00:00', '3 chatham street', 'dublin', 'dublin', 'ireland', 'null', 0.99); +insert into invoices values(340, 9, '2007-10-07 00:00:00', 'via degli scipioni 43', 'rome', 'rm', 'italy', 00192, 1.98); +insert into invoices values(25, 10, '2007-10-07 00:00:00', 'ordynacka 10', 'warsaw', 'null', 'poland', '00-358', 1.98); +insert into invoices values(154, 10, '2007-10-08 00:00:00', 'celsiusg. 9', 'stockholm', 'null', 'sweden', 11230, 3.96); +insert into invoices values(177, 10, '2007-10-09 00:00:00', '421 bourke street', 'sidney', 'nsw', 'australia', 2010, 5.94); +insert into invoices values(199, 10, '2007-10-12 00:00:00', 'theodor-heuss-straße 34', 'stuttgart', 'null', 'germany', 70174, 8.91); +insert into invoices values(251, 10, '2007-10-17 00:00:00', 'av. paulista 2022', 'são paulo', 'sp', 'brazil', '01310-200', 13.86); +insert into invoices values(372, 10, '2007-10-25 00:00:00', '319 n. frances street', 'madison', 'wi', 'usa', 53703, 0.99); +insert into invoices values(383, 10, '2007-11-07 00:00:00', '2211 w berry street', 'fort worth', 'tx', 'usa', 76110, 1.98); +insert into invoices values(57, 11, '2007-11-07 00:00:00', '302 s 700 e', 'salt lake city', 'ut', 'usa', 84102, 1.98); +insert into invoices values(68, 11, '2007-11-08 00:00:00', '230 elgin street', 'ottawa', 'on', 'canada', 'k2p 1l7', 3.96); +insert into invoices values(123, 11, '2007-11-09 00:00:00', 'rua da assunção 53', 'lisbon', 'null', 'portugal', 'null', 5.94); +insert into invoices values(252, 11, '2007-11-12 00:00:00', '8 rue hanovre', 'paris', 'null', 'france', 75002, 8.91); +insert into invoices values(275, 11, '2007-11-17 00:00:00', 'ordynacka 10', 'warsaw', 'null', 'poland', '00-358', 13.86); +insert into invoices values(297, 11, '2007-11-25 00:00:00', 'ullevålsveien 14', 'oslo', 'null', 'norway', 0171, 0.99); +insert into invoices values(349, 11, '2007-12-08 00:00:00', 'klanova 9/506', 'prague', 'null', 'czech republic', 14700, 1.98); +insert into invoices values(34, 12, '2007-12-08 00:00:00', 'rotenturmstraße 4 1010 innere stadt', 'vienne', 'null', 'austria', 1010, 1.98); +insert into invoices values(155, 12, '2007-12-09 00:00:00', 'sønder boulevard 51', 'copenhagen', 'null', 'denmark', 1720, 3.96); +insert into invoices values(166, 12, '2007-12-10 00:00:00', 'qe 7 bloco g', 'brasília', 'df', 'brazil', '71020-677', 5.94); +insert into invoices values(221, 12, '2007-12-13 00:00:00', '1 infinite loop', 'cupertino', 'ca', 'usa', 95014, 8.91); +insert into invoices values(350, 12, '2007-12-18 00:00:00', '302 s 700 e', 'salt lake city', 'ut', 'usa', 84102, 13.86); +insert into invoices values(373, 12, '2007-12-26 00:00:00', '9 place louis barthou', 'bordeaux', 'null', 'france', 33000, 0.99); +insert into invoices values(395, 12, '2008-01-08 00:00:00', '68 rue jouvence', 'dijon', 'null', 'france', 21000, 1.98); +insert into invoices values(35, 13, '2008-01-08 00:00:00', 'erzsébet krt. 58.', 'budapest', 'null', 'hungary', 'h-1073', 1.98); +insert into invoices values(58, 13, '2008-01-09 00:00:00', 'via degli scipioni 43', 'rome', 'rm', 'italy', 00192, 3.96); +insert into invoices values(80, 13, '2008-01-10 00:00:00', 'celsiusg. 9', 'stockholm', 'null', 'sweden', 11230, 6.94); +insert into invoices values(132, 13, '2008-01-13 00:00:00', 'calle lira 198', 'santiago', 'null', 'chile', 'null', 17.91); +insert into invoices values(253, 13, '2008-01-18 00:00:00', 'rotenturmstraße 4 1010 innere stadt', 'vienne', 'null', 'austria', 1010, 18.86); +insert into invoices values(264, 13, '2008-01-26 00:00:00', '801 w 4th street', 'reno', 'nv', 'usa', 89503, 0.99); +insert into invoices values(319, 13, '2008-02-08 00:00:00', '120 s orange ave', 'orlando', 'fl', 'usa', 32801, 1.98); +insert into invoices values(4, 14, '2008-02-08 00:00:00', '162 e superior street', 'chicago', 'il', 'usa', 60611, 1.98); +insert into invoices values(133, 14, '2008-02-09 00:00:00', '2211 w berry street', 'fort worth', 'tx', 'usa', 76110, 3.96); +insert into invoices values(156, 14, '2008-02-10 00:00:00', '230 elgin street', 'ottawa', 'on', 'canada', 'k2p 1l7', 5.94); +insert into invoices values(178, 14, '2008-02-13 00:00:00', 'tauentzienstraße 8', 'berlin', 'null', 'germany', 10789, 8.91); +insert into invoices values(230, 14, '2008-02-18 00:00:00', 'erzsébet krt. 58.', 'budapest', 'null', 'hungary', 'h-1073', 21.86); +insert into invoices values(351, 14, '2008-02-26 00:00:00', '3raj bhavan road', 'bangalore', 'null', 'india', 560001, 1.99); +insert into invoices values(362, 14, '2008-03-10 00:00:00', 'av. brigadeiro faria lima 2170', 'são josé dos campos', 'sp', 'brazil', '12227-000', 3.98); +insert into invoices values(36, 15, '2008-03-10 00:00:00', '1498 rue bélanger', 'montréal', 'qc', 'canada', 'h2g 1a7', 3.98); +insert into invoices values(47, 15, '2008-03-11 00:00:00', 'klanova 9/506', 'prague', 'null', 'czech republic', 14700, 3.96); + +create table media_types ( +id integer, +name text +); +insert into media_types values(1, 'mpeg audio file'); +insert into media_types values(2, 'protected aac audio file'); +insert into media_types values(3, 'protected mpeg-4 video file'); +insert into media_types values(4, 'purchased aac audio file'); +insert into media_types values(5, 'aac audio file'); + +create table invoice_lines ( +id integer, +invoice_id integer, +track_id integer, +unit_price real, +quantity integer +); +insert into invoice_lines values(579, 1, 1, 0.99, 1); +insert into invoice_lines values(1, 1, 2, 0.99, 1); +insert into invoice_lines values(1154, 2, 2, 0.99, 1); +insert into invoice_lines values(1728, 2, 3, 0.99, 1); +insert into invoice_lines values(2, 2, 4, 0.99, 1); +insert into invoice_lines values(580, 2, 5, 0.99, 1); +insert into invoice_lines values(3, 3, 6, 0.99, 1); +insert into invoice_lines values(4, 3, 8, 0.99, 1); +insert into invoice_lines values(1155, 3, 8, 0.99, 1); +insert into invoice_lines values(581, 3, 9, 0.99, 1); +insert into invoice_lines values(1729, 3, 9, 0.99, 1); +insert into invoice_lines values(5, 3, 10, 0.99, 1); +insert into invoice_lines values(6, 4, 12, 0.99, 1); +insert into invoice_lines values(582, 4, 13, 0.99, 1); +insert into invoice_lines values(1156, 4, 14, 0.99, 1); +insert into invoice_lines values(1730, 4, 15, 0.99, 1); +insert into invoice_lines values(7, 4, 16, 0.99, 1); +insert into invoice_lines values(583, 4, 19, 0.99, 1); +insert into invoice_lines values(8, 4, 20, 0.99, 1); +insert into invoice_lines values(1157, 4, 20, 0.99, 1); +insert into invoice_lines values(1731, 4, 21, 0.99, 1); +insert into invoice_lines values(9, 5, 24, 0.99, 1); +insert into invoice_lines values(584, 5, 25, 0.99, 1); +insert into invoice_lines values(1158, 5, 26, 0.99, 1); +insert into invoice_lines values(10, 5, 28, 0.99, 1); +insert into invoice_lines values(1732, 5, 30, 0.99, 1); +insert into invoice_lines values(585, 5, 31, 0.99, 1); +insert into invoice_lines values(11, 5, 32, 0.99, 1); +insert into invoice_lines values(1159, 5, 32, 0.99, 1); +insert into invoice_lines values(12, 5, 36, 0.99, 1); +insert into invoice_lines values(586, 5, 37, 0.99, 1); +insert into invoice_lines values(1160, 5, 38, 0.99, 1); +insert into invoice_lines values(1733, 5, 39, 0.99, 1); +insert into invoice_lines values(13, 5, 42, 0.99, 1); +insert into invoice_lines values(587, 5, 43, 0.99, 1); +insert into invoice_lines values(1161, 6, 44, 0.99, 1); +insert into invoice_lines values(14, 7, 48, 0.99, 1); +insert into invoice_lines values(1734, 7, 48, 0.99, 1); +insert into invoice_lines values(588, 8, 49, 0.99, 1); +insert into invoice_lines values(1162, 8, 53, 0.99, 1); +insert into invoice_lines values(15, 9, 54, 0.99, 1); +insert into invoice_lines values(589, 9, 55, 0.99, 1); +insert into invoice_lines values(1735, 9, 57, 0.99, 1); +insert into invoice_lines values(16, 9, 60, 0.99, 1); +insert into invoice_lines values(590, 10, 61, 0.99, 1); +insert into invoice_lines values(1163, 10, 62, 0.99, 1); +insert into invoice_lines values(17, 10, 66, 0.99, 1); +insert into invoice_lines values(1736, 10, 66, 0.99, 1); +insert into invoice_lines values(591, 10, 67, 0.99, 1); +insert into invoice_lines values(1164, 10, 71, 0.99, 1); +insert into invoice_lines values(18, 11, 72, 0.99, 1); +insert into invoice_lines values(1737, 11, 75, 0.99, 1); +insert into invoice_lines values(592, 11, 76, 0.99, 1); +insert into invoice_lines values(19, 11, 78, 0.99, 1); +insert into invoice_lines values(1165, 11, 80, 0.99, 1); +insert into invoice_lines values(20, 11, 84, 0.99, 1); +insert into invoice_lines values(1738, 11, 84, 0.99, 1); +insert into invoice_lines values(593, 11, 85, 0.99, 1); +insert into invoice_lines values(1166, 11, 89, 0.99, 1); +insert into invoice_lines values(21, 12, 90, 0.99, 1); +insert into invoice_lines values(1739, 12, 93, 0.99, 1); +insert into invoice_lines values(594, 12, 94, 0.99, 1); +insert into invoice_lines values(1167, 12, 98, 0.99, 1); +insert into invoice_lines values(22, 12, 99, 0.99, 1); +insert into invoice_lines values(1740, 12, 102, 0.99, 1); +insert into invoice_lines values(595, 12, 103, 0.99, 1); +insert into invoice_lines values(1168, 12, 107, 0.99, 1); +insert into invoice_lines values(23, 12, 108, 0.99, 1); +insert into invoice_lines values(1741, 12, 111, 0.99, 1); +insert into invoice_lines values(596, 12, 112, 0.99, 1); +insert into invoice_lines values(1169, 12, 116, 0.99, 1); +insert into invoice_lines values(24, 12, 117, 0.99, 1); +insert into invoice_lines values(1742, 12, 120, 0.99, 1); +insert into invoice_lines values(597, 13, 121, 0.99, 1); +insert into invoice_lines values(1170, 14, 125, 0.99, 1); +insert into invoice_lines values(25, 14, 126, 0.99, 1); +insert into invoice_lines values(1743, 15, 129, 0.99, 1); +insert into invoice_lines values(598, 15, 130, 0.99, 1); +insert into invoice_lines values(1171, 16, 134, 0.99, 1); +insert into invoice_lines values(26, 16, 135, 0.99, 1); +insert into invoice_lines values(1744, 16, 138, 0.99, 1); +insert into invoice_lines values(599, 16, 139, 0.99, 1); +insert into invoice_lines values(1172, 17, 143, 0.99, 1); +insert into invoice_lines values(27, 17, 144, 0.99, 1); +insert into invoice_lines values(1745, 17, 147, 0.99, 1); +insert into invoice_lines values(600, 17, 148, 0.99, 1); +insert into invoice_lines values(1173, 17, 152, 0.99, 1); +insert into invoice_lines values(28, 17, 153, 0.99, 1); +insert into invoice_lines values(601, 18, 157, 0.99, 1); +insert into invoice_lines values(1174, 18, 161, 0.99, 1); +insert into invoice_lines values(1746, 18, 161, 0.99, 1); +insert into invoice_lines values(29, 18, 162, 0.99, 1); +insert into invoice_lines values(1747, 18, 162, 0.99, 1); +insert into invoice_lines values(1748, 18, 163, 0.99, 1); +insert into invoice_lines values(1749, 18, 165, 0.99, 1); +insert into invoice_lines values(602, 18, 166, 0.99, 1); +insert into invoice_lines values(1750, 18, 167, 0.99, 1); +insert into invoice_lines values(1751, 19, 169, 0.99, 1); +insert into invoice_lines values(1175, 19, 170, 0.99, 1); +insert into invoice_lines values(30, 19, 171, 0.99, 1); +create table tracks_playlist_tracks_playlists ( +id_tracks_playlist_tracks integer, +name_tracks_playlist_tracks text, +album_id integer, +media_type_id integer, +genre_id integer, +composer text, +milliseconds integer, +bytes integer, +unit_price real, +playlist_id integer, +name_playlists text); +insert into tracks_playlist_tracks_playlists values(1, 'for those about to rock we salute you', 1, 1, 1, 'angus young malcolm young brian johnson', 343719, 11170334, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(1, 'for those about to rock we salute you', 1, 1, 1, 'angus young malcolm young brian johnson', 343719, 11170334, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(1, 'for those about to rock we salute you', 1, 1, 1, 'angus young malcolm young brian johnson', 343719, 11170334, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(6, 'balls to the wall', 1, 1, 1, 'NULL', 342562, 5510424, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(6, 'balls to the wall', 1, 1, 1, 'NULL', 342562, 5510424, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(7, 'fast as a shark', 1, 1, 1, 'f. baltes s. kaufman u. dirkscneider & w. hoffman', 230619, 3990994, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(7, 'fast as a shark', 1, 1, 1, 'f. baltes s. kaufman u. dirkscneider & w. hoffman', 230619, 3990994, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(8, 'restless and wild', 1, 1, 1, 'f. baltes r.a. smith-diesel s. kaufman u. dirkscneider & w. hoffman', 252051, 4331779, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(8, 'restless and wild', 1, 1, 1, 'f. baltes r.a. smith-diesel s. kaufman u. dirkscneider & w. hoffman', 252051, 4331779, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(9, 'princess of the dawn', 1, 1, 1, 'deaffy & r.a. smith-diesel', 375418, 6290521, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(9, 'princess of the dawn', 1, 1, 1, 'deaffy & r.a. smith-diesel', 375418, 6290521, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(10, 'put the finger on you', 1, 1, 1, 'angus young malcolm young brian johnson', 205662, 6713451, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(10, 'put the finger on you', 1, 1, 1, 'angus young malcolm young brian johnson', 205662, 6713451, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(11, 'lets get it up', 1, 1, 1, 'angus young malcolm young brian johnson', 233926, 7636561, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(11, 'lets get it up', 1, 1, 1, 'angus young malcolm young brian johnson', 233926, 7636561, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(12, 'inject the venom', 1, 1, 1, 'angus young malcolm young brian johnson', 210834, 6852860, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(12, 'inject the venom', 1, 1, 1, 'angus young malcolm young brian johnson', 210834, 6852860, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(13, 'snowballed', 1, 1, 1, 'angus young malcolm young brian johnson', 203102, 6599424, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(13, 'snowballed', 1, 1, 1, 'angus young malcolm young brian johnson', 203102, 6599424, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(14, 'evil walks', 1, 1, 1, 'angus young malcolm young brian johnson', 263497, 8611245, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(14, 'evil walks', 1, 1, 1, 'angus young malcolm young brian johnson', 263497, 8611245, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(15, 'c.o.d.', 2, 1, 1, 'angus young malcolm young brian johnson', 199836, 6566314, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(15, 'c.o.d.', 2, 1, 1, 'angus young malcolm young brian johnson', 199836, 6566314, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(16, 'breaking the rules', 3, 1, 1, 'angus young malcolm young brian johnson', 263288, 8596840, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(16, 'breaking the rules', 3, 1, 1, 'angus young malcolm young brian johnson', 263288, 8596840, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(17, 'night of the long knives', 3, 1, 1, 'angus young malcolm young brian johnson', 205688, 6706347, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(17, 'night of the long knives', 3, 1, 1, 'angus young malcolm young brian johnson', 205688, 6706347, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(18, 'spellbound', 3, 1, 1, 'angus young malcolm young brian johnson', 270863, 8817038, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(18, 'spellbound', 3, 1, 1, 'angus young malcolm young brian johnson', 270863, 8817038, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(19, 'go down', 4, 1, 1, 'ac/dc', 331180, 10847611, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(19, 'go down', 4, 1, 1, 'ac/dc', 331180, 10847611, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(20, 'dog eat dog', 4, 1, 1, 'ac/dc', 215196, 7032162, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(20, 'dog eat dog', 4, 1, 1, 'ac/dc', 215196, 7032162, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(21, 'let there be rock', 4, 1, 1, 'ac/dc', 366654, 12021261, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(21, 'let there be rock', 4, 1, 1, 'ac/dc', 366654, 12021261, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(22, 'bad boy boogie', 4, 1, 1, 'ac/dc', 267728, 8776140, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(22, 'bad boy boogie', 4, 1, 1, 'ac/dc', 267728, 8776140, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(23, 'problem child', 4, 1, 1, 'ac/dc', 325041, 10617116, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(23, 'problem child', 4, 1, 1, 'ac/dc', 325041, 10617116, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(23, 'problem child', 4, 1, 1, 'ac/dc', 325041, 10617116, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(24, 'overdose', 4, 1, 1, 'ac/dc', 369319, 12066294, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(24, 'overdose', 4, 1, 1, 'ac/dc', 369319, 12066294, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(24, 'overdose', 4, 1, 1, 'ac/dc', 369319, 12066294, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(25, 'hell aint a bad place to be', 4, 1, 1, 'ac/dc', 254380, 8331286, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(25, 'hell aint a bad place to be', 4, 1, 1, 'ac/dc', 254380, 8331286, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(25, 'hell aint a bad place to be', 4, 1, 1, 'ac/dc', 254380, 8331286, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(26, 'whole lotta rosie', 4, 1, 1, 'ac/dc', 323761, 10547154, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(26, 'whole lotta rosie', 4, 1, 1, 'ac/dc', 323761, 10547154, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(26, 'whole lotta rosie', 4, 1, 1, 'ac/dc', 323761, 10547154, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(27, 'walk on water', 5, 1, 1, 'steven tyler joe perry jack blades tommy shaw', 295680, 9719579, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(27, 'walk on water', 5, 1, 1, 'steven tyler joe perry jack blades tommy shaw', 295680, 9719579, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(27, 'walk on water', 5, 1, 1, 'steven tyler joe perry jack blades tommy shaw', 295680, 9719579, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(28, 'love in an elevator', 5, 1, 1, 'steven tyler joe perry', 321828, 10552051, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(28, 'love in an elevator', 5, 1, 1, 'steven tyler joe perry', 321828, 10552051, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(28, 'love in an elevator', 5, 1, 1, 'steven tyler joe perry', 321828, 10552051, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(29, 'rag doll', 5, 1, 1, 'steven tyler joe perry jim vallance holly knight', 264698, 8675345, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(29, 'rag doll', 5, 1, 1, 'steven tyler joe perry jim vallance holly knight', 264698, 8675345, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(29, 'rag doll', 5, 1, 1, 'steven tyler joe perry jim vallance holly knight', 264698, 8675345, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(30, 'what it takes', 5, 1, 1, 'steven tyler joe perry desmond child', 310622, 10144730, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(30, 'what it takes', 5, 1, 1, 'steven tyler joe perry desmond child', 310622, 10144730, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(30, 'what it takes', 5, 1, 1, 'steven tyler joe perry desmond child', 310622, 10144730, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(31, 'dude looks like a lady', 5, 1, 1, 'steven tyler joe perry desmond child', 264855, 8679940, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(31, 'dude looks like a lady', 5, 1, 1, 'steven tyler joe perry desmond child', 264855, 8679940, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(31, 'dude looks like a lady', 5, 1, 1, 'steven tyler joe perry desmond child', 264855, 8679940, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(32, 'janies got a gun', 5, 1, 1, 'steven tyler tom hamilton', 330736, 10869391, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(32, 'janies got a gun', 5, 1, 1, 'steven tyler tom hamilton', 330736, 10869391, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(32, 'janies got a gun', 5, 1, 1, 'steven tyler tom hamilton', 330736, 10869391, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(33, 'cryin', 5, 1, 1, 'steven tyler joe perry taylor rhodes', 309263, 10056995, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(33, 'cryin', 5, 1, 1, 'steven tyler joe perry taylor rhodes', 309263, 10056995, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(33, 'cryin', 5, 1, 1, 'steven tyler joe perry taylor rhodes', 309263, 10056995, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(34, 'amazing', 5, 1, 1, 'steven tyler richie supa', 356519, 11616195, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(34, 'amazing', 5, 1, 1, 'steven tyler richie supa', 356519, 11616195, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(34, 'amazing', 5, 1, 1, 'steven tyler richie supa', 356519, 11616195, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(35, 'blind man', 5, 1, 1, 'steven tyler joe perry taylor rhodes', 240718, 7877453, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(35, 'blind man', 5, 1, 1, 'steven tyler joe perry taylor rhodes', 240718, 7877453, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(35, 'blind man', 5, 1, 1, 'steven tyler joe perry taylor rhodes', 240718, 7877453, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(36, 'deuces are wild', 5, 1, 1, 'steven tyler jim vallance', 215875, 7074167, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(36, 'deuces are wild', 5, 1, 1, 'steven tyler jim vallance', 215875, 7074167, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(36, 'deuces are wild', 5, 1, 1, 'steven tyler jim vallance', 215875, 7074167, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(37, 'the other side', 5, 1, 1, 'steven tyler jim vallance', 244375, 7983270, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(37, 'the other side', 5, 1, 1, 'steven tyler jim vallance', 244375, 7983270, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(37, 'the other side', 5, 1, 1, 'steven tyler jim vallance', 244375, 7983270, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(38, 'crazy', 5, 1, 1, 'steven tyler joe perry desmond child', 316656, 10402398, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(38, 'crazy', 5, 1, 1, 'steven tyler joe perry desmond child', 316656, 10402398, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(38, 'crazy', 5, 1, 1, 'steven tyler joe perry desmond child', 316656, 10402398, 0.99, 1, 'music'); +insert into tracks_playlist_tracks_playlists values(39, 'eat the rich', 5, 1, 1, 'steven tyler joe perry jim vallance', 251036, 8262039, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(40, 'angel', 5, 1, 1, 'steven tyler desmond child', 307617, 9989331, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(41, 'livin on the edge', 5, 1, 1, 'steven tyler joe perry mark hudson', 381231, 12374569, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(42, 'all i really want', 6, 1, 1, 'alanis morissette & glenn ballard', 284891, 9375567, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(43, 'you oughta know', 6, 1, 1, 'alanis morissette & glenn ballard', 249234, 8196916, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(44, 'perfect', 6, 1, 1, 'alanis morissette & glenn ballard', 188133, 6145404, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(45, 'hand in my pocket', 6, 1, 1, 'alanis morissette & glenn ballard', 221570, 7224246, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(46, 'right through you', 6, 1, 1, 'alanis morissette & glenn ballard', 176117, 5793082, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(47, 'forgiven', 6, 1, 1, 'alanis morissette & glenn ballard', 300355, 9753256, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(48, 'you learn', 6, 1, 1, 'alanis morissette & glenn ballard', 239699, 7824837, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(49, 'head over feet', 6, 1, 1, 'alanis morissette & glenn ballard', 267493, 8758008, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(50, 'mary jane', 6, 1, 1, 'alanis morissette & glenn ballard', 280607, 9163588, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(51, 'ironic', 6, 1, 1, 'alanis morissette & glenn ballard', 229825, 7598866, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(52, 'not the doctor', 6, 1, 1, 'alanis morissette & glenn ballard', 227631, 7604601, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(53, 'wake up', 6, 1, 1, 'alanis morissette & glenn ballard', 293485, 9703359, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(54, 'you oughta know alternate', 6, 1, 1, 'alanis morissette & glenn ballard', 491885, 16008629, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(55, 'we die young', 7, 1, 1, 'jerry cantrell', 152084, 4925362, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(56, 'man in the box', 7, 1, 1, 'jerry cantrell layne staley', 286641, 9310272, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(57, 'sea of sorrow', 7, 1, 1, 'jerry cantrell', 349831, 11316328, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(58, 'bleed the freak', 7, 1, 1, 'jerry cantrell', 241946, 7847716, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(59, 'i cant remember', 7, 1, 1, 'jerry cantrell layne staley', 222955, 7302550, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(60, 'love hate love', 7, 1, 1, 'jerry cantrell layne staley', 387134, 12575396, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(61, 'it aint like that', 7, 1, 1, 'jerry cantrell michael starr sean kinney', 277577, 8993793, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(62, 'sunshine', 7, 1, 1, 'jerry cantrell', 284969, 9216057, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(63, 'put you down', 7, 1, 1, 'jerry cantrell', 196231, 6420530, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(64, 'confusion', 7, 1, 1, 'jerry cantrell michael starr layne staley', 344163, 11183647, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(65, 'i know somethin bout you', 7, 1, 1, 'jerry cantrell', 261955, 8497788, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(66, 'real thing', 7, 1, 1, 'jerry cantrell layne staley', 243879, 7937731, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(67, 'desafinado', 8, 1, 1, 'NULL', 185338, 5990473, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(68, 'garota de ipanema', 8, 1, 1, 'NULL', 285048, 9348428, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(69, 'samba de uma nota só one note samba', 8, 1, 1, 'NULL', 137273, 4535401, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(70, 'por causa de você', 8, 1, 1, 'NULL', 169900, 5536496, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(71, 'ligia', 8, 1, 1, 'NULL', 251977, 8226934, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(72, 'fotografia', 8, 1, 1, 'NULL', 129227, 4198774, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(73, 'dindi dindi', 8, 1, 1, 'NULL', 253178, 8149148, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(74, 'se todos fossem iguais a você instrumental', 8, 1, 1, 'NULL', 134948, 4393377, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(75, 'falando de amor', 8, 1, 1, 'NULL', 219663, 7121735, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(76, 'angela', 8, 1, 1, 'NULL', 169508, 5574957, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(77, 'corcovado quiet nights of quiet stars', 8, 1, 1, 'NULL', 205662, 6687994, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(78, 'outra vez', 8, 1, 1, 'NULL', 126511, 4110053, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(79, 'o boto bôto', 8, 1, 1, 'NULL', 366837, 12089673, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(80, 'canta canta mais', 8, 1, 1, 'NULL', 271856, 8719426, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(81, 'enter sandman', 9, 1, 1, 'apocalyptica', 221701, 7286305, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(82, 'master of puppets', 9, 1, 1, 'apocalyptica', 436453, 14375310, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(83, 'harvester of sorrow', 9, 1, 1, 'apocalyptica', 374543, 12372536, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(84, 'the unforgiven', 9, 1, 1, 'apocalyptica', 322925, 10422447, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(85, 'sad but true', 9, 1, 1, 'apocalyptica', 288208, 9405526, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(86, 'creeping death', 9, 1, 1, 'apocalyptica', 308035, 10110980, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(87, 'wherever i may roam', 9, 1, 1, 'apocalyptica', 369345, 12033110, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(88, 'welcome home sanitarium', 9, 1, 1, 'apocalyptica', 350197, 11406431, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(89, 'cochise', 10, 1, 1, 'audioslave/chris cornell', 222380, 5339931, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(90, 'show me how to live', 10, 1, 1, 'audioslave/chris cornell', 277890, 6672176, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(91, 'gasoline', 10, 1, 1, 'audioslave/chris cornell', 279457, 6709793, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(92, 'what you are', 10, 1, 1, 'audioslave/chris cornell', 249391, 5988186, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(93, 'like a stone', 10, 1, 1, 'audioslave/chris cornell', 294034, 7059624, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(94, 'set it off', 10, 1, 1, 'audioslave/chris cornell', 263262, 6321091, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(95, 'shadow on the sun', 10, 1, 1, 'audioslave/chris cornell', 343457, 8245793, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(96, 'i am the highway', 10, 1, 1, 'audioslave/chris cornell', 334942, 8041411, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(97, 'exploder', 10, 1, 1, 'audioslave/chris cornell', 206053, 4948095, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(98, 'hypnotize', 10, 1, 1, 'audioslave/chris cornell', 206628, 4961887, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(99, 'bringem back alive', 10, 1, 1, 'audioslave/chris cornell', 329534, 7911634, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(100, 'light my way', 10, 1, 1, 'audioslave/chris cornell', 303595, 7289084, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(101, 'getaway car', 10, 1, 1, 'audioslave/chris cornell', 299598, 7193162, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(102, 'the last remaining light', 10, 1, 1, 'audioslave/chris cornell', 317492, 7622615, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(103, 'your time has come', 11, 1, 1, 'cornell commerford morello wilk', 255529, 8273592, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(104, 'out of exile', 11, 1, 1, 'cornell commerford morello wilk', 291291, 9506571, 0.99, 'None', 'None'); +insert into tracks_playlist_tracks_playlists values(2, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(2, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(2, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(3, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(3, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(3, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(3, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(4, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(4, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(4, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(4, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(5, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(5, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(5, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values(5, 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 1, 'music'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 2, 'movies'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 3, 'tv shows'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 4, 'audiobooks'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 5, '90’s music'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 6, 'audiobooks'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 7, 'movies'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 8, 'music'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 9, 'music videos'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 10, 'tv shows'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 11, 'brazilian music'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 12, 'classical'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 13, 'classical 101 - deep cuts'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 14, 'classical 101 - next steps'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 15, 'classical 101 - the basics'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 16, 'grunge'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 17, 'heavy metal classic'); +insert into tracks_playlist_tracks_playlists values('None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 'None', 18, 'on-the-go 1'); + diff --git a/all/databases/store_1_total_0/store_1_total_0.sqlite b/all/databases/store_1_total_0/store_1_total_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..72c334edf1e572300448c65da4dcdb46feecaa19 Binary files /dev/null and b/all/databases/store_1_total_0/store_1_total_0.sqlite differ diff --git a/all/databases/store_product/store_product.sql b/all/databases/store_product/store_product.sql new file mode 100644 index 0000000000000000000000000000000000000000..cc80961366c08024bb2249217a2fdbf3c6f58680 --- /dev/null +++ b/all/databases/store_product/store_product.sql @@ -0,0 +1,90 @@ +CREATE TABLE "product" ( +"product_id" integer, +"product" text, +"dimensions" text, +"dpi" real, +"pages_per_minute_color" real, +"max_page_size" text, +"interface" text +); + +INSERT INTO product VALUES (1, "fujitsu fi-6130 a4 series scanner", "301 x 160 x 158", 600.0, 30.0, "a4", "usb 2.0"); +INSERT INTO product VALUES (2, "plustek mobileoffice d28 corporate", "303 x 94 x 60", 600.0, 28.0, "a4", "usb 2.0"); +INSERT INTO product VALUES (3, "xerox travel scanner 100", "289 x 51 x 38", 600.0, 4.0, "a4", "usb 2.0"); +INSERT INTO product VALUES (4, "scanshell 3000dn", "300 x 50 x 45", 600.0, 3.0, "a4", "usb 2.0"); +INSERT INTO product VALUES (5, "canon imageformula p-150", "280 x 95 x 40", 600.0, 10.0, "216mm x 356mm", "usb 2.0"); +INSERT INTO product VALUES (6, "canon dr-2080c", "298 x 209 x 99", 600.0, 36.0, "216mm x 355mm", "usb 2.0"); + +CREATE TABLE "store" ( +"store_id" integer, +"store_name" text, +"type" text, +"area_size" real, +"number_of_product_category" real, +"ranking" integer +); + +INSERT INTO store VALUES (1, "miramichi", "city mall", 179.84, 17811.0, 2); +INSERT INTO store VALUES (2, "neguac", "village store", 26.69, 1678.0, 3); +INSERT INTO store VALUES (3, "rogersville", "village store", 7.23, 1170.0, 1); +INSERT INTO store VALUES (4, "blackville", "village store", 21.73, 990.0, 10); +INSERT INTO store VALUES (5, "doaktown", "city mall", 28.74, 793.0, 9); + +CREATE TABLE "district" ( +"district_id" integer, +"district_name" text, +"headquartered_city" text, +"city_population" real, +"city_area" real +); + +INSERT INTO district VALUES (1, "attock district", "attock city", 94620.0, 20.0); +INSERT INTO district VALUES (2, "bahawalnagar district", "bahawalnagar city", 134936.0, 13.0); +INSERT INTO district VALUES (3, "bahawalpur district", "bahawalpur city", 530438.0, 38.0); +INSERT INTO district VALUES (4, "bhakkar district", "bhakkar city", 89380.0, 15.0); +INSERT INTO district VALUES (5, "chakwal district", "chakwal city", 113524.0, 10.0); +INSERT INTO district VALUES (6, "chiniot district", "chiniot city", 219254.0, 12.0); +INSERT INTO district VALUES (7, "dera ghazi khan district", "dera ghazi khan city", 464742.0, 22.0); +INSERT INTO district VALUES (8, "faisalabad district", "faisalabad city", 2793721.0, 147.0); +INSERT INTO district VALUES (9, "gujranwala district", "gujranwala city", 1526168.0, 75.0); +INSERT INTO district VALUES (10, "gujrat district", "gujrat city", 328512.0, 25.0); +INSERT INTO district VALUES (11, "hafizabad district", "hafizabad city", 165936.0, 10.0); +INSERT INTO district VALUES (12, "jhang district", "jhang city", 365198.0, 28.0); +INSERT INTO district VALUES (13, "jhelum district", "jhelum city", 172073.0, 22.0); +INSERT INTO district VALUES (14, "kasur district", "kasur city", 314617.0, 18.0); +INSERT INTO district VALUES (15, "khanewal district", "khanewal city", 165038.0, 17.0); + +CREATE TABLE "store_product" ( +"store_id" integer, +"product_id" integer +); + +INSERT INTO store_product VALUES (1, 1); +INSERT INTO store_product VALUES (1, 2); +INSERT INTO store_product VALUES (1, 3); +INSERT INTO store_product VALUES (1, 4); +INSERT INTO store_product VALUES (1, 6); +INSERT INTO store_product VALUES (2, 1); +INSERT INTO store_product VALUES (3, 2); +INSERT INTO store_product VALUES (2, 3); +INSERT INTO store_product VALUES (3, 4); +INSERT INTO store_product VALUES (2, 6); +INSERT INTO store_product VALUES (5, 1); +INSERT INTO store_product VALUES (5, 2); +INSERT INTO store_product VALUES (5, 3); +INSERT INTO store_product VALUES (5, 4); +INSERT INTO store_product VALUES (5, 6); + +CREATE TABLE "store_district" ( +"store_id" integer, +"district_id" integer +); + +INSERT INTO store_district VALUES (1, 15); +INSERT INTO store_district VALUES (2, 15); +INSERT INTO store_district VALUES (3, 11); +INSERT INTO store_district VALUES (4, 4); +INSERT INTO store_district VALUES (5, 3); + + +COMMIT; diff --git a/all/databases/store_product/store_product.sqlite b/all/databases/store_product/store_product.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..d6c96c56771271ffbe9bb4a6aa02ce9f7369d3e2 Binary files /dev/null and b/all/databases/store_product/store_product.sqlite differ diff --git a/all/databases/storm_record/storm_record.sql b/all/databases/storm_record/storm_record.sql new file mode 100644 index 0000000000000000000000000000000000000000..c321d4589c3fb810816e66eaca38df2a78a0e4e9 --- /dev/null +++ b/all/databases/storm_record/storm_record.sql @@ -0,0 +1,55 @@ +CREATE TABLE "storm" ( +"storm_id" integer, +"name" text, +"dates_active" text, +"max_speed" integer, +"damage_millions_usd" real, +"number_deaths" integer +); + +INSERT INTO storm VALUES (1, "one", "may19–may25", 995, 13.0, 0); +INSERT INTO storm VALUES (2, "two", "august3–august10", 972, 10.75, 7); +INSERT INTO storm VALUES (3, "three", "august5–august14", 972, 13.0, 52); +INSERT INTO storm VALUES (4, "four", "august26–september2", 961, 4.05, 7); +INSERT INTO storm VALUES (5, "five", "september7–september17", 988, 1.49, 3); +INSERT INTO storm VALUES (6, "six", "september18–september25", 1002, 0.039, 2); +INSERT INTO storm VALUES (7, "seven", "september22–september28", 977, 13.0, 0); +INSERT INTO storm VALUES (8, "eight", "october20–october24", 983, 13.0, 0); +INSERT INTO storm VALUES (9, "nine", "october24–october26", 1007, 13.0, 0); +INSERT INTO storm VALUES (10, "9 cyclones", "may19 –october26", 961, 29.3, 71); + +CREATE TABLE "region" ( +"region_id" integer, +"region_code" text, +"region_name" text +); + +INSERT INTO region VALUES (1, "af", "afghanistan"); +INSERT INTO region VALUES (2, "al", "albania"); +INSERT INTO region VALUES (3, "dz", "algeria"); +INSERT INTO region VALUES (4, "ds", "american samoa"); +INSERT INTO region VALUES (5, "ad", "andorra"); +INSERT INTO region VALUES (6, "ao", "angola"); +INSERT INTO region VALUES (7, "ai", "anguilla"); +INSERT INTO region VALUES (8, "aq", "antarctica"); +INSERT INTO region VALUES (9, "ag", "antigua and barbuda"); +INSERT INTO region VALUES (10, "cy", "cyprus"); +INSERT INTO region VALUES (11, "cz", "czech republic"); +INSERT INTO region VALUES (12, "dk", "denmark"); +INSERT INTO region VALUES (13, "dj", "djibouti"); + +CREATE TABLE "affected_region" ( +"region_id" integer, +"storm_id" integer, +"number_city_affected" real +); + +INSERT INTO affected_region VALUES (1, 1, 10.0); +INSERT INTO affected_region VALUES (1, 4, 15.0); +INSERT INTO affected_region VALUES (2, 1, 30.0); +INSERT INTO affected_region VALUES (2, 5, 22.0); +INSERT INTO affected_region VALUES (3, 3, 37.0); +INSERT INTO affected_region VALUES (12, 5, 12.0); + + +COMMIT; diff --git a/all/databases/storm_record/storm_record.sqlite b/all/databases/storm_record/storm_record.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..facdaeb93f8c3f39e3f3fac95e799fecdf963add Binary files /dev/null and b/all/databases/storm_record/storm_record.sqlite differ diff --git a/all/databases/student_assessment_minus_1_0/student_assessment_minus_1_0.sql b/all/databases/student_assessment_minus_1_0/student_assessment_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..c730cec29bccc694ddd4d5e786c791363b68d3a1 --- /dev/null +++ b/all/databases/student_assessment_minus_1_0/student_assessment_minus_1_0.sql @@ -0,0 +1,127 @@ +create table addresses ( +address_id integer, +line_1 text, +line_2 text, +city text, +zip_postcode text, +state_province_county text, +country text +); +insert into addresses values(5, '0900 roderick oval new albina wa 19200-7914', 'suite 096', 'linnealand', 862, 'montana', 'usa'); +insert into addresses values(9, '966 dach ports apt. 322 lake harmonyhaven va 65235', 'apt. 163', 'south minnie', 716, 'texas', 'usa'); +insert into addresses values(29, '28550 broderick underpass suite 667 zakaryhaven wy 22945-1534', 'apt. 419', 'north trystanborough', 112, 'vermont', 'usa'); +insert into addresses values(30, '83706 ana trafficway apt. 992 west jarret mi 01112', 'apt. 884', 'lake kaley', 431, 'washington', 'usa'); +insert into addresses values(43, '69165 beatty station haleighstad ms 55164', 'suite 333', 'stephaniemouth', 559, 'massachusetts', 'usa'); +insert into addresses values(45, '242 pacocha streets east isabellashire nd 03506', 'suite 370', 'oconnellview', 514, 'newmexico', 'usa'); +insert into addresses values(55, '801 modesto island suite 306 lacyville vt 34059', 'suite 764', 'new alta', 176, 'mississippi', 'usa'); +insert into addresses values(63, '0177 fisher dam berniershire ks 00038-7574', 'apt. 903', 'south keenan', 613, 'michigan', 'usa'); +insert into addresses values(68, '09471 hickle light port maxime nj 91550-5409', 'suite 903', 'hannahside', 354, 'connecticut', 'usa'); +insert into addresses values(73, '67831 lavonne lodge olsontown dc 20894', 'apt. 756', 'alizeshire', 687, 'newmexico', 'usa'); +insert into addresses values(82, '228 fahey land baileymouth fl 06297-5606', 'suite 087', 'south naomibury', 079, 'ohio', 'usa'); +insert into addresses values(88, '1770 adriel ramp apt. 397 west ashlynnchester ut 91968', 'apt. 617', 'east tavaresburgh', 179, 'southdakota', 'usa'); +insert into addresses values(92, '8760 eldon squares suite 260 marquisestad ga 38537', 'apt. 435', 'lake devon', 244, 'southdakota', 'usa'); +insert into addresses values(94, '8263 abbott crossing apt. 066 oberbrunnerbury la 67451', 'apt. 626', 'boyleshire', 536, 'kansas', 'usa'); +insert into addresses values(99, '521 paucek field north oscartown wi 31527', 'apt. 849', 'terencetown', 979, 'michigan', 'usa'); + +create table people ( +person_id integer, +first_name text, +middle_name text, +last_name text, +cell_mobile_number text, +email_address text, +login_name text, +password text +); +insert into people values(111, 'shannon', 'elissa', 'senger', 01955267735, 'javier.trantow@example.net', 'pgub', '5e4ff49a61b3544da3ad7dc7e2cf28847564c64c'); +insert into people values(121, 'virginie', 'jasmin', 'hartmann', '508319-2970x043', 'boyer.lonie@example.com', 'bkkv', 'b063331ea8116befaa7b84c59c6a22200f5f8caa'); +insert into people values(131, 'dariana', 'hayley', 'bednar', '262347-9364x516', 'leila14@example.net', 'zops', 'b20b6a9f24aadeda70d54e410c3219f61fb063fb'); +insert into people values(141, 'verna', 'arielle', 'grant', '1-372-548-7538x314', 'adele.gibson@example.net', 'uuol', '7be9c03d5467d563555c51ebb3eb78e7f90832ec'); +insert into people values(151, 'hoyt', 'mercedes', 'wintheiser', '1-603-110-0647', 'stanley.monahan@example.org', 'bnto', 'c55795df86182959094b83e27900f7cf44ced570'); +insert into people values(161, 'mayra', 'haley', 'hartmann', '724-681-4161x51632', 'terry.kuhlman@example.org', 'rzxu', 'ecae473cb54601e01457078ac0cdf4a1ced837bb'); +insert into people values(171, 'lizeth', 'bell', 'bartoletti', '812.228.0645x91481', 'celestine11@example.net', 'mkou', '76a93d1d3b7becc932d203beac61d064bd54e947'); +insert into people values(181, 'nova', 'amiya', 'feest', '766-272-9964', 'oreynolds@example.com', 'qrwl', '7dce9b688636ee212294c257dd2f6b85c7f65f2e'); + +create table courses ( +course_id text, +course_name text, +course_description text, +other_details null +); +insert into courses values(301, 'statistics', 'statistics', 'null'); +insert into courses values(302, 'english', 'english', 'null'); +insert into courses values(303, 'french', 'french', 'null'); +insert into courses values(304, 'database', 'database', 'null'); +insert into courses values(305, 'data structure', 'data structure', 'null'); +insert into courses values(306, 'art history', 'art history', 'null'); + +create table people_addresses ( +person_address_id integer, +person_id integer, +address_id integer, +date_from text, +date_to text +); +insert into people_addresses values(122, 111, 9, '2012-09-26 13:21:00', '2018-03-21 09:46:30'); +insert into people_addresses values(257, 121, 5, '2008-07-31 02:17:25', '2018-03-09 02:11:12'); +insert into people_addresses values(269, 131, 88, '2008-05-26 20:43:41', '2018-03-11 20:26:41'); +insert into people_addresses values(276, 141, 99, '2014-05-10 00:32:31', '2018-03-08 06:16:47'); +insert into people_addresses values(281, 151, 92, '2010-11-26 05:21:12', '2018-03-12 21:10:02'); +insert into people_addresses values(340, 161, 45, '2017-05-01 17:32:26', '2018-03-09 08:45:06'); +insert into people_addresses values(363, 171, 55, '2015-05-24 16:14:12', '2018-02-23 22:44:18'); +insert into people_addresses values(396, 181, 82, '2013-12-26 16:57:01', '2018-03-03 16:06:17'); + +create table student_course_attendance ( +student_id integer, +course_id integer, +date_of_attendance text +); +insert into student_course_attendance values(111, 301, '2008-11-04 10:35:13'); +insert into student_course_attendance values(121, 301, '2012-04-09 11:44:34'); +insert into student_course_attendance values(121, 303, '2014-04-09 11:44:34'); +insert into student_course_attendance values(141, 301, '2013-04-09 11:44:34'); +insert into student_course_attendance values(141, 302, '2015-04-09 11:44:34'); +insert into student_course_attendance values(151, 305, '2014-01-09 11:44:34'); +insert into student_course_attendance values(161, 302, '2012-05-09 11:44:34'); +insert into student_course_attendance values(171, 301, '2012-09-09 11:44:34'); + +create table candidates ( +candidate_id integer, +candidate_details text +); +insert into candidates values(111, 'jane'); +insert into candidates values(121, 'robert'); +insert into candidates values(131, 'alex'); +insert into candidates values(141, 'tao'); +insert into candidates values(151, 'jack'); +insert into candidates values(161, 'leo'); +insert into candidates values(171, 'robin'); +insert into candidates values(181, 'cindy'); + +create table candidate_assessments ( +candidate_id integer, +qualification text, +assessment_date text, +asessment_outcome_code text +); +insert into candidate_assessments values(111, 'a', '2010-04-07 11:44:34', 'pass'); +insert into candidate_assessments values(121, 'b', '2010-04-17 11:44:34', 'pass'); +insert into candidate_assessments values(131, 'd', '2010-04-05 11:44:34', 'fail'); +insert into candidate_assessments values(141, 'c', '2010-04-06 11:44:34', 'pass'); +insert into candidate_assessments values(151, 'b', '2010-04-09 11:44:34', 'pass'); +create table students_student_course_registrations ( +student_id integer, +student_details text, +course_id integer, +registration_date text); +insert into students_student_course_registrations values(111, 'marry', 301, '2008-11-04 10:35:13'); +insert into students_student_course_registrations values(121, 'martin', 301, '2008-10-04 10:35:13'); +insert into students_student_course_registrations values(121, 'martin', 303, '2008-11-14 10:35:13'); +insert into students_student_course_registrations values(131, 'barry', 303, '2008-11-05 10:35:13'); +insert into students_student_course_registrations values(141, 'nikhil', 301, '2008-11-06 10:35:13'); +insert into students_student_course_registrations values(141, 'nikhil', 302, '2008-11-07 10:35:13'); +insert into students_student_course_registrations values(151, 'john', 305, '2008-11-07 10:35:13'); +insert into students_student_course_registrations values(161, 'sarah', 302, '2008-11-07 10:35:13'); +insert into students_student_course_registrations values(171, 'joe', 301, '2008-11-08 10:35:13'); +insert into students_student_course_registrations values(181, 'nancy', 'None', 'None'); + diff --git a/all/databases/student_assessment_minus_1_0/student_assessment_minus_1_0.sqlite b/all/databases/student_assessment_minus_1_0/student_assessment_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..c1ea3f129207c1b1458d386def8ed33bf29c2f68 Binary files /dev/null and b/all/databases/student_assessment_minus_1_0/student_assessment_minus_1_0.sqlite differ diff --git a/all/databases/student_assessment_minus_1_1/student_assessment_minus_1_1.sql b/all/databases/student_assessment_minus_1_1/student_assessment_minus_1_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..54287f00b9b0a4005e77948c908800a778062765 --- /dev/null +++ b/all/databases/student_assessment_minus_1_1/student_assessment_minus_1_1.sql @@ -0,0 +1,141 @@ +create table people ( +person_id integer, +first_name text, +middle_name text, +last_name text, +cell_mobile_number text, +email_address text, +login_name text, +password text +); +insert into people values(111, 'shannon', 'elissa', 'senger', 01955267735, 'javier.trantow@example.net', 'pgub', '5e4ff49a61b3544da3ad7dc7e2cf28847564c64c'); +insert into people values(121, 'virginie', 'jasmin', 'hartmann', '508319-2970x043', 'boyer.lonie@example.com', 'bkkv', 'b063331ea8116befaa7b84c59c6a22200f5f8caa'); +insert into people values(131, 'dariana', 'hayley', 'bednar', '262347-9364x516', 'leila14@example.net', 'zops', 'b20b6a9f24aadeda70d54e410c3219f61fb063fb'); +insert into people values(141, 'verna', 'arielle', 'grant', '1-372-548-7538x314', 'adele.gibson@example.net', 'uuol', '7be9c03d5467d563555c51ebb3eb78e7f90832ec'); +insert into people values(151, 'hoyt', 'mercedes', 'wintheiser', '1-603-110-0647', 'stanley.monahan@example.org', 'bnto', 'c55795df86182959094b83e27900f7cf44ced570'); +insert into people values(161, 'mayra', 'haley', 'hartmann', '724-681-4161x51632', 'terry.kuhlman@example.org', 'rzxu', 'ecae473cb54601e01457078ac0cdf4a1ced837bb'); +insert into people values(171, 'lizeth', 'bell', 'bartoletti', '812.228.0645x91481', 'celestine11@example.net', 'mkou', '76a93d1d3b7becc932d203beac61d064bd54e947'); +insert into people values(181, 'nova', 'amiya', 'feest', '766-272-9964', 'oreynolds@example.com', 'qrwl', '7dce9b688636ee212294c257dd2f6b85c7f65f2e'); + +create table students ( +student_id integer, +student_details text +); +insert into students values(111, 'marry'); +insert into students values(121, 'martin'); +insert into students values(131, 'barry'); +insert into students values(141, 'nikhil'); +insert into students values(151, 'john'); +insert into students values(161, 'sarah'); +insert into students values(171, 'joe'); +insert into students values(181, 'nancy'); + +create table courses ( +course_id text, +course_name text, +course_description text, +other_details null +); +insert into courses values(301, 'statistics', 'statistics', 'null'); +insert into courses values(302, 'english', 'english', 'null'); +insert into courses values(303, 'french', 'french', 'null'); +insert into courses values(304, 'database', 'database', 'null'); +insert into courses values(305, 'data structure', 'data structure', 'null'); +insert into courses values(306, 'art history', 'art history', 'null'); + +create table student_course_registrations ( +student_id integer, +course_id integer, +registration_date text +); +insert into student_course_registrations values(111, 301, '2008-11-04 10:35:13'); +insert into student_course_registrations values(121, 301, '2008-10-04 10:35:13'); +insert into student_course_registrations values(121, 303, '2008-11-14 10:35:13'); +insert into student_course_registrations values(131, 303, '2008-11-05 10:35:13'); +insert into student_course_registrations values(141, 301, '2008-11-06 10:35:13'); +insert into student_course_registrations values(141, 302, '2008-11-07 10:35:13'); +insert into student_course_registrations values(151, 305, '2008-11-07 10:35:13'); +insert into student_course_registrations values(161, 302, '2008-11-07 10:35:13'); +insert into student_course_registrations values(171, 301, '2008-11-08 10:35:13'); + +create table student_course_attendance ( +student_id integer, +course_id integer, +date_of_attendance text +); +insert into student_course_attendance values(111, 301, '2008-11-04 10:35:13'); +insert into student_course_attendance values(121, 301, '2012-04-09 11:44:34'); +insert into student_course_attendance values(121, 303, '2014-04-09 11:44:34'); +insert into student_course_attendance values(141, 301, '2013-04-09 11:44:34'); +insert into student_course_attendance values(141, 302, '2015-04-09 11:44:34'); +insert into student_course_attendance values(151, 305, '2014-01-09 11:44:34'); +insert into student_course_attendance values(161, 302, '2012-05-09 11:44:34'); +insert into student_course_attendance values(171, 301, '2012-09-09 11:44:34'); + +create table candidates ( +candidate_id integer, +candidate_details text +); +insert into candidates values(111, 'jane'); +insert into candidates values(121, 'robert'); +insert into candidates values(131, 'alex'); +insert into candidates values(141, 'tao'); +insert into candidates values(151, 'jack'); +insert into candidates values(161, 'leo'); +insert into candidates values(171, 'robin'); +insert into candidates values(181, 'cindy'); + +create table candidate_assessments ( +candidate_id integer, +qualification text, +assessment_date text, +asessment_outcome_code text +); +insert into candidate_assessments values(111, 'a', '2010-04-07 11:44:34', 'pass'); +insert into candidate_assessments values(121, 'b', '2010-04-17 11:44:34', 'pass'); +insert into candidate_assessments values(131, 'd', '2010-04-05 11:44:34', 'fail'); +insert into candidate_assessments values(141, 'c', '2010-04-06 11:44:34', 'pass'); +insert into candidate_assessments values(151, 'b', '2010-04-09 11:44:34', 'pass'); +create table addresses_people_addresses ( +address_id integer, +line_1 text, +line_2 text, +city text, +zip_postcode text, +state_province_county text, +country text, +person_address_id integer, +person_id integer, +date_from text, +date_to text); +insert into addresses_people_addresses values(5, '0900 roderick oval +new albina wa 19200-7914', 'suite 096', 'linnealand', '862', 'montana', 'usa', 257, 121, '2008-07-31 02:17:25', '2018-03-09 02:11:12'); +insert into addresses_people_addresses values(9, '966 dach ports apt. 322 +lake harmonyhaven va 65235', 'apt. 163', 'south minnie', '716', 'texas', 'usa', 122, 111, '2012-09-26 13:21:00', '2018-03-21 09:46:30'); +insert into addresses_people_addresses values(29, '28550 broderick underpass suite 667 +zakaryhaven wy 22945-1534', 'apt. 419', 'north trystanborough', '112', 'vermont', 'usa', 'None', 'None', 'None', 'None'); +insert into addresses_people_addresses values(30, '83706 ana trafficway apt. 992 +west jarret mi 01112', 'apt. 884', 'lake kaley', '431', 'washington', 'usa', 'None', 'None', 'None', 'None'); +insert into addresses_people_addresses values(43, '69165 beatty station +haleighstad ms 55164', 'suite 333', 'stephaniemouth', '559', 'massachusetts', 'usa', 'None', 'None', 'None', 'None'); +insert into addresses_people_addresses values(45, '242 pacocha streets +east isabellashire nd 03506', 'suite 370', 'oconnellview', '514', 'newmexico', 'usa', 340, 161, '2017-05-01 17:32:26', '2018-03-09 08:45:06'); +insert into addresses_people_addresses values(55, '801 modesto island suite 306 +lacyville vt 34059', 'suite 764', 'new alta', '176', 'mississippi', 'usa', 363, 171, '2015-05-24 16:14:12', '2018-02-23 22:44:18'); +insert into addresses_people_addresses values(63, '0177 fisher dam +berniershire ks 00038-7574', 'apt. 903', 'south keenan', '613', 'michigan', 'usa', 'None', 'None', 'None', 'None'); +insert into addresses_people_addresses values(68, '09471 hickle light +port maxime nj 91550-5409', 'suite 903', 'hannahside', '354', 'connecticut', 'usa', 'None', 'None', 'None', 'None'); +insert into addresses_people_addresses values(73, '67831 lavonne lodge +olsontown dc 20894', 'apt. 756', 'alizeshire', '687', 'newmexico', 'usa', 'None', 'None', 'None', 'None'); +insert into addresses_people_addresses values(82, '228 fahey land +baileymouth fl 06297-5606', 'suite 087', 'south naomibury', '079', 'ohio', 'usa', 396, 181, '2013-12-26 16:57:01', '2018-03-03 16:06:17'); +insert into addresses_people_addresses values(88, '1770 adriel ramp apt. 397 +west ashlynnchester ut 91968', 'apt. 617', 'east tavaresburgh', '179', 'southdakota', 'usa', 269, 131, '2008-05-26 20:43:41', '2018-03-11 20:26:41'); +insert into addresses_people_addresses values(92, '8760 eldon squares suite 260 +marquisestad ga 38537', 'apt. 435', 'lake devon', '244', 'southdakota', 'usa', 281, 151, '2010-11-26 05:21:12', '2018-03-12 21:10:02'); +insert into addresses_people_addresses values(94, '8263 abbott crossing apt. 066 +oberbrunnerbury la 67451', 'apt. 626', 'boyleshire', '536', 'kansas', 'usa', 'None', 'None', 'None', 'None'); +insert into addresses_people_addresses values(99, '521 paucek field +north oscartown wi 31527', 'apt. 849', 'terencetown', '979', 'michigan', 'usa', 276, 141, '2014-05-10 00:32:31', '2018-03-08 06:16:47'); + diff --git a/all/databases/student_assessment_minus_1_1/student_assessment_minus_1_1.sqlite b/all/databases/student_assessment_minus_1_1/student_assessment_minus_1_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..fd6ecfcbd032af531736927bf1721c147e39db78 Binary files /dev/null and b/all/databases/student_assessment_minus_1_1/student_assessment_minus_1_1.sqlite differ diff --git a/all/databases/tracking_grants_for_research/tracking_grants_for_research.sql b/all/databases/tracking_grants_for_research/tracking_grants_for_research.sql new file mode 100644 index 0000000000000000000000000000000000000000..2f0f1c2e8acb3a6acecf8b51f35b5077f5b0f821 --- /dev/null +++ b/all/databases/tracking_grants_for_research/tracking_grants_for_research.sql @@ -0,0 +1,220 @@ +CREATE TABLE "document_types" ( +"document_type_code" text, +"document_description" text +); + +INSERT INTO document_types VALUES ("app", "initial application"); +INSERT INTO document_types VALUES ("reg", "regular"); + +CREATE TABLE "documents" ( +"document_id" integer, +"document_type_code" text, +"grant_id" integer, +"sent_date" text, +"response_received_date" text, +"other_details" text +); + +INSERT INTO documents VALUES (1, "app", 5, "1986-11-30 07:56:35", "1977-12-01 02:18:53", ""); +INSERT INTO documents VALUES (2, "app", 13, "2004-01-23 11:57:08", "1979-12-08 10:38:07", ""); +INSERT INTO documents VALUES (3, "reg", 10, "1999-03-03 12:25:58", "1995-09-12 13:13:48", ""); +INSERT INTO documents VALUES (4, "app", 13, "1999-05-29 00:02:46", "1991-09-25 10:38:24", ""); +INSERT INTO documents VALUES (5, "app", 11, "2003-08-29 03:32:52", "1986-05-23 07:17:59", ""); +INSERT INTO documents VALUES (6, "reg", 5, "1979-07-04 08:54:23", "1976-10-04 22:13:27", ""); +INSERT INTO documents VALUES (7, "app", 13, "1978-09-13 16:23:29", "1979-01-06 05:05:30", ""); +INSERT INTO documents VALUES (8, "app", 15, "2001-06-18 06:35:49", "1986-05-18 01:54:56", ""); +INSERT INTO documents VALUES (9, "app", 6, "2014-01-28 05:11:34", "1980-02-24 15:23:44", ""); +INSERT INTO documents VALUES (10, "reg", 7, "2002-07-26 15:50:28", "1987-10-29 15:35:50", ""); +INSERT INTO documents VALUES (11, "reg", 15, "1993-02-19 16:31:12", "1994-03-13 01:52:45", ""); +INSERT INTO documents VALUES (12, "reg", 13, "1997-03-09 03:42:19", "1977-01-27 07:14:11", ""); +INSERT INTO documents VALUES (13, "app", 13, "1979-08-23 08:22:34", "1990-01-19 19:57:14", ""); +INSERT INTO documents VALUES (14, "app", 15, "2000-06-06 01:03:46", "1971-08-28 11:20:56", ""); +INSERT INTO documents VALUES (15, "app", 8, "1981-08-06 14:56:55", "1999-06-01 18:41:00", ""); + +CREATE TABLE "grants" ( +"grant_id" integer, +"organisation_id" integer, +"grant_amount" real, +"grant_start_date" text, +"grant_end_date" text, +"other_details" text +); + +INSERT INTO grants VALUES (1, 10, 4094.542, "2016-11-20 00:18:51", "2004-10-24 09:09:39", "et"); +INSERT INTO grants VALUES (2, 3, 281.2446, "1985-10-09 20:08:49", "1985-06-08 00:22:07", "occaecati"); +INSERT INTO grants VALUES (3, 14, 4515947.7015, "1970-09-19 22:53:49", "1989-03-16 18:27:16", "et"); +INSERT INTO grants VALUES (4, 11, 330.6339, "1990-08-13 20:27:28", "2014-08-13 22:58:50", "et"); +INSERT INTO grants VALUES (5, 2, 608413.3291, "1979-10-29 07:44:22", "1996-08-16 20:45:05", "corrupti"); +INSERT INTO grants VALUES (6, 8, 42.8061, "2011-05-10 22:44:08", "1977-12-27 01:51:18", "dolor"); +INSERT INTO grants VALUES (7, 7, 76977808.306, "2015-12-14 13:02:11", "1981-03-09 17:12:27", "explicabo"); +INSERT INTO grants VALUES (8, 10, 38675408.6017, "2016-02-25 04:28:44", "1983-06-22 15:12:32", "aliquam"); +INSERT INTO grants VALUES (9, 8, 0, "2009-07-14 18:26:05", "1982-03-11 15:27:55", "sapiente"); +INSERT INTO grants VALUES (10, 14, 66.4203, "1986-08-26 20:49:27", "2007-09-26 19:19:26", "veniam"); +INSERT INTO grants VALUES (11, 5, 610.7004, "1986-10-31 17:11:29", "2001-05-22 21:02:43", "voluptatum"); +INSERT INTO grants VALUES (12, 12, 2001349.459, "2001-06-22 16:01:05", "2007-04-24 03:04:13", "aut"); +INSERT INTO grants VALUES (13, 7, 1.9848, "2004-11-10 02:26:01", "2011-05-29 11:21:59", "qui"); +INSERT INTO grants VALUES (14, 2, 24.7, "2004-12-05 19:43:13", "1983-12-17 12:29:58", "aliquam"); +INSERT INTO grants VALUES (15, 9, 25313.51, "1982-04-07 00:07:43", "1991-06-06 07:26:25", "ea"); + +CREATE TABLE "organisation_types" ( +"organisation_type" text, +"organisation_type_description" text +); + +INSERT INTO organisation_types VALUES ("res", "research"); +INSERT INTO organisation_types VALUES ("spon", "sponsor"); + +CREATE TABLE "organisations" ( +"organisation_id" integer, +"organisation_type" text, +"organisation_details" text +); + +INSERT INTO organisations VALUES (1, "res", "et"); +INSERT INTO organisations VALUES (2, "res", "eius"); +INSERT INTO organisations VALUES (3, "res", "impedit"); +INSERT INTO organisations VALUES (4, "spon", "eos"); +INSERT INTO organisations VALUES (5, "spon", "tenetur"); +INSERT INTO organisations VALUES (6, "res", "dolorem"); +INSERT INTO organisations VALUES (7, "res", "itaque"); +INSERT INTO organisations VALUES (8, "spon", "aperiam"); +INSERT INTO organisations VALUES (9, "res", "a"); +INSERT INTO organisations VALUES (10, "spon", "officiis"); +INSERT INTO organisations VALUES (11, "spon", "eveniet"); +INSERT INTO organisations VALUES (12, "res", "itaque"); +INSERT INTO organisations VALUES (13, "spon", "voluptas"); +INSERT INTO organisations VALUES (14, "res", "quo"); +INSERT INTO organisations VALUES (15, "spon", "consequuntur"); + +CREATE TABLE "project_outcomes" ( +"project_id" integer, +"outcome_code" text, +"outcome_details" null +); + +INSERT INTO project_outcomes VALUES (4, "paper", "NULL"); +INSERT INTO project_outcomes VALUES (3, "patent", "NULL"); +INSERT INTO project_outcomes VALUES (9, "paper", "NULL"); +INSERT INTO project_outcomes VALUES (6, "paper", "NULL"); +INSERT INTO project_outcomes VALUES (9, "patent", "NULL"); +INSERT INTO project_outcomes VALUES (11, "paper", "NULL"); +INSERT INTO project_outcomes VALUES (14, "patent", "NULL"); +INSERT INTO project_outcomes VALUES (14, "paper", "NULL"); +INSERT INTO project_outcomes VALUES (13, "paper", "NULL"); +INSERT INTO project_outcomes VALUES (12, "patent", "NULL"); +INSERT INTO project_outcomes VALUES (7, "paper", "NULL"); +INSERT INTO project_outcomes VALUES (5, "patent", "NULL"); +INSERT INTO project_outcomes VALUES (7, "paper", "NULL"); +INSERT INTO project_outcomes VALUES (13, "paper", "NULL"); +INSERT INTO project_outcomes VALUES (7, "paper", "NULL"); + +CREATE TABLE "project_staff" ( +"staff_id" real, +"project_id" integer, +"role_code" text, +"date_from" text, +"date_to" text, +"other_details" null +); + +INSERT INTO project_staff VALUES (0.0, 2, "leader", "1981-10-04 22:44:50", "1985-05-30 22:26:30", "NULL"); +INSERT INTO project_staff VALUES (3.0, 5, "leader", "2003-04-19 15:06:20", "2010-12-08 11:55:36", "NULL"); +INSERT INTO project_staff VALUES (29.0, 2, "researcher", "1981-10-09 21:32:53", "2004-12-16 13:03:36", "NULL"); +INSERT INTO project_staff VALUES (37.0, 4, "researcher", "1983-02-07 17:55:59", "2004-07-28 03:11:47", "NULL"); +INSERT INTO project_staff VALUES (45.0, 15, "leader", "2004-11-01 23:52:38", "1988-03-04 19:30:05", "NULL"); +INSERT INTO project_staff VALUES (56.0, 7, "researcher", "1991-01-11 16:57:50", "1993-06-09 12:44:28", "NULL"); +INSERT INTO project_staff VALUES (779.0, 9, "researcher", "2005-01-13 11:49:48", "1973-07-19 04:51:26", "NULL"); +INSERT INTO project_staff VALUES (6572.0, 8, "researcher", "1970-03-25 06:18:11", "1985-12-05 12:00:58", "NULL"); +INSERT INTO project_staff VALUES (674810.0, 11, "researcher", "1972-01-17 19:42:16", "2016-03-15 00:33:18", "NULL"); +INSERT INTO project_staff VALUES (3100031.0, 1, "leader", "1970-04-06 15:50:21", "1983-03-19 16:06:31", "NULL"); +INSERT INTO project_staff VALUES (5137097.0, 11, "researcher", "2000-08-28 11:49:17", "2007-02-02 17:26:02", "NULL"); +INSERT INTO project_staff VALUES (5353407.0, 5, "researcher", "1989-04-24 23:51:54", "2002-03-19 18:00:36", "NULL"); +INSERT INTO project_staff VALUES (6065505.0, 3, "leader", "1999-10-21 22:07:15", "2008-09-25 20:06:28", "NULL"); +INSERT INTO project_staff VALUES (13739108.0, 1, "leader", "1970-01-02 15:35:05", "1985-09-22 09:06:08", "NULL"); +INSERT INTO project_staff VALUES (49698449.0, 2, "researcher", "1973-12-12 11:46:28", "1971-07-19 22:49:05", "NULL"); + +CREATE TABLE "projects" ( +"project_id" integer, +"organisation_id" integer, +"project_details" text +); + +INSERT INTO projects VALUES (1, 15, "porro"); +INSERT INTO projects VALUES (2, 11, "et"); +INSERT INTO projects VALUES (3, 7, "sint"); +INSERT INTO projects VALUES (4, 4, "doloremque"); +INSERT INTO projects VALUES (5, 11, "vel"); +INSERT INTO projects VALUES (6, 10, "deserunt"); +INSERT INTO projects VALUES (7, 3, "deleniti"); +INSERT INTO projects VALUES (8, 1, "ad"); +INSERT INTO projects VALUES (9, 4, "sed"); +INSERT INTO projects VALUES (10, 4, "consectetur"); +INSERT INTO projects VALUES (11, 13, "impedit"); +INSERT INTO projects VALUES (12, 12, "omnis"); +INSERT INTO projects VALUES (13, 3, "non"); +INSERT INTO projects VALUES (14, 1, "beatae"); +INSERT INTO projects VALUES (15, 5, "dolorem"); + +CREATE TABLE "research_outcomes" ( +"outcome_code" text, +"outcome_description" text +); + +INSERT INTO research_outcomes VALUES ("paper", "published research paper"); +INSERT INTO research_outcomes VALUES ("patent", "research patent"); + +CREATE TABLE "research_staff" ( +"staff_id" integer, +"employer_organisation_id" integer, +"staff_details" text +); + +INSERT INTO research_staff VALUES (1, 1, "quo"); +INSERT INTO research_staff VALUES (2, 4, "est"); +INSERT INTO research_staff VALUES (3, 5, "aspernatur"); +INSERT INTO research_staff VALUES (4, 3, "dolor"); +INSERT INTO research_staff VALUES (5, 2, "doloribus"); +INSERT INTO research_staff VALUES (6, 5, "consequatur"); +INSERT INTO research_staff VALUES (7, 3, "animi"); +INSERT INTO research_staff VALUES (8, 5, "consequatur"); +INSERT INTO research_staff VALUES (9, 6, "sint"); +INSERT INTO research_staff VALUES (10, 8, "iure"); +INSERT INTO research_staff VALUES (11, 9, "voluptatibus"); +INSERT INTO research_staff VALUES (12, 10, "nulla"); +INSERT INTO research_staff VALUES (13, 2, "ab"); +INSERT INTO research_staff VALUES (14, 3, "accusamus"); +INSERT INTO research_staff VALUES (15, 2, "dicta"); + +CREATE TABLE "staff_roles" ( +"role_code" text, +"role_description" text +); + +INSERT INTO staff_roles VALUES ("leader", "project leader"); +INSERT INTO staff_roles VALUES ("researcher", "project researcher"); + +CREATE TABLE "tasks" ( +"task_id" integer, +"project_id" integer, +"task_details" text, +"eg_agree_objectives" null +); + +INSERT INTO tasks VALUES (1, 1, "a", "NULL"); +INSERT INTO tasks VALUES (2, 2, "b", "NULL"); +INSERT INTO tasks VALUES (3, 3, "c", "NULL"); +INSERT INTO tasks VALUES (4, 4, "q", "NULL"); +INSERT INTO tasks VALUES (5, 5, "w", "NULL"); +INSERT INTO tasks VALUES (6, 6, "e", "NULL"); +INSERT INTO tasks VALUES (7, 7, "r", "NULL"); +INSERT INTO tasks VALUES (8, 8, "t", "NULL"); +INSERT INTO tasks VALUES (9, 9, "y", "NULL"); +INSERT INTO tasks VALUES (10, 10, "u", "NULL"); +INSERT INTO tasks VALUES (11, 11, "i", "NULL"); +INSERT INTO tasks VALUES (12, 12, "m", "NULL"); +INSERT INTO tasks VALUES (13, 13, "n", "NULL"); +INSERT INTO tasks VALUES (14, 14, "o", "NULL"); +INSERT INTO tasks VALUES (15, 15, "p", "NULL"); + + +COMMIT; diff --git a/all/databases/tracking_grants_for_research/tracking_grants_for_research.sqlite b/all/databases/tracking_grants_for_research/tracking_grants_for_research.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..cb84ec025a8585ccbad5abf98f64bce9e586bd98 Binary files /dev/null and b/all/databases/tracking_grants_for_research/tracking_grants_for_research.sqlite differ diff --git a/all/databases/tracking_orders_minus_1_0/tracking_orders_minus_1_0.sql b/all/databases/tracking_orders_minus_1_0/tracking_orders_minus_1_0.sql new file mode 100644 index 0000000000000000000000000000000000000000..d084e4046fa4d6aa38600bd6ec82cf31630a025b --- /dev/null +++ b/all/databases/tracking_orders_minus_1_0/tracking_orders_minus_1_0.sql @@ -0,0 +1,137 @@ +create table invoices ( +invoice_number integer, +invoice_date text, +invoice_details text +); +insert into invoices values(1, '1989-09-03 16:03:05', 'vitae'); +insert into invoices values(2, '1989-12-11 16:40:57', 'magnam'); +insert into invoices values(3, '1995-10-07 14:13:05', 'et'); +insert into invoices values(4, '1985-04-27 08:38:49', 'tempore'); +insert into invoices values(5, '1971-02-12 00:29:57', 'labore'); +insert into invoices values(6, '2007-12-25 15:49:37', 'optio'); +insert into invoices values(7, '1991-01-05 16:44:25', 'reiciendis'); +insert into invoices values(8, '2012-06-12 07:34:17', 'doloremque'); +insert into invoices values(9, '1974-07-27 16:18:49', 'quo'); +insert into invoices values(10, '2005-02-27 19:53:13', 'eveniet'); +insert into invoices values(11, '1972-08-12 05:48:49', 'earum'); +insert into invoices values(12, '1987-11-15 15:41:40', 'ea'); +insert into invoices values(13, '1981-03-28 20:01:44', 'voluptatem'); +insert into invoices values(14, '1998-07-30 15:39:12', 'repellat'); +insert into invoices values(15, '2012-12-08 02:21:54', 'voluptatem'); + +create table products ( +product_id integer, +product_name text, +product_details null +); +insert into products values(1, 'food', 'null'); +insert into products values(2, 'book', 'null'); +insert into products values(3, 'food', 'null'); +insert into products values(4, 'food', 'null'); +insert into products values(5, 'clothes', 'null'); +insert into products values(6, 'clothes', 'null'); +insert into products values(7, 'clothes', 'null'); +insert into products values(8, 'book', 'null'); +insert into products values(9, 'book', 'null'); +insert into products values(10, 'phone', 'null'); +insert into products values(11, 'phone', 'null'); +insert into products values(12, 'phone', 'null'); +insert into products values(13, 'phone', 'null'); +insert into products values(14, 'music', 'null'); +insert into products values(15, 'music', 'null'); + +create table order_items ( +order_item_id integer, +product_id integer, +order_id integer, +order_item_status text, +order_item_details null +); +insert into order_items values(1, 4, 6, 'finish', 'null'); +insert into order_items values(2, 15, 6, 'finish', 'null'); +insert into order_items values(3, 12, 15, 'finish', 'null'); +insert into order_items values(4, 8, 15, 'payed', 'null'); +insert into order_items values(5, 11, 6, 'payed', 'null'); +insert into order_items values(6, 14, 8, 'payed', 'null'); +insert into order_items values(7, 3, 5, 'payed', 'null'); +insert into order_items values(8, 4, 10, 'cancel', 'null'); +insert into order_items values(9, 11, 15, 'cancel', 'null'); +insert into order_items values(10, 7, 7, 'cancel', 'null'); +insert into order_items values(11, 15, 11, 'cancel', 'null'); +insert into order_items values(12, 1, 11, 'cancel', 'null'); +insert into order_items values(13, 14, 7, 'payed', 'null'); +insert into order_items values(14, 15, 14, 'payed', 'null'); +insert into order_items values(15, 3, 9, 'payed', 'null'); + +create table shipments ( +shipment_id integer, +order_id integer, +invoice_number integer, +shipment_tracking_number text, +shipment_date text, +other_shipment_details null +); +insert into shipments values(1, 5, 13, 3452, '1983-08-13 22:34:11', 'null'); +insert into shipments values(2, 7, 2, 0114, '1977-11-10 12:11:25', 'null'); +insert into shipments values(3, 10, 5, 478, '2006-01-17 03:08:05', 'null'); +insert into shipments values(4, 5, 2, 08858, '1982-01-24 12:13:16', 'null'); +insert into shipments values(5, 6, 15, 35342, '1981-11-13 23:20:42', 'null'); +insert into shipments values(6, 4, 3, 7480, '1978-05-17 00:03:43', 'null'); +insert into shipments values(7, 13, 15, 7662, '1999-10-12 10:41:49', 'null'); +insert into shipments values(8, 9, 10, 2323, '1983-03-08 16:14:58', 'null'); +insert into shipments values(9, 8, 10, 5991, '1986-06-07 13:54:27', 'null'); +insert into shipments values(10, 14, 15, 0182, '1973-06-20 14:26:43', 'null'); +insert into shipments values(11, 8, 2, 1334, '1992-08-13 04:04:52', 'null'); +insert into shipments values(12, 2, 9, 2421, '1985-11-12 12:41:34', 'null'); +insert into shipments values(13, 3, 10, 2424, '1970-02-02 05:23:57', 'null'); +insert into shipments values(14, 12, 3, 4029, '2014-01-15 20:52:15', 'null'); +insert into shipments values(15, 7, 9, 2436, '1991-04-01 15:24:24', 'null'); + +create table shipment_items ( +shipment_id integer, +order_item_id integer +); +insert into shipment_items values(11, 12); +insert into shipment_items values(10, 15); +insert into shipment_items values(10, 12); +insert into shipment_items values(2, 2); +insert into shipment_items values(14, 10); +insert into shipment_items values(3, 7); +insert into shipment_items values(4, 5); +insert into shipment_items values(13, 7); +insert into shipment_items values(12, 10); +insert into shipment_items values(5, 13); +insert into shipment_items values(15, 4); +insert into shipment_items values(4, 11); +insert into shipment_items values(12, 15); +insert into shipment_items values(5, 5); +insert into shipment_items values(2, 10); +create table customers_orders ( +customer_id integer, +customer_name text, +customer_details text, +order_id integer, +order_status text, +date_order_placed text, +order_details null); +insert into customers_orders values(1, 'savannah', 'rerum', 'None', 'None', 'None', 'None'); +insert into customers_orders values(2, 'george', 'est', 1, 'shipped', '2009-02-21 15:26:19', 'NULL'); +insert into customers_orders values(2, 'george', 'est', 10, 'on road', '1982-12-09 09:42:23', 'NULL'); +insert into customers_orders values(2, 'george', 'est', 12, 'on road', '1976-01-18 08:09:12', 'NULL'); +insert into customers_orders values(3, 'alberto', 'deleniti', 9, 'on road', '1983-09-08 12:32:49', 'NULL'); +insert into customers_orders values(4, 'leilani', 'sequi', 3, 'shipped', '1982-12-29 21:10:11', 'NULL'); +insert into customers_orders values(5, 'hadley', 'corrupti', 5, 'packing', '2010-06-08 02:20:49', 'NULL'); +insert into customers_orders values(6, 'chaz', 'nostrum', 'None', 'None', 'None', 'None'); +insert into customers_orders values(7, 'violet', 'consectetur', 6, 'packing', '1975-12-23 15:59:43', 'NULL'); +insert into customers_orders values(8, 'parker', 'rerum', 15, 'on road', '1971-05-10 01:54:18', 'NULL'); +insert into customers_orders values(9, 'devan', 'doloribus', 11, 'on road', '1979-12-07 02:03:49', 'NULL'); +insert into customers_orders values(10, 'beulah', 'commodi', 8, 'on road', '1997-01-27 19:12:01', 'NULL'); +insert into customers_orders values(10, 'beulah', 'commodi', 14, 'on road', '2002-09-13 07:38:09', 'NULL'); +insert into customers_orders values(11, 'hershel', 'vel', 2, 'shipped', '1974-06-24 22:10:26', 'NULL'); +insert into customers_orders values(12, 'conrad', 'eligendi', 'None', 'None', 'None', 'None'); +insert into customers_orders values(13, 'samson', 'dicta', 'None', 'None', 'None', 'None'); +insert into customers_orders values(14, 'mabelle', 'quidem', 'None', 'None', 'None', 'None'); +insert into customers_orders values(15, 'jeramie', 'officia', 4, 'packing', '1974-08-10 08:15:16', 'NULL'); +insert into customers_orders values(15, 'jeramie', 'officia', 7, 'packing', '1976-09-01 09:27:00', 'NULL'); +insert into customers_orders values(15, 'jeramie', 'officia', 13, 'on road', '2002-12-06 14:13:30', 'NULL'); + diff --git a/all/databases/tracking_orders_minus_1_0/tracking_orders_minus_1_0.sqlite b/all/databases/tracking_orders_minus_1_0/tracking_orders_minus_1_0.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..b0a6b0c728fdc41e14d486b90102bf91805585f8 Binary files /dev/null and b/all/databases/tracking_orders_minus_1_0/tracking_orders_minus_1_0.sqlite differ diff --git a/all/databases/tvshow/tvshow.sql b/all/databases/tvshow/tvshow.sql new file mode 100644 index 0000000000000000000000000000000000000000..44b90d8ad19db7eb7dee7296e5ababa6bf3da782 --- /dev/null +++ b/all/databases/tvshow/tvshow.sql @@ -0,0 +1,78 @@ +CREATE TABLE "tv_channel" ( +"id" text, +"series_name" text, +"country" text, +"language" text, +"content" text, +"pixel_aspect_ratio_par" text, +"hight_definition_tv" text, +"pay_per_view_ppv" text, +"package_option" text +); + +INSERT INTO tv_channel VALUES ("700", "sky radio", "italy", "italian", "music", "4:3", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("701", "sky music", "italy", "italian", "music", "4:3", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("703", "music box italia", "italy", "italian", "music", "4:3 / 16:9", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("704", "mtv hits", "italy", "italian", "music", "16:9", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("705", "mtv classic", "italy", "italian", "music", "4:3", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("706", "mtv rocks", "united kingdom", "english", "music", "16:9", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("707", "mtv dance", "united kingdom", "english", "music", "16:9", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("708", "mtv music", "italy", "italian", "music", "16:9", "no", "no", "no ftv"); +INSERT INTO tv_channel VALUES ("709", "mtv live hd", "poland", "english", "music", "16:9", "yes", "no", "sky famiglia + sky hd"); +INSERT INTO tv_channel VALUES ("713", "radio capital tivù", "italy", "italian", "music", "4:3", "no", "no", "no ftv"); +INSERT INTO tv_channel VALUES ("714", "mydeejay", "italy", "italian", "music", "16:9", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("715", "match music", "italy", "italian", "music", "4:3 / 16:9", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("717", "rock tv", "italy", "italian", "music", "4:3 / 16:9", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("719", "hip hop tv", "italy", "italian", "music", "4:3", "no", "no", "sky famiglia"); +INSERT INTO tv_channel VALUES ("728", "classica", "italy", "italian", "music", "4:3", "no", "no", "option"); + +CREATE TABLE "tv_series" ( +"id" real, +"episode" text, +"air_date" text, +"rating" text, +"share" real, +"18_49_rating_share" text, +"viewers_m" text, +"weekly_rank" real, +"channel" text +); + +INSERT INTO tv_series VALUES (1.0, "a love of a lifetime", "september 24 2007", "5.8", 9.0, "3.5/9", "9.16", 43.0, "700"); +INSERT INTO tv_series VALUES (2.0, "friendly skies", "october 1 2007", "5.3", 9.0, "3.2/8", "8.23", 50.0, "701"); +INSERT INTO tv_series VALUES (3.0, "game three", "october 8 2007", "4.4", 7.0, "2.9/7", "6.94", 61.0, "707"); +INSERT INTO tv_series VALUES (4.0, "the year of the rabbit", "october 15 2007", "4.3", 7.0, "2.7/7", "6.75", 67.0, "713"); +INSERT INTO tv_series VALUES (5.0, "the legend of dylan mccleen", "october 22 2007", "3.8", 6.0, "2.4/6", "6.06", 72.0, "714"); +INSERT INTO tv_series VALUES (6.0, "keepers", "october 29 2007", "3.7", 6.0, "2.2/6", "5.75", 71.0, "700"); +INSERT INTO tv_series VALUES (7.0, "double down", "november 5 2007", "3.4", 6.0, "2.1/5", "5.13", 80.0, "708"); +INSERT INTO tv_series VALUES (8.0, "winterland", "november 12 2007", "4.0", 7.0, "2.4/6", "6.09", 70.0, "707"); +INSERT INTO tv_series VALUES (9.0, "emily", "november 19 2007", "3.7", 6.0, "2.2/6", "5.61", 66.0, "717"); +INSERT INTO tv_series VALUES (10.0, "blowback", "november 26 2007", "3.7", 6.0, "2.4/6", "6.05", 68.0, "719"); +INSERT INTO tv_series VALUES (11.0, "home by another way", "december 10 2007", "3.5", 6.0, "1.7/5", "5.28", 62.0, "728"); +INSERT INTO tv_series VALUES (12.0, "the hanged man", "december 17 2007", "3.0", 5.0, "1.5/4", "4.24", 65.0, "714"); + +CREATE TABLE "cartoon" ( +"id" real, +"title" text, +"directed_by" text, +"written_by" text, +"original_air_date" text, +"production_code" real, +"channel" text +); + +INSERT INTO cartoon VALUES (1.0, "the rise of the blue beetle!", "ben jones", "michael jelenic", "november142008", 101.0, "700"); +INSERT INTO cartoon VALUES (2.0, "terror on dinosaur island!", "brandon vietti", "steven melching", "november212008", 102.0, "701"); +INSERT INTO cartoon VALUES (3.0, "evil under the sea!", "michael chang", "joseph kuhr", "december52008", 103.0, "703"); +INSERT INTO cartoon VALUES (4.0, "day of the dark knight!", "ben jones", "j. m. dematteis", "january22009", 104.0, "704"); +INSERT INTO cartoon VALUES (5.0, "invasion of the secret santas!", "brandon vietti", "adam beechen", "december122008", 105.0, "705"); +INSERT INTO cartoon VALUES (6.0, "enter the outsiders!", "michael chang", "todd casey", "january92009", 106.0, "706"); +INSERT INTO cartoon VALUES (7.0, "dawn of the dead man!", "ben jones", "steven melching", "january162009", 107.0, "707"); +INSERT INTO cartoon VALUES (8.0, "fall of the blue beetle!", "brandon vietti", "james krieg", "january232009", 108.0, "708"); +INSERT INTO cartoon VALUES (9.0, "journey to the center of the bat!", "michael chang", "matt wayne", "january302009", 109.0, "707"); +INSERT INTO cartoon VALUES (10.0, "the eyes of despero!", "ben jones", "j. m. dematteis", "february62009", 110.0, "728"); +INSERT INTO cartoon VALUES (11.0, "return of the fearsome fangs!", "brandon vietti", "todd casey", "february202009", 111.0, "700"); +INSERT INTO cartoon VALUES (12.0, "deep cover for batman!", "michael chang", "joseph kuhr", "february272009", 112.0, "707"); + + +COMMIT; diff --git a/all/databases/tvshow/tvshow.sqlite b/all/databases/tvshow/tvshow.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..ad4523aae5499e0c3ace10a9c5caf5da1e63f356 Binary files /dev/null and b/all/databases/tvshow/tvshow.sqlite differ diff --git a/all/databases/voter_1/voter_1.sql b/all/databases/voter_1/voter_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..6df1334f07948830ced0736cd34ac0a39bb39bcd --- /dev/null +++ b/all/databases/voter_1/voter_1.sql @@ -0,0 +1,138 @@ +CREATE TABLE "area_code_state" ( +"area_code" integer, +"state" text +); + +INSERT INTO area_code_state VALUES (201, "nj"); +INSERT INTO area_code_state VALUES (202, "dc"); +INSERT INTO area_code_state VALUES (203, "ct"); +INSERT INTO area_code_state VALUES (205, "al"); +INSERT INTO area_code_state VALUES (206, "wa"); +INSERT INTO area_code_state VALUES (207, "me"); +INSERT INTO area_code_state VALUES (208, "id"); +INSERT INTO area_code_state VALUES (209, "ca"); +INSERT INTO area_code_state VALUES (210, "tx"); +INSERT INTO area_code_state VALUES (212, "ny"); +INSERT INTO area_code_state VALUES (213, "ca"); +INSERT INTO area_code_state VALUES (214, "tx"); +INSERT INTO area_code_state VALUES (215, "pa"); +INSERT INTO area_code_state VALUES (216, "oh"); +INSERT INTO area_code_state VALUES (217, "il"); +INSERT INTO area_code_state VALUES (218, "mn"); +INSERT INTO area_code_state VALUES (219, "in"); +INSERT INTO area_code_state VALUES (224, "il"); +INSERT INTO area_code_state VALUES (225, "la"); +INSERT INTO area_code_state VALUES (228, "ms"); +INSERT INTO area_code_state VALUES (229, "ga"); +INSERT INTO area_code_state VALUES (231, "mi"); +INSERT INTO area_code_state VALUES (234, "oh"); +INSERT INTO area_code_state VALUES (236, "va"); +INSERT INTO area_code_state VALUES (239, "fl"); +INSERT INTO area_code_state VALUES (240, "md"); +INSERT INTO area_code_state VALUES (248, "mi"); +INSERT INTO area_code_state VALUES (251, "al"); +INSERT INTO area_code_state VALUES (252, "nc"); +INSERT INTO area_code_state VALUES (253, "wa"); +INSERT INTO area_code_state VALUES (254, "tx"); +INSERT INTO area_code_state VALUES (256, "al"); +INSERT INTO area_code_state VALUES (260, "in"); +INSERT INTO area_code_state VALUES (262, "wi"); +INSERT INTO area_code_state VALUES (267, "pa"); +INSERT INTO area_code_state VALUES (269, "mi"); +INSERT INTO area_code_state VALUES (270, "ky"); +INSERT INTO area_code_state VALUES (276, "va"); +INSERT INTO area_code_state VALUES (278, "mi"); +INSERT INTO area_code_state VALUES (281, "tx"); +INSERT INTO area_code_state VALUES (283, "oh"); +INSERT INTO area_code_state VALUES (301, "md"); +INSERT INTO area_code_state VALUES (302, "de"); +INSERT INTO area_code_state VALUES (303, "co"); +INSERT INTO area_code_state VALUES (304, "wv"); +INSERT INTO area_code_state VALUES (305, "fl"); +INSERT INTO area_code_state VALUES (307, "wy"); +INSERT INTO area_code_state VALUES (308, "ne"); +INSERT INTO area_code_state VALUES (309, "il"); +INSERT INTO area_code_state VALUES (310, "ca"); +INSERT INTO area_code_state VALUES (312, "il"); +INSERT INTO area_code_state VALUES (313, "mi"); +INSERT INTO area_code_state VALUES (314, "mo"); +INSERT INTO area_code_state VALUES (315, "ny"); +INSERT INTO area_code_state VALUES (316, "ks"); +INSERT INTO area_code_state VALUES (317, "in"); +INSERT INTO area_code_state VALUES (318, "la"); +INSERT INTO area_code_state VALUES (319, "ia"); +INSERT INTO area_code_state VALUES (320, "mn"); +INSERT INTO area_code_state VALUES (321, "fl"); +INSERT INTO area_code_state VALUES (323, "ca"); +INSERT INTO area_code_state VALUES (325, "tx"); +INSERT INTO area_code_state VALUES (330, "oh"); +INSERT INTO area_code_state VALUES (331, "il"); +INSERT INTO area_code_state VALUES (334, "al"); +INSERT INTO area_code_state VALUES (336, "nc"); +INSERT INTO area_code_state VALUES (337, "la"); +INSERT INTO area_code_state VALUES (339, "ma"); +INSERT INTO area_code_state VALUES (341, "ca"); +INSERT INTO area_code_state VALUES (347, "ny"); +INSERT INTO area_code_state VALUES (351, "ma"); +INSERT INTO area_code_state VALUES (352, "fl"); +INSERT INTO area_code_state VALUES (360, "wa"); +INSERT INTO area_code_state VALUES (361, "tx"); +INSERT INTO area_code_state VALUES (369, "ca"); +INSERT INTO area_code_state VALUES (380, "oh"); +INSERT INTO area_code_state VALUES (385, "ut"); +INSERT INTO area_code_state VALUES (386, "fl"); +INSERT INTO area_code_state VALUES (401, "ri"); +INSERT INTO area_code_state VALUES (402, "ne"); +INSERT INTO area_code_state VALUES (404, "ga"); +INSERT INTO area_code_state VALUES (405, "ok"); +INSERT INTO area_code_state VALUES (406, "mt"); +INSERT INTO area_code_state VALUES (407, "fl"); +INSERT INTO area_code_state VALUES (408, "ca"); +INSERT INTO area_code_state VALUES (409, "tx"); +INSERT INTO area_code_state VALUES (410, "md"); +INSERT INTO area_code_state VALUES (412, "pa"); +INSERT INTO area_code_state VALUES (413, "ma"); +INSERT INTO area_code_state VALUES (414, "wi"); +INSERT INTO area_code_state VALUES (415, "ca"); +INSERT INTO area_code_state VALUES (417, "mo"); +INSERT INTO area_code_state VALUES (419, "oh"); +INSERT INTO area_code_state VALUES (423, "tn"); +INSERT INTO area_code_state VALUES (424, "ca"); +INSERT INTO area_code_state VALUES (425, "wa"); +INSERT INTO area_code_state VALUES (430, "tx"); +INSERT INTO area_code_state VALUES (432, "tx"); +INSERT INTO area_code_state VALUES (434, "va"); +INSERT INTO area_code_state VALUES (435, "ut"); + +CREATE TABLE "contestants" ( +"contestant_number" integer, +"contestant_name" text +); + +INSERT INTO contestants VALUES (1, "edwina burnam"); +INSERT INTO contestants VALUES (2, "tabatha gehling"); +INSERT INTO contestants VALUES (3, "kelly clauss"); +INSERT INTO contestants VALUES (4, "jessie alloway"); +INSERT INTO contestants VALUES (5, "alana bregman"); +INSERT INTO contestants VALUES (6, "jessie eichman"); +INSERT INTO contestants VALUES (7, "allie rogalski"); +INSERT INTO contestants VALUES (8, "nita coster"); +INSERT INTO contestants VALUES (9, "kurt walser"); +INSERT INTO contestants VALUES (10, "ericka dieter"); +INSERT INTO contestants VALUES (11, "loraine nygrentania mattioli"); + +CREATE TABLE "votes" ( +"vote_id" integer, +"phone_number" integer, +"state" text, +"contestant_number" integer, +"created" text +); + +INSERT INTO votes VALUES (5, 5112677315, "ny", 2, "2018-03-09 19:03:21"); +INSERT INTO votes VALUES (3, 6209222712, "ny", 3, "2018-03-09 19:03:36"); +INSERT INTO votes VALUES (2, 7148407040, "ca", 3, "2018-03-09 19:03:39"); +INSERT INTO votes VALUES (1, 7182887233, "nj", 5, "2018-03-09 19:03:40"); + + +COMMIT; diff --git a/all/databases/voter_1/voter_1.sqlite b/all/databases/voter_1/voter_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..33cff71088cb89d4a767f6bdc19cd410e7770f12 Binary files /dev/null and b/all/databases/voter_1/voter_1.sqlite differ diff --git a/all/databases/wedding/wedding.sql b/all/databases/wedding/wedding.sql new file mode 100644 index 0000000000000000000000000000000000000000..8bfbd3ec4364c33a854560c3e49dd825f5a5a732 --- /dev/null +++ b/all/databases/wedding/wedding.sql @@ -0,0 +1,53 @@ +CREATE TABLE "people" ( +"people_id" integer, +"name" text, +"country" text, +"is_male" text, +"age" integer +); + +INSERT INTO people VALUES (1, "mike weir", "canada", "t", 34); +INSERT INTO people VALUES (2, "juli hanson", "sweden", "f", 32); +INSERT INTO people VALUES (3, "ricky barnes", "united states", "t", 30); +INSERT INTO people VALUES (4, "summer duval", "united states", "f", 30); +INSERT INTO people VALUES (5, "todd hamilton", "united states", "t", 27); +INSERT INTO people VALUES (6, "annie mediate", "united states", "f", 26); +INSERT INTO people VALUES (7, "lucas glover", "united states", "t", 31); +INSERT INTO people VALUES (8, "joe ohair", "united states", "f", 31); +INSERT INTO people VALUES (9, "graeme mcdowell", "northern ireland", "t", 34); +INSERT INTO people VALUES (10, "jamie mickelson", "united states", "f", 36); +INSERT INTO people VALUES (11, "adam scott", "australia", "t", 26); +INSERT INTO people VALUES (12, "danny toms", "united states", "f", 25); + +CREATE TABLE "church" ( +"church_id" integer, +"name" text, +"organized_by" text, +"open_date" integer, +"continuation_of" text +); + +INSERT INTO church VALUES (1, "pure church of christ", "wycam clark", 1831, "church of christ"); +INSERT INTO church VALUES (2, "independent church", "– hoton", 1832, "church of christ"); +INSERT INTO church VALUES (3, "church of christ", "ezra booth", 1836, "church of the latter day saints"); +INSERT INTO church VALUES (4, "church of christ parrishite", "warren parrish", 1837, "church of the latter day saints"); +INSERT INTO church VALUES (5, "alston church", "isaac russell", 1839, "church of jesus christ of latter day saints"); +INSERT INTO church VALUES (6, "church of christ", "william chubby", 1830, "church of jesus christ of latter day saints"); +INSERT INTO church VALUES (7, "church of jesus christ the bride the lambs wife", "george m. hinkle", 1840, "church of jesus christ of latter day saints"); +INSERT INTO church VALUES (8, "church of christ", "hiram page", 1842, "church of jesus christ of latter day saints"); +INSERT INTO church VALUES (9, "true church of jesus christ of latter day saints", "william law", 1844, "church of jesus christ of latter day saints"); + +CREATE TABLE "wedding" ( +"church_id" integer, +"male_id" integer, +"female_id" integer, +"year" integer +); + +INSERT INTO wedding VALUES (1, 1, 2, 2014); +INSERT INTO wedding VALUES (3, 3, 4, 2015); +INSERT INTO wedding VALUES (4, 7, 8, 2016); +INSERT INTO wedding VALUES (5, 5, 6, 2016); + + +COMMIT; diff --git a/all/databases/wedding/wedding.sqlite b/all/databases/wedding/wedding.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..78d250f11cd452f57206525bcabf952014ea3906 Binary files /dev/null and b/all/databases/wedding/wedding.sqlite differ diff --git a/all/databases/wine_1/wine_1.sql b/all/databases/wine_1/wine_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..6e25be358317fbb5bbf7c7a7abb7eee2ceaef166 --- /dev/null +++ b/all/databases/wine_1/wine_1.sql @@ -0,0 +1,211 @@ +CREATE TABLE "grapes" ( +"id" integer, +"grape" text, +"color" text +); + +INSERT INTO grapes VALUES (1, "barbera", "red"); +INSERT INTO grapes VALUES (2, "cabernet franc", "red"); +INSERT INTO grapes VALUES (3, "cabernet sauvingnon", "red"); +INSERT INTO grapes VALUES (4, "chardonnay", "white"); +INSERT INTO grapes VALUES (5, "grenache", "red"); +INSERT INTO grapes VALUES (6, "malbec", "red"); +INSERT INTO grapes VALUES (7, "marsanne", "white"); +INSERT INTO grapes VALUES (8, "merlot", "red"); +INSERT INTO grapes VALUES (9, "mourvedre", "red"); +INSERT INTO grapes VALUES (10, "muscat", "white"); +INSERT INTO grapes VALUES (11, "petite sirah", "red"); +INSERT INTO grapes VALUES (12, "pinot noir", "red"); +INSERT INTO grapes VALUES (13, "riesling", "white"); +INSERT INTO grapes VALUES (14, "roussanne", "white"); +INSERT INTO grapes VALUES (15, "sangiovese", "red"); +INSERT INTO grapes VALUES (16, "sauvignon blanc", "white"); +INSERT INTO grapes VALUES (17, "syrah", "red"); +INSERT INTO grapes VALUES (18, "tempranillo", "red"); +INSERT INTO grapes VALUES (19, "viognier", "white"); +INSERT INTO grapes VALUES (20, "zinfandel", "red"); + +CREATE TABLE "appellations" ( +"no" integer, +"appelation" text, +"county" text, +"state" text, +"area" text, +"isava" text +); + +INSERT INTO appellations VALUES (1, "alexander valley", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (2, "amador county", "amador", "california", "sierra foothills", "no"); +INSERT INTO appellations VALUES (3, "amador-mendocino-sonoma counties", "n/a", "california", "n/a", "no"); +INSERT INTO appellations VALUES (4, "anderson valley", "mendocino", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (5, "arroyo grande valley", "san luis obispo", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (6, "atlas peak", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (7, "bennett valley", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (8, "calaveras county", "calaveras", "california", "sierra foothills", "no"); +INSERT INTO appellations VALUES (9, "california", "n/a", "california", "california", "no"); +INSERT INTO appellations VALUES (10, "carneros", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (11, "central coast", "n/a", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (12, "chalk hill", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (13, "chalone", "monterey", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (14, "contra costa county", "contra costa", "california", "santa cruz mountains", "no"); +INSERT INTO appellations VALUES (15, "dry creek valley", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (16, "edna valley", "san luis obispo", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (17, "fiddletown", "amador", "california", "sierra foothills", "yes"); +INSERT INTO appellations VALUES (18, "green valley of russian river valley", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (19, "guenoc valley", "lake", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (20, "happy canyon of santa barbara", "santa barbara", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (21, "howell mountain", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (22, "knights valley", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (23, "lake county", "lake", "california", "north coast", "no"); +INSERT INTO appellations VALUES (24, "livermore valley", "alameda", "california", "santa cruz mountains", "yes"); +INSERT INTO appellations VALUES (25, "lodi", "san joaquin", "california", "central valley", "yes"); +INSERT INTO appellations VALUES (26, "mendocino county", "mendocino", "california", "north coast", "no"); +INSERT INTO appellations VALUES (27, "monterey county", "monterey", "california", "central coast", "no"); +INSERT INTO appellations VALUES (28, "mount harlan", "san benito", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (29, "mount vedeer", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (30, "napa valley", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (31, "napa-sonoma counties", "n/a", "california", "north coast", "no"); +INSERT INTO appellations VALUES (32, "north coast", "n/a", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (33, "oakville", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (34, "paso robles", "san luis obispo", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (35, "red hills lake county", "lake", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (36, "rockpile", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (37, "russian river valley", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (38, "rutherford", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (39, "san luis obispo county", "san luis obispo", "california", "central coast", "no"); +INSERT INTO appellations VALUES (40, "santa barbara county", "santa barbara", "california", "central coast", "no"); +INSERT INTO appellations VALUES (41, "santa cruz mountains", "n/a", "california", "santa cruz mountains", "yes"); +INSERT INTO appellations VALUES (42, "santa lucia highlands", "monterey", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (43, "santa maria valley", "santa barbara", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (44, "santa ynez valley", "santa barbara", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (45, "shenandoah valley", "amador", "california", "sierra foothills", "yes"); +INSERT INTO appellations VALUES (46, "sierra foothills", "n/a", "california", "sierra foothills", "yes"); +INSERT INTO appellations VALUES (47, "solano county", "solano", "california", "north coast", "no"); +INSERT INTO appellations VALUES (48, "sonoma coast", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (49, "sonoma county", "sonoma", "california", "north coast", "no"); +INSERT INTO appellations VALUES (50, "sonoma valley", "sonoma", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (51, "sonoma-lake counties", "n/a", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (52, "spring mountain district", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (53, "st. helena", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (54, "sta. rita hills", "santa barbara", "california", "central coast", "yes"); +INSERT INTO appellations VALUES (55, "stags leap district", "napa", "california", "north coast", "yes"); +INSERT INTO appellations VALUES (56, "yolo county", "yolo", "california", "central valley", "no"); +INSERT INTO appellations VALUES (57, "yountville", "napa", "california", "north coast", "yes"); + +CREATE TABLE "wine" ( +"no" integer, +"grape" text, +"winery" text, +"appelation" text, +"state" text, +"name" text, +"year" integer, +"price" integer, +"score" integer, +"cases" integer, +"drink" text +); + +INSERT INTO wine VALUES (1, "zinfandel", "robert biale", "st. helena", "california", "old kraft vineyard", 2008, 44, 93, 275, "now"); +INSERT INTO wine VALUES (2, "zinfandel", "chiarello family", "napa valley", "california", "giana", 2008, 35, 93, 480, "now"); +INSERT INTO wine VALUES (3, "zinfandel", "robert biale", "napa valley", "california", "black chicken", 2008, 40, 91, 2700, "2012"); +INSERT INTO wine VALUES (4, "zinfandel", "robert biale", "napa valley", "california", "napa ranches", 2008, 38, 89, 525, "now"); +INSERT INTO wine VALUES (5, "zinfandel", "robert biale", "st. helena", "california", "varozza vineyard", 2008, 44, 88, 275, "2012"); +INSERT INTO wine VALUES (6, "zinfandel", "pedroncelli", "dry creek valley", "california", "mother clone", 2008, 15, 88, 6000, "now"); +INSERT INTO wine VALUES (7, "zinfandel", "rutherford ranch", "napa valley", "california", "zinfandel", 2007, 18, 87, 1552, "now"); +INSERT INTO wine VALUES (8, "sauvignon blanc", "altamura", "napa valley", "california", "sauvignon blanc", 2007, 48, 92, 500, "now"); +INSERT INTO wine VALUES (9, "sauvignon blanc", "capture", "sonoma county", "california", "les pionniers", 2009, 36, 92, 360, "now"); +INSERT INTO wine VALUES (10, "sauvignon blanc", "brander", "santa ynez valley", "california", "cuvee nicolas", 2009, 25, 91, 377, "now"); +INSERT INTO wine VALUES (11, "sauvignon blanc", "capture", "california", "california", "tradition", 2009, 30, 91, 875, "now"); +INSERT INTO wine VALUES (12, "sauvignon blanc", "john anthony", "carneros", "california", "church vineyard", 2009, 28, 91, 354, "now"); +INSERT INTO wine VALUES (13, "sauvignon blanc", "peter michael", "knights valley", "california", "lapres-midi", 2008, 48, 91, 1260, "now"); +INSERT INTO wine VALUES (14, "sauvignon blanc", "grey stack", "bennett valley", "california", "rosemarys block dry stack vineyard", 2009, 28, 90, 700, "now"); +INSERT INTO wine VALUES (15, "sauvignon blanc", "round pond estate", "rutherford", "california", "sauvignon blanc", 2009, 26, 90, 714, "now"); +INSERT INTO wine VALUES (16, "sauvignon blanc", "beckmen", "santa ynez valley", "california", "sauvignon blanc", 2009, 16, 89, 1500, "now"); +INSERT INTO wine VALUES (17, "sauvignon blanc", "beltane ranch", "sonoma valley", "california", "sauvignon blanc", 2009, 23, 89, 413, "now"); +INSERT INTO wine VALUES (18, "sauvignon blanc", "brander", "santa ynez valley", "california", "mesa verde vineyard", 2009, 22, 89, 380, "now"); +INSERT INTO wine VALUES (19, "sauvignon blanc", "cade", "napa valley", "california", "sauvignon blanc", 2008, 26, 89, 5200, "now"); +INSERT INTO wine VALUES (20, "sauvignon blanc", "jericho canyon", "napa valley", "california", "sauvignon blanc", 2009, 25, 89, 370, "now"); +INSERT INTO wine VALUES (21, "sauvignon blanc", "john anthony", "napa valley", "california", "sauvignon blanc", 2009, 19, 89, 3098, "now"); +INSERT INTO wine VALUES (22, "sauvignon blanc", "kenzo", "napa valley", "california", "asatsuyu", 2008, 60, 89, 600, "now"); +INSERT INTO wine VALUES (23, "sauvignon blanc", "madrigal", "napa valley", "california", "estate", 2009, 25, 89, 200, "now"); +INSERT INTO wine VALUES (24, "sauvignon blanc", "joseph phelps", "st. helena", "california", "sauvignon blanc", 2008, 32, 89, 2000, "now"); +INSERT INTO wine VALUES (25, "sauvignon blanc", "sbragia family", "dry creek valley", "california", "home ranch", 2009, 20, 89, 1698, "now"); +INSERT INTO wine VALUES (26, "sauvignon blanc", "selene", "carneros", "california", "hyde vineyards", 2009, 27, 89, 750, "now"); +INSERT INTO wine VALUES (27, "sauvignon blanc", "brander", "santa ynez valley", "california", "purisma mountain", 2009, 25, 88, 260, "now"); +INSERT INTO wine VALUES (28, "sauvignon blanc", "cimarone", "happy canyon of santa barbara", "california", "3cv grassini family vineyards", 2009, 21, 88, 270, "now"); +INSERT INTO wine VALUES (29, "sauvignon blanc", "sbragia family", "dry creek valley", "california", "schmidt ranch", 2009, 24, 88, 602, "now"); +INSERT INTO wine VALUES (30, "sauvignon blanc", "azur", "rutherford", "california", "sauvignon blanc", 2009, 24, 87, 1000, "now"); +INSERT INTO wine VALUES (31, "sauvignon blanc", "brander", "santa ynez valley", "california", "cuvee natalie", 2009, 18, 87, 857, "now"); +INSERT INTO wine VALUES (32, "sauvignon blanc", "brander", "santa ynez valley", "california", "au naturel", 2009, 32, 87, 759, "now"); +INSERT INTO wine VALUES (33, "sauvignon blanc", "handley", "dry creek valley", "california", "handley vineyard", 2008, 15, 87, 1214, "now"); +INSERT INTO wine VALUES (34, "sauvignon blanc", "imagery", "sonoma valley", "california", "wow oui", 2009, 27, 87, 874, "now"); +INSERT INTO wine VALUES (35, "sauvignon blanc", "koehler", "santa ynez valley", "california", "sauvignon blanc", 2008, 12, 87, 505, "now"); +INSERT INTO wine VALUES (36, "sauvignon blanc", "pomelo", "california", "california", "sauvignon blanc", 2009, 10, 87, 50000, "now"); +INSERT INTO wine VALUES (37, "sauvignon blanc", "twomey", "napa valley", "california", "sauvignon blanc", 2009, 25, 87, 3326, "now"); +INSERT INTO wine VALUES (38, "sauvignon blanc", "white oak", "russian river valley", "california", "sauvignon blanc", 2008, 16, 87, 2000, "now"); +INSERT INTO wine VALUES (39, "sauvignon blanc", "benziger", "sonoma-lake counties", "california", "sauvignon blanc", 2009, 15, 86, 20000, "now"); +INSERT INTO wine VALUES (40, "sauvignon blanc", "kunde estate", "sonoma valley", "california", "magnolia lane", 2009, 16, 86, 15000, "now"); +INSERT INTO wine VALUES (41, "sauvignon blanc", "j. lohr", "napa valley", "california", "carols vineyard", 2009, 24, 86, 2900, "now"); +INSERT INTO wine VALUES (42, "sauvignon blanc", "pedroncelli", "dry creek valley", "california", "east side vineyards", 2009, 12, 86, 5100, "now"); +INSERT INTO wine VALUES (43, "sauvignon blanc", "star lane", "santa ynez valley", "california", "sauvignon blanc", 2008, 20, 86, 2800, "now"); +INSERT INTO wine VALUES (44, "sauvignon blanc", "angeline", "russian river valley", "california", "sauvignon blanc", 2009, 14, 85, 8500, "now"); +INSERT INTO wine VALUES (45, "sauvignon blanc", "manifesto!", "north coast", "california", "sauvignon blanc", 2008, 12, 85, 8100, "now"); +INSERT INTO wine VALUES (46, "sauvignon blanc", "mirassou", "california", "california", "sauvignon blanc", 2008, 12, 85, 42000, "now"); +INSERT INTO wine VALUES (47, "sauvignon blanc", "no", "lake county", "california", "sauvignon blanc", 2008, 12, 85, 4210, "now"); +INSERT INTO wine VALUES (48, "cabernet sauvingnon", "chappellet", "napa valley", "california", "pritchard hill", 2007, 135, 96, 3368, "now"); +INSERT INTO wine VALUES (49, "cabernet sauvingnon", "lewis", "napa valley", "california", "reserve", 2007, 130, 95, 1700, "now"); +INSERT INTO wine VALUES (50, "cabernet sauvingnon", "neyers", "napa valley", "california", "neyers ranch - conn valley", 2007, 48, 95, 575, "now"); +INSERT INTO wine VALUES (51, "cabernet sauvingnon", "ramey", "napa valley", "california", "annum", 2007, 85, 95, 1700, "now"); +INSERT INTO wine VALUES (52, "cabernet sauvingnon", "round pond estate", "rutherford", "california", "cabernet sauvignon", 2007, 50, 94, 4018, "now"); +INSERT INTO wine VALUES (53, "cabernet sauvingnon", "carter", "napa valley", "california", "beckstoffer to kalon vineyard", 2007, 125, 92, 190, "now"); +INSERT INTO wine VALUES (54, "cabernet sauvingnon", "carter", "napa valley", "california", "coliseum block", 2007, 125, 92, 277, "now"); +INSERT INTO wine VALUES (55, "cabernet sauvingnon", "ehlers estate", "st. helena", "california", "1886", 2007, 95, 92, 800, "now"); +INSERT INTO wine VALUES (56, "cabernet sauvingnon", "fontanella family", "mount vedeer", "california", "cabernet sauvignon", 2007, 50, 92, 650, "2010"); +INSERT INTO wine VALUES (57, "cabernet sauvingnon", "janzen", "napa valley", "california", "beckstoffer to kalon vineyard", 2007, 135, 92, 235, "now"); +INSERT INTO wine VALUES (58, "cabernet sauvingnon", "morlet", "napa valley", "california", "couer de valee", 2007, 175, 92, 250, "now"); +INSERT INTO wine VALUES (59, "cabernet sauvingnon", "penche", "napa valley", "california", "cabernet sauvignon", 2006, 60, 92, 354, "now"); +INSERT INTO wine VALUES (60, "pinot noir", "kosta browne", "russian river valley", "california", "amber ridge vineyard", 2008, 72, 95, 600, "now"); +INSERT INTO wine VALUES (61, "pinot noir", "kosta browne", "russian river valley", "california", "keefer ranch", 2008, 72, 95, 613, "now"); +INSERT INTO wine VALUES (62, "pinot noir", "kosta browne", "russian river valley", "california", "koplen vineyard", 2008, 72, 95, 792, "now"); +INSERT INTO wine VALUES (63, "pinot noir", "patz & hall", "russian river valley", "california", "freestone hill", 2007, 70, 95, 245, "now"); +INSERT INTO wine VALUES (64, "pinot noir", "foxen", "santa maria valley", "california", "julias vineyard", 2008, 56, 94, 670, "now"); +INSERT INTO wine VALUES (65, "pinot noir", "paul hobbs", "napa valley", "california", "carneros hyde vineyard", 2008, 75, 94, 741, "now"); +INSERT INTO wine VALUES (66, "pinot noir", "kosta browne", "russian river valley", "california", "pinot noir", 2008, 52, 94, 3632, "now"); +INSERT INTO wine VALUES (67, "pinot noir", "kosta browne", "santa lucia highlands", "california", "garys vineyard", 2008, 72, 94, 422, "now"); +INSERT INTO wine VALUES (68, "pinot noir", "kosta browne", "sonoma coast", "california", "kanzler vineyard", 2008, 72, 94, 564, "now"); +INSERT INTO wine VALUES (69, "pinot noir", "lynmar", "russian river valley", "california", "five sisters", 2007, 100, 94, 147, "now"); +INSERT INTO wine VALUES (70, "pinot noir", "kosta browne", "santa lucia highlands", "california", "pisoni vineyard", 2008, 72, 93, 115, "now"); +INSERT INTO wine VALUES (71, "pinot noir", "kosta browne", "santa lucia highlands", "california", "rosellas vineyard", 2008, 72, 93, 255, "now"); +INSERT INTO wine VALUES (72, "pinot noir", "landmark", "sonoma coast", "california", "kanzler vineyard", 2008, 65, 93, 200, "now"); +INSERT INTO wine VALUES (73, "pinot noir", "lynmar", "russian river valley", "california", "valley bliss block", 2008, 70, 93, 152, "now"); +INSERT INTO wine VALUES (74, "pinot noir", "patz & hall", "sonoma coast", "california", "pinot noir", 2008, 42, 93, 3103, "now"); +INSERT INTO wine VALUES (75, "pinot noir", "valdez family", "russian river valley", "california", "lancel creek vineyard", 2007, 55, 93, 130, "now"); +INSERT INTO wine VALUES (76, "pinot noir", "de loach", "green valley of russian river valley", "california", "pinot noir", 2008, 45, 92, 1467, "now"); +INSERT INTO wine VALUES (77, "pinot noir", "kosta browne", "california", "california", "4-barrel", 2008, 72, 92, 97, "now"); +INSERT INTO wine VALUES (78, "pinot noir", "kosta browne", "sonoma coast", "california", "gaps crown vineyard", 2008, 68, 92, 690, "now"); +INSERT INTO wine VALUES (79, "pinot noir", "kosta browne", "sonoma coast", "california", "pinot noir", 2008, 52, 90, 3554, "now"); +INSERT INTO wine VALUES (80, "pinot noir", "rusack", "sta. rita hills", "california", "reserve", 2008, 40, 89, 340, "now"); +INSERT INTO wine VALUES (81, "pinot noir", "acacia", "california", "california", "a by acacia", 2008, 17, 88, 58231, "now"); +INSERT INTO wine VALUES (82, "pinot noir", "alma rosa", "sta. rita hills", "california", "la encantada vineyard", 2008, 43, 88, 591, "now"); +INSERT INTO wine VALUES (83, "pinot noir", "alma rosa", "sta. rita hills", "california", "la encantada vineyard clone 667", 2008, 43, 88, 358, "now"); +INSERT INTO wine VALUES (84, "pinot noir", "artesa", "carneros", "california", "estate reserve", 2007, 40, 88, 3527, "now"); +INSERT INTO wine VALUES (85, "pinot noir", "robert mondavi", "napa valley", "california", "carneros", 2008, 28, 88, 30300, "now"); +INSERT INTO wine VALUES (86, "pinot noir", "pfendler", "sonoma coast", "california", "pinot noir", 2008, 45, 88, 400, "now"); +INSERT INTO wine VALUES (87, "pinot noir", "roar", "santa lucia highlands", "california", "garys vineyard", 2008, 50, 88, 710, "now"); +INSERT INTO wine VALUES (88, "pinot noir", "rusack", "santa maria valley", "california", "pinot noir", 2008, 36, 88, 833, "now"); +INSERT INTO wine VALUES (89, "pinot noir", "sequana", "santa lucia highlands", "california", "sarmento vineyard", 2008, 32, 88, 500, "now"); +INSERT INTO wine VALUES (90, "pinot noir", "spell", "sonoma coast", "california", "pinot noir", 2008, 30, 88, 170, "now"); +INSERT INTO wine VALUES (91, "pinot noir", "twomey", "santa barbara county", "california", "pinot noir", 2008, 30, 88, 1510, "now"); +INSERT INTO wine VALUES (92, "pinot noir", "alma rosa", "sta. rita hills", "california", "pinot noir", 2008, 32, 87, 4651, "now"); +INSERT INTO wine VALUES (93, "pinot noir", "castle rock", "central coast", "california", "pinot noir", 2008, 13, 87, 36000, "now"); +INSERT INTO wine VALUES (94, "pinot noir", "v. sattui", "carneros", "california", "henry ranch", 2008, 36, 87, 951, "now"); +INSERT INTO wine VALUES (95, "pinot noir", "sebastiani", "carneros", "california", "pinot noir", 2008, 24, 87, 720, "now"); +INSERT INTO wine VALUES (96, "pinot noir", "talbott", "santa lucia highlands", "california", "kali hart", 2008, 21, 87, 8000, "now"); +INSERT INTO wine VALUES (97, "pinot noir", "tudor", "santa lucia highlands", "california", "pinot noir", 2007, 40, 87, 3965, "now"); +INSERT INTO wine VALUES (98, "pinot noir", "twomey", "sonoma coast", "california", "pinot noir", 2008, 50, 87, 1255, "now"); +INSERT INTO wine VALUES (99, "pinot noir", "castle rock", "russian river valley", "california", "pinot noir", 2008, 18, 86, 2400, "now"); +INSERT INTO wine VALUES (100, "pinot noir", "talbott", "santa lucia highlands", "california", "sleepy hollow vineyard", 2008, 40, 86, 2500, "now"); + + +COMMIT; diff --git a/all/databases/wine_1/wine_1.sqlite b/all/databases/wine_1/wine_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..e8df1eb55c86f0921eafd5de6030eb8d9cf1f3af Binary files /dev/null and b/all/databases/wine_1/wine_1.sqlite differ diff --git a/all/databases/wta_1/wta_1.sql b/all/databases/wta_1/wta_1.sql new file mode 100644 index 0000000000000000000000000000000000000000..23f0d3bb053e999710ddf44d095581adb29db2a0 --- /dev/null +++ b/all/databases/wta_1/wta_1.sql @@ -0,0 +1,357 @@ +CREATE TABLE "players" ( +"player_id" integer, +"first_name" text, +"last_name" text, +"hand" text, +"birth_date" integer, +"country_code" text +); + +INSERT INTO players VALUES (200001, "martina", "hingis", "r", 19800930, "sui"); +INSERT INTO players VALUES (200002, "mirjana", "lucic", "r", 19820309, "cro"); +INSERT INTO players VALUES (200003, "justine", "henin", "r", 19820601, "bel"); +INSERT INTO players VALUES (200004, "kerry anne", "guse", "r", 19721204, "aus"); +INSERT INTO players VALUES (200005, "jolene", "watanabe giltz", "r", 19680831, "usa"); +INSERT INTO players VALUES (200006, "karina", "habsudova", "r", 19730802, "svk"); +INSERT INTO players VALUES (200007, "silvija", "talaja", "r", 19780114, "cro"); +INSERT INTO players VALUES (200008, "alicia", "molik", "r", 19810127, "aus"); +INSERT INTO players VALUES (200009, "tamarine", "tanasugarn", "r", 19770524, "tha"); +INSERT INTO players VALUES (200010, "rita", "grande", "r", 19750323, "ita"); +INSERT INTO players VALUES (200011, "katarina", "srebotnik", "r", 19810312, "slo"); +INSERT INTO players VALUES (200012, "jana", "nejedly", "r", 19740609, "can"); +INSERT INTO players VALUES (200013, "angelica", "gavaldon", "r", 19731003, "mex"); +INSERT INTO players VALUES (200014, "tzipi", "obziler", "r", 19730419, "isr"); +INSERT INTO players VALUES (200015, "petra", "mandula", "r", 19780117, "hun"); +INSERT INTO players VALUES (200016, "sandrine", "testud", "r", 19720403, "fra"); +INSERT INTO players VALUES (200017, "arantxa", "sanchez vicario", "r", 19711218, "esp"); +INSERT INTO players VALUES (200018, "julia", "abe", "r", 19760521, "ger"); +INSERT INTO players VALUES (200019, "alexandra", "fusai", "r", 19731122, "fra"); +INSERT INTO players VALUES (200020, "lisa", "raymond", "r", 19730810, "usa"); +INSERT INTO players VALUES (200021, "alexia", "dechaume balleret", "r", 19700503, "fra"); +INSERT INTO players VALUES (200022, "emmanuelle", "gagliardi", "r", 19760709, "sui"); +INSERT INTO players VALUES (200023, "bryanne", "stewart", "r", 19791209, "aus"); +INSERT INTO players VALUES (200024, "maria", "vento kabchi", "r", 19740524, "ven"); +INSERT INTO players VALUES (200025, "ludmila", "cervanova", "r", 19791015, "svk"); +INSERT INTO players VALUES (200026, "florencia", "labat", "l", 19710612, "arg"); +INSERT INTO players VALUES (200027, "magui", "serna", "l", 19790301, "esp"); +INSERT INTO players VALUES (200028, "maureen", "drake", "r", 19710321, "can"); +INSERT INTO players VALUES (200029, "lisa", "mcshea", "r", 19741029, "aus"); +INSERT INTO players VALUES (200030, "miroslava", "vavrinec", "r", 19780401, "sui"); +INSERT INTO players VALUES (200031, "meilen", "tu", "r", 19780117, "usa"); +INSERT INTO players VALUES (200032, "barbara", "schett", "r", 19760310, "aut"); +INSERT INTO players VALUES (200033, "serena", "williams", "r", 19810926, "usa"); +INSERT INTO players VALUES (200034, "amanda", "grahame", "l", 19790325, "aus"); +INSERT INTO players VALUES (200035, "maria", "sanchez lorenzo", "r", 19771107, "esp"); +INSERT INTO players VALUES (200036, "nicole", "pratt", "r", 19730305, "aus"); +INSERT INTO players VALUES (200037, "sabine", "appelmans", "l", 19720422, "bel"); +INSERT INTO players VALUES (200038, "annabel", "ellwood", "r", 19780202, "aus"); +INSERT INTO players VALUES (200039, "chanda", "rubin", "r", 19760218, "usa"); +INSERT INTO players VALUES (200040, "anna", "smashnova", "r", 19760716, "isr"); +INSERT INTO players VALUES (200041, "amy", "frazier", "r", 19720919, "usa"); +INSERT INTO players VALUES (200042, "els", "callens", "r", 19700820, "bel"); +INSERT INTO players VALUES (200043, "virginie", "razzano", "r", 19830512, "fra"); +INSERT INTO players VALUES (200044, "denisa", "chladkova", "r", 19790208, "cze"); +INSERT INTO players VALUES (200045, "tara", "snyder", "r", 19770526, "usa"); +INSERT INTO players VALUES (200046, "meghann", "shaughnessy", "r", 19790413, "usa"); +INSERT INTO players VALUES (200047, "pavlina", "nola", "r", 19740714, "nzl"); +INSERT INTO players VALUES (200048, "elena", "likhovtseva", "r", 19750908, "rus"); +INSERT INTO players VALUES (200049, "conchita", "martinez", "r", 19720416, "esp"); +INSERT INTO players VALUES (200050, "sandra", "kleinova", "r", 19780508, "cze"); +INSERT INTO players VALUES (200051, "irina", "spirlea", "r", 19740326, "rou"); +INSERT INTO players VALUES (200052, "olga", "barabanschikova", "r", 19791102, "blr"); +INSERT INTO players VALUES (200053, "lubomira", "bacheva", "r", 19750307, "bul"); +INSERT INTO players VALUES (200054, "sylvia", "plischke", "r", 19770720, "aut"); +INSERT INTO players VALUES (200055, "mariana", "diaz oliva", "r", 19760311, "arg"); +INSERT INTO players VALUES (200056, "jelena", "kostanic tosic", "l", 19810706, "cro"); +INSERT INTO players VALUES (200057, "erika", "de lone", "r", 19721014, "usa"); +INSERT INTO players VALUES (200058, "anna", "foldenyi dicker", "r", 19740822, "hun"); +INSERT INTO players VALUES (200059, "ruxandra", "dragomir ilie", "r", 19721024, "rou"); +INSERT INTO players VALUES (200060, "tathiana", "garbin", "r", 19770630, "ita"); +INSERT INTO players VALUES (200061, "gala", "leon garcia", "l", 19731223, "esp"); +INSERT INTO players VALUES (200062, "kristina", "brandi", "r", 19770329, "pur"); +INSERT INTO players VALUES (200063, "tatiana", "panova", "r", 19760813, "rus"); +INSERT INTO players VALUES (200064, "amanda", "coetzer", "r", 19711022, "rsa"); +INSERT INTO players VALUES (200065, "amelie", "mauresmo", "r", 19790705, "fra"); +INSERT INTO players VALUES (200066, "cristina", "torrens valero", "r", 19740912, "esp"); +INSERT INTO players VALUES (200067, "patty", "schnyder", "l", 19781214, "sui"); +INSERT INTO players VALUES (200068, "lilia", "osterloh", "r", 19780407, "usa"); +INSERT INTO players VALUES (200069, "nadia", "petrova", "r", 19820608, "rus"); +INSERT INTO players VALUES (200070, "anne gaelle", "sidot", "l", 19790724, "fra"); +INSERT INTO players VALUES (200071, "lenka", "nemeckova", "r", 19760420, "cze"); +INSERT INTO players VALUES (200072, "cara", "black", "r", 19790217, "zim"); +INSERT INTO players VALUES (200073, "julie", "pullin", "l", 19751105, "gbr"); +INSERT INTO players VALUES (200074, "jane", "chi", "r", 19740621, "usa"); +INSERT INTO players VALUES (200075, "jing qian", "yi", "r", 19740228, "chn"); +INSERT INTO players VALUES (200076, "laurence", "courtois", "r", 19760118, "bel"); +INSERT INTO players VALUES (200077, "jennifer", "capriati", "r", 19760329, "usa"); +INSERT INTO players VALUES (200078, "barbara", "schwartz", "l", 19790127, "aut"); +INSERT INTO players VALUES (200079, "kim", "clijsters", "r", 19830608, "bel"); +INSERT INTO players VALUES (200080, "dominique", "monami", "r", 19730531, "bel"); +INSERT INTO players VALUES (200081, "anke", "huber", "r", 19741204, "ger"); +INSERT INTO players VALUES (200082, "kristie", "boogert", "r", 19731216, "ned"); +INSERT INTO players VALUES (200083, "alexandra", "stevenson", "r", 19801215, "usa"); +INSERT INTO players VALUES (200084, "asa", "svensson", "r", 19750616, "swe"); +INSERT INTO players VALUES (200085, "ai", "sugiyama", "r", 19750705, "jpn"); +INSERT INTO players VALUES (200086, "magdalena", "maleeva", "r", 19750401, "bul"); +INSERT INTO players VALUES (200087, "seda", "noorlander", "r", 19740522, "ned"); +INSERT INTO players VALUES (200088, "adriana", "gersi", "r", 19760626, "cze"); +INSERT INTO players VALUES (200089, "miriam", "oremans", "r", 19720909, "ned"); +INSERT INTO players VALUES (200090, "anca", "barna", "l", 19770514, "ger"); +INSERT INTO players VALUES (200091, "janet", "lee", "r", 19761022, "tpe"); +INSERT INTO players VALUES (200092, "sandra", "nacuk", "r", 19800817, "scg"); +INSERT INTO players VALUES (200093, "amelie", "cocheteux", "l", 19780327, "fra"); +INSERT INTO players VALUES (200094, "barbara", "rittner", "r", 19730425, "ger"); +INSERT INTO players VALUES (200095, "linda", "wild", "r", 19710211, "usa"); +INSERT INTO players VALUES (200096, "mary", "pierce", "r", 19750115, "fra"); +INSERT INTO players VALUES (200097, "nathalie", "tauziat", "r", 19671017, "fra"); +INSERT INTO players VALUES (200098, "henrieta", "nagyova", "r", 19781215, "svk"); +INSERT INTO players VALUES (200099, "sonya", "jeyaseelan", "r", 19760424, "can"); +INSERT INTO players VALUES (200100, "amanda", "hopmans", "r", 19760211, "ned"); + +CREATE TABLE "matches" ( +"best_of" integer, +"draw_size" integer, +"loser_age" real, +"loser_entry" text, +"loser_hand" text, +"loser_ht" integer, +"loser_id" integer, +"loser_ioc" text, +"loser_name" text, +"loser_rank" integer, +"loser_rank_points" integer, +"loser_seed" integer, +"match_num" integer, +"minutes" integer, +"round" text, +"score" text, +"surface" text, +"tourney_date" integer, +"tourney_id" text, +"tourney_level" text, +"tourney_name" text, +"winner_age" real, +"winner_entry" text, +"winner_hand" text, +"winner_ht" integer, +"winner_id" integer, +"winner_ioc" text, +"winner_name" text, +"winner_rank" integer, +"winner_rank_points" integer, +"winner_seed" integer, +"year" integer +); + +INSERT INTO matches VALUES (3, 4, 24.626967830300003, "", "r", 170, 201474, "pol", "agnieszka radwanska", 4, 5890, 3, 297, 82, "rr", "6-2 6-4", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 32.0684462697, "", "r", 175, 200033, "usa", "serena williams", 1, 12040, 1, 2013); +INSERT INTO matches VALUES (3, 4, 23.6221765914, "", "l", 183, 201520, "cze", "petra kvitova", 6, 4370, 5, 296, 72, "rr", "6-2 6-3", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 32.0684462697, "", "r", 175, 200033, "usa", "serena williams", 1, 12040, 1, 2013); +INSERT INTO matches VALUES (3, 4, 25.7577002053, "", "l", 173, 201493, "ger", "angelique kerber", 9, 3715, 8, 295, 64, "rr", "6-3 6-1", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 32.0684462697, "", "r", 175, 200033, "usa", "serena williams", 1, 12040, 1, 2013); +INSERT INTO matches VALUES (3, 4, 24.626967830300003, "", "r", 170, 201474, "pol", "agnieszka radwanska", 4, 5890, 3, 294, 84, "rr", "6-4 6-4", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 23.6221765914, "", "l", 183, 201520, "cze", "petra kvitova", 6, 4370, 5, 2013); +INSERT INTO matches VALUES (3, 4, 24.626967830300003, "", "r", 170, 201474, "pol", "agnieszka radwanska", 4, 5890, 3, 293, 58, "rr", "6-2 6-2", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 25.7577002053, "", "l", 173, 201493, "ger", "angelique kerber", 9, 3715, 8, 2013); +INSERT INTO matches VALUES (3, 4, 25.7577002053, "", "l", 173, 201493, "ger", "angelique kerber", 9, 3715, 8, 292, 127, "rr", "6-73 6-2 6-3", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 23.6221765914, "", "l", 183, 201520, "cze", "petra kvitova", 6, 4370, 5, 2013); +INSERT INTO matches VALUES (3, 4, 24.2245037645, "", "r", 180, 201458, "blr", "victoria azarenka", 2, 7676, 2, 291, 77, "rr", "6-2 6-1", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 31.6495550992, "", "r", 172, 201419, "chn", "na li", 5, 5120, 4, 2013); +INSERT INTO matches VALUES (3, 4, 26.4804928131, "", "r", 164, 201506, "ita", "sara errani", 7, 4190, 6, 290, 134, "rr", "7-64 6-2", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 24.2245037645, "", "r", 180, 201458, "blr", "victoria azarenka", 2, 7676, 2, 2013); +INSERT INTO matches VALUES (3, 4, 24.2245037645, "", "r", 180, 201458, "blr", "victoria azarenka", 2, 7676, 2, 289, 109, "rr", "6-4 6-3", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 28.643394935, "", "r", 177, 201347, "srb", "jelena jankovic", 8, 3860, 7, 2013); +INSERT INTO matches VALUES (3, 4, 26.4804928131, "", "r", 164, 201506, "ita", "sara errani", 7, 4190, 6, 288, 105, "rr", "6-3 7-65", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 31.6495550992, "", "r", 172, 201419, "chn", "na li", 5, 5120, 4, 2013); +INSERT INTO matches VALUES (3, 4, 28.643394935, "", "r", 177, 201347, "srb", "jelena jankovic", 8, 3860, 7, 287, 131, "rr", "6-3 2-6 6-3", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 31.6495550992, "", "r", 172, 201419, "chn", "na li", 5, 5120, 4, 2013); +INSERT INTO matches VALUES (3, 4, 28.643394935, "", "r", 177, 201347, "srb", "jelena jankovic", 8, 3860, 7, 286, 101, "rr", "6-4 6-4", "hard", 20131021, "2013-w-wt-tur-01a-2013", "w", "wta championships", 26.4804928131, "", "r", 164, 201506, "ita", "sara errani", 7, 4190, 6, 2013); +INSERT INTO matches VALUES (3, 32, 25.4839151266, "", "r", 177, 201496, "den", "caroline wozniacki", 17, 2641, 3, 298, 100, "sf", "6-2 7-63", "hard", 20160104, "2016-1049", "i", "auckland", 22.7926078029, "", "r", 170, 201585, "usa", "sloane stephens", 30, 1715, 5, 2016); +INSERT INTO matches VALUES (3, 32, 27.3347022587, "", "r", 162, 201521, "esp", "carla suarez navarro", 13, 3090, 6, 298, 75, "sf", "6-2 6-3", "hard", 20160104, "2016-m020", "i", "brisbane", 27.961670089000002, "", "l", 173, 201493, "ger", "angelique kerber", 10, 3590, 4, 2016); +INSERT INTO matches VALUES (3, 32, 25.503080082100002, "", "r", 185, 201621, "ger", "mona barthel", 45, 1135, 9, 297, 0, "qf", "w/o", "hard", 20160111, "2016-1050", "i", "hobart", 25.968514715900003, "", "r", 173, 201427, "fra", "alize cornet", 42, 1180, 7, 2016); +INSERT INTO matches VALUES (3, 32, 23.808350444899997, "", "r", 184, 201662, "cze", "karolina pliskova", 11, 3285, 5, 300, 98, "qf", "6-4 7-5", "hard", 20160111, "2016-m001", "i", "sydney", 24.2902121834, "", "r", 168, 201594, "rou", "simona halep", 2, 5880, 1, 2016); +INSERT INTO matches VALUES (3, 128, 23.8275154004, "", "r", 184, 201662, "cze", "karolina pliskova", 12, 3090, 9, 209, 70, "r32", "6-3 6-2", "hard", 20160118, "2016-580", "g", "australian open", 27.613963039, "", "l", 178, 201505, "rus", "ekaterina makarova", 24, 2300, 21, 2016); +INSERT INTO matches VALUES (3, 128, 28.1998631075, "", "r", 183, 201421, "srb", "ana ivanovic", 23, 2341, 20, 210, 145, "r32", "4-6 6-4 6-4", "hard", 20160118, "2016-580", "g", "australian open", 20.917180013699998, "", "r", 178, 201619, "usa", "madison keys", 17, 2600, 15, 2016); +INSERT INTO matches VALUES (3, 128, 27.373032169699997, "", "r", 162, 201521, "esp", "carla suarez navarro", 11, 3175, 10, 221, 82, "qf", "6-1 6-3", "hard", 20160118, "2016-580", "g", "australian open", 26.869267624899997, "", "r", 170, 201474, "pol", "agnieszka radwanska", 4, 4670, 4, 2016); +INSERT INTO matches VALUES (3, 128, 26.466803559200002, "", "r", 180, 201458, "blr", "victoria azarenka", 16, 2745, 14, 222, 105, "qf", "6-3 7-5", "hard", 20160118, "2016-580", "g", "australian open", 28.0, "", "l", 173, 201493, "ger", "angelique kerber", 6, 3710, 7, 2016); +INSERT INTO matches VALUES (3, 128, 26.869267624899997, "", "r", 170, 201474, "pol", "agnieszka radwanska", 4, 4670, 4, 224, 64, "sf", "6-0 6-4", "hard", 20160118, "2016-580", "g", "australian open", 34.3107460643, "", "r", 175, 200033, "usa", "serena williams", 1, 9945, 1, 2016); +INSERT INTO matches VALUES (3, 128, 34.3107460643, "", "r", 175, 200033, "usa", "serena williams", 1, 9945, 1, 226, 128, "f", "6-4 3-6 6-4", "hard", 20160118, "2016-580", "g", "australian open", 28.0, "", "l", 173, 201493, "ger", "angelique kerber", 6, 3710, 7, 2016); +INSERT INTO matches VALUES (3, 32, 24.7802874743, "", "l", 159, 201595, "jpn", "misaki doi", 61, 912, 2, 300, 86, "f", "6-4 6-2", "hard", 20160208, "2016-1087", "i", "kaohsiung", 35.6440793977, "", "r", 185, 200748, "usa", "venus williams", 12, 3091, 1, 2016); +INSERT INTO matches VALUES (3, 32, 30.0944558522, "", "r", 169, 201444, "tpe", "su wei hsieh", 81, 785, 6, 298, 54, "sf", "6-0 6-2", "hard", 20160208, "2016-1087", "i", "kaohsiung", 24.7802874743, "", "l", 159, 201595, "jpn", "misaki doi", 61, 912, 2, 2016); +INSERT INTO matches VALUES (3, 32, 28.257357974, "", "r", 183, 201421, "srb", "ana ivanovic", 20, 2461, 4, 298, 78, "sf", "7-5 6-4", "hard", 20160208, "2016-1086", "i", "st. petersburg", 32.9719370294, "", "r", 163, 201311, "ita", "roberta vinci", 16, 2885, 2, 2016); +INSERT INTO matches VALUES (3, 32, 26.340862423, "", "r", 182, 201518, "bel", "yanina wickmayer", 52, 1026, 8, 298, 54, "sf", "6-2 6-0", "hard", 20160222, "2016-m004", "i", "acapulco", 22.926762491399998, "", "r", 170, 201585, "usa", "sloane stephens", 24, 1965, 2, 2016); +INSERT INTO matches VALUES (3, 32, 24.6406570842, "", "r", 177, 201499, "rus", "anastasia pavlyuchenkova", 25, 1920, 3, 295, 78, "qf", "6-3 7-63", "hard", 20160222, "2016-m004", "i", "acapulco", 26.340862423, "", "r", 182, 201518, "bel", "yanina wickmayer", 52, 1026, 8, 2016); +INSERT INTO matches VALUES (3, 64, 26.9650924025, "", "r", 170, 201474, "pol", "agnieszka radwanska", 3, 5210, 3, 298, 62, "sf", "6-2 6-0", "hard", 20160222, "2016-1003", "i", "doha", 27.4688569473, "", "r", 162, 201521, "esp", "carla suarez navarro", 11, 3300, 8, 2016); +INSERT INTO matches VALUES (3, 64, 33.0102669405, "", "r", 163, 201311, "ita", "roberta vinci", 10, 3325, 9, 295, 111, "qf", "3-6 6-2 6-3", "hard", 20160222, "2016-1003", "i", "doha", 26.9650924025, "", "r", 170, 201474, "pol", "agnieszka radwanska", 3, 5210, 3, 2016); +INSERT INTO matches VALUES (3, 128, 34.4449007529, "", "r", 175, 200033, "usa", "serena williams", 1, 9245, 1, 300, 88, "f", "6-4 6-4", "hard", 20160307, "2016-m006", "p", "indian wells", 26.6009582478, "", "r", 180, 201458, "blr", "victoria azarenka", 15, 2660, 13, 2016); +INSERT INTO matches VALUES (3, 128, 27.0034223135, "", "r", 170, 201474, "pol", "agnieszka radwanska", 3, 5450, 3, 299, 95, "sf", "6-4 7-61", "hard", 20160307, "2016-m006", "p", "indian wells", 34.4449007529, "", "r", 175, 200033, "usa", "serena williams", 1, 9245, 1, 2016); +INSERT INTO matches VALUES (3, 128, 23.961670089000002, "", "r", 184, 201662, "cze", "karolina pliskova", 19, 2525, 18, 298, 125, "sf", "7-61 1-6 6-2", "hard", 20160307, "2016-m006", "p", "indian wells", 26.6009582478, "", "r", 180, 201458, "blr", "victoria azarenka", 15, 2660, 13, 2016); +INSERT INTO matches VALUES (3, 128, 24.4435318275, "", "r", 168, 201594, "rou", "simona halep", 5, 4745, 5, 297, 68, "qf", "6-4 6-3", "hard", 20160307, "2016-m006", "p", "indian wells", 34.4449007529, "", "r", 175, 200033, "usa", "serena williams", 1, 9245, 1, 2016); +INSERT INTO matches VALUES (3, 128, 25.9986310746, "", "l", 183, 201520, "cze", "petra kvitova", 9, 3483, 8, 296, 95, "qf", "6-2 7-63", "hard", 20160307, "2016-m006", "p", "indian wells", 27.0034223135, "", "r", 170, 201474, "pol", "agnieszka radwanska", 3, 5450, 3, 2016); +INSERT INTO matches VALUES (3, 128, 31.019849418200003, "", "r", 177, 201347, "srb", "jelena jankovic", 20, 2505, 19, 291, 81, "r16", "6-3 6-3", "hard", 20160307, "2016-m006", "p", "indian wells", 27.0034223135, "", "r", 170, 201474, "pol", "agnieszka radwanska", 3, 5450, 3, 2016); +INSERT INTO matches VALUES (3, 128, 31.9370294319, "", "r", 172, 201325, "aus", "samantha stosur", 28, 1845, 26, 288, 118, "r16", "6-1 4-6 6-1", "hard", 20160307, "2016-m006", "p", "indian wells", 26.6009582478, "", "r", 180, 201458, "blr", "victoria azarenka", 15, 2660, 13, 2016); +INSERT INTO matches VALUES (3, 128, 27.748117727600004, "", "l", 178, 201505, "rus", "ekaterina makarova", 32, 1571, 30, 282, 64, "r32", "6-2 6-4", "hard", 20160307, "2016-m006", "p", "indian wells", 24.4435318275, "", "r", 168, 201594, "rou", "simona halep", 5, 4745, 5, 2016); +INSERT INTO matches VALUES (3, 128, 28.449007529099998, "", "r", 168, 201512, "rou", "monica niculescu", 34, 1380, 32, 281, 87, "r32", "6-2 6-1", "hard", 20160307, "2016-m006", "p", "indian wells", 27.0034223135, "", "r", 170, 201474, "pol", "agnieszka radwanska", 3, 5450, 3, 2016); +INSERT INTO matches VALUES (3, 128, 21.4839151266, "", "r", 174, 202494, "ukr", "elina svitolina", 14, 2750, 17, 276, 61, "r32", "6-1 6-3", "hard", 20160307, "2016-m006", "p", "indian wells", 33.0485968515, "", "r", 163, 201311, "ita", "roberta vinci", 10, 3455, 9, 2016); +INSERT INTO matches VALUES (3, 128, 28.334017795999998, "", "r", 183, 201421, "srb", "ana ivanovic", 18, 2531, 14, 271, 49, "r32", "6-2 6-0", "hard", 20160307, "2016-m006", "p", "indian wells", 23.961670089000002, "", "r", 184, 201662, "cze", "karolina pliskova", 19, 2525, 18, 2016); +INSERT INTO matches VALUES (3, 128, 30.7323750856, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 19, 2480, 15, 300, 77, "f", "6-3 6-2", "hard", 20160321, "2016-m007", "p", "miami", 26.6392881588, "", "r", 180, 201458, "blr", "victoria azarenka", 8, 3595, 13, 2016); +INSERT INTO matches VALUES (3, 128, 28.1724845996, "", "l", 173, 201493, "ger", "angelique kerber", 3, 5700, 2, 298, 93, "sf", "6-2 7-5", "hard", 20160321, "2016-m007", "p", "miami", 26.6392881588, "", "r", 180, 201458, "blr", "victoria azarenka", 8, 3595, 13, 2016); +INSERT INTO matches VALUES (3, 128, 27.786447638600002, "", "l", 178, 201505, "rus", "ekaterina makarova", 31, 1571, 30, 297, 163, "qf", "6-73 6-4 6-3", "hard", 20160321, "2016-m007", "p", "miami", 30.7323750856, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 19, 2480, 15, 2016); +INSERT INTO matches VALUES (3, 128, 21.0896646133, "", "r", 178, 201619, "usa", "madison keys", 24, 2005, 22, 294, 68, "qf", "6-3 6-2", "hard", 20160321, "2016-m007", "p", "miami", 28.1724845996, "", "l", 173, 201493, "ger", "angelique kerber", 3, 5700, 2, 2016); +INSERT INTO matches VALUES (3, 128, 34.483230663899995, "", "r", 175, 200033, "usa", "serena williams", 1, 9505, 1, 293, 122, "r16", "6-73 6-1 6-2", "hard", 20160321, "2016-m007", "p", "miami", 30.7323750856, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 19, 2480, 15, 2016); +INSERT INTO matches VALUES (3, 128, 21.5222450376, "", "r", 174, 202494, "ukr", "elina svitolina", 16, 2695, 12, 292, 67, "r16", "6-1 6-4", "hard", 20160321, "2016-m007", "p", "miami", 27.786447638600002, "", "l", 178, 201505, "rus", "ekaterina makarova", 31, 1571, 30, 2016); +INSERT INTO matches VALUES (3, 128, 22.4503764545, "", "r", 182, 202469, "esp", "garbine muguruza", 4, 4776, 4, 288, 131, "r16", "7-66 7-64", "hard", 20160321, "2016-m007", "p", "miami", 26.6392881588, "", "r", 180, 201458, "blr", "victoria azarenka", 8, 3595, 13, 2016); +INSERT INTO matches VALUES (3, 128, 25.6947296372, "", "r", 177, 201496, "den", "caroline wozniacki", 25, 1991, 23, 283, 162, "r32", "5-7 6-4 7-61", "hard", 20160321, "2016-m007", "p", "miami", 21.5222450376, "", "r", 174, 202494, "ukr", "elina svitolina", 16, 2695, 12, 2016); +INSERT INTO matches VALUES (3, 128, 26.0369609856, "", "l", 183, 201520, "cze", "petra kvitova", 7, 3698, 8, 282, 90, "r32", "6-4 6-4", "hard", 20160321, "2016-m007", "p", "miami", 27.786447638600002, "", "l", 178, 201505, "rus", "ekaterina makarova", 31, 1571, 30, 2016); +INSERT INTO matches VALUES (3, 128, 33.0869267625, "", "r", 163, 201311, "ita", "roberta vinci", 9, 3540, 9, 272, 85, "r32", "6-4 6-4", "hard", 20160321, "2016-m007", "p", "miami", 21.0896646133, "", "r", 178, 201619, "usa", "madison keys", 24, 2005, 22, 2016); +INSERT INTO matches VALUES (3, 64, 28.2108145106, "", "l", 173, 201493, "ger", "angelique kerber", 2, 6025, 1, 299, 40, "sf", "6-1 3-0 ret", "clay", 20160404, "2016-0804", "i", "charleston", 23.041752224499998, "", "r", 170, 201585, "usa", "sloane stephens", 25, 1900, 7, 2016); +INSERT INTO matches VALUES (3, 64, 32.0136892539, "", "r", 172, 201325, "aus", "samantha stosur", 26, 1845, 10, 289, 102, "r16", "6-4 7-65", "clay", 20160404, "2016-0804", "i", "charleston", 28.9336071184, "", "r", 164, 201506, "ita", "sara errani", 20, 2420, 5, 2016); +INSERT INTO matches VALUES (3, 32, 24.2628336756, "", "r", 168, 202429, "ita", "camila giorgi", 48, 1145, 5, 300, 74, "f", "6-4 6-0", "hard", 20160404, "2016-1067", "i", "katowice", 26.9130732375, "", "r", 161, 201495, "svk", "dominika cibulkova", 53, 1076, 8, 2016); +INSERT INTO matches VALUES (3, 32, 30.2313483915, "", "r", 165, 201465, "bel", "kirsten flipkens", 59, 1015, 9, 296, 129, "qf", "6-2 5-7 6-4", "hard", 20160404, "2016-1067", "i", "katowice", 24.2628336756, "", "r", 168, 202429, "ita", "camila giorgi", 48, 1145, 5, 2016); +INSERT INTO matches VALUES (3, 32, 26.1136208077, "", "l", 183, 201520, "cze", "petra kvitova", 7, 3763, 5, 298, 123, "sf", "6-4 4-6 6-2", "clay", 20160418, "2016-1051", "i", "stuttgart", 28.249144421599997, "", "l", 173, 201493, "ger", "angelique kerber", 3, 5740, 2, 2016); +INSERT INTO matches VALUES (3, 32, 22.527036276500002, "", "r", 182, 202469, "esp", "garbine muguruza", 4, 4831, 3, 295, 99, "qf", "6-1 3-6 6-0", "clay", 20160418, "2016-1051", "i", "stuttgart", 26.1136208077, "", "l", 183, 201520, "cze", "petra kvitova", 7, 3763, 5, 2016); +INSERT INTO matches VALUES (3, 32, 27.6221765914, "", "r", 162, 201521, "esp", "carla suarez navarro", 11, 3160, 7, 294, 72, "qf", "6-2 6-4", "clay", 20160418, "2016-1051", "i", "stuttgart", 28.249144421599997, "", "l", 173, 201493, "ger", "angelique kerber", 3, 5740, 2, 2016); +INSERT INTO matches VALUES (3, 32, 32.0711841205, "", "r", 172, 201325, "aus", "samantha stosur", 25, 1870, 4, 300, 118, "f", "3-6 6-1 6-4", "clay", 20160425, "2016-1082", "i", "prague", 29.2210814511, "", "l", 177, 201425, "cze", "lucie safarova", 16, 2714, 2, 2016); +INSERT INTO matches VALUES (3, 32, 30.8281998631, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 13, 3010, 1, 299, 0, "sf", "w/o", "clay", 20160425, "2016-1082", "i", "prague", 32.0711841205, "", "r", 172, 201325, "aus", "samantha stosur", 25, 1870, 4, 2016); +INSERT INTO matches VALUES (3, 32, 24.0958247775, "", "r", 184, 201662, "cze", "karolina pliskova", 18, 2590, 3, 298, 99, "sf", "6-4 7-64", "clay", 20160425, "2016-1082", "i", "prague", 29.2210814511, "", "l", 177, 201425, "cze", "lucie safarova", 16, 2714, 2, 2016); +INSERT INTO matches VALUES (3, 32, 30.078028747399998, "", "r", 164, 201366, "cze", "barbora zahlavova strycova", 33, 1440, 5, 296, 175, "qf", "6-3 6-73 7-64", "clay", 20160425, "2016-1082", "i", "prague", 32.0711841205, "", "r", 172, 201325, "aus", "samantha stosur", 25, 1870, 4, 2016); +INSERT INTO matches VALUES (3, 64, 30.866529774099998, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 19, 2450, 9, 297, 51, "qf", "6-2 6-0", "clay", 20160509, "2016-m009", "p", "rome", 34.6173853525, "", "r", 175, 200033, "usa", "serena williams", 1, 8235, 1, 2016); +INSERT INTO matches VALUES (3, 128, 23.0253251198, "", "r", 184, 201540, "fra", "kristina mladenovic", 30, 1550, 26, 196, 131, "r32", "6-4 7-610", "clay", 20160523, "2016-520", "g", "french open", 34.6557152635, "", "r", 175, 200033, "usa", "serena williams", 1, 9030, 1, 2016); +INSERT INTO matches VALUES (3, 128, 28.5448323066, "", "r", 183, 201421, "srb", "ana ivanovic", 16, 2560, 14, 197, 78, "r32", "6-4 6-4", "clay", 20160523, "2016-520", "g", "french open", 21.6947296372, "", "r", 174, 202494, "ukr", "elina svitolina", 20, 2416, 18, 2016); +INSERT INTO matches VALUES (3, 128, 27.0472279261, "", "r", 161, 201495, "svk", "dominika cibulkova", 25, 1951, 22, 198, 161, "r32", "6-4 3-6 6-1", "clay", 20160523, "2016-520", "g", "french open", 27.718001368899998, "", "r", 162, 201521, "esp", "carla suarez navarro", 14, 2585, 12, 2016); +INSERT INTO matches VALUES (3, 128, 24.889801505799998, "", "r", 177, 201499, "rus", "anastasia pavlyuchenkova", 27, 1840, 24, 206, 72, "r32", "6-1 6-4", "clay", 20160523, "2016-520", "g", "french open", 30.904859685100003, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 15, 2585, 13, 2016); +INSERT INTO matches VALUES (3, 128, 29.297741273099998, "", "l", 177, 201425, "cze", "lucie safarova", 13, 2843, 11, 209, 142, "r32", "6-3 6-70 7-5", "clay", 20160523, "2016-520", "g", "french open", 32.1478439425, "", "r", 172, 201325, "aus", "samantha stosur", 24, 2050, 21, 2016); +INSERT INTO matches VALUES (3, 128, 30.1546885695, "", "r", 164, 201366, "cze", "barbora zahlavova strycova", 33, 1520, 30, 211, 149, "r32", "6-2 6-76 6-2", "clay", 20160523, "2016-520", "g", "french open", 27.2142368241, "", "r", 170, 201474, "pol", "agnieszka radwanska", 2, 5850, 2, 2016); +INSERT INTO matches VALUES (3, 128, 21.6947296372, "", "r", 174, 202494, "ukr", "elina svitolina", 20, 2416, 18, 212, 62, "r16", "6-1 6-1", "clay", 20160523, "2016-520", "g", "french open", 34.6557152635, "", "r", 175, 200033, "usa", "serena williams", 1, 9030, 1, 2016); +INSERT INTO matches VALUES (3, 128, 30.904859685100003, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 15, 2585, 13, 217, 98, "r16", "6-3 6-4", "clay", 20160523, "2016-520", "g", "french open", 22.6228610541, "", "r", 182, 202469, "esp", "garbine muguruza", 4, 5196, 4, 2016); +INSERT INTO matches VALUES (3, 128, 24.654346338099998, "", "r", 168, 201594, "rou", "simona halep", 6, 4301, 6, 218, 83, "r16", "7-60 6-3", "clay", 20160523, "2016-520", "g", "french open", 32.1478439425, "", "r", 172, 201325, "aus", "samantha stosur", 24, 2050, 21, 2016); +INSERT INTO matches VALUES (3, 128, 32.1478439425, "", "r", 172, 201325, "aus", "samantha stosur", 24, 2050, 21, 225, 76, "sf", "6-2 6-4", "clay", 20160523, "2016-520", "g", "french open", 22.6228610541, "", "r", 182, 202469, "esp", "garbine muguruza", 4, 5196, 4, 2016); +INSERT INTO matches VALUES (3, 128, 34.6557152635, "", "r", 175, 200033, "usa", "serena williams", 1, 9030, 1, 226, 103, "f", "7-5 6-4", "clay", 20160523, "2016-520", "g", "french open", 22.6228610541, "", "r", 182, 202469, "esp", "garbine muguruza", 4, 5196, 4, 2016); +INSERT INTO matches VALUES (3, 32, 23.0636550308, "", "r", 184, 201540, "fra", "kristina mladenovic", 32, 1550, 3, 300, 89, "f", "7-5 7-5", "grass", 20160606, "2016-m010", "i", "s-hertogenbosch", 24.501026694, "", "r", 185, 201535, "usa", "coco vandeweghe", 43, 1302, 6, 2016); +INSERT INTO matches VALUES (3, 32, 27.7754962355, "", "r", 162, 201521, "esp", "carla suarez navarro", 15, 2695, 6, 298, 101, "sf", "3-6 6-3 7-63", "grass", 20160613, "2016-1052", "i", "birmingham", 21.3196440794, "", "r", 178, 201619, "usa", "madison keys", 16, 2592, 7, 2016); +INSERT INTO matches VALUES (3, 32, 28.402464065700002, "", "l", 173, 201493, "ger", "angelique kerber", 4, 5620, 2, 294, 119, "qf", "6-4 1-6 7-5", "grass", 20160613, "2016-1052", "i", "birmingham", 27.7754962355, "", "r", 162, 201521, "esp", "carla suarez navarro", 15, 2695, 6, 2016); +INSERT INTO matches VALUES (3, 64, 24.249144421599997, "", "r", 184, 201662, "cze", "karolina pliskova", 17, 2335, 10, 300, 100, "f", "7-5 6-3", "grass", 20160620, "2016-0710", "i", "eastbourne", 27.1238877481, "", "r", 161, 201495, "svk", "dominika cibulkova", 21, 2081, 12, 2016); +INSERT INTO matches VALUES (3, 64, 27.290896646100002, "", "r", 170, 201474, "pol", "agnieszka radwanska", 3, 6080, 1, 297, 184, "qf", "4-6 7-62 6-3", "grass", 20160620, "2016-0710", "i", "eastbourne", 27.1238877481, "", "r", 161, 201495, "svk", "dominika cibulkova", 21, 2081, 12, 2016); +INSERT INTO matches VALUES (3, 128, 23.2717316906, "", "r", 170, 201585, "usa", "sloane stephens", 22, 1995, 18, 197, 148, "r32", "6-71 6-2 8-6", "grass", 20160627, "2016-540", "g", "wimbledon", 31.0006844627, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 14, 2730, 13, 2016); +INSERT INTO matches VALUES (3, 128, 33.3552361396, "", "r", 163, 201311, "ita", "roberta vinci", 7, 3405, 6, 199, 66, "r32", "6-3 6-4", "grass", 20160627, "2016-540", "g", "wimbledon", 24.5585215606, "", "r", 185, 201535, "usa", "coco vandeweghe", 30, 1652, 27, 2016); +INSERT INTO matches VALUES (3, 128, 24.5475701574, "", "r", 182, 202428, "ned", "kiki bertens", 28, 1729, 26, 204, 68, "r32", "6-4 6-3", "grass", 20160627, "2016-540", "g", "wimbledon", 24.750171115700002, "", "r", 168, 201594, "rou", "simona halep", 5, 4372, 5, 2016); +INSERT INTO matches VALUES (3, 128, 31.0006844627, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 14, 2730, 13, 212, 75, "r16", "7-5 6-0", "grass", 20160627, "2016-540", "g", "wimbledon", 34.7515400411, "", "r", 175, 200033, "usa", "serena williams", 1, 8330, 1, 2016); +INSERT INTO matches VALUES (3, 128, 24.5585215606, "", "r", 185, 201535, "usa", "coco vandeweghe", 30, 1652, 27, 213, 71, "r16", "6-3 6-3", "grass", 20160627, "2016-540", "g", "wimbledon", 24.985626283400002, "", "r", 177, 201499, "rus", "anastasia pavlyuchenkova", 23, 1960, 21, 2016); +INSERT INTO matches VALUES (3, 128, 27.310061601599998, "", "r", 170, 201474, "pol", "agnieszka radwanska", 3, 5875, 3, 214, 179, "r16", "6-3 5-7 9-7", "grass", 20160627, "2016-540", "g", "wimbledon", 27.143052703600002, "", "r", 161, 201495, "svk", "dominika cibulkova", 18, 2451, 19, 2016); +INSERT INTO matches VALUES (3, 128, 21.357973990399998, "", "r", 178, 201619, "usa", "madison keys", 9, 3061, 9, 216, 115, "r16", "6-75 6-4 6-3", "grass", 20160627, "2016-540", "g", "wimbledon", 24.750171115700002, "", "r", 168, 201594, "rou", "simona halep", 5, 4372, 5, 2016); +INSERT INTO matches VALUES (3, 128, 27.813826146500002, "", "r", 162, 201521, "esp", "carla suarez navarro", 12, 2780, 12, 218, 95, "r16", "7-63 6-4", "grass", 20160627, "2016-540", "g", "wimbledon", 36.027378507899996, "", "r", 185, 200748, "usa", "venus williams", 8, 3116, 8, 2016); +INSERT INTO matches VALUES (3, 128, 24.985626283400002, "", "r", 177, 201499, "rus", "anastasia pavlyuchenkova", 23, 1960, 21, 220, 72, "qf", "6-4 6-4", "grass", 20160627, "2016-540", "g", "wimbledon", 34.7515400411, "", "r", 175, 200033, "usa", "serena williams", 1, 8330, 1, 2016); +INSERT INTO matches VALUES (3, 128, 24.750171115700002, "", "r", 168, 201594, "rou", "simona halep", 5, 4372, 5, 222, 90, "qf", "7-5 7-62", "grass", 20160627, "2016-540", "g", "wimbledon", 28.4407939767, "", "l", 173, 201493, "ger", "angelique kerber", 4, 5330, 4, 2016); +INSERT INTO matches VALUES (3, 128, 36.027378507899996, "", "r", 185, 200748, "usa", "venus williams", 8, 3116, 8, 225, 71, "sf", "6-4 6-4", "grass", 20160627, "2016-540", "g", "wimbledon", 28.4407939767, "", "l", 173, 201493, "ger", "angelique kerber", 4, 5330, 4, 2016); +INSERT INTO matches VALUES (3, 128, 28.4407939767, "", "l", 173, 201493, "ger", "angelique kerber", 4, 5330, 4, 226, 81, "f", "7-5 6-3", "grass", 20160627, "2016-540", "g", "wimbledon", 34.7515400411, "", "r", 175, 200033, "usa", "serena williams", 1, 8330, 1, 2016); +INSERT INTO matches VALUES (3, 32, 22.417522245, "", "r", 170, 202470, "ger", "annika beck", 37, 1455, 4, 295, 80, "qf", "7-5 6-1", "clay", 20160718, "2016-1048", "i", "bastad", 27.9178644764, "", "r", 174, 201596, "swe", "johanna larsson", 82, 845, 8, 2016); +INSERT INTO matches VALUES (3, 32, 25.2210814511, "", "l", 159, 201595, "jpn", "misaki doi", 36, 1460, 5, 294, 79, "qf", "7-5 6-0", "hard", 20160718, "2016-0703", "i", "stanford", 27.2005475702, "", "r", 161, 201495, "svk", "dominika cibulkova", 12, 2871, 2, 2016); +INSERT INTO matches VALUES (3, 64, 23.1786447639, "", "r", 184, 201540, "fra", "kristina mladenovic", 34, 1465, 4, 295, 131, "qf", "4-6 6-3 6-4", "hard", 20160718, "2016-m035", "i", "washington", 26.7433264887, "", "r", 182, 201518, "bel", "yanina wickmayer", 44, 1255, 7, 2016); +INSERT INTO matches VALUES (3, 64, 21.4346338125, "", "r", 178, 201619, "usa", "madison keys", 12, 2871, 10, 300, 75, "f", "7-62 6-3", "hard", 20160725, "2016-0806", "i", "montreal", 24.8268309377, "", "r", 168, 201594, "rou", "simona halep", 5, 5071, 5, 2016); +INSERT INTO matches VALUES (3, 64, 28.517453798800002, "", "l", 173, 201493, "ger", "angelique kerber", 2, 6500, 2, 298, 98, "sf", "6-0 3-6 6-2", "hard", 20160725, "2016-0806", "i", "montreal", 24.8268309377, "", "r", 168, 201594, "rou", "simona halep", 5, 5071, 5, 2016); +INSERT INTO matches VALUES (3, 64, 25.0622861054, "", "r", 177, 201499, "rus", "anastasia pavlyuchenkova", 19, 2320, 16, 296, 100, "qf", "7-63 1-6 6-0", "hard", 20160725, "2016-0806", "i", "montreal", 21.4346338125, "", "r", 178, 201619, "usa", "madison keys", 12, 2871, 10, 2016); +INSERT INTO matches VALUES (3, 64, 31.077344284699997, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 11, 2900, 9, 295, 96, "qf", "3-6 6-1 6-1", "hard", 20160725, "2016-0806", "i", "montreal", 24.8268309377, "", "r", 168, 201594, "rou", "simona halep", 5, 5071, 5, 2016); +INSERT INTO matches VALUES (3, 64, 27.3867214237, "", "r", 170, 201474, "pol", "agnieszka radwanska", 4, 5335, 4, 291, 128, "r16", "6-4 6-74 6-1", "hard", 20160725, "2016-0806", "i", "montreal", 25.0622861054, "", "r", 177, 201499, "rus", "anastasia pavlyuchenkova", 19, 2320, 16, 2016); +INSERT INTO matches VALUES (3, 64, 36.1040383299, "", "r", 185, 200748, "usa", "venus williams", 6, 3960, 6, 290, 110, "r16", "6-1 6-72 6-3", "hard", 20160725, "2016-0806", "i", "montreal", 21.4346338125, "", "r", 178, 201619, "usa", "madison keys", 12, 2871, 10, 2016); +INSERT INTO matches VALUES (3, 64, 26.3819301848, "", "l", 183, 201520, "cze", "petra kvitova", 13, 2816, 12, 289, 104, "r16", "7-62 6-3", "hard", 20160725, "2016-0806", "i", "montreal", 31.077344284699997, "", "r", 174, 201320, "rus", "svetlana kuznetsova", 11, 2900, 9, 2016); + +CREATE TABLE "rankings" ( +"ranking_date" integer, +"ranking" integer, +"player_id" integer, +"ranking_points" integer, +"tours" integer +); + +INSERT INTO rankings VALUES (20000101, 3, 200748, 4378, 13); +INSERT INTO rankings VALUES (20000101, 4, 200033, 3021, 15); +INSERT INTO rankings VALUES (20000101, 28, 200020, 960, 0); +INSERT INTO rankings VALUES (20000101, 31, 200124, 834, 8); +INSERT INTO rankings VALUES (20000101, 43, 200120, 698, 6); +INSERT INTO rankings VALUES (20000101, 44, 200117, 671, 0); +INSERT INTO rankings VALUES (20000101, 45, 200083, 669, 16); +INSERT INTO rankings VALUES (20000101, 48, 200002, 640, 27); +INSERT INTO rankings VALUES (20000101, 50, 200072, 629, 0); +INSERT INTO rankings VALUES (20000101, 56, 200036, 548, 0); +INSERT INTO rankings VALUES (20000101, 66, 200011, 471, 0); +INSERT INTO rankings VALUES (20000101, 71, 200009, 439, 16); +INSERT INTO rankings VALUES (20000101, 72, 200107, 421, 0); +INSERT INTO rankings VALUES (20000101, 88, 200012, 338, 1); +INSERT INTO rankings VALUES (20000101, 93, 200069, 319, 23); +INSERT INTO rankings VALUES (20000101, 926, 201325, 2, 23); +INSERT INTO rankings VALUES (20000101, 930, 201564, 2, 0); +INSERT INTO rankings VALUES (20000101, 969, 201294, 2, 25); +INSERT INTO rankings VALUES (20000101, 976, 202522, 2, 2); +INSERT INTO rankings VALUES (20000101, 996, 201367, 1, 21); +INSERT INTO rankings VALUES (20000101, 137, 200765, 196, 7); +INSERT INTO rankings VALUES (20000101, 173, 200773, 136, 26); +INSERT INTO rankings VALUES (20000101, 175, 200754, 133, 27); +INSERT INTO rankings VALUES (20000101, 180, 201815, 128, 27); +INSERT INTO rankings VALUES (20000101, 189, 201452, 122, 24); +INSERT INTO rankings VALUES (20000101, 197, 201290, 112, 24); +INSERT INTO rankings VALUES (20000101, 200, 201212, 109, 23); +INSERT INTO rankings VALUES (20000101, 216, 200697, 97, 1); +INSERT INTO rankings VALUES (20000101, 232, 201293, 87, 22); +INSERT INTO rankings VALUES (20000101, 234, 201291, 86, 0); +INSERT INTO rankings VALUES (20000101, 246, 201211, 79, 0); +INSERT INTO rankings VALUES (20000101, 248, 201355, 78, 16); +INSERT INTO rankings VALUES (20000101, 255, 202135, 77, 1); +INSERT INTO rankings VALUES (20000101, 256, 200744, 77, 1); +INSERT INTO rankings VALUES (20000101, 264, 201086, 72, 21); +INSERT INTO rankings VALUES (20000101, 285, 201429, 64, 17); +INSERT INTO rankings VALUES (20000101, 294, 201075, 60, 0); +INSERT INTO rankings VALUES (20000101, 307, 202306, 56, 14); +INSERT INTO rankings VALUES (20000101, 310, 201286, 54, 25); +INSERT INTO rankings VALUES (20000101, 311, 201647, 54, 0); +INSERT INTO rankings VALUES (20000101, 314, 201305, 53, 33); +INSERT INTO rankings VALUES (20000101, 321, 201353, 52, 0); +INSERT INTO rankings VALUES (20000101, 322, 201287, 51, 21); +INSERT INTO rankings VALUES (20000101, 323, 201370, 51, 26); +INSERT INTO rankings VALUES (20000101, 324, 201334, 51, 5); +INSERT INTO rankings VALUES (20000101, 327, 201419, 50, 18); +INSERT INTO rankings VALUES (20000101, 332, 200729, 49, 1); +INSERT INTO rankings VALUES (20000101, 344, 200043, 46, 19); +INSERT INTO rankings VALUES (20000101, 363, 201390, 40, 22); +INSERT INTO rankings VALUES (20000101, 365, 202987, 40, 0); +INSERT INTO rankings VALUES (20000101, 392, 200764, 32, 21); +INSERT INTO rankings VALUES (20000101, 406, 201655, 31, 28); +INSERT INTO rankings VALUES (20000101, 407, 201311, 30, 28); +INSERT INTO rankings VALUES (20000101, 414, 201077, 30, 0); +INSERT INTO rankings VALUES (20000101, 434, 201591, 27, 25); +INSERT INTO rankings VALUES (20000101, 440, 202085, 26, 0); +INSERT INTO rankings VALUES (20000101, 447, 201308, 24, 28); +INSERT INTO rankings VALUES (20000101, 478, 202290, 21, 0); +INSERT INTO rankings VALUES (20000101, 483, 201344, 21, 25); +INSERT INTO rankings VALUES (20000101, 499, 202389, 19, 3); +INSERT INTO rankings VALUES (20000101, 500, 201522, 19, 7); +INSERT INTO rankings VALUES (20000101, 508, 201708, 18, 5); +INSERT INTO rankings VALUES (20000101, 525, 201410, 17, 29); +INSERT INTO rankings VALUES (20000101, 540, 202574, 16, 5); +INSERT INTO rankings VALUES (20000101, 548, 201380, 15, 8); +INSERT INTO rankings VALUES (20000101, 557, 202349, 14, 2); +INSERT INTO rankings VALUES (20000101, 575, 201392, 13, 20); +INSERT INTO rankings VALUES (20000101, 611, 201383, 11, 26); +INSERT INTO rankings VALUES (20000101, 619, 202302, 11, 19); +INSERT INTO rankings VALUES (20000101, 624, 202280, 10, 0); +INSERT INTO rankings VALUES (20000101, 644, 201462, 9, 24); +INSERT INTO rankings VALUES (20000101, 691, 202297, 8, 0); +INSERT INTO rankings VALUES (20000101, 694, 201303, 7, 28); +INSERT INTO rankings VALUES (20000101, 710, 202575, 7, 8); +INSERT INTO rankings VALUES (20000101, 735, 202320, 6, 0); +INSERT INTO rankings VALUES (20000101, 767, 202273, 6, 3); +INSERT INTO rankings VALUES (20000101, 775, 201665, 5, 0); +INSERT INTO rankings VALUES (20000101, 857, 202417, 4, 16); +INSERT INTO rankings VALUES (20000101, 861, 201304, 4, 14); +INSERT INTO rankings VALUES (20000101, 870, 204524, 3, 0); +INSERT INTO rankings VALUES (20000103, 3, 200748, 4378, 13); +INSERT INTO rankings VALUES (20000103, 4, 200033, 3021, 15); +INSERT INTO rankings VALUES (20000103, 28, 200020, 960, 0); +INSERT INTO rankings VALUES (20000103, 31, 200124, 834, 8); +INSERT INTO rankings VALUES (20000103, 43, 200120, 698, 6); +INSERT INTO rankings VALUES (20000103, 44, 200117, 671, 0); +INSERT INTO rankings VALUES (20000103, 45, 200083, 669, 16); +INSERT INTO rankings VALUES (20000103, 48, 200002, 640, 27); +INSERT INTO rankings VALUES (20000103, 50, 200072, 629, 0); +INSERT INTO rankings VALUES (20000103, 56, 200036, 548, 0); +INSERT INTO rankings VALUES (20000103, 66, 200011, 471, 0); +INSERT INTO rankings VALUES (20000103, 71, 200009, 439, 16); +INSERT INTO rankings VALUES (20000103, 72, 200107, 421, 0); +INSERT INTO rankings VALUES (20000103, 88, 200012, 338, 1); +INSERT INTO rankings VALUES (20000103, 93, 200069, 319, 23); +INSERT INTO rankings VALUES (20000103, 931, 201325, 2, 23); +INSERT INTO rankings VALUES (20000103, 935, 201564, 2, 0); +INSERT INTO rankings VALUES (20000103, 975, 201294, 2, 25); +INSERT INTO rankings VALUES (20000103, 981, 202522, 2, 2); +INSERT INTO rankings VALUES (20000103, 1003, 201367, 1, 21); + + +COMMIT; diff --git a/all/databases/wta_1/wta_1.sqlite b/all/databases/wta_1/wta_1.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..bde39a9dea6d4061220c88659f13905f84aa187c Binary files /dev/null and b/all/databases/wta_1/wta_1.sqlite differ diff --git a/all/databases/yelp/yelp.sql b/all/databases/yelp/yelp.sql new file mode 100644 index 0000000000000000000000000000000000000000..529c86937128c18b88297491c9df0b6207371d5c --- /dev/null +++ b/all/databases/yelp/yelp.sql @@ -0,0 +1,192 @@ +CREATE TABLE "business" ( +"bid" text, +"business_id" text, +"name" text, +"full_address" text, +"city" text, +"latitude" text, +"longitude" text, +"review_count" text, +"is_open" text, +"rating" text, +"state" text +); + +INSERT INTO business VALUES ("p", "l", "o", "o", "o", "r", "g", "o", "r", "d", "r"); +INSERT INTO business VALUES ("r", "o", "i", "s", "d", "e", "s", "r", "l", "o", "s"); +INSERT INTO business VALUES ("e", "o", "s", "d", "d", "d", "r", "i", "o", "p", "l"); +INSERT INTO business VALUES ("i", "g", "d", "d", "o", "r", "y", "e", "g", "g", "p"); +INSERT INTO business VALUES ("s", "d", "p", "e", "o", "o", "y", "g", "r", "r", "r"); +INSERT INTO business VALUES ("p", "d", "y", "p", "d", "l", "p", "s", "y", "d", "o"); +INSERT INTO business VALUES ("s", "s", "y", "l", "s", "y", "s", "i", "i", "o", "i"); +INSERT INTO business VALUES ("l", "o", "r", "i", "o", "l", "g", "s", "r", "p", "i"); +INSERT INTO business VALUES ("r", "l", "d", "o", "d", "p", "e", "p", "r", "g", "o"); +INSERT INTO business VALUES ("o", "l", "i", "s", "g", "s", "o", "l", "d", "p", "d"); +INSERT INTO business VALUES ("o", "o", "i", "i", "e", "l", "o", "s", "i", "s", "i"); +INSERT INTO business VALUES ("y", "y", "s", "e", "d", "r", "e", "l", "o", "e", "e"); +INSERT INTO business VALUES ("g", "y", "o", "r", "o", "p", "y", "d", "r", "e", "d"); +INSERT INTO business VALUES ("i", "d", "r", "e", "e", "y", "d", "y", "e", "p", "p"); +INSERT INTO business VALUES ("r", "l", "o", "e", "d", "y", "y", "o", "l", "o", "o"); +INSERT INTO business VALUES ("o", "d", "l", "s", "e", "r", "o", "r", "d", "o", "r"); +INSERT INTO business VALUES ("g", "g", "l", "i", "o", "g", "s", "d", "g", "l", "d"); +INSERT INTO business VALUES ("o", "s", "o", "i", "r", "o", "d", "d", "e", "o", "r"); +INSERT INTO business VALUES ("l", "e", "g", "o", "p", "e", "g", "s", "o", "o", "g"); + +CREATE TABLE "category" ( +"id" text, +"business_id" text, +"category_name" text +); + +INSERT INTO category VALUES ("e", "d", "e"); +INSERT INTO category VALUES ("r", "g", "i"); +INSERT INTO category VALUES ("d", "p", "r"); +INSERT INTO category VALUES ("l", "d", "r"); +INSERT INTO category VALUES ("e", "o", "d"); +INSERT INTO category VALUES ("e", "e", "o"); +INSERT INTO category VALUES ("s", "e", "e"); +INSERT INTO category VALUES ("i", "o", "o"); +INSERT INTO category VALUES ("p", "d", "l"); + +CREATE TABLE "user" ( +"uid" text, +"user_id" text, +"name" text +); + +INSERT INTO user VALUES ("o", "p", "e"); +INSERT INTO user VALUES ("l", "l", "y"); +INSERT INTO user VALUES ("i", "p", "o"); +INSERT INTO user VALUES ("o", "d", "l"); +INSERT INTO user VALUES ("r", "o", "i"); +INSERT INTO user VALUES ("r", "p", "i"); +INSERT INTO user VALUES ("e", "e", "y"); +INSERT INTO user VALUES ("i", "i", "d"); +INSERT INTO user VALUES ("s", "l", "s"); +INSERT INTO user VALUES ("o", "s", "r"); +INSERT INTO user VALUES ("d", "r", "e"); +INSERT INTO user VALUES ("g", "o", "p"); +INSERT INTO user VALUES ("s", "l", "s"); +INSERT INTO user VALUES ("y", "o", "p"); +INSERT INTO user VALUES ("o", "r", "s"); +INSERT INTO user VALUES ("g", "s", "o"); +INSERT INTO user VALUES ("e", "g", "i"); +INSERT INTO user VALUES ("r", "y", "s"); +INSERT INTO user VALUES ("d", "e", "d"); +INSERT INTO user VALUES ("l", "i", "s"); +INSERT INTO user VALUES ("s", "g", "s"); +INSERT INTO user VALUES ("y", "r", "o"); +INSERT INTO user VALUES ("i", "p", "i"); +INSERT INTO user VALUES ("i", "o", "l"); +INSERT INTO user VALUES ("o", "e", "o"); +INSERT INTO user VALUES ("o", "p", "o"); +INSERT INTO user VALUES ("i", "r", "e"); +INSERT INTO user VALUES ("y", "o", "e"); +INSERT INTO user VALUES ("o", "s", "y"); + +CREATE TABLE "checkin" ( +"cid" text, +"business_id" text, +"count" text, +"day" text +); + +INSERT INTO checkin VALUES ("p", "o", "o", "y"); +INSERT INTO checkin VALUES ("p", "l", "y", "r"); +INSERT INTO checkin VALUES ("i", "o", "s", "s"); +INSERT INTO checkin VALUES ("p", "g", "e", "y"); +INSERT INTO checkin VALUES ("l", "g", "o", "o"); +INSERT INTO checkin VALUES ("d", "o", "g", "i"); +INSERT INTO checkin VALUES ("p", "g", "s", "o"); +INSERT INTO checkin VALUES ("l", "l", "o", "d"); +INSERT INTO checkin VALUES ("s", "l", "o", "s"); +INSERT INTO checkin VALUES ("r", "l", "g", "i"); +INSERT INTO checkin VALUES ("p", "g", "i", "o"); +INSERT INTO checkin VALUES ("g", "d", "l", "p"); +INSERT INTO checkin VALUES ("s", "l", "l", "p"); +INSERT INTO checkin VALUES ("d", "r", "r", "p"); +INSERT INTO checkin VALUES ("i", "p", "o", "p"); +INSERT INTO checkin VALUES ("l", "e", "i", "d"); +INSERT INTO checkin VALUES ("i", "d", "o", "y"); +INSERT INTO checkin VALUES ("i", "r", "r", "r"); +INSERT INTO checkin VALUES ("i", "s", "l", "i"); +INSERT INTO checkin VALUES ("e", "r", "o", "o"); +INSERT INTO checkin VALUES ("o", "s", "o", "i"); +INSERT INTO checkin VALUES ("s", "d", "e", "i"); +INSERT INTO checkin VALUES ("l", "p", "o", "o"); + +CREATE TABLE "neighbourhood" ( +"id" text, +"business_id" text, +"neighbourhood_name" text +); + +INSERT INTO neighbourhood VALUES ("s", "o", "r"); +INSERT INTO neighbourhood VALUES ("s", "o", "g"); +INSERT INTO neighbourhood VALUES ("l", "r", "s"); +INSERT INTO neighbourhood VALUES ("l", "s", "e"); +INSERT INTO neighbourhood VALUES ("o", "e", "r"); +INSERT INTO neighbourhood VALUES ("o", "e", "i"); +INSERT INTO neighbourhood VALUES ("o", "d", "p"); + +CREATE TABLE "review" ( +"rid" text, +"business_id" text, +"user_id" text, +"rating" text, +"text" text, +"year" text, +"month" text +); + +INSERT INTO review VALUES ("p", "o", "o", "o", "r", "o", "g"); +INSERT INTO review VALUES ("g", "p", "y", "s", "s", "y", "e"); +INSERT INTO review VALUES ("y", "g", "l", "o", "i", "r", "o"); +INSERT INTO review VALUES ("g", "l", "l", "i", "o", "d", "e"); +INSERT INTO review VALUES ("p", "i", "l", "g", "l", "e", "i"); +INSERT INTO review VALUES ("i", "e", "p", "i", "g", "l", "y"); +INSERT INTO review VALUES ("p", "y", "l", "y", "o", "r", "i"); +INSERT INTO review VALUES ("l", "l", "s", "s", "o", "o", "o"); +INSERT INTO review VALUES ("e", "e", "e", "o", "s", "o", "p"); +INSERT INTO review VALUES ("r", "s", "d", "y", "o", "o", "s"); +INSERT INTO review VALUES ("l", "s", "d", "r", "e", "g", "p"); +INSERT INTO review VALUES ("p", "o", "o", "e", "o", "o", "i"); +INSERT INTO review VALUES ("g", "i", "o", "o", "g", "o", "o"); +INSERT INTO review VALUES ("l", "p", "r", "r", "i", "s", "o"); +INSERT INTO review VALUES ("d", "d", "g", "i", "r", "s", "i"); +INSERT INTO review VALUES ("y", "o", "p", "o", "p", "d", "o"); +INSERT INTO review VALUES ("y", "p", "l", "s", "s", "r", "d"); +INSERT INTO review VALUES ("s", "o", "y", "p", "p", "i", "d"); +INSERT INTO review VALUES ("p", "p", "r", "g", "o", "o", "r"); +INSERT INTO review VALUES ("p", "p", "e", "o", "l", "y", "p"); +INSERT INTO review VALUES ("y", "i", "o", "g", "p", "s", "d"); +INSERT INTO review VALUES ("d", "i", "o", "p", "e", "l", "d"); +INSERT INTO review VALUES ("y", "g", "l", "o", "d", "s", "o"); +INSERT INTO review VALUES ("o", "r", "l", "l", "i", "l", "d"); +INSERT INTO review VALUES ("e", "y", "o", "s", "y", "s", "o"); +INSERT INTO review VALUES ("i", "i", "i", "y", "p", "o", "o"); +INSERT INTO review VALUES ("p", "g", "r", "l", "e", "s", "g"); +INSERT INTO review VALUES ("d", "p", "s", "e", "p", "o", "y"); +INSERT INTO review VALUES ("o", "r", "d", "i", "r", "g", "l"); + +CREATE TABLE "tip" ( +"tip_id" text, +"business_id" text, +"text" text, +"user_id" text, +"likes" text, +"year" text, +"month" text +); + +INSERT INTO tip VALUES ("r", "o", "y", "o", "d", "s", "o"); +INSERT INTO tip VALUES ("i", "i", "o", "y", "d", "i", "g"); +INSERT INTO tip VALUES ("g", "d", "o", "g", "g", "e", "g"); +INSERT INTO tip VALUES ("o", "d", "g", "g", "o", "g", "r"); +INSERT INTO tip VALUES ("e", "l", "d", "r", "r", "r", "r"); +INSERT INTO tip VALUES ("l", "r", "s", "s", "o", "d", "d"); +INSERT INTO tip VALUES ("g", "y", "s", "g", "i", "p", "i"); +INSERT INTO tip VALUES ("d", "o", "l", "o", "y", "y", "y"); + + +COMMIT; diff --git a/all/databases/yelp/yelp.sqlite b/all/databases/yelp/yelp.sqlite new file mode 100644 index 0000000000000000000000000000000000000000..87abcdeca95a80c3a1b1573900e95115d6db3ee0 Binary files /dev/null and b/all/databases/yelp/yelp.sqlite differ diff --git a/all/simplyset_all.json b/all/simplyset_all.json new file mode 100644 index 0000000000000000000000000000000000000000..be8f7595c3facce519d887047fc83696fbba6f76 --- /dev/null +++ b/all/simplyset_all.json @@ -0,0 +1 @@ +[{"id": "column_overlapping_0000", "db_id": "concert_singer", "query": "select song_name , song_release_year from singer order by age limit 1", "query_toks": ["select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "1"], "query_toks_no_value": ["select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "1"], "question": "Show the song name and the song release year by the youngest singer.", "question_toks": ["Show", "the", "song", "name", "and", "the", "song", "release", "year", "by", "the", "youngest", "singer", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0000", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0001", "db_id": "concert_singer", "query": "select song_name , song_release_year from singer order by age limit 1", "query_toks": ["select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "1"], "query_toks_no_value": ["select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "1"], "question": "What are the song name and the song release year of the youngest singer?", "question_toks": ["What", "are", "the", "song", "name", "and", "the", "song", "release", "year", "of", "the", "youngest", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0001", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0002", "db_id": "cre_Doc_Template_Mgt", "query": "select document_id , document_name , document_description from documents", "query_toks": ["select", "document_id", ",", "document_name", ",", "document_description", "from", "documents"], "query_toks_no_value": ["select", "document_id", ",", "document_name", ",", "document_description", "from", "documents"], "question": "List document IDs, document names, and document descriptions for all documents.", "question_toks": ["List", "document", "IDs", ",", "document", "names", ",", "and", "document", "descriptions", "for", "all", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0002", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0003", "db_id": "dog_kennels", "query": "select date_arrived , date_departed from dogs", "query_toks": ["select", "date_arrived", ",", "date_departed", "from", "dogs"], "query_toks_no_value": ["select", "date_arrived", ",", "date_departed", "from", "dogs"], "question": "What are the arriving date and the departing date of all the dogs?", "question_toks": ["What", "are", "the", "arriving", "date", "and", "the", "departing", "date", "of", "all", "the", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0003", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0004", "db_id": "dog_kennels", "query": "select date_arrived , date_departed from dogs", "query_toks": ["select", "date_arrived", ",", "date_departed", "from", "dogs"], "query_toks_no_value": ["select", "date_arrived", ",", "date_departed", "from", "dogs"], "question": "List the arrival and departure date for all the dogs.", "question_toks": ["List", "the", "arrival", "and", "departure", "date", "for", "all", "the", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0965", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0005", "db_id": "dog_kennels", "query": "select first_name , last_name , email_address from owners where state like \"%north%\"", "query_toks": ["select", "first_name", ",", "last_name", ",", "email_address", "from", "owners", "where", "state", "like", "\"%", "north", "%\""], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "email_address", "from", "owners", "where", "state", "like", "\"%", "north", "%\""], "question": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", "question_toks": ["Return", "the", "first", "name", ",", "last", "name", "and", "email", "of", "the", "owners", "living", "in", "a", "state", "whose", "name", "contains", "the", "substring", "'", "North", "'."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%north%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0005", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0006", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "``", "london", "heathrow", "''"], "query_toks_no_value": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "value", "heathrow"], "question": "What are the number of international passengers and domestic passengers of the airport named London \"Heathrow\"?", "question_toks": ["What", "are", "the", "number", "of", "international", "passengers", "and", "domestic", "passengers", "of", "the", "airport", "named", "London", "\"", "Heathrow", "\"?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"london heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4803", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0007", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "``", "london", "heathrow", "''"], "query_toks_no_value": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "value", "heathrow"], "question": "How many international passengers and domestic passengers are there in the airport London Heathrow?", "question_toks": ["How", "many", "international", "passengers", "and", "domestic", "passengers", "are", "there", "in", "the", "airport", "London", "Heathrow", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"london heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4804", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0008", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_end_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.bedroom_count > 2", "query_toks": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_end_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "bedroom_count", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_end_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "bedroom_count", ">", "value"], "question": "What are the booking start dates and booking end dates of the apartments with more than two bedrooms?", "question_toks": ["What", "are", "the", "booking", "start", "dates", "and", "booking", "end", "dates", "of", "the", "apartments", "with", "more", "than", "two", "bedrooms", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 27, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0008", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0009", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip where start_date like \"8/%\" group by start_station_name order by count(*) desc limit 1", "query_toks": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "``", "8", "/%\"", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "value", "/%\"", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "What are the start station's name and start station's id for the one that had the most start trips in August?", "question_toks": ["What", "are", "the", "start", "station", "'", "s", "name", "and", "start", "station", "'", "s", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "in", "August", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"8/%\"", null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0134", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0010", "db_id": "customers_and_products_contacts", "query": "select product_type_code , product_name from products where product_price > 1000 or product_price < 500", "query_toks": ["select", "product_type_code", ",", "product_name", "from", "products", "where", "product_price", ">", "1000", "or", "product_price", "<", "500"], "query_toks_no_value": ["select", "product_type_code", ",", "product_name", "from", "products", "where", "product_price", ">", "value", "or", "product_price", "<", "value"], "question": "Show the product type code and product name for the products with price higher than 1000 or lower than 500.", "question_toks": ["Show", "the", "product", "type", "code", "and", "product", "name", "for", "the", "products", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null], "or", [false, 4, [0, [0, 10, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5667", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0011", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers except select t1.customer_first_name , t1.customer_last_name from customers as t1 join accounts as t2 on t1.customer_id = t2.customer_id", "query_toks": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers", "except", "select", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "query_toks_no_value": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers", "except", "select", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Show the customer first names and customer last names of customers without any account.", "question_toks": ["Show", "the", "customer", "first", "names", "and", "customer", "last", "names", "of", "customers", "without", "any", "account", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0685", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0012", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id order by count(*) asc limit 1", "query_toks": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(*)", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(*)", "asc", "limit", "1"], "question": "What is the customer id, customer first name and customer last name with least number of accounts.", "question_toks": ["What", "is", "the", "customer", "id", ",", "customer", "first", "name", "and", "customer", "last", "name", "with", "least", "number", "of", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0717", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0013", "db_id": "flight_1", "query": "select departure_date , arrival_date from flight where origin = \"los angeles\" and destination = \"honolulu\"", "query_toks": ["select", "departure_date", ",", "arrival_date", "from", "flight", "where", "origin", "=", "``", "los", "angeles", "''", "and", "destination", "=", "``", "honolulu", "''"], "query_toks_no_value": ["select", "departure_date", ",", "arrival_date", "from", "flight", "where", "origin", "=", "value", "angeles", "and", "destination", "=", "value"], "question": "What are the departure date and arrival date of all flights from LA to Honolulu?", "question_toks": ["What", "are", "the", "departure", "date", "and", "arrival", "date", "of", "all", "flights", "from", "LA", "to", "Honolulu", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0390", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0014", "db_id": "game_injury", "query": "select name , average_attendance , total_attendance from stadium except select t2.name , t2.average_attendance , t2.total_attendance from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id", "query_toks": ["select", "name", ",", "average_attendance", ",", "total_attendance", "from", "stadium", "except", "select", "t2", ".", "name", ",", "t2", ".", "average_attendance", ",", "t2", ".", "total_attendance", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id"], "query_toks_no_value": ["select", "name", ",", "average_attendance", ",", "total_attendance", "from", "stadium", "except", "select", "t2", ".", "name", ",", "t2", ".", "average_attendance", ",", "t2", ".", "total_attendance", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id"], "question": "Show the name, average attendance and total attendance for stadiums where no accidents happened.", "question_toks": ["Show", "the", "name", ",", "average", "attendance", "and", "total", "attendance", "for", "stadiums", "where", "no", "accidents", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0014", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0015", "db_id": "insurance_fnol", "query": "select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like \"%diana%\"", "query_toks": ["select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "\"%", "diana", "%\""], "query_toks_no_value": ["select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "\"%", "diana", "%\""], "question": "Retrieve the open dates and close dates of all the policies associated with the customer whose name contains \"Diana\"", "question_toks": ["Retrieve", "the", "open", "dates", "and", "close", "dates", "of", "all", "the", "policies", "associated", "with", "the", "customer", "whose", "name", "contains", "\"", "Diana", "\""], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0931", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0016", "db_id": "insurance_fnol", "query": "select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like \"%diana%\"", "query_toks": ["select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "\"%", "diana", "%\""], "query_toks_no_value": ["select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "\"%", "diana", "%\""], "question": "What are the open date and close date of all the policies used by the customer who have \"Diana\" in part of their names?", "question_toks": ["What", "are", "the", "open", "date", "and", "close", "date", "of", "all", "the", "policies", "used", "by", "the", "customer", "who", "have", "\"", "Diana", "\"", "in", "part", "of", "their", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0932", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0017", "db_id": "party_people", "query": "select minister , took_office , left_office from party order by left_office", "query_toks": ["select", "minister", ",", "took_office", ",", "left_office", "from", "party", "order", "by", "left_office"], "query_toks_no_value": ["select", "minister", ",", "took_office", ",", "left_office", "from", "party", "order", "by", "left_office"], "question": "Show the ministers and the time they took office and left office, listed by the time they left office.", "question_toks": ["Show", "the", "ministers", "and", "the", "time", "they", "took", "office", "and", "left", "office", ",", "listed", "by", "the", "time", "they", "left", "office", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2045", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0018", "db_id": "soccer_1", "query": "select t1.name , t2.name from country as t1 join league as t2 on t1.id = t2.country_id", "query_toks": ["select", "t1", ".", "name", ",", "t2", ".", "name", "from", "country", "as", "t1", "join", "league", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "country_id"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "name", "from", "country", "as", "t1", "join", "league", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "country_id"], "question": "List all country names and league names.", "question_toks": ["List", "all", "country", "names", "and", "league", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 55, false], null], [0, 53, false], null]]}, "select": [false, [[0, [0, [0, 56, false], null]], [0, [0, [0, 54, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1293", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0019", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code , template_type_description from ref_template_types", "query_toks": ["select", "template_type_code", ",", "template_type_description", "from", "ref_template_types"], "query_toks_no_value": ["select", "template_type_code", ",", "template_type_description", "from", "ref_template_types"], "question": "Show all template type codes and template type descriptions.", "question_toks": ["Show", "all", "template", "type", "codes", "and", "template", "type", "descriptions", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0347", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0020", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code , template_type_description from ref_template_types", "query_toks": ["select", "template_type_code", ",", "template_type_description", "from", "ref_template_types"], "query_toks_no_value": ["select", "template_type_code", ",", "template_type_description", "from", "ref_template_types"], "question": "What are the template type codes and template type descriptions for all template types?", "question_toks": ["What", "are", "the", "template", "type", "codes", "and", "template", "type", "descriptions", "for", "all", "template", "types", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0348", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0021", "db_id": "cre_Doc_Template_Mgt", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "to", "ny"], "question": "Show all paragraph ids and paragraph texts for the document with name 'Welcome to NY'.", "question_toks": ["Show", "all", "paragraph", "ids", "and", "paragraph", "texts", "for", "the", "document", "with", "name", "'", "Welcome", "to", "NY", "'."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"welcome to ny\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0363", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0022", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What is the document id and document name with greatest number of paragraphs?", "question_toks": ["What", "is", "the", "document", "id", "and", "document", "name", "with", "greatest", "number", "of", "paragraphs", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0373", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0023", "db_id": "student_transcripts_tracking", "query": "select first_name , middle_name , last_name from students order by date_first_registered asc limit 1", "query_toks": ["select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_first_registered", "asc", "limit", "1"], "query_toks_no_value": ["select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_first_registered", "asc", "limit", "1"], "question": "What is the first name, middle name and last name of the first student to register?", "question_toks": ["What", "is", "the", "first", "name", ",", "middle", "name", "and", "last", "name", "of", "the", "first", "student", "to", "register", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 41, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0556", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0024", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "question": "List the first name and last name of all players in the order of birth date.", "question_toks": ["List", "the", "first", "name", "and", "last", "name", "of", "all", "players", "in", "the", "order", "of", "birth", "date", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0455", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0025", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_start_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.apt_type_code = \"duplex\"", "query_toks": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "``", "duplex", "''"], "query_toks_no_value": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "value"], "question": "What are the booking start dates and booking end dates of the apartments with type code \"Duplex\"?", "question_toks": ["What", "are", "the", "booking", "start", "dates", "and", "booking", "end", "dates", "of", "the", "apartments", "with", "type", "code", "\"", "Duplex", "\"?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"duplex\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1222", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0026", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_start_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.apt_type_code = \"duplex\"", "query_toks": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "``", "duplex", "''"], "query_toks_no_value": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "value"], "question": "Return the booking start date and booking end date for the apartments that have type code \"Duplex\".", "question_toks": ["Return", "the", "booking", "start", "date", "and", "booking", "end", "date", "for", "the", "apartments", "that", "have", "type", "code", "\"", "Duplex", "\"."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"duplex\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1223", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0027", "db_id": "behavior_monitoring", "query": "select t1.datetime_detention_start , datetime_detention_end from detention as t1 join teachers as t2 on t1.teacher_id = t2.teacher_id where t2.last_name = \"schultz\"", "query_toks": ["select", "t1", ".", "datetime_detention_start", ",", "datetime_detention_end", "from", "detention", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t2", ".", "last_name", "=", "``", "schultz", "''"], "query_toks_no_value": ["select", "t1", ".", "datetime_detention_start", ",", "datetime_detention_end", "from", "detention", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t2", ".", "last_name", "=", "value"], "question": "Find the detention datetime start and detention datetime end of teachers with last name \"Schultz\".", "question_toks": ["Find", "the", "detention", "datetime", "start", "and", "detention", "datetime", "end", "of", "teachers", "with", "last", "name", "\"", "Schultz", "\"."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 51, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 52, false], null]], [0, [0, [0, 53, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"schultz\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3115", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0028", "db_id": "customer_complaints", "query": "select address_line_1 , address_line_2 from customers where email_address = \"vbogisich@example.org\"", "query_toks": ["select", "address_line_1", ",", "address_line_2", "from", "customers", "where", "email_address", "=", "``", "vbogisich", "@", "example", ".", "org", "''"], "query_toks_no_value": ["select", "address_line_1", ",", "address_line_2", "from", "customers", "where", "email_address", "=", "value", "@", "example", ".", "org"], "question": "Find the address line 1 and address line 2 of the customer with email \"vbogisich@example.org\".", "question_toks": ["Find", "the", "address", "line", "1", "and", "address", "line", "2", "of", "the", "customer", "with", "email", "\"", "vbogisich", "@", "example", ".", "org", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"vbogisich@example.org\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5806", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "non_strict_inequality_0000", "db_id": "bike_1", "query": "select date , zip_code from weather", "query_toks": ["select", "date", ",", "zip_code", "from", "weather"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather"], "question": "What zip codes have a stations and when did it reach that temperature?", "question_toks": ["What", "zip", "codes", "have", "a", "stations", "and", "when", "did", "it", "reach", "that", "temperature", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0154", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0001", "db_id": "browser_web", "query": "select id , name from web_client_accelerator", "query_toks": ["select", "id", ",", "name", "from", "web_client_accelerator"], "query_toks_no_value": ["select", "id", ",", "name", "from", "web_client_accelerator"], "question": "What are the ids and names of the web accelerators?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "web", "accelerators", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1833", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0002", "db_id": "chinook_1", "query": "select firstname , supportrepid from customer", "query_toks": ["select", "firstname", ",", "supportrepid", "from", "customer"], "query_toks_no_value": ["select", "firstname", ",", "supportrepid", "from", "customer"], "question": "What are the first names and support rep ids for employees?", "question_toks": ["What", "are", "the", "first", "names", "and", "support", "rep", "ids", "for", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0870", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0003", "db_id": "chinook_1", "query": "select artistid, name from artist order by name asc;", "query_toks": ["select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "order", "by", "t2", ".", "name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "order", "by", "t2", ".", "name"], "question": "What are the names and ids of artists, listed in alphabetical order?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "artists", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0876", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0004", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema"], "question": "Show average, minimum, and maximum capacity for all the cinemas.", "question_toks": ["Show", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_non_strict_inequality_0004", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0005", "db_id": "concert_singer", "query": "select name , capacity from stadium group by stadium_id order by count(*) desc limit 1", "query_toks": ["select", "name", ",", "capacity", "from", "stadium", "group", "by", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "name", ",", "capacity", "from", "stadium", "group", "by", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0006", "db_id": "culture_company", "query": "select title , director from movie order by gross_worldwide desc limit 1", "query_toks": ["select", "title", ",", "director", "from", "movie", "order", "by", "gross_worldwide", "desc", "limit", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "order", "by", "gross_worldwide", "desc", "limit", "1"], "question": "Return title and director of the movie released that had the highest worldwide gross.", "question_toks": ["Return", "title", "and", "director", "of", "the", "movie", "released", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_non_strict_inequality_0006", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0007", "db_id": "customers_and_invoices", "query": "select order_id , order_details from orders", "query_toks": ["select", "order_id", ",", "order_details", "from", "orders"], "query_toks_no_value": ["select", "order_id", ",", "order_details", "from", "orders"], "question": "Return the order ids and details for orderes.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "orderes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_non_strict_inequality_0007", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0008", "db_id": "customers_and_invoices", "query": "select customer_id, customer_first_name from customers;", "query_toks": ["select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "query_toks_no_value": ["select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "What are the first names and ids for customers?", "question_toks": ["What", "are", "the", "first", "names", "and", "ids", "for", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1572", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0009", "db_id": "customers_and_invoices", "query": "select account_id, account_name from accounts;", "query_toks": ["select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id"], "query_toks_no_value": ["select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id"], "question": "What are the ids and names of accounts?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1594", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0010", "db_id": "dog_kennels", "query": "select professional_id , role_code , first_name from professionals", "query_toks": ["select", "professional_id", ",", "role_code", ",", "first_name", "from", "professionals"], "query_toks_no_value": ["select", "professional_id", ",", "role_code", ",", "first_name", "from", "professionals"], "question": "What are the id, role, and first name of the professionals?", "question_toks": ["What", "are", "the", "id", ",", "role", ",", "and", "first", "name", "of", "the", "professionals", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0933", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0011", "db_id": "e_learning", "query": "select author_id, address_line_1 from course_authors_and_tutors;", "query_toks": ["select", "t1", ".", "address_line_1", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id"], "query_toks_no_value": ["select", "t1", ".", "address_line_1", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id"], "question": "Give me their addresses and author IDs.", "question_toks": ["Give", "me", "their", "addresses", "and", "author", "IDs", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3809", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0012", "db_id": "hr_1", "query": "select * from job_history as t1 join employees as t2 on t1.employee_id = t2.employee_id", "query_toks": ["select", "*", "from", "job_history", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id"], "query_toks_no_value": ["select", "*", "from", "job_history", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id"], "question": "What is all the job history info done by employees?", "question_toks": ["What", "is", "all", "the", "job", "history", "info", "done", "by", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3466", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0013", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "question": "Give me the the customers details and id for the customers who did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customers", "details", "and", "id", "for", "the", "customers", "who", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_non_strict_inequality_0013", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0014", "db_id": "manufactory_1", "query": "select name from products", "query_toks": ["select", "name", "from", "products"], "query_toks_no_value": ["select", "name", "from", "products"], "question": "Select the name of the products.", "question_toks": ["Select", "the", "name", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5326", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0015", "db_id": "manufactory_1", "query": "select count(*) from products", "query_toks": ["select", "count", "(*)", "from", "products"], "query_toks_no_value": ["select", "count", "(*)", "from", "products"], "question": "Compute the number of products.", "question_toks": ["Compute", "the", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5334", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0016", "db_id": "manufactory_1", "query": "select name , price from products order by price desc , name asc", "query_toks": ["select", "name", ",", "price", "from", "products", "order", "by", "price", "desc", ",", "name", "asc"], "query_toks_no_value": ["select", "name", ",", "price", "from", "products", "order", "by", "price", "desc", ",", "name", "asc"], "question": "Select the name and price of all products, and sort first by price (in descending order), and then by name (in ascending order).", "question_toks": ["Select", "the", "name", "and", "price", "of", "all", "products", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", "),", "and", "then", "by", "name", "(", "in", "ascending", "order", ")."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null], [0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5336", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0017", "db_id": "manufactory_1", "query": "select name from manufacturers;", "query_toks": ["select", "name", "from", "products"], "query_toks_no_value": ["select", "name", "from", "products"], "question": "Select the names of manufacturer.", "question_toks": ["Select", "the", "names", "of", "manufacturer", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5344", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0018", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code", "query_toks": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code"], "question": "What are the names and average prices of products for manufacturers?", "question_toks": ["What", "are", "the", "names", "and", "average", "prices", "of", "products", "for", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5345", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0019", "db_id": "medicine_enzyme_interaction", "query": "select id , name from medicine", "query_toks": ["select", "id", ",", "name", "from", "medicine"], "query_toks_no_value": ["select", "id", ",", "name", "from", "medicine"], "question": "What are the ids and names of the medicine?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "medicine", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0949", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0020", "db_id": "school_finance", "query": "select school_name from school", "query_toks": ["select", "school_name", "from", "school"], "query_toks_no_value": ["select", "school_name", "from", "school"], "question": "List all the names of schools with an endowment.", "question_toks": ["List", "all", "the", "names", "of", "schools", "with", "an", "endowment", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1896", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0021", "db_id": "storm_record", "query": "select name , dates_active , number_deaths from storm", "query_toks": ["select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm"], "query_toks_no_value": ["select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm"], "question": "What are the names, dates active, and number of deaths?", "question_toks": ["What", "are", "the", "names", ",", "dates", "active", ",", "and", "number", "of", "deaths", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2701", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "order_by_count_0000", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format", "query_toks": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format"], "query_toks_no_value": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format"], "question": "Please show the record formats of orchestras.", "question_toks": ["Please", "show", "the", "record", "formats", "of", "orchestras", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0850", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0001", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format", "query_toks": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format"], "query_toks_no_value": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format"], "question": "What are the major record formats of orchestras?", "question_toks": ["What", "are", "the", "major", "record", "formats", "of", "orchestras", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0851", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0002", "db_id": "apartment_rentals", "query": "select apt_type_code , count(*) from apartments group by apt_type_code", "query_toks": ["select", "apt_type_code", ",", "count", "(*)", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(*)", "asc"], "query_toks_no_value": ["select", "apt_type_code", ",", "count", "(*)", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(*)", "asc"], "question": "Show the apartment type codes and the corresponding number of apartments", "question_toks": ["Show", "the", "apartment", "type", "codes", "and", "the", "corresponding", "number", "of", "apartments"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1254", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0003", "db_id": "apartment_rentals", "query": "select apt_type_code , count(*) from apartments group by apt_type_code", "query_toks": ["select", "apt_type_code", ",", "count", "(*)", "from", "apartments", "group", "by", "apt_type_code"], "query_toks_no_value": ["select", "apt_type_code", ",", "count", "(*)", "from", "apartments", "group", "by", "apt_type_code"], "question": "Return each apartment type code with the number of apartments having that apartment type", "question_toks": ["Return", "each", "apartment", "type", "code", "with", "the", "number", "of", "apartments", "having", "that", "apartment", "type"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1255", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0004", "db_id": "apartment_rentals", "query": "select gender_code , count(*) from guests group by gender_code", "query_toks": ["select", "gender_code", ",", "count", "(*)", "from", "guests", "group", "by", "gender_code"], "query_toks_no_value": ["select", "gender_code", ",", "count", "(*)", "from", "guests", "group", "by", "gender_code"], "question": "Show each gender code and the corresponding count of guests", "question_toks": ["Show", "each", "gender", "code", "and", "the", "corresponding", "count", "of", "guests"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1266", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0005", "db_id": "apartment_rentals", "query": "select gender_code , count(*) from guests group by gender_code", "query_toks": ["select", "gender_code", ",", "count", "(*)", "from", "guests"], "query_toks_no_value": ["select", "gender_code", ",", "count", "(*)", "from", "guests"], "question": "Return both the gender codes and counts.", "question_toks": ["Return", "both", "the", "gender", "codes", "and", "counts", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1267", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0006", "db_id": "baseball_1", "query": "select name_first , name_last , player_id from player", "query_toks": ["select", "name_first", ",", "name_last", ",", "player_id", "from", "player"], "query_toks_no_value": ["select", "name_first", ",", "name_last", ",", "player_id", "from", "player"], "question": "List full name and id of players.", "question_toks": ["List", "full", "name", "and", "id", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3647", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0007", "db_id": "baseball_1", "query": "select name_first , name_last , player_id from player", "query_toks": ["select", "name_first", ",", "name_last", ",", "player_id", "from", "player"], "query_toks_no_value": ["select", "name_first", ",", "name_last", ",", "player_id", "from", "player"], "question": "Find the first name, last name and id for the players.", "question_toks": ["Find", "the", "first", "name", ",", "last", "name", "and", "id", "for", "the", "players", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3648", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0008", "db_id": "baseball_1", "query": "select birth_country from player group by birth_country", "query_toks": ["select", "birth_country", "from", "player", "group", "by", "birth_country"], "query_toks_no_value": ["select", "birth_country", "from", "player", "group", "by", "birth_country"], "question": "List countries which are the origins of the players.", "question_toks": ["List", "countries", "which", "are", "the", "origins", "of", "the", "players", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 186, false], null]]]], "where": [], "groupBy": [[0, 186, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3649", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0009", "db_id": "behavior_monitoring", "query": "select teacher_id , first_name from teachers", "query_toks": ["select", "teacher_id", ",", "first_name", "from", "teachers"], "query_toks_no_value": ["select", "teacher_id", ",", "first_name", "from", "teachers"], "question": "Find the ids and first names of the teachers?", "question_toks": ["Find", "the", "ids", "and", "first", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3105", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0010", "db_id": "college_1", "query": "select t2.dept_name , t2.dept_address , count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code", "query_toks": ["select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(*)", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code"], "query_toks_no_value": ["select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(*)", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code"], "question": "Find the name, address, number of students in the departments.", "question_toks": ["Find", "the", "name", ",", "address", ",", "number", "of", "students", "in", "the", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3305", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0011", "db_id": "college_1", "query": "select t2.dept_name , t2.dept_address , count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code", "query_toks": ["select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(*)", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code"], "query_toks_no_value": ["select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(*)", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code"], "question": "What is the name, address, and number of students in the departments?", "question_toks": ["What", "is", "the", "name", ",", "address", ",", "and", "number", "of", "students", "in", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3306", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0012", "db_id": "college_3", "query": "select fname , lname from faculty", "query_toks": ["select", "fname", ",", "lname", "from", "faculty"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "faculty"], "question": "What are the first and last names of the instructors?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "the", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4679", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0013", "db_id": "college_3", "query": "select fname , lname from faculty", "query_toks": ["select", "fname", ",", "lname", "from", "faculty"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "faculty"], "question": "What are the full names of the instructors?", "question_toks": ["What", "are", "the", "full", "names", "of", "the", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4680", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0014", "db_id": "company_office", "query": "select industry from companies", "query_toks": ["select", "industry", "from", "companies"], "query_toks_no_value": ["select", "industry", "from", "companies"], "question": "Please show the industries of companies.", "question_toks": ["Please", "show", "the", "industries", "of", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4571", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0015", "db_id": "customer_complaints", "query": "select first_name from staff", "query_toks": ["select", "first_name", "from", "staff"], "query_toks_no_value": ["select", "first_name", "from", "staff"], "question": "What is first names of the staff?", "question_toks": ["What", "is", "first", "names", "of", "the", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5810", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0016", "db_id": "customer_complaints", "query": "select first_name from staff", "query_toks": ["select", "first_name", "from", "staff"], "query_toks_no_value": ["select", "first_name", "from", "staff"], "question": "Return the first names of the staff members.", "question_toks": ["Return", "the", "first", "names", "of", "the", "staff", "members", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5811", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0017", "db_id": "department_store", "query": "select dept_store_id from department_stores;", "query_toks": ["select", "dept_store_chain_id", "from", "department_stores"], "query_toks_no_value": ["select", "dept_store_chain_id", "from", "department_stores"], "question": "What are the ids of the department store?", "question_toks": ["What", "are", "the", "ids", "of", "the", "department", "store", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4741", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0018", "db_id": "department_store", "query": "select dept_store_chain_id from department_stores", "query_toks": ["select", "dept_store_chain_id", "from", "department_stores"], "query_toks_no_value": ["select", "dept_store_chain_id", "from", "department_stores"], "question": "Return the ids of the department store.", "question_toks": ["Return", "the", "ids", "of", "the", "department", "store", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4742", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0019", "db_id": "device", "query": "select software_platform from device", "query_toks": ["select", "software_platform", "from", "device"], "query_toks_no_value": ["select", "software_platform", "from", "device"], "question": "Please show the software platforms of devices.", "question_toks": ["Please", "show", "the", "software", "platforms", "of", "devices", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5078", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0020", "db_id": "device", "query": "select distinct software_platform from device;", "query_toks": ["select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(*)", "desc"], "query_toks_no_value": ["select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(*)", "desc"], "question": "What are the different software platforms for devices?", "question_toks": ["What", "are", "the", "different", "software", "platforms", "for", "devices", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5079", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0021", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["select", "document_name", "from", "documents"], "query_toks_no_value": ["select", "document_name", "from", "documents"], "question": "Find the list of documents.", "question_toks": ["Find", "the", "list", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4513", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0022", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["select", "document_name", "from", "documents"], "query_toks_no_value": ["select", "document_name", "from", "documents"], "question": "What are the names of documents?", "question_toks": ["What", "are", "the", "names", "of", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4514", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0023", "db_id": "e_learning", "query": "select test_result , count(*) from student_tests_taken group by test_result", "query_toks": ["select", "test_result", ",", "count", "(*)", "from", "student_tests_taken", "group", "by", "test_result"], "query_toks_no_value": ["select", "test_result", ",", "count", "(*)", "from", "student_tests_taken", "group", "by", "test_result"], "question": "List each test result and its count.", "question_toks": ["List", "each", "test", "result", "and", "its", "count", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3800", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0024", "db_id": "e_learning", "query": "select t1.subject_id , t2.subject_name , count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id", "query_toks": ["select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(*)", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id"], "query_toks_no_value": ["select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(*)", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id"], "question": "Find the subject ID, name of subject and the corresponding number of courses for each subject", "question_toks": ["Find", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "corresponding", "number", "of", "courses", "for", "each", "subject"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3816", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0025", "db_id": "e_learning", "query": "select t1.subject_id , t2.subject_name , count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id", "query_toks": ["select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(*)", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id"], "query_toks_no_value": ["select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(*)", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id"], "question": "List the subject ID, name of subject and the number of courses available for each subject", "question_toks": ["List", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "number", "of", "courses", "available", "for", "each", "subject"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3817", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0026", "db_id": "farm", "query": "select status from city", "query_toks": ["select", "status", "from", "city"], "query_toks_no_value": ["select", "status", "from", "city"], "question": "Please show the different statuses of cities.", "question_toks": ["Please", "show", "the", "different", "statuses", "of", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0044", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0027", "db_id": "farm", "query": "select status from city", "query_toks": ["select", "status", "from", "city"], "query_toks_no_value": ["select", "status", "from", "city"], "question": "Return the different statuses of cities", "question_toks": ["Return", "the", "different", "statuses", "of", "cities"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0045", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0028", "db_id": "flight_1", "query": "select name, distance from aircraft where distance > 5000;", "query_toks": ["select", "t2", ".", "name", "from", "certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "distance", ">", "5000", "group", "by", "t1", ".", "aid"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "distance", ">", "value", "group", "by", "t1", ".", "aid"], "question": "Show the name and distance of the aircrafts with more than 5000 distance", "question_toks": ["Show", "the", "name", "and", "distance", "of", "the", "aircrafts", "with", "more", "than", "5000", "distance"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0433", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0029", "db_id": "flight_4", "query": "select country , count(*) from airlines group by country", "query_toks": ["select", "country", ",", "count", "(*)", "from", "airlines", "group", "by", "country"], "query_toks_no_value": ["select", "country", ",", "count", "(*)", "from", "airlines", "group", "by", "country"], "question": "List all countries and their number of airlines.", "question_toks": ["List", "all", "countries", "and", "their", "number", "of", "airlines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6845", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0030", "db_id": "flight_4", "query": "select country , count(*) from airlines group by country", "query_toks": ["select", "country", ",", "count", "(*)", "from", "airlines", "group", "by", "country"], "query_toks_no_value": ["select", "country", ",", "count", "(*)", "from", "airlines", "group", "by", "country"], "question": "How many airlines operate out of each country?", "question_toks": ["How", "many", "airlines", "operate", "out", "of", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6846", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0031", "db_id": "gas_company", "query": "select location , count(*) from gas_station group by location", "query_toks": ["select", "location", ",", "count", "(*)", "from", "gas_station", "group", "by", "location"], "query_toks_no_value": ["select", "location", ",", "count", "(*)", "from", "gas_station", "group", "by", "location"], "question": "Show all locations and the number of gas stations in each location.", "question_toks": ["Show", "all", "locations", "and", "the", "number", "of", "gas", "stations", "in", "each", "location", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2017", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0032", "db_id": "gas_company", "query": "select location , count(*) from gas_station group by location", "query_toks": ["select", "location", ",", "count", "(*)", "from", "gas_station", "group", "by", "location"], "query_toks_no_value": ["select", "location", ",", "count", "(*)", "from", "gas_station", "group", "by", "location"], "question": "For each location, how many gas stations are there?", "question_toks": ["For", "each", "location", ",", "how", "many", "gas", "stations", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2018", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0033", "db_id": "match_season", "query": "select college from match_season group by college", "query_toks": ["select", "college", "from", "match_season", "group", "by", "college"], "query_toks_no_value": ["select", "college", "from", "match_season", "group", "by", "college"], "question": "Show colleges of players in match seasons.", "question_toks": ["Show", "colleges", "of", "players", "in", "match", "seasons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1098", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0034", "db_id": "medicine_enzyme_interaction", "query": "select id, name, fda_approved from medicine;", "query_toks": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id"], "question": "What are the ids, names and FDA approval status of medicines?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "FDA", "approval", "status", "of", "medicines", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0951", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0035", "db_id": "medicine_enzyme_interaction", "query": "select id, name, fda_approved from medicine;", "query_toks": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id"], "question": "What are the ids, names, and FDA approval status for medicines?", "question_toks": ["What", "are", "the", "ids", ",", "names", ",", "and", "FDA", "approval", "status", "for", "medicines", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0952", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0036", "db_id": "mountain_photos", "query": "select t1.name , count(*) from camera_lens as t1 join photos as t2 on t1.id = t2.camera_lens_id group by t1.id", "query_toks": ["select", "t1", ".", "name", ",", "count", "(*)", "from", "camera_lens", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "camera_lens_id", "group", "by", "t1", ".", "id"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "count", "(*)", "from", "camera_lens", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "camera_lens_id", "group", "by", "t1", ".", "id"], "question": "What is the name of each camera lens and the number of photos taken by it? ", "question_toks": ["What", "is", "the", "name", "of", "each", "camera", "lens", "and", "the", "number", "of", "photos", "taken", "by", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3727", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0037", "db_id": "music_1", "query": "select t1.artist_name , count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name", "query_toks": ["select", "t1", ".", "artist_name", ",", "count", "(*)", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "group", "by", "t2", ".", "artist_name"], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "count", "(*)", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "group", "by", "t2", ".", "artist_name"], "question": "Find the names and number of works of the artists.", "question_toks": ["Find", "the", "names", "and", "number", "of", "works", "of", "the", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3609", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0038", "db_id": "music_4", "query": "select result , count(*) from music_festival group by result", "query_toks": ["select", "result", ",", "count", "(*)", "from", "music_festival", "group", "by", "result"], "query_toks_no_value": ["select", "result", ",", "count", "(*)", "from", "music_festival", "group", "by", "result"], "question": "How many music festivals have had each kind of result?", "question_toks": ["How", "many", "music", "festivals", "have", "had", "each", "kind", "of", "result", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6200", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0039", "db_id": "store_1", "query": "select billing_country , count(*) from invoices group by billing_country", "query_toks": ["select", "billing_country", ",", "count", "(*)", "from", "invoices", "group", "by", "billing_country"], "query_toks_no_value": ["select", "billing_country", ",", "count", "(*)", "from", "invoices", "group", "by", "billing_country"], "question": "List country name and number of invoices.", "question_toks": ["List", "country", "name", "and", "number", "of", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 44, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 44, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0537", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0040", "db_id": "wine_1", "query": "select t2.winery from grapes as t1 join wine as t2 on t1.grape = t2.grape where t1.color = \"white\" group by t2.winery", "query_toks": ["select", "t2", ".", "winery", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "``", "white", "''", "group", "by", "t2", ".", "winery"], "query_toks_no_value": ["select", "t2", ".", "winery", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value", "group", "by", "t2", ".", "winery"], "question": "Which wineries produce white grapes?", "question_toks": ["Which", "wineries", "produce", "white", "grapes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"white\"", null]], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6588", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0041", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">=", "value", "group", "by", "t2", ".", "stadium_id"], "question": "Show the stadium name and capacity of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0042", "db_id": "concert_singer", "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013", "query_toks": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "2013", "group", "by", "t2", ".", "stadium_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "value", "group", "by", "t2", ".", "stadium_id"], "question": "What is the name and capacity of the stadiums after 2013 ?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "of", "the", "stadiums", "after", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], 2013.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0025", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0043", "db_id": "dog_kennels", "query": "select owner_id, first_name, last_name from owners;", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "List the owner id, first name and last name.", "question_toks": ["List", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0930", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0044", "db_id": "dog_kennels", "query": "select owner_id, first_name, last_name from owners;", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Return the owner id, first name and last name of the owner.", "question_toks": ["Return", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "of", "the", "owner", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0931", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0045", "db_id": "flight_2", "query": "select airportcode from airports", "query_toks": ["select", "airportcode", "from", "airports"], "query_toks_no_value": ["select", "airportcode", "from", "airports"], "question": "What is the code of airport?", "question_toks": ["What", "is", "the", "code", "of", "airport", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0227", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0046", "db_id": "museum_visit", "query": "select museum_id, name from museum;", "query_toks": ["select", "t2", ".", "museum_id", ",", "t1", ".", "name", "from", "museum", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "museum_id", "=", "t2", ".", "museum_id"], "query_toks_no_value": ["select", "t2", ".", "museum_id", ",", "t1", ".", "name", "from", "museum", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "museum_id", "=", "t2", ".", "museum_id"], "question": "What are the id and name of the museum?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "museum", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0421", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0047", "db_id": "voter_2", "query": "select city_code from student group by city_code", "query_toks": ["select", "city_code", "from", "student", "group", "by", "city_code"], "query_toks_no_value": ["select", "city_code", "from", "student", "group", "by", "city_code"], "question": "What is the city_code of the cities?", "question_toks": ["What", "is", "the", "city_code", "of", "the", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5512", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0048", "db_id": "voter_2", "query": "select city_code from student;", "query_toks": ["select", "city_code", "from", "student", "group", "by", "city_code"], "query_toks_no_value": ["select", "city_code", "from", "student", "group", "by", "city_code"], "question": "Return the code of the city that has the each students.", "question_toks": ["Return", "the", "code", "of", "the", "city", "that", "has", "the", "each", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5513", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0049", "db_id": "wine_1", "query": "select t1.area from appellations as t1 join wine as t2 on t1.appelation = t2.appelation group by t2.appelation having t2.year < 2010", "query_toks": ["select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "2010"], "query_toks_no_value": ["select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "2010"], "question": "What are the areas of the appelation of wines before the year of 2010?", "question_toks": ["What", "are", "the", "areas", "of", "the", "appelation", "of", "wines", "before", "the", "year", "of", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 4, [0, [0, 16, false], null], 2010.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6563", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0050", "db_id": "wine_1", "query": "select t1.area from appellations as t1 join wine as t2 on t1.appelation = t2.appelation group by t2.appelation having t2.year < 2010", "query_toks": ["select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "2010"], "query_toks_no_value": ["select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "2010"], "question": "What are the areas for the appelation which produced wines prior to 2010?", "question_toks": ["What", "are", "the", "areas", "for", "the", "appelation", "which", "produced", "wines", "prior", "to", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 4, [0, [0, 16, false], null], 2010.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6564", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0051", "db_id": "wine_1", "query": "select t1.county from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t2.score > 90 group by t1.county", "query_toks": ["select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "90", "group", "by", "t1", ".", "county"], "query_toks_no_value": ["select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "value", "group", "by", "t1", ".", "county"], "question": "Find the counties produces wines with score higher than 90.", "question_toks": ["Find", "the", "counties", "produces", "wines", "with", "score", "higher", "than", "90", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 90.0, null]], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6597", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0052", "db_id": "wine_1", "query": "select t1.county from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t2.score > 90 group by t1.county", "query_toks": ["select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "90", "group", "by", "t1", ".", "county"], "query_toks_no_value": ["select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "value", "group", "by", "t1", ".", "county"], "question": "What are the counties that produces wines scoring higher than 90?", "question_toks": ["What", "are", "the", "counties", "that", "produces", "wines", "scoring", "higher", "than", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 90.0, null]], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6598", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0053", "db_id": "workshop_paper", "query": "select college from submission group by college ", "query_toks": ["select", "college", "from", "submission", "group", "by", "college"], "query_toks_no_value": ["select", "college", "from", "submission", "group", "by", "college"], "question": "Show the colleges of authors of submissions.", "question_toks": ["Show", "the", "colleges", "of", "authors", "of", "submissions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5828", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0054", "db_id": "wrestler", "query": "select reign from wrestler group by reign", "query_toks": ["select", "reign", "from", "wrestler", "group", "by", "reign"], "query_toks_no_value": ["select", "reign", "from", "wrestler", "group", "by", "reign"], "question": "Please show the reigns of wrestlers.", "question_toks": ["Please", "show", "the", "reigns", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1872", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0055", "db_id": "voter_1", "query": "select t1.area_code, t2.phone_number from area_code_state as t1 join votes as t2 on t1.state = t2.state", "query_toks": ["select", "t1", ".", "area_code", "from", "area_code_state", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "state", "=", "t2", ".", "state", "group", "by", "t1", ".", "area_code"], "query_toks_no_value": ["select", "t1", ".", "area_code", "from", "area_code_state", "as", "t1", "join", "votes", "as", "t2", "on", "t1", ".", "state", "=", "t2", ".", "state", "group", "by", "t1", ".", "area_code"], "question": "What are the area codes and numbers of voters voted?", "question_toks": ["What", "are", "the", "area", "codes", "and", "numbers", "of", "voters", "voted", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0698", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0056", "db_id": "tvshow", "query": "select language , count(*) from tv_channel", "query_toks": ["select", "language", ",", "count", "(*)", "from", "tv_channel"], "query_toks_no_value": ["select", "language", ",", "count", "(*)", "from", "tv_channel"], "question": "List language and number of TV Channel.", "question_toks": ["List", "language", "and", "number", "of", "TV", "Channel", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0605", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0057", "db_id": "wta_1", "query": "select year, count(*) from matches group by year;", "query_toks": ["select", "year", "from", "matches", "group", "by", "year"], "query_toks_no_value": ["select", "year", "from", "matches", "group", "by", "year"], "question": "Years and number of matches", "question_toks": ["Years", "and", "number", "of", "matches"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0462", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0058", "db_id": "wta_1", "query": "select winner_name , winner_rank_points from matches group by winner_name", "query_toks": ["select", "winner_name", ",", "winner_rank_points", "from", "matches", "group", "by", "winner_name"], "query_toks_no_value": ["select", "winner_name", ",", "winner_rank_points", "from", "matches", "group", "by", "winner_name"], "question": "Names and rank points.", "question_toks": ["Names", "and", "rank", "points", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]]]], "where": [], "groupBy": [[0, 34, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0463", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0059", "db_id": "wta_1", "query": "select country_code from players group by country_code ", "query_toks": ["select", "country_code", "from", "players", "group", "by", "country_code"], "query_toks_no_value": ["select", "country_code", "from", "players", "group", "by", "country_code"], "question": "find the codes of the countries and number of players.", "question_toks": ["find", "the", "codes", "of", "the", "countries", "and", "number", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0475", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "dejoin_from_4_to_3_0000", "db_id": "college_1_minus_1_0", "query": "select t1.emp_fname , t3.prof_office , t2.crs_description , t4.dept_name from class_employee as t1 join course as t2 on t1.crs_code = t2.crs_code join professor as t3 on t1.prof_num = t3.emp_num join department as t4 on t3.dept_code = t4.dept_code", "query_toks": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", ",", "t4.dept_name", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num", "join", "department", "as", "t4", "on", "t3.dept_code", "=", "t4.dept_code"], "query_toks_no_value": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", ",", "t4.dept_name", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num", "join", "department", "as", "t4", "on", "t3.dept_code", "=", "t4.dept_code"], "question": "Find the first names and offices of all instructors who have taught some course and the course description and the department name.", "question_toks": ["Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course", "description", "and", "the", "department", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 27, false], null]], [0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "train_3315", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0001", "db_id": "college_1_minus_1_0", "query": "select t1.emp_fname , t3.prof_office , t2.crs_description , t4.dept_name from class_employee as t1 join course as t2 on t1.crs_code = t2.crs_code join professor as t3 on t1.prof_num = t3.emp_num join department as t4 on t3.dept_code = t4.dept_code", "query_toks": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", ",", "t4.dept_name", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num", "join", "department", "as", "t4", "on", "t3.dept_code", "=", "t4.dept_code"], "query_toks_no_value": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", ",", "t4.dept_name", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num", "join", "department", "as", "t4", "on", "t3.dept_code", "=", "t4.dept_code"], "question": "What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?", "question_toks": ["What", "are", "the", "first", "names", ",", "office", "locations", ",", "and", "departments", "of", "all", "instructors", ",", "and", "also", "what", "are", "the", "descriptions", "of", "the", "courses", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 27, false], null]], [0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "train_3316", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0002", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "what kind of papers does Luke Zettlemoyer publish", "question_toks": ["what", "kind", "of", "papers", "does", "Luke", "Zettlemoyer", "publish"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0675", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0003", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "Keyphrases used by Luke Zettlemoyer", "question_toks": ["Keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0676", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0004", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "What keywords are in papers by Luke Zettlemoyer ?", "question_toks": ["What", "keywords", "are", "in", "papers", "by", "Luke", "Zettlemoyer", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0677", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0005", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keywords used by Luke Zettlemoyer", "question_toks": ["keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0678", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0006", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "what keywords are used by Luke Zettlemoyer", "question_toks": ["what", "keywords", "are", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0679", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0007", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0680", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0008", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keyphrases by Luke Zettlemoyer", "question_toks": ["keyphrases", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0681", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0009", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "give me the keywords used by Luke Zettlemoyer", "question_toks": ["give", "me", "the", "keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0682", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0010", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "What topic does Luke Zettlemoyer write about ?", "question_toks": ["What", "topic", "does", "Luke", "Zettlemoyer", "write", "about", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0683", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0011", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "what topics does Luke Zettlemoyer publish in", "question_toks": ["what", "topics", "does", "Luke", "Zettlemoyer", "publish", "in"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0684", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0012", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keywords in the papers written by Luke Zettlemoyer", "question_toks": ["keywords", "in", "the", "papers", "written", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0685", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0013", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer .", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0686", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0014", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "topics used by Luke Zettlemoyer", "question_toks": ["topics", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0687", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0015", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'sanjeev arora' order by t2.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t2.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "order", "by", "t2.year", "desc"], "question": "recent research interests of sanjeev arora", "question_toks": ["recent", "research", "interests", "of", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0744", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0016", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'sanjeev arora' order by t2.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t2.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "order", "by", "t2.year", "desc"], "question": "recent papers by sanjeev arora", "question_toks": ["recent", "papers", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0745", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0017", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'sanjeev arora' order by t2.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t2.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "order", "by", "t2.year", "desc"], "question": "recent papers written by sanjeev arora", "question_toks": ["recent", "papers", "written", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0746", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0018", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless convolution paper", "question_toks": ["brian", "curless", "convolution", "paper"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0756", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0019", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution by brian curless", "question_toks": ["convolution", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0757", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0020", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers by brian curless about convolution", "question_toks": ["papers", "by", "brian", "curless", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0758", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0021", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless 's paper about convolution", "question_toks": ["brian", "curless", "'s", "paper", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0759", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0022", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What are the papers of brian curless in convolution ?", "question_toks": ["What", "are", "the", "papers", "of", "brian", "curless", "in", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0760", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0023", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers brian curless wrote about convolution", "question_toks": ["papers", "brian", "curless", "wrote", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0761", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0024", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless 's papers on convolution", "question_toks": ["brian", "curless", "'s", "papers", "on", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0762", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0025", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What is the paper about convolution from brian curless ?", "question_toks": ["What", "is", "the", "paper", "about", "convolution", "from", "brian", "curless", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0763", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0026", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers by brian curless in convolution topic", "question_toks": ["papers", "by", "brian", "curless", "in", "convolution", "topic"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0764", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0027", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "I want the papers on keyphrase0 by brian curless", "question_toks": ["I", "want", "the", "papers", "on", "keyphrase0", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0765", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0028", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution papers by brian curless", "question_toks": ["convolution", "papers", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0766", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0029", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What papers has brian curless written on convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "on", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0767", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0030", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What papers has brian curless written about convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "about", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0768", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0031", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution paper by brian curless", "question_toks": ["convolution", "paper", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0769", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0032", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "Does brian curless do convolution ?", "question_toks": ["Does", "brian", "curless", "do", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0770", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0033", "db_id": "scholar_minus_1_1", "query": "select distinct t1.datasetid , t3.year from paperdataset_dataset as t1 join paperkeyphrase as t2 on t1.paperid = t2.paperid join paper as t3 on t1.paperid = t3.paperid join keyphrase as t4 on t2.keyphraseid = t4.keyphraseid where t4.keyphrasename = 'deep learning' order by t3.year asc ;", "query_toks": ["select", "distinct", "t1.datasetid", ",", "t3.year", "from", "paperdataset_dataset", "as", "t1", "join", "paperkeyphrase", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t2.keyphraseid", "=", "t4.keyphraseid", "where", "t4.keyphrasename", "=", "``", "deep", "learning", "''", "order", "by", "t3.year", "asc", ";"], "query_toks_no_value": ["select", "distinct", "t1.datasetid", ",", "t3.year", "from", "paperdataset_dataset", "as", "t1", "join", "paperkeyphrase", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t2.keyphraseid", "=", "t4.keyphraseid", "where", "t4.keyphrasename", "=", "value", "order", "by", "t3.year", "asc"], "question": "what was the first deep learning paper ?", "question_toks": ["what", "was", "the", "first", "deep", "learning", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 6], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0851", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0034", "db_id": "scholar_minus_1_1", "query": "select distinct t1.datasetid , t3.year from paperdataset_dataset as t1 join paperkeyphrase as t2 on t1.paperid = t2.paperid join paper as t3 on t1.paperid = t3.paperid join keyphrase as t4 on t2.keyphraseid = t4.keyphraseid where t4.keyphrasename = 'deep learning' order by t3.year asc ;", "query_toks": ["select", "distinct", "t1.datasetid", ",", "t3.year", "from", "paperdataset_dataset", "as", "t1", "join", "paperkeyphrase", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t2.keyphraseid", "=", "t4.keyphraseid", "where", "t4.keyphrasename", "=", "``", "deep", "learning", "''", "order", "by", "t3.year", "asc", ";"], "query_toks_no_value": ["select", "distinct", "t1.datasetid", ",", "t3.year", "from", "paperdataset_dataset", "as", "t1", "join", "paperkeyphrase", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t2.keyphraseid", "=", "t4.keyphraseid", "where", "t4.keyphrasename", "=", "value", "order", "by", "t3.year", "asc"], "question": "what year was the first deep learning paper published ?", "question_toks": ["what", "year", "was", "the", "first", "deep", "learning", "paper", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 6], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0852", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0035", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t3.citingpaperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join cite as t3 on t2.paperid = t3.citedpaperid join author as t4 on t2.authorid = t4.authorid where t4.authorname = 'dan makumbi' and t1.keyphrasename = 'genetic identity' ;", "query_toks": ["select", "distinct", "count", "(", "t3.citingpaperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "cite", "as", "t3", "on", "t2.paperid", "=", "t3.citedpaperid", "join", "author", "as", "t4", "on", "t2.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "dan", "makumbi", "''", "and", "t1.keyphrasename", "=", "``", "genetic", "identity", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3.citingpaperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "cite", "as", "t3", "on", "t2.paperid", "=", "t3.citedpaperid", "join", "author", "as", "t4", "on", "t2.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many citations does Dan Makumbi 's Genetic Identity paper have ?", "question_toks": ["How", "many", "citations", "does", "Dan", "Makumbi", "'s", "Genetic", "Identity", "paper", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"dan makumbi\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"genetic identity\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0914", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0036", "db_id": "scholar_minus_1_1", "query": "select distinct count ( t2.paperid ) from paperdataset_dataset as t1 join paper as t2 on t1.paperid = t2.paperid join paperkeyphrase as t3 on t2.paperid = t3.paperid join keyphrase as t4 on t3.keyphraseid = t4.keyphraseid where t1.datasetname = 'imagenet' and t4.keyphrasename = 'deep learning' ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paperkeyphrase", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t3.keyphraseid", "=", "t4.keyphraseid", "where", "t1.datasetname", "=", "``", "imagenet", "''", "and", "t4.keyphrasename", "=", "``", "deep", "learning", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paperkeyphrase", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t3.keyphraseid", "=", "t4.keyphraseid", "where", "t1.datasetname", "=", "value", "and", "t4.keyphrasename", "=", "value"], "question": "How many papers related to deep learning cited the dataset ImageNet ?", "question_toks": ["How", "many", "papers", "related", "to", "deep", "learning", "cited", "the", "dataset", "ImageNet", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 8, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"imagenet\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0921", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0037", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorname , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "what are some syntactic parsing papers that chris dyer did not write ?", "question_toks": ["what", "are", "some", "syntactic", "parsing", "papers", "that", "chris", "dyer", "did", "not", "write", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0988", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0038", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorname , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "are there any syntactic parsing papers not written by chris dyer ?", "question_toks": ["are", "there", "any", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0989", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0039", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorname , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "what are syntactic parsing papers not written by chris dyer", "question_toks": ["what", "are", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0990", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0040", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorname , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "syntactic parsing papers not written by chris dyer", "question_toks": ["syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0991", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0041", "db_id": "scholar_minus_1_3", "query": "select distinct count ( t2.citingpaperid ) from writes_author as t1 join cite as t2 on t1.paperid = t2.citingpaperid where t1.authorname = 'michael i. jordan' and t1.authorname = 'dan klein' ;", "query_toks": ["select", "distinct", "count", "(", "t2.citingpaperid", ")", "from", "writes_author", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "where", "t1.authorname", "=", "``", "michael", "i.", "jordan", "''", "and", "t1.authorname", "=", "``", "dan", "klein", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.citingpaperid", ")", "from", "writes_author", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "how many papers by dan klein are cited by michael i. jordan", "question_toks": ["how", "many", "papers", "by", "dan", "klein", "are", "cited", "by", "michael", "i.", "jordan"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 17, false], null]]}, "select": [true, [[3, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael i. jordan\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dan klein\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1032", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0042", "db_id": "scholar_minus_1_3", "query": "select distinct count ( t2.citingpaperid ) from writes_author as t1 join cite as t2 on t1.paperid = t2.citingpaperid where t1.authorname = 'michael i. jordan' and t1.authorname = 'dan klein' ;", "query_toks": ["select", "distinct", "count", "(", "t2.citingpaperid", ")", "from", "writes_author", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "where", "t1.authorname", "=", "``", "michael", "i.", "jordan", "''", "and", "t1.authorname", "=", "``", "dan", "klein", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.citingpaperid", ")", "from", "writes_author", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "how many of dan klein 's papers cite michael i. jordan", "question_toks": ["how", "many", "of", "dan", "klein", "'s", "papers", "cite", "michael", "i.", "jordan"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 17, false], null]]}, "select": [true, [[3, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael i. jordan\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dan klein\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1033", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0043", "db_id": "scholar_minus_1_3", "query": "select distinct t1.authorid from writes_author as t1 where t1.authorname = 'ameet soni' and t1.authorname = 'ras bodik' ;", "query_toks": ["select", "distinct", "t1.authorid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ameet", "soni", "''", "and", "t1.authorname", "=", "``", "ras", "bodik", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "who else was on the paper with Ameet Soni and Ras Bodik ?", "question_toks": ["who", "else", "was", "on", "the", "paper", "with", "Ameet", "Soni", "and", "Ras", "Bodik", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ameet soni\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"ras bodik\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1034", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0044", "db_id": "scholar_minus_1_0", "query": "select distinct t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t1.keyphrasename = 'bacterial wilt' and t2.year = 2016 ;", "query_toks": ["select", "distinct", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t1.keyphrasename", "=", "``", "bacterial", "wilt", "''", "and", "t2.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value"], "question": "What authors wrote papers about Bacterial Wilt in 2016 ?", "question_toks": ["What", "authors", "wrote", "papers", "about", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"bacterial wilt\"", null], "and", [false, 2, [0, [0, 13, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1039", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0045", "db_id": "scholar_minus_1_0", "query": "select distinct t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t1.keyphrasename = 'bacterial wilt' and t2.year = 2016 ;", "query_toks": ["select", "distinct", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t1.keyphrasename", "=", "``", "bacterial", "wilt", "''", "and", "t2.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value"], "question": "Who wrote on the topic of Bacterial Wilt in 2016 ?", "question_toks": ["Who", "wrote", "on", "the", "topic", "of", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"bacterial wilt\"", null], "and", [false, 2, [0, [0, 13, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1040", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0046", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , sum ( t2.numcitedby ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian derenzi' group by t1.keyphrasename order by sum ( t2.numcitedby ) desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t2.numcitedby", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t2.numcitedby", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t2.numcitedby", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t2.numcitedby", ")", "desc"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations ?", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [4, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1091", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0047", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , sum ( t2.numcitedby ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian derenzi' group by t1.keyphrasename order by sum ( t2.numcitedby ) desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t2.numcitedby", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t2.numcitedby", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t2.numcitedby", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t2.numcitedby", ")", "desc"], "question": "main topics of work by Brian DeRenzi", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [4, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1092", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0048", "db_id": "scholar_minus_1_0", "query": "select distinct t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When was Michael Stonebraker GIS Database published ?", "question_toks": ["When", "was", "Michael", "Stonebraker", "GIS", "Database", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1095", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0049", "db_id": "scholar_minus_1_0", "query": "select distinct t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When did Michael Stonebraker publish his GIS Database paper ?", "question_toks": ["When", "did", "Michael", "Stonebraker", "publish", "his", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1096", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0050", "db_id": "scholar_minus_1_0", "query": "select distinct t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When does Michael Stonebraker publish the GIS Database paper ?", "question_toks": ["When", "does", "Michael", "Stonebraker", "publish", "the", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1097", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0051", "db_id": "scholar_minus_1_5", "query": "select distinct t1.keyphraseid from paper_paperkeyphrase as t1 join venue as t2 on t1.venueid = t2.venueid join writes as t3 on t1.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'dan klein' and t2.venuename = 'emnlp' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paper_paperkeyphrase", "as", "t1", "join", "venue", "as", "t2", "on", "t1.venueid", "=", "t2.venueid", "join", "writes", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "dan", "klein", "''", "and", "t2.venuename", "=", "``", "emnlp", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paper_paperkeyphrase", "as", "t1", "join", "venue", "as", "t2", "on", "t1.venueid", "=", "t2.venueid", "join", "writes", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t2.venuename", "=", "value"], "question": "keyphrases used by dan klein in his emnlp papers", "question_toks": ["keyphrases", "used", "by", "dan", "klein", "in", "his", "emnlp", "papers"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 0], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"dan klein\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"emnlp\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1105", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0052", "db_id": "scholar_minus_1_0", "query": "select distinct t2.citingpaperid from paperkeyphrase_keyphrase as t1 join cite as t2 on t1.paperid = t2.citingpaperid join paper as t3 on t2.citedpaperid = t3.paperid join venue as t4 on t3.venueid = t4.venueid where t1.keyphrasename = 'euclidean distance' and t4.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t2.citingpaperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "join", "paper", "as", "t3", "on", "t2.citedpaperid", "=", "t3.paperid", "join", "venue", "as", "t4", "on", "t3.venueid", "=", "t4.venueid", "where", "t1.keyphrasename", "=", "``", "euclidean", "distance", "''", "and", "t4.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.citingpaperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "join", "paper", "as", "t3", "on", "t2.citedpaperid", "=", "t3.paperid", "join", "venue", "as", "t4", "on", "t3.venueid", "=", "t4.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t4.venuename", "=", "value"], "question": "Euclidean Distance papers citing NIPS papers", "question_toks": ["Euclidean", "Distance", "papers", "citing", "NIPS", "papers"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"euclidean distance\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1110", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0053", "db_id": "scholar_minus_1_0", "query": "select distinct t3.title from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join paper as t3 on t2.paperid = t3.paperid join author as t4 on t2.authorid = t4.authorid where t4.authorname like 'ranjit jhala' and t1.keyphrasename = 'liquid haskell' ;", "query_toks": ["select", "distinct", "t3.title", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t2.authorid", "=", "t4.authorid", "where", "t4.authorname", "like", "``", "ranjit", "jhala", "''", "and", "t1.keyphrasename", "=", "``", "liquid", "haskell", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3.title", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t2.authorid", "=", "t4.authorid", "where", "t4.authorname", "like", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What is the name of Ranjit Jhala 's Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "name", "of", "Ranjit", "Jhala", "'s", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"ranjit jhala\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"liquid haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1132", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0054", "db_id": "yelp_minus_1_0", "query": "select t2.text from category_business as t1 join review as t2 on t1.business_id = t2.business_id join user as t3 on t2.user_id = t3.user_id where t1.category_name = 'italian' and t1.category_name = 'category_category_name1' and t3.name = 'michelle' ;", "query_toks": ["select", "t2.text", "from", "category_business", "as", "t1", "join", "review", "as", "t2", "on", "t1.business_id", "=", "t2.business_id", "join", "user", "as", "t3", "on", "t2.user_id", "=", "t3.user_id", "where", "t1.category_name", "=", "``", "italian", "''", "and", "t1.category_name", "=", "``", "category_category_name1", "''", "and", "t3.name", "=", "``", "michelle", "''", ";"], "query_toks_no_value": ["select", "t2.text", "from", "category_business", "as", "t1", "join", "review", "as", "t2", "on", "t1.business_id", "=", "t2.business_id", "join", "user", "as", "t3", "on", "t2.user_id", "=", "t3.user_id", "where", "t1.category_name", "=", "value", "and", "t1.category_name", "=", "value", "and", "t3.name", "=", "value"], "question": "List all the reviews by Michelle for Italian restaurant", "question_toks": ["List", "all", "the", "reviews", "by", "Michelle", "for", "Italian", "restaurant"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"italian\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"category_category_name1\"", null], "and", [false, 2, [0, [0, 15, false], null], "\"michelle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1146", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0055", "db_id": "academic_minus_1_0", "query": "select t1.keyword from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value"], "question": "return me the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1288", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0056", "db_id": "academic_minus_1_0", "query": "select t2.title from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' and t1.keyword = 'user study' ;", "query_toks": ["select", "t2.title", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.keyword", "=", "``", "user", "study", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value", "and", "t1.keyword", "=", "value"], "question": "return me the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"user study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1292", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0057", "db_id": "academic_minus_1_0", "query": "select t4.name from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t1.keyword = 'relational database' ;", "query_toks": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "``", "relational", "database", "''", ";"], "query_toks_no_value": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "value"], "question": "return me the authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"relational database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1295", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0058", "db_id": "academic_minus_1_2", "query": "select t3.title from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join conference as t4 on t3.cid = t4.cid where t4.name = 'vldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "conference", "as", "t4", "on", "t3.cid", "=", "t4.cid", "where", "t4.name", "=", "``", "vldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "conference", "as", "t4", "on", "t3.cid", "=", "t4.cid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me all the papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"vldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1302", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0059", "db_id": "academic_minus_1_2", "query": "select t3.title from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join journal as t4 on t3.jid = t4.jid where t4.name = 'pvldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me all the papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1303", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0060", "db_id": "academic_minus_1_2", "query": "select t3.title from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join journal as t4 on t3.jid = t4.jid where t4.name = 'pvldb' and t1.name_organization = 'university of michigan' and t3.year > 2000 ;", "query_toks": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", "and", "t3.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value", "and", "t3.year", ">", "value"], "question": "return me all the papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null], "and", [false, 3, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1304", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0061", "db_id": "academic_minus_1_0", "query": "select count ( distinct t1.keyword ) from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' ;", "query_toks": ["select", "count", "(", "distinct", "t1.keyword", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.keyword", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value"], "question": "return me the number of the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 19, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1336", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0062", "db_id": "academic_minus_1_0", "query": "select count ( distinct t2.title ) from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' and t1.keyword = 'user study' ;", "query_toks": ["select", "count", "(", "distinct", "t2.title", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.keyword", "=", "``", "user", "study", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2.title", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value", "and", "t1.keyword", "=", "value"], "question": "return me the number of the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"user study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1340", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0063", "db_id": "academic_minus_1_0", "query": "select count ( distinct t4.name ) from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t1.keyword = 'relational database' ;", "query_toks": ["select", "count", "(", "distinct", "t4.name", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "``", "relational", "database", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t4.name", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "value"], "question": "return me the number of authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"relational database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1343", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0064", "db_id": "academic_minus_1_2", "query": "select count ( distinct t3.title ) from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join conference as t4 on t3.cid = t4.cid where t4.name = 'vldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "conference", "as", "t4", "on", "t3.cid", "=", "t4.cid", "where", "t4.name", "=", "``", "vldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "conference", "as", "t4", "on", "t3.cid", "=", "t4.cid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me the number of papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 4, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"vldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1352", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0065", "db_id": "academic_minus_1_2", "query": "select count ( distinct t3.title ) from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join journal as t4 on t3.jid = t4.jid where t4.name = 'pvldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me the number of papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1353", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0066", "db_id": "academic_minus_1_2", "query": "select count ( distinct t3.title ) from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join journal as t4 on t3.jid = t4.jid where t4.name = 'pvldb' and t1.name_organization = 'university of michigan' and t3.year > 2000 ;", "query_toks": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", "and", "t3.year", ">", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value", "and", "t3.year", ">", "value"], "question": "return me the number of papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null], "and", [false, 3, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1354", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0067", "db_id": "academic_minus_1_1", "query": "select t1.name from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t2.year > 2000 ;", "query_toks": ["select", "t1.name", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t2.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t1.name", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t2.year", ">", "value"], "question": "return me the authors who have cooperated with \" H. V. Jagadish \" after 2000 .", "question_toks": ["return", "me", "the", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "after", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 3, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1375", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0068", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1376", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0069", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'yunyao li' and t2.year > 2005 ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "yunyao", "li", "''", "and", "t2.year", ">", "2005", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "and", "t2.year", ">", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Yunyao Li \" after 2005 .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Yunyao", "Li", "``", "after", "2005", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"yunyao li\"", null], "and", [false, 3, [0, [0, 29, false], null], 2005.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1377", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0070", "db_id": "academic_minus_1_1", "query": "select t1.name from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' ;", "query_toks": ["select", "t1.name", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value"], "question": "return me the authors who have cooperated with \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1380", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0071", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' and t2.year < 2000 ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", "and", "t2.year", "<", "2000", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "and", "t2.year", "<", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" before 2000 .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null], "and", [false, 4, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1381", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0072", "db_id": "academic_minus_1_1", "query": "select count ( distinct t2.title ) from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' ;", "query_toks": ["select", "count", "(", "distinct", "t2.title", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2.title", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "return me the number of papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1383", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0073", "db_id": "academic_minus_1_1", "query": "select count ( distinct t2.title ) from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' and t2.year < 2000 ;", "query_toks": ["select", "count", "(", "distinct", "t2.title", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", "and", "t2.year", "<", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2.title", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "and", "t2.year", "<", "value"], "question": "return me the number of papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" before 2000 .", "question_toks": ["return", "me", "the", "number", "of", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null], "and", [false, 4, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1384", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0074", "db_id": "academic_minus_1_1", "query": "select count ( distinct t1.name ) from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' ;", "query_toks": ["select", "count", "(", "distinct", "t1.name", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.name", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value"], "question": "return me the number of authors who have cooperated with \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1386", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0075", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' and t2.citation_num > 200 ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", "and", "t2.citation_num", ">", "200", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "and", "t2.citation_num", ">", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" with more than 200 citations .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "with", "more", "than", "200", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null], "and", [false, 3, [0, [0, 24, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1388", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0076", "db_id": "academic_minus_1_0", "query": "select t4.name from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t1.keyword = 'relational database' group by t4.name order by count ( distinct t2.title ) desc limit 1 ;", "query_toks": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "``", "relational", "database", "''", "group", "by", "t4.name", "order", "by", "count", "(", "distinct", "t2.title", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "value", "group", "by", "t4.name", "order", "by", "count", "(", "distinct", "t2.title", ")", "desc", "limit", "value"], "question": "return me the author who has the most number of papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "author", "who", "has", "the", "most", "number", "of", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"relational database\"", null]], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["desc", [[0, [3, 28, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1389", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0077", "db_id": "academic_minus_1_0", "query": "select t1.keyword from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' group by t1.keyword order by count ( distinct t2.title ) desc limit 1 ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", "group", "by", "t1.keyword", "order", "by", "count", "(", "distinct", "t2.title", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value", "group", "by", "t1.keyword", "order", "by", "count", "(", "distinct", "t2.title", ")", "desc", "limit", "value"], "question": "return me the keyword, which have been contained by the most number of papers by \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keyword", ",", "which", "have", "been", "contained", "by", "the", "most", "number", "of", "papers", "by", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null]], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 28, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1396", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0078", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'divesh srivastava' and t1.name = 'h. v. jagadish' order by t2.citation_num desc limit 1 ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "divesh", "srivastava", "''", "and", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "order", "by", "t2.citation_num", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "order", "by", "t2.citation_num", "desc", "limit", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" with the most number of citations .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "with", "the", "most", "number", "of", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 24, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1399", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0079", "db_id": "academic_minus_1_0", "query": "select t4.name from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t1.keyword = 'relational database' group by t4.name having count ( distinct t2.title ) > 10 ;", "query_toks": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "``", "relational", "database", "''", "group", "by", "t4.name", "having", "count", "(", "distinct", "t2.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "value", "group", "by", "t4.name", "having", "count", "(", "distinct", "t2.title", ")", ">", "value"], "question": "return me the authors who have more than 10 papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "more", "than", "10", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"relational database\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 28, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1415", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0080", "db_id": "academic_minus_1_0", "query": "select t1.keyword from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' group by t1.keyword having count ( distinct t2.title ) > 10 ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", "group", "by", "t1.keyword", "having", "count", "(", "distinct", "t2.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value", "group", "by", "t1.keyword", "having", "count", "(", "distinct", "t2.title", ")", ">", "value"], "question": "return me the keywords, which have been contained by more than 10 papers of \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", ",", "which", "have", "been", "contained", "by", "more", "than", "10", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null]], "groupBy": [[0, 19, false]], "having": [[false, 3, [0, [3, 28, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1420", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0081", "db_id": "imdb_minus_1_2", "query": "select t1.title from movie_made_by as t1 join producer as t2 on t1.pid = t2.pid join written_by as t3 on t1.mid = t3.msid join writer as t4 on t3.wid = t4.wid where t2.name = 'woody allen' and t4.name = 'woody allen' ;", "query_toks": ["select", "t1.title", "from", "movie_made_by", "as", "t1", "join", "producer", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "written_by", "as", "t3", "on", "t1.mid", "=", "t3.msid", "join", "writer", "as", "t4", "on", "t3.wid", "=", "t4.wid", "where", "t2.name", "=", "``", "woody", "allen", "''", "and", "t4.name", "=", "``", "woody", "allen", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "movie_made_by", "as", "t1", "join", "producer", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "written_by", "as", "t3", "on", "t1.mid", "=", "t3.msid", "join", "writer", "as", "t4", "on", "t3.wid", "=", "t4.wid", "where", "t2.name", "=", "value", "and", "t4.name", "=", "value"], "question": "Find all movies written and produced by \" Woody Allen \"", "question_toks": ["Find", "all", "movies", "written", "and", "produced", "by", "``", "Woody", "Allen", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 7], ["table_unit", 13], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null], "and", [false, 2, [0, [0, 64, false], null], [0, 55, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"woody allen\"", null], "and", [false, 2, [0, [0, 57, false], null], "\"woody allen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1457", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0082", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'taraneh alidoosti' and t4.name = 'asghar farhadi' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "taraneh", "alidoosti", "''", "and", "t4.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value", "and", "t4.name", "=", "value"], "question": "Find all movies directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \"", "question_toks": ["Find", "all", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1472", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0083", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'taraneh alidoosti' and t4.name = 'asghar farhadi' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "taraneh", "alidoosti", "''", "and", "t4.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value", "and", "t4.name", "=", "value"], "question": "What are all the movies directed by \" Asghar Farhadi \" featuring \" Taraneh Alidoosti \" ?", "question_toks": ["What", "are", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1473", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0084", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'taraneh alidoosti' and t4.name = 'asghar farhadi' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "taraneh", "alidoosti", "''", "and", "t4.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value", "and", "t4.name", "=", "value"], "question": "How many movies are there that are directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \" ?", "question_toks": ["How", "many", "movies", "are", "there", "that", "are", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1474", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0085", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'taraneh alidoosti' and t4.name = 'asghar farhadi' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "taraneh", "alidoosti", "''", "and", "t4.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value", "and", "t4.name", "=", "value"], "question": "List all the movies directed by \" Asghar Farhadi \" in which \" Taraneh Alidoosti \" played", "question_toks": ["List", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "in", "which", "``", "Taraneh", "Alidoosti", "``", "played"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1475", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0086", "db_id": "imdb_minus_1_1", "query": "select t4.name from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'kate winslet' ;", "query_toks": ["select", "t4.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "kate", "winslet", "''", ";"], "query_toks_no_value": ["select", "t4.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value"], "question": "Find the directors of all movies featuring \" Kate Winslet \"", "question_toks": ["Find", "the", "directors", "of", "all", "movies", "featuring", "``", "Kate", "Winslet", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kate winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1482", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0087", "db_id": "imdb_minus_1_1", "query": "select t4.name from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join made_by as t3 on t2.mid = t3.msid join producer as t4 on t3.pid = t4.pid where t1.name = 'kate winslet' ;", "query_toks": ["select", "t4.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "where", "t1.name", "=", "``", "kate", "winslet", "''", ";"], "query_toks_no_value": ["select", "t4.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "where", "t1.name", "=", "value"], "question": "Find the producers of all movies in which \" Kate Winslet \" is an actor", "question_toks": ["Find", "the", "producers", "of", "all", "movies", "in", "which", "``", "Kate", "Winslet", "``", "is", "an", "actor"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kate winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1483", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0088", "db_id": "imdb_minus_1_0", "query": "select t4.genre from director_directed_by as t1 join movie as t2 on t1.msid = t2.mid join classification as t3 on t2.mid = t3.msid join genre as t4 on t3.gid = t4.gid where t1.name = 'asghar farhadi' ;", "query_toks": ["select", "t4.genre", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "classification", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "genre", "as", "t4", "on", "t3.gid", "=", "t4.gid", "where", "t1.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t4.genre", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "classification", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "genre", "as", "t4", "on", "t3.gid", "=", "t4.gid", "where", "t1.name", "=", "value"], "question": "what are the genres of movies directed by \" Asghar Farhadi \"", "question_toks": ["what", "are", "the", "genres", "of", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1495", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0089", "db_id": "imdb_minus_1_0", "query": "select t1.name from director_directed_by as t1 join movie as t2 on t1.msid = t2.mid join tags as t3 on t2.mid = t3.msid join keyword as t4 on t3.kid = t4.id where t4.keyword = 'nuclear weapons' ;", "query_toks": ["select", "t1.name", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "tags", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "keyword", "as", "t4", "on", "t3.kid", "=", "t4.id", "where", "t4.keyword", "=", "``", "nuclear", "weapons", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "tags", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "keyword", "as", "t4", "on", "t3.kid", "=", "t4.id", "where", "t4.keyword", "=", "value"], "question": "List all the directors of movies about nuclear weapons", "question_toks": ["List", "all", "the", "directors", "of", "movies", "about", "nuclear", "weapons"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 10], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 46, false], null], "and", [false, 2, [0, [0, 47, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 36, false], null], "\"nuclear weapons\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1498", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0090", "db_id": "imdb_minus_1_0", "query": "select count ( distinct t2.title ) from director_directed_by as t1 join movie as t2 on t1.msid = t2.mid join made_by as t3 on t2.mid = t3.msid join producer as t4 on t3.pid = t4.pid where t1.name = 'quentin tarantino' and t2.release_year < 2010 and t2.release_year > 2002 ;", "query_toks": ["select", "count", "(", "distinct", "t2.title", ")", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "where", "t1.name", "=", "``", "quentin", "tarantino", "''", "and", "t2.release_year", "<", "2010", "and", "t2.release_year", ">", "2002", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2.title", ")", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "where", "t1.name", "=", "value", "and", "t2.release_year", "<", "value", "and", "t2.release_year", ">", "value"], "question": "How many movies did \" Quentin Tarantino \" direct before 2002 and after 2010 ?", "question_toks": ["How", "many", "movies", "did", "``", "Quentin", "Tarantino", "``", "direct", "before", "2002", "and", "after", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 27, false], null]]}, "select": [false, [[3, [0, [0, 41, true], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"quentin tarantino\"", null], "and", [false, 4, [0, [0, 42, false], null], 2010.0, null], "and", [false, 3, [0, [0, 42, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1517", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0091", "db_id": "imdb_minus_1_1", "query": "select count ( distinct t1.name ) from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.nationality = 'iran' and t4.name = 'jim jarmusch' ;", "query_toks": ["select", "count", "(", "distinct", "t1.name", ")", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.nationality", "=", "``", "iran", "''", "and", "t4.name", "=", "``", "jim", "jarmusch", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.name", ")", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.nationality", "=", "value", "and", "t4.name", "=", "value"], "question": "find the number of actors from Iran who played in \" Jim Jarmusch \" movies", "question_toks": ["find", "the", "number", "of", "actors", "from", "Iran", "who", "played", "in", "``", "Jim", "Jarmusch", "``", "movies"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"iran\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"jim jarmusch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1519", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0092", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'woody strode' and t1.name = 'jason robards' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "woody", "strode", "''", "and", "t1.name", "=", "``", "jason", "robards", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "Find all movies that star both \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "that", "star", "both", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"woody strode\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"jason robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1521", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0093", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'woody strode' and t1.name = 'jason robards' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "woody", "strode", "''", "and", "t1.name", "=", "``", "jason", "robards", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "Find all movies featuring \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "featuring", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"woody strode\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"jason robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1522", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0094", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'woody strode' and t1.name = 'jason robards' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "woody", "strode", "''", "and", "t1.name", "=", "``", "jason", "robards", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "Find all movies featuring both \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "featuring", "both", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"woody strode\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"jason robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1523", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0095", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'woody strode' and t1.name = 'jason robards' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "woody", "strode", "''", "and", "t1.name", "=", "``", "jason", "robards", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "Find all movies featuring \" Jason Robards \" and \" Woody Strode \"", "question_toks": ["Find", "all", "movies", "featuring", "``", "Jason", "Robards", "``", "and", "``", "Woody", "Strode", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"woody strode\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"jason robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1524", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0096", "db_id": "imdb_minus_1_1", "query": "select t1.name from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'tom hanks' ;", "query_toks": ["select", "t1.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "tom", "hanks", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value"], "question": "Find all actors who acted in the same movie as \" Tom Hanks \"", "question_toks": ["Find", "all", "actors", "who", "acted", "in", "the", "same", "movie", "as", "``", "Tom", "Hanks", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"tom hanks\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1525", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0097", "db_id": "imdb_minus_1_1", "query": "select t1.name from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t4.name = 'quentin tarantino' order by t2.release_year desc limit 1 ;", "query_toks": ["select", "t1.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t4.name", "=", "``", "quentin", "tarantino", "''", "order", "by", "t2.release_year", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t4.name", "=", "value", "order", "by", "t2.release_year", "desc", "limit", "value"], "question": "Find the actors who played in the latest movie by \" Quentin Tarantino \"", "question_toks": ["Find", "the", "actors", "who", "played", "in", "the", "latest", "movie", "by", "``", "Quentin", "Tarantino", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"quentin tarantino\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 42, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1529", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0098", "db_id": "imdb_minus_1_0", "query": "select t4.name from director_directed_by as t1 join movie as t2 on t1.msid = t2.mid join made_by as t3 on t2.mid = t3.msid join producer as t4 on t3.pid = t4.pid group by t4.name order by count ( distinct t1.name ) desc limit 1 ;", "query_toks": ["select", "t4.name", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "group", "by", "t4.name", "order", "by", "count", "(", "distinct", "t1.name", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t4.name", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "group", "by", "t4.name", "order", "by", "count", "(", "distinct", "t1.name", ")", "desc", "limit", "value"], "question": "Which producer has worked with the most number of directors ?", "question_toks": ["Which", "producer", "has", "worked", "with", "the", "most", "number", "of", "directors", "?"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [], "orderBy": ["desc", [[0, [3, 23, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "_DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1532", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0000", "db_id": "bike_1_minus_1_0", "query": "select count ( * ) from station_trip as t1 where t1.city = 'mountain view' and t1.city = 'palo alto'", "query_toks": ["select", "count", "(", "*", ")", "from", "station_trip", "as", "t1", "where", "t1.city", "=", "``", "mountain", "view", "''", "and", "t1.city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "station_trip", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.city", "=", "value"], "question": "How many trips started from Mountain View city and ended at Palo Alto city?", "question_toks": ["How", "many", "trips", "started", "from", "Mountain", "View", "city", "and", "ended", "at", "Palo", "Alto", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"mountain view\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_0209", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0001", "db_id": "bike_1_minus_1_0", "query": "select count ( * ) from station_trip as t1 where t1.city = 'mountain view' and t1.city = 'palo alto'", "query_toks": ["select", "count", "(", "*", ")", "from", "station_trip", "as", "t1", "where", "t1.city", "=", "``", "mountain", "view", "''", "and", "t1.city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "station_trip", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.city", "=", "value"], "question": "How many trips stated from a station in Mountain View and ended at one in Palo Alto?", "question_toks": ["How", "many", "trips", "stated", "from", "a", "station", "in", "Mountain", "View", "and", "ended", "at", "one", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"mountain view\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_0210", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0002", "db_id": "store_1_minus_1_1", "query": "select t1.name from tracks_invoice_lines as t1 join invoices as t2 on t1.invoice_id = t2.id join customers as t3 on t2.customer_id = t3.id where t3.first_name = 'daan' and t3.last_name = 'peeters' ;", "query_toks": ["select", "t1.name", "from", "tracks_invoice_lines", "as", "t1", "join", "invoices", "as", "t2", "on", "t1.invoice_id", "=", "t2.id", "join", "customers", "as", "t3", "on", "t2.customer_id", "=", "t3.id", "where", "t3.first_name", "=", "``", "daan", "''", "and", "t3.last_name", "=", "``", "peeters", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_invoice_lines", "as", "t1", "join", "invoices", "as", "t2", "on", "t1.invoice_id", "=", "t2.id", "join", "customers", "as", "t3", "on", "t2.customer_id", "=", "t3.id", "where", "t3.first_name", "=", "value", "and", "t3.last_name", "=", "value"], "question": "List all tracks bought by customer Daan Peeters.", "question_toks": ["List", "all", "tracks", "bought", "by", "customer", "Daan", "Peeters", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"daan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"peeters\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_0639", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0003", "db_id": "store_1_minus_1_1", "query": "select t1.name from tracks_invoice_lines as t1 join invoices as t2 on t1.invoice_id = t2.id join customers as t3 on t2.customer_id = t3.id where t3.first_name = 'daan' and t3.last_name = 'peeters' ;", "query_toks": ["select", "t1.name", "from", "tracks_invoice_lines", "as", "t1", "join", "invoices", "as", "t2", "on", "t1.invoice_id", "=", "t2.id", "join", "customers", "as", "t3", "on", "t2.customer_id", "=", "t3.id", "where", "t3.first_name", "=", "``", "daan", "''", "and", "t3.last_name", "=", "``", "peeters", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_invoice_lines", "as", "t1", "join", "invoices", "as", "t2", "on", "t1.invoice_id", "=", "t2.id", "join", "customers", "as", "t3", "on", "t2.customer_id", "=", "t3.id", "where", "t3.first_name", "=", "value", "and", "t3.last_name", "=", "value"], "question": "What are the tracks that Dean Peeters bought?", "question_toks": ["What", "are", "the", "tracks", "that", "Dean", "Peeters", "bought", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"daan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"peeters\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_0640", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0004", "db_id": "wedding_minus_1_0", "query": "select t2.name from wedding_people as t1 join church as t2 on t1.church_id = t2.church_id where t1.age > 30 or t1.age > 30", "query_toks": ["select", "t2.name", "from", "wedding_people", "as", "t1", "join", "church", "as", "t2", "on", "t1.church_id", "=", "t2.church_id", "where", "t1.age", ">", "30", "or", "t1.age", ">", "30"], "query_toks_no_value": ["select", "t2.name", "from", "wedding_people", "as", "t1", "join", "church", "as", "t2", "on", "t1.church_id", "=", "t2.church_id", "where", "t1.age", ">", "value", "or", "t1.age", ">", "value"], "question": "Show the church names for the weddings of all people older than 30.", "question_toks": ["Show", "the", "church", "names", "for", "the", "weddings", "of", "all", "people", "older", "than", "30", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 30.0, null], "or", [false, 3, [0, [0, 4, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_1646", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0005", "db_id": "local_govt_in_alabama_minus_1_0", "query": "select t2.service_id , t3.service_type_code from participants_participants_in_events as t1 join events as t2 on t1.event_id = t2.event_id join services as t3 on t2.service_id = t3.service_id group by t2.service_id order by count ( * ) asc limit 1", "query_toks": ["select", "t2.service_id", ",", "t3.service_type_code", "from", "participants_participants_in_events", "as", "t1", "join", "events", "as", "t2", "on", "t1.event_id", "=", "t2.event_id", "join", "services", "as", "t3", "on", "t2.service_id", "=", "t3.service_id", "group", "by", "t2.service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "t2.service_id", ",", "t3.service_type_code", "from", "participants_participants_in_events", "as", "t1", "join", "events", "as", "t2", "on", "t1.event_id", "=", "t2.event_id", "join", "services", "as", "t3", "on", "t2.service_id", "=", "t3.service_id", "group", "by", "t2.service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "Which service id and type has the least number of participants?", "question_toks": ["Which", "service", "id", "and", "type", "has", "the", "least", "number", "of", "participants", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_2147", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0006", "db_id": "college_1_minus_1_1", "query": "select count ( * ) from class_enroll as t1 join course as t2 on t1.crs_code = t2.crs_code join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'accounting'", "query_toks": ["select", "count", "(", "*", ")", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "where", "t3.dept_name", "=", "'accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "where", "t3.dept_name", "=", "value"], "question": "How many students are enrolled in the class taught by some professor from the accounting department?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "the", "class", "taught", "by", "some", "professor", "from", "the", "accounting", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3251", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0007", "db_id": "college_1_minus_1_1", "query": "select count ( * ) from class_enroll as t1 join course as t2 on t1.crs_code = t2.crs_code join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'accounting'", "query_toks": ["select", "count", "(", "*", ")", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "where", "t3.dept_name", "=", "'accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "where", "t3.dept_name", "=", "value"], "question": "How many students are enrolled in some classes that are taught by an accounting professor?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "some", "classes", "that", "are", "taught", "by", "an", "accounting", "professor", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3252", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0008", "db_id": "college_1_minus_1_1", "query": "select t3.dept_name from class_enroll as t1 join course as t2 on t1.crs_code = t2.crs_code join department as t3 on t2.dept_code = t3.dept_code group by t2.dept_code order by count ( * ) desc limit 1", "query_toks": ["select", "t3.dept_name", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "group", "by", "t2.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t3.dept_name", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "group", "by", "t2.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department that has the largest number of students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "that", "has", "the", "largest", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3253", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0009", "db_id": "college_1_minus_1_1", "query": "select t3.dept_name from class_enroll as t1 join course as t2 on t1.crs_code = t2.crs_code join department as t3 on t2.dept_code = t3.dept_code group by t2.dept_code order by count ( * ) desc limit 1", "query_toks": ["select", "t3.dept_name", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "group", "by", "t2.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t3.dept_name", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "group", "by", "t2.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3254", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0010", "db_id": "college_1_minus_1_0", "query": "select t1.emp_fname , t3.prof_office , t2.crs_description from class_employee as t1 join course as t2 on t1.crs_code = t2.crs_code join professor as t3 on t1.prof_num = t3.emp_num", "query_toks": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num"], "query_toks_no_value": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num"], "question": "Find the first names and offices of all instructors who have taught some course and also find the course description.", "question_toks": ["Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "also", "find", "the", "course", "description", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 27, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3313", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0011", "db_id": "college_1_minus_1_0", "query": "select t1.emp_fname , t3.prof_office , t2.crs_description from class_employee as t1 join course as t2 on t1.crs_code = t2.crs_code join professor as t3 on t1.prof_num = t3.emp_num", "query_toks": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num"], "query_toks_no_value": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num"], "question": "What are the first names, office locations of all lecturers who have taught some course?", "question_toks": ["What", "are", "the", "first", "names", ",", "office", "locations", "of", "all", "lecturers", "who", "have", "taught", "some", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 27, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3314", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0012", "db_id": "college_1_minus_1_2", "query": "select t1.stu_fname , t1.stu_lname , t3.crs_description from student_enroll as t1 join class as t2 on t1.class_code = t2.class_code join course as t3 on t2.crs_code = t3.crs_code", "query_toks": ["select", "t1.stu_fname", ",", "t1.stu_lname", ",", "t3.crs_description", "from", "student_enroll", "as", "t1", "join", "class", "as", "t2", "on", "t1.class_code", "=", "t2.class_code", "join", "course", "as", "t3", "on", "t2.crs_code", "=", "t3.crs_code"], "query_toks_no_value": ["select", "t1.stu_fname", ",", "t1.stu_lname", ",", "t3.crs_description", "from", "student_enroll", "as", "t1", "join", "class", "as", "t2", "on", "t1.class_code", "=", "t2.class_code", "join", "course", "as", "t3", "on", "t2.crs_code", "=", "t3.crs_code"], "question": "Find names of all students who took some course and the course description.", "question_toks": ["Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "the", "course", "description", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [0, [0, [0, 31, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3317", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0013", "db_id": "college_1_minus_1_2", "query": "select t1.stu_fname , t1.stu_lname , t3.crs_description from student_enroll as t1 join class as t2 on t1.class_code = t2.class_code join course as t3 on t2.crs_code = t3.crs_code", "query_toks": ["select", "t1.stu_fname", ",", "t1.stu_lname", ",", "t3.crs_description", "from", "student_enroll", "as", "t1", "join", "class", "as", "t2", "on", "t1.class_code", "=", "t2.class_code", "join", "course", "as", "t3", "on", "t2.crs_code", "=", "t3.crs_code"], "query_toks_no_value": ["select", "t1.stu_fname", ",", "t1.stu_lname", ",", "t3.crs_description", "from", "student_enroll", "as", "t1", "join", "class", "as", "t2", "on", "t1.class_code", "=", "t2.class_code", "join", "course", "as", "t3", "on", "t2.crs_code", "=", "t3.crs_code"], "question": "What are the names of all students who took a class and the corresponding course descriptions?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "took", "a", "class", "and", "the", "corresponding", "course", "descriptions", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [0, [0, [0, 31, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3318", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0014", "db_id": "hospital_1_minus_1_0", "query": "select t3.name from stay_patient as t1 join prescribes as t2 on t1.patient = t2.patient join medication as t3 on t2.medication = t3.code where room = 111", "query_toks": ["select", "t3.name", "from", "stay_patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1.patient", "=", "t2.patient", "join", "medication", "as", "t3", "on", "t2.medication", "=", "t3.code", "where", "room", "=", "111"], "query_toks_no_value": ["select", "t3.name", "from", "stay_patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1.patient", "=", "t2.patient", "join", "medication", "as", "t3", "on", "t2.medication", "=", "t3.code", "where", "room", "=", "value"], "question": "Find the name of medication used on the patient who stays in room 111?", "question_toks": ["Find", "the", "name", "of", "medication", "used", "on", "the", "patient", "who", "stays", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 67, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 41, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 58, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3922", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0015", "db_id": "hospital_1_minus_1_0", "query": "select t3.name from stay_patient as t1 join prescribes as t2 on t1.patient = t2.patient join medication as t3 on t2.medication = t3.code where room = 111", "query_toks": ["select", "t3.name", "from", "stay_patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1.patient", "=", "t2.patient", "join", "medication", "as", "t3", "on", "t2.medication", "=", "t3.code", "where", "room", "=", "111"], "query_toks_no_value": ["select", "t3.name", "from", "stay_patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1.patient", "=", "t2.patient", "join", "medication", "as", "t3", "on", "t2.medication", "=", "t3.code", "where", "room", "=", "value"], "question": "What is the name of the medication used for the patient staying in room 111?", "question_toks": ["What", "is", "the", "name", "of", "the", "medication", "used", "for", "the", "patient", "staying", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 67, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 41, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 58, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3923", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0016", "db_id": "network_2_minus_1_0", "query": "select distinct t1.name from personfriend_person as t1 where t1.name = 'alice' and t1.name != 'alice'", "query_toks": ["select", "distinct", "t1.name", "from", "personfriend_person", "as", "t1", "where", "t1.name", "=", "'alice", "'", "and", "t1.name", "!", "=", "'alice", "'"], "query_toks_no_value": ["select", "distinct", "t1.name", "from", "personfriend_person", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name", "!", "=", "value"], "question": "Find Alice's friends of friends.", "question_toks": ["Find", "Alice", "'s", "friends", "of", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 7, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_4482", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0017", "db_id": "network_2_minus_1_0", "query": "select distinct t1.name from personfriend_person as t1 where t1.name = 'alice' and t1.name != 'alice'", "query_toks": ["select", "distinct", "t1.name", "from", "personfriend_person", "as", "t1", "where", "t1.name", "=", "'alice", "'", "and", "t1.name", "!", "=", "'alice", "'"], "query_toks_no_value": ["select", "distinct", "t1.name", "from", "personfriend_person", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name", "!", "=", "value"], "question": "What are the names of all of Alice's friends of friends?", "question_toks": ["What", "are", "the", "names", "of", "all", "of", "Alice", "'s", "friends", "of", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 7, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_4483", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0018", "db_id": "department_store_minus_1_0", "query": "select distinct t1.customer_name from customers_customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_name = 'keyboard'", "query_toks": ["select", "distinct", "t1.customer_name", "from", "customers_customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "``", "keyboard", "''"], "query_toks_no_value": ["select", "distinct", "t1.customer_name", "from", "customers_customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "value"], "question": "List the names of all the distinct customers who bought a keyboard.", "question_toks": ["List", "the", "names", "of", "all", "the", "distinct", "customers", "who", "bought", "a", "keyboard", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 9], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 42, false], null], "and", [false, 2, [0, [0, 43, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"keyboard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_4777", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0019", "db_id": "department_store_minus_1_0", "query": "select distinct t1.customer_name from customers_customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_name = 'keyboard'", "query_toks": ["select", "distinct", "t1.customer_name", "from", "customers_customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "``", "keyboard", "''"], "query_toks_no_value": ["select", "distinct", "t1.customer_name", "from", "customers_customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "value"], "question": "What are the distinct names of customers who have purchased a keyboard?", "question_toks": ["What", "are", "the", "distinct", "names", "of", "customers", "who", "have", "purchased", "a", "keyboard", "?"], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 9], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 42, false], null], "and", [false, 2, [0, [0, 43, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"keyboard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_4778", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0020", "db_id": "products_gen_characteristics_minus_1_0", "query": "select product_name from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'red' and t2.characteristic_name = 'fast'", "query_toks": ["select", "product_name", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "red", "''", "and", "t2.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "and", "t2.characteristic_name", "=", "value"], "question": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".", "question_toks": ["Find", "the", "name", "of", "the", "products", "that", "have", "the", "color", "description", "``", "red", "''", "and", "have", "the", "characteristic", "name", "``", "fast", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5568", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0021", "db_id": "products_gen_characteristics_minus_1_0", "query": "select product_name from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'red' and t2.characteristic_name = 'fast'", "query_toks": ["select", "product_name", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "red", "''", "and", "t2.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "and", "t2.characteristic_name", "=", "value"], "question": "What are the names of the products that have a color description of 'red' and the 'fast' characteristic?", "question_toks": ["What", "are", "the", "names", "of", "the", "products", "that", "have", "a", "color", "description", "of", "'red", "'", "and", "the", "'fast", "'", "characteristic", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5569", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0022", "db_id": "products_gen_characteristics_minus_1_0", "query": "select count ( * ) from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'red' and t2.characteristic_name = 'slow'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "red", "''", "and", "t2.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "and", "t2.characteristic_name", "=", "value"], "question": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\".", "question_toks": ["Find", "the", "number", "of", "the", "products", "that", "have", "their", "color", "described", "as", "``", "red", "''", "and", "have", "a", "characteristic", "named", "``", "slow", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5574", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0023", "db_id": "products_gen_characteristics_minus_1_0", "query": "select count ( * ) from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'red' and t2.characteristic_name = 'slow'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "red", "''", "and", "t2.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "and", "t2.characteristic_name", "=", "value"], "question": "How many products have the color description 'red' and the characteristic name 'slow'?", "question_toks": ["How", "many", "products", "have", "the", "color", "description", "'red", "'", "and", "the", "characteristic", "name", "'slow", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5575", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0024", "db_id": "products_gen_characteristics_minus_1_0", "query": "select count ( * ) from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'white' or t2.characteristic_name = 'hot'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "white", "''", "or", "t2.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "or", "t2.characteristic_name", "=", "value"], "question": "Count the products that have the color description \"white\" or have the characteristic name \"hot\".", "question_toks": ["Count", "the", "products", "that", "have", "the", "color", "description", "``", "white", "''", "or", "have", "the", "characteristic", "name", "``", "hot", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5576", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0025", "db_id": "products_gen_characteristics_minus_1_0", "query": "select count ( * ) from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'white' or t2.characteristic_name = 'hot'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "white", "''", "or", "t2.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "or", "t2.characteristic_name", "=", "value"], "question": "How many products have their color described as 'white' or have a characteristic with the name 'hot'?", "question_toks": ["How", "many", "products", "have", "their", "color", "described", "as", "'white", "'", "or", "have", "a", "characteristic", "with", "the", "name", "'hot", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5577", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0026", "db_id": "tracking_orders_minus_1_0", "query": "select t1.customer_name from customers_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_name = 'food' group by t1.customer_id having count ( * ) >= 1", "query_toks": ["select", "t1.customer_name", "from", "customers_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "``", "food", "''", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "value", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "List the names of the customers who have once bought product \"food\".", "question_toks": ["List", "the", "names", "of", "the", "customers", "who", "have", "once", "bought", "product", "``", "food", "''", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"food\"", null]], "groupBy": [[0, 26, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_6941", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0027", "db_id": "tracking_orders_minus_1_0", "query": "select t1.customer_name from customers_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_name = 'food' group by t1.customer_id having count ( * ) >= 1", "query_toks": ["select", "t1.customer_name", "from", "customers_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "``", "food", "''", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "value", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the customers who bought product \"food\" at least once?", "question_toks": ["What", "are", "the", "names", "of", "the", "customers", "who", "bought", "product", "``", "food", "''", "at", "least", "once", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"food\"", null]], "groupBy": [[0, 26, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_6942", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0028", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers that are coauthored by Peter Mertens and Dina Barbian", "question_toks": ["papers", "that", "are", "coauthored", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0564", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0029", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers written by Peter Mertens and Dina Barbian", "question_toks": ["papers", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0565", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0030", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "what are the papers that have Peter Mertens and Dina Barbian as co-authors", "question_toks": ["what", "are", "the", "papers", "that", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0566", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0031", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers have Peter Mertens and Dina Barbian written ?", "question_toks": ["What", "papers", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0567", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0032", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "what paper did Peter Mertens and Dina Barbian write together ?", "question_toks": ["what", "paper", "did", "Peter", "Mertens", "and", "Dina", "Barbian", "write", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0568", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0033", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Has Peter Mertens and Dina Barbian written a paper together ?", "question_toks": ["Has", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "a", "paper", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0569", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0034", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Papers by Peter Mertens and Dina Barbian", "question_toks": ["Papers", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0570", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0035", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers by authors Peter Mertens and Dina Barbian", "question_toks": ["papers", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0571", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0036", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers were written by authors Peter Mertens and Dina Barbian", "question_toks": ["What", "papers", "were", "written", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0572", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0037", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers by Peter Mertens and Dina Barbian", "question_toks": ["papers", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0573", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0038", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers written by authors Peter Mertens and Dina Barbian", "question_toks": ["papers", "written", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0574", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0039", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "When did Peter Mertens and Dina Barbian collaborate ?", "question_toks": ["When", "did", "Peter", "Mertens", "and", "Dina", "Barbian", "collaborate", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0575", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0040", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "what are the collaborations of Peter Mertens and Dina Barbian ?", "question_toks": ["what", "are", "the", "collaborations", "of", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0576", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0041", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Have Peter Mertens and Dina Barbian written a paper together ?", "question_toks": ["Have", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "a", "paper", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0577", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0042", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Peter Mertens and Dina Barbian as co-authors", "question_toks": ["Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0578", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0043", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Does Peter Mertens ever collaborated with Dina Barbian ?", "question_toks": ["Does", "Peter", "Mertens", "ever", "collaborated", "with", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0579", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0044", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Which papers have Peter Mertens and Dina Barbian as co-authors ?", "question_toks": ["Which", "papers", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0580", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0045", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers coauthored by Peter Mertens and Dina Barbian", "question_toks": ["papers", "coauthored", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0581", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0046", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers have been written by Peter Mertens and Dina Barbian ?", "question_toks": ["What", "papers", "have", "been", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0582", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0047", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers have been written by both Peter Mertens and Dina Barbian ?", "question_toks": ["What", "papers", "have", "been", "written", "by", "both", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0583", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0048", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers have been written by Peter Mertens and Dina Barbian .", "question_toks": ["What", "papers", "have", "been", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0584", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0049", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who has written the most syntactic parsing papers ?", "question_toks": ["who", "has", "written", "the", "most", "syntactic", "parsing", "papers", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0585", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0050", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who is the most published author in syntactic parsing ?", "question_toks": ["who", "is", "the", "most", "published", "author", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0586", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0051", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who has the most publications in syntactic parsing ?", "question_toks": ["who", "has", "the", "most", "publications", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0587", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0052", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who has written the most papers on syntactic parsing ?", "question_toks": ["who", "has", "written", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0588", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0053", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "List prominent scholars in syntactic parsing ?", "question_toks": ["List", "prominent", "scholars", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0589", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0054", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who wrote the most papers on syntactic parsing ?", "question_toks": ["who", "wrote", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0590", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0055", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "Who are the authors with the most published papers in syntactic parsing ?", "question_toks": ["Who", "are", "the", "authors", "with", "the", "most", "published", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0591", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0056", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "top syntactic parsing author", "question_toks": ["top", "syntactic", "parsing", "author"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0592", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0057", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "top author in syntactic parsing", "question_toks": ["top", "author", "in", "syntactic", "parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0593", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0058", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who published the most in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0594", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0059", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who published the most papers in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0595", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0060", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many citation noah a smith has ?", "question_toks": ["How", "many", "citation", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0596", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0061", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "noah a smith citation count", "question_toks": ["noah", "a", "smith", "citation", "count"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0597", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0062", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "how many citations does noah a smith have ?", "question_toks": ["how", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0598", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0063", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many citations does noah a smith have ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0599", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0064", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "number of citations of noah a smith", "question_toks": ["number", "of", "citations", "of", "noah", "a", "smith"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0600", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0065", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many citations does noah a smith have", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0601", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0066", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many times was noah a smith cited ?", "question_toks": ["How", "many", "times", "was", "noah", "a", "smith", "cited", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0602", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0067", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many citations does noah a smith has ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0603", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0068", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers did David M. Blei publish at AISTATS ?", "question_toks": ["How", "many", "papers", "did", "David", "M.", "Blei", "publish", "at", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0643", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0069", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS ?", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0644", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0070", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers has David M. Blei published in AISTATS ?", "question_toks": ["How", "many", "papers", "has", "David", "M.", "Blei", "published", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0645", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0071", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many papers does David M. Blei have at AISTATS", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "at", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0646", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0072", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many papers does David M. Blei have in AISTATS ?", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0647", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0073", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many David M. Blei papers are in AISTATS ?", "question_toks": ["how", "many", "David", "M.", "Blei", "papers", "are", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0648", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0074", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers David M. Blei has in AISTATS ?", "question_toks": ["How", "many", "papers", "David", "M.", "Blei", "has", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0649", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0075", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0650", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0076", "db_id": "scholar_minus_1_1", "query": "select distinct t2.paperid from paperdataset_dataset as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.datasetname = 'rgb-d object paperdataset_dataset' and t2.title = 'class consistent multi-modal fusion with binary features' and t2.year = 2016 and t3.venuename = 'cvpr' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.datasetname", "=", "``", "rgb-d", "object", "paperdataset_dataset", "''", "and", "t2.title", "=", "``", "class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "and", "t2.year", "=", "2016", "and", "t3.venuename", "=", "``", "cvpr", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.datasetname", "=", "value", "and", "t2.title", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What papers were published at CVPR in 2016 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "in", "2016", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"rgb-d object paperdataset_dataset\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 13, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"cvpr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0657", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0077", "db_id": "scholar_minus_1_1", "query": "select distinct t2.paperid from paperdataset_dataset as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.datasetname = 'rgb-d object paperdataset_dataset' and t2.title = 'class consistent multi-modal fusion with binary features' and t2.year = 2016 and t3.venuename = 'cvpr' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.datasetname", "=", "``", "rgb-d", "object", "paperdataset_dataset", "''", "and", "t2.title", "=", "``", "class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "and", "t2.year", "=", "2016", "and", "t3.venuename", "=", "``", "cvpr", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.datasetname", "=", "value", "and", "t2.title", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What papers were published at CVPR '16 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "'16", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"rgb-d object paperdataset_dataset\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 13, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"cvpr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0658", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0078", "db_id": "scholar_minus_1_0", "query": "select distinct count ( distinct t2.paperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers by Ed Desmond contain the keyphrases Semantic Parsing ?", "question_toks": ["How", "many", "papers", "by", "Ed", "Desmond", "contain", "the", "keyphrases", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 22, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0696", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0079", "db_id": "scholar_minus_1_0", "query": "select distinct count ( distinct t2.paperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers does Ed Desmond have in Semantic Parsing area ?", "question_toks": ["How", "many", "papers", "does", "Ed", "Desmond", "have", "in", "Semantic", "Parsing", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 22, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0697", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0080", "db_id": "scholar_minus_1_0", "query": "select distinct count ( distinct t2.paperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many Semantic Parsing papers has Ed Desmond written ?", "question_toks": ["How", "many", "Semantic", "Parsing", "papers", "has", "Ed", "Desmond", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 22, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0698", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0081", "db_id": "scholar_minus_1_0", "query": "select distinct count ( distinct t2.paperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many paper has Ed Desmond written about Semantic Parsing ?", "question_toks": ["How", "many", "paper", "has", "Ed", "Desmond", "written", "about", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 22, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0699", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0082", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "acl papers in 2012 on Parsing", "question_toks": ["acl", "papers", "in", "2012", "on", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0704", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0083", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What papers were published in acl in 2012 about Parsing ?", "question_toks": ["What", "papers", "were", "published", "in", "acl", "in", "2012", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0705", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0084", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "papers on Parsing appeared at acl last year", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "last", "year"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0706", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0085", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "Parsing papers from acl 2012", "question_toks": ["Parsing", "papers", "from", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0707", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0086", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "papers about Parsing in acl 2012", "question_toks": ["papers", "about", "Parsing", "in", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0708", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0087", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "acl papers in 2012 in Parsing", "question_toks": ["acl", "papers", "in", "2012", "in", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0709", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0088", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "acl papers in 2012 about Parsing", "question_toks": ["acl", "papers", "in", "2012", "about", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0710", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0089", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What papers were published at acl in 2012 were about Parsing ?", "question_toks": ["What", "papers", "were", "published", "at", "acl", "in", "2012", "were", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0711", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0090", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "papers on Parsing appeared at acl in 2012", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "in", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0712", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0091", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "how many Parsing papers did acl 2012 have ?", "question_toks": ["how", "many", "Parsing", "papers", "did", "acl", "2012", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0713", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0092", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "who published Parsing papers at acl 2012", "question_toks": ["who", "published", "Parsing", "papers", "at", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0714", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0093", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "which papers in acl 2012 had Parsing in them ?", "question_toks": ["which", "papers", "in", "acl", "2012", "had", "Parsing", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0715", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0094", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "what were some Parsing based papers in acl 2012 ?", "question_toks": ["what", "were", "some", "Parsing", "based", "papers", "in", "acl", "2012", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0716", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0095", "db_id": "scholar_minus_1_5", "query": "select distinct t1.keyphraseid , t1.year from paper_paperkeyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'luke s zettlemoyer' order by t1.year , t1.keyphraseid ;", "query_toks": ["select", "distinct", "t1.keyphraseid", ",", "t1.year", "from", "paper_paperkeyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "luke", "s", "zettlemoyer", "''", "order", "by", "t1.year", ",", "t1.keyphraseid", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", ",", "t1.year", "from", "paper_paperkeyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "order", "by", "t1.year", ",", "t1.keyphraseid"], "question": "keyphrases used by Luke S Zettlemoyer for each year", "question_toks": ["keyphrases", "used", "by", "Luke", "S", "Zettlemoyer", "for", "each", "year"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke s zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null], [0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0743", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0096", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2014 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2014", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "how many parsing papers in ACL 2014", "question_toks": ["how", "many", "parsing", "papers", "in", "ACL", "2014"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0753", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0097", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2014 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2014", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "how many parsing papers appeared in the proceeeding of ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "appeared", "in", "the", "proceeeding", "of", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0754", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0098", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2014 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2014", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "how many parsing papers were published at ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "were", "published", "at", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0755", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0099", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'tail' and t3.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "tail", "''", "and", "t3.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What TAIL paper published in NIPS ?", "question_toks": ["What", "TAIL", "paper", "published", "in", "NIPS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"tail\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0787", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0100", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'tail' and t3.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "tail", "''", "and", "t3.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t3.venuename", "=", "value"], "question": "List the papers on TAIL that were published in NIPS", "question_toks": ["List", "the", "papers", "on", "TAIL", "that", "were", "published", "in", "NIPS"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"tail\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0788", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0000", "db_id": "pets_1_minus_1_0", "query": "select count ( * ) from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t1.sex = 'f' and t2.pettype = 'dog'", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t1.sex", "=", "'f", "'", "and", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t1.sex", "=", "value", "and", "t2.pettype", "=", "value"], "question": "Find the number of dog pets that are raised by female students (with sex F).", "question_toks": ["Find", "the", "number", "of", "dog", "pets", "that", "are", "raised", "by", "female", "students", "(", "with", "sex", "F", ")", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0053", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0001", "db_id": "pets_1_minus_1_0", "query": "select count ( * ) from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t1.sex = 'f' and t2.pettype = 'dog'", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t1.sex", "=", "'f", "'", "and", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t1.sex", "=", "value", "and", "t2.pettype", "=", "value"], "question": "How many dog pets are raised by female students?", "question_toks": ["How", "many", "dog", "pets", "are", "raised", "by", "female", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0054", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0002", "db_id": "pets_1_minus_1_0", "query": "select distinct t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' or t2.pettype = 'dog'", "query_toks": ["select", "distinct", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", "or", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "distinct", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "or", "t2.pettype", "=", "value"], "question": "Find the first name of students who have cat or dog pet.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "cat", "or", "dog", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0057", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0003", "db_id": "pets_1_minus_1_0", "query": "select distinct t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' or t2.pettype = 'dog'", "query_toks": ["select", "distinct", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", "or", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "distinct", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "or", "t2.pettype", "=", "value"], "question": "What are the first names of every student who has a cat or dog as a pet?", "question_toks": ["What", "are", "the", "first", "names", "of", "every", "student", "who", "has", "a", "cat", "or", "dog", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0058", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0004", "db_id": "pets_1_minus_1_0", "query": "select t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' intersect select t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'dog'", "query_toks": ["select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "\"cat\"", "intersect", "select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "\"dog\""], "query_toks_no_value": ["select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "intersect", "select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value"], "question": "Find the first name of students who have both cat and dog pets .", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "both", "cat", "and", "dog", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0059", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0005", "db_id": "pets_1_minus_1_0", "query": "select t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' intersect select t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'dog'", "query_toks": ["select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", "intersect", "select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "intersect", "select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value"], "question": "What are the students' first names who have both cats and dogs as pets?", "question_toks": ["What", "are", "the", "students", "'", "first", "names", "who", "have", "both", "cats", "and", "dogs", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0060", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0006", "db_id": "pets_1_minus_1_0", "query": "select stuid from student_has_pet except select t1.stuid from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat'", "query_toks": ["select", "stuid", "from", "student_has_pet", "except", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "stuid", "from", "student_has_pet", "except", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value"], "question": "Find the id of students who do not have a cat pet.", "question_toks": ["Find", "the", "id", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0063", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0007", "db_id": "pets_1_minus_1_0", "query": "select stuid from student_has_pet except select t1.stuid from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat'", "query_toks": ["select", "stuid", "from", "student_has_pet", "except", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "stuid", "from", "student_has_pet", "except", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value"], "question": "What are the ids of the students who do not own cats as pets?", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "who", "do", "not", "own", "cats", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0064", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0008", "db_id": "pets_1_minus_1_0", "query": "select t1.fname , t1.age from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'dog' and t1.stuid not in ( select t1.stuid from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' )", "query_toks": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'dog", "'", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", ")"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", ")"], "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "as", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0065", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0009", "db_id": "pets_1_minus_1_0", "query": "select t1.fname , t1.age from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'dog' and t1.stuid not in ( select t1.stuid from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' )", "query_toks": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'dog", "'", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", ")"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", ")"], "question": "What is the first name of every student who has a dog but does not have a cat?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "but", "does", "not", "have", "a", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0066", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0010", "db_id": "pets_1_minus_1_0", "query": "select t1.lname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pet_age = 3 and t2.pettype = 'cat'", "query_toks": ["select", "t1.lname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pet_age", "=", "3", "and", "t2.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "t1.lname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pet_age", "=", "value", "and", "t2.pettype", "=", "value"], "question": "Find the last name of the student who has a cat that is age 3.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "age", "3", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 3.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0083", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0011", "db_id": "pets_1_minus_1_0", "query": "select t1.lname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pet_age = 3 and t2.pettype = 'cat'", "query_toks": ["select", "t1.lname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pet_age", "=", "3", "and", "t2.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "t1.lname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pet_age", "=", "value", "and", "t2.pettype", "=", "value"], "question": "What is the last name of the student who has a cat that is 3 years old?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "3", "years", "old", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 3.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0084", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0012", "db_id": "car_1_minus_1_5", "query": "select distinct t1.model from model_list_car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.year > 1980 ;", "query_toks": ["select", "distinct", "t1.model", "from", "model_list_car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1.makeid", "=", "t2.id", "where", "t2.year", ">", "1980", ";"], "query_toks_no_value": ["select", "distinct", "t1.model", "from", "model_list_car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1.makeid", "=", "t2.id", "where", "t2.year", ">", "value"], "question": "Which distinct car models are the produced after 1980?", "question_toks": ["Which", "distinct", "car", "models", "are", "the", "produced", "after", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0103", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0013", "db_id": "car_1_minus_1_5", "query": "select distinct t1.model from model_list_car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.year > 1980 ;", "query_toks": ["select", "distinct", "t1.model", "from", "model_list_car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1.makeid", "=", "t2.id", "where", "t2.year", ">", "1980", ";"], "query_toks_no_value": ["select", "distinct", "t1.model", "from", "model_list_car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1.makeid", "=", "t2.id", "where", "t2.year", ">", "value"], "question": "What are the different models for the cards produced after 1980?", "question_toks": ["What", "are", "the", "different", "models", "for", "the", "cards", "produced", "after", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0104", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0014", "db_id": "car_1_minus_1_2", "query": "select t1.continent_continents , count ( * ) from continents_countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.continent_continents ;", "query_toks": ["select", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.continent_continents", ";"], "query_toks_no_value": ["select", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.continent_continents"], "question": "How many car makers are there in each continents? List the continent name and the count.", "question_toks": ["How", "many", "car", "makers", "are", "there", "in", "each", "continents", "?", "List", "the", "continent", "name", "and", "the", "count", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0105", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0015", "db_id": "car_1_minus_1_2", "query": "select t1.continent_continents , count ( * ) from continents_countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.continent_continents ;", "query_toks": ["select", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.continent_continents", ";"], "query_toks_no_value": ["select", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.continent_continents"], "question": "What is the name of each continent and how many car makers are there in each one?", "question_toks": ["What", "is", "the", "name", "of", "each", "continent", "and", "how", "many", "car", "makers", "are", "there", "in", "each", "one", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0106", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0016", "db_id": "car_1_minus_1_1", "query": "select count ( * ) from model_list_car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'usa' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "model_list_car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1.country", "=", "t2.countryid", "where", "t2.countryname", "=", "'usa", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "model_list_car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1.country", "=", "t2.countryid", "where", "t2.countryname", "=", "value"], "question": "How many car models are produced in the usa?", "question_toks": ["How", "many", "car", "models", "are", "produced", "in", "the", "usa", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0115", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0017", "db_id": "car_1_minus_1_1", "query": "select count ( * ) from model_list_car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'usa' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "model_list_car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1.country", "=", "t2.countryid", "where", "t2.countryname", "=", "'usa", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "model_list_car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1.country", "=", "t2.countryid", "where", "t2.countryname", "=", "value"], "question": "What is the count of the car models produced in the United States?", "question_toks": ["What", "is", "the", "count", "of", "the", "car", "models", "produced", "in", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0116", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0018", "db_id": "car_1_minus_1_0", "query": "select t1.countryname from countries_continents as t1 join car_makers as t2 on t1.countryid = t2.country where t1.continent_continents = 'europe' group by t1.countryname having count ( * ) >= 3 ;", "query_toks": ["select", "t1.countryname", "from", "countries_continents", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "where", "t1.continent_continents", "=", "'europe", "'", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "3", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "countries_continents", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "where", "t1.continent_continents", "=", "value", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which countries in europe have at least 3 car manufacturers?", "question_toks": ["Which", "countries", "in", "europe", "have", "at", "least", "3", "car", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"europe\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0129", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0019", "db_id": "car_1_minus_1_0", "query": "select t1.countryname from countries_continents as t1 join car_makers as t2 on t1.countryid = t2.country where t1.continent_continents = 'europe' group by t1.countryname having count ( * ) >= 3 ;", "query_toks": ["select", "t1.countryname", "from", "countries_continents", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "where", "t1.continent_continents", "=", "'europe", "'", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "3", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "countries_continents", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "where", "t1.continent_continents", "=", "value", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of all European countries with at least 3 manufacturers?", "question_toks": ["What", "are", "the", "names", "of", "all", "European", "countries", "with", "at", "least", "3", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"europe\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0130", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0020", "db_id": "car_1_minus_1_4", "query": "select t1.id , t1.maker_car_makers from car_makers_model_list as t1 group by t1.id having count ( * ) >= 2 intersect select t1.id , t1.maker_car_makers from car_makers_model_list as t1 join car_names as t2 on t1.model = t2.model group by t1.id having count ( * ) > 3 ;", "query_toks": ["select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">=", "2", "intersect", "select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1.model", "=", "t2.model", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "3", ";"], "query_toks_no_value": ["select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1.model", "=", "t2.model", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "question_toks": ["Which", "are", "the", "car", "makers", "which", "produce", "at", "least", "2", "models", "and", "more", "than", "3", "car", "makers", "?", "List", "the", "id", "and", "the", "maker", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0175", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0021", "db_id": "car_1_minus_1_4", "query": "select t1.id , t1.maker_car_makers from car_makers_model_list as t1 group by t1.id having count ( * ) >= 2 intersect select t1.id , t1.maker_car_makers from car_makers_model_list as t1 join car_names as t2 on t1.model = t2.model group by t1.id having count ( * ) > 3 ;", "query_toks": ["select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "=", "2", "intersect", "select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1.model", "=", "t2.model", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "3", ";"], "query_toks_no_value": ["select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1.model", "=", "t2.model", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", "question_toks": ["What", "are", "the", "ids", "and", "makers", "of", "all", "car", "makers", "that", "produce", "at", "least", "2", "models", "and", "make", "more", "than", "3", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0176", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0022", "db_id": "car_1_minus_1_3", "query": "select t1.countryid , t1.countryname from countries_car_makers as t1 group by t1.countryid having count ( * ) > 3 union select t1.countryid , t1.countryname from countries_car_makers as t1 join model_list as t2 on t1.id = t2.maker where t2.model = 'fiat' ;", "query_toks": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "3", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "where", "t2.model", "=", "'fiat", "'", ";"], "query_toks_no_value": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "where", "t2.model", "=", "value"], "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0023", "db_id": "car_1_minus_1_3", "query": "select t1.countryid , t1.countryname from countries_car_makers as t1 group by t1.countryid having count ( * ) > 3 union select t1.countryid , t1.countryname from countries_car_makers as t1 join model_list as t2 on t1.id = t2.maker where t2.model = 'fiat' ;", "query_toks": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "3", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "where", "t2.model", "=", "\"fiat\"", ";"], "query_toks_no_value": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "where", "t2.model", "=", "value"], "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0024", "db_id": "flight_2_minus_1_0", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'ashley' and t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "ashley", "''", "and", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.city", "=", "value"], "question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "'Aberdeen", "'", "and", "have", "destination", "City", "'Ashley", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"ashley\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0211", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0025", "db_id": "flight_2_minus_1_0", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'ashley' and t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "ashley", "''", "and", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.city", "=", "value"], "question": "How many flights fly from Aberdeen to Ashley?", "question_toks": ["How", "many", "flights", "fly", "from", "Aberdeen", "to", "Ashley", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"ashley\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0212", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0026", "db_id": "flight_2_minus_1_0", "query": "select count ( * ) from flights_airports as t1 join airlines as t2 on t1.airline = t2.uid where t1.city = 'aberdeen' and t2.airline = 'united airlines'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "join", "airlines", "as", "t2", "on", "t1.airline", "=", "t2.uid", "where", "t1.city", "=", "``", "aberdeen", "''", "and", "t2.airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "join", "airlines", "as", "t2", "on", "t1.airline", "=", "t2.uid", "where", "t1.city", "=", "value", "and", "t2.airline", "=", "value"], "question": "How many United Airlines flights go to City 'Aberdeen'?", "question_toks": ["How", "many", "United", "Airlines", "flights", "go", "to", "City", "'Aberdeen", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0219", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0027", "db_id": "flight_2_minus_1_0", "query": "select count ( * ) from flights_airports as t1 join airlines as t2 on t1.airline = t2.uid where t1.city = 'aberdeen' and t2.airline = 'united airlines'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "join", "airlines", "as", "t2", "on", "t1.airline", "=", "t2.uid", "where", "t1.city", "=", "``", "aberdeen", "''", "and", "t2.airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "join", "airlines", "as", "t2", "on", "t1.airline", "=", "t2.uid", "where", "t1.city", "=", "value", "and", "t2.airline", "=", "value"], "question": "Count the number of United Airlines flights that arrive in Aberdeen.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "that", "arrive", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0220", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0028", "db_id": "cre_Doc_Template_Mgt_minus_1_0", "query": "select distinct t1.template_type_description from ref_template_types_templates as t1 join documents as t2 on t1.template_id = t2.template_id", "query_toks": ["select", "distinct", "t1.template_type_description", "from", "ref_template_types_templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1.template_id", "=", "t2.template_id"], "query_toks_no_value": ["select", "distinct", "t1.template_type_description", "from", "ref_template_types_templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1.template_id", "=", "t2.template_id"], "question": "What are the distinct template type descriptions for the templates ever used by any document?", "question_toks": ["What", "are", "the", "distinct", "template", "type", "descriptions", "for", "the", "templates", "ever", "used", "by", "any", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0353", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0029", "db_id": "cre_Doc_Template_Mgt_minus_1_0", "query": "select distinct t1.template_type_description from ref_template_types_templates as t1 join documents as t2 on t1.template_id = t2.template_id", "query_toks": ["select", "distinct", "t1.template_type_description", "from", "ref_template_types_templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1.template_id", "=", "t2.template_id"], "query_toks_no_value": ["select", "distinct", "t1.template_type_description", "from", "ref_template_types_templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1.template_id", "=", "t2.template_id"], "question": "Return the different descriptions for templates that have been used in a document.", "question_toks": ["Return", "the", "different", "descriptions", "for", "templates", "that", "have", "been", "used", "in", "a", "document", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0354", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0030", "db_id": "course_teach_minus_1_0", "query": "select t2.name , t1.course from course_arrange_course as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id", "query_toks": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id"], "query_toks_no_value": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id"], "question": "Show names of teachers and the courses they are arranged to teach.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0399", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0031", "db_id": "course_teach_minus_1_0", "query": "select t2.name , t1.course from course_arrange_course as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id", "query_toks": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id"], "query_toks_no_value": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id"], "question": "What is the name of each teacher and what course they teach?", "question_toks": ["What", "is", "the", "name", "of", "each", "teacher", "and", "what", "course", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0400", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0032", "db_id": "course_teach_minus_1_0", "query": "select t2.name , t1.course from course_arrange_course as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id order by t2.name", "query_toks": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id", "order", "by", "t2.name"], "query_toks_no_value": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id", "order", "by", "t2.name"], "question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "in", "ascending", "alphabetical", "order", "of", "the", "teacher", "'s", "name", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0401", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0033", "db_id": "course_teach_minus_1_0", "query": "select t2.name , t1.course from course_arrange_course as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id order by t2.name", "query_toks": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id", "order", "by", "t2.name"], "query_toks_no_value": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id", "order", "by", "t2.name"], "question": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "and", "the", "courses", "they", "teach", "in", "ascending", "alphabetical", "order", "by", "the", "name", "of", "the", "teacher", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0402", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0034", "db_id": "museum_visit_minus_1_0", "query": "select t1.name from visitor_visit as t1 join museum as t2 on t1.museum_id = t2.museum_id where t2.open_year < 2009 intersect select t1.name from visitor_visit as t1 join museum as t2 on t1.museum_id = t2.museum_id where t2.open_year > 2011", "query_toks": ["select", "t1.name", "from", "visitor_visit", "as", "t1", "join", "museum", "as", "t2", "on", "t1.museum_id", "=", "t2.museum_id", "where", "t2.open_year", "<", "2009", "intersect", "select", "t1.name", "from", "visitor_visit", "as", "t1", "join", "museum", "as", "t2", "on", "t1.museum_id", "=", "t2.museum_id", "where", "t2.open_year", ">", "2011"], "query_toks_no_value": ["select", "t1.name", "from", "visitor_visit", "as", "t1", "join", "museum", "as", "t2", "on", "t1.museum_id", "=", "t2.museum_id", "where", "t2.open_year", "<", "value", "intersect", "select", "t1.name", "from", "visitor_visit", "as", "t1", "join", "museum", "as", "t2", "on", "t1.museum_id", "=", "t2.museum_id", "where", "t2.open_year", ">", "value"], "question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "question_toks": ["What", "is", "the", "name", "of", "the", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "2009", "and", "a", "museum", "opened", "after", "2011", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0426", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0035", "db_id": "dog_kennels_minus_1_0", "query": "select t1.owner_id , t1.last_name from owners_dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0936", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0036", "db_id": "dog_kennels_minus_1_0", "query": "select t1.owner_id , t1.last_name from owners_dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "the", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0937", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0037", "db_id": "dog_kennels_minus_1_0", "query": "select t1.owner_id , t1.zip_code from owners_dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id group by t1.owner_id order by sum ( t2.cost_of_treatment ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t2.cost_of_treatment", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t2.cost_of_treatment", ")", "desc", "limit", "value"], "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "question_toks": ["Which", "owner", "has", "paid", "the", "largest", "amount", "of", "money", "in", "total", "for", "their", "dogs", "?", "Show", "the", "owner", "id", "and", "zip", "code", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [4, 47, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0940", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0038", "db_id": "dog_kennels_minus_1_0", "query": "select t1.owner_id , t1.zip_code from owners_dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id group by t1.owner_id order by sum ( t2.cost_of_treatment ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t2.cost_of_treatment", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t2.cost_of_treatment", ")", "desc", "limit", "value"], "question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "owner", "id", "and", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [4, 47, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0941", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0039", "db_id": "student_assessment_minus_1_0", "query": "select t2.course_name , count ( * ) from students_student_course_registrations as t1 join courses as t2 on t1.course_id = t2.course_id group by t1.course_id", "query_toks": ["select", "t2.course_name", ",", "count", "(", "*", ")", "from", "students_student_course_registrations", "as", "t1", "join", "courses", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "group", "by", "t1.course_id"], "query_toks_no_value": ["select", "t2.course_name", ",", "count", "(", "*", ")", "from", "students_student_course_registrations", "as", "t1", "join", "courses", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "group", "by", "t1.course_id"], "question": "How many registed students do each course have? List course name and the number of their registered students?", "question_toks": ["How", "many", "registed", "students", "do", "each", "course", "have", "?", "List", "course", "name", "and", "the", "number", "of", "their", "registered", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 26, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 26, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0081", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0040", "db_id": "student_assessment_minus_1_0", "query": "select t2.course_name , count ( * ) from students_student_course_registrations as t1 join courses as t2 on t1.course_id = t2.course_id group by t1.course_id", "query_toks": ["select", "t2.course_name", ",", "count", "(", "*", ")", "from", "students_student_course_registrations", "as", "t1", "join", "courses", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "group", "by", "t1.course_id"], "query_toks_no_value": ["select", "t2.course_name", ",", "count", "(", "*", ")", "from", "students_student_course_registrations", "as", "t1", "join", "courses", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "group", "by", "t1.course_id"], "question": "For each course id, how many students are registered and what are the course names?", "question_toks": ["For", "each", "course", "id", ",", "how", "many", "students", "are", "registered", "and", "what", "are", "the", "course", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 26, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 26, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0082", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0041", "db_id": "student_assessment_minus_1_1", "query": "select distinct t1.city from addresses_people_addresses as t1 join students as t2 on t1.person_id = t2.student_id", "query_toks": ["select", "distinct", "t1.city", "from", "addresses_people_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1.person_id", "=", "t2.student_id"], "query_toks_no_value": ["select", "distinct", "t1.city", "from", "addresses_people_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1.person_id", "=", "t2.student_id"], "question": "Find distinct cities of address of students?", "question_toks": ["Find", "distinct", "cities", "of", "address", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 15, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0093", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0042", "db_id": "student_assessment_minus_1_1", "query": "select distinct t1.city from addresses_people_addresses as t1 join students as t2 on t1.person_id = t2.student_id", "query_toks": ["select", "distinct", "t1.city", "from", "addresses_people_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1.person_id", "=", "t2.student_id"], "query_toks_no_value": ["select", "distinct", "t1.city", "from", "addresses_people_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1.person_id", "=", "t2.student_id"], "question": "What are the different cities where students live?", "question_toks": ["What", "are", "the", "different", "cities", "where", "students", "live", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 15, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0094", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0043", "db_id": "flight_1_minus_1_0", "query": "select t1.name from employee_certificate as t1 join aircraft as t2 on t1.aid = t2.aid where t2.distance > 5000 group by t1.eid order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "employee_certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1.aid", "=", "t2.aid", "where", "t2.distance", ">", "5000", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "employee_certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1.aid", "=", "t2.aid", "where", "t2.distance", ">", "value", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?", "question_toks": ["What", "is", "the", "salary", "and", "name", "of", "the", "employee", "who", "has", "the", "most", "number", "of", "certificates", "on", "aircrafts", "with", "distance", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0437", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0044", "db_id": "flight_1_minus_1_0", "query": "select t1.name from employee_certificate as t1 join aircraft as t2 on t1.aid = t2.aid where t2.distance > 5000 group by t1.eid order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "employee_certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1.aid", "=", "t2.aid", "where", "t2.distance", ">", "5000", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "employee_certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1.aid", "=", "t2.aid", "where", "t2.distance", ">", "value", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salaray and name of the employee with the most certificates to fly planes more than 5000?", "question_toks": ["What", "is", "the", "salaray", "and", "name", "of", "the", "employee", "with", "the", "most", "certificates", "to", "fly", "planes", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0438", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0045", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' ;", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "``", "movies", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "List the name of all tracks in the playlists of Movies.", "question_toks": ["List", "the", "name", "of", "all", "tracks", "in", "the", "playlists", "of", "Movies", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0635", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0046", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' ;", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "``", "movies", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "What are the names of all tracks that are on playlists titled Movies?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "playlists", "titled", "Movies", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0636", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0047", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' except select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'music'", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'movies", "'", "except", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value", "except", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "Find the name of tracks which are in Movies playlist but not in music playlist.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "Movies", "playlist", "but", "not", "in", "music", "playlist", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0643", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0048", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' except select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'music'", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'movies", "'", "except", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value", "except", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "What are the names of all tracks that are on the Movies playlist but not in the music playlist?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "the", "Movies", "playlist", "but", "not", "in", "the", "music", "playlist", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0644", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0049", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' intersect select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'music'", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'movies", "'", "intersect", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value", "intersect", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "Find the name of tracks which are in both Movies and music playlists.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "both", "Movies", "and", "music", "playlists", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0645", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0050", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' intersect select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'music'", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'movies", "'", "intersect", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value", "intersect", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "What are the names of all the tracks that are in both the Movies and music playlists?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "tracks", "that", "are", "in", "both", "the", "Movies", "and", "music", "playlists", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0646", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0051", "db_id": "journal_committee_minus_1_0", "query": "select t1.name , t2.theme from journal_committee_editor as t1 join journal as t2 on t1.journal_id = t2.journal_id", "query_toks": ["select", "t1.name", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id"], "query_toks_no_value": ["select", "t1.name", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id"], "question": "Show the names of editors and the theme of journals for which they serve on committees.", "question_toks": ["Show", "the", "names", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0658", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0052", "db_id": "journal_committee_minus_1_0", "query": "select t1.name , t2.theme from journal_committee_editor as t1 join journal as t2 on t1.journal_id = t2.journal_id", "query_toks": ["select", "t1.name", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id"], "query_toks_no_value": ["select", "t1.name", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id"], "question": "For each journal_committee, find the editor name and the journal theme.", "question_toks": ["For", "each", "journal_committee", ",", "find", "the", "editor", "name", "and", "the", "journal", "theme", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0659", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0053", "db_id": "journal_committee_minus_1_0", "query": "select t1.name , t1.age , t2.theme from journal_committee_editor as t1 join journal as t2 on t1.journal_id = t2.journal_id order by t2.theme asc", "query_toks": ["select", "t1.name", ",", "t1.age", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id", "order", "by", "t2.theme", "asc"], "query_toks_no_value": ["select", "t1.name", ",", "t1.age", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id", "order", "by", "t2.theme", "asc"], "question": "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.", "question_toks": ["Show", "the", "names", "and", "ages", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", ",", "in", "ascending", "alphabetical", "order", "of", "theme", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0660", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0054", "db_id": "journal_committee_minus_1_0", "query": "select t1.name from journal_committee_editor as t1 join journal as t2 on t1.journal_id = t2.journal_id where t2.sales > 3000", "query_toks": ["select", "t1.name", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id", "where", "t2.sales", ">", "3000"], "query_toks_no_value": ["select", "t1.name", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id", "where", "t2.sales", ">", "value"], "question": "Show the names of editors that are on the committee of journals with sales bigger than 3000.", "question_toks": ["Show", "the", "names", "of", "editors", "that", "are", "on", "the", "committee", "of", "journals", "with", "sales", "bigger", "than", "3000", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0661", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0055", "db_id": "chinook_1_minus_1_0", "query": "select t1.title from album_track as t1 join genre as t2 on t1.genreid = t2.genreid where t2.name = 'reggae' intersect select t1.title from album_track as t1 join genre as t2 on t1.genreid = t2.genreid where t2.name = 'rock'", "query_toks": ["select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "'reggae", "'", "intersect", "select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "'rock", "'"], "query_toks_no_value": ["select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "value", "intersect", "select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "value"], "question": "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?", "question_toks": ["What", "are", "the", "album", "titles", "for", "albums", "containing", "both", "'Reggae", "'", "and", "'Rock", "'", "genre", "tracks", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 9], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0889", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0056", "db_id": "chinook_1_minus_1_0", "query": "select t1.title from album_track as t1 join genre as t2 on t1.genreid = t2.genreid where t2.name = 'reggae' intersect select t1.title from album_track as t1 join genre as t2 on t1.genreid = t2.genreid where t2.name = 'rock'", "query_toks": ["select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "'reggae", "'", "intersect", "select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "'rock", "'"], "query_toks_no_value": ["select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "value", "intersect", "select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "value"], "question": "Find the titles of albums that contain tracks of both the Reggae and Rock genres.", "question_toks": ["Find", "the", "titles", "of", "albums", "that", "contain", "tracks", "of", "both", "the", "Reggae", "and", "Rock", "genres", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 9], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0890", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0057", "db_id": "insurance_fnol_minus_1_1", "query": "select distinct t2.policy_type_code from customers_customers_policies as t1 join available_policies as t2 on t1.policy_id = t2.policy_id where t1.customer_name = ( select t1.customer_name from customers_customers_policies as t1 group by t1.customer_name order by count ( * ) desc limit 1 )", "query_toks": ["select", "distinct", "t2.policy_type_code", "from", "customers_customers_policies", "as", "t1", "join", "available_policies", "as", "t2", "on", "t1.policy_id", "=", "t2.policy_id", "where", "t1.customer_name", "=", "(", "select", "t1.customer_name", "from", "customers_customers_policies", "as", "t1", "group", "by", "t1.customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1", ")"], "query_toks_no_value": ["select", "distinct", "t2.policy_type_code", "from", "customers_customers_policies", "as", "t1", "join", "available_policies", "as", "t2", "on", "t1.policy_id", "=", "t2.policy_id", "where", "t1.customer_name", "=", "(", "select", "t1.customer_name", "from", "customers_customers_policies", "as", "t1", "group", "by", "t1.customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What are all the policy types of the customer that has the most policies listed?", "question_toks": ["What", "are", "all", "the", "policy", "types", "of", "the", "customer", "that", "has", "the", "most", "policies", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 4, false], null]]}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0913", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0058", "db_id": "insurance_fnol_minus_1_1", "query": "select distinct t2.policy_type_code from customers_customers_policies as t1 join available_policies as t2 on t1.policy_id = t2.policy_id where t1.customer_name = ( select t1.customer_name from customers_customers_policies as t1 group by t1.customer_name order by count ( * ) desc limit 1 )", "query_toks": ["select", "distinct", "t2.policy_type_code", "from", "customers_customers_policies", "as", "t1", "join", "available_policies", "as", "t2", "on", "t1.policy_id", "=", "t2.policy_id", "where", "t1.customer_name", "=", "(", "select", "t1.customer_name", "from", "customers_customers_policies", "as", "t1", "group", "by", "t1.customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1", ")"], "query_toks_no_value": ["select", "distinct", "t2.policy_type_code", "from", "customers_customers_policies", "as", "t1", "join", "available_policies", "as", "t2", "on", "t1.policy_id", "=", "t2.policy_id", "where", "t1.customer_name", "=", "(", "select", "t1.customer_name", "from", "customers_customers_policies", "as", "t1", "group", "by", "t1.customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "List all the policy types used by the customer enrolled in the most policies.", "question_toks": ["List", "all", "the", "policy", "types", "used", "by", "the", "customer", "enrolled", "in", "the", "most", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 4, false], null]]}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0914", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0059", "db_id": "insurance_fnol_minus_1_0", "query": "select t1.customer_name from customers_first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id where t2.service_name = 'close a policy' intersect select t1.customer_name from customers_first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id where t2.service_name = 'new policy application'", "query_toks": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "``", "close", "a", "policy", "''", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "``", "new", "policy", "application", "''"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "value", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "value"], "question": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\".", "question_toks": ["Find", "the", "names", "of", "customers", "who", "have", "used", "both", "the", "service", "``", "Close", "a", "policy", "''", "and", "the", "service", "``", "New", "policy", "application", "''", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"new policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0923", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0060", "db_id": "insurance_fnol_minus_1_0", "query": "select t1.customer_name from customers_first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id where t2.service_name = 'close a policy' intersect select t1.customer_name from customers_first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id where t2.service_name = 'new policy application'", "query_toks": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "``", "close", "a", "policy", "''", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "``", "new", "policy", "application", "''"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "value", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "value"], "question": "Which customers have used both the service named \"Close a policy\" and the service named \"Upgrade a policy\"? Give me the customer names.", "question_toks": ["Which", "customers", "have", "used", "both", "the", "service", "named", "``", "Close", "a", "policy", "''", "and", "the", "service", "named", "``", "Upgrade", "a", "policy", "''", "?", "Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"new policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0924", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0061", "db_id": "game_injury_minus_1_0", "query": "select t1.id , t1.name from stadium_game as t1 join injury_accident as t2 on t1.id = t2.game_id group by t1.id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.id", ",", "t1.name", "from", "stadium_game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1.id", "=", "t2.game_id", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", "from", "stadium_game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1.id", "=", "t2.game_id", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the id and name of the stadium where the most injury accidents happened?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "most", "injury", "accidents", "happened", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1282", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0062", "db_id": "game_injury_minus_1_0", "query": "select t1.id , t1.name from stadium_game as t1 join injury_accident as t2 on t1.id = t2.game_id group by t1.id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.id", ",", "t1.name", "from", "stadium_game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1.id", "=", "t2.game_id", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", "from", "stadium_game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1.id", "=", "t2.game_id", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the id and name of the stadium where the largest number of injury accidents occurred.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "largest", "number", "of", "injury", "accidents", "occurred", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1283", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0063", "db_id": "college_2_minus_1_0", "query": "select t1.name from instructor_teaches as t1 join course as t2 on t1.course_id = t2.course_id where t2.title = 'c programming'", "query_toks": ["select", "t1.name", "from", "instructor_teaches", "as", "t1", "join", "course", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "where", "t2.title", "=", "'c", "programming", "'"], "query_toks_no_value": ["select", "t1.name", "from", "instructor_teaches", "as", "t1", "join", "course", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "where", "t2.title", "=", "value"], "question": "Find the name of the instructors who taught C Programming course before.", "question_toks": ["Find", "the", "name", "of", "the", "instructors", "who", "taught", "C", "Programming", "course", "before", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"c programming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1430", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0064", "db_id": "college_2_minus_1_0", "query": "select t1.name from instructor_teaches as t1 join course as t2 on t1.course_id = t2.course_id where t2.title = 'c programming'", "query_toks": ["select", "t1.name", "from", "instructor_teaches", "as", "t1", "join", "course", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "where", "t2.title", "=", "'c", "programming", "'"], "query_toks_no_value": ["select", "t1.name", "from", "instructor_teaches", "as", "t1", "join", "course", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "where", "t2.title", "=", "value"], "question": "What are the names of instructors who have taught C Programming courses?", "question_toks": ["What", "are", "the", "names", "of", "instructors", "who", "have", "taught", "C", "Programming", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"c programming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1431", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0065", "db_id": "college_2_minus_1_2", "query": "select t1.name from advisor_instructor as t1 join student as t2 on t1.s_id = t2.id order by t2.tot_cred desc limit 1", "query_toks": ["select", "t1.name", "from", "advisor_instructor", "as", "t1", "join", "student", "as", "t2", "on", "t1.s_id", "=", "t2.id", "order", "by", "t2.tot_cred", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "advisor_instructor", "as", "t1", "join", "student", "as", "t2", "on", "t1.s_id", "=", "t2.id", "order", "by", "t2.tot_cred", "desc", "limit", "value"], "question": "Find the name of instructor who is the advisor of the student who has the highest number of total credits.", "question_toks": ["Find", "the", "name", "of", "instructor", "who", "is", "the", "advisor", "of", "the", "student", "who", "has", "the", "highest", "number", "of", "total", "credits", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 29, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1438", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0066", "db_id": "college_2_minus_1_2", "query": "select t1.name from advisor_instructor as t1 join student as t2 on t1.s_id = t2.id order by t2.tot_cred desc limit 1", "query_toks": ["select", "t1.name", "from", "advisor_instructor", "as", "t1", "join", "student", "as", "t2", "on", "t1.s_id", "=", "t2.id", "order", "by", "t2.tot_cred", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "advisor_instructor", "as", "t1", "join", "student", "as", "t2", "on", "t1.s_id", "=", "t2.id", "order", "by", "t2.tot_cred", "desc", "limit", "value"], "question": "What is the name of the instructor who advises the student with the greatest number of total credits?", "question_toks": ["What", "is", "the", "name", "of", "the", "instructor", "who", "advises", "the", "student", "with", "the", "greatest", "number", "of", "total", "credits", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 29, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1439", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0067", "db_id": "college_2_minus_1_1", "query": "select count ( distinct t1.id ) , count ( distinct t2.id ) , t2.dept_name from department_student as t1 join instructor as t2 on t1.dept_name = t2.dept_name group by t2.dept_name", "query_toks": ["select", "count", "(", "distinct", "t1.id", ")", ",", "count", "(", "distinct", "t2.id", ")", ",", "t2.dept_name", "from", "department_student", "as", "t1", "join", "instructor", "as", "t2", "on", "t1.dept_name", "=", "t2.dept_name", "group", "by", "t2.dept_name"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.id", ")", ",", "count", "(", "distinct", "t2.id", ")", ",", "t2.dept_name", "from", "department_student", "as", "t1", "join", "instructor", "as", "t2", "on", "t1.dept_name", "=", "t2.dept_name", "group", "by", "t2.dept_name"], "question": "Find the total number of students and total number of instructors for each department.", "question_toks": ["Find", "the", "total", "number", "of", "students", "and", "total", "number", "of", "instructors", "for", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 12, false], null]]}, "select": [false, [[3, [0, [0, 26, true], null]], [3, [0, [0, 10, true], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1454", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0068", "db_id": "college_2_minus_1_1", "query": "select count ( distinct t1.id ) , count ( distinct t2.id ) , t2.dept_name from department_student as t1 join instructor as t2 on t1.dept_name = t2.dept_name group by t2.dept_name", "query_toks": ["select", "count", "(", "distinct", "t1.id", ")", ",", "count", "(", "distinct", "t2.id", ")", ",", "t2.dept_name", "from", "department_student", "as", "t1", "join", "instructor", "as", "t2", "on", "t1.dept_name", "=", "t2.dept_name", "group", "by", "t2.dept_name"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.id", ")", ",", "count", "(", "distinct", "t2.id", ")", ",", "t2.dept_name", "from", "department_student", "as", "t1", "join", "instructor", "as", "t2", "on", "t1.dept_name", "=", "t2.dept_name", "group", "by", "t2.dept_name"], "question": "How many students and instructors are in each department?", "question_toks": ["How", "many", "students", "and", "instructors", "are", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 12, false], null]]}, "select": [false, [[3, [0, [0, 26, true], null]], [3, [0, [0, 10, true], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1455", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0069", "db_id": "debate_minus_1_0", "query": "select t2.name , t1.date , t1.venue from debate_people_debate as t1 join people as t2 on t1.affirmative = t2.people_id", "query_toks": ["select", "t2.name", ",", "t1.date", ",", "t1.venue", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.affirmative", "=", "t2.people_id"], "query_toks_no_value": ["select", "t2.name", ",", "t1.date", ",", "t1.venue", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.affirmative", "=", "t2.people_id"], "question": "Show the names of people, and dates and venues of debates they are on the affirmative side.", "question_toks": ["Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "affirmative", "side", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1501", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0070", "db_id": "debate_minus_1_0", "query": "select t2.name , t1.date , t1.venue from debate_people_debate as t1 join people as t2 on t1.negative = t2.people_id order by t2.name asc", "query_toks": ["select", "t2.name", ",", "t1.date", ",", "t1.venue", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.negative", "=", "t2.people_id", "order", "by", "t2.name", "asc"], "query_toks_no_value": ["select", "t2.name", ",", "t1.date", ",", "t1.venue", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.negative", "=", "t2.people_id", "order", "by", "t2.name", "asc"], "question": "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.", "question_toks": ["Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "negative", "side", ",", "ordered", "in", "ascending", "alphabetical", "order", "of", "name", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1502", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0071", "db_id": "debate_minus_1_0", "query": "select t2.name from debate_people_debate as t1 join people as t2 on t1.affirmative = t2.people_id where t1.num_of_audience > 200", "query_toks": ["select", "t2.name", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.affirmative", "=", "t2.people_id", "where", "t1.num_of_audience", ">", "200"], "query_toks_no_value": ["select", "t2.name", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.affirmative", "=", "t2.people_id", "where", "t1.num_of_audience", ">", "value"], "question": "Show the names of people that are on affirmative side of debates with number of audience bigger than 200.", "question_toks": ["Show", "the", "names", "of", "people", "that", "are", "on", "affirmative", "side", "of", "debates", "with", "number", "of", "audience", "bigger", "than", "200", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1503", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0072", "db_id": "insurance_and_eClaims_minus_1_0", "query": "select t2.customer_details from claim_headers_policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.amount_piad = ( select min ( amount_piad ) from claim_headers_policies )", "query_toks": ["select", "t2.customer_details", "from", "claim_headers_policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1.customer_id", "=", "t2.customer_id", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies", ")"], "query_toks_no_value": ["select", "t2.customer_details", "from", "claim_headers_policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1.customer_id", "=", "t2.customer_id", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies", ")"], "question": "What is the name of the customer who has made the minimum amount of payment in one claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "minimum", "amount", "of", "payment", "in", "one", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1521", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0073", "db_id": "insurance_and_eClaims_minus_1_0", "query": "select t2.customer_details from claim_headers_policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.amount_piad = ( select min ( amount_piad ) from claim_headers_policies )", "query_toks": ["select", "t2.customer_details", "from", "claim_headers_policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1.customer_id", "=", "t2.customer_id", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies", ")"], "query_toks_no_value": ["select", "t2.customer_details", "from", "claim_headers_policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1.customer_id", "=", "t2.customer_id", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies", ")"], "question": "Which customer made the smallest amount of claim in one claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "smallest", "amount", "of", "claim", "in", "one", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1522", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0074", "db_id": "customers_and_invoices_minus_1_0", "query": "select t1.product_name , count ( * ) from order_items_products as t1 join orders as t2 on t1.order_id = t2.order_id group by t1.product_name", "query_toks": ["select", "t1.product_name", ",", "count", "(", "*", ")", "from", "order_items_products", "as", "t1", "join", "orders", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "group", "by", "t1.product_name"], "query_toks_no_value": ["select", "t1.product_name", ",", "count", "(", "*", ")", "from", "order_items_products", "as", "t1", "join", "orders", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "group", "by", "t1.product_name"], "question": "Show all product names and the number of customers having an order on each product.", "question_toks": ["Show", "all", "product", "names", "and", "the", "number", "of", "customers", "having", "an", "order", "on", "each", "product", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1621", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0075", "db_id": "customers_and_invoices_minus_1_0", "query": "select t1.product_name , count ( * ) from order_items_products as t1 join orders as t2 on t1.order_id = t2.order_id group by t1.product_name", "query_toks": ["select", "t1.product_name", ",", "count", "(", "*", ")", "from", "order_items_products", "as", "t1", "join", "orders", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "group", "by", "t1.product_name"], "query_toks_no_value": ["select", "t1.product_name", ",", "count", "(", "*", ")", "from", "order_items_products", "as", "t1", "join", "orders", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "group", "by", "t1.product_name"], "question": "What are teh names of the different products, as well as the number of customers who have ordered each product.", "question_toks": ["What", "are", "teh", "names", "of", "the", "different", "products", ",", "as", "well", "as", "the", "number", "of", "customers", "who", "have", "ordered", "each", "product", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1622", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0076", "db_id": "theme_gallery_minus_1_0", "query": "select t2.name from exhibition_record_exhibition as t1 join artist as t2 on t1.artist_id = t2.artist_id group by t2.artist_id having avg ( t1.attendance ) > 200", "query_toks": ["select", "t2.name", "from", "exhibition_record_exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1.artist_id", "=", "t2.artist_id", "group", "by", "t2.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t2.name", "from", "exhibition_record_exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1.artist_id", "=", "t2.artist_id", "group", "by", "t2.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "value"], "question": "Show all artist names with an average exhibition attendance over 200.", "question_toks": ["Show", "all", "artist", "names", "with", "an", "average", "exhibition", "attendance", "over", "200", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [5, 11, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1687", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0077", "db_id": "theme_gallery_minus_1_0", "query": "select t2.name from exhibition_record_exhibition as t1 join artist as t2 on t1.artist_id = t2.artist_id group by t2.artist_id having avg ( t1.attendance ) > 200", "query_toks": ["select", "t2.name", "from", "exhibition_record_exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1.artist_id", "=", "t2.artist_id", "group", "by", "t2.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t2.name", "from", "exhibition_record_exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1.artist_id", "=", "t2.artist_id", "group", "by", "t2.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "value"], "question": "What are the names of artist whose exhibitions draw over 200 attendees on average?", "question_toks": ["What", "are", "the", "names", "of", "artist", "whose", "exhibitions", "draw", "over", "200", "attendees", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [5, 11, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1688", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0078", "db_id": "riding_club_minus_1_0", "query": "select t2.player_name , t1.coach_name from player_coach_coach as t1 join player as t2 on t1.player_id = t2.player_id", "query_toks": ["select", "t2.player_name", ",", "t1.coach_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id"], "query_toks_no_value": ["select", "t2.player_name", ",", "t1.coach_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id"], "question": "Show the names of players and names of their coaches.", "question_toks": ["Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1728", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0079", "db_id": "riding_club_minus_1_0", "query": "select t2.player_name from player_coach_coach as t1 join player as t2 on t1.player_id = t2.player_id where t1.rank = 1", "query_toks": ["select", "t2.player_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "where", "t1.rank", "=", "1"], "query_toks_no_value": ["select", "t2.player_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "where", "t1.rank", "=", "value"], "question": "Show the names of players coached by the rank 1 coach.", "question_toks": ["Show", "the", "names", "of", "players", "coached", "by", "the", "rank", "1", "coach", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1729", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0080", "db_id": "riding_club_minus_1_0", "query": "select t2.player_name , t2.gender from player_coach_coach as t1 join player as t2 on t1.player_id = t2.player_id where t1.starting_year > 2011", "query_toks": ["select", "t2.player_name", ",", "t2.gender", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "where", "t1.starting_year", ">", "2011"], "query_toks_no_value": ["select", "t2.player_name", ",", "t2.gender", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "where", "t1.starting_year", ">", "value"], "question": "Show the names and genders of players with a coach starting after 2011.", "question_toks": ["Show", "the", "names", "and", "genders", "of", "players", "with", "a", "coach", "starting", "after", "2011", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1730", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0081", "db_id": "riding_club_minus_1_0", "query": "select t2.player_name , t1.coach_name from player_coach_coach as t1 join player as t2 on t1.player_id = t2.player_id order by t2.votes desc", "query_toks": ["select", "t2.player_name", ",", "t1.coach_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "order", "by", "t2.votes", "desc"], "query_toks_no_value": ["select", "t2.player_name", ",", "t1.coach_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "order", "by", "t2.votes", "desc"], "question": "Show the names of players and names of their coaches in descending order of the votes of players.", "question_toks": ["Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "in", "descending", "order", "of", "the", "votes", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1731", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0082", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance limit 1", "query_toks": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "limit", "value"], "question": "Find the name of account that has the lowest total checking and saving balance.", "question_toks": ["Find", "the", "name", "of", "account", "that", "has", "the", "lowest", "total", "checking", "and", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 4, false], [0, 3, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1798", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0083", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance limit 1", "query_toks": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "limit", "value"], "question": "What is the name corresponding to the accoung with the lowest sum of checking and savings balances?", "question_toks": ["What", "is", "the", "name", "corresponding", "to", "the", "accoung", "with", "the", "lowest", "sum", "of", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 4, false], [0, 3, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1799", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0084", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t1.balance + t2.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t2.balance > ( select avg ( balance ) from savings )", "query_toks": ["select", "t1.name", ",", "t1.balance", "+", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance", "+", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.", "question_toks": ["Find", "the", "names", "and", "total", "checking", "and", "savings", "balances", "of", "accounts", "whose", "savings", "balance", "is", "higher", "than", "the", "average", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 4, false], [0, 3, false]]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1800", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0085", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t1.balance + t2.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t2.balance > ( select avg ( balance ) from savings )", "query_toks": ["select", "t1.name", ",", "t1.balance", "+", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance", "+", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance?", "question_toks": ["What", "are", "the", "names", "and", "sum", "of", "checking", "and", "savings", "balances", "for", "accounts", "with", "savings", "balances", "higher", "than", "the", "average", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 4, false], [0, 3, false]]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1801", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0086", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t1.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance limit 1", "query_toks": ["select", "t1.name", ",", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest savings balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1802", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0087", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t1.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance limit 1", "query_toks": ["select", "t1.name", ",", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "value"], "question": "What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?", "question_toks": ["What", "are", "the", "names", "and", "balances", "of", "checking", "accounts", "belonging", "to", "the", "customer", "with", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1803", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0088", "db_id": "small_bank_1_minus_1_0", "query": "select t2.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance desc limit 1", "query_toks": ["select", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "desc", "limit", "value"], "question": "Find the saving balance of the account with the highest checking balance.", "question_toks": ["Find", "the", "saving", "balance", "of", "the", "account", "with", "the", "highest", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1810", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0089", "db_id": "small_bank_1_minus_1_0", "query": "select t2.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance desc limit 1", "query_toks": ["select", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "desc", "limit", "value"], "question": "What is the savings balance of the account belonging to the customer with the highest checking balance?", "question_toks": ["What", "is", "the", "savings", "balance", "of", "the", "account", "belonging", "to", "the", "customer", "with", "the", "highest", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1811", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0090", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance limit 1", "query_toks": ["select", "t1.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest saving balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1814", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0091", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance limit 1", "query_toks": ["select", "t1.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "value"], "question": "What is the name and checking balance of the account which has the lowest savings balance?", "question_toks": ["What", "is", "the", "name", "and", "checking", "balance", "of", "the", "account", "which", "has", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1815", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0092", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t2.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid", "query_toks": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid"], "query_toks_no_value": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid"], "question": "Find the name, checking balance and saving balance of all accounts in the bank.", "question_toks": ["Find", "the", "name", ",", "checking", "balance", "and", "saving", "balance", "of", "all", "accounts", "in", "the", "bank", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1816", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0093", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t2.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid", "query_toks": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid"], "query_toks_no_value": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid"], "question": "What are the names, checking balances, and savings balances for all customers?", "question_toks": ["What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "for", "all", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1817", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0094", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t2.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance desc", "query_toks": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "desc"], "query_toks_no_value": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "desc"], "question": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.", "question_toks": ["Find", "the", "name", ",", "checking", "balance", "and", "savings", "balance", "of", "all", "accounts", "in", "the", "bank", "sorted", "by", "their", "total", "checking", "and", "savings", "balance", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[2, [0, 4, false], [0, 3, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1818", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0095", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t2.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance desc", "query_toks": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "desc"], "query_toks_no_value": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "desc"], "question": "What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending?", "question_toks": ["What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "of", "customers", ",", "ordered", "by", "the", "total", "of", "checking", "and", "savings", "balances", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[2, [0, 4, false], [0, 3, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1819", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0096", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t1.balance > t2.balance", "query_toks": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t1.balance", ">", "t2.balance"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t1.balance", ">", "t2.balance"], "question": "Find the name of accounts whose checking balance is higher than corresponding saving balance.", "question_toks": ["Find", "the", "name", "of", "accounts", "whose", "checking", "balance", "is", "higher", "than", "corresponding", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], [0, 3, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1820", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0097", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t1.balance > t2.balance", "query_toks": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t1.balance", ">", "t2.balance"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t1.balance", ">", "t2.balance"], "question": "What are the names of customers with a higher checking balance than savings balance?", "question_toks": ["What", "are", "the", "names", "of", "customers", "with", "a", "higher", "checking", "balance", "than", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], [0, 3, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1821", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0098", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t2.balance + t1.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t2.balance < t1.balance", "query_toks": ["select", "t1.name", ",", "t2.balance", "+", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", "<", "t1.balance"], "query_toks_no_value": ["select", "t1.name", ",", "t2.balance", "+", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", "<", "t1.balance"], "question": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": ["Find", "the", "name", "and", "total", "checking", "and", "savings", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 3, false], [0, 4, false]]]]], "where": [[false, 4, [0, [0, 3, false], null], [0, 4, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1822", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0099", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t2.balance + t1.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t2.balance < t1.balance", "query_toks": ["select", "t1.name", ",", "t2.balance", "+", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", "<", "t1.balance"], "query_toks_no_value": ["select", "t1.name", ",", "t2.balance", "+", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", "<", "t1.balance"], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "total", "of", "their", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 3, false], [0, 4, false]]]]], "where": [[false, 4, [0, [0, 3, false], null], [0, 4, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1823", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0100", "db_id": "browser_web_minus_1_0", "query": "select distinct t1.name from web_client_accelerator_accelerator_compatible_browser as t1 join browser as t2 on t1.browser_id = t2.id where t2.market_share > 15 ;", "query_toks": ["select", "distinct", "t1.name", "from", "web_client_accelerator_accelerator_compatible_browser", "as", "t1", "join", "browser", "as", "t2", "on", "t1.browser_id", "=", "t2.id", "where", "t2.market_share", ">", "15", ";"], "query_toks_no_value": ["select", "distinct", "t1.name", "from", "web_client_accelerator_accelerator_compatible_browser", "as", "t1", "join", "browser", "as", "t2", "on", "t1.browser_id", "=", "t2.id", "where", "t2.market_share", ">", "value"], "question": "What distinct accelerator names are compatible with the browswers that have market share higher than 15?", "question_toks": ["What", "distinct", "accelerator", "names", "are", "compatible", "with", "the", "browswers", "that", "have", "market", "share", "higher", "than", "15", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 15.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "_DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1838", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "like_in_sql_0000", "db_id": "concert_singer", "query": "select name , country from singer", "query_toks": ["select", "name", ",", "country", "from", "singer"], "query_toks_no_value": ["select", "name", ",", "country", "from", "singer"], "question": "what is the name and nation of the singer?", "question_toks": ["what", "is", "the", "name", "and", "nation", "of", "the", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0039", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0001", "db_id": "concert_singer", "query": "select name , country from singer", "query_toks": ["select", "name", ",", "country", "from", "singer"], "query_toks_no_value": ["select", "name", ",", "country", "from", "singer"], "question": "What is the name and country of origin of every singer?", "question_toks": ["What", "is", "the", "name", "and", "country", "of", "origin", "of", "every", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0040", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0002", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name , template_id from documents", "query_toks": ["select", "document_name", ",", "template_id", "from", "documents"], "query_toks_no_value": ["select", "document_name", ",", "template_id", "from", "documents"], "question": "What is the document name and template id for document?", "question_toks": ["What", "is", "the", "document", "name", "and", "template", "id", "for", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0301", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0003", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name , template_id from documents", "query_toks": ["select", "document_name", ",", "template_id", "from", "documents"], "query_toks_no_value": ["select", "document_name", ",", "template_id", "from", "documents"], "question": "Return the names and template ids for documents.", "question_toks": ["Return", "the", "names", "and", "template", "ids", "for", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0302", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0004", "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs", "query_toks": ["select", "other_details", "from", "paragraphs"], "query_toks_no_value": ["select", "other_details", "from", "paragraphs"], "question": "Show paragraph details for paragraph.", "question_toks": ["Show", "paragraph", "details", "for", "paragraph", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0361", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0005", "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs", "query_toks": ["select", "other_details", "from", "paragraphs"], "query_toks_no_value": ["select", "other_details", "from", "paragraphs"], "question": "What are the details for the paragraph?", "question_toks": ["What", "are", "the", "details", "for", "the", "paragraph", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0362", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0006", "db_id": "battle_death", "query": "select note from death", "query_toks": ["select", "note", "from", "death"], "query_toks_no_value": ["select", "note", "from", "death"], "question": "What are the notes of the death events?", "question_toks": ["What", "are", "the", "notes", "of", "the", "death", "events", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0506", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0007", "db_id": "student_transcripts_tracking", "query": "select department_description from departments", "query_toks": ["select", "department_description", "from", "departments"], "query_toks_no_value": ["select", "department_description", "from", "departments"], "question": "What is the description of the department?", "question_toks": ["What", "is", "the", "description", "of", "the", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0531", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0008", "db_id": "student_transcripts_tracking", "query": "select department_description from departments", "query_toks": ["select", "department_description", "from", "departments"], "query_toks_no_value": ["select", "department_description", "from", "departments"], "question": "What is the department descriptions ?", "question_toks": ["What", "is", "the", "department", "descriptions", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0532", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0009", "db_id": "voter_1", "query": "select contestant_name from contestants", "query_toks": ["select", "contestant_name", "from", "contestants"], "query_toks_no_value": ["select", "contestant_name", "from", "contestants"], "question": "Return the names of the contestants.", "question_toks": ["Return", "the", "names", "of", "the", "contestants", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0701", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0010", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals", "query_toks": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals"], "query_toks_no_value": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals"], "question": "Which professionals live in a city? List his or her role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "?", "List", "his", "or", "her", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0970", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0011", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals", "query_toks": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals"], "query_toks_no_value": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals"], "question": "Find the role, street, city and state of the professionals living in a city", "question_toks": ["Find", "the", "role", ",", "street", ",", "city", "and", "state", "of", "the", "professionals", "living", "in", "a", "city"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0971", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0012", "db_id": "dog_kennels", "query": "select first_name , last_name , email_address from owners", "query_toks": ["select", "first_name", ",", "last_name", ",", "email_address", "from", "owners"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "email_address", "from", "owners"], "question": "Return the first name, last name and email of the owners.", "question_toks": ["Return", "the", "first", "name", ",", "last", "name", "and", "email", "of", "the", "owners", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0973", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0013", "db_id": "bike_1", "query": "select zip_code , avg(mean_temperature_f) from weather group by zip_code", "query_toks": ["select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "group", "by", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "group", "by", "zip_code"], "question": "For each zip code, return the average mean temperature there.", "question_toks": ["For", "each", "zip", "code", ",", "return", "the", "average", "mean", "temperature", "there", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0123", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0014", "db_id": "bike_1", "query": "select zip_code , avg(mean_temperature_f) from weather group by zip_code", "query_toks": ["select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "group", "by", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "group", "by", "zip_code"], "question": "For each zip code, what is the average mean temperature for all dates?", "question_toks": ["For", "each", "zip", "code", ",", "what", "is", "the", "average", "mean", "temperature", "for", "all", "dates", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0124", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0015", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip group by start_station_name order by count(*) desc limit 1", "query_toks": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Which start station had the most trips ? Give me the name and id of the station.", "question_toks": ["Which", "start", "station", "had", "the", "most", "trips", "?", "Give", "me", "the", "name", "and", "id", "of", "the", "station", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0133", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0016", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip group by start_station_name order by count(*) desc limit 1", "query_toks": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "What are the start station's name and id for the one that had the most start trips?", "question_toks": ["What", "are", "the", "start", "station", "'", "s", "name", "and", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0134", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0017", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14"], "question": "What are the names and ids of stations that had more than 14 bikes available on average?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "stations", "that", "had", "more", "than", "14", "bikes", "available", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0143", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0018", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14"], "question": "What are the names and ids of all stations that have more than 14 bikes available on average?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0144", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0019", "db_id": "twitter_1", "query": "select name , email from user_profiles", "query_toks": ["select", "name", ",", "email", "from", "user_profiles"], "query_toks_no_value": ["select", "name", ",", "email", "from", "user_profiles"], "question": "Find the name and email of the user", "question_toks": ["Find", "the", "name", "and", "email", "of", "the", "user"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0281", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0020", "db_id": "twitter_1", "query": "select name from user_profiles", "query_toks": ["select", "name", "from", "user_profiles"], "query_toks_no_value": ["select", "name", "from", "user_profiles"], "question": "Find the names of users", "question_toks": ["Find", "the", "names", "of", "users"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0282", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0021", "db_id": "twitter_1", "query": "select text from tweets ", "query_toks": ["select", "text", "from", "tweets"], "query_toks_no_value": ["select", "text", "from", "tweets"], "question": "Return the text of tweets", "question_toks": ["Return", "the", "text", "of", "tweets"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0283", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0022", "db_id": "product_catalog", "query": "select distinct(catalog_publisher) from catalogs", "query_toks": ["select", "distinct", "(", "catalog_publisher", ")", "from", "catalogs"], "query_toks_no_value": ["select", "distinct", "(", "catalog_publisher", ")", "from", "catalogs"], "question": "Find all the catalog publishers", "question_toks": ["Find", "all", "the", "catalog", "publishers"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0309", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0023", "db_id": "product_catalog", "query": "select catalog_entry_name from catalog_contents", "query_toks": ["select", "catalog_entry_name", "from", "catalog_contents"], "query_toks_no_value": ["select", "catalog_entry_name", "from", "catalog_contents"], "question": "Find the names of all the products.", "question_toks": ["Find", "the", "names", "of", "all", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0327", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0024", "db_id": "product_catalog", "query": "select catalog_entry_name from catalog_contents", "query_toks": ["select", "catalog_entry_name", "from", "catalog_contents"], "query_toks_no_value": ["select", "catalog_entry_name", "from", "catalog_contents"], "question": "Which catalog contents have a product stock number? Show the catalog entry names.", "question_toks": ["Which", "catalog", "contents", "have", "a", "product", "stock", "number", "?", "Show", "the", "catalog", "entry", "names", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0328", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0025", "db_id": "store_1", "query": "select title from albums order by title", "query_toks": ["select", "title", "from", "albums", "order", "by", "title"], "query_toks_no_value": ["select", "title", "from", "albums", "order", "by", "title"], "question": "List every album title in alphabetical order.", "question_toks": ["List", "every", "album", "title", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0555", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0026", "db_id": "store_1", "query": "select title from albums order by title", "query_toks": ["select", "title", "from", "albums", "order", "by", "title"], "query_toks_no_value": ["select", "title", "from", "albums", "order", "by", "title"], "question": "What are the titles of all albums in alphabetical order?", "question_toks": ["What", "are", "the", "titles", "of", "all", "albums", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0556", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0027", "db_id": "store_1", "query": "select title from albums", "query_toks": ["select", "title", "from", "albums"], "query_toks_no_value": ["select", "title", "from", "albums"], "question": "List the name of albums ", "question_toks": ["List", "the", "name", "of", "albums"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0583", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0028", "db_id": "chinook_1", "query": "select name from artist", "query_toks": ["select", "name", "from", "artist"], "query_toks_no_value": ["select", "name", "from", "artist"], "question": "Find the names of all artists", "question_toks": ["Find", "the", "names", "of", "all", "artists"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0817", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0029", "db_id": "chinook_1", "query": "select name from artist ", "query_toks": ["select", "name", "from", "artist"], "query_toks_no_value": ["select", "name", "from", "artist"], "question": "What are the names of artists?", "question_toks": ["What", "are", "the", "names", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0818", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0030", "db_id": "chinook_1", "query": "select name from track", "query_toks": ["select", "name", "from", "track"], "query_toks_no_value": ["select", "name", "from", "track"], "question": "Find the names of all the tracks", "question_toks": ["Find", "the", "names", "of", "all", "the", "tracks"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0827", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0031", "db_id": "chinook_1", "query": "select name from track", "query_toks": ["select", "name", "from", "track"], "query_toks_no_value": ["select", "name", "from", "track"], "question": "What are the names of tracks?", "question_toks": ["What", "are", "the", "names", "of", "tracks", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0828", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0032", "db_id": "chinook_1", "query": "select count(*) from customer", "query_toks": ["select", "count", "(*)", "from", "customer"], "query_toks_no_value": ["select", "count", "(*)", "from", "customer"], "question": "How many customers are?", "question_toks": ["How", "many", "customers", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0847", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0033", "db_id": "chinook_1", "query": "select count(*) from customer", "query_toks": ["select", "count", "(*)", "from", "customer"], "query_toks_no_value": ["select", "count", "(*)", "from", "customer"], "question": "Count the number of customers", "question_toks": ["Count", "the", "number", "of", "customers"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0848", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0034", "db_id": "insurance_fnol", "query": "select customer_id from customers", "query_toks": ["select", "customer_id", "from", "customers"], "query_toks_no_value": ["select", "customer_id", "from", "customers"], "question": "Find the IDs of customers", "question_toks": ["Find", "the", "IDs", "of", "customers"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0925", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0035", "db_id": "insurance_fnol", "query": "select customer_id from customers ", "query_toks": ["select", "customer_id", "from", "customers"], "query_toks_no_value": ["select", "customer_id", "from", "customers"], "question": "What are the IDs of customers ?", "question_toks": ["What", "are", "the", "IDs", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0926", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0036", "db_id": "insurance_fnol", "query": "select date_opened , date_closed from customers_policies", "query_toks": ["select", "date_opened", ",", "date_closed", "from", "customers_policies"], "query_toks_no_value": ["select", "date_opened", ",", "date_closed", "from", "customers_policies"], "question": "Retrieve the open and close dates of all the policies", "question_toks": ["Retrieve", "the", "open", "and", "close", "dates", "of", "all", "the", "policies"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0931", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0037", "db_id": "insurance_fnol", "query": "select date_opened , date_closed from customers_policies", "query_toks": ["select", "date_opened", ",", "date_closed", "from", "customers_policies"], "query_toks_no_value": ["select", "date_opened", ",", "date_closed", "from", "customers_policies"], "question": "What are the open and close dates of all the policies?", "question_toks": ["What", "are", "the", "open", "and", "close", "dates", "of", "all", "the", "policies", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0932", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0038", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme ", "query_toks": ["select", "name", "from", "enzyme"], "query_toks_no_value": ["select", "name", "from", "enzyme"], "question": "List enzyme names", "question_toks": ["Which", "enzyme", "names", "have", "the", "substring", "\"", "ALA", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0973", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0039", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme ", "query_toks": ["select", "name", "from", "enzyme"], "query_toks_no_value": ["select", "name", "from", "enzyme"], "question": "What are the names of enzymes", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "that", "include", "the", "string", "'", "ALA", "'?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0974", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0040", "db_id": "university_basketball", "query": "select count(*) from university", "query_toks": ["select", "count", "(*)", "from", "university"], "query_toks_no_value": ["select", "count", "(*)", "from", "university"], "question": "Find how many school locations are.", "question_toks": ["Find", "how", "many", "school", "locations", "are", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1009", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0041", "db_id": "university_basketball", "query": "select count(*) from university ", "query_toks": ["select", "count", "(*)", "from", "university"], "query_toks_no_value": ["select", "count", "(*)", "from", "university"], "question": "How many universities are?", "question_toks": ["How", "many", "universities", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1010", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0042", "db_id": "phone_1", "query": "select hardware_model_name , company_name from phone ", "query_toks": ["select", "hardware_model_name", ",", "company_name", "from", "phone"], "query_toks_no_value": ["select", "hardware_model_name", ",", "company_name", "from", "phone"], "question": "Find all phones. List the Hardware Model name and Company name.", "question_toks": ["Find", "all", "phones", ".", "List", "the", "Hardware", "Model", "name", "and", "Company", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1030", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0043", "db_id": "match_season", "query": "select official_native_language from country ", "query_toks": ["select", "official_native_language", "from", "country"], "query_toks_no_value": ["select", "official_native_language", "from", "country"], "question": "Show all official native languages .", "question_toks": ["Show", "all", "official", "native", "languages", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1056", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0044", "db_id": "match_season", "query": "select official_native_language from country ", "query_toks": ["select", "official_native_language", "from", "country"], "query_toks_no_value": ["select", "official_native_language", "from", "country"], "question": "What are the official native languages.", "question_toks": ["What", "are", "the", "official", "native", "languages", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1057", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0045", "db_id": "body_builder", "query": "select total from body_builder", "query_toks": ["select", "total", "from", "body_builder"], "query_toks_no_value": ["select", "total", "from", "body_builder"], "question": "What are the total scores of the body builders?", "question_toks": ["What", "are", "the", "total", "scores", "of", "the", "body", "builders", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1172", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0046", "db_id": "apartment_rentals", "query": "select building_full_name from apartment_buildings", "query_toks": ["select", "building_full_name", "from", "apartment_buildings"], "query_toks_no_value": ["select", "building_full_name", "from", "apartment_buildings"], "question": "What are the building full names?", "question_toks": ["What", "are", "the", "building", "full", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1204", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0047", "db_id": "apartment_rentals", "query": "select building_full_name from apartment_buildings", "query_toks": ["select", "building_full_name", "from", "apartment_buildings"], "query_toks_no_value": ["select", "building_full_name", "from", "apartment_buildings"], "question": "Find all the building full names.", "question_toks": ["Find", "all", "the", "building", "full", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1205", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0048", "db_id": "college_2", "query": "select dept_name from instructor", "query_toks": ["select", "dept_name", "from", "instructor"], "query_toks_no_value": ["select", "dept_name", "from", "instructor"], "question": "Find the department name of the instructors", "question_toks": ["Find", "the", "department", "name", "of", "the", "instructors"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1354", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0049", "db_id": "college_2", "query": "select dept_name from department", "query_toks": ["select", "dept_name", "from", "instructor"], "query_toks_no_value": ["select", "dept_name", "from", "instructor"], "question": "What is the names of the departments?", "question_toks": ["What", "is", "the", "names", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1355", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0050", "db_id": "college_2", "query": "select name from instructor", "query_toks": ["select", "name", "from", "instructor"], "query_toks_no_value": ["select", "name", "from", "instructor"], "question": "Find the names of all instructors .", "question_toks": ["Find", "the", "names", "of", "all", "instructors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1472", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0051", "db_id": "college_2", "query": "select name from instructor ", "query_toks": ["select", "name", "from", "instructor"], "query_toks_no_value": ["select", "name", "from", "instructor"], "question": "What are the names of all instructors ?", "question_toks": ["What", "are", "the", "names", "of", "all", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1473", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0052", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers", "query_toks": ["select", "customer_details", "from", "customers"], "query_toks_no_value": ["select", "customer_details", "from", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1529", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0053", "db_id": "small_bank_1", "query": "select balance from checking", "query_toks": ["select", "balance", "from", "checking"], "query_toks_no_value": ["select", "balance", "from", "checking"], "question": "What is the checking balance of the account?", "question_toks": ["What", "is", "the", "checking", "balance", "of", "the", "account", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1788", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0054", "db_id": "cinema", "query": "select count(*) from film", "query_toks": ["select", "count", "(*)", "from", "film"], "query_toks_no_value": ["select", "count", "(*)", "from", "film"], "question": "How many films are?", "question_toks": ["How", "many", "films", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1958", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0055", "db_id": "cinema", "query": "select count(*) from film", "query_toks": ["select", "count", "(*)", "from", "film"], "query_toks_no_value": ["select", "count", "(*)", "from", "film"], "question": "Count the number of films.", "question_toks": ["Count", "the", "number", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1959", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0056", "db_id": "music_1", "query": "select max(resolution) , min(resolution) from song ", "query_toks": ["select", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "from", "song"], "query_toks_no_value": ["select", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "from", "song"], "question": "What are the maximum and minimum resolution of songs?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "resolution", "of", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3599", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0057", "db_id": "music_1", "query": "select max(resolution) , min(resolution) from song ", "query_toks": ["select", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "from", "song"], "query_toks_no_value": ["select", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "from", "song"], "question": "What is the maximum and minimum resolution of all songs ?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "resolution", "of", "all", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3600", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0058", "db_id": "mountain_photos", "query": "select name from camera_lens", "query_toks": ["select", "name", "from", "camera_lens"], "query_toks_no_value": ["select", "name", "from", "camera_lens"], "question": "List the camera lens names.", "question_toks": ["List", "the", "camera", "lens", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3726", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0059", "db_id": "e_learning", "query": "select count(*) from students", "query_toks": ["select", "count", "(*)", "from", "students"], "query_toks_no_value": ["select", "count", "(*)", "from", "students"], "question": "Find the number of students", "question_toks": ["Find", "the", "number", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3793", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0060", "db_id": "hospital_1", "query": "select name from physician ", "query_toks": ["select", "name", "from", "physician"], "query_toks_no_value": ["select", "name", "from", "physician"], "question": "Find the name of physicians", "question_toks": ["Find", "the", "name", "of", "physicians"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3946", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0061", "db_id": "hospital_1", "query": "select name from physician", "query_toks": ["select", "name", "from", "physician"], "query_toks_no_value": ["select", "name", "from", "physician"], "question": "What are the names of the physicians.", "question_toks": ["What", "are", "the", "names", "of", "the", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3947", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0062", "db_id": "film_rank", "query": "select title , studio from film", "query_toks": ["select", "title", ",", "studio", "from", "film"], "query_toks_no_value": ["select", "title", ",", "studio", "from", "film"], "question": "Find the titles and studios of the films", "question_toks": ["Find", "the", "titles", "and", "studios", "of", "the", "films"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4150", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0063", "db_id": "film_rank", "query": "select title , studio from film", "query_toks": ["select", "title", ",", "studio", "from", "film"], "query_toks_no_value": ["select", "title", ",", "studio", "from", "film"], "question": "What are the titles and studios of films?", "question_toks": ["What", "are", "the", "titles", "and", "studios", "of", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4151", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0064", "db_id": "tracking_grants_for_research", "query": "select project_details from projects ", "query_toks": ["select", "project_details", "from", "projects"], "query_toks_no_value": ["select", "project_details", "from", "projects"], "question": "List the project details of the projects.", "question_toks": ["List", "the", "project", "details", "of", "the", "projects", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4348", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0065", "db_id": "tracking_grants_for_research", "query": "select t1.project_details from projects as t1 join project_outcomes as t2 on t1.project_id = t2.project_id join research_outcomes as t3 on t2.outcome_code = t3.outcome_code where t3.outcome_description = \"published research paper\"", "query_toks": ["select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "research_outcomes", "as", "t3", "on", "t2", ".", "outcome_code", "=", "t3", ".", "outcome_code", "where", "t3", ".", "outcome_description", "=", "``", "published", "research", "paper", "''"], "query_toks_no_value": ["select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "research_outcomes", "as", "t3", "on", "t2", ".", "outcome_code", "=", "t3", ".", "outcome_code", "where", "t3", ".", "outcome_description", "=", "value", "research", "paper"], "question": "What are the details for the project whose research has outcome_description \"published esearch paper\"?", "question_toks": ["What", "are", "the", "details", "for", "the", "project", "whose", "research", "has", "outcome_description", "\"", "published", "esearch", "paper", "\"?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"published research paper\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4349", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0066", "db_id": "tracking_grants_for_research", "query": "select document_type_code from document_types", "query_toks": ["select", "document_type_code", "from", "document_types"], "query_toks_no_value": ["select", "document_type_code", "from", "document_types"], "question": "Which document type is described?", "question_toks": ["Which", "document", "type", "is", "described", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4364", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0067", "db_id": "tracking_grants_for_research", "query": "select document_type_code from document_types", "query_toks": ["select", "document_type_code", "from", "document_types"], "query_toks_no_value": ["select", "document_type_code", "from", "document_types"], "question": "What are the types of the documents?", "question_toks": ["What", "are", "the", "types", "of", "the", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4365", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0068", "db_id": "college_3", "query": "select distinct fname from student ", "query_toks": ["select", "distinct", "fname", "from", "student"], "query_toks_no_value": ["select", "distinct", "fname", "from", "student"], "question": "Find the first names of students ", "question_toks": ["Find", "the", "first", "names", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4651", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0069", "db_id": "college_3", "query": "select distinct fname from student ", "query_toks": ["select", "distinct", "fname", "from", "student"], "query_toks_no_value": ["select", "distinct", "fname", "from", "student"], "question": "What are the first names for students", "question_toks": ["What", "are", "the", "first", "names", "for", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4652", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0070", "db_id": "music_2", "query": "select title from songs", "query_toks": ["select", "title", "from", "songs"], "query_toks_no_value": ["select", "title", "from", "songs"], "question": "Find all the song titles", "question_toks": ["Find", "all", "the", "songs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5200", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0071", "db_id": "music_2", "query": "select title from songs", "query_toks": ["select", "title", "from", "songs"], "query_toks_no_value": ["select", "title", "from", "songs"], "question": "What are the names of the songs?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5201", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0072", "db_id": "manufactory_1", "query": "select founder from manufacturers ", "query_toks": ["select", "founder", "from", "manufacturers"], "query_toks_no_value": ["select", "founder", "from", "manufacturers"], "question": "Find the founder of the company", "question_toks": ["Find", "the", "founder", "of", "the", "company"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5288", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0073", "db_id": "manufactory_1", "query": "select founder from manufacturers", "query_toks": ["select", "founder", "from", "manufacturers"], "query_toks_no_value": ["select", "founder", "from", "manufacturers"], "question": "Who is the founders of companies?", "question_toks": ["Who", "is", "the", "founders", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5289", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0074", "db_id": "shop_membership", "query": "select card_number from member", "query_toks": ["select", "card_number", "from", "member"], "query_toks_no_value": ["select", "card_number", "from", "member"], "question": "list the card number of all members", "question_toks": ["list", "the", "card", "number", "of", "all", "members"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5442", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0075", "db_id": "shop_membership", "query": "select card_number from member", "query_toks": ["select", "card_number", "from", "member"], "query_toks_no_value": ["select", "card_number", "from", "member"], "question": "What are the card numbers of members?", "question_toks": ["What", "are", "the", "card", "numbers", "of", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5443", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0076", "db_id": "products_gen_characteristics", "query": "select t1.product_category_description from ref_product_categories as t1 join products as t2 on t1.product_category_code = t2.product_category_code", "query_toks": ["select", "t1", ".", "product_category_description", "from", "ref_product_categories", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code"], "query_toks_no_value": ["select", "t1", ".", "product_category_description", "from", "ref_product_categories", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code"], "question": "Find the category descriptions of the products", "question_toks": ["Find", "the", "category", "descriptions", "of", "the", "products"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5542", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0077", "db_id": "dorm_1", "query": "select student_capacity, gender from dorm;", "query_toks": ["select", "student_capacity", ",", "gender", "from", "dorm", "where", "dorm_name", "like", "\"%", "donor", "%\""], "query_toks_no_value": ["select", "student_capacity", ",", "gender", "from", "dorm", "where", "dorm_name", "like", "\"%", "donor", "%\""], "question": "Find the capacity and gender type of the dorm", "question_toks": ["Find", "the", "capacity", "and", "gender", "type", "of", "the", "dorm"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%donor%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5696", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0078", "db_id": "dorm_1", "query": "select student_capacity , gender from dorm", "query_toks": ["select", "student_capacity", ",", "gender", "from", "dorm"], "query_toks_no_value": ["select", "student_capacity", ",", "gender", "from", "dorm"], "question": "What are the student capacitie and types of gender for the dorms?", "question_toks": ["What", "are", "the", "student", "capacitie", "and", "types", "of", "gender", "for", "the", "dorms", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5697", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0079", "db_id": "scientist_1", "query": "select t2.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t3.name = \"david smith\"", "query_toks": ["select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "=", "``", "david", "smith", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "=", "value", "smith"], "question": "Find the name of the project for which a scientist whose name \u2018david smith\u2019 is assigned to.", "question_toks": ["Find", "the", "name", "of", "the", "project", "for", "which", "a", "scientist", "whose", "name", "\u2018", "david", "smith", "\u2019", "is", "assigned", "to", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6485", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0080", "db_id": "scientist_1", "query": "select t2.name from assignedto as t1 join projects as t2 on t1.project = t2.code", "query_toks": ["select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code"], "question": "What are the names of the project that has a scientist assigned to somebody?", "question_toks": ["What", "are", "the", "names", "of", "the", "project", "that", "has", "a", "scientist", "assigned", "to", "somebody", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6486", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0081", "db_id": "driving_school", "query": "select t1.lesson_id from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\"", "query_toks": ["select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "``", "janessa", "''", "and", "t2", ".", "last_name", "=", "``", "sawayn", "''"], "query_toks_no_value": ["select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value"], "question": "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn.", "question_toks": ["List", "lesson", "id", "of", "all", "lessons", "taught", "by", "staff", "with", "first", "name", "as", "Janessa", ",", "last", "name", "as", "Sawayn", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"sawayn\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6700", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0082", "db_id": "driving_school", "query": "select t1.lesson_id from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\"", "query_toks": ["select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "``", "janessa", "''", "and", "t2", ".", "last_name", "=", "``", "sawayn", "''"], "query_toks_no_value": ["select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value"], "question": "What are the the lesson ids of all staff taught by Janessa Sawayn?", "question_toks": ["What", "are", "the", "the", "lesson", "ids", "of", "all", "staff", "taught", "by", "Janessa", "Sawayn", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"sawayn\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6701", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0083", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id", "query_toks": ["select", "count", "(*)", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id"], "query_toks_no_value": ["select", "count", "(*)", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id"], "question": "How many lessons taught by staff?", "question_toks": ["How", "many", "lessons", "taught", "by", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6702", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0084", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id", "query_toks": ["select", "count", "(*)", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id"], "query_toks_no_value": ["select", "count", "(*)", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id"], "question": "How many lessons were taught by a staff member?", "question_toks": ["How", "many", "lessons", "were", "taught", "by", "a", "staff", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6703", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0085", "db_id": "flight_4", "query": "select country from airlines", "query_toks": ["select", "country", "from", "airlines"], "query_toks_no_value": ["select", "country", "from", "airlines"], "question": "Find the country of the airlines", "question_toks": ["Find", "the", "country", "of", "the", "airlines"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6815", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0086", "db_id": "flight_4", "query": "select country from airlines", "query_toks": ["select", "country", "from", "airlines"], "query_toks_no_value": ["select", "country", "from", "airlines"], "question": "What are the countries of all airlines ?", "question_toks": ["What", "are", "the", "countries", "of", "all", "airlines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6816", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0087", "db_id": "flight_4", "query": "select count(*) from airports", "query_toks": ["select", "count", "(*)", "from", "airports"], "query_toks_no_value": ["select", "count", "(*)", "from", "airports"], "question": "Find the number of airports", "question_toks": ["Find", "the", "number", "of", "airports"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6821", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0088", "db_id": "flight_4", "query": "select count(*) from airports", "query_toks": ["select", "count", "(*)", "from", "airports"], "query_toks_no_value": ["select", "count", "(*)", "from", "airports"], "question": "How many airports' names are?", "question_toks": ["How", "many", "airports", "'", "names", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6822", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0089", "db_id": "architecture", "query": "select name from mill where name like \"%moulin%\"", "query_toks": ["select", "name", "from", "mill", "where", "name", "like", "\"%", "moulin", "%\""], "query_toks_no_value": ["select", "name", "from", "mill", "where", "name", "like", "\"%", "moulin", "%\""], "question": "Which of the mill names contains the french word 'Moulin'?", "question_toks": ["Which", "of", "the", "mill", "names", "contains", "the", "french", "word", "'", "Moulin", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"%moulin%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6957", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0090", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperdataset as t2 join dataset as t1 on t2.datasetid = t1.datasetid join paper as t3 on t3.paperid = t2.paperid where t1.datasetname = \"g\"", "query_toks": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperdataset", "as", "t2", "join", "dataset", "as", "t1", "on", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "datasetname", "=", "``", "g", "''"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperdataset", "as", "t2", "join", "dataset", "as", "t1", "on", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "datasetname", "=", "value"], "question": "how many papers use dataset called \"g\"?", "question_toks": ["how", "many", "papers", "use", "dataset", "\"", "g", "\"?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null]]}, "select": [true, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"g\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0818", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0091", "db_id": "scholar", "query": "select distinct t1.paperid from venue as t2 join paper as t1 on t2.venueid = t1.venueid where t1.year = 2016 and t2.venuename = \"acl\"", "query_toks": ["select", "distinct", "t1", ".", "paperid", "from", "venue", "as", "t2", "join", "paper", "as", "t1", "on", "t2", ".", "venueid", "=", "t1", ".", "venueid", "where", "t1", ".", "year", "=", "2016", "and", "t2", ".", "venuename", "=", "``", "acl", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "paperid", "from", "venue", "as", "t2", "join", "paper", "as", "t1", "on", "t2", ".", "venueid", "=", "t1", ".", "venueid", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "venuename", "=", "value"], "question": "ACL papers in 2016", "question_toks": ["ACL", "papers", "in", "2016"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1025", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0092", "db_id": "scholar", "query": "select distinct authorname from author", "query_toks": ["select", "distinct", "authorname", "from", "author"], "query_toks_no_value": ["select", "distinct", "authorname", "from", "author"], "question": "Authors of papers", "question_toks": ["Authors", "of", "papers"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1028", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0093", "db_id": "scholar", "query": "select distinct t2.title from paperkeyphrase as t5 join keyphrase as t3 on t5.keyphraseid = t3.keyphraseid join writes as t4 on t4.paperid = t5.paperid join paper as t2 on t4.paperid = t2.paperid join venue as t6 on t6.venueid = t2.venueid where t3.keyphrasename = \"liquid\" and t6.venuename = \"automatica\"", "query_toks": ["select", "distinct", "t2", ".", "title", "from", "paperkeyphrase", "as", "t5", "join", "keyphrase", "as", "t3", "on", "t5", ".", "keyphraseid", "=", "t3", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t5", ".", "paperid", "join", "paper", "as", "t2", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t6", "on", "t6", ".", "venueid", "=", "t2", ".", "venueid", "where", "t3", ".", "keyphrasename", "=", "``", "liquid", "''", "and", "t6", ".", "venuename", "=", "``", "automatica", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "title", "from", "paperkeyphrase", "as", "t5", "join", "keyphrase", "as", "t3", "on", "t5", ".", "keyphraseid", "=", "t3", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t5", ".", "paperid", "join", "paper", "as", "t2", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t6", "on", "t6", ".", "venueid", "=", "t2", ".", "venueid", "where", "t3", ".", "keyphrasename", "=", "value", "and", "t6", ".", "venuename", "=", "value"], "question": "What is the name of Liquid Automatica paper ?", "question_toks": ["What", "is", "the", "name", "of", "Liquid", "Automatica", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"liquid\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"automatica\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1116", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0094", "db_id": "scholar", "query": "select distinct t3.title from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join writes as t4 on t4.paperid = t2.paperid join paper as t3 on t4.paperid = t3.paperid where t5.keyphrasename = \"liquid haskell\"", "query_toks": ["select", "distinct", "t3", ".", "title", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "paper", "as", "t3", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "where", "t5", ".", "keyphrasename", "=", "``", "liquid", "haskell", "''"], "query_toks_no_value": ["select", "distinct", "t3", ".", "title", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "paper", "as", "t3", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "where", "t5", ".", "keyphrasename", "=", "value", "haskell"], "question": "What is the name of Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "name", "of", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"liquid haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1132", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "hidden_min_0000", "db_id": "allergy_1", "query": "select lname from student where age = (select min(age) from student)", "query_toks": ["select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "age", "=", "value", "select", "min", "(", "age", ")", "from", "student", ")"], "question": "What is the last name of the student with minimum age?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "with", "minimum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0485", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0001", "db_id": "allergy_1", "query": "select lname from student where age = (select min(age) from student)", "query_toks": ["select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "age", "=", "value", "select", "min", "(", "age", ")", "from", "student", ")"], "question": "Provide the last name of the student with min age?", "question_toks": ["Provide", "the", "last", "name", "of", "the", "student", "with", "min", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0486", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0002", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["select", "id", "from", "station", "where", "lat", ">", "37", ".", "4", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["select", "id", "from", "station", "where", "lat", ">", "value", ".", "4", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of stations that have latitude above 37.4 and minimum bike availability is below 7?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "have", "latitude", "above", "37", ".", "4", "and", "minimum", "bike", "availability", "is", "below", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0169", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0003", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["select", "id", "from", "station", "where", "lat", ">", "37", ".", "4", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["select", "id", "from", "station", "where", "lat", ">", "value", ".", "4", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of all stations that have a latitude above 37.4 and have bikes available in minimum less than 7?", "question_toks": ["What", "are", "the", "ids", "of", "all", "stations", "that", "have", "a", "latitude", "above", "37", ".", "4", "and", "have", "bikes", "available", "in", "minimum", "less", "than", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0170", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0004", "db_id": "bike_1", "query": "select date , max_temperature_f - min_temperature_f from weather order by max_temperature_f - min_temperature_f limit 1", "query_toks": ["select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "1"], "query_toks_no_value": ["select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "1"], "question": "What are the days that had the minimum temperature range, and what was that range?", "question_toks": ["What", "are", "the", "days", "that", "had", "the", "minimum", "temperature", "range", ",", "and", "what", "was", "that", "range", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 24, false], [0, 26, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 24, false], [0, 26, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0202", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0005", "db_id": "candidate_poll", "query": "select t1.name , t1.sex , min(oppose_rate) from people as t1 join candidate as t2 on t1.people_id = t2.people_id group by t1.sex", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "sex", ",", "min", "(", "oppose_rate", ")", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "group", "by", "t1", ".", "sex"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "sex", ",", "min", "(", "oppose_rate", ")", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "group", "by", "t1", ".", "sex"], "question": "Find the name of the candidates whose oppose percentage is the min for each sex.", "question_toks": ["Find", "the", "name", "of", "the", "candidates", "whose", "oppose", "percentage", "is", "the", "min", "for", "each", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2416", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0006", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "query_toks_no_value": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "question": "find the highest support percentage, min consider rate and oppose rate of all candidates.", "question_toks": ["find", "the", "highest", "support", "percentage", ",", "min", "consider", "rate", "and", "oppose", "rate", "of", "all", "candidates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2426", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0007", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["select", "t2", ".", "make", ",", "t1", ".", "year", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "year", "=", "value", "select", "min", "(", "year", ")", "from", "cars_data", ")"], "question": "Find the make and production time of the cars that were produced in the year with minimum value?", "question_toks": ["Find", "the", "make", "and", "production", "time", "of", "the", "cars", "that", "were", "produced", "in", "the", "year", "with", "minimum", "value", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0101", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0008", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["select", "t2", ".", "make", ",", "t1", ".", "year", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "year", "=", "value", "select", "min", "(", "year", ")", "from", "cars_data", ")"], "question": "What is the maker of the carr produced in the minimum year and what year was it?", "question_toks": ["What", "is", "the", "maker", "of", "the", "carr", "produced", "in", "the", "minimum", "year", "and", "what", "year", "was", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0102", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0009", "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8", "and", "year", "=", "1974"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value"], "question": "What is the minimum weight of the car produced with 8 cylinders on 1974 ?", "question_toks": ["What", "is", "the", "minimum", "weight", "of", "the", "car", "produced", "with", "8", "cylinders", "on", "1974", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "and", [false, 2, [0, [0, 23, false], null], 1974.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0119", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0010", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "value", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<=", "value"], "question": "Among the cars with more than minimum horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "minimum", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0167", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0011", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "What are the durations of the maximal and the minimum tracks in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "maximal", "and", "the", "minimum", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0831", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0012", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "``", "pop", "''"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "What are the duration of the max and min pop tracks in milliseconds?", "question_toks": ["What", "are", "the", "duration", "of", "the", "max", "and", "min", "pop", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0881", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0013", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What is the maximum, minimum and average student GPA for every department?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3222", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0014", "db_id": "college_2", "query": "select min(salary) , dept_name from instructor group by dept_name having avg(salary) > (select avg(salary) from instructor)", "query_toks": ["select", "min", "(", "salary", ")", ",", "dept_name", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "(", "select", "avg", "(", "salary", ")", "from", "instructor", ")"], "query_toks_no_value": ["select", "min", "(", "salary", ")", ",", "dept_name", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "(", "select", "avg", "(", "salary", ")", "from", "instructor", ")"], "question": "What is the minimum salary in departments with average salary greater than the overall average.", "question_toks": ["What", "is", "the", "minimum", "salary", "in", "departments", "with", "average", "salary", "greater", "than", "the", "overall", "average", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [5, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1401", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0015", "db_id": "college_2", "query": "select name from instructor where salary > (select min(salary) from instructor where dept_name = \"biology\")", "query_toks": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "``", "biology", "\")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "value", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", "\")"], "question": "Find names of instructors with salary greater than that of minimum of instructors salaries in the Biology department.", "question_toks": ["Find", "names", "of", "instructors", "with", "salary", "greater", "than", "that", "of", "minimum", "of", "instructors", "salaries", "in", "the", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1488", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0016", "db_id": "college_2", "query": "select name from instructor where salary > (select min(salary) from instructor where dept_name = \"biology\")", "query_toks": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "``", "biology", "\")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "value", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", "\")"], "question": "What are the names of instructors who earn more than instructor with minimum salary from the Biology department?", "question_toks": ["What", "are", "the", "names", "of", "instructors", "who", "earn", "more", "than", "instructor", "with", "minimum", "salary", "from", "the", "Biology", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1489", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0017", "db_id": "cre_Doc_Template_Mgt", "query": "select min(version_number) , template_type_code from templates", "query_toks": ["select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates"], "query_toks_no_value": ["select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates"], "question": "What the minimum version number and its template type code?", "question_toks": ["What", "the", "minimum", "version", "number", "and", "its", "template", "type", "code", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0335", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0018", "db_id": "cre_Doc_Template_Mgt", "query": "select min(version_number) , template_type_code from templates", "query_toks": ["select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates"], "query_toks_no_value": ["select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates"], "question": "Return the minimum version number, along with its corresponding template type code.", "question_toks": ["Return", "the", "minimum", "version", "number", ",", "along", "with", "its", "corresponding", "template", "type", "code", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0336", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0019", "db_id": "department_store", "query": "select distinct customer_id from customer_orders where order_date > (select min(order_date) from customer_orders where order_status_code = \"cancelled\")", "query_toks": ["select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "(", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "``", "cancelled", "\")"], "query_toks_no_value": ["select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "value", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "value", "\")"], "question": "Find the ids of all distinct customers who made order with order date more than minimum order date of cancelled order.", "question_toks": ["Find", "the", "ids", "of", "all", "distinct", "customers", "who", "made", "order", "with", "order", "date", "more", "than", "minimum", "order", "date", "of", "cancelled", "order", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 31, false], null]]]], "where": [[false, 3, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[2, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4753", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0020", "db_id": "department_store", "query": "select distinct customer_id from customer_orders where order_date > (select min(order_date) from customer_orders where order_status_code = \"cancelled\")", "query_toks": ["select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "(", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "``", "cancelled", "\")"], "query_toks_no_value": ["select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "value", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "value", "\")"], "question": "What are the distinct ids of customers who made an order after minimum order date that was Cancelled?", "question_toks": ["What", "are", "the", "distinct", "ids", "of", "customers", "who", "made", "an", "order", "after", "minimum", "order", "date", "that", "was", "Cancelled", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 31, false], null]]]], "where": [[false, 3, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[2, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4754", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0021", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "What is the maximum and minimum customer codes?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4775", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0022", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "What are the maximum and minimum prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4781", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0023", "db_id": "epinions_1", "query": "select min(rank) from review", "query_toks": ["select", "min", "(", "rank", ")", "from", "review"], "query_toks_no_value": ["select", "min", "(", "rank", ")", "from", "review"], "question": "Find the minimum rank of all reviews.", "question_toks": ["Find", "the", "minimum", "rank", "of", "all", "reviews", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1694", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0024", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration > (select min(duration) from pitstops where raceid = 841)", "query_toks": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "(", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "value", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "Find the distinct driver id of all drivers that have a longer stop duration than minimum of drivers in the race whose id is 841?", "question_toks": ["Find", "the", "distinct", "driver", "id", "of", "all", "drivers", "that", "have", "a", "longer", "stop", "duration", "than", "minimum", "of", "drivers", "in", "the", "race", "whose", "id", "is", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 3, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[2, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2197", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0025", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration > (select min(duration) from pitstops where raceid = 841)", "query_toks": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "(", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "value", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "What are the different ids and stop durations of all the drivers whose stop lasted longer than minimum of the drivers in the race with the id 841?", "question_toks": ["What", "are", "the", "different", "ids", "and", "stop", "durations", "of", "all", "the", "drivers", "whose", "stop", "lasted", "longer", "than", "minimum", "of", "the", "drivers", "in", "the", "race", "with", "the", "id", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 3, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[2, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2198", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0026", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "value", "select", "min", "(", "population", ")", "from", "state", ")"], "question": "what state has the minimum population", "question_toks": ["what", "state", "has", "the", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0030", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0027", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "value", "select", "min", "(", "population", ")", "from", "state", ")"], "question": "what is the state with minimum population", "question_toks": ["what", "is", "the", "state", "with", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0031", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0028", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "value", "select", "min", "(", "population", ")", "from", "state", ")"], "question": "what is the state with the minimum value of population", "question_toks": ["what", "is", "the", "state", "with", "the", "minimum", "value", "of", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0032", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0029", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city where state_name = \"alaska\" ) and state_name = \"alaska\"", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", "where", "state_name", "=", "``", "alaska", "''", ")", "and", "state_name", "=", "``", "alaska", "''"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "min", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the city in alaska with the minimum population", "question_toks": ["what", "is", "the", "city", "in", "alaska", "with", "the", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0145", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0030", "db_id": "geo", "query": "select density from state where area = ( select min ( area ) from state )", "query_toks": ["select", "density", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "query_toks_no_value": ["select", "density", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the population density of the state with the minimum value of area", "question_toks": ["what", "is", "the", "population", "density", "of", "the", "state", "with", "the", "minimum", "value", "of", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0151", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0031", "db_id": "geo", "query": "select density from state where area = ( select min ( area ) from state )", "query_toks": ["select", "density", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "query_toks_no_value": ["select", "density", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the population density of the state with minimum area", "question_toks": ["what", "is", "the", "population", "density", "of", "the", "state", "with", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0152", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0032", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city where state_name in ( select state_name from state where area = ( select max ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select max ( area ) from state ) )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "min", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "max", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "max", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the city with the minimum area in the state with maximum area", "question_toks": ["what", "is", "the", "city", "with", "the", "minimum", "area", "in", "the", "state", "with", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0173", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0033", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what is the state with the minimum population density", "question_toks": ["what", "is", "the", "state", "with", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0189", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0034", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the minimum population density", "question_toks": ["what", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0190", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0035", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the minimum population density", "question_toks": ["which", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0191", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0036", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the minimum population density", "question_toks": ["which", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0192", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0037", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the minimum population density", "question_toks": ["what", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0193", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0038", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the minimum population density", "question_toks": ["which", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0194", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0039", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has population density with minimum value", "question_toks": ["what", "state", "has", "population", "density", "with", "minimum", "value"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0195", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0040", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the population density with minimum value", "question_toks": ["which", "state", "has", "the", "population", "density", "with", "minimum", "value"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0196", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0041", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the min population density", "question_toks": ["what", "state", "has", "the", "min", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0197", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0042", "db_id": "geo", "query": "select area from state where density = ( select min ( density ) from state )", "query_toks": ["select", "area", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "area", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what is the area of the state with the min population density", "question_toks": ["what", "is", "the", "area", "of", "the", "state", "with", "the", "min", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0206", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0043", "db_id": "geo", "query": "select capital from state where area = ( select min ( area ) from state )", "query_toks": ["select", "capital", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "query_toks_no_value": ["select", "capital", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the capital of the state with min area", "question_toks": ["what", "is", "the", "capital", "of", "the", "state", "with", "min", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0315", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0044", "db_id": "geo", "query": "select highest_point from highlow where state_name in ( select state_name from state where density = ( select min ( density ) from state ) )", "query_toks": ["select", "highest_point", "from", "highlow", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")", ")"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "density", "=", "value", "select", "min", "(", "density", ")", "from", "state", ")", ")"], "question": "what is the highest point of the state with the minimum population density", "question_toks": ["what", "is", "the", "highest", "point", "of", "the", "state", "with", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0338", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0045", "db_id": "geo", "query": "select city_name from city where state_name in ( select state_name from state where state_name in ( select traverse from river where river_name = \"mississippi\" ) and area = ( select min ( area ) from state where state_name in ( select traverse from river where river_name = \"mississippi\" ) ) ) order by population desc limit 1", "query_toks": ["select", "city_name", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "state_name", "in", "(", "select", "traverse", "from", "river", "where", "river_name", "=", "``", "mississippi", "''", ")", "and", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "traverse", "from", "river", "where", "river_name", "=", "``", "mississippi", "''", ")", ")", ")", "order", "by", "population", "desc", "limit", "1"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "state_name", "in", "(", "select", "traverse", "from", "river", "where", "river_name", "=", "value", ")", "and", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "traverse", "from", "river", "where", "river_name", "=", "value", ")", ")", ")", "order", "by", "population", "desc", "limit", "1"], "question": "what is the largest city in state with minimum area through which the mississippi runs", "question_toks": ["what", "is", "the", "largest", "city", "in", "state", "with", "minimum", "area", "through", "which", "the", "mississippi", "runs"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"mississippi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"mississippi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0339", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0046", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the largest city in the state with minimum area in the usa", "question_toks": ["what", "is", "the", "largest", "city", "in", "the", "state", "with", "minimum", "area", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0340", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0047", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the city with maximum area in the state with minimum area", "question_toks": ["what", "is", "the", "city", "with", "maximum", "area", "in", "the", "state", "with", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0341", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0048", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow )", "query_toks": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "value", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "what is the lowest point in usa with minimum elevation", "question_toks": ["what", "is", "the", "lowest", "point", "in", "usa", "with", "minimum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0356", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0049", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow )", "query_toks": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "value", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "what is the lowest point in the united states with the minimum elevation", "question_toks": ["what", "is", "the", "lowest", "point", "in", "the", "united", "states", "with", "the", "minimum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0357", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0050", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow )", "query_toks": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "value", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "where is the lowest point in the us with the minimum elevation", "question_toks": ["where", "is", "the", "lowest", "point", "in", "the", "us", "with", "the", "minimum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0358", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0051", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow )", "query_toks": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "value", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "what is the lowest point of the us with the min value of elevation", "question_toks": ["what", "is", "the", "lowest", "point", "of", "the", "us", "with", "the", "min", "value", "of", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0359", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0052", "db_id": "geo", "query": "select population from state where area = ( select min ( area ) from state )", "query_toks": ["select", "population", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "query_toks_no_value": ["select", "population", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the population of the state with the minimum area", "question_toks": ["what", "is", "the", "population", "of", "the", "state", "with", "the", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0375", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0053", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what is the city in the usa with minimum area", "question_toks": ["what", "is", "the", "city", "in", "the", "usa", "with", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0378", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0054", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what is the city in the us with minimum area", "question_toks": ["what", "is", "the", "city", "in", "the", "us", "with", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0379", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0055", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what city has the minimum population", "question_toks": ["what", "city", "has", "the", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0380", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0056", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what is the city with the minimum population", "question_toks": ["what", "is", "the", "city", "with", "the", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0381", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0057", "db_id": "geo", "query": "select state_name from state where area = ( select min ( area ) from state where state_name in ( select border from border_info where state_name = \"texas\" ) ) and state_name in ( select border from border_info where state_name = \"texas\" )", "query_toks": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "``", "texas", "''", ")", ")", "and", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "``", "texas", "''", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")", ")", "and", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")"], "question": "what is the state with minimum area bordering texas", "question_toks": ["what", "is", "the", "state", "with", "minimum", "area", "bordering", "texas"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0382", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0058", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river )", "query_toks": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "value", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "what is the river with the minimum length in the usa", "question_toks": ["what", "is", "the", "river", "with", "the", "minimum", "length", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0460", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0059", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river )", "query_toks": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "value", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "what is the river with minimum length", "question_toks": ["what", "is", "the", "river", "with", "minimum", "length"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0461", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0060", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river )", "query_toks": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "value", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "which river has the minimum length", "question_toks": ["which", "river", "has", "the", "minimum", "length"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0464", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0061", "db_id": "geo", "query": "select distinct traverse from river where length = ( select min ( distinct length ) from river )", "query_toks": ["select", "distinct", "traverse", "from", "river", "where", "length", "=", "(", "select", "min", "(", "distinct", "length", ")", "from", "river", ")"], "query_toks_no_value": ["select", "distinct", "traverse", "from", "river", "where", "length", "=", "value", "select", "min", "(", "distinct", "length", ")", "from", "river", ")"], "question": "what state has the river with minimum length", "question_toks": ["what", "state", "has", "the", "river", "with", "minimum", "length"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0501", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0062", "db_id": "geo", "query": "select traverse from river where length = ( select min ( length ) from river )", "query_toks": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "value", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "what states does the river with minimum length run through", "question_toks": ["what", "states", "does", "the", "river", "with", "minimum", "length", "run", "through"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0504", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0063", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "What are the maximum cost, minimum cost and average cost of procedures?", "question_toks": ["What", "are", "the", "maximum", "cost", ",", "minimum", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3966", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0064", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "Tell me the maximum, minimum and average cost of procedures.", "question_toks": ["Tell", "me", "the", "maximum", ",", "minimum", "and", "average", "cost", "of", "procedures", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3967", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0065", "db_id": "hr_1", "query": "select min(salary) , department_id from employees group by department_id", "query_toks": ["select", "min", "(", "salary", ")", ",", "department_id", "from", "employees", "group", "by", "department_id"], "query_toks_no_value": ["select", "min", "(", "salary", ")", ",", "department_id", "from", "employees", "group", "by", "department_id"], "question": "return the minimum salary for every departments.", "question_toks": ["return", "the", "minimum", "salary", "for", "every", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3471", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0066", "db_id": "hr_1", "query": "select first_name , last_name , department_id from employees where salary in (select min(salary) from employees group by department_id)", "query_toks": ["select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")"], "question": "Find the first name and last name and department id for those employees who earn such amount of salary which is the minimum salary of any of the departments.", "question_toks": ["Find", "the", "first", "name", "and", "last", "name", "and", "department", "id", "for", "those", "employees", "who", "earn", "such", "amount", "of", "salary", "which", "is", "the", "minimum", "salary", "of", "any", "of", "the", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 8, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3473", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0067", "db_id": "hr_1", "query": "select first_name , last_name , department_id from employees where salary in (select min(salary) from employees group by department_id)", "query_toks": ["select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")"], "question": "What are the full names and department ids for the minimum paid employees across all departments.", "question_toks": ["What", "are", "the", "full", "names", "and", "department", "ids", "for", "the", "minimum", "paid", "employees", "across", "all", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 8, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3474", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0068", "db_id": "hr_1", "query": "select * from employees where salary between (select min(salary) from employees) and 2500", "query_toks": ["select", "*", "from", "employees", "where", "salary", "between", "(", "select", "min", "(", "salary", ")", "from", "employees", ")", "and", "2500"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "salary", "between", "(", "select", "min", "(", "salary", ")", "from", "employees", ")", "and", "2500"], "question": "display all the information of the employees whose salary if within the range of minimum salary and 2500.", "question_toks": ["display", "all", "the", "information", "of", "the", "employees", "whose", "salary", "if", "within", "the", "range", "of", "minimum", "salary", "and", "2500", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, 2500.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3495", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0069", "db_id": "hr_1", "query": "select employee_id , job_id from employees where salary < ( select min(salary) from employees where job_id = \"mk_man\" )", "query_toks": ["select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "(", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "``", "mk_man", "''", ")"], "query_toks_no_value": ["select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "value", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "display the employee number and job id for all employees whose salary is smaller than minimum salary of those employees whose job title is MK_MAN.", "question_toks": ["display", "the", "employee", "number", "and", "job", "id", "for", "all", "employees", "whose", "salary", "is", "smaller", "than", "minimum", "salary", "of", "those", "employees", "whose", "job", "title", "is", "MK_MAN", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"mk_man\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3507", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0070", "db_id": "hr_1", "query": "select employee_id , job_id from employees where salary < ( select min(salary) from employees where job_id = \"mk_man\" )", "query_toks": ["select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "(", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "``", "mk_man", "''", ")"], "query_toks_no_value": ["select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "value", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "What are the employee ids and job ids for employees who make less than the minimum earning employee with title MK_MAN?", "question_toks": ["What", "are", "the", "employee", "ids", "and", "job", "ids", "for", "employees", "who", "make", "less", "than", "the", "minimum", "earning", "employee", "with", "title", "MK_MAN", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"mk_man\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3508", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0071", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_piad = (select min(amount_piad) from claim_headers)", "query_toks": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_piad", "=", "value", "select", "min", "(", "amount_piad", ")", "from", "claim_headers", ")"], "question": "Which customer made the minimum amount of claim in one claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "minimum", "amount", "of", "claim", "in", "one", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1522", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0072", "db_id": "manufactory_1", "query": "select name from manufacturers where revenue < (select min(revenue) from manufacturers where headquarter = \"austin\")", "query_toks": ["select", "name", "from", "manufacturers", "where", "revenue", "<", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "``", "austin", "\")"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "where", "revenue", "<", "value", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", "\")"], "question": "Find the name of companies whose revenue is smaller than the minimum revenue of all companies based in Austin.", "question_toks": ["Find", "the", "name", "of", "companies", "whose", "revenue", "is", "smaller", "than", "the", "minimum", "revenue", "of", "all", "companies", "based", "in", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5302", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0073", "db_id": "manufactory_1", "query": "select name from manufacturers where revenue < (select min(revenue) from manufacturers where headquarter = \"austin\")", "query_toks": ["select", "name", "from", "manufacturers", "where", "revenue", "<", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "``", "austin", "\")"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "where", "revenue", "<", "value", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", "\")"], "question": "What are the names of companies with revenue less than the minimum revenue of any manufacturer in Austin?", "question_toks": ["What", "are", "the", "names", "of", "companies", "with", "revenue", "less", "than", "the", "minimum", "revenue", "of", "any", "manufacturer", "in", "Austin", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5303", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0074", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers where revenue > (select min(revenue) from manufacturers where headquarter = \"austin\")", "query_toks": ["select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "``", "austin", "\")"], "query_toks_no_value": ["select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "value", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", "\")"], "question": "Find the total revenue of companies whose revenue is larger than the revenue of minimum value of companies based in Austin.", "question_toks": ["Find", "the", "total", "revenue", "of", "companies", "whose", "revenue", "is", "larger", "than", "the", "revenue", "of", "minimum", "value", "of", "companies", "based", "in", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5304", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0075", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers where revenue > (select min(revenue) from manufacturers where headquarter = \"austin\")", "query_toks": ["select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "``", "austin", "\")"], "query_toks_no_value": ["select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "value", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", "\")"], "question": "What is the total revenue of companies with revenue greater than the minimum revenue of any manufacturer in Austin?", "question_toks": ["What", "is", "the", "total", "revenue", "of", "companies", "with", "revenue", "greater", "than", "the", "minimum", "revenue", "of", "any", "manufacturer", "in", "Austin", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5305", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0076", "db_id": "manufactory_1", "query": "select code , name , min(price) from products group by name", "query_toks": ["select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name"], "query_toks_no_value": ["select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name"], "question": "Select the code, name and minimum price of the product for each code", "question_toks": ["Select", "the", "code", "of", "the", "product", "with", "minimum", "price", "in", "each", "product", "category", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5350", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0077", "db_id": "manufactory_1", "query": "select code , name , min(price) from products group by name", "query_toks": ["select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name"], "query_toks_no_value": ["select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name"], "question": "What are the codes, names and minimum prices of the product for each code?", "question_toks": ["What", "are", "the", "codes", "and", "names", "of", "the", "products", "with", "minimum", "price", "in", "each", "category", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5351", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0078", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What is the minimum and maximum rating star?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2450", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0079", "db_id": "movie_1", "query": "select avg(t1.stars) , t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select min(year) from movie)", "query_toks": ["select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "movie", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "value", "select", "min", "(", "year", ")", "from", "movie", ")"], "question": "What is the average rating stars and title for the movie with minimum year?", "question_toks": ["What", "is", "the", "average", "rating", "stars", "and", "title", "for", "the", "movie", "with", "minimum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2462", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0080", "db_id": "movie_1", "query": "select avg(t1.stars) , t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select min(year) from movie)", "query_toks": ["select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "movie", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "value", "select", "min", "(", "year", ")", "from", "movie", ")"], "question": "For the movie with min year listed, what is its average rating and title?", "question_toks": ["For", "the", "movie", "with", "min", "year", "listed", ",", "what", "is", "its", "average", "rating", "and", "title", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2463", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0081", "db_id": "movie_1", "query": "select t2.title , t1.rid , t1.stars , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t1.rid", "query_toks": ["select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid"], "question": "Find the title and star rating of the movie that got the minimum rating star for each reviewer.", "question_toks": ["Find", "the", "title", "and", "star", "rating", "of", "the", "movie", "that", "got", "the", "minimum", "rating", "star", "for", "each", "reviewer", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2504", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0082", "db_id": "movie_1", "query": "select t2.title , t1.rid , t1.stars , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t1.rid", "query_toks": ["select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid"], "question": "For each reviewer id, what is the title and rating for the movie with the minimum rating?", "question_toks": ["For", "each", "reviewer", "id", ",", "what", "is", "the", "title", "and", "rating", "for", "the", "movie", "with", "the", "minimum", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2505", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0083", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t2.director", "query_toks": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director"], "question": "Find the title and score of the movie with the minimum rating among all movies directed by each director.", "question_toks": ["Find", "the", "title", "and", "score", "of", "the", "movie", "with", "the", "minimum", "rating", "among", "all", "movies", "directed", "by", "each", "director", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2506", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0084", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t2.director", "query_toks": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director"], "question": "For each director, what is the title and score of their minimum rated movie?", "question_toks": ["For", "each", "director", ",", "what", "is", "the", "title", "and", "score", "of", "their", "minimum", "rated", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2507", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0085", "db_id": "music_1", "query": "select distinct song_name from song where resolution > (select min(resolution) from song where languages = \"english\")", "query_toks": ["select", "distinct", "song_name", "from", "song", "where", "resolution", ">", "(", "select", "min", "(", "resolution", ")", "from", "song", "where", "languages", "=", "``", "english", "\")"], "query_toks_no_value": ["select", "distinct", "song_name", "from", "song", "where", "resolution", ">", "value", "select", "min", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value", "\")"], "question": "Find the distinct names of all songs that have a higher resolution than the minimum one in English.", "question_toks": ["Find", "the", "distinct", "names", "of", "all", "songs", "that", "have", "a", "higher", "resolution", "than", "the", "minimum", "one", "in", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3569", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0086", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "query_toks_no_value": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "question": "What are the minimum duration and minimum rating of songs grouped by genre and ordered by genre?", "question_toks": ["What", "are", "the", "minimum", "duration", "and", "minimum", "rating", "of", "songs", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3603", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0087", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "query_toks_no_value": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "question": "What is the minimum duration and minimum rating of songs for each genre, ordered alphabetically by genre?", "question_toks": ["What", "is", "the", "minimum", "duration", "and", "minimum", "rating", "of", "songs", "for", "each", "genre", ",", "ordered", "alphabetically", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_min_0087", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0088", "db_id": "music_1", "query": "select song_name from song where rating < (select min(rating) from song where languages = \"english\")", "query_toks": ["select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "min", "(", "rating", ")", "from", "song", "where", "languages", "=", "``", "english", "\")"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "rating", "<", "value", "select", "min", "(", "rating", ")", "from", "song", "where", "languages", "=", "value", "\")"], "question": "What are the names of the songs whose rating is below the minimum rating of all songs in English?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "whose", "rating", "is", "below", "the", "minimum", "rating", "of", "all", "songs", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3613", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0089", "db_id": "network_2", "query": "select name from person where gender = \"male\" and age = (select min(age) from person where gender = \"male\" )", "query_toks": ["select", "name", "from", "person", "where", "gender", "=", "``", "male", "''", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "``", "male", "''", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "value", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")"], "question": "Who is the male with minimum age?", "question_toks": ["Who", "is", "the", "male", "with", "minimum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4412", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0090", "db_id": "network_2", "query": "select name from person where gender = \"male\" and age = (select min(age) from person where gender = \"male\" )", "query_toks": ["select", "name", "from", "person", "where", "gender", "=", "``", "male", "''", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "``", "male", "''", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "value", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")"], "question": "What is the name of the male with minimum value of age?", "question_toks": ["What", "is", "the", "name", "of", "the", "male", "with", "minimum", "value", "of", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4413", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0091", "db_id": "network_2", "query": "select min(age) , job from person group by job", "query_toks": ["select", "min", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job"], "question": "How old is the person with minimum age for each job?", "question_toks": ["How", "old", "is", "the", "person", "with", "minimum", "age", "for", "each", "job", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4427", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0092", "db_id": "network_2", "query": "select name from person where age > (select min(age) from person where job = \"engineer\") order by age", "query_toks": ["select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "``", "engineer", "\")", "order", "by", "age"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", ">", "value", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", "\")", "order", "by", "age"], "question": "Find the name of people whose age is greater than minimum age of engineers sorted by their age.", "question_toks": ["Find", "the", "name", "of", "people", "whose", "age", "is", "greater", "than", "minimum", "age", "of", "engineers", "sorted", "by", "their", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4430", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0093", "db_id": "network_2", "query": "select name from person where age > (select min(age) from person where job = \"engineer\") order by age", "query_toks": ["select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "``", "engineer", "\")", "order", "by", "age"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", ">", "value", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", "\")", "order", "by", "age"], "question": "What is the name of all the people who are older than at minimum-aged engineer? Order them by age.", "question_toks": ["What", "is", "the", "name", "of", "all", "the", "people", "who", "are", "older", "than", "at", "minimum", "-", "aged", "engineer", "?", "Order", "them", "by", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4431", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0094", "db_id": "network_2", "query": "select name from personfriend where friend = \"alice\" and year = (select min(year) from personfriend where friend = \"alice\")", "query_toks": ["select", "name", "from", "personfriend", "where", "friend", "=", "``", "alice", "''", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "``", "alice", "\")"], "query_toks_no_value": ["select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "value", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", "\")"], "question": "Find the name of persons who are friends with Alice for the minimum number of years.", "question_toks": ["Find", "the", "name", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "minimum", "number", "of", "years", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4472", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0095", "db_id": "network_2", "query": "select name from personfriend where friend = \"alice\" and year = (select min(year) from personfriend where friend = \"alice\")", "query_toks": ["select", "name", "from", "personfriend", "where", "friend", "=", "``", "alice", "''", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "``", "alice", "\")"], "query_toks_no_value": ["select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "value", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", "\")"], "question": "What are the names of all people who are friends with Alice for the minimum amount of time?", "question_toks": ["What", "are", "the", "names", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "minimum", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4473", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0096", "db_id": "scientist_1", "query": "select t2.name , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select min(hours) from projects)", "query_toks": ["select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "min", "(", "hours", ")", "from", "projects", ")"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "value", "select", "min", "(", "hours", ")", "from", "projects", ")"], "question": "Find name of the project that needs the minimum amount of time to finish and the name of scientists who worked on it.", "question_toks": ["Find", "name", "of", "the", "project", "that", "needs", "the", "minimum", "amount", "of", "time", "to", "finish", "and", "the", "name", "of", "scientists", "who", "worked", "on", "it", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6515", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0097", "db_id": "scientist_1", "query": "select t2.name , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select min(hours) from projects)", "query_toks": ["select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "min", "(", "hours", ")", "from", "projects", ")"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "value", "select", "min", "(", "hours", ")", "from", "projects", ")"], "question": "What is the name of the project that requires the minimum number of hours, and the names of the scientists assigned to it?", "question_toks": ["What", "is", "the", "name", "of", "the", "project", "that", "requires", "the", "minimum", "number", "of", "hours", ",", "and", "the", "names", "of", "the", "scientists", "assigned", "to", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6516", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0098", "db_id": "soccer_2", "query": "select cname , state , min(enr) from college group by state", "query_toks": ["select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state"], "query_toks_no_value": ["select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state"], "question": "What is the name of school that has the minimum enrollment in each state?", "question_toks": ["What", "is", "the", "name", "of", "school", "that", "has", "the", "minimum", "enrollment", "in", "each", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4992", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0099", "db_id": "soccer_2", "query": "select cname , state , min(enr) from college group by state", "query_toks": ["select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state"], "query_toks_no_value": ["select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state"], "question": "What is the name of the school with minimum enrollment size per state?", "question_toks": ["What", "is", "the", "name", "of", "the", "school", "with", "minimum", "enrollment", "size", "per", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4993", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0100", "db_id": "soccer_2", "query": "select distinct cname from college where enr > (select min(enr) from college where state = \"fl\")", "query_toks": ["select", "distinct", "cname", "from", "college", "where", "enr", ">", "(", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "``", "fl", "\")"], "query_toks_no_value": ["select", "distinct", "cname", "from", "college", "where", "enr", ">", "value", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "value", "\")"], "question": "Find names of colleges with enrollment greater than college with minimum enrollment in the FL state.", "question_toks": ["Find", "names", "of", "colleges", "with", "enrollment", "greater", "than", "college", "with", "minimum", "enrollment", "in", "the", "FL", "state", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"fl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5040", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0101", "db_id": "soccer_2", "query": "select distinct cname from college where enr > (select min(enr) from college where state = \"fl\")", "query_toks": ["select", "distinct", "cname", "from", "college", "where", "enr", ">", "(", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "``", "fl", "\")"], "query_toks_no_value": ["select", "distinct", "cname", "from", "college", "where", "enr", ">", "value", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "value", "\")"], "question": "What are the names of the colleges that are larger than at college with minimum enrollment in Florida?", "question_toks": ["What", "are", "the", "names", "of", "the", "colleges", "that", "are", "larger", "than", "at", "college", "with", "minimum", "enrollment", "in", "Florida", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"fl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5041", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0102", "db_id": "station_weather", "query": "select min(low_temperature) , max(wind_speed_mph) from weekly_weather", "query_toks": ["select", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "from", "weekly_weather"], "query_toks_no_value": ["select", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "from", "weekly_weather"], "question": "show the minimum low temperature and maximum wind speed in miles per hour.", "question_toks": ["show", "the", "minimum", "low", "temperature", "and", "maximum", "wind", "speed", "in", "miles", "per", "hour", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]], [1, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3171", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0103", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where date_problem_reported < ( select min(date_problem_reported) from problems as t3 join staff as t4 on t3.reported_by_staff_id = t4.staff_id where t4.staff_first_name = \"lysanne\" and t4.staff_last_name = \"turcotte\" )", "query_toks": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "(", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "``", "lysanne", "''", "and", "t4", ".", "staff_last_name", "=", "``", "turcotte", "''", ")"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "value", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")"], "question": "What are the ids of the problems reported before the minimum date of problem reported by Lysanne Turcotte?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "reported", "before", "the", "minimum", "date", "of", "problem", "reported", "by", "Lysanne", "Turcotte", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[2, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"lysanne\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5388", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0104", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where date_problem_reported < ( select min(date_problem_reported) from problems as t3 join staff as t4 on t3.reported_by_staff_id = t4.staff_id where t4.staff_first_name = \"lysanne\" and t4.staff_last_name = \"turcotte\" )", "query_toks": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "(", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "``", "lysanne", "''", "and", "t4", ".", "staff_last_name", "=", "``", "turcotte", "''", ")"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "value", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")"], "question": "Which problems were reported before the minimum date of problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.", "question_toks": ["Which", "problems", "were", "reported", "before", "the", "minimum", "date", "of", "problem", "reported", "by", "the", "staff", "Lysanne", "Turcotte", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[2, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"lysanne\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5389", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0105", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "Tell me the ages of the students with maximum and minimum ages studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "students", "with", "maximum", "and", "minimum", "ages", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5461", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0106", "db_id": "wine_1", "query": "select distinct name from wine where price > (select min(price) from wine where winery = \"john anthony\")", "query_toks": ["select", "distinct", "name", "from", "wine", "where", "price", ">", "(", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "``", "john", "anthony", "\")"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "where", "price", ">", "value", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "value", "anthony", "\")"], "question": "Find the distinct names of all wines that have prices higher than wines with minimum price from John Anthony winery.", "question_toks": ["Find", "the", "distinct", "names", "of", "all", "wines", "that", "have", "prices", "higher", "than", "wines", "with", "minimum", "price", "from", "John", "Anthony", "winery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"john anthony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6557", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0107", "db_id": "wine_1", "query": "select distinct name from wine where price > (select min(price) from wine where winery = \"john anthony\")", "query_toks": ["select", "distinct", "name", "from", "wine", "where", "price", ">", "(", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "``", "john", "anthony", "\")"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "where", "price", ">", "value", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "value", "anthony", "\")"], "question": "What are the distinct names of wines with prices higher than wine with minimum price from John Anthony winery.", "question_toks": ["What", "are", "the", "distinct", "names", "of", "wines", "with", "prices", "higher", "than", "wine", "with", "minimum", "price", "from", "John", "Anthony", "winery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"john anthony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6558", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0108", "db_id": "wine_1", "query": "select name from wine where year < (select min(year) from wine where winery = \"brander\")", "query_toks": ["select", "name", "from", "wine", "where", "year", "<", "(", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "``", "brander", "\")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "year", "<", "value", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "value", "\")"], "question": "What are the names of wines whose production year are before the year of wines with min year by Brander winery?", "question_toks": ["What", "are", "the", "names", "of", "wines", "whose", "production", "year", "are", "before", "the", "year", "of", "wines", "with", "min", "year", "by", "Brander", "winery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"brander\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6583", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0109", "db_id": "wine_1", "query": "select name from wine where year < (select min(year) from wine where winery = \"brander\")", "query_toks": ["select", "name", "from", "wine", "where", "year", "<", "(", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "``", "brander", "\")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "year", "<", "value", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "value", "\")"], "question": "What are the names of wines produced before wine with minimum year from the Brander winery?", "question_toks": ["What", "are", "the", "names", "of", "wines", "produced", "before", "wine", "with", "minimum", "year", "from", "the", "Brander", "winery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"brander\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6584", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0110", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "africa", "''", "and", "population", "<", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "value", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "Which African countries have a smaller population than minimum population of country in Asia?", "question_toks": ["Which", "African", "countries", "have", "a", "smaller", "population", "than", "minimum", "population", "of", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0775", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0111", "db_id": "wta_1", "query": "select min(loser_rank) from matches", "query_toks": ["select", "min", "(", "loser_rank", ")", "from", "matches"], "query_toks_no_value": ["select", "min", "(", "loser_rank", ")", "from", "matches"], "question": "Find the minimum rank of losers in all matches.", "question_toks": ["Find", "the", "minimum", "rank", "of", "losers", "in", "all", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0439", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0112", "db_id": "wta_1", "query": "select min(loser_rank) from matches", "query_toks": ["select", "min", "(", "loser_rank", ")", "from", "matches"], "query_toks_no_value": ["select", "min", "(", "loser_rank", ")", "from", "matches"], "question": "What is the min rank of losers across all matches?", "question_toks": ["What", "is", "the", "min", "rank", "of", "losers", "across", "all", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0440", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "math_plus_0000", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join savings as t2 on t1.custid = t2.custid where t2.balance > (select avg(balance) from savings)", "query_toks": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", ">", "value", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "Find the names and savings balance of accounts whose savings balance is higher than the average savings balance.", "question_toks": ["Find", "the", "names", "and", "savings", "balance", "of", "accounts", "whose", "savings", "balance", "is", "higher", "than", "the", "average", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1800", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0001", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance > (select avg(balance) from savings)", "query_toks": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "value", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "What are the names and checking balance for accounts with savings balances higher than the average savings balance?", "question_toks": ["What", "are", "the", "names", "and", "checking", "balance", "for", "accounts", "with", "savings", "balances", "higher", "than", "the", "average", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1801", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0002", "db_id": "small_bank_1", "query": "select t1.balance from checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance", "query_toks": ["select", "t1", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t2", ".", "balance"], "query_toks_no_value": ["select", "t1", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t2", ".", "balance"], "question": "Find the checking balance of all accounts sorted by the saving balance in ascending order.", "question_toks": ["Find", "the", "checking", "balance", "of", "all", "accounts", "sorted", "by", "the", "saving", "balance", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1812", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0003", "db_id": "small_bank_1", "query": "select balance from checking order by balance", "query_toks": ["select", "balance", "from", "checking", "order", "by", "balance"], "query_toks_no_value": ["select", "balance", "from", "checking", "order", "by", "balance"], "question": "What is the checking balance for all customers, ordered by the checking balance?", "question_toks": ["What", "is", "the", "checking", "balance", "for", "all", "customers", ",", "ordered", "by", "the", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1813", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0004", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "value", ".", "balance"], "question": "Find the name and checking balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1822", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0005", "db_id": "small_bank_1", "query": "select t1.name , t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["select", "t1", ".", "name", ",", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "value", ".", "balance"], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the savings balances?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1823", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "group_by_0000", "db_id": "car_1", "query": "select avg(weight) from cars_data", "query_toks": ["select", "avg", "(", "weight", ")", "from", "cars_data"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", "from", "cars_data"], "question": "What is the average weight?", "question_toks": ["What", "is", "the", "average", "weight", "and", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0128", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0001", "db_id": "car_1", "query": "select max(accelerate) from cars_data", "query_toks": ["select", "max", "(", "accelerate", ")", "from", "cars_data"], "query_toks_no_value": ["select", "max", "(", "accelerate", ")", "from", "cars_data"], "question": "What is the maximum accelerate?", "question_toks": ["What", "is", "the", "maximum", "accelerate", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0139", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0002", "db_id": "car_1", "query": "select max(accelerate) from cars_data", "query_toks": ["select", "max", "(", "accelerate", ")", "from", "cars_data"], "query_toks_no_value": ["select", "max", "(", "accelerate", ")", "from", "cars_data"], "question": "What is the maximum accelerate?", "question_toks": ["What", "is", "the", "maximum", "accelerate", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0140", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0003", "db_id": "concert_singer", "query": "select country from singer", "query_toks": ["select", "country", "from", "singer"], "query_toks_no_value": ["select", "country", "from", "singer"], "question": "Show all countries.", "question_toks": ["Show", "all", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0010", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0004", "db_id": "concert_singer", "query": "select count(*) from singer", "query_toks": ["select", "count", "(*)", "from", "singer"], "query_toks_no_value": ["select", "count", "(*)", "from", "singer"], "question": "How many singers are?", "question_toks": ["How", "many", "singers", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0011", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0005", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["select", "name", "from", "stadium"], "query_toks_no_value": ["select", "name", "from", "stadium"], "question": "Show the stadium names.", "question_toks": ["Show", "the", "stadium", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0022", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0006", "db_id": "course_teach", "query": "select hometown from teacher", "query_toks": ["select", "hometown", "from", "teacher"], "query_toks_no_value": ["select", "hometown", "from", "teacher"], "question": "Show different hometown of teachers.", "question_toks": ["Show", "different", "hometown", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0393", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0007", "db_id": "course_teach", "query": "select count(*) from teacher", "query_toks": ["select", "count", "(*)", "from", "teacher"], "query_toks_no_value": ["select", "count", "(*)", "from", "teacher"], "question": "How many teachers are there?", "question_toks": ["How", "many", "teachers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0394", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0008", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "Show names of teachers.", "question_toks": ["Show", "names", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0405", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0009", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "What are the names of the teachers?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0406", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0010", "db_id": "orchestra", "query": "select record_company from orchestra ", "query_toks": ["select", "record_company", "from", "orchestra"], "query_toks_no_value": ["select", "record_company", "from", "orchestra"], "question": "Please show the different record companies.", "question_toks": ["Please", "show", "the", "different", "record", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0848", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0011", "db_id": "orchestra", "query": "select count(*) from orchestra", "query_toks": ["select", "count", "(*)", "from", "orchestra"], "query_toks_no_value": ["select", "count", "(*)", "from", "orchestra"], "question": "How many orchestras are?", "question_toks": ["How", "many", "orchestras", "does", "record", "companies", "manage", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0849", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0012", "db_id": "pets_1", "query": "select max(weight) from pets", "query_toks": ["select", "max", "(", "weight", ")", "from", "pets"], "query_toks_no_value": ["select", "max", "(", "weight", ")", "from", "pets"], "question": "List the maximum weight", "question_toks": ["List", "the", "maximum", "weight"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0049", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0013", "db_id": "pets_1", "query": "select pettype from pets", "query_toks": ["select", "pettype", "from", "pets"], "query_toks_no_value": ["select", "pettype", "from", "pets"], "question": "List the type of pet.", "question_toks": ["List", "the", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0050", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0014", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) from pets", "query_toks": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", "from", "pets"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", "from", "pets"], "question": "Find the average and maximum age of pet.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0071", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0015", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) from pets", "query_toks": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", "from", "pets"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", "from", "pets"], "question": "What is the average and maximum age of pet?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "age", "of", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0072", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0016", "db_id": "poker_player", "query": "select nationality from people", "query_toks": ["select", "nationality", "from", "people"], "query_toks_no_value": ["select", "nationality", "from", "people"], "question": "What are different nationalities of people?", "question_toks": ["What", "are", "different", "nationalities", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0673", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0017", "db_id": "singer", "query": "select citizenship from singer", "query_toks": ["select", "citizenship", "from", "singer"], "query_toks_no_value": ["select", "citizenship", "from", "singer"], "question": "Show different citizenship of singers.", "question_toks": ["Show", "different", "citizenship", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1012", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0018", "db_id": "singer", "query": "select max(net_worth_millions) from singer", "query_toks": ["select", "max", "(", "net_worth_millions", ")", "from", "singer"], "query_toks_no_value": ["select", "max", "(", "net_worth_millions", ")", "from", "singer"], "question": "Show the maximum net worth of singers .", "question_toks": ["Show", "the", "maximum", "net", "worth", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1016", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0019", "db_id": "tvshow", "query": "select language from tv_channel", "query_toks": ["select", "language", "from", "tv_channel"], "query_toks_no_value": ["select", "language", "from", "tv_channel"], "question": "List each language of TV Channels.", "question_toks": ["List", "each", "language", "of", "TV", "Channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0607", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0020", "db_id": "tvshow", "query": "select count(*) from cartoon", "query_toks": ["select", "count", "(*)", "from", "cartoon"], "query_toks_no_value": ["select", "count", "(*)", "from", "cartoon"], "question": "Find the number of cartoons.", "question_toks": ["Find", "the", "number", "of", "cartoons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0627", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0021", "db_id": "tvshow", "query": "select count(*) from cartoon", "query_toks": ["select", "count", "(*)", "from", "cartoon"], "query_toks_no_value": ["select", "count", "(*)", "from", "cartoon"], "question": "How many cartoons did all director create?", "question_toks": ["How", "many", "cartoons", "did", "all", "director", "create", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0628", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0022", "db_id": "world_1", "query": "select district from city where population > (select avg(population) from city) ", "query_toks": ["select", "district", "from", "city", "where", "population", ">", "(", "select", "avg", "(", "population", ")", "from", "city", ")"], "query_toks_no_value": ["select", "district", "from", "city", "where", "population", ">", "value", "select", "avg", "(", "population", ")", "from", "city", ")"], "question": "Find the districts whose population is greater than the average population of cities?", "question_toks": ["Find", "the", "districts", "whose", "population", "is", "greater", "than", "the", "average", "population", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0794", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0023", "db_id": "world_1", "query": "select max(percentage) from countrylanguage", "query_toks": ["select", "max", "(", "percentage", ")", "from", "countrylanguage"], "query_toks_no_value": ["select", "max", "(", "percentage", ")", "from", "countrylanguage"], "question": "What is the largest percentage of people?", "question_toks": ["What", "is", "the", "largest", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0816", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0024", "db_id": "wta_1", "query": "select avg(ranking) from rankings", "query_toks": ["select", "avg", "(", "ranking", ")", "from", "rankings"], "query_toks_no_value": ["select", "avg", "(", "ranking", ")", "from", "rankings"], "question": "Find the average ranking of players.", "question_toks": ["Find", "the", "average", "ranking", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0469", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0025", "db_id": "wta_1", "query": "select first_name from players", "query_toks": ["select", "first_name", "from", "players"], "query_toks_no_value": ["select", "first_name", "from", "players"], "question": "What are the first names of all players?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0470", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0026", "db_id": "wta_1", "query": "select count(*) from players", "query_toks": ["select", "count", "(*)", "from", "players"], "query_toks_no_value": ["select", "count", "(*)", "from", "players"], "question": "find the number of players.", "question_toks": ["find", "the", "number", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0473", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0027", "db_id": "wta_1", "query": "select count(*) from players", "query_toks": ["select", "count", "(*)", "from", "players"], "query_toks_no_value": ["select", "count", "(*)", "from", "players"], "question": "How many players are?", "question_toks": ["How", "many", "players", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0474", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0028", "db_id": "wta_1", "query": "select sum(tours) from rankings", "query_toks": ["select", "sum", "(", "tours", ")", "from", "rankings"], "query_toks_no_value": ["select", "sum", "(", "tours", ")", "from", "rankings"], "question": "Find the total number of tours.", "question_toks": ["Find", "the", "total", "number", "of", "tours", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0479", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0029", "db_id": "wta_1", "query": "select sum(tours) from rankings", "query_toks": ["select", "sum", "(", "tours", ")", "from", "rankings"], "query_toks_no_value": ["select", "sum", "(", "tours", ")", "from", "rankings"], "question": "How many total tours were there?", "question_toks": ["How", "many", "total", "tours", "were", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0480", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0030", "db_id": "wta_1", "query": "select count(*) from matches", "query_toks": ["select", "count", "(*)", "from", "matches"], "query_toks_no_value": ["select", "count", "(*)", "from", "matches"], "question": "Find the number of matches happened.", "question_toks": ["Find", "the", "number", "of", "matches", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0481", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0031", "db_id": "wta_1", "query": "select count(*) from matches", "query_toks": ["select", "count", "(*)", "from", "matches"], "query_toks_no_value": ["select", "count", "(*)", "from", "matches"], "question": "How many matches were played?", "question_toks": ["How", "many", "matches", "were", "played", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0482", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0032", "db_id": "wta_1", "query": "select count(*) from players", "query_toks": ["select", "count", "(*)", "from", "players"], "query_toks_no_value": ["select", "count", "(*)", "from", "players"], "question": "Find the number of players.", "question_toks": ["Find", "the", "number", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0489", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0033", "db_id": "wta_1", "query": "select count(*) from players", "query_toks": ["select", "count", "(*)", "from", "players"], "query_toks_no_value": ["select", "count", "(*)", "from", "players"], "question": "How many players are there?", "question_toks": ["How", "many", "players", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0490", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0034", "db_id": "allergy_1", "query": "select allergytype from allergy_type", "query_toks": ["select", "allergytype", "from", "allergy_type"], "query_toks_no_value": ["select", "allergytype", "from", "allergy_type"], "question": "Show all allergy types.", "question_toks": ["Show", "all", "allergy", "types", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0453", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0035", "db_id": "allergy_1", "query": "select allergytype from allergy_type", "query_toks": ["select", "allergytype", "from", "allergy_type"], "query_toks_no_value": ["select", "allergytype", "from", "allergy_type"], "question": "What are the allergy types?", "question_toks": ["What", "are", "the", "allergy", "types", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0454", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0036", "db_id": "allergy_1", "query": "select major from student", "query_toks": ["select", "major", "from", "student"], "query_toks_no_value": ["select", "major", "from", "student"], "question": "Show all majors.", "question_toks": ["Show", "all", "majors", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0489", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0037", "db_id": "allergy_1", "query": "select count(*) from student", "query_toks": ["select", "count", "(*)", "from", "student"], "query_toks_no_value": ["select", "count", "(*)", "from", "student"], "question": "How many students are?", "question_toks": ["How", "many", "students", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0490", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0038", "db_id": "baseball_1", "query": "select count(*) from hall_of_fame", "query_toks": ["select", "count", "(*)", "from", "hall_of_fame"], "query_toks_no_value": ["select", "count", "(*)", "from", "hall_of_fame"], "question": "How many players enter hall?", "question_toks": ["How", "many", "players", "enter", "hall", "?"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3637", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0039", "db_id": "baseball_1", "query": "select count(distinct player_id) from hall_of_fame;", "query_toks": ["select", "yearid", "from", "hall_of_fame"], "query_toks_no_value": ["select", "yearid", "from", "hall_of_fame"], "question": "Count the number of players who enter hall of fame.", "question_toks": ["Count", "the", "number", "of", "players", "who", "enter", "hall", "of", "fame", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 145, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3638", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0040", "db_id": "baseball_1", "query": "select avg(attendance) from home_game", "query_toks": ["select", "avg", "(", "attendance", ")", "from", "home_game"], "query_toks_no_value": ["select", "avg", "(", "attendance", ")", "from", "home_game"], "question": "What is the average number of attendance at home games?", "question_toks": ["What", "is", "the", "average", "number", "of", "attendance", "at", "home", "games", "?"], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[5, [0, [0, 161, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3639", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0041", "db_id": "baseball_1", "query": "select avg(attendance) from home_game", "query_toks": ["select", "avg", "(", "attendance", ")", "from", "home_game"], "query_toks_no_value": ["select", "avg", "(", "attendance", ")", "from", "home_game"], "question": "Return the average number of attendance.", "question_toks": ["Return", "the", "average", "number", "of", "attendance", "."], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[5, [0, [0, 161, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3640", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0042", "db_id": "behavior_monitoring", "query": "select avg(monthly_rental) from student_addresses", "query_toks": ["select", "avg", "(", "monthly_rental", ")", "from", "student_addresses"], "query_toks_no_value": ["select", "avg", "(", "monthly_rental", ")", "from", "student_addresses"], "question": "What is the average monthly rentals?", "question_toks": ["What", "is", "the", "average", "monthly", "rentals", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[5, [0, [0, 60, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3120", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0043", "db_id": "body_builder", "query": "select birth_place from people", "query_toks": ["select", "birth_place", "from", "people"], "query_toks_no_value": ["select", "birth_place", "from", "people"], "question": "List each birth place.", "question_toks": ["List", "each", "birth", "place", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1163", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0044", "db_id": "candidate_poll", "query": "select count(*) from people where weight > 85", "query_toks": ["select", "count", "(*)", "from", "people", "where", "weight", ">", "85"], "query_toks_no_value": ["select", "count", "(*)", "from", "people", "where", "weight", ">", "value"], "question": "how many people are there whose weight is higher than 85?", "question_toks": ["how", "many", "people", "are", "there", "whose", "weight", "is", "higher", "than", "85", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 85.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2424", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0045", "db_id": "candidate_poll", "query": "select count(*) from people where weight > 85", "query_toks": ["select", "count", "(*)", "from", "people", "where", "weight", ">", "85"], "query_toks_no_value": ["select", "count", "(*)", "from", "people", "where", "weight", ">", "value"], "question": "Count the number of people who have a weight higher than 85.", "question_toks": ["Count", "the", "number", "of", "people", "who", "have", "a", "weight", "higher", "than", "85", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 85.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2425", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0046", "db_id": "chinook_1", "query": "select t1.title , t2.albumid from album as t1 join track as t2 on t1.albumid = t2.albumid", "query_toks": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid"], "question": "Show the album names and ids.", "question_toks": ["Show", "the", "album", "names", ",", "ids", "and", "the", "number", "of", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0833", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0047", "db_id": "chinook_1", "query": "select albumid, title from album;", "query_toks": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid"], "question": "What are the names and ids of the different albums?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "the", "different", "albums", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0834", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0048", "db_id": "cinema", "query": "select directed_by from film", "query_toks": ["select", "directed_by", "from", "film"], "query_toks_no_value": ["select", "directed_by", "from", "film"], "question": "List all directors", "question_toks": ["List", "all", "directors"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1949", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0049", "db_id": "cinema", "query": "select sum(show_times_per_day) from schedule", "query_toks": ["select", "sum", "(", "show_times_per_day", ")", "from", "schedule"], "query_toks_no_value": ["select", "sum", "(", "show_times_per_day", ")", "from", "schedule"], "question": "What is total number of show times per dat?", "question_toks": ["What", "is", "total", "number", "of", "show", "times", "per", "dat", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1950", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "math_minus_0000", "db_id": "bike_1", "query": "select date , max_temperature_f from weather order by max_temperature_f limit 1", "query_toks": ["select", "date", ",", "max_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "limit", "1"], "query_toks_no_value": ["select", "date", ",", "max_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "limit", "1"], "question": "Find the day in which the the max temperature was the smallest. Also report the max temperature.", "question_toks": ["Find", "the", "day", "in", "which", "the", "the", "max", "temperature", "was", "the", "smallest", ".", "Also", "report", "the", "max", "temperature", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0201", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0001", "db_id": "bike_1", "query": "select date , max_temperature_f from weather order by max_temperature_f limit 1", "query_toks": ["select", "date", ",", "max_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "limit", "1"], "query_toks_no_value": ["select", "date", ",", "max_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "limit", "1"], "question": "What are the days that had the smallest maximum temperature, and what it was?", "question_toks": ["What", "are", "the", "days", "that", "had", "the", "smallest", "maximum", "temperature", ",", "and", "what", "it", "was", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0202", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0002", "db_id": "hr_1", "query": "select job_title , min_salary from jobs where max_salary between 12000 and 18000", "query_toks": ["select", "job_title", ",", "min_salary", "from", "jobs", "where", "max_salary", "between", "12000", "and", "18000"], "query_toks_no_value": ["select", "job_title", ",", "min_salary", "from", "jobs", "where", "max_salary", "between", "12000", "and", "18000"], "question": "display job Title, the minimum salaries for those jobs which max salary within the range 12000 to 18000.", "question_toks": ["display", "job", "Title", ",", "the", "minimum", "salaries", "for", "those", "jobs", "which", "max", "salary", "within", "the", "range", "12000", "to", "18000", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 1, [0, [0, 13, false], null], 12000.0, 18000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3443", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0003", "db_id": "hr_1", "query": "select job_title , max_salary from jobs where max_salary between 12000 and 18000", "query_toks": ["select", "job_title", ",", "max_salary", "from", "jobs", "where", "max_salary", "between", "12000", "and", "18000"], "query_toks_no_value": ["select", "job_title", ",", "max_salary", "from", "jobs", "where", "max_salary", "between", "12000", "and", "18000"], "question": "What are the job titles, and maximum of salaries for jobs with maximum salary between 12000 and 18000?", "question_toks": ["What", "are", "the", "job", "titles", ",", "and", "maximum", "of", "salaries", "for", "jobs", "with", "maximum", "salary", "between", "12000", "and", "18000", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 1, [0, [0, 13, false], null], 12000.0, 18000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3444", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0004", "db_id": "department_store", "query": "select staff_id , staff_name from staff", "query_toks": ["select", "staff_id", ",", "staff_name", "from", "staff"], "query_toks_no_value": ["select", "staff_id", ",", "staff_name", "from", "staff"], "question": "Find the id and name of the staff.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "staff", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4749", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0005", "db_id": "department_store", "query": "select staff_id , staff_name from staff", "query_toks": ["select", "staff_id", ",", "staff_name", "from", "staff"], "query_toks_no_value": ["select", "staff_id", ",", "staff_name", "from", "staff"], "question": "What is the id and name of the staff?", "question_toks": ["What", "is", "the", "id", "and", "name", "of", "the", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4750", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0006", "db_id": "customers_and_addresses", "query": "select avg(active_to_date) from customer_contact_channels", "query_toks": ["select", "avg", "(", "active_to_date", ")", "from", "customer_contact_channels"], "query_toks_no_value": ["select", "avg", "(", "active_to_date", ")", "from", "customer_contact_channels"], "question": "What is the average active to date of contact channels in the database?", "question_toks": ["What", "is", "the", "average", "active", "to", "date", "of", "contact", "channels", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6101", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0007", "db_id": "customers_and_addresses", "query": "select avg(active_from_date) from customer_contact_channels", "query_toks": ["select", "avg", "(", "active_from_date", ")", "from", "customer_contact_channels"], "query_toks_no_value": ["select", "avg", "(", "active_from_date", ")", "from", "customer_contact_channels"], "question": "Compute the average active from date of contact channels.", "question_toks": ["Compute", "the", "average", "active", "from", "date", "of", "contact", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6102", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0008", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels", "query_toks": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels"], "query_toks_no_value": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels"], "question": "What is the channel code and contact number of the customer contact channel?", "question_toks": ["What", "is", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6103", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0009", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels", "query_toks": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels"], "query_toks_no_value": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels"], "question": "Return the channel code and contact number of the customer contact channel.", "question_toks": ["Return", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6104", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "negation_0000", "db_id": "musical", "query": "select name from actor where age = 20", "query_toks": ["select", "name", "from", "actor", "where", "age", "=", "20"], "query_toks_no_value": ["select", "name", "from", "actor", "where", "age", "=", "value"], "question": "List the name of actors whose age is 20.", "question_toks": ["List", "the", "name", "of", "actors", "whose", "age", "is", "20", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0240", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0001", "db_id": "musical", "query": "select name from actor", "query_toks": ["select", "name", "from", "actor"], "query_toks_no_value": ["select", "name", "from", "actor"], "question": "What are the names of actors?", "question_toks": ["What", "are", "the", "names", "of", "actors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0241", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0002", "db_id": "movie_1", "query": "select rid from rating where stars = 4", "query_toks": ["select", "rid", "from", "rating"], "query_toks_no_value": ["select", "rid", "from", "rating"], "question": "Find the ids of reviewers who give 4 star.", "question_toks": ["Find", "the", "ids", "of", "reviewers", "who", "only", "give", "4", "star", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2522", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0003", "db_id": "book_2", "query": "select title from book", "query_toks": ["select", "title", "from", "book"], "query_toks_no_value": ["select", "title", "from", "book"], "question": "What are the titles of the books?", "question_toks": ["What", "are", "the", "titles", "of", "the", "books", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0216", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0004", "db_id": "entertainment_awards", "query": "select name from artwork where type = \"program talent show\"", "query_toks": ["select", "name", "from", "artwork", "where", "type", "=", "``", "program", "talent", "show", "''"], "query_toks_no_value": ["select", "name", "from", "artwork", "where", "type", "=", "value", "talent", "show"], "question": "List the name of artworks whose type is \"Program Talent Show\".", "question_toks": ["List", "the", "name", "of", "artworks", "whose", "type", "is", "\"", "Program", "Talent", "Show", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"program talent show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4600", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0005", "db_id": "architecture", "query": "select name from mill", "query_toks": ["select", "name", "from", "mill"], "query_toks_no_value": ["select", "name", "from", "mill"], "question": "What are the names of the mills?", "question_toks": ["What", "are", "the", "names", "of", "the", "mills", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6951", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0006", "db_id": "program_share", "query": "select name from channel", "query_toks": ["select", "name", "from", "channel"], "query_toks_no_value": ["select", "name", "from", "channel"], "question": "Find the names of channels.", "question_toks": ["Find", "the", "names", "of", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3728", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0007", "db_id": "program_share", "query": "select name from channel", "query_toks": ["select", "name", "from", "channel"], "query_toks_no_value": ["select", "name", "from", "channel"], "question": "Give me the channel names.", "question_toks": ["Give", "me", "the", "channel", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3729", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0008", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme", "query_toks": ["select", "name", "from", "enzyme"], "query_toks_no_value": ["select", "name", "from", "enzyme"], "question": "What are the names of enzymes?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0943", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0009", "db_id": "program_share", "query": "select name from program", "query_toks": ["select", "name", "from", "program"], "query_toks_no_value": ["select", "name", "from", "program"], "question": "find the names of programs", "question_toks": ["find", "the", "names", "of", "programs"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3760", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0010", "db_id": "program_share", "query": "select name from program", "query_toks": ["select", "name", "from", "program"], "query_toks_no_value": ["select", "name", "from", "program"], "question": "Give me the program names.", "question_toks": ["Give", "me", "the", "program", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3761", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0011", "db_id": "climbing", "query": "select name from climber", "query_toks": ["select", "name", "from", "climber"], "query_toks_no_value": ["select", "name", "from", "climber"], "question": "List the names of climbers.", "question_toks": ["List", "the", "names", "of", "climbers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1114", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0012", "db_id": "climbing", "query": "select name from climber", "query_toks": ["select", "name", "from", "climber"], "query_toks_no_value": ["select", "name", "from", "climber"], "question": "What are the names of climbers?", "question_toks": ["What", "are", "the", "names", "of", "climbers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1115", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0013", "db_id": "department_management", "query": "select name from head where born_state = \"california\"", "query_toks": ["select", "name", "from", "head", "where", "born_state", "=", "``", "california", "''"], "query_toks_no_value": ["select", "name", "from", "head", "where", "born_state", "=", "value"], "question": "What are the names of the heads who are born in the California state?", "question_toks": ["What", "are", "the", "names", "of", "the", "heads", "who", "are", "born", "in", "the", "California", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0005", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0014", "db_id": "flight_company", "query": "select name from airport", "query_toks": ["select", "name", "from", "airport"], "query_toks_no_value": ["select", "name", "from", "airport"], "question": "What are the names of the airports?", "question_toks": ["What", "are", "the", "names", "of", "the", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6372", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0015", "db_id": "machine_repair", "query": "select name from technician", "query_toks": ["select", "name", "from", "technician"], "query_toks_no_value": ["select", "name", "from", "technician"], "question": "List the name of all technicians.", "question_toks": ["List", "the", "name", "of", "all", "technicians", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2239", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0016", "db_id": "machine_repair", "query": "select name from technician", "query_toks": ["select", "name", "from", "technician"], "query_toks_no_value": ["select", "name", "from", "technician"], "question": "What is the name of the technicians?", "question_toks": ["What", "is", "the", "name", "of", "the", "technicians", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2240", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0017", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "List the name of teachers.", "question_toks": ["List", "the", "name", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0387", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0018", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "What are the names of the teachers?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0388", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0019", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["select", "name", "from", "ship"], "query_toks_no_value": ["select", "name", "from", "ship"], "question": "List the name of ships.", "question_toks": ["List", "the", "name", "of", "ships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4004", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0020", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["select", "name", "from", "ship"], "query_toks_no_value": ["select", "name", "from", "ship"], "question": "What are the names of the ships?", "question_toks": ["What", "are", "the", "names", "of", "the", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4005", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0021", "db_id": "roller_coaster", "query": "select name from country", "query_toks": ["select", "name", "from", "country"], "query_toks_no_value": ["select", "name", "from", "country"], "question": "List the names of countries.", "question_toks": ["List", "the", "names", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6206", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0022", "db_id": "movie_1", "query": "select director from movie group by director having count(*) = 1", "query_toks": ["select", "director", "from", "movie", "group", "by", "director", "having", "count", "(*)", "=", "1"], "query_toks_no_value": ["select", "director", "from", "movie", "group", "by", "director", "having", "count", "(*)", "=", "1"], "question": "What are the names of the directors who made exactly one movie?", "question_toks": ["What", "are", "the", "names", "of", "the", "directors", "who", "made", "exactly", "one", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2492", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0023", "db_id": "poker_player", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "Show names of people.", "question_toks": ["Show", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0681", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0024", "db_id": "singer", "query": "select name from singer", "query_toks": ["select", "name", "from", "singer"], "query_toks_no_value": ["select", "name", "from", "singer"], "question": "List the name of singers.", "question_toks": ["List", "the", "name", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1006", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0025", "db_id": "singer", "query": "select name from singer", "query_toks": ["select", "name", "from", "singer"], "query_toks_no_value": ["select", "name", "from", "singer"], "question": "What are the names of the singers?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1007", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0026", "db_id": "store_product", "query": "select product from product", "query_toks": ["select", "product", "from", "product"], "query_toks_no_value": ["select", "product", "from", "product"], "question": "Find the name of the products", "question_toks": ["Find", "the", "name", "of", "the", "products"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4938", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0027", "db_id": "election_representative", "query": "select name from representative", "query_toks": ["select", "name", "from", "representative"], "query_toks_no_value": ["select", "name", "from", "representative"], "question": "What are the names of representatives?", "question_toks": ["What", "are", "the", "names", "of", "representatives", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1179", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0028", "db_id": "farm", "query": "select census_ranking from city where status = \"village\"", "query_toks": ["select", "census_ranking", "from", "city", "where", "status", "=", "``", "village", "''"], "query_toks_no_value": ["select", "census_ranking", "from", "city", "where", "status", "=", "value"], "question": "Show the census ranking of cities whose status are \"Village\".", "question_toks": ["Show", "the", "census", "ranking", "of", "cities", "whose", "status", "are", "\"", "Village", "\"."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"village\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0054", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0029", "db_id": "farm", "query": "select census_ranking from city", "query_toks": ["select", "census_ranking", "from", "city"], "query_toks_no_value": ["select", "census_ranking", "from", "city"], "question": "What are the census rankings of all the cities?", "question_toks": ["What", "are", "the", "census", "rankings", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0055", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0030", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["select", "name", "from", "conductor"], "query_toks_no_value": ["select", "name", "from", "conductor"], "question": "What are the names of conductors?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0826", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0031", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["select", "name", "from", "conductor"], "query_toks_no_value": ["select", "name", "from", "conductor"], "question": "Return the names of conductors.", "question_toks": ["Return", "the", "names", "of", "conductors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0827", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0032", "db_id": "railway", "query": "select max(level) from manager", "query_toks": ["select", "max", "(", "level", ")", "from", "manager"], "query_toks_no_value": ["select", "max", "(", "level", ")", "from", "manager"], "question": "What is the maximum level of managers?", "question_toks": ["What", "is", "the", "maximum", "level", "of", "managers", "in", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5635", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0033", "db_id": "world_1", "query": "select code from country where governmentform = \"republic\"", "query_toks": ["select", "code", "from", "country", "where", "governmentform", "=", "``", "republic", "''"], "query_toks_no_value": ["select", "code", "from", "country", "where", "governmentform", "=", "value"], "question": "What are the codes of the countries whose government forms are Republic?", "question_toks": ["What", "are", "the", "codes", "of", "the", "countries", "whose", "government", "forms", "are", "Republic", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0782", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0034", "db_id": "world_1", "query": "select code from country where governmentform != \"republic\"", "query_toks": ["select", "code", "from", "country", "where", "governmentform", "!=", "``", "republic", "''"], "query_toks_no_value": ["select", "code", "from", "country", "where", "governmentform", "!=", "value"], "question": "Return the codes of countries that have Republics for governments.", "question_toks": ["Return", "the", "codes", "of", "countries", "that", "have", "Republics", "for", "governments", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0783", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0035", "db_id": "college_2", "query": "select count(*) from classroom", "query_toks": ["select", "count", "(*)", "from", "classroom"], "query_toks_no_value": ["select", "count", "(*)", "from", "classroom"], "question": "Count the number of rooms.", "question_toks": ["Count", "the", "number", "of", "rooms", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1324", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0036", "db_id": "company_office", "query": "select name from companies", "query_toks": ["select", "name", "from", "companies"], "query_toks_no_value": ["select", "name", "from", "companies"], "question": "What are the names of companies ?", "question_toks": ["What", "are", "the", "names", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4547", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0037", "db_id": "company_office", "query": "select name from companies", "query_toks": ["select", "name", "from", "companies"], "query_toks_no_value": ["select", "name", "from", "companies"], "question": "Find the names of the companies.", "question_toks": ["Find", "the", "names", "of", "the", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4548", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0038", "db_id": "dorm_1", "query": "select fname , lname from student", "query_toks": ["select", "fname", ",", "lname", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "Find the first and last name of students.", "question_toks": ["Find", "the", "first", "and", "last", "name", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5732", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0039", "db_id": "dorm_1", "query": "select fname , lname from student", "query_toks": ["select", "fname", ",", "lname", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "What is the first and last name of the students?", "question_toks": ["What", "is", "the", "first", "and", "last", "name", "of", "the", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5733", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0040", "db_id": "farm", "query": "select hosts from farm_competition", "query_toks": ["select", "hosts", "from", "farm_competition"], "query_toks_no_value": ["select", "hosts", "from", "farm_competition"], "question": "What are the hosts of competitions?", "question_toks": ["What", "are", "the", "hosts", "of", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0020", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0041", "db_id": "farm", "query": "select hosts from farm_competition where theme = \"aliens\"", "query_toks": ["select", "hosts", "from", "farm_competition", "where", "theme", "=", "``", "aliens", "''"], "query_toks_no_value": ["select", "hosts", "from", "farm_competition", "where", "theme", "=", "value"], "question": "Return the hosts of competitions for which the theme is Aliens?", "question_toks": ["Return", "the", "hosts", "of", "competitions", "for", "which", "the", "theme", "is", "Aliens", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"aliens\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0021", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0042", "db_id": "musical", "query": "select distinct nominee from musical", "query_toks": ["select", "distinct", "nominee", "from", "musical"], "query_toks_no_value": ["select", "distinct", "nominee", "from", "musical"], "question": "What are the distinct nominees of the musicals?", "question_toks": ["What", "are", "the", "distinct", "nominees", "of", "the", "musicals", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0248", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0043", "db_id": "musical", "query": "select distinct nominee from musical", "query_toks": ["select", "distinct", "nominee", "from", "musical"], "query_toks_no_value": ["select", "distinct", "nominee", "from", "musical"], "question": "Return the different nominees of musicals that have an award.", "question_toks": ["Return", "the", "different", "nominees", "of", "musicals", "that", "have", "an", "award", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0249", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0044", "db_id": "school_player", "query": "select enrollment from school", "query_toks": ["select", "enrollment", "from", "school"], "query_toks_no_value": ["select", "enrollment", "from", "school"], "question": "What are the enrollments of schools?", "question_toks": ["What", "are", "the", "enrollments", "of", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4866", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0045", "db_id": "school_player", "query": "select enrollment from school", "query_toks": ["select", "enrollment", "from", "school"], "query_toks_no_value": ["select", "enrollment", "from", "school"], "question": "List the enrollment of schools.", "question_toks": ["List", "the", "enrollment", "for", "each", "school", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4867", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0046", "db_id": "university_basketball", "query": "select founded from university order by founded desc limit 1", "query_toks": ["select", "founded", "from", "university", "order", "by", "founded", "desc", "limit", "1"], "query_toks_no_value": ["select", "founded", "from", "university", "order", "by", "founded", "desc", "limit", "1"], "question": "Find the founded year of the newest school.", "question_toks": ["Find", "the", "founded", "year", "of", "the", "newest", "school", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 16, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0983", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0047", "db_id": "university_basketball", "query": "select founded from university order by founded desc limit 1", "query_toks": ["select", "founded", "from", "university", "order", "by", "founded", "desc", "limit", "1"], "query_toks_no_value": ["select", "founded", "from", "university", "order", "by", "founded", "desc", "limit", "1"], "question": "What is the founded year of the school that was founded most recently?", "question_toks": ["What", "is", "the", "founded", "year", "of", "the", "school", "that", "was", "founded", "most", "recently", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 16, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0984", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0048", "db_id": "device", "query": "select carrier from device", "query_toks": ["select", "carrier", "from", "device"], "query_toks_no_value": ["select", "carrier", "from", "device"], "question": "What are the carriers of all devices?", "question_toks": ["What", "are", "the", "carriers", "of", "all", "devices", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5054", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0049", "db_id": "device", "query": "select carrier from device where software_platform = \"android\"", "query_toks": ["select", "carrier", "from", "device", "where", "software_platform", "=", "``", "android", "''"], "query_toks_no_value": ["select", "carrier", "from", "device", "where", "software_platform", "=", "value"], "question": "Return the device carriers that have Android as their software platform.", "question_toks": ["Return", "the", "device", "carriers", "that", "have", "Android", "as", "their", "software", "platform", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"android\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5055", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0050", "db_id": "dorm_1", "query": "select fname , lname from student order by age", "query_toks": ["select", "fname", ",", "lname", "from", "student", "order", "by", "age"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "order", "by", "age"], "question": "List the first and last name of students and sort the results by their ages.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "students", "and", "sort", "the", "results", "by", "their", "ages", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5716", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0051", "db_id": "school_player", "query": "select nickname from school_details", "query_toks": ["select", "nickname", "from", "school_details"], "query_toks_no_value": ["select", "nickname", "from", "school_details"], "question": "Show the nicknames of schools.", "question_toks": ["Show", "the", "nicknames", "of", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4896", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0052", "db_id": "school_player", "query": "select nickname from school_details", "query_toks": ["select", "nickname", "from", "school_details"], "query_toks_no_value": ["select", "nickname", "from", "school_details"], "question": "What are the nicknames of schools?", "question_toks": ["What", "are", "the", "nicknames", "of", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4897", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0053", "db_id": "theme_gallery", "query": "select name , year_join from artist", "query_toks": ["select", "name", ",", "year_join", "from", "artist"], "query_toks_no_value": ["select", "name", ",", "year_join", "from", "artist"], "question": "What are the names and year of joining for artists?", "question_toks": ["What", "are", "the", "names", "and", "year", "of", "joining", "for", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1656", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0054", "db_id": "wrestler", "query": "select distinct reign from wrestler where location = \"tokyo , japan\"", "query_toks": ["select", "distinct", "reign", "from", "wrestler", "where", "location", "=", "``", "tokyo", ",", "japan", "''"], "query_toks_no_value": ["select", "distinct", "reign", "from", "wrestler", "where", "location", "=", "value", ",", "japan"], "question": "What are the distinct reigns of wrestlers whose location is \"Tokyo,Japan\" ?", "question_toks": ["What", "are", "the", "distinct", "reigns", "of", "wrestlers", "whose", "location", "is", "\"", "Tokyo", ",", "Japan", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"tokyo , japan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1850", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0055", "db_id": "wrestler", "query": "select distinct reign from wrestler", "query_toks": ["select", "distinct", "reign", "from", "wrestler"], "query_toks_no_value": ["select", "distinct", "reign", "from", "wrestler"], "question": "Give the different reigns of wrestlers.", "question_toks": ["Give", "the", "different", "reigns", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1851", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0056", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "Find the name of customers.", "question_toks": ["Find", "the", "name", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6135", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0057", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "What is the name of customers.", "question_toks": ["What", "is", "the", "name", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6136", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0058", "db_id": "student_transcripts_tracking", "query": "select first_name from students", "query_toks": ["select", "first_name", "from", "students"], "query_toks_no_value": ["select", "first_name", "from", "students"], "question": "What is the first name of the student", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "student"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0560", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0059", "db_id": "battle_death", "query": "select name , result from battle", "query_toks": ["select", "name", ",", "result", "from", "battle"], "query_toks_no_value": ["select", "name", ",", "result", "from", "battle"], "question": "What are the name and results of the battles", "question_toks": ["What", "are", "the", "name", "and", "results", "of", "the", "battles"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0497", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0060", "db_id": "hr_1", "query": "select salary , manager_id from employees", "query_toks": ["select", "salary", ",", "manager_id", "from", "employees"], "query_toks_no_value": ["select", "salary", ",", "manager_id", "from", "employees"], "question": "Find the salary and manager number for those employees.", "question_toks": ["Find", "the", "salary", "and", "manager", "number", "for", "those", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3433", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0061", "db_id": "hr_1", "query": "select salary , manager_id from employees", "query_toks": ["select", "salary", ",", "manager_id", "from", "employees"], "query_toks_no_value": ["select", "salary", ",", "manager_id", "from", "employees"], "question": "What are the salaries and manager ids for employees?", "question_toks": ["What", "are", "the", "salaries", "and", "manager", "ids", "for", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3434", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0062", "db_id": "orchestra", "query": "select max(share) , min(share) from performance", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance"], "question": "What are the maximum and minimum share of performances.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0832", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0063", "db_id": "orchestra", "query": "select max(share) , min(share) from performance", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance"], "question": "Return the maximum and minimum shares for performances", "question_toks": ["Return", "the", "maximum", "and", "minimum", "shares", "for", "performances"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0833", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0064", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107", "query_toks": ["select", "date", "from", "weather", "where", "zip_code", "=", "94107"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "zip_code", "=", "value"], "question": "In zip code 94107, on which day was?", "question_toks": ["In", "zip", "code", "94107", ",", "on", "which", "day", "was", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0167", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0065", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107", "query_toks": ["select", "date", "from", "weather", "where", "zip_code", "=", "94107"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "zip_code", "=", "value"], "question": "On which day has the zip code of 94107?", "question_toks": ["On", "which", "day", "has", "the", "zip", "code", "of", "94107", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0168", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0066", "db_id": "riding_club", "query": "select player_name , residence from player ", "query_toks": ["select", "player_name", ",", "residence", "from", "player"], "query_toks_no_value": ["select", "player_name", ",", "residence", "from", "player"], "question": "List the name and residence for players.", "question_toks": ["List", "the", "name", "and", "residence", "for", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1722", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0067", "db_id": "sports_competition", "query": "select distinct year from competition", "query_toks": ["select", "distinct", "year", "from", "competition"], "query_toks_no_value": ["select", "distinct", "year", "from", "competition"], "question": "What are the distinct years?", "question_toks": ["What", "are", "the", "distinct", "years", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3345", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0068", "db_id": "mountain_photos", "query": "select name , height , prominence from mountain", "query_toks": ["select", "name", ",", "height", ",", "prominence", "from", "mountain"], "query_toks_no_value": ["select", "name", ",", "height", ",", "prominence", "from", "mountain"], "question": "What are the name, height and prominence of mountains?", "question_toks": ["What", "are", "the", "name", ",", "height", "and", "prominence", "of", "mountains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3716", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0069", "db_id": "world_1", "query": "select code from country", "query_toks": ["select", "distinct", "countrycode", "from", "countrylanguage"], "query_toks_no_value": ["select", "distinct", "countrycode", "from", "countrylanguage"], "question": "What are the country codes of countries?", "question_toks": ["What", "are", "the", "country", "codes", "of", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0780", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0070", "db_id": "world_1", "query": "select code from country;", "query_toks": ["select", "distinct", "countrycode", "from", "countrylanguage"], "query_toks_no_value": ["select", "distinct", "countrycode", "from", "countrylanguage"], "question": "Give the country codes for countries", "question_toks": ["Give", "the", "country", "codes", "for", "countries"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0781", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0071", "db_id": "county_public_safety", "query": "select distinct police_force from county_public_safety", "query_toks": ["select", "distinct", "police_force", "from", "county_public_safety"], "query_toks_no_value": ["select", "distinct", "police_force", "from", "county_public_safety"], "question": "List the distinct police forces of counties.", "question_toks": ["List", "the", "distinct", "police", "forces", "of", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2536", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0072", "db_id": "county_public_safety", "query": "select distinct police_force from county_public_safety", "query_toks": ["select", "distinct", "police_force", "from", "county_public_safety"], "query_toks_no_value": ["select", "distinct", "police_force", "from", "county_public_safety"], "question": "What are the different police forces of counties?", "question_toks": ["What", "are", "the", "different", "police", "forces", "of", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2537", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0073", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel", "query_toks": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel"], "query_toks_no_value": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel"], "question": "find the pixel aspect ratio and nation of the tv channels.", "question_toks": ["find", "the", "pixel", "aspect", "ratio", "and", "nation", "of", "the", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0639", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0074", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator", "query_toks": ["select", "name", ",", "operating_system", "from", "web_client_accelerator"], "query_toks_no_value": ["select", "name", ",", "operating_system", "from", "web_client_accelerator"], "question": "What are the name and os of web client accelerators?", "question_toks": ["What", "are", "the", "name", "and", "os", "of", "web", "client", "accelerators", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1831", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0075", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies", "query_toks": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies"], "query_toks_no_value": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies"], "question": "What are the maximum and minimum sales of the companies.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4553", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0076", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies", "query_toks": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies"], "query_toks_no_value": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies"], "question": "Find the maximum and minimum sales of the companies.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4554", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0077", "db_id": "game_injury", "query": "select player , number_of_matches , source from injury_accident", "query_toks": ["select", "player", ",", "number_of_matches", ",", "source", "from", "injury_accident"], "query_toks_no_value": ["select", "player", ",", "number_of_matches", ",", "source", "from", "injury_accident"], "question": "What are the player name, number of matches, and information source for players?", "question_toks": ["What", "are", "the", "player", "name", ",", "number", "of", "matches", ",", "and", "information", "source", "for", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1279", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0078", "db_id": "bike_1", "query": "select count(*) from trip", "query_toks": ["select", "count", "(*)", "from", "trip"], "query_toks_no_value": ["select", "count", "(*)", "from", "trip"], "question": "Count the number of trips.", "question_toks": ["Count", "the", "number", "of", "trips", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0165", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0079", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid", "query_toks": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid"], "question": "What is the total balance of savings accounts?", "question_toks": ["What", "is", "the", "total", "balance", "of", "savings", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1777", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0080", "db_id": "gymnast", "query": "select t2.name from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id", "query_toks": ["select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id"], "question": "What are the names of gymnasts?", "question_toks": ["What", "are", "the", "names", "of", "gymnasts", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1748", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0081", "db_id": "gymnast", "query": "select t2.name from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t2.hometown = \"santo domingo\"", "query_toks": ["select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t2", ".", "hometown", "=", "``", "santo", "domingo", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t2", ".", "hometown", "=", "value", "domingo"], "question": "Return the names of gymnasts who grow up in Santo Domingo.", "question_toks": ["Return", "the", "names", "of", "gymnasts", "who", "grow", "up", "in", "Santo", "Domingo", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"santo domingo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1749", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0082", "db_id": "perpetrator", "query": "select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id", "query_toks": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "question": "What are the names of perpetrators?", "question_toks": ["What", "are", "the", "names", "of", "perpetrators", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2310", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0083", "db_id": "entrepreneur", "query": "select name from people where people_id in (select people_id from entrepreneur);", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "What are the names of entrepreneurs?", "question_toks": ["What", "are", "the", "names", "of", "entrepreneurs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2275", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0084", "db_id": "entrepreneur", "query": "select name from people where people_id in (select people_id from entrepreneur);", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "Return the names of entrepreneurs.", "question_toks": ["Return", "the", "names", "of", "entrepreneurs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2276", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0085", "db_id": "party_people", "query": "select t1.member_name from member as t1 join party as t2 on t1.party_id = t2.party_id", "query_toks": ["select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id"], "query_toks_no_value": ["select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id"], "question": "Show member names.", "question_toks": ["Show", "member", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2067", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0086", "db_id": "party_people", "query": "select t1.member_name from member as t1 join party as t2 on t1.party_id = t2.party_id", "query_toks": ["select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id"], "query_toks_no_value": ["select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id"], "question": "Which member names corresponding to members?", "question_toks": ["Which", "member", "names", "corresponding", "to", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2068", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0087", "db_id": "department_store", "query": "select customer_id , customer_name from customers where customer_address like \"%wy%\"", "query_toks": ["select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "\"%", "wy", "%\""], "query_toks_no_value": ["select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "\"%", "wy", "%\""], "question": "Find the id and name of customers whose address contains WY state.", "question_toks": ["Find", "the", "id", "and", "name", "of", "customers", "whose", "address", "contains", "WY", "state", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%wy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4791", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0088", "db_id": "department_store", "query": "select customer_id , customer_name from customers where customer_address like \"%wy%\"", "query_toks": ["select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "\"%", "wy", "%\""], "query_toks_no_value": ["select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "\"%", "wy", "%\""], "question": "What are the ids and names of customers with addressed that contain WY?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "customers", "with", "addressed", "that", "contain", "WY", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%wy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4792", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0089", "db_id": "entertainment_awards", "query": "select year from festival_detail where location = \"united states\"", "query_toks": ["select", "year", "from", "festival_detail", "where", "location", "=", "``", "united", "states", "''"], "query_toks_no_value": ["select", "year", "from", "festival_detail", "where", "location", "=", "value", "states"], "question": "In which year are there festivals inside the 'United States'?", "question_toks": ["In", "which", "year", "are", "there", "festivals", "both", "inside", "the", "'", "United", "States", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"united states\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4619", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0090", "db_id": "geo", "query": "select mountain_name from mountain", "query_toks": ["select", "mountain_name", "from", "mountain"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain"], "question": "what are the highest peaks", "question_toks": ["what", "are", "the", "highest", "peaks"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0427", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0091", "db_id": "student_1", "query": "select distinct t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 3", "query_toks": ["select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "3"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value"], "question": "Find the last names of the students in third grade", "question_toks": ["Find", "the", "last", "names", "of", "the", "students", "in", "third", "grade"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4078", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0092", "db_id": "student_1", "query": "select distinct t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 3", "query_toks": ["select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "3"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value"], "question": "Which students in third grade? Give me the last names of the students.", "question_toks": ["Which", "students", "in", "third", "grade", "?", "Give", "me", "the", "last", "names", "of", "the", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4079", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0093", "db_id": "hr_1", "query": "select first_name , last_name , hire_date from employees where department_id = ( select department_id from employees where first_name = \"clara\")", "query_toks": ["select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "``", "clara", "\")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "value", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", "\")"], "question": "What are the full names and hire dates for employees in the same department as someone with the first name Clara?", "question_toks": ["What", "are", "the", "full", "names", "and", "hire", "dates", "for", "employees", "in", "the", "same", "department", "as", "someone", "with", "the", "first", "name", "Clara", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3502", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0094", "db_id": "phone_1", "query": "select distinct t2.hardware_model_name from screen_mode as t1 join phone as t2 on t1.graphics_mode = t2.screen_mode where t2.company_name = \"nokia corporation\"", "query_toks": ["select", "distinct", "t2", ".", "hardware_model_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "company_name", "=", "``", "nokia", "corporation", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "hardware_model_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "company_name", "=", "value", "corporation"], "question": "List the hardware model name for the phons that were produced by \"Nokia Corporation\".", "question_toks": ["List", "the", "hardware", "model", "name", "for", "the", "phons", "that", "were", "produced", "by", "\"", "Nokia", "Corporation", "\"."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 21, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"nokia corporation\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1040", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0095", "db_id": "college_1", "query": "select t2.emp_fname , t1.prof_office from professor as t1 join employee as t2 on t1.emp_num = t2.emp_num join department as t3 on t1.dept_code = t3.dept_code where t3.dept_name = \"history\"", "query_toks": ["select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "``", "history", "''"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value"], "question": "Find the first name and office of history professor.", "question_toks": ["Find", "the", "first", "name", "and", "office", "of", "history", "professor", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"history\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3327", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0096", "db_id": "college_1", "query": "select t2.emp_fname , t1.prof_office from professor as t1 join employee as t2 on t1.emp_num = t2.emp_num join department as t3 on t1.dept_code = t3.dept_code where t3.dept_name = \"history\"", "query_toks": ["select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "``", "history", "''"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value"], "question": "What are the first names and offices of history professors?", "question_toks": ["What", "are", "the", "first", "names", "and", "offices", "of", "history", "professors", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"history\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3328", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0097", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t5.keyphrasename = \"syntactic parsing\"", "query_toks": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t5", ".", "keyphrasename", "=", "``", "syntactic", "parsing", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t5", ".", "keyphrasename", "=", "value", "parsing"], "question": "syntactic parsing papers", "question_toks": ["syntactic", "parsing", "papers"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0991", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0098", "db_id": "movie_1", "query": "select rid from reviewer;", "query_toks": ["select", "rid", "from", "rating"], "query_toks_no_value": ["select", "rid", "from", "rating"], "question": "find the ids of reviewers.", "question_toks": ["find", "the", "ids", "of", "reviewers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2520", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0099", "db_id": "race_track", "query": "select name from track", "query_toks": ["select", "name", "from", "track"], "query_toks_no_value": ["select", "name", "from", "track"], "question": "What are the names for tracks.", "question_toks": ["What", "are", "the", "names", "for", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0773", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0100", "db_id": "race_track", "query": "select name from track", "query_toks": ["select", "name", "from", "track"], "query_toks_no_value": ["select", "name", "from", "track"], "question": "Give the names of tracks", "question_toks": ["Give", "the", "names", "of", "tracks"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0774", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0101", "db_id": "storm_record", "query": "select name from storm", "query_toks": ["select", "name", "from", "storm"], "query_toks_no_value": ["select", "name", "from", "storm"], "question": "What are the names of storms?", "question_toks": ["What", "are", "the", "names", "of", "storms", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2723", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0102", "db_id": "film_rank", "query": "select studio from film", "query_toks": ["select", "studio", "from", "film"], "query_toks_no_value": ["select", "studio", "from", "film"], "question": "Show the studios.", "question_toks": ["Show", "the", "studios", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4152", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0103", "db_id": "network_2", "query": "select name from person", "query_toks": ["select", "name", "from", "person"], "query_toks_no_value": ["select", "name", "from", "person"], "question": "Find the name of the person.", "question_toks": ["Find", "the", "name", "of", "the", "person", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4448", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0104", "db_id": "network_2", "query": "select name from person ", "query_toks": ["select", "name", "from", "person"], "query_toks_no_value": ["select", "name", "from", "person"], "question": "What are the names of the people ?", "question_toks": ["What", "are", "the", "names", "of", "the", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4449", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0105", "db_id": "theme_gallery", "query": "select name from artist", "query_toks": ["select", "name", "from", "artist"], "query_toks_no_value": ["select", "name", "from", "artist"], "question": "What are the names of artists ?", "question_toks": ["What", "are", "the", "names", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1682", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0106", "db_id": "hospital_1", "query": "select name from patient", "query_toks": ["select", "name", "from", "patient"], "query_toks_no_value": ["select", "name", "from", "patient"], "question": "Find the names of patients.", "question_toks": ["Find", "the", "names", "of", "patients", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3990", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0107", "db_id": "hospital_1", "query": "select name from patient", "query_toks": ["select", "name", "from", "patient"], "query_toks_no_value": ["select", "name", "from", "patient"], "question": "What are the names of patients.", "question_toks": ["What", "are", "the", "names", "of", "patients", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3991", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0108", "db_id": "program_share", "query": "select name from program", "query_toks": ["select", "name", "from", "program"], "query_toks_no_value": ["select", "name", "from", "program"], "question": "Find the names of programs.", "question_toks": ["Find", "the", "names", "of", "programs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3752", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0109", "db_id": "program_share", "query": "select name from program", "query_toks": ["select", "name", "from", "program"], "query_toks_no_value": ["select", "name", "from", "program"], "question": "Give me the names of the programs.", "question_toks": ["Give", "me", "the", "names", "of", "the", "programs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3753", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0110", "db_id": "ship_1", "query": "select rank from captain", "query_toks": ["select", "rank", "from", "captain"], "query_toks_no_value": ["select", "rank", "from", "captain"], "question": "Find the captain rank", "question_toks": ["Find", "the", "captain", "rank"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6240", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0111", "db_id": "ship_1", "query": "select rank from captain", "query_toks": ["select", "rank", "from", "captain"], "query_toks_no_value": ["select", "rank", "from", "captain"], "question": "What are the ranks of captains?", "question_toks": ["What", "are", "the", "ranks", "of", "captains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6241", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0112", "db_id": "college_2", "query": "select id from instructor", "query_toks": ["select", "id", "from", "instructor"], "query_toks_no_value": ["select", "id", "from", "instructor"], "question": "What are the ids of instructors?", "question_toks": ["What", "are", "the", "ids", "of", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1443", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0113", "db_id": "game_1", "query": "select stuid from student except select stuid from plays_games", "query_toks": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "plays_games"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "plays_games"], "question": "Show ids of students who don't play video game.", "question_toks": ["Show", "ids", "of", "students", "who", "don", "'", "t", "play", "video", "game", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6035", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0114", "db_id": "pets_1", "query": "select stuid from student", "query_toks": ["select", "stuid", "from", "student"], "query_toks_no_value": ["select", "stuid", "from", "student"], "question": "Find the id of students.", "question_toks": ["Find", "the", "id", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0063", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0115", "db_id": "pets_1", "query": "select stuid from student", "query_toks": ["select", "stuid", "from", "student"], "query_toks_no_value": ["select", "stuid", "from", "student"], "question": "What are the ids of the students?", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0064", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0116", "db_id": "protein_institute", "query": "select name from building", "query_toks": ["select", "name", "from", "building"], "query_toks_no_value": ["select", "name", "from", "building"], "question": "Show the names of buildings", "question_toks": ["Show", "the", "names", "of", "buildings"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1921", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0117", "db_id": "dorm_1", "query": "select dorm_name from dorm", "query_toks": ["select", "dorm_name", "from", "dorm"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm"], "question": "Find the name of dorms.", "question_toks": ["Find", "the", "name", "of", "dorms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5760", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0118", "db_id": "dorm_1", "query": "select dorm_name from dorm", "query_toks": ["select", "dorm_name", "from", "dorm"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm"], "question": "What are the names of the dorm?", "question_toks": ["What", "are", "the", "names", "of", "the", "dorm", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5761", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0119", "db_id": "network_1", "query": "select id from highschooler", "query_toks": ["select", "id", "from", "highschooler"], "query_toks_no_value": ["select", "id", "from", "highschooler"], "question": "What are the ids of high school students?", "question_toks": ["What", "are", "the", "ids", "of", "high", "school", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0895", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0120", "db_id": "scientist_1", "query": "select name from scientists", "query_toks": ["select", "name", "from", "scientists"], "query_toks_no_value": ["select", "name", "from", "scientists"], "question": "Find the names of scientists.", "question_toks": ["Find", "the", "names", "of", "scientists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6511", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0121", "db_id": "scientist_1", "query": "select name from scientists", "query_toks": ["select", "name", "from", "scientists"], "query_toks_no_value": ["select", "name", "from", "scientists"], "question": "What are the names of scientists", "question_toks": ["What", "are", "the", "names", "of", "scientists"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6512", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0122", "db_id": "college_2", "query": "select course_id from course", "query_toks": ["select", "course_id", "from", "course"], "query_toks_no_value": ["select", "course_id", "from", "course"], "question": "What are the ids of courses?", "question_toks": ["What", "are", "the", "ids", "of", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1419", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0123", "db_id": "college_3", "query": "select dname from department", "query_toks": ["select", "dname", "from", "department"], "query_toks_no_value": ["select", "dname", "from", "department"], "question": "Find the name of the departments?", "question_toks": ["Find", "the", "name", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4673", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0124", "db_id": "college_3", "query": "select dname from department", "query_toks": ["select", "dname", "from", "department"], "query_toks_no_value": ["select", "dname", "from", "department"], "question": "What is the name of the department?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4674", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0125", "db_id": "chinook_1", "query": "select lastname from customer", "query_toks": ["select", "lastname", "from", "customer"], "query_toks_no_value": ["select", "lastname", "from", "customer"], "question": "What are the last names of customers?", "question_toks": ["What", "are", "the", "last", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0858", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0126", "db_id": "network_1", "query": "select name from highschooler", "query_toks": ["select", "name", "from", "highschooler"], "query_toks_no_value": ["select", "name", "from", "highschooler"], "question": "What are the names of students?", "question_toks": ["What", "are", "the", "names", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0897", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0127", "db_id": "loan_1", "query": "select cust_name from customer", "query_toks": ["select", "cust_name", "from", "customer"], "query_toks_no_value": ["select", "cust_name", "from", "customer"], "question": "Find the name of customers.", "question_toks": ["Find", "the", "name", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3038", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0128", "db_id": "loan_1", "query": "select cust_name from customer", "query_toks": ["select", "cust_name", "from", "customer"], "query_toks_no_value": ["select", "cust_name", "from", "customer"], "question": "What are the names of customers?", "question_toks": ["What", "are", "the", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3039", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0129", "db_id": "loan_1", "query": "select cust_name from customer", "query_toks": ["select", "cust_name", "from", "customer"], "query_toks_no_value": ["select", "cust_name", "from", "customer"], "question": "Find the name of customers.", "question_toks": ["Find", "the", "name", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3040", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0130", "db_id": "loan_1", "query": "select cust_name from customer", "query_toks": ["select", "cust_name", "from", "customer"], "query_toks_no_value": ["select", "cust_name", "from", "customer"], "question": "What are the names of customers?", "question_toks": ["What", "are", "the", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3041", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0131", "db_id": "manufactory_1", "query": "select name from manufacturers", "query_toks": ["select", "name", "from", "manufacturers"], "query_toks_no_value": ["select", "name", "from", "manufacturers"], "question": "Find the name of companies.", "question_toks": ["Find", "the", "name", "of", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5318", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0132", "db_id": "manufactory_1", "query": "select name from manufacturers", "query_toks": ["select", "name", "from", "manufacturers"], "query_toks_no_value": ["select", "name", "from", "manufacturers"], "question": "What are the names of companies?", "question_toks": ["What", "are", "the", "names", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5319", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0133", "db_id": "tvshow", "query": "select country from tv_channel", "query_toks": ["select", "country", "from", "tv_channel"], "query_toks_no_value": ["select", "country", "from", "tv_channel"], "question": "What are the countries?", "question_toks": ["What", "are", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0636", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0134", "db_id": "culture_company", "query": "select publisher from book_club where year = 1989", "query_toks": ["select", "publisher", "from", "book_club", "where", "year", "=", "1989"], "query_toks_no_value": ["select", "publisher", "from", "book_club", "where", "year", "=", "value"], "question": "Which publishers publish a book in 1989?", "question_toks": ["Which", "publishers", "publish", "a", "book", "in", "1989", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6981", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0135", "db_id": "gas_company", "query": "select headquarters from company", "query_toks": ["select", "headquarters", "from", "company"], "query_toks_no_value": ["select", "headquarters", "from", "company"], "question": "What are the headquarters?", "question_toks": ["What", "are", "the", "headquarters", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2022", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0136", "db_id": "car_1", "query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country", "query_toks": ["select", "countryname", "from", "countries", "except", "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country"], "query_toks_no_value": ["select", "countryname", "from", "countries", "except", "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country"], "question": "What are the name of the countries?", "question_toks": ["What", "are", "the", "name", "of", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0173", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0137", "db_id": "car_1", "query": "select countryname from countries", "query_toks": ["select", "countryname", "from", "countries"], "query_toks_no_value": ["select", "countryname", "from", "countries"], "question": "What are the names of the countries?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0174", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0138", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents", "query_toks": ["select", "document_id", "from", "documents"], "query_toks_no_value": ["select", "document_id", "from", "documents"], "question": "What are the ids of documents?", "question_toks": ["What", "are", "the", "ids", "of", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6457", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0139", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents", "query_toks": ["select", "document_id", "from", "documents"], "query_toks_no_value": ["select", "document_id", "from", "documents"], "question": "Return the ids of documents.", "question_toks": ["Return", "the", "ids", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6458", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0140", "db_id": "customers_and_invoices", "query": "select customer_id from customers except select customer_id from accounts", "query_toks": ["select", "customer_id", "from", "customers", "except", "select", "customer_id", "from", "accounts"], "query_toks_no_value": ["select", "customer_id", "from", "customers", "except", "select", "customer_id", "from", "accounts"], "question": "Show customer ids who don't have an account.", "question_toks": ["Show", "customer", "ids", "who", "don", "'", "t", "have", "an", "account", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1563", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0141", "db_id": "customers_and_invoices", "query": "select customer_id from customers", "query_toks": ["select", "customer_id", "from", "customers"], "query_toks_no_value": ["select", "customer_id", "from", "customers"], "question": "What are the customer ids for customers?", "question_toks": ["What", "are", "the", "customer", "ids", "for", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1564", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0142", "db_id": "customers_and_invoices", "query": "select product_name from products ", "query_toks": ["select", "product_name", "from", "products"], "query_toks_no_value": ["select", "product_name", "from", "products"], "question": "What are the names of products?", "question_toks": ["What", "are", "the", "names", "of", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1614", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0143", "db_id": "e_government", "query": "select service_name from services", "query_toks": ["select", "service_name", "from", "services"], "query_toks_no_value": ["select", "service_name", "from", "services"], "question": "Find name of the services.", "question_toks": ["Find", "name", "of", "the", "services", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6328", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0144", "db_id": "e_government", "query": "select service_name from services", "query_toks": ["select", "service_name", "from", "services"], "query_toks_no_value": ["select", "service_name", "from", "services"], "question": "What are the names of the services?", "question_toks": ["What", "are", "the", "names", "of", "the", "services", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6329", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0145", "db_id": "customer_deliveries", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2848", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0146", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6137", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0147", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "What are names of customers.", "question_toks": ["What", "are", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6138", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0148", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6139", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0149", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "What are the names of customers.", "question_toks": ["What", "are", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6140", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0150", "db_id": "insurance_fnol", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "Find the names of users.", "question_toks": ["Find", "the", "names", "of", "users", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0919", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0151", "db_id": "insurance_fnol", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "Give me the customer names.", "question_toks": ["Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0920", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0152", "db_id": "gymnast", "query": "select distinct hometown from people", "query_toks": ["select", "distinct", "hometown", "from", "people"], "query_toks_no_value": ["select", "distinct", "hometown", "from", "people"], "question": "From which hometowns gymnasts come from?", "question_toks": ["From", "which", "hometowns", "gymnasts", "come", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1769", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0153", "db_id": "body_builder", "query": "select name , birth_place from people", "query_toks": ["select", "name", ",", "birth_place", "from", "people"], "query_toks_no_value": ["select", "name", ",", "birth_place", "from", "people"], "question": "List the names and origins of people.", "question_toks": ["List", "the", "names", "and", "origins", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1168", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0154", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers", "query_toks": ["select", "customer_details", "from", "customers"], "query_toks_no_value": ["select", "customer_details", "from", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1523", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0155", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine", "query_toks": ["select", "name", ",", "trade_name", "from", "medicine"], "query_toks_no_value": ["select", "name", ",", "trade_name", "from", "medicine"], "question": "Show the medicine names and trade names.", "question_toks": ["Show", "the", "medicine", "names", "and", "trade", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0969", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0156", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine", "query_toks": ["select", "name", ",", "trade_name", "from", "medicine"], "query_toks_no_value": ["select", "name", ",", "trade_name", "from", "medicine"], "question": "What are the medicine and trade names?", "question_toks": ["What", "are", "the", "medicine", "and", "trade", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0970", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0157", "db_id": "mountain_photos", "query": "select name , prominence from mountain", "query_toks": ["select", "name", ",", "prominence", "from", "mountain"], "query_toks_no_value": ["select", "name", ",", "prominence", "from", "mountain"], "question": "Show the name and prominence of the mountains .", "question_toks": ["Show", "the", "name", "and", "prominence", "of", "the", "mountains", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3725", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0158", "db_id": "world_1", "query": "select countrycode from countrylanguage", "query_toks": ["select", "countrycode", "from", "countrylanguage"], "query_toks_no_value": ["select", "countrycode", "from", "countrylanguage"], "question": "What are the country codes for countries ?", "question_toks": ["What", "are", "the", "country", "codes", "for", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0778", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0159", "db_id": "world_1", "query": "select countrycode from countrylanguage", "query_toks": ["select", "countrycode", "from", "countrylanguage"], "query_toks_no_value": ["select", "countrycode", "from", "countrylanguage"], "question": "Return the country codes for countries.", "question_toks": ["Return", "the", "country", "codes", "for", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0779", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0160", "db_id": "bike_1", "query": "select id from station where lat > 37.4", "query_toks": ["select", "id", "from", "station", "where", "lat", ">", "37", ".", "4"], "query_toks_no_value": ["select", "id", "from", "station", "where", "lat", ">", "value", ".", "4"], "question": "What are the ids of stations that have latitude above 37.4?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "have", "latitude", "above", "37", ".", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0169", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0161", "db_id": "local_govt_and_lot", "query": "select organization_id from organizations", "query_toks": ["select", "organization_id", "from", "organizations"], "query_toks_no_value": ["select", "organization_id", "from", "organizations"], "question": "List the organization id.", "question_toks": ["List", "the", "organization", "id", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4854", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0162", "db_id": "soccer_2", "query": "select cname from tryout where ppos = \"mid\"", "query_toks": ["select", "cname", "from", "tryout", "where", "ppos", "=", "``", "mid", "''"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "ppos", "=", "value"], "question": "Find the names of schools that have some players in the mid position", "question_toks": ["Find", "the", "names", "of", "schools", "that", "have", "some", "players", "in", "the", "mid", "position"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5032", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0163", "db_id": "soccer_2", "query": "select cname from tryout where ppos = \"mid\"", "query_toks": ["select", "cname", "from", "tryout", "where", "ppos", "=", "``", "mid", "''"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "ppos", "=", "value"], "question": "What are the names of the schools with some players in the mid position?", "question_toks": ["What", "are", "the", "names", "of", "the", "schools", "with", "some", "players", "in", "the", "mid", "position", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5033", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0164", "db_id": "hospital_1", "query": "select name from procedures where cost > 1000", "query_toks": ["select", "name", "from", "procedures", "where", "cost", ">", "1000"], "query_toks_no_value": ["select", "name", "from", "procedures", "where", "cost", ">", "value"], "question": "Among the procedures that cost more than 1000?", "question_toks": ["Among", "the", "procedures", "that", "cost", "more", "than", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3983", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0165", "db_id": "wine_1", "query": "select appelation from wine where year > 2008", "query_toks": ["select", "appelation", "from", "wine", "where", "year", ">", "2008"], "query_toks_no_value": ["select", "appelation", "from", "wine", "where", "year", ">", "value"], "question": "Find the appelations that produce wines after the year of 2008.", "question_toks": ["Find", "the", "appelations", "that", "produce", "wines", "after", "the", "year", "of", "2008", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6593", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0166", "db_id": "wine_1", "query": "select appelation from wine where year > 2008", "query_toks": ["select", "appelation", "from", "wine", "where", "year", ">", "2008"], "query_toks_no_value": ["select", "appelation", "from", "wine", "where", "year", ">", "value"], "question": "What are the appelations for wines produced after 2008?", "question_toks": ["What", "are", "the", "appelations", "for", "wines", "produced", "after", "2008", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6594", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0167", "db_id": "bike_1", "query": "select name from station where city = \"palo alto\"", "query_toks": ["select", "name", "from", "station", "where", "city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["select", "name", "from", "station", "where", "city", "=", "value", "alto"], "question": "What are the names of stations that are located in Palo Alto city?", "question_toks": ["What", "are", "the", "names", "of", "stations", "that", "are", "located", "in", "Palo", "Alto", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0207", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0168", "db_id": "bike_1", "query": "select name from station where city = \"palo alto\"", "query_toks": ["select", "name", "from", "station", "where", "city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["select", "name", "from", "station", "where", "city", "=", "value", "alto"], "question": "What are the names of the stations that are located in Palo Alto?", "question_toks": ["What", "are", "the", "names", "of", "the", "stations", "that", "are", "located", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0208", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0169", "db_id": "activity_1", "query": "select lname from faculty where rank = \"professor\" ", "query_toks": ["select", "lname", "from", "faculty", "where", "rank", "=", "``", "professor", "''"], "query_toks_no_value": ["select", "lname", "from", "faculty", "where", "rank", "=", "value"], "question": "Find the first names of professors.", "question_toks": ["Find", "the", "first", "names", "of", "professors", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6797", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0170", "db_id": "activity_1", "query": "select lname from faculty where rank = \"professor\"", "query_toks": ["select", "lname", "from", "faculty", "where", "rank", "=", "``", "professor", "''"], "query_toks_no_value": ["select", "lname", "from", "faculty", "where", "rank", "=", "value"], "question": "What are the first names of the professors?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6798", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0171", "db_id": "battle_death", "query": "select name , result , bulgarian_commander from battle", "query_toks": ["select", "name", ",", "result", ",", "bulgarian_commander", "from", "battle"], "query_toks_no_value": ["select", "name", ",", "result", ",", "bulgarian_commander", "from", "battle"], "question": "Show names, results and bulgarian commanders of the battles.", "question_toks": ["Show", "names", ",", "results", "and", "bulgarian", "commanders", "of", "the", "battles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0505", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0172", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers", "query_toks": ["select", "customer_id", ",", "customer_first_name", "from", "customers"], "query_toks_no_value": ["select", "customer_id", ",", "customer_first_name", "from", "customers"], "question": "Show the customer ids and firstname.", "question_toks": ["Show", "the", "customer", "ids", "and", "firstname", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0727", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0173", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers except select t1.customer_id , t2.customer_first_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id where card_type_code = \"credit\"", "query_toks": ["select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "``", "credit", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "value"], "question": "What are the ids and first names of customers who do not hold a credit card?", "question_toks": ["What", "are", "the", "ids", "and", "first", "names", "of", "customers", "who", "do", "not", "hold", "a", "credit", "card", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"credit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0728", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0174", "db_id": "college_2", "query": "select title from course where dept_name = \"statistics\"", "query_toks": ["select", "title", "from", "course", "where", "dept_name", "=", "``", "statistics", "''"], "query_toks_no_value": ["select", "title", "from", "course", "where", "dept_name", "=", "value"], "question": "Find the title of course that is provided by Statistics.", "question_toks": ["Find", "the", "title", "of", "course", "that", "is", "provided", "by", "Statistics", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"statistics\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1364", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0175", "db_id": "college_2", "query": "select title from course where dept_name = \"statistics\"", "query_toks": ["select", "title", "from", "course", "where", "dept_name", "=", "``", "statistics", "''"], "query_toks_no_value": ["select", "title", "from", "course", "where", "dept_name", "=", "value"], "question": "What are the titles of courses that are in the Statistics departmen?", "question_toks": ["What", "are", "the", "titles", "of", "courses", "that", "are", "in", "the", "Statistics", "departmen", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"statistics\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1365", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0176", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator", "query_toks": ["select", "name", ",", "operating_system", "from", "web_client_accelerator"], "query_toks_no_value": ["select", "name", ",", "operating_system", "from", "web_client_accelerator"], "question": "Show the accelerator names and supporting operating systems.", "question_toks": ["Show", "the", "accelerator", "names", "and", "supporting", "operating", "systems", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1840", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0177", "db_id": "college_1", "query": "select emp_fname from employee where emp_jobcode = \"prof\" ", "query_toks": ["select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "``", "prof", "''"], "query_toks_no_value": ["select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "value"], "question": "What are the first names of the professors.", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"prof\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3273", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0178", "db_id": "game_injury", "query": "select name , average_attendance , total_attendance from stadium", "query_toks": ["select", "name", ",", "average_attendance", ",", "total_attendance", "from", "stadium"], "query_toks_no_value": ["select", "name", ",", "average_attendance", ",", "total_attendance", "from", "stadium"], "question": "Show the name, average attendance, total attendance for stadiums.", "question_toks": ["Show", "the", "name", ",", "average", "attendance", ",", "total", "attendance", "for", "stadiums", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1289", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0179", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents where document_type_code = \"cv\"", "query_toks": ["select", "document_id", "from", "documents", "where", "document_type_code", "=", "``", "cv", "''"], "query_toks_no_value": ["select", "document_id", "from", "documents", "where", "document_type_code", "=", "value"], "question": "What are the ids of documents with the type code CV.", "question_toks": ["What", "are", "the", "ids", "of", "documents", "with", "the", "type", "code", "CV", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"cv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6460", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0180", "db_id": "music_1", "query": "select distinct artist_name from song where languages = \"english\"", "query_toks": ["select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "value"], "question": "Find the names of the artists who have produced English songs.", "question_toks": ["Find", "the", "names", "of", "the", "artists", "who", "have", "produced", "English", "songs", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3625", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0181", "db_id": "music_1", "query": "select distinct artist_name from song where languages = \"english\"", "query_toks": ["select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "value"], "question": "What are the names of the different artists that have produced a song in English?", "question_toks": ["What", "are", "the", "names", "of", "the", "different", "artists", "that", "have", "produced", "a", "song", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3626", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0182", "db_id": "music_1", "query": "select distinct artist_name from artist where country = \"bangladesh\"", "query_toks": ["select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "``", "bangladesh", "''"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "value"], "question": "Find the names of the artists who are from Bangladesh.", "question_toks": ["Find", "the", "names", "of", "the", "artists", "who", "are", "from", "Bangladesh", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"bangladesh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3627", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0183", "db_id": "music_1", "query": "select distinct artist_name from artist where country = \"bangladesh\"", "query_toks": ["select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "``", "bangladesh", "''"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "value"], "question": "What are the names of the different artists from Bangladesh?", "question_toks": ["What", "are", "the", "names", "of", "the", "different", "artists", "from", "Bangladesh", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"bangladesh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3628", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0184", "db_id": "dog_kennels", "query": "select first_name from professionals union select first_name from owners ", "query_toks": ["select", "first_name", "from", "professionals", "union", "select", "first_name", "from", "owners"], "query_toks_no_value": ["select", "first_name", "from", "professionals", "union", "select", "first_name", "from", "owners"], "question": "Which first names are used for professionals or owners?", "question_toks": ["Which", "first", "names", "are", "used", "for", "professionals", "or", "owners", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0926", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0185", "db_id": "music_2", "query": "select distinct title from songs", "query_toks": ["select", "distinct", "title", "from", "songs"], "query_toks_no_value": ["select", "distinct", "title", "from", "songs"], "question": "What are the names of the songs?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5233", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0186", "db_id": "music_2", "query": "select distinct title from songs", "query_toks": ["select", "distinct", "title", "from", "songs"], "query_toks_no_value": ["select", "distinct", "title", "from", "songs"], "question": "Find the name of songs.", "question_toks": ["Find", "the", "name", "of", "songs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5264", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0187", "db_id": "music_2", "query": "select distinct title from songs", "query_toks": ["select", "distinct", "title", "from", "songs"], "query_toks_no_value": ["select", "distinct", "title", "from", "songs"], "question": "What are the names of the songs?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5265", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0188", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.city_town from addresses as t1 join customers as t2 on t1.address_id = t2.address_id", "query_toks": ["select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id"], "query_toks_no_value": ["select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id"], "question": "Which cities have at least one customer?", "question_toks": ["Which", "cities", "have", "at", "least", "one", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 42, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5159", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0189", "db_id": "voter_2", "query": "select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = president_vote", "query_toks": ["select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote"], "question": "What are the distinct last names of the students who have president votes?", "question_toks": ["What", "are", "the", "distinct", "last", "names", "of", "the", "students", "who", "have", "president", "votes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5497", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0190", "db_id": "soccer_2", "query": "select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = \"mid\"", "query_toks": ["select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "``", "mid", "''"], "query_toks_no_value": ["select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value"], "question": "Find the names of states that have some college students playing in the mid position.", "question_toks": ["Find", "the", "names", "of", "states", "that", "have", "some", "college", "students", "playing", "in", "the", "mid", "position", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5034", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0191", "db_id": "cre_Doc_Control_Systems", "query": "select document_id from documents where document_status_code = \"done\" and document_type_code = \"paper\"", "query_toks": ["select", "document_id", "from", "documents", "where", "document_status_code", "=", "``", "done", "''", "and", "document_type_code", "=", "``", "paper", "''"], "query_toks_no_value": ["select", "document_id", "from", "documents", "where", "document_status_code", "=", "value", "and", "document_type_code", "=", "value"], "question": "List the document ids of documents with the status done and type Paper.", "question_toks": ["List", "the", "document", "ids", "of", "documents", "with", "the", "status", "done", "and", "type", "Paper", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"done\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"paper\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2121", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0192", "db_id": "city_record", "query": "select t1.city from city as t1 join temperature as t2 on t1.city_id = t2.city_id where t2.mar < t2.dec", "query_toks": ["select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "dec"], "query_toks_no_value": ["select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "value", ".", "dec"], "question": "Give me a list of cities whose temperature in Mar is lower than that in Dec.", "question_toks": ["Give", "me", "a", "list", "of", "cities", "whose", "temperature", "in", "Mar", "is", "lower", "than", "that", "in", "Dec", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], [0, 24, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6292", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0193", "db_id": "city_record", "query": "select t1.city from city as t1 join temperature as t2 on t1.city_id = t2.city_id where t2.mar < t2.dec", "query_toks": ["select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "dec"], "query_toks_no_value": ["select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "value", ".", "dec"], "question": "Which cities have lower temperature in March than in Dec?", "question_toks": ["Which", "cities", "have", "lower", "temperature", "in", "March", "than", "in", "Dec", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], [0, 24, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6293", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0194", "db_id": "voter_2", "query": "select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.vice_president_vote except select distinct fname from student", "query_toks": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "except", "select", "distinct", "fname", "from", "student"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "except", "select", "distinct", "fname", "from", "student"], "question": "What are the distinct first names of the students who have vice president votes and reside in a city?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "of", "the", "students", "who", "have", "vice", "president", "votes", "and", "reside", "in", "a", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5495", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0195", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"cvo\"", "query_toks": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "``", "cvo", "''"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"], "question": "Which airlines have departures from CVO?", "question_toks": ["Which", "airlines", "have", "departures", "from", "CVO", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0240", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0196", "db_id": "soccer_2", "query": "select count(*) from (select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = \"mid\")", "query_toks": ["select", "count", "(*)", "from", "(", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "``", "mid", "\")"], "query_toks_no_value": ["select", "count", "(*)", "from", "(", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "\")"], "question": "What is the count of states with college students playing in the mid position?", "question_toks": ["What", "is", "the", "count", "of", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "?"], "sql": {"from": {"table_units": [["sql", {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5037", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0197", "db_id": "student_1", "query": "select distinct t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 1", "query_toks": ["select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "1"], "query_toks_no_value": ["select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value"], "question": "What are the first and last names of the first-grade students?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "the", "first", "-", "grade", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4077", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0198", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10", "query_toks": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "10"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "10"], "question": "What are names of stations that have average bike availability above 10?", "question_toks": ["What", "are", "names", "of", "stations", "that", "have", "average", "bike", "availability", "above", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0171", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0199", "db_id": "network_2", "query": "select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age > 40)", "query_toks": ["select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "40", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")"], "question": "Find the name of the person who has friends with age above 40?", "question_toks": ["Find", "the", "name", "of", "the", "person", "who", "has", "friends", "with", "age", "above", "40", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4446", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0200", "db_id": "network_2", "query": "select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age > 40)", "query_toks": ["select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "40", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")"], "question": "What are the names of the people who are older 40?", "question_toks": ["What", "are", "the", "names", "of", "the", "people", "who", "are", "older", "40", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4447", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0201", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = \"movies\"", "query_toks": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "``", "movies", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "Find the name of tracks which are in Movies playlist.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "Movies", "playlist", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0643", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0202", "db_id": "department_store", "query": "select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.job_title_code = \"sales person\"", "query_toks": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "``", "sales", "person", "''"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value", "person"], "question": "What are the names and genders of staff who have held the title Sales Person?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "staff", "who", "have", "held", "the", "title", "Sales", "Person", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"sales person\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4790", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0203", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = \"tv lounge\"", "query_toks": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "``", "tv", "lounge", "''"], "query_toks_no_value": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "lounge"], "question": "Find the name of dorms which have TV Lounge.", "question_toks": ["Find", "the", "name", "of", "dorms", "which", "have", "TV", "Lounge", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"tv lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5704", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0204", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = \"tv lounge\"", "query_toks": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "``", "tv", "lounge", "''"], "query_toks_no_value": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "lounge"], "question": "What is the name of each dorm that has a TV Lounge?", "question_toks": ["What", "is", "the", "name", "of", "each", "dorm", "that", "has", "a", "TV", "Lounge", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"tv lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5705", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0205", "db_id": "college_1", "query": "select t1.emp_fname from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = \"history\"", "query_toks": ["select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "``", "history", "''"], "query_toks_no_value": ["select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value"], "question": "What is the first names of the professors from the history department.", "question_toks": ["What", "is", "the", "first", "names", "of", "the", "professors", "from", "the", "history", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"history\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3275", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0206", "db_id": "formula_1", "query": "select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"australian grand prix\"", "query_toks": ["select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "``", "australian", "grand", "prix", "''"], "query_toks_no_value": ["select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "grand", "prix"], "question": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix?", "question_toks": ["What", "are", "the", "forenames", "and", "surnames", "of", "drivers", "who", "participated", "in", "the", "races", "named", "Australian", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"australian grand prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2181", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0207", "db_id": "tracking_software_problems", "query": "select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"rem\"", "query_toks": ["select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "``", "rem", "''"], "query_toks_no_value": ["select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value"], "question": "Find the first and last name of the staff members who reported problems from the product \"rem\"?", "question_toks": ["Find", "the", "first", "and", "last", "name", "of", "the", "staff", "members", "who", "reported", "problems", "from", "the", "product", "\"", "rem", "\"?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"rem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5396", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0208", "db_id": "tracking_software_problems", "query": "select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"rem\"", "query_toks": ["select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "``", "rem", "''"], "query_toks_no_value": ["select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value"], "question": "Which staff members who reported problems from the product \"rem\"? Give me their first and last names.", "question_toks": ["Which", "staff", "members", "who", "reported", "problems", "from", "the", "product", "\"", "rem", "\"?", "Give", "me", "their", "first", "and", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"rem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5397", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0209", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\"", "query_toks": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "``", "alison", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value"], "question": "What are the names of tourist attraction that Alison visited?", "question_toks": ["What", "are", "the", "names", "of", "tourist", "attraction", "that", "Alison", "visited", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5965", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0210", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\"", "query_toks": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "``", "alison", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value"], "question": "Find the the names of the tourist attractions that the tourist named Alison visited.", "question_toks": ["Find", "the", "the", "names", "of", "the", "tourist", "attractions", "that", "the", "tourist", "named", "Alison", "visited", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5966", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0211", "db_id": "swimming", "query": "select name from swimmer", "query_toks": ["select", "name", "from", "swimmer"], "query_toks_no_value": ["select", "name", "from", "swimmer"], "question": "Find the names of the swimmers", "question_toks": ["Find", "the", "names", "of", "the", "swimmers"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5626", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0212", "db_id": "dog_kennels", "query": "select name from dogs", "query_toks": ["select", "name", "from", "dogs"], "query_toks_no_value": ["select", "name", "from", "dogs"], "question": "What are the names of the dogs?", "question_toks": ["What", "are", "the", "names", "of", "the", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0925", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0213", "db_id": "employee_hire_evaluation", "query": "select name from shop", "query_toks": ["select", "name", "from", "shop"], "query_toks_no_value": ["select", "name", "from", "shop"], "question": "Find the shop names", "question_toks": ["Find", "the", "shop", "names"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0286", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0214", "db_id": "match_season", "query": "select name from team", "query_toks": ["select", "name", "from", "team"], "query_toks_no_value": ["select", "name", "from", "team"], "question": "What are the names of teams?", "question_toks": ["What", "are", "the", "names", "of", "teams", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1104", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0215", "db_id": "match_season", "query": "select name from team", "query_toks": ["select", "name", "from", "team"], "query_toks_no_value": ["select", "name", "from", "team"], "question": "Return the names of teams.", "question_toks": ["Return", "the", "names", "of", "teams", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1105", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0216", "db_id": "book_2", "query": "select title from book", "query_toks": ["select", "title", "from", "book"], "query_toks_no_value": ["select", "title", "from", "book"], "question": "List the titles of books.", "question_toks": ["List", "the", "titles", "of", "books", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0229", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0217", "db_id": "film_rank", "query": "select title from film", "query_toks": ["select", "title", "from", "film"], "query_toks_no_value": ["select", "title", "from", "film"], "question": "What are the titles of films?", "question_toks": ["What", "are", "the", "titles", "of", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4147", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0218", "db_id": "scientist_1", "query": "select name from projects", "query_toks": ["select", "name", "from", "projects"], "query_toks_no_value": ["select", "name", "from", "projects"], "question": "Select the project names", "question_toks": ["Select", "the", "project", "names"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6505", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0219", "db_id": "scientist_1", "query": "select name from projects", "query_toks": ["select", "name", "from", "projects"], "query_toks_no_value": ["select", "name", "from", "projects"], "question": "What are the names of projects?", "question_toks": ["What", "are", "the", "names", "of", "projects", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6506", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0220", "db_id": "aircraft", "query": "select name from pilot", "query_toks": ["select", "name", "from", "pilot"], "query_toks_no_value": ["select", "name", "from", "pilot"], "question": "find the name of pilots.", "question_toks": ["find", "the", "name", "of", "pilots", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4841", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0221", "db_id": "customers_and_addresses", "query": "select city from addresses", "query_toks": ["select", "city", "from", "addresses"], "query_toks_no_value": ["select", "city", "from", "addresses"], "question": "Find the list of cities.", "question_toks": ["Find", "the", "list", "of", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6083", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0222", "db_id": "customers_and_addresses", "query": "select city from addresses", "query_toks": ["select", "city", "from", "addresses"], "query_toks_no_value": ["select", "city", "from", "addresses"], "question": "What are the all cities?", "question_toks": ["What", "are", "the", "all", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6084", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0223", "db_id": "scientist_1", "query": "select name from scientists", "query_toks": ["select", "name", "from", "scientists"], "query_toks_no_value": ["select", "name", "from", "scientists"], "question": "What are the names of scientists?", "question_toks": ["What", "are", "the", "names", "of", "scientists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6508", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0224", "db_id": "bike_1", "query": "select avg(long) from station", "query_toks": ["select", "avg", "(", "long", ")", "from", "station"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station"], "question": "What is the average longitude of stations?", "question_toks": ["What", "is", "the", "average", "longitude", "of", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0151", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0225", "db_id": "election", "query": "select party from party", "query_toks": ["select", "party", "from", "party"], "query_toks_no_value": ["select", "party", "from", "party"], "question": "What are the names of parties?", "question_toks": ["What", "are", "the", "names", "of", "parties", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2796", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0226", "db_id": "hospital_1", "query": "select count(*) from patient", "query_toks": ["select", "count", "(*)", "from", "patient"], "query_toks_no_value": ["select", "count", "(*)", "from", "patient"], "question": "Find the number of patients.", "question_toks": ["Find", "the", "number", "of", "patients", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3992", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0227", "db_id": "candidate_poll", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "what are the names of all people.", "question_toks": ["what", "are", "the", "names", "of", "all", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2420", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0228", "db_id": "candidate_poll", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "Give the names of people.", "question_toks": ["Give", "the", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2421", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0229", "db_id": "debate", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "List the names of people.", "question_toks": ["List", "the", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1506", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0230", "db_id": "entrepreneur", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "List the names of people.", "question_toks": ["List", "the", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2295", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0231", "db_id": "entrepreneur", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "What are the names of people?", "question_toks": ["What", "are", "the", "names", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2296", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0232", "db_id": "museum_visit", "query": "select name from museum", "query_toks": ["select", "name", "from", "museum"], "query_toks_no_value": ["select", "name", "from", "museum"], "question": "What is the name of the museum?", "question_toks": ["What", "is", "the", "name", "of", "the", "museum", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0422", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0233", "db_id": "perpetrator", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "List the names of people ", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "perpetrators", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2319", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0234", "db_id": "poker_player", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "List the names of people.", "question_toks": ["List", "the", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0683", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0235", "db_id": "poker_player", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "What are the names of people?", "question_toks": ["What", "are", "the", "names", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0684", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0236", "db_id": "school_bus", "query": "select name from driver", "query_toks": ["select", "name", "from", "driver"], "query_toks_no_value": ["select", "name", "from", "driver"], "question": "Show the names of the drivers.", "question_toks": ["Show", "the", "names", "of", "the", "drivers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6357", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0237", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "query_toks_no_value": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "What are the titles of courses without prerequisites?", "question_toks": ["What", "are", "the", "titles", "of", "courses", "without", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1349", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0238", "db_id": "college_2", "query": "select title from course", "query_toks": ["select", "title", "from", "course"], "query_toks_no_value": ["select", "title", "from", "course"], "question": "What are the names of courses?", "question_toks": ["What", "are", "the", "names", "of", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1421", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0239", "db_id": "device", "query": "select shop_name from shop", "query_toks": ["select", "shop_name", "from", "shop"], "query_toks_no_value": ["select", "shop_name", "from", "shop"], "question": "List the names of shops that have devices in stock.", "question_toks": ["List", "the", "names", "of", "shops", "that", "have", "devices", "in", "stock", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5082", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0240", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "List the names of teachers.", "question_toks": ["List", "the", "names", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0409", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0241", "db_id": "course_teach", "query": "select name from teacher;", "query_toks": ["select", "name", "from", "teacher", "where", "teacher_id", "not", "in", "(", "select", "teacher_id", "from", "course_arrange", ")"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "teacher_id", "not", "in", "(", "select", "teacher_id", "from", "course_arrange", ")"], "question": "What are the names of all teachers?", "question_toks": ["What", "are", "the", "names", "of", "all", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0410", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0242", "db_id": "entertainment_awards", "query": "select name from artwork", "query_toks": ["select", "name", "from", "artwork"], "query_toks_no_value": ["select", "name", "from", "artwork"], "question": "List the name of artworks.", "question_toks": ["List", "the", "name", "of", "artworks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4616", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0243", "db_id": "musical", "query": "select name from musical", "query_toks": ["select", "name", "from", "musical"], "query_toks_no_value": ["select", "name", "from", "musical"], "question": "List the name of musicals.", "question_toks": ["List", "the", "name", "of", "musicals", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0268", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0244", "db_id": "musical", "query": "select name from musical", "query_toks": ["select", "name", "from", "musical"], "query_toks_no_value": ["select", "name", "from", "musical"], "question": "What are the names of musicals?", "question_toks": ["What", "are", "the", "names", "of", "musicals", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0269", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0245", "db_id": "chinook_1", "query": "select count(*) from artist", "query_toks": ["select", "count", "(*)", "from", "artist"], "query_toks_no_value": ["select", "count", "(*)", "from", "artist"], "question": "Cound the number of artist.", "question_toks": ["Cound", "the", "number", "of", "artist", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0888", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0246", "db_id": "device", "query": "select carrier from device", "query_toks": ["select", "carrier", "from", "device"], "query_toks_no_value": ["select", "carrier", "from", "device"], "question": "List the carriers of devices", "question_toks": ["List", "the", "carriers", "of", "devices"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5086", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0247", "db_id": "climbing", "query": "select name from mountain", "query_toks": ["select", "name", "from", "mountain"], "query_toks_no_value": ["select", "name", "from", "mountain"], "question": "What are the names of countains?", "question_toks": ["What", "are", "the", "names", "of", "countains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1143", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0248", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["select", "count", "(*)", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "Count the number of courses without prerequisites.", "question_toks": ["Count", "the", "number", "of", "courses", "without", "prerequisites", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1347", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0249", "db_id": "hr_1", "query": "select employee_id from employees;", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "Find the ids of the employees", "question_toks": ["Find", "the", "ids", "of", "the", "employees"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3497", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0250", "db_id": "hr_1", "query": "select employee_id from employees;", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "What are the ids for employees", "question_toks": ["What", "are", "the", "ids", "for", "employees"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3498", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0251", "db_id": "party_people", "query": "select party_name from party", "query_toks": ["select", "party_name", "from", "party"], "query_toks_no_value": ["select", "party_name", "from", "party"], "question": "What are the names of parties?", "question_toks": ["What", "are", "the", "names", "of", "parties", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2064", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0252", "db_id": "ship_1", "query": "select name , flag from ship", "query_toks": ["select", "name", ",", "flag", "from", "ship"], "query_toks_no_value": ["select", "name", ",", "flag", "from", "ship"], "question": "What are the names and flags of ships?", "question_toks": ["What", "are", "the", "names", "and", "flags", "of", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6265", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0253", "db_id": "wrestler", "query": "select name from wrestler", "query_toks": ["select", "name", "from", "wrestler"], "query_toks_no_value": ["select", "name", "from", "wrestler"], "question": "List the names of wrestlers.", "question_toks": ["List", "the", "names", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1876", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0254", "db_id": "wrestler", "query": "select name from wrestler", "query_toks": ["select", "name", "from", "wrestler"], "query_toks_no_value": ["select", "name", "from", "wrestler"], "question": "What are the names of wrestlers?", "question_toks": ["What", "are", "the", "names", "of", "wrestlers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1877", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0255", "db_id": "apartment_rentals", "query": "select count(*) from apartments ", "query_toks": ["select", "count", "(*)", "from", "apartments"], "query_toks_no_value": ["select", "count", "(*)", "from", "apartments"], "question": "Find the number of apartments.", "question_toks": ["Find", "the", "number", "of", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1269", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0256", "db_id": "farm", "query": "select official_name from city", "query_toks": ["select", "official_name", "from", "city"], "query_toks_no_value": ["select", "official_name", "from", "city"], "question": "What are the official names of cities?", "question_toks": ["What", "are", "the", "official", "names", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0049", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0257", "db_id": "network_1", "query": "select min(grade) from highschooler", "query_toks": ["select", "min", "(", "grade", ")", "from", "highschooler"], "query_toks_no_value": ["select", "min", "(", "grade", ")", "from", "highschooler"], "question": "Find the minimum grade of students.", "question_toks": ["Find", "the", "minimum", "grade", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0916", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0258", "db_id": "pets_1", "query": "select major , age from student", "query_toks": ["select", "major", ",", "age", "from", "student"], "query_toks_no_value": ["select", "major", ",", "age", "from", "student"], "question": "Find the major and age of students", "question_toks": ["Find", "the", "major", "and", "age", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0061", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0259", "db_id": "ship_1", "query": "select name , class from ship", "query_toks": ["select", "name", ",", "class", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", ")"], "query_toks_no_value": ["select", "name", ",", "class", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", ")"], "question": "Return the names and classes of ships?", "question_toks": ["Return", "the", "names", "and", "classes", "of", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6261", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0260", "db_id": "wine_1", "query": "select avg(price) from wine", "query_toks": ["select", "avg", "(", "price", ")", "from", "wine"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "wine"], "question": "Find the average price of wines.", "question_toks": ["Find", "the", "average", "price", "of", "wines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6595", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0261", "db_id": "wine_1", "query": "select avg(price) from wine", "query_toks": ["select", "avg", "(", "price", ")", "from", "wine"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "wine"], "question": "What is the average price for wines?", "question_toks": ["What", "is", "the", "average", "price", "for", "wines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6596", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0262", "db_id": "geo", "query": "select state_name from state", "query_toks": ["select", "state_name", "from", "state"], "query_toks_no_value": ["select", "state_name", "from", "state"], "question": "name all states", "question_toks": ["name", "all", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0204", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0263", "db_id": "customers_and_invoices", "query": "select count(*) from products where product_id not in ( select product_id from order_items )", "query_toks": ["select", "count", "(*)", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "order_items", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "order_items", ")"], "question": "Count the number of products that were never ordered.", "question_toks": ["Count", "the", "number", "of", "products", "that", "were", "never", "ordered", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1628", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0264", "db_id": "riding_club", "query": "select player_name from player", "query_toks": ["select", "player_name", "from", "player"], "query_toks_no_value": ["select", "player_name", "from", "player"], "question": "List the names of players.", "question_toks": ["List", "the", "names", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1732", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0265", "db_id": "storm_record", "query": "select region_name from region", "query_toks": ["select", "region_name", "from", "region"], "query_toks_no_value": ["select", "region_name", "from", "region"], "question": "Show the name for regions.", "question_toks": ["Show", "the", "name", "for", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2710", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0266", "db_id": "storm_record", "query": "select region_name from region", "query_toks": ["select", "region_name", "from", "region"], "query_toks_no_value": ["select", "region_name", "from", "region"], "question": "What are the names of regions?", "question_toks": ["What", "are", "the", "names", "of", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2711", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0267", "db_id": "world_1", "query": "select sum(population) from country", "query_toks": ["select", "sum", "(", "population", ")", "from", "country"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "country"], "question": "What is the total number of people living in the nations?", "question_toks": ["What", "is", "the", "total", "number", "of", "people", "living", "in", "the", "nations", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0766", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0268", "db_id": "machine_repair", "query": "select name from technician", "query_toks": ["select", "name", "from", "technician"], "query_toks_no_value": ["select", "name", "from", "technician"], "question": "List the names of technicians.", "question_toks": ["List", "the", "names", "of", "technicians", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2259", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0269", "db_id": "machine_repair", "query": "select name from technician", "query_toks": ["select", "name", "from", "technician"], "query_toks_no_value": ["select", "name", "from", "technician"], "question": "What are the names of the technicians?", "question_toks": ["What", "are", "the", "names", "of", "the", "technicians", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2260", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0270", "db_id": "cre_Docs_and_Epenses", "query": "select count(*) from documents ", "query_toks": ["select", "count", "(*)", "from", "documents"], "query_toks_no_value": ["select", "count", "(*)", "from", "documents"], "question": "Count the number of documents.", "question_toks": ["Count", "the", "number", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6464", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0271", "db_id": "customers_and_invoices", "query": "select count(*) from customers", "query_toks": ["select", "count", "(*)", "from", "customers"], "query_toks_no_value": ["select", "count", "(*)", "from", "customers"], "question": "Count the number of customers.", "question_toks": ["Count", "the", "number", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1560", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0272", "db_id": "film_rank", "query": "select title , director from film", "query_toks": ["select", "title", ",", "director", "from", "film"], "query_toks_no_value": ["select", "title", ",", "director", "from", "film"], "question": "What are the titles and directors of the films?", "question_toks": ["What", "are", "the", "titles", "and", "directors", "of", "the", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4158", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0273", "db_id": "film_rank", "query": "select title , director from film", "query_toks": ["select", "title", ",", "director", "from", "film"], "query_toks_no_value": ["select", "title", ",", "director", "from", "film"], "question": "Return the titles and directors of films.", "question_toks": ["Return", "the", "titles", "and", "directors", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4159", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0274", "db_id": "student_assessment", "query": "select student_id from students", "query_toks": ["select", "student_id", "from", "students"], "query_toks_no_value": ["select", "student_id", "from", "students"], "question": "List the id of students?", "question_toks": ["List", "the", "id", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0062", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0275", "db_id": "student_assessment", "query": "select student_id from students", "query_toks": ["select", "student_id", "from", "students"], "query_toks_no_value": ["select", "student_id", "from", "students"], "question": "What are the ids of every student?", "question_toks": ["What", "are", "the", "ids", "of", "every", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0063", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0276", "db_id": "sakila_1", "query": "select first_name from customer", "query_toks": ["select", "first_name", "from", "customer"], "query_toks_no_value": ["select", "first_name", "from", "customer"], "question": "Return the first names of customers", "question_toks": ["Return", "the", "first", "names", "of", "customers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3005", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0277", "db_id": "school_bus", "query": "select school , type from school", "query_toks": ["select", "school", ",", "type", "from", "school"], "query_toks_no_value": ["select", "school", ",", "type", "from", "school"], "question": "Show the school name and type for schools.", "question_toks": ["Show", "the", "school", "name", "and", "type", "for", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6361", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0278", "db_id": "orchestra", "query": "select orchestra from orchestra", "query_toks": ["select", "orchestra", "from", "orchestra"], "query_toks_no_value": ["select", "orchestra", "from", "orchestra"], "question": "List the names of orchestras.", "question_toks": ["List", "the", "names", "of", "orchestras", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0854", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0279", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country", "query_toks": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country"], "query_toks_no_value": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country"], "question": "What is average life expectancy in the countries?", "question_toks": ["What", "is", "average", "life", "expectancy", "in", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0764", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0280", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country", "query_toks": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country"], "query_toks_no_value": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country"], "question": "Give the mean life expectancy of countries.", "question_toks": ["Give", "the", "mean", "life", "expectancy", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0765", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0281", "db_id": "customer_complaints", "query": "select product_price from products", "query_toks": ["select", "product_price", "from", "products"], "query_toks_no_value": ["select", "product_price", "from", "products"], "question": "Find the prices of products.", "question_toks": ["Find", "the", "prices", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5790", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0282", "db_id": "customer_complaints", "query": "select product_price from products", "query_toks": ["select", "product_price", "from", "products"], "query_toks_no_value": ["select", "product_price", "from", "products"], "question": "What are the prices of products?", "question_toks": ["What", "are", "the", "prices", "of", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5791", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0283", "db_id": "loan_1", "query": "select avg(credit_score) from customer", "query_toks": ["select", "avg", "(", "credit_score", ")", "from", "customer"], "query_toks_no_value": ["select", "avg", "(", "credit_score", ")", "from", "customer"], "question": "What is the average credit score for customers?", "question_toks": ["What", "is", "the", "average", "credit", "score", "for", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3085", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0284", "db_id": "manufactory_1", "query": "select count(distinct name) from products", "query_toks": ["select", "count", "(", "distinct", "name", ")", "from", "products"], "query_toks_no_value": ["select", "count", "(", "distinct", "name", ")", "from", "products"], "question": "Find number of products.", "question_toks": ["Find", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 7, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5316", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0285", "db_id": "student_transcripts_tracking", "query": "select semester_name from semesters", "query_toks": ["select", "semester_name", "from", "semesters"], "query_toks_no_value": ["select", "semester_name", "from", "semesters"], "question": "What is the name of the semester?", "question_toks": ["What", "is", "the", "name", "of", "the", "semester", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0544", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0286", "db_id": "tracking_grants_for_research", "query": "select project_details from projects", "query_toks": ["select", "project_details", "from", "projects"], "query_toks_no_value": ["select", "project_details", "from", "projects"], "question": "List the project details.", "question_toks": ["List", "the", "project", "details", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4358", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0287", "db_id": "tracking_grants_for_research", "query": "select project_details from projects", "query_toks": ["select", "project_details", "from", "projects"], "query_toks_no_value": ["select", "project_details", "from", "projects"], "question": "What are the details of the project?", "question_toks": ["What", "are", "the", "details", "of", "the", "project", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4359", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0288", "db_id": "election_representative", "query": "select name from representative", "query_toks": ["select", "name", "from", "representative"], "query_toks_no_value": ["select", "name", "from", "representative"], "question": "List the names of representatives.", "question_toks": ["List", "the", "names", "of", "representatives", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1191", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0289", "db_id": "bike_1", "query": "select avg(bikes_available) from status", "query_toks": ["select", "avg", "(", "bikes_available", ")", "from", "status"], "query_toks_no_value": ["select", "avg", "(", "bikes_available", ")", "from", "status"], "question": "What is the average bike availability in stations?", "question_toks": ["What", "is", "the", "average", "bike", "availability", "in", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0149", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0290", "db_id": "bike_1", "query": "select avg(bikes_available) from status", "query_toks": ["select", "avg", "(", "bikes_available", ")", "from", "status"], "query_toks_no_value": ["select", "avg", "(", "bikes_available", ")", "from", "status"], "question": "What is the average bike availablility for stations?", "question_toks": ["What", "is", "the", "average", "bike", "availablility", "for", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0150", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0291", "db_id": "network_2", "query": "select count(distinct name) from personfriend", "query_toks": ["select", "count", "(", "distinct", "name", ")", "from", "personfriend"], "query_toks_no_value": ["select", "count", "(", "distinct", "name", ")", "from", "personfriend"], "question": "What is the total number of people.", "question_toks": ["What", "is", "the", "total", "number", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4480", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0292", "db_id": "gas_company", "query": "select company , main_industry from company", "query_toks": ["select", "company", ",", "main_industry", "from", "company"], "query_toks_no_value": ["select", "company", ",", "main_industry", "from", "company"], "question": "What are the main industries of the companies?", "question_toks": ["What", "are", "the", "main", "industries", "of", "the", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2026", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0293", "db_id": "customer_complaints", "query": "select email_address , phone_number from customers", "query_toks": ["select", "email_address", ",", "phone_number", "from", "customers"], "query_toks_no_value": ["select", "email_address", ",", "phone_number", "from", "customers"], "question": "Find the email and phone number of the customers.", "question_toks": ["Find", "the", "email", "and", "phone", "number", "of", "the", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5782", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0294", "db_id": "customer_complaints", "query": "select email_address , phone_number from customers", "query_toks": ["select", "email_address", ",", "phone_number", "from", "customers"], "query_toks_no_value": ["select", "email_address", ",", "phone_number", "from", "customers"], "question": "What are the emails and phone numbers of custoemrs?", "question_toks": ["What", "are", "the", "emails", "and", "phone", "numbers", "of", "custoemrs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5783", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0295", "db_id": "customers_and_products_contacts", "query": "select customer_name , customer_phone from customers", "query_toks": ["select", "customer_name", ",", "customer_phone", "from", "customers"], "query_toks_no_value": ["select", "customer_name", ",", "customer_phone", "from", "customers"], "question": "Show names and phones of customers.", "question_toks": ["Show", "names", "and", "phones", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5656", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0296", "db_id": "assets_maintenance", "query": "select first_name , last_name from maintenance_engineers", "query_toks": ["select", "first_name", ",", "last_name", "from", "maintenance_engineers"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "maintenance_engineers"], "question": "List the engineer first name and last name.", "question_toks": ["List", "the", "engineer", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3140", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0297", "db_id": "dorm_1", "query": "select fname , age from student", "query_toks": ["select", "fname", ",", "age", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "age", "from", "student"], "question": "Find the first name and age of students.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5764", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0298", "db_id": "world_1", "query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = \"europe\"", "query_toks": ["select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "``", "europe", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "value"], "question": "Which cities are in European countries?", "question_toks": ["Which", "cities", "are", "in", "European", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0784", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0299", "db_id": "world_1", "query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = \"europe\"", "query_toks": ["select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "``", "europe", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "value"], "question": "What are the names of cities in Europe?", "question_toks": ["What", "are", "the", "names", "of", "cities", "in", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0785", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0300", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the first name and age of students who have a dog.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0065", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0301", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What is the first name of every student who has a dog?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0066", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0302", "db_id": "activity_1", "query": "select facid from faculty_participates_in intersect select advisor from student", "query_toks": ["select", "facid", "from", "faculty_participates_in", "intersect", "select", "advisor", "from", "student"], "query_toks_no_value": ["select", "facid", "from", "faculty_participates_in", "intersect", "select", "advisor", "from", "student"], "question": "What are ids of the faculty members who advise a student.", "question_toks": ["What", "are", "ids", "of", "the", "faculty", "members", "who", "advise", "a", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6774", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_REDUNDANT"]}, {"id": "negation_0303", "db_id": "car_1", "query": "select distinct year from cars_data", "query_toks": ["select", "distinct", "year", "from", "cars_data"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data"], "question": "In which years cars were produced?", "question_toks": ["In", "which", "years", "cars", "were", "produced", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0153", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0304", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "value", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")"], "question": "Consder the cars with more than lowest horsepower. List the car makeid and make name.", "question_toks": ["Consder", "the", "cars", "with", "more", "than", "lowest", "horsepower", ".", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0167", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0305", "db_id": "chinook_1", "query": "select t1.lastname from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid", "query_toks": ["select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid"], "query_toks_no_value": ["select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid"], "question": "Please show the employee last names.", "question_toks": ["Please", "show", "the", "employee", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0871", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0306", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = \"photo\" intersect select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = \"film\"", "query_toks": ["select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "``", "photo", "''", "intersect", "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "``", "film", "''"], "query_toks_no_value": ["select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value", "intersect", "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value"], "question": "Give me the description of the service type that offers photo product and the film product.", "question_toks": ["Give", "me", "the", "description", "of", "the", "service", "type", "that", "offers", "photo", "product", "and", "the", "film", "product", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 15]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 85, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 88, false], null], "\"photo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 15]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 85, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 88, false], null], "\"film\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5171", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_REDUNDANT"]}, {"id": "negation_0307", "db_id": "document_management", "query": "select document_type_code from documents group by document_type_code", "query_toks": ["select", "document_type_code", "from", "documents", "group", "by", "document_type_code"], "query_toks_no_value": ["select", "document_type_code", "from", "documents", "group", "by", "document_type_code"], "question": "Return the codes of the document types.", "question_toks": ["Return", "the", "codes", "of", "the", "document", "types", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4516", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OPPOSITE"]}, {"id": "negation_0308", "db_id": "hr_1", "query": "select hire_date from employees", "query_toks": ["select", "hire_date", "from", "employees"], "query_toks_no_value": ["select", "hire_date", "from", "employees"], "question": "when is the hire date for employees?", "question_toks": ["when", "is", "the", "hire", "date", "for", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3415", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0309", "db_id": "hr_1", "query": "select hire_date from employees", "query_toks": ["select", "hire_date", "from", "employees"], "query_toks_no_value": ["select", "hire_date", "from", "employees"], "question": "On what dates were employees hired?", "question_toks": ["On", "what", "dates", "were", "employees", "hired", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3416", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0310", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name like \"%m%\"", "query_toks": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "like", "\"%", "m", "%\""], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "like", "\"%", "m", "%\""], "question": "display the full name (first and last), hire date, salary, and department number for those employees whose first name does containing the letter M.", "question_toks": ["display", "the", "full", "name", "(", "first", "and", "last", "),", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employees", "whose", "first", "name", "does", "containing", "the", "letter", "M", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%m%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3417", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0311", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees ", "query_toks": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees"], "question": "What are the full name, hire date, salary, and department id for all employees?", "question_toks": ["What", "are", "the", "full", "name", ",", "hire", "date", ",", "salary", ",", "and", "department", "id", "for", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3418", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0312", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees order by department_id", "query_toks": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "order", "by", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "order", "by", "department_id"], "question": "display the full name (first and last), hire date, salary, and department number for employees and make the result set in ascending order by department number.", "question_toks": ["display", "the", "full", "name", "(", "first", "and", "last", "),", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "employees", "and", "make", "the", "result", "set", "in", "ascending", "order", "by", "department", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3419", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0313", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees order by department_id", "query_toks": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "order", "by", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "order", "by", "department_id"], "question": "What are the full name, hire data, salary and department id for employees ordered by ascending department id?", "question_toks": ["What", "are", "the", "full", "name", ",", "hire", "data", ",", "salary", "and", "department", "id", "for", "employees", "ordered", "by", "ascending", "department", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3420", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0314", "db_id": "hr_1", "query": "select first_name , last_name , salary from employees", "query_toks": ["select", "first_name", ",", "last_name", ",", "salary", "from", "employees"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", "from", "employees"], "question": "Return the full names and salaries of all employees.", "question_toks": ["Return", "the", "full", "names", "and", "salaries", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3426", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0315", "db_id": "hr_1", "query": "select email from employees where salary between 7000 and 12000 and department_id = 50", "query_toks": ["select", "email", "from", "employees", "where", "salary", "between", "7000", "and", "12000", "and", "department_id", "=", "50"], "query_toks_no_value": ["select", "email", "from", "employees", "where", "salary", "between", "7000", "and", "12000", "and", "department_id", "=", "value"], "question": "display the emails of the employees who have salary within the range 7000 to 12000 and works in that department which number is 50.", "question_toks": ["display", "the", "emails", "of", "the", "employees", "who", "have", "salary", "within", "the", "range", "7000", "to", "12000", "and", "works", "in", "that", "department", "which", "number", "is", "50", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 7000.0, 12000.0], "and", [false, 2, [0, [0, 24, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3445", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0316", "db_id": "hr_1", "query": "select email from employees where salary between 7000 and 12000 and department_id = 50", "query_toks": ["select", "email", "from", "employees", "where", "salary", "between", "7000", "and", "12000", "and", "department_id", "=", "50"], "query_toks_no_value": ["select", "email", "from", "employees", "where", "salary", "between", "7000", "and", "12000", "and", "department_id", "=", "value"], "question": "What are the emails of employees with salary between 7000 and 12000, and who work in department 50?", "question_toks": ["What", "are", "the", "emails", "of", "employees", "with", "salary", "between", "7000", "and", "12000", ",", "and", "who", "work", "in", "department", "50", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 7000.0, 12000.0], "and", [false, 2, [0, [0, 24, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3446", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0317", "db_id": "insurance_policies", "query": "select date_claim_made from claims", "query_toks": ["select", "date_claim_made", "from", "claims"], "query_toks_no_value": ["select", "date_claim_made", "from", "claims"], "question": "Return the claim start date for the claims", "question_toks": ["Return", "the", "claim", "start", "date", "for", "the", "claims"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3863", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0318", "db_id": "museum_visit", "query": "select avg(age) from visitor", "query_toks": ["select", "avg", "(", "age", ")", "from", "visitor"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "visitor"], "question": "What is the average age of the visitors?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "visitors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0413", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0319", "db_id": "music_4", "query": "select famous_title from artist", "query_toks": ["select", "famous_title", "from", "artist"], "query_toks_no_value": ["select", "famous_title", "from", "artist"], "question": "What are the famous titles of artists?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6192", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0320", "db_id": "phone_1", "query": "select count(*) from chip_model", "query_toks": ["select", "count", "(*)", "from", "chip_model"], "query_toks_no_value": ["select", "count", "(*)", "from", "chip_model"], "question": "Count the number of chip model.", "question_toks": ["Count", "the", "number", "of", "chip", "model", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1047", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "and_in_nl_0000", "db_id": "battle_death", "query": "select name from battle where bulgarian_commander = \"kaloyan\"", "query_toks": ["select", "name", "from", "battle", "where", "bulgarian_commander", "=", "``", "kaloyan", "''"], "query_toks_no_value": ["select", "name", "from", "battle", "where", "bulgarian_commander", "=", "value"], "question": "What are the distinct battle names which are between bulgarian commander 'Kaloyan'?", "question_toks": ["What", "are", "the", "distinct", "battle", "names", "which", "are", "between", "bulgarian", "commander", "'", "Kaloyan", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"kaloyan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0501", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0001", "db_id": "battle_death", "query": "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "date", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "name", "=", "value", "atalanta"], "question": "List the name and date the battle that has lost the ship named 'HMS Atalanta'", "question_toks": ["List", "the", "name", "and", "date", "the", "battle", "that", "has", "lost", "the", "ship", "named", "'", "HMS", "Atalanta", "'"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"hms atalanta\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0504", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0002", "db_id": "car_1", "query": "select distinct year from cars_data where weight >= 3000", "query_toks": ["select", "distinct", "year", "from", "cars_data", "where", "weight", ">=", "3000"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data", "where", "weight", ">=", "value"], "question": "In which years cars were produced weighing no less than 3000?", "question_toks": ["In", "which", "years", "cars", "were", "produced", "weighing", "no", "less", "than", "3000", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 5, [0, [0, 21, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0153", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0003", "db_id": "car_1", "query": "select distinct year from cars_data where weight < 4000", "query_toks": ["select", "distinct", "year", "from", "cars_data", "where", "weight", ">=", "4000"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data", "where", "weight", ">=", "value"], "question": "What are the different years in which there were cars produced that weighed less than 4000 ?", "question_toks": ["What", "are", "the", "different", "years", "in", "which", "there", "were", "cars", "produced", "that", "weighed", "less", "than", "4000", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 5, [0, [0, 21, false], null], 4000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0154", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0004", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "value", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<=", "value"], "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid name.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "lowest", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0167", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0005", "db_id": "car_1", "query": "select 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", "query_toks": ["select", "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"], "query_toks_no_value": ["select", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "value", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<", "value"], "question": "Among the cars that do not have the minimum horsepower , what are the make names of all those with less than 4 cylinders ?", "question_toks": ["Among", "the", "cars", "that", "do", "not", "have", "the", "minimum", "horsepower", ",", "what", "are", "the", "make", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0168", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0006", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "question_toks": ["Which", "are", "the", "car", "makers", "which", "produce", "at", "least", "2", "models", "and", "more", "than", "3", "car", "makers", "?", "List", "the", "id", "and", "the", "maker", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0175", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0007", "db_id": "car_1", "query": "select 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", "query_toks": ["select", "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"], "query_toks_no_value": ["select", "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"], "question": "What are the makers of all car makers that make more than 3 cars?", "question_toks": ["What", "are", "the", "makers", "of", "all", "car", "makers", "that", "make", "more", "than", "3", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0176", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0008", "db_id": "car_1", "query": "select 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.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\"", "query_toks": ["select", "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", ".", "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", "''"], "query_toks_no_value": ["select", "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", ".", "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", "=", "value"], "question": "What are the names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'", "fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0009", "db_id": "car_1", "query": "select t1.countryid 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 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\"", "query_toks": ["select", "t1", ".", "countryid", "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", "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", "''"], "query_toks_no_value": ["select", "t1", ".", "countryid", "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", "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", "=", "value"], "question": "What are the ids of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0010", "db_id": "concert_singer", "query": "select location from stadium where capacity < 10000", "query_toks": ["select", "location", "from", "stadium", "where", "capacity", "<", "10000"], "query_toks_no_value": ["select", "location", "from", "stadium", "where", "capacity", "<", "value"], "question": "Show location for all stadiums with a capacity less than 10000.", "question_toks": ["Show", "location", "for", "all", "stadiums", "with", "a", "capacity", "less", "than", "10000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 10000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0014", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0011", "db_id": "concert_singer", "query": "select name from stadium where capacity > 5000", "query_toks": ["select", "name", "from", "stadium", "where", "capacity", ">", "5000"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "capacity", ">", "value"], "question": "What are the names of all stations with capacity greater than 5000?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "with", "capacity", "greater", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 5000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0015", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0012", "db_id": "concert_singer", "query": "select country from singer where age > 40", "query_toks": ["select", "country", "from", "singer", "where", "age", ">", "40"], "query_toks_no_value": ["select", "country", "from", "singer", "where", "age", ">", "value"], "question": "Show countries where a singer above age 40.", "question_toks": ["Show", "countries", "where", "a", "singer", "above", "age", "40", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0030", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0013", "db_id": "concert_singer", "query": "select country from singer where song_name like \"%hey%\"", "query_toks": ["select", "country", "from", "singer", "where", "song_name", "like", "\"%", "hey", "%\""], "query_toks_no_value": ["select", "country", "from", "singer", "where", "song_name", "like", "\"%", "hey", "%\""], "question": "what is the nation of the singer who have a song having 'Hey' in its name?", "question_toks": ["what", "is", "the", "nation", "of", "the", "singer", "who", "have", "a", "song", "having", "'", "Hey", "'", "in", "its", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0039", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0014", "db_id": "concert_singer", "query": "select name from singer where song_name like \"%hey%\"", "query_toks": ["select", "name", "from", "singer", "where", "song_name", "like", "\"%", "hey", "%\""], "query_toks_no_value": ["select", "name", "from", "singer", "where", "song_name", "like", "\"%", "hey", "%\""], "question": "What is the name of origin of every singer who has a song with the word 'Hey' in its title?", "question_toks": ["What", "is", "the", "name", "of", "origin", "of", "every", "singer", "who", "has", "a", "song", "with", "the", "word", "'", "Hey", "'", "in", "its", "title", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0040", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0015", "db_id": "concert_singer", "query": "select t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014 ", "query_toks": ["select", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "2014"], "query_toks_no_value": ["select", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value"], "question": "Find the location of the stadiums which some concerts happened in the 2014.", "question_toks": ["Find", "the", "location", "of", "the", "stadiums", "which", "some", "concerts", "happened", "in", "the", "2014", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0041", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0016", "db_id": "concert_singer", "query": "select t2.name from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2015", "query_toks": ["select", "t2", ".", "name", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "2015"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value"], "question": "What are the names of the stadiums that had concerts that occurred in 2015?", "question_toks": ["What", "are", "the", "names", "of", "the", "stadiums", "that", "had", "concerts", "that", "occurred", "in", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0042", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0017", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name from documents where document_description like \"%w%\"", "query_toks": ["select", "document_name", "from", "documents", "where", "document_description", "like", "\"%", "w", "%\""], "query_toks_no_value": ["select", "document_name", "from", "documents", "where", "document_description", "like", "\"%", "w", "%\""], "question": "What is the document name for document with description with the letter 'w' in it?", "question_toks": ["What", "is", "the", "document", "name", "for", "document", "with", "description", "with", "the", "letter", "'", "w", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%w%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0301", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0018", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name from documents where document_description like \"%w%\"", "query_toks": ["select", "document_name", "from", "documents", "where", "document_description", "like", "\"%", "w", "%\""], "query_toks_no_value": ["select", "document_name", "from", "documents", "where", "document_description", "like", "\"%", "w", "%\""], "question": "Return the names for documents that contain the letter w in their description.", "question_toks": ["Return", "the", "names", "for", "documents", "that", "contain", "the", "letter", "w", "in", "their", "description", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%w%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0302", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0019", "db_id": "dog_kennels", "query": "select state from owners", "query_toks": ["select", "state", "from", "owners"], "query_toks_no_value": ["select", "state", "from", "owners"], "question": "Which states have owners living there?", "question_toks": ["Which", "states", "have", "both", "owners", "living", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0918", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0020", "db_id": "dog_kennels", "query": "select state from professionals", "query_toks": ["select", "state", "from", "professionals"], "query_toks_no_value": ["select", "state", "from", "professionals"], "question": "Find the states where professionals live.", "question_toks": ["Find", "the", "states", "where", "professionals", "live", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0919", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0021", "db_id": "dog_kennels", "query": "select professional_id from professionals where state = \"indiana\" union select t1.professional_id from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) > 2", "query_toks": ["select", "professional_id", "from", "professionals", "where", "state", "=", "``", "indiana", "''", "union", "select", "t1", ".", "professional_id", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(*)", ">", "2"], "query_toks_no_value": ["select", "professional_id", "from", "professionals", "where", "state", "=", "value", "union", "select", "t1", ".", "professional_id", "from", "professionals", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "professional_id", "=", "t2", ".", "professional_id", "group", "by", "t1", ".", "professional_id", "having", "count", "(*)", ">", "2"], "question": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "or", "have", "done", "treatment", "on", "more", "than", "2", "treatments", "?", "List", "his", "or", "her", "id", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0922", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0022", "db_id": "employee_hire_evaluation", "query": "select district from shop where number_products < 3000", "query_toks": ["select", "district", "from", "shop", "where", "number_products", "<", "3000"], "query_toks_no_value": ["select", "district", "from", "shop", "where", "number_products", "<", "value"], "question": "Which district has stores with less than 3000 products?", "question_toks": ["Which", "district", "has", "both", "stores", "with", "less", "than", "3000", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0293", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0023", "db_id": "flight_2", "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 t3.city = \"aberdeen\"", "query_toks": ["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", "t3", ".", "city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["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", "t3", ".", "city", "=", "value"], "question": "How many flights depart from City 'Aberdeen'?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "'", "Aberdeen", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0211", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0024", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"apg\"", "query_toks": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "``", "apg", "''"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"], "question": "Find all airlines that have flights from both airports 'APG'.", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "both", "airports", "'", "APG", "'."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"apg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0237", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0025", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "<", "value"], "question": "What is the name of the visitor who visited both a museum opened before 2009?", "question_toks": ["What", "is", "the", "name", "of", "the", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0426", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0026", "db_id": "network_1", "query": "select student_id from friend", "query_toks": ["select", "student_id", "from", "friend"], "query_toks_no_value": ["select", "student_id", "from", "friend"], "question": "Show the ids of high schoolers who have friends", "question_toks": ["Show", "the", "ids", "of", "high", "schoolers", "who", "have", "friends"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0898", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0027", "db_id": "network_1", "query": "select student_id from friend", "query_toks": ["select", "student_id", "from", "friend"], "query_toks_no_value": ["select", "student_id", "from", "friend"], "question": "What are the ids of students who have friends?", "question_toks": ["What", "are", "the", "ids", "of", "students", "who", "have", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0899", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0028", "db_id": "orchestra", "query": "select record_company from orchestra where year_of_founded < 2003", "query_toks": ["select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "2003"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value"], "question": "Show the record companies shared by orchestras founded before 2003.", "question_toks": ["Show", "the", "record", "companies", "shared", "by", "orchestras", "founded", "before", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0856", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0029", "db_id": "orchestra", "query": "select record_company from orchestra where year_of_founded < 2003", "query_toks": ["select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "2003"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value"], "question": "What are the record companies that are used by orchestras founded before 2003?", "question_toks": ["What", "are", "the", "record", "companies", "that", "are", "used", "by", "both", "orchestras", "founded", "before", "2003", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0857", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0030", "db_id": "pets_1", "query": "select 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\")", "query_toks": ["select", "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", "\")"], "query_toks_no_value": ["select", "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", "=", "value", "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", "=", "value", "\")"], "question": "Find the age of students who have a dog but do not have a cat as a pet.", "question_toks": ["Find", "the", "age", "of", "students", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "as", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0065", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0031", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the first name of students who have cat pets .", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "both", "cat", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0059", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0032", "db_id": "pets_1", "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 = \"dog\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the students' first names who have dogs as pets?", "question_toks": ["What", "are", "the", "students", "'", "first", "names", "who", "have", "dogs", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0060", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0033", "db_id": "pets_1", "query": "select major 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\")", "query_toks": ["select", "major", "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", "\")"], "query_toks_no_value": ["select", "major", "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", "=", "value", "\")"], "question": "Find the major of students who do not have a cat pet.", "question_toks": ["Find", "the", "major", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0061", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0034", "db_id": "pets_1", "query": "select major 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\")", "query_toks": ["select", "major", "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", "\")"], "query_toks_no_value": ["select", "major", "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", "=", "value", "\")"], "question": "What major is every student who does not own a cat as a pet?", "question_toks": ["What", "major", "is", "every", "student", "who", "does", "not", "own", "a", "cat", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0062", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0035", "db_id": "singer", "query": "select citizenship from singer where birth_year < 1945", "query_toks": ["select", "citizenship", "from", "singer", "where", "birth_year", "<", "1945"], "query_toks_no_value": ["select", "citizenship", "from", "singer", "where", "birth_year", "<", "value"], "question": "Show the citizenship shared by singers with birth year before 1945.", "question_toks": ["Show", "the", "citizenship", "shared", "by", "singers", "with", "birth", "year", "before", "1945", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 1945.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1028", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0036", "db_id": "singer", "query": "select citizenship from singer where birth_year > 1955", "query_toks": ["select", "citizenship", "from", "singer", "where", "birth_year", ">", "1955"], "query_toks_no_value": ["select", "citizenship", "from", "singer", "where", "birth_year", ">", "value"], "question": "What are the citizenships that are shared by singers with a birth year after 1955?", "question_toks": ["What", "are", "the", "citizenships", "that", "are", "shared", "by", "singers", "with", "a", "birth", "year", "after", "1955", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 1955.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1029", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0037", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = \"timmothy\"", "query_toks": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "``", "timmothy", "''"], "query_toks_no_value": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value"], "question": "What is the phone number of the man with the first name Timmothy?", "question_toks": ["What", "is", "the", "phone", "number", "of", "the", "man", "with", "the", "first", "name", "Timmothy", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"timmothy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0553", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0038", "db_id": "student_transcripts_tracking", "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\" ", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the semester when both Master students got enrolled in.", "question_toks": ["Find", "the", "semester", "when", "both", "Master", "students", "got", "enrolled", "in", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"master\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0575", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0039", "db_id": "student_transcripts_tracking", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What is the id of the semester that had both Masters students enrolled?", "question_toks": ["What", "is", "the", "id", "of", "the", "semester", "that", "had", "both", "Masters", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"master\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0576", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0040", "db_id": "tvshow", "query": "select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = \"michael chang\"", "query_toks": ["select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "``", "michael", "chang", "''"], "query_toks_no_value": ["select", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value", "chang"], "question": "Find the series country of the tv channel that is playing some cartoons directed by Michael Chang?", "question_toks": ["Find", "the", "series", "country", "of", "the", "tv", "channel", "that", "is", "playing", "some", "cartoons", "directed", "by", "Michael", "Chang", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"michael chang\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0637", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0041", "db_id": "tvshow", "query": "select t1.series_name from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = \"michael chang\" ", "query_toks": ["select", "t1", ".", "series_name", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "``", "michael", "chang", "''"], "query_toks_no_value": ["select", "t1", ".", "series_name", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value", "chang"], "question": "What is the series name of all TV channels that are playing cartoons directed by Michael Chang?", "question_toks": ["What", "is", "the", "series", "name", "of", "all", "TV", "channels", "that", "are", "playing", "cartoons", "directed", "by", "Michael", "Chang", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"michael chang\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0638", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0042", "db_id": "voter_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "gehling"], "question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling'.", "question_toks": ["List", "the", "area", "codes", "in", "which", "voters", "voted", "both", "for", "the", "contestant", "'", "Tabatha", "Gehling", "'."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"tabatha gehling\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0700", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0043", "db_id": "world_1", "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\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "t2", ".", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What are the names of nations where both English?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0748", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0044", "db_id": "world_1", "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\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "t2", ".", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "Give the names of countries with English as official languages.", "question_toks": ["Give", "the", "names", "of", "countries", "with", "English", "as", "official", "languages", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0749", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0045", "db_id": "world_1", "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 t1.continent = \"asia\"", "query_toks": ["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", "t1", ".", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "t1", ".", "continent", "=", "value"], "question": "Return the different names of cities that are in Asia.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0787", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0046", "db_id": "world_1", "query": "select name from country where continent = \"europe\"", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "europe", "''"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value"], "question": "What are the names of the countries that are in the continent of Europe?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "that", "are", "in", "the", "continent", "of", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0808", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0047", "db_id": "world_1", "query": "select name from country where population = \"80000\"", "query_toks": ["select", "name", "from", "country", "where", "population", "=", "``", "80000", "''"], "query_toks_no_value": ["select", "name", "from", "country", "where", "population", "=", "value"], "question": "Give the names of countries that have a population equal to 80000.", "question_toks": ["Give", "the", "names", "of", "countries", "that", "have", "a", "population", "equal", "to", "80000", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"80000\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0809", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0048", "db_id": "world_1", "query": "select sum(population) from country where continent = \"north america\" ", "query_toks": ["select", "sum", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "north", "america", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "america"], "question": "What is the total population of countries in the continent of North America?", "question_toks": ["What", "is", "the", "total", "population", "of", "countries", "in", "the", "continent", "of", "North", "America", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0810", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0049", "db_id": "world_1", "query": "select avg(surfacearea) from country where continent = \"north america\"", "query_toks": ["select", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "north", "america", "''"], "query_toks_no_value": ["select", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "america"], "question": "Give the average surface area corresponding to countries in North America.", "question_toks": ["Give", "the", "average", "surface", "area", "corresponding", "to", "countries", "in", "North", "America", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0811", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0050", "db_id": "world_1", "query": "select name from city where population < 900000", "query_toks": ["select", "name", "from", "city", "where", "population", "<", "900000"], "query_toks_no_value": ["select", "name", "from", "city", "where", "population", "<", "value"], "question": "What are the cities whose population is less than 900000?", "question_toks": ["What", "are", "the", "cities", "whose", "population", "is", "less", "than", "900000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 900000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0812", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0051", "db_id": "world_1", "query": "select name from city where population < 900000", "query_toks": ["select", "name", "from", "city", "where", "population", "<", "900000"], "query_toks_no_value": ["select", "name", "from", "city", "where", "population", "<", "value"], "question": "Return the names of cities that have a population less than 900000 .", "question_toks": ["Return", "the", "names", "of", "cities", "that", "have", "a", "population", "less", "than", "900000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 900000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0813", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0052", "db_id": "world_1", "query": "select count(*) from countrylanguage where language like 'dutch';", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "How many countries speak Dutch?", "question_toks": ["How", "many", "countries", "speak", "Dutch", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0744", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0053", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"french\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "french", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "Give the names of nations that speak French.", "question_toks": ["Give", "the", "names", "of", "nations", "that", "speak", "French", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0747", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0054", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = \"wta championships\"", "query_toks": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "``", "wta", "championships", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "championships"], "question": "How many different winners participated in the WTA Championships?", "question_toks": ["How", "many", "different", "winners", "participated", "in", "the", "WTA", "Championships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"wta championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0485", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0055", "db_id": "wta_1", "query": "select winner_name from matches where year = 2016", "query_toks": ["select", "winner_name", "from", "matches", "where", "year", "=", "2016"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "year", "=", "value"], "question": "List the names of all winners who played in 2016.", "question_toks": ["List", "the", "names", "of", "all", "winners", "who", "played", "in", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0447", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0056", "db_id": "wta_1", "query": "select winner_name from matches where year = 2013", "query_toks": ["select", "winner_name", "from", "matches", "where", "year", "=", "2013"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "year", "=", "value"], "question": "What are the names of players who won in 2013?", "question_toks": ["What", "are", "the", "names", "of", "players", "who", "won", "in", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0448", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0057", "db_id": "wta_1", "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 = \"australian open\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "open"], "question": "What are the country code and first name of the players who won in Australian Open?", "question_toks": ["What", "are", "the", "country", "code", "and", "first", "name", "of", "the", "players", "who", "won", "in", "Australian", "Open", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"australian open\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0451", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0058", "db_id": "wta_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "championships"], "question": "What are the first names and country codes for players who won the WTA Championships?", "question_toks": ["What", "are", "the", "first", "names", "and", "country", "codes", "for", "players", "who", "won", "both", "the", "WTA", "Championships", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"wta championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0452", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0059", "db_id": "allergy_1", "query": "select count(*) from student where age > 18", "query_toks": ["select", "count", "(*)", "from", "student", "where", "age", ">", "18"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "age", ">", "value"], "question": "Find the number of students who are older than 18.", "question_toks": ["Find", "the", "number", "of", "students", "who", "are", "older", "than", "18", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0533", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0060", "db_id": "allergy_1", "query": "select count(*) from student where stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\" or t2.allergytype = \"animal\")", "query_toks": ["select", "count", "(*)", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "``", "food", "''", "or", "t2", ".", "allergytype", "=", "``", "animal", "\")"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", "\")"], "question": "How many students do not have allergy to food type or animal type?", "question_toks": ["How", "many", "students", "do", "not", "have", "allergy", "to", "food", "type", "or", "animal", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0534", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0061", "db_id": "allergy_1", "query": "select lname from student where stuid in (select stuid from has_allergy where allergy = \"milk\")", "query_toks": ["select", "lname", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "``", "milk", "\")"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "\")"], "question": "Find the last name of the student who has allergy to both milk.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "allergy", "to", "both", "milk", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0519", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0062", "db_id": "dorm_1", "query": "select fname from student where age between 20 and 25", "query_toks": ["select", "fname", "from", "student", "where", "age", "between", "20", "and", "25"], "query_toks_no_value": ["select", "fname", "from", "student", "where", "age", "between", "20", "and", "25"], "question": "What is the first name of the students who are in age 20 to 25?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "students", "who", "are", "in", "age", "20", "to", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 20.0, 25.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5677", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0063", "db_id": "dorm_1", "query": "select lname from student where sex = 'f' or age < 20;", "query_toks": ["select", "lname", "from", "student", "where", "sex", "=", "``", "f", "''", "union", "select", "lname", "from", "student", "where", "age", "<", "20"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "sex", "=", "value", "union", "select", "lname", "from", "student", "where", "age", "<", "value"], "question": "Find the last name of students who is either female (sex is F) or in age of below 20.", "question_toks": ["Find", "the", "last", "name", "of", "students", "who", "is", "either", "female", "(", "sex", "is", "F", ")", "or", "in", "age", "of", "below", "20", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5706", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0064", "db_id": "dorm_1", "query": "select lname from student where city_code = 'bal' or sex = 'male';", "query_toks": ["select", "lname", "from", "student", "where", "city_code", "=", "``", "bal", "''", "union", "select", "lname", "from", "student", "where", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "city_code", "=", "value", "union", "select", "lname", "from", "student", "where", "sex", "=", "value"], "question": "What is the last name of every student who is either living in a city with the code BAL or male?", "question_toks": ["What", "is", "the", "last", "name", "of", "every", "student", "who", "is", "either", "living", "in", "a", "city", "with", "the", "code", "BAL", "or", "male", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"bal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_in_nl_0064", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0065", "db_id": "driving_school", "query": "select t1.zip_postcode from addresses as t1 join staff as t2 on t1.address_id = t2.staff_address_id where t2.first_name = \"janessa\"", "query_toks": ["select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "``", "janessa", "''"], "query_toks_no_value": ["select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value"], "question": "What is the zip code of staff with first name as Janessa lived?", "question_toks": ["What", "is", "the", "zip", "code", "of", "staff", "with", "first", "name", "as", "Janessa", "lived", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"janessa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6648", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0066", "db_id": "driving_school", "query": "select date_became_customer from customers where first_name = \"carole\"", "query_toks": ["select", "date_became_customer", "from", "customers", "where", "first_name", "=", "``", "carole", "''"], "query_toks_no_value": ["select", "date_became_customer", "from", "customers", "where", "first_name", "=", "value"], "question": "When did customer with first name as Carole became a customer?", "question_toks": ["When", "did", "customer", "with", "first", "name", "as", "Carole", "became", "a", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"carole\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6668", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0067", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.first_name = \"rylan\" and t1.lesson_status_code = \"completed\"", "query_toks": ["select", "count", "(*)", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "``", "rylan", "''", "and", "t1", ".", "lesson_status_code", "=", "``", "completed", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t1", ".", "lesson_status_code", "=", "value"], "question": "How many lessons taken by customer with first name as Rylan were completed?", "question_toks": ["How", "many", "lessons", "taken", "by", "customer", "with", "first", "name", "as", "Rylan", "were", "completed", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 18, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"rylan\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"completed\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6676", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0068", "db_id": "farm", "query": "select status from city where population > 1500", "query_toks": ["select", "status", "from", "city", "where", "population", ">", "1500"], "query_toks_no_value": ["select", "status", "from", "city", "where", "population", ">", "value"], "question": "Show the status shared by cities with population bigger than 1500.", "question_toks": ["Show", "the", "status", "shared", "by", "cities", "with", "population", "bigger", "than", "1500", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 1500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0050", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0069", "db_id": "farm", "query": "select status from city where population < 500", "query_toks": ["select", "status", "from", "city", "where", "population", "<", "500"], "query_toks_no_value": ["select", "status", "from", "city", "where", "population", "<", "value"], "question": "Which statuses correspond to cities that have a population lower than 500?", "question_toks": ["Which", "statuses", "correspond", "to", "both", "cities", "that", "have", "a", "population", "lower", "than", "500", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0051", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0070", "db_id": "formula_1", "query": "select circuitid from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["select", "circuitid", "from", "circuits", "where", "country", "=", "``", "france", "''", "or", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["select", "circuitid", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "Find the id of circuits that belong to France or Belgium?", "question_toks": ["Find", "the", "id", "of", "circuits", "that", "belong", "to", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2215", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0071", "db_id": "formula_1", "query": "select location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["select", "location", "from", "circuits", "where", "country", "=", "``", "france", "''", "or", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["select", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "What are locations of all circuits in France or Belgium?", "question_toks": ["What", "are", "locations", "of", "all", "circuits", "in", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2216", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0072", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "``", "david", "''", "and", "t2", ".", "lname", "=", "``", "shieber", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value"], "question": "Show total number of games played for student David Shieber.", "question_toks": ["Show", "total", "number", "of", "games", "played", "for", "student", "David", "Shieber", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6029", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0073", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\"", "query_toks": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "``", "peter", "mertens", "''"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "mertens"], "question": "papers written by authors Peter Mertens", "question_toks": ["papers", "written", "by", "authors", "Peter", "Mertens"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"peter mertens\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0574", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "datetime_0000", "db_id": "aircraft", "query": "select country from match", "query_toks": ["select", "country", "from", "match"], "query_toks_no_value": ["select", "country", "from", "match"], "question": "In which countries are aircraft matches held?", "question_toks": ["In", "which", "countries", "are", "aircraft", "matches", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0000", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0001", "db_id": "apartment_rentals", "query": "select distinct(apt_booking_id) from view_unit_status", "query_toks": ["select", "distinct", "(", "apt_booking_id", ")", "from", "view_unit_status"], "query_toks_no_value": ["select", "distinct", "(", "apt_booking_id", ")", "from", "view_unit_status"], "question": "List all booking ID", "question_toks": ["List", "all", "booking", "ID"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0001", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0002", "db_id": "assets_maintenance", "query": "select engineer_id, visit_start_datetime from engineer_visits;", "query_toks": ["select", "distinct", "(", "engineer_id", "),", "visit_end_datetime", "from", "engineer_visits"], "query_toks_no_value": ["select", "distinct", "(", "engineer_id", "),", "visit_end_datetime", "from", "engineer_visits"], "question": "Output the start times and id of all engineers", "question_toks": ["Output", "the", "start", "times", "and", "id", "of", "all", "engineers"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [true, [[0, [0, [0, 49, false], null]], [0, [0, [0, 53, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0002", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0003", "db_id": "battle_death", "query": "select distinct(latin_commander) from battle", "query_toks": ["select", "distinct", "(", "latin_commander", ")", "from", "battle"], "query_toks_no_value": ["select", "distinct", "(", "latin_commander", ")", "from", "battle"], "question": "Which of the Latin commanders participated in the battles?", "question_toks": ["Which", "of", "the", "Latin", "commanders", "participated", "in", "the", "battles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0003", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0004", "db_id": "battle_death", "query": "select count(distinct id) from battle", "query_toks": ["select", "count", "(", "distinct", "id", ")", "from", "battle"], "query_toks_no_value": ["select", "count", "(", "distinct", "id", ")", "from", "battle"], "question": "How many battles were fought?", "question_toks": ["How", "many", "battles", "were", "fought", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0004", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0005", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes", "query_toks": ["select", "notes_id", "from", "assessment_notes"], "query_toks_no_value": ["select", "notes_id", "from", "assessment_notes"], "question": "Show the id of the notes", "question_toks": ["Show", "the", "id", "of", "the", "notes"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0005", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0006", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes", "query_toks": ["select", "notes_id", "from", "assessment_notes"], "query_toks_no_value": ["select", "notes_id", "from", "assessment_notes"], "question": "ID of the notes", "question_toks": ["ID", "of", "the", "notes"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0006", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0007", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes", "query_toks": ["select", "notes_id", "from", "assessment_notes"], "query_toks_no_value": ["select", "notes_id", "from", "assessment_notes"], "question": "What the id of the notes", "question_toks": ["What", "the", "id", "of", "the", "notes"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0007", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0008", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip group by start_station_name order by count(*) desc limit 1", "query_toks": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Which start station had the most trips? Give me the name and id of the station.", "question_toks": ["Which", "start", "station", "had", "the", "most", "trips", "?", "Give", "me", "the", "name", "and", "id", "of", "the", "station", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0133", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0009", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip group by start_station_name order by count(*) desc limit 1", "query_toks": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "group", "by", "start_station_name", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "What are the start station's name and id for the one that had the most start trips?", "question_toks": ["What", "are", "the", "start", "station", "'", "s", "name", "and", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0134", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0010", "db_id": "body_builder", "query": "select total from body_builder", "query_toks": ["select", "total", "from", "body_builder"], "query_toks_no_value": ["select", "total", "from", "body_builder"], "question": "What are the total scores of the body builders?", "question_toks": ["What", "are", "the", "total", "scores", "of", "the", "body", "builders", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1172", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0011", "db_id": "cinema", "query": "select title from film", "query_toks": ["select", "title", "from", "film"], "query_toks_no_value": ["select", "title", "from", "film"], "question": "Title of the films released", "question_toks": ["Title", "of", "the", "films", "released"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0011", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0012", "db_id": "cinema", "query": "select title from film ", "query_toks": ["select", "title", "from", "film"], "query_toks_no_value": ["select", "title", "from", "film"], "question": "Title of the films", "question_toks": ["Title", "of", "the", "films"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0012", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0013", "db_id": "cinema", "query": "select distinct(title) from film", "query_toks": ["select", "distinct", "(", "title", ")", "from", "film"], "query_toks_no_value": ["select", "distinct", "(", "title", ")", "from", "film"], "question": "What are the titles of the films?", "question_toks": ["What", "are", "the", "titles", "of", "the", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0013", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0014", "db_id": "cinema", "query": "select avg(show_times_per_day) from schedule", "query_toks": ["select", "avg", "(", "show_times_per_day", ")", "from", "schedule"], "query_toks_no_value": ["select", "avg", "(", "show_times_per_day", ")", "from", "schedule"], "question": "How many times per day are scheduled movies shown on average?", "question_toks": ["How", "many", "times", "per", "day", "are", "scheduled", "movies", "shown", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0014", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0015", "db_id": "coffee_shop", "query": "select address , shop_id from shop", "query_toks": ["select", "address", ",", "shop_id", "from", "shop"], "query_toks_no_value": ["select", "address", ",", "shop_id", "from", "shop"], "question": "What are the id and address of the shops?", "question_toks": ["What", "are", "the", "id", "and", "address", "of", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0803", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0016", "db_id": "coffee_shop", "query": "select distinct(address) from shop", "query_toks": ["select", "distinct", "(", "address", ")", "from", "shop"], "query_toks_no_value": ["select", "distinct", "(", "address", ")", "from", "shop"], "question": "Addresses of shops", "question_toks": ["Addresses", "of", "shops"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0016", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0017", "db_id": "coffee_shop", "query": "select avg(num_of_shaff_in_charge) from happy_hour ", "query_toks": ["select", "avg", "(", "num_of_shaff_in_charge", ")", "from", "happy_hour"], "query_toks_no_value": ["select", "avg", "(", "num_of_shaff_in_charge", ")", "from", "happy_hour"], "question": "Average number of staff", "question_toks": ["Average", "number", "of", "staff"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0017", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0018", "db_id": "college_1", "query": "select distinct(class_code) from class", "query_toks": ["select", "distinct", "(", "class_code", ")", "from", "class"], "query_toks_no_value": ["select", "distinct", "(", "class_code", ")", "from", "class"], "question": "Class Codes", "question_toks": ["Class", "Codes"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0018", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0019", "db_id": "college_1", "query": "select distinct(class_room) from class", "query_toks": ["select", "distinct", "(", "class_room", ")", "from", "class"], "query_toks_no_value": ["select", "distinct", "(", "class_room", ")", "from", "class"], "question": "In what classrooms are classes?", "question_toks": ["In", "what", "classrooms", "are", "classes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0019", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0020", "db_id": "college_1", "query": "select distinct(stu_fname) from student", "query_toks": ["select", "distinct", "(", "stu_fname", ")", "from", "student"], "query_toks_no_value": ["select", "distinct", "(", "stu_fname", ")", "from", "student"], "question": "Surnames of students", "question_toks": ["Surnames", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0020", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0021", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where credits = 1", "query_toks": ["select", "cname", "from", "course", "where", "credits", "=", "3", "union", "select", "cname", "from", "course", "where", "credits", "=", "1"], "query_toks_no_value": ["select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value"], "question": "Find the names of courses that have either 3 credits or 1 credit", "question_toks": ["Find", "the", "names", "of", "courses", "that", "have", "either", "3", "credits", "or", "1", "credit"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4703", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0022", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where credits = 1", "query_toks": ["select", "cname", "from", "course", "where", "credits", "=", "3", "union", "select", "cname", "from", "course", "where", "credits", "=", "1"], "query_toks_no_value": ["select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value"], "question": "What are the names of courses that give either 3 credits or 1 credit?", "question_toks": ["What", "are", "the", "names", "of", "courses", "that", "give", "either", "3", "credits", "or", "1", "credit", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4704", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0023", "db_id": "course_teach", "query": "select count(distinct course_id) from course", "query_toks": ["select", "count", "(", "distinct", "course_id", ")", "from", "course"], "query_toks_no_value": ["select", "count", "(", "distinct", "course_id", ")", "from", "course"], "question": "Amount of courses", "question_toks": ["Amount", "of", "courses"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0023", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0024", "db_id": "course_teach", "query": "select distinct(course) from course", "query_toks": ["select", "distinct", "(", "course", ")", "from", "course"], "query_toks_no_value": ["select", "distinct", "(", "course", ")", "from", "course"], "question": "Show me names of the courses", "question_toks": ["Show", "me", "names", "of", "the", "courses"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0024", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0025", "db_id": "course_teach", "query": "select min(grade) from course_arrange", "query_toks": ["select", "min", "(", "grade", ")", "from", "course_arrange"], "query_toks_no_value": ["select", "min", "(", "grade", ")", "from", "course_arrange"], "question": "What is the minimum grade for the course?", "question_toks": ["What", "is", "the", "minimum", "grade", "for", "the", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0025", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0026", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents"], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents"], "question": "Total number of documents received", "question_toks": ["Total", "number", "of", "documents", "received"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0026", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0027", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed"], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed"], "question": "Number of documents mailed", "question_toks": ["Number", "of", "documents", "mailed", "in", "November"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0027", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0028", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed"], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed"], "question": "How many documents were mailed?", "question_toks": ["How", "many", "documents", "were", "mailed", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0028", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0029", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed"], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed"], "question": "How many documents were sent?", "question_toks": ["How", "many", "documents", "were", "sent", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0029", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0030", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates", "query_toks": ["select", "template_id", "from", "templates"], "query_toks_no_value": ["select", "template_id", "from", "templates"], "question": "Id of templates", "question_toks": ["Id", "of", "templates"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0030", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0031", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates", "query_toks": ["select", "template_id", "from", "templates"], "query_toks_no_value": ["select", "template_id", "from", "templates"], "question": "What are the IDs of templates?", "question_toks": ["What", "are", "the", "IDs", "of", "templates", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0031", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0032", "db_id": "cre_Doc_Template_Mgt", "query": "select count(distinct template_id) from templates", "query_toks": ["select", "count", "(", "distinct", "template_id", ")", "from", "templates"], "query_toks_no_value": ["select", "count", "(", "distinct", "template_id", ")", "from", "templates"], "question": "Number of templates", "question_toks": ["Number", "of", "templates"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0032", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0033", "db_id": "customers_and_addresses", "query": "select sum(order_quantity) from order_items ", "query_toks": ["select", "sum", "(", "order_quantity", ")", "from", "order_items"], "query_toks_no_value": ["select", "sum", "(", "order_quantity", ")", "from", "order_items"], "question": "Find the total amount of products were ordered.", "question_toks": ["Find", "the", "total", "amount", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6125", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0034", "db_id": "customers_and_addresses", "query": "select sum(order_quantity) from order_items ", "query_toks": ["select", "sum", "(", "order_quantity", ")", "from", "order_items"], "query_toks_no_value": ["select", "sum", "(", "order_quantity", ")", "from", "order_items"], "question": "What is the total amount of products purchased?", "question_toks": ["What", "is", "the", "total", "amount", "of", "products", "purchased", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6126", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0035", "db_id": "customers_and_addresses", "query": "select sum(order_quantity) from order_items ", "query_toks": ["select", "sum", "(", "order_quantity", ")", "from", "order_items"], "query_toks_no_value": ["select", "sum", "(", "order_quantity", ")", "from", "order_items"], "question": "Display amount of products ordered.", "question_toks": ["Display", "amount", "of", "products", "ordered", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0035", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0036", "db_id": "department_store", "query": "select staff_name , staff_gender from staff", "query_toks": ["select", "staff_name", ",", "staff_gender", "from", "staff"], "query_toks_no_value": ["select", "staff_name", ",", "staff_gender", "from", "staff"], "question": "Return the name and gender of the staff .", "question_toks": ["Return", "the", "name", "and", "gender", "of", "the", "staff", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4759", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0037", "db_id": "department_store", "query": "select staff_name, staff_gender from staff;", "query_toks": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "``", "2016", "%\""], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "value", "%\""], "question": "What are the names and genders of staff ?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 54, false], null], "\"2016%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4760", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0038", "db_id": "entrepreneur", "query": "select distinct(name) from people", "query_toks": ["select", "distinct", "(", "name", ")", "from", "people"], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "people"], "question": "Surnames", "question_toks": ["Surnames"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0038", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0039", "db_id": "entrepreneur", "query": "select distinct(name) from people", "query_toks": ["select", "distinct", "(", "name", ")", "from", "people"], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "people"], "question": "Who was born?", "question_toks": ["Who", "was", "born", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0039", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0040", "db_id": "formula_1", "query": "select name from races", "query_toks": ["select", "name", "from", "races"], "query_toks_no_value": ["select", "name", "from", "races"], "question": "What are the names of races?", "question_toks": ["What", "are", "the", "names", "of", "races", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2205", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0041", "db_id": "formula_1", "query": "select name from races", "query_toks": ["select", "name", "from", "races"], "query_toks_no_value": ["select", "name", "from", "races"], "question": "What are the names of all races?", "question_toks": ["What", "are", "the", "names", "of", "all", "races", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2206", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0042", "db_id": "hr_1", "query": "select job_id , hire_date from employees", "query_toks": ["select", "job_id", ",", "hire_date", "from", "employees"], "query_toks_no_value": ["select", "job_id", ",", "hire_date", "from", "employees"], "question": "Find job id and date of hire for all employees", "question_toks": ["Find", "job", "id", "and", "date", "of", "hire", "for", "all", "employees"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3429", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0043", "db_id": "hr_1", "query": "select job_id , hire_date from employees", "query_toks": ["select", "job_id", ",", "hire_date", "from", "employees"], "query_toks_no_value": ["select", "job_id", ",", "hire_date", "from", "employees"], "question": "What are the job ids and dates of hire for employees?", "question_toks": ["What", "are", "the", "job", "ids", "and", "dates", "of", "hire", "for", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3430", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0044", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "display all the details from Employees table", "question_toks": ["display", "all", "the", "details", "from", "Employees", "table"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3435", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0045", "db_id": "hr_1", "query": "select * from employees ", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "What is all the information about all employees?", "question_toks": ["What", "is", "all", "the", "information", "about", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3436", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0046", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "display all employees.", "question_toks": ["display", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3439", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0047", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "Which employees were hired?", "question_toks": ["Which", "employees", "were", "hired", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3440", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0048", "db_id": "hr_1", "query": "select job_id from job_history group by job_id having count(*) >= 2", "query_toks": ["select", "job_id", "from", "job_history", "group", "by", "job_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "job_id", "from", "job_history", "group", "by", "job_id", "having", "count", "(*)", ">=", "2"], "question": "display job ID for those jobs that were done by two or more.", "question_toks": ["display", "job", "ID", "for", "those", "jobs", "that", "were", "done", "by", "two", "or", "more", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3457", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0049", "db_id": "hr_1", "query": "select job_id from job_history group by job_id having count(*) >= 2", "query_toks": ["select", "job_id", "from", "job_history", "group", "by", "job_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "job_id", "from", "job_history", "group", "by", "job_id", "having", "count", "(*)", ">=", "2"], "question": "What are the job ids for jobs done more than once?", "question_toks": ["What", "are", "the", "job", "ids", "for", "jobs", "done", "more", "than", "once", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3458", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0050", "db_id": "inn_1", "query": "select adults from reservations where firstname = \"conrad\" and lastname = \"selbig\"", "query_toks": ["select", "adults", "from", "reservations", "where", "firstname", "=", "``", "conrad", "''", "and", "lastname", "=", "``", "selbig", "''"], "query_toks_no_value": ["select", "adults", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many adults stay in the room CONRAD SELBIG?", "question_toks": ["How", "many", "adults", "stay", "in", "the", "room", "CONRAD", "SELBIG", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"conrad\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"selbig\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2584", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0051", "db_id": "inn_1", "query": "select adults from reservations where firstname = \"conrad\" and lastname = \"selbig\"", "query_toks": ["select", "adults", "from", "reservations", "where", "firstname", "=", "``", "conrad", "''", "and", "lastname", "=", "``", "selbig", "''"], "query_toks_no_value": ["select", "adults", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Find the number of adults for the room reserved and checked in by CONRAD SELBIG.", "question_toks": ["Find", "the", "number", "of", "adults", "for", "the", "room", "reserved", "and", "checked", "in", "by", "CONRAD", "SELBIG", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"conrad\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"selbig\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2585", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0052", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"damien\" and lastname = \"trachsel\"", "query_toks": ["select", "kids", "from", "reservations", "where", "firstname", "=", "``", "damien", "''", "and", "lastname", "=", "``", "trachsel", "''"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many kids stay in the room DAMIEN TRACHSEL?", "question_toks": ["How", "many", "kids", "stay", "in", "the", "room", "DAMIEN", "TRACHSEL", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"damien\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"trachsel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2586", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0053", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"damien\" and lastname = \"trachsel\"", "query_toks": ["select", "kids", "from", "reservations", "where", "firstname", "=", "``", "damien", "''", "and", "lastname", "=", "``", "trachsel", "''"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL.", "question_toks": ["Return", "the", "number", "of", "kids", "for", "the", "room", "reserved", "and", "checked", "in", "by", "DAMIEN", "TRACHSEL", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"damien\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"trachsel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2587", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0054", "db_id": "inn_1", "query": "select lastname, firstname from reservations", "query_toks": ["select", "lastname", ",", "firstname", "from", "reservations"], "query_toks_no_value": ["select", "lastname", ",", "firstname", "from", "reservations"], "question": "Last and first names of everyone who checked in", "question_toks": ["Last", "and", "first", "names", "of", "everyone", "who", "checked", "in"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0054", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0055", "db_id": "inn_1", "query": "select lastname, firstname from reservations", "query_toks": ["select", "lastname", ",", "firstname", "from", "reservations"], "query_toks_no_value": ["select", "lastname", ",", "firstname", "from", "reservations"], "question": "Show me the last and first names of everyone", "question_toks": ["Show", "me", "the", "last", "and", "first", "names", "of", "everyone"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0055", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0056", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id , t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = \"close\"", "query_toks": ["select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "``", "close", "''", "or", "t1", ".", "date_and_date", "<", "``", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "value", "or", "t1", ".", "date_and_date", "<", "value", "-", "06", "-", "19", "02", ":", "59", ":", "21"], "question": "What are the distinct id and type of the thing that has the status 'Close'", "question_toks": ["What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'", "Close", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"close\"", null], "or", [false, 4, [0, [0, 44, false], null], "\"2017-06-19 02:59:21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4851", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0057", "db_id": "music_1", "query": "select count(*) from files", "query_toks": ["select", "count", "(*)", "from", "files"], "query_toks_no_value": ["select", "count", "(*)", "from", "files"], "question": "How many songs are?", "question_toks": ["How", "many", "songs", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3545", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0058", "db_id": "music_1", "query": "select count(*) from files", "query_toks": ["select", "count", "(*)", "from", "files"], "query_toks_no_value": ["select", "count", "(*)", "from", "files"], "question": "What is the count of the songs?", "question_toks": ["What", "is", "the", "count", "of", "the", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3546", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0059", "db_id": "music_1", "query": "select artist_name , gender from artist", "query_toks": ["select", "artist_name", ",", "gender", "from", "artist"], "query_toks_no_value": ["select", "artist_name", ",", "gender", "from", "artist"], "question": "List the name and gender for all artists.", "question_toks": ["List", "the", "name", "and", "gender", "for", "all", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3575", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0060", "db_id": "music_1", "query": "select artist_name , gender from artist ", "query_toks": ["select", "artist_name", ",", "gender", "from", "artist"], "query_toks_no_value": ["select", "artist_name", ",", "gender", "from", "artist"], "question": "What are the names and genders of all artists?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "all", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3576", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0061", "db_id": "music_1", "query": "select song_name from song where languages = \"english\"", "query_toks": ["select", "song_name", "from", "song", "where", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "languages", "=", "value"], "question": "List the names of all songs that are in English.", "question_toks": ["List", "the", "names", "of", "all", "songs", "that", "are", "in", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3583", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0062", "db_id": "music_1", "query": "select song_name from song where languages = \"english\"", "query_toks": ["select", "song_name", "from", "song", "where", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "languages", "=", "value"], "question": "What are the names of all songs that are in English?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "are", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3584", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0063", "db_id": "music_1", "query": "select max(resolution) , min(resolution) from song", "query_toks": ["select", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "from", "song"], "query_toks_no_value": ["select", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "from", "song"], "question": "What are the maximum and minimum resolution of songs?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "resolution", "of", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3599", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0064", "db_id": "music_1", "query": "select max(resolution) , min(resolution) from song", "query_toks": ["select", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "from", "song"], "query_toks_no_value": ["select", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "from", "song"], "question": "What is the maximum and minimum resolution of all songs ", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "resolution", "of", "all", "songs", "that", "are", "approximately", "3", "minutes", "long", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3600", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0065", "db_id": "music_1", "query": "select distinct(f_id) from files", "query_toks": ["select", "distinct", "(", "f_id", ")", "from", "files"], "query_toks_no_value": ["select", "distinct", "(", "f_id", ")", "from", "files"], "question": "Id files", "question_toks": ["Id", "files"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0065", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0066", "db_id": "music_1", "query": "select artist_name from artist", "query_toks": ["select", "artist_name", ",", "gender", "from", "artist"], "query_toks_no_value": ["select", "artist_name", ",", "gender", "from", "artist"], "question": "What the names of all artists.", "question_toks": ["What", "the", "names", "of", "all", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0066", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0067", "db_id": "station_weather", "query": "select name from train", "query_toks": ["select", "name", "from", "train"], "query_toks_no_value": ["select", "name", "from", "train"], "question": "Name of trains", "question_toks": ["Name", "of", "trains"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0067", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0068", "db_id": "station_weather", "query": "select distinct(train_number) from train", "query_toks": ["select", "distinct", "(", "train_number", ")", "from", "train"], "query_toks_no_value": ["select", "distinct", "(", "train_number", ")", "from", "train"], "question": "Give me all trains numbers", "question_toks": ["Give", "me", "all", "trains", "numbers"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0068", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0069", "db_id": "theme_gallery", "query": "select sum(attendance) from exhibition_record", "query_toks": ["select", "sum", "(", "attendance", ")", "from", "exhibition_record"], "query_toks_no_value": ["select", "sum", "(", "attendance", ")", "from", "exhibition_record"], "question": "How many people attended the gallery?", "question_toks": ["How", "many", "people", "attended", "the", "gallery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0069", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0070", "db_id": "tracking_grants_for_research", "query": "select grant_amount from grants", "query_toks": ["select", "grant_amount", "from", "grants"], "query_toks_no_value": ["select", "grant_amount", "from", "grants"], "question": "What are the distinct grant amount for the grants?", "question_toks": ["What", "are", "the", "distinct", "grant", "amount", "for", "the", "grants", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4320", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0071", "db_id": "tracking_grants_for_research", "query": "select grant_amount from grants", "query_toks": ["select", "grant_amount", "from", "grants"], "query_toks_no_value": ["select", "grant_amount", "from", "grants"], "question": "What are the different grant amounts for documents?", "question_toks": ["What", "are", "the", "different", "grant", "amounts", "for", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4321", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0072", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code = \"leader\"", "query_toks": ["select", "count", "(*)", "from", "project_staff", "where", "role_code", "=", "``", "leader", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "project_staff", "where", "role_code", "=", "value"], "question": "How many project staff worked as leaders?", "question_toks": ["How", "many", "project", "staff", "worked", "as", "leaders", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4376", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0073", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code = \"leader\"", "query_toks": ["select", "count", "(*)", "from", "project_staff", "where", "role_code", "=", "``", "leader", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "project_staff", "where", "role_code", "=", "value"], "question": "How many project members were leaders?", "question_toks": ["How", "many", "project", "members", "were", "leaders", "or", "started", "working", "before", "'", "1989", "-", "04", "-", "24", "23", ":", "51", ":", "54", "'?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4377", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0074", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff", "query_toks": ["select", "role_code", "from", "project_staff"], "query_toks_no_value": ["select", "role_code", "from", "project_staff"], "question": "What are the staff roles of the staff", "question_toks": ["What", "are", "the", "staff", "roles", "of", "the", "staff"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4392", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0075", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff", "query_toks": ["select", "role_code", "from", "project_staff"], "query_toks_no_value": ["select", "role_code", "from", "project_staff"], "question": "What roles did staff members?", "question_toks": ["What", "roles", "did", "staff", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4393", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0076", "db_id": "tracking_orders", "query": "select customer_name from customers", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "Give me the names of customers", "question_toks": ["Give", "me", "the", "names", "of", "customers"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6905", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0077", "db_id": "tracking_orders", "query": "select distinct t1.customer_name from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id;", "query_toks": ["select", "customer_name", "from", "customers"], "query_toks_no_value": ["select", "customer_name", "from", "customers"], "question": "Which customers made orders? Find their names.", "question_toks": ["Which", "customers", "made", "orders", "?", "Find", "their", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6906", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0078", "db_id": "tracking_orders", "query": "select distinct product_id from products;", "query_toks": ["select", "distinct", "product_id", "from", "order_items"], "query_toks_no_value": ["select", "distinct", "product_id", "from", "order_items"], "question": "Give me a list of distinct product ids", "question_toks": ["Give", "me", "a", "list", "of", "distinct", "product", "ids"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6907", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0079", "db_id": "tracking_orders", "query": "select distinct product_id from products;", "query_toks": ["select", "distinct", "product_id", "from", "order_items"], "query_toks_no_value": ["select", "distinct", "product_id", "from", "order_items"], "question": "What are the distinct ids of products?", "question_toks": ["What", "are", "the", "distinct", "ids", "of", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6908", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0080", "db_id": "tracking_orders", "query": "select order_id from orders;", "query_toks": ["select", "order_id", "from", "shipments"], "query_toks_no_value": ["select", "order_id", "from", "shipments"], "question": "Find the ids of orders.", "question_toks": ["Find", "the", "ids", "of", "orders", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6921", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0081", "db_id": "tracking_orders", "query": "select order_id from shipments", "query_toks": ["select", "order_id", "from", "shipments"], "query_toks_no_value": ["select", "order_id", "from", "shipments"], "question": "Which orders have shipment? Give me the order ids.", "question_toks": ["Which", "orders", "have", "shipment", "?", "Give", "me", "the", "order", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6922", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0082", "db_id": "tracking_orders", "query": "select invoice_number from invoices", "query_toks": ["select", "invoice_number", "from", "invoices"], "query_toks_no_value": ["select", "invoice_number", "from", "invoices"], "question": "Find the invoice numbers.", "question_toks": ["Find", "the", "invoice", "numbers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6933", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0083", "db_id": "tracking_orders", "query": "select invoice_number from invoices", "query_toks": ["select", "invoice_number", "from", "invoices"], "query_toks_no_value": ["select", "invoice_number", "from", "invoices"], "question": "What are the invoice numbers?", "question_toks": ["What", "are", "the", "invoice", "numbers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6934", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0084", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices", "query_toks": ["select", "distinct", "invoice_details", "from", "invoices"], "query_toks_no_value": ["select", "distinct", "invoice_details", "from", "invoices"], "question": "Find the distinct details of invoices", "question_toks": ["Find", "the", "distinct", "details", "of", "invoices"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6935", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0085", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices", "query_toks": ["select", "distinct", "invoice_details", "from", "invoices"], "query_toks_no_value": ["select", "distinct", "invoice_details", "from", "invoices"], "question": "What are the distinct details of invoices?", "question_toks": ["What", "are", "the", "distinct", "details", "of", "invoices", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6936", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0086", "db_id": "tracking_software_problems", "query": "select problem_id from problems", "query_toks": ["select", "problem_id", "from", "problems"], "query_toks_no_value": ["select", "problem_id", "from", "problems"], "question": "What are the ids of the problems?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5372", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0087", "db_id": "tracking_software_problems", "query": "select problem_id from problems", "query_toks": ["select", "problem_id", "from", "problems"], "query_toks_no_value": ["select", "problem_id", "from", "problems"], "question": "Find the ids of the problems.", "question_toks": ["Find", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5373", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0088", "db_id": "tracking_software_problems", "query": "select problem_id from problems", "query_toks": ["select", "problem_id", "from", "problems"], "query_toks_no_value": ["select", "problem_id", "from", "problems"], "question": "What are the ids of the problems?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5374", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0089", "db_id": "tracking_software_problems", "query": "select problem_id from problems", "query_toks": ["select", "problem_id", "from", "problems"], "query_toks_no_value": ["select", "problem_id", "from", "problems"], "question": "Which problems are reported? Give me the ids of the problems.", "question_toks": ["Which", "problems", "are", "reported", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5375", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0090", "db_id": "tracking_software_problems", "query": "select count(*) , t2.product_id from problems as t1 join product as t2 on t1.product_id = t2.product_id group by t2.product_id", "query_toks": ["select", "count", "(*)", ",", "t2", ".", "product_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t2", ".", "product_id"], "query_toks_no_value": ["select", "count", "(*)", ",", "t2", ".", "product_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t2", ".", "product_id"], "question": "For each product that has problems, find the number of problems and the product id", "question_toks": ["For", "each", "product", "that", "has", "problems", ",", "find", "the", "number", "of", "problems", "and", "the", "product", "id"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5378", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0091", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\"", "query_toks": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "``", "voluptatem", "''"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value"], "question": "List the ids of the problems from the product \"voluptatem\"?", "question_toks": ["List", "the", "ids", "of", "the", "problems", "from", "the", "product", "\"", "voluptatem", "\"?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5394", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0092", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\"", "query_toks": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "``", "voluptatem", "''"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value"], "question": "What are the ids of the problems that are from the product \"voluptatem\"?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "that", "are", "from", "the", "product", "\"", "voluptatem", "\"?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5395", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0093", "db_id": "twitter_1", "query": "select count(distinct id) from tweets", "query_toks": ["select", "count", "(", "distinct", "id", ")", "from", "tweets"], "query_toks_no_value": ["select", "count", "(", "distinct", "id", ")", "from", "tweets"], "question": "How many tweets are generated?", "question_toks": ["How", "many", "tweets", "are", "generated", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0093", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0094", "db_id": "twitter_1", "query": "select text from tweets", "query_toks": ["select", "text", "from", "tweets"], "query_toks_no_value": ["select", "text", "from", "tweets"], "question": "Tweet texts", "question_toks": ["Tweet", "texts"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0094", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0095", "db_id": "workshop_paper", "query": "select distinct(name) from workshop", "query_toks": ["select", "distinct", "(", "name", ")", "from", "workshop"], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "workshop"], "question": "Names of workshops", "question_toks": ["Names", "of", "workshops"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0095", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0096", "db_id": "workshop_paper", "query": "select distinct(name) from workshop", "query_toks": ["select", "distinct", "(", "name", ")", "from", "workshop"], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "workshop"], "question": "What was the name of the workshop", "question_toks": ["What", "was", "the", "name", "of", "the", "workshop"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0096", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0097", "db_id": "world_1", "query": "select count(distinct language) from countrylanguage where isofficial = 't';", "query_toks": ["select", "count", "(", "distinct", "language", ")", "from", "countrylanguage"], "query_toks_no_value": ["select", "count", "(", "distinct", "language", ")", "from", "countrylanguage"], "question": "What is the total number of unique official languages spoken in all countries?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "spoken", "in", "all", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0770", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0098", "db_id": "world_1", "query": "select count(distinct language) from countrylanguage where isofficial = \"t\"", "query_toks": ["select", "count", "(", "distinct", "language", ")", "from", "countrylanguage", "where", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "language", ")", "from", "countrylanguage", "where", "isofficial", "=", "value"], "question": "What is the total number of distinct official languages?", "question_toks": ["What", "is", "the", "total", "number", "of", "distinct", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0771", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "multi_aggregation_0000", "db_id": "concert_singer", "query": "select avg(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average age of all singers from France?", "question_toks": ["What", "is", "the", "average", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0004", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0001", "db_id": "concert_singer", "query": "select min(age) from singer where country = \"france\"", "query_toks": ["select", "min", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "min", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the minimum age of singers from France?", "question_toks": ["What", "is", "the", "minimum", "age", "of", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0001", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0002", "db_id": "concert_singer", "query": "select max(age) from singer where country = \"france\"", "query_toks": ["select", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the maximum age of all singers from France?", "question_toks": ["What", "is", "the", "maximum", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0002", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0003", "db_id": "concert_singer", "query": "select avg(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average age for all French singers?", "question_toks": ["What", "is", "the", "average", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0005", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0004", "db_id": "concert_singer", "query": "select min(age) from singer where country = \"france\"", "query_toks": ["select", "min", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "min", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the minimum age for all French singers?", "question_toks": ["What", "is", "the", "minimum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0004", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0005", "db_id": "concert_singer", "query": "select max(age) from singer where country = \"france\"", "query_toks": ["select", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the maximum age for all French singers?", "question_toks": ["What", "is", "the", "maximum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0005", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0006", "db_id": "concert_singer", "query": "select avg(capacity) from stadium", "query_toks": ["select", "avg", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", "from", "stadium"], "question": "What is the average capacities for all stadiums ?", "question_toks": ["What", "is", "the", "average", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0017", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0007", "db_id": "concert_singer", "query": "select max(capacity) from stadium", "query_toks": ["select", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", "from", "stadium"], "question": "What is the maximum capacities for all stadiums ?", "question_toks": ["What", "is", "the", "maximum", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0007", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0008", "db_id": "pets_1", "query": "select avg(pet_age), pettype from pets group by pettype", "query_toks": ["select", "avg", "(", "pet_age", "),", "pettype", "from", "pets", "group", "by", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", "),", "pettype", "from", "pets", "group", "by", "pettype"], "question": "Find the average age for each type of pet.", "question_toks": ["Find", "the", "average", "age", "for", "each", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0071", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0009", "db_id": "pets_1", "query": "select max(pet_age), pettype from pets group by pettype", "query_toks": ["select", "max", "(", "pet_age", "),", "pettype", "from", "pets", "group", "by", "pettype"], "query_toks_no_value": ["select", "max", "(", "pet_age", "),", "pettype", "from", "pets", "group", "by", "pettype"], "question": "Find the maximum age for each type of pet.", "question_toks": ["Find", "the", "maximum", "age", "for", "each", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0009", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0010", "db_id": "pets_1", "query": "select avg(pet_age), pettype from pets group by pettype", "query_toks": ["select", "avg", "(", "pet_age", "),", "pettype", "from", "pets", "group", "by", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", "),", "pettype", "from", "pets", "group", "by", "pettype"], "question": "What is the average age for each pet type?", "question_toks": ["What", "is", "the", "average", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0072", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0011", "db_id": "pets_1", "query": "select max(pet_age) , pettype from pets group by pettype", "query_toks": ["select", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "query_toks_no_value": ["select", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "What is the maximum age for each pet type?", "question_toks": ["What", "is", "the", "maximum", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0011", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0012", "db_id": "employee_hire_evaluation", "query": "select min(number_products) from shop", "query_toks": ["select", "min", "(", "number_products", ")", "from", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", "from", "shop"], "question": "find the minimum number of products of all stores.", "question_toks": ["find", "the", "minimum", "number", "of", "products", "of", "all", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0271", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0013", "db_id": "employee_hire_evaluation", "query": "select max(number_products) from shop", "query_toks": ["select", "max", "(", "number_products", ")", "from", "shop"], "query_toks_no_value": ["select", "max", "(", "number_products", ")", "from", "shop"], "question": "find the maximum number of products of all stores.", "question_toks": ["find", "the", "maximum", "number", "of", "products", "of", "all", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0013", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0014", "db_id": "employee_hire_evaluation", "query": "select min(number_products) from shop", "query_toks": ["select", "min", "(", "number_products", ")", "from", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", "from", "shop"], "question": "What is the minimum number of products across all the shops?", "question_toks": ["What", "is", "the", "minimum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0272", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0015", "db_id": "employee_hire_evaluation", "query": "select max(number_products) from shop", "query_toks": ["select", "max", "(", "number_products", ")", "from", "shop"], "query_toks_no_value": ["select", "max", "(", "number_products", ")", "from", "shop"], "question": "What is the maximum number of products across all the shops?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0015", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0016", "db_id": "museum_visit", "query": "select avg(num_of_ticket) from visit", "query_toks": ["select", "avg", "(", "num_of_ticket", ")", "from", "visit"], "query_toks_no_value": ["select", "avg", "(", "num_of_ticket", ")", "from", "visit"], "question": "What is the average number of tickets bought in all visits?", "question_toks": ["What", "is", "the", "average", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0016", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0017", "db_id": "museum_visit", "query": "select max(num_of_ticket) from visit", "query_toks": ["select", "max", "(", "num_of_ticket", ")", "from", "visit"], "query_toks_no_value": ["select", "max", "(", "num_of_ticket", ")", "from", "visit"], "question": "What is the maximum number of tickets bought in all visits?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0424", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0018", "db_id": "battle_death", "query": "select max(killed) from death", "query_toks": ["select", "max", "(", "killed", ")", "from", "death"], "query_toks_no_value": ["select", "max", "(", "killed", ")", "from", "death"], "question": "What is maximum death toll caused each time?", "question_toks": ["What", "is", "maximum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0018", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0019", "db_id": "battle_death", "query": "select min(killed) from death", "query_toks": ["select", "min", "(", "killed", ")", "from", "death"], "query_toks_no_value": ["select", "min", "(", "killed", ")", "from", "death"], "question": "What is minimum death toll caused each time?", "question_toks": ["What", "is", "minimum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0494", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0020", "db_id": "tvshow", "query": "select min(share) from tv_series", "query_toks": ["select", "min", "(", "share", ")", "from", "tv_series"], "query_toks_no_value": ["select", "min", "(", "share", ")", "from", "tv_series"], "question": "What is the minimum share of TV series?", "question_toks": ["What", "is", "the", "minimum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0020", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0021", "db_id": "tvshow", "query": "select max(share) from tv_series", "query_toks": ["select", "max", "(", "share", ")", "from", "tv_series"], "query_toks_no_value": ["select", "max", "(", "share", ")", "from", "tv_series"], "question": "What is the maximum share of TV series?", "question_toks": ["What", "is", "the", "maximum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0617", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0022", "db_id": "tvshow", "query": "select max(share) from tv_series", "query_toks": ["select", "max", "(", "share", ")", "from", "tv_series"], "query_toks_no_value": ["select", "max", "(", "share", ")", "from", "tv_series"], "question": "What is the maximum share for the TV series?", "question_toks": ["What", "is", "the", "maximum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0618", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0023", "db_id": "tvshow", "query": "select min(share) from tv_series", "query_toks": ["select", "min", "(", "share", ")", "from", "tv_series"], "query_toks_no_value": ["select", "min", "(", "share", ")", "from", "tv_series"], "question": "What is the minimum share for the TV series?", "question_toks": ["What", "is", "the", "minimum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0023", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0024", "db_id": "voter_1", "query": "select max(area_code) from area_code_state", "query_toks": ["select", "max", "(", "area_code", ")", "from", "area_code_state"], "query_toks_no_value": ["select", "max", "(", "area_code", ")", "from", "area_code_state"], "question": "What is the maximum values of area codes?", "question_toks": ["What", "is", "the", "maximum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0690", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0025", "db_id": "voter_1", "query": "select min(area_code) from area_code_state", "query_toks": ["select", "min", "(", "area_code", ")", "from", "area_code_state"], "query_toks_no_value": ["select", "min", "(", "area_code", ")", "from", "area_code_state"], "question": "What is the minimum values of area codes?", "question_toks": ["What", "is", "the", "minimum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0025", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0026", "db_id": "orchestra", "query": "select max(share) from performance where type != \"live final\"", "query_toks": ["select", "max", "(", "share", ")", "from", "performance", "where", "type", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", "from", "performance", "where", "type", "!=", "value", "final"], "question": "What is the maximum share of performances whose type is not \"Live final\".", "question_toks": ["What", "is", "the", "maximum", "share", "of", "performances", "whose", "type", "is", "not", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0832", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0027", "db_id": "orchestra", "query": "select min(share) from performance where type != \"live final\"", "query_toks": ["select", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["select", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "value", "final"], "question": "What is the minimum share of performances whose type is not \"Live final\".", "question_toks": ["What", "is", "the", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0027", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0028", "db_id": "orchestra", "query": "select max(share) from performance where type != \"live final\"", "query_toks": ["select", "max", "(", "share", ")", "from", "performance", "where", "type", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", "from", "performance", "where", "type", "!=", "value", "final"], "question": "Return the maximum share for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "maximum", "share", "for", "performances", "that", "do", "not", "have", "the", "type", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0833", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0029", "db_id": "orchestra", "query": "select min(share) from performance where type != \"live final\"", "query_toks": ["select", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["select", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "value", "final"], "question": "Return the minimum share for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "minimum", "share", "for", "performances", "that", "do", "not", "have", "the", "type", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0029", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0030", "db_id": "department_management", "query": "select max(budget_in_billions) from department", "query_toks": ["select", "max", "(", "budget_in_billions", ")", "from", "department"], "query_toks_no_value": ["select", "max", "(", "budget_in_billions", ")", "from", "department"], "question": "What is the maximum budget of the departments?", "question_toks": ["What", "is", "the", "maximum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0003", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0031", "db_id": "department_management", "query": "select min(budget_in_billions) from department", "query_toks": ["select", "min", "(", "budget_in_billions", ")", "from", "department"], "query_toks_no_value": ["select", "min", "(", "budget_in_billions", ")", "from", "department"], "question": "What is the minimum budget of the departments?", "question_toks": ["What", "is", "the", "minimum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0031", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0032", "db_id": "farm", "query": "select max(cows) from farm", "query_toks": ["select", "max", "(", "cows", ")", "from", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", "from", "farm"], "question": "What is the maximum number of cows across all farms.", "question_toks": ["What", "is", "the", "maximum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0026", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0033", "db_id": "farm", "query": "select min(cows) from farm", "query_toks": ["select", "min", "(", "cows", ")", "from", "farm"], "query_toks_no_value": ["select", "min", "(", "cows", ")", "from", "farm"], "question": "What is the minimum number of cows across all farms.", "question_toks": ["What", "is", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0033", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0034", "db_id": "farm", "query": "select max(cows) from farm", "query_toks": ["select", "max", "(", "cows", ")", "from", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", "from", "farm"], "question": "Return the maximum number of cows across all farms.", "question_toks": ["Return", "the", "maximum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0027", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0035", "db_id": "farm", "query": "select min(cows) from farm", "query_toks": ["select", "min", "(", "cows", ")", "from", "farm"], "query_toks_no_value": ["select", "min", "(", "cows", ")", "from", "farm"], "question": "Return the minimum number of cows across all farms.", "question_toks": ["Return", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0035", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0036", "db_id": "bike_1", "query": "select sum(duration) from trip where bike_id = 636", "query_toks": ["select", "sum", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "total", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0121", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0037", "db_id": "bike_1", "query": "select max(duration) from trip where bike_id = 636", "query_toks": ["select", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "636"], "query_toks_no_value": ["select", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the maximum duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "maximum", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0037", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0038", "db_id": "bike_1", "query": "select sum(duration) from trip where bike_id = 636", "query_toks": ["select", "sum", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "total", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0122", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0039", "db_id": "bike_1", "query": "select max(duration) from trip where bike_id = 636", "query_toks": ["select", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "636"], "query_toks_no_value": ["select", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the maximum duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "maximum", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0039", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0040", "db_id": "twitter_1", "query": "select max(followers) from user_profiles", "query_toks": ["select", "max", "(", "followers", ")", "from", "user_profiles"], "query_toks_no_value": ["select", "max", "(", "followers", ")", "from", "user_profiles"], "question": "Find the maximum number of followers of all users.", "question_toks": ["Find", "the", "maximum", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0300", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0041", "db_id": "twitter_1", "query": "select sum(followers) from user_profiles", "query_toks": ["select", "sum", "(", "followers", ")", "from", "user_profiles"], "query_toks_no_value": ["select", "sum", "(", "followers", ")", "from", "user_profiles"], "question": "Find the total number of followers of all users.", "question_toks": ["Find", "the", "total", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0041", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0042", "db_id": "product_catalog", "query": "select avg(price_in_euros) from catalog_contents", "query_toks": ["select", "avg", "(", "price_in_euros", ")", "from", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "What is the average price (in Euro) of all products?", "question_toks": ["What", "is", "the", "average", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0321", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0043", "db_id": "product_catalog", "query": "select min(price_in_euros) from catalog_contents", "query_toks": ["select", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "query_toks_no_value": ["select", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "What is the minimum price (in Euro) of all products?", "question_toks": ["What", "is", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0043", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0044", "db_id": "product_catalog", "query": "select avg(price_in_euros) from catalog_contents", "query_toks": ["select", "avg", "(", "price_in_euros", ")", "from", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "Give me the average price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "average", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0322", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0045", "db_id": "product_catalog", "query": "select min(price_in_euros) from catalog_contents", "query_toks": ["select", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "query_toks_no_value": ["select", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "Give me the minimum price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0045", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0046", "db_id": "flight_1", "query": "select min(distance) from aircraft", "query_toks": ["select", "min", "(", "distance", ")", "from", "aircraft"], "query_toks_no_value": ["select", "min", "(", "distance", ")", "from", "aircraft"], "question": "What is the minimum distance of all aircrafts.", "question_toks": ["What", "is", "the", "minimum", "distance", "of", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0353", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0047", "db_id": "flight_1", "query": "select avg(distance) from aircraft", "query_toks": ["select", "avg", "(", "distance", ")", "from", "aircraft"], "query_toks_no_value": ["select", "avg", "(", "distance", ")", "from", "aircraft"], "question": "Return the average distances traveled across all aircrafts.", "question_toks": ["Return", "the", "average", "distances", "traveled", "across", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0354", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0048", "db_id": "flight_1", "query": "select max(salary) from employee", "query_toks": ["select", "max", "(", "salary", ")", "from", "employee"], "query_toks_no_value": ["select", "max", "(", "salary", ")", "from", "employee"], "question": "What is maximum salary of all employees.", "question_toks": ["What", "is", "maximum", "salary", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0371", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0049", "db_id": "flight_1", "query": "select max(salary) from employee", "query_toks": ["select", "max", "(", "salary", ")", "from", "employee"], "query_toks_no_value": ["select", "max", "(", "salary", ")", "from", "employee"], "question": "What is the largest salary of all employees?", "question_toks": ["What", "is", "the", "largest", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0372", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0050", "db_id": "flight_1", "query": "select avg(salary) from employee", "query_toks": ["select", "avg", "(", "salary", ")", "from", "employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", "from", "employee"], "question": "What is the average salary of all employees?", "question_toks": ["What", "is", "the", "average", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0050", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0051", "db_id": "allergy_1", "query": "select max(age) from student", "query_toks": ["select", "max", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "student"], "question": "Show the maximum age of all students.", "question_toks": ["Show", "the", "maximum", "age", "of", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0483", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0052", "db_id": "allergy_1", "query": "select avg(age) from student", "query_toks": ["select", "avg", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student"], "question": "What is the mean age across all students?", "question_toks": ["What", "is", "the", "mean", "age", "across", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0484", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0053", "db_id": "customers_card_transactions", "query": "select sum(transaction_amount) from financial_transactions", "query_toks": ["select", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Return the total amount of all transactions.", "question_toks": ["Return", "the", "total", "amount", "of", "all", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0738", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0054", "db_id": "customers_card_transactions", "query": "select avg(transaction_amount) from financial_transactions", "query_toks": ["select", "avg", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Return the mean transaction amount.", "question_toks": ["Return", "the", "mean", "transaction", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0054", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0055", "db_id": "race_track", "query": "select avg(seating) from track", "query_toks": ["select", "avg", "(", "seating", ")", "from", "track"], "query_toks_no_value": ["select", "avg", "(", "seating", ")", "from", "track"], "question": "What is the average seating for all tracks.", "question_toks": ["What", "is", "the", "average", "seating", "for", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0755", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0056", "db_id": "race_track", "query": "select max(seating) from track", "query_toks": ["select", "max", "(", "seating", ")", "from", "track"], "query_toks_no_value": ["select", "max", "(", "seating", ")", "from", "track"], "question": "Return the maximum seating across all tracks.", "question_toks": ["Return", "the", "maximum", "seating", "across", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0756", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0057", "db_id": "chinook_1", "query": "select max(milliseconds) from track", "query_toks": ["select", "max", "(", "milliseconds", ")", "from", "track"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", "from", "track"], "question": "What are the durations of the longest track in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "longest", "track", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0831", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0058", "db_id": "chinook_1", "query": "select min(milliseconds) from track", "query_toks": ["select", "min", "(", "milliseconds", ")", "from", "track"], "query_toks_no_value": ["select", "min", "(", "milliseconds", ")", "from", "track"], "question": "What are the durations of the shortest tracks in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "shortest", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0058", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0059", "db_id": "chinook_1", "query": "select max(milliseconds) from track", "query_toks": ["select", "max", "(", "milliseconds", ")", "from", "track"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", "from", "track"], "question": "Find the maximum durations of tracks in milliseconds.", "question_toks": ["Find", "the", "maximum", "durations", "of", "tracks", "in", "milliseconds", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0832", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0060", "db_id": "chinook_1", "query": "select min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["select", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "``", "pop", "''"], "query_toks_no_value": ["select", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "Find the minimum millisecond lengths of pop tracks.", "question_toks": ["Find", "the", "minimum", "millisecond", "lengths", "of", "pop", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0882", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0061", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) from settlements", "query_toks": ["select", "sum", "(", "settlement_amount", ")", "from", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the total amount of settlements.", "question_toks": ["Find", "the", "total", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0901", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0062", "db_id": "insurance_fnol", "query": "select avg(settlement_amount) from settlements", "query_toks": ["select", "avg", "(", "settlement_amount", ")", "from", "settlements"], "query_toks_no_value": ["select", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the average amount of settlements.", "question_toks": ["Find", "the", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0062", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0063", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) from settlements", "query_toks": ["select", "sum", "(", "settlement_amount", ")", "from", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", "from", "settlements"], "question": "Return the sum of all settlement amounts.", "question_toks": ["Return", "the", "sum", "of", "all", "settlement", "amounts", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0902", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0064", "db_id": "insurance_fnol", "query": "select max(settlement_amount) from settlements", "query_toks": ["select", "max", "(", "settlement_amount", ")", "from", "settlements"], "query_toks_no_value": ["select", "max", "(", "settlement_amount", ")", "from", "settlements"], "question": "What are the maximum settlement amount on record?", "question_toks": ["What", "are", "the", "maximum", "settlement", "amount", "on", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0927", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0065", "db_id": "insurance_fnol", "query": "select min(settlement_amount) from settlements", "query_toks": ["select", "min", "(", "settlement_amount", ")", "from", "settlements"], "query_toks_no_value": ["select", "min", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the minimum settlement amount.", "question_toks": ["Find", "the", "minimum", "settlement", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0928", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0066", "db_id": "university_basketball", "query": "select sum(enrollment) from university", "query_toks": ["select", "sum", "(", "enrollment", ")", "from", "university"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", "from", "university"], "question": "What is the total enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0999", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0067", "db_id": "university_basketball", "query": "select min(enrollment) from university", "query_toks": ["select", "min", "(", "enrollment", ")", "from", "university"], "query_toks_no_value": ["select", "min", "(", "enrollment", ")", "from", "university"], "question": "Return the minimum enrollments across all schools.", "question_toks": ["Return", "the", "minimum", "enrollments", "across", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1000", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0068", "db_id": "phone_1", "query": "select max(t1.ram_mib) from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t2.company_name = \"nokia corporation\"", "query_toks": ["select", "max", "(", "t1", ".", "ram_mib", ")", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t2", ".", "company_name", "=", "``", "nokia", "corporation", "''"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "ram_mib", ")", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t2", ".", "company_name", "=", "value", "corporation"], "question": "What is maximum RAM size of phone produced by company named \"Nokia Corporation\"?", "question_toks": ["What", "is", "maximum", "RAM", "size", "of", "phone", "produced", "by", "company", "named", "\"", "Nokia", "Corporation", "\"?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"nokia corporation\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1027", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0069", "db_id": "phone_1", "query": "select min(used_kb) , avg(used_kb) from screen_mode", "query_toks": ["select", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "from", "screen_mode"], "query_toks_no_value": ["select", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "from", "screen_mode"], "question": "List the minimum and average number of used kb in screen mode.", "question_toks": ["List", "the", "minimum", "and", "average", "number", "of", "used", "kb", "in", "screen", "mode", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]], [5, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1035", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0070", "db_id": "election_representative", "query": "select min(vote_percent) from election", "query_toks": ["select", "min", "(", "vote_percent", ")", "from", "election"], "query_toks_no_value": ["select", "min", "(", "vote_percent", ")", "from", "election"], "question": "What are the minimum vote percents of elections?", "question_toks": ["What", "are", "the", "minimum", "vote", "percents", "of", "elections", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1177", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0071", "db_id": "apartment_rentals", "query": "select max(bathroom_count) from apartments", "query_toks": ["select", "max", "(", "bathroom_count", ")", "from", "apartments"], "query_toks_no_value": ["select", "max", "(", "bathroom_count", ")", "from", "apartments"], "question": "What is the maximum number of bathrooms of all the apartments?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "bathrooms", "of", "all", "the", "apartments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1206", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0072", "db_id": "apartment_rentals", "query": "select min(bathroom_count) from apartments", "query_toks": ["select", "min", "(", "bathroom_count", ")", "from", "apartments"], "query_toks_no_value": ["select", "min", "(", "bathroom_count", ")", "from", "apartments"], "question": "Give me the minimum bathroom count among all the apartments.", "question_toks": ["Give", "me", "the", "minimum", "bathroom", "count", "among", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1207", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0073", "db_id": "apartment_rentals", "query": "select apt_type_code , max(room_count) from apartments group by apt_type_code", "query_toks": ["select", "apt_type_code", ",", "max", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "query_toks_no_value": ["select", "apt_type_code", ",", "max", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "question": "Show each apartment type code, and the maximum number of rooms for each type.", "question_toks": ["Show", "each", "apartment", "type", "code", ",", "and", "the", "maximum", "number", "of", "rooms", "for", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1264", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0074", "db_id": "apartment_rentals", "query": "select apt_type_code , min(room_count) from apartments group by apt_type_code", "query_toks": ["select", "apt_type_code", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "query_toks_no_value": ["select", "apt_type_code", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "question": "Return each apartment type code along with the minimum number of rooms among each type.", "question_toks": ["Return", "each", "apartment", "type", "code", "along", "with", "the", "minimum", "number", "of", "rooms", "among", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1265", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0075", "db_id": "game_injury", "query": "select name, avg(home_games) from stadium group by name;", "query_toks": ["select", "avg", "(", "home_games", ")", "from", "stadium"], "query_toks_no_value": ["select", "avg", "(", "home_games", ")", "from", "stadium"], "question": "What are the average home games each stadium held?", "question_toks": ["What", "are", "the", "average", "home", "games", "each", "stadium", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1277", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0076", "db_id": "soccer_1", "query": "select min(height) from player;", "query_toks": ["select", "min", "(", "weight", ")", "from", "player"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "player"], "question": "What is the minimum height of all players?", "question_toks": ["What", "is", "the", "minimum", "height", "of", "all", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 51, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1296", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0077", "db_id": "college_2", "query": "select avg(capacity) , building from classroom group by building", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "Find the average capacity among rooms in each building.", "question_toks": ["Find", "the", "average", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1394", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0078", "db_id": "college_2", "query": "select max(capacity) building from classroom group by building", "query_toks": ["select", "max", "(", "capacity", ")", "building", "from", "classroom", "group", "by", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", "building", "from", "classroom", "group", "by", "building"], "question": "Find the maximum capacity among rooms in each building.", "question_toks": ["Find", "the", "maximum", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0078", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0079", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "What is the greatest capacity for rooms in each building?", "question_toks": ["What", "is", "the", "greatest", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1395", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0080", "db_id": "college_2", "query": "select avg(capacity) , building from classroom group by building", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "What is the average capacity for rooms in each building?", "question_toks": ["What", "is", "the", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0080", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0081", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) from claim_headers", "query_toks": ["select", "sum", "(", "amount_piad", ")", "from", "claim_headers"], "query_toks_no_value": ["select", "sum", "(", "amount_piad", ")", "from", "claim_headers"], "question": "Find the total amount paid in claim headers.", "question_toks": ["Find", "the", "total", "amount", "paid", "in", "claim", "headers", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1515", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0082", "db_id": "insurance_and_eClaims", "query": "select avg(amount_piad) from claim_headers", "query_toks": ["select", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "query_toks_no_value": ["select", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "question": "What are the average amount paid in claim headers?", "question_toks": ["What", "are", "the", "average", "amount", "paid", "in", "claim", "headers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1516", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0083", "db_id": "customers_and_invoices", "query": "select sum(transaction_amount) from financial_transactions", "query_toks": ["select", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "What is the total transaction amount?", "question_toks": ["What", "is", "the", "total", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1583", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0084", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) from financial_transactions", "query_toks": ["select", "avg", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "What is the average transaction amount?", "question_toks": ["What", "is", "the", "average", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0084", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0085", "db_id": "customers_and_invoices", "query": "select min(transaction_amount) from financial_transactions", "query_toks": ["select", "min", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "min", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Return the minimum transaction amounts.", "question_toks": ["Return", "the", "minimum", "transaction", "amounts", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0085", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0086", "db_id": "wedding", "query": "select max(age) from people", "query_toks": ["select", "max", "(", "age", ")", "from", "people"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "people"], "question": "Show the maximum age for all people.", "question_toks": ["Show", "the", "maximum", "age", "for", "all", "people", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1638", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0087", "db_id": "theme_gallery", "query": "select avg(age) from artist where country = \"united states\"", "query_toks": ["select", "avg", "(", "age", ")", "from", "artist", "where", "country", "=", "``", "united", "states", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "artist", "where", "country", "=", "value", "states"], "question": "What is the average age of all artists from United States.", "question_toks": ["What", "is", "the", "average", "age", "of", "all", "artists", "from", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"united states\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1659", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0088", "db_id": "theme_gallery", "query": "select min(age) from artist where country = \"united states\"", "query_toks": ["select", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "``", "united", "states", "''"], "query_toks_no_value": ["select", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "value", "states"], "question": "Return the minimum ages across artists from the United States.", "question_toks": ["Return", "the", "minimum", "ages", "across", "artists", "from", "the", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"united states\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1660", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0089", "db_id": "theme_gallery", "query": "select max(ticket_price) from exhibition where year < 2009", "query_toks": ["select", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "2009"], "query_toks_no_value": ["select", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value"], "question": "Show the maximum ticket prices for exhibitions for all years before 2009.", "question_toks": ["Show", "the", "maximum", "ticket", "prices", "for", "exhibitions", "for", "all", "years", "before", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1675", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0090", "db_id": "theme_gallery", "query": "select avg(ticket_price) from exhibition where year < 2009", "query_toks": ["select", "avg", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "2009"], "query_toks_no_value": ["select", "avg", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value"], "question": "What are the average ticket prices for exhibitions that happened prior to 2009?", "question_toks": ["What", "are", "the", "average", "ticket", "prices", "for", "exhibitions", "that", "happened", "prior", "to", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1676", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0091", "db_id": "epinions_1", "query": "select max(rating) from review", "query_toks": ["select", "max", "(", "rating", ")", "from", "review"], "query_toks_no_value": ["select", "max", "(", "rating", ")", "from", "review"], "question": "Find the maximum rating of all reviews.", "question_toks": ["Find", "the", "maximum", "rating", "of", "all", "reviews", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1693", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0092", "db_id": "browser_web", "query": "select min(market_share) from browser", "query_toks": ["select", "min", "(", "market_share", ")", "from", "browser"], "query_toks_no_value": ["select", "min", "(", "market_share", ")", "from", "browser"], "question": "What is the minimum market share of the listed browsers?", "question_toks": ["What", "is", "the", "minimum", "market", "share", "of", "the", "listed", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1829", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0093", "db_id": "school_finance", "query": "select sum(enrollment) from school", "query_toks": ["select", "sum", "(", "enrollment", ")", "from", "school"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", "from", "school"], "question": "What is the total enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1888", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0094", "db_id": "school_finance", "query": "select avg(enrollment) from school", "query_toks": ["select", "avg", "(", "enrollment", ")", "from", "school"], "query_toks_no_value": ["select", "avg", "(", "enrollment", ")", "from", "school"], "question": "What is the average enrollment of all schools?", "question_toks": ["What", "is", "the", "average", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0094", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0095", "db_id": "school_finance", "query": "select min(enrollment) from school", "query_toks": ["select", "min", "(", "enrollment", ")", "from", "school"], "query_toks_no_value": ["select", "min", "(", "enrollment", ")", "from", "school"], "question": "Show the minimum enrollment of all schools.", "question_toks": ["Show", "the", "minimum", "enrollment", "of", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1891", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0096", "db_id": "protein_institute", "query": "select avg(floors) from building", "query_toks": ["select", "avg", "(", "floors", ")", "from", "building"], "query_toks_no_value": ["select", "avg", "(", "floors", ")", "from", "building"], "question": "What is the average number of floors for all buildings?", "question_toks": ["What", "is", "the", "average", "number", "of", "floors", "for", "all", "buildings", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1913", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0097", "db_id": "cinema", "query": "select min(capacity) from cinema where openning_year >= 2011", "query_toks": ["select", "min", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">=", "2011"], "query_toks_no_value": ["select", "min", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">=", "value"], "question": "Show the minimum capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "the", "minimum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1940", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0098", "db_id": "products_for_hire", "query": "select max(booked_count) from products_booked", "query_toks": ["select", "max", "(", "booked_count", ")", "from", "products_booked"], "query_toks_no_value": ["select", "max", "(", "booked_count", ")", "from", "products_booked"], "question": "What are the maximum booked count for the products booked?", "question_toks": ["What", "are", "the", "maximum", "booked", "count", "for", "the", "products", "booked", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1971", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0099", "db_id": "gas_company", "query": "select avg(market_value) from company", "query_toks": ["select", "avg", "(", "market_value", ")", "from", "company"], "query_toks_no_value": ["select", "avg", "(", "market_value", ")", "from", "company"], "question": "Show average market value for all companies.", "question_toks": ["Show", "average", "market", "value", "for", "all", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2001", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0100", "db_id": "gas_company", "query": "select company, min(market_value) from company group by company;", "query_toks": ["select", "min", "(", "market_value", ")", "from", "company"], "query_toks_no_value": ["select", "min", "(", "market_value", ")", "from", "company"], "question": "What is the minimum market value for every company?", "question_toks": ["What", "is", "the", "minimum", "market", "value", "for", "every", "company", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2002", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0101", "db_id": "candidate_poll", "query": "select avg(weight), sex from people group by sex", "query_toks": ["select", "avg", "(", "weight", "),", "sex", "from", "people", "group", "by", "sex"], "query_toks_no_value": ["select", "avg", "(", "weight", "),", "sex", "from", "people", "group", "by", "sex"], "question": "Find the average weight for each gender.", "question_toks": ["Find", "the", "average", "weight", "for", "each", "gender", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2412", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0102", "db_id": "candidate_poll", "query": "select min(weight) , sex from people group by sex", "query_toks": ["select", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "query_toks_no_value": ["select", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "question": "What is the minimum weights for people of each sex?", "question_toks": ["What", "is", "the", "minimum", "weights", "for", "people", "of", "each", "sex", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2413", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0103", "db_id": "movie_1", "query": "select min(stars) from rating", "query_toks": ["select", "min", "(", "stars", ")", "from", "rating"], "query_toks_no_value": ["select", "min", "(", "stars", ")", "from", "rating"], "question": "What is the lowest rating star?", "question_toks": ["What", "is", "the", "lowest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2450", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0104", "db_id": "movie_1", "query": "select max(stars) from rating", "query_toks": ["select", "max", "(", "stars", ")", "from", "rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", "from", "rating"], "question": "What is the highest rating star?", "question_toks": ["What", "is", "the", "highest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0104", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0105", "db_id": "movie_1", "query": "select max(stars) from rating", "query_toks": ["select", "max", "(", "stars", ")", "from", "rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", "from", "rating"], "question": "What is the maximum number of stars a rating can receive?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "stars", "a", "rating", "can", "receive", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2451", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0106", "db_id": "county_public_safety", "query": "select min(crime_rate) from county_public_safety", "query_toks": ["select", "min", "(", "crime_rate", ")", "from", "county_public_safety"], "query_toks_no_value": ["select", "min", "(", "crime_rate", ")", "from", "county_public_safety"], "question": "What is the minimum crime rate of counties?", "question_toks": ["What", "is", "the", "minimum", "crime", "rate", "of", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2538", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0107", "db_id": "county_public_safety", "query": "select max(crime_rate) from county_public_safety", "query_toks": ["select", "max", "(", "crime_rate", ")", "from", "county_public_safety"], "query_toks_no_value": ["select", "max", "(", "crime_rate", ")", "from", "county_public_safety"], "question": "Return the maximum crime rates across all counties.", "question_toks": ["Return", "the", "maximum", "crime", "rates", "across", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2539", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0108", "db_id": "inn_1", "query": "select decor , avg(baseprice) from rooms group by decor", "query_toks": ["select", "decor", ",", "avg", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "query_toks_no_value": ["select", "decor", ",", "avg", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "question": "Find the average price of the rooms in different decor.", "question_toks": ["Find", "the", "average", "price", "of", "the", "rooms", "in", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [5, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2620", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0109", "db_id": "inn_1", "query": "select decor , min(baseprice) from rooms group by decor", "query_toks": ["select", "decor", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "query_toks_no_value": ["select", "decor", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "question": "What is the minimum price of the rooms for each different decor.", "question_toks": ["What", "is", "the", "minimum", "price", "of", "the", "rooms", "for", "each", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0109", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0110", "db_id": "storm_record", "query": "select avg(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["select", "avg", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "1000"], "query_toks_no_value": ["select", "avg", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value"], "question": "Show the average damage for all storms with max speed higher than 1000.", "question_toks": ["Show", "the", "average", "damage", "for", "all", "storms", "with", "max", "speed", "higher", "than", "1000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2702", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0111", "db_id": "storm_record", "query": "select max(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["select", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "1000"], "query_toks_no_value": ["select", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value"], "question": "What is the maximum damage in millions for storms that had a max speed over 1000?", "question_toks": ["What", "is", "the", "maximum", "damage", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "over", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2703", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0112", "db_id": "election", "query": "select min(population) from county", "query_toks": ["select", "min", "(", "population", ")", "from", "county"], "query_toks_no_value": ["select", "min", "(", "population", ")", "from", "county"], "question": "Return the minimum population among all counties.", "question_toks": ["Return", "the", "minimum", "population", "among", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2740", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0113", "db_id": "election", "query": "select max(population) from county", "query_toks": ["select", "max", "(", "population", ")", "from", "county"], "query_toks_no_value": ["select", "max", "(", "population", ")", "from", "county"], "question": "What is the maximum population of the counties?", "question_toks": ["What", "is", "the", "maximum", "population", "of", "the", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2741", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0114", "db_id": "news_report", "query": "select avg(event_attendance) from event", "query_toks": ["select", "avg", "(", "event_attendance", ")", "from", "event"], "query_toks_no_value": ["select", "avg", "(", "event_attendance", ")", "from", "event"], "question": "what is the average attendance of all events?", "question_toks": ["what", "is", "the", "average", "attendance", "of", "all", "events", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2817", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0115", "db_id": "behavior_monitoring", "query": "select max(monthly_rental) from student_addresses", "query_toks": ["select", "max", "(", "monthly_rental", ")", "from", "student_addresses"], "query_toks_no_value": ["select", "max", "(", "monthly_rental", ")", "from", "student_addresses"], "question": "Find the maximum monthly rental for all student addresses.", "question_toks": ["Find", "the", "maximum", "monthly", "rental", "for", "all", "student", "addresses", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[1, [0, [0, 60, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3098", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0116", "db_id": "college_1", "query": "select min(stu_gpa), dept_code from student group by dept_code", "query_toks": ["select", "min", "(", "stu_gpa", "),", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "min", "(", "stu_gpa", "),", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "Find the minimum gpa of all students in each department.", "question_toks": ["Find", "the", "minimum", "gpa", "of", "all", "students", "in", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3221", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0117", "db_id": "college_1", "query": "select max(stu_gpa), dept_code from student group by dept_code", "query_toks": ["select", "max", "(", "stu_gpa", "),", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", "),", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What is the highest student GPA for every department?", "question_toks": ["What", "is", "the", "highest", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3222", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0118", "db_id": "college_1", "query": "select min(stu_gpa), dept_code from student group by dept_code", "query_toks": ["select", "min", "(", "stu_gpa", "),", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "min", "(", "stu_gpa", "),", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What is the lowest student GPA for every department?", "question_toks": ["What", "is", "the", "lowest", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0118", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0119", "db_id": "college_1", "query": "select avg(stu_gpa), dept_code from student group by dept_code", "query_toks": ["select", "avg", "(", "stu_gpa", "),", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "avg", "(", "stu_gpa", "),", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What is the average student GPA for every department?", "question_toks": ["What", "is", "the", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0119", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0120", "db_id": "sports_competition", "query": "select max(silver) from club_rank", "query_toks": ["select", "max", "(", "silver", ")", "from", "club_rank"], "query_toks_no_value": ["select", "max", "(", "silver", ")", "from", "club_rank"], "question": "What is the maximum number of silver medals for clubs.", "question_toks": ["What", "is", "the", "maximum", "number", "of", "silver", "medals", "for", "clubs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3347", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0121", "db_id": "sports_competition", "query": "select min(silver) from club_rank", "query_toks": ["select", "min", "(", "silver", ")", "from", "club_rank"], "query_toks_no_value": ["select", "min", "(", "silver", ")", "from", "club_rank"], "question": "What is the minimum number of silver medals for all the clubs?", "question_toks": ["What", "is", "the", "minimum", "number", "of", "silver", "medals", "for", "all", "the", "clubs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3348", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0122", "db_id": "music_1", "query": "select max(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["select", "max", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "``", "3", ":%\""], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", ":%\""], "question": "What is the maximum resolution of songs whose duration is 3 minutes?", "question_toks": ["What", "is", "the", "maximum", "resolution", "of", "songs", "whose", "duration", "is", "3", "minutes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3599", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0123", "db_id": "music_1", "query": "select min(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["select", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "``", "3", ":%\""], "query_toks_no_value": ["select", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", ":%\""], "question": "What is the minimum resolution of all songs that are approximately 3 minutes long?", "question_toks": ["What", "is", "the", "minimum", "resolution", "of", "all", "songs", "that", "are", "approximately", "3", "minutes", "long", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3600", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0124", "db_id": "mountain_photos", "query": "select avg(height) from mountain", "query_toks": ["select", "avg", "(", "height", ")", "from", "mountain"], "query_toks_no_value": ["select", "avg", "(", "height", ")", "from", "mountain"], "question": "What is the average height of the mountains?", "question_toks": ["What", "is", "the", "average", "height", "of", "the", "mountains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3714", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0125", "db_id": "hospital_1", "query": "select max(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", "from", "procedures"], "question": "What is the highest cost of procedures?", "question_toks": ["What", "is", "the", "highest", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3966", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0126", "db_id": "hospital_1", "query": "select min(cost) from procedures", "query_toks": ["select", "min", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "min", "(", "cost", ")", "from", "procedures"], "question": "What is the lowest cost of procedures?", "question_toks": ["What", "is", "the", "lowest", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0126", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0127", "db_id": "hospital_1", "query": "select avg(cost) from procedures", "query_toks": ["select", "avg", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "avg", "(", "cost", ")", "from", "procedures"], "question": "What is the average cost of procedures?", "question_toks": ["What", "is", "the", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0127", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0128", "db_id": "hospital_1", "query": "select max(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", "from", "procedures"], "question": "Tell me the highest cost of procedures.", "question_toks": ["Tell", "me", "the", "highest", "cost", "of", "procedures", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3967", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0129", "db_id": "company_employee", "query": "select max(market_value_in_billion) from company", "query_toks": ["select", "max", "(", "market_value_in_billion", ")", "from", "company"], "query_toks_no_value": ["select", "max", "(", "market_value_in_billion", ")", "from", "company"], "question": "What is the maximum market value of companies?", "question_toks": ["What", "is", "the", "maximum", "market", "value", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4100", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0130", "db_id": "film_rank", "query": "select min(number_cities) from market", "query_toks": ["select", "min", "(", "number_cities", ")", "from", "market"], "query_toks_no_value": ["select", "min", "(", "number_cities", ")", "from", "market"], "question": "What is the minimum number of cities in all markets.", "question_toks": ["What", "is", "the", "minimum", "number", "of", "cities", "in", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4122", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0131", "db_id": "film_rank", "query": "select max(number_cities) from market", "query_toks": ["select", "max", "(", "number_cities", ")", "from", "market"], "query_toks_no_value": ["select", "max", "(", "number_cities", ")", "from", "market"], "question": "Return the maximum number of cities across all markets.", "question_toks": ["Return", "the", "maximum", "number", "of", "cities", "across", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4123", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0132", "db_id": "company_office", "query": "select min(sales_billion) from companies where industry != \"banking\"", "query_toks": ["select", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!=", "``", "banking", "''"], "query_toks_no_value": ["select", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!=", "value"], "question": "What is the minimum sales of the companies whose industries are not \"Banking\".", "question_toks": ["What", "is", "the", "minimum", "sales", "of", "the", "companies", "whose", "industries", "are", "not", "\"", "Banking", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4553", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0133", "db_id": "company_office", "query": "select max(sales_billion) from companies where industry != \"banking\"", "query_toks": ["select", "max", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!=", "``", "banking", "''"], "query_toks_no_value": ["select", "max", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!=", "value"], "question": "Find the maximum sales of the companies that are not in the \"Banking\" industry.", "question_toks": ["Find", "the", "maximum", "sales", "of", "the", "companies", "that", "are", "not", "in", "the", "\"", "Banking", "\"", "industry", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4554", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0134", "db_id": "college_3", "query": "select min(gradepoint) from gradeconversion", "query_toks": ["select", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "query_toks_no_value": ["select", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "Find the min grade point for all letter grade.", "question_toks": ["Find", "the", "min", "grade", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4649", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0135", "db_id": "college_3", "query": "select max(gradepoint) from gradeconversion", "query_toks": ["select", "max", "(", "gradepoint", ")", "from", "gradeconversion"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "Find the max grade point for all letter grade.", "question_toks": ["Find", "the", "max", "grade", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0135", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0136", "db_id": "college_3", "query": "select max(gradepoint) from gradeconversion", "query_toks": ["select", "max", "(", "gradepoint", ")", "from", "gradeconversion"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "What is the maximum grade points?", "question_toks": ["What", "is", "the", "maximum", "grade", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4650", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0137", "db_id": "college_3", "query": "select min(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["select", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "``", "nyc", "''"], "query_toks_no_value": ["select", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value"], "question": "What is the minimum grade point of students who live in NYC?", "question_toks": ["What", "is", "the", "minimum", "grade", "point", "of", "students", "who", "live", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[2, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"nyc\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4701", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0138", "db_id": "college_3", "query": "select max(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["select", "max", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "``", "nyc", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value"], "question": "Give the maximum gradepoints for students living in NYC?", "question_toks": ["Give", "the", "maximum", "gradepoints", "for", "students", "living", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"nyc\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4702", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0139", "db_id": "department_store", "query": "select max(customer_code) from customers", "query_toks": ["select", "max", "(", "customer_code", ")", "from", "customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", "from", "customers"], "question": "What is the largest customer codes?", "question_toks": ["What", "is", "the", "largest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4775", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0140", "db_id": "department_store", "query": "select min(customer_code) from customers", "query_toks": ["select", "min", "(", "customer_code", ")", "from", "customers"], "query_toks_no_value": ["select", "min", "(", "customer_code", ")", "from", "customers"], "question": "What is the smallest customer codes?", "question_toks": ["What", "is", "the", "smallest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0140", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0141", "db_id": "department_store", "query": "select max(customer_code) from customers", "query_toks": ["select", "max", "(", "customer_code", ")", "from", "customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", "from", "customers"], "question": "Return the maximum customer codes.", "question_toks": ["Return", "the", "maximum", "customer", "codes", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4776", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0142", "db_id": "department_store", "query": "select max(product_price) from products group by product_type_code order by product_type_code", "query_toks": ["select", "max", "(", "product_price", ")", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "What is the highest price of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "is", "the", "highest", "price", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4781", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0143", "db_id": "department_store", "query": "select min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["select", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "query_toks_no_value": ["select", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "What is the lowest price of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "is", "the", "lowest", "price", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0143", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0144", "db_id": "department_store", "query": "select max(product_price), product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["select", "max", "(", "product_price", "),", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", "),", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "Give the maximum product price for each product type, grouped and ordered by product type.", "question_toks": ["Give", "the", "maximum", "product", "price", "for", "each", "product", "type", ",", "grouped", "and", "ordered", "by", "product", "type", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4782", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0145", "db_id": "aircraft", "query": "select min(transit_passengers) from airport", "query_toks": ["select", "min", "(", "transit_passengers", ")", "from", "airport"], "query_toks_no_value": ["select", "min", "(", "transit_passengers", ")", "from", "airport"], "question": "What is the minimum number of transit passengers of all aiports.", "question_toks": ["What", "is", "the", "minimum", "number", "of", "transit", "passengers", "of", "all", "aiports", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4807", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0146", "db_id": "aircraft", "query": "select min(transit_passengers) from airport", "query_toks": ["select", "min", "(", "transit_passengers", ")", "from", "airport"], "query_toks_no_value": ["select", "min", "(", "transit_passengers", ")", "from", "airport"], "question": "What is the mininum number of transit passengers for all airports?", "question_toks": ["What", "is", "the", "mininum", "number", "of", "transit", "passengers", "for", "all", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4808", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0147", "db_id": "soccer_2", "query": "select min(hs) from player", "query_toks": ["select", "min", "(", "hs", ")", "from", "player"], "query_toks_no_value": ["select", "min", "(", "hs", ")", "from", "player"], "question": "Find the min training hours of all players.", "question_toks": ["Find", "the", "min", "training", "hours", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4966", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0148", "db_id": "soccer_2", "query": "select avg(hs) from player", "query_toks": ["select", "avg", "(", "hs", ")", "from", "player"], "query_toks_no_value": ["select", "avg", "(", "hs", ")", "from", "player"], "question": "What is the average for the number of hours spent training?", "question_toks": ["What", "is", "the", "average", "for", "the", "number", "of", "hours", "spent", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4967", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0149", "db_id": "soccer_2", "query": "select avg(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["select", "avg", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "Find the average hours for the students whose tryout decision is yes.", "question_toks": ["Find", "the", "average", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "yes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5010", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0150", "db_id": "soccer_2", "query": "select max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["select", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "What is the maximum number of hours students who made the team practiced?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5011", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0151", "db_id": "cre_Drama_Workshop_Groups", "query": "select avg(order_quantity) from invoices", "query_toks": ["select", "avg", "(", "order_quantity", ")", "from", "invoices"], "query_toks_no_value": ["select", "avg", "(", "order_quantity", ")", "from", "invoices"], "question": "Show the average order quantity of all invoices.", "question_toks": ["Show", "the", "average", "order", "quantity", "of", "all", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[5, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5102", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0152", "db_id": "cre_Drama_Workshop_Groups", "query": "select min(order_quantity) from invoices", "query_toks": ["select", "min", "(", "order_quantity", ")", "from", "invoices"], "query_toks_no_value": ["select", "min", "(", "order_quantity", ")", "from", "invoices"], "question": "What is the minimum quantity ordered? Check all the invoices.", "question_toks": ["What", "is", "the", "minimum", "quantity", "ordered", "?", "Check", "all", "the", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[2, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5103", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0153", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers", "query_toks": ["select", "sum", "(", "revenue", ")", "from", "manufacturers"], "query_toks_no_value": ["select", "sum", "(", "revenue", ")", "from", "manufacturers"], "question": "What is the total revenue of all companies?", "question_toks": ["What", "is", "the", "total", "revenue", "of", "all", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5278", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0154", "db_id": "manufactory_1", "query": "select avg(revenue) from manufacturers", "query_toks": ["select", "avg", "(", "revenue", ")", "from", "manufacturers"], "query_toks_no_value": ["select", "avg", "(", "revenue", ")", "from", "manufacturers"], "question": "Return the average revenue across all manufacturers.", "question_toks": ["Return", "the", "average", "revenue", "across", "all", "manufacturers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5279", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0155", "db_id": "shop_membership", "query": "select min(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["select", "min", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "2011", "or", "city", "=", "``", "london", "''"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "Show minimum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": ["Show", "minimum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5410", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0156", "db_id": "shop_membership", "query": "select max(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["select", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "2011", "or", "city", "=", "``", "london", "''"], "query_toks_no_value": ["select", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "What is the maximum membership amount for all branches that either opened in 2011 or are located in London?", "question_toks": ["What", "is", "the", "maximum", "membership", "amount", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5411", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0157", "db_id": "voter_2", "query": "select min(age) from student where major = 600", "query_toks": ["select", "min", "(", "age", ")", "from", "student", "where", "major", "=", "600"], "query_toks_no_value": ["select", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "What is the minimum age of students with major 600?", "question_toks": ["What", "is", "the", "minimum", "age", "of", "students", "with", "major", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5460", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0158", "db_id": "voter_2", "query": "select max(age) from student where major = 600", "query_toks": ["select", "max", "(", "age", ")", "from", "student", "where", "major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "Tell me the ages of the oldest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "oldest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5461", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0159", "db_id": "voter_2", "query": "select min(age) from student where major = 600", "query_toks": ["select", "min", "(", "age", ")", "from", "student", "where", "major", "=", "600"], "query_toks_no_value": ["select", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "Tell me the ages of the youngest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "youngest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0159", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0160", "db_id": "customers_and_products_contacts", "query": "select avg(product_price) from products", "query_toks": ["select", "avg", "(", "product_price", ")", "from", "products"], "query_toks_no_value": ["select", "avg", "(", "product_price", ")", "from", "products"], "question": "Show the average price for all products.", "question_toks": ["Show", "the", "average", "price", "for", "all", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5662", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0161", "db_id": "dorm_1", "query": "select sum(student_capacity) from dorm where gender = \"x\"", "query_toks": ["select", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "``", "x", "''"], "query_toks_no_value": ["select", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value"], "question": "Find the total capacity of dorms for the students with gender X.", "question_toks": ["Find", "the", "total", "capacity", "of", "dorms", "for", "the", "students", "with", "gender", "X", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"x\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5688", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0162", "db_id": "dorm_1", "query": "select avg(student_capacity) from dorm where gender = \"x\"", "query_toks": ["select", "avg", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "``", "x", "''"], "query_toks_no_value": ["select", "avg", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value"], "question": "What is the average capacity for all dorms who are of gender X?", "question_toks": ["What", "is", "the", "average", "capacity", "for", "all", "dorms", "who", "are", "of", "gender", "X", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"x\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5689", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0163", "db_id": "dorm_1", "query": "select max(age) , sex from student group by sex", "query_toks": ["select", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "question": "Find the oldest age for students with different sex.", "question_toks": ["Find", "the", "oldest", "age", "for", "students", "with", "different", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5722", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0164", "db_id": "dorm_1", "query": "select avg(age), sex from student group by sex", "query_toks": ["select", "avg", "(", "age", "),", "sex", "from", "student", "group", "by", "sex"], "query_toks_no_value": ["select", "avg", "(", "age", "),", "sex", "from", "student", "group", "by", "sex"], "question": "What is the average age for each gender of student?", "question_toks": ["What", "is", "the", "average", "age", "for", "each", "gender", "of", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5723", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0165", "db_id": "music_4", "query": "select max(weeks_on_top) from volume", "query_toks": ["select", "max", "(", "weeks_on_top", ")", "from", "volume"], "query_toks_no_value": ["select", "max", "(", "weeks_on_top", ")", "from", "volume"], "question": "What is the maximum week on top of all volumes?", "question_toks": ["What", "is", "the", "maximum", "week", "on", "top", "of", "all", "volumes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6157", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0166", "db_id": "music_4", "query": "select min(weeks_on_top) from volume", "query_toks": ["select", "min", "(", "weeks_on_top", ")", "from", "volume"], "query_toks_no_value": ["select", "min", "(", "weeks_on_top", ")", "from", "volume"], "question": "Give the minimum weeks on top across all volumes.", "question_toks": ["Give", "the", "minimum", "weeks", "on", "top", "across", "all", "volumes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6158", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0167", "db_id": "ship_1", "query": "select avg(age), class from captain group by class", "query_toks": ["select", "avg", "(", "age", "),", "class", "from", "captain", "group", "by", "class"], "query_toks_no_value": ["select", "avg", "(", "age", "),", "class", "from", "captain", "group", "by", "class"], "question": "What is the average age of captains in different class?", "question_toks": ["What", "is", "the", "average", "age", "of", "captains", "in", "different", "class", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6236", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0168", "db_id": "ship_1", "query": "select min(age), class from captain group by class", "query_toks": ["select", "min", "(", "age", "),", "class", "from", "captain", "group", "by", "class"], "query_toks_no_value": ["select", "min", "(", "age", "),", "class", "from", "captain", "group", "by", "class"], "question": "Return the minimum age of captains in each class.", "question_toks": ["Return", "the", "minimum", "age", "of", "captains", "in", "each", "class", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6237", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0169", "db_id": "school_bus", "query": "select max(years_working) from school_bus", "query_toks": ["select", "max", "(", "years_working", ")", "from", "school_bus"], "query_toks_no_value": ["select", "max", "(", "years_working", ")", "from", "school_bus"], "question": "What is the maximum year spent working on a school bus?", "question_toks": ["What", "is", "the", "maximum", "year", "spent", "working", "on", "a", "school", "bus", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6360", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0170", "db_id": "driving_school", "query": "select avg(amount_outstanding) from customers", "query_toks": ["select", "avg", "(", "amount_outstanding", ")", "from", "customers"], "query_toks_no_value": ["select", "avg", "(", "amount_outstanding", ")", "from", "customers"], "question": "What is average amount of outstanding of customer?", "question_toks": ["What", "is", "average", "amount", "of", "outstanding", "of", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6678", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0171", "db_id": "driving_school", "query": "select max(amount_outstanding) from customers", "query_toks": ["select", "max", "(", "amount_outstanding", ")", "from", "customers"], "query_toks_no_value": ["select", "max", "(", "amount_outstanding", ")", "from", "customers"], "question": "What is the maximum amount of money outsanding for all customers?", "question_toks": ["What", "is", "the", "maximum", "amount", "of", "money", "outsanding", "for", "all", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6679", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0172", "db_id": "culture_company", "query": "select avg(budget_million) from movie where year < 2000", "query_toks": ["select", "avg", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "2000"], "query_toks_no_value": ["select", "avg", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value"], "question": "What is the average budget for all movies before 2000.", "question_toks": ["What", "is", "the", "average", "budget", "for", "all", "movies", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6992", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0173", "db_id": "culture_company", "query": "select min(budget_million) from movie where year < 2000", "query_toks": ["select", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "2000"], "query_toks_no_value": ["select", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value"], "question": "Return the minimum budgets in millions for movies made before the year 2000.", "question_toks": ["Return", "the", "minimum", "budgets", "in", "millions", "for", "movies", "made", "before", "the", "year", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6993", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "hidden_sum_0000", "db_id": "sports_competition", "query": "select sum(points) from player", "query_toks": ["select", "sum", "(", "points", ")", "from", "player"], "query_toks_no_value": ["select", "sum", "(", "points", ")", "from", "player"], "question": "Show sum points of all players.", "question_toks": ["Show", "sum", "points", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3375", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0001", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "``", "david", "''", "and", "t2", ".", "lname", "=", "``", "shieber", "''"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value"], "question": "Show sum of hours per week and nubmer of games played for student David Shieber.", "question_toks": ["Show", "sum", "of", "hours", "per", "week", "and", "nubmer", "of", "games", "played", "for", "student", "David", "Shieber", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6029", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0002", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "20"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "value"], "question": "Show sum of hours per week and number of games played for students under 20.", "question_toks": ["Show", "sum", "of", "hours", "per", "week", "and", "number", "of", "games", "played", "for", "students", "under", "20", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6031", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0003", "db_id": "employee_hire_evaluation", "query": "select sum(bonus) from evaluation", "query_toks": ["select", "sum", "(", "bonus", ")", "from", "evaluation"], "query_toks_no_value": ["select", "sum", "(", "bonus", ")", "from", "evaluation"], "question": "What is sum of bonus given in all evaluations?", "question_toks": ["What", "is", "sum", "of", "bonus", "given", "in", "all", "evaluations", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0289", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0004", "db_id": "cinema", "query": "select t2.name , sum(t1.show_times_per_day) from schedule as t1 join cinema as t2 on t1.cinema_id = t2.cinema_id group by t1.cinema_id", "query_toks": ["select", "t2", ".", "name", ",", "sum", "(", "t1", ".", "show_times_per_day", ")", "from", "schedule", "as", "t1", "join", "cinema", "as", "t2", "on", "t1", ".", "cinema_id", "=", "t2", ".", "cinema_id", "group", "by", "t1", ".", "cinema_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "sum", "(", "t1", ".", "show_times_per_day", ")", "from", "schedule", "as", "t1", "join", "cinema", "as", "t2", "on", "t1", ".", "cinema_id", "=", "t2", ".", "cinema_id", "group", "by", "t1", ".", "cinema_id"], "question": "What is the sum of show times per day for each cinema?", "question_toks": ["What", "is", "the", "sum", "of", "show", "times", "per", "day", "for", "each", "cinema", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [4, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_sum_0004", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0005", "db_id": "scientist_1", "query": "select sum(hours) from projects", "query_toks": ["select", "sum", "(", "hours", ")", "from", "projects"], "query_toks_no_value": ["select", "sum", "(", "hours", ")", "from", "projects"], "question": "Find the sum of hours of all projects.", "question_toks": ["Find", "the", "sum", "of", "hours", "of", "all", "projects", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6471", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0006", "db_id": "college_1", "query": "select sum(t1.crs_credit) , t1.dept_code from course as t1 join class as t2 on t1.crs_code = t2.crs_code group by t1.dept_code", "query_toks": ["select", "sum", "(", "t1", ".", "crs_credit", ")", ",", "t1", ".", "dept_code", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "group", "by", "t1", ".", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "crs_credit", ")", ",", "t1", ".", "dept_code", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "group", "by", "t1", ".", "dept_code"], "question": "Find the sum of credits of all classes offered by each department.", "question_toks": ["Find", "the", "sum", "of", "credits", "of", "all", "classes", "offered", "by", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3237", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0007", "db_id": "dorm_1", "query": "select sum(student_capacity) from dorm", "query_toks": ["select", "sum", "(", "student_capacity", ")", "from", "dorm"], "query_toks_no_value": ["select", "sum", "(", "student_capacity", ")", "from", "dorm"], "question": "Find the sum of capacity of all dorms.", "question_toks": ["Find", "the", "sum", "of", "capacity", "of", "all", "dorms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5682", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0008", "db_id": "document_management", "query": "select sum(access_count) from documents group by document_type_code order by count(*) desc limit 1", "query_toks": ["select", "sum", "(", "access_count", ")", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "sum", "(", "access_count", ")", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Find the sum of access count of all documents in the most popular document type.", "question_toks": ["Find", "the", "sum", "of", "access", "count", "of", "all", "documents", "in", "the", "most", "popular", "document", "type", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4505", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0009", "db_id": "insurance_policies", "query": "select sum(amount_claimed) from claims", "query_toks": ["select", "sum", "(", "amount_claimed", ")", "from", "claims"], "query_toks_no_value": ["select", "sum", "(", "amount_claimed", ")", "from", "claims"], "question": "Find the sum of claimed amount of all the claims.", "question_toks": ["Find", "the", "sum", "of", "claimed", "amount", "of", "all", "the", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3896", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0010", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_facilities as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t1.facility_code = \"gym\"", "query_toks": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "``", "gym", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "value"], "question": "Show the sum of number of rooms of all apartments with facility code \"Gym\".", "question_toks": ["Show", "the", "sum", "of", "number", "of", "rooms", "of", "all", "apartments", "with", "facility", "code", "\"", "Gym", "\"."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"gym\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1240", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0011", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid where t1.name != \"brown\"", "query_toks": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "!=", "``", "brown", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "!=", "value"], "question": "Find the sum of savings balance of all accounts except the account with name \u2018Brown\u2019.", "question_toks": ["Find", "the", "sum", "of", "savings", "balance", "of", "all", "accounts", "except", "the", "account", "with", "name", "\u2018", "Brown", "\u2019."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], "\"brown\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1776", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0012", "db_id": "program_share", "query": "select sum(share_in_percent) from channel where owner = \"cctv\"", "query_toks": ["select", "sum", "(", "share_in_percent", ")", "from", "channel", "where", "owner", "=", "``", "cctv", "''"], "query_toks_no_value": ["select", "sum", "(", "share_in_percent", ")", "from", "channel", "where", "owner", "=", "value"], "question": "find the sum of percentage share of all channels owned by CCTV.", "question_toks": ["find", "the", "sum", "of", "percentage", "share", "of", "all", "channels", "owned", "by", "CCTV", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cctv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3742", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0013", "db_id": "employee_hire_evaluation", "query": "select sum(bonus) from evaluation", "query_toks": ["select", "sum", "(", "bonus", ")", "from", "evaluation"], "query_toks_no_value": ["select", "sum", "(", "bonus", ")", "from", "evaluation"], "question": "Find the sum of bonus given in all the evaluations.", "question_toks": ["Find", "the", "sum", "of", "bonus", "given", "in", "all", "the", "evaluations", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0290", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0014", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "Find the sum number of hours have done for all students in each department.", "question_toks": ["Find", "the", "sum", "number", "of", "hours", "have", "done", "for", "all", "students", "in", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3219", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0015", "db_id": "entrepreneur", "query": "select sum(t1.money_requested) from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id where t2.height > 1.85", "query_toks": ["select", "sum", "(", "t1", ".", "money_requested", ")", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "1", ".", "85"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "money_requested", ")", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value", ".", "85"], "question": "Give the sum money requested by entrepreneurs who are taller than 1.85.", "question_toks": ["Give", "the", "sum", "money", "requested", "by", "entrepreneurs", "who", "are", "taller", "than", "1", ".", "85", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 1.85, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2282", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0016", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "query_toks_no_value": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "question": "What the sum of tours were there for each ranking date?", "question_toks": ["What", "the", "sum", "of", "tours", "were", "there", "for", "each", "ranking", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0480", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0017", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "query_toks_no_value": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "question": "Sum of credits are offered by each department?", "question_toks": ["Sum", "of", "credits", "are", "offered", "by", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1399", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0018", "db_id": "wta_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the sum of ranking points for each player and their first name.", "question_toks": ["Find", "the", "sum", "of", "ranking", "points", "for", "each", "player", "and", "their", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[4, [0, [0, 42, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0471", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0019", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "query_toks_no_value": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "question": "Find the sum of tours for each ranking date.", "question_toks": ["Find", "the", "sum", "of", "tours", "for", "each", "ranking", "date", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0479", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0020", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\" or continent = \"europe\"", "query_toks": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "asia", "''", "or", "continent", "=", "``", "europe", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value"], "question": "Give the sum of surface area covered by countries in Asia or Europe.", "question_toks": ["Give", "the", "sum", "of", "surface", "area", "covered", "by", "countries", "in", "Asia", "or", "Europe", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0727", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0021", "db_id": "world_1", "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "query_toks": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "north", "america", "''", "and", "surfacearea", ">", "3000"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "america", "and", "surfacearea", ">", "value"], "question": "Give the sum of population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", "question_toks": ["Give", "the", "sum", "of", "population", "and", "average", "surface", "area", "corresponding", "to", "countries", "in", "North", "America", "that", "have", "a", "surface", "area", "greater", "than", "3000", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [5, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null], "and", [false, 3, [0, [0, 12, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0811", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0022", "db_id": "manufacturer", "query": "select sum(market_rate) from furniture order by market_rate desc limit 2", "query_toks": ["select", "sum", "(", "market_rate", ")", "from", "furniture", "order", "by", "market_rate", "desc", "limit", "2"], "query_toks_no_value": ["select", "sum", "(", "market_rate", ")", "from", "furniture", "order", "by", "market_rate", "desc", "limit", "2"], "question": "find the sum of the market rate of the furnitures that have the top 2 market shares.", "question_toks": ["find", "the", "sum", "of", "the", "market", "rate", "of", "the", "furnitures", "that", "have", "the", "top", "2", "market", "shares", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": 2, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3391", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0023", "db_id": "hr_1", "query": "select department_id , sum(salary) from employees group by department_id having count(*) >= 2", "query_toks": ["select", "department_id", ",", "sum", "(", "salary", ")", "from", "employees", "group", "by", "department_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "department_id", ",", "sum", "(", "salary", ")", "from", "employees", "group", "by", "department_id", "having", "count", "(*)", ">=", "2"], "question": "What are sum of the salaries and department id for each department that has more than 2 employees?", "question_toks": ["What", "are", "sum", "of", "the", "salaries", "and", "department", "id", "for", "each", "department", "that", "has", "more", "than", "2", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3512", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0024", "db_id": "yelp", "query": "select sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"restaurant\" and t3.category_name = \"moroccan\"", "query_toks": ["select", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "``", "los", "angeles", "''", "and", "t2", ".", "category_name", "=", "``", "restaurant", "''", "and", "t3", ".", "category_name", "=", "``", "moroccan", "''"], "query_toks_no_value": ["select", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "value", "angeles", "and", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value"], "question": "find the sum of checkins in Moroccan restaurant in \" Los Angeles \"", "question_toks": ["find", "the", "sum", "of", "checkins", "in", "Moroccan", "restaurant", "in", "\"", "Los", "Angeles", "\""], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"los angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"moroccan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1189", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0025", "db_id": "yelp", "query": "select sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"moroccan\" and t3.category_name = \"restaurant\" and t4.day = \"friday\"", "query_toks": ["select", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "``", "los", "angeles", "''", "and", "t2", ".", "category_name", "=", "``", "moroccan", "''", "and", "t3", ".", "category_name", "=", "``", "restaurant", "''", "and", "t4", ".", "day", "=", "``", "friday", "''"], "query_toks_no_value": ["select", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "value", "angeles", "and", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "and", "t4", ".", "day", "=", "value"], "question": "find the sum of checkins in Moroccan restaurant in \" Los Angeles \" on Friday", "question_toks": ["find", "the", "sum", "of", "checkins", "in", "Moroccan", "restaurant", "in", "\"", "Los", "Angeles", "\"", "on", "Friday"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"los angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"moroccan\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"friday\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1190", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0026", "db_id": "yelp", "query": "select t4.day , sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"moroccan\" and t3.category_name = \"restaurant\" group by t4.day", "query_toks": ["select", "t4", ".", "day", ",", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "``", "los", "angeles", "''", "and", "t2", ".", "category_name", "=", "``", "moroccan", "''", "and", "t3", ".", "category_name", "=", "``", "restaurant", "''", "group", "by", "t4", ".", "day"], "query_toks_no_value": ["select", "t4", ".", "day", ",", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "value", "angeles", "and", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "group", "by", "t4", ".", "day"], "question": "find the sum of checkins in Moroccan restaurant in \" Los Angeles \" per day", "question_toks": ["find", "the", "sum", "of", "checkins", "in", "Moroccan", "restaurant", "in", "\"", "Los", "Angeles", "\"", "per", "day"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"los angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"moroccan\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null]], "groupBy": [[0, 21, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1191", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0027", "db_id": "yelp", "query": "select t1.state , sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t2.category_name = \"italian\" and t3.category_name = \"delis\" and t4.day = \"sunday\" group by t1.state", "query_toks": ["select", "t1", ".", "state", ",", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t2", ".", "category_name", "=", "``", "italian", "''", "and", "t3", ".", "category_name", "=", "``", "delis", "''", "and", "t4", ".", "day", "=", "``", "sunday", "''", "group", "by", "t1", ".", "state"], "query_toks_no_value": ["select", "t1", ".", "state", ",", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "and", "t4", ".", "day", "=", "value", "group", "by", "t1", ".", "state"], "question": "find the sum of checkins in Italian Delis in each state on Sunday", "question_toks": ["find", "the", "sum", "of", "checkins", "in", "Italian", "Delis", "in", "each", "state", "on", "Sunday"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"italian\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"delis\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"sunday\"", null]], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1192", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0028", "db_id": "yelp", "query": "select sum ( t3.count ) from checkin as t3 join business as t1 on t3.business_id = t1.business_id join neighbourhood as t2 on t2.business_id = t1.business_id where t2.neighbourhood_name = \"brighton heights\"", "query_toks": ["select", "sum", "(", "t3", ".", "count", ")", "from", "checkin", "as", "t3", "join", "business", "as", "t1", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "neighbourhood", "as", "t2", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "where", "t2", ".", "neighbourhood_name", "=", "``", "brighton", "heights", "''"], "query_toks_no_value": ["select", "sum", "(", "t3", ".", "count", ")", "from", "checkin", "as", "t3", "join", "business", "as", "t1", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "neighbourhood", "as", "t2", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "where", "t2", ".", "neighbourhood_name", "=", "value", "heights"], "question": "Find the sum of checkins in \" Brighton Heights \" neighbourhood", "question_toks": ["Find", "the", "sum", "of", "checkins", "in", "\"", "Brighton", "Heights", "\"", "neighbourhood"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"brighton heights\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1228", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0029", "db_id": "baseball_1", "query": "select sum(t1.games) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = \"boston red stockings\" and t1.year between 1990 and 2000", "query_toks": ["select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "``", "boston", "red", "stockings", "''", "and", "t1", ".", "year", "between", "1990", "and", "2000"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "red", "stockings", "and", "t1", ".", "year", "between", "1990", "and", "2000"], "question": "Find the sum of checkins in \" Brighton Heights \" neighbourhood", "question_toks": ["Find", "the", "sum", "of", "checkins", "in", "\"", "Brighton", "Heights", "\"", "neighbourhood"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 159, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 1990.0, 2000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3700", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0030", "db_id": "game_1", "query": "select gameid , sum(hours_played) from plays_games group by gameid", "query_toks": ["select", "gameid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "gameid"], "query_toks_no_value": ["select", "gameid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "gameid"], "question": "Show all game ids and the sum of hours played.", "question_toks": ["Show", "all", "game", "ids", "and", "the", "sum", "of", "hours", "played", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6039", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0031", "db_id": "game_1", "query": "select stuid , sum(hours_played) from plays_games group by stuid", "query_toks": ["select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid"], "query_toks_no_value": ["select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid"], "question": "Show all student ids and sum of hours played.", "question_toks": ["Show", "all", "student", "ids", "and", "sum", "of", "hours", "played", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6041", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0032", "db_id": "game_1", "query": "select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid having sum(hours_played) >= 1000", "query_toks": ["select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">=", "1000"], "query_toks_no_value": ["select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">=", "1000"], "question": "Show all game names played by at least 1000 hours in sum.", "question_toks": ["Show", "all", "game", "names", "played", "by", "at", "least", "1000", "hours", "in", "sum", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [4, 14, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6045", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0033", "db_id": "department_store", "query": "select product_id from order_items group by product_id having count(*) > 3 union select product_id from product_suppliers group by product_id having sum(total_amount_purchased) > 80000", "query_toks": ["select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(*)", ">", "3", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "query_toks_no_value": ["select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(*)", ">", "3", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "question": "Return the ids of all products that were ordered more than three times or supplied more than 80000 in sum.", "question_toks": ["Return", "the", "ids", "of", "all", "products", "that", "were", "ordered", "more", "than", "three", "times", "or", "supplied", "more", "than", "80000", "in", "sum", "."], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [4, 50, false], null], 80000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4767", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0034", "db_id": "game_1", "query": "select stuid , count(*) , sum(gamesplayed) from sportsinfo group by stuid", "query_toks": ["select", "stuid", ",", "count", "(*)", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "group", "by", "stuid"], "query_toks_no_value": ["select", "stuid", ",", "count", "(*)", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "group", "by", "stuid"], "question": "What are the ids of all students along with how many sports and what the sum of games did they play?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "along", "with", "how", "many", "sports", "and", "what", "the", "sum", "of", "games", "did", "they", "play", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]], [4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6014", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0035", "db_id": "department_store", "query": "select product_id from order_items group by product_id having count(*) > 3 union select product_id from product_suppliers group by product_id having sum(total_amount_purchased) > 80000", "query_toks": ["select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(*)", ">", "3", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "query_toks_no_value": ["select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(*)", ">", "3", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "question": "What are the ids of all products that were either ordered more than 3 times or have a sum of amount purchased above 80000?", "question_toks": ["What", "are", "the", "ids", "of", "all", "products", "that", "were", "either", "ordered", "more", "than", "3", "times", "or", "have", "a", "sum", "of", "amount", "purchased", "above", "80000", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [4, 50, false], null], 80000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4768", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0036", "db_id": "game_1", "query": "select stuid , sum(hours_played) from plays_games group by stuid", "query_toks": ["select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid"], "query_toks_no_value": ["select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid"], "question": "What are the ids of all students and sum of hours played?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "and", "sum", "of", "hours", "played", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6042", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0037", "db_id": "geo", "query": "select sum ( area ) from state", "query_toks": ["select", "sum", "(", "area", ")", "from", "state"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "what is the sum of the area of all the states combined", "question_toks": ["what", "is", "the", "sum", "of", "the", "area", "of", "all", "the", "states", "combined"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0321", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0038", "db_id": "geo", "query": "select state_name from city group by state_name order by sum ( population ) limit 1", "query_toks": ["select", "state_name", "from", "city", "group", "by", "state_name", "order", "by", "sum", "(", "population", ")", "limit", "1"], "query_toks_no_value": ["select", "state_name", "from", "city", "group", "by", "state_name", "order", "by", "sum", "(", "population", ")", "limit", "1"], "question": "what state has the smallest sum of urban population", "question_toks": ["what", "state", "has", "the", "smallest", "sum", "of", "urban", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [4, 8, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0411", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0039", "db_id": "game_1", "query": "select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid having sum(hours_played) >= 1000", "query_toks": ["select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">=", "1000"], "query_toks_no_value": ["select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">=", "1000"], "question": "What are the names of all the games that have been played in sum for at least 1000 hours?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "games", "that", "have", "been", "played", "in", "sum", "for", "at", "least", "1000", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [4, 14, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6046", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0040", "db_id": "geo", "query": "select sum ( area ) from state", "query_toks": ["select", "sum", "(", "area", ")", "from", "state"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "what is the sum area of all 50 states", "question_toks": ["what", "is", "the", "sum", "area", "of", "all", "50", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0320", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0041", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo"], "question": "How many games are played in the sum for all students?", "question_toks": ["How", "many", "games", "are", "played", "in", "the", "sum", "for", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6007", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0042", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = \"y\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "``", "football", "''", "and", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value"], "question": "How many games are played in the sum for all football games by students on scholarship?", "question_toks": ["How", "many", "games", "are", "played", "in", "the", "sum", "for", "all", "football", "games", "by", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6009", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0043", "db_id": "tracking_grants_for_research", "query": "select t2.organisation_id , t2.organisation_details from grants as t1 join organisations as t2 on t1.organisation_id = t2.organisation_id group by t2.organisation_id having sum(t1.grant_amount) > 6000", "query_toks": ["select", "t2", ".", "organisation_id", ",", "t2", ".", "organisation_details", "from", "grants", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "organisation_id", "group", "by", "t2", ".", "organisation_id", "having", "sum", "(", "t1", ".", "grant_amount", ")", ">", "6000"], "query_toks_no_value": ["select", "t2", ".", "organisation_id", ",", "t2", ".", "organisation_details", "from", "grants", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "organisation_id", "group", "by", "t2", ".", "organisation_id", "having", "sum", "(", "t1", ".", "grant_amount", ")", ">", "6000"], "question": "What are the ids and details for all organizations that have sum of grants of more than 6000 dollars?", "question_toks": ["What", "are", "the", "ids", "and", "details", "for", "all", "organizations", "that", "have", "sum", "of", "grants", "of", "more", "than", "6000", "dollars", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [[false, 3, [0, [4, 11, false], null], 6000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4329", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0044", "db_id": "geo", "query": "select sum ( population ) from state", "query_toks": ["select", "sum", "(", "population", ")", "from", "state"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "state"], "question": "what is the sum of population of all 50 states", "question_toks": ["what", "is", "the", "sum", "of", "population", "of", "all", "50", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0240", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0045", "db_id": "college_1", "query": "select t3.dept_name from course as t1 join class as t2 on t1.crs_code = t2.crs_code join department as t3 on t1.dept_code = t3.dept_code group by t1.dept_code order by sum(t1.crs_credit) desc limit 1", "query_toks": ["select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "1"], "question": "Which department offers the most sum of credits?", "question_toks": ["Which", "department", "offers", "the", "most", "sum", "of", "credits", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 10, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3240", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0046", "db_id": "csu_1", "query": "select campus from degrees group by campus order by sum(degrees) desc limit 1", "query_toks": ["select", "campus", "from", "degrees", "group", "by", "campus", "order", "by", "sum", "(", "degrees", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "campus", "from", "degrees", "group", "by", "campus", "order", "by", "sum", "(", "degrees", ")", "desc", "limit", "1"], "question": "Which campus has the most sum of degrees conferred in all times?", "question_toks": ["Which", "campus", "has", "the", "most", "sum", "of", "degrees", "conferred", "in", "all", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2348", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0047", "db_id": "college_1", "query": "select t3.dept_name from course as t1 join class as t2 on t1.crs_code = t2.crs_code join department as t3 on t1.dept_code = t3.dept_code group by t1.dept_code order by sum(t1.crs_credit) desc limit 1", "query_toks": ["select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "1"], "question": "Find the name of the department that offers the largest number sum of credits of all classes.", "question_toks": ["Find", "the", "name", "of", "the", "department", "that", "offers", "the", "largest", "number", "sum", "of", "credits", "of", "all", "classes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 10, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3239", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0048", "db_id": "game_1", "query": "select stuid from sportsinfo group by stuid having sum(hoursperweek) > 10", "query_toks": ["select", "stuid", "from", "sportsinfo", "group", "by", "stuid", "having", "sum", "(", "hoursperweek", ")", ">", "10"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "group", "by", "stuid", "having", "sum", "(", "hoursperweek", ")", ">", "10"], "question": "What are the student IDs for everybody who worked in the sum for more than 10 hours per week on all sports?", "question_toks": ["What", "are", "the", "student", "IDs", "for", "everybody", "who", "worked", "in", "the", "sum", "for", "more", "than", "10", "hours", "per", "week", "on", "all", "sports", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [[false, 3, [0, [4, 17, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6016", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0049", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value"], "question": "What the sum of people number living in Asia, and what is the largest GNP among them?", "question_toks": ["What", "the", "sum", "of", "people", "number", "living", "in", "Asia", ",", "and", "what", "is", "the", "largest", "GNP", "among", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0723", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0050", "db_id": "world_1", "query": "select sum(population) from city where district = \"gelderland\"", "query_toks": ["select", "sum", "(", "population", ")", "from", "city", "where", "district", "=", "``", "gelderland", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "city", "where", "district", "=", "value"], "question": "The sum of the number of people living in Gelderland district?", "question_toks": ["The", "sum", "of", "the", "number", "of", "people", "living", "in", "Gelderland", "district", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"gelderland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0728", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0051", "db_id": "world_1", "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\")", "query_toks": ["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", "\")"], "query_toks_no_value": ["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", "=", "value", "\")"], "question": "What the sum of the number of people living in countries that do not speak English?", "question_toks": ["What", "the", "sum", "of", "the", "number", "of", "people", "living", "in", "countries", "that", "do", "not", "speak", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0767", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0052", "db_id": "csu_1", "query": "select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus", "query_toks": ["select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">=", "1998", "and", "t2", ".", "year", "<=", "2002", "group", "by", "t1", ".", "campus"], "query_toks_no_value": ["select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">=", "value", "and", "t2", ".", "year", "<=", "value", "group", "by", "t1", ".", "campus"], "question": "What are the sums of the degrees were conferred between 1998 and 2002?", "question_toks": ["What", "are", "the", "sums", "of", "the", "degrees", "were", "conferred", "between", "1998", "and", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 1998.0, null], "and", [false, 6, [0, [0, 9, false], null], 2002.0, null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2357", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0053", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "2004", "and", "t2", ".", "campus", "=", "``", "san", "jose", "state", "university", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value", "jose", "state", "university"], "question": "The sum of the undergraduates were there in \"San Jose State University\" in year 2004?", "question_toks": ["The", "sum", "of", "the", "undergraduates", "were", "there", "in", "\"", "San", "Jose", "State", "University", "\"", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san jose state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2384", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0054", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "2004", "and", "t2", ".", "campus", "=", "``", "san", "jose", "state", "university", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value", "jose", "state", "university"], "question": "What is the sum of the undergraduates number are there at San Jose State", "question_toks": ["What", "is", "the", "sum", "of", "the", "undergraduates", "number", "are", "there", "at", "San", "Jose", "State"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san jose state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2385", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0055", "db_id": "csu_1", "query": "select sum(t1.graduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["select", "sum", "(", "t1", ".", "graduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "2004", "and", "t2", ".", "campus", "=", "``", "san", "francisco", "state", "university", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "graduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value", "francisco", "state", "university"], "question": "The sum of people graduated from San Francisco State University in 2004?", "question_toks": ["The", "sum", "of", "people", "graduated", "from", "San", "Francisco", "State", "University", "in", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san francisco state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2387", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0056", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = \"king\"", "query_toks": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "``", "king", "''"], "query_toks_no_value": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "value"], "question": "What the sum of the king beds are there?", "question_toks": ["What", "the", "sum", "of", "the", "king", "beds", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2588", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0057", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank", "query_toks": ["select", "sum", "(", "no_of_customers", ")", "from", "bank"], "query_toks_no_value": ["select", "sum", "(", "no_of_customers", ")", "from", "bank"], "question": "What is the sum of customers are there?", "question_toks": ["What", "is", "the", "sum", "of", "customers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3008", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0058", "db_id": "college_1", "query": "select sum(crs_credit) , dept_code from course group by dept_code", "query_toks": ["select", "sum", "(", "crs_credit", ")", ",", "dept_code", "from", "course", "group", "by", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "crs_credit", ")", ",", "dept_code", "from", "course", "group", "by", "dept_code"], "question": "What are the sums of credits does the department offer?", "question_toks": ["What", "are", "the", "sums", "of", "credits", "does", "the", "department", "offer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3202", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0059", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "The sum of the hours do the students spend studying in each department?", "question_toks": ["The", "sum", "of", "the", "hours", "do", "the", "students", "spend", "studying", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3220", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0060", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["select", "sum", "(", "enr", ")", "from", "college"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college"], "question": "How many students are enrolled in college?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "college", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4945", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0061", "db_id": "geo", "query": "select sum ( population ) from state", "query_toks": ["select", "sum", "(", "population", ")", "from", "state"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "state"], "question": "What is the sum of people living in the united states", "question_toks": ["What", "is", "the", "sum", "of", "people", "living", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0239", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0062", "db_id": "geo", "query": "select sum ( area ) from state", "query_toks": ["select", "sum", "(", "area", ")", "from", "state"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "What is the sum of the square kilometers in the us", "question_toks": ["What", "is", "the", "sum", "of", "the", "square", "kilometers", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0322", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0063", "db_id": "world_1", "query": "select sum(surfacearea) from country where region = \"caribbean\"", "query_toks": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "region", "=", "``", "caribbean", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "region", "=", "value"], "question": "What is the sum of surface area that the countires in the Carribean cover together?", "question_toks": ["What", "is", "the", "sum", "of", "surface", "area", "that", "the", "countires", "in", "the", "Carribean", "cover", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"caribbean\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0707", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0064", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc", "query_toks": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "derenzi", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations in the sum? Return also the the sum of citations", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "in", "the", "sum", "?", "Return", "also", "the", "the", "sum", "of", "citations"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_sum_0064", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"]}, {"id": "hidden_sum_0065", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc", "query_toks": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "derenzi", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "question": "main topics of work by Brian DeRenzi with the sum of citation", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi", "with", "the", "sum", "of", "citation"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_sum_0065", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"]}, {"id": "hidden_sum_0066", "db_id": "academic", "query": "select year , sum ( citation_num ) from publication where title = \"making database systems usable\" group by year", "query_toks": ["select", "year", ",", "sum", "(", "citation_num", ")", "from", "publication", "where", "title", "=", "``", "making", "database", "systems", "usable", "''", "group", "by", "year"], "query_toks_no_value": ["select", "year", ",", "sum", "(", "citation_num", ")", "from", "publication", "where", "title", "=", "value", "database", "systems", "usable", "group", "by", "year"], "question": "return me the sum of the number of citations of \" Making database systems usable \" in each year .", "question_toks": ["return", "me", "the", "sum", "of", "the", "number", "of", "citations", "of", "\"", "Making", "database", "systems", "usable", "\"", "in", "each", "year", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [4, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"making database systems usable\"", null]], "groupBy": [[0, 30, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1319", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"]}, {"id": "hidden_sum_0067", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the sum and average amount of settlements.", "question_toks": ["Find", "the", "sum", "and", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0901", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0068", "db_id": "university_basketball", "query": "select sum(enrollment) , affiliation from university group by affiliation", "query_toks": ["select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "group", "by", "affiliation"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "group", "by", "affiliation"], "question": "Find the sum of the student enrollment for different affiliation type schools.", "question_toks": ["Find", "the", "sum", "of", "the", "student", "enrollment", "for", "different", "affiliation", "type", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1001", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0069", "db_id": "university_basketball", "query": "select sum(enrollment) , affiliation from university where founded > 1850 group by affiliation", "query_toks": ["select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "where", "founded", ">", "1850", "group", "by", "affiliation"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "where", "founded", ">", "value", "group", "by", "affiliation"], "question": "Find the sum of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.", "question_toks": ["Find", "the", "sum", "of", "students", "enrolled", "in", "the", "colleges", "that", "were", "founded", "after", "the", "year", "of", "1850", "for", "each", "affiliation", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 1850.0, null]], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1015", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0070", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_facilities as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t1.facility_code = \"gym\"", "query_toks": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "``", "gym", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "value"], "question": "Find the sum of rooms in the apartments that have facility code \"Gym\".", "question_toks": ["Find", "the", "sum", "of", "rooms", "in", "the", "apartments", "that", "have", "facility", "code", "\"", "Gym", "\"."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"gym\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1241", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0071", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_buildings as t1 join apartments as t2 on t1.building_id = t2.building_id where t1.building_short_name = \"columbus square\"", "query_toks": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "``", "columbus", "square", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "value", "square"], "question": "Show the sum of rooms of the apartments in the building with short name \"Columbus Square\".", "question_toks": ["Show", "the", "sum", "of", "rooms", "of", "the", "apartments", "in", "the", "building", "with", "short", "name", "\"", "Columbus", "Square", "\"."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"columbus square\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1242", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0072", "db_id": "college_2", "query": "select sum(budget) from department where dept_name = \"marketing\" or dept_name = \"finance\"", "query_toks": ["select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "``", "marketing", "''", "or", "dept_name", "=", "``", "finance", "''"], "query_toks_no_value": ["select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value"], "question": "Find the sum budgets of the Marketing or Finance department.", "question_toks": ["Find", "the", "sum", "budgets", "of", "the", "Marketing", "or", "Finance", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"marketing\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"finance\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1352", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0073", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "query_toks_no_value": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "question": "Find the sum credits of courses provided by different department.", "question_toks": ["Find", "the", "sum", "credits", "of", "courses", "provided", "by", "different", "department", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1398", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0074", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) , avg(amount_piad) from claim_headers", "query_toks": ["select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "query_toks_no_value": ["select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "question": "Find the sum and average amount paid in claim headers.", "question_toks": ["Find", "the", "sum", "and", "average", "amount", "paid", "in", "claim", "headers", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]], [5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1515", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0075", "db_id": "insurance_and_eClaims", "query": "select sum(t1.amount_claimed) from claim_headers as t1 join claims_documents as t2 on t1.claim_header_id = t2.claim_id where t2.created_date = (select created_date from claims_documents order by created_date limit 1)", "query_toks": ["select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "(", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "1", ")"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "value", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "1", ")"], "question": "Find the sum amount claimed in the most recently created document.", "question_toks": ["Find", "the", "sum", "amount", "claimed", "in", "the", "most", "recently", "created", "document", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1517", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0076", "db_id": "customers_and_invoices", "query": "select transaction_type , sum(transaction_amount) from financial_transactions group by transaction_type", "query_toks": ["select", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions", "group", "by", "transaction_type"], "query_toks_no_value": ["select", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions", "group", "by", "transaction_type"], "question": "What are sum transaction amounts for each transaction type?", "question_toks": ["What", "are", "sum", "transaction", "amounts", "for", "each", "transaction", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1588", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0077", "db_id": "small_bank_1", "query": "select sum(balance) from checking", "query_toks": ["select", "sum", "(", "balance", ")", "from", "checking"], "query_toks_no_value": ["select", "sum", "(", "balance", ")", "from", "checking"], "question": "Find the sum balance across checking accounts.", "question_toks": ["Find", "the", "sum", "balance", "across", "checking", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1781", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0078", "db_id": "small_bank_1", "query": "select sum(t2.balance) , t1.name from accounts as t1 join savings as t2 on t1.custid = t2.custid group by t1.name", "query_toks": ["select", "sum", "(", "t2", ".", "balance", ")", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "group", "by", "t1", ".", "name"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "group", "by", "t1", ".", "name"], "question": "Find the sum saving balance for each account name.", "question_toks": ["Find", "the", "sum", "saving", "balance", "for", "each", "account", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1806", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0079", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = \"king\"", "query_toks": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "``", "king", "''"], "query_toks_no_value": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "value"], "question": "Find the sum number of king beds available.", "question_toks": ["Find", "the", "sum", "number", "of", "king", "beds", "available", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2589", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0080", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = \"utah\" or state = \"texas\"", "query_toks": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "``", "utah", "''", "or", "state", "=", "``", "texas", "''"], "query_toks_no_value": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "Find the sum account balance of each customer from Utah or Texas.", "question_toks": ["Find", "the", "sum", "account", "balance", "of", "each", "customer", "from", "Utah", "or", "Texas", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"utah\"", null], "or", [false, 2, [0, [0, 13, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3034", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0081", "db_id": "loan_1", "query": "select sum(amount) , t1.bname from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id group by t1.bname", "query_toks": ["select", "sum", "(", "amount", ")", ",", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "group", "by", "t1", ".", "bname"], "query_toks_no_value": ["select", "sum", "(", "amount", ")", ",", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "group", "by", "t1", ".", "bname"], "question": "Find the sum amount of loans offered by each bank branch.", "question_toks": ["Find", "the", "sum", "amount", "of", "loans", "offered", "by", "each", "bank", "branch", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3060", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0082", "db_id": "loan_1", "query": "select sum(t2.amount) from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id where t1.state = \"new york\"", "query_toks": ["select", "sum", "(", "t2", ".", "amount", ")", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "state", "=", "``", "new", "york", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "amount", ")", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "state", "=", "value", "york"], "question": "Find the sum amount of loans provided by bank branches in the state of New York.", "question_toks": ["Find", "the", "sum", "amount", "of", "loans", "provided", "by", "bank", "branches", "in", "the", "state", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3080", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0083", "db_id": "academic", "query": "select t1.name from domain_author as t6 join author as t1 on t6.aid = t1.aid join domain as t3 on t3.did = t6.did join organization as t5 on t5.oid = t1.oid join writes as t2 on t2.aid = t1.aid join publication as t4 on t2.pid = t4.pid where t3.name = \"databases\" and t5.name = \"university of michigan\" group by t1.name having sum ( t4.citation_num ) > 5000", "query_toks": ["select", "t1", ".", "name", "from", "domain_author", "as", "t6", "join", "author", "as", "t1", "on", "t6", ".", "aid", "=", "t1", ".", "aid", "join", "domain", "as", "t3", "on", "t3", ".", "did", "=", "t6", ".", "did", "join", "organization", "as", "t5", "on", "t5", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t4", "on", "t2", ".", "pid", "=", "t4", ".", "pid", "where", "t3", ".", "name", "=", "``", "databases", "''", "and", "t5", ".", "name", "=", "``", "university", "of", "michigan", "''", "group", "by", "t1", ".", "name", "having", "sum", "(", "t4", ".", "citation_num", ")", ">", "5000"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "domain_author", "as", "t6", "join", "author", "as", "t1", "on", "t6", ".", "aid", "=", "t1", ".", "aid", "join", "domain", "as", "t3", "on", "t3", ".", "did", "=", "t6", ".", "did", "join", "organization", "as", "t5", "on", "t5", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t4", "on", "t2", ".", "pid", "=", "t4", ".", "pid", "where", "t3", ".", "name", "=", "value", "and", "t5", ".", "name", "=", "value", "of", "michigan", "group", "by", "t1", ".", "name", "having", "sum", "(", "t4", ".", "citation_num", ")", ">", "value"], "question": "return me the author in the \" University of Michigan \" in Databases area whose papers have more than 5000 sum citations .", "question_toks": ["return", "me", "the", "author", "in", "the", "\"", "University", "of", "Michigan", "\"", "in", "Databases", "area", "whose", "papers", "have", "more", "than", "5000", "sum", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0], ["table_unit", 2], ["table_unit", 11], ["table_unit", 13], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"databases\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"university of michigan\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [4, 25, false], null], 5000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1424", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0084", "db_id": "restaurant_1", "query": "select restaurant.resname , sum(visits_restaurant.spent) from visits_restaurant join restaurant on visits_restaurant.resid = restaurant.resid group by restaurant.resid order by sum(visits_restaurant.spent) asc limit 1", "query_toks": ["select", "restaurant", ".", "resname", ",", "sum", "(", "visits_restaurant", ".", "spent", ")", "from", "visits_restaurant", "join", "restaurant", "on", "visits_restaurant", ".", "resid", "=", "restaurant", ".", "resid", "group", "by", "restaurant", ".", "resid", "order", "by", "sum", "(", "visits_restaurant", ".", "spent", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "restaurant", ".", "resname", ",", "sum", "(", "visits_restaurant", ".", "spent", ")", "from", "visits_restaurant", "join", "restaurant", "on", "visits_restaurant", ".", "resid", "=", "restaurant", ".", "resid", "group", "by", "restaurant", ".", "resid", "order", "by", "sum", "(", "visits_restaurant", ".", "spent", ")", "asc", "limit", "1"], "question": "At which restaurant did the students spend the least sum of time? List restaurant and the time students spent in the sum.", "question_toks": ["At", "which", "restaurant", "did", "the", "students", "spend", "the", "least", "sum", "of", "time", "?", "List", "restaurant", "and", "the", "time", "students", "spent", "in", "the", "sum", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["asc", [[0, [4, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2840", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0085", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank where city = \"new york city\"", "query_toks": ["select", "sum", "(", "no_of_customers", ")", "from", "bank", "where", "city", "=", "``", "new", "york", "city", "''"], "query_toks_no_value": ["select", "sum", "(", "no_of_customers", ")", "from", "bank", "where", "city", "=", "value", "york", "city"], "question": "Find the sum of the number of customers in the banks at New York City.", "question_toks": ["Find", "the", "sum", "of", "the", "number", "of", "customers", "in", "the", "banks", "at", "New", "York", "City", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"new york city\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3010", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_max_0000", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "age", "=", "value", "select", "max", "(", "age", ")", "from", "student", ")"], "question": "Show the student id of the student with maximum age.", "question_toks": ["Show", "the", "student", "id", "of", "the", "student", "with", "maximum", "age", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0487", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0001", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "age", "=", "value", "select", "max", "(", "age", ")", "from", "student", ")"], "question": "What student id corresponds to the student with maximum age?", "question_toks": ["What", "student", "id", "corresponds", "to", "the", "student", "with", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0488", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0002", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, return the maximum latitude among its stations.", "question_toks": ["For", "each", "city", ",", "return", "the", "maximum", "latitude", "among", "its", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0113", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0003", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, what is the maximum latitude for its stations?", "question_toks": ["For", "each", "city", ",", "what", "is", "the", "maximum", "latitude", "for", "its", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0114", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0004", "db_id": "bike_1", "query": "select avg(long) from station where id not in (select station_id from status group by station_id having max(bikes_available) > 10)", "query_toks": ["select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "10", ")"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "value", ")"], "question": "What is the average longitude of stations with maximum bike availability not more than 10?", "question_toks": ["What", "is", "the", "average", "longitude", "of", "stations", "with", "maximum", "bike", "availability", "not", "more", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [1, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0151", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0005", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "query_toks_no_value": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "question": "List all the cities in a decreasing order of each city's stations' maximum latitude.", "question_toks": ["List", "all", "the", "cities", "in", "a", "decreasing", "order", "of", "each", "city", "'", "s", "stations", "'", "maximum", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0183", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0006", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "query_toks_no_value": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "question": "For each city, list their names in decreasing order by their maximum station latitude.", "question_toks": ["For", "each", "city", ",", "list", "their", "names", "in", "decreasing", "order", "by", "their", "maximum", "station", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0184", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0007", "db_id": "bike_1", "query": "select date , max_temperature_f - min_temperature_f from weather order by max_temperature_f - min_temperature_f limit 1", "query_toks": ["select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "1"], "query_toks_no_value": ["select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "1"], "question": "What are the days that had the minimum temperature range, and what was that range?", "question_toks": ["What", "are", "the", "days", "that", "had", "the", "minimum", "temperature", "range", ",", "and", "what", "was", "that", "range", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 24, false], [0, 26, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 24, false], [0, 26, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0202", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0008", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "query_toks_no_value": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "question": "find the maximum support percentage, minimum consider rate and oppose rate of all candidates.", "question_toks": ["find", "the", "maximum", "support", "percentage", ",", "minimum", "consider", "rate", "and", "oppose", "rate", "of", "all", "candidates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2426", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0009", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "What are the durations of the tracks with maximum and minimum duration in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "tracks", "with", "maximum", "and", "minimum", "duration", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0831", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0010", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "``", "pop", "''"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "What are the duration of the longest and shortest pop tracks in milliseconds?", "question_toks": ["What", "are", "the", "duration", "of", "the", "longest", "and", "shortest", "pop", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0881", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0011", "db_id": "cinema", "query": "select t2.title , max(t1.price) from schedule as t1 join film as t2 on t1.film_id = t2.film_id group by t1.film_id", "query_toks": ["select", "t2", ".", "title", ",", "max", "(", "t1", ".", "price", ")", "from", "schedule", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "max", "(", "t1", ".", "price", ")", "from", "schedule", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id"], "question": "Give me the title and maximum price for each film.", "question_toks": ["Give", "me", "the", "title", "and", "maximum", "price", "for", "each", "film", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [1, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1952", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0012", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What is the maximum, minimum and average student GPA for every department?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3222", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0013", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "What are the maximum and average capacity for rooms in each building?", "question_toks": ["What", "are", "the", "maximum", "and", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1395", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0014", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "query_toks_no_value": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "value", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "question": "What is the title and credits of the course that is taught in the largest classroom (with the maximum capacity)?", "question_toks": ["What", "is", "the", "title", "and", "credits", "of", "the", "course", "that", "is", "taught", "in", "the", "largest", "classroom", "(", "with", "the", "maximum", "capacity", ")?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1450", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0015", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "query_toks_no_value": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "value", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "question": "Give the title and credits for the course that is taught in the classroom with the maximum capacity.", "question_toks": ["Give", "the", "title", "and", "credits", "for", "the", "course", "that", "is", "taught", "in", "the", "classroom", "with", "the", "maximum", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1451", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0016", "db_id": "college_2", "query": "select distinct salary from instructor where salary < (select max(salary) from instructor)", "query_toks": ["select", "distinct", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "max", "(", "salary", ")", "from", "instructor", ")"], "query_toks_no_value": ["select", "distinct", "salary", "from", "instructor", "where", "salary", "<", "value", "select", "max", "(", "salary", ")", "from", "instructor", ")"], "question": "Find the salaries of all distinct instructors that are less than the maximum salary.", "question_toks": ["Find", "the", "salaries", "of", "all", "distinct", "instructors", "that", "are", "less", "than", "the", "maximum", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1482", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0017", "db_id": "college_2", "query": "select name from instructor where salary > (select max(salary) from instructor where dept_name = \"biology\")", "query_toks": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "``", "biology", "\")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "value", "select", "max", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", "\")"], "question": "Find the names of all instructors whose salary is greater than the maximum salary of instructors from the Biology department.", "question_toks": ["Find", "the", "names", "of", "all", "instructors", "whose", "salary", "is", "greater", "than", "the", "maximum", "salary", "of", "instructors", "from", "the", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1490", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0018", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "\"%", "5", "%\""], "query_toks_no_value": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "\"%", "5", "%\""], "question": "What are the account details with the maximum value or with value having char '5' in it?", "question_toks": ["What", "are", "the", "account", "details", "with", "the", "maximum", "value", "or", "with", "value", "having", "char", "'", "5", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6467", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0019", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "\"%", "5", "%\""], "query_toks_no_value": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "\"%", "5", "%\""], "question": "Return the account details with the maximum value, as well as those that include the character 5.", "question_toks": ["Return", "the", "account", "details", "with", "the", "maximum", "value", ",", "as", "well", "as", "those", "that", "include", "the", "character", "5", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6468", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0020", "db_id": "csu_1", "query": "select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and faculty > (select max(faculty) from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and t1.county = \"orange\")", "query_toks": ["select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "2002", "and", "faculty", ">", "(", "select", "max", "(", "faculty", ")", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "2002", "and", "t1", ".", "county", "=", "``", "orange", "\")"], "query_toks_no_value": ["select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "faculty", ">", "value", "select", "max", "(", "faculty", ")", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "t1", ".", "county", "=", "value", "\")"], "question": "Find the names of the campus which has more faculties in 2002 than campus in Orange county with maximum number of faculties.", "question_toks": ["Find", "the", "names", "of", "the", "campus", "which", "has", "more", "faculties", "in", "2002", "than", "campus", "in", "Orange", "county", "with", "maximum", "number", "of", "faculties", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 3, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 2, [0, [0, 4, false], null], "\"orange\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2360", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0021", "db_id": "customers_and_addresses", "query": "select max(t2.active_to_date) from customers as t1 join customer_contact_channels as t2 on t1.customer_id = t2.customer_id where t1.customer_name = \"tillman ernser\"", "query_toks": ["select", "max", "(", "t2", ".", "active_to_date", ")", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "``", "tillman", "ernser", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "active_to_date", ")", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value", "ernser"], "question": "What is the \"active to date\" of the contact channel with maximum activating date used by \"Tillman Ernser\"?", "question_toks": ["What", "is", "the", "\"", "active", "to", "date", "\"", "of", "the", "contact", "channel", "with", "maximum", "activating", "date", "used", "by", "\"", "Tillman", "Ernser", "\"?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"tillman ernser\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6099", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0022", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "value", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "question": "What is the name of the customer that made the order with the maximum quantity?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "that", "made", "the", "order", "with", "the", "maximum", "quantity", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6107", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0023", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "value", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "question": "Find the name of the customer who made the order of the maximum amount of goods.", "question_toks": ["Find", "the", "name", "of", "the", "customer", "who", "made", "the", "order", "of", "the", "maximum", "amount", "of", "goods", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6108", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0024", "db_id": "department_store", "query": "select staff_id from staff_department_assignments where date_assigned_to < (select max(date_assigned_to) from staff_department_assignments where job_title_code = \"clerical staff\")", "query_toks": ["select", "staff_id", "from", "staff_department_assignments", "where", "date_assigned_to", "<", "(", "select", "max", "(", "date_assigned_to", ")", "from", "staff_department_assignments", "where", "job_title_code", "=", "``", "clerical", "staff", "\")"], "query_toks_no_value": ["select", "staff_id", "from", "staff_department_assignments", "where", "date_assigned_to", "<", "value", "select", "max", "(", "date_assigned_to", ")", "from", "staff_department_assignments", "where", "job_title_code", "=", "value", "staff", "\")"], "question": "What is id of the staff who had a Staff Department Assignment earlier than max of Clerical Staff?", "question_toks": ["What", "is", "id", "of", "the", "staff", "who", "had", "a", "Staff", "Department", "Assignment", "earlier", "than", "max", "of", "Clerical", "Staff", "?"], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 52, false], null]]]], "where": [[false, 4, [0, [0, 56, false], null], {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[1, [0, [0, 56, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"clerical staff\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4755", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0025", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "What is the maximum and minimum customer codes?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4775", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0026", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "What are the maximum and minimum prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4781", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0027", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "value", "select", "max", "(", "age", ")", "from", "dogs", ")"], "question": "List the last name of the owner owning the dog with maximum age.", "question_toks": ["List", "the", "last", "name", "of", "the", "owner", "owning", "the", "dog", "with", "maximum", "age", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0027", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0028", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "value", "select", "max", "(", "age", ")", "from", "dogs", ")"], "question": "Who owns the dog with the maximum age? Give me his or her last name.", "question_toks": ["Who", "owns", "the", "dog", "with", "the", "maximum", "age", "?", "Give", "me", "his", "or", "her", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0028", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0029", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["select", "max", "(", "age", ")", "from", "dogs"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "dogs"], "question": "What is the maximum age of the dog?", "question_toks": ["What", "is", "the", "maximum", "age", "of", "the", "dog", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0988", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0030", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["select", "max", "(", "age", ")", "from", "dogs"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "dogs"], "question": "Tell me the maximum age of the dog.", "question_toks": ["Tell", "me", "the", "maximum", "age", "of", "the", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0989", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0031", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "query_toks_no_value": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "question": "How much does the charge type with maximum amount costs?", "question_toks": ["How", "much", "does", "the", "charge", "type", "with", "maximum", "amount", "costs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0992", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0032", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "query_toks_no_value": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "question": "What is the maximum charge amount?", "question_toks": ["What", "is", "the", "maximum", "charge", "amount", "of", "the", "charge", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0993", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0033", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "question": "Find the average and maximum age for students with different sex.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "for", "students", "with", "different", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5722", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0034", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "question": "What is the average and maximum age for each gender of student?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "age", "for", "each", "gender", "of", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5723", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0035", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "value", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "question": "Find the average age of students who are living in the dorm with the maximum capacity.", "question_toks": ["Find", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "maximum", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5744", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0036", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "value", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "question": "What is the average age of students who are living in the dorm with the maximum capacity?", "question_toks": ["What", "is", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "maximum", "capacity", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5745", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0037", "db_id": "e_government", "query": "select t3.individual_last_name from organizations as t1 join organization_contact_individuals as t2 on t1.organization_id = t2.organization_id join individuals as t3 on t2.individual_id = t3.individual_id where t1.uk_vat_number = (select max(uk_vat_number) from organizations) order by t2.date_contact_to asc limit 1", "query_toks": ["select", "t3", ".", "individual_last_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "join", "individuals", "as", "t3", "on", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "where", "t1", ".", "uk_vat_number", "=", "(", "select", "max", "(", "uk_vat_number", ")", "from", "organizations", ")", "order", "by", "t2", ".", "date_contact_to", "asc", "limit", "1"], "query_toks_no_value": ["select", "t3", ".", "individual_last_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "join", "individuals", "as", "t3", "on", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "where", "t1", ".", "uk_vat_number", "=", "value", "select", "max", "(", "uk_vat_number", ")", "from", "organizations", ")", "order", "by", "t2", ".", "date_contact_to", "asc", "limit", "1"], "question": "Find the last name of the first ever contact person of the organization with the maximum UK Vat number.", "question_toks": ["Find", "the", "last", "name", "of", "the", "first", "ever", "contact", "person", "of", "the", "organization", "with", "the", "maximum", "UK", "Vat", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 32, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 35, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6324", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0038", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "question": "What is the average and maximum salary of all employees?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0372", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0039", "db_id": "flight_4", "query": "select max(elevation) from airports where country = \"iceland\"", "query_toks": ["select", "max", "(", "elevation", ")", "from", "airports", "where", "country", "=", "``", "iceland", "''"], "query_toks_no_value": ["select", "max", "(", "elevation", ")", "from", "airports", "where", "country", "=", "value"], "question": "What is the maximum elevation of an airport in the country of Iceland?", "question_toks": ["What", "is", "the", "maximum", "elevation", "of", "an", "airport", "in", "the", "country", "of", "Iceland", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"iceland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6812", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0040", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "value", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than drivers with maximum value in the race with id 841.", "question_toks": ["Find", "the", "distinct", "driver", "id", "and", "the", "stop", "number", "of", "all", "drivers", "that", "have", "a", "shorter", "pit", "stop", "duration", "than", "drivers", "with", "maximum", "value", "in", "the", "race", "with", "id", "841", "."], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2195", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0041", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "value", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "What is the id and stop number for each driver that has a shorter pit stop than the driver in the race with id 841?", "question_toks": ["What", "is", "the", "id", "and", "stop", "number", "for", "each", "driver", "that", "has", "a", "shorter", "pit", "stop", "than", "the", "driver", "in", "the", "race", "with", "id", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2196", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0042", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "``", "wyoming", "''", ")", "and", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the city with maximum population in wyoming", "question_toks": ["what", "is", "the", "city", "with", "maximum", "population", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0000", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0043", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "``", "wyoming", "''", ")", "and", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what wyoming city has the maximum value of population", "question_toks": ["what", "wyoming", "city", "has", "the", "maximum", "value", "of", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0001", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0044", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "``", "wyoming", "''", ")", "and", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the city with max population in wyoming", "question_toks": ["what", "is", "the", "city", "with", "max", "population", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0002", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0045", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "``", "wyoming", "''", ")", "and", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "where is the maximum populated area of wyoming", "question_toks": ["where", "is", "the", "maximum", "populated", "area", "of", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0003", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0046", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "``", "wyoming", "''", ")", "and", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "which city in wyoming has the maximum population", "question_toks": ["which", "city", "in", "wyoming", "has", "the", "maximum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0004", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0047", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "``", "wyoming", "''", ")", "and", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what cities in wyoming have the maximum number of citizens", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "maximum", "number", "of", "citizens"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0005", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0048", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "``", "wyoming", "''", ")", "and", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what cities in wyoming have the maximum populations", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "maximum", "populations"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0006", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0049", "db_id": "geo", "query": "select state_name from state where population = ( select max ( population ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "state", ")"], "question": "which state has the maximum number of people", "question_toks": ["which", "state", "has", "the", "maximum", "number", "of", "people"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0068", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0050", "db_id": "geo", "query": "select length from river where length = ( select max ( length ) from river )", "query_toks": ["select", "length", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "query_toks_no_value": ["select", "length", "from", "river", "where", "length", "=", "value", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "how long is the river with maximum length in the usa", "question_toks": ["how", "long", "is", "the", "river", "with", "maximum", "length", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0074", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0051", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\"", "query_toks": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "``", "texas", "''", ")", "and", "traverse", "=", "``", "texas", "''"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "value", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the river with maximum length flowing through texas", "question_toks": ["what", "is", "the", "river", "with", "maximum", "length", "flowing", "through", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0075", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0052", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\"", "query_toks": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "``", "texas", "''", ")", "and", "traverse", "=", "``", "texas", "''"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "value", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the river with max length in texas state", "question_toks": ["what", "is", "the", "river", "with", "max", "length", "in", "texas", "state"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0076", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0053", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\"", "query_toks": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "``", "texas", "''", ")", "and", "traverse", "=", "``", "texas", "''"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "value", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the max length river in texas", "question_toks": ["what", "is", "the", "max", "length", "river", "in", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0077", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0054", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river )", "query_toks": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "value", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "which states does the river with maximum length run through", "question_toks": ["which", "states", "does", "the", "river", "with", "maximum", "length", "run", "through"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0147", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0055", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river )", "query_toks": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "value", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "which traverse has the river with max length", "question_toks": ["which", "state", "has", "the", "max", "length", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0148", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0056", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "value", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what state has the maximum area", "question_toks": ["what", "state", "has", "the", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0174", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0057", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "value", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the state with the maximum area", "question_toks": ["what", "is", "the", "state", "with", "the", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0175", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0058", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "value", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what state has the maximum area among others", "question_toks": ["what", "state", "has", "the", "maximum", "area", "among", "others"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0176", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0059", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "value", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the state in continental us with the maximum area", "question_toks": ["what", "is", "the", "state", "in", "continental", "us", "with", "the", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0177", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0060", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow", "query_toks": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "query_toks_no_value": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "question": "how high is the point in america with the maximum elevation", "question_toks": ["how", "high", "is", "the", "point", "in", "america", "with", "the", "maximum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0211", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0061", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow", "query_toks": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "query_toks_no_value": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "question": "what is the elevation in the united states with the maximum value of highest elevation", "question_toks": ["what", "is", "the", "elevation", "in", "the", "united", "states", "with", "the", "maximum", "value", "of", "highest", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0212", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0062", "db_id": "geo", "query": "select population from city where population = ( select max ( population ) from city where state_name = \"alaska\" ) and state_name = \"alaska\"", "query_toks": ["select", "population", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "``", "alaska", "''", ")", "and", "state_name", "=", "``", "alaska", "''"], "query_toks_no_value": ["select", "population", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "how large is the city in alaska with the maximum value of population", "question_toks": ["how", "large", "is", "the", "city", "in", "alaska", "with", "the", "maximum", "value", "of", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0236", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0063", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", ")"], "question": "what city has the maximum population", "question_toks": ["what", "city", "has", "the", "maximum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0303", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0064", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", ")"], "question": "what is the city with the maximum population in usa", "question_toks": ["what", "is", "the", "city", "with", "the", "maximum", "population", "in", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0305", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0065", "db_id": "geo", "query": "select city_name from city where population = ( select max ( t1.population ) from state as t2 join city as t1 on t2.capital = t1.city_name )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "t1", ".", "population", ")", "from", "state", "as", "t2", "join", "city", "as", "t1", "on", "t2", ".", "capital", "=", "t1", ".", "city_name", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "t1", ".", "population", ")", "from", "state", "as", "t2", "join", "city", "as", "t1", "on", "t2", ".", "capital", "=", "t1", ".", "city_name", ")"], "question": "what is the capital with maximum capital", "question_toks": ["what", "is", "the", "capital", "with", "maximum", "capital"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 7, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0309", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0066", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain )", "query_toks": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "value", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the mountain with maximum altitude in the us", "question_toks": ["what", "is", "the", "mountain", "with", "maximum", "altitude", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0327", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0067", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain )", "query_toks": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "value", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the mountain with the maximum altitude in us", "question_toks": ["what", "is", "the", "mountain", "with", "the", "maximum", "altitude", "in", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0328", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0068", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain )", "query_toks": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "value", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the mountain with the maximum altitude in america", "question_toks": ["what", "is", "the", "mountain", "with", "the", "maximum", "altitude", "in", "america"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0329", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0069", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain )", "query_toks": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "value", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the mountain with the maximum altitude in the united states", "question_toks": ["what", "is", "the", "mountain", "with", "the", "maximum", "altitude", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0330", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0070", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow )", "query_toks": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "value", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "what is the highest point with max elevation in the usa", "question_toks": ["what", "is", "the", "highest", "point", "with", "max", "elevation", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0333", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0071", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow )", "query_toks": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "value", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "what is the point with max elevation of the usa", "question_toks": ["what", "is", "the", "point", "with", "max", "elevation", "of", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0334", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0072", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the city with maximum population in the state with minimum population in the usa", "question_toks": ["what", "is", "the", "city", "with", "maximum", "population", "in", "the", "state", "with", "minimum", "population", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0340", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0073", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) )", "query_toks": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the city with the maximum population in the state with minimum population", "question_toks": ["what", "is", "the", "city", "with", "the", "maximum", "population", "in", "the", "state", "with", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0341", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0074", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state where state_name in ( select border from border_info where state_name = \"california\" ) ) and state_name in ( select border from border_info where state_name = \"california\" )", "query_toks": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "``", "california", "''", ")", ")", "and", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "``", "california", "''", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "value", "select", "max", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")", ")", "and", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")"], "question": "what is the state with the maximum area bordering california", "question_toks": ["what", "is", "the", "state", "with", "the", "maximum", "area", "bordering", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0342", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0075", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "what is the state with maximum density in the usa", "question_toks": ["what", "is", "the", "state", "with", "maximum", "density", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0362", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0076", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the population with maximum density", "question_toks": ["which", "state", "has", "the", "population", "with", "maximum", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0363", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0077", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the maximum density", "question_toks": ["which", "state", "has", "the", "maximum", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0364", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0078", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "value", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the maximum density", "question_toks": ["which", "state", "has", "the", "maximum", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0370", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0079", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain where state_name != \"alaska\" )", "query_toks": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", "where", "state_name", "!=", "``", "alaska", "''", ")"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "value", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", "where", "state_name", "!=", "value", ")"], "question": "which is the peak with maximum altitude is not in alaska", "question_toks": ["which", "is", "the", "peak", "with", "maximum", "altitude", "is", "not", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 25, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0427", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0080", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow )", "query_toks": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "query_toks_no_value": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "value", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "which state has the maximum elevation", "question_toks": ["which", "state", "has", "the", "maximum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0434", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0081", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow )", "query_toks": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "query_toks_no_value": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "value", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "in which state does the point with maximum elevation in usa exist", "question_toks": ["in", "which", "state", "does", "the", "point", "with", "maximum", "elevation", "in", "usa", "exist"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0437", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0082", "db_id": "geo", "query": "select capital from state where area = ( select max ( area ) from state )", "query_toks": ["select", "capital", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "query_toks_no_value": ["select", "capital", "from", "state", "where", "area", "=", "value", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the capital of the state with maximum area", "question_toks": ["what", "is", "the", "capital", "of", "the", "state", "with", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0515", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0083", "db_id": "geo", "query": "select city_name from city where population > 150000 and state_name = ( select state_name from state where area = ( select max ( area ) from state ) )", "query_toks": ["select", "city_name", "from", "city", "where", "population", ">", "150000", "and", "state_name", "=", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", ">", "value", "and", "state_name", "=", "value", "select", "state_name", "from", "state", "where", "area", "=", "value", "select", "max", "(", "area", ")", "from", "state", ")", ")"], "question": "what are the major cities in the state with maximum area", "question_toks": ["what", "are", "the", "major", "cities", "in", "the", "state", "with", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 150000.0, null], "and", [false, 2, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0522", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0084", "db_id": "geo", "query": "select max ( area ) from state", "query_toks": ["select", "max", "(", "area", ")", "from", "state"], "query_toks_no_value": ["select", "max", "(", "area", ")", "from", "state"], "question": "what is the size of the state with maximum area in the usa", "question_toks": ["what", "is", "the", "size", "of", "the", "state", "with", "maximum", "area", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0532", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0085", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "What are the maximum cost, minimum cost and average cost of procedures?", "question_toks": ["What", "are", "the", "maximum", "cost", ",", "minimum", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3966", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0086", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "Tell me the maximum, minimum and average cost of procedures.", "question_toks": ["Tell", "me", "the", "maximum", ",", "minimum", "and", "average", "cost", "of", "procedures", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3967", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0087", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "query_toks_no_value": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "question": "display the employee ID for each employee and the maximum date on which he ended the jobs.", "question_toks": ["display", "the", "employee", "ID", "for", "each", "employee", "and", "the", "maximum", "date", "on", "which", "he", "ended", "the", "jobs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3447", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0088", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "query_toks_no_value": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "question": "What are the employee ids for each employee and max final dates of employment at their jobs?", "question_toks": ["What", "are", "the", "employee", "ids", "for", "each", "employee", "and", "max", "final", "dates", "of", "employment", "at", "their", "jobs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3448", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0089", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = \"pu_man\" )", "query_toks": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "``", "pu_man", "''", ")"], "query_toks_no_value": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "value", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than maximum salary of those employees whose job title is PU_MAN.", "question_toks": ["display", "the", "employee", "number", ",", "name", "(", "first", "name", "and", "last", "name", ")", "and", "job", "title", "for", "all", "employees", "whose", "salary", "is", "more", "than", "maximum", "salary", "of", "those", "employees", "whose", "job", "title", "is", "PU_MAN", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"pu_man\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3509", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0090", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = \"pu_man\" )", "query_toks": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "``", "pu_man", "''", ")"], "query_toks_no_value": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "value", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "What are the employee ids, full names, and job ids for employees who make more than the maximum earning employee with title PU_MAN?", "question_toks": ["What", "are", "the", "employee", "ids", ",", "full", "names", ",", "and", "job", "ids", "for", "employees", "who", "make", "more", "than", "the", "maximum", "earning", "employee", "with", "title", "PU_MAN", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"pu_man\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3510", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0091", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "question": "display the department ID, full name (first and last name), salary for those employees who is maximum salary in every department.", "question_toks": ["display", "the", "department", "ID", ",", "full", "name", "(", "first", "and", "last", "name", "),", "salary", "for", "those", "employees", "who", "is", "maximum", "salary", "in", "every", "department", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3515", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0092", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "question": "What are the department ids, full names, and salaries for employees who make the maximum in their departments?", "question_toks": ["What", "are", "the", "department", "ids", ",", "full", "names", ",", "and", "salaries", "for", "employees", "who", "make", "the", "maximum", "in", "their", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3516", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0093", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "value", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "question": "Retrieve the title of the paper that has the maximum number of authors.", "question_toks": ["Retrieve", "the", "title", "of", "the", "paper", "that", "has", "the", "maximum", "number", "of", "authors", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2912", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0094", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "value", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "question": "Which paper has the maximum number of authors? Give me the paper title.", "question_toks": ["Which", "paper", "has", "the", "maximum", "number", "of", "authors", "?", "Give", "me", "the", "paper", "title", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2913", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0095", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "value", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "question": "What is the name of the customer who has made the maximum amount of claim in a single claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "maximum", "amount", "of", "claim", "in", "a", "single", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1519", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0096", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "value", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "question": "Which customer made the maximum amount of claim in a single claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "maximum", "amount", "of", "claim", "in", "a", "single", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1520", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0097", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "query_toks_no_value": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "value", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "question": "Which customer is associated with the policy with maximum start date?", "question_toks": ["Which", "customer", "is", "associated", "with", "the", "policy", "with", "maximum", "start", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1545", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0098", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "query_toks_no_value": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "value", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "question": "Find the customer who started a policy in maximum start date.", "question_toks": ["Find", "the", "customer", "who", "started", "a", "policy", "in", "maximum", "start", "date", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1546", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0099", "db_id": "local_govt_and_lot", "query": "select max(date_moved_in) from residents", "query_toks": ["select", "max", "(", "date_moved_in", ")", "from", "residents"], "query_toks_no_value": ["select", "max", "(", "date_moved_in", ")", "from", "residents"], "question": "When is the maximum day any resident moved in?", "question_toks": ["When", "is", "the", "maximum", "day", "any", "resident", "moved", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4855", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0100", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "query_toks_no_value": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "question": "Find the name and revenue of the company that earns the maximum revenue in each city.", "question_toks": ["Find", "the", "name", "and", "revenue", "of", "the", "company", "that", "earns", "the", "maximum", "revenue", "in", "each", "city", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5308", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0101", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "query_toks_no_value": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "question": "What are the names and revenues of the companies with the maximum revenues in each headquarter city?", "question_toks": ["What", "are", "the", "names", "and", "revenues", "of", "the", "companies", "with", "the", "maximum", "revenues", "in", "each", "headquarter", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5309", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0102", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "question": "Select the name of each manufacturer along with the name and price of its product with maximum price.", "question_toks": ["Select", "the", "name", "of", "each", "manufacturer", "along", "with", "the", "name", "and", "price", "of", "its", "product", "with", "maximum", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5348", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0103", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "question": "For each manufacturer name, what are the names and prices of their product with max prices?", "question_toks": ["For", "each", "manufacturer", "name", ",", "what", "are", "the", "names", "and", "prices", "of", "their", "product", "with", "max", "prices", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5349", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0104", "db_id": "manufacturer", "query": "select t1.name from furniture as t1 join furniture_manufacte as t2 on t1.furniture_id = t2.furniture_id where t2.price_in_dollar < (select max(price_in_dollar) from furniture_manufacte)", "query_toks": ["select", "t1", ".", "name", "from", "furniture", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "furniture_id", "=", "t2", ".", "furniture_id", "where", "t2", ".", "price_in_dollar", "<", "(", "select", "max", "(", "price_in_dollar", ")", "from", "furniture_manufacte", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "furniture", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "furniture_id", "=", "t2", ".", "furniture_id", "where", "t2", ".", "price_in_dollar", "<", "value", "select", "max", "(", "price_in_dollar", ")", "from", "furniture_manufacte", ")"], "question": "Find the names of furnitures whose prices are lower than the maximum price.", "question_toks": ["Find", "the", "names", "of", "furnitures", "whose", "prices", "are", "lower", "than", "the", "maximum", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 4, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3394", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0105", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What is the maximum and minimum rating star?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2450", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0106", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "=", "value", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the name of the movie with the maximum year?", "question_toks": ["What", "is", "the", "name", "of", "the", "movie", "with", "the", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2464", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0107", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "=", "value", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the title of the movie with maximum year?", "question_toks": ["What", "is", "the", "title", "of", "the", "movie", "with", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2465", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0108", "db_id": "movie_1", "query": "select max(t1.stars) , t2.year from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "value", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the maximum stars for the movie with maximum year and when was it released?", "question_toks": ["What", "is", "the", "maximum", "stars", "for", "the", "movie", "with", "maximum", "year", "and", "when", "was", "it", "released", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2467", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0109", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "``", "steven", "spielberg", "\")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", ">", "value", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", "spielberg", "\")"], "question": "What is the names of movies whose created year is after movies with maximum year and directed by Steven Spielberg?", "question_toks": ["What", "is", "the", "names", "of", "movies", "whose", "created", "year", "is", "after", "movies", "with", "maximum", "year", "and", "directed", "by", "Steven", "Spielberg", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"steven spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2468", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0110", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "``", "steven", "spielberg", "\")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", ">", "value", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", "spielberg", "\")"], "question": "What are the names of all movies that were created after the Steven Spielberg film with the maximum year?", "question_toks": ["What", "are", "the", "names", "of", "all", "movies", "that", "were", "created", "after", "the", "Steven", "Spielberg", "film", "with", "the", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"steven spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2469", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0111", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid where director != \"null\" group by director", "query_toks": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "director", "!=", "``", "null", "''", "group", "by", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "director", "!=", "value", "group", "by", "director"], "question": "For each director, return the director's name together with the title of the movie they directed that received the maximum rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.", "question_toks": ["For", "each", "director", ",", "return", "the", "director", "'", "s", "name", "together", "with", "the", "title", "of", "the", "movie", "they", "directed", "that", "received", "the", "maximum", "rating", "among", "all", "of", "their", "movies", ",", "and", "the", "value", "of", "that", "rating", ".", "Ignore", "movies", "whose", "director", "is", "NULL", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2502", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0112", "db_id": "music_1", "query": "select song_name from song where rating < (select max(rating) from song where genre_is = \"blues\")", "query_toks": ["select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "max", "(", "rating", ")", "from", "song", "where", "genre_is", "=", "``", "blues", "\")"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "rating", "<", "value", "select", "max", "(", "rating", ")", "from", "song", "where", "genre_is", "=", "value", "\")"], "question": "What are the names of all songs that have a lower rating than song of blues genre with maximal rating?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "have", "a", "lower", "rating", "than", "song", "of", "blues", "genre", "with", "maximal", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"blues\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3571", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0113", "db_id": "music_1", "query": "select f_id from song where resolution > (select max(resolution) from song where rating < 8)", "query_toks": ["select", "f_id", "from", "song", "where", "resolution", ">", "(", "select", "max", "(", "resolution", ")", "from", "song", "where", "rating", "<", "8", ")"], "query_toks_no_value": ["select", "f_id", "from", "song", "where", "resolution", ">", "value", "select", "max", "(", "resolution", ")", "from", "song", "where", "rating", "<", "value", ")"], "question": "What is ids of the songs whose resolution is higher than the resolution of maximum rated songs with rating lower than 8?", "question_toks": ["What", "is", "ids", "of", "the", "songs", "whose", "resolution", "is", "higher", "than", "the", "resolution", "of", "maximum", "rated", "songs", "with", "rating", "lower", "than", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3615", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0114", "db_id": "network_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "What is the minimum grade of students who do not have any friends?", "question_toks": ["What", "is", "the", "minimum", "grade", "of", "students", "who", "do", "not", "have", "any", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0917", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0115", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", "=", "value", "select", "max", "(", "age", ")", "from", "person", ")"], "question": "Who is the person with maximum age?", "question_toks": ["Who", "is", "the", "person", "with", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4408", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0116", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", "=", "value", "select", "max", "(", "age", ")", "from", "person", ")"], "question": "What is the name of the person with maximum age?", "question_toks": ["What", "is", "the", "name", "of", "the", "person", "with", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4409", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0117", "db_id": "network_2", "query": "select name from person where job = \"student\" and age = (select max(age) from person where job = \"student\" )", "query_toks": ["select", "name", "from", "person", "where", "job", "=", "``", "student", "''", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "``", "student", "''", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "value", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "Who is the person with maximum age whose job is student?", "question_toks": ["Who", "is", "the", "person", "with", "maximum", "age", "whose", "job", "is", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4410", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0118", "db_id": "network_2", "query": "select name from person where job = \"student\" and age = (select max(age) from person where job = \"student\" )", "query_toks": ["select", "name", "from", "person", "where", "job", "=", "``", "student", "''", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "``", "student", "''", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "value", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "What is the name of the student with the maximum age?", "question_toks": ["What", "is", "the", "name", "of", "the", "student", "with", "the", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4411", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0119", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = \"engineer\")", "query_toks": ["select", "count", "(*)", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "``", "engineer", "\")"], "query_toks_no_value": ["select", "count", "(*)", "from", "person", "where", "age", ">", "value", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", "\")"], "question": "Find the number of people whose age is greater than maximum age of engineers.", "question_toks": ["Find", "the", "number", "of", "people", "whose", "age", "is", "greater", "than", "maximum", "age", "of", "engineers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4432", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0120", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = \"engineer\")", "query_toks": ["select", "count", "(*)", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "``", "engineer", "\")"], "query_toks_no_value": ["select", "count", "(*)", "from", "person", "where", "age", ">", "value", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", "\")"], "question": "How many people are older than maximum age of all engineer?", "question_toks": ["How", "many", "people", "are", "older", "than", "maximum", "age", "of", "all", "engineer", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4433", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0121", "db_id": "network_2", "query": "select friend from personfriend where name = \"zach\" and year = (select max(year) from personfriend where name = \"zach\")", "query_toks": ["select", "friend", "from", "personfriend", "where", "name", "=", "``", "zach", "''", "and", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "``", "zach", "\")"], "query_toks_no_value": ["select", "friend", "from", "personfriend", "where", "name", "=", "value", "and", "year", "=", "value", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", "\")"], "question": "Who is the friend of Zach with maximum year relationship?", "question_toks": ["Who", "is", "the", "friend", "of", "Zach", "with", "maximum", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4468", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0122", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = \"zach\" and t2.year = (select max(year) from personfriend where name = \"zach\")", "query_toks": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "``", "zach", "''", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "``", "zach", "\")"], "query_toks_no_value": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "value", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", "\")"], "question": "What is the age of the friend of Zach with longest year relationship?", "question_toks": ["What", "is", "the", "age", "of", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4470", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0123", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = \"zach\" and t2.year = (select max(year) from personfriend where name = \"zach\")", "query_toks": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "``", "zach", "''", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "``", "zach", "\")"], "query_toks_no_value": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "value", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", "\")"], "question": "What are the ages of all of Zach's friends who are in the longest relationship?", "question_toks": ["What", "are", "the", "ages", "of", "all", "of", "Zach", "'", "s", "friends", "who", "are", "in", "the", "longest", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4471", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0124", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"alice\" and t2.year = (select max(year) from personfriend where friend = \"alice\")", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "``", "alice", "''", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "``", "alice", "\")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "value", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", "\")"], "question": "Find the name, age, and job title of persons who are friends with Alice for the longest years.", "question_toks": ["Find", "the", "name", ",", "age", ",", "and", "job", "title", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "years", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4474", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0125", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"alice\" and t2.year = (select max(year) from personfriend where friend = \"alice\")", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "``", "alice", "''", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "``", "alice", "\")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "value", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", "\")"], "question": "What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?", "question_toks": ["What", "are", "the", "names", ",", "ages", ",", "and", "jobs", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4475", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0126", "db_id": "perpetrator", "query": "select max(year) from perpetrator", "query_toks": ["select", "max", "(", "year", ")", "from", "perpetrator"], "query_toks_no_value": ["select", "max", "(", "year", ")", "from", "perpetrator"], "question": "In which year did the crime happen with maximum year?", "question_toks": ["In", "which", "year", "did", "the", "crime", "happen", "with", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2323", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0127", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" )", "query_toks": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "``", "san", "francisco", "''", "and", "t1", ".", "food_type", "=", "``", "french", "''", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "``", "san", "francisco", "''", "and", "t1", ".", "food_type", "=", "``", "french", "''", ")"], "query_toks_no_value": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "francisco", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "value", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "francisco", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the maximum rated french restaurant in san francisco ?", "question_toks": ["what", "is", "the", "maximum", "rated", "french", "restaurant", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1541", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0128", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" )", "query_toks": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "``", "san", "francisco", "''", "and", "t1", ".", "food_type", "=", "``", "french", "''", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "``", "san", "francisco", "''", "and", "t1", ".", "food_type", "=", "``", "french", "''", ")"], "query_toks_no_value": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "francisco", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "value", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "francisco", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "What is the french with maximum rating in san francisco ?", "question_toks": ["What", "is", "the", "french", "with", "maximum", "rating", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1542", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0129", "db_id": "restaurants", "query": "select t3.house_number , t1.name from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name join location as t3 on t1.id = t3.restaurant_id where t2.region = \"bay area\" and t1.food_type = \"american\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name where t2.region = \"bay area\" and t1.food_type = \"american\" )", "query_toks": ["select", "t3", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "join", "location", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "restaurant_id", "where", "t2", ".", "region", "=", "``", "bay", "area", "''", "and", "t1", ".", "food_type", "=", "``", "american", "''", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "where", "t2", ".", "region", "=", "``", "bay", "area", "''", "and", "t1", ".", "food_type", "=", "``", "american", "''", ")"], "query_toks_no_value": ["select", "t3", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "join", "location", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "restaurant_id", "where", "t2", ".", "region", "=", "value", "area", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "value", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "where", "t2", ".", "region", "=", "value", "area", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the american with maximum rating in the bay area ?", "question_toks": ["what", "is", "the", "american", "with", "maximum", "rating", "in", "the", "bay", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1607", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0130", "db_id": "scholar", "query": "select distinct paperid from paper where year = ( select max ( year ) from paper )", "query_toks": ["select", "distinct", "paperid", "from", "paper", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "paper", ")"], "query_toks_no_value": ["select", "distinct", "paperid", "from", "paper", "where", "year", "=", "value", "select", "max", "(", "year", ")", "from", "paper", ")"], "question": "papers published in the maximum year", "question_toks": ["papers", "published", "in", "the", "maximum", "year"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0992", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0131", "db_id": "scholar", "query": "select distinct max ( t3.year ) from writes as t2 join author as t1 on t2.authorid = t1.authorid join paper as t3 on t2.paperid = t3.paperid where t1.authorname = \"mary crainie\"", "query_toks": ["select", "distinct", "max", "(", "t3", ".", "year", ")", "from", "writes", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "join", "paper", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "authorname", "=", "``", "mary", "crainie", "''"], "query_toks_no_value": ["select", "distinct", "max", "(", "t3", ".", "year", ")", "from", "writes", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "join", "paper", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "authorname", "=", "value", "crainie"], "question": "When was the max year Mary Crainie published a paper ?", "question_toks": ["When", "was", "the", "max", "year", "Mary", "Crainie", "published", "a", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"mary crainie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1119", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0132", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "query_toks_no_value": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "value", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "Find the SSN and name of scientists who are assigned to the project with the maximum hours.", "question_toks": ["Find", "the", "SSN", "and", "name", "of", "scientists", "who", "are", "assigned", "to", "the", "project", "with", "the", "maximum", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6501", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0133", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "query_toks_no_value": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "value", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "What are the SSN and names of scientists working on the project with the maximum hours?", "question_toks": ["What", "are", "the", "SSN", "and", "names", "of", "scientists", "working", "on", "the", "project", "with", "the", "maximum", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6502", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0134", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "value", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "Find the names of scientists who are not working on the project with the maximum hours.", "question_toks": ["Find", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "maximum", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6511", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0135", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "value", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "What are the names of scientists who are not working on the project with the maximum hours?", "question_toks": ["What", "are", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "maximum", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6512", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0136", "db_id": "small_bank_1", "query": "select t1.custid , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid where t2.balance < (select max(balance) from checking)", "query_toks": ["select", "t1", ".", "custid", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "max", "(", "balance", ")", "from", "checking", ")"], "query_toks_no_value": ["select", "t1", ".", "custid", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "value", "select", "max", "(", "balance", ")", "from", "checking", ")"], "question": "What are the customer id and name corresponding to accounts with a checking balance less than the maximum checking balance?", "question_toks": ["What", "are", "the", "customer", "id", "and", "name", "corresponding", "to", "accounts", "with", "a", "checking", "balance", "less", "than", "the", "maximum", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1787", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0137", "db_id": "soccer_1", "query": "select distinct t1.player_name from player as t1 join player_attributes as t2 on t1.player_api_id = t2.player_api_id where t2.dribbling = ( select max(overall_rating) from player_attributes)", "query_toks": ["select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "where", "t2", ".", "dribbling", "=", "(", "select", "max", "(", "overall_rating", ")", "from", "player_attributes", ")"], "query_toks_no_value": ["select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "where", "t2", ".", "dribbling", "=", "value", "select", "max", "(", "overall_rating", ")", "from", "player_attributes", ")"], "question": "What are the names of players who have the best overall rating?", "question_toks": ["What", "are", "the", "names", "of", "players", "who", "have", "the", "best", "overall", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 47, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1298", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0138", "db_id": "soccer_2", "query": "select distinct state from college where enr < (select max(enr) from college)", "query_toks": ["select", "distinct", "state", "from", "college", "where", "enr", "<", "(", "select", "max", "(", "enr", ")", "from", "college", ")"], "query_toks_no_value": ["select", "distinct", "state", "from", "college", "where", "enr", "<", "value", "select", "max", "(", "enr", ")", "from", "college", ")"], "question": "Find the states where have the colleges whose enrollments are less than the maximum enrollment.", "question_toks": ["Find", "the", "states", "where", "have", "the", "colleges", "whose", "enrollments", "are", "less", "than", "the", "maximum", "enrollment", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5038", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0139", "db_id": "station_weather", "query": "select min(low_temperature) , max(wind_speed_mph) from weekly_weather", "query_toks": ["select", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "from", "weekly_weather"], "query_toks_no_value": ["select", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "from", "weekly_weather"], "question": "show the minimum low temperature and maximum wind speed in miles per hour.", "question_toks": ["show", "the", "minimum", "low", "temperature", "and", "maximum", "wind", "speed", "in", "miles", "per", "hour", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]], [1, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3171", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0140", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "value", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "question": "Find the id of the order which is shipped maximum shipment date recently.", "question_toks": ["Find", "the", "id", "of", "the", "order", "which", "is", "shipped", "maximum", "shipment", "date", "recently", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6923", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0141", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "value", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "question": "Which order has the maximum shipment date? Give me the order id.", "question_toks": ["Which", "order", "has", "the", "maximum", "shipment", "date", "?", "Give", "me", "the", "order", "id", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6924", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0142", "db_id": "voter_1", "query": "select max(created) from votes where state = \"ca\"", "query_toks": ["select", "max", "(", "created", ")", "from", "votes", "where", "state", "=", "``", "ca", "''"], "query_toks_no_value": ["select", "max", "(", "created", ")", "from", "votes", "where", "state", "=", "value"], "question": "What is maximum date created of votes from the state 'CA'?", "question_toks": ["What", "is", "maximum", "date", "created", "of", "votes", "from", "the", "state", "'", "CA", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"ca\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0691", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0143", "db_id": "voter_2", "query": "select max(age) from student", "query_toks": ["select", "max", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "student"], "question": "What is the maximum age among the students?", "question_toks": ["What", "is", "the", "maximum", "age", "among", "the", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5451", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0144", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "Tell me the maximum and minimum ages of students studying major 600.", "question_toks": ["Tell", "me", "the", "maximum", "and", "minimum", "ages", "of", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5461", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0145", "db_id": "wine_1", "query": "select name from wine where price > (select max(price) from wine where year = 2006)", "query_toks": ["select", "name", "from", "wine", "where", "price", ">", "(", "select", "max", "(", "price", ")", "from", "wine", "where", "year", "=", "2006", ")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "price", ">", "value", "select", "max", "(", "price", ")", "from", "wine", "where", "year", "=", "value", ")"], "question": "What are the names of wines that are more expensive then maximum price of wines made in the year 2006?", "question_toks": ["What", "are", "the", "names", "of", "wines", "that", "are", "more", "expensive", "then", "maximum", "price", "of", "wines", "made", "in", "the", "year", "2006", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2006.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6585", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0146", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["select", "name", "from", "country", "where", "surfacearea", ">", "(", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "surfacearea", ">", "value", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the countries that have greater surface area than country in Europe with maximum surface area?", "question_toks": ["What", "are", "the", "countries", "that", "have", "greater", "surface", "area", "than", "country", "in", "Europe", "with", "maximum", "surface", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0146", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0147", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["select", "name", "from", "country", "where", "surfacearea", ">", "(", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "surfacearea", ">", "value", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "Which countries have greater area than than country in Europe with maximum age?", "question_toks": ["Which", "countries", "have", "greater", "area", "than", "than", "country", "in", "Europe", "with", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0147", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0148", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "asia", "''", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "value", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the Asian countries which have a maximum population in Africa?", "question_toks": ["What", "are", "the", "Asian", "countries", "which", "have", "a", "maximum", "population", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0148", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0149", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value"], "question": "How many people live in Asia, and what is the maximum GNP among them?", "question_toks": ["How", "many", "people", "live", "in", "Asia", ",", "and", "what", "is", "the", "maximum", "GNP", "among", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0723", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0150", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select max(population) from country where continent = \"asia\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "africa", "''", "and", "population", "<", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "value", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the African countries that have a population less than country with maximum population in Asia?", "question_toks": ["What", "are", "the", "African", "countries", "that", "have", "a", "population", "less", "than", "country", "with", "maximum", "population", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0774", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0151", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "query_toks_no_value": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "question": "What is the language spoken by the maximum percentage of people in each country?", "question_toks": ["What", "is", "the", "language", "spoken", "by", "the", "maximum", "percentage", "of", "people", "in", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0816", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0152", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "query_toks_no_value": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "question": "What are the country codes of the different countries, and what are the languages spoken by the maximum percentage of people for each?", "question_toks": ["What", "are", "the", "country", "codes", "of", "the", "different", "countries", ",", "and", "what", "are", "the", "languages", "spoken", "by", "the", "maximum", "percentage", "of", "people", "for", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0817", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0153", "db_id": "world_1", "query": "select count(*) from ( select countrycode from countrylanguage where language like 'spanish' group by countrycode having percentage = ( select max(percentage) from countrylanguage where language like 'spanish' ) )", "query_toks": ["select", "count", "(*)", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "``", "spanish", "''", "group", "by", "countrycode"], "query_toks_no_value": ["select", "count", "(*)", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "What is the count of countries where Spanish is spoken by the maximum percentage of people?", "question_toks": ["What", "is", "the", "count", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "maximum", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0818", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0154", "db_id": "world_1", "query": "select count(*) from ( select countrycode from countrylanguage where language like 'spanish' group by countrycode having percentage = ( select max(percentage) from countrylanguage where language like 'spanish' ) )", "query_toks": ["select", "count", "(*)", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "``", "spanish", "''", "group", "by", "countrycode"], "query_toks_no_value": ["select", "count", "(*)", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "Count the number of countries for which Spanish is the maximum spoken language.", "question_toks": ["Count", "the", "number", "of", "countries", "for", "which", "Spanish", "is", "the", "maximum", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0819", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0155", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "``", "spanish", "''", "group", "by", "countrycode"], "query_toks_no_value": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "What are the codes of countries where Spanish is spoken by the maximum percentage of people?", "question_toks": ["What", "are", "the", "codes", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "maximum", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0820", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0156", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "``", "spanish", "''", "group", "by", "countrycode"], "query_toks_no_value": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "Return the codes of countries for which Spanish is the maximum percentage of spoken language.", "question_toks": ["Return", "the", "codes", "of", "countries", "for", "which", "Spanish", "is", "the", "maximum", "percentage", "of", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0821", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "having_in_sql_0000", "db_id": "battle_death", "query": "select id , name from battle", "query_toks": ["select", "id", ",", "name", "from", "battle"], "query_toks_no_value": ["select", "id", ",", "name", "from", "battle"], "question": "What are the ids and names of the battles.", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "battles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0499", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0001", "db_id": "car_1", "query": "select countryname , countryid from countries", "query_toks": ["select", "countryname", ",", "countryid", "from", "countries"], "query_toks_no_value": ["select", "countryname", ",", "countryid", "from", "countries"], "question": "What are the countries? List name and id.", "question_toks": ["What", "are", "the", "countries", "?", "List", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0123", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0002", "db_id": "car_1", "query": "select countryname , countryid from countries", "query_toks": ["select", "countryname", ",", "countryid", "from", "countries"], "query_toks_no_value": ["select", "countryname", ",", "countryid", "from", "countries"], "question": "What are the names and ids of all countries?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0124", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0003", "db_id": "course_teach", "query": "select hometown from teacher", "query_toks": ["select", "hometown", "from", "teacher"], "query_toks_no_value": ["select", "hometown", "from", "teacher"], "question": "Show the hometowns of teachers", "question_toks": ["Show", "the", "hometowns", "of", "teachers"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0397", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0004", "db_id": "course_teach", "query": "select hometown from teacher", "query_toks": ["select", "hometown", "from", "teacher"], "query_toks_no_value": ["select", "hometown", "from", "teacher"], "question": "What are the towns from which teachers come from?", "question_toks": ["What", "are", "the", "towns", "from", "which", "teachers", "come", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0398", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0005", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "Show names of teachers.", "question_toks": ["Show", "names", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0407", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0006", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "What are the names of the teachers?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0408", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0007", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value"], "question": "Which professionals live in the state of Indiana? List his or her id, last name and cell phone.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "?", "List", "his", "or", "her", "id", ",", "last", "name", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0922", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0008", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value"], "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana.", "question_toks": ["Find", "the", "id", ",", "last", "name", "and", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0923", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0009", "db_id": "dog_kennels", "query": "select name from dogs", "query_toks": ["select", "name", "from", "dogs"], "query_toks_no_value": ["select", "name", "from", "dogs"], "question": "What are the names of the dogs?", "question_toks": ["What", "are", "the", "names", "of", "the", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0925", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0010", "db_id": "dog_kennels", "query": "select professional_id , cell_number from professionals", "query_toks": ["select", "professional_id", ",", "cell_number", "from", "professionals"], "query_toks_no_value": ["select", "professional_id", ",", "cell_number", "from", "professionals"], "question": "Find the id and cell phone of the professionals.", "question_toks": ["Find", "the", "id", "and", "cell", "phone", "of", "the", "professionals", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0943", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0011", "db_id": "flight_2", "query": "select airline from airlines", "query_toks": ["select", "airline", "from", "airlines"], "query_toks_no_value": ["select", "airline", "from", "airlines"], "question": "Find all airlines.", "question_toks": ["Find", "all", "airlines", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0241", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0012", "db_id": "museum_visit", "query": "select id , name , age from visitor", "query_toks": ["select", "id", ",", "name", ",", "age", "from", "visitor"], "query_toks_no_value": ["select", "id", ",", "name", ",", "age", "from", "visitor"], "question": "find the id, name and age for visitors.", "question_toks": ["find", "the", "id", ",", "name", "and", "age", "for", "visitors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0419", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0013", "db_id": "network_1", "query": "select grade from highschooler", "query_toks": ["select", "grade", "from", "highschooler"], "query_toks_no_value": ["select", "grade", "from", "highschooler"], "question": "Show me all grades.", "question_toks": ["Show", "me", "all", "grades", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0880", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0014", "db_id": "pets_1", "query": "select fname , sex from student", "query_toks": ["select", "fname", ",", "sex", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "sex", "from", "student"], "question": "Find the first name and gender of student.", "question_toks": ["Find", "the", "first", "name", "and", "gender", "of", "student", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0081", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0015", "db_id": "pets_1", "query": "select fname , sex from student", "query_toks": ["select", "fname", ",", "sex", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "sex", "from", "student"], "question": "What is the first name and gender of the all the students", "question_toks": ["What", "is", "the", "first", "name", "and", "gender", "of", "the", "all", "the", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0082", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0016", "db_id": "poker_player", "query": "select nationality from people", "query_toks": ["select", "nationality", "from", "people"], "query_toks_no_value": ["select", "nationality", "from", "people"], "question": "What are the nationalities?", "question_toks": ["What", "are", "the", "nationalities", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0677", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0017", "db_id": "poker_player", "query": "select nationality from people", "query_toks": ["select", "nationality", "from", "people"], "query_toks_no_value": ["select", "nationality", "from", "people"], "question": "Return the nationalities.", "question_toks": ["Return", "the", "nationalities", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0678", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0018", "db_id": "tvshow", "query": "select id from tv_channel", "query_toks": ["select", "id", "from", "tv_channel"], "query_toks_no_value": ["select", "id", "from", "tv_channel"], "question": "find id of the tv channels.", "question_toks": ["find", "id", "of", "the", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0641", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0019", "db_id": "tvshow", "query": "select id from tv_channel", "query_toks": ["select", "id", "from", "tv_channel"], "query_toks_no_value": ["select", "id", "from", "tv_channel"], "question": "What are the ids of all tv channels?", "question_toks": ["What", "are", "the", "ids", "of", "all", "tv", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0642", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0020", "db_id": "wta_1", "query": "select tourney_name from matches", "query_toks": ["select", "tourney_name", "from", "matches"], "query_toks_no_value": ["select", "tourney_name", "from", "matches"], "question": "Find the name of tourney.", "question_toks": ["Find", "the", "name", "of", "tourney", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0445", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0021", "db_id": "wta_1", "query": "select tourney_name from matches", "query_toks": ["select", "tourney_name", "from", "matches"], "query_toks_no_value": ["select", "tourney_name", "from", "matches"], "question": "What are the names of tournaments?", "question_toks": ["What", "are", "the", "names", "of", "tournaments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0446", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0022", "db_id": "wta_1", "query": "select country_code from players", "query_toks": ["select", "country_code", "from", "players"], "query_toks_no_value": ["select", "country_code", "from", "players"], "question": "Find the codes of countries.", "question_toks": ["Find", "the", "codes", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0477", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0023", "db_id": "wta_1", "query": "select country_code from players", "query_toks": ["select", "country_code", "from", "players"], "query_toks_no_value": ["select", "country_code", "from", "players"], "question": "What are the codes of countries?", "question_toks": ["What", "are", "the", "codes", "of", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0478", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0024", "db_id": "aircraft", "query": "select aircraft from aircraft", "query_toks": ["select", "aircraft", "from", "aircraft"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft"], "question": "List the names of aircrafts.", "question_toks": ["List", "the", "names", "of", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4829", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0025", "db_id": "aircraft", "query": "select aircraft from aircraft ", "query_toks": ["select", "aircraft", "from", "aircraft"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft"], "question": "What are the names of all aircrafts?", "question_toks": ["What", "are", "the", "names", "of", "all", "aircrafts", "that", "have", "won", "a", "match", "at", "least", "twice", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4830", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0026", "db_id": "allergy_1", "query": "select stuid from has_allergy", "query_toks": ["select", "stuid", "from", "has_allergy"], "query_toks_no_value": ["select", "stuid", "from", "has_allergy"], "question": "Show all student IDs that has allergy.", "question_toks": ["Show", "all", "student", "IDs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0505", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0027", "db_id": "allergy_1", "query": "select stuid from student", "query_toks": ["select", "stuid", "from", "has_allergy"], "query_toks_no_value": ["select", "stuid", "from", "has_allergy"], "question": "What are the students ids?", "question_toks": ["What", "are", "the", "students", "ids", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0506", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0028", "db_id": "architecture", "query": "select id , name from architect", "query_toks": ["select", "id", ",", "name", "from", "architect"], "query_toks_no_value": ["select", "id", ",", "name", "from", "architect"], "question": "What are the ids and names of the architects?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6953", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0029", "db_id": "architecture", "query": "select id , name , gender from architect ", "query_toks": ["select", "id", ",", "name", ",", "gender", "from", "architect"], "query_toks_no_value": ["select", "id", ",", "name", ",", "gender", "from", "architect"], "question": "What are the ids, names and genders of the architects?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "genders", "of", "the", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6955", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "how_many_0000", "db_id": "soccer_2", "query": "select avg(enr) from college", "query_toks": ["select", "avg", "(", "enr", ")", "from", "college"], "query_toks_no_value": ["select", "avg", "(", "enr", ")", "from", "college"], "question": "Count the average number of students", "question_toks": ["Count", "the", "average", "nmber", "of", "students", "that", "does", "each", "college", "have", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4947", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_AVG"]}, {"id": "how_many_0001", "db_id": "allergy_1", "query": "select count(distinct allergy) from allergy_type", "query_toks": ["select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type"], "query_toks_no_value": ["select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type"], "question": "Count allergies there.", "question_toks": ["Count", "allergies", "there", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0439", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0002", "db_id": "allergy_1", "query": "select count(distinct allergy) from allergy_type", "query_toks": ["select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type"], "query_toks_no_value": ["select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type"], "question": "Count allergy entities there.", "question_toks": ["Count", "allergy", "entities", "there", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0440", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0003", "db_id": "battle_death", "query": "select count(distinct result) from battle", "query_toks": ["select", "count", "(", "distinct", "result", ")", "from", "battle"], "query_toks_no_value": ["select", "count", "(", "distinct", "result", ")", "from", "battle"], "question": "Count different results for the battles?", "question_toks": ["Count", "different", "results", "for", "the", "battles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0502", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0004", "db_id": "climbing", "query": "select count(distinct country) from climber", "query_toks": ["select", "count", "(", "distinct", "country", ")", "from", "climber"], "query_toks_no_value": ["select", "count", "(", "distinct", "country", ")", "from", "climber"], "question": "Count the distinct countries are the climbers from?", "question_toks": ["Count", "the", "distinct", "countries", "are", "the", "climbers", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 9, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1118", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0005", "db_id": "club_1", "query": "select count(distinct t2.position) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid where t1.clubname = \"bootup baltimore\"", "query_toks": ["select", "count", "(", "distinct", "t2", ".", "position", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "where", "t1", ".", "clubname", "=", "``", "bootup", "baltimore", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "position", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "where", "t1", ".", "clubname", "=", "value", "baltimore"], "question": "Count the different roles are there in the club \"Bootup Baltimore\"?", "question_toks": ["Count", "the", "different", "roles", "are", "there", "in", "the", "club", "\"", "Bootup", "Baltimore", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 15, true], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"bootup baltimore\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4298", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0006", "db_id": "college_1", "query": "select count(distinct class_code) from class", "query_toks": ["select", "count", "(", "distinct", "class_code", ")", "from", "class"], "query_toks_no_value": ["select", "count", "(", "distinct", "class_code", ")", "from", "class"], "question": "Count the different classes there?", "question_toks": ["Count", "the", "different", "classes", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3227", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0007", "db_id": "college_1", "query": "select count(distinct class_code) from class", "query_toks": ["select", "count", "(", "distinct", "class_code", ")", "from", "class"], "query_toks_no_value": ["select", "count", "(", "distinct", "class_code", ")", "from", "class"], "question": "Count the unique classes that are offered?", "question_toks": ["Count", "the", "unique", "classes", "that", "are", "offered", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3228", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0008", "db_id": "college_1", "query": "select count(distinct dept_name) from department", "query_toks": ["select", "count", "(", "distinct", "dept_name", ")", "from", "department"], "query_toks_no_value": ["select", "count", "(", "distinct", "dept_name", ")", "from", "department"], "question": "Count the departments that the college has?", "question_toks": ["Count", "the", "departments", "that", "the", "college", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3231", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0009", "db_id": "college_1", "query": "select count(distinct dept_name) from department", "query_toks": ["select", "count", "(", "distinct", "dept_name", ")", "from", "department"], "query_toks_no_value": ["select", "count", "(", "distinct", "dept_name", ")", "from", "department"], "question": "Count different departments here?", "question_toks": ["Count", "different", "departments", "here", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3232", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0010", "db_id": "cre_Doc_Template_Mgt", "query": "select count(distinct template_id) from documents", "query_toks": ["select", "count", "(", "distinct", "template_id", ")", "from", "documents"], "query_toks_no_value": ["select", "count", "(", "distinct", "template_id", ")", "from", "documents"], "question": "Count the different templates all document use?", "question_toks": ["Count", "the", "different", "templates", "all", "document", "use", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0305", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0011", "db_id": "dog_kennels", "query": "select count(distinct dog_id) from treatments", "query_toks": ["select", "count", "(", "distinct", "dog_id", ")", "from", "treatments"], "query_toks_no_value": ["select", "count", "(", "distinct", "dog_id", ")", "from", "treatments"], "question": "Count the number of dogs went through any treatments?", "question_toks": ["Count", "the", "number", "of", "dogs", "went", "through", "any", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[3, [0, [0, 45, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0966", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0012", "db_id": "dog_kennels", "query": "select count(distinct professional_id) from treatments", "query_toks": ["select", "count", "(", "distinct", "professional_id", ")", "from", "treatments"], "query_toks_no_value": ["select", "count", "(", "distinct", "professional_id", ")", "from", "treatments"], "question": "Count the professionals have performed any treatment to dogs?", "question_toks": ["Count", "the", "professionals", "have", "performed", "any", "treatment", "to", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[3, [0, [0, 46, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0968", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0013", "db_id": "imdb", "query": "select count ( distinct t1.name ) from cast as t2 join actor as t1 on t2.aid = t1.aid join movie as t3 on t3.mid = t2.msid where t3.title = \"saving private ryan\"", "query_toks": ["select", "count", "(", "distinct", "t1", ".", "name", ")", "from", "cast", "as", "t2", "join", "actor", "as", "t1", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t3", "on", "t3", ".", "mid", "=", "t2", ".", "msid", "where", "t3", ".", "title", "=", "``", "saving", "private", "ryan", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1", ".", "name", ")", "from", "cast", "as", "t2", "join", "actor", "as", "t1", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t3", "on", "t3", ".", "mid", "=", "t2", ".", "msid", "where", "t3", ".", "title", "=", "value", "private", "ryan"], "question": "Count the number of actors that are in the movie \" Saving Private Ryan \" ?", "question_toks": ["Count", "the", "number", "of", "actors", "that", "are", "in", "the", "movie", "\"", "Saving", "Private", "Ryan", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 43, false], null], "\"saving private ryan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1501", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0014", "db_id": "imdb", "query": "select count ( distinct t3.title ) from director as t2 join directed_by as t1 on t2.did = t1.did join movie as t3 on t3.mid = t1.msid where t2.name = \"steven spielberg\"", "query_toks": ["select", "count", "(", "distinct", "t3", ".", "title", ")", "from", "director", "as", "t2", "join", "directed_by", "as", "t1", "on", "t2", ".", "did", "=", "t1", ".", "did", "join", "movie", "as", "t3", "on", "t3", ".", "mid", "=", "t1", ".", "msid", "where", "t2", ".", "name", "=", "``", "steven", "spielberg", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3", ".", "title", ")", "from", "director", "as", "t2", "join", "directed_by", "as", "t1", "on", "t2", ".", "did", "=", "t1", ".", "did", "join", "movie", "as", "t3", "on", "t3", ".", "mid", "=", "t1", ".", "msid", "where", "t2", ".", "name", "=", "value", "spielberg"], "question": "Count the number of movies that did \" Steven Spielberg \" direct ?", "question_toks": ["Count", "the", "number", "of", "movies", "that", "did", "\"", "Steven", "Spielberg", "\"", "direct", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null]]}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"steven spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1502", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0015", "db_id": "imdb", "query": "select count ( distinct title ) from movie where release_year = 2013", "query_toks": ["select", "count", "(", "distinct", "title", ")", "from", "movie", "where", "release_year", "=", "2013"], "query_toks_no_value": ["select", "count", "(", "distinct", "title", ")", "from", "movie", "where", "release_year", "=", "value"], "question": "Count the number of movies that were produced in the year 2013 ?", "question_toks": ["Count", "the", "number", "of", "movies", "that", "were", "produced", "in", "the", "year", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 44, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1503", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0016", "db_id": "inn_1", "query": "select count(*) from reservations where firstname = \"roy\" and lastname = \"sweazy\"", "query_toks": ["select", "count", "(*)", "from", "reservations", "where", "firstname", "=", "``", "roy", "''", "and", "lastname", "=", "``", "sweazy", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Count the number of times does ROY SWEAZY has reserved a room.", "question_toks": ["Count", "the", "number", "of", "times", "does", "ROY", "SWEAZY", "has", "reserved", "a", "room", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"roy\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"sweazy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2580", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0017", "db_id": "inn_1", "query": "select count(*) from reservations as t1 join rooms as t2 on t1.room = t2.roomid where t2.maxoccupancy = t1.adults + t1.kids", "query_toks": ["select", "count", "(*)", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "t1", ".", "adults", "+", "t1", ".", "kids"], "query_toks_no_value": ["select", "count", "(*)", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "value", ".", "adults", "+", "t1", ".", "kids"], "question": "Count the amount of time the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.", "question_toks": ["Count", "the", "amount", "of", "time", "the", "number", "of", "people", "in", "the", "room", "reached", "the", "maximum", "occupancy", "of", "the", "room", ".", "The", "number", "of", "people", "include", "adults", "and", "kids", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2602", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0018", "db_id": "inn_1", "query": "select count(*) from reservations as t1 join rooms as t2 on t1.room = t2.roomid where t2.maxoccupancy = t1.adults + t1.kids", "query_toks": ["select", "count", "(*)", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "t1", ".", "adults", "+", "t1", ".", "kids"], "query_toks_no_value": ["select", "count", "(*)", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "value", ".", "adults", "+", "t1", ".", "kids"], "question": "Count the times the number of adults and kids staying in a room reached the maximum capacity of the room", "question_toks": ["Count", "the", "times", "the", "number", "of", "adults", "and", "kids", "staying", "in", "a", "room", "reached", "the", "maximum", "capacity", "of", "the", "room"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2603", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0019", "db_id": "inn_1", "query": "select count(*) from rooms", "query_toks": ["select", "count", "(*)", "from", "rooms"], "query_toks_no_value": ["select", "count", "(*)", "from", "rooms"], "question": "Count the number of rooms there", "question_toks": ["Count", "the", "number", "of", "rooms", "there"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2606", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0020", "db_id": "inn_1", "query": "select count(*) from rooms where bedtype = \"king\"", "query_toks": ["select", "count", "(*)", "from", "rooms", "where", "bedtype", "=", "``", "king", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "rooms", "where", "bedtype", "=", "value"], "question": "Count the number of rooms with king bed", "question_toks": ["Count", "the", "number", "of", "rooms", "with", "king", "bed"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2609", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0021", "db_id": "inn_1", "query": "select decor , count(*) from rooms where bedtype = \"king\" group by decor", "query_toks": ["select", "decor", ",", "count", "(*)", "from", "rooms", "where", "bedtype", "=", "``", "king", "''", "group", "by", "decor"], "query_toks_no_value": ["select", "decor", ",", "count", "(*)", "from", "rooms", "where", "bedtype", "=", "value", "group", "by", "decor"], "question": "Count the number of rooms with king beds. Report the number for each decor type.", "question_toks": ["Count", "the", "number", "of", "rooms", "with", "king", "beds", ".", "Report", "the", "number", "for", "each", "decor", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2619", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0022", "db_id": "inn_1", "query": "select decor , count(*) from rooms where baseprice > 120 group by decor", "query_toks": ["select", "decor", ",", "count", "(*)", "from", "rooms", "where", "baseprice", ">", "120", "group", "by", "decor"], "query_toks_no_value": ["select", "decor", ",", "count", "(*)", "from", "rooms", "where", "baseprice", ">", "value", "group", "by", "decor"], "question": "Count the number of rooms cost more than 120, for each different decor", "question_toks": ["Count", "the", "number", "of", "rooms", "cost", "more", "than", "120", ",", "for", "each", "different", "decor"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], 120.0, null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2625", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0023", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank", "query_toks": ["select", "sum", "(", "no_of_customers", ")", "from", "bank"], "query_toks_no_value": ["select", "sum", "(", "no_of_customers", ")", "from", "bank"], "question": "Count the customers there?", "question_toks": ["Count", "the", "customers", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3008", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0024", "db_id": "match_season", "query": "select count(*) from country", "query_toks": ["select", "count", "(*)", "from", "country"], "query_toks_no_value": ["select", "count", "(*)", "from", "country"], "question": "Count the countries there", "question_toks": ["Count", "the", "countries", "there"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1052", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0025", "db_id": "museum_visit", "query": "select count(*) from visitor where age < 30", "query_toks": ["select", "count", "(*)", "from", "visitor", "where", "age", "<", "30"], "query_toks_no_value": ["select", "count", "(*)", "from", "visitor", "where", "age", "<", "value"], "question": "Count the visitors below age 30 there?", "question_toks": ["Count", "the", "visitors", "below", "age", "30", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0411", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0026", "db_id": "museum_visit", "query": "select count(*) from museum where open_year > 2013 or open_year < 2008", "query_toks": ["select", "count", "(*)", "from", "museum", "where", "open_year", ">", "2013", "or", "open_year", "<", "2008"], "query_toks_no_value": ["select", "count", "(*)", "from", "museum", "where", "open_year", ">", "value", "or", "open_year", "<", "value"], "question": "Count the number museums that were opened after 2013 or before 2008?", "question_toks": ["Count", "the", "number", "museums", "that", "were", "opened", "after", "2013", "or", "before", "2008", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2013.0, null], "or", [false, 4, [0, [0, 4, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0428", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0027", "db_id": "poker_player", "query": "select count(*) from poker_player", "query_toks": ["select", "count", "(*)", "from", "poker_player"], "query_toks_no_value": ["select", "count", "(*)", "from", "poker_player"], "question": "Count the poker players there?", "question_toks": ["Count", "the", "poker", "players", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0647", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0028", "db_id": "poker_player", "query": "select nationality , count(*) from people group by nationality", "query_toks": ["select", "nationality", ",", "count", "(*)", "from", "people", "group", "by", "nationality"], "query_toks_no_value": ["select", "nationality", ",", "count", "(*)", "from", "people", "group", "by", "nationality"], "question": "Count the amount of people of each nationality?", "question_toks": ["Count", "the", "amount", "of", "people", "of", "each", "nationality", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0674", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0029", "db_id": "sakila_1", "query": "select t2.name , t1.category_id , count(*) from film_category as t1 join category as t2 on t1.category_id = t2.category_id group by t1.category_id", "query_toks": ["select", "t2", ".", "name", ",", "t1", ".", "category_id", ",", "count", "(*)", "from", "film_category", "as", "t1", "join", "category", "as", "t2", "on", "t1", ".", "category_id", "=", "t2", ".", "category_id", "group", "by", "t1", ".", "category_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "category_id", ",", "count", "(*)", "from", "film_category", "as", "t1", "join", "category", "as", "t2", "on", "t1", ".", "category_id", "=", "t2", ".", "category_id", "group", "by", "t1", ".", "category_id"], "question": "Count the names, ids of the different categories and number of films are in each?", "question_toks": ["Count", "the", "names", ",", "ids", "of", "the", "different", "categories", "and", "number", "of", "films", "are", "in", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 49, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 49, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2965", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0030", "db_id": "shop_membership", "query": "select city , count(*) from branch where open_year < 2010 group by city", "query_toks": ["select", "city", ",", "count", "(*)", "from", "branch", "where", "open_year", "<", "2010", "group", "by", "city"], "query_toks_no_value": ["select", "city", ",", "count", "(*)", "from", "branch", "where", "open_year", "<", "value", "group", "by", "city"], "question": "For each city, count the number of branches opened before 2010", "question_toks": ["For", "each", "city", ",", "count", "the", "number", "of", "branches", "opened", "before", "2010"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 2010.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5413", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0031", "db_id": "soccer_1", "query": "select preferred_foot , count(*) from player_attributes where overall_rating > 80 group by preferred_foot", "query_toks": ["select", "preferred_foot", ",", "count", "(*)", "from", "player_attributes", "where", "overall_rating", ">", "80", "group", "by", "preferred_foot"], "query_toks_no_value": ["select", "preferred_foot", ",", "count", "(*)", "from", "player_attributes", "where", "overall_rating", ">", "value", "group", "by", "preferred_foot"], "question": "Of all players with an overall rating greater than 80, count the number of right-footed and left-footed?", "question_toks": ["Of", "all", "players", "with", "an", "overall", "rating", "greater", "than", "80", ",", "count", "the", "number", "of", "right", "-", "footed", "and", "left", "-", "footed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 80.0, null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1302", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0032", "db_id": "wta_1", "query": "select count(*) , country_code from players group by country_code", "query_toks": ["select", "count", "(*)", ",", "country_code", "from", "players", "group", "by", "country_code"], "query_toks_no_value": ["select", "count", "(*)", ",", "country_code", "from", "players", "group", "by", "country_code"], "question": "Count the number of players from each country?", "question_toks": ["Count", "the", "number", "of", "players", "from", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0474", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0033", "db_id": "wta_1", "query": "select count(*) , year from matches group by year", "query_toks": ["select", "count", "(*)", ",", "year", "from", "matches", "group", "by", "year"], "query_toks_no_value": ["select", "count", "(*)", ",", "year", "from", "matches", "group", "by", "year"], "question": "Count the number of matches that were played in each year?", "question_toks": ["Count", "the", "number", "of", "matches", "that", "were", "played", "in", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0482", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0034", "db_id": "yelp", "query": "select review_count from business where name = \"acacia cafe\"", "query_toks": ["select", "review_count", "from", "business", "where", "name", "=", "``", "acacia", "cafe", "''"], "query_toks_no_value": ["select", "review_count", "from", "business", "where", "name", "=", "value", "cafe"], "question": "Count the number of reviews does \" Acacia Cafe \" have ?", "question_toks": ["Count", "the", "number", "of", "reviews", "does", "\"", "Acacia", "Cafe", "\"", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"acacia cafe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1212", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0035", "db_id": "activity_1", "query": "select count(*) from faculty", "query_toks": ["select", "count", "(*)", "from", "faculty"], "query_toks_no_value": ["select", "count", "(*)", "from", "faculty"], "question": "Count all the faculty we have", "question_toks": ["Count", "all", "the", "faculty", "we", "have"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6715", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0036", "db_id": "activity_1", "query": "select count(*) from faculty where sex = \"f\" and rank = \"professor\"", "query_toks": ["select", "count", "(*)", "from", "faculty", "where", "sex", "=", "``", "f", "''", "and", "rank", "=", "``", "professor", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "faculty", "where", "sex", "=", "value", "and", "rank", "=", "value"], "question": "Count the female professors that we have", "question_toks": ["Count", "the", "female", "professors", "that", "we", "have"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6727", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0037", "db_id": "aircraft", "query": "select count(*) from aircraft", "query_toks": ["select", "count", "(*)", "from", "aircraft"], "query_toks_no_value": ["select", "count", "(*)", "from", "aircraft"], "question": "Count the number of aircraft there", "question_toks": ["Count", "the", "number", "of", "aircraft", "there"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4797", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0038", "db_id": "allergy_1", "query": "select count(*) from allergy_type where allergytype = \"animal\"", "query_toks": ["select", "count", "(*)", "from", "allergy_type", "where", "allergytype", "=", "``", "animal", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "allergy_type", "where", "allergytype", "=", "value"], "question": "Count the allergies with type animal?", "question_toks": ["Count", "the", "allergies", "with", "type", "animal", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0451", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0039", "db_id": "allergy_1", "query": "select count(*) from student where age = 18", "query_toks": ["select", "count", "(*)", "from", "student", "where", "age", "=", "18"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "age", "=", "value"], "question": "Count the students with age 18?", "question_toks": ["Count", "the", "students", "with", "age", "18", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 18.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0473", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0040", "db_id": "apartment_rentals", "query": "select booking_status_code , count(*) from apartment_bookings group by booking_status_code", "query_toks": ["select", "booking_status_code", ",", "count", "(*)", "from", "apartment_bookings", "group", "by", "booking_status_code"], "query_toks_no_value": ["select", "booking_status_code", ",", "count", "(*)", "from", "apartment_bookings", "group", "by", "booking_status_code"], "question": "Count bookings for each booking status? List the booking status code and the number of corresponding bookings.", "question_toks": ["Count", "bookings", "for", "each", "booking", "status", "?", "List", "the", "booking", "status", "code", "and", "the", "number", "of", "corresponding", "bookings", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1249", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0041", "db_id": "apartment_rentals", "query": "select count(*) from apartments where apt_id not in (select apt_id from apartment_facilities)", "query_toks": ["select", "count", "(*)", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")"], "question": "Count the apartments that do not have any facility?", "question_toks": ["Count", "the", "apartments", "that", "do", "not", "have", "any", "facility", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1268", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0042", "db_id": "architecture", "query": "select count(*) from architect where gender = \"female\"", "query_toks": ["select", "count", "(*)", "from", "architect", "where", "gender", "=", "``", "female", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "architect", "where", "gender", "=", "value"], "question": "Count the female architects?", "question_toks": ["Count", "the", "female", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"female\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6945", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0043", "db_id": "baseball_1", "query": "select count(*) from team_franchise where active = \"y\"", "query_toks": ["select", "count", "(*)", "from", "team_franchise", "where", "active", "=", "``", "y", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "team_franchise", "where", "active", "=", "value"], "question": "Count the team franchises are active, with active value 'Y'?", "question_toks": ["Count", "the", "team", "franchises", "are", "active", ",", "with", "active", "value", "'", "Y", "'?"], "sql": {"from": {"table_units": [["table_unit", 24]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 341, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3705", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0044", "db_id": "battle_death", "query": "select count(*) from ship where disposition_of_ship = \"captured\"", "query_toks": ["select", "count", "(*)", "from", "ship", "where", "disposition_of_ship", "=", "``", "captured", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "ship", "where", "disposition_of_ship", "=", "value"], "question": "Count the ships ended up being 'Captured'?", "question_toks": ["Count", "the", "ships", "ended", "up", "being", "'", "Captured", "'?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"captured\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0491", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0045", "db_id": "battle_death", "query": "select count(*) from battle where id not in ( select lost_in_battle from ship where tonnage = \"225\" )", "query_toks": ["select", "count", "(*)", "from", "battle", "where", "id", "not", "in", "(", "select", "lost_in_battle", "from", "ship", "where", "tonnage", "=", "``", "225", "''", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "battle", "where", "id", "not", "in", "(", "select", "lost_in_battle", "from", "ship", "where", "tonnage", "=", "value", ")"], "question": "Count the battles did not lose any ship with tonnage '225'?", "question_toks": ["Count", "the", "battles", "did", "not", "lose", "any", "ship", "with", "tonnage", "'", "225", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"225\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0503", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0046", "db_id": "car_1", "query": "select count(*) from countries", "query_toks": ["select", "count", "(*)", "from", "countries"], "query_toks_no_value": ["select", "count", "(*)", "from", "countries"], "question": "Count all the countries", "question_toks": ["Count", "all", "the", "countries"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0092", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0047", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Count the models does each car maker produce? List maker full name, id and the number.", "question_toks": ["Count", "the", "models", "does", "each", "car", "maker", "produce", "?", "List", "maker", "full", "name", ",", "id", "and", "the", "number", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0093", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0048", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What is the full name of each car maker, along with its id and models count it produces?", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "car", "maker", ",", "along", "with", "its", "id", "and", "models", "count", "it", "produces", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0094", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0049", "db_id": "car_1", "query": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id", "query_toks": ["select", "count", "(*)", ",", "t2", ".", "fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "group", "by", "t2", ".", "id"], "query_toks_no_value": ["select", "count", "(*)", ",", "t2", ".", "fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "group", "by", "t2", ".", "id"], "question": "Count the car models are produced by each maker ? Only list the count and the maker full name .", "question_toks": ["Count", "the", "car", "models", "are", "produced", "by", "each", "maker", "?", "Only", "list", "the", "count", "and", "the", "maker", "full", "name", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0109", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0050", "db_id": "car_1", "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "query_toks": ["select", "count", "(*)", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(*)", ">", "2"], "query_toks_no_value": ["select", "count", "(*)", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(*)", ">", "2"], "question": "Count the countries that has more than 2 car makers ?", "question_toks": ["Count", "the", "countries", "that", "has", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0161", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0051", "db_id": "car_1", "query": "select count(*) from cars_data where cylinders > 6", "query_toks": ["select", "count", "(*)", "from", "cars_data", "where", "cylinders", ">", "6"], "query_toks_no_value": ["select", "count", "(*)", "from", "cars_data", "where", "cylinders", ">", "value"], "question": "Count the cars that has over 6 cylinders?", "question_toks": ["Count", "the", "cars", "that", "has", "over", "6", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 6.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0163", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0052", "db_id": "chinook_1", "query": "select count(*) from album", "query_toks": ["select", "count", "(*)", "from", "album"], "query_toks_no_value": ["select", "count", "(*)", "from", "album"], "question": "Count the albums here?", "question_toks": ["Count", "the", "albums", "here", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0807", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0053", "db_id": "chinook_1", "query": "select t1.title , t2.albumid , count(*) from album as t1 join track as t2 on t1.albumid = t2.albumid group by t2.albumid", "query_toks": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(*)", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(*)", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid"], "question": "List the names and ids of the different albums, and count the tracks on each?", "question_toks": ["List", "the", "names", "and", "ids", "of", "the", "different", "albums", ",", "and", "count", "the", "tracks", "on", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 58, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0834", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0054", "db_id": "chinook_1", "query": "select count(*) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"rock\"", "query_toks": ["select", "count", "(*)", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "``", "rock", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "Count the tracks belong to rock genre?", "question_toks": ["Count", "the", "tracks", "belong", "to", "rock", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0841", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0055", "db_id": "cinema", "query": "select count(*) from film where title like \"%dummy%\"", "query_toks": ["select", "count", "(*)", "from", "film", "where", "title", "like", "\"%", "dummy", "%\""], "query_toks_no_value": ["select", "count", "(*)", "from", "film", "where", "title", "like", "\"%", "dummy", "%\""], "question": "Count the films that have the word 'Dummy' in their titles?", "question_toks": ["Count", "the", "films", "that", "have", "the", "word", "'", "Dummy", "'", "in", "their", "titles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%dummy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1958", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0056", "db_id": "climbing", "query": "select count(*) from climber", "query_toks": ["select", "count", "(*)", "from", "climber"], "query_toks_no_value": ["select", "count", "(*)", "from", "climber"], "question": "Count climbers number?", "question_toks": ["Count", "climbers", "number", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1110", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0057", "db_id": "club_1", "query": "select count(*) from club", "query_toks": ["select", "count", "(*)", "from", "club"], "query_toks_no_value": ["select", "count", "(*)", "from", "club"], "question": "Count the clubs there?", "question_toks": ["Count", "the", "clubs", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4250", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0058", "db_id": "club_1", "query": "select count(*) from student", "query_toks": ["select", "count", "(*)", "from", "student"], "query_toks_no_value": ["select", "count", "(*)", "from", "student"], "question": "Count the students there?", "question_toks": ["Count", "the", "students", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4254", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0059", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\" and t3.lname = \"kim\"", "query_toks": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "``", "tracy", "''", "and", "t3", ".", "lname", "=", "``", "kim", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value"], "question": "Count the clubs in which \"Tracy Kim\" a member?", "question_toks": ["Count", "the", "clubs", "in", "which", "\"", "Tracy", "Kim", "\"", "a", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"tracy\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"kim\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4269", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0060", "db_id": "club_1", "query": "select count(*) from club where clublocation = \"hhh\"", "query_toks": ["select", "count", "(*)", "from", "club", "where", "clublocation", "=", "``", "hhh", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "club", "where", "clublocation", "=", "value"], "question": "Count the clubs are located at \"HHH\"?", "question_toks": ["Count", "the", "clubs", "are", "located", "at", "\"", "HHH", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"hhh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4292", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0061", "db_id": "college_1", "query": "select count(*) from professor where prof_high_degree = \"ph.d.\" or prof_high_degree = \"ma\"", "query_toks": ["select", "count", "(*)", "from", "professor", "where", "prof_high_degree", "=", "``", "ph", ".", "d", ".\"", "or", "prof_high_degree", "=", "''", "ma", "``"], "query_toks_no_value": ["select", "count", "(*)", "from", "professor", "where", "prof_high_degree", "=", "value", ".", "d", ".\"", "or", "prof_high_degree", "=", "ma"], "question": "Count the professors who has a either Ph.D. or MA degree?", "question_toks": ["Count", "the", "professors", "who", "has", "a", "either", "Ph", ".", "D", ".", "or", "MA", "degree", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"ph.d.\"", null], "or", [false, 2, [0, [0, 31, false], null], "\"ma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3287", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0062", "db_id": "college_1", "query": "select count(*) from professor where prof_high_degree = \"ph.d.\" or prof_high_degree = \"ma\"", "query_toks": ["select", "count", "(*)", "from", "professor", "where", "prof_high_degree", "=", "``", "ph", ".", "d", ".\"", "or", "prof_high_degree", "=", "''", "ma", "``"], "query_toks_no_value": ["select", "count", "(*)", "from", "professor", "where", "prof_high_degree", "=", "value", ".", "d", ".\"", "or", "prof_high_degree", "=", "ma"], "question": "Count the professors attained either Ph.D. or Masters degrees?", "question_toks": ["Count", "the", "professors", "attained", "either", "Ph", ".", "D", ".", "or", "Masters", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"ph.d.\"", null], "or", [false, 2, [0, [0, 31, false], null], "\"ma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3288", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0063", "db_id": "concert_singer", "query": "select count(*) from singer", "query_toks": ["select", "count", "(*)", "from", "singer"], "query_toks_no_value": ["select", "count", "(*)", "from", "singer"], "question": "Count the singers that we have?", "question_toks": ["Count", "the", "singers", "that", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0000", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0064", "db_id": "concert_singer", "query": "select country , count(*) from singer group by country", "query_toks": ["select", "country", ",", "count", "(*)", "from", "singer", "group", "by", "country"], "query_toks_no_value": ["select", "country", ",", "count", "(*)", "from", "singer", "group", "by", "country"], "question": "Count the singers from each country?", "question_toks": ["Count", "the", "singers", "from", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0011", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0065", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 or year = 2015", "query_toks": ["select", "count", "(*)", "from", "concert", "where", "year", "=", "2014", "or", "year", "=", "2015"], "query_toks_no_value": ["select", "count", "(*)", "from", "concert", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "Count the concerts are there in year 2014 or 2015?", "question_toks": ["Count", "the", "concerts", "are", "there", "in", "year", "2014", "or", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null], "or", [false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0020", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0066", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 or year = 2015", "query_toks": ["select", "count", "(*)", "from", "concert", "where", "year", "=", "2014", "or", "year", "=", "2015"], "query_toks_no_value": ["select", "count", "(*)", "from", "concert", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "Count the concerts occurred in 2014 or 2015?", "question_toks": ["Count", "the", "concerts", "occurred", "in", "2014", "or", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null], "or", [false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0021", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0067", "db_id": "concert_singer", "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", "query_toks": ["select", "t2", ".", "name", ",", "count", "(*)", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t1", ".", "stadium_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(*)", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t1", ".", "stadium_id"], "question": "For each stadium, count the concerts play there?", "question_toks": ["For", "each", "stadium", ",", "count", "the", "concerts", "play", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0023", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0068", "db_id": "course_teach", "query": "select count(*) from teacher", "query_toks": ["select", "count", "(*)", "from", "teacher"], "query_toks_no_value": ["select", "count", "(*)", "from", "teacher"], "question": "Count the teachers there?", "question_toks": ["Count", "the", "teachers", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0381", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0069", "db_id": "course_teach", "query": "select hometown , count(*) from teacher group by hometown", "query_toks": ["select", "hometown", ",", "count", "(*)", "from", "teacher", "group", "by", "hometown"], "query_toks_no_value": ["select", "hometown", ",", "count", "(*)", "from", "teacher", "group", "by", "hometown"], "question": "For each hometown, count teachers there?", "question_toks": ["For", "each", "hometown", ",", "count", "teachers", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0394", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0070", "db_id": "course_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", "query_toks": ["select", "t2", ".", "name", ",", "count", "(*)", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(*)", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name"], "question": "List the names of the teachers and count the number of courses do they teach?", "question_toks": ["List", "the", "names", "of", "the", "teachers", "and", "count", "the", "number", "of", "courses", "do", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0406", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0071", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents", "query_toks": ["select", "count", "(*)", "from", "documents"], "query_toks_no_value": ["select", "count", "(*)", "from", "documents"], "question": "Count the documents that we have?", "question_toks": ["Count", "the", "documents", "that", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0297", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0072", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = \"ppt\"", "query_toks": ["select", "count", "(*)", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "template_type_code", "=", "``", "ppt", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "template_type_code", "=", "value"], "question": "Count the documents are using the template with type code 'PPT'?", "question_toks": ["Count", "the", "documents", "are", "using", "the", "template", "with", "type", "code", "'", "PPT", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"ppt\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0307", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0073", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id , count(*) from documents group by template_id", "query_toks": ["select", "template_id", ",", "count", "(*)", "from", "documents", "group", "by", "template_id"], "query_toks_no_value": ["select", "template_id", ",", "count", "(*)", "from", "documents", "group", "by", "template_id"], "question": "List the different template ids used for documents, and count how many times were each of them used?", "question_toks": ["List", "the", "different", "template", "ids", "used", "for", "documents", ",", "and", "count", "how", "many", "times", "were", "each", "of", "them", "used", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0310", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0074", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from templates", "query_toks": ["select", "count", "(*)", "from", "templates"], "query_toks_no_value": ["select", "count", "(*)", "from", "templates"], "question": "Count the templates number do we have?", "question_toks": ["Count", "the", "templates", "number", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0317", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0075", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from templates where template_type_code = \"cv\"", "query_toks": ["select", "count", "(*)", "from", "templates", "where", "template_type_code", "=", "``", "cv", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "templates", "where", "template_type_code", "=", "value"], "question": "Count the templates that have template type code CV?", "question_toks": ["Count", "the", "templates", "that", "have", "template", "type", "code", "CV", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"cv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0325", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0076", "db_id": "csu_1", "query": "select count(*) from campuses where county = \"los angeles\"", "query_toks": ["select", "count", "(*)", "from", "campuses", "where", "county", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "campuses", "where", "county", "=", "value", "angeles"], "question": "Count campuses number in Los Angeles county?", "question_toks": ["Count", "campuses", "number", "in", "Los", "Angeles", "county", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2364", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0077", "db_id": "csu_1", "query": "select count(*) from campuses where county = \"los angeles\"", "query_toks": ["select", "count", "(*)", "from", "campuses", "where", "county", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "campuses", "where", "county", "=", "value", "angeles"], "question": "Count the campuses that exist in the county of LA?", "question_toks": ["Count", "the", "campuses", "that", "exist", "in", "the", "county", "of", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2365", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0078", "db_id": "csu_1", "query": "select count(*) from campuses", "query_toks": ["select", "count", "(*)", "from", "campuses"], "query_toks_no_value": ["select", "count", "(*)", "from", "campuses"], "question": "Count the CSU campuses", "question_toks": ["Count", "the", "CSU", "campuses"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2392", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0079", "db_id": "culture_company", "query": "select count(*) from book_club", "query_toks": ["select", "count", "(*)", "from", "book_club"], "query_toks_no_value": ["select", "count", "(*)", "from", "book_club"], "question": "Count the numer of book clubs", "question_toks": ["Count", "the", "numer", "of", "book", "clubs"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6962", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0080", "db_id": "culture_company", "query": "select publisher , count(*) from book_club group by publisher", "query_toks": ["select", "publisher", ",", "count", "(*)", "from", "book_club", "group", "by", "publisher"], "query_toks_no_value": ["select", "publisher", ",", "count", "(*)", "from", "book_club", "group", "by", "publisher"], "question": "Count the number of books for each publisher?", "question_toks": ["Count", "the", "number", "of", "books", "for", "each", "publisher", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6971", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0081", "db_id": "customer_complaints", "query": "select count(*) from customers", "query_toks": ["select", "count", "(*)", "from", "customers"], "query_toks_no_value": ["select", "count", "(*)", "from", "customers"], "question": "Count the customer number", "question_toks": ["Count", "the", "customer", "number"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5768", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0082", "db_id": "customer_complaints", "query": "select t1.product_name , count(*) from products as t1 join complaints as t2 on t1.product_id = t2.product_id group by t1.product_name", "query_toks": ["select", "t1", ".", "product_name", ",", "count", "(*)", "from", "products", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name"], "query_toks_no_value": ["select", "t1", ".", "product_name", ",", "count", "(*)", "from", "products", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name"], "question": "List the different product names, and count the number of complains that each received?", "question_toks": ["List", "the", "different", "product", "names", ",", "and", "count", "the", "number", "of", "complains", "that", "each", "received", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 24, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5775", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0083", "db_id": "customers_and_invoices", "query": "select gender , count(*) from customers group by gender", "query_toks": ["select", "gender", ",", "count", "(*)", "from", "customers", "group", "by", "gender"], "query_toks_no_value": ["select", "gender", ",", "count", "(*)", "from", "customers", "group", "by", "gender"], "question": "Count the customers for each gender", "question_toks": ["Count", "the", "customers", "for", "each", "gender"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1576", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0084", "db_id": "customers_campaigns_ecommerce", "query": "select count(*) from premises", "query_toks": ["select", "count", "(*)", "from", "premises"], "query_toks_no_value": ["select", "count", "(*)", "from", "premises"], "question": "Count the premises number", "question_toks": ["Count", "the", "premises", "number"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4620", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0085", "db_id": "customers_card_transactions", "query": "select count(*) from accounts", "query_toks": ["select", "count", "(*)", "from", "accounts"], "query_toks_no_value": ["select", "count", "(*)", "from", "accounts"], "question": "Count the accounts number", "question_toks": ["Count", "the", "accounts", "number"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0667", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0086", "db_id": "customers_card_transactions", "query": "select count(*) from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.customer_first_name = \"art\" and t2.customer_last_name = \"turcotte\"", "query_toks": ["select", "count", "(*)", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "``", "art", "''", "and", "t2", ".", "customer_last_name", "=", "``", "turcotte", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value"], "question": "Count the accounts number that does the customer with first name Art and last name Turcotte have?", "question_toks": ["Count", "the", "accounts", "number", "that", "does", "the", "customer", "with", "first", "name", "Art", "and", "last", "name", "Turcotte", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"art\"", null], "and", [false, 2, [0, [0, 7, false], null], "\"turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0675", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0087", "db_id": "dog_kennels", "query": "select count(*) from dogs where age < ( select avg(age) from dogs )", "query_toks": ["select", "count", "(*)", "from", "dogs", "where", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "dogs", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "dogs", "where", "age", "<", "value", "select", "avg", "(", "age", ")", "from", "dogs", ")"], "question": "Count the number of dogs that have an age below the average?", "question_toks": ["Count", "the", "number", "of", "dogs", "that", "have", "an", "age", "below", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0974", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0088", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["select", "count", "(*)", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "Count the dogs that have not gone through any treatment?", "question_toks": ["Count", "the", "dogs", "that", "have", "not", "gone", "through", "any", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0978", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0089", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["select", "count", "(*)", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "question": "Count the owners that temporarily do not have any dogs?", "question_toks": ["Count", "the", "owners", "that", "temporarily", "do", "not", "have", "any", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0980", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0090", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["select", "count", "(*)", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "question": "Cont the professionals that did not operate any treatment on dogs?", "question_toks": ["Cont", "the", "professionals", "that", "did", "not", "operate", "any", "treatment", "on", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0982", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0091", "db_id": "dorm_1", "query": "select count(*) from student where sex = \"f\" and age < 25", "query_toks": ["select", "count", "(*)", "from", "student", "where", "sex", "=", "``", "f", "''", "and", "age", "<", "25"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "Count the female students (sex is F) whose age is below 25?", "question_toks": ["Count", "the", "female", "students", "(", "sex", "is", "F", ")", "whose", "age", "is", "below", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 4, [0, [0, 4, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5672", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0092", "db_id": "dorm_1", "query": "select count(*) from student where sex = \"f\" and age < 25", "query_toks": ["select", "count", "(*)", "from", "student", "where", "sex", "=", "``", "f", "''", "and", "age", "<", "25"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "Count the number of girl students who are younger than 25?", "question_toks": ["Count", "the", "number", "of", "girl", "students", "who", "are", "younger", "than", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 4, [0, [0, 4, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5673", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0093", "db_id": "dorm_1", "query": "select count(*) from dorm", "query_toks": ["select", "count", "(*)", "from", "dorm"], "query_toks_no_value": ["select", "count", "(*)", "from", "dorm"], "question": "Count the number of dorms there?", "question_toks": ["Count", "the", "number", "of", "dorms", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5678", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0094", "db_id": "dorm_1", "query": "select count(*) from dorm", "query_toks": ["select", "count", "(*)", "from", "dorm"], "query_toks_no_value": ["select", "count", "(*)", "from", "dorm"], "question": "Count the number of dorms that are in the database?", "question_toks": ["Count", "the", "number", "of", "dorms", "that", "are", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5679", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0095", "db_id": "dorm_1", "query": "select count(*) , sum(student_capacity) , gender from dorm group by gender", "query_toks": ["select", "count", "(*)", ",", "sum", "(", "student_capacity", ")", ",", "gender", "from", "dorm", "group", "by", "gender"], "query_toks_no_value": ["select", "count", "(*)", ",", "sum", "(", "student_capacity", ")", ",", "gender", "from", "dorm", "group", "by", "gender"], "question": "Count the number of dorms and the sum of capacity for each gender?", "question_toks": ["Count", "the", "number", "of", "dorms", "and", "the", "sum", "of", "capacity", "for", "each", "gender", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [4, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5721", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0096", "db_id": "driving_school", "query": "select count(*) from customers where customer_id not in ( select customer_id from customer_payments )", "query_toks": ["select", "count", "(*)", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")"], "question": "Count the number of customers that have no payment histories?", "question_toks": ["Count", "the", "number", "of", "customers", "that", "have", "no", "payment", "histories", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6693", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0097", "db_id": "driving_school", "query": "select payment_method_code , count(*) from customer_payments group by payment_method_code", "query_toks": ["select", "payment_method_code", ",", "count", "(*)", "from", "customer_payments", "group", "by", "payment_method_code"], "query_toks_no_value": ["select", "payment_method_code", ",", "count", "(*)", "from", "customer_payments", "group", "by", "payment_method_code"], "question": "For each payment method, count the number of payments that were made?", "question_toks": ["For", "each", "payment", "method", ",", "count", "the", "number", "of", "payments", "that", "were", "made", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6697", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0098", "db_id": "driving_school", "query": "select count(*) from lessons where lesson_status_code = \"cancelled\"", "query_toks": ["select", "count", "(*)", "from", "lessons", "where", "lesson_status_code", "=", "``", "cancelled", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "lessons", "where", "lesson_status_code", "=", "value"], "question": "Count the number of lessons that were in cancelled state?", "question_toks": ["Count", "the", "number", "of", "lessons", "that", "were", "in", "cancelled", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6698", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0099", "db_id": "entrepreneur", "query": "select investor , count(*) from entrepreneur group by investor", "query_toks": ["select", "investor", ",", "count", "(*)", "from", "entrepreneur", "group", "by", "investor"], "query_toks_no_value": ["select", "investor", ",", "count", "(*)", "from", "entrepreneur", "group", "by", "investor"], "question": "Count the number of entrepreneurs correspond to each investor?", "question_toks": ["Count", "the", "number", "of", "entrepreneurs", "correspond", "to", "each", "investor", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2288", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0100", "db_id": "flight_1", "query": "select count(*) from flight", "query_toks": ["select", "count", "(*)", "from", "flight"], "query_toks_no_value": ["select", "count", "(*)", "from", "flight"], "question": "Count the amount of flights do we have?", "question_toks": ["Count", "the", "amount", "of", "flights", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0381", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0101", "db_id": "flight_1", "query": "select origin , count(*) from flight group by origin", "query_toks": ["select", "origin", ",", "count", "(*)", "from", "flight", "group", "by", "origin"], "query_toks_no_value": ["select", "origin", ",", "count", "(*)", "from", "flight", "group", "by", "origin"], "question": "For each origin, count the number of flights that came from there?", "question_toks": ["For", "each", "origin", ",", "count", "the", "number", "of", "flights", "that", "came", "from", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0404", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0102", "db_id": "flight_1", "query": "select t2.name , count(*) from flight as t1 join aircraft as t2 on t1.aid = t2.aid group by t1.aid", "query_toks": ["select", "t2", ".", "name", ",", "count", "(*)", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "group", "by", "t1", ".", "aid"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(*)", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "group", "by", "t1", ".", "aid"], "question": "List the name of each aircraft and count the number of flights does each one complete?", "question_toks": ["List", "the", "name", "of", "each", "aircraft", "and", "count", "the", "number", "of", "flights", "does", "each", "one", "complete", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0416", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0103", "db_id": "flight_2", "query": "select count(*) from airlines", "query_toks": ["select", "count", "(*)", "from", "airlines"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines"], "question": "Count the number of airlines that we have?", "question_toks": ["Count", "the", "number", "of", "airlines", "that", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0187", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0104", "db_id": "flight_2", "query": "select count(*) from airports", "query_toks": ["select", "count", "(*)", "from", "airports"], "query_toks_no_value": ["select", "count", "(*)", "from", "airports"], "question": "Count the number of airports that we have?", "question_toks": ["Count", "the", "number", "of", "airports", "that", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0189", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0105", "db_id": "flight_2", "query": "select count(*) from flights", "query_toks": ["select", "count", "(*)", "from", "flights"], "query_toks_no_value": ["select", "count", "(*)", "from", "flights"], "question": "Count the number of flights do we have?", "question_toks": ["Count", "the", "number", "of", "flights", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0191", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0106", "db_id": "flight_2", "query": "select count(*) from airlines where country = \"usa\"", "query_toks": ["select", "count", "(*)", "from", "airlines", "where", "country", "=", "``", "usa", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines", "where", "country", "=", "value"], "question": "Count the number of airlines that are from USA?", "question_toks": ["Count", "the", "number", "of", "airlines", "that", "are", "from", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0195", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0107", "db_id": "flight_2", "query": "select count(*) from flights where sourceairport = \"apg\"", "query_toks": ["select", "count", "(*)", "from", "flights", "where", "sourceairport", "=", "``", "apg", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "flights", "where", "sourceairport", "=", "value"], "question": "Count the number of flights depart from 'APG'?", "question_toks": ["Count", "the", "number", "of", "flights", "depart", "from", "'", "APG", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"apg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0203", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0108", "db_id": "flight_2", "query": "select count(*) from flights where destairport = \"ato\"", "query_toks": ["select", "count", "(*)", "from", "flights", "where", "destairport", "=", "``", "ato", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "flights", "where", "destairport", "=", "value"], "question": "Count the number of flights that have destination ATO?", "question_toks": ["Count", "the", "number", "of", "flights", "that", "have", "destination", "ATO", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"ato\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0205", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0109", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["select", "count", "(*)", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "Count the number of flights depart from City Aberdeen?", "question_toks": ["Count", "the", "number", "of", "flights", "depart", "from", "City", "Aberdeen", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0207", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0110", "db_id": "game_1", "query": "select sportname , count(*) from sportsinfo group by sportname", "query_toks": ["select", "sportname", ",", "count", "(*)", "from", "sportsinfo", "group", "by", "sportname"], "query_toks_no_value": ["select", "sportname", ",", "count", "(*)", "from", "sportsinfo", "group", "by", "sportname"], "question": "Count the number of students playing each sport?", "question_toks": ["Count", "the", "number", "of", "students", "playing", "each", "sport", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6012", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0111", "db_id": "geo", "query": "select count ( river_name ) from river where traverse = \"idaho\"", "query_toks": ["select", "count", "(", "river_name", ")", "from", "river", "where", "traverse", "=", "``", "idaho", "''"], "query_toks_no_value": ["select", "count", "(", "river_name", ")", "from", "river", "where", "traverse", "=", "value"], "question": "count the number of rivers that are in idaho", "question_toks": ["count", "the", "number", "of", "rivers", "that", "are", "in", "idaho"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"idaho\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0081", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0112", "db_id": "geo", "query": "select count ( state_name ) from city where city_name = \"springfield\"", "query_toks": ["select", "count", "(", "state_name", ")", "from", "city", "where", "city_name", "=", "``", "springfield", "''"], "query_toks_no_value": ["select", "count", "(", "state_name", ")", "from", "city", "where", "city_name", "=", "value"], "question": "Count the number of states that have a city named springfield", "question_toks": ["Count", "the", "number", "of", "states", "that", "have", "a", "city", "named", "springfield"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"springfield\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0476", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0113", "db_id": "geo", "query": "select count ( city_name ) from city where population > 150000 and state_name = \"texas\"", "query_toks": ["select", "count", "(", "city_name", ")", "from", "city", "where", "population", ">", "150000", "and", "state_name", "=", "``", "texas", "''"], "query_toks_no_value": ["select", "count", "(", "city_name", ")", "from", "city", "where", "population", ">", "value", "and", "state_name", "=", "value"], "question": "Count the number of major cities in texas", "question_toks": ["Count", "the", "number", "of", "major", "cities", "in", "texas"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 150000.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0482", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0114", "db_id": "hr_1", "query": "select department_name , count(*) from employees as t1 join departments as t2 on t1.department_id = t2.department_id group by department_name", "query_toks": ["select", "department_name", ",", "count", "(*)", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "department_name"], "query_toks_no_value": ["select", "department_name", ",", "count", "(*)", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "department_name"], "question": "List the department names and count the number of employees work in each of them?", "question_toks": ["List", "the", "department", "names", "and", "count", "the", "number", "of", "employees", "work", "in", "each", "of", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3526", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0115", "db_id": "icfp_1", "query": "select count(*) from inst", "query_toks": ["select", "count", "(*)", "from", "inst"], "query_toks_no_value": ["select", "count", "(*)", "from", "inst"], "question": "Count the number of institutions are there?", "question_toks": ["Count", "the", "number", "of", "institutions", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2860", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0116", "db_id": "icfp_1", "query": "select count(*) from papers", "query_toks": ["select", "count", "(*)", "from", "papers"], "query_toks_no_value": ["select", "count", "(*)", "from", "papers"], "question": "Count the number of papers that are published?", "question_toks": ["Count", "the", "number", "of", "papers", "that", "are", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2862", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0117", "db_id": "singer", "query": "select count(*) from singer", "query_toks": ["select", "count", "(*)", "from", "singer"], "query_toks_no_value": ["select", "count", "(*)", "from", "singer"], "question": "Count the number of singers there?", "question_toks": ["Count", "the", "number", "of", "singers", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1000", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0118", "db_id": "singer", "query": "select citizenship , count(*) from singer group by citizenship", "query_toks": ["select", "citizenship", ",", "count", "(*)", "from", "singer", "group", "by", "citizenship"], "query_toks_no_value": ["select", "citizenship", ",", "count", "(*)", "from", "singer", "group", "by", "citizenship"], "question": "For each citizenship, count the number of singers from that country?", "question_toks": ["For", "each", "citizenship", ",", "count", "the", "number", "of", "singers", "from", "that", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1013", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0119", "db_id": "inn_1", "query": "select count(distinct bedtype) from rooms", "query_toks": ["select", "count", "(", "distinct", "bedtype", ")", "from", "rooms"], "query_toks_no_value": ["select", "count", "(", "distinct", "bedtype", ")", "from", "rooms"], "question": "Count the number of different types of beds", "question_toks": ["Count", "the", "number", "of", "different", "types", "of", "beds"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 4, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2630", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0120", "db_id": "loan_1", "query": "select count(distinct city) from bank", "query_toks": ["select", "count", "(", "distinct", "city", ")", "from", "bank"], "query_toks_no_value": ["select", "count", "(", "distinct", "city", ")", "from", "bank"], "question": "Count the different cities with banks?", "question_toks": ["Count", "the", "different", "cities", "with", "banks", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 4, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3027", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0121", "db_id": "poker_player", "query": "select count(distinct nationality) from people", "query_toks": ["select", "count", "(", "distinct", "nationality", ")", "from", "people"], "query_toks_no_value": ["select", "count", "(", "distinct", "nationality", ")", "from", "people"], "question": "Count the distinct nationalities", "question_toks": ["Count", "the", "distinct", "nationalities"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 8, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0685", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0122", "db_id": "products_for_hire", "query": "select count(distinct product_type_code) from products_for_hire", "query_toks": ["select", "count", "(", "distinct", "product_type_code", ")", "from", "products_for_hire"], "query_toks_no_value": ["select", "count", "(", "distinct", "product_type_code", ")", "from", "products_for_hire"], "question": "Count the different product types", "question_toks": ["Count", "the", "different", "product", "types"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1968", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0123", "db_id": "products_gen_characteristics", "query": "select count(distinct t3.characteristic_name) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t1.product_name = \"sesame\"", "query_toks": ["select", "count", "(", "distinct", "t3", ".", "characteristic_name", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "``", "sesame", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3", ".", "characteristic_name", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value"], "question": "Count the number of distinct characteristic names that the product \"cumin\" have?", "question_toks": ["Count", "the", "number", "of", "distinct", "characteristic", "names", "that", "the", "product", "\"", "cumin", "\"", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null]]}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"sesame\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5556", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0124", "db_id": "sakila_1", "query": "select count(distinct last_name) from actor", "query_toks": ["select", "count", "(", "distinct", "last_name", ")", "from", "actor"], "query_toks_no_value": ["select", "count", "(", "distinct", "last_name", ")", "from", "actor"], "question": "Count the different last names that the actors and actresses have?", "question_toks": ["Count", "the", "different", "last", "names", "that", "the", "actors", "and", "actresses", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2924", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0125", "db_id": "sakila_1", "query": "select count(distinct language_id) from film", "query_toks": ["select", "count", "(", "distinct", "language_id", ")", "from", "film"], "query_toks_no_value": ["select", "count", "(", "distinct", "language_id", ")", "from", "film"], "question": "Count the number of languages in these films?", "question_toks": ["Count", "the", "number", "of", "languages", "in", "these", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 36, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2970", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0126", "db_id": "student_transcripts_tracking", "query": "select count(distinct department_id) from degree_programs", "query_toks": ["select", "count", "(", "distinct", "department_id", ")", "from", "degree_programs"], "query_toks_no_value": ["select", "count", "(", "distinct", "department_id", ")", "from", "degree_programs"], "question": "Count the number of different departments offer degrees", "question_toks": ["Count", "the", "number", "of", "different", "departments", "offer", "degrees"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 19, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0518", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0127", "db_id": "student_transcripts_tracking", "query": "select count(distinct degree_summary_name) from degree_programs", "query_toks": ["select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs"], "query_toks_no_value": ["select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs"], "question": "Count the number of different degree names that are offered", "question_toks": ["Count", "the", "number", "of", "different", "degree", "names", "that", "are", "offered"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 20, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0519", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0128", "db_id": "student_transcripts_tracking", "query": "select count(distinct degree_summary_name) from degree_programs", "query_toks": ["select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs"], "query_toks_no_value": ["select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs"], "question": "Count the number of different degrees that are offered", "question_toks": ["Count", "the", "number", "of", "different", "degrees", "that", "are", "offered"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 20, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0520", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0129", "db_id": "shop_membership", "query": "select count(distinct level) from member", "query_toks": ["select", "count", "(", "distinct", "level", ")", "from", "member"], "query_toks_no_value": ["select", "count", "(", "distinct", "level", ")", "from", "member"], "question": "Count the number of different levels that members have", "question_toks": ["Count", "the", "number", "of", "different", "levels", "that", "members", "have"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5414", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0130", "db_id": "inn_1", "query": "select count(*) from rooms where roomid not in (select distinct room from reservations)", "query_toks": ["select", "count", "(*)", "from", "rooms", "where", "roomid", "not", "in", "(", "select", "distinct", "room", "from", "reservations", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "rooms", "where", "roomid", "not", "in", "(", "select", "distinct", "room", "from", "reservations", ")"], "question": "Count the number of rooms that have not had any reservation yet?", "question_toks": ["Count", "the", "number", "of", "rooms", "that", "have", "not", "had", "any", "reservation", "yet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2637", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0131", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "query_toks_no_value": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "question": "What is the maximum of charge amount tamong all type costs?", "question_toks": ["What", "is", "the", "maximum", "of", "charge", "amount", "tamong", "all", "type", "costs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0992", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_MAX"]}, {"id": "how_many_0132", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\" and lastname = \"sweazy\"", "query_toks": ["select", "kids", "from", "reservations", "where", "firstname", "=", "``", "roy", "''", "and", "lastname", "=", "``", "sweazy", "''"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Output the options of kids number stay in the rooms reserved by ROY SWEAZY?", "question_toks": ["Output", "the", "options", "of", "kids", "number", "stay", "in", "the", "rooms", "reserved", "by", "ROY", "SWEAZY", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"roy\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"sweazy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2578", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0133", "db_id": "inn_1", "query": "select adults from reservations where checkin = \"2010-10-23\" and firstname = \"conrad\" and lastname = \"selbig\"", "query_toks": ["select", "adults", "from", "reservations", "where", "checkin", "=", "``", "2010", "-", "10", "-", "23", "''", "and", "firstname", "=", "``", "conrad", "''", "and", "lastname", "=", "``", "selbig", "''"], "query_toks_no_value": ["select", "adults", "from", "reservations", "where", "checkin", "=", "value", "-", "10", "-", "23", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "List the the adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?", "question_toks": ["List", "the", "the", "adults", "stay", "in", "the", "room", "CONRAD", "SELBIG", "checked", "in", "on", "Oct", "23", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-10-23\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"conrad\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"selbig\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2584", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0134", "db_id": "inn_1", "query": "select kids from reservations where checkin = \"2010-09-21\" and firstname = \"damien\" and lastname = \"trachsel\"", "query_toks": ["select", "kids", "from", "reservations", "where", "checkin", "=", "``", "2010", "-", "09", "-", "21", "''", "and", "firstname", "=", "``", "damien", "''", "and", "lastname", "=", "``", "trachsel", "''"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "checkin", "=", "value", "-", "09", "-", "21", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "List the kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?", "question_toks": ["List", "the", "kids", "stay", "in", "the", "room", "DAMIEN", "TRACHSEL", "checked", "in", "on", "Sep", "21", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-09-21\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"damien\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"trachsel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2586", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0135", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "``", "london", "heathrow", "''"], "query_toks_no_value": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "value", "heathrow"], "question": "Print international and domestic passengers n the airport London Heathrow?", "question_toks": ["Print", "international", "and", "domestic", "passengers", "n", "the", "airport", "London", "Heathrow", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"london heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4804", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0136", "db_id": "baseball_1", "query": "select salary from salary where year = 2001 order by salary desc limit 3", "query_toks": ["select", "salary", "from", "salary", "where", "year", "=", "2001", "order", "by", "salary", "desc", "limit", "3"], "query_toks_no_value": ["select", "salary", "from", "salary", "where", "year", "=", "value", "order", "by", "salary", "desc", "limit", "3"], "question": "List the salaries did the top 3 well-paid players get in 2001?", "question_toks": ["List", "the", "salaries", "did", "the", "top", "3", "well", "-", "paid", "players", "get", "in", "2001", "?"], "sql": {"from": {"table_units": [["table_unit", 20]], "conds": []}, "select": [false, [[0, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 272, false], null], 2001.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 276, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3682", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0137", "db_id": "car_1", "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)\"", "query_toks": ["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", ")\""], "query_toks_no_value": ["select", "t1", ".", "accelerate", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "make", "=", "value", "hornet", "sportabout", "(", "sw", ")\""], "question": "List all options of accelerate that makes amc hornet sportabout (sw)?", "question_toks": ["List", "all", "options", "of", "accelerate", "that", "makes", "amc", "hornet", "sportabout", "(", "sw", ")?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"amc hornet sportabout (sw)\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0112", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0138", "db_id": "car_1", "query": "select t1.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", "query_toks": ["select", "t1", ".", "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"], "query_toks_no_value": ["select", "t1", ".", "cylinders", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "model", "=", "value", "order", "by", "t1", ".", "accelerate", "asc", "limit", "1"], "question": "For model volvo, list the options of cylinders does the car with the least accelerate have?", "question_toks": ["For", "model", "volvo", ",", "list", "the", "options", "of", "cylinders", "does", "the", "car", "with", "the", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0157", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0139", "db_id": "car_1", "query": "select t1.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", "query_toks": ["select", "t1", ".", "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"], "query_toks_no_value": ["select", "t1", ".", "cylinders", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "model", "=", "value", "order", "by", "t1", ".", "accelerate", "asc", "limit", "1"], "question": "For a volvo model, what are the cylinders does the version with least accelerate have?", "question_toks": ["For", "a", "volvo", "model", ",", "what", "are", "the", "cylinders", "does", "the", "version", "with", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0158", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0140", "db_id": "college_1", "query": "select t4.crs_description , t4.crs_credit from class as t1 join enroll as t2 on t1.class_code = t2.class_code join student as t3 on t3.stu_num = t2.stu_num join course as t4 on t4.crs_code = t1.crs_code where t3.stu_lname = \"smithson\"", "query_toks": ["select", "t4", ".", "crs_description", ",", "t4", ".", "crs_credit", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t3", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "course", "as", "t4", "on", "t4", ".", "crs_code", "=", "t1", ".", "crs_code", "where", "t3", ".", "stu_lname", "=", "``", "smithson", "''"], "query_toks_no_value": ["select", "t4", ".", "crs_description", ",", "t4", ".", "crs_credit", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t3", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "course", "as", "t4", "on", "t4", ".", "crs_code", "=", "t1", ".", "crs_code", "where", "t3", ".", "stu_lname", "=", "value"], "question": "List the credits is the course that the student with the last name Smithson took, and what are the description?", "question_toks": ["List", "the", "credits", "is", "the", "course", "that", "the", "student", "with", "the", "last", "name", "Smithson", "took", ",", "and", "what", "are", "the", "description", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 32, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"smithson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3286", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0141", "db_id": "csu_1", "query": "select faculty from faculty as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["select", "faculty", "from", "faculty", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "2004", "and", "t2", ".", "campus", "=", "``", "san", "francisco", "state", "university", "''"], "query_toks_no_value": ["select", "faculty", "from", "faculty", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value", "francisco", "state", "university"], "question": "List the faculty lines are there in \"San Francisco State University\" in year 2004?", "question_toks": ["List", "the", "faculty", "lines", "are", "there", "in", "\"", "San", "Francisco", "State", "University", "\"", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san francisco state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2376", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0142", "db_id": "csu_1", "query": "select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1", "query_toks": ["select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "2002", "order", "by", "t3", ".", "degrees", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "desc", "limit", "1"], "question": "What are faculty lines are there in the university that conferred the most number of degrees in year 2002?", "question_toks": ["What", "are", "faculty", "lines", "are", "there", "in", "the", "university", "that", "conferred", "the", "most", "number", "of", "degrees", "in", "year", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2380", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0143", "db_id": "csu_1", "query": "select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1", "query_toks": ["select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "2002", "order", "by", "t3", ".", "degrees", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "desc", "limit", "1"], "question": "Return the list of faculty members did the university that conferred the most degrees in 2002 have?", "question_toks": ["Return", "the", "list", "of", "faculty", "members", "did", "the", "university", "that", "conferred", "the", "most", "degrees", "in", "2002", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2381", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0144", "db_id": "dog_kennels", "query": "select cost_of_treatment from treatments order by date_of_treatment desc limit 1", "query_toks": ["select", "cost_of_treatment", "from", "treatments", "order", "by", "date_of_treatment", "desc", "limit", "1"], "query_toks_no_value": ["select", "cost_of_treatment", "from", "treatments", "order", "by", "date_of_treatment", "desc", "limit", "1"], "question": "What is the the most recent treatment cost?", "question_toks": ["What", "is", "the", "the", "most", "recent", "treatment", "cost", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 48, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0976", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0145", "db_id": "dog_kennels", "query": "select charge_type , charge_amount from charges", "query_toks": ["select", "charge_type", ",", "charge_amount", "from", "charges"], "query_toks_no_value": ["select", "charge_type", ",", "charge_amount", "from", "charges"], "question": "What is the costs amount for each charge type? List both charge type and amount.", "question_toks": ["What", "is", "the", "costs", "amount", "for", "each", "charge", "type", "?", "List", "both", "charge", "type", "and", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0990", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0146", "db_id": "geo", "query": "select population from state where state_name = \"california\"", "query_toks": ["select", "population", "from", "state", "where", "state_name", "=", "``", "california", "''"], "query_toks_no_value": ["select", "population", "from", "state", "where", "state_name", "=", "value"], "question": "what is the population of california", "question_toks": ["what", "is", "the", "population", "of", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0018", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0147", "db_id": "imdb", "query": "select budget from movie where title = \"finding nemo\"", "query_toks": ["select", "budget", "from", "movie", "where", "title", "=", "``", "finding", "nemo", "''"], "query_toks_no_value": ["select", "budget", "from", "movie", "where", "title", "=", "value", "nemo"], "question": "What is the budget of \" Finding Nemo \"", "question_toks": ["What", "is", "the", "budget", "of", "\"", "Finding", "Nemo", "\""], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 43, false], null], "\"finding nemo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1444", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0148", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\"", "query_toks": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "``", "taraneh", "alidoosti", "''", "and", "t3", ".", "name", "=", "``", "asghar", "farhadi", "''"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value", "alidoosti", "and", "t3", ".", "name", "=", "value", "farhadi"], "question": "How many movies are there that are directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \" ?", "question_toks": ["How", "many", "movies", "are", "there", "that", "are", "directed", "by", "\"", "Asghar", "Farhadi", "\"", "and", "featuring", "\"", "Taraneh", "Alidoosti", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1474", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0149", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = \"king\"", "query_toks": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "``", "king", "''"], "query_toks_no_value": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "value"], "question": "What the sum of king beds are there?", "question_toks": ["What", "the", "sum", "of", "king", "beds", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2588", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0150", "db_id": "inn_1", "query": "select sum(maxoccupancy) from rooms where decor = \"modern\"", "query_toks": ["select", "sum", "(", "maxoccupancy", ")", "from", "rooms", "where", "decor", "=", "``", "modern", "''"], "query_toks_no_value": ["select", "sum", "(", "maxoccupancy", ")", "from", "rooms", "where", "decor", "=", "value"], "question": "Count the people that can stay in the modern rooms of this inn?", "question_toks": ["Count", "the", "people", "that", "can", "stay", "in", "the", "modern", "rooms", "of", "this", "inn", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"modern\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2599", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0151", "db_id": "insurance_and_eClaims", "query": "select sum(t1.amount_claimed) from claim_headers as t1 join claims_documents as t2 on t1.claim_header_id = t2.claim_id where t2.created_date = (select created_date from claims_documents order by created_date limit 1)", "query_toks": ["select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "(", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "1", ")"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "value", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "1", ")"], "question": "What is the sum of amount claimed in the most recently created document?", "question_toks": ["What", "is", "the", "sum", "of", "amount", "claimed", "in", "the", "most", "recently", "created", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1518", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0152", "db_id": "manufacturer", "query": "select sum(num_of_component) from furniture", "query_toks": ["select", "sum", "(", "num_of_component", ")", "from", "furniture"], "query_toks_no_value": ["select", "sum", "(", "num_of_component", ")", "from", "furniture"], "question": "What is the sum of furniture components are there?", "question_toks": ["What", "is", "the", "sum", "of", "furniture", "components", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3389", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0153", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["select", "sum", "(", "enr", ")", "from", "college"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college"], "question": "Count the number of students enrolled in college?", "question_toks": ["Count", "the", "number", "of", "students", "enrolled", "in", "college", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4945", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0154", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "query_toks_no_value": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "question": "Count the sum of tours that were there for each ranking date?", "question_toks": ["Count", "the", "sum", "of", "tours", "that", "were", "there", "for", "each", "ranking", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0480", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0155", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_buildings as t1 join apartments as t2 on t1.building_id = t2.building_id where t1.building_short_name = \"columbus square\"", "query_toks": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "``", "columbus", "square", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "value", "square"], "question": "What is the sum of room counts are there in the apartments in the building with short name \"Columbus Square\"?", "question_toks": ["What", "is", "the", "sum", "of", "room", "counts", "are", "there", "in", "the", "apartments", "in", "the", "building", "with", "short", "name", "\"", "Columbus", "Square", "\"?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"columbus square\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1243", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0156", "db_id": "baseball_1", "query": "select sum(t1.attendance) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = \"boston red stockings\" and t1.year between 2000 and 2010", "query_toks": ["select", "sum", "(", "t1", ".", "attendance", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "``", "boston", "red", "stockings", "''", "and", "t1", ".", "year", "between", "2000", "and", "2010"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "attendance", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "red", "stockings", "and", "t1", ".", "year", "between", "2000", "and", "2010"], "question": "What it the sum of games that did team Boston Red Stockings attend from 2000 to 2010?", "question_toks": ["What", "it", "the", "sum", "of", "games", "that", "did", "team", "Boston", "Red", "Stockings", "attend", "from", "2000", "to", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 161, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 2000.0, 2010.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3694", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0157", "db_id": "baseball_1", "query": "select sum(t1.salary) from salary as t1 join player as t2 on t1.player_id = t2.player_id where t2.name_first = \"len\" and t2.name_last = \"barker\" and t1.year between 1985 and 1990", "query_toks": ["select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "t2", ".", "name_first", "=", "``", "len", "''", "and", "t2", ".", "name_last", "=", "``", "barker", "''", "and", "t1", ".", "year", "between", "1985", "and", "1990"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "t2", ".", "name_first", "=", "value", "and", "t2", ".", "name_last", "=", "value", "and", "t1", ".", "year", "between", "1985", "and", "1990"], "question": "What is the sum of salary that the player with first name Len and last name Barker earn between 1985 to 1990 in total?", "question_toks": ["What", "is", "the", "sum", "of", "salary", "that", "the", "player", "with", "first", "name", "Len", "and", "last", "name", "Barker", "earn", "between", "1985", "to", "1990", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 20], ["table_unit", 16]], "conds": [[false, 2, [0, [0, 275, false], null], [0, 182, false], null]]}, "select": [false, [[4, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 195, false], null], "\"len\"", null], "and", [false, 2, [0, [0, 196, false], null], "\"barker\"", null], "and", [false, 1, [0, [0, 272, false], null], 1985.0, 1990.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3695", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0158", "db_id": "baseball_1", "query": "select sum(t1.games) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = \"boston red stockings\" and t1.year between 1990 and 2000", "query_toks": ["select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "``", "boston", "red", "stockings", "''", "and", "t1", ".", "year", "between", "1990", "and", "2000"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "red", "stockings", "and", "t1", ".", "year", "between", "1990", "and", "2000"], "question": "The sum of games did the team Boston Red Stockings play from 1990 to 2000", "question_toks": ["The", "sum", "of", "games", "did", "the", "team", "Boston", "Red", "Stockings", "play", "from", "1990", "to", "2000"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 159, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 1990.0, 2000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3699", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0159", "db_id": "college_1", "query": "select sum(crs_credit) , dept_code from course group by dept_code", "query_toks": ["select", "sum", "(", "crs_credit", ")", ",", "dept_code", "from", "course", "group", "by", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "crs_credit", ")", ",", "dept_code", "from", "course", "group", "by", "dept_code"], "question": "Sum the credits that the department offer", "question_toks": ["Sum", "the", "credits", "that", "the", "department", "offer"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3202", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0160", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What is the sum of hours do the students spend studying in each department?", "question_toks": ["What", "is", "the", "sum", "of", "hours", "do", "the", "students", "spend", "studying", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3220", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0161", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "query_toks_no_value": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "question": "What is the sum of credits are offered by each department?", "question_toks": ["What", "is", "the", "sum", "of", "credits", "are", "offered", "by", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1399", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0162", "db_id": "csu_1", "query": "select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus", "query_toks": ["select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">=", "1998", "and", "t2", ".", "year", "<=", "2002", "group", "by", "t1", ".", "campus"], "query_toks_no_value": ["select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">=", "value", "and", "t2", ".", "year", "<=", "value", "group", "by", "t1", ".", "campus"], "question": "What is the sum of degrees that were conferred between 1998 and 2002 in different campuses?", "question_toks": ["What", "is", "the", "sum", "of", "degrees", "that", "were", "conferred", "between", "1998", "and", "2002", "in", "different", "campuses", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 1998.0, null], "and", [false, 6, [0, [0, 9, false], null], 2002.0, null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_how_many_0162", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0163", "db_id": "csu_1", "query": "select sum(faculty) from faculty where year = 2002", "query_toks": ["select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "2002"], "query_toks_no_value": ["select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "value"], "question": "Sum of faculty in the year of 2002?", "question_toks": ["Sum", "of", "faculty", "in", "the", "year", "of", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2372", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0164", "db_id": "csu_1", "query": "select sum(faculty) from faculty where year = 2002", "query_toks": ["select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "2002"], "query_toks_no_value": ["select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "value"], "question": "What is the sum of faculties are there in the year 2002?", "question_toks": ["What", "is", "the", "sum", "of", "faculties", "are", "there", "in", "the", "year", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2373", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0165", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "2004", "and", "t2", ".", "campus", "=", "``", "san", "jose", "state", "university", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value", "jose", "state", "university"], "question": "Sum of undergraduates in \"San Jose State University\" in year 2004?", "question_toks": ["Sum", "of", "undergraduates", "in", "\"", "San", "Jose", "State", "University", "\"", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san jose state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2384", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0166", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "2004", "and", "t2", ".", "campus", "=", "``", "san", "jose", "state", "university", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value", "jose", "state", "university"], "question": "What is the sum undergraduate number are there at San Jose State", "question_toks": ["What", "is", "the", "sum", "undergraduate", "number", "are", "there", "at", "San", "Jose", "State"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san jose state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2385", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0167", "db_id": "csu_1", "query": "select sum(t1.graduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["select", "sum", "(", "t1", ".", "graduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "2004", "and", "t2", ".", "campus", "=", "``", "san", "francisco", "state", "university", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "graduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value", "francisco", "state", "university"], "question": "The sum of people number that graduated from San Francisco State University in 2004?", "question_toks": ["The", "sum", "of", "people", "number", "that", "graduated", "from", "San", "Francisco", "State", "University", "in", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san francisco state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2387", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0168", "db_id": "driving_school", "query": "select sum(t1.amount_payment) from customer_payments as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.first_name = \"carole\" and t2.last_name = \"bernhard\"", "query_toks": ["select", "sum", "(", "t1", ".", "amount_payment", ")", "from", "customer_payments", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "``", "carole", "''", "and", "t2", ".", "last_name", "=", "``", "bernhard", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "amount_payment", ")", "from", "customer_payments", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value"], "question": "What is th sum of payment does customer with first name as Carole and last name as Bernhard paid?", "question_toks": ["What", "is", "th", "sum", "of", "payment", "does", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "paid", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"carole\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"bernhard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6690", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0169", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo"], "question": "What is the sum of games that are played for all students?", "question_toks": ["What", "is", "the", "sum", "of", "games", "that", "are", "played", "for", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6007", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0170", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = \"y\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "``", "football", "''", "and", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value"], "question": "Sum of games that are played for all football games by students on scholarship?", "question_toks": ["Sum", "of", "games", "that", "are", "played", "for", "all", "football", "games", "by", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6009", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0171", "db_id": "game_1", "query": "select stuid , count(*) , sum(gamesplayed) from sportsinfo group by stuid", "query_toks": ["select", "stuid", ",", "count", "(*)", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "group", "by", "stuid"], "query_toks_no_value": ["select", "stuid", ",", "count", "(*)", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "group", "by", "stuid"], "question": "What are the ids of all students along with number of sports and sum of games did they play?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "along", "with", "number", "of", "sports", "and", "sum", "of", "games", "did", "they", "play", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]], [4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6014", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0172", "db_id": "geo", "query": "select sum ( area ) from state", "query_toks": ["select", "sum", "(", "area", ")", "from", "state"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "What is the sum of area in the USA", "question_toks": ["What", "is", "the", "sum", "of", "area", "in", "the", "USA"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0322", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "aggregation_mono_0000", "db_id": "wta_1", "query": "select avg(loser_age) from matches;", "query_toks": ["select", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "from", "matches"], "query_toks_no_value": ["select", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "from", "matches"], "question": "Find the average age of losers of all matches.", "question_toks": ["Find", "the", "average", "age", "of", "losers", "of", "all", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0435", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0001", "db_id": "wta_1", "query": "select avg(winner_age) from matches", "query_toks": ["select", "avg", "(", "winner_age", ")", "from", "matches"], "query_toks_no_value": ["select", "avg", "(", "winner_age", ")", "from", "matches"], "question": "What are the average ages of winners across matches?", "question_toks": ["What", "are", "the", "average", "ages", "of", "winners", "across", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0436", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0002", "db_id": "tvshow", "query": "select count(distinct series_name) from tv_channel", "query_toks": ["select", "count", "(", "distinct", "series_name", ")", "from", "tv_channel"], "query_toks_no_value": ["select", "count", "(", "distinct", "series_name", ")", "from", "tv_channel"], "question": "List the number of different series names in the TV Channel table.", "question_toks": ["List", "the", "number", "of", "different", "series", "names", "in", "the", "TV", "Channel", "table", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0597", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0003", "db_id": "tvshow", "query": "select count(distinct content) from tv_channel", "query_toks": ["select", "count", "(", "distinct", "content", ")", "from", "tv_channel"], "query_toks_no_value": ["select", "count", "(", "distinct", "content", ")", "from", "tv_channel"], "question": "How many different contents are listed in the TV Channel table?", "question_toks": ["How", "many", "different", "contents", "are", "listed", "in", "the", "TV", "Channel", "table", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0598", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0004", "db_id": "bike_1", "query": "select avg(lat) from station where city = \"san jose\"", "query_toks": ["select", "avg", "(", "lat", ")", "from", "station", "where", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["select", "avg", "(", "lat", ")", "from", "station", "where", "city", "=", "value", "jose"], "question": "What is the average latitude of stations located in San Jose city?", "question_toks": ["What", "is", "the", "average", "latitude", "of", "stations", "located", "in", "San", "Jose", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0117", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0005", "db_id": "bike_1", "query": "select avg(long) from station where city = \"san jose\"", "query_toks": ["select", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "value", "jose"], "question": "What is the average longitude in San Jose?", "question_toks": ["What", "is", "the", "average", "longitude", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0118", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0006", "db_id": "bike_1", "query": "select avg(t1.lat) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["select", "avg", "(", "t1", ".", "lat", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "lat", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "question": "What is the average latitude of the starting points of all trips?", "question_toks": ["What", "is", "the", "average", "latitude", "of", "the", "starting", "points", "of", "all", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0211", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0007", "db_id": "bike_1", "query": "select avg(long) from station where id in (select start_station_id from trip);", "query_toks": ["select", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "question": "What is the average longitude of all starting stations for the trips?", "question_toks": ["What", "is", "the", "average", "longitude", "of", "all", "starting", "stations", "for", "the", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0212", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0008", "db_id": "coffee_shop", "query": "select avg(score) from shop", "query_toks": ["select", "avg", "(", "score", ")", "from", "shop"], "query_toks_no_value": ["select", "avg", "(", "score", ")", "from", "shop"], "question": "What is the average score of all shops?", "question_toks": ["What", "is", "the", "average", "score", "of", "all", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0008", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0009", "db_id": "coffee_shop", "query": "select avg(num_of_staff) from shop", "query_toks": ["select", "avg", "(", "num_of_staff", ")", "from", "shop"], "query_toks_no_value": ["select", "avg", "(", "num_of_staff", ")", "from", "shop"], "question": "What is the average staff number of all shops?", "question_toks": ["What", "is", "the", "average", "staff", "number", "of", "all", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0009", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0010", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "query_toks_no_value": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "question": "Return the maximum support rate, minimum consider rate and oppose rate across all candidates?", "question_toks": ["Return", "the", "maximum", "support", "rate", ",", "minimum", "consider", "rate", "and", "oppose", "rate", "across", "all", "candidates", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0010", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0011", "db_id": "storm_record", "query": "select sum(number_deaths) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["select", "sum", "(", "number_deaths", ")", "from", "storm", "where", "max_speed", ">", "(", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "query_toks_no_value": ["select", "sum", "(", "number_deaths", ")", "from", "storm", "where", "max_speed", ">", "value", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "question": "Return the total number of deaths that had a max speed greater than the average.", "question_toks": ["Return", "the", "total", "number", "of", "deaths", "that", "had", "a", "max", "speed", "greater", "than", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0011", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0012", "db_id": "music_1", "query": "select min(t1.duration), t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["select", "min", "(", "t1", ".", "duration", "),", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "query_toks_no_value": ["select", "min", "(", "t1", ".", "duration", "),", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "question": "What is the minimal duration grouped by genre and ordered by genre?", "question_toks": ["What", "is", "the", "minimal", "duration", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0012", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0013", "db_id": "flight_1", "query": "select avg(price) from flight where origin = \"los angeles\"", "query_toks": ["select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "angeles"], "question": "What is the average price for all flights from LA?", "question_toks": ["What", "is", "the", "average", "price", "for", "all", "flights", "from", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0402", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0014", "db_id": "college_2", "query": "select count(distinct t2.id), t3.dept_name from department as t1 join student as t2 on t1.dept_name = t2.dept_name join instructor as t3 on t1.dept_name = t3.dept_name group by t3.dept_name", "query_toks": ["select", "count", "(", "distinct", "t2", ".", "id", "),", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "id", "),", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name"], "question": "How many students are in each department?", "question_toks": ["How", "many", "students", "are", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 13, false], null]]}, "select": [false, [[3, [0, [0, 27, true], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1455", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0015", "db_id": "candidate_poll", "query": "select avg(height) from people where sex = \"m\"", "query_toks": ["select", "avg", "(", "height", ")", "from", "people", "where", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["select", "avg", "(", "height", ")", "from", "people", "where", "sex", "=", "value"], "question": "Find the average height for all males (sex is M).", "question_toks": ["Find", "the", "average", "height", "for", "all", "males", "(", "sex", "is", "M", ")."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2408", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0016", "db_id": "candidate_poll", "query": "select avg(weight) from people where sex = \"m\"", "query_toks": ["select", "avg", "(", "weight", ")", "from", "people", "where", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", "from", "people", "where", "sex", "=", "value"], "question": "What are the average weight across males (sex is M)?", "question_toks": ["What", "are", "the", "average", "weight", "across", "males", "(", "sex", "is", "M", ")?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2409", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0017", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) from candidate", "query_toks": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", "from", "candidate"], "query_toks_no_value": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", "from", "candidate"], "question": "find the highest support percentage and lowest consider rate of all candidates.", "question_toks": ["find", "the", "highest", "support", "percentage", "and", "lowest", "consider", "rate", "of", "all", "candidates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2426", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0018", "db_id": "storm_record", "query": "select sum(number_deaths) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["select", "sum", "(", "number_deaths", ")", "from", "storm", "where", "max_speed", ">", "(", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "query_toks_no_value": ["select", "sum", "(", "number_deaths", ")", "from", "storm", "where", "max_speed", ">", "value", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "question": "What is the total number of deaths for all storms with a max speed greater than the average?", "question_toks": ["What", "is", "the", "total", "number", "of", "deaths", "for", "all", "storms", "with", "a", "max", "speed", "greater", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2704", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0019", "db_id": "news_report", "query": "select avg(t1.age), t2.work_type from journalist as t1 join news_report as t2 on t1.journalist_id = t2.journalist_id group by t2.work_type", "query_toks": ["select", "avg", "(", "t1", ".", "age", "),", "t2", ".", "work_type", "from", "journalist", "as", "t1", "join", "news_report", "as", "t2", "on", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "group", "by", "t2", ".", "work_type"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", "),", "t2", ".", "work_type", "from", "journalist", "as", "t1", "join", "news_report", "as", "t2", "on", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "group", "by", "t2", ".", "work_type"], "question": "Find the average age on different role type.", "question_toks": ["Find", "the", "average", "age", "on", "different", "role", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2818", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0020", "db_id": "news_report", "query": "select avg(years_working) , t2.work_type from journalist as t1 join news_report as t2 on t1.journalist_id = t2.journalist_id group by t2.work_type", "query_toks": ["select", "avg", "(", "years_working", ")", ",", "t2", ".", "work_type", "from", "journalist", "as", "t1", "join", "news_report", "as", "t2", "on", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "group", "by", "t2", ".", "work_type"], "query_toks_no_value": ["select", "avg", "(", "years_working", ")", ",", "t2", ".", "work_type", "from", "journalist", "as", "t1", "join", "news_report", "as", "t2", "on", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "group", "by", "t2", ".", "work_type"], "question": "What is the average experience working length of journalists working on different role type.", "question_toks": ["What", "is", "the", "average", "experience", "working", "length", "of", "journalists", "working", "on", "different", "role", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[5, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0020", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0021", "db_id": "music_1", "query": "select avg(rating) from song where languages = \"bangla\"", "query_toks": ["select", "avg", "(", "rating", ")", "from", "song", "where", "languages", "=", "``", "bangla", "''"], "query_toks_no_value": ["select", "avg", "(", "rating", ")", "from", "song", "where", "languages", "=", "value"], "question": "What is the average rating of songs that are in Bangla?", "question_toks": ["What", "is", "the", "average", "rating", "of", "songs", "that", "are", "in", "Bangla", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"bangla\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3597", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0022", "db_id": "music_1", "query": "select avg(resolution) from song where languages = \"bangla\"", "query_toks": ["select", "avg", "(", "resolution", ")", "from", "song", "where", "languages", "=", "``", "bangla", "''"], "query_toks_no_value": ["select", "avg", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value"], "question": "What is the average resolution of all bangla songs?", "question_toks": ["What", "is", "the", "average", "resolution", "of", "all", "bangla", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"bangla\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3598", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0023", "db_id": "music_1", "query": "select max(t1.duration), t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages", "query_toks": ["select", "max", "(", "t1", ".", "duration", "),", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "duration", "),", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages"], "question": "What is the maximum duration of songs grouped and ordered by languages?", "question_toks": ["What", "is", "the", "maximum", "duration", "of", "songs", "grouped", "and", "ordered", "by", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 11, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3601", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0024", "db_id": "music_1", "query": "select max(t2.resolution) , t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages", "query_toks": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages"], "question": "What is the maximum resolution of all songs, for each language, ordered alphabetically by language?", "question_toks": ["What", "is", "the", "maximum", "resolution", "of", "all", "songs", ",", "for", "each", "language", ",", "ordered", "alphabetically", "by", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3602", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0025", "db_id": "department_store", "query": "select avg(total_amount_purchased) from product_suppliers where supplier_id = (select supplier_id from product_suppliers group by supplier_id order by count(*) desc limit 1)", "query_toks": ["select", "avg", "(", "total_amount_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "(", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(*)", "desc", "limit", "1", ")"], "query_toks_no_value": ["select", "avg", "(", "total_amount_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "value", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(*)", "desc", "limit", "1", ")"], "question": "What is the average amount purchased for the supplier who supplies the most products.", "question_toks": ["What", "is", "the", "average", "amount", "purchased", "for", "the", "supplier", "who", "supplies", "the", "most", "products", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[5, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 47, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]]]], "where": [], "groupBy": [[0, 47, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4773", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0026", "db_id": "department_store", "query": "select avg(total_value_purchased) from product_suppliers where supplier_id = (select supplier_id from product_suppliers group by supplier_id order by count(*) desc limit 1)", "query_toks": ["select", "avg", "(", "total_value_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "(", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(*)", "desc", "limit", "1", ")"], "query_toks_no_value": ["select", "avg", "(", "total_value_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "value", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(*)", "desc", "limit", "1", ")"], "question": "Return the average total value purchased for the supplier who supplies the greatest number of products.", "question_toks": ["Return", "the", "average", "total", "value", "purchased", "for", "the", "supplier", "who", "supplies", "the", "greatest", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[5, [0, [0, 51, false], null]]]], "where": [[false, 2, [0, [0, 47, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]]]], "where": [], "groupBy": [[0, 47, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4774", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0027", "db_id": "dorm_1", "query": "select count(distinct major) from student", "query_toks": ["select", "count", "(", "distinct", "major", ")", "from", "student"], "query_toks_no_value": ["select", "count", "(", "distinct", "major", ")", "from", "student"], "question": "Find the numbers of different majors.", "question_toks": ["Find", "the", "numbers", "of", "different", "majors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5700", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0028", "db_id": "game_1", "query": "select sum(hoursperweek) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["select", "sum", "(", "hoursperweek", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "``", "david", "''", "and", "t2", ".", "lname", "=", "``", "shieber", "''"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value"], "question": "Show total hours per week played for student David Shieber.", "question_toks": ["Show", "total", "hours", "per", "week", "played", "for", "student", "David", "Shieber", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6029", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0029", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "``", "david", "''", "and", "t2", ".", "lname", "=", "``", "shieber", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value"], "question": "What is the total number of games played by David Shieber?", "question_toks": ["What", "is", "the", "total", "number", "of", "games", "played", "by", "David", "Shieber", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6030", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0030", "db_id": "game_1", "query": "select sum(hoursperweek) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["select", "sum", "(", "hoursperweek", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "20"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "value"], "question": "Show total hours per week played for students under 20.", "question_toks": ["Show", "total", "hours", "per", "week", "played", "for", "students", "under", "20", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6031", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0031", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "20"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "value"], "question": "What is the total number of number of games played by students under 20?", "question_toks": ["What", "is", "the", "total", "number", "of", "number", "of", "games", "played", "by", "students", "under", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6032", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0032", "db_id": "wine_1", "query": "select avg(price) from wine where year = 2009 and grape = \"zinfandel\"", "query_toks": ["select", "avg", "(", "price", ")", "from", "wine", "where", "year", "=", "2009", "and", "grape", "=", "``", "zinfandel", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "wine", "where", "year", "=", "value", "and", "grape", "=", "value"], "question": "What are the average prices of wines produced in the year of 2009 and made of Zinfandel grape?", "question_toks": ["What", "are", "the", "average", "prices", "of", "wines", "produced", "in", "the", "year", "of", "2009", "and", "made", "of", "Zinfandel", "grape", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2009.0, null], "and", [false, 2, [0, [0, 11, false], null], "\"zinfandel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6571", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0033", "db_id": "wine_1", "query": "select avg(cases) from wine where year = 2009 and grape = \"zinfandel\"", "query_toks": ["select", "avg", "(", "cases", ")", "from", "wine", "where", "year", "=", "2009", "and", "grape", "=", "``", "zinfandel", "''"], "query_toks_no_value": ["select", "avg", "(", "cases", ")", "from", "wine", "where", "year", "=", "value", "and", "grape", "=", "value"], "question": "Give the average case of wines made from Zinfandel grapes in the year 2009.", "question_toks": ["Give", "the", "average", "case", "of", "wines", "made", "from", "Zinfandel", "grapes", "in", "the", "year", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2009.0, null], "and", [false, 2, [0, [0, 11, false], null], "\"zinfandel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6572", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0034", "db_id": "wine_1", "query": "select max(score) from wine where appelation = \"st. helena\"", "query_toks": ["select", "max", "(", "score", ")", "from", "wine", "where", "appelation", "=", "``", "st", ".", "helena", "''"], "query_toks_no_value": ["select", "max", "(", "score", ")", "from", "wine", "where", "appelation", "=", "value", ".", "helena"], "question": "What is the maximum score of wines produced by St. Helena appelation?", "question_toks": ["What", "is", "the", "maximum", "score", "of", "wines", "produced", "by", "St", ".", "Helena", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"st. helena\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6573", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0035", "db_id": "wine_1", "query": "select max(price) from wine where appelation = \"st. helena\"", "query_toks": ["select", "max", "(", "price", ")", "from", "wine", "where", "appelation", "=", "``", "st", ".", "helena", "''"], "query_toks_no_value": ["select", "max", "(", "price", ")", "from", "wine", "where", "appelation", "=", "value", ".", "helena"], "question": "Give the maximum price for wines produced in the appelation St. Helena.", "question_toks": ["Give", "the", "maximum", "price", "for", "wines", "produced", "in", "the", "appelation", "St", ".", "Helena", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"st. helena\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6574", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0036", "db_id": "wine_1", "query": "select max(score) , year from wine group by year", "query_toks": ["select", "max", "(", "score", ")", ",", "year", "from", "wine", "group", "by", "year"], "query_toks_no_value": ["select", "max", "(", "score", ")", ",", "year", "from", "wine", "group", "by", "year"], "question": "What is the maximum score of wines in each year?", "question_toks": ["What", "is", "the", "maximum", "score", "of", "wines", "in", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6575", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0037", "db_id": "wine_1", "query": "select max(price) year from wine group by year", "query_toks": ["select", "max", "(", "price", ")", "year", "from", "wine", "group", "by", "year"], "query_toks_no_value": ["select", "max", "(", "price", ")", "year", "from", "wine", "group", "by", "year"], "question": "What is the maximum price of wines for each year?", "question_toks": ["What", "is", "the", "maximum", "price", "of", "wines", "for", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6576", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0038", "db_id": "wine_1", "query": "select avg(price), appelation from wine group by appelation", "query_toks": ["select", "avg", "(", "price", "),", "appelation", "from", "wine", "group", "by", "appelation"], "query_toks_no_value": ["select", "avg", "(", "price", "),", "appelation", "from", "wine", "group", "by", "appelation"], "question": "What is the average price of wines grouped by appelation?", "question_toks": ["What", "is", "the", "average", "price", "of", "wines", "grouped", "by", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6577", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0039", "db_id": "wine_1", "query": "select avg(score) , appelation from wine group by appelation", "query_toks": ["select", "avg", "(", "score", ")", ",", "appelation", "from", "wine", "group", "by", "appelation"], "query_toks_no_value": ["select", "avg", "(", "score", ")", ",", "appelation", "from", "wine", "group", "by", "appelation"], "question": "What is the average score of wines for each appelation?", "question_toks": ["What", "is", "the", "average", "score", "of", "wines", "for", "each", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 18, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6578", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0040", "db_id": "train_station", "query": "select location , sum(number_of_platforms) from station group by location", "query_toks": ["select", "location", ",", "sum", "(", "number_of_platforms", ")", "from", "station", "group", "by", "location"], "query_toks_no_value": ["select", "location", ",", "sum", "(", "number_of_platforms", ")", "from", "station", "group", "by", "location"], "question": "Show all locations and the total number of platforms for all train stations in each location.", "question_toks": ["Show", "all", "locations", "and", "the", "total", "number", "of", "platforms", "for", "all", "train", "stations", "in", "each", "location", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [4, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6605", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0041", "db_id": "movie_1", "query": "select max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["select", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "value", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the maximum stars for the most recent movie?", "question_toks": ["What", "is", "the", "maximum", "stars", "for", "the", "most", "recent", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2466", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "synonyms_0000", "db_id": "company_1", "query": "select count(*) , sex from employee where salary < 50000 group by sex", "query_toks": ["select", "count", "(*)", ",", "sex", "from", "employee", "where", "salary", "<", "50000", "group", "by", "sex"], "query_toks_no_value": ["select", "count", "(*)", ",", "sex", "from", "employee", "where", "salary", "<", "value", "group", "by", "sex"], "question": "Find the number of employees of each sex whose salary is lower than 50000.", "question_toks": ["Find", "the", "number", "of", "employees", "of", "each", "sex", "whose", "salary", "is", "lower", "than", "50000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 11, false], null], 50000.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2136", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0001", "db_id": "formula_1", "query": "select t1.driverid , t1.forename , t1.surname from drivers as t1 join laptimes as t2 on t1.driverid = t2.driverid where position = \"1\" group by t1.driverid having count(*) >= 2", "query_toks": ["select", "t1", ".", "driverid", ",", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "position", "=", "``", "1", "''", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "driverid", ",", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "position", "=", "value", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">=", "value"], "question": "What is the id, forename, and surname of the driver who was in the first position for laptime at least twice?", "question_toks": ["What", "is", "the", "id", ",", "forename", ",", "and", "surname", "of", "the", "driver", "who", "was", "in", "the", "first", "position", "for", "laptime", "at", "least", "twice", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 90, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 92, false], null], "\"1\"", null]], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2170", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0002", "db_id": "formula_1", "query": "select distinct forename from drivers order by forename asc", "query_toks": ["select", "distinct", "forename", "from", "drivers", "order", "by", "forename", "asc"], "query_toks_no_value": ["select", "distinct", "forename", "from", "drivers", "order", "by", "forename", "asc"], "question": "What are the forenames of all the different drivers in alphabetical order?", "question_toks": ["What", "are", "the", "forenames", "of", "all", "the", "different", "drivers", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2200", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0003", "db_id": "candidate_poll", "query": "select avg(weight) , min(weight) , sex from people group by sex", "query_toks": ["select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "question": "Find the average and minimum weight for each sex.", "question_toks": ["Find", "the", "average", "and", "minimum", "weight", "for", "each", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2412", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0004", "db_id": "sakila_1", "query": "select t2.title , t2.film_id , t2.description from film_actor as t1 join film as t2 on t1.film_id = t2.film_id group by t2.film_id order by count(*) desc limit 1", "query_toks": ["select", "t2", ".", "title", ",", "t2", ".", "film_id", ",", "t2", ".", "description", "from", "film_actor", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t2", ".", "film_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t2", ".", "film_id", ",", "t2", ".", "description", "from", "film_actor", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t2", ".", "film_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Which film has the most number of actors or actresses? List the film title, film id and description.", "question_toks": ["Which", "film", "has", "the", "most", "number", "of", "actors", "or", "actresses", "?", "List", "the", "film", "title", ",", "film", "id", "and", "description", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 32, false], null]], [0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2950", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0005", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name , t2.actor_id from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "t2", ".", "actor_id", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "t2", ".", "actor_id", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Return the firat name, last name and id of the actor or actress who starred in the greatest number of films.", "question_toks": ["Return", "the", "firat", "name", ",", "last", "name", "and", "id", "of", "the", "actor", "or", "actress", "who", "starred", "in", "the", "greatest", "number", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2953", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0006", "db_id": "baseball_1", "query": "select t1.name_first , t1.name_last , t1.player_id from player as t1 join player_award as t2 on t1.player_id = t2.player_id group by t1.player_id order by count(*) desc limit 3", "query_toks": ["select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(*)", "desc", "limit", "3"], "query_toks_no_value": ["select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(*)", "desc", "limit", "3"], "question": "Which 3 players won the most player awards? List their names first, names last and id.", "question_toks": ["Which", "3", "players", "won", "the", "most", "player", "awards", "?", "List", "their", "names", "first", ",", "names", "last", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 16], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 182, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [[0, 182, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3647", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0007", "db_id": "college_3", "query": "select t2.fname , t2.lname from course as t1 join faculty as t2 on t1.instructor = t2.facid group by t1.instructor order by count(*) desc limit 3", "query_toks": ["select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(*)", "desc", "limit", "3"], "query_toks_no_value": ["select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(*)", "desc", "limit", "3"], "question": "What are the fnames and lnames of the 3 instructors who teach the most courses?", "question_toks": ["What", "are", "the", "fnames", "and", "lnames", "of", "the", "3", "instructors", "who", "teach", "the", "most", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4680", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0008", "db_id": "flight_4", "query": "select name , city , country , elevation from airports where city = \"new york\"", "query_toks": ["select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "``", "new", "york", "''"], "query_toks_no_value": ["select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "value", "york"], "question": "Find the name, city, country, and elevation of the airports in the city of New York.", "question_toks": ["Find", "the", "name", ",", "city", ",", "country", ",", "and", "elevation", "of", "the", "airports", "in", "the", "city", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6805", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0009", "db_id": "apartment_rentals", "query": "select avg(bedroom_count) from apartments", "query_toks": ["select", "avg", "(", "bedroom_count", ")", "from", "apartments"], "query_toks_no_value": ["select", "avg", "(", "bedroom_count", ")", "from", "apartments"], "question": "Find the average bedroom count of all the apartments.", "question_toks": ["Find", "the", "average", "bedroom", "count", "of", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1209", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0010", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["select", "title", ",", "directed_by", "from", "film"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "film"], "question": "Show the title and directed by for all films.", "question_toks": ["Show", "the", "title", "and", "directed", "by", "for", "all", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1945", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0011", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["select", "title", ",", "directed_by", "from", "film"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "film"], "question": "What are the title and directed by of each film?", "question_toks": ["What", "are", "the", "title", "and", "directed", "by", "of", "each", "film", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1946", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0012", "db_id": "cinema", "query": "select distinct directed_by from film", "query_toks": ["select", "distinct", "directed_by", "from", "film"], "query_toks_no_value": ["select", "distinct", "directed_by", "from", "film"], "question": "Show all directed by.", "question_toks": ["Show", "all", "directed", "by", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1947", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0013", "db_id": "movie_1", "query": "select max(t1.stars) , t2.year from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "value", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is maximum stars and year for the movie with maximum year?", "question_toks": ["What", "is", "maximum", "stars", "and", "year", "for", "the", "movie", "with", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2467", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0014", "db_id": "customers_and_addresses", "query": "select avg(active_to_date - active_from_date) from customer_contact_channels", "query_toks": ["select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels"], "query_toks_no_value": ["select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels"], "question": "What is the average difference between active_to_date and active_from_date of contact channels in the database?", "question_toks": ["What", "is", "the", "average", "difference", "between", "active_to_date", "and", "active_from_date", "of", "contact", "channels", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6101", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0015", "db_id": "customers_and_addresses", "query": "select avg(active_to_date - active_from_date) from customer_contact_channels", "query_toks": ["select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels"], "query_toks_no_value": ["select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels"], "question": "Compute the average difference between active_to_date and active_from_date of contact channels.", "question_toks": ["Compute", "the", "average", "difference", "between", "active_to_date", "and", "active_from_date", "of", "contact", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6102", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0016", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels where active_to_date - active_from_date = (select active_to_date - active_from_date from customer_contact_channels order by (active_to_date - active_from_date) desc limit 1)", "query_toks": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "(", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "1", ")"], "query_toks_no_value": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "value", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "1", ")"], "question": "What is the channel code and contact number of the customer contact channel that was active for the biggest difference between active_to_date and active_from_date?", "question_toks": ["What", "is", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "that", "was", "active", "for", "the", "biggest", "difference", "between", "active_to_date", "and", "active_from_date", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [1, [0, 23, false], [0, 22, false]], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[1, [0, 23, false], [0, 22, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6103", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0017", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels where active_to_date - active_from_date = (select active_to_date - active_from_date from customer_contact_channels order by (active_to_date - active_from_date) desc limit 1)", "query_toks": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "(", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "1", ")"], "query_toks_no_value": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "value", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "1", ")"], "question": "Return the channel code and contact number of the customer contact channel whose difference between active_to_date and active_from_date was the biggest.", "question_toks": ["Return", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "whose", "difference", "between", "active_to_date", "and", "active_from_date", "was", "the", "biggest", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [1, [0, 23, false], [0, 22, false]], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[1, [0, 23, false], [0, 22, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6104", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0018", "db_id": "store_1", "query": "select unit_price from tracks where name = \"fast as a shark\"", "query_toks": ["select", "unit_price", "from", "tracks", "where", "name", "=", "``", "fast", "as", "a", "shark", "''"], "query_toks_no_value": ["select", "unit_price", "from", "tracks", "where", "name", "=", "value", "as", "a", "shark"], "question": "How much is the unit_price for track Fast As a Shark?", "question_toks": ["How", "much", "is", "the", "unit_price", "for", "track", "Fast", "As", "a", "Shark", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [[false, 2, [0, [0, 50, false], null], "\"fast as a shark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0641", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0019", "db_id": "formula_1", "query": "select distinct t1.forename from drivers as t1 join driverstandings as t2 on t1.driverid = t2.driverid where t2.position = 1 and t2.wins = 1", "query_toks": ["select", "distinct", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "driverstandings", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "position", "=", "1", "and", "t2", ".", "wins", "=", "1"], "query_toks_no_value": ["select", "distinct", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "driverstandings", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "position", "=", "value", "and", "t2", ".", "wins", "=", "value"], "question": "What are all the different forenames of the drivers who are in position 1 and wins is equal to 1?", "question_toks": ["What", "are", "all", "the", "different", "forenames", "of", "the", "drivers", "who", "are", "in", "position", "1", "and", "wins", "is", "equal", "to", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 63, false], null]]}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 65, false], null], 1.0, null], "and", [false, 2, [0, [0, 67, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2184", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0020", "db_id": "department_store", "query": "select t1.staff_id , t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id order by date_assigned_to - date_assigned_from limit 1", "query_toks": ["select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "1"], "question": "Find the id and name of the staff who has been assigned for the smallest difference between date_assigned_to and date_assigned_from.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "smallest", "difference", "between", "date_assigned_to", "and", "date_assigned_from", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 56, false], [0, 54, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4749", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0021", "db_id": "department_store", "query": "select t1.staff_id , t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id order by date_assigned_to - date_assigned_from limit 1", "query_toks": ["select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "1"], "question": "What is the id and name of the staff who has been assigned for the smallest difference between date_assigned_to and date_assigned_from?", "question_toks": ["What", "is", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "smallest", "difference", "between", "date_assigned_to", "and", "date_assigned_from", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 56, false], [0, 54, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4750", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0022", "db_id": "department_management", "query": "select avg(num_employees) from department where ranking between 10 and 15", "query_toks": ["select", "avg", "(", "num_employees", ")", "from", "department", "where", "ranking", "between", "10", "and", "15"], "query_toks_no_value": ["select", "avg", "(", "num_employees", ")", "from", "department", "where", "ranking", "between", "10", "and", "15"], "question": "What is the average num employees of the departments whose rank is between 10 and 15?", "question_toks": ["What", "is", "the", "average", "num", "employees", "of", "the", "departments", "whose", "rank", "is", "between", "10", "and", "15", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 10.0, 15.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0004", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0023", "db_id": "bike_1", "query": "select name from station where lat < 37.5", "query_toks": ["select", "name", "from", "station", "where", "lat", "<", "37", ".", "5"], "query_toks_no_value": ["select", "name", "from", "station", "where", "lat", "<", "value", ".", "5"], "question": "What are the names of stations that have lat lower than 37.5?", "question_toks": ["What", "are", "the", "names", "of", "stations", "that", "have", "lat", "lower", "than", "37", ".", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 37.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0111", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0024", "db_id": "bike_1", "query": "select name from station where lat < 37.5", "query_toks": ["select", "name", "from", "station", "where", "lat", "<", "37", ".", "5"], "query_toks_no_value": ["select", "name", "from", "station", "where", "lat", "<", "value", ".", "5"], "question": "What are the names of all stations with a lat smaller than 37.5?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "with", "a", "lat", "smaller", "than", "37", ".", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 37.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0112", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0025", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, return the highest lat among its stations.", "question_toks": ["For", "each", "city", ",", "return", "the", "highest", "lat", "among", "its", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0113", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0026", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, what is the highest lat for its stations?", "question_toks": ["For", "each", "city", ",", "what", "is", "the", "highest", "lat", "for", "its", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0114", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0027", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station where city = \"san jose\"", "query_toks": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "value", "jose"], "question": "What is the average lat and long of stations located in San Jose city?", "question_toks": ["What", "is", "the", "average", "lat", "and", "long", "of", "stations", "located", "in", "San", "Jose", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0117", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0028", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station where city = \"san jose\"", "query_toks": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "value", "jose"], "question": "What is the average lat and long in San Jose?", "question_toks": ["What", "is", "the", "average", "lat", "and", "long", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0118", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0029", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["select", "id", "from", "station", "where", "lat", ">", "37", ".", "4", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["select", "id", "from", "station", "where", "lat", ">", "value", ".", "4", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of stations that have lat above 37.4 and never had bike availability below 7?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "have", "lat", "above", "37", ".", "4", "and", "never", "had", "bike", "availability", "below", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0169", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0030", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["select", "id", "from", "station", "where", "lat", ">", "37", ".", "4", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["select", "id", "from", "station", "where", "lat", ">", "value", ".", "4", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of all stations that have a lat above 37.4 and have never had less than 7 bikes available?", "question_toks": ["What", "are", "the", "ids", "of", "all", "stations", "that", "have", "a", "lat", "above", "37", ".", "4", "and", "have", "never", "had", "less", "than", "7", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0170", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0031", "db_id": "bike_1", "query": "select avg(t1.lat) , avg(t1.long) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "question": "What is the average lat and long of the starting points of all trips?", "question_toks": ["What", "is", "the", "average", "lat", "and", "long", "of", "the", "starting", "points", "of", "all", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0211", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0032", "db_id": "bike_1", "query": "select avg(t1.lat) , avg(t1.long) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "question": "What is the average lat and long of all starting stations for the trips?", "question_toks": ["What", "is", "the", "average", "lat", "and", "long", "of", "all", "starting", "stations", "for", "the", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0212", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0033", "db_id": "flight_1", "query": "select eid from employee where salary > 100000", "query_toks": ["select", "eid", "from", "employee", "where", "salary", ">", "100000"], "query_toks_no_value": ["select", "eid", "from", "employee", "where", "salary", ">", "value"], "question": "Show eid for all employees with at least 100000 salary.", "question_toks": ["Show", "eid", "for", "all", "employees", "with", "at", "least", "100000", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 100000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0365", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "synonyms_0034", "db_id": "flight_1", "query": "select eid from employee where salary > 100000", "query_toks": ["select", "eid", "from", "employee", "where", "salary", ">", "100000"], "query_toks_no_value": ["select", "eid", "from", "employee", "where", "salary", ">", "value"], "question": "What is the eid of every employee who has at least a salary of 100000?", "question_toks": ["What", "is", "the", "eid", "of", "every", "employee", "who", "has", "at", "least", "a", "salary", "of", "100000", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 100000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0366", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "synonyms_0035", "db_id": "flight_1", "query": "select flno , origin , destination from flight order by origin", "query_toks": ["select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin"], "query_toks_no_value": ["select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin"], "question": "Show flno, origin, destination of all flights in the alphabetical order of the departure cities.", "question_toks": ["Show", "flno", ",", "origin", ",", "destination", "of", "all", "flights", "in", "the", "alphabetical", "order", "of", "the", "departure", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0383", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0036", "db_id": "flight_1", "query": "select flno , origin , destination from flight order by origin", "query_toks": ["select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin"], "query_toks_no_value": ["select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin"], "question": "What is the flno, origin, and destination for all flights in alphabetical order by departure cities?", "question_toks": ["What", "is", "the", "flno", ",", "origin", ",", "and", "destination", "for", "all", "flights", "in", "alphabetical", "order", "by", "departure", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0384", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0037", "db_id": "flight_1", "query": "select flno from flight where origin = \"los angeles\"", "query_toks": ["select", "flno", "from", "flight", "where", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["select", "flno", "from", "flight", "where", "origin", "=", "value", "angeles"], "question": "Show all flno from Los Angeles.", "question_toks": ["Show", "all", "flno", "from", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0385", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0038", "db_id": "flight_1", "query": "select flno from flight where origin = \"los angeles\"", "query_toks": ["select", "flno", "from", "flight", "where", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["select", "flno", "from", "flight", "where", "origin", "=", "value", "angeles"], "question": "What are the flno coming from Los Angeles?", "question_toks": ["What", "are", "the", "flno", "coming", "from", "Los", "Angeles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0386", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0039", "db_id": "flight_1", "query": "select flno from flight where distance > 2000", "query_toks": ["select", "flno", "from", "flight", "where", "distance", ">", "2000"], "query_toks_no_value": ["select", "flno", "from", "flight", "where", "distance", ">", "value"], "question": "Show flno for all flights with more than 2000 distance.", "question_toks": ["Show", "flno", "for", "all", "flights", "with", "more", "than", "2000", "distance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0391", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0040", "db_id": "flight_1", "query": "select t2.name from flight as t1 join aircraft as t2 on t1.aid = t2.aid where t1.flno = 99", "query_toks": ["select", "t2", ".", "name", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "flno", "=", "99"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "flno", "=", "value"], "question": "What is the aircraft name for the flno 99", "question_toks": ["What", "is", "the", "aircraft", "name", "for", "the", "flno", "99"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], 99.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0411", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0041", "db_id": "flight_1", "query": "select count(distinct eid) from certificate", "query_toks": ["select", "count", "(", "distinct", "eid", ")", "from", "certificate"], "query_toks_no_value": ["select", "count", "(", "distinct", "eid", ")", "from", "certificate"], "question": "How many eid have certificate.", "question_toks": ["How", "many", "eid", "have", "certificate", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 15, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0419", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0042", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["select", "fname", ",", "lname", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "Show fname and lname for all students.", "question_toks": ["Show", "fname", "and", "lname", "for", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0461", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0043", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["select", "fname", ",", "lname", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "What are the fnames and lnames of all students", "question_toks": ["What", "are", "the", "fnames", "and", "lnames", "of", "all", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0462", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0044", "db_id": "medicine_enzyme_interaction", "query": "select max(omim) from enzyme", "query_toks": ["select", "max", "(", "omim", ")", "from", "enzyme"], "query_toks_no_value": ["select", "max", "(", "omim", ")", "from", "enzyme"], "question": "What is the maximum OMIM value of the enzymes?", "question_toks": ["What", "is", "the", "maximum", "OMIM", "value", "of", "the", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0939", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "synonyms_0045", "db_id": "college_2", "query": "select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2", "query_toks": ["select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(*)", "=", "2"], "question": "Find the title of courses that have two prereq?", "question_toks": ["Find", "the", "title", "of", "courses", "that", "have", "two", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1342", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0046", "db_id": "college_2", "query": "select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2", "query_toks": ["select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(*)", "=", "2"], "question": "What are the titles for courses with two prereq?", "question_toks": ["What", "are", "the", "titles", "for", "courses", "with", "two", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1343", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0047", "db_id": "college_2", "query": "select t1.title , t1.credits , t1.dept_name from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) > 1", "query_toks": ["select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(*)", ">", "1"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(*)", ">", "1"], "question": "Find the title, credit, and dept name of courses that have more than one prereq?", "question_toks": ["Find", "the", "title", ",", "credit", ",", "and", "dept", "name", "of", "courses", "that", "have", "more", "than", "one", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1344", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0048", "db_id": "college_2", "query": "select t1.title , t1.credits , t1.dept_name from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) > 1", "query_toks": ["select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(*)", ">", "1"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(*)", ">", "1"], "question": "What is the title, credit value, and dept_name for courses with more than one prerequisite?", "question_toks": ["What", "is", "the", "title", ",", "credit", "value", ",", "and", "dept_name", "for", "courses", "with", "more", "than", "one", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1345", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0049", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["select", "count", "(*)", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "How many courses that do not have prereq?", "question_toks": ["How", "many", "courses", "that", "do", "not", "have", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1346", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0050", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["select", "count", "(*)", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "Count the number of courses without prereq.", "question_toks": ["Count", "the", "number", "of", "courses", "without", "prereq", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1347", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0051", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "query_toks_no_value": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "Find the title of the courses that do not have any prereq?", "question_toks": ["Find", "the", "title", "of", "the", "courses", "that", "do", "not", "have", "any", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1420", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0052", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator where connection != \"broadband\"", "query_toks": ["select", "name", ",", "operating_system", "from", "web_client_accelerator", "where", "connection", "!=", "``", "broadband", "''"], "query_toks_no_value": ["select", "name", ",", "operating_system", "from", "web_client_accelerator", "where", "connection", "!=", "value"], "question": "What are the name and operating system of web client accelerators that do not work with only a 'Broadband' type connection?", "question_toks": ["What", "are", "the", "name", "and", "operating", "system", "of", "web", "client", "accelerators", "that", "do", "not", "work", "with", "only", "a", "'", "Broadband", "'", "type", "connection", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"broadband\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1831", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "synonyms_0053", "db_id": "phone_market", "query": "select carrier from phone where memory_in_g < 32 intersect select carrier from phone where memory_in_g > 64", "query_toks": ["select", "carrier", "from", "phone", "where", "memory_in_g", "<", "32", "intersect", "select", "carrier", "from", "phone", "where", "memory_in_g", ">", "64"], "query_toks_no_value": ["select", "carrier", "from", "phone", "where", "memory_in_g", "<", "value", "intersect", "select", "carrier", "from", "phone", "where", "memory_in_g", ">", "value"], "question": "Show the carriers that have both phones with memory in g smaller than 32 and phones with memory in g bigger than 64.", "question_toks": ["Show", "the", "carriers", "that", "have", "both", "phones", "with", "memory", "in", "g", "smaller", "than", "32", "and", "phones", "with", "memory", "in", "g", "bigger", "than", "64", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 64.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1986", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0054", "db_id": "company_1", "query": "select fname , lname from employee where salary > 30000", "query_toks": ["select", "fname", ",", "lname", "from", "employee", "where", "salary", ">", "30000"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "employee", "where", "salary", ">", "value"], "question": "Return the fname and lname of employees whose salary is more than 30000", "question_toks": ["Return", "the", "fname", "and", "lname", "of", "employees", "whose", "salary", "is", "more", "than", "30000"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 30000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_synonyms_0054", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0055", "db_id": "flight_4", "query": "select count(*) from airports as t1 join routes as t2 on t1.apid = t2.dst_apid where country = \"canada\"", "query_toks": ["select", "count", "(*)", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "country", "=", "``", "canada", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "country", "=", "value"], "question": "Find the number of routes whose dst apid are in Canada.", "question_toks": ["Find", "the", "number", "of", "routes", "whose", "dst", "apid", "are", "in", "Canada", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6827", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0056", "db_id": "flight_4", "query": "select t1.name , t1.city from airports as t1 join routes as t2 on t1.apid = t2.dst_apid group by t2.dst_apid order by count(*) desc limit 1", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "city", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "group", "by", "t2", ".", "dst_apid", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "city", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "group", "by", "t2", ".", "dst_apid", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Find the name and city of the airport which is the dst apid of the most number of routes.", "question_toks": ["Find", "the", "name", "and", "city", "of", "the", "airport", "which", "is", "the", "dst", "apid", "of", "the", "most", "number", "of", "routes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6833", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0057", "db_id": "concert_singer", "query": "select name , country from singer where song_name like \"%hey%\"", "query_toks": ["select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "\"%", "hey", "%\""], "query_toks_no_value": ["select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "\"%", "hey", "%\""], "question": "what is the name and country of the singer who have a song having 'Hey' in its name?", "question_toks": ["what", "is", "the", "name", "and", "country", "of", "the", "singer", "who", "have", "a", "song", "having", "'", "Hey", "'", "in", "its", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0039", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0058", "db_id": "concert_singer", "query": "select name , country from singer where song_name like \"%hey%\"", "query_toks": ["select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "\"%", "hey", "%\""], "query_toks_no_value": ["select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "\"%", "hey", "%\""], "question": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its names?", "question_toks": ["What", "is", "the", "name", "and", "country", "of", "origin", "of", "every", "singer", "who", "has", "a", "song", "with", "the", "word", "'", "Hey", "'", "in", "its", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0040", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0059", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", "query_toks": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")"], "query_toks_no_value": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")"], "question": "Which airports do not have source or destination flights?", "question_toks": ["Which", "airports", "do", "not", "have", "source", "or", "destination", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0258", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0060", "db_id": "employee_hire_evaluation", "query": "select name from shop where number_products > (select avg(number_products) from shop)", "query_toks": ["select", "name", "from", "shop", "where", "number_products", ">", "(", "select", "avg", "(", "number_products", ")", "from", "shop", ")"], "query_toks_no_value": ["select", "name", "from", "shop", "where", "number_products", ">", "value", "select", "avg", "(", "number_products", ")", "from", "shop", ")"], "question": "Find the names of shops whose number products is more than the average number of products.", "question_toks": ["Find", "the", "names", "of", "shops", "whose", "number", "products", "is", "more", "than", "the", "average", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0275", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0061", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = \"wta championships\" and winner_hand = \"l\"", "query_toks": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "``", "wta", "championships", "''", "and", "winner_hand", "=", "``", "l", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "championships", "and", "winner_hand", "=", "value"], "question": "How many different winners participated in the tourneys WTA Championships and were left handed?", "question_toks": ["How", "many", "different", "winners", "participated", "in", "the", "tourneys", "WTA", "Championships", "and", "were", "left", "handed", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"wta championships\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"l\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0485", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0062", "db_id": "battle_death", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "killed", ",", "t1", ".", "injured", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "where", "t2", ".", "tonnage", "=", "value"], "question": "What are the kills and injury situations caused by the ship with tonnage 't'?", "question_toks": ["What", "are", "the", "kills", "and", "injury", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'", "t", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0496", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0063", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format order by count(*) asc", "query_toks": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(*)", "asc"], "query_toks_no_value": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(*)", "asc"], "question": "What are the major record formats of orchestras, sorted by its count in ascending order?", "question_toks": ["What", "are", "the", "major", "record", "formats", "of", "orchestras", ",", "sorted", "by", "its", "count", "in", "ascending", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0851", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0064", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "order", "by", "percentage", "desc", "limit", "1"], "question": "Which language in Aruba has the biggest percentage?", "question_toks": ["Which", "language", "in", "Aruba", "has", "the", "biggest", "percentage", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"aruba\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0712", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0065", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "order", "by", "percentage", "desc", "limit", "1"], "question": "What language has the biggest percentage in Aruba?", "question_toks": ["What", "language", "has", "the", "biggest", "percentage", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"aruba\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0713", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0066", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which continent has the biggest number of languages?", "question_toks": ["Which", "continent", "has", "the", "biggest", "number", "of", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0742", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0067", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["select", "area", "from", "state", "where", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value", "mexico"], "question": "what is the area of new mexico", "question_toks": ["what", "is", "the", "area", "of", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0016", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0068", "db_id": "geo", "query": "select population from city where city_name = \"boulder\"", "query_toks": ["select", "population", "from", "city", "where", "city_name", "=", "``", "boulder", "''"], "query_toks_no_value": ["select", "population", "from", "city", "where", "city_name", "=", "value"], "question": "population in the boulder", "question_toks": ["population", "in", "the", "boulder"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"boulder\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0140", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0069", "db_id": "scholar", "query": "select distinct t3.title from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join writes as t4 on t4.paperid = t2.paperid join paper as t3 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname like \"ranjit jhala\" and t5.keyphrasename = \"liquid haskell\"", "query_toks": ["select", "distinct", "t3", ".", "title", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "paper", "as", "t3", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "like", "``", "ranjit", "jhala", "''", "and", "t5", ".", "keyphrasename", "=", "``", "liquid", "haskell", "''"], "query_toks_no_value": ["select", "distinct", "t3", ".", "title", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "paper", "as", "t3", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "like", "value", "jhala", "and", "t5", ".", "keyphrasename", "=", "value", "haskell"], "question": "What is the title of Ranjit Jhala 's Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "title", "of", "Ranjit", "Jhala", "'", "s", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"ranjit jhala\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"liquid haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1132", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0070", "db_id": "imdb", "query": "select title from movie where release_year = 2015", "query_toks": ["select", "title", "from", "movie", "where", "release_year", "=", "2015"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "release_year", "=", "value"], "question": "Find titles of movies released in 2015", "question_toks": ["Find", "titles", "of", "movies", "released", "in", "2015"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 44, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1431", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0071", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["select", "area", "from", "state", "where", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value", "mexico"], "question": "what is the area of new mexico", "question_toks": ["what", "is", "the", "area", "of", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0012", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0072", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["select", "area", "from", "state", "where", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value", "mexico"], "question": "what is the area of state called new mexico", "question_toks": ["what", "is", "the", "area", "of", "state", "called", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0014", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0073", "db_id": "geo", "query": "select population from state where state_name = \"california\"", "query_toks": ["select", "population", "from", "state", "where", "state_name", "=", "``", "california", "''"], "query_toks_no_value": ["select", "population", "from", "state", "where", "state_name", "=", "value"], "question": "what is the population of california", "question_toks": ["what", "is", "the", "population", "of", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0026", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0074", "db_id": "geo", "query": "select population from state where state_name = \"california\"", "query_toks": ["select", "population", "from", "state", "where", "state_name", "=", "``", "california", "''"], "query_toks_no_value": ["select", "population", "from", "state", "where", "state_name", "=", "value"], "question": "what is the population of state california", "question_toks": ["what", "is", "the", "population", "of", "state", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0027", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0075", "db_id": "geo", "query": "select state_name from state where population = ( select max ( population ) from state )", "query_toks": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "state", ")"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "value", "select", "max", "(", "population", ")", "from", "state", ")"], "question": "what state has the maximum population", "question_toks": ["what", "state", "has", "the", "maximum", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0067", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0076", "db_id": "geo", "query": "select sum ( population ) from state", "query_toks": ["select", "sum", "(", "population", ")", "from", "state"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "state"], "question": "what the sum of population live in the united states", "question_toks": ["what", "the", "sum", "of", "population", "live", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0239", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0077", "db_id": "course_teach", "query": "select hometown from teacher order by age asc limit 1", "query_toks": ["select", "hometown", "from", "teacher", "order", "by", "age", "asc", "limit", "1"], "query_toks_no_value": ["select", "hometown", "from", "teacher", "order", "by", "age", "asc", "limit", "1"], "question": "Where is hometown of the youngest teacher?", "question_toks": ["Where", "is", "hometown", "of", "the", "youngest", "teacher", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0392", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0078", "db_id": "battle_death", "query": "select count(*) from ship where disposition_of_ship = \"captured\"", "query_toks": ["select", "count", "(*)", "from", "ship", "where", "disposition_of_ship", "=", "``", "captured", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "ship", "where", "disposition_of_ship", "=", "value"], "question": "How many ships ended with disposition 'Captured'?", "question_toks": ["How", "many", "ships", "ended", "with", "disposition", "'", "Captured", "'?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"captured\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0491", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0079", "db_id": "poker_player", "query": "select name from people where nationality != \"russia\"", "query_toks": ["select", "name", "from", "people", "where", "nationality", "!=", "``", "russia", "''"], "query_toks_no_value": ["select", "name", "from", "people", "where", "nationality", "!=", "value"], "question": "What are the names of people whose nationality is not Russia?", "question_toks": ["What", "are", "the", "names", "of", "people", "whose", "nationality", "is", "not", "Russia", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"russia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0682", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0080", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value"], "question": "What is the population of Asia, and what is the largest GNP of it?", "question_toks": ["What", "is", "the", "population", "of", "Asia", ",", "and", "what", "is", "the", "largest", "GNP", "of", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0723", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0081", "db_id": "world_1", "query": "select count( distinct continent) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"chinese\"", "query_toks": ["select", "count", "(", "distinct", "continent", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "chinese", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "continent", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "What is the number of distinct continents where language is Chinese?", "question_toks": ["What", "is", "the", "number", "of", "distinct", "continents", "where", "language", "is", "Chinese", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"chinese\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0750", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0082", "db_id": "flight_1", "query": "select avg(distance) , avg(price) from flight where origin = \"los angeles\"", "query_toks": ["select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "angeles"], "question": "What is the average distance and average price for flights from origin Los Angeles.", "question_toks": ["What", "is", "the", "average", "distance", "and", "average", "price", "for", "flights", "from", "origin", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0401", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0083", "db_id": "flight_1", "query": "select avg(distance) , avg(price) from flight where origin = \"los angeles\"", "query_toks": ["select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "angeles"], "question": "What is the average distance and price for all flights from origin Los Angeles?", "question_toks": ["What", "is", "the", "average", "distance", "and", "price", "for", "all", "flights", "from", "origin", "Los", "Angeles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0402", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "or_in_nl_0000", "db_id": "car_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "motors"], "question": "Which distinctive models are produced by maker with the full name General Motors?", "question_toks": ["Which", "distinctive", "models", "are", "produced", "by", "maker", "with", "the", "full", "name", "General", "Motors", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"general motors\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0151", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0001", "db_id": "car_1", "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 t4.weight > 3500", "query_toks": ["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", "t4", ".", "weight", ">", "3500"], "query_toks_no_value": ["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", "t4", ".", "weight", ">", "value"], "question": "What are the different models weighed more than 3500?", "question_toks": ["What", "are", "the", "different", "models", "weighed", "more", "than", "3500", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], 3500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0152", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0002", "db_id": "car_1", "query": "select max(mpg) from cars_data where cylinders = 8", "query_toks": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "8"], "query_toks_no_value": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value"], "question": "What is the maximum miles per gallon of the car with 8 cylinders?", "question_toks": ["What", "is", "the", "maximum", "miles", "per", "gallon", "of", "the", "car", "with", "8", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0169", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0003", "db_id": "car_1", "query": "select max(mpg) from cars_data where year < 1980", "query_toks": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "year", "<", "1980"], "query_toks_no_value": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "year", "<", "value"], "question": "What is the maximum mpg of the cars that were produced before 1980 ?", "question_toks": ["What", "is", "the", "maximum", "mpg", "of", "the", "cars", "that", "were", "produced", "before", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 4, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0170", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0004", "db_id": "car_1", "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 ", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the id and names of the countries which have more than 3 car makers?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0005", "db_id": "car_1", "query": "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the ids and names of all countries that produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0006", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 ", "query_toks": ["select", "count", "(*)", "from", "concert", "where", "year", "=", "2014"], "query_toks_no_value": ["select", "count", "(*)", "from", "concert", "where", "year", "=", "value"], "question": "How many concerts are there in year 2014?", "question_toks": ["How", "many", "concerts", "are", "there", "in", "year", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0020", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0007", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2015", "query_toks": ["select", "count", "(*)", "from", "concert", "where", "year", "=", "2015"], "query_toks_no_value": ["select", "count", "(*)", "from", "concert", "where", "year", "=", "value"], "question": "How many concerts occurred in 2015?", "question_toks": ["How", "many", "concerts", "occurred", "in", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0021", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0008", "db_id": "course_teach", "query": "select name from teacher where age = 33", "query_toks": ["select", "name", "from", "teacher", "where", "age", "=", "33"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "age", "=", "value"], "question": "Show the name of teachers aged 33?", "question_toks": ["Show", "the", "name", "of", "teachers", "aged", "33", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 33.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0389", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0009", "db_id": "course_teach", "query": "select name from teacher where age = 32", "query_toks": ["select", "name", "from", "teacher", "where", "age", "=", "32"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "age", "=", "value"], "question": "What are the names of the teachers who are aged 32?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "who", "are", "aged", "32", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0390", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0010", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where template_type_code = \"ppt\"", "query_toks": ["select", "template_id", "from", "templates", "where", "template_type_code", "=", "``", "ppt", "''"], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "template_type_code", "=", "value"], "question": "What are the ids of templates with template type code PPT?", "question_toks": ["What", "are", "the", "ids", "of", "templates", "with", "template", "type", "code", "PPT", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"ppt\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0323", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0011", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where template_type_code = \"pp\"", "query_toks": ["select", "template_id", "from", "templates", "where", "template_type_code", "=", "``", "pp", "''"], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "template_type_code", "=", "value"], "question": "Return the ids of templates that have the code PP.", "question_toks": ["Return", "the", "ids", "of", "templates", "that", "have", "the", "code", "PP", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"pp\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0324", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0012", "db_id": "dog_kennels", "query": "select email_address from professionals where state = \"hawaii\"", "query_toks": ["select", "email_address", "from", "professionals", "where", "state", "=", "``", "hawaii", "''"], "query_toks_no_value": ["select", "email_address", "from", "professionals", "where", "state", "=", "value"], "question": "List the emails of the professionals who live in the state of Hawaii.", "question_toks": ["List", "the", "emails", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Hawaii", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"hawaii\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0962", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0013", "db_id": "dog_kennels", "query": "select email_address from professionals where state = \"wisconsin\"", "query_toks": ["select", "email_address", "from", "professionals", "where", "state", "=", "``", "wisconsin", "''"], "query_toks_no_value": ["select", "email_address", "from", "professionals", "where", "state", "=", "value"], "question": "What are the emails of the professionals living in either the state of Wisconsin?", "question_toks": ["What", "are", "the", "emails", "of", "the", "professionals", "living", "in", "either", "the", "state", "of", "Wisconsin", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"wisconsin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0963", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0014", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value"], "question": "Which professionals live in the state of Indiana? List id, last name and cell phone.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "?", "List", "id", ",", "last", "name", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0922", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0015", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value"], "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana.", "question_toks": ["Find", "the", "id", ",", "last", "name", "and", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0923", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0016", "db_id": "dog_kennels", "query": "select first_name from professionals except select name from dogs", "query_toks": ["select", "first_name", "from", "professionals", "except", "select", "name", "from", "dogs"], "query_toks_no_value": ["select", "first_name", "from", "professionals", "except", "select", "name", "from", "dogs"], "question": "Which first names are used for professionals but are not used as dog names?", "question_toks": ["Which", "first", "names", "are", "used", "for", "professionals", "but", "are", "not", "used", "as", "dog", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0926", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0017", "db_id": "dog_kennels", "query": "select first_name from owners except select name from dogs", "query_toks": ["select", "first_name", "from", "owners", "except", "select", "name", "from", "dogs"], "query_toks_no_value": ["select", "first_name", "from", "owners", "except", "select", "name", "from", "dogs"], "question": "Find the first names that are used for owners but are not used as dog names.", "question_toks": ["Find", "the", "first", "names", "that", "are", "used", "for", "owners", "but", "are", "not", "used", "as", "dog", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0927", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0018", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like \"%west%\"", "query_toks": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "\"%", "west", "%\""], "query_toks_no_value": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "\"%", "west", "%\""], "question": "Which professionals live in a city containing the substring 'West'? List role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "containing", "the", "substring", "'", "West", "'?", "List", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%west%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0970", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0019", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"abilene\"", "query_toks": ["select", "count", "(*)", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "``", "abilene", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "Find the number of flights landing in the city of Aberdeen.", "question_toks": ["Find", "the", "number", "of", "flights", "landing", "in", "the", "city", "of", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0255", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0020", "db_id": "flight_2", "query": "select count(*) from flights where destairport = ( select airportcode from airports where city like '%abilene%' );", "query_toks": ["select", "count", "(*)", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "``", "abilene", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "How many flights land in Abilene?", "question_toks": ["How", "many", "flights", "land", "in", "Abilene", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0256", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0021", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select destairport from flights)", "query_toks": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "destairport", "from", "flights", ")"], "query_toks_no_value": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "destairport", "from", "flights", ")"], "question": "Which airports do not have departing flights?", "question_toks": ["Which", "airports", "do", "not", "have", "departing", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0258", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0022", "db_id": "museum_visit", "query": "select count(*) from museum where open_year > 2013", "query_toks": ["select", "count", "(*)", "from", "museum", "where", "open_year", ">", "2013"], "query_toks_no_value": ["select", "count", "(*)", "from", "museum", "where", "open_year", ">", "value"], "question": "How many museums were opened after 2013?", "question_toks": ["How", "many", "museums", "were", "opened", "after", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0428", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0023", "db_id": "network_1", "query": "select count(*) from highschooler where grade = 9", "query_toks": ["select", "count", "(*)", "from", "highschooler", "where", "grade", "=", "9"], "query_toks_no_value": ["select", "count", "(*)", "from", "highschooler", "where", "grade", "=", "value"], "question": "How many high schoolers are there in grade 9?", "question_toks": ["How", "many", "high", "schoolers", "are", "there", "in", "grade", "9", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 9.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0874", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0024", "db_id": "network_1", "query": "select count(*) from highschooler where grade = 10", "query_toks": ["select", "count", "(*)", "from", "highschooler", "where", "grade", "=", "10"], "query_toks_no_value": ["select", "count", "(*)", "from", "highschooler", "where", "grade", "=", "value"], "question": "Count the number of high schoolers in grades 10.", "question_toks": ["Count", "the", "number", "of", "high", "schoolers", "in", "grades", "10", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0875", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0025", "db_id": "orchestra", "query": "select count(*) from orchestra where major_record_format = \"dvd\"", "query_toks": ["select", "count", "(*)", "from", "orchestra", "where", "major_record_format", "=", "``", "dvd", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "orchestra", "where", "major_record_format", "=", "value"], "question": "Find the number of orchestras whose record format is \"DVD\".", "question_toks": ["Find", "the", "number", "of", "orchestras", "whose", "record", "format", "is", "\"", "DVD", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"dvd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0858", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0026", "db_id": "orchestra", "query": "select count(*) from orchestra where major_record_format = \"cd\"", "query_toks": ["select", "count", "(*)", "from", "orchestra", "where", "major_record_format", "=", "``", "cd", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "orchestra", "where", "major_record_format", "=", "value"], "question": "Count the number of orchestras that have CD as their record format.", "question_toks": ["Count", "the", "number", "of", "orchestras", "that", "have", "CD", "as", "their", "record", "format", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"cd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0859", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0027", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the first name of students who have cat pet.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0057", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0028", "db_id": "pets_1", "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 = \"dog\"", "query_toks": ["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", "=", "``", "dog", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the first names of every student who has a dog as a pet?", "question_toks": ["What", "are", "the", "first", "names", "of", "every", "student", "who", "has", "a", "dog", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0058", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0029", "db_id": "real_estate_properties", "query": "select property_name from properties where property_type_code = \"house\" and room_count > 1", "query_toks": ["select", "property_name", "from", "properties", "where", "property_type_code", "=", "``", "house", "''", "and", "room_count", ">", "1"], "query_toks_no_value": ["select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "and", "room_count", ">", "value"], "question": "What are the names of properties that are houses with more than 1 room?", "question_toks": ["What", "are", "the", "names", "of", "properties", "that", "are", "houses", "with", "more", "than", "1", "room", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"house\"", null], "and", [false, 3, [0, [0, 15, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1033", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0030", "db_id": "singer", "query": "select name from singer where birth_year = 1948", "query_toks": ["select", "name", "from", "singer", "where", "birth_year", "=", "1948"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "birth_year", "=", "value"], "question": "Show the name of singers whose birth year is 1948?", "question_toks": ["Show", "the", "name", "of", "singers", "whose", "birth", "year", "is", "1948", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1948.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1008", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0031", "db_id": "singer", "query": "select name from singer where birth_year = 1948", "query_toks": ["select", "name", "from", "singer", "where", "birth_year", "=", "1948"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "birth_year", "=", "value"], "question": "What are the names of the singers whose birth year is 1948?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "whose", "birth", "year", "is", "1948", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1948.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1009", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0032", "db_id": "student_transcripts_tracking", "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\" ", "query_toks": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "``", "haiti", "''"], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value"], "question": "Find the first name of the students who permanently live in the country Haiti.", "question_toks": ["Find", "the", "first", "name", "of", "the", "students", "who", "permanently", "live", "in", "the", "country", "Haiti", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"haiti\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0583", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0033", "db_id": "student_transcripts_tracking", "query": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t1.cell_mobile_number = \"09700166582\"", "query_toks": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "cell_mobile_number", "=", "``", "09700166582", "''"], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "cell_mobile_number", "=", "value"], "question": "What are the first names of the students who have the cell phone number 09700166582 ?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "students", "who", "have", "the", "cell", "phone", "number", "09700166582", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0584", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0034", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\"", "query_toks": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "``", "ben", "jones", "''"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value", "jones"], "question": "List the title of all cartoon directed by \"Ben Jones\".", "question_toks": ["List", "the", "title", "of", "all", "cartoon", "directed", "by", "\"", "Ben", "Jones", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"ben jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0593", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0035", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"brandon vietti\"", "query_toks": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "``", "brandon", "vietti", "''"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value", "vietti"], "question": "What are the titles of all cartoons directed by Brandon Vietti?", "question_toks": ["What", "are", "the", "titles", "of", "all", "cartoons", "directed", "by", "Brandon", "Vietti", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"brandon vietti\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0594", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0036", "db_id": "voter_1", "query": "select count(*) from votes where state = \"ny\"", "query_toks": ["select", "count", "(*)", "from", "votes", "where", "state", "=", "``", "ny", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "votes", "where", "state", "=", "value"], "question": "What are the number of votes from state 'NY'?", "question_toks": ["What", "are", "the", "number", "of", "votes", "from", "state", "'", "NY", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"ny\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0696", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0037", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\"", "query_toks": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value"], "question": "Give the total surface area covered by countries in Asia.", "question_toks": ["Give", "the", "total", "surface", "area", "covered", "by", "countries", "in", "Asia", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0727", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0038", "db_id": "world_1", "query": "select distinct t1.region from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\"", "query_toks": ["select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "What are the regions that use English?", "question_toks": ["What", "are", "the", "regions", "that", "use", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0752", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0039", "db_id": "world_1", "query": "select distinct t1.region from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\"", "query_toks": ["select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "Which regions speak Dutch?", "question_toks": ["Which", "regions", "speak", "Dutch", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0753", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0040", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where English is the official language ?", "question_toks": ["What", "are", "the", "countries", "where", "English", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0754", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0041", "db_id": "world_1", "query": "select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", "query_toks": ["select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''", "and", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "Which countries have Dutch as an official language?", "question_toks": ["Which", "countries", "have", "Dutch", "as", "an", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0755", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0042", "db_id": "wta_1", "query": "select count(*) from matches where year = 2016", "query_toks": ["select", "count", "(*)", "from", "matches", "where", "year", "=", "2016"], "query_toks_no_value": ["select", "count", "(*)", "from", "matches", "where", "year", "=", "value"], "question": "List the number of all matches who played in years of 2016.", "question_toks": ["List", "the", "number", "of", "all", "matches", "who", "played", "in", "years", "of", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0449", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0043", "db_id": "wta_1", "query": "select count(*) from matches where year = 2013", "query_toks": ["select", "count", "(*)", "from", "matches", "where", "year", "=", "2013"], "query_toks_no_value": ["select", "count", "(*)", "from", "matches", "where", "year", "=", "value"], "question": "How many matches were played in 2013?", "question_toks": ["How", "many", "matches", "were", "played", "in", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0450", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0044", "db_id": "activity_1", "query": "select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = \"canoeing\"", "query_toks": ["select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "``", "canoeing", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value"], "question": "Find the first names of the faculty members who are playing Canoeing.", "question_toks": ["Find", "the", "first", "names", "of", "the", "faculty", "members", "who", "are", "playing", "Canoeing", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"canoeing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6795", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0045", "db_id": "activity_1", "query": "select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = \"kayaking\"", "query_toks": ["select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "``", "kayaking", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value"], "question": "Which faculty members are playing Kayaking? Tell me their first names.", "question_toks": ["Which", "faculty", "members", "are", "playing", "Kayaking", "?", "Tell", "me", "their", "first", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6796", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0046", "db_id": "activity_1", "query": "select lname from faculty where rank = \"professor\" except select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = \"canoeing\" ", "query_toks": ["select", "lname", "from", "faculty", "where", "rank", "=", "``", "professor", "''", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "``", "canoeing", "''"], "query_toks_no_value": ["select", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value"], "question": "Find the first names of professors who are not playing Canoeing.", "question_toks": ["Find", "the", "first", "names", "of", "professors", "who", "are", "not", "playing", "Canoeing", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"canoeing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6797", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0047", "db_id": "activity_1", "query": "select lname from faculty where rank = \"professor\" except select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = \"kayaking\"", "query_toks": ["select", "lname", "from", "faculty", "where", "rank", "=", "``", "professor", "''", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "``", "kayaking", "''"], "query_toks_no_value": ["select", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value"], "question": "What are the first names of the professors who do not play Kayaking as activities?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "who", "do", "not", "play", "Kayaking", "as", "activities", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6798", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0048", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"hkg\"", "query_toks": ["select", "count", "(*)", "from", "student", "where", "city_code", "=", "``", "hkg", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "city_code", "=", "value"], "question": "How many students live in HKG?", "question_toks": ["How", "many", "students", "live", "in", "HKG", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"hkg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0481", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0049", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"chi\"", "query_toks": ["select", "count", "(*)", "from", "student", "where", "city_code", "=", "``", "chi", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "city_code", "=", "value"], "question": "Give the number of students living in CHI.", "question_toks": ["Give", "the", "number", "of", "students", "living", "in", "CHI", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"chi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0482", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0050", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\" and t1.allergy = \"milk\"", "query_toks": ["select", "count", "(*)", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "``", "f", "''", "and", "t1", ".", "allergy", "=", "``", "milk", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value"], "question": "How many female students have milk allergies?", "question_toks": ["How", "many", "female", "students", "have", "milk", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"milk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0509", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0051", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\" and t1.allergy = \"eggs\"", "query_toks": ["select", "count", "(*)", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "``", "f", "''", "and", "t1", ".", "allergy", "=", "``", "eggs", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value"], "question": "How many students who are female allergic to eggs?", "question_toks": ["How", "many", "students", "who", "are", "female", "allergic", "to", "eggs", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"eggs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0510", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0052", "db_id": "architecture", "query": "select distinct t1.type from mill as t1 join architect as t2 on t1.architect_id = t2.id where t2.nationality = \"canadian\"", "query_toks": ["select", "distinct", "t1", ".", "type", "from", "mill", "as", "t1", "join", "architect", "as", "t2", "on", "t1", ".", "architect_id", "=", "t2", ".", "id", "where", "t2", ".", "nationality", "=", "``", "canadian", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "type", "from", "mill", "as", "t1", "join", "architect", "as", "t2", "on", "t1", ".", "architect_id", "=", "t2", ".", "id", "where", "t2", ".", "nationality", "=", "value"], "question": "What are the distinct types of mills that are built by Canadian architects?", "question_toks": ["What", "are", "the", "distinct", "types", "of", "mills", "that", "are", "built", "by", "Canadian", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"canadian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6952", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0053", "db_id": "architecture", "query": "select location from bridge where name = \"kolob arch\" ", "query_toks": ["select", "location", "from", "bridge", "where", "name", "=", "``", "kolob", "arch", "''"], "query_toks_no_value": ["select", "location", "from", "bridge", "where", "name", "=", "value", "arch"], "question": "What is the location of the bridge named 'Kolob Arch'?", "question_toks": ["What", "is", "the", "location", "of", "the", "bridge", "named", "'", "Kolob", "Arch", "'?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"kolob arch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6956", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0054", "db_id": "architecture", "query": "select t1.id , t1.name , t1.gender from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2", "query_toks": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2"], "question": "What are the ids, names and genders of the architects who built two bridges?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "genders", "of", "the", "architects", "who", "built", "two", "bridges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6955", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0055", "db_id": "assets_maintenance", "query": "select t1.company_id , t1.company_name from third_party_companies as t1 join maintenance_engineers as t2 on t1.company_id = t2.company_id group by t1.company_id having count(*) >= 2", "query_toks": ["select", "t1", ".", "company_id", ",", "t1", ".", "company_name", "from", "third_party_companies", "as", "t1", "join", "maintenance_engineers", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "company_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "company_id", ",", "t1", ".", "company_name", "from", "third_party_companies", "as", "t1", "join", "maintenance_engineers", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "company_id", "having", "count", "(*)", ">=", "2"], "question": "Which third party companies have at least 2 maintenance engineers? List the company id and name.", "question_toks": ["Which", "third", "party", "companies", "have", "at", "least", "2", "maintenance", "engineers", "?", "List", "the", "company", "id", "and", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3129", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0056", "db_id": "csu_1", "query": "select campus from campuses where location = \"northridge\" and county = \"los angeles\"", "query_toks": ["select", "campus", "from", "campuses", "where", "location", "=", "``", "northridge", "''", "and", "county", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value", "angeles"], "question": "Find the name of the campuses that is in Northridge, Los Angeles.", "question_toks": ["Find", "the", "name", "of", "the", "campuses", "that", "is", "in", "Northridge", ",", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"northridge\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2334", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0057", "db_id": "csu_1", "query": "select campus from campuses where location = \"san francisco\" and county = \"san francisco\"", "query_toks": ["select", "campus", "from", "campuses", "where", "location", "=", "``", "san", "francisco", "''", "and", "county", "=", "``", "san", "francisco", "''"], "query_toks_no_value": ["select", "campus", "from", "campuses", "where", "location", "=", "value", "francisco", "and", "county", "=", "value", "francisco"], "question": "What campuses are located in San Francisco, San Francisco?", "question_toks": ["What", "campuses", "are", "located", "in", "San", "Francisco", ",", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"san francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2335", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0058", "db_id": "debate", "query": "select name from people where age = 35", "query_toks": ["select", "name", "from", "people", "where", "age", "=", "35"], "query_toks_no_value": ["select", "name", "from", "people", "where", "age", "=", "value"], "question": "Show the names of people aged either 35.", "question_toks": ["Show", "the", "names", "of", "people", "aged", "either", "35", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], 35.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1496", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0059", "db_id": "journal_committee", "query": "select name from editor where age = 25", "query_toks": ["select", "name", "from", "editor", "where", "age", "=", "25"], "query_toks_no_value": ["select", "name", "from", "editor", "where", "age", "=", "value"], "question": "Show the names of editors of age 25.", "question_toks": ["Show", "the", "names", "of", "editors", "of", "age", "25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0653", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0060", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = \"utah\"", "query_toks": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "``", "utah", "''"], "query_toks_no_value": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "value"], "question": "Find the total account balance of all customer from Utah.", "question_toks": ["Find", "the", "total", "account", "balance", "of", "each", "customer", "from", "Utah", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"utah\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3034", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0061", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = \"texas\"", "query_toks": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "``", "texas", "''"], "query_toks_no_value": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "value"], "question": "What are the total account balances of all customers from Texas?", "question_toks": ["What", "are", "the", "total", "account", "balances", "for", "each", "customer", "from", "Texas", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3035", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0062", "db_id": "music_1", "query": "select song_name from song where genre_is = \"modern\"", "query_toks": ["select", "song_name", "from", "song", "where", "genre_is", "=", "``", "modern", "''"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "genre_is", "=", "value"], "question": "Find the names of songs whose genre is modern.", "question_toks": ["Find", "the", "names", "of", "songs", "whose", "genre", "is", "modern", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"modern\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3591", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0063", "db_id": "music_1", "query": "select song_name from song where genre_is = \"modern\"", "query_toks": ["select", "song_name", "from", "song", "where", "genre_is", "=", "``", "modern", "''"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "genre_is", "=", "value"], "question": "What are the names of the songs that are modern?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "that", "are", "modern", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"modern\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3592", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0064", "db_id": "music_1", "query": "select f_id from files where formats = \"mp4\"", "query_toks": ["select", "f_id", "from", "files", "where", "formats", "=", "``", "mp4", "''"], "query_toks_no_value": ["select", "f_id", "from", "files", "where", "formats", "=", "value"], "question": "What are the ids of songs that are available in either mp4 format?", "question_toks": ["What", "are", "the", "ids", "of", "songs", "that", "are", "available", "in", "either", "mp4", "format", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"mp4\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3581", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0065", "db_id": "program_share", "query": "select name from channel where owner = \"cctv\"", "query_toks": ["select", "name", "from", "channel", "where", "owner", "=", "``", "cctv", "''"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "=", "value"], "question": "What are the names of the channels owned by CCTV?", "question_toks": ["What", "are", "the", "names", "of", "the", "channels", "owned", "by", "CCTV", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cctv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3762", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0066", "db_id": "program_share", "query": "select name from channel where owner = \"hbs\"", "query_toks": ["select", "name", "from", "channel", "where", "owner", "=", "``", "hbs", "''"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "=", "value"], "question": "List the names of all the channels owned by HBS", "question_toks": ["List", "the", "names", "of", "all", "the", "channels", "owned", "by", "HBS"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"hbs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3763", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0067", "db_id": "protein_institute", "query": "select count(*) from building where height_feet > (select avg(height_feet) from building)", "query_toks": ["select", "count", "(*)", "from", "building", "where", "height_feet", ">", "(", "select", "avg", "(", "height_feet", ")", "from", "building", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "building", "where", "height_feet", ">", "value", "select", "avg", "(", "height_feet", ")", "from", "building", ")"], "question": "Show the number of buildings with a height above the average.", "question_toks": ["Show", "the", "number", "of", "buildings", "with", "a", "height", "above", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1914", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "negation_with_any_all_0000", "db_id": "activity_1", "query": "select facid from faculty", "query_toks": ["select", "facid", "from", "faculty"], "query_toks_no_value": ["select", "facid", "from", "faculty"], "question": "Which faculties do we have? Find the faculty ids.", "question_toks": ["Which", "faculties", "do", "we", "have", "?", "Find", "the", "faculty", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6772", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0001", "db_id": "activity_1", "query": "select facid from faculty ", "query_toks": ["select", "facid", "from", "faculty"], "query_toks_no_value": ["select", "facid", "from", "faculty"], "question": "Show ids for the faculty members.", "question_toks": ["Show", "ids", "for", "the", "faculty", "members", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6763", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0002", "db_id": "activity_1", "query": "select facid from faculty", "query_toks": ["select", "facid", "from", "faculty"], "query_toks_no_value": ["select", "facid", "from", "faculty"], "question": "Show the ids of the faculty.", "question_toks": ["Show", "the", "ids", "of", "the", "faculty", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6771", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0003", "db_id": "activity_1", "query": "select stuid from student", "query_toks": ["select", "stuid", "from", "student"], "query_toks_no_value": ["select", "stuid", "from", "student"], "question": "Show the ids of the students", "question_toks": ["Show", "the", "ids", "of", "the", "students"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6787", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0004", "db_id": "activity_1", "query": "select stuid from student", "query_toks": ["select", "stuid", "from", "student"], "query_toks_no_value": ["select", "stuid", "from", "student"], "question": "What are the ids of the students", "question_toks": ["What", "are", "the", "ids", "of", "the", "students"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6788", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0005", "db_id": "activity_1", "query": "select facid from faculty", "query_toks": ["select", "facid", "from", "faculty"], "query_toks_no_value": ["select", "facid", "from", "faculty"], "question": "What are the ids of the faculty members", "question_toks": ["What", "are", "the", "ids", "of", "the", "faculty", "members"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6764", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0006", "db_id": "aircraft", "query": "select aircraft from aircraft", "query_toks": ["select", "aircraft", "from", "aircraft"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft"], "question": "List the names of aircrafts.", "question_toks": ["List", "the", "names", "of", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4831", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0007", "db_id": "aircraft", "query": "select name from pilot", "query_toks": ["select", "name", "from", "pilot"], "query_toks_no_value": ["select", "name", "from", "pilot"], "question": "What are the names of the pilots", "question_toks": ["What", "are", "the", "names", "of", "the", "pilots"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4842", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0008", "db_id": "aircraft", "query": "select aircraft from aircraft ", "query_toks": ["select", "aircraft", "from", "aircraft"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft"], "question": "What are the names of all aicrafts", "question_toks": ["What", "are", "the", "names", "of", "all", "aicrafts"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4832", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0009", "db_id": "allergy_1", "query": "select stuid from student", "query_toks": ["select", "stuid", "from", "student"], "query_toks_no_value": ["select", "stuid", "from", "student"], "question": "What are the student ids of students", "question_toks": ["What", "are", "the", "student", "ids", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0507", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0010", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["select", "fname", ",", "lname", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "List the first and last name of the students", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "the", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0527", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0011", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["select", "fname", ",", "lname", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "What is the full name of each student", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "student"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0528", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0012", "db_id": "apartment_rentals", "query": "select count(*) from apartments", "query_toks": ["select", "count", "(*)", "from", "apartments"], "query_toks_no_value": ["select", "count", "(*)", "from", "apartments"], "question": "How many apartments are there?", "question_toks": ["How", "many", "apartments", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1268", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0013", "db_id": "assets_maintenance", "query": "select asset_model from assets", "query_toks": ["select", "asset_model", "from", "assets"], "query_toks_no_value": ["select", "asset_model", "from", "assets"], "question": "Which assets are occurs? List the asset model.", "question_toks": ["Which", "assets", "are", "occurs", "?", "List", "the", "asset", "model", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3156", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0014", "db_id": "assets_maintenance", "query": "select staff_id, staff_name from staff;", "query_toks": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_id", "from", "staff", "as", "t1", "join", "fault_log", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "recorded_by_staff_id"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_id", "from", "staff", "as", "t1", "join", "fault_log", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "recorded_by_staff_id"], "question": "What is the name and id of the staff?", "question_toks": ["What", "is", "the", "name", "and", "id", "of", "the", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3130", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0015", "db_id": "battle_death", "query": "select count(*) from battle", "query_toks": ["select", "count", "(*)", "from", "battle"], "query_toks_no_value": ["select", "count", "(*)", "from", "battle"], "question": "How many battles were?", "question_toks": ["How", "many", "battles", "were", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0503", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0016", "db_id": "behavior_monitoring", "query": "select count(*) from students", "query_toks": ["select", "count", "(*)", "from", "students"], "query_toks_no_value": ["select", "count", "(*)", "from", "students"], "question": "How many students are?", "question_toks": ["How", "many", "students", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3123", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0017", "db_id": "behavior_monitoring", "query": "select last_name from teachers", "query_toks": ["select", "last_name", "from", "teachers"], "query_toks_no_value": ["select", "last_name", "from", "teachers"], "question": "Find the last names of teachers", "question_toks": ["Find", "the", "last", "names", "of", "teachers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3124", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0018", "db_id": "bike_1", "query": "select avg(long) from station", "query_toks": ["select", "avg", "(", "long", ")", "from", "station"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station"], "question": "What is the mean longitude for all stations?", "question_toks": ["What", "is", "the", "mean", "longitude", "for", "all", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0152", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0019", "db_id": "bike_1", "query": "select id from station", "query_toks": ["select", "id", "from", "station"], "query_toks_no_value": ["select", "id", "from", "station"], "question": "What are the ids of all stations?", "question_toks": ["What", "are", "the", "ids", "of", "all", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0170", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0020", "db_id": "bike_1", "query": "select name from station;", "query_toks": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id"], "question": "What are the names of all stations?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0172", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0021", "db_id": "bike_1", "query": "select distinct zip_code from weather", "query_toks": ["select", "distinct", "zip_code", "from", "weather"], "query_toks_no_value": ["select", "distinct", "zip_code", "from", "weather"], "question": "Find all the zip codes of weather", "question_toks": ["Find", "all", "the", "zip", "codes"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0195", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0022", "db_id": "car_1", "query": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.cylinders < 4", "query_toks": ["select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<", "4"], "query_toks_no_value": ["select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<", "value"], "question": "What are the make ids and names of all those with less than 4 cylinders ?", "question_toks": ["What", "are", "the", "make", "ids", "and", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0168", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0023", "db_id": "chinook_1", "query": "select count(*) from artist", "query_toks": ["select", "count", "(*)", "from", "artist"], "query_toks_no_value": ["select", "count", "(*)", "from", "artist"], "question": "How many artists are there?", "question_toks": ["How", "many", "artists", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0887", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0024", "db_id": "chinook_1", "query": "select name from artist", "query_toks": ["select", "name", "from", "artist"], "query_toks_no_value": ["select", "name", "from", "artist"], "question": "Find the names of artists.", "question_toks": ["Find", "the", "names", "of", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0877", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0025", "db_id": "chinook_1", "query": "select name from artist", "query_toks": ["select", "name", "from", "artist"], "query_toks_no_value": ["select", "name", "from", "artist"], "question": "What are the names of artists?", "question_toks": ["What", "are", "the", "names", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0878", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0026", "db_id": "chinook_1", "query": "select lastname from customer", "query_toks": ["select", "lastname", "from", "customer"], "query_toks_no_value": ["select", "lastname", "from", "customer"], "question": "Find all the customer last names.", "question_toks": ["Find", "all", "the", "customer", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0857", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0027", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["select", "title", ",", "directed_by", "from", "film"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "film"], "question": "What are the title and director of the films?", "question_toks": ["What", "are", "the", "title", "and", "director", "of", "the", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1954", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0028", "db_id": "cinema", "query": "select location from cinema", "query_toks": ["select", "location", "from", "cinema"], "query_toks_no_value": ["select", "location", "from", "cinema"], "question": "Show all the locations.", "question_toks": ["Show", "all", "the", "locations", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1930", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0029", "db_id": "climbing", "query": "select name from mountain", "query_toks": ["select", "name", "from", "mountain"], "query_toks_no_value": ["select", "name", "from", "mountain"], "question": "List the names of mountains.", "question_toks": ["List", "the", "names", "of", "mountains", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1142", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0030", "db_id": "coffee_shop", "query": "select address from member", "query_toks": ["select", "address", "from", "member"], "query_toks_no_value": ["select", "address", "from", "member"], "question": "Which address do members have?", "question_toks": ["Which", "address", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0798", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0031", "db_id": "coffee_shop", "query": "select address , num_of_staff from shop", "query_toks": ["select", "address", ",", "num_of_staff", "from", "shop"], "query_toks_no_value": ["select", "address", ",", "num_of_staff", "from", "shop"], "question": "Find the address and staff number.", "question_toks": ["Find", "the", "address", "and", "staff", "number", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0802", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0032", "db_id": "college_1", "query": "select emp_fname from employee", "query_toks": ["select", "emp_fname", "from", "employee"], "query_toks_no_value": ["select", "emp_fname", "from", "employee"], "question": "What are the first names of all professors?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "professors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3274", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0033", "db_id": "college_1", "query": "select t1.emp_fname from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = \"history\"", "query_toks": ["select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "``", "history", "''"], "query_toks_no_value": ["select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value"], "question": "What are the first names of all history professors?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "history", "professors", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"history\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3276", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0034", "db_id": "college_2", "query": "select name from student", "query_toks": ["select", "name", "from", "student"], "query_toks_no_value": ["select", "name", "from", "student"], "question": "Find the name of students.", "question_toks": ["Find", "the", "name", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1452", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0035", "db_id": "college_2", "query": "select course_id from course", "query_toks": ["select", "course_id", "from", "course"], "query_toks_no_value": ["select", "course_id", "from", "course"], "question": "Find the id of the courses?", "question_toks": ["Find", "the", "id", "of", "the", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1418", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0036", "db_id": "college_2", "query": "select id from instructor", "query_toks": ["select", "id", "from", "instructor"], "query_toks_no_value": ["select", "id", "from", "instructor"], "question": "Find the id of instructors?", "question_toks": ["Find", "the", "id", "of", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1442", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0037", "db_id": "college_2", "query": "select title from course", "query_toks": ["select", "title", "from", "course"], "query_toks_no_value": ["select", "title", "from", "course"], "question": "Find the name of the courses?", "question_toks": ["Find", "the", "name", "of", "the", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1420", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0038", "db_id": "college_2", "query": "select title from course", "query_toks": ["select", "title", "from", "course"], "query_toks_no_value": ["select", "title", "from", "course"], "question": "Find the name of the courses?", "question_toks": ["Find", "the", "name", "of", "the", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_negation_with_any_all_0038", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0039", "db_id": "college_2", "query": "select name from instructor", "query_toks": ["select", "name", "from", "instructor"], "query_toks_no_value": ["select", "name", "from", "instructor"], "question": "Find the name of instructors?", "question_toks": ["Find", "the", "name", "of", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1440", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0040", "db_id": "college_2", "query": "select name from instructor", "query_toks": ["select", "name", "from", "instructor"], "query_toks_no_value": ["select", "name", "from", "instructor"], "question": "Find the names of instructors.", "question_toks": ["Find", "the", "names", "of", "instructors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1444", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0041", "db_id": "college_2", "query": "select name from student", "query_toks": ["select", "name", "from", "student"], "query_toks_no_value": ["select", "name", "from", "student"], "question": "What are the names of students?", "question_toks": ["What", "are", "the", "names", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1453", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0042", "db_id": "college_3", "query": "select fname from student", "query_toks": ["select", "fname", "from", "student"], "query_toks_no_value": ["select", "fname", "from", "student"], "question": "Find the first name of students.", "question_toks": ["Find", "the", "first", "name", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4707", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0043", "db_id": "college_3", "query": "select fname from student", "query_toks": ["select", "fname", "from", "student"], "query_toks_no_value": ["select", "fname", "from", "student"], "question": "What are the first names of all students?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4708", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0044", "db_id": "company_employee", "query": "select name from people", "query_toks": ["select", "name", "from", "people"], "query_toks_no_value": ["select", "name", "from", "people"], "question": "List the names of people", "question_toks": ["List", "the", "names", "of", "people"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4110", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0045", "db_id": "company_office", "query": "select name from buildings", "query_toks": ["select", "name", "from", "buildings"], "query_toks_no_value": ["select", "name", "from", "buildings"], "question": "What buildings are there? Give me the building names.", "question_toks": ["What", "buildings", "are", "there", "?", "Give", "me", "the", "building", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4576", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0046", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["select", "name", "from", "stadium"], "query_toks_no_value": ["select", "name", "from", "stadium"], "question": "Show the stadium names.", "question_toks": ["Show", "the", "stadium", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0028", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0047", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["select", "name", "from", "stadium"], "query_toks_no_value": ["select", "name", "from", "stadium"], "question": "What are the names of the stadiums?", "question_toks": ["What", "are", "the", "names", "of", "the", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0029", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0048", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["select", "name", "from", "stadium"], "query_toks_no_value": ["select", "name", "from", "stadium"], "question": "Show names for all stadiums.", "question_toks": ["Show", "names", "for", "all", "stadiums", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0031", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0049", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["select", "name", "from", "stadium"], "query_toks_no_value": ["select", "name", "from", "stadium"], "question": "What are the names of all stadiums?", "question_toks": ["What", "are", "the", "names", "of", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0032", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0050", "db_id": "county_public_safety", "query": "select name from county_public_safety", "query_toks": ["select", "name", "from", "county_public_safety"], "query_toks_no_value": ["select", "name", "from", "county_public_safety"], "question": "List the names of counties.", "question_toks": ["List", "the", "names", "of", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2564", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0051", "db_id": "county_public_safety", "query": "select name from county_public_safety", "query_toks": ["select", "name", "from", "county_public_safety"], "query_toks_no_value": ["select", "name", "from", "county_public_safety"], "question": "What are the names of counties?", "question_toks": ["What", "are", "the", "names", "of", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2565", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0052", "db_id": "cre_Doc_Control_Systems", "query": "select employee_name from employees", "query_toks": ["select", "employee_name", "from", "employees"], "query_toks_no_value": ["select", "employee_name", "from", "employees"], "question": "List the employee's name.", "question_toks": ["List", "the", "employee", "'", "s", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2128", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0053", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates", "query_toks": ["select", "template_id", "from", "templates"], "query_toks_no_value": ["select", "template_id", "from", "templates"], "question": "Show ids for all templates.", "question_toks": ["Show", "ids", "for", "all", "templates", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0315", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0054", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code from templates", "query_toks": ["select", "template_type_code", "from", "templates"], "query_toks_no_value": ["select", "template_type_code", "from", "templates"], "question": "Show all template type codes.", "question_toks": ["Show", "all", "template", "type", "codes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0345", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0055", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates", "query_toks": ["select", "template_id", "from", "templates"], "query_toks_no_value": ["select", "template_id", "from", "templates"], "question": "What are the ids for all templates?", "question_toks": ["What", "are", "the", "ids", "for", "all", "templates", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0316", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0056", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code from templates", "query_toks": ["select", "template_type_code", "from", "templates"], "query_toks_no_value": ["select", "template_type_code", "from", "templates"], "question": "What are the codes of the template types?", "question_toks": ["What", "are", "the", "codes", "of", "the", "template", "types", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0346", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0057", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees", "query_toks": ["select", "employee_id", "from", "employees"], "query_toks_no_value": ["select", "employee_id", "from", "employees"], "question": "Find the employee ids.", "question_toks": ["Find", "the", "employee", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4247", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0058", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees", "query_toks": ["select", "employee_id", "from", "employees"], "query_toks_no_value": ["select", "employee_id", "from", "employees"], "question": "Show the ids of all employees.", "question_toks": ["Show", "the", "ids", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4246", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0059", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees", "query_toks": ["select", "employee_id", "from", "employees"], "query_toks_no_value": ["select", "employee_id", "from", "employees"], "question": "Give me the employee ids.", "question_toks": ["Give", "me", "the", "employee", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4241", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0060", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees", "query_toks": ["select", "employee_id", "from", "employees"], "query_toks_no_value": ["select", "employee_id", "from", "employees"], "question": "Show the ids of the employees.", "question_toks": ["Show", "the", "ids", "of", "the", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4240", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0061", "db_id": "cre_Docs_and_Epenses", "query": "select count(*) from documents", "query_toks": ["select", "count", "(*)", "from", "documents"], "query_toks_no_value": ["select", "count", "(*)", "from", "documents"], "question": "How many documents are?", "question_toks": ["How", "many", "documents", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6463", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0062", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents where document_type_code = \"cv\"", "query_toks": ["select", "document_id", "from", "documents", "where", "document_type_code", "=", "``", "cv", "''"], "query_toks_no_value": ["select", "document_id", "from", "documents", "where", "document_type_code", "=", "value"], "question": "Show ids for all documents in type CV.", "question_toks": ["Show", "ids", "for", "all", "documents", "in", "type", "CV", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"cv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6459", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0063", "db_id": "cre_Drama_Workshop_Groups", "query": "select customer_name from clients", "query_toks": ["select", "customer_name", "from", "clients"], "query_toks_no_value": ["select", "customer_name", "from", "clients"], "question": "What are the names of the clients?", "question_toks": ["What", "are", "the", "names", "of", "the", "clients", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5165", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0064", "db_id": "cre_Drama_Workshop_Groups", "query": "select distinct city_town from addresses;", "query_toks": ["select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id"], "query_toks_no_value": ["select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id"], "question": "Show all cities where at least one customer lives in.", "question_toks": ["Show", "all", "cities", "where", "at", "least", "one", "customer", "lives", "in", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 42, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5158", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0065", "db_id": "cre_Drama_Workshop_Groups", "query": "select customer_name from clients", "query_toks": ["select", "customer_name", "from", "clients"], "query_toks_no_value": ["select", "customer_name", "from", "clients"], "question": "Show the names of all the clients.", "question_toks": ["Show", "the", "names", "of", "all", "the", "clients", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5164", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0066", "db_id": "cre_Theme_park", "query": "select count(*) from visitors", "query_toks": ["select", "count", "(*)", "from", "visitors"], "query_toks_no_value": ["select", "count", "(*)", "from", "visitors"], "question": "How many visits were?", "question_toks": ["How", "many", "visits", "were", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5967", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0067", "db_id": "cre_Theme_park", "query": "select count(*) from visitors", "query_toks": ["select", "count", "(*)", "from", "visitors"], "query_toks_no_value": ["select", "count", "(*)", "from", "visitors"], "question": "Count the number of tourists.", "question_toks": ["Count", "the", "number", "of", "tourists", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5968", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0068", "db_id": "culture_company", "query": "select publisher from book_club", "query_toks": ["select", "publisher", "from", "book_club"], "query_toks_no_value": ["select", "publisher", "from", "book_club"], "question": "Show all publishers.", "question_toks": ["Show", "all", "publishers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6980", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0069", "db_id": "customer_deliveries", "query": "select state_province_county from addresses", "query_toks": ["select", "state_province_county", "from", "addresses"], "query_toks_no_value": ["select", "state_province_county", "from", "addresses"], "question": "Find all the states.", "question_toks": ["Find", "all", "the", "states", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2851", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0070", "db_id": "customers_and_invoices", "query": "select count(*) from products", "query_toks": ["select", "count", "(*)", "from", "products"], "query_toks_no_value": ["select", "count", "(*)", "from", "products"], "question": "How many products were there?", "question_toks": ["How", "many", "products", "were", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1627", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0071", "db_id": "customers_and_invoices", "query": "select product_name from products", "query_toks": ["select", "product_name", "from", "products"], "query_toks_no_value": ["select", "product_name", "from", "products"], "question": "Show all product names.", "question_toks": ["Show", "all", "product", "names", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1613", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0072", "db_id": "customers_campaigns_ecommerce", "query": "select customer_name , customer_phone from customers", "query_toks": ["select", "customer_name", ",", "customer_phone", "from", "customers"], "query_toks_no_value": ["select", "customer_name", ",", "customer_phone", "from", "customers"], "question": "Show the name and phone of the customers.", "question_toks": ["Show", "the", "name", "and", "phone", "of", "the", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4625", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0073", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers", "query_toks": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers"], "query_toks_no_value": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers"], "question": "What are the full names of customers?", "question_toks": ["What", "are", "the", "full", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0686", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0074", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers", "query_toks": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers"], "query_toks_no_value": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers"], "question": "Show the first names and last names of customers.", "question_toks": ["Show", "the", "first", "names", "and", "last", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0685", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0075", "db_id": "customers_card_transactions", "query": "select count(*) from customers", "query_toks": ["select", "count", "(*)", "from", "customers"], "query_toks_no_value": ["select", "count", "(*)", "from", "customers"], "question": "Show the number of all customers.", "question_toks": ["Show", "the", "number", "of", "all", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0683", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0076", "db_id": "decoration_competition", "query": "select name from member", "query_toks": ["select", "name", "from", "member"], "query_toks_no_value": ["select", "name", "from", "member"], "question": "List the names of members.", "question_toks": ["List", "the", "names", "of", "members", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4498", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0077", "db_id": "device", "query": "select shop_name from shop", "query_toks": ["select", "shop_name", "from", "shop"], "query_toks_no_value": ["select", "shop_name", "from", "shop"], "question": "What are the names of shops?", "question_toks": ["What", "are", "the", "names", "of", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5083", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0078", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["select", "document_name", "from", "documents"], "query_toks_no_value": ["select", "document_name", "from", "documents"], "question": "Find names of the document.", "question_toks": ["Find", "names", "of", "the", "document", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4525", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0079", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["select", "document_name", "from", "documents"], "query_toks_no_value": ["select", "document_name", "from", "documents"], "question": "Find all the name of documents.", "question_toks": ["Find", "all", "the", "name", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4519", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0080", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["select", "document_name", "from", "documents"], "query_toks_no_value": ["select", "document_name", "from", "documents"], "question": "What are the names of documents?", "question_toks": ["What", "are", "the", "names", "of", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4520", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0081", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["select", "document_name", "from", "documents"], "query_toks_no_value": ["select", "document_name", "from", "documents"], "question": "What are the names of documents?", "question_toks": ["What", "are", "the", "names", "of", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4526", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0082", "db_id": "dog_kennels", "query": "select count(*) from dogs", "query_toks": ["select", "count", "(*)", "from", "dogs"], "query_toks_no_value": ["select", "count", "(*)", "from", "dogs"], "question": "How many dogs were?", "question_toks": ["How", "many", "dogs", "were", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0978", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0083", "db_id": "dog_kennels", "query": "select count(*) from owners", "query_toks": ["select", "count", "(*)", "from", "owners"], "query_toks_no_value": ["select", "count", "(*)", "from", "owners"], "question": "How many owners are?", "question_toks": ["How", "many", "owners", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0980", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0084", "db_id": "dog_kennels", "query": "select count(*) from professionals", "query_toks": ["select", "count", "(*)", "from", "professionals"], "query_toks_no_value": ["select", "count", "(*)", "from", "professionals"], "question": "How many professionals are?", "question_toks": ["How", "many", "professionals", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0982", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0085", "db_id": "dog_kennels", "query": "select professional_id , role_code , email_address from professionals", "query_toks": ["select", "professional_id", ",", "role_code", ",", "email_address", "from", "professionals"], "query_toks_no_value": ["select", "professional_id", ",", "role_code", ",", "email_address", "from", "professionals"], "question": "List the professional's id, role and email.", "question_toks": ["List", "the", "professional", "'", "s", "id", ",", "role", "and", "email", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0928", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0086", "db_id": "dog_kennels", "query": "select count(*) from owners", "query_toks": ["select", "count", "(*)", "from", "owners"], "query_toks_no_value": ["select", "count", "(*)", "from", "owners"], "question": "Find the number of owners.", "question_toks": ["Find", "the", "number", "of", "owners", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0981", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0087", "db_id": "dog_kennels", "query": "select count(*) from dogs", "query_toks": ["select", "count", "(*)", "from", "dogs"], "query_toks_no_value": ["select", "count", "(*)", "from", "dogs"], "question": "Tell me the number of dogs .", "question_toks": ["Tell", "me", "the", "number", "of", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0979", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0088", "db_id": "dog_kennels", "query": "select count(*) from professionals", "query_toks": ["select", "count", "(*)", "from", "professionals"], "query_toks_no_value": ["select", "count", "(*)", "from", "professionals"], "question": "Find the number of professionals.", "question_toks": ["Find", "the", "number", "of", "professionals", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0983", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0089", "db_id": "dog_kennels", "query": "select professional_id , role_code , email_address from professionals", "query_toks": ["select", "professional_id", ",", "role_code", ",", "email_address", "from", "professionals"], "query_toks_no_value": ["select", "professional_id", ",", "role_code", ",", "email_address", "from", "professionals"], "question": "Give me the id, role and email of the professionals", "question_toks": ["Give", "me", "the", "id", ",", "role", "and", "email", "of", "the", "professionals"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0929", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0090", "db_id": "dorm_1", "query": "select dorm_name from dorm", "query_toks": ["select", "dorm_name", "from", "dorm"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm"], "question": "Find the name of dorms", "question_toks": ["Find", "the", "name", "of", "dorms"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5692", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0091", "db_id": "dorm_1", "query": "select dorm_name from dorm", "query_toks": ["select", "dorm_name", "from", "dorm"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm"], "question": "What are the names of all the dorms?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "dorms", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5693", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0092", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = \"tv lounge\"", "query_toks": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "``", "tv", "lounge", "''"], "query_toks_no_value": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "lounge"], "question": "What is the name of each dorm that has a TV Lounge?", "question_toks": ["What", "is", "the", "name", "of", "each", "dorm", "that", "has", "a", "TV", "Lounge", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"tv lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5705", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0093", "db_id": "dorm_1", "query": "select fname , lname from student order by age", "query_toks": ["select", "fname", ",", "lname", "from", "student", "order", "by", "age"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "order", "by", "age"], "question": "What are the first and last names of all students? Order the results by age", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "all", "students", "?", "Order", "the", "results", "by", "age"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5717", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0094", "db_id": "driving_school", "query": "select count(*) from customers", "query_toks": ["select", "count", "(*)", "from", "customers"], "query_toks_no_value": ["select", "count", "(*)", "from", "customers"], "question": "List the number of customers.", "question_toks": ["List", "the", "number", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6692", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0095", "db_id": "driving_school", "query": "select first_name from staff ", "query_toks": ["select", "first_name", "from", "staff"], "query_toks_no_value": ["select", "first_name", "from", "staff"], "question": "What is the first name of the staff?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6712", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0096", "db_id": "driving_school", "query": "select first_name from staff", "query_toks": ["select", "first_name", "from", "staff"], "query_toks_no_value": ["select", "first_name", "from", "staff"], "question": "What is the first name of all employees?", "question_toks": ["What", "is", "the", "first", "name", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6713", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0097", "db_id": "e_learning", "query": "select count(*) from students;", "query_toks": ["select", "count", "(*)", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")"], "question": "How many students are?", "question_toks": ["How", "many", "students", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3844", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0098", "db_id": "e_learning", "query": "select personal_name from students;", "query_toks": ["select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id"], "query_toks_no_value": ["select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id"], "question": "Find personal names of students.", "question_toks": ["Find", "personal", "names", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3843", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0099", "db_id": "e_learning", "query": "select count(*) from students;", "query_toks": ["select", "count", "(*)", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")"], "question": "Count the number of students.", "question_toks": ["Count", "the", "number", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3845", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0100", "db_id": "e_learning", "query": "select personal_name from students;", "query_toks": ["select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id"], "query_toks_no_value": ["select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id"], "question": "Find the personal names of students.", "question_toks": ["Find", "the", "personal", "names", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3842", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0101", "db_id": "employee_hire_evaluation", "query": "select name from employee", "query_toks": ["select", "name", "from", "employee"], "query_toks_no_value": ["select", "name", "from", "employee"], "question": "Find the names of employees.", "question_toks": ["Find", "the", "names", "of", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0281", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0102", "db_id": "employee_hire_evaluation", "query": "select name from shop", "query_toks": ["select", "name", "from", "shop"], "query_toks_no_value": ["select", "name", "from", "shop"], "question": "Find the name of the all shops.", "question_toks": ["Find", "the", "name", "of", "the", "all", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0285", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0103", "db_id": "employee_hire_evaluation", "query": "select name from employee", "query_toks": ["select", "name", "from", "employee"], "query_toks_no_value": ["select", "name", "from", "employee"], "question": "What are the names of the employees?", "question_toks": ["What", "are", "the", "names", "of", "the", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0282", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0104", "db_id": "epinions_1", "query": "select count(*) from item", "query_toks": ["select", "count", "(*)", "from", "item"], "query_toks_no_value": ["select", "count", "(*)", "from", "item"], "question": "Find the number of items.", "question_toks": ["Find", "the", "number", "of", "items", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1718", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0105", "db_id": "epinions_1", "query": "select name from useracct", "query_toks": ["select", "name", "from", "useracct"], "query_toks_no_value": ["select", "name", "from", "useracct"], "question": "Find all names of users.", "question_toks": ["Find", "all", "names", "of", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1716", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0106", "db_id": "epinions_1", "query": "select name from useracct", "query_toks": ["select", "name", "from", "useracct"], "query_toks_no_value": ["select", "name", "from", "useracct"], "question": "Find the names of users.", "question_toks": ["Find", "the", "names", "of", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_negation_with_any_all_0106", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0107", "db_id": "epinions_1", "query": "select count(*) from useracct", "query_toks": ["select", "count", "(*)", "from", "useracct"], "query_toks_no_value": ["select", "count", "(*)", "from", "useracct"], "question": "Find the number of users.", "question_toks": ["Find", "the", "number", "of", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1717", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0108", "db_id": "epinions_1", "query": "select count(*) from item", "query_toks": ["select", "count", "(*)", "from", "item"], "query_toks_no_value": ["select", "count", "(*)", "from", "item"], "question": "Find the number of items.", "question_toks": ["Find", "the", "number", "of", "items", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1697", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0109", "db_id": "epinions_1", "query": "select title from item", "query_toks": ["select", "title", "from", "item"], "query_toks_no_value": ["select", "title", "from", "item"], "question": "Find the names of the items.", "question_toks": ["Find", "the", "names", "of", "the", "items", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1715", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0110", "db_id": "farm", "query": "select official_name from city", "query_toks": ["select", "official_name", "from", "city"], "query_toks_no_value": ["select", "official_name", "from", "city"], "question": "List the official names of cities.", "question_toks": ["List", "the", "official", "names", "of", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0048", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0111", "db_id": "film_rank", "query": "select title from film", "query_toks": ["select", "title", "from", "film"], "query_toks_no_value": ["select", "title", "from", "film"], "question": "List the title of films.", "question_toks": ["List", "the", "title", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4146", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0112", "db_id": "flight_1", "query": "select eid from employee", "query_toks": ["select", "eid", "from", "employee"], "query_toks_no_value": ["select", "eid", "from", "employee"], "question": "Show ids for all employees.", "question_toks": ["Show", "ids", "for", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0421", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0113", "db_id": "flight_1", "query": "select eid from employee", "query_toks": ["select", "eid", "from", "employee"], "query_toks_no_value": ["select", "eid", "from", "employee"], "question": "What are the ids of all employees?", "question_toks": ["What", "are", "the", "ids", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0422", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0114", "db_id": "flight_1", "query": "select name from employee", "query_toks": ["select", "name", "from", "employee"], "query_toks_no_value": ["select", "name", "from", "employee"], "question": "Show names for all employees.", "question_toks": ["Show", "names", "for", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0429", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0115", "db_id": "flight_1", "query": "select name from employee", "query_toks": ["select", "name", "from", "employee"], "query_toks_no_value": ["select", "name", "from", "employee"], "question": "What are the names of all employees?", "question_toks": ["What", "are", "the", "names", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0430", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0116", "db_id": "flight_2", "query": "select airportname from airports", "query_toks": ["select", "airportname", "from", "airports"], "query_toks_no_value": ["select", "airportname", "from", "airports"], "question": "Find the name of airports.", "question_toks": ["Find", "the", "name", "of", "airports", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0257", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0117", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"cvo\"", "query_toks": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "``", "cvo", "''"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"], "question": "Find all airlines that have flights from airport 'CVO'", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "airport", "'", "CVO", "'"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0239", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0118", "db_id": "formula_1", "query": "select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"australian grand prix\"", "query_toks": ["select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "``", "australian", "grand", "prix", "''"], "query_toks_no_value": ["select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "grand", "prix"], "question": "What are the first and last names of all drivers who participated in the Australian Grand Prix?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "all", "drivers", "who", "participated", "in", "the", "Australian", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"australian grand prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2182", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0119", "db_id": "game_1", "query": "select stuid from student", "query_toks": ["select", "stuid", "from", "student"], "query_toks_no_value": ["select", "stuid", "from", "student"], "question": "Show student ids .", "question_toks": ["Show", "student", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6021", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0120", "db_id": "game_1", "query": "select stuid from student", "query_toks": ["select", "stuid", "from", "student"], "query_toks_no_value": ["select", "stuid", "from", "student"], "question": "What are the ids of all students?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6022", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0121", "db_id": "game_1", "query": "select stuid from student where sex = \"m\"", "query_toks": ["select", "stuid", "from", "student", "where", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "sex", "=", "value"], "question": "Show all male student ids.", "question_toks": ["Show", "all", "male", "student", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6027", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0122", "db_id": "game_1", "query": "select stuid from student where sex = \"m\"", "query_toks": ["select", "stuid", "from", "student", "where", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "sex", "=", "value"], "question": "What are the ids of all male students?", "question_toks": ["What", "are", "the", "ids", "of", "all", "male", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6028", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0123", "db_id": "game_1", "query": "select stuid from student", "query_toks": ["select", "stuid", "from", "student"], "query_toks_no_value": ["select", "stuid", "from", "student"], "question": "What are the ids of all students?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6036", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0124", "db_id": "gas_company", "query": "select company , main_industry from company", "query_toks": ["select", "company", ",", "main_industry", "from", "company"], "query_toks_no_value": ["select", "company", ",", "main_industry", "from", "company"], "question": "Show the company name and the main industry for all companies.", "question_toks": ["Show", "the", "company", "name", "and", "the", "main", "industry", "for", "all", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1997", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0125", "db_id": "gas_company", "query": "select headquarters from company", "query_toks": ["select", "headquarters", "from", "company"], "query_toks_no_value": ["select", "headquarters", "from", "company"], "question": "Show all headquarters.", "question_toks": ["Show", "all", "headquarters", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2021", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0126", "db_id": "gas_company", "query": "select company , main_industry from company", "query_toks": ["select", "company", ",", "main_industry", "from", "company"], "query_toks_no_value": ["select", "company", ",", "main_industry", "from", "company"], "question": "What are the companies and main industries of all companies?", "question_toks": ["What", "are", "the", "companies", "and", "main", "industries", "of", "all", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1998", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0127", "db_id": "gymnast", "query": "select distinct hometown from people", "query_toks": ["select", "distinct", "hometown", "from", "people"], "query_toks_no_value": ["select", "distinct", "hometown", "from", "people"], "question": "List the distinct hometowns.", "question_toks": ["List", "the", "distinct", "hometowns", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1768", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0128", "db_id": "hospital_1", "query": "select name from physician", "query_toks": ["select", "name", "from", "physician"], "query_toks_no_value": ["select", "name", "from", "physician"], "question": "Find the names of physicians.", "question_toks": ["Find", "the", "names", "of", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3913", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0129", "db_id": "hospital_1", "query": "select name from physician", "query_toks": ["select", "name", "from", "physician"], "query_toks_no_value": ["select", "name", "from", "physician"], "question": "List the name of physicians.", "question_toks": ["List", "the", "name", "of", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3912", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0130", "db_id": "hospital_1", "query": "select name from procedures where cost > 1000", "query_toks": ["select", "name", "from", "procedures", "where", "cost", ">", "1000"], "query_toks_no_value": ["select", "name", "from", "procedures", "where", "cost", ">", "value"], "question": "Find the names of all procedures which cost more than 1000?", "question_toks": ["Find", "the", "names", "of", "all", "procedures", "which", "cost", "more", "than", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3982", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0131", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "Return all the information for all employees.", "question_toks": ["Return", "all", "the", "information", "for", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3411", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0132", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "display all the information of all employees.", "question_toks": ["display", "all", "the", "information", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3513", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0133", "db_id": "hr_1", "query": "select first_name , last_name , salary from employees", "query_toks": ["select", "first_name", ",", "last_name", ",", "salary", "from", "employees"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", "from", "employees"], "question": "What are the full name (first and last name) and salary for all employees?", "question_toks": ["What", "are", "the", "full", "name", "(", "first", "and", "last", "name", ")", "and", "salary", "for", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3425", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0134", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "What are all the employees?", "question_toks": ["What", "are", "all", "the", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3412", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0135", "db_id": "hr_1", "query": "select first_name , last_name , hire_date from employees where department_id = ( select department_id from employees where first_name = \"clara\") ", "query_toks": ["select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "``", "clara", "\")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "value", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", "\")"], "question": "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.", "question_toks": ["display", "the", "employee", "name", "(", "first", "name", "and", "last", "name", ")", "and", "hire", "date", "for", "all", "employees", "in", "the", "same", "department", "as", "Clara", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3501", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0136", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["select", "*", "from", "employees"], "query_toks_no_value": ["select", "*", "from", "employees"], "question": "What is all the information about employees?", "question_toks": ["What", "is", "all", "the", "information", "about", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3514", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0137", "db_id": "inn_1", "query": "select count(*) from rooms", "query_toks": ["select", "count", "(*)", "from", "rooms"], "query_toks_no_value": ["select", "count", "(*)", "from", "rooms"], "question": "How many rooms are?", "question_toks": ["How", "many", "rooms", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2637", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0138", "db_id": "inn_1", "query": "select count(*) from rooms", "query_toks": ["select", "count", "(*)", "from", "rooms"], "query_toks_no_value": ["select", "count", "(*)", "from", "rooms"], "question": "Find the number of all rooms.", "question_toks": ["Find", "the", "number", "of", "all", "rooms", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2636", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0139", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers", "query_toks": ["select", "customer_details", "from", "customers"], "query_toks_no_value": ["select", "customer_details", "from", "customers"], "question": "What are the names of customers?", "question_toks": ["What", "are", "the", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1524", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0140", "db_id": "insurance_policies", "query": "select customer_details from customers", "query_toks": ["select", "customer_details", "from", "customers"], "query_toks_no_value": ["select", "customer_details", "from", "customers"], "question": "Find the details of all customers.", "question_toks": ["Find", "the", "details", "of", "all", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3893", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0141", "db_id": "insurance_policies", "query": "select customer_details from customers", "query_toks": ["select", "customer_details", "from", "customers"], "query_toks_no_value": ["select", "customer_details", "from", "customers"], "question": "List the details of the customers who do not have any policies.", "question_toks": ["List", "the", "details", "of", "the", "customers", "who", "do", "not", "have", "any", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3892", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0142", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "question": "Which customer had at least 2 policies? List the customer details and id.", "question_toks": ["Which", "customer", "had", "at", "least", "2", "policies", "?", "List", "the", "customer", "details", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3852", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0143", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "question": "Give me the the customer details and id for the customers who had two or more policies.", "question_toks": ["Give", "me", "the", "the", "customer", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "or", "more", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3853", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0144", "db_id": "journal_committee", "query": "select name from editor", "query_toks": ["select", "name", "from", "editor"], "query_toks_no_value": ["select", "name", "from", "editor"], "question": "List the names of all editors.", "question_toks": ["List", "the", "names", "of", "all", "editors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0664", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0145", "db_id": "journal_committee", "query": "select date , theme , sales from journal", "query_toks": ["select", "date", ",", "theme", ",", "sales", "from", "journal"], "query_toks_no_value": ["select", "date", ",", "theme", ",", "sales", "from", "journal"], "question": "List the date, theme and sales of the journal.", "question_toks": ["List", "the", "date", ",", "theme", "and", "sales", "of", "the", "journal", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0665", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0146", "db_id": "loan_1", "query": "select avg(credit_score) from customer", "query_toks": ["select", "avg", "(", "credit_score", ")", "from", "customer"], "query_toks_no_value": ["select", "avg", "(", "credit_score", ")", "from", "customer"], "question": "Find the average credit score of all the customers.", "question_toks": ["Find", "the", "average", "credit", "score", "of", "all", "the", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3084", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0147", "db_id": "local_govt_and_lot", "query": "select count(*) from customers", "query_toks": ["select", "count", "(*)", "from", "customers"], "query_toks_no_value": ["select", "count", "(*)", "from", "customers"], "question": "How many customers are there?", "question_toks": ["How", "many", "customers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4858", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0148", "db_id": "local_govt_in_alabama", "query": "select count(*) from events", "query_toks": ["select", "count", "(*)", "from", "events"], "query_toks_no_value": ["select", "count", "(*)", "from", "events"], "question": "How many events are there?", "question_toks": ["How", "many", "events", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2151", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0149", "db_id": "local_govt_mdm", "query": "select cmi_cross_ref_id from cmi_cross_references", "query_toks": ["select", "cmi_cross_ref_id", "from", "cmi_cross_references"], "query_toks_no_value": ["select", "cmi_cross_ref_id", "from", "cmi_cross_references"], "question": "What are all cmi cross reference id?", "question_toks": ["What", "are", "all", "cmi", "cross", "reference", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2658", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0150", "db_id": "manufacturer", "query": "select market_rate , name from furniture", "query_toks": ["select", "market_rate", ",", "name", "from", "furniture"], "query_toks_no_value": ["select", "market_rate", ",", "name", "from", "furniture"], "question": "Find the market shares and names of furnitures", "question_toks": ["Find", "the", "market", "shares", "and", "names", "of", "furnitures", "which", "no", "any", "company", "is", "producing", "in", "our", "records", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3403", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0151", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from enzyme", "query_toks": ["select", "count", "(*)", "from", "enzyme"], "query_toks_no_value": ["select", "count", "(*)", "from", "enzyme"], "question": "How many enzymes are?", "question_toks": ["How", "many", "enzymes", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0961", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0152", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from enzyme", "query_toks": ["select", "count", "(*)", "from", "enzyme"], "query_toks_no_value": ["select", "count", "(*)", "from", "enzyme"], "question": "What is the count of all enzymes?", "question_toks": ["What", "is", "the", "count", "of", "all", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0962", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0153", "db_id": "mountain_photos", "query": "select count(*) from camera_lens", "query_toks": ["select", "count", "(*)", "from", "camera_lens"], "query_toks_no_value": ["select", "count", "(*)", "from", "camera_lens"], "question": "How many camera lenses are?", "question_toks": ["How", "many", "camera", "lenses", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3722", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0154", "db_id": "movie_1", "query": "select mid , avg(stars) from rating group by mid", "query_toks": ["select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "group", "by", "mid"], "query_toks_no_value": ["select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "group", "by", "mid"], "question": "Find the average rating star for each movie id.", "question_toks": ["Find", "the", "average", "rating", "star", "for", "each", "movie", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2514", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0155", "db_id": "movie_1", "query": "select mid , avg(stars) from rating group by mid", "query_toks": ["select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "group", "by", "mid"], "query_toks_no_value": ["select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "group", "by", "mid"], "question": "What is the average rating for each movie id?", "question_toks": ["What", "is", "the", "average", "rating", "for", "each", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2515", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0156", "db_id": "movie_1", "query": "select title from movie where mid not in (select mid from rating)", "query_toks": ["select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")"], "question": "Find the titles of all movies that have no ratings.", "question_toks": ["Find", "the", "titles", "of", "all", "movies", "that", "have", "no", "ratings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2458", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0157", "db_id": "movie_1", "query": "select title from movie where mid not in (select mid from rating)", "query_toks": ["select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")"], "question": "What are the titles of all movies that have not been rated?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "have", "not", "been", "rated", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2459", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0158", "db_id": "movie_1", "query": "select distinct name from reviewer", "query_toks": ["select", "distinct", "name", "from", "reviewer"], "query_toks_no_value": ["select", "distinct", "name", "from", "reviewer"], "question": "What are the different names of all reviewers?", "question_toks": ["What", "are", "the", "different", "names", "of", "all", "reviewers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2461", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0159", "db_id": "movie_1", "query": "select distinct title from movie", "query_toks": ["select", "distinct", "title", "from", "movie"], "query_toks_no_value": ["select", "distinct", "title", "from", "movie"], "question": "Find the titles of all movies.", "question_toks": ["Find", "the", "titles", "of", "all", "movies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2484", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0160", "db_id": "movie_1", "query": "select distinct title from movie", "query_toks": ["select", "distinct", "title", "from", "movie"], "query_toks_no_value": ["select", "distinct", "title", "from", "movie"], "question": "What are the titles of all movies?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2485", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0161", "db_id": "movie_1", "query": "select director from movie group by director having count(*) = 1", "query_toks": ["select", "director", "from", "movie", "group", "by", "director", "having", "count", "(*)", "=", "1"], "query_toks_no_value": ["select", "director", "from", "movie", "group", "by", "director", "having", "count", "(*)", "=", "1"], "question": "What are the names of all directors who have made one movie?", "question_toks": ["What", "are", "the", "names", "of", "all", "directors", "who", "have", "made", "one", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2493", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0162", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by director", "query_toks": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "director"], "question": "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating.", "question_toks": ["For", "each", "director", ",", "return", "the", "director", "'", "s", "name", "together", "with", "the", "title", "of", "the", "movie", "they", "directed", "that", "received", "the", "highest", "rating", "among", "all", "of", "their", "movies", ",", "and", "the", "value", "of", "that", "rating", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2502", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0163", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by director", "query_toks": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "director"], "question": "For each director, what are the titles and ratings for all the movies they reviewed?", "question_toks": ["For", "each", "director", ",", "what", "are", "the", "titles", "and", "ratings", "for", "all", "the", "movies", "they", "reviewed", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2503", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0164", "db_id": "movie_1", "query": "select mid from movie;", "query_toks": ["select", "mid", "from", "rating"], "query_toks_no_value": ["select", "mid", "from", "rating"], "question": "What are the ids of all moviest?", "question_toks": ["What", "are", "the", "ids", "of", "all", "moviest", "hat", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2517", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0165", "db_id": "movie_1", "query": "select rid from reviewer;", "query_toks": ["select", "rid", "from", "rating"], "query_toks_no_value": ["select", "rid", "from", "rating"], "question": "What are the ids of all reviewers?", "question_toks": ["What", "are", "the", "ids", "of", "all", "reviewers", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2521", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0166", "db_id": "museum_visit", "query": "select count(*) from visitor", "query_toks": ["select", "count", "(*)", "from", "visitor"], "query_toks_no_value": ["select", "count", "(*)", "from", "visitor"], "question": "Find the number of all visitors.", "question_toks": ["Find", "the", "number", "of", "all", "visitors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0427", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0167", "db_id": "music_2", "query": "select distinct title from songs", "query_toks": ["select", "distinct", "title", "from", "songs"], "query_toks_no_value": ["select", "distinct", "title", "from", "songs"], "question": "What are the different names of all songs?", "question_toks": ["What", "are", "the", "different", "names", "of", "all", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5253", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0168", "db_id": "music_4", "query": "select famous_title from artist", "query_toks": ["select", "famous_title", "from", "artist"], "query_toks_no_value": ["select", "famous_title", "from", "artist"], "question": "Find the famous titles of artists.", "question_toks": ["Find", "the", "famous", "titles", "of", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6189", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0169", "db_id": "music_4", "query": "select famous_title from artist", "query_toks": ["select", "famous_title", "from", "artist"], "query_toks_no_value": ["select", "famous_title", "from", "artist"], "question": "What are the famous titles of artists?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6190", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0170", "db_id": "network_1", "query": "select id from highschooler", "query_toks": ["select", "id", "from", "highschooler"], "query_toks_no_value": ["select", "id", "from", "highschooler"], "question": "Show ids of all students.", "question_toks": ["Show", "ids", "of", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0894", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0171", "db_id": "network_1", "query": "select min(grade) from highschooler", "query_toks": ["select", "min", "(", "grade", ")", "from", "highschooler"], "query_toks_no_value": ["select", "min", "(", "grade", ")", "from", "highschooler"], "question": "What is the lowest grade of students?", "question_toks": ["What", "is", "the", "lowest", "grade", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0917", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0172", "db_id": "network_1", "query": "select name from highschooler", "query_toks": ["select", "name", "from", "highschooler"], "query_toks_no_value": ["select", "name", "from", "highschooler"], "question": "Show names of all high school students.", "question_toks": ["Show", "names", "of", "all", "high", "school", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0896", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0173", "db_id": "network_2", "query": "select name from person", "query_toks": ["select", "name", "from", "person"], "query_toks_no_value": ["select", "name", "from", "person"], "question": "What are the names of all people?", "question_toks": ["What", "are", "the", "names", "of", "all", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4477", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0174", "db_id": "news_report", "query": "select name from journalist", "query_toks": ["select", "name", "from", "journalist"], "query_toks_no_value": ["select", "name", "from", "journalist"], "question": "List the names of journalists.", "question_toks": ["List", "the", "names", "of", "journalists", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2816", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0175", "db_id": "orchestra", "query": "select orchestra from orchestra", "query_toks": ["select", "orchestra", "from", "orchestra"], "query_toks_no_value": ["select", "orchestra", "from", "orchestra"], "question": "What are the orchestras?", "question_toks": ["What", "are", "the", "orchestras", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0855", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0176", "db_id": "party_host", "query": "select name from host", "query_toks": ["select", "name", "from", "host"], "query_toks_no_value": ["select", "name", "from", "host"], "question": "What are the names of hosts?", "question_toks": ["What", "are", "the", "names", "of", "hosts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2689", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0177", "db_id": "party_host", "query": "select name from host", "query_toks": ["select", "name", "from", "host"], "query_toks_no_value": ["select", "name", "from", "host"], "question": "List the names of hosts.", "question_toks": ["List", "the", "names", "of", "hosts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2688", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0178", "db_id": "party_people", "query": "select party_name from party", "query_toks": ["select", "party_name", "from", "party"], "query_toks_no_value": ["select", "party_name", "from", "party"], "question": "Show names of parties.", "question_toks": ["Show", "names", "of", "parties", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2063", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0179", "db_id": "party_people", "query": "select member_name from member", "query_toks": ["select", "member_name", "from", "member"], "query_toks_no_value": ["select", "member_name", "from", "member"], "question": "Show all member names.", "question_toks": ["Show", "all", "member", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2073", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0180", "db_id": "party_people", "query": "select member_name from member", "query_toks": ["select", "member_name", "from", "member"], "query_toks_no_value": ["select", "member_name", "from", "member"], "question": "What are the names of members?", "question_toks": ["What", "are", "the", "names", "of", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2074", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0181", "db_id": "party_people", "query": "select minister from party", "query_toks": ["select", "minister", "from", "party"], "query_toks_no_value": ["select", "minister", "from", "party"], "question": "Show all ministers.", "question_toks": ["Show", "all", "ministers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2049", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0182", "db_id": "performance_attendance", "query": "select name from member", "query_toks": ["select", "name", "from", "member"], "query_toks_no_value": ["select", "name", "from", "member"], "question": "List the names of members.", "question_toks": ["List", "the", "names", "of", "members", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1321", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0183", "db_id": "pets_1", "query": "select avg(age) from student", "query_toks": ["select", "avg", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student"], "question": "Find the average age of students.", "question_toks": ["Find", "the", "average", "age", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0085", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0184", "db_id": "pets_1", "query": "select avg(age) from student", "query_toks": ["select", "avg", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student"], "question": "What is the average age for all students", "question_toks": ["What", "is", "the", "average", "age", "for", "all", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0086", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0185", "db_id": "phone_1", "query": "select model_name from chip_model", "query_toks": ["select", "model_name", "from", "chip_model"], "query_toks_no_value": ["select", "model_name", "from", "chip_model"], "question": "Find the names of the chip models.", "question_toks": ["Find", "the", "names", "of", "the", "chip", "models", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1050", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0186", "db_id": "phone_1", "query": "select avg(ram_mib) from chip_model", "query_toks": ["select", "avg", "(", "ram_mib", ")", "from", "chip_model"], "query_toks_no_value": ["select", "avg", "(", "ram_mib", ")", "from", "chip_model"], "question": "Find the average ram mib size of the chip models.", "question_toks": ["Find", "the", "average", "ram", "mib", "size", "of", "the", "chip", "models", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1049", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0187", "db_id": "phone_market", "query": "select name from phone", "query_toks": ["select", "name", "from", "phone"], "query_toks_no_value": ["select", "name", "from", "phone"], "question": "List the names of phones.", "question_toks": ["List", "the", "names", "of", "phones", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1992", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0188", "db_id": "pilot_record", "query": "select pilot_name from pilot", "query_toks": ["select", "pilot_name", "from", "pilot"], "query_toks_no_value": ["select", "pilot_name", "from", "pilot"], "question": "List the names of pilots.", "question_toks": ["List", "the", "names", "of", "pilots", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2097", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0189", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors", "query_toks": ["select", "count", "(*)", "from", "ref_colors"], "query_toks_no_value": ["select", "count", "(*)", "from", "ref_colors"], "question": "How many colors are?", "question_toks": ["How", "many", "colors", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5600", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0190", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors", "query_toks": ["select", "count", "(*)", "from", "ref_colors"], "query_toks_no_value": ["select", "count", "(*)", "from", "ref_colors"], "question": "Count the number of colors.", "question_toks": ["Count", "the", "number", "of", "colors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5601", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0191", "db_id": "products_gen_characteristics", "query": "select characteristic_name , other_characteristic_details , characteristic_data_type from characteristics", "query_toks": ["select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics"], "query_toks_no_value": ["select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics"], "question": "Give the names, details, and data types of characteristics.", "question_toks": ["Give", "the", "names", ",", "details", ",", "and", "data", "types", "of", "characteristics", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5597", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0192", "db_id": "products_gen_characteristics", "query": "select characteristic_name , other_characteristic_details , characteristic_data_type from characteristics", "query_toks": ["select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics"], "query_toks_no_value": ["select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics"], "question": "What are the names, details and data types of the characteristics?", "question_toks": ["What", "are", "the", "names", ",", "details", "and", "data", "types", "of", "the", "characteristics", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5596", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0193", "db_id": "protein_institute", "query": "select name from building", "query_toks": ["select", "name", "from", "building"], "query_toks_no_value": ["select", "name", "from", "building"], "question": "Show the name of buildings.", "question_toks": ["Show", "the", "name", "of", "buildings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1920", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0194", "db_id": "race_track", "query": "select name from track", "query_toks": ["select", "name", "from", "track"], "query_toks_no_value": ["select", "name", "from", "track"], "question": "Return the names of tracks.", "question_toks": ["Return", "the", "names", "of", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0776", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0195", "db_id": "race_track", "query": "select name from track", "query_toks": ["select", "name", "from", "track"], "query_toks_no_value": ["select", "name", "from", "track"], "question": "Show all track names.", "question_toks": ["Show", "all", "track", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0775", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0196", "db_id": "railway", "query": "select objectnumber from railway", "query_toks": ["select", "objectnumber", "from", "railway"], "query_toks_no_value": ["select", "objectnumber", "from", "railway"], "question": "List the object number of railways.", "question_toks": ["List", "the", "object", "number", "of", "railways", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5648", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0197", "db_id": "restaurant_1", "query": "select fname , lname from student where age > 18 and sex = \"f\"", "query_toks": ["select", "fname", ",", "lname", "from", "student", "where", "age", ">", "18", "and", "sex", "=", "``", "f", "''"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "age", ">", "value", "and", "sex", "=", "value"], "question": "List all female students age is older than 18. List students' first name and last name.", "question_toks": ["List", "all", "female", "students", "age", "is", "older", "than", "18", ".", "List", "students", "'", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 18.0, null], "and", [false, 2, [0, [0, 5, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2835", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0198", "db_id": "sakila_1", "query": "select first_name from customer", "query_toks": ["select", "first_name", "from", "customer"], "query_toks_no_value": ["select", "first_name", "from", "customer"], "question": "What are the first names of customers?", "question_toks": ["What", "are", "the", "first", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3004", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0199", "db_id": "sakila_1", "query": "select title from film where length > 100 or rating = \"pg\"", "query_toks": ["select", "title", "from", "film", "where", "length", ">", "100", "or", "rating", "=", "``", "pg", "''"], "query_toks_no_value": ["select", "title", "from", "film", "where", "length", ">", "value", "or", "rating", "=", "value"], "question": "Find all the films longer than 100 minutes, or rated PG. List the titles.", "question_toks": ["Find", "all", "the", "films", "longer", "than", "100", "minutes", ",", "or", "rated", "PG", ".", "List", "the", "titles", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 3, [0, [0, 40, false], null], 100.0, null], "or", [false, 2, [0, [0, 42, false], null], "\"pg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2992", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0200", "db_id": "school_bus", "query": "select home_city from driver", "query_toks": ["select", "home_city", "from", "driver"], "query_toks_no_value": ["select", "home_city", "from", "driver"], "question": "Show all home cities.", "question_toks": ["Show", "all", "home", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6356", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0201", "db_id": "school_finance", "query": "select school_name from school", "query_toks": ["select", "school_name", "from", "school"], "query_toks_no_value": ["select", "school_name", "from", "school"], "question": "List the names of the schools.", "question_toks": ["List", "the", "names", "of", "the", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1895", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0202", "db_id": "school_finance", "query": "select donator_name from endowment", "query_toks": ["select", "donator_name", "from", "endowment"], "query_toks_no_value": ["select", "donator_name", "from", "endowment"], "question": "Show the names of all the donors.", "question_toks": ["Show", "the", "names", "of", "all", "the", "donors", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1898", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0203", "db_id": "school_player", "query": "select location from school", "query_toks": ["select", "location", "from", "school"], "query_toks_no_value": ["select", "location", "from", "school"], "question": "List the locations of all schools.", "question_toks": ["List", "the", "locations", "of", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4892", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0204", "db_id": "school_player", "query": "select school, enrollment from school;", "query_toks": ["select", "enrollment", "from", "school"], "query_toks_no_value": ["select", "enrollment", "from", "school"], "question": "List the enrollment for each school.", "question_toks": ["List", "the", "enrollment", "for", "each", "school", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4867", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0205", "db_id": "scientist_1", "query": "select count(*) from scientists", "query_toks": ["select", "count", "(*)", "from", "scientists"], "query_toks_no_value": ["select", "count", "(*)", "from", "scientists"], "question": "How many scientists are?", "question_toks": ["How", "many", "scientists", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6510", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0206", "db_id": "scientist_1", "query": "select name from scientists", "query_toks": ["select", "name", "from", "scientists"], "query_toks_no_value": ["select", "name", "from", "scientists"], "question": "Find the name of scientists.", "question_toks": ["Find", "the", "name", "of", "scientists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6507", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0207", "db_id": "scientist_1", "query": "select count(*) from scientists", "query_toks": ["select", "count", "(*)", "from", "scientists"], "query_toks_no_value": ["select", "count", "(*)", "from", "scientists"], "question": "Find the number of scientists.", "question_toks": ["Find", "the", "number", "of", "scientists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6509", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0208", "db_id": "ship_1", "query": "select name , flag from ship", "query_toks": ["select", "name", ",", "flag", "from", "ship"], "query_toks_no_value": ["select", "name", ",", "flag", "from", "ship"], "question": "Find the name and flag of ships.", "question_toks": ["Find", "the", "name", "and", "flag", "of", "ships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6264", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0209", "db_id": "ship_1", "query": "select name , class from ship", "query_toks": ["select", "name", ",", "class", "from", "ship"], "query_toks_no_value": ["select", "name", ",", "class", "from", "ship"], "question": "what are the names and classes of ships?", "question_toks": ["what", "are", "the", "names", "and", "classes", "of", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6260", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0210", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["select", "name", "from", "ship"], "query_toks_no_value": ["select", "name", "from", "ship"], "question": "List the name of ships", "question_toks": ["List", "the", "name", "of", "ships"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4024", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0211", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["select", "name", "from", "ship"], "query_toks_no_value": ["select", "name", "from", "ship"], "question": "What are the names of the ships?", "question_toks": ["What", "are", "the", "names", "of", "the", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4025", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0212", "db_id": "shop_membership", "query": "select name from member", "query_toks": ["select", "name", "from", "member"], "query_toks_no_value": ["select", "name", "from", "member"], "question": "Show member names.", "question_toks": ["Show", "member", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5424", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0213", "db_id": "shop_membership", "query": "select city from branch", "query_toks": ["select", "city", "from", "branch"], "query_toks_no_value": ["select", "city", "from", "branch"], "question": "What are the cities?", "question_toks": ["What", "are", "the", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5435", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0214", "db_id": "shop_membership", "query": "select name , city from branch", "query_toks": ["select", "name", ",", "city", "from", "branch"], "query_toks_no_value": ["select", "name", ",", "city", "from", "branch"], "question": "List the branch names and cities.", "question_toks": ["List", "the", "branch", "names", "and", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5426", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0215", "db_id": "shop_membership", "query": "select name , city from branch", "query_toks": ["select", "name", ",", "city", "from", "branch"], "query_toks_no_value": ["select", "name", ",", "city", "from", "branch"], "question": "What are the names and cities of the branches?", "question_toks": ["What", "are", "the", "names", "and", "cities", "of", "the", "branches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5427", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0216", "db_id": "shop_membership", "query": "select name from member", "query_toks": ["select", "name", "from", "member"], "query_toks_no_value": ["select", "name", "from", "member"], "question": "What are the names of the members?", "question_toks": ["What", "are", "the", "names", "of", "the", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5425", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0217", "db_id": "shop_membership", "query": "select city from branch", "query_toks": ["select", "city", "from", "branch"], "query_toks_no_value": ["select", "city", "from", "branch"], "question": "Show all cities .", "question_toks": ["Show", "all", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5434", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0218", "db_id": "singer", "query": "select name from singer", "query_toks": ["select", "name", "from", "singer"], "query_toks_no_value": ["select", "name", "from", "singer"], "question": "List the name of singers.", "question_toks": ["List", "the", "name", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1026", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0219", "db_id": "singer", "query": "select name from singer", "query_toks": ["select", "name", "from", "singer"], "query_toks_no_value": ["select", "name", "from", "singer"], "question": "What is the sname of every sing?", "question_toks": ["What", "is", "the", "sname", "of", "every", "sing", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1027", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0220", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid", "query_toks": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid"], "question": "Find the total savings balance of all accounts.", "question_toks": ["Find", "the", "total", "savings", "balance", "of", "all", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1776", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0221", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["select", "sum", "(", "enr", ")", "from", "college"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college"], "question": "What is the total number of students?", "question_toks": ["What", "is", "the", "total", "number", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5045", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0222", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["select", "sum", "(", "enr", ")", "from", "college"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college"], "question": "What is the total number of enrollment of schools?", "question_toks": ["What", "is", "the", "total", "number", "of", "enrollment", "of", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5044", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0223", "db_id": "soccer_2", "query": "select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = \"mid\" ", "query_toks": ["select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "``", "mid", "''"], "query_toks_no_value": ["select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value"], "question": "What are the names of all the states with college students playing in the mid position?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5035", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0224", "db_id": "solvency_ii", "query": "select product_name from products", "query_toks": ["select", "product_name", "from", "products"], "query_toks_no_value": ["select", "product_name", "from", "products"], "question": "List the names of products.", "question_toks": ["List", "the", "names", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4597", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0225", "db_id": "sports_competition", "query": "select name from club", "query_toks": ["select", "name", "from", "club"], "query_toks_no_value": ["select", "name", "from", "club"], "question": "List the names of clubs.", "question_toks": ["List", "the", "names", "of", "clubs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3371", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0226", "db_id": "sports_competition", "query": "select name from club", "query_toks": ["select", "name", "from", "club"], "query_toks_no_value": ["select", "name", "from", "club"], "question": "What are the names of all clubs?", "question_toks": ["What", "are", "the", "names", "of", "all", "clubs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3372", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0227", "db_id": "sports_competition", "query": "select country from competition", "query_toks": ["select", "country", "from", "competition"], "query_toks_no_value": ["select", "country", "from", "competition"], "question": "Find all the countries.", "question_toks": ["Find", "all", "the", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3387", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0228", "db_id": "sports_competition", "query": "select country from competition", "query_toks": ["select", "country", "from", "competition"], "query_toks_no_value": ["select", "country", "from", "competition"], "question": "What are the countries that have ever participated in any competitions?", "question_toks": ["What", "are", "the", "countries", "that", "have", "ever", "participated", "in", "any", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3388", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0229", "db_id": "sports_competition", "query": "select distinct year from competition", "query_toks": ["select", "distinct", "year", "from", "competition"], "query_toks_no_value": ["select", "distinct", "year", "from", "competition"], "question": "What are the different years for all competitions?", "question_toks": ["What", "are", "the", "different", "years", "for", "all", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3346", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0230", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = \"movies\" ", "query_toks": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "``", "movies", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of all tracks that are on the Movies playlist?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "the", "Movies", "playlist", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0644", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0231", "db_id": "store_product", "query": "select product from product", "query_toks": ["select", "product", "from", "product"], "query_toks_no_value": ["select", "product", "from", "product"], "question": "What are the names of all products?", "question_toks": ["What", "are", "the", "names", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4939", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0232", "db_id": "storm_record", "query": "select name from storm", "query_toks": ["select", "name", "from", "storm"], "query_toks_no_value": ["select", "name", "from", "storm"], "question": "What are the names of storms?", "question_toks": ["What", "are", "the", "names", "of", "storms", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2719", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0233", "db_id": "storm_record", "query": "select region_name from region", "query_toks": ["select", "region_name", "from", "region"], "query_toks_no_value": ["select", "region_name", "from", "region"], "question": "Show names for all regions.", "question_toks": ["Show", "names", "for", "all", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2696", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0234", "db_id": "storm_record", "query": "select region_name from region", "query_toks": ["select", "region_name", "from", "region"], "query_toks_no_value": ["select", "region_name", "from", "region"], "question": "Return the names of all regions.", "question_toks": ["Return", "the", "names", "of", "all", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2697", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0235", "db_id": "storm_record", "query": "select name from storm", "query_toks": ["select", "name", "from", "storm"], "query_toks_no_value": ["select", "name", "from", "storm"], "question": "Show all storm names.", "question_toks": ["Show", "all", "storm", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2722", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0236", "db_id": "student_1", "query": "select distinct t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 1", "query_toks": ["select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "1"], "query_toks_no_value": ["select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value"], "question": "Find all first-grade students. Report their first and last names.", "question_toks": ["Find", "all", "first", "-", "grade", "students", ".", "Report", "their", "first", "and", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4076", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0237", "db_id": "student_assessment", "query": "select * from student_course_registrations", "query_toks": ["select", "*", "from", "student_course_registrations"], "query_toks_no_value": ["select", "*", "from", "student_course_registrations"], "question": "What are all details of the students who registered?", "question_toks": ["What", "are", "all", "details", "of", "the", "students", "who", "registered", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0104", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0238", "db_id": "student_assessment", "query": "select * from student_course_registrations", "query_toks": ["select", "*", "from", "student_course_registrations"], "query_toks_no_value": ["select", "*", "from", "student_course_registrations"], "question": "What are all info of students who registered any courses?", "question_toks": ["What", "are", "all", "info", "of", "students", "who", "registered", "any", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0103", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0239", "db_id": "student_transcripts_tracking", "query": "select semester_name from semesters", "query_toks": ["select", "semester_name", "from", "semesters"], "query_toks_no_value": ["select", "semester_name", "from", "semesters"], "question": "Which semesters do we have? List the semester name.", "question_toks": ["Which", "semesters", "do", "we", "have", "?", "List", "the", "semester", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0543", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0240", "db_id": "student_transcripts_tracking", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the last name of the students who live in North Carolina?", "question_toks": ["What", "are", "the", "last", "name", "of", "the", "students", "who", "live", "in", "North", "Carolina", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"northcarolina\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0550", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0241", "db_id": "student_transcripts_tracking", "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\" ", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the last name of the students who currently live in the state of North Carolina.", "question_toks": ["Find", "the", "last", "name", "of", "the", "students", "who", "currently", "live", "in", "the", "state", "of", "North", "Carolina", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"northcarolina\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0549", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0242", "db_id": "swimming", "query": "select name from stadium", "query_toks": ["select", "name", "from", "stadium"], "query_toks_no_value": ["select", "name", "from", "stadium"], "question": "Find the names of stadiums.", "question_toks": ["Find", "the", "names", "of", "stadiums", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5622", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0243", "db_id": "theme_gallery", "query": "select name from artist", "query_toks": ["select", "name", "from", "artist"], "query_toks_no_value": ["select", "name", "from", "artist"], "question": "Show names for artists.", "question_toks": ["Show", "names", "for", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1671", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0244", "db_id": "theme_gallery", "query": "select name from artist", "query_toks": ["select", "name", "from", "artist"], "query_toks_no_value": ["select", "name", "from", "artist"], "question": "What are the names of artists?", "question_toks": ["What", "are", "the", "names", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1672", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0245", "db_id": "theme_gallery", "query": "select name , year_join from artist", "query_toks": ["select", "name", ",", "year_join", "from", "artist"], "query_toks_no_value": ["select", "name", ",", "year_join", "from", "artist"], "question": "Show all artist names and the year joined.", "question_toks": ["Show", "all", "artist", "names", "and", "the", "year", "joined", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1655", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0246", "db_id": "theme_gallery", "query": "select name from artist ", "query_toks": ["select", "name", "from", "artist"], "query_toks_no_value": ["select", "name", "from", "artist"], "question": "Show all artist names.", "question_toks": ["Show", "all", "artist", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1681", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0247", "db_id": "tracking_grants_for_research", "query": "select project_details from projects", "query_toks": ["select", "project_details", "from", "projects"], "query_toks_no_value": ["select", "project_details", "from", "projects"], "question": "What are the details for all projects?", "question_toks": ["What", "are", "the", "details", "for", "all", "projects", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4339", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0248", "db_id": "tracking_grants_for_research", "query": "select project_details from projects", "query_toks": ["select", "project_details", "from", "projects"], "query_toks_no_value": ["select", "project_details", "from", "projects"], "question": "List the project details of the projects.", "question_toks": ["List", "the", "project", "details", "of", "the", "projects", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4338", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0249", "db_id": "tracking_share_transactions", "query": "select lot_details from lots", "query_toks": ["select", "lot_details", "from", "lots"], "query_toks_no_value": ["select", "lot_details", "from", "lots"], "question": "What are the details of the lots?", "question_toks": ["What", "are", "the", "details", "of", "the", "lots", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5884", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0250", "db_id": "train_station", "query": "select name from station", "query_toks": ["select", "name", "from", "station"], "query_toks_no_value": ["select", "name", "from", "station"], "question": "Show station names.", "question_toks": ["Show", "station", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6618", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0251", "db_id": "train_station", "query": "select t2.name from train_station as t1 join train as t2 on t1.train_id = t2.train_id", "query_toks": ["select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "train_id", "=", "t2", ".", "train_id"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "train_id", "=", "t2", ".", "train_id"], "question": "Find the names of the trains.", "question_toks": ["Find", "the", "names", "of", "the", "trains", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6620", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0252", "db_id": "train_station", "query": "select name , total_passengers from station", "query_toks": ["select", "name", ",", "total_passengers", "from", "station"], "query_toks_no_value": ["select", "name", ",", "total_passengers", "from", "station"], "question": "Show the names and total passengers for all train stations.", "question_toks": ["Show", "the", "names", "and", "total", "passengers", "for", "all", "train", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6602", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0253", "db_id": "train_station", "query": "select location from station", "query_toks": ["select", "location", "from", "station"], "query_toks_no_value": ["select", "location", "from", "station"], "question": "Show all locations.", "question_toks": ["Show", "all", "locations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6607", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0254", "db_id": "tvshow", "query": "select id from tv_channel", "query_toks": ["select", "id", "from", "tv_channel"], "query_toks_no_value": ["select", "id", "from", "tv_channel"], "question": "find the id of tv channels.", "question_toks": ["find", "the", "id", "of", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0643", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0255", "db_id": "tvshow", "query": "select country from tv_channel", "query_toks": ["select", "country", "from", "tv_channel"], "query_toks_no_value": ["select", "country", "from", "tv_channel"], "question": "which countries h]ave tv channels?", "question_toks": ["which", "countries", "'", "tv", "channels", "are", "playing", "any", "cartoon", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0635", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0256", "db_id": "tvshow", "query": "select id from tv_channel", "query_toks": ["select", "id", "from", "tv_channel"], "query_toks_no_value": ["select", "id", "from", "tv_channel"], "question": "What are the ids of the all TV channels?", "question_toks": ["What", "are", "the", "ids", "of", "the", "all", "TV", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0644", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0257", "db_id": "tvshow", "query": "select package_option from tv_channel", "query_toks": ["select", "package_option", "from", "tv_channel"], "query_toks_no_value": ["select", "package_option", "from", "tv_channel"], "question": "find the package option of the tv channel.", "question_toks": ["find", "the", "package", "option", "of", "the", "tv", "channel", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0645", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0258", "db_id": "tvshow", "query": "select package_option from tv_channel", "query_toks": ["select", "package_option", "from", "tv_channel"], "query_toks_no_value": ["select", "package_option", "from", "tv_channel"], "question": "What are the package options of all tv channels?", "question_toks": ["What", "are", "the", "package", "options", "of", "all", "tv", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0646", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0259", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel", "query_toks": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel"], "query_toks_no_value": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel"], "question": "What is the pixel aspect ratio and country of origin for all TV channels?", "question_toks": ["What", "is", "the", "pixel", "aspect", "ratio", "and", "country", "of", "origin", "for", "all", "TV", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0640", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0260", "db_id": "twitter_1", "query": "select avg(followers) from user_profiles", "query_toks": ["select", "avg", "(", "followers", ")", "from", "user_profiles"], "query_toks_no_value": ["select", "avg", "(", "followers", ")", "from", "user_profiles"], "question": "Find the average number of followers for the users.", "question_toks": ["Find", "the", "average", "number", "of", "followers", "for", "the", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0298", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0261", "db_id": "voter_2", "query": "select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.vice_president_vote", "query_toks": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote"], "question": "Find the distinct first names of all the students who have vice president votes.", "question_toks": ["Find", "the", "distinct", "first", "names", "of", "all", "the", "students", "who", "have", "vice", "president", "votes", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5494", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0262", "db_id": "voter_2", "query": "select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = president_vote", "query_toks": ["select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote"], "question": "Find the distinct last names of all the students who have president votes.", "question_toks": ["Find", "the", "distinct", "last", "names", "of", "all", "the", "students", "who", "have", "president", "votes", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5496", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0263", "db_id": "wedding", "query": "select name , age from people where is_male = \"t\"", "query_toks": ["select", "name", ",", "age", "from", "people", "where", "is_male", "=", "``", "t", "''"], "query_toks_no_value": ["select", "name", ",", "age", "from", "people", "where", "is_male", "=", "value"], "question": "Show the name and age for all male people.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "male", "people", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1641", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0264", "db_id": "wedding", "query": "select name from church", "query_toks": ["select", "name", "from", "church"], "query_toks_no_value": ["select", "name", "from", "church"], "question": "Show all church names.", "question_toks": ["Show", "all", "church", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1642", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0265", "db_id": "workshop_paper", "query": "select author from submission", "query_toks": ["select", "author", "from", "submission"], "query_toks_no_value": ["select", "author", "from", "submission"], "question": "Which authors submit to any workshop?", "question_toks": ["Which", "authors", "submit", "to", "any", "workshop", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5843", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0266", "db_id": "workshop_paper", "query": "select author from submission", "query_toks": ["select", "author", "from", "submission"], "query_toks_no_value": ["select", "author", "from", "submission"], "question": "List the authors who have submission to any workshop.", "question_toks": ["List", "the", "authors", "who", "have", "submission", "to", "any", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5842", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "and_with_or_in_nl_0000", "db_id": "hr_1", "query": "select * from employees where first_name like \"%d%\" order by salary desc", "query_toks": ["select", "*", "from", "employees", "where", "first_name", "like", "\"%", "d", "%\"", "order", "by", "salary", "desc"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "first_name", "like", "\"%", "d", "%\"", "order", "by", "salary", "desc"], "question": "display all the information for all employees who have the letters D in their first name and also arrange the result in descending order by salary.", "question_toks": ["display", "all", "the", "information", "for", "all", "employees", "who", "have", "the", "letters", "D", "in", "their", "first", "name", "and", "also", "arrange", "the", "result", "in", "descending", "order", "by", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%d%\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0000", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0001", "db_id": "hr_1", "query": "select * from employees where first_name like \"%d%\" or first_name like \"%s%\" ", "query_toks": ["select", "*", "from", "employees", "where", "first_name", "like", "\"%", "d", "%\"", "or", "first_name", "like", "\"%", "s", "%\""], "query_toks_no_value": ["select", "*", "from", "employees", "where", "first_name", "like", "\"%", "d", "%\"", "or", "first_name", "like", "\"%", "s", "%\""], "question": "display all the information for all employees who have the letters D or S in their first name.", "question_toks": ["display", "all", "the", "information", "for", "all", "employees", "who", "have", "the", "letters", "D", "or", "S", "in", "their", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%d%\"", null], "or", [false, 9, [0, [0, 15, false], null], "\"%s%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3437", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"]}, {"id": "and_with_or_in_nl_0002", "db_id": "hr_1", "query": "select * from employees where salary between 8000 and 12000", "query_toks": ["select", "*", "from", "employees", "where", "salary", "between", "8000", "and", "12000"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "salary", "between", "8000", "and", "12000"], "question": "display all the information of employees whose salary is in the range of 8000 and 12000", "question_toks": ["display", "all", "the", "information", "of", "employees", "whose", "salary", "is", "in", "the", "range", "of", "8000", "and", "12000"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 8000.0, 12000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3423", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0003", "db_id": "movie_1", "query": "select distinct year from movie as t1 join rating as t2 on t1.mid = t2.mid where t2.stars >= 4", "query_toks": ["select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">=", "4"], "query_toks_no_value": ["select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">=", "value"], "question": "Find all years that have a movie that received a rating of 4 or 5", "question_toks": ["Find", "all", "years", "that", "have", "a", "movie", "that", "received", "a", "rating", "of", "4", "or", "5"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2452", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"]}, {"id": "and_with_or_in_nl_0004", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\"", "query_toks": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "``", "milk", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value"], "question": "Find the different first names and cities of the students who have allergy to milk.", "question_toks": ["Find", "the", "different", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "to", "milk", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0004", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0005", "db_id": "formula_1", "query": "select circuitid from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "``", "france", "''", "or", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "Find the id of circuits that belong to France or Belgium?", "question_toks": ["Find", "the", "id", "of", "circuits", "that", "belong", "to", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0005", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0006", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300", "query_toks": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "300"], "query_toks_no_value": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value"], "question": "Find the name and gender type of the dorms whose capacity is greater than 300.", "question_toks": ["Find", "the", "name", "and", "gender", "type", "of", "the", "dorms", "whose", "capacity", "is", "greater", "than", "300", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0006", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0007", "db_id": "college_1", "query": "select t1.stu_fname , t1.stu_lname from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num where t2.enroll_grade = \"a\"", "query_toks": ["select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "``", "a", "''"], "query_toks_no_value": ["select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value"], "question": "Find names of all students who took some course and got A.", "question_toks": ["Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "got", "A", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"a\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3319", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0008", "db_id": "insurance_policies", "query": "select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id having count(*) > 2 union select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id where t1.amount_claimed = ( select max(amount_claimed) from claims )", "query_toks": ["select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(*)", ">", "2", "union", "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")"], "query_toks_no_value": ["select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(*)", ">", "2", "union", "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "value", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")"], "question": "Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made.", "question_toks": ["Find", "the", "claims", "that", "led", "to", "more", "than", "two", "settlements", "or", "have", "the", "maximum", "claim", "value", ".", "For", "each", "of", "them", ",", "return", "the", "date", "the", "claim", "was", "made", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3851", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0009", "db_id": "allergy_1", "query": "select distinct t1.fname from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "``", "milk", "''", "or", "t2", ".", "allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value"], "question": "Find the different first names of the students who have allergy to milk or cat.", "question_toks": ["Find", "the", "different", "first", "names", "of", "the", "students", "who", "have", "allergy", "to", "milk", "or", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0531", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0010", "db_id": "dog_kennels", "query": "select 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", "query_toks": ["select", "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"], "query_toks_no_value": ["select", "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"], "question": "Find the cell phone of the professionals who operate two or more types of treatments.", "question_toks": ["Find", "the", "cell", "phone", "of", "the", "professionals", "who", "operate", "two", "or", "more", "types", "of", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0943", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0011", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\"", "query_toks": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value"], "question": "Find the id and location of circuits that belong to France?", "question_toks": ["Find", "the", "id", "and", "location", "of", "circuits", "that", "belong", "to", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2215", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0012", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value"], "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana", "question_toks": ["Find", "the", "id", ",", "last", "name", "and", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0012", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0013", "db_id": "dog_kennels", "query": "select cell_number from professionals where state = \"indiana\" union select 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", "query_toks": ["select", "cell_number", "from", "professionals", "where", "state", "=", "``", "indiana", "''", "union", "select", "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"], "query_toks_no_value": ["select", "cell_number", "from", "professionals", "where", "state", "=", "value", "union", "select", "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"], "question": "Find the cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.", "question_toks": ["Find", "the", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana", "or", "have", "performed", "more", "than", "two", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0923", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0014", "db_id": "coffee_shop", "query": "select name from member where membership_card = \"black\" or age < 30", "query_toks": ["select", "name", "from", "member", "where", "membership_card", "=", "``", "black", "''", "or", "age", "<", "30"], "query_toks_no_value": ["select", "name", "from", "member", "where", "membership_card", "=", "value", "or", "age", "<", "value"], "question": "Find the names of members who are under age 30 or with black membership card.", "question_toks": ["Find", "the", "names", "of", "members", "who", "are", "under", "age", "30", "or", "with", "black", "membership", "card", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"black\"", null], "or", [false, 4, [0, [0, 9, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0792", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0015", "db_id": "coffee_shop", "query": "select name , member_id from member where age < 30", "query_toks": ["select", "name", ",", "member_id", "from", "member", "where", "age", "<", "30"], "query_toks_no_value": ["select", "name", ",", "member_id", "from", "member", "where", "age", "<", "value"], "question": "Find the ids and names of members who are under age 30.", "question_toks": ["Find", "the", "ids", "and", "names", "of", "members", "who", "are", "under", "age", "30", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0015", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0016", "db_id": "game_1", "query": "select t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["select", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "``", "football", "''", "or", "t1", ".", "sportname", "=", "``", "lacrosse", "''"], "query_toks_no_value": ["select", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value", "or", "t1", ".", "sportname", "=", "value"], "question": "Find the first name of students who are playing Football or Lacrosse.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "are", "playing", "Football", "or", "Lacrosse", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6049", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0017", "db_id": "game_1", "query": "select t2.lname , t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"lacrosse\"", "query_toks": ["select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "``", "football", "''"], "query_toks_no_value": ["select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value"], "question": "Find the last and first name of students who are playing Lacrosse.", "question_toks": ["Find", "the", "last", "and", "first", "name", "of", "students", "who", "are", "playing", "Lacrosse", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0017", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0018", "db_id": "dorm_1", "query": "select lname from student where sex = \"f\" and city_code = \"bal\"", "query_toks": ["select", "lname", "from", "student", "where", "sex", "=", "``", "f", "''", "and", "city_code", "=", "``", "bal", "''"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "sex", "=", "value", "and", "city_code", "=", "value"], "question": "Find the last name of students who is either female (sex is F) and living in the city of code BAL.", "question_toks": ["Find", "the", "last", "name", "of", "students", "who", "is", "either", "female", "(", "sex", "is", "F", ")", "and", "living", "in", "the", "city", "of", "code", "BAL", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"bal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5706", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_UNION_REMOVED"]}, {"id": "and_with_or_in_nl_0019", "db_id": "network_2", "query": "select distinct t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" or t2.friend = \"alice\"", "query_toks": ["select", "distinct", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "``", "dan", "''", "or", "t2", ".", "friend", "=", "``", "alice", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value"], "question": "Find the age of the person who is a friend of Dan or Alice.", "question_toks": ["Find", "the", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "or", "Alice", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4442", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0020", "db_id": "dorm_1", "query": "select dorm_name from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["select", "dorm_name", "from", "dorm", "where", "student_capacity", ">", "300", "or", "student_capacity", "<", "100"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value"], "question": "Find the name of the dorms whose capacity is greater than 300 or less than 100.", "question_toks": ["Find", "the", "name", "of", "the", "dorms", "whose", "capacity", "is", "greater", "than", "300", "or", "less", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5698", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0021", "db_id": "flight_4", "query": "select name , city , country , elevation from airports where city = \"new york\"", "query_toks": ["select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "``", "new", "york", "''"], "query_toks_no_value": ["select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "value", "york"], "question": "Find the name, city, country, and elevation of the airports in the city of New York.", "question_toks": ["Find", "the", "name", ",", "city", ",", "country", ",", "and", "elevation", "of", "the", "airports", "in", "the", "city", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0021", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0022", "db_id": "flight_4", "query": "select elevation from airports where city = \"new york\"", "query_toks": ["select", "elevation", "from", "airports", "where", "city", "=", "``", "new", "york", "''"], "query_toks_no_value": ["select", "elevation", "from", "airports", "where", "city", "=", "value", "york"], "question": "Find the altitude (or elevation) of the airports in the city of New York.", "question_toks": ["Find", "the", "altitude", "(", "or", "elevation", ")", "of", "the", "airports", "in", "the", "city", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6805", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0023", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" ", "query_toks": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "``", "dan", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value"], "question": "Find the name and age of the person who is a friend of Dan.", "question_toks": ["Find", "the", "name", "and", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0023", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0024", "db_id": "cre_Theme_park", "query": "select name from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["select", "name", "from", "tourist_attractions", "where", "how_to_get_there", "=", "``", "bus", "''", "or", "how_to_get_there", "=", "``", "walk", "''"], "query_toks_no_value": ["select", "name", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value"], "question": "Find the names of the tourist attractions that we get to by bus or walk.", "question_toks": ["Find", "the", "names", "of", "the", "tourist", "attractions", "that", "we", "get", "to", "by", "bus", "or", "walk", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5912", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0025", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\"", "query_toks": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "``", "bus", "''"], "query_toks_no_value": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value"], "question": "Find the names and opening hours of the tourist attractions that we get to by bus.", "question_toks": ["Find", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "we", "get", "to", "by", "bus", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0025", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0026", "db_id": "college_3", "query": "select dname from department where division = \"as\" union select dname from department where division = \"en\"", "query_toks": ["select", "dname", "from", "department", "where", "division", "=", "``", "as", "''", "union", "select", "dname", "from", "department", "where", "division", "=", "``", "en", "''"], "query_toks_no_value": ["select", "dname", "from", "department", "where", "division", "=", "value", "union", "select", "dname", "from", "department", "where", "division", "=", "value"], "question": "Find the names of departments that are either in division AS or in division EN.", "question_toks": ["Find", "the", "names", "of", "departments", "that", "are", "either", "in", "division", "AS", "or", "in", "division", "EN", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"as\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"en\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4705", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0027", "db_id": "allergy_1", "query": "select count(*) from student where age > 18 and stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"animal\")", "query_toks": ["select", "count", "(*)", "from", "student", "where", "age", ">", "18", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "``", "animal", "\")"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "\")"], "question": "Find the number of students who are older than 18 and do not have allergy to animal.", "question_toks": ["Find", "the", "number", "of", "students", "who", "are", "older", "than", "18", "and", "do", "not", "have", "allergy", "to", "animal", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null], "and", [true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0533", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0028", "db_id": "dog_kennels", "query": "select 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", "query_toks": ["select", "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"], "query_toks_no_value": ["select", "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"], "question": "Find the zip code of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0941", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0029", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the owner id and zip code of the owner who spent the most money in total for dogs.", "question_toks": ["Find", "the", "owner", "id", "and", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0029", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0030", "db_id": "cre_Theme_park", "query": "select t3.visit_date from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"vincent\" or t2.tourist_details = \"vivian\"", "query_toks": ["select", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "``", "vincent", "''", "or", "t2", ".", "tourist_details", "=", "``", "vivian", "''"], "query_toks_no_value": ["select", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "or", "t2", ".", "tourist_details", "=", "value"], "question": "For each tourist attraction, return its date when the tourists named Vincent or Vivian visited there.", "question_toks": ["For", "each", "tourist", "attraction", ",", "return", "its", "date", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"vincent\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"vivian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5934", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0031", "db_id": "manufacturer", "query": "select open_year from manufacturer where num_of_shops > 10 or num_of_factories < 10", "query_toks": ["select", "open_year", "from", "manufacturer", "where", "num_of_shops", ">", "10", "or", "num_of_factories", "<", "10"], "query_toks_no_value": ["select", "open_year", "from", "manufacturer", "where", "num_of_shops", ">", "value", "or", "num_of_factories", "<", "value"], "question": "Give me the year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.", "question_toks": ["Give", "me", "the", "year", "of", "opening", "of", "the", "manufacturers", "that", "have", "either", "less", "than", "10", "factories", "or", "more", "than", "10", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 10.0, null], "or", [false, 4, [0, [0, 4, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3398", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0032", "db_id": "manufacturer", "query": "select name , open_year from manufacturer where num_of_factories < 10", "query_toks": ["select", "name", ",", "open_year", "from", "manufacturer", "where", "num_of_factories", "<", "10"], "query_toks_no_value": ["select", "name", ",", "open_year", "from", "manufacturer", "where", "num_of_factories", "<", "value"], "question": "Give me the name and year of opening of the manufacturers that have less than 10 factories.", "question_toks": ["Give", "me", "the", "name", "and", "year", "of", "opening", "of", "the", "manufacturers", "that", "have", "less", "than", "10", "factories", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0032", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0033", "db_id": "insurance_policies", "query": "select t1.customer_details from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2", "except", "select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "query_toks_no_value": ["select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2", "except", "select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "question": "Give me the the customer details who had two or more policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customer", "details", "who", "had", "two", "or", "more", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3853", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0034", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) = 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", "=", "2", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", "=", "2", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "question": "Give me the the customer details and id for the customers who had two policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customer", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0034", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0035", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600", "query_toks": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "600"], "query_toks_no_value": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value"], "question": "Give the ids and names of products with price lower than 600.", "question_toks": ["Give", "the", "ids", "and", "names", "of", "products", "with", "price", "lower", "than", "600", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0035", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0036", "db_id": "department_store", "query": "select product_id from products where product_price < 600 or product_price > 900", "query_toks": ["select", "product_id", "from", "products", "where", "product_price", "<", "600", "or", "product_price", ">", "900"], "query_toks_no_value": ["select", "product_id", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value"], "question": "Give the ids of products with price lower than 600 or higher than 900.", "question_toks": ["Give", "the", "ids", "of", "products", "with", "price", "lower", "than", "600", "or", "higher", "than", "900", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4770", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0037", "db_id": "allergy_1", "query": "select count(*) from student where age > 18 and stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["select", "count", "(*)", "from", "student", "where", "age", ">", "18", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "``", "food", "\")"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "\")"], "question": "How many students are over 18 and do not have allergy to food type ?", "question_toks": ["How", "many", "students", "are", "over", "18", "and", "do", "not", "have", "allergy", "to", "food", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null], "and", [true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0534", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0038", "db_id": "movie_1", "query": "select distinct year from movie as t1 join rating as t2 on t1.mid = t2.mid where t2.stars >= 4", "query_toks": ["select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">=", "4"], "query_toks_no_value": ["select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">=", "value"], "question": "In what years did a movie receive a 4 or 5 star rating?", "question_toks": ["In", "what", "years", "did", "a", "movie", "receive", "a", "4", "or", "5", "star", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2453", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"]}, {"id": "and_with_or_in_nl_0039", "db_id": "game_injury", "query": "select t1.season from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id where t3.injury = \"foot injury\" or t3.injury = \"knee problem\"", "query_toks": ["select", "t1", ".", "season", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "injury", "=", "``", "foot", "injury", "''", "or", "t3", ".", "injury", "=", "``", "knee", "problem", "''"], "query_toks_no_value": ["select", "t1", ".", "season", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "injury", "=", "value", "injury", "or", "t3", ".", "injury", "=", "value", "problem"], "question": "In which season did any player have an injury of 'Foot injury' or 'Knee problem'?", "question_toks": ["In", "which", "season", "did", "any", "player", "have", "an", "injury", "of", "'", "Foot", "injury", "'", "or", "'", "Knee", "problem", "'?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"foot injury\"", null], "or", [false, 2, [0, [0, 18, false], null], "\"knee problem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1284", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0040", "db_id": "game_injury", "query": "select t1.season , t2.name from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id where t3.injury = \"foot injury\"", "query_toks": ["select", "t1", ".", "season", ",", "t2", ".", "name", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "injury", "=", "``", "foot", "injury", "''"], "query_toks_no_value": ["select", "t1", ".", "season", ",", "t2", ".", "name", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "injury", "=", "value", "injury"], "question": "In which season and which stadium did any player have an injury of 'Foot injury'?", "question_toks": ["In", "which", "season", "and", "which", "stadium", "did", "any", "player", "have", "an", "injury", "of", "'", "Foot", "injury", "'?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"foot injury\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0040", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0041", "db_id": "baseball_1", "query": "select name_first from player where weight > 220 or height < 75", "query_toks": ["select", "name_first", "from", "player", "where", "weight", ">", "220", "or", "height", "<", "75"], "query_toks_no_value": ["select", "name_first", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value"], "question": "List players' first name who have weight greater than 220 or height shorter than 75.", "question_toks": ["List", "players", "'", "first", "name", "who", "have", "weight", "greater", "than", "220", "or", "height", "shorter", "than", "75", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3663", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0042", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code from documents where document_name = \"noel cv\" or document_name = \"king book\"", "query_toks": ["select", "document_type_code", "from", "documents", "where", "document_name", "=", "``", "noel", "cv", "''", "or", "document_name", "=", "``", "king", "book", "''"], "query_toks_no_value": ["select", "document_type_code", "from", "documents", "where", "document_name", "=", "value", "cv", "or", "document_name", "=", "value", "book"], "question": "List the document type code for the document with name 'Noel CV' or name 'King Book'.", "question_toks": ["List", "the", "document", "type", "code", "for", "the", "document", "with", "name", "'", "Noel", "CV", "'", "or", "name", "'", "King", "Book", "'."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"noel cv\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"king book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6401", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0043", "db_id": "phone_1", "query": "select t2.hardware_model_name from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t1.launch_year = 2002 or t1.ram_mib > 32", "query_toks": ["select", "t2", ".", "hardware_model_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "2002", "or", "t1", ".", "ram_mib", ">", "32"], "query_toks_no_value": ["select", "t2", ".", "hardware_model_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "value", "or", "t1", ".", "ram_mib", ">", "value"], "question": "List the hardware model name for all the phones that were launched in year 2002 or have RAM size greater than 32.", "question_toks": ["List", "the", "hardware", "model", "name", "for", "all", "the", "phones", "that", "were", "launched", "in", "year", "2002", "or", "have", "RAM", "size", "greater", "than", "32", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 2002.0, null], "or", [false, 3, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1029", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0044", "db_id": "phone_1", "query": "select t2.hardware_model_name , t2.company_name from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t1.launch_year = 2002", "query_toks": ["select", "t2", ".", "hardware_model_name", ",", "t2", ".", "company_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "2002"], "query_toks_no_value": ["select", "t2", ".", "hardware_model_name", ",", "t2", ".", "company_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "value"], "question": "List the hardware model name and company name for all the phones that were launched in year 2002.", "question_toks": ["List", "the", "hardware", "model", "name", "and", "company", "name", "for", "all", "the", "phones", "that", "were", "launched", "in", "year", "2002", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0044", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0045", "db_id": "school_finance", "query": "select t1.ihsaa_football_class from school as t1 join budget as t2 on t1.school_id = t2.school_id where budgeted > 6000 or year < 2003 order by t2.total_budget_percent_invested , t2.total_budget_percent_budgeted", "query_toks": ["select", "t1", ".", "ihsaa_football_class", "from", "school", "as", "t1", "join", "budget", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "budgeted", ">", "6000", "or", "year", "<", "2003", "order", "by", "t2", ".", "total_budget_percent_invested", ",", "t2", ".", "total_budget_percent_budgeted"], "query_toks_no_value": ["select", "t1", ".", "ihsaa_football_class", "from", "school", "as", "t1", "join", "budget", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "budgeted", ">", "value", "or", "year", "<", "value", "order", "by", "t2", ".", "total_budget_percent_invested", ",", "t2", ".", "total_budget_percent_budgeted"], "question": "List the IHSAA Football Class that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.", "question_toks": ["List", "the", "IHSAA", "Football", "Class", "that", "have", "more", "than", "6000", "of", "budgeted", "amount", "or", "were", "founded", "before", "2003", ",", "in", "the", "order", "of", "percent", "of", "total", "invested", "budget", "and", "total", "budgeted", "budget", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 6000.0, null], "or", [false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null], [0, [0, 12, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1909", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0046", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220", "query_toks": ["select", "name_first", ",", "name_last", "from", "player", "where", "height", "<", "75"], "query_toks_no_value": ["select", "name_first", ",", "name_last", "from", "player", "where", "height", "<", "value"], "question": "List players' first name and last name who have weight greater than 220.", "question_toks": ["List", "players", "'", "first", "name", "and", "last", "name", "who", "have", "weight", "greater", "than", "220", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0046", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0047", "db_id": "hr_1", "query": "select * from employees where salary between 8000 and 12000 and commission_pct != \"null\"", "query_toks": ["select", "*", "from", "employees", "where", "salary", "between", "8000", "and", "12000", "and", "commission_pct", "!=", "``", "null", "''"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "salary", "between", "8000", "and", "12000", "and", "commission_pct", "!=", "value"], "question": "Return all information about employees with salaries between 8000 and 12000 for which commission is not null", "question_toks": ["Return", "all", "information", "about", "employees", "with", "salaries", "between", "8000", "and", "12000", "for", "which", "commission", "is", "not", "null"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 8000.0, 12000.0], "and", [false, 7, [0, [0, 22, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3424", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0048", "db_id": "hospital_1", "query": "select t1.name , count(*) from physician as t1 join patient as t2 on t1.employeeid = t2.pcp group by t1.employeeid", "query_toks": ["select", "t1", ".", "name", ",", "count", "(*)", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "count", "(*)", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid"], "question": "Return the name of each physician and the number of patients.", "question_toks": ["Return", "the", "name", "of", "each", "physician", "and", "the", "number", "of", "patients", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0048", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0049", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Return the full name of the actor or actress who starred in the greatest number of films.", "question_toks": ["Return", "the", "full", "name", "of", "the", "actor", "or", "actress", "who", "starred", "in", "the", "greatest", "number", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2953", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0050", "db_id": "hospital_1", "query": "select name from physician", "query_toks": ["select", "name", "from", "physician"], "query_toks_no_value": ["select", "name", "from", "physician"], "question": "Return the name of each physician.", "question_toks": ["Return", "the", "name", "of", "each", "physician", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3929", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0051", "db_id": "customers_and_invoices", "query": "select t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) > 2", "query_toks": ["select", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(*)", ">", "2"], "query_toks_no_value": ["select", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(*)", ">", "2"], "question": "Return the details for orderes with two or more invoices.", "question_toks": ["Return", "the", "details", "for", "orderes", "with", "two", "or", "more", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1610", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0052", "db_id": "customers_and_invoices", "query": "select t2.order_id , t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) = 2", "query_toks": ["select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(*)", "=", "2"], "question": "Return the order ids and details for orderes with two invoices.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "orderes", "with", "two", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0052", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0053", "db_id": "culture_company", "query": "select title from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["select", "title", "from", "movie", "where", "year", "<=", "2000", "order", "by", "gross_worldwide", "desc", "limit", "1"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "<=", "value", "order", "by", "gross_worldwide", "desc", "limit", "1"], "question": "Return the title released in the year 2000 or earlier that had the highest worldwide gross.", "question_toks": ["Return", "the", "title", "released", "in", "the", "year", "2000", "or", "earlier", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6987", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0054", "db_id": "culture_company", "query": "select title , director from movie where year = 2000 order by gross_worldwide desc limit 1", "query_toks": ["select", "title", ",", "director", "from", "movie", "where", "year", "=", "2000", "order", "by", "gross_worldwide", "desc", "limit", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "where", "year", "=", "value", "order", "by", "gross_worldwide", "desc", "limit", "1"], "question": "Return the title and director of the movie released in the year 2000 that had the highest worldwide gross.", "question_toks": ["Return", "the", "title", "and", "director", "of", "the", "movie", "released", "in", "the", "year", "2000", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0054", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0055", "db_id": "manufactory_1", "query": "select name , price from products where price >= 180 order by price desc", "query_toks": ["select", "name", ",", "price", "from", "products", "where", "price", ">=", "180", "order", "by", "price", "desc"], "query_toks_no_value": ["select", "name", ",", "price", "from", "products", "where", "price", ">=", "value", "order", "by", "price", "desc"], "question": "Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order)", "question_toks": ["Select", "the", "name", "and", "price", "of", "all", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", ")"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0055", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"]}, {"id": "and_with_or_in_nl_0056", "db_id": "manufactory_1", "query": "select name from products where price >= 180 order by price desc , name asc", "query_toks": ["select", "name", "from", "products", "where", "price", ">=", "180", "order", "by", "price", "desc", ",", "name", "asc"], "query_toks_no_value": ["select", "name", "from", "products", "where", "price", ">=", "value", "order", "by", "price", "desc", ",", "name", "asc"], "question": "Select the name of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).", "question_toks": ["Select", "the", "name", "of", "all", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", "),", "and", "then", "by", "name", "(", "in", "ascending", "order", ")."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null], [0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5336", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0057", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema where openning_year = 2011", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", "=", "2011"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", "=", "value"], "question": "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011.", "question_toks": ["Show", "the", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0057", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0058", "db_id": "school_finance", "query": "select school_name from school where school_id in (select school_id from budget where year >= 2002);", "query_toks": ["select", "t2", ".", "school_name", "from", "budget", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t1", ".", "year", ">=", "2002"], "query_toks_no_value": ["select", "t2", ".", "school_name", "from", "budget", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t1", ".", "year", ">=", "value"], "question": "Show each school name in year 2002 or after.", "question_toks": ["Show", "each", "school", "name", "in", "year", "2002", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1902", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0059", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"teqnology\"", "query_toks": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value"], "question": "Show the first year and last year of parties with theme \"Teqnology\".", "question_toks": ["Show", "the", "first", "year", "and", "last", "year", "of", "parties", "with", "theme", "\"", "Teqnology", "\"."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0059", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0060", "db_id": "shop_membership", "query": "select min(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["select", "min", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "2011", "or", "city", "=", "``", "london", "''"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "Show minimum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": ["Show", "minimum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5410", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"]}, {"id": "and_with_or_in_nl_0061", "db_id": "customers_and_products_contacts", "query": "select product_type_code , product_name from products where product_price > 1000", "query_toks": ["select", "product_type_code", ",", "product_name", "from", "products", "where", "product_price", ">", "1000"], "query_toks_no_value": ["select", "product_type_code", ",", "product_name", "from", "products", "where", "product_price", ">", "value"], "question": "Show the product type and name for the products with price higher than 1000.", "question_toks": ["Show", "the", "product", "type", "and", "name", "for", "the", "products", "with", "price", "higher", "than", "1000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0061", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0062", "db_id": "customers_campaigns_ecommerce", "query": "select order_shipping_charges , customer_id from customer_orders where order_status_code = \"paid\"", "query_toks": ["select", "order_shipping_charges", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "``", "paid", "''"], "query_toks_no_value": ["select", "order_shipping_charges", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "value"], "question": "Show the shipping charge and customer id for customer orders with order status Paid.", "question_toks": ["Show", "the", "shipping", "charge", "and", "customer", "id", "for", "customer", "orders", "with", "order", "status", "Paid", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"paid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0062", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0063", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">=", "value", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Show the stadium name and capacity with most number of concerts in year 2014.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0063", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0064", "db_id": "cinema", "query": "select avg(capacity) from cinema where openning_year >= 2011", "query_toks": ["select", "avg", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">=", "2011"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">=", "value"], "question": "Show the average capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "the", "average", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1940", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"]}, {"id": "and_with_or_in_nl_0065", "db_id": "party_host", "query": "select first_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["select", "first_year", "from", "party", "where", "party_theme", "=", "``", "spring", "''", "or", "party_theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["select", "first_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value"], "question": "Show the first year of parties with theme \"Spring\" or \"Teqnology\".", "question_toks": ["Show", "the", "first", "year", "of", "parties", "with", "theme", "\"", "Spring", "\"", "or", "\"", "Teqnology", "\"."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2666", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0066", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011", "query_toks": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "2011"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value"], "question": "Show minimum and maximum amount of memberships for all branches opened in 2011.", "question_toks": ["Show", "minimum", "and", "maximum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0066", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0067", "db_id": "customers_and_products_contacts", "query": "select product_type_code from products where product_price > 1000 or product_price < 500", "query_toks": ["select", "product_type_code", "from", "products", "where", "product_price", ">", "1000", "or", "product_price", "<", "500"], "query_toks_no_value": ["select", "product_type_code", "from", "products", "where", "product_price", ">", "value", "or", "product_price", "<", "value"], "question": "Show the product type for the products with price higher than 1000 or lower than 500.", "question_toks": ["Show", "the", "product", "type", "for", "the", "products", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null], "or", [false, 4, [0, [0, 10, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5667", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0068", "db_id": "customers_campaigns_ecommerce", "query": "select order_shipping_charges from customer_orders where order_status_code = \"cancelled\" or order_status_code = \"paid\"", "query_toks": ["select", "order_shipping_charges", "from", "customer_orders", "where", "order_status_code", "=", "``", "cancelled", "''", "or", "order_status_code", "=", "``", "paid", "''"], "query_toks_no_value": ["select", "order_shipping_charges", "from", "customer_orders", "where", "order_status_code", "=", "value", "or", "order_status_code", "=", "value"], "question": "Show the shipping charge for customer orders with order status Cancelled or Paid.", "question_toks": ["Show", "the", "shipping", "charge", "for", "customer", "orders", "with", "order", "status", "Cancelled", "or", "Paid", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"cancelled\"", null], "or", [false, 2, [0, [0, 27, false], null], "\"paid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4633", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0069", "db_id": "concert_singer", "query": "select t2.name 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", "query_toks": ["select", "t2", ".", "name", "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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">=", "value", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Show the stadium name with most number of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0070", "db_id": "culture_company", "query": "select book_title from book_club where year > 1989", "query_toks": ["select", "book_title", "from", "book_club", "where", "year", ">", "1989"], "query_toks_no_value": ["select", "book_title", "from", "book_club", "where", "year", ">", "value"], "question": "show the titles for all books made after the year 1989.", "question_toks": ["show", "the", "titles", "for", "all", "books", "made", "after", "the", "year", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6964", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0071", "db_id": "culture_company", "query": "select author_or_editor from book_club where year > 1989", "query_toks": ["select", "author_or_editor", "from", "book_club", "where", "year", ">", "1989"], "query_toks_no_value": ["select", "author_or_editor", "from", "book_club", "where", "year", ">", "value"], "question": "show authors or editors for all books made after the year 1989.", "question_toks": ["show", "authors", "or", "editors", "for", "all", "books", "made", "after", "the", "year", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0071", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0072", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Tell me the owner id and last name of the owner who spent the most on treatments.", "question_toks": ["Tell", "me", "the", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0072", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0073", "db_id": "dog_kennels", "query": "select t1.owner_id 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", "query_toks": ["select", "t1", ".", "owner_id", "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"], "query_toks_no_value": ["select", "t1", ".", "owner_id", "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"], "question": "Tell me the owner id of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "the", "owner", "id", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0937", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0074", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\"", "query_toks": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "``", "dan", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value"], "question": "What are the different names and ages of every friend of Dan?", "question_toks": ["What", "are", "the", "different", "names", "and", "ages", "of", "every", "friend", "of", "Dan", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0074", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0075", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600", "query_toks": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "600"], "query_toks_no_value": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value"], "question": "What are id and name of the products whose price is lower than 600?", "question_toks": ["What", "are", "id", "and", "name", "of", "the", "products", "whose", "price", "is", "lower", "than", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4769", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0076", "db_id": "car_1", "query": "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the id and names of the countries which produce the 'fiat' model?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "produce", "the", "'", "fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0076", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0077", "db_id": "customers_and_invoices", "query": "select t1.account_id , t2.account_name from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id group by t1.account_id having count(*) = 4", "query_toks": ["select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(*)", "=", "4"], "query_toks_no_value": ["select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(*)", "=", "4"], "question": "What are the ids and names of accounts with 4 transactions?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "accounts", "with", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [[false, 2, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0077", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0078", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the ids and names of all countries that either have more than 3 car makers?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0078", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0079", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) = 2", "query_toks": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2"], "question": "What are the ids and names of the medicine that can interact with two enzymes?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "medicine", "that", "can", "interact", "with", "two", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0079", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0080", "db_id": "browser_web", "query": "select t1.id , t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id group by t1.id having count(*) = 2", "query_toks": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2"], "question": "What are the ids and names of the web accelerators that are compatible with two browsers?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "web", "accelerators", "that", "are", "compatible", "with", "two", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0080", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0081", "db_id": "architecture", "query": "select t1.name from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2 union select t1.name from architect as t1 join mill as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 1", "query_toks": ["select", "t1", ".", "name", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2", "union", "select", "t1", ".", "name", "from", "architect", "as", "t1", "join", "mill", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2", "union", "select", "t1", ".", "name", "from", "architect", "as", "t1", "join", "mill", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "1"], "question": "What are the names of the architects who built two bridges or one mill?", "question_toks": ["What", "are", "the", "names", "of", "the", "architects", "who", "built", "two", "bridges", "or", "one", "mill", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0081", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0082", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) = 150", "query_toks": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", "=", "150"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", "=", "150"], "question": "What are the names and average prices of products for manufacturers whose products cost on average 150?", "question_toks": ["What", "are", "the", "names", "and", "average", "prices", "of", "products", "for", "manufacturers", "whose", "products", "cost", "on", "average", "150", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 2, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0082", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0083", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14"], "question": "What are the names and ids of all stations that have more than 14 bikes available on average?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0083", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_UNION_REMOVED"]}, {"id": "and_with_or_in_nl_0084", "db_id": "chinook_1", "query": "select t2.name , t1.artistid from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t1.artistid having count(*) = 3 order by t2.name", "query_toks": ["select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(*)", "=", "3", "order", "by", "t2", ".", "name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(*)", "=", "3", "order", "by", "t2", ".", "name"], "question": "What are the names and ids of artists with 3, listed in alphabetical order?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "artists", "with", "3", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 2, [0, [3, 0, false], null], 3.0, null]], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0084", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0085", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\"", "query_toks": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "``", "bus", "''"], "query_toks_no_value": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value"], "question": "What are the names and opening hours of the tourist attractions that can be accessed by bus?", "question_toks": ["What", "are", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0085", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0086", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300", "query_toks": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "300"], "query_toks_no_value": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value"], "question": "What are the names and types of the dorms that have a capacity greater than 300?", "question_toks": ["What", "are", "the", "names", "and", "types", "of", "the", "dorms", "that", "have", "a", "capacity", "greater", "than", "300", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0086", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0087", "db_id": "storm_record", "query": "select name , dates_active , number_deaths from storm where number_deaths = 1", "query_toks": ["select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm", "where", "number_deaths", "=", "1"], "query_toks_no_value": ["select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm", "where", "number_deaths", "=", "value"], "question": "What are the names, dates active, and number of deaths for storms that had 1 death?", "question_toks": ["What", "are", "the", "names", ",", "dates", "active", ",", "and", "number", "of", "deaths", "for", "storms", "that", "had", "1", "death", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0087", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0088", "db_id": "products_gen_characteristics", "query": "select t1.product_id , t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code", "query_toks": ["select", "t1", ".", "product_id", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code"], "query_toks_no_value": ["select", "t1", ".", "product_id", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code"], "question": "What are the product ids and color descriptions for products?", "question_toks": ["What", "are", "the", "product", "ids", "and", "color", "descriptions", "for", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0088", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0089", "db_id": "battle_death", "query": "select t1.killed from death as t1 join ship as t2 on t1.caused_by_ship_id = t2.id where t2.tonnage = \"t\"", "query_toks": ["select", "t1", ".", "killed", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "where", "t2", ".", "tonnage", "=", "``", "t", "''"], "query_toks_no_value": ["select", "t1", ".", "killed", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "where", "t2", ".", "tonnage", "=", "value"], "question": "What are the death situations caused by the ship with tonnage 't'?", "question_toks": ["What", "are", "the", "death", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'", "t", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0496", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0090", "db_id": "network_2", "query": "select distinct t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" or t2.friend = \"alice\"", "query_toks": ["select", "distinct", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "``", "dan", "''", "or", "t2", ".", "friend", "=", "``", "alice", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value"], "question": "What are the different names every friend of either Dan or alice?", "question_toks": ["What", "are", "the", "different", "names", "every", "friend", "of", "either", "Dan", "or", "alice", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4443", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0091", "db_id": "allergy_1", "query": "select distinct t1.fname from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "``", "milk", "''", "or", "t2", ".", "allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value"], "question": "What are the distinct first names of the students who have allergy either to milk or to cat?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "of", "the", "students", "who", "have", "allergy", "either", "to", "milk", "or", "to", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0532", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0092", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"cat\"", "query_toks": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value"], "question": "What are the distinct first names and cities of the students who have allergy to cat?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "to", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0092", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0093", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = \"close\" or t1.date_and_date < \"2017-06-19 02:59:21\"", "query_toks": ["select", "distinct", "t2", ".", "thing_id", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "``", "close", "''", "or", "t1", ".", "date_and_date", "<", "``", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "thing_id", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "value", "or", "t1", ".", "date_and_date", "<", "value", "-", "06", "-", "19", "02", ":", "59", ":", "21"], "question": "What are the distinct id that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'", "question_toks": ["What", "are", "the", "distinct", "id", "that", "has", "the", "status", "'", "Close", "'", "or", "has", "a", "status", "record", "before", "the", "date", "'", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"close\"", null], "or", [false, 4, [0, [0, 44, false], null], "\"2017-06-19 02:59:21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4851", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0094", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id , t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = \"close\"", "query_toks": ["select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "``", "close", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "value"], "question": "What are the distinct id and type of the thing that has the status 'Close' ", "question_toks": ["What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'", "Close", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"close\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0094", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0095", "db_id": "formula_1", "query": "select t1.forename from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["select", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "8", "union", "select", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "5"], "query_toks_no_value": ["select", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "8", "union", "select", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "5"], "question": "What are the drivers' first names for all those that had more than 8 stops or participated in more than 5 races?", "question_toks": ["What", "are", "the", "drivers", "'", "first", "names", "for", "all", "those", "that", "had", "more", "than", "8", "stops", "or", "participated", "in", "more", "than", "5", "races", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2208", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0096", "db_id": "formula_1", "query": "select t1.forename , t1.surname from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename , t1.surname from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "8", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "5"], "query_toks_no_value": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "8", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "5"], "question": "What are the drivers' first, last names who had more than 8 pit stops or participated in more than 5 race results?", "question_toks": ["What", "are", "the", "drivers", "'", "first", ",", "last", "names", "who", "had", "more", "than", "8", "pit", "stops", "or", "participated", "in", "more", "than", "5", "race", "results", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2207", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0097", "db_id": "formula_1", "query": "select t1.forename , t1.surname , t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8", "query_toks": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "8"], "query_toks_no_value": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "8"], "question": "What are the drivers' first, last names and id who had more than 8 pit stops?", "question_toks": ["What", "are", "the", "drivers", "'", "first", ",", "last", "names", "and", "id", "who", "had", "more", "than", "8", "pit", "stops", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 83, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0097", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0098", "db_id": "hr_1", "query": "select last_name from employees where department_id = 70 or department_id = 90", "query_toks": ["select", "last_name", "from", "employees", "where", "department_id", "=", "70", "or", "department_id", "=", "90"], "query_toks_no_value": ["select", "last_name", "from", "employees", "where", "department_id", "=", "value", "or", "department_id", "=", "value"], "question": "What is the last name for those employees who works either in department 70 or 90?", "question_toks": ["What", "is", "the", "last", "name", "for", "those", "employees", "who", "works", "either", "in", "department", "70", "or", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], 70.0, null], "or", [false, 2, [0, [0, 24, false], null], 90.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3431", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0099", "db_id": "hr_1", "query": "select first_name , last_name from employees where department_id = 70", "query_toks": ["select", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "=", "70"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "=", "value"], "question": "What are the first and last name for those employees who works either in department 70?", "question_toks": ["What", "are", "the", "first", "and", "last", "name", "for", "those", "employees", "who", "works", "either", "in", "department", "70", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], 70.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0099", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0100", "db_id": "baseball_1", "query": "select name_first from player where weight > 220 or height < 75", "query_toks": ["select", "name_last", "from", "player", "where", "weight", ">", "220", "or", "height", "<", "75"], "query_toks_no_value": ["select", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value"], "question": "What are the first name of the players who have weight above 220 or height below 75?", "question_toks": ["What", "are", "the", "first", "name", "of", "the", "players", "who", "have", "weight", "above", "220", "or", "height", "below", "75", "?"], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3664", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0101", "db_id": "baseball_1", "query": "select name_first , name_last from player where height < 75", "query_toks": ["select", "name_first", ",", "name_last", "from", "player", "where", "height", "<", "75"], "query_toks_no_value": ["select", "name_first", ",", "name_last", "from", "player", "where", "height", "<", "value"], "question": "What are the first name and last name of the players who have height below 75?", "question_toks": ["What", "are", "the", "first", "name", "and", "last", "name", "of", "the", "players", "who", "have", "height", "below", "75", "?"], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0101", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0102", "db_id": "customers_and_invoices", "query": "select t2.customer_first_name , t1.customer_id from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) = 2", "query_toks": ["select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", "=", "2"], "question": "What are the first names and ids for customers who have two accounts?", "question_toks": ["What", "are", "the", "first", "names", "and", "ids", "for", "customers", "who", "have", "two", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1572", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0103", "db_id": "chinook_1", "query": "select t1.firstname , t1.supportrepid from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) = 10", "query_toks": ["select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(*)", "=", "10"], "query_toks_no_value": ["select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(*)", "=", "10"], "question": "What are the first names and support rep ids for employees serving 10 customers?", "question_toks": ["What", "are", "the", "first", "names", "and", "support", "rep", "ids", "for", "employees", "serving", "10", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 2, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0870", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0104", "db_id": "customers_and_invoices", "query": "select t2.customer_first_name from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["select", "t2", ".", "customer_first_name", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t2", ".", "customer_first_name", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "question": "What are the first names for customers who have two or more accounts?", "question_toks": ["What", "are", "the", "first", "names", "for", "customers", "who", "have", "two", "or", "more", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0104", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0105", "db_id": "chinook_1", "query": "select t1.supportrepid from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) >= 10", "query_toks": ["select", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(*)", ">=", "10"], "query_toks_no_value": ["select", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(*)", ">=", "10"], "question": "What are the support rep ids for employees serving 10 or more customers?", "question_toks": ["What", "are", "the", "support", "rep", "ids", "for", "employees", "serving", "10", "or", "more", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0105", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0106", "db_id": "party_host", "query": "select last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["select", "last_year", "from", "party", "where", "party_theme", "=", "``", "spring", "''", "or", "party_theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["select", "last_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value"], "question": "What are the last year of the parties whose theme is \"Spring\" or \"Teqnology\"?", "question_toks": ["What", "are", "the", "last", "year", "of", "the", "parties", "whose", "theme", "is", "\"", "Spring", "\"", "or", "\"", "Teqnology", "\"?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2667", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0107", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" ", "query_toks": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "``", "spring", "''"], "query_toks_no_value": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value"], "question": "What are the first year and last year of the parties whose theme is \"Spring\" ?", "question_toks": ["What", "are", "the", "first", "year", "and", "last", "year", "of", "the", "parties", "whose", "theme", "is", "\"", "Spring", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0107", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0108", "db_id": "department_store", "query": "select product_name from products where product_price < 600 or product_price > 900", "query_toks": ["select", "product_name", "from", "products", "where", "product_price", "<", "600", "or", "product_price", ">", "900"], "query_toks_no_value": ["select", "product_name", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value"], "question": "What is the name of the products whose price is lower than 600 or higher than 900?", "question_toks": ["What", "is", "the", "name", "of", "the", "products", "whose", "price", "is", "lower", "than", "600", "or", "higher", "than", "900", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0108", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0109", "db_id": "car_1", "query": "select t1.countryid 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 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\"", "query_toks": ["select", "t1", ".", "countryid", "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", "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", "''"], "query_toks_no_value": ["select", "t1", ".", "countryid", "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", "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", "=", "value"], "question": "What is the id of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "is", "the", "id", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'", "fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0110", "db_id": "dog_kennels", "query": "select 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", "query_toks": ["select", "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"], "query_toks_no_value": ["select", "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"], "question": "What are first names of the professionals who have performed two or more treatments?", "question_toks": ["What", "are", "first", "names", "of", "the", "professionals", "who", "have", "performed", "two", "or", "more", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0933", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0111", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the id, role, and first name of the professionals who have performed two treatments?", "question_toks": ["What", "are", "the", "id", ",", "role", ",", "and", "first", "name", "of", "the", "professionals", "who", "have", "performed", "two", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0111", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0112", "db_id": "customers_card_transactions", "query": "select t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "question": "What are the full names of customers who hold two or more cards?", "question_toks": ["What", "are", "the", "full", "names", "of", "customers", "who", "hold", "two", "or", "more", "cards", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0716", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0113", "db_id": "formula_1", "query": "select circuitid from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["select", "circuitid", "from", "circuits", "where", "country", "=", "``", "france", "''", "or", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["select", "circuitid", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "What are the ids of all circuits in France or Belgium?", "question_toks": ["What", "are", "the", "ids", "of", "all", "circuits", "in", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2216", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0114", "db_id": "customers_and_invoices", "query": "select t1.account_id from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id group by t1.account_id having count(*) >= 4", "query_toks": ["select", "t1", ".", "account_id", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(*)", ">=", "4"], "query_toks_no_value": ["select", "t1", ".", "account_id", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(*)", ">=", "4"], "question": "What are the ids of accounts with 4 or more transactions?", "question_toks": ["What", "are", "the", "ids", "of", "accounts", "with", "4", "or", "more", "transactions", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [[false, 5, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1594", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0115", "db_id": "car_1", "query": "select t1.countryid 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 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\"", "query_toks": ["select", "t1", ".", "countryid", "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", "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", "''"], "query_toks_no_value": ["select", "t1", ".", "countryid", "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", "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", "=", "value"], "question": "What are the ids of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0116", "db_id": "medicine_enzyme_interaction", "query": "select t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["select", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", ">=", "2"], "question": "What are the names of the medicine that can interact with two or more enzymes?", "question_toks": ["What", "are", "the", "names", "of", "the", "medicine", "that", "can", "interact", "with", "two", "or", "more", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0949", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0117", "db_id": "browser_web", "query": "select t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["select", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", ">=", "2"], "question": "What is the names of the web accelerators that are compatible with two or more browsers?", "question_toks": ["What", "is", "the", "names", "of", "the", "web", "accelerators", "that", "are", "compatible", "with", "two", "or", "more", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1833", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0118", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) = 2", "query_toks": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", "=", "2"], "question": "What are the ids and full names of customers who hold two cards?", "question_toks": ["What", "are", "the", "ids", "and", "full", "names", "of", "customers", "who", "hold", "two", "cards", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0118", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0119", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"belgium\"", "query_toks": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value"], "question": "What are the ids and locations of all circuits in Belgium?", "question_toks": ["What", "are", "the", "ids", "and", "locations", "of", "all", "circuits", "in", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0119", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0120", "db_id": "architecture", "query": "select t1.id , t1.name , t1.gender from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2", "query_toks": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2"], "question": "What are the ids, names and genders of the architects who built two bridges?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "genders", "of", "the", "architects", "who", "built", "two", "bridges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6955", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0121", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where city = \"london\"", "query_toks": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "city", "=", "``", "london", "''"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "city", "=", "value"], "question": "What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "membership", "amounts", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0121", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0122", "db_id": "shop_membership", "query": "select max(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["select", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "2011", "or", "city", "=", "``", "london", "''"], "query_toks_no_value": ["select", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "What is the maximum membership amounts for all branches that either opened in 2011 or are located in London?", "question_toks": ["What", "is", "the", "maximum", "membership", "amounts", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5411", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"]}, {"id": "and_with_or_in_nl_0123", "db_id": "manufactory_1", "query": "select t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) >= 150", "query_toks": ["select", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">=", "150"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">=", "150"], "question": "What are the names of products for manufacturers whose products cost on average 150 or more?", "question_toks": ["What", "are", "the", "names", "of", "products", "for", "manufacturers", "whose", "products", "cost", "on", "average", "150", "or", "more", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5345", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0124", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select name from station where installation_date like \"12/%\"", "query_toks": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14", "union", "select", "name", "from", "station", "where", "installation_date", "like", "``", "12", "/%\""], "query_toks_no_value": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14", "union", "select", "name", "from", "station", "where", "installation_date", "like", "value", "/%\""], "question": "What are the names of all stations that have more than 14 bikes available on average or had bikes installed in December?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "or", "had", "bikes", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0144", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0125", "db_id": "chinook_1", "query": "select t2.name from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t1.artistid having count(*) >= 3 order by t2.name", "query_toks": ["select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(*)", ">=", "3", "order", "by", "t2", ".", "name"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(*)", ">=", "3", "order", "by", "t2", ".", "name"], "question": "What are the names of artists with 3 or more albums, listed in alphabetical order?", "question_toks": ["What", "are", "the", "names", "of", "artists", "with", "3", "or", "more", "albums", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0876", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0126", "db_id": "bike_1", "query": "select t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select id from station where installation_date like \"12/%\"", "query_toks": ["select", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14", "union", "select", "id", "from", "station", "where", "installation_date", "like", "``", "12", "/%\""], "query_toks_no_value": ["select", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14", "union", "select", "id", "from", "station", "where", "installation_date", "like", "value", "/%\""], "question": "What are the ids of stations that had more than 14 bikes available on average or were installed in December?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "had", "more", "than", "14", "bikes", "available", "on", "average", "or", "were", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0143", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0127", "db_id": "cre_Theme_park", "query": "select name, opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["select", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "``", "bus", "''", "or", "how_to_get_there", "=", "``", "walk", "''"], "query_toks_no_value": ["select", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value"], "question": "What are the opening hours of the tourist attractions that can be accessed by bus or walk?", "question_toks": ["What", "are", "the", "opening", "hours", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "or", "walk", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5911", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0128", "db_id": "dorm_1", "query": "select dorm_name from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["select", "dorm_name", "from", "dorm", "where", "student_capacity", ">", "300", "or", "student_capacity", "<", "100"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value"], "question": "What are the types of the dorms that have a capacity greater than 300 or less than 100?", "question_toks": ["What", "are", "the", "types", "of", "the", "dorms", "that", "have", "a", "capacity", "greater", "than", "300", "or", "less", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5699", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0129", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where hours = 4", "query_toks": ["select", "cname", "from", "course", "where", "credits", "=", "3", "union", "select", "cname", "from", "course", "where", "hours", "=", "4"], "query_toks_no_value": ["select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "hours", "=", "value"], "question": "What are the names of courses that give either 3 credits or 4 hours?", "question_toks": ["What", "are", "the", "names", "of", "courses", "that", "give", "either", "3", "credits", "or", "4", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4704", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0130", "db_id": "college_3", "query": "select dname from department where division = \"as\" union select dname from department where division = \"en\"", "query_toks": ["select", "dname", "from", "department", "where", "division", "=", "``", "as", "''", "union", "select", "dname", "from", "department", "where", "division", "=", "``", "en", "''"], "query_toks_no_value": ["select", "dname", "from", "department", "where", "division", "=", "value", "union", "select", "dname", "from", "department", "where", "division", "=", "value"], "question": "What are the names of departments either in division AS, or in division EN?", "question_toks": ["What", "are", "the", "names", "of", "departments", "either", "in", "division", "AS", ",", "or", "in", "division", "EN", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"as\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"en\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4706", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0131", "db_id": "network_1", "query": "select name from highschooler where grade > 5", "query_toks": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "5"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "value"], "question": "What are the names of high schoolers who have a grade of over 5?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "a", "grade", "of", "over", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 5.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0911", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0132", "db_id": "storm_record", "query": "select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id intersect select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id", "query_toks": ["select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "intersect", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "intersect", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id"], "question": "What are the names of storms that affected two or more regions?", "question_toks": ["What", "are", "the", "names", "of", "storms", "that", "both", "affected", "two", "or", "more", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2721", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0133", "db_id": "cre_Theme_park", "query": "select t3.visit_date from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"vincent\" or t2.tourist_details = \"vivian\"", "query_toks": ["select", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "``", "vincent", "''", "or", "t2", ".", "tourist_details", "=", "``", "vivian", "''"], "query_toks_no_value": ["select", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "or", "t2", ".", "tourist_details", "=", "value"], "question": "What are the dates when the tourists named Vincent or Vivian visited there?", "question_toks": ["What", "are", "the", "dates", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"vincent\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"vivian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5933", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0134", "db_id": "storm_record", "query": "select name from storm where number_deaths >= 1", "query_toks": ["select", "name", "from", "storm", "where", "number_deaths", ">=", "1"], "query_toks_no_value": ["select", "name", "from", "storm", "where", "number_deaths", ">=", "value"], "question": "What are the names for storms that had 1 or more death?", "question_toks": ["What", "are", "the", "names", "for", "storms", "that", "had", "1", "or", "more", "death", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2701", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0135", "db_id": "products_gen_characteristics", "query": "select t1.product_id from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code join product_characteristics as t3 on t1.product_id = t3.product_id group by t1.product_id having count(*) >= 2", "query_toks": ["select", "t1", ".", "product_id", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "join", "product_characteristics", "as", "t3", "on", "t1", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t1", ".", "product_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "product_id", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "join", "product_characteristics", "as", "t3", "on", "t1", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t1", ".", "product_id", "having", "count", "(*)", ">=", "2"], "question": "What are the product ids for products with two or more characteristics?", "question_toks": ["What", "are", "the", "product", "ids", "for", "products", "with", "two", "or", "more", "characteristics", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5549", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0136", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\"", "query_toks": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "``", "omnis", "''"], "query_toks_no_value": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value"], "question": "What are the task details, task id and project id for the projects which are detailed as 'omnis'?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "id", "and", "project", "id", "for", "the", "projects", "which", "are", "detailed", "as", "'", "omnis", "'?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0136", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0137", "db_id": "tracking_grants_for_research", "query": "select t1.task_details from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\" union select t1.task_details from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["select", "t1", ".", "task_details", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "``", "omnis", "''", "union", "select", "t1", ".", "task_details", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(*)", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "task_details", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t1", ".", "task_details", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(*)", ">", "2"], "question": "What are the task details for the projects which are detailed as 'omnis' or have more than 2 outcomes?", "question_toks": ["What", "are", "the", "task", "details", "for", "the", "projects", "which", "are", "detailed", "as", "'", "omnis", "'", "or", "have", "more", "than", "2", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4340", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0138", "db_id": "tracking_grants_for_research", "query": "select t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\" union select t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["select", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "``", "omnis", "''", "union", "select", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(*)", ">", "2"], "query_toks_no_value": ["select", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(*)", ">", "2"], "question": "What are the project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?", "question_toks": ["What", "are", "the", "project", "ids", "for", "the", "progrects", "that", "are", "detailed", "as", "'", "omnis", "'", "or", "have", "at", "least", "3", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4341", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0139", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\"", "query_toks": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "``", "omnis", "''"], "query_toks_no_value": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value"], "question": "What are the task details, task ids, and project ids for the progrects that are detailed as 'omnis'?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "ids", ",", "and", "project", "ids", "for", "the", "progrects", "that", "are", "detailed", "as", "'", "omnis", "'?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0139", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0140", "db_id": "culture_company", "query": "select book_title from book_club where year > 1989", "query_toks": ["select", "book_title", "from", "book_club", "where", "year", ">", "1989"], "query_toks_no_value": ["select", "book_title", "from", "book_club", "where", "year", ">", "value"], "question": "What are the titles hat correspond to books made after 1989?", "question_toks": ["What", "are", "the", "titles", "hat", "correspond", "to", "books", "made", "after", "1989", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6965", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0141", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = \"noel cv\"", "query_toks": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "``", "noel", "cv", "''"], "query_toks_no_value": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "cv"], "question": "What are the type come, name, and description of the document that has either the name 'Noel CV' ?", "question_toks": ["What", "are", "the", "type", "come", ",", "name", ",", "and", "description", "of", "the", "document", "that", "has", "either", "the", "name", "'", "Noel", "CV", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"noel cv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0141", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0142", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = \"noel cv\" or document_name = \"king book\"", "query_toks": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "``", "noel", "cv", "''", "or", "document_name", "=", "``", "king", "book", "''"], "query_toks_no_value": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "cv", "or", "document_name", "=", "value", "book"], "question": "What are the type come, name, and description of the document that has either the name 'Noel CV' or 'King Book'?", "question_toks": ["What", "are", "the", "type", "come", ",", "name", ",", "and", "description", "of", "the", "document", "that", "has", "either", "the", "name", "'", "Noel", "CV", "'", "or", "'", "King", "Book", "'?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"noel cv\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"king book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6402", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0143", "db_id": "train_station", "query": "select avg(total_passengers) , max(total_passengers) from station where location = \"glasgow\"", "query_toks": ["select", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "``", "glasgow", "''"], "query_toks_no_value": ["select", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "value"], "question": "What is the average and maximum number of total passengers for train stations in Glasgow?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "total", "passengers", "for", "train", "stations", "in", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0143", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0144", "db_id": "train_station", "query": "select avg(total_passengers) from station where location = \"london\" or location = \"glasgow\"", "query_toks": ["select", "avg", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "``", "london", "''", "or", "location", "=", "``", "glasgow", "''"], "query_toks_no_value": ["select", "avg", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "value", "or", "location", "=", "value"], "question": "What is the average number of total passengers for train stations in London or Glasgow?", "question_toks": ["What", "is", "the", "average", "number", "of", "total", "passengers", "for", "train", "stations", "in", "London", "or", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"london\"", null], "or", [false, 2, [0, [0, 6, false], null], "\"glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6604", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"]}, {"id": "and_with_or_in_nl_0145", "db_id": "game_1", "query": "select t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["select", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "``", "football", "''", "or", "t1", ".", "sportname", "=", "``", "lacrosse", "''"], "query_toks_no_value": ["select", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value", "or", "t1", ".", "sportname", "=", "value"], "question": "What is the first name of all students who play Football or Lacrosse?", "question_toks": ["What", "is", "the", "first", "name", "of", "all", "students", "who", "play", "Football", "or", "Lacrosse", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6050", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0146", "db_id": "dorm_1", "query": "select lname from student where sex = \"f\" and city_code = \"bal\" union select lname from student where sex = \"m\"", "query_toks": ["select", "lname", "from", "student", "where", "sex", "=", "``", "f", "''", "and", "city_code", "=", "``", "bal", "''", "union", "select", "lname", "from", "student", "where", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "sex", "=", "value", "and", "city_code", "=", "value", "union", "select", "lname", "from", "student", "where", "sex", "=", "value"], "question": "What is the last name of every student who is either female or living in a city with the code BAL or male?", "question_toks": ["What", "is", "the", "last", "name", "of", "every", "student", "who", "is", "either", "female", "or", "living", "in", "a", "city", "with", "the", "code", "BAL", "or", "male", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"bal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5707", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0147", "db_id": "driving_school", "query": "select customer_status_code from customers where first_name = \"marina\" or last_name = \"kohler\"", "query_toks": ["select", "customer_status_code", "from", "customers", "where", "first_name", "=", "``", "marina", "''", "or", "last_name", "=", "``", "kohler", "''"], "query_toks_no_value": ["select", "customer_status_code", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value"], "question": "What is the status code of customer with last name as Kohler or first name as Marina?", "question_toks": ["What", "is", "the", "status", "code", "of", "customer", "with", "last", "name", "as", "Kohler", "or", "first", "name", "as", "Marina", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"marina\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"kohler\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6664", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0148", "db_id": "driving_school", "query": "select customer_status_code from customers where first_name = \"marina\" or last_name = \"kohler\"", "query_toks": ["select", "customer_status_code", "from", "customers", "where", "first_name", "=", "``", "marina", "''", "or", "last_name", "=", "``", "kohler", "''"], "query_toks_no_value": ["select", "customer_status_code", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value"], "question": "What is the status code of the customer whose last name is Kohler or whose first name is Marina?", "question_toks": ["What", "is", "the", "status", "code", "of", "the", "customer", "whose", "last", "name", "is", "Kohler", "or", "whose", "first", "name", "is", "Marina", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"marina\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"kohler\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6665", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0149", "db_id": "culture_company", "query": "select title from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["select", "title", "from", "movie", "where", "year", "<=", "2000", "order", "by", "gross_worldwide", "desc", "limit", "1"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "<=", "value", "order", "by", "gross_worldwide", "desc", "limit", "1"], "question": "What is the title for the movie with highest worldwide gross in the year 2000 or before?", "question_toks": ["What", "is", "the", "title", "for", "the", "movie", "with", "highest", "worldwide", "gross", "in", "the", "year", "2000", "or", "before", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6986", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0150", "db_id": "culture_company", "query": "select title , director from movie where year = 2000 order by gross_worldwide desc limit 1", "query_toks": ["select", "title", ",", "director", "from", "movie", "where", "year", "=", "2000", "order", "by", "gross_worldwide", "desc", "limit", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "where", "year", "=", "value", "order", "by", "gross_worldwide", "desc", "limit", "1"], "question": "What is the title and director for the movie with highest worldwide gross in the year 2000?", "question_toks": ["What", "is", "the", "title", "and", "director", "for", "the", "movie", "with", "highest", "worldwide", "gross", "in", "the", "year", "2000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0150", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0151", "db_id": "bike_1", "query": "select zip_code from weather where max_temperature_f >= 80", "query_toks": ["select", "zip_code", "from", "weather", "where", "max_temperature_f", ">=", "80"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "where", "max_temperature_f", ">=", "value"], "question": "What zip codes have a station with a max temperature greater than or equal to 80?", "question_toks": ["What", "zip", "codes", "have", "a", "station", "with", "a", "max", "temperature", "greater", "than", "or", "equal", "to", "80", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0154", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0152", "db_id": "bike_1", "query": "select date , zip_code from weather where max_temperature_f > 80", "query_toks": ["select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">", "80"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">", "value"], "question": "What zip codes have a station with a max temperature greater than 80?", "question_toks": ["What", "zip", "codes", "have", "a", "station", "with", "a", "max", "temperature", "greater", "than", "80", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0152", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0153", "db_id": "insurance_policies", "query": "select t1.date_claim_made from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id having count(*) > 2 union select t1.date_claim_made from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id where t1.amount_claimed = ( select max(amount_claimed) from claims )", "query_toks": ["select", "t1", ".", "date_claim_made", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(*)", ">", "2", "union", "select", "t1", ".", "date_claim_made", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")"], "query_toks_no_value": ["select", "t1", ".", "date_claim_made", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(*)", ">", "2", "union", "select", "t1", ".", "date_claim_made", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "value", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")"], "question": "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.", "question_toks": ["Which", "claims", "caused", "more", "than", "2", "settlements", "or", "have", "the", "maximum", "claim", "value", "?", "List", "the", "date", "the", "claim", "was", "made", "and", "the", "claim", "id", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0153", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0154", "db_id": "e_learning", "query": "select t1.address_line_1 , t2.author_id from course_authors_and_tutors as t1 join courses as t2 on t1.author_id = t2.author_id group by t2.author_id having count(*) = 2", "query_toks": ["select", "t1", ".", "address_line_1", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "group", "by", "t2", ".", "author_id", "having", "count", "(*)", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "address_line_1", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "group", "by", "t2", ".", "author_id", "having", "count", "(*)", "=", "2"], "question": "Which course authors teach two courses? Give me their addresses and author IDs.", "question_toks": ["Which", "course", "authors", "teach", "two", "courses", "?", "Give", "me", "their", "addresses", "and", "author", "IDs", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3809", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0155", "db_id": "sakila_1", "query": "select t1.first_name from customer as t1 join payment as t2 on t1.customer_id = t2.customer_id group by t1.customer_id order by sum(amount) asc limit 1", "query_toks": ["select", "t1", ".", "first_name", "from", "customer", "as", "t1", "join", "payment", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "sum", "(", "amount", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "customer", "as", "t1", "join", "payment", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "sum", "(", "amount", ")", "asc", "limit", "1"], "question": "Which customer, who has made at least one payment, has spent the least money? List his or her first name.", "question_toks": ["Which", "customer", ",", "who", "has", "made", "at", "least", "one", "payment", ",", "has", "spent", "the", "least", "money", "?", "List", "his", "or", "her", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["asc", [[0, [4, 65, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2960", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0156", "db_id": "sakila_1", "query": "select t2.first_name from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["select", "t2", ".", "first_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "first_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Which film actor (actress) starred the most films? List his or her first name.", "question_toks": ["Which", "film", "actor", "(", "actress", ")", "starred", "the", "most", "films", "?", "List", "his", "or", "her", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2952", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0157", "db_id": "sakila_1", "query": "select t2.last_name from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id having count(*) > 30", "query_toks": ["select", "t2", ".", "last_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "having", "count", "(*)", ">", "30"], "query_toks_no_value": ["select", "t2", ".", "last_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "having", "count", "(*)", ">", "30"], "question": "Which film actors (actresses) played a role in more than 30 films? List his or her last name.", "question_toks": ["Which", "film", "actors", "(", "actresses", ")", "played", "a", "role", "in", "more", "than", "30", "films", "?", "List", "his", "or", "her", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 30.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2954", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0158", "db_id": "sakila_1", "query": "select t2.title from film_actor as t1 join film as t2 on t1.film_id = t2.film_id group by t2.film_id order by count(*) desc limit 1", "query_toks": ["select", "t2", ".", "title", "from", "film_actor", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t2", ".", "film_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "film_actor", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t2", ".", "film_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Which film has the most number of actors or actresses? List the film names.", "question_toks": ["Which", "film", "has", "the", "most", "number", "of", "actors", "or", "actresses", "?", "List", "the", "film", "names", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2950", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0159", "db_id": "dog_kennels", "query": "select t1.owner_id 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", "query_toks": ["select", "t1", ".", "owner_id", "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"], "query_toks_no_value": ["select", "t1", ".", "owner_id", "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"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0936", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0160", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which owner has paid for the most treatments? List the owner id and last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "?", "List", "the", "owner", "id", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0160", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0161", "db_id": "dog_kennels", "query": "select role_code from professionals where city like \"%west%\"", "query_toks": ["select", "role_code", "from", "professionals", "where", "city", "like", "\"%", "west", "%\""], "query_toks_no_value": ["select", "role_code", "from", "professionals", "where", "city", "like", "\"%", "west", "%\""], "question": "Which professionals live in a city containing the substring 'West'? List his or her role.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "containing", "the", "substring", "'", "West", "'?", "List", "his", "or", "her", "role", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%west%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0970", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0162", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like \"%west%\"", "query_toks": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "\"%", "west", "%\""], "query_toks_no_value": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "\"%", "west", "%\""], "question": "Which professionals live in a city containing the substring 'West'? List role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "containing", "the", "substring", "'", "West", "'?", "List", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%west%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0162", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0163", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "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"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0922", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0164", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\" ", "query_toks": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value"], "question": "Which professionals live in the state of Indiana ? List his or her id, last name and cell phone.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "?", "List", "his", "or", "her", "id", ",", "last", "name", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0164", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0165", "db_id": "assets_maintenance", "query": "select t1.company_id from third_party_companies as t1 join maintenance_engineers as t2 on t1.company_id = t2.company_id group by t1.company_id having count(*) >= 2 union select t3.company_id from third_party_companies as t3 join maintenance_contracts as t4 on t3.company_id = t4.maintenance_contract_company_id group by t3.company_id having count(*) >= 2", "query_toks": ["select", "t1", ".", "company_id", "from", "third_party_companies", "as", "t1", "join", "maintenance_engineers", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "company_id", "having", "count", "(*)", ">=", "2", "union", "select", "t3", ".", "company_id", "from", "third_party_companies", "as", "t3", "join", "maintenance_contracts", "as", "t4", "on", "t3", ".", "company_id", "=", "t4", ".", "maintenance_contract_company_id", "group", "by", "t3", ".", "company_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "company_id", "from", "third_party_companies", "as", "t1", "join", "maintenance_engineers", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "company_id", "having", "count", "(*)", ">=", "2", "union", "select", "t3", ".", "company_id", "from", "third_party_companies", "as", "t3", "join", "maintenance_contracts", "as", "t4", "on", "t3", ".", "company_id", "=", "t4", ".", "maintenance_contract_company_id", "group", "by", "t3", ".", "company_id", "having", "count", "(*)", ">=", "2"], "question": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id .", "question_toks": ["Which", "third", "party", "companies", "have", "at", "least", "2", "maintenance", "engineers", "or", "have", "at", "least", "2", "maintenance", "contracts", "?", "List", "the", "company", "id", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3129", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "any_some_in_nl_0000", "db_id": "concert_singer", "query": "select name from stadium where stadium_id not in (select stadium_id from concert)", "query_toks": ["select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")"], "question": "Show the stadium names which id not in concert.", "question_toks": ["Show", "the", "stadium", "names", "which", "id", "not", "in", "concert", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0028", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0001", "db_id": "concert_singer", "query": "select name from stadium where stadium_id not in (select stadium_id from concert)", "query_toks": ["select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")"], "question": "What are the names of the stadiums id without concerts?", "question_toks": ["What", "are", "the", "names", "of", "the", "stadiums", "id", "without", "concerts", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0029", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0002", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value", "intersect", "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value"], "question": "Find the name and location of the stadiums with concerts happened in the years of both 2014 and 2015.", "question_toks": ["Find", "the", "name", "and", "location", "of", "the", "stadiums", "with", "concerts", "happened", "in", "the", "years", "of", "both", "2014", "and", "2015", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0041", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0003", "db_id": "dog_kennels", "query": "select avg(age) from dogs where dog_id in ( select dog_id from treatments )", "query_toks": ["select", "avg", "(", "age", ")", "from", "dogs", "where", "dog_id", "in", "(", "select", "dog_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "dogs", "where", "dog_id", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "What is the average age of the dogs who are in the treatments?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "dogs", "who", "are", "in", "the", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0920", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0004", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["select", "count", "(*)", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "How many dogs have not gone through treatment?", "question_toks": ["How", "many", "dogs", "have", "not", "gone", "through", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0978", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0005", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["select", "count", "(*)", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "Tell me the number of dogs that are not in the treatment table .", "question_toks": ["Tell", "me", "the", "number", "of", "dogs", "that", "are", "not", "in", "the", "treatment", "table", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0979", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0006", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["select", "count", "(*)", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "question": "How many owners temporarily do not have dogs?", "question_toks": ["How", "many", "owners", "temporarily", "do", "not", "have", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0980", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0007", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["select", "count", "(*)", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "question": "Find the number of owners who do not own dogs.", "question_toks": ["Find", "the", "number", "of", "owners", "who", "do", "not", "own", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0981", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0008", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["select", "count", "(*)", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "question": "How many professionals did not operate treatment on dogs?", "question_toks": ["How", "many", "professionals", "did", "not", "operate", "treatment", "on", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0982", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0009", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["select", "count", "(*)", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "question": "Find the number of professionals who have not treated dogs.", "question_toks": ["Find", "the", "number", "of", "professionals", "who", "have", "not", "treated", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0983", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0010", "db_id": "employee_hire_evaluation", "query": "select name from employee where employee_id not in (select employee_id from evaluation)", "query_toks": ["select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")"], "query_toks_no_value": ["select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")"], "question": "Find the names of employees whose id not in the the evaluation table.", "question_toks": ["Find", "the", "names", "of", "employees", "whose", "id", "not", "in", "the", "the", "evaluation", "table", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0281", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0011", "db_id": "employee_hire_evaluation", "query": "select name from employee where employee_id not in (select employee_id from evaluation)", "query_toks": ["select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")"], "query_toks_no_value": ["select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")"], "question": "What are the names of the employees who was not evaluated?", "question_toks": ["What", "are", "the", "names", "of", "the", "employees", "who", "was", "not", "evaluated", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0282", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0012", "db_id": "employee_hire_evaluation", "query": "select name from shop where shop_id not in (select shop_id from hiring)", "query_toks": ["select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")"], "query_toks_no_value": ["select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")"], "question": "Find the name of the shops that is not hirinig.", "question_toks": ["Find", "the", "name", "of", "the", "shops", "that", "is", "not", "hirinig", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0285", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0013", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", "query_toks": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")"], "query_toks_no_value": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")"], "question": "Find the name of airports which airportcode not in sourceairport and destairport.", "question_toks": ["Find", "the", "name", "of", "airports", "which", "airportcode", "not", "in", "sourceairport", "and", "destairport", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0257", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0014", "db_id": "museum_visit", "query": "select count(distinct id) 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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ">", "value", ")"], "question": "Find the number of visitors who visites museum opened before 2010 or in 2010.", "question_toks": ["Find", "the", "number", "of", "visitors", "who", "visites", "museum", "opened", "before", "2010", "or", "in", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0427", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0015", "db_id": "music_4", "query": "select famous_title from artist where artist_id not in (select artist_id from volume)", "query_toks": ["select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")"], "query_toks_no_value": ["select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")"], "question": "Find the famous titles of artists that do not have volume.", "question_toks": ["Find", "the", "famous", "titles", "of", "artists", "that", "do", "not", "have", "volume", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6189", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0016", "db_id": "music_4", "query": "select famous_title from artist where artist_id not in (select artist_id from volume)", "query_toks": ["select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")"], "query_toks_no_value": ["select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")"], "question": "What are the famous titles of artists who do not have volumes?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "who", "do", "not", "have", "volumes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6190", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0017", "db_id": "network_1", "query": "select student_id from friend intersect select liked_id from likes", "query_toks": ["select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes"], "query_toks_no_value": ["select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes"], "question": "Show the ids of high schoolers who have friends and are also liked.", "question_toks": ["Show", "the", "ids", "of", "high", "schoolers", "who", "have", "friends", "and", "are", "also", "liked", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0898", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0018", "db_id": "network_1", "query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", "query_toks": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id"], "question": "Show name of all students who have some friends.", "question_toks": ["Show", "name", "of", "all", "students", "who", "have", "some", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0900", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0019", "db_id": "network_1", "query": "select avg(grade) from highschooler", "query_toks": ["select", "avg", "(", "grade", ")", "from", "highschooler"], "query_toks_no_value": ["select", "avg", "(", "grade", ")", "from", "highschooler"], "question": "Find the average grade of all students.", "question_toks": ["Find", "the", "average", "grade", "of", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0914", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0020", "db_id": "network_1", "query": "select min(grade) from highschooler", "query_toks": ["select", "min", "(", "grade", ")", "from", "highschooler"], "query_toks_no_value": ["select", "min", "(", "grade", ")", "from", "highschooler"], "question": "What is the lowest grade of students?", "question_toks": ["What", "is", "the", "lowest", "grade", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0917", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0021", "db_id": "news_report", "query": "select name from journalist where journalist_id not in (select journalist_id from news_report)", "query_toks": ["select", "name", "from", "journalist", "where", "journalist_id", "not", "in", "(", "select", "journalist_id", "from", "news_report", ")"], "query_toks_no_value": ["select", "name", "from", "journalist", "where", "journalist_id", "not", "in", "(", "select", "journalist_id", "from", "news_report", ")"], "question": "List the names of journalists who have not reported any event.", "question_toks": ["List", "the", "names", "of", "journalists", "who", "have", "not", "reported", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2816", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0022", "db_id": "orchestra", "query": "select orchestra from orchestra", "query_toks": ["select", "orchestra", "from", "orchestra"], "query_toks_no_value": ["select", "orchestra", "from", "orchestra"], "question": "What are the orchestras?", "question_toks": ["What", "are", "the", "orchestras", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0855", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0023", "db_id": "party_host", "query": "select name from host", "query_toks": ["select", "name", "from", "host"], "query_toks_no_value": ["select", "name", "from", "host"], "question": "List the names of hosts.", "question_toks": ["List", "the", "names", "of", "hosts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2688", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0024", "db_id": "party_host", "query": "select name from host", "query_toks": ["select", "name", "from", "host"], "query_toks_no_value": ["select", "name", "from", "host"], "question": "What are the names of hosts?", "question_toks": ["What", "are", "the", "names", "of", "hosts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2689", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0025", "db_id": "party_people", "query": "select party_name from party", "query_toks": ["select", "party_name", "from", "party"], "query_toks_no_value": ["select", "party_name", "from", "party"], "question": "Show names of parties.", "question_toks": ["Show", "names", "of", "parties", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2063", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0026", "db_id": "performance_attendance", "query": "select name from member", "query_toks": ["select", "name", "from", "member"], "query_toks_no_value": ["select", "name", "from", "member"], "question": "List the names of members.", "question_toks": ["List", "the", "names", "of", "members", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1321", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0027", "db_id": "pets_1", "query": "select avg(age) from student", "query_toks": ["select", "avg", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student"], "question": "Find the average age of students.", "question_toks": ["Find", "the", "average", "age", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0085", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0028", "db_id": "pets_1", "query": "select avg(age) from student", "query_toks": ["select", "avg", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student"], "question": "What is the average age for all students?", "question_toks": ["What", "is", "the", "average", "age", "for", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0086", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0029", "db_id": "phone_1", "query": "select avg(ram_mib) from chip_model", "query_toks": ["select", "avg", "(", "ram_mib", ")", "from", "chip_model"], "query_toks_no_value": ["select", "avg", "(", "ram_mib", ")", "from", "chip_model"], "question": "Find the average ram mib size of the chip models.", "question_toks": ["Find", "the", "average", "ram", "mib", "size", "of", "the", "chip", "models", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1049", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0030", "db_id": "phone_market", "query": "select name from phone ", "query_toks": ["select", "name", "from", "phone"], "query_toks_no_value": ["select", "name", "from", "phone"], "question": "List the names of phones.", "question_toks": ["List", "the", "names", "of", "phones", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1992", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0031", "db_id": "pilot_record", "query": "select pilot_name from pilot", "query_toks": ["select", "pilot_name", "from", "pilot"], "query_toks_no_value": ["select", "pilot_name", "from", "pilot"], "question": "List the names of pilots.", "question_toks": ["List", "the", "names", "of", "pilots", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2097", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0032", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors", "query_toks": ["select", "count", "(*)", "from", "ref_colors"], "query_toks_no_value": ["select", "count", "(*)", "from", "ref_colors"], "question": "How many colors are?", "question_toks": ["How", "many", "colors", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5600", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0033", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors", "query_toks": ["select", "count", "(*)", "from", "ref_colors"], "query_toks_no_value": ["select", "count", "(*)", "from", "ref_colors"], "question": "Count the number of colors.", "question_toks": ["Count", "the", "number", "of", "colors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5601", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0034", "db_id": "program_share", "query": "select t1.owner from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"night\"", "query_toks": ["select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "``", "night", "''"], "query_toks_no_value": ["select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value"], "question": "find the program owners in night time.", "question_toks": ["find", "the", "program", "owners", "in", "night", "time", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"night\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3754", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0035", "db_id": "protein_institute", "query": "select name from building", "query_toks": ["select", "name", "from", "building"], "query_toks_no_value": ["select", "name", "from", "building"], "question": "Show the name of buildings.", "question_toks": ["Show", "the", "name", "of", "buildings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1920", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0036", "db_id": "race_track", "query": "select name from track", "query_toks": ["select", "name", "from", "track"], "query_toks_no_value": ["select", "name", "from", "track"], "question": "Return the names of tracks.", "question_toks": ["Return", "the", "names", "of", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0776", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0037", "db_id": "railway", "query": "select objectnumber from railway", "query_toks": ["select", "objectnumber", "from", "railway"], "query_toks_no_value": ["select", "objectnumber", "from", "railway"], "question": "List the object number of railways.", "question_toks": ["List", "the", "object", "number", "of", "railways", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5648", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0038", "db_id": "ship_1", "query": "select rank from captain where class = \"cutter\" intersect select rank from captain where class = \"armed schooner\"", "query_toks": ["select", "rank", "from", "captain", "where", "class", "=", "``", "cutter", "''", "intersect", "select", "rank", "from", "captain", "where", "class", "=", "``", "armed", "schooner", "''"], "query_toks_no_value": ["select", "rank", "from", "captain", "where", "class", "=", "value", "intersect", "select", "rank", "from", "captain", "where", "class", "=", "value", "schooner"], "question": "Find the captain rank containing captians with both Cutter and Armed schooner classes.", "question_toks": ["Find", "the", "captain", "rank", "containing", "captians", "with", "both", "Cutter", "and", "Armed", "schooner", "classes", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"cutter\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"armed schooner\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6238", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0039", "db_id": "ship_1", "query": "select name , class from ship", "query_toks": ["select", "name", ",", "class", "from", "ship"], "query_toks_no_value": ["select", "name", ",", "class", "from", "ship"], "question": "what are the names and classes of the ships?", "question_toks": ["what", "are", "the", "names", "and", "classes", "of", "the", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6260", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0040", "db_id": "ship_1", "query": "select name , flag from ship", "query_toks": ["select", "name", ",", "flag", "from", "ship"], "query_toks_no_value": ["select", "name", ",", "flag", "from", "ship"], "question": "Find the name and flag of ships.", "question_toks": ["Find", "the", "name", "and", "flag", "of", "ships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6264", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0041", "db_id": "solvency_ii", "query": "select product_name from products where product_id not in (select product_id from products_in_events)", "query_toks": ["select", "product_name", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "products_in_events", ")"], "query_toks_no_value": ["select", "product_name", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "products_in_events", ")"], "question": "List the names of products that are not in event.", "question_toks": ["List", "the", "names", "of", "products", "that", "are", "not", "in", "event", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4597", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0042", "db_id": "sports_competition", "query": "select name from club where club_id not in (select club_id from player)", "query_toks": ["select", "name", "from", "club", "where", "club_id", "not", "in", "(", "select", "club_id", "from", "player", ")"], "query_toks_no_value": ["select", "name", "from", "club", "where", "club_id", "not", "in", "(", "select", "club_id", "from", "player", ")"], "question": "List the names of clubs that do not have players.", "question_toks": ["List", "the", "names", "of", "clubs", "that", "do", "not", "have", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3371", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0043", "db_id": "sports_competition", "query": "select name from club", "query_toks": ["select", "name", "from", "club"], "query_toks_no_value": ["select", "name", "from", "club"], "question": "What are the names of all clubs?", "question_toks": ["What", "are", "the", "names", "of", "all", "clubs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3372", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0044", "db_id": "storm_record", "query": "select name from storm", "query_toks": ["select", "name", "from", "storm"], "query_toks_no_value": ["select", "name", "from", "storm"], "question": "What are the names of storms?", "question_toks": ["What", "are", "the", "names", "of", "storms", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2719", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0045", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "africa", "''", "and", "population", "<", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "value", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the African countries that have a population less than minimum population of the countries in Asia?", "question_toks": ["What", "are", "the", "African", "countries", "that", "have", "a", "population", "less", "than", "minimum", "population", "of", "the", "countries", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_any_some_in_nl_0045", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0046", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "africa", "''", "and", "population", "<", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "value", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "Which African countries have a smaller population than that min population in the countries of Asia?", "question_toks": ["Which", "African", "countries", "have", "a", "smaller", "population", "than", "that", "min", "population", "in", "the", "countries", "of", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0775", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0047", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "asia", "''", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "value", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "Which Asian countries have a population that is larger than maximum populated country in Africa?", "question_toks": ["Which", "Asian", "countries", "have", "a", "population", "that", "is", "larger", "than", "maximum", "populated", "country", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0776", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0048", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "asia", "''", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "value", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the Asian countries which have a population larger than country in Africa with maximum population?", "question_toks": ["What", "are", "the", "Asian", "countries", "which", "have", "a", "population", "larger", "than", "country", "in", "Africa", "with", "maximum", "population", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_any_some_in_nl_0048", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0049", "db_id": "wrestler", "query": "select time from elimination where eliminated_by = \"punk\" or eliminated_by = \"orton\"", "query_toks": ["select", "time", "from", "elimination", "where", "eliminated_by", "=", "``", "punk", "''", "or", "eliminated_by", "=", "``", "orton", "''"], "query_toks_no_value": ["select", "time", "from", "elimination", "where", "eliminated_by", "=", "value", "or", "eliminated_by", "=", "value"], "question": "What are the times of elimination for instances in which the elimination was done by Punk or Orton?", "question_toks": ["What", "are", "the", "times", "of", "elimination", "for", "instances", "in", "which", "the", "elimination", "was", "done", "by", "Punk", "or", "Orton", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"punk\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"orton\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1883", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0050", "db_id": "aircraft", "query": "select aircraft from aircraft", "query_toks": ["select", "aircraft", "from", "aircraft"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft"], "question": "List the names of aircrafts.", "question_toks": ["List", "the", "names", "of", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4831", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0051", "db_id": "aircraft", "query": "select aircraft from aircraft", "query_toks": ["select", "aircraft", "from", "aircraft"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft"], "question": "What are the names of all aicrafts?", "question_toks": ["What", "are", "the", "names", "of", "all", "aicrafts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4832", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0052", "db_id": "aircraft", "query": "select name from pilot", "query_toks": ["select", "name", "from", "pilot"], "query_toks_no_value": ["select", "name", "from", "pilot"], "question": "What are the names of the pilots?", "question_toks": ["What", "are", "the", "names", "of", "the", "pilots", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4842", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0053", "db_id": "allergy_1", "query": "select fname , lname from student where stuid not in (select t1.stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "``", "food", "\")"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "\")"], "question": "List the first and last name of the students without food type allergy.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "the", "students", "without", "food", "type", "allergy", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0527", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0054", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["select", "fname", ",", "lname", "from", "student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "What is the full name of each student.", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0528", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0055", "db_id": "allergy_1", "query": "select count(*) from student where sex = \"m\" and stuid in (select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["select", "count", "(*)", "from", "student", "where", "sex", "=", "``", "m", "''", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "``", "food", "\")"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "\")"], "question": "Find the number of male (sex is 'M') students with food type allery.", "question_toks": ["Find", "the", "number", "of", "male", "(", "sex", "is", "'", "M", "')", "students", "with", "food", "type", "allery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"m\"", null], "and", [false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0529", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0056", "db_id": "allergy_1", "query": "select count(*) from student where sex = \"m\"", "query_toks": ["select", "count", "(*)", "from", "student", "where", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "sex", "=", "value"], "question": "How many male students (sex is 'M') are?", "question_toks": ["How", "many", "male", "students", "(", "sex", "is", "'", "M", "')", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0530", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0057", "db_id": "apartment_rentals", "query": "select count(*) from apartments where apt_id not in (select apt_id from apartment_facilities)", "query_toks": ["select", "count", "(*)", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")"], "question": "How many apartments do not have facility?", "question_toks": ["How", "many", "apartments", "do", "not", "have", "facility", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1268", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0058", "db_id": "assets_maintenance", "query": "select asset_model from assets where asset_id not in (select asset_id from fault_log)", "query_toks": ["select", "asset_model", "from", "assets", "where", "asset_id", "not", "in", "(", "select", "asset_id", "from", "fault_log", ")"], "query_toks_no_value": ["select", "asset_model", "from", "assets", "where", "asset_id", "not", "in", "(", "select", "asset_id", "from", "fault_log", ")"], "question": "Which assets did not incur fault log? List the asset model.", "question_toks": ["Which", "assets", "did", "not", "incur", "fault", "log", "?", "List", "the", "asset", "model", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[true, 8, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3156", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0059", "db_id": "battle_death", "query": "select count(*) from battle", "query_toks": ["select", "count", "(*)", "from", "battle", "where", "id", "not", "in", "(", "select", "lost_in_battle", "from", "ship", "where", "tonnage", "=", "``", "225", "''", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "battle", "where", "id", "not", "in", "(", "select", "lost_in_battle", "from", "ship", "where", "tonnage", "=", "value", ")"], "question": "How many battles are?", "question_toks": ["How", "many", "battles", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"225\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0503", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "values_without_columns_0000", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["select", "area", "from", "state", "where", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value", "mexico"], "question": "how big is state new mexico", "question_toks": ["how", "big", "is", "state", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0012", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0001", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["select", "area", "from", "state", "where", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value", "mexico"], "question": "how large is state new mexico", "question_toks": ["how", "large", "is", "state", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0014", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0002", "db_id": "geo", "query": "select state_name from city where city_name = \"springfield\"", "query_toks": ["select", "state_name", "from", "city", "where", "city_name", "=", "``", "springfield", "''"], "query_toks_no_value": ["select", "state_name", "from", "city", "where", "city_name", "=", "value"], "question": "in what state is city springfield", "question_toks": ["in", "what", "state", "is", "city", "springfield"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"springfield\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0118", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0003", "db_id": "geo", "query": "select population from city where city_name = \"boulder\"", "query_toks": ["select", "population", "from", "city", "where", "city_name", "=", "``", "boulder", "''"], "query_toks_no_value": ["select", "population", "from", "city", "where", "city_name", "=", "value"], "question": "how many people live in city boulder", "question_toks": ["how", "many", "people", "live", "in", "city", "boulder"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"boulder\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0132", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0004", "db_id": "flight_2", "query": "select country from airlines where airline = \"jetblue airways\"", "query_toks": ["select", "country", "from", "airlines", "where", "airline", "=", "``", "jetblue", "airways", "''"], "query_toks_no_value": ["select", "country", "from", "airlines", "where", "airline", "=", "value", "airways"], "question": "What country is airline Jetblue Airways affiliated with?", "question_toks": ["What", "country", "is", "airline", "Jetblue", "Airways", "affiliated", "with", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"jetblue airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0180", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0005", "db_id": "flight_2", "query": "select count(*) from airlines where country = \"usa\"", "query_toks": ["select", "count", "(*)", "from", "airlines", "where", "country", "=", "``", "usa", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines", "where", "country", "=", "value"], "question": "How many airlines are from country USA?", "question_toks": ["How", "many", "airlines", "are", "from", "country", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0195", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0006", "db_id": "wta_1", "query": "select first_name , birth_date from players where country_code = \"usa\"", "query_toks": ["select", "first_name", ",", "birth_date", "from", "players", "where", "country_code", "=", "``", "usa", "''"], "query_toks_no_value": ["select", "first_name", ",", "birth_date", "from", "players", "where", "country_code", "=", "value"], "question": "What are the first names and birth dates of players from country with code USA?", "question_toks": ["What", "are", "the", "first", "names", "and", "birth", "dates", "of", "players", "from", "country", "with", "code", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0434", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0007", "db_id": "student_transcripts_tracking", "query": "select zip_postcode from addresses where city = \"port chelsea\"", "query_toks": ["select", "zip_postcode", "from", "addresses", "where", "city", "=", "``", "port", "chelsea", "''"], "query_toks_no_value": ["select", "zip_postcode", "from", "addresses", "where", "city", "=", "value", "chelsea"], "question": "What is the zip code for city Port Chelsea?", "question_toks": ["What", "is", "the", "zip", "code", "for", "city", "Port", "Chelsea", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"port chelsea\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0514", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0008", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = \"timmothy\" and last_name = \"ward\"", "query_toks": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "``", "timmothy", "''", "and", "last_name", "=", "``", "ward", "''"], "query_toks_no_value": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the mobile phone number of the student with first name Timmothy and last name Ward ?", "question_toks": ["What", "is", "the", "mobile", "phone", "number", "of", "the", "student", "with", "first", "name", "Timmothy", "and", "last", "name", "Ward", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"timmothy\"", null], "and", [false, 2, [0, [0, 37, false], null], "\"ward\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0554", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0009", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel where language != \"english\"", "query_toks": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel", "where", "language", "!=", "``", "english", "''"], "query_toks_no_value": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel", "where", "language", "!=", "value"], "question": "find the pixel aspect ratio and nation of the tv channels that do not use language English.", "question_toks": ["find", "the", "pixel", "aspect", "ratio", "and", "nation", "of", "the", "tv", "channels", "that", "do", "not", "use", "language", "English", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0639", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0010", "db_id": "world_1", "query": "select name from country where continent = \"asia\" order by lifeexpectancy limit 1", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "asia", "''", "order", "by", "lifeexpectancy", "limit", "1"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "order", "by", "lifeexpectancy", "limit", "1"], "question": "What is the name of country that has the shortest life expectancy in continent Asia?", "question_toks": ["What", "is", "the", "name", "of", "country", "that", "has", "the", "shortest", "life", "expectancy", "in", "continent", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0720", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0011", "db_id": "world_1", "query": "select name from country where continent = \"asia\" order by lifeexpectancy limit 1", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "asia", "''", "order", "by", "lifeexpectancy", "limit", "1"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "order", "by", "lifeexpectancy", "limit", "1"], "question": "Give the name of the country in continent Asia with the lowest life expectancy.", "question_toks": ["Give", "the", "name", "of", "the", "country", "in", "continent", "Asia", "with", "the", "lowest", "life", "expectancy", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0721", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0012", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value"], "question": "What is the total population and maximum GNP in continent Asia?", "question_toks": ["What", "is", "the", "total", "population", "and", "maximum", "GNP", "in", "continent", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0722", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0013", "db_id": "world_1", "query": "select avg(gnp) , sum(population) from country where governmentform = \"us territory\"", "query_toks": ["select", "avg", "(", "gnp", ")", ",", "sum", "(", "population", ")", "from", "country", "where", "governmentform", "=", "``", "us", "territory", "''"], "query_toks_no_value": ["select", "avg", "(", "gnp", ")", ",", "sum", "(", "population", ")", "from", "country", "where", "governmentform", "=", "value", "territory"], "question": "Give the mean GNP and total population of nations which are considered goverment form US.", "question_toks": ["Give", "the", "mean", "GNP", "and", "total", "population", "of", "nations", "which", "are", "considered", "goverment", "form", "US", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]], [4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"us territory\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0731", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0014", "db_id": "world_1", "query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"aruba\"", "query_toks": ["select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "aruba", "''"], "query_toks_no_value": ["select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value"], "question": "What is the total number of languages used in country named Aruba?", "question_toks": ["What", "is", "the", "total", "number", "of", "languages", "used", "in", "country", "named", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"aruba\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0736", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0015", "db_id": "world_1", "query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"aruba\"", "query_toks": ["select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "aruba", "''"], "query_toks_no_value": ["select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value"], "question": "How many languages are spoken in country with name Aruba?", "question_toks": ["How", "many", "languages", "are", "spoken", "in", "country", "with", "name", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"aruba\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0737", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0016", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "afghanistan", "''", "and", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many official languages does country with name Afghanistan have?", "question_toks": ["How", "many", "official", "languages", "does", "country", "with", "name", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0738", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0017", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "afghanistan", "''", "and", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many official languages are spoken in country with name Afghanistan?", "question_toks": ["How", "many", "official", "languages", "are", "spoken", "in", "country", "with", "name", "Afghanistan", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0739", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0018", "db_id": "world_1", "query": "select count(distinct continent) from country where code in ( select countrycode from countrylanguage where language like '%chinese%' );", "query_toks": ["select", "count", "(", "distinct", "continent", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "chinese", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "continent", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "What is the number of distinct continents where language Chinese is spoken?", "question_toks": ["What", "is", "the", "number", "of", "distinct", "continents", "where", "language", "Chinese", "is", "spoken", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"chinese\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0750", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0019", "db_id": "world_1", "query": "select count(*) from country where continent = \"asia\"", "query_toks": ["select", "count", "(*)", "from", "country", "where", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "where", "continent", "=", "value"], "question": "how many countries are in continent Asia?", "question_toks": ["how", "many", "countries", "are", "in", "continent", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0806", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0020", "db_id": "network_1", "query": "select id from highschooler where name = \"kyle\"", "query_toks": ["select", "id", "from", "highschooler", "where", "name", "=", "``", "kyle", "''"], "query_toks_no_value": ["select", "id", "from", "highschooler", "where", "name", "=", "value"], "question": "What is id of highschooler with name Kyle?", "question_toks": ["What", "is", "id", "of", "highschooler", "with", "name", "Kyle", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0873", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0021", "db_id": "bike_1", "query": "select count(*) from trip as t1 join station as t2 on t1.end_station_id = t2.id where t2.city != \"san francisco\"", "query_toks": ["select", "count", "(*)", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id", "where", "t2", ".", "city", "!=", "``", "san", "francisco", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id", "where", "t2", ".", "city", "!=", "value", "francisco"], "question": "How many trips did not end in city San Francisco?", "question_toks": ["How", "many", "trips", "did", "not", "end", "in", "city", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"san francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0166", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0022", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107 and events != \"fog\" and events != \"rain\"", "query_toks": ["select", "date", "from", "weather", "where", "zip_code", "=", "94107", "and", "events", "!=", "``", "fog", "''", "and", "events", "!=", "``", "rain", "''"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "zip_code", "=", "value", "and", "events", "!=", "value", "and", "events", "!=", "value"], "question": "In zip code 94107, on which day events Fog and Rain was not observed?", "question_toks": ["In", "zip", "code", "94107", ",", "on", "which", "day", "events", "Fog", "and", "Rain", "was", "not", "observed", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null], "and", [false, 7, [0, [0, 44, false], null], "\"fog\"", null], "and", [false, 7, [0, [0, 44, false], null], "\"rain\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0167", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0023", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10 except select name from station where city = \"san jose\"", "query_toks": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "10", "except", "select", "name", "from", "station", "where", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "10", "except", "select", "name", "from", "station", "where", "city", "=", "value", "jose"], "question": "What are the names of all stations that have more than 10 bikes available and are not located in city San Jose?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "that", "have", "more", "than", "10", "bikes", "available", "and", "are", "not", "located", "in", "city", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0172", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0024", "db_id": "bike_1", "query": "select count(*) from station as t1 join trip as t2 join station as t3 join trip as t4 on t1.id = t2.start_station_id and t2.id = t4.id and t3.id = t4.end_station_id where t1.city = \"mountain view\" and t3.city = \"palo alto\"", "query_toks": ["select", "count", "(*)", "from", "station", "as", "t1", "join", "trip", "as", "t2", "join", "station", "as", "t3", "join", "trip", "as", "t4", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "and", "t2", ".", "id", "=", "t4", ".", "id", "and", "t3", ".", "id", "=", "t4", ".", "end_station_id", "where", "t1", ".", "city", "=", "``", "mountain", "view", "''", "and", "t3", ".", "city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "station", "as", "t1", "join", "trip", "as", "t2", "join", "station", "as", "t3", "join", "trip", "as", "t4", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "and", "t2", ".", "id", "=", "t4", ".", "id", "and", "t3", ".", "id", "=", "t4", ".", "end_station_id", "where", "t1", ".", "city", "=", "value", "view", "and", "t3", ".", "city", "=", "value", "alto"], "question": "How many trips started from city Mountain View city and ended at city Palo Alto city?", "question_toks": ["How", "many", "trips", "started", "from", "city", "Mountain", "View", "city", "and", "ended", "at", "city", "Palo", "Alto", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"mountain view\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0209", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0025", "db_id": "flight_1", "query": "select eid , salary from employee where name = \"mark young\"", "query_toks": ["select", "eid", ",", "salary", "from", "employee", "where", "name", "=", "``", "mark", "young", "''"], "query_toks_no_value": ["select", "eid", ",", "salary", "from", "employee", "where", "name", "=", "value", "young"], "question": "Show the id and salary of employee with name Mark Young.", "question_toks": ["Show", "the", "id", "and", "salary", "of", "employee", "with", "name", "Mark", "Young", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"mark young\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0379", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0026", "db_id": "flight_1", "query": "select t3.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t1.name = \"john williams\"", "query_toks": ["select", "t3", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "``", "john", "williams", "''"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value", "williams"], "question": "What are the names of all aircrafts that employee with name John Williams have certificates to be able to fly?", "question_toks": ["What", "are", "the", "names", "of", "all", "aircrafts", "that", "employee", "with", "name", "John", "Williams", "have", "certificates", "to", "be", "able", "to", "fly", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"john williams\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0424", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0027", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"hkg\" or city_code = \"chi\"", "query_toks": ["select", "count", "(*)", "from", "student", "where", "city_code", "=", "``", "hkg", "''", "or", "city_code", "=", "``", "chi", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "where", "city_code", "=", "value", "or", "city_code", "=", "value"], "question": "Give the number of students living in cities with codes HKG or CHI.", "question_toks": ["Give", "the", "number", "of", "students", "living", "in", "cities", "with", "codes", "HKG", "or", "CHI", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"hkg\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"chi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0482", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0028", "db_id": "store_1", "query": "select email , phone from customers where first_name = \"astrid\" and last_name = \"gruber\"", "query_toks": ["select", "email", ",", "phone", "from", "customers", "where", "first_name", "=", "``", "astrid", "''", "and", "last_name", "=", "``", "gruber", "''"], "query_toks_no_value": ["select", "email", ",", "phone", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the email and phone number of customer with first name Astrid and last name Gruber?", "question_toks": ["What", "is", "the", "email", "and", "phone", "number", "of", "customer", "with", "first", "name", "Astrid", "and", "last", "name", "Gruber", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 32, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"astrid\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"gruber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0576", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0029", "db_id": "store_1", "query": "select phone from employees where first_name = \"nancy\" and last_name = \"edwards\"", "query_toks": ["select", "phone", "from", "employees", "where", "first_name", "=", "``", "nancy", "''", "and", "last_name", "=", "``", "edwards", "''"], "query_toks_no_value": ["select", "phone", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the the phone number of employee with first name Nancy and last name Edwards?", "question_toks": ["What", "is", "the", "the", "phone", "number", "of", "employee", "with", "first", "name", "Nancy", "and", "last", "name", "Edwards", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"nancy\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"edwards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0598", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0030", "db_id": "store_1", "query": "select count(*) from customers as t1 join invoices as t2 on t1.id = t2.customer_id where t1.first_name = \"lucas\" and t1.last_name = \"mancini\"", "query_toks": ["select", "count", "(*)", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "customer_id", "where", "t1", ".", "first_name", "=", "``", "lucas", "''", "and", "t1", ".", "last_name", "=", "``", "mancini", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "customer_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value"], "question": "How many orders does customer with first name Lucas and last name Mancini has?", "question_toks": ["How", "many", "orders", "does", "customer", "with", "first", "name", "Lucas", "and", "last", "name", "Mancini", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 39, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"lucas\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"mancini\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0607", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0031", "db_id": "store_1", "query": "select milliseconds from tracks where name = \"fast as a shark\"", "query_toks": ["select", "milliseconds", "from", "tracks", "where", "name", "=", "``", "fast", "as", "a", "shark", "''"], "query_toks_no_value": ["select", "milliseconds", "from", "tracks", "where", "name", "=", "value", "as", "a", "shark"], "question": "How many milliseconds long is track named Fast As a Shark?", "question_toks": ["How", "many", "milliseconds", "long", "is", "track", "named", "Fast", "As", "a", "Shark", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]]]], "where": [[false, 2, [0, [0, 50, false], null], "\"fast as a shark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0620", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0032", "db_id": "customers_card_transactions", "query": "select count(*) from customers_cards where card_type_code = \"debit\"", "query_toks": ["select", "count", "(*)", "from", "customers_cards", "where", "card_type_code", "=", "``", "debit", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "customers_cards", "where", "card_type_code", "=", "value"], "question": "How many cards with type code \"Debit\" do we have?", "question_toks": ["How", "many", "cards", "with", "type", "code", "\"", "Debit", "\"", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"debit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0707", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0033", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers except select t1.customer_id , t2.customer_first_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id where card_type_code = \"credit\"", "query_toks": ["select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "``", "credit", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "value"], "question": "Show the customer ids and firstname without a card with type code \"Credit\".", "question_toks": ["Show", "the", "customer", "ids", "and", "firstname", "without", "a", "card", "with", "type", "code", "\"", "Credit", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"credit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0727", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0034", "db_id": "culture_company", "query": "select t1.title , t3.book_title from movie as t1 join culture_company as t2 on t1.movie_id = t2.movie_id join book_club as t3 on t3.book_club_id = t2.book_club_id where t2.incorporated_in = \"china\"", "query_toks": ["select", "t1", ".", "title", ",", "t3", ".", "book_title", "from", "movie", "as", "t1", "join", "culture_company", "as", "t2", "on", "t1", ".", "movie_id", "=", "t2", ".", "movie_id", "join", "book_club", "as", "t3", "on", "t3", ".", "book_club_id", "=", "t2", ".", "book_club_id", "where", "t2", ".", "incorporated_in", "=", "``", "china", "''"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t3", ".", "book_title", "from", "movie", "as", "t1", "join", "culture_company", "as", "t2", "on", "t1", ".", "movie_id", "=", "t2", ".", "movie_id", "join", "book_club", "as", "t3", "on", "t3", ".", "book_club_id", "=", "t2", ".", "book_club_id", "where", "t2", ".", "incorporated_in", "=", "value"], "question": "Show the movie titles and book titles for all companies incorporated in China.", "question_toks": ["Show", "the", "movie", "titles", "and", "book", "titles", "for", "all", "companies", "incorporated", "in", "China", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"china\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6996", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "binary_0000", "db_id": "baseball_1", "query": "select min(yearid) from hall_of_fame where inducted = \"y\"", "query_toks": ["select", "min", "(", "yearid", ")", "from", "hall_of_fame", "where", "inducted", "=", "``", "y", "''"], "query_toks_no_value": ["select", "min", "(", "yearid", ")", "from", "hall_of_fame", "where", "inducted", "=", "value"], "question": "What is the earliest year when someone has \"Y\" in inducted?", "question_toks": ["What", "is", "the", "earliest", "year", "when", "someone", "has", "\"", "Y", "\"", "in", "inducted", "?"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[2, [0, [0, 145, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0000", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0001", "db_id": "baseball_1", "query": "select player_id from hall_of_fame where inducted = \"y\" and yearid = 1936 and category = \"player\"", "query_toks": ["select", "player_id", "from", "hall_of_fame", "where", "inducted", "=", "``", "y", "''", "and", "yearid", "=", "1936", "and", "category", "=", "``", "player", "''"], "query_toks_no_value": ["select", "player_id", "from", "hall_of_fame", "where", "inducted", "=", "value", "and", "yearid", "=", "value", "and", "category", "=", "value"], "question": "List the id of players who has \"Y\" for inducted into the hall of fame in 1936", "question_toks": ["List", "the", "id", "of", "players", "who", "has", "\"", "Y", "\"", "for", "inducted", "into", "the", "hall", "of", "fame", "in", "1936"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 144, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 145, false], null], 1936.0, null], "and", [false, 2, [0, [0, 151, false], null], "\"player\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0001", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0002", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "value"], "question": "Amount of debates with \"F\" in if affirmative win", "question_toks": ["Amount", "of", "debates", "with", "\"", "F", "\"", "in", "if", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0002", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0003", "db_id": "debate", "query": "select debate_id from debate_people where if_affirmative_win = \"t\"", "query_toks": ["select", "debate_id", "from", "debate_people", "where", "if_affirmative_win", "=", "``", "t", "''"], "query_toks_no_value": ["select", "debate_id", "from", "debate_people", "where", "if_affirmative_win", "=", "value"], "question": "Show ids of all debates with \"T\" in if affirmative win", "question_toks": ["Show", "ids", "of", "all", "debates", "with", "\"", "T", "\"", "in", "if", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0003", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0004", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "value"], "question": "Amount of debates without \"T\" in column if_affirmative_win", "question_toks": ["Amount", "of", "debates", "without", "\"", "T", "\"", "in", "column", "if_affirmative_win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0004", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0005", "db_id": "department_management", "query": "select distinct t1.age from management as t2 join head as t1 on t1.head_id = t2.head_id where t2.temporary_acting = \"no\"", "query_toks": ["select", "distinct", "t1", ".", "age", "from", "management", "as", "t2", "join", "head", "as", "t1", "on", "t1", ".", "head_id", "=", "t2", ".", "head_id", "where", "t2", ".", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "age", "from", "management", "as", "t2", "join", "head", "as", "t1", "on", "t1", ".", "head_id", "=", "t2", ".", "head_id", "where", "t2", ".", "temporary_acting", "=", "value"], "question": "What are the distinct ages of the heads whose temporary acting value is \u2018No'?", "question_toks": ["What", "are", "the", "distinct", "ages", "of", "the", "heads", "whose", "temporary", "acting", "value", "is", "\u2018", "No", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0005", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0006", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "Amount of \"No\" temporary acting managements", "question_toks": ["Amount", "of", "\"", "No", "\"", "temporary", "acting", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0006", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0007", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "Amount of managements that have \"No\" in temporary acting.", "question_toks": ["Amount", "of", "managements", "that", "have", "\"", "No", "\"", "in", "temporary", "acting", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0007", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0008", "db_id": "department_management", "query": "select distinct t1.age from management as t2 join head as t1 on t1.head_id = t2.head_id where t2.temporary_acting = \"yes\"", "query_toks": ["select", "distinct", "t1", ".", "age", "from", "management", "as", "t2", "join", "head", "as", "t1", "on", "t1", ".", "head_id", "=", "t2", ".", "head_id", "where", "t2", ".", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "age", "from", "management", "as", "t2", "join", "head", "as", "t1", "on", "t1", ".", "head_id", "=", "t2", ".", "head_id", "where", "t2", ".", "temporary_acting", "=", "value"], "question": "What are the distinct ages of the heads whose temporary acting value is 'Yes'?", "question_toks": ["What", "are", "the", "distinct", "ages", "of", "the", "heads", "whose", "temporary", "acting", "value", "is", "'", "Yes", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0012", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0009", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "How many managements with \"Yes\" for temporary acting are there?", "question_toks": ["How", "many", "managements", "with", "\"", "Yes", "\"", "for", "temporary", "acting", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0009", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0010", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "Amount of temporary acting managements (that is \"Yes\" in temporary actiong)", "question_toks": ["Amount", "of", "temporary", "acting", "managements", "(", "that", "is", "\"", "Yes", "\"", "in", "temporary", "actiong", ")"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0010", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0011", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 0", "query_toks": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "0"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have not been abandoned (0 stands for abandoned)", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "not", "been", "abandoned", "(", "0", "stands", "for", "abandoned", ")"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 0.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0011", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0012", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "1"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have been abandoned (1 stands for abandoned)", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "been", "abandoned", "(", "1", "stands", "for", "abandoned", ")"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0984", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0013", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "1"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "What are the dog name, age and weight of the dogs that were abandoned (1)?", "question_toks": ["What", "are", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "that", "were", "abandoned", "(", "1", ")?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0985", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0014", "db_id": "dog_kennels", "query": "select name from dogs where gender = \"1\"", "query_toks": ["select", "name", "from", "dogs", "where", "gender", "=", "``", "1", "''"], "query_toks_no_value": ["select", "name", "from", "dogs", "where", "gender", "=", "value"], "question": "Please, list all dog names in kennels with gender 1?", "question_toks": ["Please", ",", "list", "all", "dog", "names", "in", "kennels", "with", "gender", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0014", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0015", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"f\"", "query_toks": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "value"], "question": "Show ids of all shops with part time (full time if F) vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "part", "time", "(", "full", "time", "if", "F", ")", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0015", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0016", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"t\"", "query_toks": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "value"], "question": "Show ids of all shops with full time (T) vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "full", "time", "(", "T", ")", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0016", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0017", "db_id": "flight_4", "query": "select callsign from airlines where active = \"n\"", "query_toks": ["select", "callsign", "from", "airlines", "where", "active", "=", "``", "n", "''"], "query_toks_no_value": ["select", "callsign", "from", "airlines", "where", "active", "=", "value"], "question": "What are callsigns of airlines with N-active?", "question_toks": ["What", "are", "callsigns", "of", "airlines", "with", "N", "-", "active", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0017", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0018", "db_id": "flight_4", "query": "select name from airlines where active = \"y\"", "query_toks": ["select", "name", "from", "airlines", "where", "active", "=", "``", "y", "''"], "query_toks_no_value": ["select", "name", "from", "airlines", "where", "active", "=", "value"], "question": "Names of airlines which status of activeness is \"Y\"", "question_toks": ["Names", "of", "airlines", "which", "status", "of", "activeness", "is", "\"", "Y", "\""], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0018", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0019", "db_id": "flight_4", "query": "select count(*) from airlines where active = \"y\" and country = \"canada\"", "query_toks": ["select", "count", "(*)", "from", "airlines", "where", "active", "=", "``", "y", "''", "and", "country", "=", "``", "canada", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines", "where", "active", "=", "value", "and", "country", "=", "value"], "question": "How many airlines are in Canada that have value \"Y\" for \"active\"?", "question_toks": ["How", "many", "airlines", "are", "in", "Canada", "that", "have", "value", "\"", "Y", "\"", "for", "\"", "active", "\"?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0019", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0020", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = \"n\"", "query_toks": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "``", "n", "''"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "List ids for all student who has \"N\" on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "has", "\"", "N", "\"", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0020", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0021", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where onscholarship = \"n\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "onscholarship", "=", "``", "n", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "What the total amount of games played those who has \"N\" onscholarship?", "question_toks": ["What", "the", "total", "amount", "of", "games", "played", "those", "who", "has", "\"", "N", "\"", "onscholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0021", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0022", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = \"y\"", "query_toks": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "List ids for all student who has \"Y\" on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "has", "\"", "Y", "\"", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6003", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0023", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = \"y\"", "query_toks": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "What are the ids for all sporty students whose parameter onscholarship is \"Y\"?", "question_toks": ["What", "are", "the", "ids", "for", "all", "sporty", "students", "whose", "parameter", "onscholarship", "is", "\"", "Y", "\"?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6004", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0024", "db_id": "game_1", "query": "select t2.lname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.onscholarship = \"y\"", "query_toks": ["select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "value"], "question": "Show last names for all student with \"Y\" value on scholarship.", "question_toks": ["Show", "last", "names", "for", "all", "student", "with", "\"", "Y", "\"", "value", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6005", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0025", "db_id": "game_1", "query": "select distinct(t2.lname) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.onscholarship = \"y\"", "query_toks": ["select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "value"], "question": "What are the last names for all students having \"Y\" onscholarship?", "question_toks": ["What", "are", "the", "last", "names", "for", "all", "students", "having", "\"", "Y", "\"", "onscholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6006", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0026", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = \"y\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "``", "football", "''", "and", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value"], "question": "How many games are played for all football games by students on scholarship (that is, the value of \"onscholarship\" is 'Y')?", "question_toks": ["How", "many", "games", "are", "played", "for", "all", "football", "games", "by", "students", "on", "scholarship", "(", "that", "is", ",", "the", "value", "of", "\"", "onscholarship", "\"", "is", "'", "Y", "')?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6009", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0027", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = \"y\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "``", "football", "''", "and", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value"], "question": "What is the total number of all football games played by Y onscholarship students?", "question_toks": ["What", "is", "the", "total", "number", "of", "all", "football", "games", "played", "by", "Y", "onscholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6010", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0028", "db_id": "game_1", "query": "select sportname from sportsinfo where onscholarship = \"y\" group by sportname order by count(*) desc limit 1", "query_toks": ["select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "``", "y", "''", "group", "by", "sportname", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "value", "group", "by", "sportname", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Which sport has most number of students having value \"Y\" in the \"onscholarship\"?", "question_toks": ["Which", "sport", "has", "most", "number", "of", "students", "having", "value", "\"", "Y", "\"", "in", "the", "\"", "onscholarship", "\"?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6019", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0029", "db_id": "game_1", "query": "select sportname from sportsinfo where onscholarship = \"y\" group by sportname order by count(*) desc limit 1", "query_toks": ["select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "``", "y", "''", "group", "by", "sportname", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "value", "group", "by", "sportname", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "What is the sport with the most students with \"Y\" onscholarship?", "question_toks": ["What", "is", "the", "sport", "with", "the", "most", "students", "with", "\"", "Y", "\"", "onscholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6020", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0030", "db_id": "game_1", "query": "select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = \"y\"", "query_toks": ["select", "stuid", "from", "student", "where", "major", "=", "600", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "major", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "Show student ids who has \"Y\" onscholarship and have major 600.", "question_toks": ["Show", "student", "ids", "who", "has", "\"", "Y", "\"", "onscholarship", "and", "have", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6023", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0031", "db_id": "game_1", "query": "select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = \"y\"", "query_toks": ["select", "stuid", "from", "student", "where", "major", "=", "600", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "major", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "What are the student ids for those on scholarship \"Y\" in major number 600?", "question_toks": ["What", "are", "the", "student", "ids", "for", "those", "on", "scholarship", "\"", "Y", "\"", "in", "major", "number", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6024", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0032", "db_id": "game_1", "query": "select avg(hoursperweek) from sportsinfo where onscholarship = \"y\"", "query_toks": ["select", "avg", "(", "hoursperweek", ")", "from", "sportsinfo", "where", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "avg", "(", "hoursperweek", ")", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "How many hours per week students which are Y onscholarship are playing in average?", "question_toks": ["How", "many", "hours", "per", "week", "students", "which", "are", "Y", "onscholarship", "are", "playing", "in", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0032", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0033", "db_id": "hospital_1", "query": "select t1.name , t3.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t2.primaryaffiliation = 1", "query_toks": ["select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "value"], "question": "Find the names of all physicians and their primary affiliated departments' names (primary affiliation is 1).", "question_toks": ["Find", "the", "names", "of", "all", "physicians", "and", "their", "primary", "affiliated", "departments", "'", "names", "(", "primary", "affiliation", "is", "1", ")."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3914", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0034", "db_id": "hospital_1", "query": "select t1.name , t3.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t2.primaryaffiliation = 1", "query_toks": ["select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "value"], "question": "What are the name and primarily affiliated (the value of primary affiliation is equal to 1) department name of each physician?", "question_toks": ["What", "are", "the", "name", "and", "primarily", "affiliated", "(", "the", "value", "of", "primary", "affiliation", "is", "equal", "to", "1", ")", "department", "name", "of", "each", "physician", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3915", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0035", "db_id": "hospital_1", "query": "select physician , department from affiliated_with where primaryaffiliation = 1", "query_toks": ["select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "value"], "question": "List the physicians' employee ids together with their primary affiliation departments' ids (that is, the primary affiiation is '1').", "question_toks": ["List", "the", "physicians", "'", "employee", "ids", "together", "with", "their", "primary", "affiliation", "departments", "'", "ids", "(", "that", "is", ",", "the", "primary", "affiiation", "is", "'", "1", "')."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3960", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0036", "db_id": "hospital_1", "query": "select physician , department from affiliated_with where primaryaffiliation = 1", "query_toks": ["select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "value"], "question": "What are each physician's employee id and department id primarily affiliated (equals 1).", "question_toks": ["What", "are", "each", "physician", "'", "s", "employee", "id", "and", "department", "id", "primarily", "affiliated", "(", "equals", "1", ")."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3961", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0037", "db_id": "hospital_1", "query": "select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation = 1", "query_toks": ["select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "value"], "question": "List the names of departments where some physicians are primarily affiliated (1) with.", "question_toks": ["List", "the", "names", "of", "departments", "where", "some", "physicians", "are", "primarily", "affiliated", "(", "1", ")", "with", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3962", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0038", "db_id": "hospital_1", "query": "select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation = 1", "query_toks": ["select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "value"], "question": "What are the names of departments that have primarily affiliated (primary affiliaion is 1) physicians.", "question_toks": ["What", "are", "the", "names", "of", "departments", "that", "have", "primarily", "affiliated", "(", "primary", "affiliaion", "is", "1", ")", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3963", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0039", "db_id": "hospital_1", "query": "select name from physician join affiliated_with on physician.employeeid = affiliated_with.physician where affiliated_with.primaryaffiliation = 1", "query_toks": ["select", "name", "from", "physician", "join", "affiliated_with", "on", "physician", ".", "employeeid", "=", "affiliated_with", ".", "physician", "where", "affiliated_with", ".", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "name", "from", "physician", "join", "affiliated_with", "on", "physician", ".", "employeeid", "=", "affiliated_with", ".", "physician", "where", "affiliated_with", ".", "primaryaffiliation", "=", "value"], "question": "Show the names of the physicians with value 1 for the primary affiliation", "question_toks": ["Show", "the", "names", "of", "the", "physicians", "with", "value", "1", "for", "the", "primary", "affiliation"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0039", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0040", "db_id": "hospital_1", "query": "select distinct name from nurse where registered = 1", "query_toks": ["select", "distinct", "name", "from", "nurse", "where", "registered", "=", "1"], "query_toks_no_value": ["select", "distinct", "name", "from", "nurse", "where", "registered", "=", "value"], "question": "What are the names of the nurses with registered 1?", "question_toks": ["What", "are", "the", "names", "of", "the", "nurses", "with", "registered", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0040", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0041", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from medicine where fda_approved = \"no\"", "query_toks": ["select", "count", "(*)", "from", "medicine", "where", "fda_approved", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "medicine", "where", "fda_approved", "=", "value"], "question": "How many medicines have FDA approved value equal to \u2018No'?", "question_toks": ["How", "many", "medicines", "have", "FDA", "approved", "value", "equal", "to", "\u2018", "No", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0960", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0042", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine where fda_approved = \"yes\"", "query_toks": ["select", "name", ",", "trade_name", "from", "medicine", "where", "fda_approved", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "name", ",", "trade_name", "from", "medicine", "where", "fda_approved", "=", "value"], "question": "What are the names and trade names of the medcines that are FDA approved whose FDA approved value is \u2018Yes'?", "question_toks": ["What", "are", "the", "names", "and", "trade", "names", "of", "the", "medcines", "that", "are", "FDA", "approved", "whose", "FDA", "approved", "value", "is", "\u2018", "Yes", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0946", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0043", "db_id": "orchestra", "query": "select min(attendance) from show where result = \"t\"", "query_toks": ["select", "min", "(", "attendance", ")", "from", "show", "where", "result", "=", "``", "t", "''"], "query_toks_no_value": ["select", "min", "(", "attendance", ")", "from", "show", "where", "result", "=", "value"], "question": "Minimum attendance of shows with T result", "question_toks": ["Minimum", "attendance", "of", "shows", "with", "T", "result"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0043", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0044", "db_id": "product_catalog", "query": "select max(catalog_level_number) from catalog_contents_additional_attributes where attribute_value = 1", "query_toks": ["select", "max", "(", "catalog_level_number", ")", "from", "catalog_contents_additional_attributes", "where", "attribute_value", "=", "1"], "query_toks_no_value": ["select", "max", "(", "catalog_level_number", ")", "from", "catalog_contents_additional_attributes", "where", "attribute_value", "=", "value"], "question": "What is the maximum level number of catalogs where attribute value is 1?", "question_toks": ["What", "is", "the", "maximum", "level", "number", "of", "catalogs", "where", "attribute", "value", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0044", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0045", "db_id": "products_for_hire", "query": "select avg(booked_count) from products_booked where returned_late_yn = 1", "query_toks": ["select", "avg", "(", "booked_count", ")", "from", "products_booked", "where", "returned_late_yn", "=", "1"], "query_toks_no_value": ["select", "avg", "(", "booked_count", ")", "from", "products_booked", "where", "returned_late_yn", "=", "value"], "question": "What is the average amount of booked counts where returned late yn is 1?", "question_toks": ["What", "is", "the", "average", "amount", "of", "booked", "counts", "where", "returned", "late", "yn", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]]]], "where": [[false, 2, [0, [0, 39, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0045", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0046", "db_id": "sakila_1", "query": "select count(*) from customer where active = \"1\"", "query_toks": ["select", "count", "(*)", "from", "customer", "where", "active", "=", "``", "1", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "customer", "where", "active", "=", "value"], "question": "Count the number of customers whose active-parameter equals 1.", "question_toks": ["Count", "the", "number", "of", "customers", "whose", "active", "-", "parameter", "equals", "1", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2947", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0047", "db_id": "sakila_1", "query": "select first_name from customer where active = 1", "query_toks": ["select", "first_name", "from", "customer", "where", "active", "=", "1"], "query_toks_no_value": ["select", "first_name", "from", "customer", "where", "active", "=", "value"], "question": "Show me the first names of customers with active is equal to 1", "question_toks": ["Show", "me", "the", "first", "names", "of", "customers", "with", "active", "is", "equal", "to", "1"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0047", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0048", "db_id": "school_bus", "query": "select count(distinct school_id) from school_bus where if_full_time = \"t\"", "query_toks": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "value"], "question": "How many schools have buses with T if full time?", "question_toks": ["How", "many", "schools", "have", "buses", "with", "T", "if", "full", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0048", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0049", "db_id": "school_bus", "query": "select count(*) from school where school_id not in ( select school_id from school_bus where if_full_time = 't' );", "query_toks": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "value"], "question": "How many schools don't have T full-time buses?", "question_toks": ["How", "many", "schools", "don", "'", "t", "have", "T", "full", "-", "time", "buses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0049", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0050", "db_id": "soccer_2", "query": "select avg(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"no\"", "query_toks": ["select", "avg", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "``", "no", "''"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "Find the average hours for the students whose tryout decision is no.", "question_toks": ["Find", "the", "average", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "no", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0050", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0051", "db_id": "soccer_2", "query": "select count(*) from tryout where decision = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "tryout", "where", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "tryout", "where", "decision", "=", "value"], "question": "How many students got accepted (with \"yes\" decision) after the tryout?", "question_toks": ["How", "many", "students", "got", "accepted", "(", "with", "\"", "yes", "\"", "decision", ")", "after", "the", "tryout", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4962", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0052", "db_id": "soccer_2", "query": "select pname from player where ycard = \"yes\" order by hs desc", "query_toks": ["select", "pname", "from", "player", "where", "ycard", "=", "``", "yes", "''", "order", "by", "hs", "desc"], "query_toks_no_value": ["select", "pname", "from", "player", "where", "ycard", "=", "value", "order", "by", "hs", "desc"], "question": "What are the name of the players who received a card (ycard-value is \"yes\") in descending order of the hours of training?", "question_toks": ["What", "are", "the", "name", "of", "the", "players", "who", "received", "a", "card", "(", "ycard", "-", "value", "is", "\"", "yes", "\")", "in", "descending", "order", "of", "the", "hours", "of", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4981", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0053", "db_id": "soccer_2", "query": "select distinct t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = \"yes\"", "query_toks": ["select", "distinct", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value"], "question": "What are the different states that had students successfully try out (it means that they received \"yes\"-decision)?", "question_toks": ["What", "are", "the", "different", "states", "that", "had", "students", "successfully", "try", "out", "(", "it", "means", "that", "they", "received", "\"", "yes", "\"-", "decision", ")?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4997", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0054", "db_id": "soccer_2", "query": "select t1.pname , t1.hs from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["select", "t1", ".", "pname", ",", "t1", ".", "hs", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "t1", ".", "pname", ",", "t1", ".", "hs", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "Find the name and hours of the students whose tryout decision is yes.", "question_toks": ["Find", "the", "name", "and", "hours", "of", "the", "students", "whose", "tryout", "decision", "is", "yes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0054", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0055", "db_id": "soccer_2", "query": "select t1.pname from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\" and t2.ppos = \"striker\"", "query_toks": ["select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "``", "yes", "''", "and", "t2", ".", "ppos", "=", "``", "striker", "''"], "query_toks_no_value": ["select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value", "and", "t2", ".", "ppos", "=", "value"], "question": "What are the names of all students who successfully got decision \"yes\" for the position of striker?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "successfully", "got", "decision", "\"", "yes", "\"", "for", "the", "position", "of", "striker", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"striker\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5007", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0056", "db_id": "soccer_2", "query": "select avg(t1.hs) , max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "What is the average and maximum number of hours students who made the team practiced (got \"yes\" decision)?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "(", "got", "\"", "yes", "\"", "decision", ")?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5011", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0057", "db_id": "soccer_2", "query": "select cname from tryout where decision = \"yes\" and ppos = \"goalie\"", "query_toks": ["select", "cname", "from", "tryout", "where", "decision", "=", "``", "yes", "''", "and", "ppos", "=", "``", "goalie", "''"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "decision", "=", "value", "and", "ppos", "=", "value"], "question": "Which college has any student who is a goalie and received decision \"yes\" in the tryout.", "question_toks": ["Which", "college", "has", "any", "student", "who", "is", "a", "goalie", "and", "received", "decision", "\"", "yes", "\"", "in", "the", "tryout", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5018", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0058", "db_id": "soccer_2", "query": "select cname from tryout where decision = \"yes\" and ppos = \"goalie\"", "query_toks": ["select", "cname", "from", "tryout", "where", "decision", "=", "``", "yes", "''", "and", "ppos", "=", "``", "goalie", "''"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "decision", "=", "value", "and", "ppos", "=", "value"], "question": "What college has a student who successfully made the team (got \"yes\" decision) in the role of a goalie?", "question_toks": ["What", "college", "has", "a", "student", "who", "successfully", "made", "the", "team", "(", "got", "\"", "yes", "\"", "decision", ")", "in", "the", "role", "of", "a", "goalie", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5019", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0059", "db_id": "soccer_2", "query": "select distinct t1.state , t1.enr from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = \"yes\"", "query_toks": ["select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value"], "question": "What is the state and enrollment of the colleges where have any students who got \"yes\" in the tryout decision.", "question_toks": ["What", "is", "the", "state", "and", "enrollment", "of", "the", "colleges", "where", "have", "any", "students", "who", "got", "\"", "yes", "\"", "in", "the", "tryout", "decision", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5022", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0060", "db_id": "soccer_2", "query": "select distinct t1.state , t1.enr from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = \"yes\"", "query_toks": ["select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value"], "question": "How many students are enrolled in colleges that have student got \"yes\" decision during tryouts, and in which states are those colleges?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "colleges", "that", "have", "student", "got", "\"", "yes", "\"", "decision", "during", "tryouts", ",", "and", "in", "which", "states", "are", "those", "colleges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5023", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0061", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"no\"", "query_toks": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "``", "no", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "Find the package choice and series name of the TV channel that has value NO for high definition TV option.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "value", "NO", "for", "high", "definition", "TV", "option", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0061", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0062", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"no\"", "query_toks": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "value"], "question": "Amount of TV channels which paying per view option has value \u201cno\u201d", "question_toks": ["Amount", "of", "TV", "channels", "which", "paying", "per", "view", "option", "has", "value", "\u201c", "no", "\u201d"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0062", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0063", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "Find the package choice and series name of the TV channel that has value YES for high definition TV option.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "value", "YES", "for", "high", "definition", "TV", "option", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0631", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0064", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "Find the package choice and series name of the TV channel with value YES for high definition TV option.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "with", "value", "YES", "for", "high", "definition", "TV", "option", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0632", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0065", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "value"], "question": "Amount of TV channels which paying per view option has value \u201cyes\u201d", "question_toks": ["Amount", "of", "TV", "channels", "which", "paying", "per", "view", "option", "has", "value", "\u201c", "yes", "\u201d"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0065", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0066", "db_id": "wedding", "query": "select count(*) from people where is_male = \"f\"", "query_toks": ["select", "count", "(*)", "from", "people", "where", "is_male", "=", "``", "f", "''", "and", "age", ">", "30"], "query_toks_no_value": ["select", "count", "(*)", "from", "people", "where", "is_male", "=", "value", "and", "age", ">", "value"], "question": "How many people, wich option is_male is equal to \"F\", are in our record?", "question_toks": ["How", "many", "people", ",", "wich", "option", "is_male", "is", "equal", "to", "\"", "F", "\",", "are", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1636", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0067", "db_id": "wedding", "query": "select name, age from people where is_male = 'f' and people_id not in (select female_id from wedding);", "query_toks": ["select", "t2", ".", "name", "from", "wedding", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "female_id", "=", "t2", ".", "people_id", "where", "t1", ".", "year", "=", "2016", "and", "t2", ".", "is_male", "=", "``", "f", "''", "and", "t2", ".", "country", "=", "``", "canada", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "wedding", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "female_id", "=", "t2", ".", "people_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "is_male", "=", "value", "and", "t2", ".", "country", "=", "value"], "question": "Show the name and age for all F male people who don't have a wedding.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "F", "male", "people", "who", "don", "'", "t", "have", "a", "wedding", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1644", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0068", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"f\"", "query_toks": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "``", "f", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "value"], "question": "Average age of persons with is_male F.", "question_toks": ["Average", "age", "of", "persons", "with", "is_male", "F", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0068", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0069", "db_id": "wedding", "query": "select count(*) from people where is_male = \"t\"", "query_toks": ["select", "count", "(*)", "from", "people", "where", "is_male", "=", "``", "t", "''", "and", "age", ">", "30"], "query_toks_no_value": ["select", "count", "(*)", "from", "people", "where", "is_male", "=", "value", "and", "age", ">", "value"], "question": "How many people, wich option is_male is equal to \"T\", are in our record?", "question_toks": ["How", "many", "people", ",", "wich", "option", "is_male", "is", "equal", "to", "\"", "T", "\",", "are", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0069", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0070", "db_id": "wedding", "query": "select name , age from people where is_male = \"t\" and people_id not in (select male_id from wedding)", "query_toks": ["select", "name", ",", "age", "from", "people", "where", "is_male", "=", "``", "t", "''", "and", "people_id", "not", "in", "(", "select", "male_id", "from", "wedding", ")"], "query_toks_no_value": ["select", "name", ",", "age", "from", "people", "where", "is_male", "=", "value", "and", "people_id", "not", "in", "(", "select", "male_id", "from", "wedding", ")"], "question": "Show the name and age for all T male people who don't have a wedding.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "T", "male", "people", "who", "don", "'", "t", "have", "a", "wedding", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1641", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0071", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"t\"", "query_toks": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "``", "t", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "value"], "question": "Show me the average age of those who have T in is male.", "question_toks": ["Show", "me", "the", "average", "age", "of", "those", "who", "have", "T", "in", "is", "male", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0071", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0072", "db_id": "wedding", "query": "select count(distinct country) from people where is_male = \"t\"", "query_toks": ["select", "count", "(", "distinct", "country", ")", "from", "people", "where", "is_male", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "country", ")", "from", "people", "where", "is_male", "=", "value"], "question": "How many countries are the person with T is-male from?", "question_toks": ["How", "many", "countries", "are", "the", "person", "with", "T", "is", "-", "male", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0072", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0073", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"f\"", "query_toks": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "afghanistan", "''", "and", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many language does Afghanistan have which offiiciality is equal to F?", "question_toks": ["How", "many", "language", "does", "Afghanistan", "have", "which", "offiiciality", "is", "equal", "to", "F", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0073", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0074", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and t2.isofficial = \"f\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"french\" and t2.isofficial = \"f\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "t2", ".", "isofficial", "=", "``", "f", "''", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "french", "''", "and", "t2", ".", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What are the names of nations where both English and French languages have value isOfficial are equal to F?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "languages", "have", "value", "isOfficial", "are", "equal", "to", "F", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0074", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0075", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"f\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"f\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "isofficial", "=", "``", "f", "''", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''", "and", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where either English or Dutch is the language with F for the value of officiality?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "language", "with", "F", "for", "the", "value", "of", "officiality", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0075", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0076", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"beatrix\" and t2.isofficial = \"f\"", "query_toks": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "``", "beatrix", "''", "and", "t2", ".", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the F-official language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "F", "-", "official", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0076", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0077", "db_id": "world_1", "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 = \"f\"", "query_toks": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "1930", "and", "t2", ".", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the total number of unique inofficial languages (isOfficial is F) spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "inofficial", "languages", "(", "isOfficial", "is", "F", ")", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0077", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0078", "db_id": "world_1", "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 = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["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", "=", "``", "f", "''", "and", "t2", ".", "language", "=", "``", "chinese", "''", "and", "t1", ".", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the unofficial (F) language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "unofficial", "(", "F", ")", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0078", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0079", "db_id": "world_1", "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 = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["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", "=", "``", "f", "''", "and", "t2", ".", "language", "=", "``", "chinese", "''", "and", "t1", ".", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the inofficial (isOfficial=F) language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "inofficial", "(", "isOfficial", "=", "F", ")", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0079", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0080", "db_id": "world_1", "query": "select distinct(countrycode) from countrylanguage where isofficial = \"f\" and percentage > 10", "query_toks": ["select", "distinct", "(", "countrycode", ")", "from", "countrylanguage", "where", "isofficial", "=", "``", "f", "''", "and", "percentage", ">", "10"], "query_toks_no_value": ["select", "distinct", "(", "countrycode", ")", "from", "countrylanguage", "where", "isofficial", "=", "value", "and", "percentage", ">", "value"], "question": "Print me different codes of countries in which there are more then 10 percent of people speaking not official (\u201cF\u201d) languages", "question_toks": ["Print", "me", "different", "codes", "of", "countries", "in", "which", "there", "are", "more", "then", "10", "percent", "of", "people", "speaking", "not", "official", "(\u201c", "F", "\u201d)", "languages"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 3, [0, [0, 26, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0080", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0081", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "afghanistan", "''", "and", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many languages with filter T for isOfficial does Afghanistan have?", "question_toks": ["How", "many", "languages", "with", "filter", "T", "for", "isOfficial", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0738", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0082", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "afghanistan", "''", "and", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many T official languages are spoken in Afghanistan?", "question_toks": ["How", "many", "T", "official", "languages", "are", "spoken", "in", "Afghanistan", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0739", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0083", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What are the names of nations where both English and French languages have value isOfficial are equal to T?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "languages", "have", "value", "isOfficial", "are", "equal", "to", "T", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0748", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0084", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "Give the names of countries in which languages English and French have the T for officiality value?", "question_toks": ["Give", "the", "names", "of", "countries", "in", "which", "languages", "English", "and", "French", "have", "the", "T", "for", "officiality", "value", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0749", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0085", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "isofficial", "=", "``", "t", "''", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''", "and", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where either English or Dutch is the language with T for the value of officiality?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "language", "with", "T", "for", "the", "value", "of", "officiality", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0754", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0086", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "Which countries have either English or Dutch as an official language? For the official language value T is stand", "question_toks": ["Which", "countries", "have", "either", "English", "or", "Dutch", "as", "an", "official", "language", "?", "For", "the", "official", "language", "value", "T", "is", "stand"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0755", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0087", "db_id": "world_1", "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\"", "query_toks": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "``", "beatrix", "''", "and", "t2", ".", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the T-official language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "T", "-", "official", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0768", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0088", "db_id": "world_1", "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\"", "query_toks": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "``", "beatrix", "''", "and", "t2", ".", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the language with isOfficial is T used in the country the name of whose head of state is Beatrix.", "question_toks": ["What", "is", "the", "language", "with", "isOfficial", "is", "T", "used", "in", "the", "country", "the", "name", "of", "whose", "head", "of", "state", "is", "Beatrix", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0769", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0089", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the total number of unique official languages (isOfficial is T) spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "(", "isOfficial", "is", "T", ")", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0770", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0090", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "For the countries founded before 1930, what is the total number of distinct languages which officially is T?", "question_toks": ["For", "the", "countries", "founded", "before", "1930", ",", "what", "is", "the", "total", "number", "of", "distinct", "languages", "which", "officially", "is", "T", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0771", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0091", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the official (T) language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "official", "(", "T", ")", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0786", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0092", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the official (isOfficial=T) language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "official", "(", "isOfficial", "=", "T", ")", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0787", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0093", "db_id": "world_1", "query": "select avg(percentage) from countrylanguage where isofficial = \"t\"", "query_toks": ["select", "avg", "(", "percentage", ")", "from", "countrylanguage", "where", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "avg", "(", "percentage", ")", "from", "countrylanguage", "where", "isofficial", "=", "value"], "question": "What is the average percentage of people in countries speaking some language with T as officially value?", "question_toks": ["What", "is", "the", "average", "percentage", "of", "people", "in", "countries", "speaking", "some", "language", "with", "T", "as", "officially", "value", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0093", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0094", "db_id": "world_1", "query": "select percentage from countrylanguage where isofficial = \"t\" and countrycode = \"kaz\"", "query_toks": ["select", "percentage", "from", "countrylanguage", "where", "isofficial", "=", "``", "t", "''", "and", "countrycode", "=", "``", "kaz", "''"], "query_toks_no_value": ["select", "percentage", "from", "countrylanguage", "where", "isofficial", "=", "value", "and", "countrycode", "=", "value"], "question": "What is the percentage of people speaking language in KAZ with T officially status?", "question_toks": ["What", "is", "the", "percentage", "of", "people", "speaking", "language", "in", "KAZ", "with", "T", "officially", "status", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"kaz\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0094", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "order_by_0000", "db_id": "department_store", "query": "select order_id , customer_id from customer_orders where order_status_code = \"\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0438\u043b\u0438\u0430\u043b\"", "query_toks": ["select", "order_id", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "``", "\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d", "\u0432", "\u0434\u0440\u0443\u0433\u043e\u0439", "\u0444\u0438\u043b\u0438\u0430\u043b", "''"], "query_toks_no_value": ["select", "order_id", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "value", "\u0432", "\u0434\u0440\u0443\u0433\u043e\u0439", "\u0444\u0438\u043b\u0438\u0430\u043b"], "question": "Show, please, the order id, customer id for orders that was rescheduled.", "question_toks": ["Show", ",", "please", ",", "the", "order", "id", ",", "customer", "id", "for", "orders", "that", "was", "rescheduled", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0438\u043b\u0438\u0430\u043b\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_order_by_0000", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0001", "db_id": "riding_club", "query": "select distinct(rank) from player where gender = \"m\"", "query_toks": ["select", "distinct", "(", "rank", ")", "from", "player", "where", "gender", "=", "``", "m", "''"], "query_toks_no_value": ["select", "distinct", "(", "rank", ")", "from", "player", "where", "gender", "=", "value"], "question": "Ranks of the men. Bring each one out once.", "question_toks": ["Ranks", "of", "the", "men", ".", "Bring", "each", "one", "out", "once", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_order_by_0001", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0002", "db_id": "riding_club", "query": "select distinct(rank) from player where gender = \"m\"", "query_toks": ["select", "distinct", "(", "rank", ")", "from", "player", "where", "gender", "=", "``", "m", "''"], "query_toks_no_value": ["select", "distinct", "(", "rank", ")", "from", "player", "where", "gender", "=", "value"], "question": "Distinct ranks of the men.", "question_toks": ["Distinct", "ranks", "of", "the", "men", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_order_by_0002", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0003", "db_id": "battle_death", "query": "select name , tonnage from ship", "query_toks": ["select", "name", ",", "tonnage", "from", "ship"], "query_toks_no_value": ["select", "name", ",", "tonnage", "from", "ship"], "question": "List the name and tonnage.", "question_toks": ["List", "the", "name", "and", "tonnage", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0492", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0004", "db_id": "concert_singer", "query": "select name , country , age from singer", "query_toks": ["select", "name", ",", "country", ",", "age", "from", "singer"], "query_toks_no_value": ["select", "name", ",", "country", ",", "age", "from", "singer"], "question": "Show name, country, age for all singers.", "question_toks": ["Show", "name", ",", "country", ",", "age", "for", "all", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0002", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0005", "db_id": "concert_singer", "query": "select name , country , age from singer", "query_toks": ["select", "name", ",", "country", ",", "age", "from", "singer"], "query_toks_no_value": ["select", "name", ",", "country", ",", "age", "from", "singer"], "question": "What are the names, countries, and ages for every singer?", "question_toks": ["What", "are", "the", "names", ",", "countries", ",", "and", "ages", "for", "every", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0003", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0006", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "List the names of teachers.", "question_toks": ["List", "the", "names", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0383", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0007", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "What are the names of the teachers?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0384", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0008", "db_id": "course_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 ", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "in", "ascending", "alphabetical"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0401", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0009", "db_id": "course_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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the names of the teachers and the courses they teach?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "and", "the", "courses", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0402", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0010", "db_id": "employee_hire_evaluation", "query": "select name from employee", "query_toks": ["select", "name", "from", "employee"], "query_toks_no_value": ["select", "name", "from", "employee"], "question": "Employee names.", "question_toks": ["Employee", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0261", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0011", "db_id": "employee_hire_evaluation", "query": "select name from employee", "query_toks": ["select", "name", "from", "employee"], "query_toks_no_value": ["select", "name", "from", "employee"], "question": "List the names of employees.", "question_toks": ["List", "the", "names", "of", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0262", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0012", "db_id": "employee_hire_evaluation", "query": "select name , location , district from shop", "query_toks": ["select", "name", ",", "location", ",", "district", "from", "shop"], "query_toks_no_value": ["select", "name", ",", "location", ",", "district", "from", "shop"], "question": "Return the name, location and district of all shops.", "question_toks": ["Return", "the", "name", ",", "location", "and", "district", "of", "all", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0273", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0013", "db_id": "employee_hire_evaluation", "query": "select name , location , district from shop", "query_toks": ["select", "name", ",", "location", ",", "district", "from", "shop"], "query_toks_no_value": ["select", "name", ",", "location", ",", "district", "from", "shop"], "question": "All the shops. Return the name, location and district of each shop.", "question_toks": ["All", "the", "shops", ".", "Return", "the", "name", ",", "location", "and", "district", "of", "each", "shop", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0274", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0014", "db_id": "museum_visit", "query": "select name from visitor where level_of_membership > 4", "query_toks": ["select", "name", "from", "visitor", "where", "level_of_membership", ">", "4"], "query_toks_no_value": ["select", "name", "from", "visitor", "where", "level_of_membership", ">", "value"], "question": "Find the names of the visitors whose membership level is higher than 4.", "question_toks": ["Find", "the", "names", "of", "the", "visitors", "whose", "membership", "level", "is", "higher", "than", "4", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0412", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0015", "db_id": "museum_visit", "query": "select name , level_of_membership from visitor where level_of_membership > 4", "query_toks": ["select", "name", ",", "level_of_membership", "from", "visitor", "where", "level_of_membership", ">", "4"], "query_toks_no_value": ["select", "name", ",", "level_of_membership", "from", "visitor", "where", "level_of_membership", ">", "value"], "question": "Find the name and membership level of the visitors whose membership level is higher than 4.", "question_toks": ["Find", "the", "name", "and", "membership", "level", "of", "the", "visitors", "whose", "membership", "level", "is", "higher", "than", "4", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0414", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0016", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["select", "name", "from", "conductor"], "query_toks_no_value": ["select", "name", "from", "conductor"], "question": "List the names of conductors.", "question_toks": ["List", "the", "names", "of", "conductors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0824", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0017", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["select", "name", "from", "conductor"], "query_toks_no_value": ["select", "name", "from", "conductor"], "question": "What are the names of conductors?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0825", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0018", "db_id": "orchestra", "query": "select record_company from orchestra", "query_toks": ["select", "record_company", "from", "orchestra"], "query_toks_no_value": ["select", "record_company", "from", "orchestra"], "question": "What are the record companies of orchestras?", "question_toks": ["What", "are", "the", "record", "companies", "of", "orchestras", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0828", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0019", "db_id": "orchestra", "query": "select record_company from orchestra", "query_toks": ["select", "record_company", "from", "orchestra"], "query_toks_no_value": ["select", "record_company", "from", "orchestra"], "question": "Return the record companies of orchestras.", "question_toks": ["Return", "the", "record", "companies", "of", "orchestras", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0829", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0020", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["select", "name", "from", "conductor"], "query_toks_no_value": ["select", "name", "from", "conductor"], "question": "List names of conductors.", "question_toks": ["List", "names", "of", "conductors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0836", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0021", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["select", "name", "from", "conductor"], "query_toks_no_value": ["select", "name", "from", "conductor"], "question": "What are the names of conductors?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0837", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0022", "db_id": "poker_player", "query": "select earnings from poker_player", "query_toks": ["select", "earnings", "from", "poker_player"], "query_toks_no_value": ["select", "earnings", "from", "poker_player"], "question": "List the earnings of poker players.", "question_toks": ["List", "the", "earnings", "of", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0649", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0023", "db_id": "poker_player", "query": "select earnings from poker_player", "query_toks": ["select", "earnings", "from", "poker_player"], "query_toks_no_value": ["select", "earnings", "from", "poker_player"], "question": "What are the earnings of poker players?", "question_toks": ["What", "are", "the", "earnings", "of", "poker", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0650", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0024", "db_id": "poker_player", "query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", "query_toks": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "question": "List the names of poker players.", "question_toks": ["List", "the", "names", "of", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0663", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0025", "db_id": "poker_player", "query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", "query_toks": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "question": "What are the names of poker players?", "question_toks": ["What", "are", "the", "names", "of", "poker", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0664", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0026", "db_id": "poker_player", "query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", "query_toks": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "question": "What are the names of poker players?", "question_toks": ["What", "are", "the", "names", "of", "poker", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0671", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0027", "db_id": "poker_player", "query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", "query_toks": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "question": "Return the names of poker players.", "question_toks": ["Return", "the", "names", "of", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0672", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0028", "db_id": "poker_player", "query": "select name , birth_date from people", "query_toks": ["select", "name", ",", "birth_date", "from", "people"], "query_toks_no_value": ["select", "name", ",", "birth_date", "from", "people"], "question": "List the names and birth dates of people.", "question_toks": ["List", "the", "names", "and", "birth", "dates", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0679", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0029", "db_id": "poker_player", "query": "select name , birth_date from people", "query_toks": ["select", "name", ",", "birth_date", "from", "people"], "query_toks_no_value": ["select", "name", ",", "birth_date", "from", "people"], "question": "What are the names and birth dates of people?", "question_toks": ["What", "are", "the", "names", "and", "birth", "dates", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0680", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0030", "db_id": "singer", "query": "select name from singer", "query_toks": ["select", "name", "from", "singer"], "query_toks_no_value": ["select", "name", "from", "singer"], "question": "List the name of singers.", "question_toks": ["List", "the", "name", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1002", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0031", "db_id": "singer", "query": "select name from singer", "query_toks": ["select", "name", "from", "singer"], "query_toks_no_value": ["select", "name", "from", "singer"], "question": "What are the names of singers?", "question_toks": ["What", "are", "the", "names", "of", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1003", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0032", "db_id": "student_transcripts_tracking", "query": "select section_name from sections", "query_toks": ["select", "section_name", "from", "sections"], "query_toks_no_value": ["select", "section_name", "from", "sections"], "question": "List the section_name.", "question_toks": ["List", "the", "section_name", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0527", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0033", "db_id": "student_transcripts_tracking", "query": "select section_name from sections", "query_toks": ["select", "section_name", "from", "sections"], "query_toks_no_value": ["select", "section_name", "from", "sections"], "question": "What are the names of the sections?", "question_toks": ["What", "are", "the", "names", "of", "the", "sections", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0528", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0034", "db_id": "student_transcripts_tracking", "query": "select other_student_details from students", "query_toks": ["select", "other_student_details", "from", "students"], "query_toks_no_value": ["select", "other_student_details", "from", "students"], "question": "List all the student details.", "question_toks": ["List", "all", "the", "student", "details", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0579", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0035", "db_id": "student_transcripts_tracking", "query": "select other_student_details from students", "query_toks": ["select", "other_student_details", "from", "students"], "query_toks_no_value": ["select", "other_student_details", "from", "students"], "question": "What other details can you tell me about students?", "question_toks": ["What", "other", "details", "can", "you", "tell", "me", "about", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0580", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0036", "db_id": "tvshow", "query": "select title from cartoon", "query_toks": ["select", "title", "from", "cartoon"], "query_toks_no_value": ["select", "title", "from", "cartoon"], "question": "List the title of all cartoons.", "question_toks": ["List", "the", "title", "of", "all", "cartoons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0585", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0037", "db_id": "tvshow", "query": "select title from cartoon", "query_toks": ["select", "title", "from", "cartoon"], "query_toks_no_value": ["select", "title", "from", "cartoon"], "question": "What are the titles of the cartoons?", "question_toks": ["What", "are", "the", "titles", "of", "the", "cartoons", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0586", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0038", "db_id": "tvshow", "query": "select title , directed_by from cartoon", "query_toks": ["select", "title", ",", "directed_by", "from", "cartoon"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "cartoon"], "question": "list all cartoon titles and their directors", "question_toks": ["list", "all", "cartoon", "titles", "and", "their", "directors"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0591", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0039", "db_id": "tvshow", "query": "select title , directed_by from cartoon", "query_toks": ["select", "title", ",", "directed_by", "from", "cartoon"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "cartoon"], "question": "What is the name and directors of all the cartoons?", "question_toks": ["What", "is", "the", "name", "and", "directors", "of", "all", "the", "cartoons", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0592", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0040", "db_id": "tvshow", "query": "select episode from tv_series", "query_toks": ["select", "episode", "from", "tv_series"], "query_toks_no_value": ["select", "episode", "from", "tv_series"], "question": "List the Episode of all TV series.", "question_toks": ["List", "the", "Episode", "of", "all", "TV", "series", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0613", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0041", "db_id": "tvshow", "query": "select episode from tv_series", "query_toks": ["select", "episode", "from", "tv_series"], "query_toks_no_value": ["select", "episode", "from", "tv_series"], "question": "What are all of the episodes?", "question_toks": ["What", "are", "all", "of", "the", "episodes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0614", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0042", "db_id": "voter_1", "query": "select contestant_number , contestant_name from contestants", "query_toks": ["select", "contestant_number", ",", "contestant_name", "from", "contestants"], "query_toks_no_value": ["select", "contestant_number", ",", "contestant_name", "from", "contestants"], "question": "List the contestant numbers and names.", "question_toks": ["List", "the", "contestant", "numbers", "and", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0688", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0043", "db_id": "wta_1", "query": "select first_name , last_name from players", "query_toks": ["select", "first_name", ",", "last_name", "from", "players"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players"], "question": "List the first and last name of all players.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0455", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0044", "db_id": "wta_1", "query": "select first_name , last_name from players", "query_toks": ["select", "first_name", ",", "last_name", "from", "players"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players"], "question": "What are the full names of all players?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0456", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0045", "db_id": "wta_1", "query": "select first_name , last_name from players where hand = \"l\" ", "query_toks": ["select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "``", "l", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value"], "question": "List the first and last name of all players who are left / L hand.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "who", "are", "left", "/", "L", "hand", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"l\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0457", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0046", "db_id": "wta_1", "query": "select first_name , last_name from players where hand = \"l\" ", "query_toks": ["select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "``", "l", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value"], "question": "What are the full names of all left handed players?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "left", "handed", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"l\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0458", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0047", "db_id": "body_builder", "query": "select total from body_builder", "query_toks": ["select", "total", "from", "body_builder"], "query_toks_no_value": ["select", "total", "from", "body_builder"], "question": "List the total scores of body builders", "question_toks": ["List", "the", "total", "scores", "of", "body", "builders"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1151", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0048", "db_id": "body_builder", "query": "select snatch , clean_jerk from body_builder", "query_toks": ["select", "snatch", ",", "clean_jerk", "from", "body_builder"], "query_toks_no_value": ["select", "snatch", ",", "clean_jerk", "from", "body_builder"], "question": "List the snatch score and clean jerk score of body builders", "question_toks": ["List", "the", "snatch", "score", "and", "clean", "jerk", "score", "of", "body", "builders"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1152", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0049", "db_id": "body_builder", "query": "select birth_date from people", "query_toks": ["select", "birth_date", "from", "people"], "query_toks_no_value": ["select", "birth_date", "from", "people"], "question": "What are the birthdays of people?", "question_toks": ["What", "are", "the", "birthdays", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1155", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0050", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id", "query_toks": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "question": "What are the names of body builders?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1162", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0051", "db_id": "body_builder", "query": "select height , weight from people", "query_toks": ["select", "height", ",", "weight", "from", "people"], "query_toks_no_value": ["select", "height", ",", "weight", "from", "people"], "question": "List the height and weight of people.", "question_toks": ["List", "the", "height", "and", "weight", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1166", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0052", "db_id": "book_2", "query": "select writer from book", "query_toks": ["select", "writer", "from", "book"], "query_toks_no_value": ["select", "writer", "from", "book"], "question": "List the writers of the books.", "question_toks": ["List", "the", "writers", "of", "the", "books", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0214", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0053", "db_id": "book_2", "query": "select title from book", "query_toks": ["select", "title", "from", "book"], "query_toks_no_value": ["select", "title", "from", "book"], "question": "List the titles of the books.", "question_toks": ["List", "the", "titles", "of", "the", "books", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0215", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0054", "db_id": "book_2", "query": "select publication_date from publication", "query_toks": ["select", "publication_date", "from", "publication"], "query_toks_no_value": ["select", "publication_date", "from", "publication"], "question": "What are the dates of publications?", "question_toks": ["What", "are", "the", "dates", "of", "publications", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0218", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0055", "db_id": "book_2", "query": "select title from book", "query_toks": ["select", "t1", ".", "title", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id"], "question": "Show the titles of books.", "question_toks": ["Show", "the", "titles", "of", "books", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0224", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0056", "db_id": "program_share", "query": "select origin from program", "query_toks": ["select", "origin", "from", "program"], "query_toks_no_value": ["select", "origin", "from", "program"], "question": "What is the list of program origins?", "question_toks": ["What", "is", "the", "list", "of", "program", "origins", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3757", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0057", "db_id": "protein_institute", "query": "select name , street_address , floors from building", "query_toks": ["select", "name", ",", "street_address", ",", "floors", "from", "building"], "query_toks_no_value": ["select", "name", ",", "street_address", ",", "floors", "from", "building"], "question": "Show the name, street address, and number of floors for all buildings.", "question_toks": ["Show", "the", "name", ",", "street", "address", ",", "and", "number", "of", "floors", "for", "all", "buildings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1911", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0058", "db_id": "race_track", "query": "select name , seating from track where year_opened > 2000", "query_toks": ["select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "2000"], "query_toks_no_value": ["select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "value"], "question": "Show names and seatings for all tracks opened after 2000.", "question_toks": ["Show", "names", "and", "seatings", "for", "all", "tracks", "opened", "after", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0751", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0059", "db_id": "race_track", "query": "select name , seating from track where year_opened > 2000", "query_toks": ["select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "2000"], "query_toks_no_value": ["select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "value"], "question": "What are the names and seatings for all tracks opened after 2000?", "question_toks": ["What", "are", "the", "names", "and", "seatings", "for", "all", "tracks", "opened", "after", "2000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0752", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0060", "db_id": "railway", "query": "select builder from railway", "query_toks": ["select", "builder", "from", "railway"], "query_toks_no_value": ["select", "builder", "from", "railway"], "question": "List the builders of railways.", "question_toks": ["List", "the", "builders", "of", "railways", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5633", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0061", "db_id": "railway", "query": "select name from manager", "query_toks": ["select", "name", "from", "manager"], "query_toks_no_value": ["select", "name", "from", "manager"], "question": "What are the names of managers?", "question_toks": ["What", "are", "the", "names", "of", "managers", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5637", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0062", "db_id": "railway", "query": "select working_year_starts from manager", "query_toks": ["select", "working_year_starts", "from", "manager"], "query_toks_no_value": ["select", "working_year_starts", "from", "manager"], "question": "Show the working years of managers.", "question_toks": ["Show", "the", "working", "years", "of", "managers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5651", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0063", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["select", "name", "from", "ship"], "query_toks_no_value": ["select", "name", "from", "ship"], "question": "List the name of ships.", "question_toks": ["List", "the", "name", "of", "ships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4000", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0064", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["select", "name", "from", "ship"], "query_toks_no_value": ["select", "name", "from", "ship"], "question": "what are the names of the ships?", "question_toks": ["what", "are", "the", "names", "of", "the", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4001", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0065", "db_id": "shop_membership", "query": "select name , address_road , city from branch", "query_toks": ["select", "name", ",", "address_road", ",", "city", "from", "branch"], "query_toks_no_value": ["select", "name", ",", "address_road", ",", "city", "from", "branch"], "question": "Show name, address road, and city for all branches.", "question_toks": ["Show", "name", ",", "address", "road", ",", "and", "city", "for", "all", "branches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5402", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0066", "db_id": "shop_membership", "query": "select name , address_road , city from branch", "query_toks": ["select", "name", ",", "address_road", ",", "city", "from", "branch"], "query_toks_no_value": ["select", "name", ",", "address_road", ",", "city", "from", "branch"], "question": "What are the names, address roads, and cities of the branches?", "question_toks": ["What", "are", "the", "names", ",", "address", "roads", ",", "and", "cities", "of", "the", "branches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5403", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0067", "db_id": "shop_membership", "query": "select card_number , name , hometown from member", "query_toks": ["select", "card_number", ",", "name", ",", "hometown", "from", "member"], "query_toks_no_value": ["select", "card_number", ",", "name", ",", "hometown", "from", "member"], "question": "Show card number, name, and hometown for all members.", "question_toks": ["Show", "card", "number", ",", "name", ",", "and", "hometown", "for", "all", "members", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5416", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0068", "db_id": "shop_membership", "query": "select card_number , name , hometown from member", "query_toks": ["select", "card_number", ",", "name", ",", "hometown", "from", "member"], "query_toks_no_value": ["select", "card_number", ",", "name", ",", "hometown", "from", "member"], "question": "What are the card numbers, names, and hometowns of every member?", "question_toks": ["What", "are", "the", "card", "numbers", ",", "names", ",", "and", "hometowns", "of", "every", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5417", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0069", "db_id": "shop_membership", "query": "select t3.name , t2.name from membership_register_branch as t1 join branch as t2 on t1.branch_id = t2.branch_id join member as t3 on t1.member_id = t3.member_id", "query_toks": ["select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id"], "question": "Show all member names and registered branch names.", "question_toks": ["Show", "all", "member", "names", "and", "registered", "branch", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5420", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0070", "db_id": "shop_membership", "query": "select t3.name , t2.name from membership_register_branch as t1 join branch as t2 on t1.branch_id = t2.branch_id join member as t3 on t1.member_id = t3.member_id", "query_toks": ["select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id"], "question": "What are the names of the members and branches at which they are registered", "question_toks": ["What", "are", "the", "names", "of", "the", "members", "and", "branches", "at", "which", "they", "are", "registered"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5421", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0071", "db_id": "solvency_ii", "query": "select product_name from products", "query_toks": ["select", "product_name", "from", "products"], "query_toks_no_value": ["select", "product_name", "from", "products"], "question": "List the name of products.", "question_toks": ["List", "the", "name", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4584", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0072", "db_id": "student_assessment", "query": "select first_name from people", "query_toks": ["select", "first_name", "from", "people"], "query_toks_no_value": ["select", "first_name", "from", "people"], "question": "List the first names of people?", "question_toks": ["List", "the", "first", "names", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0097", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0073", "db_id": "student_assessment", "query": "select first_name from people", "query_toks": ["select", "first_name", "from", "people"], "query_toks_no_value": ["select", "first_name", "from", "people"], "question": "What are the first names of the people?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0098", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0074", "db_id": "swimming", "query": "select name from event", "query_toks": ["select", "name", "from", "event"], "query_toks_no_value": ["select", "name", "from", "event"], "question": "List all the event names.", "question_toks": ["List", "all", "the", "event", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5603", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0075", "db_id": "swimming", "query": "select name from swimmer", "query_toks": ["select", "name", "from", "swimmer"], "query_toks_no_value": ["select", "name", "from", "swimmer"], "question": "Find the names of all swimmers.", "question_toks": ["Find", "the", "names", "of", "all", "swimmers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5615", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0076", "db_id": "theme_gallery", "query": "select name , age , country from artist", "query_toks": ["select", "name", ",", "age", ",", "country", "from", "artist"], "query_toks_no_value": ["select", "name", ",", "age", ",", "country", "from", "artist"], "question": "Show all artist name, age, and country.", "question_toks": ["Show", "all", "artist", "name", ",", "age", ",", "and", "country", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1651", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0077", "db_id": "theme_gallery", "query": "select name , age , country from artist", "query_toks": ["select", "name", ",", "age", ",", "country", "from", "artist"], "query_toks_no_value": ["select", "name", ",", "age", ",", "country", "from", "artist"], "question": "What are the names, ages, and countries of artists?", "question_toks": ["What", "are", "the", "names", ",", "ages", ",", "and", "countries", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1652", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0078", "db_id": "theme_gallery", "query": "select theme , year from exhibition", "query_toks": ["select", "theme", ",", "year", "from", "exhibition"], "query_toks_no_value": ["select", "theme", ",", "year", "from", "exhibition"], "question": "Show theme and year for all exhibitions.", "question_toks": ["Show", "theme", "and", "year", "for", "all", "exhibitions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1677", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0079", "db_id": "theme_gallery", "query": "select theme , year from exhibition", "query_toks": ["select", "theme", ",", "year", "from", "exhibition"], "query_toks_no_value": ["select", "theme", ",", "year", "from", "exhibition"], "question": "What are the themes and years for exhibitions?", "question_toks": ["What", "are", "the", "themes", "and", "years", "for", "exhibitions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1678", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0080", "db_id": "tracking_orders", "query": "select distinct product_name from products", "query_toks": ["select", "distinct", "product_name", "from", "products"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "products"], "question": "All the distinct product names", "question_toks": ["All", "the", "distinct", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6926", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0081", "db_id": "tracking_orders", "query": "select distinct order_id from orders", "query_toks": ["select", "distinct", "order_id", "from", "orders"], "query_toks_no_value": ["select", "distinct", "order_id", "from", "orders"], "question": "List the ids of all distinct orders.", "question_toks": ["List", "the", "ids", "of", "all", "distinct", "orders", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6927", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0082", "db_id": "tracking_orders", "query": "select distinct order_id from orders", "query_toks": ["select", "distinct", "order_id", "from", "orders"], "query_toks_no_value": ["select", "distinct", "order_id", "from", "orders"], "question": "What are ids of the all distinct orders?", "question_toks": ["What", "are", "ids", "of", "the", "all", "distinct", "orders", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6928", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0083", "db_id": "tracking_software_problems", "query": "select distinct product_name from product", "query_toks": ["select", "distinct", "product_name", "from", "product"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product"], "question": "List the names of all the distinct product names?", "question_toks": ["List", "the", "names", "of", "all", "the", "distinct", "product", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5380", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0084", "db_id": "tracking_software_problems", "query": "select distinct product_name from product", "query_toks": ["select", "distinct", "product_name", "from", "product"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product"], "question": "Sort all the distinct product names.", "question_toks": ["Sort", "all", "the", "distinct", "product", "names", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5381", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0085", "db_id": "tracking_software_problems", "query": "select distinct product_name from product", "query_toks": ["select", "distinct", "product_name", "from", "product"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product"], "question": "List all the distinct product names?", "question_toks": ["List", "all", "the", "distinct", "product", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5382", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0086", "db_id": "tracking_software_problems", "query": "select distinct product_name from product", "query_toks": ["select", "distinct", "product_name", "from", "product"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product"], "question": "What is the list of distinct product names?", "question_toks": ["What", "is", "the", "list", "of", "distinct", "product", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5383", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0087", "db_id": "train_station", "query": "select name , service from train", "query_toks": ["select", "name", ",", "service", "from", "train"], "query_toks_no_value": ["select", "name", ",", "service", "from", "train"], "question": "Show the name and service for all trains.", "question_toks": ["Show", "the", "name", "and", "service", "for", "all", "trains", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6611", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0088", "db_id": "train_station", "query": "select t3.name , t3.time from train_station as t1 join station as t2 on t1.station_id = t2.station_id join train as t3 on t3.train_id = t1.train_id where t2.location = \"london\" ", "query_toks": ["select", "t3", ".", "name", ",", "t3", ".", "time", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t3", ".", "train_id", "=", "t1", ".", "train_id", "where", "t2", ".", "location", "=", "``", "london", "''"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t3", ".", "time", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t3", ".", "train_id", "=", "t1", ".", "train_id", "where", "t2", ".", "location", "=", "value"], "question": "Show all train names and times in stations in London.", "question_toks": ["Show", "all", "train", "names", "and", "times", "in", "stations", "in", "London", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6614", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0089", "db_id": "train_station", "query": "select name , location from station", "query_toks": ["select", "name", ",", "location", "from", "station"], "query_toks_no_value": ["select", "name", ",", "location", "from", "station"], "question": "List the names and locations of all stations.", "question_toks": ["List", "the", "names", "and", "locations", "of", "all", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6621", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0090", "db_id": "twitter_1", "query": "select name , followers from user_profiles", "query_toks": ["select", "name", ",", "followers", "from", "user_profiles"], "query_toks_no_value": ["select", "name", ",", "followers", "from", "user_profiles"], "question": "List the name and number of followers for each user,.", "question_toks": ["List", "the", "name", "and", "number", "of", "followers", "for", "each", "user", ",."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0292", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0091", "db_id": "twitter_1", "query": "select text from tweets", "query_toks": ["select", "text", "from", "tweets"], "query_toks_no_value": ["select", "text", "from", "tweets"], "question": "List the text of all tweets.", "question_toks": ["List", "the", "text", "of", "all", "tweets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0294", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0092", "db_id": "wedding", "query": "select name from church", "query_toks": ["select", "name", "from", "church"], "query_toks_no_value": ["select", "name", "from", "church"], "question": "List all church names.", "question_toks": ["List", "all", "church", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1631", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0093", "db_id": "wine_1", "query": "select distinct name from wine", "query_toks": ["select", "distinct", "name", "from", "wine"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine"], "question": "List the names of all distinct wines.", "question_toks": ["List", "the", "names", "of", "all", "distinct", "wines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6559", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0094", "db_id": "wine_1", "query": "select distinct name from wine", "query_toks": ["select", "distinct", "name", "from", "wine"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine"], "question": "What are the names of wines?", "question_toks": ["What", "are", "the", "names", "of", "wines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6560", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0095", "db_id": "wine_1", "query": "select distinct name from wine", "query_toks": ["select", "distinct", "name", "from", "wine"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine"], "question": "List the names of all distinct wines.", "question_toks": ["List", "the", "names", "of", "all", "distinct", "wines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6561", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0096", "db_id": "wine_1", "query": "select distinct name from wine", "query_toks": ["select", "distinct", "name", "from", "wine"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine"], "question": "What are the names of wines?", "question_toks": ["What", "are", "the", "names", "of", "wines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6562", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0097", "db_id": "wine_1", "query": "select grape , winery , year from wine where price > 100", "query_toks": ["select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "100"], "query_toks_no_value": ["select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "value"], "question": "List the grape, winery and year of the wines whose price is bigger than 100.", "question_toks": ["List", "the", "grape", ",", "winery", "and", "year", "of", "the", "wines", "whose", "price", "is", "bigger", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6589", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0098", "db_id": "wine_1", "query": "select grape , winery , year from wine where price > 100", "query_toks": ["select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "100"], "query_toks_no_value": ["select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "value"], "question": "What are the grapes, wineries and years for wines with price higher than 100?", "question_toks": ["What", "are", "the", "grapes", ",", "wineries", "and", "years", "for", "wines", "with", "price", "higher", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6590", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0099", "db_id": "wine_1", "query": "select grape , appelation , name from wine where score > 93", "query_toks": ["select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "93"], "query_toks_no_value": ["select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "value"], "question": "List the grape, appelation and name of wines whose score is higher than 93.", "question_toks": ["List", "the", "grape", ",", "appelation", "and", "name", "of", "wines", "whose", "score", "is", "higher", "than", "93", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 93.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6591", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0100", "db_id": "wine_1", "query": "select grape , appelation , name from wine where score > 93", "query_toks": ["select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "93"], "query_toks_no_value": ["select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "value"], "question": "What are the grapes, appelations, and wines with scores above 93?", "question_toks": ["What", "are", "the", "grapes", ",", "appelations", ",", "and", "wines", "with", "scores", "above", "93", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 93.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6592", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0101", "db_id": "workshop_paper", "query": "select author from submission", "query_toks": ["select", "author", "from", "submission"], "query_toks_no_value": ["select", "author", "from", "submission"], "question": "List the authors of submissions.", "question_toks": ["List", "the", "authors", "of", "submissions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5816", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0102", "db_id": "workshop_paper", "query": "select author from submission", "query_toks": ["select", "author", "from", "submission"], "query_toks_no_value": ["select", "author", "from", "submission"], "question": "Find the author for each submission and list them.", "question_toks": ["Find", "the", "author", "for", "each", "submission", "and", "list", "them", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5817", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0103", "db_id": "workshop_paper", "query": "select date , venue from workshop", "query_toks": ["select", "date", ",", "venue", "from", "workshop"], "query_toks_no_value": ["select", "date", ",", "venue", "from", "workshop"], "question": "Show the date and venue of each workshop.", "question_toks": ["Show", "the", "date", "and", "venue", "of", "each", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5840", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0104", "db_id": "workshop_paper", "query": "select date , venue from workshop", "query_toks": ["select", "date", ",", "venue", "from", "workshop"], "query_toks_no_value": ["select", "date", ",", "venue", "from", "workshop"], "question": "Sort the each workshop in alphabetical. Return the date and venue of each workshop.", "question_toks": ["Sort", "the", "each", "workshop", "in", "alphabetical", ".", "Return", "the", "date", "and", "venue", "of", "each", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5841", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0105", "db_id": "wrestler", "query": "select name from wrestler", "query_toks": ["select", "name", "from", "wrestler"], "query_toks_no_value": ["select", "name", "from", "wrestler"], "question": "List the names of wrestlers.", "question_toks": ["List", "the", "names", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1846", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0106", "db_id": "wrestler", "query": "select name from wrestler", "query_toks": ["select", "name", "from", "wrestler"], "query_toks_no_value": ["select", "name", "from", "wrestler"], "question": "What are the names of the wrestlers?", "question_toks": ["What", "are", "the", "names", "of", "the", "wrestlers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1847", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0107", "db_id": "wrestler", "query": "select t2.name , t1.team from elimination as t1 join wrestler as t2 on t1.wrestler_id = t2.wrestler_id", "query_toks": ["select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id"], "question": "List the names of wrestlers and the teams in elimination.", "question_toks": ["List", "the", "names", "of", "wrestlers", "and", "the", "teams", "in", "elimination", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1858", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0108", "db_id": "wrestler", "query": "select t2.name , t1.team from elimination as t1 join wrestler as t2 on t1.wrestler_id = t2.wrestler_id", "query_toks": ["select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id"], "question": "What are the names of wrestlers and their teams in elimination?", "question_toks": ["What", "are", "the", "names", "of", "wrestlers", "and", "their", "teams", "in", "elimination", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1859", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "and_in_sql_but_not_in_nl_0000", "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value"], "question": "What is the smallest weight of the car produced with 8 cylinders?", "question_toks": ["What", "is", "the", "smallest", "weight", "of", "the", "car", "produced", "with", "8", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0119", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0001", "db_id": "car_1", "query": "select min(weight) from cars_data where year = 1974", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "year", "=", "1974"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "year", "=", "value"], "question": "What is the minimum weight of the car produced in 1974 ?", "question_toks": ["What", "is", "the", "minimum", "weight", "of", "the", "car", "produced", "in", "1974", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], 1974.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0120", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0002", "db_id": "car_1", "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 t4.fullname != \"ford motor company\"", "query_toks": ["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", "t4", ".", "fullname", "!=", "``", "ford", "motor", "company", "''"], "query_toks_no_value": ["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", "t4", ".", "fullname", "!=", "value", "motor", "company"], "question": "Which models are not built by the 'Ford Motor Company'?", "question_toks": ["Which", "models", "are", "not", "built", "by", "the", "'", "Ford", "Motor", "Company", "'?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"ford motor company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0171", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0003", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "<", "value"], "question": "What are the different models wthat are lighter than 3500?", "question_toks": ["What", "are", "the", "different", "models", "wthat", "are", "lighter", "than", "3500", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 3500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0172", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0004", "db_id": "flight_2", "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 t3.city = \"aberdeen\"", "query_toks": ["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", "t3", ".", "city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["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", "t3", ".", "city", "=", "value"], "question": "How many flights fly from Aberdeen?", "question_toks": ["How", "many", "flights", "fly", "from", "Aberdeen", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0212", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0005", "db_id": "flight_2", "query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t2.destairport = \"asy\"", "query_toks": ["select", "count", "(*)", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t2", ".", "destairport", "=", "``", "asy", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t2", ".", "destairport", "=", "value"], "question": "How many flights go to Airport 'ASY'?", "question_toks": ["How", "many", "flights", "go", "to", "Airport", "'", "ASY", "'?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"asy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0215", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0006", "db_id": "flight_2", "query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"united airlines\"", "query_toks": ["select", "count", "(*)", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "airlines"], "question": "Count the number of United Airlines flights.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0216", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0007", "db_id": "flight_2", "query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t2.sourceairport = \"ahd\"", "query_toks": ["select", "count", "(*)", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t2", ".", "sourceairport", "=", "``", "ahd", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t2", ".", "sourceairport", "=", "value"], "question": "How many flights depart from Airport 'AHD'?", "question_toks": ["How", "many", "flights", "depart", "from", "Airport", "'", "AHD", "'?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"ahd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0217", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0008", "db_id": "flight_2", "query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"united airlines\"", "query_toks": ["select", "count", "(*)", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "airlines"], "question": "Return the number of United Airlines flights.", "question_toks": ["Return", "the", "number", "of", "United", "Airlines", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0218", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0009", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "How many flights go to City 'Aberdeen'?", "question_toks": ["How", "many", "flights", "go", "to", "City", "'", "Aberdeen", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0219", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0010", "db_id": "flight_2", "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 t3.airline = \"united airlines\"", "query_toks": ["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", "t3", ".", "airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["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", "t3", ".", "airline", "=", "value", "airlines"], "question": "Count the number of United Airlines flights.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0220", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0011", "db_id": "pets_1", "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 t3.pettype = \"dog\"", "query_toks": ["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", "t3", ".", "pettype", "=", "``", "dog", "''"], "query_toks_no_value": ["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", "t3", ".", "pettype", "=", "value"], "question": "Find the number of dog pets.", "question_toks": ["Find", "the", "number", "of", "dog", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0053", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0012", "db_id": "pets_1", "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 t3.pettype = \"dog\"", "query_toks": ["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", "t3", ".", "pettype", "=", "``", "dog", "''"], "query_toks_no_value": ["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", "t3", ".", "pettype", "=", "value"], "question": "How many dog pets?", "question_toks": ["How", "many", "dog", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0054", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0013", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What is the first name of every student who has a dog?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0066", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0014", "db_id": "pets_1", "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.pettype = \"cat\"", "query_toks": ["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", ".", "pettype", "=", "``", "cat", "''"], "query_toks_no_value": ["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", ".", "pettype", "=", "value"], "question": "Find the last name of the student who has a cat.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0083", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0015", "db_id": "pets_1", "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.pettype = \"cat\"", "query_toks": ["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", ".", "pettype", "=", "``", "cat", "''"], "query_toks_no_value": ["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", ".", "pettype", "=", "value"], "question": "What is the last name of the student who has a cat?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0084", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0016", "db_id": "real_estate_properties", "query": "select property_name from properties where property_type_code = \"house\" union select property_name from properties where property_type_code = \"apartment\"", "query_toks": ["select", "property_name", "from", "properties", "where", "property_type_code", "=", "``", "house", "''", "union", "select", "property_name", "from", "properties", "where", "property_type_code", "=", "``", "apartment", "''"], "query_toks_no_value": ["select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "union", "select", "property_name", "from", "properties", "where", "property_type_code", "=", "value"], "question": "What are the names of properties that are either houses or apartments?", "question_toks": ["What", "are", "the", "names", "of", "properties", "that", "are", "either", "houses", "or", "apartments", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"house\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"apartment\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1033", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0017", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = \"timmothy\"", "query_toks": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "``", "timmothy", "''"], "query_toks_no_value": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value"], "question": "What is the mobile phone number of the student named Timmothy?", "question_toks": ["What", "is", "the", "mobile", "phone", "number", "of", "the", "student", "named", "Timmothy", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"timmothy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0554", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0018", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country where continent = \"africa\"", "query_toks": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "``", "africa", "''"], "query_toks_no_value": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "value"], "question": "What is the average life expectancy in African countries?", "question_toks": ["What", "is", "the", "average", "life", "expectancy", "in", "African", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0724", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0019", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country where continent = \"africa\"", "query_toks": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "``", "africa", "''"], "query_toks_no_value": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "value"], "question": "Give the average life expectancy for countries in Africa?", "question_toks": ["Give", "the", "average", "life", "expectancy", "for", "countries", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0725", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0020", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\"", "query_toks": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "afghanistan", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value"], "question": "How many languages does Afghanistan have?", "question_toks": ["How", "many", "languages", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0738", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0021", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where isofficial = \"t\"", "query_toks": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "isofficial", "=", "value"], "question": "How many official languages are spoken?", "question_toks": ["How", "many", "official", "languages", "are", "spoken", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0739", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0022", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "What are the countries where either English or Dutch is the language ?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0754", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0023", "db_id": "world_1", "query": "select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" union select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\"", "query_toks": ["select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "union", "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''"], "query_toks_no_value": ["select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "union", "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "Which countries have either English or Dutch as language?", "question_toks": ["Which", "countries", "have", "either", "English", "or", "Dutch", "as", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0755", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0024", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"beatrix\"", "query_toks": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "``", "beatrix", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value"], "question": "What is the language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0768", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0025", "db_id": "world_1", "query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.isofficial = \"t\"", "query_toks": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "value"], "question": "What is the total number of unique official languages spoken in the countries?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "spoken", "in", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0770", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0026", "db_id": "world_1", "query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.isofficial = \"t\"", "query_toks": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "isofficial", "=", "value"], "question": "For all the countries, what is the total number of distinct official languages?", "question_toks": ["For", "all", "the", "countries", ",", "what", "is", "the", "total", "number", "of", "distinct", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0771", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0027", "db_id": "world_1", "query": "select name from country where population < (select max(population) from country where continent = \"asia\")", "query_toks": ["select", "name", "from", "country", "where", "population", "<", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "population", "<", "value", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the countries that have a population less than any country in Asia?", "question_toks": ["What", "are", "the", "countries", "that", "have", "a", "population", "less", "than", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0774", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0028", "db_id": "world_1", "query": "select name from country where population < (select min(population) from country where continent = \"asia\")", "query_toks": ["select", "name", "from", "country", "where", "population", "<", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "population", "<", "value", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "Which countries have a smaller population than that of any country in Asia?", "question_toks": ["Which", "countries", "have", "a", "smaller", "population", "than", "that", "of", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0775", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0029", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = \"wta championships\" ", "query_toks": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "``", "wta", "championships", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "championships"], "question": "Find the number of winners who participated in the WTA Championships.", "question_toks": ["Find", "the", "number", "of", "winners", "who", "participated", "in", "the", "WTA", "Championships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"wta championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0486", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0030", "db_id": "activity_1", "query": "select count(*) from faculty where rank = \"professor\"", "query_toks": ["select", "count", "(*)", "from", "faculty", "where", "rank", "=", "``", "professor", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "faculty", "where", "rank", "=", "value"], "question": "How many Professors do we have?", "question_toks": ["How", "many", "Professors", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6727", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0031", "db_id": "activity_1", "query": "select count(*) from faculty where rank = \"professor\"", "query_toks": ["select", "count", "(*)", "from", "faculty", "where", "rank", "=", "``", "professor", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "faculty", "where", "rank", "=", "value"], "question": "Count the number of Professors we have.", "question_toks": ["Count", "the", "number", "of", "Professors", "we", "have", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6728", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0032", "db_id": "activity_1", "query": "select count(*) from faculty where rank = \"professor\"", "query_toks": ["select", "count", "(*)", "from", "faculty", "where", "rank", "=", "``", "professor", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "faculty", "where", "rank", "=", "value"], "question": "How many Professors are?", "question_toks": ["How", "many", "Professors", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6731", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0033", "db_id": "activity_1", "query": "select count(*) from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid where t1.fname = \"mark\"", "query_toks": ["select", "count", "(*)", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "``", "mark", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value"], "question": "How many activities does participants with name Mark participate in?", "question_toks": ["How", "many", "activities", "does", "participants", "with", "name", "Mark", "participate", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"mark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6775", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0034", "db_id": "activity_1", "query": "select count(*) from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid where t1.fname = \"mark\"", "query_toks": ["select", "count", "(*)", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "``", "mark", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value"], "question": "Find the number of activities Marks is involved in.", "question_toks": ["Find", "the", "number", "of", "activities", "Marks", "is", "involved", "in", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"mark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6776", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0035", "db_id": "activity_1", "query": "select t3.activity_name from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t3.actid = t2.actid where t1.lname = \"giuliano\"", "query_toks": ["select", "t3", ".", "activity_name", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t3", ".", "actid", "=", "t2", ".", "actid", "where", "t1", ".", "lname", "=", "``", "giuliano", "''"], "query_toks_no_value": ["select", "t3", ".", "activity_name", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t3", ".", "actid", "=", "t2", ".", "actid", "where", "t1", ".", "lname", "=", "value"], "question": "Show the names of all the activities all persons with last name Giuliano participates in.", "question_toks": ["Show", "the", "names", "of", "all", "the", "activities", "all", "persons", "with", "last", "name", "Giuliano", "participates", "in", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"giuliano\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6777", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0036", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t1.allergy = \"milk\" or t1.allergy = \"eggs\"", "query_toks": ["select", "count", "(*)", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "allergy", "=", "``", "milk", "''", "or", "t1", ".", "allergy", "=", "``", "eggs", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value"], "question": "How many students have milk or egg allergies?", "question_toks": ["How", "many", "students", "have", "milk", "or", "egg", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"eggs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0509", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0037", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\"", "query_toks": ["select", "count", "(*)", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value"], "question": "How many students who are female are allergic?", "question_toks": ["How", "many", "students", "who", "are", "female", "are", "allergic", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0510", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0038", "db_id": "baseball_1", "query": "select count(*) from player where bats = \"r\"", "query_toks": ["select", "count", "(*)", "from", "player", "where", "bats", "=", "``", "r", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "player", "where", "bats", "=", "value"], "question": "How many players are right-handed batters? That is, have the batter value 'R'.", "question_toks": ["How", "many", "players", "are", "right", "-", "handed", "batters", "?", "That", "is", ",", "have", "the", "batter", "value", "'", "R", "'."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 200, false], null], "\"r\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3653", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0039", "db_id": "baseball_1", "query": "select count(*) from postseason as t1 join team as t2 on t1.team_id_loser = t2.team_id_br where t2.name = \"boston red stockings\"", "query_toks": ["select", "count", "(*)", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "``", "boston", "red", "stockings", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "red", "stockings"], "question": "How many times did Boston Red Stockings lose?", "question_toks": ["How", "many", "times", "did", "Boston", "Red", "Stockings", "lose", "?"], "sql": {"from": {"table_units": [["table_unit", 22], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 286, false], null], [0, 336, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3667", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0040", "db_id": "baseball_1", "query": "select count(*) from postseason as t1 join team as t2 on t1.team_id_loser = t2.team_id_br where t1.year = 2009", "query_toks": ["select", "count", "(*)", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "2009"], "query_toks_no_value": ["select", "count", "(*)", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t1", ".", "year", "=", "value"], "question": "Count the number of times the teams lost in 2009 postseason.", "question_toks": ["Count", "the", "number", "of", "times", "the", "teams", "lost", "in", "2009", "postseason", "."], "sql": {"from": {"table_units": [["table_unit", 22], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 286, false], null], [0, 336, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 282, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3668", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0041", "db_id": "baseball_1", "query": "select sum(t1.salary) from salary as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = \"boston red stockings\"", "query_toks": ["select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "``", "boston", "red", "stockings", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "red", "stockings"], "question": "What is the total salary paid by team Boston Red Stockings?", "question_toks": ["What", "is", "the", "total", "salary", "paid", "by", "team", "Boston", "Red", "Stockings", "?"], "sql": {"from": {"table_units": [["table_unit", 20], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 273, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3677", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0042", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"linda\"", "query_toks": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "``", "linda", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value"], "question": "How many clubs does member with name \"Linda\" belong to?", "question_toks": ["How", "many", "clubs", "does", "member", "with", "name", "\"", "Linda", "\"", "belong", "to", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"linda\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4266", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0043", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.lname = \"smith\"", "query_toks": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "lname", "=", "``", "smith", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "lname", "=", "value"], "question": "How many clubs does member with surname \"Smith\" have membership for?", "question_toks": ["How", "many", "clubs", "does", "member", "with", "surname", "\"", "Smith", "\"", "have", "membership", "for", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4267", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0044", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\"", "query_toks": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "``", "tracy", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value"], "question": "Find the number of clubs where \"Tracy\" is a member.", "question_toks": ["Find", "the", "number", "of", "clubs", "where", "\"", "Tracy", "\"", "is", "a", "member", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"tracy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4268", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0045", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\"", "query_toks": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "``", "tracy", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value"], "question": "For how many clubs is \"Tracy\" a member?", "question_toks": ["For", "how", "many", "clubs", "is", "\"", "Tracy", "\"", "a", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"tracy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4269", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0046", "db_id": "college_1", "query": "select t1.stu_lname from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num where t2.enroll_grade = \"a\"", "query_toks": ["select", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "``", "a", "''"], "query_toks_no_value": ["select", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value"], "question": "What is the last name of the student who got a grade A.", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "got", "a", "grade", "A", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"a\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3325", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0047", "db_id": "cre_Theme_park", "query": "select avg(price_range) from hotels where star_rating_code = \"5\"", "query_toks": ["select", "avg", "(", "price_range", ")", "from", "hotels", "where", "star_rating_code", "=", "``", "5", "''"], "query_toks_no_value": ["select", "avg", "(", "price_range", ")", "from", "hotels", "where", "star_rating_code", "=", "value"], "question": "What is the average price range of five star hotels?", "question_toks": ["What", "is", "the", "average", "price", "range", "of", "five", "star", "hotels", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"5\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5898", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0048", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\"", "query_toks": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "``", "alison", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value"], "question": "What are the names of tourist attraction that Alison visited?", "question_toks": ["What", "are", "the", "names", "of", "tourist", "attraction", "that", "Alison", "visited", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5965", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0049", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id except select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"rosalind\"", "query_toks": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "except", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "``", "rosalind", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "except", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value"], "question": "Find the the names of the tourist attractions that the tourist named Rosalind did not visit.", "question_toks": ["Find", "the", "the", "names", "of", "the", "tourist", "attractions", "that", "the", "tourist", "named", "Rosalind", "did", "not", "visit", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"rosalind\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5966", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0050", "db_id": "csu_1", "query": "select campus from campuses where county = \"los angeles\" union select campus from campuses where county = \"san francisco\"", "query_toks": ["select", "campus", "from", "campuses", "where", "county", "=", "``", "los", "angeles", "''", "union", "select", "campus", "from", "campuses", "where", "county", "=", "``", "san", "francisco", "''"], "query_toks_no_value": ["select", "campus", "from", "campuses", "where", "county", "=", "value", "angeles", "union", "select", "campus", "from", "campuses", "where", "county", "=", "value", "francisco"], "question": "What campuses are located in county Los Angeles or in county San Francisco?", "question_toks": ["What", "campuses", "are", "located", "in", "county", "Los", "Angeles", "or", "in", "county", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"san francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2335", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0051", "db_id": "customers_and_addresses", "query": "select address_content from addresses where city = \"east julianaside\" union select address_content from addresses where city = \"gleasonmouth\"", "query_toks": ["select", "address_content", "from", "addresses", "where", "city", "=", "``", "east", "julianaside", "''", "union", "select", "address_content", "from", "addresses", "where", "city", "=", "``", "gleasonmouth", "''"], "query_toks_no_value": ["select", "address_content", "from", "addresses", "where", "city", "=", "value", "julianaside", "union", "select", "address_content", "from", "addresses", "where", "city", "=", "value"], "question": "Find all the addresses in East Julianaside or in Gleasonmouth", "question_toks": ["Find", "all", "the", "addresses", "in", "East", "Julianaside", "or", "in", "Gleasonmouth"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"east julianaside\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"gleasonmouth\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6133", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0052", "db_id": "driving_school", "query": "select date_left_staff from staff where first_name = \"janessa\"", "query_toks": ["select", "date_left_staff", "from", "staff", "where", "first_name", "=", "``", "janessa", "''"], "query_toks_no_value": ["select", "date_left_staff", "from", "staff", "where", "first_name", "=", "value"], "question": "When did the staff member with name Janessa leave the company?", "question_toks": ["When", "did", "the", "staff", "member", "with", "name", "Janessa", "leave", "the", "company", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"janessa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6635", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0053", "db_id": "flight_1", "query": "select avg(price) from flight where destination = \"honolulu\"", "query_toks": ["select", "avg", "(", "price", ")", "from", "flight", "where", "destination", "=", "``", "honolulu", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "flight", "where", "destination", "=", "value"], "question": "What is the average price for flights to Honolulu.", "question_toks": ["What", "is", "the", "average", "price", "for", "flights", "to", "Honolulu", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0393", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0054", "db_id": "flight_1", "query": "select avg(price) from flight where origin = \"los angeles\"", "query_toks": ["select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "angeles"], "question": "What is the average price for flights from LA?", "question_toks": ["What", "is", "the", "average", "price", "for", "flights", "from", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0394", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0055", "db_id": "flight_4", "query": "select count(*) from routes as t1 join airports as t2 on t1.dst_apid = t2.apid join airlines as t3 on t1.alid = t3.alid where t2.country = \"italy\"", "query_toks": ["select", "count", "(*)", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "join", "airlines", "as", "t3", "on", "t1", ".", "alid", "=", "t3", ".", "alid", "where", "t2", ".", "country", "=", "``", "italy", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "join", "airlines", "as", "t3", "on", "t1", ".", "alid", "=", "t3", ".", "alid", "where", "t2", ".", "country", "=", "value"], "question": "Return the number of routes with destination airport in Italy.", "question_toks": ["Return", "the", "number", "of", "routes", "with", "destination", "airport", "in", "Italy", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 18, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"italy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6871", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0056", "db_id": "formula_1", "query": "select max(t2.fastestlapspeed) from races as t1 join results as t2 on t1.raceid = t2.raceid where t1.name = \"monaco grand prix\"", "query_toks": ["select", "max", "(", "t2", ".", "fastestlapspeed", ")", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "name", "=", "``", "monaco", "grand", "prix", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "fastestlapspeed", ")", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "name", "=", "value", "grand", "prix"], "question": "What is the maximum fastest lap speed in the Monaco Grand Prix?", "question_toks": ["What", "is", "the", "maximum", "fastest", "lap", "speed", "in", "the", "Monaco", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null]]}, "select": [false, [[1, [0, [0, 59, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"monaco grand prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2222", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0057", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "``", "football", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value"], "question": "How many games are played for all football games by students?", "question_toks": ["How", "many", "games", "are", "played", "for", "all", "football", "games", "by", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6009", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0058", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\"", "query_toks": ["select", "kids", "from", "reservations", "where", "firstname", "=", "``", "roy", "''"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "firstname", "=", "value"], "question": "How many kids stay in the rooms reserved by someone with name ROY?", "question_toks": ["How", "many", "kids", "stay", "in", "the", "rooms", "reserved", "by", "someone", "with", "name", "ROY", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"roy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2578", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0059", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\" and lastname = \"sweazy\"", "query_toks": ["select", "kids", "from", "reservations", "where", "firstname", "=", "``", "roy", "''", "and", "lastname", "=", "``", "sweazy", "''"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Find the number of kids staying in the rooms reserved by a person with first name ROY and last name SWEAZY.", "question_toks": ["Find", "the", "number", "of", "kids", "staying", "in", "the", "rooms", "reserved", "by", "a", "person", "with", "first", "name", "ROY", "and", "last", "name", "SWEAZ", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"roy\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"sweazy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2579", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0060", "db_id": "medicine_enzyme_interaction", "query": "select t1.name from enzyme as t1 join medicine_enzyme_interaction as t2 on t1.id = t2.enzyme_id join medicine as t3 on t2.medicine_id = t3.id where t3.name = \"amisulpride\" and t2.interaction_type = \"inhibitor\"", "query_toks": ["select", "t1", ".", "name", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "enzyme_id", "join", "medicine", "as", "t3", "on", "t2", ".", "medicine_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "``", "amisulpride", "''", "and", "t2", ".", "interaction_type", "=", "``", "inhibitor", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "enzyme_id", "join", "medicine", "as", "t3", "on", "t2", ".", "medicine_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "interaction_type", "=", "value"], "question": "What are the names of enzymes in the medicine named 'Amisulpride' and can serve as an 'inhibitor'?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "in", "the", "medicine", "named", "'", "Amisulpride", "'", "and", "can", "serve", "as", "an", "'", "inhibitor", "'?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"amisulpride\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"inhibitor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0947", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0061", "db_id": "movie_1", "query": "select title from movie where director = \"james cameron\" and year > 2000", "query_toks": ["select", "title", "from", "movie", "where", "director", "=", "``", "james", "cameron", "''", "and", "year", ">", "2000"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "director", "=", "value", "cameron", "and", "year", ">", "value"], "question": "What are the titles of all movies that James Cameron directed and has year after 2000?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "James", "Cameron", "directed", "and", "has", "year", "after", "2000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"james cameron\"", null], "and", [false, 3, [0, [0, 3, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2437", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0062", "db_id": "music_2", "query": "select t4.instrument from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid join instruments as t4 on t4.songid = t3.songid and t4.bandmateid = t2.id where t2.lastname = \"heilo\" and t3.title = \"le pop\"", "query_toks": ["select", "t4", ".", "instrument", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "join", "instruments", "as", "t4", "on", "t4", ".", "songid", "=", "t3", ".", "songid", "and", "t4", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "``", "heilo", "''", "and", "t3", ".", "title", "=", "``", "le", "pop", "''"], "query_toks_no_value": ["select", "t4", ".", "instrument", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "join", "instruments", "as", "t4", "on", "t4", ".", "songid", "=", "t3", ".", "songid", "and", "t4", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value", "and", "t3", ".", "title", "=", "value", "pop"], "question": "What instrument did the musician that has last name \"Heilo\" and use in the song \"Le Pop\"?", "question_toks": ["What", "instrument", "did", "the", "musician", "that", "has", "last", "name", "\"", "Heilo", "\"", "and", "use", "in", "the", "song", "\"", "Le", "Pop", "\"?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"heilo\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"le pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5204", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0063", "db_id": "network_2", "query": "select name from person where job = \"student\" and age = (select max(age) from person where job = \"student\" )", "query_toks": ["select", "name", "from", "person", "where", "job", "=", "``", "student", "''", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "``", "student", "''", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "value", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "Who is the person that is oldest and whose job is student?", "question_toks": ["Who", "is", "the", "person", "that", "is", "oldest", "and", "whose", "job", "is", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4410", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0064", "db_id": "network_2", "query": "select friend from personfriend where name in ( select name from person where name like \"alice\" and gender like \"female\" );", "query_toks": ["select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "``", "alice", "''", "and", "t1", ".", "gender", "=", "``", "female", "''"], "query_toks_no_value": ["select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value"], "question": "Find the friends for person that have name Alice and is female.", "question_toks": ["Find", "the", "friends", "for", "person", "that", "have", "name", "Alice", "and", "is", "female", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"female\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4458", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0065", "db_id": "phone_1", "query": "select distinct t2.hardware_model_name from screen_mode as t1 join phone as t2 on t1.graphics_mode = t2.screen_mode where t2.company_name = \"nokia corporation\" and t1.type != \"text\"", "query_toks": ["select", "distinct", "t2", ".", "hardware_model_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "company_name", "=", "``", "nokia", "corporation", "''", "and", "t1", ".", "type", "!=", "``", "text", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "hardware_model_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "company_name", "=", "value", "corporation", "and", "t1", ".", "type", "!=", "value"], "question": "List the hardware model name for the phons that were produced by \"Nokia Corporation\" and whose screen mode type is not Text.", "question_toks": ["List", "the", "hardware", "model", "name", "for", "the", "phons", "that", "were", "produced", "by", "\"", "Nokia", "Corporation", "\"", "and", "whose", "screen", "mode", "type", "is", "not", "Text", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 21, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"nokia corporation\"", null], "and", [false, 7, [0, [0, 14, false], null], "\"text\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1040", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0066", "db_id": "products_gen_characteristics", "query": "select t3.characteristic_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t1.product_name = \"sesame\" and t3.characteristic_type_code = \"grade\"", "query_toks": ["select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "``", "sesame", "''", "and", "t3", ".", "characteristic_type_code", "=", "``", "grade", "''"], "query_toks_no_value": ["select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value", "and", "t3", ".", "characteristic_type_code", "=", "value"], "question": "List all characteristics of product that has name \"sesame\" and type code \"Grade\".", "question_toks": ["List", "all", "characteristics", "of", "product", "that", "has", "name", "\"", "sesame", "\"", "and", "type", "code", "\"", "Grade", "\"."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"sesame\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"grade\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5562", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0067", "db_id": "soccer_2", "query": "select t1.pname from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\" and t2.ppos = \"striker\"", "query_toks": ["select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "``", "yes", "''", "and", "t2", ".", "ppos", "=", "``", "striker", "''"], "query_toks_no_value": ["select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value", "and", "t2", ".", "ppos", "=", "value"], "question": "What are the names of all students who successfully tried out and has the position of striker?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "successfully", "tried", "out", "and", "has", "the", "position", "of", "striker", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"striker\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5007", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0068", "db_id": "store_1", "query": "select sum(total) from invoices where billing_city = \"chicago\" and billing_state = \"il\"", "query_toks": ["select", "sum", "(", "total", ")", "from", "invoices", "where", "billing_city", "=", "``", "chicago", "''", "and", "billing_state", "=", "``", "il", "''"], "query_toks_no_value": ["select", "sum", "(", "total", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value"], "question": "List total amount that is of invoice from Chicago and is in state IL.", "question_toks": ["List", "total", "amount", "that", "is", "of", "invoice", "from", "Chicago", "and", "is", "in", "state", "IL", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 42, false], null], "\"chicago\"", null], "and", [false, 2, [0, [0, 43, false], null], "\"il\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0559", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0069", "db_id": "car_1", "query": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.cylinders <= 3", "query_toks": ["select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<=", "3"], "query_toks_no_value": ["select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<=", "value"], "question": "Among all cars, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question_toks": ["Among", "all", "cars", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_in_sql_but_not_in_nl_0069", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0070", "db_id": "car_1", "query": "select t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.cylinders < 4", "query_toks": ["select", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<", "4"], "query_toks_no_value": ["select", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<", "value"], "question": "Among all the cars, what are the make ids and names of all those with less than 4 cylinders ?", "question_toks": ["Among", "all", "the", "cars", ",", "what", "are", "the", "make", "ids", "and", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_in_sql_but_not_in_nl_0070", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "aggregation_in_column_0000", "db_id": "bike_1", "query": "select distinct zip_code from weather except select distinct zip_code from weather where cloud_cover < 4", "query_toks": ["select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "cloud_cover", ">=", "4"], "query_toks_no_value": ["select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "cloud_cover", ">=", "value"], "question": "Find all the zip codes in which the cloud cover have not reached 4.", "question_toks": ["Find", "all", "the", "zip", "codes", "in", "which", "the", "cloud", "cover", "have", "not", "reached", "4", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0195", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0001", "db_id": "bike_1", "query": "select distinct zip_code from weather except select distinct zip_code from weather where cloud_cover < 4", "query_toks": ["select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "cloud_cover", ">=", "4"], "query_toks_no_value": ["select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "cloud_cover", ">=", "value"], "question": "What are all the different zip codes that have a cloud cover was below 4?", "question_toks": ["What", "are", "all", "the", "different", "zip", "codes", "that", "have", "a", "cloud", "cover", "was", "below", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0196", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0002", "db_id": "bike_1", "query": "select date from weather where cloud_cover between 2 and 6", "query_toks": ["select", "date", "from", "weather", "where", "cloud_cover", "between", "2", "and", "6"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "cloud_cover", "between", "2", "and", "6"], "question": "What are the dates that have a cloud cover between 2 and 6?", "question_toks": ["What", "are", "the", "dates", "that", "have", "an", "average", "sea", "level", "pressure", "between", "2", "and", "6", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 43, false], null], 2.0, 6.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0200", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0003", "db_id": "bike_1", "query": "select date , cloud_cover - wind_dir_degrees from weather order by cloud_cover - wind_dir_degrees limit 1", "query_toks": ["select", "date", ",", "cloud_cover", "-", "wind_dir_degrees", "from", "weather", "order", "by", "cloud_cover", "-", "wind_dir_degrees", "limit", "1"], "query_toks_no_value": ["select", "date", ",", "cloud_cover", "-", "wind_dir_degrees", "from", "weather", "order", "by", "cloud_cover", "-", "wind_dir_degrees", "limit", "1"], "question": "Find the day in which the difference between the cloud cover and wind dir degrees was the smallest. Also report the difference.", "question_toks": ["Find", "the", "day", "in", "which", "the", "difference", "between", "the", "cloud", "cover", "and", "wind", "dir", "degrees", "was", "the", "smallest", ".", "Also", "report", "the", "difference", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 43, false], [0, 45, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 43, false], [0, 45, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0201", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0004", "db_id": "concert_singer", "query": "select name, max(capacity) from stadium", "query_toks": ["select", "name", ",", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "name", ",", "max", "(", "capacity", ")", "from", "stadium"], "question": "What is the name and maximum capacity of all stadiums ?", "question_toks": ["What", "is", "the", "name", "and", "maximum", "capacity", "of", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0016", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0005", "db_id": "concert_singer", "query": "select name , capacity from stadium order by stadium_id desc limit 1", "query_toks": ["select", "name", ",", "capacity", "from", "stadium", "order", "by", "stadium_id", "desc", "limit", "1"], "query_toks_no_value": ["select", "name", ",", "capacity", "from", "stadium", "order", "by", "stadium_id", "desc", "limit", "1"], "question": "What is the name and capacity for the stadium with highest stadiom id?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "highest", "stadiom", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 1, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0018", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0006", "db_id": "concert_singer", "query": "select name , capacity from stadium order by stadium_id desc limit 1", "query_toks": ["select", "name", ",", "capacity", "from", "stadium", "order", "by", "stadium_id", "desc", "limit", "1"], "query_toks_no_value": ["select", "name", ",", "capacity", "from", "stadium", "order", "by", "stadium_id", "desc", "limit", "1"], "question": "What is the name and capacity for the stadium with the highest stadiom id??", "question_toks": ["What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "the", "highest", "stadiom", "id", "??"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 1, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0019", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0007", "db_id": "game_injury", "query": "select name from stadium where capacity_percentage > 100", "query_toks": ["select", "name", "from", "stadium", "where", "capacity_percentage", ">", "100"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "capacity_percentage", ">", "value"], "question": "What is the name of stadiums with capacity percentage higher than 100%?", "question_toks": ["What", "is", "the", "name", "of", "stadiums", "with", "capacity", "percentage", "higher", "than", "100", "%?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1278", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0008", "db_id": "mountain_photos", "query": "select brand , name from camera_lens order by id desc", "query_toks": ["select", "brand", ",", "name", "from", "camera_lens", "order", "by", "id", "desc"], "query_toks_no_value": ["select", "brand", ",", "name", "from", "camera_lens", "order", "by", "id", "desc"], "question": "Find the brand and name for each camera lens, and sort in descending order of id.", "question_toks": ["Find", "the", "brand", "and", "name", "for", "each", "camera", "lens", ",", "and", "sort", "in", "descending", "order", "of", "id", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3712", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0009", "db_id": "products_for_hire", "query": "select max(returned_late_yn) , min(returned_late_yn) , avg(returned_late_yn) from products_booked", "query_toks": ["select", "max", "(", "returned_late_yn", ")", ",", "min", "(", "returned_late_yn", ")", ",", "avg", "(", "returned_late_yn", ")", "from", "products_booked"], "query_toks_no_value": ["select", "max", "(", "returned_late_yn", ")", ",", "min", "(", "returned_late_yn", ")", ",", "avg", "(", "returned_late_yn", ")", "from", "products_booked"], "question": "What are the maximum, minimum, and average returned late for the products booked?", "question_toks": ["What", "are", "the", "maximum", ",", "minimum", ",", "and", "average", "returned", "late", "for", "the", "products", "booked", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1971", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0010", "db_id": "school_finance", "query": "select t1.school_name , t1.mascot , t1.ihsaa_football_class from school as t1 join budget as t2 on t1.school_id = t2.school_id where budgeted > 6000 or year < 2003 order by t2.school_id , t2.year", "query_toks": ["select", "t1", ".", "school_name", ",", "t1", ".", "mascot", ",", "t1", ".", "ihsaa_football_class", "from", "school", "as", "t1", "join", "budget", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "budgeted", ">", "6000", "or", "year", "<", "2003", "order", "by", "t2", ".", "school_id", ",", "t2", ".", "year"], "query_toks_no_value": ["select", "t1", ".", "school_name", ",", "t1", ".", "mascot", ",", "t1", ".", "ihsaa_football_class", "from", "school", "as", "t1", "join", "budget", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "budgeted", ">", "value", "or", "year", "<", "value", "order", "by", "t2", ".", "school_id", ",", "t2", ".", "year"], "question": "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of school id and year.", "question_toks": ["List", "the", "name", ",", "IHSAA", "Football", "Class", ",", "and", "Mascot", "of", "the", "schools", "that", "have", "more", "than", "6000", "of", "budgeted", "amount", "or", "were", "founded", "before", "2003", ",", "in", "the", "order", "of", "school", "id", "and", "year", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 6000.0, null], "or", [false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null], [0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1909", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0011", "db_id": "sports_competition", "query": "select count(*) from club_rank where silver < 10", "query_toks": ["select", "count", "(*)", "from", "club_rank", "where", "silver", "<", "10"], "query_toks_no_value": ["select", "count", "(*)", "from", "club_rank", "where", "silver", "<", "value"], "question": "How many clubs have silver medals less than 10?", "question_toks": ["How", "many", "clubs", "have", "silver", "medals", "less", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3349", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0012", "db_id": "sports_competition", "query": "select count(*) from club_rank where silver < 10", "query_toks": ["select", "count", "(*)", "from", "club_rank", "where", "silver", "<", "10"], "query_toks_no_value": ["select", "count", "(*)", "from", "club_rank", "where", "silver", "<", "value"], "question": "What is the total number of clubs that have less than 10 silver medals?", "question_toks": ["What", "is", "the", "total", "number", "of", "clubs", "that", "have", "less", "than", "10", "silver", "medals", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3350", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0013", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where storm_id > 2", "query_toks": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "storm_id", ">", "2"], "query_toks_no_value": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "storm_id", ">", "value"], "question": "Show the average and maximum damage for all storms with storm id higher than 2.", "question_toks": ["Show", "the", "average", "and", "maximum", "damage", "for", "all", "storms", "with", "storm", "id", "higher", "than", "2", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 1, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2702", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0014", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where storm_id > 2", "query_toks": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "storm_id", ">", "2"], "query_toks_no_value": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "storm_id", ">", "value"], "question": "What is the average and maximum damage in millions for storms that had a storm id over 2?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "damage", "in", "millions", "for", "storms", "that", "had", "a", "storm", "id", "over", "2", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 1, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2703", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0015", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where storm_id > (select avg(storm_id) from storm)", "query_toks": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "storm_id", ">", "(", "select", "avg", "(", "storm_id", ")", "from", "storm", ")"], "query_toks_no_value": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "storm_id", ">", "value", "select", "avg", "(", "storm_id", ")", "from", "storm", ")"], "question": "What is the total number of deaths and damage for all storms with a storm id greater than the average?", "question_toks": ["What", "is", "the", "total", "number", "of", "deaths", "and", "damage", "for", "all", "storms", "with", "a", "storm", "id", "greater", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2704", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0016", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where storm_id > (select avg(storm_id) from storm)", "query_toks": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "storm_id", ">", "(", "select", "avg", "(", "storm_id", ")", "from", "storm", ")"], "query_toks_no_value": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "storm_id", ">", "value", "select", "avg", "(", "storm_id", ")", "from", "storm", ")"], "question": "Return the total number of deaths and total damange in millions for storms that had a storm id greater than the average.", "question_toks": ["Return", "the", "total", "number", "of", "deaths", "and", "total", "damange", "in", "millions", "for", "storms", "that", "had", "a", "storm", "id", "greater", "than", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2705", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0017", "db_id": "storm_record", "query": "select name , damage_millions_usd from storm order by storm_id desc", "query_toks": ["select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "storm_id", "desc"], "query_toks_no_value": ["select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "storm_id", "desc"], "question": "List name and damage for all storms in a descending order of storm id.", "question_toks": ["List", "name", "and", "damage", "for", "all", "storms", "in", "a", "descending", "order", "of", "storm", "id", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 1, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2706", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0018", "db_id": "storm_record", "query": "select name , damage_millions_usd from storm order by storm_id desc", "query_toks": ["select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "storm_id", "desc"], "query_toks_no_value": ["select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "storm_id", "desc"], "question": "What are the names and damage in millions for storms, ordered by their storm id descending?", "question_toks": ["What", "are", "the", "names", "and", "damage", "in", "millions", "for", "storms", ",", "ordered", "by", "their", "storm", "id", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 1, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2707", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0019", "db_id": "storm_record", "query": "select t1.name , t1.storm_id from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id order by count(*) desc limit 1", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "storm_id", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "storm_id", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "What is the storm name and storm id which affected the greatest number of regions?", "question_toks": ["What", "is", "the", "storm", "name", "and", "storm", "id", "which", "affected", "the", "greatest", "number", "of", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2716", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0020", "db_id": "storm_record", "query": "select t1.name , t1.storm_id from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id order by count(*) desc limit 1", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "storm_id", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "storm_id", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Return the name and storm id of the storm that affected the most regions.", "question_toks": ["Return", "the", "name", "and", "storm", "id", "of", "the", "storm", "that", "affected", "the", "most", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2717", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0021", "db_id": "tracking_share_transactions", "query": "select max(date_of_transaction) from transactions where amount_of_transaction < 10000", "query_toks": ["select", "max", "(", "date_of_transaction", ")", "from", "transactions", "where", "amount_of_transaction", "<", "10000"], "query_toks_no_value": ["select", "max", "(", "date_of_transaction", ")", "from", "transactions", "where", "amount_of_transaction", "<", "value"], "question": "Show the maximum date of transaction where the amount is smaller than 10000", "question_toks": ["Show", "the", "maximum", "date", "of", "transaction", "where", "the", "amount", "is", "smaller", "than", "10000"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 12, false], null], 10000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5855", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0022", "db_id": "tracking_share_transactions", "query": "select date_of_transaction from transactions where transaction_id > 10 or investor_id > 10", "query_toks": ["select", "date_of_transaction", "from", "transactions", "where", "transaction_id", ">", "10", "or", "investor_id", ">", "10"], "query_toks_no_value": ["select", "date_of_transaction", "from", "transactions", "where", "transaction_id", ">", "value", "or", "investor_id", ">", "value"], "question": "Show the dates of transactions if the investor id is bigger than 10 or the transaction id is bigger than 10.", "question_toks": ["Show", "the", "dates", "of", "transactions", "if", "the", "investor", "id", "is", "bigger", "than", "10", "or", "the", "transaction", "id", "is", "bigger", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 10.0, null], "or", [false, 3, [0, [0, 9, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5856", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0023", "db_id": "tracking_share_transactions", "query": "select t1.transaction_type_description , t2.date_of_transaction from ref_transaction_types as t1 join transactions as t2 on t1.transaction_type_code = t2.transaction_type_code where t2.investor_id < 10", "query_toks": ["select", "t1", ".", "transaction_type_description", ",", "t2", ".", "date_of_transaction", "from", "ref_transaction_types", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "transaction_type_code", "=", "t2", ".", "transaction_type_code", "where", "t2", ".", "investor_id", "<", "10"], "query_toks_no_value": ["select", "t1", ".", "transaction_type_description", ",", "t2", ".", "date_of_transaction", "from", "ref_transaction_types", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "transaction_type_code", "=", "t2", ".", "transaction_type_code", "where", "t2", ".", "investor_id", "<", "value"], "question": "Show the transaction type descriptions and dates if the investor id is smaller than 10.", "question_toks": ["Show", "the", "transaction", "type", "descriptions", "and", "dates", "if", "the", "investor", "id", "is", "smaller", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5857", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0024", "db_id": "tracking_share_transactions", "query": "select t1.investor_details from investors as t1 join transactions as t2 on t1.investor_id = t2.investor_id where t2.investor_id > 8", "query_toks": ["select", "t1", ".", "investor_details", "from", "investors", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "where", "t2", ".", "investor_id", ">", "8"], "query_toks_no_value": ["select", "t1", ".", "investor_details", "from", "investors", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "where", "t2", ".", "investor_id", ">", "value"], "question": "Show details of all investors if they make any transaction with investor id greater than 8.", "question_toks": ["Show", "details", "of", "all", "investors", "if", "they", "make", "any", "transaction", "with", "investor", "id", "greater", "than", "8", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5858", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0025", "db_id": "tracking_share_transactions", "query": "select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.transaction_id join transactions as t3 on t2.transaction_id = t3.transaction_id where t3.investor_id < 10", "query_toks": ["select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "investor_id", "<", "10"], "query_toks_no_value": ["select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "investor_id", "<", "value"], "question": "What are the lot details of lots associated with transactions with investor id smaller than 10?", "question_toks": ["What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "with", "investor", "id", "smaller", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5864", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0026", "db_id": "tracking_share_transactions", "query": "select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.transaction_id join transactions as t3 on t2.transaction_id = t3.transaction_id where t3.investor_id > 8 and t3.transaction_type_code = \"pur\"", "query_toks": ["select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "investor_id", ">", "8", "and", "t3", ".", "transaction_type_code", "=", "``", "pur", "''"], "query_toks_no_value": ["select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "investor_id", ">", "value", "and", "t3", ".", "transaction_type_code", "=", "value"], "question": "What are the lot details of lots associated with transactions whose investor id is bigger than 8 and whose type code is \"PUR\"?", "question_toks": ["What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "whose", "investor", "id", "is", "bigger", "than", "8", "and", "whose", "type", "code", "is", "\"", "PUR", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 8.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"pur\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5865", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0027", "db_id": "tracking_share_transactions", "query": "select transaction_type_code , max(investor_id) , min(investor_id) from transactions group by transaction_type_code", "query_toks": ["select", "transaction_type_code", ",", "max", "(", "investor_id", ")", ",", "min", "(", "investor_id", ")", "from", "transactions", "group", "by", "transaction_type_code"], "query_toks_no_value": ["select", "transaction_type_code", ",", "max", "(", "investor_id", ")", ",", "min", "(", "investor_id", ")", "from", "transactions", "group", "by", "transaction_type_code"], "question": "Show the maximum and minimum investor id of different transaction types.", "question_toks": ["Show", "the", "maximum", "and", "minimum", "investor", "id", "of", "different", "transaction", "types", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5867", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0028", "db_id": "tracking_share_transactions", "query": "select investor_id , avg(transaction_id) from transactions group by investor_id", "query_toks": ["select", "investor_id", ",", "avg", "(", "transaction_id", ")", "from", "transactions", "group", "by", "investor_id"], "query_toks_no_value": ["select", "investor_id", ",", "avg", "(", "transaction_id", ")", "from", "transactions", "group", "by", "investor_id"], "question": "Show the average transaction id of transactions for different investors.", "question_toks": ["Show", "the", "average", "transaction", "id", "of", "transactions", "for", "different", "investors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5868", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0029", "db_id": "tracking_share_transactions", "query": "select investor_id , avg(transaction_id) from transactions group by investor_id order by avg(transaction_id)", "query_toks": ["select", "investor_id", ",", "avg", "(", "transaction_id", ")", "from", "transactions", "group", "by", "investor_id", "order", "by", "avg", "(", "transaction_id", ")"], "query_toks_no_value": ["select", "investor_id", ",", "avg", "(", "transaction_id", ")", "from", "transactions", "group", "by", "investor_id", "order", "by", "avg", "(", "transaction_id", ")"], "question": "Show the average transaction id of transactions for each investor, ordered by average transaction id.", "question_toks": ["Show", "the", "average", "transaction", "id", "of", "transactions", "for", "each", "investor", ",", "ordered", "by", "average", "transaction", "id", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["asc", [[0, [5, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5869", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0030", "db_id": "tracking_share_transactions", "query": "select date_of_transaction from transactions where investor_id >= 10 or amount_of_transaction >= 100", "query_toks": ["select", "date_of_transaction", "from", "transactions", "where", "investor_id", ">=", "10", "or", "amount_of_transaction", ">=", "100"], "query_toks_no_value": ["select", "date_of_transaction", "from", "transactions", "where", "investor_id", ">=", "value", "or", "amount_of_transaction", ">=", "value"], "question": "What are the dates of transactions with at least 10 investor id or amount bigger than 100?", "question_toks": ["What", "are", "the", "dates", "of", "transactions", "with", "at", "least", "10", "investor", "id", "or", "amount", "bigger", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 10.0, null], "or", [false, 5, [0, [0, 12, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5882", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0031", "db_id": "aircraft", "query": "select t1.aircraft , t1.description from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.transit_passengers > 50000", "query_toks": ["select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "transit_passengers", ">", "50000"], "query_toks_no_value": ["select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "transit_passengers", ">", "value"], "question": "Please show the names and descriptions of aircrafts associated with airports that have a number of transit passengers bigger than 50000.", "question_toks": ["Please", "show", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "airports", "that", "have", "a", "number", "of", "transit", "passengers", "bigger", "than", "50000", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 23, false], null], 50000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4817", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0032", "db_id": "aircraft", "query": "select t1.aircraft , t1.description from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.transit_passengers > 50000", "query_toks": ["select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "transit_passengers", ">", "50000"], "query_toks_no_value": ["select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "transit_passengers", ">", "value"], "question": "What are the names and descriptions of aircrafts associated with an airport that has more transit passengers than 50000?", "question_toks": ["What", "are", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "an", "airport", "that", "has", "more", "transit", "passengers", "than", "50000", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 23, false], null], 50000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4818", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0033", "db_id": "aircraft", "query": "select avg(t3.transit_passengers) from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t1.aircraft = \"robinson r-22\"", "query_toks": ["select", "avg", "(", "t3", ".", "transit_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "``", "robinson", "r", "-", "22", "''"], "query_toks_no_value": ["select", "avg", "(", "t3", ".", "transit_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "value", "r", "-", "22"], "question": "What is the average number of transit passengers of airports that are associated with aircraft \"Robinson R-22\"?", "question_toks": ["What", "is", "the", "average", "number", "of", "transit", "passengers", "of", "airports", "that", "are", "associated", "with", "aircraft", "\"", "Robinson", "R", "-", "22", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[5, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"robinson r-22\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4819", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0034", "db_id": "aircraft", "query": "select avg(t3.transit_passengers) from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t1.aircraft = \"robinson r-22\"", "query_toks": ["select", "avg", "(", "t3", ".", "transit_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "``", "robinson", "r", "-", "22", "''"], "query_toks_no_value": ["select", "avg", "(", "t3", ".", "transit_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "value", "r", "-", "22"], "question": "What is the average number of transit passengers for all airports that the aircraft \"Robinson R-22\" visits?", "question_toks": ["What", "is", "the", "average", "number", "of", "transit", "passengers", "for", "all", "airports", "that", "the", "aircraft", "\"", "Robinson", "R", "-", "22", "\"", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[5, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"robinson r-22\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4820", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0035", "db_id": "apartment_rentals", "query": "select min(building_id) , max(building_id) from apartment_buildings", "query_toks": ["select", "min", "(", "building_id", ")", ",", "max", "(", "building_id", ")", "from", "apartments"], "query_toks_no_value": ["select", "min", "(", "building_id", ")", ",", "max", "(", "building_id", ")", "from", "apartments"], "question": "What is the minimum and maximum building id of all the apartment buildings?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "building", "id", "of", "all", "the", "apartments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1206", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0036", "db_id": "apartment_rentals", "query": "select min(building_id) , max(building_id) from apartment_buildings", "query_toks": ["select", "min", "(", "building_id", ")", ",", "max", "(", "building_id", ")", "from", "apartments"], "query_toks_no_value": ["select", "min", "(", "building_id", ")", ",", "max", "(", "building_id", ")", "from", "apartments"], "question": "Give me the minimum and maximum building id among all the apartment buildings.", "question_toks": ["Give", "me", "the", "minimum", "and", "maximum", "building", "id", "among", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1207", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0037", "db_id": "gymnast", "query": "select vault_points from gymnast order by vault_points desc", "query_toks": ["select", "vault_points", "from", "gymnast", "order", "by", "total_points", "desc"], "query_toks_no_value": ["select", "vault_points", "from", "gymnast", "order", "by", "total_points", "desc"], "question": "List the vault points of gymnasts in descending order.", "question_toks": ["List", "the", "vault", "points", "of", "gymnasts", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1738", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0038", "db_id": "gymnast", "query": "select vault_points from gymnast order by vault_points desc", "query_toks": ["select", "vault_points", "from", "gymnast", "order", "by", "total_points", "desc"], "query_toks_no_value": ["select", "vault_points", "from", "gymnast", "order", "by", "total_points", "desc"], "question": "What are the vault points for all gymnasts, ordered by vault points descending?", "question_toks": ["What", "are", "the", "vault", "points", "for", "all", "gymnasts", ",", "ordered", "by", "vault", "points", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1739", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0039", "db_id": "gymnast", "query": "select vault_points from gymnast order by floor_exercise_points desc", "query_toks": ["select", "vault_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc"], "query_toks_no_value": ["select", "vault_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc"], "question": "List the vault points of gymnasts in descending order of floor exercise points.", "question_toks": ["List", "the", "vault", "points", "of", "gymnasts", "in", "descending", "order", "of", "floor", "exercise", "points", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1740", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0040", "db_id": "gymnast", "query": "select vault_points from gymnast order by floor_exercise_points desc", "query_toks": ["select", "vault_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc"], "query_toks_no_value": ["select", "vault_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc"], "question": "What are the vault points of gymnasts, ordered by their floor exercise points descending?", "question_toks": ["What", "are", "the", "vault", "points", "of", "gymnasts", ",", "ordered", "by", "their", "floor", "exercise", "points", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1741", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0041", "db_id": "gymnast", "query": "select t1.vault_points from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t2.age asc limit 1", "query_toks": ["select", "t1", ".", "vault_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "vault_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "1"], "question": "What is the vault point count of the youngest gymnast?", "question_toks": ["What", "is", "the", "vault", "point", "count", "of", "the", "youngest", "gymnast", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1754", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0042", "db_id": "gymnast", "query": "select t1.vault_points from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t2.age asc limit 1", "query_toks": ["select", "t1", ".", "vault_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "vault_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "1"], "question": "Return the vault points of the gymnast with the lowest age.", "question_toks": ["Return", "the", "vault", "points", "of", "the", "gymnast", "with", "the", "lowest", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1755", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0043", "db_id": "gymnast", "query": "select distinct hometown from people where people_id in ( select gymnast_id from gymnast where vault_points > 9.5);", "query_toks": ["select", "t1", ".", "vault_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1", ".", "vault_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "1"], "question": "What are the distinct hometowns of gymnasts with vault points more than 9.5?", "question_toks": ["What", "are", "the", "distinct", "hometowns", "of", "gymnasts", "with", "vault", "points", "more", "than", "57", ".", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1758", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0044", "db_id": "gymnast", "query": "select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t1.vault_points > 9.5", "query_toks": ["select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t1", ".", "vault_points", ">", "9", ".", "5"], "query_toks_no_value": ["select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t1", ".", "vault_points", ">", "value", ".", "5"], "question": "Give the different hometowns of gymnasts that have a vault point score of above 9.5.", "question_toks": ["Give", "the", "different", "hometowns", "of", "gymnasts", "that", "have", "a", "vault", "point", "score", "of", "above", "9", ".", "5", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 9.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1759", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0045", "db_id": "gymnast", "query": "select t2.age from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t1.vault_points desc", "query_toks": ["select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "vault_points", "desc"], "query_toks_no_value": ["select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "vault_points", "desc"], "question": "Show the ages of gymnasts in descending order of vault points.", "question_toks": ["Show", "the", "ages", "of", "gymnasts", "in", "descending", "order", "of", "vault", "points", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1774", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0046", "db_id": "gymnast", "query": "select t2.age from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t1.vault_points desc", "query_toks": ["select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "vault_points", "desc"], "query_toks_no_value": ["select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "vault_points", "desc"], "question": "What are the ages of the gymnasts, ordered descending by their vault points?", "question_toks": ["What", "are", "the", "ages", "of", "the", "gymnasts", ",", "ordered", "descending", "by", "their", "vault", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1775", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0047", "db_id": "store_product", "query": "select product_id from product group by product_id having count(*) > 3", "query_toks": ["select", "product_id", "from", "product", "group", "by", "product_id", "having", "count", "(*)", ">", "3"], "query_toks_no_value": ["select", "product_id", "from", "product", "group", "by", "product_id", "having", "count", "(*)", ">", "3"], "question": "Find the list of product id which have more than 3 product listed", "question_toks": ["Find", "the", "list", "of", "product", "id", "which", "have", "more", "than", "3", "product", "listed"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4902", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0048", "db_id": "store_product", "query": "select product_id from product group by product_id having count(*) > 3", "query_toks": ["select", "product_id", "from", "product", "group", "by", "product_id", "having", "count", "(*)", ">", "3"], "query_toks_no_value": ["select", "product_id", "from", "product", "group", "by", "product_id", "having", "count", "(*)", ">", "3"], "question": "What is the product id for everything that has more than 3 products listed?", "question_toks": ["What", "is", "the", "product", "id", "for", "everything", "that", "has", "more", "than", "3", "products", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4903", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0049", "db_id": "store_product", "query": "select interface from product group by interface order by count(*) desc limit 1", "query_toks": ["select", "interface", "from", "product", "group", "by", "interface", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "interface", "from", "product", "group", "by", "interface", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Find the most prominent interface among all the products.", "question_toks": ["Find", "the", "most", "prominent", "interface", "among", "all", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4936", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0050", "db_id": "store_product", "query": "select interface from product group by interface order by count(*) desc limit 1", "query_toks": ["select", "interface", "from", "product", "group", "by", "interface", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "interface", "from", "product", "group", "by", "interface", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "What is the most common interface?", "question_toks": ["What", "is", "the", "most", "common", "interface", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4937", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0051", "db_id": "train_station", "query": "select name , station_id from station where location != \"london\"", "query_toks": ["select", "name", ",", "station_id", "from", "station", "where", "location", "!=", "``", "london", "''"], "query_toks_no_value": ["select", "name", ",", "station_id", "from", "station", "where", "location", "!=", "value"], "question": "Show the names and station id for all train stations not in London.", "question_toks": ["Show", "the", "names", "and", "station", "id", "for", "all", "train", "stations", "not", "in", "London", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6602", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0052", "db_id": "train_station", "query": "select name , main_services from station order by annual_entry_exit desc limit 3", "query_toks": ["select", "name", ",", "main_services", "from", "station", "order", "by", "annual_entry_exit", "desc", "limit", "3"], "query_toks_no_value": ["select", "name", ",", "main_services", "from", "station", "order", "by", "annual_entry_exit", "desc", "limit", "3"], "question": "Show the names and main services for train stations that have the top three annual entry exit.", "question_toks": ["Show", "the", "names", "and", "main", "services", "for", "train", "stations", "that", "have", "the", "top", "three", "annual", "entry", "exit", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6603", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0053", "db_id": "train_station", "query": "select avg(annual_entry_exit) , max(annual_entry_exit) from station where location = \"london\" or location = \"glasgow\"", "query_toks": ["select", "avg", "(", "annual_entry_exit", ")", ",", "max", "(", "annual_entry_exit", ")", "from", "station", "where", "location", "=", "``", "london", "''", "or", "location", "=", "``", "glasgow", "''"], "query_toks_no_value": ["select", "avg", "(", "annual_entry_exit", ")", ",", "max", "(", "annual_entry_exit", ")", "from", "station", "where", "location", "=", "value", "or", "location", "=", "value"], "question": "What is the average and maximum annual entry exit for train stations in London or Glasgow?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "annual", "entry", "exit", "for", "train", "stations", "in", "London", "or", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"london\"", null], "or", [false, 2, [0, [0, 6, false], null], "\"glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6604", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0054", "db_id": "tracking_share_transactions", "query": "select date_of_transaction , investor_id from transactions", "query_toks": ["select", "date_of_transaction", ",", "investor_id", "from", "transactions"], "query_toks_no_value": ["select", "date_of_transaction", ",", "investor_id", "from", "transactions"], "question": "Show all date and investor id of transactions.", "question_toks": ["Show", "all", "date", "and", "investor", "id", "of", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5848", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0055", "db_id": "tracking_share_transactions", "query": "select min(investor_id) from transactions where transaction_type_code = \"pur\" and share_count > 50", "query_toks": ["select", "min", "(", "investor_id", ")", "from", "transactions", "where", "transaction_type_code", "=", "``", "pur", "''", "and", "share_count", ">", "50"], "query_toks_no_value": ["select", "min", "(", "investor_id", ")", "from", "transactions", "where", "transaction_type_code", "=", "value", "and", "share_count", ">", "value"], "question": "Show the minimum investor id whose type code is \"PUR\" and whose share count is bigger than 50.", "question_toks": ["Show", "the", "minimum", "investor", "id", "whose", "type", "code", "is", "\"", "PUR", "\"", "and", "whose", "share", "count", "is", "bigger", "than", "50", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"pur\"", null], "and", [false, 3, [0, [0, 13, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5854", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0056", "db_id": "bike_1", "query": "select date from weather where cloud_cover > 2", "query_toks": ["select", "date", "from", "weather", "where", "cloud_cover", ">", "2"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "cloud_cover", ">", "value"], "question": "Give me the dates when the cloud cover was higher than 2.", "question_toks": ["Give", "me", "the", "dates", "when", "the", "cloud", "cover", "was", "higher", "than", "2", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 3, [0, [0, 43, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0109", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0057", "db_id": "bike_1", "query": "select date from weather where cloud_cover > 85", "query_toks": ["select", "date", "from", "weather", "where", "cloud_cover", ">", "2"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "cloud_cover", ">", "value"], "question": "What are the dates with a cloud cover higher than 85?", "question_toks": ["What", "are", "the", "dates", "with", "a", "cloud", "cover", "higher", "than", "85", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 3, [0, [0, 43, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0110", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0058", "db_id": "bike_1", "query": "select zip_code , avg(cloud_cover) from weather where date like \"8/%\" group by zip_code", "query_toks": ["select", "zip_code", ",", "avg", "(", "cloud_cover", ")", "from", "weather", "where", "date", "like", "``", "8", "/%\"", "group", "by", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "avg", "(", "cloud_cover", ")", "from", "weather", "where", "date", "like", "value", "/%\"", "group", "by", "zip_code"], "question": "For each zip code, return the average cloud cover of August there.", "question_toks": ["For", "each", "zip", "code", ",", "return", "the", "average", "cloud", "cover", "of", "August", "there", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 43, false], null]]]], "where": [[false, 9, [0, [0, 23, false], null], "\"8/%\"", null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0123", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0059", "db_id": "bike_1", "query": "select zip_code , avg(cloud_cover) from weather where date like \"8/%\" group by zip_code", "query_toks": ["select", "zip_code", ",", "avg", "(", "cloud_cover", ")", "from", "weather", "where", "date", "like", "``", "8", "/%\"", "group", "by", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "avg", "(", "cloud_cover", ")", "from", "weather", "where", "date", "like", "value", "/%\"", "group", "by", "zip_code"], "question": "For each zip code, what is the average cloud cover for all dates that start with '8'?", "question_toks": ["For", "each", "zip", "code", ",", "what", "is", "the", "average", "cloud", "cover", "for", "all", "dates", "that", "start", "with", "'", "8", "'?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 43, false], null]]]], "where": [[false, 9, [0, [0, 23, false], null], "\"8/%\"", null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0124", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0060", "db_id": "bike_1", "query": "select count(*) from weather where cloud_cover > 2 and precipitation_inches > 0", "query_toks": ["select", "count", "(*)", "from", "weather", "where", "cloud_cover", ">", "2", "and", "precipitation_inches", ">", "0"], "query_toks_no_value": ["select", "count", "(*)", "from", "weather", "where", "cloud_cover", ">", "value", "and", "precipitation_inches", ">", "value"], "question": "How many days had both cloud cover above 2 and precipitation inches above 0?", "question_toks": ["How", "many", "days", "had", "both", "cloud", "cover", "above", "2", "and", "precipitation", "inches", "above", "0", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 43, false], null], 2.0, null], "and", [false, 3, [0, [0, 42, false], null], 0.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0137", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0061", "db_id": "bike_1", "query": "select count(*) from weather where cloud_cover > 2 and precipitation_inches > 0", "query_toks": ["select", "count", "(*)", "from", "weather", "where", "cloud_cover", ">", "2", "and", "precipitation_inches", ">", "0"], "query_toks_no_value": ["select", "count", "(*)", "from", "weather", "where", "cloud_cover", ">", "value", "and", "precipitation_inches", ">", "value"], "question": "What is the number of days that had an cloud cover above 2 and precipitation inches above 0?", "question_toks": ["What", "is", "the", "number", "of", "days", "that", "had", "an", "cloud", "cover", "above", "2", "and", "precipitation", "inches", "above", "0", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 43, false], null], 2.0, null], "and", [false, 3, [0, [0, 42, false], null], 0.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0138", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0062", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code order by avg(cloud_cover) limit 1", "query_toks": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "cloud_cover", ")", "limit", "1"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "cloud_cover", ")", "limit", "1"], "question": "What is the zip code in which the average cloud cover is the lowest?", "question_toks": ["What", "is", "the", "zip", "code", "in", "which", "the", "average", "cloud", "cover", "is", "the", "lowest", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["asc", [[0, [5, 43, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0147", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0063", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code order by avg(cloud_cover) limit 1", "query_toks": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "cloud_cover", ")", "limit", "1"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "cloud_cover", ")", "limit", "1"], "question": "What is the zip code that has the lowest average cloud cover?", "question_toks": ["What", "is", "the", "zip", "code", "that", "has", "the", "lowest", "average", "cloud", "cover", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["asc", [[0, [5, 43, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0148", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0064", "db_id": "bike_1", "query": "select date , zip_code from weather where cloud_cover >= 2", "query_toks": ["select", "date", ",", "zip_code", "from", "weather", "where", "cloud_cover", ">=", "2"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "cloud_cover", ">=", "value"], "question": "When and in what zip code did cloud cover reach 2?", "question_toks": ["When", "and", "in", "what", "zip", "code", "did", "cloud", "cover", "reach", "2", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0153", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0065", "db_id": "bike_1", "query": "select date , zip_code from weather where cloud_cover >= 2", "query_toks": ["select", "date", ",", "zip_code", "from", "weather", "where", "cloud_cover", ">=", "2"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "cloud_cover", ">=", "value"], "question": "What zip codes have a station with a cloud cover greater than or equal to 2 and when did it reach that temperature?", "question_toks": ["What", "zip", "codes", "have", "a", "station", "with", "a", "cloud", "cover", "greater", "than", "or", "equal", "to", "2", "and", "when", "did", "it", "reach", "that", "temperature", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0154", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0066", "db_id": "bike_1", "query": "select t1.id from trip as t1 join weather as t2 on t1.zip_code = t2.zip_code group by t2.zip_code having avg(t2.cloud_cover) > 2", "query_toks": ["select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "cloud_cover", ")", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "cloud_cover", ")", ">", "2"], "question": "Give me ids for all the trip that took place in a zip code area with average cloud cover above 2.", "question_toks": ["Give", "me", "ids", "for", "all", "the", "trip", "that", "took", "place", "in", "a", "zip", "code", "area", "with", "average", "cloud", "cover", "above", "2", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [5, 43, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0155", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0067", "db_id": "bike_1", "query": "select t1.id from trip as t1 join weather as t2 on t1.zip_code = t2.zip_code group by t2.zip_code having avg(t2.cloud_cover) > 2", "query_toks": ["select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "cloud_cover", ")", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "cloud_cover", ")", ">", "2"], "question": "For each zip code, find the ids of all trips that have a higher average cloud cover above 2?", "question_toks": ["For", "each", "zip", "code", ",", "find", "the", "ids", "of", "all", "trips", "that", "have", "a", "higher", "average", "cloud", "cover", "above", "2", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [5, 43, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0156", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0068", "db_id": "bike_1", "query": "select zip_code , count(*) from weather where cloud_cover >= 4 group by zip_code", "query_toks": ["select", "zip_code", ",", "count", "(*)", "from", "weather", "where", "cloud_cover", ">=", "4", "group", "by", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "count", "(*)", "from", "weather", "where", "cloud_cover", ">=", "value", "group", "by", "zip_code"], "question": "For each zip code, return how many times cloud cover reached 4?", "question_toks": ["For", "each", "zip", "code", ",", "return", "how", "many", "times", "cloud", "cover", "reached", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 4.0, null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0157", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0069", "db_id": "bike_1", "query": "select zip_code , count(*) from weather where cloud_cover >= 4 group by zip_code", "query_toks": ["select", "zip_code", ",", "count", "(*)", "from", "weather", "where", "cloud_cover", ">=", "4", "group", "by", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "count", "(*)", "from", "weather", "where", "cloud_cover", ">=", "value", "group", "by", "zip_code"], "question": "For each zip code, how many times has the cloud cover reached 4?", "question_toks": ["For", "each", "zip", "code", ",", "how", "many", "times", "has", "the", "cloud", "cover", "reached", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 4.0, null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0158", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0070", "db_id": "bike_1", "query": "select date , zip_code from weather where cloud_cover < (select min(cloud_cover) from weather where zip_code = 94107)", "query_toks": ["select", "date", ",", "zip_code", "from", "weather", "where", "cloud_cover", "<", "(", "select", "min", "(", "cloud_cover", ")", "from", "weather", "where", "zip_code", "=", "94107", ")"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "cloud_cover", "<", "value", "select", "min", "(", "cloud_cover", ")", "from", "weather", "where", "zip_code", "=", "value", ")"], "question": "On which day and in which zip code was the cloud cover lower than any day in zip code 94107?", "question_toks": ["On", "which", "day", "and", "in", "which", "zip", "code", "was", "the", "cloud", "cover", "lower", "than", "any", "day", "in", "zip", "code", "94107", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 4, [0, [0, 43, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0159", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0071", "db_id": "bike_1", "query": "select date , zip_code from weather where cloud_cover < (select min(cloud_cover) from weather where zip_code = 94107)", "query_toks": ["select", "date", ",", "zip_code", "from", "weather", "where", "cloud_cover", "<", "(", "select", "min", "(", "cloud_cover", ")", "from", "weather", "where", "zip_code", "=", "94107", ")"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "cloud_cover", "<", "value", "select", "min", "(", "cloud_cover", ")", "from", "weather", "where", "zip_code", "=", "value", ")"], "question": "Which days had a cloud cover smaller than any day in zip code 94107, and in which zip codes were those measurements taken?", "question_toks": ["Which", "days", "had", "a", "cloud", "cover", "smaller", "than", "any", "day", "in", "zip", "code", "94107", ",", "and", "in", "which", "zip", "codes", "were", "those", "measurements", "taken", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 4, [0, [0, 43, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0160", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0072", "db_id": "bike_1", "query": "select date , cloud_cover, precipitation_inches from weather order by wind_dir_degrees desc limit 3", "query_toks": ["select", "date", ",", "cloud_cover", ",", "precipitation_inches", "from", "weather", "order", "by", "wind_dir_degrees", "desc", "limit", "3"], "query_toks_no_value": ["select", "date", ",", "cloud_cover", ",", "precipitation_inches", "from", "weather", "order", "by", "wind_dir_degrees", "desc", "limit", "3"], "question": "What are the date, cloud cover and precipitation inches for the top 3 days with the largest wind dir degrees?", "question_toks": ["What", "are", "the", "date", ",", "cloud", "cover", "and", "precipitation", "inches", "for", "the", "top", "3", "days", "with", "the", "largest", "wind", "dir", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 43, false], null]], [0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 45, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0175", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0073", "db_id": "bike_1", "query": "select date , cloud_cover, precipitation_inches from weather order by wind_dir_degrees desc limit 3", "query_toks": ["select", "date", ",", "cloud_cover", ",", "precipitation_inches", "from", "weather", "order", "by", "wind_dir_degrees", "desc", "limit", "3"], "query_toks_no_value": ["select", "date", ",", "cloud_cover", ",", "precipitation_inches", "from", "weather", "order", "by", "wind_dir_degrees", "desc", "limit", "3"], "question": "What is the date, cloud cover and precipitation inches for the days with the 3 largest argest wind dir degrees?", "question_toks": ["What", "is", "the", "date", ",", "cloud", "cover", "and", "precipitation", "inches", "for", "the", "days", "with", "the", "3", "largest", "argest", "wind", "dir", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 43, false], null]], [0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 45, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0176", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0074", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(cloud_cover) < 6", "query_toks": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "cloud_cover", ")", "<", "6"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "cloud_cover", ")", "<", "6"], "question": "Find the zip code in which the average cloud cover is lower than 10.", "question_toks": ["Find", "the", "zip", "code", "in", "which", "the", "average", "cloud", "cover", "is", "lower", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 43, false], null], 6.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0181", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0075", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(cloud_cover) < 6", "query_toks": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "cloud_cover", ")", "<", "6"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "cloud_cover", ")", "<", "6"], "question": "For each zip code, select all those that have an average cloud cover below 6.", "question_toks": ["For", "each", "zip", "code", ",", "select", "all", "those", "that", "have", "an", "average", "cloud", "cover", "below", "6", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 43, false], null], 6.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0182", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0076", "db_id": "bike_1", "query": "select date from weather where cloud_cover between 2 and 6", "query_toks": ["select", "date", "from", "weather", "where", "cloud_cover", "between", "2", "and", "6"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "cloud_cover", "between", "2", "and", "6"], "question": "What are the dates in which the cloud cover was between 2 and 6?", "question_toks": ["What", "are", "the", "dates", "in", "which", "the", "cloud", "cover", "was", "between", "2", "and", "6", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 43, false], null], 2.0, 6.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0199", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0077", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(cloud_cover) < 8 intersect select zip_code from trip group by zip_code having count(*) >= 10", "query_toks": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "cloud_cover", ")", "<", "8", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(*)", ">=", "10"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "cloud_cover", ")", "<", "8", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(*)", ">=", "10"], "question": "Give me the zip code where the average cloud cover is below 8 and at least 10 trips took place.", "question_toks": ["Give", "me", "the", "zip", "code", "where", "the", "average", "cloud", "cover", "is", "below", "8", "and", "at", "least", "10", "trips", "took", "place", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 43, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_in_column_0077", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0078", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(cloud_cover) < 8 intersect select zip_code from trip group by zip_code having count(*) >= 10", "query_toks": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "cloud_cover", ")", "<", "8", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(*)", ">=", "10"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "cloud_cover", ")", "<", "8", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(*)", ">=", "10"], "question": "What are the zip codes that have an average cloud cover below 8 and had at least 10 trips come through there?", "question_toks": ["What", "are", "the", "zip", "codes", "that", "have", "an", "average", "cloud", "cover", "below", "8", "and", "had", "at", "least", "10", "trips", "come", "through", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 43, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_in_column_0078", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0079", "db_id": "body_builder", "query": "select snatch from body_builder order by total asc", "query_toks": ["select", "snatch", "from", "body_builder", "order", "by", "total", "asc"], "query_toks_no_value": ["select", "snatch", "from", "body_builder", "order", "by", "total", "asc"], "question": "List the snatch of body builders in ascending order.", "question_toks": ["List", "the", "snatch", "of", "body", "builders", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1151", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0080", "db_id": "body_builder", "query": "select clean_jerk from body_builder order by snatch desc limit 1", "query_toks": ["select", "clean_jerk", "from", "body_builder", "order", "by", "snatch", "desc", "limit", "1"], "query_toks_no_value": ["select", "clean_jerk", "from", "body_builder", "order", "by", "snatch", "desc", "limit", "1"], "question": "What are the clean and jerk score of the body builder with the highest snatch score?", "question_toks": ["What", "are", "the", "clean", "and", "jerk", "score", "of", "the", "body", "builder", "with", "the", "highest", "snatch", "score", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1154", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0081", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t1.snatch > 135", "query_toks": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "snatch", ">", "135"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "snatch", ">", "value"], "question": "What are the names of body builders whose snatch score is higher than 135?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "whose", "snatch", "score", "is", "higher", "than", "135", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 135.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1157", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0082", "db_id": "body_builder", "query": "select t2.birth_date , t2.birth_place from body_builder as t1 join people as t2 on t1.people_id = t2.people_id order by t1.snatch desc limit 1", "query_toks": ["select", "t2", ".", "birth_date", ",", "t2", ".", "birth_place", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "snatch", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "birth_date", ",", "t2", ".", "birth_place", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "snatch", "desc", "limit", "1"], "question": "What are the birth date and birth place of the body builder with the highest snatch points?", "question_toks": ["What", "are", "the", "birth", "date", "and", "birth", "place", "of", "the", "body", "builder", "with", "the", "highest", "snatch", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1159", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0083", "db_id": "body_builder", "query": "select t2.height from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t1.snatch < 140", "query_toks": ["select", "t2", ".", "height", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "snatch", "<", "140"], "query_toks_no_value": ["select", "t2", ".", "height", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "snatch", "<", "value"], "question": "What are the heights of body builders with snatch score smaller than 140?", "question_toks": ["What", "are", "the", "heights", "of", "body", "builders", "with", "snatch", "score", "smaller", "than", "140", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 140.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1160", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0084", "db_id": "body_builder", "query": "select avg(t1.snatch) from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t2.height > 200", "query_toks": ["select", "avg", "(", "t1", ".", "snatch", ")", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "snatch", ")", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value"], "question": "What is the average snatch score of body builders with height bigger than 200?", "question_toks": ["What", "is", "the", "average", "snatch", "score", "of", "body", "builders", "with", "height", "bigger", "than", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1161", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0085", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id order by t1.snatch desc", "query_toks": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "snatch", "desc"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "snatch", "desc"], "question": "What are the names of body builders in descending order of snatch scores?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "in", "descending", "order", "of", "snatch", "scores", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1162", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0086", "db_id": "body_builder", "query": "select t1.snatch from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t2.birth_date like \"%january%\"", "query_toks": ["select", "t1", ".", "snatch", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "birth_date", "like", "\"%", "january", "%\""], "query_toks_no_value": ["select", "t1", ".", "snatch", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "birth_date", "like", "\"%", "january", "%\""], "question": "What are the snatch scores of the body builders whose birthday contains the string \"January\" ?", "question_toks": ["What", "are", "the", "snatch", "scores", "of", "the", "body", "builders", "whose", "birthday", "contains", "the", "string", "\"", "January", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%january%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1172", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0087", "db_id": "chinook_1", "query": "select lastname from customer except select t1.lastname from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t2.invoiceid > 20", "query_toks": ["select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "invoiceid", ">", "20"], "query_toks_no_value": ["select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "invoiceid", ">", "value"], "question": "Find all the customer last names that do not have invoice id larger than 20.", "question_toks": ["Find", "all", "the", "customer", "last", "names", "that", "do", "not", "have", "invoice", "id", "larger", "than", "20", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 36, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0857", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0088", "db_id": "chinook_1", "query": "select lastname from customer except select t1.lastname from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t2.invoiceid > 20", "query_toks": ["select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "invoiceid", ">", "20"], "query_toks_no_value": ["select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "invoiceid", ">", "value"], "question": "What are the last names of customers without invoice id exceeding 20?", "question_toks": ["What", "are", "the", "last", "names", "of", "customers", "without", "invoice", "id", "exceeding", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 36, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0858", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0089", "db_id": "farm", "query": "select cows from farm order by cows asc", "query_toks": ["select", "cows", "from", "farm", "order", "by", "cows", "asc"], "query_toks_no_value": ["select", "cows", "from", "farm", "order", "by", "cows", "asc"], "question": "List the number of cows on farms in ascending order.", "question_toks": ["List", "the", "number", "of", "cows", "on", "farms", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0018", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0090", "db_id": "farm", "query": "select cows from farm order by cows asc", "query_toks": ["select", "cows", "from", "farm", "order", "by", "cows", "asc"], "query_toks_no_value": ["select", "cows", "from", "farm", "order", "by", "cows", "asc"], "question": "What is the cows record for each farm, sorted ascending?", "question_toks": ["What", "is", "the", "cows", "record", "for", "each", "farm", ",", "sorted", "ascending", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0019", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0091", "db_id": "game_injury", "query": "select name , id , home_games from stadium except select t2.name , t2.id , t2.home_games from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id", "query_toks": ["select", "name", ",", "id", ",", "home_games", "from", "stadium", "except", "select", "t2", ".", "name", ",", "t2", ".", "id", ",", "t2", ".", "home_games", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id"], "query_toks_no_value": ["select", "name", ",", "id", ",", "home_games", "from", "stadium", "except", "select", "t2", ".", "name", ",", "t2", ".", "id", ",", "t2", ".", "home_games", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id"], "question": "Show the name, id, haome games for stadiums where no accidents happened.", "question_toks": ["Show", "the", "name", ",", "id", ",", "haome", "games", "for", "stadiums", "where", "no", "accidents", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1289", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0092", "db_id": "museum_visit", "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.num_of_ticket) desc limit 1", "query_toks": ["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", ".", "num_of_ticket", ")", "desc", "limit", "1"], "query_toks_no_value": ["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", ".", "num_of_ticket", ")", "desc", "limit", "1"], "question": "What are the id, name and membership level of visitors who have bought the largest num of ticket in total in all museum tickets?", "question_toks": ["What", "are", "the", "id", ",", "name", "and", "membership", "level", "of", "visitors", "who", "have", "bought", "the", "largest", "num", "of", "ticket", "in", "total", "in", "all", "museum", "tickets", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0420", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0093", "db_id": "museum_visit", "query": "select sum(t2.num_of_ticket) from visitor as t1 join visit as t2 on t1.id = t2.visitor_id where t1.level_of_membership = 1", "query_toks": ["select", "sum", "(", "t2", ".", "num_of_ticket", ")", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "where", "t1", ".", "level_of_membership", "=", "1"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "num_of_ticket", ")", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "where", "t1", ".", "level_of_membership", "=", "value"], "question": "What is the total num of ticket of the visitors whose membership level is 1?", "question_toks": ["What", "is", "the", "total", "num", "of", "ticket", "of", "the", "visitors", "whose", "membership", "level", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0425", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "changed_logical_connectives_0000", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\" or continent = \"europe\"", "query_toks": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "asia", "''", "or", "continent", "=", "``", "europe", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value"], "question": "What is the total surface area of the continents called Asia or Europe?", "question_toks": ["What", "is", "the", "total", "surface", "area", "of", "the", "continents", "called", "Asia", "or", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0726", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0001", "db_id": "chinook_1", "query": "select avg(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"latin\" or t1.name = \"pop\"", "query_toks": ["select", "avg", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "``", "latin", "''", "or", "t1", ".", "name", "=", "``", "pop", "''"], "query_toks_no_value": ["select", "avg", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value"], "question": "Find the average millisecond length of Latin or Pop tracks.", "question_toks": ["Find", "the", "average", "millisecond", "length", "of", "Latin", "or", "Pop", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[5, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"latin\"", null], "or", [false, 2, [0, [0, 35, false], null], "\"pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0868", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0002", "db_id": "college_2", "query": "select sum(budget) from department where dept_name = \"marketing\" or dept_name = \"finance\"", "query_toks": ["select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "``", "marketing", "''", "or", "dept_name", "=", "``", "finance", "''"], "query_toks_no_value": ["select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value"], "question": "What is the sum of budgets of the Marketing or Finance departments?", "question_toks": ["What", "is", "the", "sum", "of", "budgets", "of", "the", "Marketing", "or", "Finance", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"marketing\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"finance\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1353", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0003", "db_id": "college_2", "query": "select distinct t1.name from student as t1 join takes as t2 on t1.id = t2.id where year = 2009 or year = 2010", "query_toks": ["select", "distinct", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "year", "=", "2009", "or", "year", "=", "2010"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "Find the name of students who took any class in the years of 2009 or 2010.", "question_toks": ["Find", "the", "name", "of", "students", "who", "took", "any", "class", "in", "the", "years", "of", "2009", "or", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 31, false], null]]}, "select": [true, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], 2009.0, null], "or", [false, 2, [0, [0, 35, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1368", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0004", "db_id": "world_1", "query": "select sum(population) from country where name = \"brunei\" or name = \"bhutan\"", "query_toks": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "``", "brunei", "''", "or", "name", "=", "``", "bhutan", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "value", "or", "name", "=", "value"], "question": "What is the total population of countries whose names are Brunei or Bhutan?", "question_toks": ["What", "is", "the", "total", "population", "of", "countries", "whose", "names", "are", "Brunei", "or", "Bhutan", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"brunei\"", null], "or", [false, 2, [0, [0, 9, false], null], "\"bhutan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_changed_logical_connectives_0004", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0005", "db_id": "world_1", "query": "select sum(population) from city where name = \"amsterdam\" or name = \"roterdam\"", "query_toks": ["select", "sum", "(", "population", ")", "from", "city", "where", "name", "=", "``", "amsterdam", "''", "or", "name", "=", "``", "roterdam", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "city", "where", "name", "=", "value", "or", "name", "=", "value"], "question": "How many people in total live in cities with names Amsterdam or Rotterdam?", "question_toks": ["How", "many", "people", "in", "total", "live", "in", "cities", "with", "names", "Amsterdam", "or", "Rotterdam", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"amsterdam\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"roterdam\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_changed_logical_connectives_0005", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0006", "db_id": "pets_1", "query": "select sum(weight) from pets where petid = 2001 or petid = 2003 ", "query_toks": ["select", "sum", "(", "weight", ")", "from", "pets", "where", "petid", "=", "2001", "or", "petid", "=", "2003"], "query_toks_no_value": ["select", "sum", "(", "weight", ")", "from", "pets", "where", "petid", "=", "value", "or", "petid", "=", "value"], "question": "Find the total weight for pets with id 2001or 2003.", "question_toks": ["Find", "the", "total", "weight", "for", "pets", "with", "id", "2001or", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 2001.0, null], "or", [false, 2, [0, [0, 11, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_changed_logical_connectives_0006", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "dejoin_from_4_to_0_0000", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "what kind of papers does Luke Zettlemoyer publish", "question_toks": ["what", "kind", "of", "papers", "does", "Luke", "Zettlemoyer", "publish"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0675", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0001", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "Keyphrases used by Luke Zettlemoyer", "question_toks": ["Keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0676", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0002", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "What keywords are in papers by Luke Zettlemoyer ?", "question_toks": ["What", "keywords", "are", "in", "papers", "by", "Luke", "Zettlemoyer", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0677", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0003", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keywords used by Luke Zettlemoyer", "question_toks": ["keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0678", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0004", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "what keywords are used by Luke Zettlemoyer", "question_toks": ["what", "keywords", "are", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0679", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0005", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0680", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0006", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keyphrases by Luke Zettlemoyer", "question_toks": ["keyphrases", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0681", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0007", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "give me the keywords used by Luke Zettlemoyer", "question_toks": ["give", "me", "the", "keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0682", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0008", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "What topic does Luke Zettlemoyer write about ?", "question_toks": ["What", "topic", "does", "Luke", "Zettlemoyer", "write", "about", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0683", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0009", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "what topics does Luke Zettlemoyer publish in", "question_toks": ["what", "topics", "does", "Luke", "Zettlemoyer", "publish", "in"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0684", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0010", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keywords in the papers written by Luke Zettlemoyer", "question_toks": ["keywords", "in", "the", "papers", "written", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0685", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0011", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer .", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0686", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0012", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "topics used by Luke Zettlemoyer", "question_toks": ["topics", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0687", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0013", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'sanjeev arora' order by t1.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t1.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "order", "by", "t1.year", "desc"], "question": "recent research interests of sanjeev arora", "question_toks": ["recent", "research", "interests", "of", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0744", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0014", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'sanjeev arora' order by t1.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t1.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "order", "by", "t1.year", "desc"], "question": "recent papers by sanjeev arora", "question_toks": ["recent", "papers", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0745", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0015", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'sanjeev arora' order by t1.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t1.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "order", "by", "t1.year", "desc"], "question": "recent papers written by sanjeev arora", "question_toks": ["recent", "papers", "written", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0746", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0016", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless convolution paper", "question_toks": ["brian", "curless", "convolution", "paper"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0756", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0017", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution by brian curless", "question_toks": ["convolution", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0757", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0018", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers by brian curless about convolution", "question_toks": ["papers", "by", "brian", "curless", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0758", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0019", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless 's paper about convolution", "question_toks": ["brian", "curless", "'s", "paper", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0759", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0020", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What are the papers of brian curless in convolution ?", "question_toks": ["What", "are", "the", "papers", "of", "brian", "curless", "in", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0760", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0021", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers brian curless wrote about convolution", "question_toks": ["papers", "brian", "curless", "wrote", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0761", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0022", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless 's papers on convolution", "question_toks": ["brian", "curless", "'s", "papers", "on", "convolution"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0762", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0023", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What is the paper about convolution from brian curless ?", "question_toks": ["What", "is", "the", "paper", "about", "convolution", "from", "brian", "curless", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0763", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0024", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers by brian curless in convolution topic", "question_toks": ["papers", "by", "brian", "curless", "in", "convolution", "topic"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0764", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0025", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "I want the papers on keyphrase0 by brian curless", "question_toks": ["I", "want", "the", "papers", "on", "keyphrase0", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0765", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0026", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution papers by brian curless", "question_toks": ["convolution", "papers", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0766", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0027", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What papers has brian curless written on convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "on", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0767", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0028", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What papers has brian curless written about convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "about", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0768", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0029", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution paper by brian curless", "question_toks": ["convolution", "paper", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0769", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0030", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "Does brian curless do convolution ?", "question_toks": ["Does", "brian", "curless", "do", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0770", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0031", "db_id": "scholar_total_7", "query": "select distinct t1.datasetid , t1.year from paperdataset_dataset_paperkeyphrase_paper_keyphrase as t1 where t1.keyphrasename = 'deep learning' order by t1.year asc ;", "query_toks": ["select", "distinct", "t1.datasetid", ",", "t1.year", "from", "paperdataset_dataset_paperkeyphrase_paper_keyphrase", "as", "t1", "where", "t1.keyphrasename", "=", "``", "deep", "learning", "''", "order", "by", "t1.year", "asc", ";"], "query_toks_no_value": ["select", "distinct", "t1.datasetid", ",", "t1.year", "from", "paperdataset_dataset_paperkeyphrase_paper_keyphrase", "as", "t1", "where", "t1.keyphrasename", "=", "value", "order", "by", "t1.year", "asc"], "question": "what was the first deep learning paper ?", "question_toks": ["what", "was", "the", "first", "deep", "learning", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0851", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0032", "db_id": "scholar_total_7", "query": "select distinct t1.datasetid , t1.year from paperdataset_dataset_paperkeyphrase_paper_keyphrase as t1 where t1.keyphrasename = 'deep learning' order by t1.year asc ;", "query_toks": ["select", "distinct", "t1.datasetid", ",", "t1.year", "from", "paperdataset_dataset_paperkeyphrase_paper_keyphrase", "as", "t1", "where", "t1.keyphrasename", "=", "``", "deep", "learning", "''", "order", "by", "t1.year", "asc", ";"], "query_toks_no_value": ["select", "distinct", "t1.datasetid", ",", "t1.year", "from", "paperdataset_dataset_paperkeyphrase_paper_keyphrase", "as", "t1", "where", "t1.keyphrasename", "=", "value", "order", "by", "t1.year", "asc"], "question": "what year was the first deep learning paper published ?", "question_toks": ["what", "year", "was", "the", "first", "deep", "learning", "paper", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0852", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0033", "db_id": "scholar_total_6", "query": "select distinct count ( t1.citingpaperid ) from paperkeyphrase_keyphrase_writes_cite_author as t1 where t1.authorname = 'dan makumbi' and t1.keyphrasename = 'genetic identity' ;", "query_toks": ["select", "distinct", "count", "(", "t1.citingpaperid", ")", "from", "paperkeyphrase_keyphrase_writes_cite_author", "as", "t1", "where", "t1.authorname", "=", "``", "dan", "makumbi", "''", "and", "t1.keyphrasename", "=", "``", "genetic", "identity", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.citingpaperid", ")", "from", "paperkeyphrase_keyphrase_writes_cite_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many citations does Dan Makumbi 's Genetic Identity paper have ?", "question_toks": ["How", "many", "citations", "does", "Dan", "Makumbi", "'s", "Genetic", "Identity", "paper", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[3, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"dan makumbi\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"genetic identity\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0914", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0034", "db_id": "scholar_total_13", "query": "select distinct count ( t1.paperid ) from paperdataset_dataset_paper_paperkeyphrase_keyphrase as t1 where t1.datasetname = 'imagenet' and t1.keyphrasename = 'deep learning' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperdataset_dataset_paper_paperkeyphrase_keyphrase", "as", "t1", "where", "t1.datasetname", "=", "``", "imagenet", "''", "and", "t1.keyphrasename", "=", "``", "deep", "learning", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperdataset_dataset_paper_paperkeyphrase_keyphrase", "as", "t1", "where", "t1.datasetname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers related to deep learning cited the dataset ImageNet ?", "question_toks": ["How", "many", "papers", "related", "to", "deep", "learning", "cited", "the", "dataset", "ImageNet", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[3, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"imagenet\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0921", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0035", "db_id": "scholar_total_3", "query": "select distinct t1.authorname , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "what are some syntactic parsing papers that chris dyer did not write ?", "question_toks": ["what", "are", "some", "syntactic", "parsing", "papers", "that", "chris", "dyer", "did", "not", "write", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0988", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0036", "db_id": "scholar_total_3", "query": "select distinct t1.authorname , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "are there any syntactic parsing papers not written by chris dyer ?", "question_toks": ["are", "there", "any", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0989", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0037", "db_id": "scholar_total_3", "query": "select distinct t1.authorname , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "what are syntactic parsing papers not written by chris dyer", "question_toks": ["what", "are", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0990", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0038", "db_id": "scholar_total_3", "query": "select distinct t1.authorname , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "syntactic parsing papers not written by chris dyer", "question_toks": ["syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0991", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0039", "db_id": "scholar_total_3", "query": "select distinct t1.authorid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.keyphrasename = 'bacterial wilt' and t1.year = 2016 ;", "query_toks": ["select", "distinct", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.keyphrasename", "=", "``", "bacterial", "wilt", "''", "and", "t1.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value"], "question": "What authors wrote papers about Bacterial Wilt in 2016 ?", "question_toks": ["What", "authors", "wrote", "papers", "about", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"bacterial wilt\"", null], "and", [false, 2, [0, [0, 11, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1039", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0040", "db_id": "scholar_total_3", "query": "select distinct t1.authorid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.keyphrasename = 'bacterial wilt' and t1.year = 2016 ;", "query_toks": ["select", "distinct", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.keyphrasename", "=", "``", "bacterial", "wilt", "''", "and", "t1.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value"], "question": "Who wrote on the topic of Bacterial Wilt in 2016 ?", "question_toks": ["Who", "wrote", "on", "the", "topic", "of", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"bacterial wilt\"", null], "and", [false, 2, [0, [0, 11, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1040", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0041", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , sum ( t1.numcitedby ) from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian derenzi' group by t1.keyphrasename order by sum ( t1.numcitedby ) desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t1.numcitedby", ")", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t1.numcitedby", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t1.numcitedby", ")", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t1.numcitedby", ")", "desc"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations ?", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [4, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1091", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0042", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , sum ( t1.numcitedby ) from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian derenzi' group by t1.keyphrasename order by sum ( t1.numcitedby ) desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t1.numcitedby", ")", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t1.numcitedby", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t1.numcitedby", ")", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t1.numcitedby", ")", "desc"], "question": "main topics of work by Brian DeRenzi", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [4, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1092", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0043", "db_id": "scholar_total_3", "query": "select distinct t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When was Michael Stonebraker GIS Database published ?", "question_toks": ["When", "was", "Michael", "Stonebraker", "GIS", "Database", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1095", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0044", "db_id": "scholar_total_3", "query": "select distinct t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When did Michael Stonebraker publish his GIS Database paper ?", "question_toks": ["When", "did", "Michael", "Stonebraker", "publish", "his", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1096", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0045", "db_id": "scholar_total_3", "query": "select distinct t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When does Michael Stonebraker publish the GIS Database paper ?", "question_toks": ["When", "does", "Michael", "Stonebraker", "publish", "the", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1097", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0046", "db_id": "scholar_total_11", "query": "select distinct t1.keyphraseid from paper_paperkeyphrase_venue_writes_author as t1 where t1.authorname = 'dan klein' and t1.venuename = 'emnlp' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paper_paperkeyphrase_venue_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "dan", "klein", "''", "and", "t1.venuename", "=", "``", "emnlp", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paper_paperkeyphrase_venue_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "keyphrases used by dan klein in his emnlp papers", "question_toks": ["keyphrases", "used", "by", "dan", "klein", "in", "his", "emnlp", "papers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"dan klein\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"emnlp\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1105", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0047", "db_id": "scholar_total_8", "query": "select distinct t1.paperid_paperkeyphrase_keyphrase_cite from paperkeyphrase_keyphrase_cite_paper_venue as t1 where t1.keyphrasename = 'euclidean distance' and t1.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t1.paperid_paperkeyphrase_keyphrase_cite", "from", "paperkeyphrase_keyphrase_cite_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "euclidean", "distance", "''", "and", "t1.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid_paperkeyphrase_keyphrase_cite", "from", "paperkeyphrase_keyphrase_cite_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.venuename", "=", "value"], "question": "Euclidean Distance papers citing NIPS papers", "question_toks": ["Euclidean", "Distance", "papers", "citing", "NIPS", "papers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"euclidean distance\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1110", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0048", "db_id": "scholar_total_9", "query": "select distinct t1.title from paperkeyphrase_keyphrase_writes_paper_author as t1 where t1.authorname like 'ranjit jhala' and t1.keyphrasename = 'liquid haskell' ;", "query_toks": ["select", "distinct", "t1.title", "from", "paperkeyphrase_keyphrase_writes_paper_author", "as", "t1", "where", "t1.authorname", "like", "``", "ranjit", "jhala", "''", "and", "t1.keyphrasename", "=", "``", "liquid", "haskell", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.title", "from", "paperkeyphrase_keyphrase_writes_paper_author", "as", "t1", "where", "t1.authorname", "like", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What is the name of Ranjit Jhala 's Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "name", "of", "Ranjit", "Jhala", "'s", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"ranjit jhala\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"liquid haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1132", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0049", "db_id": "academic_total_0", "query": "select t1.keyword from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value"], "question": "return me the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1288", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0050", "db_id": "academic_total_0", "query": "select t1.title from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' and t1.keyword = 'user study' ;", "query_toks": ["select", "t1.title", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.keyword", "=", "``", "user", "study", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.keyword", "=", "value"], "question": "return me the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"user study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1292", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0051", "db_id": "academic_total_0", "query": "select t1.name from publication_keyword_keyword_publication_writes_author as t1 where t1.keyword = 'relational database' ;", "query_toks": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "``", "relational", "database", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "value"], "question": "return me the authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"relational database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1295", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0052", "db_id": "academic_total_2", "query": "select t1.title from organization_author_writes_publication_conference as t1 where t1.name = 'vldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "t1.title", "from", "organization_author_writes_publication_conference", "as", "t1", "where", "t1.name", "=", "``", "vldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "organization_author_writes_publication_conference", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me all the papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"vldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1302", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0053", "db_id": "academic_total_1", "query": "select t1.title from organization_author_writes_publication_journal as t1 where t1.name = 'pvldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "t1.title", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me all the papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1303", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0054", "db_id": "academic_total_1", "query": "select t1.title from organization_author_writes_publication_journal as t1 where t1.name = 'pvldb' and t1.name_organization = 'university of michigan' and t1.year > 2000 ;", "query_toks": ["select", "t1.title", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", "and", "t1.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t1.title", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value", "and", "t1.year", ">", "value"], "question": "return me all the papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null], "and", [false, 3, [0, [0, 25, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1304", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0055", "db_id": "academic_total_0", "query": "select count ( distinct t1.keyword ) from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' ;", "query_toks": ["select", "count", "(", "distinct", "t1.keyword", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.keyword", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value"], "question": "return me the number of the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 18, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1336", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0056", "db_id": "academic_total_0", "query": "select count ( distinct t1.title ) from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' and t1.keyword = 'user study' ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.keyword", "=", "``", "user", "study", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.keyword", "=", "value"], "question": "return me the number of the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 26, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"user study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1340", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0057", "db_id": "academic_total_0", "query": "select count ( distinct t1.name ) from publication_keyword_keyword_publication_writes_author as t1 where t1.keyword = 'relational database' ;", "query_toks": ["select", "count", "(", "distinct", "t1.name", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "``", "relational", "database", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.name", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "value"], "question": "return me the number of authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"relational database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1343", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0058", "db_id": "academic_total_2", "query": "select count ( distinct t1.title ) from organization_author_writes_publication_conference as t1 where t1.name = 'vldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_conference", "as", "t1", "where", "t1.name", "=", "``", "vldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_conference", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me the number of papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"vldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1352", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0059", "db_id": "academic_total_1", "query": "select count ( distinct t1.title ) from organization_author_writes_publication_journal as t1 where t1.name = 'pvldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me the number of papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1353", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0060", "db_id": "academic_total_1", "query": "select count ( distinct t1.title ) from organization_author_writes_publication_journal as t1 where t1.name = 'pvldb' and t1.name_organization = 'university of michigan' and t1.year > 2000 ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", "and", "t1.year", ">", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value", "and", "t1.year", ">", "value"], "question": "return me the number of papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null], "and", [false, 3, [0, [0, 25, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1354", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0061", "db_id": "academic_total_0", "query": "select t1.name from publication_keyword_keyword_publication_writes_author as t1 where t1.keyword = 'relational database' group by t1.name order by count ( distinct t1.title ) desc limit 1 ;", "query_toks": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "``", "relational", "database", "''", "group", "by", "t1.name", "order", "by", "count", "(", "distinct", "t1.title", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "value", "group", "by", "t1.name", "order", "by", "count", "(", "distinct", "t1.title", ")", "desc", "limit", "value"], "question": "return me the author who has the most number of papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "author", "who", "has", "the", "most", "number", "of", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"relational database\"", null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 26, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1389", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0062", "db_id": "academic_total_0", "query": "select t1.keyword from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' group by t1.keyword order by count ( distinct t1.title ) desc limit 1 ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "group", "by", "t1.keyword", "order", "by", "count", "(", "distinct", "t1.title", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value", "group", "by", "t1.keyword", "order", "by", "count", "(", "distinct", "t1.title", ")", "desc", "limit", "value"], "question": "return me the keyword, which have been contained by the most number of papers by \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keyword", ",", "which", "have", "been", "contained", "by", "the", "most", "number", "of", "papers", "by", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 26, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1396", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0063", "db_id": "academic_total_0", "query": "select t1.name from publication_keyword_keyword_publication_writes_author as t1 where t1.keyword = 'relational database' group by t1.name having count ( distinct t1.title ) > 10 ;", "query_toks": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "``", "relational", "database", "''", "group", "by", "t1.name", "having", "count", "(", "distinct", "t1.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "value", "group", "by", "t1.name", "having", "count", "(", "distinct", "t1.title", ")", ">", "value"], "question": "return me the authors who have more than 10 papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "more", "than", "10", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"relational database\"", null]], "groupBy": [[0, 2, false]], "having": [[false, 3, [0, [3, 26, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1415", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0064", "db_id": "academic_total_0", "query": "select t1.keyword from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' group by t1.keyword having count ( distinct t1.title ) > 10 ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "group", "by", "t1.keyword", "having", "count", "(", "distinct", "t1.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value", "group", "by", "t1.keyword", "having", "count", "(", "distinct", "t1.title", ")", ">", "value"], "question": "return me the keywords, which have been contained by more than 10 papers of \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", ",", "which", "have", "been", "contained", "by", "more", "than", "10", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 26, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1420", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0065", "db_id": "imdb_total_1", "query": "select t1.title from movie_made_by_producer_written_by_writer as t1 where t1.name_movie_made_by_producer_written_by = 'woody allen' and t1.name_writer = 'woody allen' ;", "query_toks": ["select", "t1.title", "from", "movie_made_by_producer_written_by_writer", "as", "t1", "where", "t1.name_movie_made_by_producer_written_by", "=", "``", "woody", "allen", "''", "and", "t1.name_writer", "=", "``", "woody", "allen", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "movie_made_by_producer_written_by_writer", "as", "t1", "where", "t1.name_movie_made_by_producer_written_by", "=", "value", "and", "t1.name_writer", "=", "value"], "question": "Find all movies written and produced by \" Woody Allen \"", "question_toks": ["Find", "all", "movies", "written", "and", "produced", "by", "``", "Woody", "Allen", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"woody allen\"", null], "and", [false, 2, [0, [0, 54, false], null], "\"woody allen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1457", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0066", "db_id": "imdb_total_0", "query": "select t1.title from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'taraneh alidoosti' and t1.name_director = 'asghar farhadi' ;", "query_toks": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "taraneh", "alidoosti", "''", "and", "t1.name_director", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "Find all movies directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \"", "question_toks": ["Find", "all", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1472", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0067", "db_id": "imdb_total_0", "query": "select t1.title from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'taraneh alidoosti' and t1.name_director = 'asghar farhadi' ;", "query_toks": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "taraneh", "alidoosti", "''", "and", "t1.name_director", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "What are all the movies directed by \" Asghar Farhadi \" featuring \" Taraneh Alidoosti \" ?", "question_toks": ["What", "are", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1473", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0068", "db_id": "imdb_total_0", "query": "select t1.title from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'taraneh alidoosti' and t1.name_director = 'asghar farhadi' ;", "query_toks": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "taraneh", "alidoosti", "''", "and", "t1.name_director", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "How many movies are there that are directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \" ?", "question_toks": ["How", "many", "movies", "are", "there", "that", "are", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1474", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0069", "db_id": "imdb_total_0", "query": "select t1.title from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'taraneh alidoosti' and t1.name_director = 'asghar farhadi' ;", "query_toks": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "taraneh", "alidoosti", "''", "and", "t1.name_director", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "List all the movies directed by \" Asghar Farhadi \" in which \" Taraneh Alidoosti \" played", "question_toks": ["List", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "in", "which", "``", "Taraneh", "Alidoosti", "``", "played"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1475", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0070", "db_id": "imdb_total_0", "query": "select t1.name_director from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'kate winslet' ;", "query_toks": ["select", "t1.name_director", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "kate", "winslet", "''", ";"], "query_toks_no_value": ["select", "t1.name_director", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value"], "question": "Find the directors of all movies featuring \" Kate Winslet \"", "question_toks": ["Find", "the", "directors", "of", "all", "movies", "featuring", "``", "Kate", "Winslet", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kate winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1482", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0071", "db_id": "imdb_total_4", "query": "select t1.name_producer from cast_actor_movie_made_by_producer as t1 where t1.name_cast_actor_movie_made_by = 'kate winslet' ;", "query_toks": ["select", "t1.name_producer", "from", "cast_actor_movie_made_by_producer", "as", "t1", "where", "t1.name_cast_actor_movie_made_by", "=", "``", "kate", "winslet", "''", ";"], "query_toks_no_value": ["select", "t1.name_producer", "from", "cast_actor_movie_made_by_producer", "as", "t1", "where", "t1.name_cast_actor_movie_made_by", "=", "value"], "question": "Find the producers of all movies in which \" Kate Winslet \" is an actor", "question_toks": ["Find", "the", "producers", "of", "all", "movies", "in", "which", "``", "Kate", "Winslet", "``", "is", "an", "actor"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kate winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1483", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0072", "db_id": "imdb_total_5", "query": "select t1.genre from director_directed_by_movie_classification_genre as t1 where t1.name = 'asghar farhadi' ;", "query_toks": ["select", "t1.genre", "from", "director_directed_by_movie_classification_genre", "as", "t1", "where", "t1.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.genre", "from", "director_directed_by_movie_classification_genre", "as", "t1", "where", "t1.name", "=", "value"], "question": "what are the genres of movies directed by \" Asghar Farhadi \"", "question_toks": ["what", "are", "the", "genres", "of", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1495", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0073", "db_id": "imdb_total_2", "query": "select t1.name from director_directed_by_movie_tags_keyword as t1 where t1.keyword = 'nuclear weapons' ;", "query_toks": ["select", "t1.name", "from", "director_directed_by_movie_tags_keyword", "as", "t1", "where", "t1.keyword", "=", "``", "nuclear", "weapons", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "director_directed_by_movie_tags_keyword", "as", "t1", "where", "t1.keyword", "=", "value"], "question": "List all the directors of movies about nuclear weapons", "question_toks": ["List", "all", "the", "directors", "of", "movies", "about", "nuclear", "weapons"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"nuclear weapons\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1498", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0074", "db_id": "imdb_total_3", "query": "select count ( distinct t1.title ) from director_directed_by_movie_made_by_producer as t1 where t1.name_director_directed_by_movie_made_by = 'quentin tarantino' and t1.release_year < 2010 and t1.release_year > 2002 ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "director_directed_by_movie_made_by_producer", "as", "t1", "where", "t1.name_director_directed_by_movie_made_by", "=", "``", "quentin", "tarantino", "''", "and", "t1.release_year", "<", "2010", "and", "t1.release_year", ">", "2002", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "director_directed_by_movie_made_by_producer", "as", "t1", "where", "t1.name_director_directed_by_movie_made_by", "=", "value", "and", "t1.release_year", "<", "value", "and", "t1.release_year", ">", "value"], "question": "How many movies did \" Quentin Tarantino \" direct before 2002 and after 2010 ?", "question_toks": ["How", "many", "movies", "did", "``", "Quentin", "Tarantino", "``", "direct", "before", "2002", "and", "after", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[3, [0, [0, 36, true], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"quentin tarantino\"", null], "and", [false, 4, [0, [0, 37, false], null], 2010.0, null], "and", [false, 3, [0, [0, 37, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1517", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0075", "db_id": "imdb_total_0", "query": "select count ( distinct t1.name_cast_actor_movie_directed_by ) from cast_actor_movie_directed_by_director as t1 where t1.nationality_cast_actor_movie_directed_by = 'iran' and t1.name_director = 'jim jarmusch' ;", "query_toks": ["select", "count", "(", "distinct", "t1.name_cast_actor_movie_directed_by", ")", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.nationality_cast_actor_movie_directed_by", "=", "``", "iran", "''", "and", "t1.name_director", "=", "``", "jim", "jarmusch", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.name_cast_actor_movie_directed_by", ")", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.nationality_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "find the number of actors from Iran who played in \" Jim Jarmusch \" movies", "question_toks": ["find", "the", "number", "of", "actors", "from", "Iran", "who", "played", "in", "``", "Jim", "Jarmusch", "``", "movies"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"iran\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"jim jarmusch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1519", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0076", "db_id": "imdb_total_0", "query": "select t1.name_cast_actor_movie_directed_by from cast_actor_movie_directed_by_director as t1 where t1.name_director = 'quentin tarantino' order by t1.release_year desc limit 1 ;", "query_toks": ["select", "t1.name_cast_actor_movie_directed_by", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_director", "=", "``", "quentin", "tarantino", "''", "order", "by", "t1.release_year", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.name_cast_actor_movie_directed_by", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_director", "=", "value", "order", "by", "t1.release_year", "desc", "limit", "value"], "question": "Find the actors who played in the latest movie by \" Quentin Tarantino \"", "question_toks": ["Find", "the", "actors", "who", "played", "in", "the", "latest", "movie", "by", "``", "Quentin", "Tarantino", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"quentin tarantino\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 37, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1529", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0000", "db_id": "local_govt_in_alabama_total_0", "query": "select t1.service_id , t1.service_type_code from participants_participants_in_events_events_services as t1 group by t1.service_id order by count ( * ) asc limit 1", "query_toks": ["select", "t1.service_id", ",", "t1.service_type_code", "from", "participants_participants_in_events_events_services", "as", "t1", "group", "by", "t1.service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.service_id", ",", "t1.service_type_code", "from", "participants_participants_in_events_events_services", "as", "t1", "group", "by", "t1.service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "Which service id and type has the least number of participants?", "question_toks": ["Which", "service", "id", "and", "type", "has", "the", "least", "number", "of", "participants", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_2147", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0001", "db_id": "college_1_total_0", "query": "select count ( * ) from class_enroll_course_department as t1 where t1.dept_name = 'accounting'", "query_toks": ["select", "count", "(", "*", ")", "from", "class_enroll_course_department", "as", "t1", "where", "t1.dept_name", "=", "'accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class_enroll_course_department", "as", "t1", "where", "t1.dept_name", "=", "value"], "question": "How many students are enrolled in the class taught by some professor from the accounting department?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "the", "class", "taught", "by", "some", "professor", "from", "the", "accounting", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3251", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0002", "db_id": "college_1_total_0", "query": "select count ( * ) from class_enroll_course_department as t1 where t1.dept_name = 'accounting'", "query_toks": ["select", "count", "(", "*", ")", "from", "class_enroll_course_department", "as", "t1", "where", "t1.dept_name", "=", "'accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class_enroll_course_department", "as", "t1", "where", "t1.dept_name", "=", "value"], "question": "How many students are enrolled in some classes that are taught by an accounting professor?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "some", "classes", "that", "are", "taught", "by", "an", "accounting", "professor", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3252", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0003", "db_id": "college_1_total_0", "query": "select t1.dept_name from class_enroll_course_department as t1 group by t1.dept_code order by count ( * ) desc limit 1", "query_toks": ["select", "t1.dept_name", "from", "class_enroll_course_department", "as", "t1", "group", "by", "t1.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.dept_name", "from", "class_enroll_course_department", "as", "t1", "group", "by", "t1.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department that has the largest number of students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "that", "has", "the", "largest", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 40, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3253", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0004", "db_id": "college_1_total_0", "query": "select t1.dept_name from class_enroll_course_department as t1 group by t1.dept_code order by count ( * ) desc limit 1", "query_toks": ["select", "t1.dept_name", "from", "class_enroll_course_department", "as", "t1", "group", "by", "t1.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.dept_name", "from", "class_enroll_course_department", "as", "t1", "group", "by", "t1.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 40, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3254", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0005", "db_id": "hospital_1_total_0", "query": "select t1.name_medication from stay_patient_prescribes_medication as t1 where room = 111", "query_toks": ["select", "t1.name_medication", "from", "stay_patient_prescribes_medication", "as", "t1", "where", "room", "=", "111"], "query_toks_no_value": ["select", "t1.name_medication", "from", "stay_patient_prescribes_medication", "as", "t1", "where", "room", "=", "value"], "question": "Find the name of medication used on the patient who stays in room 111?", "question_toks": ["Find", "the", "name", "of", "medication", "used", "on", "the", "patient", "who", "stays", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3922", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0006", "db_id": "hospital_1_total_0", "query": "select t1.name_medication from stay_patient_prescribes_medication as t1 where room = 111", "query_toks": ["select", "t1.name_medication", "from", "stay_patient_prescribes_medication", "as", "t1", "where", "room", "=", "111"], "query_toks_no_value": ["select", "t1.name_medication", "from", "stay_patient_prescribes_medication", "as", "t1", "where", "room", "=", "value"], "question": "What is the name of the medication used for the patient staying in room 111?", "question_toks": ["What", "is", "the", "name", "of", "the", "medication", "used", "for", "the", "patient", "staying", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3923", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0007", "db_id": "products_gen_characteristics_total_0", "query": "select product_name from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'red' and t1.characteristic_name = 'fast'", "query_toks": ["select", "product_name", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "red", "''", "and", "t1.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "and", "t1.characteristic_name", "=", "value"], "question": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".", "question_toks": ["Find", "the", "name", "of", "the", "products", "that", "have", "the", "color", "description", "``", "red", "''", "and", "have", "the", "characteristic", "name", "``", "fast", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5568", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0008", "db_id": "products_gen_characteristics_total_0", "query": "select product_name from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'red' and t1.characteristic_name = 'fast'", "query_toks": ["select", "product_name", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "red", "''", "and", "t1.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "and", "t1.characteristic_name", "=", "value"], "question": "What are the names of the products that have a color description of 'red' and the 'fast' characteristic?", "question_toks": ["What", "are", "the", "names", "of", "the", "products", "that", "have", "a", "color", "description", "of", "'red", "'", "and", "the", "'fast", "'", "characteristic", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5569", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0009", "db_id": "products_gen_characteristics_total_0", "query": "select count ( * ) from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'red' and t1.characteristic_name = 'slow'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "red", "''", "and", "t1.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "and", "t1.characteristic_name", "=", "value"], "question": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\".", "question_toks": ["Find", "the", "number", "of", "the", "products", "that", "have", "their", "color", "described", "as", "``", "red", "''", "and", "have", "a", "characteristic", "named", "``", "slow", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5574", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0010", "db_id": "products_gen_characteristics_total_0", "query": "select count ( * ) from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'red' and t1.characteristic_name = 'slow'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "red", "''", "and", "t1.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "and", "t1.characteristic_name", "=", "value"], "question": "How many products have the color description 'red' and the characteristic name 'slow'?", "question_toks": ["How", "many", "products", "have", "the", "color", "description", "'red", "'", "and", "the", "characteristic", "name", "'slow", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5575", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0011", "db_id": "products_gen_characteristics_total_0", "query": "select count ( * ) from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'white' or t1.characteristic_name = 'hot'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "white", "''", "or", "t1.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "or", "t1.characteristic_name", "=", "value"], "question": "Count the products that have the color description \"white\" or have the characteristic name \"hot\".", "question_toks": ["Count", "the", "products", "that", "have", "the", "color", "description", "``", "white", "''", "or", "have", "the", "characteristic", "name", "``", "hot", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 9, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5576", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0012", "db_id": "products_gen_characteristics_total_0", "query": "select count ( * ) from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'white' or t1.characteristic_name = 'hot'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "white", "''", "or", "t1.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "or", "t1.characteristic_name", "=", "value"], "question": "How many products have their color described as 'white' or have a characteristic with the name 'hot'?", "question_toks": ["How", "many", "products", "have", "their", "color", "described", "as", "'white", "'", "or", "have", "a", "characteristic", "with", "the", "name", "'hot", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 9, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5577", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0013", "db_id": "tracking_orders_total_0", "query": "select t1.customer_name from customers_orders_order_items_products as t1 where t1.product_name = 'food' group by t1.customer_id having count ( * ) >= 1", "query_toks": ["select", "t1.customer_name", "from", "customers_orders_order_items_products", "as", "t1", "where", "t1.product_name", "=", "``", "food", "''", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_orders_order_items_products", "as", "t1", "where", "t1.product_name", "=", "value", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "List the names of the customers who have once bought product \"food\".", "question_toks": ["List", "the", "names", "of", "the", "customers", "who", "have", "once", "bought", "product", "``", "food", "''", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"food\"", null]], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_6941", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0014", "db_id": "tracking_orders_total_0", "query": "select t1.customer_name from customers_orders_order_items_products as t1 where t1.product_name = 'food' group by t1.customer_id having count ( * ) >= 1", "query_toks": ["select", "t1.customer_name", "from", "customers_orders_order_items_products", "as", "t1", "where", "t1.product_name", "=", "``", "food", "''", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_orders_order_items_products", "as", "t1", "where", "t1.product_name", "=", "value", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the customers who bought product \"food\" at least once?", "question_toks": ["What", "are", "the", "names", "of", "the", "customers", "who", "bought", "product", "``", "food", "''", "at", "least", "once", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"food\"", null]], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_6942", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0015", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who has written the most syntactic parsing papers ?", "question_toks": ["who", "has", "written", "the", "most", "syntactic", "parsing", "papers", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0585", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0016", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who is the most published author in syntactic parsing ?", "question_toks": ["who", "is", "the", "most", "published", "author", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0586", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0017", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who has the most publications in syntactic parsing ?", "question_toks": ["who", "has", "the", "most", "publications", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0587", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0018", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who has written the most papers on syntactic parsing ?", "question_toks": ["who", "has", "written", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0588", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0019", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "List prominent scholars in syntactic parsing ?", "question_toks": ["List", "prominent", "scholars", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0589", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0020", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who wrote the most papers on syntactic parsing ?", "question_toks": ["who", "wrote", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0590", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0021", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "Who are the authors with the most published papers in syntactic parsing ?", "question_toks": ["Who", "are", "the", "authors", "with", "the", "most", "published", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0591", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0022", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "top syntactic parsing author", "question_toks": ["top", "syntactic", "parsing", "author"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0592", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0023", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "top author in syntactic parsing", "question_toks": ["top", "author", "in", "syntactic", "parsing"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0593", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0024", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who published the most in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0594", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0025", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who published the most papers in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0595", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0026", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many citation noah a smith has ?", "question_toks": ["How", "many", "citation", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0596", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0027", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "noah a smith citation count", "question_toks": ["noah", "a", "smith", "citation", "count"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0597", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0028", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "how many citations does noah a smith have ?", "question_toks": ["how", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0598", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0029", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many citations does noah a smith have ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0599", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0030", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "number of citations of noah a smith", "question_toks": ["number", "of", "citations", "of", "noah", "a", "smith"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0600", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0031", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many citations does noah a smith have", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0601", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0032", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many times was noah a smith cited ?", "question_toks": ["How", "many", "times", "was", "noah", "a", "smith", "cited", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0602", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0033", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many citations does noah a smith has ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0603", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0034", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers did David M. Blei publish at AISTATS ?", "question_toks": ["How", "many", "papers", "did", "David", "M.", "Blei", "publish", "at", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0643", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0035", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS ?", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0644", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0036", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers has David M. Blei published in AISTATS ?", "question_toks": ["How", "many", "papers", "has", "David", "M.", "Blei", "published", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0645", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0037", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many papers does David M. Blei have at AISTATS", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "at", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0646", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0038", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many papers does David M. Blei have in AISTATS ?", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0647", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0039", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many David M. Blei papers are in AISTATS ?", "question_toks": ["how", "many", "David", "M.", "Blei", "papers", "are", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0648", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0040", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers David M. Blei has in AISTATS ?", "question_toks": ["How", "many", "papers", "David", "M.", "Blei", "has", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0649", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0041", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0650", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0042", "db_id": "scholar_total_10", "query": "select distinct t1.paperid from paperdataset_dataset_paper_venue as t1 where t1.datasetname = 'rgb-d object paperdataset_dataset_paper_venue' and t1.title = 'class consistent multi-modal fusion with binary features' and t1.year = 2016 and t1.venuename = 'cvpr' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperdataset_dataset_paper_venue", "as", "t1", "where", "t1.datasetname", "=", "``", "rgb-d", "object", "paperdataset_dataset_paper_venue", "''", "and", "t1.title", "=", "``", "class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "and", "t1.year", "=", "2016", "and", "t1.venuename", "=", "``", "cvpr", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperdataset_dataset_paper_venue", "as", "t1", "where", "t1.datasetname", "=", "value", "and", "t1.title", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What papers were published at CVPR in 2016 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "in", "2016", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"rgb-d object paperdataset_dataset_paper_venue\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 10, false], null], 2016.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"cvpr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0657", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0043", "db_id": "scholar_total_10", "query": "select distinct t1.paperid from paperdataset_dataset_paper_venue as t1 where t1.datasetname = 'rgb-d object paperdataset_dataset_paper_venue' and t1.title = 'class consistent multi-modal fusion with binary features' and t1.year = 2016 and t1.venuename = 'cvpr' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperdataset_dataset_paper_venue", "as", "t1", "where", "t1.datasetname", "=", "``", "rgb-d", "object", "paperdataset_dataset_paper_venue", "''", "and", "t1.title", "=", "``", "class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "and", "t1.year", "=", "2016", "and", "t1.venuename", "=", "``", "cvpr", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperdataset_dataset_paper_venue", "as", "t1", "where", "t1.datasetname", "=", "value", "and", "t1.title", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What papers were published at CVPR '16 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "'16", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"rgb-d object paperdataset_dataset_paper_venue\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 10, false], null], 2016.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"cvpr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0658", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0044", "db_id": "scholar_total_1", "query": "select distinct count ( distinct t1.paperid ) from paperkeyphrase_keyphrase_writes_author as t1 where t1.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers by Ed Desmond contain the keyphrases Semantic Parsing ?", "question_toks": ["How", "many", "papers", "by", "Ed", "Desmond", "contain", "the", "keyphrases", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0696", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0045", "db_id": "scholar_total_1", "query": "select distinct count ( distinct t1.paperid ) from paperkeyphrase_keyphrase_writes_author as t1 where t1.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers does Ed Desmond have in Semantic Parsing area ?", "question_toks": ["How", "many", "papers", "does", "Ed", "Desmond", "have", "in", "Semantic", "Parsing", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0697", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0046", "db_id": "scholar_total_1", "query": "select distinct count ( distinct t1.paperid ) from paperkeyphrase_keyphrase_writes_author as t1 where t1.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many Semantic Parsing papers has Ed Desmond written ?", "question_toks": ["How", "many", "Semantic", "Parsing", "papers", "has", "Ed", "Desmond", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0698", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0047", "db_id": "scholar_total_1", "query": "select distinct count ( distinct t1.paperid ) from paperkeyphrase_keyphrase_writes_author as t1 where t1.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many paper has Ed Desmond written about Semantic Parsing ?", "question_toks": ["How", "many", "paper", "has", "Ed", "Desmond", "written", "about", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0699", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0048", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "acl papers in 2012 on Parsing", "question_toks": ["acl", "papers", "in", "2012", "on", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0704", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0049", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What papers were published in acl in 2012 about Parsing ?", "question_toks": ["What", "papers", "were", "published", "in", "acl", "in", "2012", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0705", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0050", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "papers on Parsing appeared at acl last year", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "last", "year"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0706", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0051", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "Parsing papers from acl 2012", "question_toks": ["Parsing", "papers", "from", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0707", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0052", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "papers about Parsing in acl 2012", "question_toks": ["papers", "about", "Parsing", "in", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0708", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0053", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "acl papers in 2012 in Parsing", "question_toks": ["acl", "papers", "in", "2012", "in", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0709", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0054", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "acl papers in 2012 about Parsing", "question_toks": ["acl", "papers", "in", "2012", "about", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0710", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0055", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What papers were published at acl in 2012 were about Parsing ?", "question_toks": ["What", "papers", "were", "published", "at", "acl", "in", "2012", "were", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0711", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0056", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "papers on Parsing appeared at acl in 2012", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "in", "2012"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0712", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0057", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many Parsing papers did acl 2012 have ?", "question_toks": ["how", "many", "Parsing", "papers", "did", "acl", "2012", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0713", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0058", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "who published Parsing papers at acl 2012", "question_toks": ["who", "published", "Parsing", "papers", "at", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0714", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0059", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "which papers in acl 2012 had Parsing in them ?", "question_toks": ["which", "papers", "in", "acl", "2012", "had", "Parsing", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0715", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0060", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "what were some Parsing based papers in acl 2012 ?", "question_toks": ["what", "were", "some", "Parsing", "based", "papers", "in", "acl", "2012", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0716", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0061", "db_id": "scholar_total_12", "query": "select distinct t1.keyphraseid , t1.year from paper_paperkeyphrase_writes_author as t1 where t1.authorname = 'luke s zettlemoyer' order by t1.year , t1.keyphraseid ;", "query_toks": ["select", "distinct", "t1.keyphraseid", ",", "t1.year", "from", "paper_paperkeyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "s", "zettlemoyer", "''", "order", "by", "t1.year", ",", "t1.keyphraseid", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", ",", "t1.year", "from", "paper_paperkeyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "order", "by", "t1.year", ",", "t1.keyphraseid"], "question": "keyphrases used by Luke S Zettlemoyer for each year", "question_toks": ["keyphrases", "used", "by", "Luke", "S", "Zettlemoyer", "for", "each", "year"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke s zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 12, false], null], [0, [0, 20, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0743", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0062", "db_id": "scholar_total_4", "query": "select distinct count ( t1.paperid ) from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2014 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2014", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many parsing papers in ACL 2014", "question_toks": ["how", "many", "parsing", "papers", "in", "ACL", "2014"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2014.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0753", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0063", "db_id": "scholar_total_4", "query": "select distinct count ( t1.paperid ) from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2014 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2014", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many parsing papers appeared in the proceeeding of ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "appeared", "in", "the", "proceeeding", "of", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2014.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0754", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0064", "db_id": "scholar_total_4", "query": "select distinct count ( t1.paperid ) from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2014 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2014", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many parsing papers were published at ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "were", "published", "at", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2014.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0755", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0065", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'tail' and t1.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "tail", "''", "and", "t1.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What TAIL paper published in NIPS ?", "question_toks": ["What", "TAIL", "paper", "published", "in", "NIPS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"tail\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0787", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0066", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'tail' and t1.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "tail", "''", "and", "t1.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.venuename", "=", "value"], "question": "List the papers on TAIL that were published in NIPS", "question_toks": ["List", "the", "papers", "on", "TAIL", "that", "were", "published", "in", "NIPS"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"tail\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0788", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0000", "db_id": "pets_1_total_0", "query": "select count ( * ) from student_has_pet_pets as t1 where t1.sex = 'f' and t1.pettype = 'dog'", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet_pets", "as", "t1", "where", "t1.sex", "=", "'f", "'", "and", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet_pets", "as", "t1", "where", "t1.sex", "=", "value", "and", "t1.pettype", "=", "value"], "question": "Find the number of dog pets that are raised by female students (with sex F).", "question_toks": ["Find", "the", "number", "of", "dog", "pets", "that", "are", "raised", "by", "female", "students", "(", "with", "sex", "F", ")", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0053", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0001", "db_id": "pets_1_total_0", "query": "select count ( * ) from student_has_pet_pets as t1 where t1.sex = 'f' and t1.pettype = 'dog'", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet_pets", "as", "t1", "where", "t1.sex", "=", "'f", "'", "and", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet_pets", "as", "t1", "where", "t1.sex", "=", "value", "and", "t1.pettype", "=", "value"], "question": "How many dog pets are raised by female students?", "question_toks": ["How", "many", "dog", "pets", "are", "raised", "by", "female", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0054", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0002", "db_id": "pets_1_total_0", "query": "select distinct t1.fname from student_has_pet_pets as t1 where t1.pettype = 'cat' or t1.pettype = 'dog'", "query_toks": ["select", "distinct", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", "or", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "distinct", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "or", "t1.pettype", "=", "value"], "question": "Find the first name of students who have cat or dog pet.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "cat", "or", "dog", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0057", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0003", "db_id": "pets_1_total_0", "query": "select distinct t1.fname from student_has_pet_pets as t1 where t1.pettype = 'cat' or t1.pettype = 'dog'", "query_toks": ["select", "distinct", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", "or", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "distinct", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "or", "t1.pettype", "=", "value"], "question": "What are the first names of every student who has a cat or dog as a pet?", "question_toks": ["What", "are", "the", "first", "names", "of", "every", "student", "who", "has", "a", "cat", "or", "dog", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0058", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0004", "db_id": "pets_1_total_0", "query": "select t1.fname from student_has_pet_pets as t1 where t1.pettype = 'cat' intersect select t1.fname from student_has_pet_pets as t1 where t1.pettype = 'dog'", "query_toks": ["select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "\"cat\"", "intersect", "select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "\"dog\""], "query_toks_no_value": ["select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "intersect", "select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value"], "question": "Find the first name of students who have both cat and dog pets .", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "both", "cat", "and", "dog", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0059", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0005", "db_id": "pets_1_total_0", "query": "select t1.fname from student_has_pet_pets as t1 where t1.pettype = 'cat' intersect select t1.fname from student_has_pet_pets as t1 where t1.pettype = 'dog'", "query_toks": ["select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", "intersect", "select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "intersect", "select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value"], "question": "What are the students' first names who have both cats and dogs as pets?", "question_toks": ["What", "are", "the", "students", "'", "first", "names", "who", "have", "both", "cats", "and", "dogs", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0060", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0006", "db_id": "pets_1_total_0", "query": "select stuid from student_has_pet_pets except select t1.stuid from student_has_pet_pets as t1 where t1.pettype = 'cat'", "query_toks": ["select", "stuid", "from", "student_has_pet_pets", "except", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "stuid", "from", "student_has_pet_pets", "except", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value"], "question": "Find the id of students who do not have a cat pet.", "question_toks": ["Find", "the", "id", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0063", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0007", "db_id": "pets_1_total_0", "query": "select stuid from student_has_pet_pets except select t1.stuid from student_has_pet_pets as t1 where t1.pettype = 'cat'", "query_toks": ["select", "stuid", "from", "student_has_pet_pets", "except", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "stuid", "from", "student_has_pet_pets", "except", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value"], "question": "What are the ids of the students who do not own cats as pets?", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "who", "do", "not", "own", "cats", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0064", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0008", "db_id": "pets_1_total_0", "query": "select t1.fname , t1.age from student_has_pet_pets as t1 where t1.pettype = 'dog' and t1.stuid not in ( select t1.stuid from student_has_pet_pets as t1 where t1.pettype = 'cat' )", "query_toks": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'dog", "'", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", ")"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", ")"], "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "as", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0065", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0009", "db_id": "pets_1_total_0", "query": "select t1.fname , t1.age from student_has_pet_pets as t1 where t1.pettype = 'dog' and t1.stuid not in ( select t1.stuid from student_has_pet_pets as t1 where t1.pettype = 'cat' )", "query_toks": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'dog", "'", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", ")"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", ")"], "question": "What is the first name of every student who has a dog but does not have a cat?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "but", "does", "not", "have", "a", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0066", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0010", "db_id": "pets_1_total_0", "query": "select t1.lname from student_has_pet_pets as t1 where t1.pet_age = 3 and t1.pettype = 'cat'", "query_toks": ["select", "t1.lname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pet_age", "=", "3", "and", "t1.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "t1.lname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pet_age", "=", "value", "and", "t1.pettype", "=", "value"], "question": "Find the last name of the student who has a cat that is age 3.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "age", "3", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], 3.0, null], "and", [false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0083", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0011", "db_id": "pets_1_total_0", "query": "select t1.lname from student_has_pet_pets as t1 where t1.pet_age = 3 and t1.pettype = 'cat'", "query_toks": ["select", "t1.lname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pet_age", "=", "3", "and", "t1.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "t1.lname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pet_age", "=", "value", "and", "t1.pettype", "=", "value"], "question": "What is the last name of the student who has a cat that is 3 years old?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "3", "years", "old", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], 3.0, null], "and", [false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0084", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0012", "db_id": "car_1_total_0", "query": "select count ( * ) from model_list_car_makers_countries as t1 where t1.countryname = 'usa' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "model_list_car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "'usa", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "model_list_car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "value"], "question": "How many car models are produced in the usa?", "question_toks": ["How", "many", "car", "models", "are", "produced", "in", "the", "usa", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0115", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0013", "db_id": "car_1_total_0", "query": "select count ( * ) from model_list_car_makers_countries as t1 where t1.countryname = 'usa' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "model_list_car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "'usa", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "model_list_car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "value"], "question": "What is the count of the car models produced in the United States?", "question_toks": ["What", "is", "the", "count", "of", "the", "car", "models", "produced", "in", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0116", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0014", "db_id": "car_1_total_2", "query": "select t1.countryname from countries_continents_car_makers as t1 where t1.continent_continents = 'europe' group by t1.countryname having count ( * ) >= 3 ;", "query_toks": ["select", "t1.countryname", "from", "countries_continents_car_makers", "as", "t1", "where", "t1.continent_continents", "=", "'europe", "'", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "3", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "countries_continents_car_makers", "as", "t1", "where", "t1.continent_continents", "=", "value", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which countries in europe have at least 3 car manufacturers?", "question_toks": ["Which", "countries", "in", "europe", "have", "at", "least", "3", "car", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"europe\"", null]], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0129", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0015", "db_id": "car_1_total_2", "query": "select t1.countryname from countries_continents_car_makers as t1 where t1.continent_continents = 'europe' group by t1.countryname having count ( * ) >= 3 ;", "query_toks": ["select", "t1.countryname", "from", "countries_continents_car_makers", "as", "t1", "where", "t1.continent_continents", "=", "'europe", "'", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "3", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "countries_continents_car_makers", "as", "t1", "where", "t1.continent_continents", "=", "value", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of all European countries with at least 3 manufacturers?", "question_toks": ["What", "are", "the", "names", "of", "all", "European", "countries", "with", "at", "least", "3", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"europe\"", null]], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0130", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0016", "db_id": "car_1_total_5", "query": "select t1.countryid , t1.countryname from countries_car_makers_model_list as t1 group by t1.countryid having count ( * ) > 3 union select t1.countryid , t1.countryname from countries_car_makers_model_list as t1 where t1.model = 'fiat' ;", "query_toks": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "3", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "where", "t1.model", "=", "'fiat", "'", ";"], "query_toks_no_value": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "where", "t1.model", "=", "value"], "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0017", "db_id": "car_1_total_5", "query": "select t1.countryid , t1.countryname from countries_car_makers_model_list as t1 group by t1.countryid having count ( * ) > 3 union select t1.countryid , t1.countryname from countries_car_makers_model_list as t1 where t1.model = 'fiat' ;", "query_toks": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "3", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "where", "t1.model", "=", "\"fiat\"", ";"], "query_toks_no_value": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "where", "t1.model", "=", "value"], "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0018", "db_id": "flight_2_total_2", "query": "select count ( * ) from flights_airports_airlines as t1 where t1.city = 'aberdeen' and t1.airline_airlines = 'united flights_airports_airlines'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports_airlines", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''", "and", "t1.airline_airlines", "=", "``", "united", "flights_airports_airlines", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports_airlines", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.airline_airlines", "=", "value"], "question": "How many United Airlines flights go to City 'Aberdeen'?", "question_toks": ["How", "many", "United", "Airlines", "flights", "go", "to", "City", "'Aberdeen", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"aberdeen\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"united flights_airports_airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0219", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0019", "db_id": "flight_2_total_2", "query": "select count ( * ) from flights_airports_airlines as t1 where t1.city = 'aberdeen' and t1.airline_airlines = 'united flights_airports_airlines'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports_airlines", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''", "and", "t1.airline_airlines", "=", "``", "united", "flights_airports_airlines", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports_airlines", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.airline_airlines", "=", "value"], "question": "Count the number of United Airlines flights that arrive in Aberdeen.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "that", "arrive", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"aberdeen\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"united flights_airports_airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0220", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0020", "db_id": "museum_visit_total_2", "query": "select t1.name_visitor_visit from visitor_visit_museum as t1 where t1.open_year < 2009 intersect select t1.name_visitor_visit from visitor_visit_museum as t1 where t1.open_year > 2011", "query_toks": ["select", "t1.name_visitor_visit", "from", "visitor_visit_museum", "as", "t1", "where", "t1.open_year", "<", "2009", "intersect", "select", "t1.name_visitor_visit", "from", "visitor_visit_museum", "as", "t1", "where", "t1.open_year", ">", "2011"], "query_toks_no_value": ["select", "t1.name_visitor_visit", "from", "visitor_visit_museum", "as", "t1", "where", "t1.open_year", "<", "value", "intersect", "select", "t1.name_visitor_visit", "from", "visitor_visit_museum", "as", "t1", "where", "t1.open_year", ">", "value"], "question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "question_toks": ["What", "is", "the", "name", "of", "the", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "2009", "and", "a", "museum", "opened", "after", "2011", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0426", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0021", "db_id": "dog_kennels_total_2", "query": "select t1.owner_id , t1.last_name from owners_dogs_treatments as t1 group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0936", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0022", "db_id": "dog_kennels_total_2", "query": "select t1.owner_id , t1.last_name from owners_dogs_treatments as t1 group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "the", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0937", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0023", "db_id": "dog_kennels_total_2", "query": "select t1.owner_id , t1.zip_code from owners_dogs_treatments as t1 group by t1.owner_id order by sum ( t1.cost_of_treatment ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t1.cost_of_treatment", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t1.cost_of_treatment", ")", "desc", "limit", "value"], "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "question_toks": ["Which", "owner", "has", "paid", "the", "largest", "amount", "of", "money", "in", "total", "for", "their", "dogs", "?", "Show", "the", "owner", "id", "and", "zip", "code", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["desc", [[0, [4, 45, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0940", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0024", "db_id": "dog_kennels_total_2", "query": "select t1.owner_id , t1.zip_code from owners_dogs_treatments as t1 group by t1.owner_id order by sum ( t1.cost_of_treatment ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t1.cost_of_treatment", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t1.cost_of_treatment", ")", "desc", "limit", "value"], "question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "owner", "id", "and", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["desc", [[0, [4, 45, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0941", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0025", "db_id": "flight_1_total_0", "query": "select t1.name_employee_certificate from employee_certificate_aircraft as t1 where t1.distance > 5000 group by t1.eid order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name_employee_certificate", "from", "employee_certificate_aircraft", "as", "t1", "where", "t1.distance", ">", "5000", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name_employee_certificate", "from", "employee_certificate_aircraft", "as", "t1", "where", "t1.distance", ">", "value", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?", "question_toks": ["What", "is", "the", "salary", "and", "name", "of", "the", "employee", "who", "has", "the", "most", "number", "of", "certificates", "on", "aircrafts", "with", "distance", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 5000.0, null]], "groupBy": [[0, 13, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0437", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0026", "db_id": "flight_1_total_0", "query": "select t1.name_employee_certificate from employee_certificate_aircraft as t1 where t1.distance > 5000 group by t1.eid order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name_employee_certificate", "from", "employee_certificate_aircraft", "as", "t1", "where", "t1.distance", ">", "5000", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name_employee_certificate", "from", "employee_certificate_aircraft", "as", "t1", "where", "t1.distance", ">", "value", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salaray and name of the employee with the most certificates to fly planes more than 5000?", "question_toks": ["What", "is", "the", "salaray", "and", "name", "of", "the", "employee", "with", "the", "most", "certificates", "to", "fly", "planes", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 5000.0, null]], "groupBy": [[0, 13, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0438", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0027", "db_id": "store_1_total_0", "query": "select t1.name_tracks_playlist_tracks from tracks_playlist_tracks_playlists as t1 where t1.name_playlists = 'movies' except select t1.name_tracks_playlist_tracks from tracks_playlist_tracks_playlists as t1 where t1.name_playlists = 'music'", "query_toks": ["select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "'movies", "'", "except", "select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "value", "except", "select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "value"], "question": "Find the name of tracks which are in Movies playlist but not in music playlist.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "Movies", "playlist", "but", "not", "in", "music", "playlist", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 62, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 62, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0643", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0028", "db_id": "store_1_total_0", "query": "select t1.name_tracks_playlist_tracks from tracks_playlist_tracks_playlists as t1 where t1.name_playlists = 'movies' except select t1.name_tracks_playlist_tracks from tracks_playlist_tracks_playlists as t1 where t1.name_playlists = 'music'", "query_toks": ["select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "'movies", "'", "except", "select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "value", "except", "select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "value"], "question": "What are the names of all tracks that are on the Movies playlist but not in the music playlist?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "the", "Movies", "playlist", "but", "not", "in", "the", "music", "playlist", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 62, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 62, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0644", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0029", "db_id": "chinook_1_total_0", "query": "select t1.title from album_track_genre as t1 where t1.name_genre = 'reggae' intersect select t1.title from album_track_genre as t1 where t1.name_genre = 'rock'", "query_toks": ["select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "'reggae", "'", "intersect", "select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "'rock", "'"], "query_toks_no_value": ["select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "value", "intersect", "select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "value"], "question": "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?", "question_toks": ["What", "are", "the", "album", "titles", "for", "albums", "containing", "both", "'Reggae", "'", "and", "'Rock", "'", "genre", "tracks", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0889", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0030", "db_id": "chinook_1_total_0", "query": "select t1.title from album_track_genre as t1 where t1.name_genre = 'reggae' intersect select t1.title from album_track_genre as t1 where t1.name_genre = 'rock'", "query_toks": ["select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "'reggae", "'", "intersect", "select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "'rock", "'"], "query_toks_no_value": ["select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "value", "intersect", "select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "value"], "question": "Find the titles of albums that contain tracks of both the Reggae and Rock genres.", "question_toks": ["Find", "the", "titles", "of", "albums", "that", "contain", "tracks", "of", "both", "the", "Reggae", "and", "Rock", "genres", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0890", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0031", "db_id": "insurance_fnol_total_0", "query": "select t1.customer_name from customers_first_notification_of_loss_services as t1 where t1.service_name = 'close a policy' intersect select t1.customer_name from customers_first_notification_of_loss_services as t1 where t1.service_name = 'new policy application'", "query_toks": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "``", "close", "a", "policy", "''", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "``", "new", "policy", "application", "''"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "value", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "value"], "question": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\".", "question_toks": ["Find", "the", "names", "of", "customers", "who", "have", "used", "both", "the", "service", "``", "Close", "a", "policy", "''", "and", "the", "service", "``", "New", "policy", "application", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"new policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0923", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0032", "db_id": "insurance_fnol_total_0", "query": "select t1.customer_name from customers_first_notification_of_loss_services as t1 where t1.service_name = 'close a policy' intersect select t1.customer_name from customers_first_notification_of_loss_services as t1 where t1.service_name = 'new policy application'", "query_toks": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "``", "close", "a", "policy", "''", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "``", "new", "policy", "application", "''"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "value", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "value"], "question": "Which customers have used both the service named \"Close a policy\" and the service named \"Upgrade a policy\"? Give me the customer names.", "question_toks": ["Which", "customers", "have", "used", "both", "the", "service", "named", "``", "Close", "a", "policy", "''", "and", "the", "service", "named", "``", "Upgrade", "a", "policy", "''", "?", "Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"new policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0924", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0033", "db_id": "game_injury_total_0", "query": "select t1.id , t1.name from stadium_game_injury_accident as t1 group by t1.id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.id", ",", "t1.name", "from", "stadium_game_injury_accident", "as", "t1", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", "from", "stadium_game_injury_accident", "as", "t1", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the id and name of the stadium where the most injury accidents happened?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "most", "injury", "accidents", "happened", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1282", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0034", "db_id": "game_injury_total_0", "query": "select t1.id , t1.name from stadium_game_injury_accident as t1 group by t1.id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.id", ",", "t1.name", "from", "stadium_game_injury_accident", "as", "t1", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", "from", "stadium_game_injury_accident", "as", "t1", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the id and name of the stadium where the largest number of injury accidents occurred.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "largest", "number", "of", "injury", "accidents", "occurred", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1283", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0035", "db_id": "insurance_and_eClaims_total_0", "query": "select t1.customer_details from claim_headers_policies_customers as t1 where t1.amount_piad = ( select min ( amount_piad ) from claim_headers_policies_customers )", "query_toks": ["select", "t1.customer_details", "from", "claim_headers_policies_customers", "as", "t1", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies_customers", ")"], "query_toks_no_value": ["select", "t1.customer_details", "from", "claim_headers_policies_customers", "as", "t1", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies_customers", ")"], "question": "What is the name of the customer who has made the minimum amount of payment in one claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "minimum", "amount", "of", "payment", "in", "one", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1521", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0036", "db_id": "insurance_and_eClaims_total_0", "query": "select t1.customer_details from claim_headers_policies_customers as t1 where t1.amount_piad = ( select min ( amount_piad ) from claim_headers_policies_customers )", "query_toks": ["select", "t1.customer_details", "from", "claim_headers_policies_customers", "as", "t1", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies_customers", ")"], "query_toks_no_value": ["select", "t1.customer_details", "from", "claim_headers_policies_customers", "as", "t1", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies_customers", ")"], "question": "Which customer made the smallest amount of claim in one claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "smallest", "amount", "of", "claim", "in", "one", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1522", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0037", "db_id": "theme_gallery_total_0", "query": "select t1.name from exhibition_record_exhibition_artist as t1 group by t1.artist_id having avg ( t1.attendance ) > 200", "query_toks": ["select", "t1.name", "from", "exhibition_record_exhibition_artist", "as", "t1", "group", "by", "t1.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t1.name", "from", "exhibition_record_exhibition_artist", "as", "t1", "group", "by", "t1.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "value"], "question": "Show all artist names with an average exhibition attendance over 200.", "question_toks": ["Show", "all", "artist", "names", "with", "an", "average", "exhibition", "attendance", "over", "200", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [[false, 3, [0, [5, 9, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1687", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0038", "db_id": "theme_gallery_total_0", "query": "select t1.name from exhibition_record_exhibition_artist as t1 group by t1.artist_id having avg ( t1.attendance ) > 200", "query_toks": ["select", "t1.name", "from", "exhibition_record_exhibition_artist", "as", "t1", "group", "by", "t1.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t1.name", "from", "exhibition_record_exhibition_artist", "as", "t1", "group", "by", "t1.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "value"], "question": "What are the names of artist whose exhibitions draw over 200 attendees on average?", "question_toks": ["What", "are", "the", "names", "of", "artist", "whose", "exhibitions", "draw", "over", "200", "attendees", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [[false, 3, [0, [5, 9, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1688", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0039", "db_id": "riding_club_total_0", "query": "select t1.player_name from player_coach_coach_player as t1 where t1.rank_player_coach_coach = 1", "query_toks": ["select", "t1.player_name", "from", "player_coach_coach_player", "as", "t1", "where", "t1.rank_player_coach_coach", "=", "1"], "query_toks_no_value": ["select", "t1.player_name", "from", "player_coach_coach_player", "as", "t1", "where", "t1.rank_player_coach_coach", "=", "value"], "question": "Show the names of players coached by the rank 1 coach.", "question_toks": ["Show", "the", "names", "of", "players", "coached", "by", "the", "rank", "1", "coach", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1729", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0040", "db_id": "small_bank_1_total_0", "query": "select t1.name , t1.balance_accounts_checking from accounts_checking_savings as t1 order by t1.balance_savings limit 1", "query_toks": ["select", "t1.name", ",", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest savings balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1802", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0041", "db_id": "small_bank_1_total_0", "query": "select t1.name , t1.balance_accounts_checking from accounts_checking_savings as t1 order by t1.balance_savings limit 1", "query_toks": ["select", "t1.name", ",", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "value"], "question": "What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?", "question_toks": ["What", "are", "the", "names", "and", "balances", "of", "checking", "accounts", "belonging", "to", "the", "customer", "with", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1803", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0042", "db_id": "small_bank_1_total_0", "query": "select t1.balance_savings from accounts_checking_savings as t1 order by t1.balance_accounts_checking desc limit 1", "query_toks": ["select", "t1.balance_savings", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_accounts_checking", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.balance_savings", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_accounts_checking", "desc", "limit", "value"], "question": "Find the saving balance of the account with the highest checking balance.", "question_toks": ["Find", "the", "saving", "balance", "of", "the", "account", "with", "the", "highest", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1810", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0043", "db_id": "small_bank_1_total_0", "query": "select t1.balance_savings from accounts_checking_savings as t1 order by t1.balance_accounts_checking desc limit 1", "query_toks": ["select", "t1.balance_savings", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_accounts_checking", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.balance_savings", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_accounts_checking", "desc", "limit", "value"], "question": "What is the savings balance of the account belonging to the customer with the highest checking balance?", "question_toks": ["What", "is", "the", "savings", "balance", "of", "the", "account", "belonging", "to", "the", "customer", "with", "the", "highest", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1811", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0044", "db_id": "small_bank_1_total_0", "query": "select t1.balance_accounts_checking , t1.name from accounts_checking_savings as t1 order by t1.balance_savings limit 1", "query_toks": ["select", "t1.balance_accounts_checking", ",", "t1.name", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "1"], "query_toks_no_value": ["select", "t1.balance_accounts_checking", ",", "t1.name", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest saving balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1814", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0045", "db_id": "small_bank_1_total_0", "query": "select t1.balance_accounts_checking , t1.name from accounts_checking_savings as t1 order by t1.balance_savings limit 1", "query_toks": ["select", "t1.balance_accounts_checking", ",", "t1.name", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "1"], "query_toks_no_value": ["select", "t1.balance_accounts_checking", ",", "t1.name", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "value"], "question": "What is the name and checking balance of the account which has the lowest savings balance?", "question_toks": ["What", "is", "the", "name", "and", "checking", "balance", "of", "the", "account", "which", "has", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1815", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0046", "db_id": "small_bank_1_total_0", "query": "select t1.name from accounts_checking_savings as t1 where t1.balance_accounts_checking > t1.balance_savings", "query_toks": ["select", "t1.name", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_accounts_checking", ">", "t1.balance_savings"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_accounts_checking", ">", "t1.balance_savings"], "question": "Find the name of accounts whose checking balance is higher than corresponding saving balance.", "question_toks": ["Find", "the", "name", "of", "accounts", "whose", "checking", "balance", "is", "higher", "than", "corresponding", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], [0, 2, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1820", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0047", "db_id": "small_bank_1_total_0", "query": "select t1.name from accounts_checking_savings as t1 where t1.balance_accounts_checking > t1.balance_savings", "query_toks": ["select", "t1.name", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_accounts_checking", ">", "t1.balance_savings"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_accounts_checking", ">", "t1.balance_savings"], "question": "What are the names of customers with a higher checking balance than savings balance?", "question_toks": ["What", "are", "the", "names", "of", "customers", "with", "a", "higher", "checking", "balance", "than", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], [0, 2, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1821", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0048", "db_id": "small_bank_1_total_0", "query": "select t1.name , t1.balance_savings + t1.balance_accounts_checking from accounts_checking_savings as t1 where t1.balance_savings < t1.balance_accounts_checking", "query_toks": ["select", "t1.name", ",", "t1.balance_savings", "+", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_savings", "<", "t1.balance_accounts_checking"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance_savings", "+", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_savings", "<", "t1.balance_accounts_checking"], "question": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": ["Find", "the", "name", "and", "total", "checking", "and", "savings", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 2, false], [0, 3, false]]]]], "where": [[false, 4, [0, [0, 2, false], null], [0, 3, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1822", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0049", "db_id": "small_bank_1_total_0", "query": "select t1.name , t1.balance_savings + t1.balance_accounts_checking from accounts_checking_savings as t1 where t1.balance_savings < t1.balance_accounts_checking", "query_toks": ["select", "t1.name", ",", "t1.balance_savings", "+", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_savings", "<", "t1.balance_accounts_checking"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance_savings", "+", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_savings", "<", "t1.balance_accounts_checking"], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "total", "of", "their", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 2, false], [0, 3, false]]]]], "where": [[false, 4, [0, [0, 2, false], null], [0, 3, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1823", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0000", "db_id": "concert_singer_total_0", "query": "select t1.name , t1.capacity from concert_stadium as t1 where t1.year >= 2014 group by t1.stadium_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", ",", "t1.capacity", "from", "concert_stadium", "as", "t1", "where", "t1.year", ">", "=", "2014", "group", "by", "t1.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.capacity", "from", "concert_stadium", "as", "t1", "where", "t1.year", ">", "=", "value", "group", "by", "t1.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0001", "db_id": "concert_singer_total_0", "query": "select t1.name , t1.capacity from concert_stadium as t1 where t1.year > 2013 group by t1.stadium_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", ",", "t1.capacity", "from", "concert_stadium", "as", "t1", "where", "t1.year", ">", "2013", "group", "by", "t1.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.capacity", "from", "concert_stadium", "as", "t1", "where", "t1.year", ">", "value", "group", "by", "t1.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name and capacity of the stadium with the most concerts after 2013 ?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "of", "the", "stadium", "with", "the", "most", "concerts", "after", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 2013.0, null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0025", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0002", "db_id": "concert_singer_total_0", "query": "select name from concert_stadium except select t1.name from concert_stadium as t1 where t1.year = 2014", "query_toks": ["select", "name", "from", "concert_stadium", "except", "select", "t1.name", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2014"], "query_toks_no_value": ["select", "name", "from", "concert_stadium", "except", "select", "t1.name", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value"], "question": "Show names for all stadiums except for stadiums having a concert in year 2014.", "question_toks": ["Show", "names", "for", "all", "stadiums", "except", "for", "stadiums", "having", "a", "concert", "in", "year", "2014", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0031", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0003", "db_id": "concert_singer_total_0", "query": "select name from concert_stadium except select t1.name from concert_stadium as t1 where t1.year = 2014", "query_toks": ["select", "name", "from", "concert_stadium", "except", "select", "t1.name", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2014"], "query_toks_no_value": ["select", "name", "from", "concert_stadium", "except", "select", "t1.name", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value"], "question": "What are the names of all stadiums that did not have a concert in 2014?", "question_toks": ["What", "are", "the", "names", "of", "all", "stadiums", "that", "did", "not", "have", "a", "concert", "in", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0032", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0004", "db_id": "concert_singer_total_1", "query": "select t1.concert_name , t1.theme , count ( * ) from singer_in_concert_concert as t1 group by t1.concert_id", "query_toks": ["select", "t1.concert_name", ",", "t1.theme", ",", "count", "(", "*", ")", "from", "singer_in_concert_concert", "as", "t1", "group", "by", "t1.concert_id"], "query_toks_no_value": ["select", "t1.concert_name", ",", "t1.theme", ",", "count", "(", "*", ")", "from", "singer_in_concert_concert", "as", "t1", "group", "by", "t1.concert_id"], "question": "Show the name and theme for all concerts and the number of singers in each concert.", "question_toks": ["Show", "the", "name", "and", "theme", "for", "all", "concerts", "and", "the", "number", "of", "singers", "in", "each", "concert", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0033", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0005", "db_id": "concert_singer_total_1", "query": "select t1.concert_name , t1.theme , count ( * ) from singer_in_concert_concert as t1 group by t1.concert_id", "query_toks": ["select", "t1.concert_name", ",", "t1.theme", ",", "count", "(", "*", ")", "from", "singer_in_concert_concert", "as", "t1", "group", "by", "t1.concert_id"], "query_toks_no_value": ["select", "t1.concert_name", ",", "t1.theme", ",", "count", "(", "*", ")", "from", "singer_in_concert_concert", "as", "t1", "group", "by", "t1.concert_id"], "question": "What are the names , themes , and number of singers for every concert ?", "question_toks": ["What", "are", "the", "names", ",", "themes", ",", "and", "number", "of", "singers", "for", "every", "concert", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0034", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0006", "db_id": "concert_singer_total_0", "query": "select t1.name , t1.location from concert_stadium as t1 where t1.year = 2014 intersect select t1.name , t1.location from concert_stadium as t1 where t1.year = 2015", "query_toks": ["select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2014", "intersect", "select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2015"], "query_toks_no_value": ["select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value", "intersect", "select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value"], "question": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", "question_toks": ["Find", "the", "name", "and", "location", "of", "the", "stadiums", "which", "some", "concerts", "happened", "in", "the", "years", "of", "both", "2014", "and", "2015", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0041", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0007", "db_id": "concert_singer_total_0", "query": "select t1.name , t1.location from concert_stadium as t1 where t1.year = 2014 intersect select t1.name , t1.location from concert_stadium as t1 where t1.year = 2015", "query_toks": ["select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2014", "intersect", "select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2015"], "query_toks_no_value": ["select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value", "intersect", "select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value"], "question": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", "question_toks": ["What", "are", "the", "names", "and", "locations", "of", "the", "stadiums", "that", "had", "concerts", "that", "occurred", "in", "both", "2014", "and", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0042", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0008", "db_id": "pets_1_total_1", "query": "select count ( * ) from student_has_pet as t1 where t1.age > 20", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "where", "t1.age", ">", "20"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "where", "t1.age", ">", "value"], "question": "Find number of pets owned by students who are older than 20.", "question_toks": ["Find", "number", "of", "pets", "owned", "by", "students", "who", "are", "older", "than", "20", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0051", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0009", "db_id": "pets_1_total_1", "query": "select count ( * ) from student_has_pet as t1 where t1.age > 20", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "where", "t1.age", ">", "20"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "where", "t1.age", ">", "value"], "question": "How many pets are owned by students that have an age greater than 20?", "question_toks": ["How", "many", "pets", "are", "owned", "by", "students", "that", "have", "an", "age", "greater", "than", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0052", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0010", "db_id": "pets_1_total_1", "query": "select t1.fname , t1.sex from student_has_pet as t1 group by t1.stuid having count ( * ) > 1", "query_toks": ["select", "t1.fname", ",", "t1.sex", "from", "student_has_pet", "as", "t1", "group", "by", "t1.stuid", "having", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.sex", "from", "student_has_pet", "as", "t1", "group", "by", "t1.stuid", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the first name and gender of student who have more than one pet.", "question_toks": ["Find", "the", "first", "name", "and", "gender", "of", "student", "who", "have", "more", "than", "one", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0081", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0011", "db_id": "pets_1_total_1", "query": "select t1.fname , t1.sex from student_has_pet as t1 group by t1.stuid having count ( * ) > 1", "query_toks": ["select", "t1.fname", ",", "t1.sex", "from", "student_has_pet", "as", "t1", "group", "by", "t1.stuid", "having", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.sex", "from", "student_has_pet", "as", "t1", "group", "by", "t1.stuid", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the first name and gender of the all the students who have more than one pet?", "question_toks": ["What", "is", "the", "first", "name", "and", "gender", "of", "the", "all", "the", "students", "who", "have", "more", "than", "one", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0082", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0012", "db_id": "car_1_total_4", "query": "select t1.contid , t1.continent_continents , count ( * ) from continents_countries as t1 group by t1.contid ;", "query_toks": ["select", "t1.contid", ",", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "group", "by", "t1.contid", ";"], "query_toks_no_value": ["select", "t1.contid", ",", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "group", "by", "t1.contid"], "question": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "question_toks": ["How", "many", "countries", "does", "each", "continent", "have", "?", "List", "the", "continent", "id", ",", "continent", "name", "and", "the", "number", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 1, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0089", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0013", "db_id": "car_1_total_4", "query": "select t1.contid , t1.continent_continents , count ( * ) from continents_countries as t1 group by t1.contid ;", "query_toks": ["select", "t1.contid", ",", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "group", "by", "t1.contid", ";"], "query_toks_no_value": ["select", "t1.contid", ",", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "group", "by", "t1.contid"], "question": "For each continent, list its id, name, and how many countries it has?", "question_toks": ["For", "each", "continent", ",", "list", "its", "id", ",", "name", ",", "and", "how", "many", "countries", "it", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 1, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0090", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0014", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 order by t1.horsepower asc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.horsepower", "asc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.horsepower", "asc", "limit", "value"], "question": "Which model of the car has the minimum horsepower?", "question_toks": ["Which", "model", "of", "the", "car", "has", "the", "minimum", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0095", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0015", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 order by t1.horsepower asc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.horsepower", "asc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.horsepower", "asc", "limit", "value"], "question": "What is the model of the car with the smallest amount of horsepower?", "question_toks": ["What", "is", "the", "model", "of", "the", "car", "with", "the", "smallest", "amount", "of", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0096", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0016", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 where t1.weight < ( select avg ( weight ) from car_names_cars_data )", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "car_names_cars_data", ")"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "car_names_cars_data", ")"], "question": "Find the model of the car whose weight is below the average weight.", "question_toks": ["Find", "the", "model", "of", "the", "car", "whose", "weight", "is", "below", "the", "average", "weight", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0097", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0017", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 where t1.weight < ( select avg ( weight ) from car_names_cars_data )", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "car_names_cars_data", ")"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "car_names_cars_data", ")"], "question": "What is the model for the car with a weight smaller than the average?", "question_toks": ["What", "is", "the", "model", "for", "the", "car", "with", "a", "weight", "smaller", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0098", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0018", "db_id": "car_1_total_1", "query": "select t1.make , t1.year from cars_data_car_names as t1 where t1.year = ( select min ( year ) from cars_data_car_names ) ;", "query_toks": ["select", "t1.make", ",", "t1.year", "from", "cars_data_car_names", "as", "t1", "where", "t1.year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data_car_names", ")", ";"], "query_toks_no_value": ["select", "t1.make", ",", "t1.year", "from", "cars_data_car_names", "as", "t1", "where", "t1.year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data_car_names", ")"], "question": "Find the make and production time of the cars that were produced in the earliest year?", "question_toks": ["Find", "the", "make", "and", "production", "time", "of", "the", "cars", "that", "were", "produced", "in", "the", "earliest", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0101", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0019", "db_id": "car_1_total_1", "query": "select t1.make , t1.year from cars_data_car_names as t1 where t1.year = ( select min ( year ) from cars_data_car_names ) ;", "query_toks": ["select", "t1.make", ",", "t1.year", "from", "cars_data_car_names", "as", "t1", "where", "t1.year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data_car_names", ")", ";"], "query_toks_no_value": ["select", "t1.make", ",", "t1.year", "from", "cars_data_car_names", "as", "t1", "where", "t1.year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data_car_names", ")"], "question": "What is the maker of the carr produced in the earliest year and what year was it?", "question_toks": ["What", "is", "the", "maker", "of", "the", "carr", "produced", "in", "the", "earliest", "year", "and", "what", "year", "was", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0102", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0020", "db_id": "car_1_total_6", "query": "select t1.countryname from car_makers_countries as t1 group by t1.country order by count ( * ) desc limit 1 ;", "query_toks": ["select", "t1.countryname", "from", "car_makers_countries", "as", "t1", "group", "by", "t1.country", "order", "by", "count", "(", "*", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "car_makers_countries", "as", "t1", "group", "by", "t1.country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which of the countries has the most car makers? List the country name.", "question_toks": ["Which", "of", "the", "countries", "has", "the", "most", "car", "makers", "?", "List", "the", "country", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0107", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0021", "db_id": "car_1_total_6", "query": "select t1.countryname from car_makers_countries as t1 group by t1.country order by count ( * ) desc limit 1 ;", "query_toks": ["select", "t1.countryname", "from", "car_makers_countries", "as", "t1", "group", "by", "t1.country", "order", "by", "count", "(", "*", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "car_makers_countries", "as", "t1", "group", "by", "t1.country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the country with the most car makers?", "question_toks": ["What", "is", "the", "name", "of", "the", "country", "with", "the", "most", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0108", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0022", "db_id": "car_1_total_1", "query": "select accelerate from cars_data_car_names where make like '%amc hornet sportabout%' limit 1;", "query_toks": ["select", "t1.accelerate", "from", "cars_data_car_names", "as", "t1", "where", "t1.make", "=", "'amc", "hornet", "sportabout", "(", "sw", ")", "'", ";"], "query_toks_no_value": ["select", "t1.accelerate", "from", "cars_data_car_names", "as", "t1", "where", "t1.make", "=", "value"], "question": "What is the accelerate of the car make amc hornet sportabout (sw)?", "question_toks": ["What", "is", "the", "accelerate", "of", "the", "car", "make", "amc", "hornet", "sportabout", "(", "sw", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"amc hornet sportabout ( sw )\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0111", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0023", "db_id": "car_1_total_1", "query": "select t1.accelerate from cars_data_car_names as t1 where t1.make = 'amc hornet sportabout ( sw )' ;", "query_toks": ["select", "t1.accelerate", "from", "cars_data_car_names", "as", "t1", "where", "t1.make", "=", "'amc", "hornet", "sportabout", "(", "sw", ")", "'", ";"], "query_toks_no_value": ["select", "t1.accelerate", "from", "cars_data_car_names", "as", "t1", "where", "t1.make", "=", "value"], "question": "How much does the car accelerate that makes amc hornet sportabout (sw)?", "question_toks": ["How", "much", "does", "the", "car", "accelerate", "that", "makes", "amc", "hornet", "sportabout", "(", "sw", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"amc hornet sportabout ( sw )\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0112", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0024", "db_id": "car_1_total_6", "query": "select count ( * ) from car_makers_countries as t1 where t1.countryname = 'france' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "'france", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "value"], "question": "How many car makers are there in france?", "question_toks": ["How", "many", "car", "makers", "are", "there", "in", "france", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0113", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0025", "db_id": "car_1_total_6", "query": "select count ( * ) from car_makers_countries as t1 where t1.countryname = 'france' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "'france", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "value"], "question": "What is the number of makers of care in France?", "question_toks": ["What", "is", "the", "number", "of", "makers", "of", "care", "in", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0114", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0026", "db_id": "car_1_total_3", "query": "select t1.horsepower , t1.make from car_names_cars_data as t1 where t1.cylinders = 3 order by t1.horsepower desc limit 1 ;", "query_toks": ["select", "t1.horsepower", ",", "t1.make", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "3", "order", "by", "t1.horsepower", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.horsepower", ",", "t1.make", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "value", "order", "by", "t1.horsepower", "desc", "limit", "value"], "question": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "question_toks": ["What", "is", "the", "maximum", "horsepower", "and", "the", "make", "of", "the", "car", "models", "with", "3", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0131", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0027", "db_id": "car_1_total_3", "query": "select t1.horsepower , t1.make from car_names_cars_data as t1 where t1.cylinders = 3 order by t1.horsepower desc limit 1 ;", "query_toks": ["select", "t1.horsepower", ",", "t1.make", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "3", "order", "by", "t1.horsepower", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.horsepower", ",", "t1.make", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "value", "order", "by", "t1.horsepower", "desc", "limit", "value"], "question": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", "question_toks": ["What", "is", "the", "largest", "amount", "of", "horsepower", "for", "the", "models", "with", "3", "cylinders", "and", "what", "make", "is", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0132", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0028", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 order by t1.mpg desc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.mpg", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.mpg", "desc", "limit", "value"], "question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "question_toks": ["Which", "model", "saves", "the", "most", "gasoline", "?", "That", "is", "to", "say", ",", "have", "the", "maximum", "miles", "per", "gallon", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0133", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0029", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 order by t1.mpg desc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.mpg", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.mpg", "desc", "limit", "value"], "question": "What is the car model with the highest mpg ?", "question_toks": ["What", "is", "the", "car", "model", "with", "the", "highest", "mpg", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0134", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0030", "db_id": "car_1_total_3", "query": "select avg ( t1.edispl ) from car_names_cars_data as t1 where t1.model = 'volvo' ;", "query_toks": ["select", "avg", "(", "t1.edispl", ")", "from", "car_names_cars_data", "as", "t1", "where", "t1.model", "=", "'volvo", "'", ";"], "query_toks_no_value": ["select", "avg", "(", "t1.edispl", ")", "from", "car_names_cars_data", "as", "t1", "where", "t1.model", "=", "value"], "question": "What is the average edispl of the cars of model volvo?", "question_toks": ["What", "is", "the", "average", "edispl", "of", "the", "cars", "of", "model", "volvo", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0137", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0031", "db_id": "car_1_total_3", "query": "select avg ( t1.edispl ) from car_names_cars_data as t1 where t1.model = 'volvo' ;", "query_toks": ["select", "avg", "(", "t1.edispl", ")", "from", "car_names_cars_data", "as", "t1", "where", "t1.model", "=", "'volvo", "'", ";"], "query_toks_no_value": ["select", "avg", "(", "t1.edispl", ")", "from", "car_names_cars_data", "as", "t1", "where", "t1.model", "=", "value"], "question": "What is the average edispl for all volvos?", "question_toks": ["What", "is", "the", "average", "edispl", "for", "all", "volvos", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0138", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0032", "db_id": "car_1_total_7", "query": "select count ( * ) from car_makers_model_list as t1 where t1.fullname = 'american motor company' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "car_makers_model_list", "as", "t1", "where", "t1.fullname", "=", "'american", "motor", "company", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers_model_list", "as", "t1", "where", "t1.fullname", "=", "value"], "question": "How many car models were produced by the maker with full name American Motor Company?", "question_toks": ["How", "many", "car", "models", "were", "produced", "by", "the", "maker", "with", "full", "name", "American", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"american motor company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0147", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0033", "db_id": "car_1_total_7", "query": "select count ( * ) from car_makers_model_list as t1 where t1.fullname = 'american motor company' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "car_makers_model_list", "as", "t1", "where", "t1.fullname", "=", "'american", "motor", "company", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers_model_list", "as", "t1", "where", "t1.fullname", "=", "value"], "question": "What is the number of car models created by the car maker American Motor Company?", "question_toks": ["What", "is", "the", "number", "of", "car", "models", "created", "by", "the", "car", "maker", "American", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"american motor company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0148", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0034", "db_id": "car_1_total_7", "query": "select t1.fullname , t1.id from car_makers_model_list as t1 group by t1.id having count ( * ) > 3 ;", "query_toks": ["select", "t1.fullname", ",", "t1.id", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "3", ";"], "query_toks_no_value": ["select", "t1.fullname", ",", "t1.id", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "Which makers designed more than 3 car models? List full name and the id.", "question_toks": ["Which", "makers", "designed", "more", "than", "3", "car", "models", "?", "List", "full", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0149", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0035", "db_id": "car_1_total_7", "query": "select t1.fullname , t1.id from car_makers_model_list as t1 group by t1.id having count ( * ) > 3 ;", "query_toks": ["select", "t1.fullname", ",", "t1.id", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "3", ";"], "query_toks_no_value": ["select", "t1.fullname", ",", "t1.id", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the names and ids of all makers with more than 3 models?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "makers", "with", "more", "than", "3", "models", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0150", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0036", "db_id": "car_1_total_1", "query": "select t1.cylinders from cars_data_car_names as t1 where t1.model = 'volvo' order by t1.accelerate asc limit 1 ;", "query_toks": ["select", "t1.cylinders", "from", "cars_data_car_names", "as", "t1", "where", "t1.model", "=", "'volvo", "'", "order", "by", "t1.accelerate", "asc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.cylinders", "from", "cars_data_car_names", "as", "t1", "where", "t1.model", "=", "value", "order", "by", "t1.accelerate", "asc", "limit", "value"], "question": "For model volvo, how many cylinders does the car with the least accelerate have?", "question_toks": ["For", "model", "volvo", ",", "how", "many", "cylinders", "does", "the", "car", "with", "the", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0157", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0037", "db_id": "car_1_total_1", "query": "select t1.cylinders from cars_data_car_names as t1 where t1.model = 'volvo' order by t1.accelerate asc limit 1 ;", "query_toks": ["select", "t1.cylinders", "from", "cars_data_car_names", "as", "t1", "where", "t1.model", "=", "'volvo", "'", "order", "by", "t1.accelerate", "asc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.cylinders", "from", "cars_data_car_names", "as", "t1", "where", "t1.model", "=", "value", "order", "by", "t1.accelerate", "asc", "limit", "value"], "question": "For a volvo model, how many cylinders does the version with least accelerate have?", "question_toks": ["For", "a", "volvo", "model", ",", "how", "many", "cylinders", "does", "the", "version", "with", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0158", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0038", "db_id": "car_1_total_8", "query": "select count ( * ) from countries_car_makers as t1 group by t1.countryid having count ( * ) > 2", "query_toks": ["select", "count", "(", "*", ")", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value"], "question": "How many countries has more than 2 car makers ?", "question_toks": ["How", "many", "countries", "has", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0161", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0039", "db_id": "car_1_total_8", "query": "select count ( * ) from countries_car_makers as t1 group by t1.countryid having count ( * ) > 2", "query_toks": ["select", "count", "(", "*", ")", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the number of countries with more than 2 car makers ?", "question_toks": ["What", "is", "the", "number", "of", "countries", "with", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0162", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0040", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 where t1.cylinders = 4 order by t1.horsepower desc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "4", "order", "by", "t1.horsepower", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "value", "order", "by", "t1.horsepower", "desc", "limit", "value"], "question": "For the cars with 4 cylinders, which model has the largest horsepower?", "question_toks": ["For", "the", "cars", "with", "4", "cylinders", ",", "which", "model", "has", "the", "largest", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0165", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0041", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 where t1.cylinders = 4 order by t1.horsepower desc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "4", "order", "by", "t1.horsepower", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "value", "order", "by", "t1.horsepower", "desc", "limit", "value"], "question": "For all of the 4 cylinder cars, which model has the most horsepower?", "question_toks": ["For", "all", "of", "the", "4", "cylinder", "cars", ",", "which", "model", "has", "the", "most", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0166", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0042", "db_id": "car_1_total_1", "query": "select t1.id , t1.make from cars_data_car_names as t1 where t1.horsepower > ( select min ( horsepower ) from cars_data_car_names ) and t1.cylinders <= 3 ;", "query_toks": ["select", "t1.id", ",", "t1.make", "from", "cars_data_car_names", "as", "t1", "where", "t1.horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data_car_names", ")", "and", "t1.cylinders", "<", "=", "3", ";"], "query_toks_no_value": ["select", "t1.id", ",", "t1.make", "from", "cars_data_car_names", "as", "t1", "where", "t1.horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data_car_names", ")", "and", "t1.cylinders", "<", "=", "value"], "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "lowest", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 16, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0167", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0043", "db_id": "car_1_total_1", "query": "select t1.id , t1.make from cars_data_car_names as t1 where t1.horsepower > ( select min ( horsepower ) from cars_data_car_names ) and t1.cylinders < 4 ;", "query_toks": ["select", "t1.id", ",", "t1.make", "from", "cars_data_car_names", "as", "t1", "where", "t1.horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data_car_names", ")", "and", "t1.cylinders", "<", "4", ";"], "query_toks_no_value": ["select", "t1.id", ",", "t1.make", "from", "cars_data_car_names", "as", "t1", "where", "t1.horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data_car_names", ")", "and", "t1.cylinders", "<", "value"], "question": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?", "question_toks": ["Among", "the", "cars", "that", "do", "not", "have", "the", "minimum", "horsepower", ",", "what", "are", "the", "make", "ids", "and", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 4, [0, [0, 16, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0168", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0044", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value"], "question": "How many flights depart from City Aberdeen?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "Aberdeen", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0207", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0045", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value"], "question": "Return the number of flights departing from Aberdeen.", "question_toks": ["Return", "the", "number", "of", "flights", "departing", "from", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0208", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0046", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value"], "question": "How many flights arriving in Aberdeen city?", "question_toks": ["How", "many", "flights", "arriving", "in", "Aberdeen", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0209", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0047", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value"], "question": "Return the number of flights arriving in Aberdeen.", "question_toks": ["Return", "the", "number", "of", "flights", "arriving", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0210", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0048", "db_id": "flight_2_total_3", "query": "select count ( * ) from flights_airlines as t1 where t1.airline_airlines = 'jetblue airways'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "``", "jetblue", "airways", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "value"], "question": "How many flights does airline 'JetBlue Airways' have?", "question_toks": ["How", "many", "flights", "does", "airline", "'JetBlue", "Airways", "'", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"jetblue airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0213", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0049", "db_id": "flight_2_total_3", "query": "select count ( * ) from flights_airlines as t1 where t1.airline_airlines = 'jetblue airways'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "``", "jetblue", "airways", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "value"], "question": "Give the number of Jetblue Airways flights.", "question_toks": ["Give", "the", "number", "of", "Jetblue", "Airways", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"jetblue airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0214", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0050", "db_id": "flight_2_total_0", "query": "select count ( * ) from airlines_flights as t1 where t1.airline_airlines = 'united airlines' and t1.destairport = 'asy'", "query_toks": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "airlines_flights", "''", "and", "t1.destairport", "=", "``", "asy", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "value", "and", "t1.destairport", "=", "value"], "question": "How many 'United Airlines' flights go to Airport 'ASY'?", "question_toks": ["How", "many", "'United", "Airlines", "'", "flights", "go", "to", "Airport", "'ASY", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united airlines_flights\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"asy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0215", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0051", "db_id": "flight_2_total_0", "query": "select count ( * ) from airlines_flights as t1 where t1.airline_airlines = 'united airlines' and t1.destairport = 'asy'", "query_toks": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "airlines_flights", "''", "and", "t1.destairport", "=", "``", "asy", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "value", "and", "t1.destairport", "=", "value"], "question": "Count the number of United Airlines flights arriving in ASY Airport.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "arriving", "in", "ASY", "Airport", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united airlines_flights\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"asy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0216", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0052", "db_id": "flight_2_total_0", "query": "select count ( * ) from airlines_flights as t1 where t1.airline_airlines = 'united airlines' and t1.sourceairport = 'ahd'", "query_toks": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "airlines_flights", "''", "and", "t1.sourceairport", "=", "``", "ahd", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "value", "and", "t1.sourceairport", "=", "value"], "question": "How many 'United Airlines' flights depart from Airport 'AHD'?", "question_toks": ["How", "many", "'United", "Airlines", "'", "flights", "depart", "from", "Airport", "'AHD", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united airlines_flights\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"ahd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0217", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0053", "db_id": "flight_2_total_0", "query": "select count ( * ) from airlines_flights as t1 where t1.airline_airlines = 'united airlines' and t1.sourceairport = 'ahd'", "query_toks": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "airlines_flights", "''", "and", "t1.sourceairport", "=", "``", "ahd", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "value", "and", "t1.sourceairport", "=", "value"], "question": "Return the number of United Airlines flights leaving from AHD Airport.", "question_toks": ["Return", "the", "number", "of", "United", "Airlines", "flights", "leaving", "from", "AHD", "Airport", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united airlines_flights\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"ahd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0218", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0054", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 group by t1.airline_airlines order by count ( * ) desc limit 1", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which airline has most number of flights?", "question_toks": ["Which", "airline", "has", "most", "number", "of", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0229", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0055", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 group by t1.airline_airlines order by count ( * ) desc limit 1", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What airline serves the most flights?", "question_toks": ["What", "airline", "serves", "the", "most", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0230", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0056", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 where t1.sourceairport = 'cvo' except select t1.airline_airlines from airlines_flights as t1 where t1.sourceairport = 'apg'", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "``", "cvo", "''", "except", "select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "``", "apg", "''"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "value", "except", "select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "value"], "question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "airport", "'CVO", "'", "but", "not", "from", "'APG", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"apg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0239", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0057", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 where t1.sourceairport = 'cvo' except select t1.airline_airlines from airlines_flights as t1 where t1.sourceairport = 'apg'", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "``", "cvo", "''", "except", "select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "``", "apg", "''"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "value", "except", "select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "value"], "question": "Which airlines have departures from CVO but not from APG airports?", "question_toks": ["Which", "airlines", "have", "departures", "from", "CVO", "but", "not", "from", "APG", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"apg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0240", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0058", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 group by t1.airline_airlines having count ( * ) > 10", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "having", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "having", "count", "(", "*", ")", ">", "value"], "question": "Find all airlines that have at least 10 flights.", "question_toks": ["Find", "all", "airlines", "that", "have", "at", "least", "10", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0241", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0059", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 group by t1.airline_airlines having count ( * ) > 10", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "having", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "having", "count", "(", "*", ")", ">", "value"], "question": "Which airlines have at least 10 flights?", "question_toks": ["Which", "airlines", "have", "at", "least", "10", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0242", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0060", "db_id": "flight_2_total_3", "query": "select t1.flightno from flights_airlines as t1 where t1.airline_airlines = 'united airlines'", "query_toks": ["select", "t1.flightno", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "flights_airlines", "''"], "query_toks_no_value": ["select", "t1.flightno", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "value"], "question": "What are flight numbers of Airline \"United Airlines\"?", "question_toks": ["What", "are", "flight", "numbers", "of", "Airline", "``", "United", "Airlines", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united flights_airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0245", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0061", "db_id": "flight_2_total_3", "query": "select t1.flightno from flights_airlines as t1 where t1.airline_airlines = 'united airlines'", "query_toks": ["select", "t1.flightno", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "flights_airlines", "''"], "query_toks_no_value": ["select", "t1.flightno", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "value"], "question": "Which flight numbers correspond to United Airlines flights?", "question_toks": ["Which", "flight", "numbers", "correspond", "to", "United", "Airlines", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united flights_airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0246", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0062", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen' or t1.city = 'abilene'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''", "or", "t1.city", "=", "``", "abilene", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value", "or", "t1.city", "=", "value"], "question": "Find the number of flights landing in the city of Aberdeen or Abilene.", "question_toks": ["Find", "the", "number", "of", "flights", "landing", "in", "the", "city", "of", "Aberdeen", "or", "Abilene", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0255", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0063", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen' or t1.city = 'abilene'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''", "or", "t1.city", "=", "``", "abilene", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value", "or", "t1.city", "=", "value"], "question": "How many flights land in Aberdeen or Abilene?", "question_toks": ["How", "many", "flights", "land", "in", "Aberdeen", "or", "Abilene", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0256", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0064", "db_id": "employee_hire_evaluation_total_0", "query": "select t1.name from employee_evaluation as t1 group by t1.employee_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "employee_evaluation", "as", "t1", "group", "by", "t1.employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "employee_evaluation", "as", "t1", "group", "by", "t1.employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "find the name of employee who was awarded the most times in the evaluation.", "question_toks": ["find", "the", "name", "of", "employee", "who", "was", "awarded", "the", "most", "times", "in", "the", "evaluation", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0277", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0065", "db_id": "employee_hire_evaluation_total_0", "query": "select t1.name from employee_evaluation as t1 group by t1.employee_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "employee_evaluation", "as", "t1", "group", "by", "t1.employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "employee_evaluation", "as", "t1", "group", "by", "t1.employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which employee received the most awards in evaluations? Give me the employee name.", "question_toks": ["Which", "employee", "received", "the", "most", "awards", "in", "evaluations", "?", "Give", "me", "the", "employee", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0278", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0066", "db_id": "employee_hire_evaluation_total_1", "query": "select t1.name from hiring_shop as t1 group by t1.shop_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "hiring_shop", "as", "t1", "group", "by", "t1.shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "hiring_shop", "as", "t1", "group", "by", "t1.shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the shop that is hiring the largest number of employees?", "question_toks": ["What", "is", "the", "name", "of", "the", "shop", "that", "is", "hiring", "the", "largest", "number", "of", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0283", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0067", "db_id": "employee_hire_evaluation_total_1", "query": "select t1.name from hiring_shop as t1 group by t1.shop_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "hiring_shop", "as", "t1", "group", "by", "t1.shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "hiring_shop", "as", "t1", "group", "by", "t1.shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which shop has the most employees? Give me the shop name.", "question_toks": ["Which", "shop", "has", "the", "most", "employees", "?", "Give", "me", "the", "shop", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0284", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0068", "db_id": "cre_Doc_Template_Mgt_total_0", "query": "select count ( * ) from documents_templates as t1 where t1.template_type_code = 'ppt'", "query_toks": ["select", "count", "(", "*", ")", "from", "documents_templates", "as", "t1", "where", "t1.template_type_code", "=", "'ppt", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents_templates", "as", "t1", "where", "t1.template_type_code", "=", "value"], "question": "How many documents are using the template with type code 'PPT'?", "question_toks": ["How", "many", "documents", "are", "using", "the", "template", "with", "type", "code", "'PPT", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ppt\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0307", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0069", "db_id": "cre_Doc_Template_Mgt_total_0", "query": "select count ( * ) from documents_templates as t1 where t1.template_type_code = 'ppt'", "query_toks": ["select", "count", "(", "*", ")", "from", "documents_templates", "as", "t1", "where", "t1.template_type_code", "=", "'ppt", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents_templates", "as", "t1", "where", "t1.template_type_code", "=", "value"], "question": "Count the number of documents that use the PPT template type.", "question_toks": ["Count", "the", "number", "of", "documents", "that", "use", "the", "PPT", "template", "type", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ppt\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0308", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0070", "db_id": "cre_Doc_Template_Mgt_total_0", "query": "select t1.template_id , t1.template_type_code from documents_templates as t1 group by t1.template_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.template_id", ",", "t1.template_type_code", "from", "documents_templates", "as", "t1", "group", "by", "t1.template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.template_id", ",", "t1.template_type_code", "from", "documents_templates", "as", "t1", "group", "by", "t1.template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the id and type code for the template used by the most documents?", "question_toks": ["What", "is", "the", "id", "and", "type", "code", "for", "the", "template", "used", "by", "the", "most", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0311", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0071", "db_id": "cre_Doc_Template_Mgt_total_0", "query": "select t1.template_id , t1.template_type_code from documents_templates as t1 group by t1.template_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.template_id", ",", "t1.template_type_code", "from", "documents_templates", "as", "t1", "group", "by", "t1.template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.template_id", ",", "t1.template_type_code", "from", "documents_templates", "as", "t1", "group", "by", "t1.template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the id and type code of the template that is used for the greatest number of documents.", "question_toks": ["Return", "the", "id", "and", "type", "code", "of", "the", "template", "that", "is", "used", "for", "the", "greatest", "number", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0312", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0072", "db_id": "cre_Doc_Template_Mgt_total_1", "query": "select count ( * ) from paragraphs_documents as t1 where t1.document_name = 'summer show'", "query_toks": ["select", "count", "(", "*", ")", "from", "paragraphs_documents", "as", "t1", "where", "t1.document_name", "=", "'summer", "show", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "paragraphs_documents", "as", "t1", "where", "t1.document_name", "=", "value"], "question": "How many paragraphs for the document with name 'Summer Show'?", "question_toks": ["How", "many", "paragraphs", "for", "the", "document", "with", "name", "'Summer", "Show", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"summer show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0359", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0073", "db_id": "cre_Doc_Template_Mgt_total_1", "query": "select count ( * ) from paragraphs_documents as t1 where t1.document_name = 'summer show'", "query_toks": ["select", "count", "(", "*", ")", "from", "paragraphs_documents", "as", "t1", "where", "t1.document_name", "=", "'summer", "show", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "paragraphs_documents", "as", "t1", "where", "t1.document_name", "=", "value"], "question": "Count the number of paragraphs in the document named 'Summer Show'.", "question_toks": ["Count", "the", "number", "of", "paragraphs", "in", "the", "document", "named", "'Summer", "Show", "'", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"summer show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0360", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0074", "db_id": "cre_Doc_Template_Mgt_total_1", "query": "select t1.document_id , t1.document_name from paragraphs_documents as t1 group by t1.document_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.document_id", ",", "t1.document_name", "from", "paragraphs_documents", "as", "t1", "group", "by", "t1.document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.document_id", ",", "t1.document_name", "from", "paragraphs_documents", "as", "t1", "group", "by", "t1.document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the document id and name with greatest number of paragraphs?", "question_toks": ["What", "is", "the", "document", "id", "and", "name", "with", "greatest", "number", "of", "paragraphs", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0373", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0075", "db_id": "cre_Doc_Template_Mgt_total_1", "query": "select t1.document_id , t1.document_name from paragraphs_documents as t1 group by t1.document_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.document_id", ",", "t1.document_name", "from", "paragraphs_documents", "as", "t1", "group", "by", "t1.document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.document_id", ",", "t1.document_name", "from", "paragraphs_documents", "as", "t1", "group", "by", "t1.document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the id and name of the document with the most paragraphs.", "question_toks": ["Return", "the", "id", "and", "name", "of", "the", "document", "with", "the", "most", "paragraphs", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0374", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0076", "db_id": "course_teach_total_0", "query": "select t1.name from course_arrange_teacher as t1 group by t1.name having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "course_arrange_teacher", "as", "t1", "group", "by", "t1.name", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "course_arrange_teacher", "as", "t1", "group", "by", "t1.name", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show names of teachers that teach at least two courses.", "question_toks": ["Show", "names", "of", "teachers", "that", "teach", "at", "least", "two", "courses", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0407", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0077", "db_id": "course_teach_total_0", "query": "select t1.name from course_arrange_teacher as t1 group by t1.name having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "course_arrange_teacher", "as", "t1", "group", "by", "t1.name", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "course_arrange_teacher", "as", "t1", "group", "by", "t1.name", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the teachers who teach at least two courses?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "who", "teach", "at", "least", "two", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0408", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0078", "db_id": "museum_visit_total_0", "query": "select t1.id , t1.name , t1.age from visitor_visit as t1 group by t1.id having count ( * ) > 1", "query_toks": ["select", "t1.id", ",", "t1.name", ",", "t1.age", "from", "visitor_visit", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", ",", "t1.age", "from", "visitor_visit", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "find the id, name and age for visitors who visited some museums more than once.", "question_toks": ["find", "the", "id", ",", "name", "and", "age", "for", "visitors", "who", "visited", "some", "museums", "more", "than", "once", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0419", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0079", "db_id": "museum_visit_total_1", "query": "select t1.museum_id , t1.name from museum_visit as t1 group by t1.museum_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.museum_id", ",", "t1.name", "from", "museum_visit", "as", "t1", "group", "by", "t1.museum_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.museum_id", ",", "t1.name", "from", "museum_visit", "as", "t1", "group", "by", "t1.museum_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the id and name of the museum visited most times?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "museum", "visited", "most", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0421", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0080", "db_id": "museum_visit_total_0", "query": "select sum ( t1.total_spent ) from visitor_visit as t1 where t1.level_of_membership = 1", "query_toks": ["select", "sum", "(", "t1.total_spent", ")", "from", "visitor_visit", "as", "t1", "where", "t1.level_of_membership", "=", "1"], "query_toks_no_value": ["select", "sum", "(", "t1.total_spent", ")", "from", "visitor_visit", "as", "t1", "where", "t1.level_of_membership", "=", "value"], "question": "What is the total ticket expense of the visitors whose membership level is 1?", "question_toks": ["What", "is", "the", "total", "ticket", "expense", "of", "the", "visitors", "whose", "membership", "level", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0425", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0081", "db_id": "battle_death_total_0", "query": "select t1.killed , t1.injured from death_ship as t1 where t1.tonnage = 't'", "query_toks": ["select", "t1.killed", ",", "t1.injured", "from", "death_ship", "as", "t1", "where", "t1.tonnage", "=", "'t", "'"], "query_toks_no_value": ["select", "t1.killed", ",", "t1.injured", "from", "death_ship", "as", "t1", "where", "t1.tonnage", "=", "value"], "question": "What are the death and injury situations caused by the ship with tonnage 't'?", "question_toks": ["What", "are", "the", "death", "and", "injury", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'t", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0496", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0082", "db_id": "battle_death_total_0", "query": "select t1.caused_by_ship_id , t1.name from death_ship as t1 group by t1.caused_by_ship_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.caused_by_ship_id", ",", "t1.name", "from", "death_ship", "as", "t1", "group", "by", "t1.caused_by_ship_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.caused_by_ship_id", ",", "t1.name", "from", "death_ship", "as", "t1", "group", "by", "t1.caused_by_ship_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the ship id and name that caused most total injuries?", "question_toks": ["What", "is", "the", "ship", "id", "and", "name", "that", "caused", "most", "total", "injuries", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0500", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0083", "db_id": "student_transcripts_tracking_total_7", "query": "select t1.department_name , t1.department_id from degree_programs_departments as t1 group by t1.department_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.department_name", ",", "t1.department_id", "from", "degree_programs_departments", "as", "t1", "group", "by", "t1.department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.department_name", ",", "t1.department_id", "from", "degree_programs_departments", "as", "t1", "group", "by", "t1.department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which department offers the most number of degrees? List department name and id.", "question_toks": ["Which", "department", "offers", "the", "most", "number", "of", "degrees", "?", "List", "department", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0515", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0084", "db_id": "student_transcripts_tracking_total_7", "query": "select t1.department_name , t1.department_id from degree_programs_departments as t1 group by t1.department_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.department_name", ",", "t1.department_id", "from", "degree_programs_departments", "as", "t1", "group", "by", "t1.department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.department_name", ",", "t1.department_id", "from", "degree_programs_departments", "as", "t1", "group", "by", "t1.department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name and id of the department with the most number of degrees ?", "question_toks": ["What", "is", "the", "name", "and", "id", "of", "the", "department", "with", "the", "most", "number", "of", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0516", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0085", "db_id": "student_transcripts_tracking_total_2", "query": "select count ( * ) from departments_degree_programs as t1 where t1.department_name = 'engineer'", "query_toks": ["select", "count", "(", "*", ")", "from", "departments_degree_programs", "as", "t1", "where", "t1.department_name", "=", "'engineer", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "departments_degree_programs", "as", "t1", "where", "t1.department_name", "=", "value"], "question": "How many degrees does the engineering department offer?", "question_toks": ["How", "many", "degrees", "does", "the", "engineering", "department", "offer", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0521", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0086", "db_id": "student_transcripts_tracking_total_2", "query": "select count ( * ) from departments_degree_programs as t1 where t1.department_name = 'engineer'", "query_toks": ["select", "count", "(", "*", ")", "from", "departments_degree_programs", "as", "t1", "where", "t1.department_name", "=", "'engineer", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "departments_degree_programs", "as", "t1", "where", "t1.department_name", "=", "value"], "question": "How many degrees does the engineering department have?", "question_toks": ["How", "many", "degrees", "does", "the", "engineering", "department", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0522", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0087", "db_id": "student_transcripts_tracking_total_6", "query": "select t1.semester_name , t1.semester_id from semesters_student_enrolment as t1 group by t1.semester_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.semester_name", ",", "t1.semester_id", "from", "semesters_student_enrolment", "as", "t1", "group", "by", "t1.semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.semester_name", ",", "t1.semester_id", "from", "semesters_student_enrolment", "as", "t1", "group", "by", "t1.semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the semester which most student registered in? Show both the name and the id.", "question_toks": ["What", "is", "the", "semester", "which", "most", "student", "registered", "in", "?", "Show", "both", "the", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0529", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0088", "db_id": "student_transcripts_tracking_total_6", "query": "select t1.semester_name , t1.semester_id from semesters_student_enrolment as t1 group by t1.semester_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.semester_name", ",", "t1.semester_id", "from", "semesters_student_enrolment", "as", "t1", "group", "by", "t1.semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.semester_name", ",", "t1.semester_id", "from", "semesters_student_enrolment", "as", "t1", "group", "by", "t1.semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "For each semester, what is the name and id of the one with the most students registered?", "question_toks": ["For", "each", "semester", ",", "what", "is", "the", "name", "and", "id", "of", "the", "one", "with", "the", "most", "students", "registered", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0530", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0089", "db_id": "student_transcripts_tracking_total_5", "query": "select t1.first_name , t1.middle_name , t1.last_name , t1.student_id from students_student_enrolment as t1 group by t1.student_id having count ( * ) = 2", "query_toks": ["select", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", "=", "2"], "query_toks_no_value": ["select", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", "=", "value"], "question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", "question_toks": ["Who", "are", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?", "List", "the", "first", "name", ",", "middle", "name", "and", "last", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0533", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0090", "db_id": "student_transcripts_tracking_total_5", "query": "select t1.first_name , t1.middle_name , t1.last_name , t1.student_id from students_student_enrolment as t1 group by t1.student_id having count ( * ) = 2", "query_toks": ["select", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", "=", "2"], "query_toks_no_value": ["select", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?", "question_toks": ["What", "are", "the", "first", ",", "middle", ",", "and", "last", "names", ",", "along", "with", "the", "ids", ",", "of", "all", "students", "who", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0534", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0091", "db_id": "student_transcripts_tracking_total_1", "query": "select t1.degree_summary_name from degree_programs_student_enrolment as t1 group by t1.degree_summary_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the kind of program which most number of students are enrolled in?", "question_toks": ["Find", "the", "kind", "of", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0537", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0092", "db_id": "student_transcripts_tracking_total_1", "query": "select t1.degree_summary_name from degree_programs_student_enrolment as t1 group by t1.degree_summary_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the degree summary name that has the most number of students enrolled?", "question_toks": ["What", "is", "the", "degree", "summary", "name", "that", "has", "the", "most", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0538", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0093", "db_id": "student_transcripts_tracking_total_1", "query": "select t1.degree_program_id , t1.degree_summary_name from degree_programs_student_enrolment as t1 group by t1.degree_program_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.degree_program_id", ",", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.degree_program_id", ",", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the program which most number of students are enrolled in. List both the id and the summary.", "question_toks": ["Find", "the", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", ".", "List", "both", "the", "id", "and", "the", "summary", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0539", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0094", "db_id": "student_transcripts_tracking_total_1", "query": "select t1.degree_program_id , t1.degree_summary_name from degree_programs_student_enrolment as t1 group by t1.degree_program_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.degree_program_id", ",", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.degree_program_id", ",", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the program id and the summary of the degree that has the most students enrolled?", "question_toks": ["What", "is", "the", "program", "id", "and", "the", "summary", "of", "the", "degree", "that", "has", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0540", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0095", "db_id": "student_transcripts_tracking_total_5", "query": "select t1.student_id , t1.first_name , t1.middle_name , t1.last_name , count ( * ) , t1.student_id from students_student_enrolment as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.student_id", ",", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "count", "(", "*", ")", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.student_id", ",", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "count", "(", "*", ")", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [3, [0, [0, 0, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0541", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0096", "db_id": "student_transcripts_tracking_total_5", "query": "select t1.student_id , t1.first_name , t1.middle_name , t1.last_name , count ( * ) , t1.student_id from students_student_enrolment as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.student_id", ",", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "count", "(", "*", ")", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.student_id", ",", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "count", "(", "*", ")", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "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?", "question_toks": ["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", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [3, [0, [0, 0, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0542", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0097", "db_id": "student_transcripts_tracking_total_3", "query": "select t1.course_name from courses_student_enrolment_courses as t1 group by t1.course_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.course_name", "from", "courses_student_enrolment_courses", "as", "t1", "group", "by", "t1.course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.course_name", "from", "courses_student_enrolment_courses", "as", "t1", "group", "by", "t1.course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What's the name of the course with most number of enrollments?", "question_toks": ["What", "'s", "the", "name", "of", "the", "course", "with", "most", "number", "of", "enrollments", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0547", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0098", "db_id": "student_transcripts_tracking_total_3", "query": "select t1.course_name from courses_student_enrolment_courses as t1 group by t1.course_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.course_name", "from", "courses_student_enrolment_courses", "as", "t1", "group", "by", "t1.course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.course_name", "from", "courses_student_enrolment_courses", "as", "t1", "group", "by", "t1.course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the course with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "course", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0548", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0099", "db_id": "student_transcripts_tracking_total_8", "query": "select t1.transcript_date , t1.transcript_id from transcript_contents_transcripts as t1 group by t1.transcript_id having count ( * ) >= 2", "query_toks": ["select", "t1.transcript_date", ",", "t1.transcript_id", "from", "transcript_contents_transcripts", "as", "t1", "group", "by", "t1.transcript_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.transcript_date", ",", "t1.transcript_id", "from", "transcript_contents_transcripts", "as", "t1", "group", "by", "t1.transcript_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the date and id of the transcript with at least 2 course results.", "question_toks": ["Show", "the", "date", "and", "id", "of", "the", "transcript", "with", "at", "least", "2", "course", "results", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 52, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0551", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0100", "db_id": "student_transcripts_tracking_total_8", "query": "select t1.transcript_date , t1.transcript_id from transcript_contents_transcripts as t1 group by t1.transcript_id having count ( * ) >= 2", "query_toks": ["select", "t1.transcript_date", ",", "t1.transcript_id", "from", "transcript_contents_transcripts", "as", "t1", "group", "by", "t1.transcript_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.transcript_date", ",", "t1.transcript_id", "from", "transcript_contents_transcripts", "as", "t1", "group", "by", "t1.transcript_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What is the date and id of the transcript with at least 2 courses listed?", "question_toks": ["What", "is", "the", "date", "and", "id", "of", "the", "transcript", "with", "at", "least", "2", "courses", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 52, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0552", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0101", "db_id": "student_transcripts_tracking_total_0", "query": "select t1.address_id , t1.line_1 , t1.line_2 from addresses_students as t1 group by t1.address_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.address_id", ",", "t1.line_1", ",", "t1.line_2", "from", "addresses_students", "as", "t1", "group", "by", "t1.address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.address_id", ",", "t1.line_1", ",", "t1.line_2", "from", "addresses_students", "as", "t1", "group", "by", "t1.address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which address holds the most number of students currently? List the address id and all lines.", "question_toks": ["Which", "address", "holds", "the", "most", "number", "of", "students", "currently", "?", "List", "the", "address", "id", "and", "all", "lines", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0561", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0102", "db_id": "student_transcripts_tracking_total_0", "query": "select t1.address_id , t1.line_1 , t1.line_2 from addresses_students as t1 group by t1.address_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.address_id", ",", "t1.line_1", ",", "t1.line_2", "from", "addresses_students", "as", "t1", "group", "by", "t1.address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.address_id", ",", "t1.line_1", ",", "t1.line_2", "from", "addresses_students", "as", "t1", "group", "by", "t1.address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the id, line 1, and line 2 of the address with the most students?", "question_toks": ["What", "is", "the", "id", ",", "line", "1", ",", "and", "line", "2", "of", "the", "address", "with", "the", "most", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0562", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0103", "db_id": "student_transcripts_tracking_total_4", "query": "select t1.first_name from students_addresses as t1 where t1.country = 'haiti' or t1.cell_mobile_number = '09700166582'", "query_toks": ["select", "t1.first_name", "from", "students_addresses", "as", "t1", "where", "t1.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\""], "query_toks_no_value": ["select", "t1.first_name", "from", "students_addresses", "as", "t1", "where", "t1.country", "=", "value", "or", "t1.cell_mobile_number", "=", "value"], "question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .", "question_toks": ["Find", "the", "first", "name", "of", "the", "students", "who", "permanently", "live", "in", "the", "country", "Haiti", "or", "have", "the", "cell", "phone", "number", "09700166582", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"haiti\"", null], "or", [false, 2, [0, [0, 36, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0583", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0104", "db_id": "student_transcripts_tracking_total_4", "query": "select t1.first_name from students_addresses as t1 where t1.country = 'haiti' or t1.cell_mobile_number = '09700166582'", "query_toks": ["select", "t1.first_name", "from", "students_addresses", "as", "t1", "where", "t1.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\""], "query_toks_no_value": ["select", "t1.first_name", "from", "students_addresses", "as", "t1", "where", "t1.country", "=", "value", "or", "t1.cell_mobile_number", "=", "value"], "question": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "students", "who", "live", "in", "Haiti", "permanently", "or", "have", "the", "cell", "phone", "number", "09700166582", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"haiti\"", null], "or", [false, 2, [0, [0, 36, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0584", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0105", "db_id": "poker_player_total_0", "query": "select t1.birth_date from people_poker_player as t1 order by t1.earnings asc limit 1", "query_toks": ["select", "t1.birth_date", "from", "people_poker_player", "as", "t1", "order", "by", "t1.earnings", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.birth_date", "from", "people_poker_player", "as", "t1", "order", "by", "t1.earnings", "asc", "limit", "value"], "question": "What is the birth date of the poker player with the lowest earnings?", "question_toks": ["What", "is", "the", "birth", "date", "of", "the", "poker", "player", "with", "the", "lowest", "earnings", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0665", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0106", "db_id": "poker_player_total_0", "query": "select t1.birth_date from people_poker_player as t1 order by t1.earnings asc limit 1", "query_toks": ["select", "t1.birth_date", "from", "people_poker_player", "as", "t1", "order", "by", "t1.earnings", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.birth_date", "from", "people_poker_player", "as", "t1", "order", "by", "t1.earnings", "asc", "limit", "value"], "question": "Return the birth date of the poker player with the lowest earnings.", "question_toks": ["Return", "the", "birth", "date", "of", "the", "poker", "player", "with", "the", "lowest", "earnings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0666", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0107", "db_id": "poker_player_total_0", "query": "select t1.money_rank from people_poker_player as t1 order by t1.height desc limit 1", "query_toks": ["select", "t1.money_rank", "from", "people_poker_player", "as", "t1", "order", "by", "t1.height", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.money_rank", "from", "people_poker_player", "as", "t1", "order", "by", "t1.height", "desc", "limit", "value"], "question": "What is the money rank of the tallest poker player?", "question_toks": ["What", "is", "the", "money", "rank", "of", "the", "tallest", "poker", "player", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0667", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0108", "db_id": "poker_player_total_0", "query": "select t1.money_rank from people_poker_player as t1 order by t1.height desc limit 1", "query_toks": ["select", "t1.money_rank", "from", "people_poker_player", "as", "t1", "order", "by", "t1.height", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.money_rank", "from", "people_poker_player", "as", "t1", "order", "by", "t1.height", "desc", "limit", "value"], "question": "Return the money rank of the poker player with the greatest height.", "question_toks": ["Return", "the", "money", "rank", "of", "the", "poker", "player", "with", "the", "greatest", "height", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0668", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0109", "db_id": "poker_player_total_0", "query": "select avg ( t1.earnings ) from people_poker_player as t1 where t1.height > 200", "query_toks": ["select", "avg", "(", "t1.earnings", ")", "from", "people_poker_player", "as", "t1", "where", "t1.height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t1.earnings", ")", "from", "people_poker_player", "as", "t1", "where", "t1.height", ">", "value"], "question": "What is the average earnings of poker players with height higher than 200?", "question_toks": ["What", "is", "the", "average", "earnings", "of", "poker", "players", "with", "height", "higher", "than", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0669", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0110", "db_id": "poker_player_total_0", "query": "select avg ( t1.earnings ) from people_poker_player as t1 where t1.height > 200", "query_toks": ["select", "avg", "(", "t1.earnings", ")", "from", "people_poker_player", "as", "t1", "where", "t1.height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t1.earnings", ")", "from", "people_poker_player", "as", "t1", "where", "t1.height", ">", "value"], "question": "Give average earnings of poker players who are taller than 200.", "question_toks": ["Give", "average", "earnings", "of", "poker", "players", "who", "are", "taller", "than", "200", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0670", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0111", "db_id": "voter_1_total_1", "query": "select t1.contestant_number , t1.contestant_name from contestants_votes as t1 group by t1.contestant_number having count ( * ) >= 2", "query_toks": ["select", "t1.contestant_number", ",", "t1.contestant_name", "from", "contestants_votes", "as", "t1", "group", "by", "t1.contestant_number", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.contestant_number", ",", "t1.contestant_name", "from", "contestants_votes", "as", "t1", "group", "by", "t1.contestant_number", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the contestant numbers and names of the contestants who had at least two votes?", "question_toks": ["What", "are", "the", "contestant", "numbers", "and", "names", "of", "the", "contestants", "who", "had", "at", "least", "two", "votes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0694", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0112", "db_id": "voter_1_total_0", "query": "select t1.area_code from area_code_state_votes as t1 group by t1.area_code order by count ( * ) desc limit 1", "query_toks": ["select", "t1.area_code", "from", "area_code_state_votes", "as", "t1", "group", "by", "t1.area_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.area_code", "from", "area_code_state_votes", "as", "t1", "group", "by", "t1.area_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the area code in which the most voters voted?", "question_toks": ["What", "is", "the", "area", "code", "in", "which", "the", "most", "voters", "voted", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0698", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0113", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the high schooler who has the greatest number of friends?", "question_toks": ["What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0886", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0114", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the name of the high school student with the most friends.", "question_toks": ["Return", "the", "name", "of", "the", "high", "school", "student", "with", "the", "most", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0887", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0115", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 group by t1.student_id having count ( * ) >= 3", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "3"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of high schoolers who have at least 3 friends.", "question_toks": ["Show", "the", "names", "of", "high", "schoolers", "who", "have", "at", "least", "3", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0888", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0116", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 group by t1.student_id having count ( * ) >= 3", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "3"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of high schoolers who have 3 or more friends?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "3", "or", "more", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0889", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0117", "db_id": "network_1_total_1", "query": "select count ( * ) from friend_highschooler as t1 where t1.name = 'kyle'", "query_toks": ["select", "count", "(", "*", ")", "from", "friend_highschooler", "as", "t1", "where", "t1.name", "=", "``", "kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "friend_highschooler", "as", "t1", "where", "t1.name", "=", "value"], "question": "How many friends does the high school student Kyle have?", "question_toks": ["How", "many", "friends", "does", "the", "high", "school", "student", "Kyle", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0892", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0118", "db_id": "network_1_total_1", "query": "select count ( * ) from friend_highschooler as t1 where t1.name = 'kyle'", "query_toks": ["select", "count", "(", "*", ")", "from", "friend_highschooler", "as", "t1", "where", "t1.name", "=", "``", "kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "friend_highschooler", "as", "t1", "where", "t1.name", "=", "value"], "question": "Count the number of friends Kyle has.", "question_toks": ["Count", "the", "number", "of", "friends", "Kyle", "has", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0893", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0119", "db_id": "network_1_total_0", "query": "select t1.name from likes_highschooler as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the high schooler who has the greatest number of likes?", "question_toks": ["What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "likes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0906", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0120", "db_id": "network_1_total_0", "query": "select t1.name from likes_highschooler as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Give the name of the student with the most likes.", "question_toks": ["Give", "the", "name", "of", "the", "student", "with", "the", "most", "likes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0907", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0121", "db_id": "network_1_total_0", "query": "select t1.name from likes_highschooler as t1 group by t1.student_id having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of students who have at least 2 likes.", "question_toks": ["Show", "the", "names", "of", "students", "who", "have", "at", "least", "2", "likes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0908", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0122", "db_id": "network_1_total_0", "query": "select t1.name from likes_highschooler as t1 group by t1.student_id having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of students who have 2 or more likes?", "question_toks": ["What", "are", "the", "names", "of", "students", "who", "have", "2", "or", "more", "likes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0909", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0123", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 where t1.grade > 5 group by t1.student_id having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "where", "t1.grade", ">", "5", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "where", "t1.grade", ">", "value", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", "question_toks": ["Show", "the", "names", "of", "students", "who", "have", "a", "grade", "higher", "than", "5", "and", "have", "at", "least", "2", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 5.0, null]], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0910", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0124", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 where t1.grade > 5 group by t1.student_id having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "where", "t1.grade", ">", "5", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "where", "t1.grade", ">", "value", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "a", "grade", "of", "over", "5", "and", "have", "2", "or", "more", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 5.0, null]], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0911", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0125", "db_id": "network_1_total_0", "query": "select count ( * ) from likes_highschooler as t1 where t1.name = 'kyle'", "query_toks": ["select", "count", "(", "*", ")", "from", "likes_highschooler", "as", "t1", "where", "t1.name", "=", "``", "kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "likes_highschooler", "as", "t1", "where", "t1.name", "=", "value"], "question": "How many likes does Kyle have?", "question_toks": ["How", "many", "likes", "does", "Kyle", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0912", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0126", "db_id": "network_1_total_0", "query": "select count ( * ) from likes_highschooler as t1 where t1.name = 'kyle'", "query_toks": ["select", "count", "(", "*", ")", "from", "likes_highschooler", "as", "t1", "where", "t1.name", "=", "``", "kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "likes_highschooler", "as", "t1", "where", "t1.name", "=", "value"], "question": "Return the number of likes that the high schooler named Kyle has.", "question_toks": ["Return", "the", "number", "of", "likes", "that", "the", "high", "schooler", "named", "Kyle", "has", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0913", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0127", "db_id": "dog_kennels_total_4", "query": "select t1.owner_id , t1.first_name , t1.last_name from dogs_owners as t1 group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.first_name", ",", "t1.last_name", "from", "dogs_owners", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.first_name", ",", "t1.last_name", "from", "dogs_owners", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which owner owns the most dogs? List the owner id, first name and last name.", "question_toks": ["Which", "owner", "owns", "the", "most", "dogs", "?", "List", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0930", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0128", "db_id": "dog_kennels_total_4", "query": "select t1.owner_id , t1.first_name , t1.last_name from dogs_owners as t1 group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.first_name", ",", "t1.last_name", "from", "dogs_owners", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.first_name", ",", "t1.last_name", "from", "dogs_owners", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the owner id, first name and last name of the owner who has the most dogs.", "question_toks": ["Return", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "of", "the", "owner", "who", "has", "the", "most", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0931", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0129", "db_id": "dog_kennels_total_1", "query": "select t1.professional_id , t1.role_code , t1.first_name from professionals_treatments as t1 group by t1.professional_id having count ( * ) >= 2", "query_toks": ["select", "t1.professional_id", ",", "t1.role_code", ",", "t1.first_name", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.professional_id", ",", "t1.role_code", ",", "t1.first_name", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "question_toks": ["Which", "professionals", "have", "done", "at", "least", "two", "treatments", "?", "List", "the", "professional", "'s", "id", ",", "role", ",", "and", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0932", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0130", "db_id": "dog_kennels_total_1", "query": "select t1.professional_id , t1.role_code , t1.first_name from professionals_treatments as t1 group by t1.professional_id having count ( * ) >= 2", "query_toks": ["select", "t1.professional_id", ",", "t1.role_code", ",", "t1.first_name", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.professional_id", ",", "t1.role_code", ",", "t1.first_name", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the id, role, and first name of the professionals who have performed two or more treatments?", "question_toks": ["What", "are", "the", "id", ",", "role", ",", "and", "first", "name", "of", "the", "professionals", "who", "have", "performed", "two", "or", "more", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0933", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0131", "db_id": "dog_kennels_total_5", "query": "select t1.breed_name from breeds_dogs as t1 group by t1.breed_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.breed_name", "from", "breeds_dogs", "as", "t1", "group", "by", "t1.breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.breed_name", "from", "breeds_dogs", "as", "t1", "group", "by", "t1.breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the breed with the most dogs?", "question_toks": ["What", "is", "the", "name", "of", "the", "breed", "with", "the", "most", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0934", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0132", "db_id": "dog_kennels_total_5", "query": "select t1.breed_name from breeds_dogs as t1 group by t1.breed_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.breed_name", "from", "breeds_dogs", "as", "t1", "group", "by", "t1.breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.breed_name", "from", "breeds_dogs", "as", "t1", "group", "by", "t1.breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which breed do the most dogs have? Give me the breed name.", "question_toks": ["Which", "breed", "do", "the", "most", "dogs", "have", "?", "Give", "me", "the", "breed", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0935", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0133", "db_id": "dog_kennels_total_3", "query": "select t1.treatment_type_description from treatment_types_treatments as t1 group by t1.treatment_type_code order by sum ( cost_of_treatment ) asc limit 1", "query_toks": ["select", "t1.treatment_type_description", "from", "treatment_types_treatments", "as", "t1", "group", "by", "t1.treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.treatment_type_description", "from", "treatment_types_treatments", "as", "t1", "group", "by", "t1.treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "value"], "question": "What is the description of the treatment type that costs the least money in total?", "question_toks": ["What", "is", "the", "description", "of", "the", "treatment", "type", "that", "costs", "the", "least", "money", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["asc", [[0, [4, 47, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0938", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0134", "db_id": "dog_kennels_total_3", "query": "select t1.treatment_type_description from treatment_types_treatments as t1 group by t1.treatment_type_code order by sum ( cost_of_treatment ) asc limit 1", "query_toks": ["select", "t1.treatment_type_description", "from", "treatment_types_treatments", "as", "t1", "group", "by", "t1.treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.treatment_type_description", "from", "treatment_types_treatments", "as", "t1", "group", "by", "t1.treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "value"], "question": "Give me the description of the treatment type whose total cost is the lowest.", "question_toks": ["Give", "me", "the", "description", "of", "the", "treatment", "type", "whose", "total", "cost", "is", "the", "lowest", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["asc", [[0, [4, 47, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0939", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0135", "db_id": "dog_kennels_total_1", "query": "select t1.professional_id , t1.cell_number from professionals_treatments as t1 group by t1.professional_id having count ( * ) >= 2", "query_toks": ["select", "t1.professional_id", ",", "t1.cell_number", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.professional_id", ",", "t1.cell_number", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", "question_toks": ["Which", "professionals", "have", "done", "at", "least", "two", "types", "of", "treatments", "?", "List", "the", "professional", "id", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0942", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0136", "db_id": "dog_kennels_total_1", "query": "select t1.professional_id , t1.cell_number from professionals_treatments as t1 group by t1.professional_id having count ( * ) >= 2", "query_toks": ["select", "t1.professional_id", ",", "t1.cell_number", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.professional_id", ",", "t1.cell_number", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Find the id and cell phone of the professionals who operate two or more types of treatments.", "question_toks": ["Find", "the", "id", "and", "cell", "phone", "of", "the", "professionals", "who", "operate", "two", "or", "more", "types", "of", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0943", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0137", "db_id": "dog_kennels_total_0", "query": "select t1.cost_of_treatment , t1.treatment_type_description from treatments_treatment_types as t1", "query_toks": ["select", "t1.cost_of_treatment", ",", "t1.treatment_type_description", "from", "treatments_treatment_types", "as", "t1"], "query_toks_no_value": ["select", "t1.cost_of_treatment", ",", "t1.treatment_type_description", "from", "treatments_treatment_types", "as", "t1"], "question": "List the cost of each treatment and the corresponding treatment type description.", "question_toks": ["List", "the", "cost", "of", "each", "treatment", "and", "the", "corresponding", "treatment", "type", "description", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0948", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0138", "db_id": "dog_kennels_total_0", "query": "select t1.cost_of_treatment , t1.treatment_type_description from treatments_treatment_types as t1", "query_toks": ["select", "t1.cost_of_treatment", ",", "t1.treatment_type_description", "from", "treatments_treatment_types", "as", "t1"], "query_toks_no_value": ["select", "t1.cost_of_treatment", ",", "t1.treatment_type_description", "from", "treatments_treatment_types", "as", "t1"], "question": "What are the cost and treatment type description of each treatment?", "question_toks": ["What", "are", "the", "cost", "and", "treatment", "type", "description", "of", "each", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0949", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0139", "db_id": "real_estate_properties_total_0", "query": "select t1.property_type_description from properties_ref_property_types as t1 group by t1.property_type_code", "query_toks": ["select", "t1.property_type_description", "from", "properties_ref_property_types", "as", "t1", "group", "by", "t1.property_type_code"], "query_toks_no_value": ["select", "t1.property_type_description", "from", "properties_ref_property_types", "as", "t1", "group", "by", "t1.property_type_code"], "question": "Show the property type descriptions of properties belonging to that code.", "question_toks": ["Show", "the", "property", "type", "descriptions", "of", "properties", "belonging", "to", "that", "code", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "_DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_1032", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "hidden_avg_0000", "db_id": "world_1", "query": "select avg(gnp) , sum(population) from country where governmentform = \"us territory\"", "query_toks": ["select", "avg", "(", "gnp", ")", ",", "sum", "(", "population", ")", "from", "country", "where", "governmentform", "=", "``", "us", "territory", "''"], "query_toks_no_value": ["select", "avg", "(", "gnp", ")", ",", "sum", "(", "population", ")", "from", "country", "where", "governmentform", "=", "value", "territory"], "question": "Give the average GNP and total population of nations which are considered US territory.", "question_toks": ["Give", "the", "average", "GNP", "and", "total", "population", "of", "nations", "which", "are", "considered", "US", "territory", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]], [4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"us territory\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0731", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0001", "db_id": "world_1", "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\")", "query_toks": ["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", "\")"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "\")"], "question": "Give the average life expectancy of countries in which English is not the official language.", "question_toks": ["Give", "the", "average", "life", "expectancy", "of", "countries", "in", "which", "English", "is", "not", "the", "official", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0765", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0002", "db_id": "bike_1", "query": "select id from station where city = \"san francisco\" intersect select station_id from status group by station_id having avg(bikes_available) > 10", "query_toks": ["select", "id", "from", "station", "where", "city", "=", "``", "san", "francisco", "''", "intersect", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "10"], "query_toks_no_value": ["select", "id", "from", "station", "where", "city", "=", "value", "francisco", "intersect", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value"], "question": "What are the ids of the stations in San Francisco that normally have more than 10 bikes in average?", "question_toks": ["What", "are", "the", "ids", "of", "the", "stations", "in", "San", "Francisco", "that", "normally", "have", "more", "than", "10", "bikes", "in", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0142", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0003", "db_id": "bike_1", "query": "select avg(long) from station where id not in (select station_id from status group by station_id having max(bikes_available) > 10)", "query_toks": ["select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "10", ")"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "value", ")"], "question": "What is the average longitude for all stations that have never had more than 10 bikes available?", "question_toks": ["What", "is", "the", "average", "longitude", "for", "all", "stations", "that", "have", "never", "had", "more", "than", "10", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [1, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0152", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0004", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10 except select name from station where city = \"san jose\"", "query_toks": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "10", "except", "select", "name", "from", "station", "where", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "10", "except", "select", "name", "from", "station", "where", "city", "=", "value", "jose"], "question": "What are the names of all stations that have more than 10 bikes available in average and are not located in San Jose?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "that", "have", "more", "than", "10", "bikes", "available", "in", "average", "and", "are", "not", "located", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0172", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0005", "db_id": "allergy_1", "query": "select min(age) , avg(age) , max(age) from student", "query_toks": ["select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student"], "question": "What is the minimum, average, and maximum age across all students?", "question_toks": ["What", "is", "the", "minimum", ",", "average", ",", "and", "maximum", "age", "across", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]], [1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0484", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0006", "db_id": "hospital_1", "query": "select avg(t3.cost) from physician as t1 join trained_in as t2 on t1.employeeid = t2.physician join procedures as t3 on t3.code = t2.treatment where t1.name = \"john wen\"", "query_toks": ["select", "avg", "(", "t3", ".", "cost", ")", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "``", "john", "wen", "''"], "query_toks_no_value": ["select", "avg", "(", "t3", ".", "cost", ")", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value", "wen"], "question": "Compute the average price of procedures physician John Wen was trained in.", "question_toks": ["Compute", "the", "average", "price", "of", "procedures", "physician", "John", "Wen", "was", "trained", "in", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 15, false], null]]}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"john wen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3977", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0007", "db_id": "flight_company", "query": "select avg(velocity) from flight where pilot = \"thompson\"", "query_toks": ["select", "avg", "(", "velocity", ")", "from", "flight", "where", "pilot", "=", "``", "thompson", "''"], "query_toks_no_value": ["select", "avg", "(", "velocity", ")", "from", "flight", "where", "pilot", "=", "value"], "question": "What is the average velocity of the pilot named 'Thompson'?", "question_toks": ["What", "is", "the", "average", "velocity", "of", "the", "pilot", "named", "'", "Thompson", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"thompson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_avg_0007", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "where_mono_0000", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer ", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer"], "question": "What is the average, minimum, and maximum age of all singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0004", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0001", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer"], "question": "What is the average, minimum, and maximum age for all singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "all", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0005", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0002", "db_id": "concert_singer", "query": "select distinct country from singer", "query_toks": ["select", "distinct", "country", "from", "singer"], "query_toks_no_value": ["select", "distinct", "country", "from", "singer"], "question": "What are all distinct countries where singers are from?", "question_toks": ["What", "are", "all", "distinct", "countries", "where", "singers", "are", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0008", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0003", "db_id": "concert_singer", "query": "select distinct country from singer", "query_toks": ["select", "distinct", "country", "from", "singer"], "query_toks_no_value": ["select", "distinct", "country", "from", "singer"], "question": "What are the different countries with singers?", "question_toks": ["What", "are", "the", "different", "countries", "with", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0009", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0004", "db_id": "concert_singer", "query": "select song_name from singer", "query_toks": ["select", "song_name", "from", "singer"], "query_toks_no_value": ["select", "song_name", "from", "singer"], "question": "List all song names by singers.", "question_toks": ["List", "all", "song", "names", "by", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0012", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0005", "db_id": "concert_singer", "query": "select song_name from singer", "query_toks": ["select", "song_name", "from", "singer"], "query_toks_no_value": ["select", "song_name", "from", "singer"], "question": "What are all the song names by singers?", "question_toks": ["What", "are", "all", "the", "song", "names", "by", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0013", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0006", "db_id": "concert_singer", "query": "select location , name from stadium", "query_toks": ["select", "location", ",", "name", "from", "stadium"], "query_toks_no_value": ["select", "location", ",", "name", "from", "stadium"], "question": "Show location and name for all stadiums.", "question_toks": ["Show", "location", "and", "name", "for", "all", "stadiums", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0014", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0007", "db_id": "concert_singer", "query": "select location , name from stadium", "query_toks": ["select", "location", ",", "name", "from", "stadium"], "query_toks_no_value": ["select", "location", ",", "name", "from", "stadium"], "question": "What are the locations and names of all stations?", "question_toks": ["What", "are", "the", "locations", "and", "names", "of", "all", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0015", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0008", "db_id": "concert_singer", "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id group by t2.stadium_id order by count(*) desc limit 1", "query_toks": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Show the stadium name and capacity with most number of concerts.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0009", "db_id": "concert_singer", "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id group by t2.stadium_id order by count(*) desc limit 1", "query_toks": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "What is the name and capacity of the stadium with the most concerts?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "of", "the", "stadium", "with", "the", "most", "concerts", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0025", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0010", "db_id": "concert_singer", "query": "select name , country from singer", "query_toks": ["select", "name", ",", "country", "from", "singer"], "query_toks_no_value": ["select", "name", ",", "country", "from", "singer"], "question": "what is the name and nation of the singers?", "question_toks": ["what", "is", "the", "name", "and", "nation", "of", "the", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0039", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0011", "db_id": "pets_1", "query": "select count(*) from pets", "query_toks": ["select", "count", "(*)", "from", "pets"], "query_toks_no_value": ["select", "count", "(*)", "from", "pets"], "question": "Find the number of pets.", "question_toks": ["Find", "the", "number", "of", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0045", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0012", "db_id": "pets_1", "query": "select count(*) from pets", "query_toks": ["select", "count", "(*)", "from", "pets"], "query_toks_no_value": ["select", "count", "(*)", "from", "pets"], "question": "How many pets are?", "question_toks": ["How", "many", "pets", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0046", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0013", "db_id": "pets_1", "query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid", "query_toks": ["select", "count", "(*)", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid"], "query_toks_no_value": ["select", "count", "(*)", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid"], "question": "Find number of pets owned by students.", "question_toks": ["Find", "number", "of", "pets", "owned", "by", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0051", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0014", "db_id": "pets_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "Find the major and age of students who do not have a pet.", "question_toks": ["Find", "the", "major", "and", "age", "of", "students", "who", "do", "not", "have", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0061", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0015", "db_id": "pets_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "What major is every student who does not own a pet, and also how old are they?", "question_toks": ["What", "major", "is", "every", "student", "who", "does", "not", "own", "a", "pet", ",", "and", "also", "how", "old", "are", "they", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0062", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0016", "db_id": "pets_1", "query": "select petid , weight from pets", "query_toks": ["select", "petid", ",", "weight", "from", "pets"], "query_toks_no_value": ["select", "petid", ",", "weight", "from", "pets"], "question": "Find the id and weight of all pets.", "question_toks": ["Find", "the", "id", "and", "weight", "of", "all", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0069", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0017", "db_id": "car_1", "query": "select t2.make , t1.year from cars_data as t1 join car_names as t2 on t1.id = t2.makeid", "query_toks": ["select", "t2", ".", "make", ",", "t1", ".", "year", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid"], "query_toks_no_value": ["select", "t2", ".", "make", ",", "t1", ".", "year", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid"], "question": "Find the make and production time of the cars?", "question_toks": ["Find", "the", "make", "and", "production", "time", "of", "the", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0101", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0018", "db_id": "car_1", "query": "select count(*) from car_makers", "query_toks": ["select", "count", "(*)", "from", "car_makers"], "query_toks_no_value": ["select", "count", "(*)", "from", "car_makers"], "question": "How many car makers are there?", "question_toks": ["How", "many", "car", "makers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0113", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0019", "db_id": "car_1", "query": "select count(*) from car_makers", "query_toks": ["select", "count", "(*)", "from", "car_makers"], "query_toks_no_value": ["select", "count", "(*)", "from", "car_makers"], "question": "What is the number of makers of care?", "question_toks": ["What", "is", "the", "number", "of", "makers", "of", "care", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0114", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0020", "db_id": "car_1", "query": "select avg(edispl) from cars_data", "query_toks": ["select", "avg", "(", "edispl", ")", "from", "cars_data"], "query_toks_no_value": ["select", "avg", "(", "edispl", ")", "from", "cars_data"], "question": "What is the average edispl of the cars?", "question_toks": ["What", "is", "the", "average", "edispl", "of", "the", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0137", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0021", "db_id": "car_1", "query": "select count(*) from cars_data", "query_toks": ["select", "count", "(*)", "from", "cars_data"], "query_toks_no_value": ["select", "count", "(*)", "from", "cars_data"], "question": "how many cars were produced?", "question_toks": ["how", "many", "cars", "were", "produced", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0145", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0022", "db_id": "flight_2", "query": "select count(*) from airlines", "query_toks": ["select", "count", "(*)", "from", "airlines"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines"], "question": "How many airlines are?", "question_toks": ["How", "many", "airlines", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0195", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0023", "db_id": "flight_2", "query": "select count(*) from airlines", "query_toks": ["select", "count", "(*)", "from", "airlines"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines"], "question": "Return the number of airlines.", "question_toks": ["Return", "the", "number", "of", "airlines", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0196", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0024", "db_id": "flight_2", "query": "select flightno from flights", "query_toks": ["select", "flightno", "from", "flights"], "query_toks_no_value": ["select", "flightno", "from", "flights"], "question": "What are flight numbers of flights?", "question_toks": ["What", "are", "flight", "numbers", "of", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0253", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0025", "db_id": "employee_hire_evaluation", "query": "select name from shop", "query_toks": ["select", "name", "from", "shop"], "query_toks_no_value": ["select", "name", "from", "shop"], "question": "Find the names of stores.", "question_toks": ["Find", "the", "names", "of", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0275", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0026", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents", "query_toks": ["select", "count", "(*)", "from", "documents"], "query_toks_no_value": ["select", "count", "(*)", "from", "documents"], "question": "Count the number of documents.", "question_toks": ["Count", "the", "number", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0308", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0027", "db_id": "cre_Doc_Template_Mgt", "query": "select version_number , template_type_code from templates", "query_toks": ["select", "version_number", ",", "template_type_code", "from", "templates"], "query_toks_no_value": ["select", "version_number", ",", "template_type_code", "from", "templates"], "question": "What is the version number and template type code for the templates?", "question_toks": ["What", "is", "the", "version", "number", "and", "template", "type", "code", "for", "the", "templates", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0327", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0028", "db_id": "cre_Doc_Template_Mgt", "query": "select version_number , template_type_code from templates", "query_toks": ["select", "version_number", ",", "template_type_code", "from", "templates"], "query_toks_no_value": ["select", "version_number", ",", "template_type_code", "from", "templates"], "question": "Return the version numbers and template type codes of templates.", "question_toks": ["Return", "the", "version", "numbers", "and", "template", "type", "codes", "of", "templates", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0328", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0029", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from paragraphs", "query_toks": ["select", "count", "(*)", "from", "paragraphs"], "query_toks_no_value": ["select", "count", "(*)", "from", "paragraphs"], "question": "How many paragraphs for the document?", "question_toks": ["How", "many", "paragraphs", "for", "the", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0359", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0030", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from paragraphs", "query_toks": ["select", "count", "(*)", "from", "paragraphs"], "query_toks_no_value": ["select", "count", "(*)", "from", "paragraphs"], "question": "Count the number of paragraphs.", "question_toks": ["Count", "the", "number", "of", "paragraphs", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0360", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0031", "db_id": "museum_visit", "query": "select count(*) from visitor", "query_toks": ["select", "count", "(*)", "from", "visitor"], "query_toks_no_value": ["select", "count", "(*)", "from", "visitor"], "question": "How many visitors are there?", "question_toks": ["How", "many", "visitors", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0411", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0032", "db_id": "museum_visit", "query": "select name from visitor order by level_of_membership desc", "query_toks": ["select", "name", "from", "visitor", "order", "by", "level_of_membership", "desc"], "query_toks_no_value": ["select", "name", "from", "visitor", "order", "by", "level_of_membership", "desc"], "question": "Find the names of the visitors and order the results by the level from high to low.", "question_toks": ["Find", "the", "names", "of", "the", "visitors", "and", "order", "the", "results", "by", "the", "level", "from", "high", "to", "low", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0412", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0033", "db_id": "museum_visit", "query": "select avg(age) from visitor", "query_toks": ["select", "avg", "(", "age", ")", "from", "visitor"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "visitor"], "question": "What is the average age of the visitors?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "visitors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0413", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0034", "db_id": "museum_visit", "query": "select name , level_of_membership from visitor order by age desc", "query_toks": ["select", "name", ",", "level_of_membership", "from", "visitor", "order", "by", "age", "desc"], "query_toks_no_value": ["select", "name", ",", "level_of_membership", "from", "visitor", "order", "by", "age", "desc"], "question": "Find the name and membership level of the visitors and sort by their age from old to young.", "question_toks": ["Find", "the", "name", "and", "membership", "level", "of", "the", "visitors", "and", "sort", "by", "their", "age", "from", "old", "to", "young", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0414", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0035", "db_id": "museum_visit", "query": "select avg(num_of_staff) from museum", "query_toks": ["select", "avg", "(", "num_of_staff", ")", "from", "museum"], "query_toks_no_value": ["select", "avg", "(", "num_of_staff", ")", "from", "museum"], "question": "Find the average number of staff working for the museums.", "question_toks": ["Find", "the", "average", "number", "of", "staff", "working", "for", "the", "museums", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0416", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0036", "db_id": "wta_1", "query": "select first_name , birth_date from players", "query_toks": ["select", "first_name", ",", "birth_date", "from", "players"], "query_toks_no_value": ["select", "first_name", ",", "birth_date", "from", "players"], "question": "List the first name and birth date of all players.", "question_toks": ["List", "the", "first", "name", "and", "birth", "date", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0433", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0037", "db_id": "wta_1", "query": "select first_name , birth_date from players", "query_toks": ["select", "first_name", ",", "birth_date", "from", "players"], "query_toks_no_value": ["select", "first_name", ",", "birth_date", "from", "players"], "question": "What are the first names and birth dates of players?", "question_toks": ["What", "are", "the", "first", "names", "and", "birth", "dates", "of", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0434", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0038", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "question": "List the first and last name of all players in the order of birth date.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "in", "the", "order", "of", "birth", "date", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0457", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0039", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "question": "What are the full names of all players, in order of birth date?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "players", ",", "in", "order", "of", "birth", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0458", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0040", "db_id": "wta_1", "query": "select winner_name from matches order by winner_rank_points desc limit 1", "query_toks": ["select", "winner_name", "from", "matches", "order", "by", "winner_rank_points", "desc", "limit", "1"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "order", "by", "winner_rank_points", "desc", "limit", "1"], "question": "Find the name of the winner who has the highest rank points.", "question_toks": ["Find", "the", "name", "of", "the", "winner", "who", "has", "the", "highest", "rank", "points", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 36, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0465", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0041", "db_id": "wta_1", "query": "select winner_name from matches order by winner_rank_points desc limit 1", "query_toks": ["select", "winner_name", "from", "matches", "order", "by", "winner_rank_points", "desc", "limit", "1"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "order", "by", "winner_rank_points", "desc", "limit", "1"], "question": "What is the name of the winner with the most rank points who participated?", "question_toks": ["What", "is", "the", "name", "of", "the", "winner", "with", "the", "most", "rank", "points", "who", "participated", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 36, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0466", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0042", "db_id": "battle_death", "query": "select count(*) from ship", "query_toks": ["select", "count", "(*)", "from", "ship"], "query_toks_no_value": ["select", "count", "(*)", "from", "ship"], "question": "How many ships ended up?", "question_toks": ["How", "many", "ships", "ended", "up", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0491", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0043", "db_id": "battle_death", "query": "select t1.killed , t1.injured from death as t1 join ship as t2 on t1.caused_by_ship_id = t2.id", "query_toks": ["select", "t1", ".", "killed", ",", "t1", ".", "injured", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id"], "query_toks_no_value": ["select", "t1", ".", "killed", ",", "t1", ".", "injured", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id"], "question": "What are the death and injury situations caused by the ship?", "question_toks": ["What", "are", "the", "death", "and", "injury", "situations", "caused", "by", "the", "ship", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0496", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0044", "db_id": "student_transcripts_tracking", "query": "select course_description from courses", "query_toks": ["select", "course_description", "from", "courses"], "query_toks_no_value": ["select", "course_description", "from", "courses"], "question": "How is the course described?", "question_toks": ["How", "is", "the", "course", "described", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0511", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0045", "db_id": "student_transcripts_tracking", "query": "select course_description from courses", "query_toks": ["select", "course_description", "from", "courses"], "query_toks_no_value": ["select", "course_description", "from", "courses"], "question": "What are the descriptions for all the courses?", "question_toks": ["What", "are", "the", "descriptions", "for", "all", "the", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0512", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0046", "db_id": "tvshow", "query": "select title from cartoon", "query_toks": ["select", "title", "from", "cartoon"], "query_toks_no_value": ["select", "title", "from", "cartoon"], "question": "List all cartoon titles.", "question_toks": ["List", "all", "cartoons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0587", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0047", "db_id": "tvshow", "query": "select title from cartoon", "query_toks": ["select", "title", "from", "cartoon"], "query_toks_no_value": ["select", "title", "from", "cartoon"], "question": "What are the names of all cartoons?", "question_toks": ["What", "are", "the", "names", "of", "all", "cartoons", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0588", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0048", "db_id": "tvshow", "query": "select count(*) from cartoon", "query_toks": ["select", "count", "(*)", "from", "cartoon"], "query_toks_no_value": ["select", "count", "(*)", "from", "cartoon"], "question": "How many cartoons were written?", "question_toks": ["How", "many", "cartoons", "were", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0589", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0049", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel", "query_toks": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel"], "query_toks_no_value": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel"], "question": "find the pixel aspect ratio and nation of the tv channels.", "question_toks": ["find", "the", "pixel", "aspect", "ratio", "and", "nation", "of", "the", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0639", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0050", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel", "query_toks": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel"], "query_toks_no_value": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel"], "question": "What is the pixel aspect ratio and country of origin for all TV channels?", "question_toks": ["What", "is", "the", "pixel", "aspect", "ratio", "and", "country", "of", "origin", "for", "all", "TV", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0640", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0051", "db_id": "poker_player", "query": "select max(final_table_made) from poker_player", "query_toks": ["select", "max", "(", "final_table_made", ")", "from", "poker_player"], "query_toks_no_value": ["select", "max", "(", "final_table_made", ")", "from", "poker_player"], "question": "What is the maximum number of final tables made among poker players?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "final", "tables", "made", "among", "poker", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0657", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0052", "db_id": "poker_player", "query": "select max(final_table_made) from poker_player", "query_toks": ["select", "max", "(", "final_table_made", ")", "from", "poker_player"], "query_toks_no_value": ["select", "max", "(", "final_table_made", ")", "from", "poker_player"], "question": "Return the maximum final tables made across all poker players.", "question_toks": ["Return", "the", "maximum", "final", "tables", "made", "across", "all", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0658", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0053", "db_id": "voter_1", "query": "select max(created) from votes", "query_toks": ["select", "max", "(", "created", ")", "from", "votes"], "query_toks_no_value": ["select", "max", "(", "created", ")", "from", "votes"], "question": "What is last date created of votes?", "question_toks": ["What", "is", "last", "date", "created", "of", "votes", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0691", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0054", "db_id": "voter_1", "query": "select contestant_name from contestants", "query_toks": ["select", "contestant_name", "from", "contestants"], "query_toks_no_value": ["select", "contestant_name", "from", "contestants"], "question": "What are the names of the contestants", "question_toks": ["What", "are", "the", "names", "of", "the", "contestants"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0692", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0055", "db_id": "voter_1", "query": "select count(*) from contestants", "query_toks": ["select", "count", "(*)", "from", "contestants"], "query_toks_no_value": ["select", "count", "(*)", "from", "contestants"], "question": "How many contestants are?", "question_toks": ["How", "many", "contestants", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0697", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0056", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode order by percentage desc limit 1", "query_toks": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "order", "by", "percentage", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "order", "by", "percentage", "desc", "limit", "1"], "question": "Which language is the most popular?", "question_toks": ["Which", "language", "is", "the", "most", "popular", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0712", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0057", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode order by percentage desc limit 1", "query_toks": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "order", "by", "percentage", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "order", "by", "percentage", "desc", "limit", "1"], "question": "What language is predominantly spoken?", "question_toks": ["What", "language", "is", "predominantly", "spoken", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0713", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0058", "db_id": "world_1", "query": "select population , lifeexpectancy from country", "query_toks": ["select", "population", ",", "lifeexpectancy", "from", "country"], "query_toks_no_value": ["select", "population", ",", "lifeexpectancy", "from", "country"], "question": "Give me populations and life expectancies.", "question_toks": ["Give", "me", "populations", "and", "life", "expectancies", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0715", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0059", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["select", "name", "from", "conductor"], "query_toks_no_value": ["select", "name", "from", "conductor"], "question": "What are the names of conductors?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0826", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0060", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["select", "name", "from", "conductor"], "query_toks_no_value": ["select", "name", "from", "conductor"], "question": "Return the names of conductors.", "question_toks": ["Return", "the", "names", "of", "conductors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0827", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0061", "db_id": "orchestra", "query": "select max(share) , min(share) from performance", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance"], "question": "What are the maximum and minimum share of performances.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0832", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0062", "db_id": "orchestra", "query": "select max(share) , min(share) from performance", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance"], "question": "Return the maximum and minimum shares for performances", "question_toks": ["Return", "the", "maximum", "and", "minimum", "shares", "for", "performances"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0833", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0063", "db_id": "network_1", "query": "select grade from highschooler", "query_toks": ["select", "grade", "from", "highschooler"], "query_toks_no_value": ["select", "grade", "from", "highschooler"], "question": "Return the grade for the high schoolers.", "question_toks": ["Return", "the", "grade", "for", "the", "high", "schoolers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0869", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0064", "db_id": "network_1", "query": "select name from highschooler", "query_toks": ["select", "name", "from", "highschooler"], "query_toks_no_value": ["select", "name", "from", "highschooler"], "question": "Show the names of all high schoolers.", "question_toks": ["Show", "the", "names", "of", "all", "high", "schoolers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0870", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0065", "db_id": "network_1", "query": "select name from highschooler", "query_toks": ["select", "name", "from", "highschooler"], "query_toks_no_value": ["select", "name", "from", "highschooler"], "question": "What are the names of all high schoolers?", "question_toks": ["What", "are", "the", "names", "of", "all", "high", "schoolers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0871", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0066", "db_id": "network_1", "query": "select count(distinct student_id) from friend", "query_toks": ["select", "count", "(*)", "from", "friend"], "query_toks_no_value": ["select", "count", "(*)", "from", "friend"], "question": "Count the number of friends.", "question_toks": ["Count", "the", "number", "of", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0893", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0067", "db_id": "dog_kennels", "query": "select avg(age) from dogs", "query_toks": ["select", "avg", "(", "age", ")", "from", "dogs"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "dogs"], "question": "Find the average age of the dogs.", "question_toks": ["Find", "the", "average", "age", "of", "the", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0921", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0068", "db_id": "dog_kennels", "query": "select t1.name , t2.date_of_treatment from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id", "query_toks": ["select", "t1", ".", "name", ",", "t2", ".", "date_of_treatment", "from", "dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "dog_id", "=", "t2", ".", "dog_id"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "date_of_treatment", "from", "dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1", ".", "dog_id", "=", "t2", ".", "dog_id"], "question": "List the names of the dogs and the treatment dates of them.", "question_toks": ["List", "the", "names", "of", "the", "dogs", "and", "the", "treatment", "dates", "of", "them", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 48, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0954", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0069", "db_id": "dog_kennels", "query": "select last_name from owners", "query_toks": ["select", "last_name", "from", "owners"], "query_toks_no_value": ["select", "last_name", "from", "owners"], "question": "List the last name of the owners.", "question_toks": ["List", "the", "last", "name", "of", "the", "owners", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0960", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0070", "db_id": "singer", "query": "select name from singer", "query_toks": ["select", "name", "from", "singer"], "query_toks_no_value": ["select", "name", "from", "singer"], "question": "What are the names of the singers?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1007", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0071", "db_id": "singer", "query": "select distinct name from singer", "query_toks": ["select", "distinct", "name", "from", "singer"], "query_toks_no_value": ["select", "distinct", "name", "from", "singer"], "question": "Show distinct names of singers.", "question_toks": ["Show", "distinct", "names", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1020", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0072", "db_id": "singer", "query": "select distinct name from singer ", "query_toks": ["select", "distinct", "name", "from", "singer"], "query_toks_no_value": ["select", "distinct", "name", "from", "singer"], "question": "what are the different names of the singers?", "question_toks": ["what", "are", "the", "different", "names", "of", "the", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1021", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0073", "db_id": "farm", "query": "select hosts from farm_competition", "query_toks": ["select", "hosts", "from", "farm_competition"], "query_toks_no_value": ["select", "hosts", "from", "farm_competition"], "question": "What are the hosts of competitions?", "question_toks": ["What", "are", "the", "hosts", "of", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0020", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0074", "db_id": "farm", "query": "select hosts from farm_competition", "query_toks": ["select", "hosts", "from", "farm_competition"], "query_toks_no_value": ["select", "hosts", "from", "farm_competition"], "question": "Return the hosts of competitions?", "question_toks": ["Return", "the", "hosts", "of", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0021", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0075", "db_id": "farm", "query": "select avg(working_horses) from farm", "query_toks": ["select", "avg", "(", "working_horses", ")", "from", "farm"], "query_toks_no_value": ["select", "avg", "(", "working_horses", ")", "from", "farm"], "question": "What is the average number of working horses of farms?", "question_toks": ["What", "is", "the", "average", "number", "of", "working", "horses", "of", "farms", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0024", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0076", "db_id": "farm", "query": "select avg(working_horses) from farm", "query_toks": ["select", "avg", "(", "working_horses", ")", "from", "farm"], "query_toks_no_value": ["select", "avg", "(", "working_horses", ")", "from", "farm"], "question": "Give the average number of working horses on farms.", "question_toks": ["Give", "the", "average", "number", "of", "working", "horses", "on", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0025", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0077", "db_id": "farm", "query": "select census_ranking from city", "query_toks": ["select", "census_ranking", "from", "city"], "query_toks_no_value": ["select", "census_ranking", "from", "city"], "question": "What are the census rankings of cities?", "question_toks": ["What", "are", "the", "census", "rankings", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0055", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0078", "db_id": "student_assessment", "query": "select student_id from students", "query_toks": ["select", "student_id", "from", "students"], "query_toks_no_value": ["select", "student_id", "from", "students"], "question": "List the id of students", "question_toks": ["List", "the", "id", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0062", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0079", "db_id": "student_assessment", "query": "select student_id from students", "query_toks": ["select", "student_id", "from", "students"], "query_toks_no_value": ["select", "student_id", "from", "students"], "question": "What are the ids of every student?", "question_toks": ["What", "are", "the", "ids", "of", "every", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0063", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0080", "db_id": "student_assessment", "query": "select * from student_course_registrations", "query_toks": ["select", "*", "from", "student_course_registrations"], "query_toks_no_value": ["select", "*", "from", "student_course_registrations"], "question": "What are all info of students who registered courses?", "question_toks": ["What", "are", "all", "info", "of", "students", "who", "registered", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0103", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0081", "db_id": "bike_1", "query": "select date from weather", "query_toks": ["select", "date", "from", "weather"], "query_toks_no_value": ["select", "date", "from", "weather"], "question": "Give me the dates from weather", "question_toks": ["Give", "me", "the", "dates", "when", "the", "max", "temperature", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0109", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0082", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station", "query_toks": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station"], "query_toks_no_value": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station"], "question": "What is the average latitude and longitude of stations?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "of", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0117", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0083", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station", "query_toks": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station"], "query_toks_no_value": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station"], "question": "What is the average latitude and longitude?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0118", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0084", "db_id": "twitter_1", "query": "select text from tweets", "query_toks": ["select", "text", "from", "tweets"], "query_toks_no_value": ["select", "text", "from", "tweets"], "question": "Return the text of tweets.", "question_toks": ["Return", "the", "text", "of", "tweets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0283", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0085", "db_id": "twitter_1", "query": "select name , email from user_profiles", "query_toks": ["select", "name", ",", "email", "from", "user_profiles"], "query_toks_no_value": ["select", "name", ",", "email", "from", "user_profiles"], "question": "Find the name and email of the users.", "question_toks": ["Find", "the", "name", "and", "email", "of", "the", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0284", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0086", "db_id": "twitter_1", "query": "select avg(followers) from user_profiles", "query_toks": ["select", "avg", "(", "followers", ")", "from", "user_profiles"], "query_toks_no_value": ["select", "avg", "(", "followers", ")", "from", "user_profiles"], "question": "Find the average number of followers for the users.", "question_toks": ["Find", "the", "average", "number", "of", "followers", "for", "the", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0298", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0087", "db_id": "product_catalog", "query": "select catalog_level_name , catalog_level_number from catalog_structure", "query_toks": ["select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure"], "query_toks_no_value": ["select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure"], "question": "Find the name and level of catalog structure.", "question_toks": ["Find", "the", "name", "and", "level", "of", "catalog", "structure", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0307", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0088", "db_id": "product_catalog", "query": "select catalog_level_name , catalog_level_number from catalog_structure", "query_toks": ["select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure"], "query_toks_no_value": ["select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure"], "question": "What are the names and levels of catalog structure?", "question_toks": ["What", "are", "the", "names", "and", "levels", "of", "catalog", "structure", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0308", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0089", "db_id": "flight_1", "query": "select aid from aircraft", "query_toks": ["select", "aid", "from", "aircraft"], "query_toks_no_value": ["select", "aid", "from", "aircraft"], "question": "Show ids for all aircrafts.", "question_toks": ["Show", "ids", "for", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0347", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0090", "db_id": "flight_1", "query": "select aid from aircraft", "query_toks": ["select", "aid", "from", "aircraft"], "query_toks_no_value": ["select", "aid", "from", "aircraft"], "question": "What are the ids of all aircrafts?", "question_toks": ["What", "are", "the", "ids", "of", "all", "aircrafts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0348", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0091", "db_id": "flight_1", "query": "select count(*) from aircraft", "query_toks": ["select", "count", "(*)", "from", "aircraft"], "query_toks_no_value": ["select", "count", "(*)", "from", "aircraft"], "question": "What is the count of aircrafts?", "question_toks": ["What", "is", "the", "count", "of", "aircrafts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0350", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0092", "db_id": "flight_1", "query": "select eid from employee", "query_toks": ["select", "eid", "from", "employee"], "query_toks_no_value": ["select", "eid", "from", "employee"], "question": "Show ids for all employees.", "question_toks": ["Show", "ids", "for", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0365", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0093", "db_id": "flight_1", "query": "select eid , salary from employee", "query_toks": ["select", "eid", ",", "salary", "from", "employee"], "query_toks_no_value": ["select", "eid", ",", "salary", "from", "employee"], "question": "Show the id and salary.", "question_toks": ["Show", "the", "id", "and", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0379", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0094", "db_id": "flight_1", "query": "select eid , salary from employee", "query_toks": ["select", "eid", ",", "salary", "from", "employee"], "query_toks_no_value": ["select", "eid", ",", "salary", "from", "employee"], "question": "What is the id and salary of the employee?", "question_toks": ["What", "is", "the", "id", "and", "salary", "of", "the", "employee", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0380", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0095", "db_id": "allergy_1", "query": "select distinct allergy from allergy_type", "query_toks": ["select", "distinct", "allergy", "from", "allergy_type"], "query_toks_no_value": ["select", "distinct", "allergy", "from", "allergy_type"], "question": "Show all allergies.", "question_toks": ["Show", "all", "allergies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0447", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0096", "db_id": "allergy_1", "query": "select distinct allergy from allergy_type", "query_toks": ["select", "distinct", "allergy", "from", "allergy_type"], "query_toks_no_value": ["select", "distinct", "allergy", "from", "allergy_type"], "question": "What are all the different allergies?", "question_toks": ["What", "are", "all", "the", "different", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0448", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0097", "db_id": "store_1", "query": "select billing_state , count(*) from invoices group by billing_state", "query_toks": ["select", "billing_state", ",", "count", "(*)", "from", "invoices", "group", "by", "billing_state"], "query_toks_no_value": ["select", "billing_state", ",", "count", "(*)", "from", "invoices", "group", "by", "billing_state"], "question": "List the number of invoices grouped by state.", "question_toks": ["List", "the", "number", "of", "invoices", "grouped", "by", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 43, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0563", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0098", "db_id": "store_1", "query": "select title from albums", "query_toks": ["select", "title", "from", "albums"], "query_toks_no_value": ["select", "title", "from", "albums"], "question": "List albums titles.", "question_toks": ["List", "albums", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0569", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0099", "db_id": "journal_committee", "query": "select name from editor", "query_toks": ["select", "name", "from", "editor"], "query_toks_no_value": ["select", "name", "from", "editor"], "question": "List the names of editors.", "question_toks": ["List", "the", "names", "of", "editors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0652", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0100", "db_id": "race_track", "query": "select name , seating from track", "query_toks": ["select", "name", ",", "seating", "from", "track"], "query_toks_no_value": ["select", "name", ",", "seating", "from", "track"], "question": "Show names and seatings, ordered by seating.", "question_toks": ["Show", "names", "and", "seatings", ",", "ordered", "by", "seating", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0751", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0101", "db_id": "race_track", "query": "select name , seating from track order by seating", "query_toks": ["select", "name", ",", "seating", "from", "track", "order", "by", "seating"], "query_toks_no_value": ["select", "name", ",", "seating", "from", "track", "order", "by", "seating"], "question": "What are the names and seatings for all tracks, ordered by seating?", "question_toks": ["What", "are", "the", "names", "and", "seatings", "for", "all", "tracks", ",", "ordered", "by", "seating", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0752", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0102", "db_id": "chinook_1", "query": "select birthdate from employee", "query_toks": ["select", "birthdate", "from", "employee"], "query_toks_no_value": ["select", "birthdate", "from", "employee"], "question": "What are the birth dates of employees?", "question_toks": ["What", "are", "the", "birth", "dates", "of", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0883", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0103", "db_id": "insurance_fnol", "query": "select customer_id from customers", "query_toks": ["select", "customer_id", "from", "customers"], "query_toks_no_value": ["select", "customer_id", "from", "customers"], "question": "What are the IDs of customers?", "question_toks": ["What", "are", "the", "IDs", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0926", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0104", "db_id": "medicine_enzyme_interaction", "query": "select product , chromosome , porphyria from enzyme", "query_toks": ["select", "product", ",", "chromosome", ",", "porphyria", "from", "enzyme"], "query_toks_no_value": ["select", "product", ",", "chromosome", ",", "porphyria", "from", "enzyme"], "question": "What is the product, chromosome and porphyria related to the enzymes?", "question_toks": ["What", "is", "the", "product", ",", "chromosome", "and", "porphyria", "related", "to", "the", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0941", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0105", "db_id": "phone_1", "query": "select model_name from chip_model", "query_toks": ["select", "model_name", "from", "chip_model"], "query_toks_no_value": ["select", "model_name", "from", "chip_model"], "question": "the names of models.", "question_toks": ["the", "names", "of", "models", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1023", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}] \ No newline at end of file diff --git a/all/spiderology.json b/all/spiderology.json new file mode 100644 index 0000000000000000000000000000000000000000..959ecba5f4230704a7231e255544473db3454b45 --- /dev/null +++ b/all/spiderology.json @@ -0,0 +1 @@ +[{"id": "column_overlapping_0000", "db_id": "concert_singer", "query": "select song_name , song_release_year from singer order by age limit 1", "query_toks": ["SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1"], "question": "Show the song name and the song release year by the youngest singer.", "question_toks": ["Show", "the", "song", "name", "and", "the", "song", "release", "year", "by", "the", "youngest", "singer", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0000", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0001", "db_id": "concert_singer", "query": "select song_name , song_release_year from singer order by age limit 1", "query_toks": ["SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1"], "question": "What are the song name and the song release year of the youngest singer?", "question_toks": ["What", "are", "the", "song", "name", "and", "the", "song", "release", "year", "of", "the", "youngest", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0001", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0002", "db_id": "cre_Doc_Template_Mgt", "query": "select document_id , document_name , document_description from documents", "query_toks": ["SELECT", "document_id", ",", "document_name", ",", "document_description", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "document_id", ",", "document_name", ",", "document_description", "FROM", "Documents"], "question": "List document IDs, document names, and document descriptions for all documents.", "question_toks": ["List", "document", "IDs", ",", "document", "names", ",", "and", "document", "descriptions", "for", "all", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0002", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0003", "db_id": "dog_kennels", "query": "select date_arrived , date_departed from dogs", "query_toks": ["SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs"], "query_toks_no_value": ["SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs"], "question": "What are the arriving date and the departing date of all the dogs?", "question_toks": ["What", "are", "the", "arriving", "date", "and", "the", "departing", "date", "of", "all", "the", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0003", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0004", "db_id": "dog_kennels", "query": "select date_arrived , date_departed from dogs", "query_toks": ["SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs"], "query_toks_no_value": ["SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs"], "question": "List the arrival and departure date for all the dogs.", "question_toks": ["List", "the", "arrival", "and", "departure", "date", "for", "all", "the", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0965", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0005", "db_id": "dog_kennels", "query": "select first_name , last_name , email_address from owners where state like \"%north%\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners", "WHERE", "state", "LIKE", "\"%", "north", "%\""], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners", "WHERE", "state", "LIKE", "\"%", "north", "%\""], "question": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", "question_toks": ["Return", "the", "first", "name", ",", "last", "name", "and", "email", "of", "the", "owners", "living", "in", "a", "state", "whose", "name", "contains", "the", "substring", "'", "North", "'."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%north%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0005", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0006", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "``", "london", "heathrow", "''"], "query_toks_no_value": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "value", "heathrow"], "question": "What are the number of international passengers and domestic passengers of the airport named London \"Heathrow\"?", "question_toks": ["What", "are", "the", "number", "of", "international", "passengers", "and", "domestic", "passengers", "of", "the", "airport", "named", "London", "\"", "Heathrow", "\"?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"london heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4803", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0007", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "``", "london", "heathrow", "''"], "query_toks_no_value": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "value", "heathrow"], "question": "How many international passengers and domestic passengers are there in the airport London Heathrow?", "question_toks": ["How", "many", "international", "passengers", "and", "domestic", "passengers", "are", "there", "in", "the", "airport", "London", "Heathrow", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"london heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4804", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0008", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_end_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.bedroom_count > 2", "query_toks": ["SELECT", "T1", ".", "booking_start_date", ",", "T1", ".", "booking_end_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T2", ".", "bedroom_count", ">", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "booking_start_date", ",", "T1", ".", "booking_end_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T2", ".", "bedroom_count", ">", "value"], "question": "What are the booking start dates and booking end dates of the apartments with more than two bedrooms?", "question_toks": ["What", "are", "the", "booking", "start", "dates", "and", "booking", "end", "dates", "of", "the", "apartments", "with", "more", "than", "two", "bedrooms", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 27, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0008", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0009", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip where start_date like \"8/%\" group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "``", "8", "/%\"", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "value", "/%\"", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "question": "What are the start station's name and start station's id for the one that had the most start trips in August?", "question_toks": ["What", "are", "the", "start", "station", "'", "s", "name", "and", "start", "station", "'", "s", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "in", "August", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"8/%\"", null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0134", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0010", "db_id": "customers_and_products_contacts", "query": "select product_type_code , product_name from products where product_price > 1000 or product_price < 500", "query_toks": ["SELECT", "product_type_code", ",", "product_name", "FROM", "products", "WHERE", "product_price", ">", "1000", "OR", "product_price", "<", "500"], "query_toks_no_value": ["SELECT", "product_type_code", ",", "product_name", "FROM", "products", "WHERE", "product_price", ">", "value", "OR", "product_price", "<", "value"], "question": "Show the product type code and product name for the products with price higher than 1000 or lower than 500.", "question_toks": ["Show", "the", "product", "type", "code", "and", "product", "name", "for", "the", "products", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null], "or", [false, 4, [0, [0, 10, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5667", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0011", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers except select t1.customer_first_name , t1.customer_last_name from customers as t1 join accounts as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1", ".", "customer_first_name", ",", "T1", ".", "customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id"], "query_toks_no_value": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1", ".", "customer_first_name", ",", "T1", ".", "customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id"], "question": "Show the customer first names and customer last names of customers without any account.", "question_toks": ["Show", "the", "customer", "first", "names", "and", "customer", "last", "names", "of", "customers", "without", "any", "account", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0685", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0012", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id order by count(*) asc limit 1", "query_toks": ["SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", ",", "T2", ".", "customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "ORDER", "BY", "count", "(*)", "ASC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", ",", "T2", ".", "customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "ORDER", "BY", "count", "(*)", "ASC", "LIMIT", "1"], "question": "What is the customer id, customer first name and customer last name with least number of accounts.", "question_toks": ["What", "is", "the", "customer", "id", ",", "customer", "first", "name", "and", "customer", "last", "name", "with", "least", "number", "of", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0717", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0013", "db_id": "flight_1", "query": "select departure_date , arrival_date from flight where origin = \"los angeles\" and destination = \"honolulu\"", "query_toks": ["SELECT", "departure_date", ",", "arrival_date", "FROM", "Flight", "WHERE", "origin", "=", "``", "los", "angeles", "''", "AND", "destination", "=", "``", "honolulu", "''"], "query_toks_no_value": ["SELECT", "departure_date", ",", "arrival_date", "FROM", "Flight", "WHERE", "origin", "=", "value", "angeles", "AND", "destination", "=", "value"], "question": "What are the departure date and arrival date of all flights from LA to Honolulu?", "question_toks": ["What", "are", "the", "departure", "date", "and", "arrival", "date", "of", "all", "flights", "from", "LA", "to", "Honolulu", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0390", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0014", "db_id": "game_injury", "query": "select name , average_attendance , total_attendance from stadium except select t2.name , t2.average_attendance , t2.total_attendance from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id", "query_toks": ["SELECT", "name", ",", "average_attendance", ",", "total_attendance", "FROM", "stadium", "EXCEPT", "SELECT", "T2", ".", "name", ",", "T2", ".", "average_attendance", ",", "T2", ".", "total_attendance", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id"], "query_toks_no_value": ["SELECT", "name", ",", "average_attendance", ",", "total_attendance", "FROM", "stadium", "EXCEPT", "SELECT", "T2", ".", "name", ",", "T2", ".", "average_attendance", ",", "T2", ".", "total_attendance", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id"], "question": "Show the name, average attendance and total attendance for stadiums where no accidents happened.", "question_toks": ["Show", "the", "name", ",", "average", "attendance", "and", "total", "attendance", "for", "stadiums", "where", "no", "accidents", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_column_overlapping_0014", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0015", "db_id": "insurance_fnol", "query": "select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like \"%diana%\"", "query_toks": ["SELECT", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "customer_name", "LIKE", "\"%", "diana", "%\""], "query_toks_no_value": ["SELECT", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "customer_name", "LIKE", "\"%", "diana", "%\""], "question": "Retrieve the open dates and close dates of all the policies associated with the customer whose name contains \"Diana\"", "question_toks": ["Retrieve", "the", "open", "dates", "and", "close", "dates", "of", "all", "the", "policies", "associated", "with", "the", "customer", "whose", "name", "contains", "\"", "Diana", "\""], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0931", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0016", "db_id": "insurance_fnol", "query": "select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like \"%diana%\"", "query_toks": ["SELECT", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "customer_name", "LIKE", "\"%", "diana", "%\""], "query_toks_no_value": ["SELECT", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "customer_name", "LIKE", "\"%", "diana", "%\""], "question": "What are the open date and close date of all the policies used by the customer who have \"Diana\" in part of their names?", "question_toks": ["What", "are", "the", "open", "date", "and", "close", "date", "of", "all", "the", "policies", "used", "by", "the", "customer", "who", "have", "\"", "Diana", "\"", "in", "part", "of", "their", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0932", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0017", "db_id": "party_people", "query": "select minister , took_office , left_office from party order by left_office", "query_toks": ["SELECT", "minister", ",", "took_office", ",", "left_office", "FROM", "party", "ORDER", "BY", "left_office"], "query_toks_no_value": ["SELECT", "minister", ",", "took_office", ",", "left_office", "FROM", "party", "ORDER", "BY", "left_office"], "question": "Show the ministers and the time they took office and left office, listed by the time they left office.", "question_toks": ["Show", "the", "ministers", "and", "the", "time", "they", "took", "office", "and", "left", "office", ",", "listed", "by", "the", "time", "they", "left", "office", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2045", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0018", "db_id": "soccer_1", "query": "select t1.name , t2.name from country as t1 join league as t2 on t1.id = t2.country_id", "query_toks": ["SELECT", "T1", ".", "name", ",", "T2", ".", "name", "FROM", "Country", "AS", "T1", "JOIN", "League", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "country_id"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T2", ".", "name", "FROM", "Country", "AS", "T1", "JOIN", "League", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "country_id"], "question": "List all country names and league names.", "question_toks": ["List", "all", "country", "names", "and", "league", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 55, false], null], [0, 53, false], null]]}, "select": [false, [[0, [0, [0, 56, false], null]], [0, [0, [0, 54, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1293", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0019", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code , template_type_description from ref_template_types", "query_toks": ["SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types"], "query_toks_no_value": ["SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types"], "question": "Show all template type codes and template type descriptions.", "question_toks": ["Show", "all", "template", "type", "codes", "and", "template", "type", "descriptions", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0347", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0020", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code , template_type_description from ref_template_types", "query_toks": ["SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types"], "query_toks_no_value": ["SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types"], "question": "What are the template type codes and template type descriptions for all template types?", "question_toks": ["What", "are", "the", "template", "type", "codes", "and", "template", "type", "descriptions", "for", "all", "template", "types", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0348", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0021", "db_id": "cre_Doc_Template_Mgt", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "to", "ny"], "question": "Show all paragraph ids and paragraph texts for the document with name 'Welcome to NY'.", "question_toks": ["Show", "all", "paragraph", "ids", "and", "paragraph", "texts", "for", "the", "document", "with", "name", "'", "Welcome", "to", "NY", "'."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"welcome to ny\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0363", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0022", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What is the document id and document name with greatest number of paragraphs?", "question_toks": ["What", "is", "the", "document", "id", "and", "document", "name", "with", "greatest", "number", "of", "paragraphs", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0373", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0023", "db_id": "student_transcripts_tracking", "query": "select first_name , middle_name , last_name from students order by date_first_registered asc limit 1", "query_toks": ["SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_first_registered", "ASC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_first_registered", "ASC", "LIMIT", "1"], "question": "What is the first name, middle name and last name of the first student to register?", "question_toks": ["What", "is", "the", "first", "name", ",", "middle", "name", "and", "last", "name", "of", "the", "first", "student", "to", "register", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 41, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0556", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0024", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "question": "List the first name and last name of all players in the order of birth date.", "question_toks": ["List", "the", "first", "name", "and", "last", "name", "of", "all", "players", "in", "the", "order", "of", "birth", "date", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0455", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0025", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_start_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.apt_type_code = \"duplex\"", "query_toks": ["SELECT", "T1", ".", "booking_start_date", ",", "T1", ".", "booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T2", ".", "apt_type_code", "=", "``", "duplex", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "booking_start_date", ",", "T1", ".", "booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T2", ".", "apt_type_code", "=", "value"], "question": "What are the booking start dates and booking end dates of the apartments with type code \"Duplex\"?", "question_toks": ["What", "are", "the", "booking", "start", "dates", "and", "booking", "end", "dates", "of", "the", "apartments", "with", "type", "code", "\"", "Duplex", "\"?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"duplex\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1222", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0026", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_start_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.apt_type_code = \"duplex\"", "query_toks": ["SELECT", "T1", ".", "booking_start_date", ",", "T1", ".", "booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T2", ".", "apt_type_code", "=", "``", "duplex", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "booking_start_date", ",", "T1", ".", "booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T2", ".", "apt_type_code", "=", "value"], "question": "Return the booking start date and booking end date for the apartments that have type code \"Duplex\".", "question_toks": ["Return", "the", "booking", "start", "date", "and", "booking", "end", "date", "for", "the", "apartments", "that", "have", "type", "code", "\"", "Duplex", "\"."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"duplex\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1223", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0027", "db_id": "behavior_monitoring", "query": "select t1.datetime_detention_start , datetime_detention_end from detention as t1 join teachers as t2 on t1.teacher_id = t2.teacher_id where t2.last_name = \"schultz\"", "query_toks": ["SELECT", "T1", ".", "datetime_detention_start", ",", "datetime_detention_end", "FROM", "Detention", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1", ".", "teacher_id", "=", "T2", ".", "teacher_id", "WHERE", "T2", ".", "last_name", "=", "``", "schultz", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "datetime_detention_start", ",", "datetime_detention_end", "FROM", "Detention", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1", ".", "teacher_id", "=", "T2", ".", "teacher_id", "WHERE", "T2", ".", "last_name", "=", "value"], "question": "Find the detention datetime start and detention datetime end of teachers with last name \"Schultz\".", "question_toks": ["Find", "the", "detention", "datetime", "start", "and", "detention", "datetime", "end", "of", "teachers", "with", "last", "name", "\"", "Schultz", "\"."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 51, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 52, false], null]], [0, [0, [0, 53, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"schultz\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3115", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "column_overlapping_0028", "db_id": "customer_complaints", "query": "select address_line_1 , address_line_2 from customers where email_address = \"vbogisich@example.org\"", "query_toks": ["SELECT", "address_line_1", ",", "address_line_2", "FROM", "customers", "WHERE", "email_address", "=", "``", "vbogisich", "@", "example", ".", "org", "''"], "query_toks_no_value": ["SELECT", "address_line_1", ",", "address_line_2", "FROM", "customers", "WHERE", "email_address", "=", "value", "@", "example", ".", "org"], "question": "Find the address line 1 and address line 2 of the customer with email \"vbogisich@example.org\".", "question_toks": ["Find", "the", "address", "line", "1", "and", "address", "line", "2", "of", "the", "customer", "with", "email", "\"", "vbogisich", "@", "example", ".", "org", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"vbogisich@example.org\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5806", "is_simplification": true, "simplifications_tags": ["COLUMN_OVERLAPPING"]}, {"id": "non_strict_inequality_0000", "db_id": "bike_1", "query": "select date , zip_code from weather", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather"], "query_toks_no_value": ["SELECT", "date", ",", "zip_code", "FROM", "weather"], "question": "What zip codes have a stations and when did it reach that temperature?", "question_toks": ["What", "zip", "codes", "have", "a", "stations", "and", "when", "did", "it", "reach", "that", "temperature", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0154", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0001", "db_id": "browser_web", "query": "select id , name from web_client_accelerator", "query_toks": ["SELECT", "id", ",", "Name", "FROM", "web_client_accelerator"], "query_toks_no_value": ["SELECT", "id", ",", "Name", "FROM", "web_client_accelerator"], "question": "What are the ids and names of the web accelerators?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "web", "accelerators", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1833", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0002", "db_id": "chinook_1", "query": "select firstname , supportrepid from customer", "query_toks": ["SELECT", "FirstName", ",", "SupportRepId", "FROM", "CUSTOMER"], "query_toks_no_value": ["SELECT", "FirstName", ",", "SupportRepId", "FROM", "CUSTOMER"], "question": "What are the first names and support rep ids for employees?", "question_toks": ["What", "are", "the", "first", "names", "and", "support", "rep", "ids", "for", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0870", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0003", "db_id": "chinook_1", "query": "select artistid, name from artist order by name asc;", "query_toks": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1", ".", "ArtistId", "=", "T2", ".", "ArtistID", "ORDER", "BY", "T2", ".", "Name"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1", ".", "ArtistId", "=", "T2", ".", "ArtistID", "ORDER", "BY", "T2", ".", "Name"], "question": "What are the names and ids of artists, listed in alphabetical order?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "artists", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0876", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0004", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema", "query_toks": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema"], "query_toks_no_value": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema"], "question": "Show average, minimum, and maximum capacity for all the cinemas.", "question_toks": ["Show", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_non_strict_inequality_0004", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0005", "db_id": "concert_singer", "query": "select name , capacity from stadium group by stadium_id order by count(*) desc limit 1", "query_toks": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "GROUP", "BY", "stadium_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "GROUP", "BY", "stadium_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0006", "db_id": "culture_company", "query": "select title , director from movie order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "title", ",", "director", "FROM", "movie", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "question": "Return title and director of the movie released that had the highest worldwide gross.", "question_toks": ["Return", "title", "and", "director", "of", "the", "movie", "released", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_non_strict_inequality_0006", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0007", "db_id": "customers_and_invoices", "query": "select order_id , order_details from orders", "query_toks": ["SELECT", "order_id", ",", "order_details", "FROM", "Orders"], "query_toks_no_value": ["SELECT", "order_id", ",", "order_details", "FROM", "Orders"], "question": "Return the order ids and details for orderes.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "orderes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_non_strict_inequality_0007", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0008", "db_id": "customers_and_invoices", "query": "select customer_id, customer_first_name from customers;", "query_toks": ["SELECT", "T2", ".", "customer_first_name", ",", "T1", ".", "customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id"], "query_toks_no_value": ["SELECT", "T2", ".", "customer_first_name", ",", "T1", ".", "customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id"], "question": "What are the first names and ids for customers?", "question_toks": ["What", "are", "the", "first", "names", "and", "ids", "for", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1572", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0009", "db_id": "customers_and_invoices", "query": "select account_id, account_name from accounts;", "query_toks": ["SELECT", "T1", ".", "account_id", ",", "T2", ".", "account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "account_id", "=", "T2", ".", "account_id"], "query_toks_no_value": ["SELECT", "T1", ".", "account_id", ",", "T2", ".", "account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "account_id", "=", "T2", ".", "account_id"], "question": "What are the ids and names of accounts?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1594", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0010", "db_id": "dog_kennels", "query": "select professional_id , role_code , first_name from professionals", "query_toks": ["SELECT", "professional_id", ",", "role_code", ",", "first_name", "FROM", "Professionals"], "query_toks_no_value": ["SELECT", "professional_id", ",", "role_code", ",", "first_name", "FROM", "Professionals"], "question": "What are the id, role, and first name of the professionals?", "question_toks": ["What", "are", "the", "id", ",", "role", ",", "and", "first", "name", "of", "the", "professionals", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0933", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0011", "db_id": "e_learning", "query": "select author_id, address_line_1 from course_authors_and_tutors;", "query_toks": ["SELECT", "T1", ".", "address_line_1", ",", "T2", ".", "author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1", ".", "author_id", "=", "T2", ".", "author_id"], "query_toks_no_value": ["SELECT", "T1", ".", "address_line_1", ",", "T2", ".", "author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1", ".", "author_id", "=", "T2", ".", "author_id"], "question": "Give me their addresses and author IDs.", "question_toks": ["Give", "me", "their", "addresses", "and", "author", "IDs", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3809", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0012", "db_id": "hr_1", "query": "select * from job_history as t1 join employees as t2 on t1.employee_id = t2.employee_id", "query_toks": ["SELECT", "*", "FROM", "job_history", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1", ".", "employee_id", "=", "T2", ".", "employee_id"], "query_toks_no_value": ["SELECT", "*", "FROM", "job_history", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1", ".", "employee_id", "=", "T2", ".", "employee_id"], "question": "What is all the job history info done by employees?", "question_toks": ["What", "is", "all", "the", "job", "history", "info", "done", "by", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3466", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0013", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "EXCEPT", "SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "EXCEPT", "SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "question": "Give me the the customers details and id for the customers who did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customers", "details", "and", "id", "for", "the", "customers", "who", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_non_strict_inequality_0013", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0014", "db_id": "manufactory_1", "query": "select name from products", "query_toks": ["SELECT", "name", "FROM", "products"], "query_toks_no_value": ["SELECT", "name", "FROM", "products"], "question": "Select the name of the products.", "question_toks": ["Select", "the", "name", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5326", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0015", "db_id": "manufactory_1", "query": "select count(*) from products", "query_toks": ["SELECT", "count", "(*)", "FROM", "products"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "products"], "question": "Compute the number of products.", "question_toks": ["Compute", "the", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5334", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0016", "db_id": "manufactory_1", "query": "select name , price from products order by price desc , name asc", "query_toks": ["SELECT", "name", ",", "price", "FROM", "products", "ORDER", "BY", "price", "DESC", ",", "name", "ASC"], "query_toks_no_value": ["SELECT", "name", ",", "price", "FROM", "products", "ORDER", "BY", "price", "DESC", ",", "name", "ASC"], "question": "Select the name and price of all products, and sort first by price (in descending order), and then by name (in ascending order).", "question_toks": ["Select", "the", "name", "and", "price", "of", "all", "products", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", "),", "and", "then", "by", "name", "(", "in", "ascending", "order", ")."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null], [0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5336", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0017", "db_id": "manufactory_1", "query": "select name from manufacturers;", "query_toks": ["SELECT", "name", "FROM", "products"], "query_toks_no_value": ["SELECT", "name", "FROM", "products"], "question": "Select the names of manufacturer.", "question_toks": ["Select", "the", "names", "of", "manufacturer", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5344", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0018", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code", "query_toks": ["SELECT", "avg", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code"], "question": "What are the names and average prices of products for manufacturers?", "question_toks": ["What", "are", "the", "names", "and", "average", "prices", "of", "products", "for", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5345", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0019", "db_id": "medicine_enzyme_interaction", "query": "select id , name from medicine", "query_toks": ["SELECT", "id", ",", "Name", "FROM", "medicine"], "query_toks_no_value": ["SELECT", "id", ",", "Name", "FROM", "medicine"], "question": "What are the ids and names of the medicine?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "medicine", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0949", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0020", "db_id": "school_finance", "query": "select school_name from school", "query_toks": ["SELECT", "school_name", "FROM", "school"], "query_toks_no_value": ["SELECT", "school_name", "FROM", "school"], "question": "List all the names of schools with an endowment.", "question_toks": ["List", "all", "the", "names", "of", "schools", "with", "an", "endowment", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1896", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "non_strict_inequality_0021", "db_id": "storm_record", "query": "select name , dates_active , number_deaths from storm", "query_toks": ["SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm"], "query_toks_no_value": ["SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm"], "question": "What are the names, dates active, and number of deaths?", "question_toks": ["What", "are", "the", "names", ",", "dates", "active", ",", "and", "number", "of", "deaths", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2701", "is_simplification": true, "simplifications_tags": ["NON_STRICT_INEQUALITY"]}, {"id": "order_by_count_0000", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format", "query_toks": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format"], "query_toks_no_value": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format"], "question": "Please show the record formats of orchestras.", "question_toks": ["Please", "show", "the", "record", "formats", "of", "orchestras", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0850", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0001", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format", "query_toks": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format"], "query_toks_no_value": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format"], "question": "What are the major record formats of orchestras?", "question_toks": ["What", "are", "the", "major", "record", "formats", "of", "orchestras", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0851", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0002", "db_id": "apartment_rentals", "query": "select apt_type_code , count(*) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "COUNT", "(*)", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "COUNT", "(*)", "ASC"], "query_toks_no_value": ["SELECT", "apt_type_code", ",", "COUNT", "(*)", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "COUNT", "(*)", "ASC"], "question": "Show the apartment type codes and the corresponding number of apartments", "question_toks": ["Show", "the", "apartment", "type", "codes", "and", "the", "corresponding", "number", "of", "apartments"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1254", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0003", "db_id": "apartment_rentals", "query": "select apt_type_code , count(*) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "COUNT", "(*)", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "query_toks_no_value": ["SELECT", "apt_type_code", ",", "COUNT", "(*)", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "question": "Return each apartment type code with the number of apartments having that apartment type", "question_toks": ["Return", "each", "apartment", "type", "code", "with", "the", "number", "of", "apartments", "having", "that", "apartment", "type"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1255", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0004", "db_id": "apartment_rentals", "query": "select gender_code , count(*) from guests group by gender_code", "query_toks": ["SELECT", "gender_code", ",", "COUNT", "(*)", "FROM", "Guests", "GROUP", "BY", "gender_code"], "query_toks_no_value": ["SELECT", "gender_code", ",", "COUNT", "(*)", "FROM", "Guests", "GROUP", "BY", "gender_code"], "question": "Show each gender code and the corresponding count of guests", "question_toks": ["Show", "each", "gender", "code", "and", "the", "corresponding", "count", "of", "guests"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1266", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0005", "db_id": "apartment_rentals", "query": "select gender_code , count(*) from guests group by gender_code", "query_toks": ["SELECT", "gender_code", ",", "COUNT", "(*)", "FROM", "Guests"], "query_toks_no_value": ["SELECT", "gender_code", ",", "COUNT", "(*)", "FROM", "Guests"], "question": "Return both the gender codes and counts.", "question_toks": ["Return", "both", "the", "gender", "codes", "and", "counts", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1267", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0006", "db_id": "baseball_1", "query": "select name_first , name_last , player_id from player", "query_toks": ["SELECT", "name_first", ",", "name_last", ",", "player_id", "FROM", "player"], "query_toks_no_value": ["SELECT", "name_first", ",", "name_last", ",", "player_id", "FROM", "player"], "question": "List full name and id of players.", "question_toks": ["List", "full", "name", "and", "id", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3647", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0007", "db_id": "baseball_1", "query": "select name_first , name_last , player_id from player", "query_toks": ["SELECT", "name_first", ",", "name_last", ",", "player_id", "FROM", "player"], "query_toks_no_value": ["SELECT", "name_first", ",", "name_last", ",", "player_id", "FROM", "player"], "question": "Find the first name, last name and id for the players.", "question_toks": ["Find", "the", "first", "name", ",", "last", "name", "and", "id", "for", "the", "players", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3648", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0008", "db_id": "baseball_1", "query": "select birth_country from player group by birth_country", "query_toks": ["SELECT", "birth_country", "FROM", "player", "GROUP", "BY", "birth_country"], "query_toks_no_value": ["SELECT", "birth_country", "FROM", "player", "GROUP", "BY", "birth_country"], "question": "List countries which are the origins of the players.", "question_toks": ["List", "countries", "which", "are", "the", "origins", "of", "the", "players", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 186, false], null]]]], "where": [], "groupBy": [[0, 186, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3649", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0009", "db_id": "behavior_monitoring", "query": "select teacher_id , first_name from teachers", "query_toks": ["SELECT", "teacher_id", ",", "first_name", "FROM", "Teachers"], "query_toks_no_value": ["SELECT", "teacher_id", ",", "first_name", "FROM", "Teachers"], "question": "Find the ids and first names of the teachers?", "question_toks": ["Find", "the", "ids", "and", "first", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3105", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0010", "db_id": "college_1", "query": "select t2.dept_name , t2.dept_address , count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code", "query_toks": ["SELECT", "T2", ".", "dept_name", ",", "T2", ".", "dept_address", ",", "count", "(*)", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1", ".", "dept_code", "=", "T2", ".", "dept_code", "GROUP", "BY", "T1", ".", "dept_code"], "query_toks_no_value": ["SELECT", "T2", ".", "dept_name", ",", "T2", ".", "dept_address", ",", "count", "(*)", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1", ".", "dept_code", "=", "T2", ".", "dept_code", "GROUP", "BY", "T1", ".", "dept_code"], "question": "Find the name, address, number of students in the departments.", "question_toks": ["Find", "the", "name", ",", "address", ",", "number", "of", "students", "in", "the", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3305", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0011", "db_id": "college_1", "query": "select t2.dept_name , t2.dept_address , count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code", "query_toks": ["SELECT", "T2", ".", "dept_name", ",", "T2", ".", "dept_address", ",", "count", "(*)", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1", ".", "dept_code", "=", "T2", ".", "dept_code", "GROUP", "BY", "T1", ".", "dept_code"], "query_toks_no_value": ["SELECT", "T2", ".", "dept_name", ",", "T2", ".", "dept_address", ",", "count", "(*)", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1", ".", "dept_code", "=", "T2", ".", "dept_code", "GROUP", "BY", "T1", ".", "dept_code"], "question": "What is the name, address, and number of students in the departments?", "question_toks": ["What", "is", "the", "name", ",", "address", ",", "and", "number", "of", "students", "in", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3306", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0012", "db_id": "college_3", "query": "select fname , lname from faculty", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "FACULTY"], "query_toks_no_value": ["SELECT", "Fname", ",", "Lname", "FROM", "FACULTY"], "question": "What are the first and last names of the instructors?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "the", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4679", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0013", "db_id": "college_3", "query": "select fname , lname from faculty", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "FACULTY"], "query_toks_no_value": ["SELECT", "Fname", ",", "Lname", "FROM", "FACULTY"], "question": "What are the full names of the instructors?", "question_toks": ["What", "are", "the", "full", "names", "of", "the", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4680", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0014", "db_id": "company_office", "query": "select industry from companies", "query_toks": ["SELECT", "Industry", "FROM", "Companies"], "query_toks_no_value": ["SELECT", "Industry", "FROM", "Companies"], "question": "Please show the industries of companies.", "question_toks": ["Please", "show", "the", "industries", "of", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4571", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0015", "db_id": "customer_complaints", "query": "select first_name from staff", "query_toks": ["SELECT", "first_name", "FROM", "staff"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "staff"], "question": "What is first names of the staff?", "question_toks": ["What", "is", "first", "names", "of", "the", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5810", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0016", "db_id": "customer_complaints", "query": "select first_name from staff", "query_toks": ["SELECT", "first_name", "FROM", "staff"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "staff"], "question": "Return the first names of the staff members.", "question_toks": ["Return", "the", "first", "names", "of", "the", "staff", "members", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5811", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0017", "db_id": "department_store", "query": "select dept_store_id from department_stores;", "query_toks": ["SELECT", "dept_store_chain_id", "FROM", "department_stores"], "query_toks_no_value": ["SELECT", "dept_store_chain_id", "FROM", "department_stores"], "question": "What are the ids of the department store?", "question_toks": ["What", "are", "the", "ids", "of", "the", "department", "store", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4741", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0018", "db_id": "department_store", "query": "select dept_store_chain_id from department_stores", "query_toks": ["SELECT", "dept_store_chain_id", "FROM", "department_stores"], "query_toks_no_value": ["SELECT", "dept_store_chain_id", "FROM", "department_stores"], "question": "Return the ids of the department store.", "question_toks": ["Return", "the", "ids", "of", "the", "department", "store", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4742", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0019", "db_id": "device", "query": "select software_platform from device", "query_toks": ["SELECT", "Software_Platform", "FROM", "device"], "query_toks_no_value": ["SELECT", "Software_Platform", "FROM", "device"], "question": "Please show the software platforms of devices.", "question_toks": ["Please", "show", "the", "software", "platforms", "of", "devices", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5078", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0020", "db_id": "device", "query": "select distinct software_platform from device;", "query_toks": ["SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(*)", "DESC"], "query_toks_no_value": ["SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(*)", "DESC"], "question": "What are the different software platforms for devices?", "question_toks": ["What", "are", "the", "different", "software", "platforms", "for", "devices", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5079", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0021", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["SELECT", "document_name", "FROM", "documents"], "query_toks_no_value": ["SELECT", "document_name", "FROM", "documents"], "question": "Find the list of documents.", "question_toks": ["Find", "the", "list", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4513", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0022", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["SELECT", "document_name", "FROM", "documents"], "query_toks_no_value": ["SELECT", "document_name", "FROM", "documents"], "question": "What are the names of documents?", "question_toks": ["What", "are", "the", "names", "of", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4514", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0023", "db_id": "e_learning", "query": "select test_result , count(*) from student_tests_taken group by test_result", "query_toks": ["SELECT", "test_result", ",", "COUNT", "(*)", "FROM", "Student_Tests_Taken", "GROUP", "BY", "test_result"], "query_toks_no_value": ["SELECT", "test_result", ",", "COUNT", "(*)", "FROM", "Student_Tests_Taken", "GROUP", "BY", "test_result"], "question": "List each test result and its count.", "question_toks": ["List", "each", "test", "result", "and", "its", "count", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3800", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0024", "db_id": "e_learning", "query": "select t1.subject_id , t2.subject_name , count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id", "query_toks": ["SELECT", "T1", ".", "subject_id", ",", "T2", ".", "subject_name", ",", "COUNT", "(*)", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1", ".", "subject_id", "=", "T2", ".", "subject_id", "GROUP", "BY", "T1", ".", "subject_id"], "query_toks_no_value": ["SELECT", "T1", ".", "subject_id", ",", "T2", ".", "subject_name", ",", "COUNT", "(*)", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1", ".", "subject_id", "=", "T2", ".", "subject_id", "GROUP", "BY", "T1", ".", "subject_id"], "question": "Find the subject ID, name of subject and the corresponding number of courses for each subject", "question_toks": ["Find", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "corresponding", "number", "of", "courses", "for", "each", "subject"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3816", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0025", "db_id": "e_learning", "query": "select t1.subject_id , t2.subject_name , count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id", "query_toks": ["SELECT", "T1", ".", "subject_id", ",", "T2", ".", "subject_name", ",", "COUNT", "(*)", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1", ".", "subject_id", "=", "T2", ".", "subject_id", "GROUP", "BY", "T1", ".", "subject_id"], "query_toks_no_value": ["SELECT", "T1", ".", "subject_id", ",", "T2", ".", "subject_name", ",", "COUNT", "(*)", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1", ".", "subject_id", "=", "T2", ".", "subject_id", "GROUP", "BY", "T1", ".", "subject_id"], "question": "List the subject ID, name of subject and the number of courses available for each subject", "question_toks": ["List", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "number", "of", "courses", "available", "for", "each", "subject"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3817", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0026", "db_id": "farm", "query": "select status from city", "query_toks": ["SELECT", "Status", "FROM", "city"], "query_toks_no_value": ["SELECT", "Status", "FROM", "city"], "question": "Please show the different statuses of cities.", "question_toks": ["Please", "show", "the", "different", "statuses", "of", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0044", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0027", "db_id": "farm", "query": "select status from city", "query_toks": ["SELECT", "Status", "FROM", "city"], "query_toks_no_value": ["SELECT", "Status", "FROM", "city"], "question": "Return the different statuses of cities", "question_toks": ["Return", "the", "different", "statuses", "of", "cities"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0045", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0028", "db_id": "flight_1", "query": "select name, distance from aircraft where distance > 5000;", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "Certificate", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T2", ".", "aid", "=", "T1", ".", "aid", "WHERE", "T2", ".", "distance", ">", "5000", "GROUP", "BY", "T1", ".", "aid"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "Certificate", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T2", ".", "aid", "=", "T1", ".", "aid", "WHERE", "T2", ".", "distance", ">", "value", "GROUP", "BY", "T1", ".", "aid"], "question": "Show the name and distance of the aircrafts with more than 5000 distance", "question_toks": ["Show", "the", "name", "and", "distance", "of", "the", "aircrafts", "with", "more", "than", "5000", "distance"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0433", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0029", "db_id": "flight_4", "query": "select country , count(*) from airlines group by country", "query_toks": ["SELECT", "country", ",", "count", "(*)", "FROM", "airlines", "GROUP", "BY", "country"], "query_toks_no_value": ["SELECT", "country", ",", "count", "(*)", "FROM", "airlines", "GROUP", "BY", "country"], "question": "List all countries and their number of airlines.", "question_toks": ["List", "all", "countries", "and", "their", "number", "of", "airlines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6845", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0030", "db_id": "flight_4", "query": "select country , count(*) from airlines group by country", "query_toks": ["SELECT", "country", ",", "count", "(*)", "FROM", "airlines", "GROUP", "BY", "country"], "query_toks_no_value": ["SELECT", "country", ",", "count", "(*)", "FROM", "airlines", "GROUP", "BY", "country"], "question": "How many airlines operate out of each country?", "question_toks": ["How", "many", "airlines", "operate", "out", "of", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6846", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0031", "db_id": "gas_company", "query": "select location , count(*) from gas_station group by location", "query_toks": ["SELECT", "LOCATION", ",", "count", "(*)", "FROM", "gas_station", "GROUP", "BY", "LOCATION"], "query_toks_no_value": ["SELECT", "LOCATION", ",", "count", "(*)", "FROM", "gas_station", "GROUP", "BY", "LOCATION"], "question": "Show all locations and the number of gas stations in each location.", "question_toks": ["Show", "all", "locations", "and", "the", "number", "of", "gas", "stations", "in", "each", "location", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2017", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0032", "db_id": "gas_company", "query": "select location , count(*) from gas_station group by location", "query_toks": ["SELECT", "LOCATION", ",", "count", "(*)", "FROM", "gas_station", "GROUP", "BY", "LOCATION"], "query_toks_no_value": ["SELECT", "LOCATION", ",", "count", "(*)", "FROM", "gas_station", "GROUP", "BY", "LOCATION"], "question": "For each location, how many gas stations are there?", "question_toks": ["For", "each", "location", ",", "how", "many", "gas", "stations", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2018", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0033", "db_id": "match_season", "query": "select college from match_season group by college", "query_toks": ["SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College"], "query_toks_no_value": ["SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College"], "question": "Show colleges of players in match seasons.", "question_toks": ["Show", "colleges", "of", "players", "in", "match", "seasons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1098", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0034", "db_id": "medicine_enzyme_interaction", "query": "select id, name, fda_approved from medicine;", "query_toks": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", ",", "T1", ".", "FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id"], "query_toks_no_value": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", ",", "T1", ".", "FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id"], "question": "What are the ids, names and FDA approval status of medicines?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "FDA", "approval", "status", "of", "medicines", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0951", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0035", "db_id": "medicine_enzyme_interaction", "query": "select id, name, fda_approved from medicine;", "query_toks": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", ",", "T1", ".", "FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id"], "query_toks_no_value": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", ",", "T1", ".", "FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id"], "question": "What are the ids, names, and FDA approval status for medicines?", "question_toks": ["What", "are", "the", "ids", ",", "names", ",", "and", "FDA", "approval", "status", "for", "medicines", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0952", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0036", "db_id": "mountain_photos", "query": "select t1.name , count(*) from camera_lens as t1 join photos as t2 on t1.id = t2.camera_lens_id group by t1.id", "query_toks": ["SELECT", "T1", ".", "name", ",", "count", "(*)", "FROM", "camera_lens", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "camera_lens_id", "GROUP", "BY", "T1", ".", "id"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "count", "(*)", "FROM", "camera_lens", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "camera_lens_id", "GROUP", "BY", "T1", ".", "id"], "question": "What is the name of each camera lens and the number of photos taken by it? ", "question_toks": ["What", "is", "the", "name", "of", "each", "camera", "lens", "and", "the", "number", "of", "photos", "taken", "by", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3727", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0037", "db_id": "music_1", "query": "select t1.artist_name , count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name", "query_toks": ["SELECT", "T1", ".", "artist_name", ",", "count", "(*)", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "artist_name", "=", "T2", ".", "artist_name", "GROUP", "BY", "T2", ".", "artist_name"], "query_toks_no_value": ["SELECT", "T1", ".", "artist_name", ",", "count", "(*)", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "artist_name", "=", "T2", ".", "artist_name", "GROUP", "BY", "T2", ".", "artist_name"], "question": "Find the names and number of works of the artists.", "question_toks": ["Find", "the", "names", "and", "number", "of", "works", "of", "the", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3609", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0038", "db_id": "music_4", "query": "select result , count(*) from music_festival group by result", "query_toks": ["SELECT", "RESULT", ",", "COUNT", "(*)", "FROM", "music_festival", "GROUP", "BY", "RESULT"], "query_toks_no_value": ["SELECT", "RESULT", ",", "COUNT", "(*)", "FROM", "music_festival", "GROUP", "BY", "RESULT"], "question": "How many music festivals have had each kind of result?", "question_toks": ["How", "many", "music", "festivals", "have", "had", "each", "kind", "of", "result", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6200", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT"]}, {"id": "order_by_count_0039", "db_id": "store_1", "query": "select billing_country , count(*) from invoices group by billing_country", "query_toks": ["SELECT", "billing_country", ",", "COUNT", "(*)", "FROM", "invoices", "GROUP", "BY", "billing_country"], "query_toks_no_value": ["SELECT", "billing_country", ",", "COUNT", "(*)", "FROM", "invoices", "GROUP", "BY", "billing_country"], "question": "List country name and number of invoices.", "question_toks": ["List", "country", "name", "and", "number", "of", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 44, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 44, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0537", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0040", "db_id": "wine_1", "query": "select t2.winery from grapes as t1 join wine as t2 on t1.grape = t2.grape where t1.color = \"white\" group by t2.winery", "query_toks": ["SELECT", "T2", ".", "Winery", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "GRAPE", "=", "T2", ".", "GRAPE", "WHERE", "T1", ".", "Color", "=", "``", "white", "''", "GROUP", "BY", "T2", ".", "Winery"], "query_toks_no_value": ["SELECT", "T2", ".", "Winery", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "GRAPE", "=", "T2", ".", "GRAPE", "WHERE", "T1", ".", "Color", "=", "value", "GROUP", "BY", "T2", ".", "Winery"], "question": "Which wineries produce white grapes?", "question_toks": ["Which", "wineries", "produce", "white", "grapes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"white\"", null]], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6588", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"]}, {"id": "order_by_count_0041", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "T2", ".", "capacity", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "year", ">=", "value", "GROUP", "BY", "T2", ".", "stadium_id"], "question": "Show the stadium name and capacity of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0042", "db_id": "concert_singer", "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013", "query_toks": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "2013", "group", "by", "t2", ".", "stadium_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "value", "group", "by", "t2", ".", "stadium_id"], "question": "What is the name and capacity of the stadiums after 2013 ?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "of", "the", "stadiums", "after", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], 2013.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0025", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0043", "db_id": "dog_kennels", "query": "select owner_id, first_name, last_name from owners;", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "List the owner id, first name and last name.", "question_toks": ["List", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0930", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0044", "db_id": "dog_kennels", "query": "select owner_id, first_name, last_name from owners;", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Return the owner id, first name and last name of the owner.", "question_toks": ["Return", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "of", "the", "owner", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0931", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0045", "db_id": "flight_2", "query": "select airportcode from airports", "query_toks": ["SELECT", "AirportCode", "FROM", "AIRPORTS"], "query_toks_no_value": ["SELECT", "AirportCode", "FROM", "AIRPORTS"], "question": "What is the code of airport?", "question_toks": ["What", "is", "the", "code", "of", "airport", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0227", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0046", "db_id": "museum_visit", "query": "select museum_id, name from museum;", "query_toks": ["SELECT", "t2", ".", "Museum_ID", ",", "t1", ".", "name", "FROM", "museum", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1", ".", "Museum_ID", "=", "t2", ".", "Museum_ID"], "query_toks_no_value": ["SELECT", "t2", ".", "Museum_ID", ",", "t1", ".", "name", "FROM", "museum", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1", ".", "Museum_ID", "=", "t2", ".", "Museum_ID"], "question": "What are the id and name of the museum?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "museum", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0421", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0047", "db_id": "voter_2", "query": "select city_code from student group by city_code", "query_toks": ["SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code"], "query_toks_no_value": ["SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code"], "question": "What is the city_code of the cities?", "question_toks": ["What", "is", "the", "city_code", "of", "the", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5512", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0048", "db_id": "voter_2", "query": "select city_code from student;", "query_toks": ["SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code"], "query_toks_no_value": ["SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code"], "question": "Return the code of the city that has the each students.", "question_toks": ["Return", "the", "code", "of", "the", "city", "that", "has", "the", "each", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5513", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0049", "db_id": "wine_1", "query": "select t1.area from appellations as t1 join wine as t2 on t1.appelation = t2.appelation group by t2.appelation having t2.year < 2010", "query_toks": ["SELECT", "T1", ".", "Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "Appelation", "=", "T2", ".", "Appelation", "GROUP", "BY", "T2", ".", "Appelation", "HAVING", "T2", ".", "year", "<", "2010"], "query_toks_no_value": ["SELECT", "T1", ".", "Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "Appelation", "=", "T2", ".", "Appelation", "GROUP", "BY", "T2", ".", "Appelation", "HAVING", "T2", ".", "year", "<", "2010"], "question": "What are the areas of the appelation of wines before the year of 2010?", "question_toks": ["What", "are", "the", "areas", "of", "the", "appelation", "of", "wines", "before", "the", "year", "of", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 4, [0, [0, 16, false], null], 2010.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6563", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0050", "db_id": "wine_1", "query": "select t1.area from appellations as t1 join wine as t2 on t1.appelation = t2.appelation group by t2.appelation having t2.year < 2010", "query_toks": ["SELECT", "T1", ".", "Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "Appelation", "=", "T2", ".", "Appelation", "GROUP", "BY", "T2", ".", "Appelation", "HAVING", "T2", ".", "year", "<", "2010"], "query_toks_no_value": ["SELECT", "T1", ".", "Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "Appelation", "=", "T2", ".", "Appelation", "GROUP", "BY", "T2", ".", "Appelation", "HAVING", "T2", ".", "year", "<", "2010"], "question": "What are the areas for the appelation which produced wines prior to 2010?", "question_toks": ["What", "are", "the", "areas", "for", "the", "appelation", "which", "produced", "wines", "prior", "to", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 4, [0, [0, 16, false], null], 2010.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6564", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0051", "db_id": "wine_1", "query": "select t1.county from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t2.score > 90 group by t1.county", "query_toks": ["SELECT", "T1", ".", "County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "Appelation", "=", "T2", ".", "Appelation", "WHERE", "T2", ".", "Score", ">", "90", "GROUP", "BY", "T1", ".", "County"], "query_toks_no_value": ["SELECT", "T1", ".", "County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "Appelation", "=", "T2", ".", "Appelation", "WHERE", "T2", ".", "Score", ">", "value", "GROUP", "BY", "T1", ".", "County"], "question": "Find the counties produces wines with score higher than 90.", "question_toks": ["Find", "the", "counties", "produces", "wines", "with", "score", "higher", "than", "90", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 90.0, null]], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6597", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0052", "db_id": "wine_1", "query": "select t1.county from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t2.score > 90 group by t1.county", "query_toks": ["SELECT", "T1", ".", "County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "Appelation", "=", "T2", ".", "Appelation", "WHERE", "T2", ".", "Score", ">", "90", "GROUP", "BY", "T1", ".", "County"], "query_toks_no_value": ["SELECT", "T1", ".", "County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1", ".", "Appelation", "=", "T2", ".", "Appelation", "WHERE", "T2", ".", "Score", ">", "value", "GROUP", "BY", "T1", ".", "County"], "question": "What are the counties that produces wines scoring higher than 90?", "question_toks": ["What", "are", "the", "counties", "that", "produces", "wines", "scoring", "higher", "than", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 90.0, null]], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6598", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0053", "db_id": "workshop_paper", "query": "select college from submission group by college ", "query_toks": ["SELECT", "College", "FROM", "submission", "GROUP", "BY", "College"], "query_toks_no_value": ["SELECT", "College", "FROM", "submission", "GROUP", "BY", "College"], "question": "Show the colleges of authors of submissions.", "question_toks": ["Show", "the", "colleges", "of", "authors", "of", "submissions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5828", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0054", "db_id": "wrestler", "query": "select reign from wrestler group by reign", "query_toks": ["SELECT", "Reign", "FROM", "wrestler", "GROUP", "BY", "Reign"], "query_toks_no_value": ["SELECT", "Reign", "FROM", "wrestler", "GROUP", "BY", "Reign"], "question": "Please show the reigns of wrestlers.", "question_toks": ["Please", "show", "the", "reigns", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1872", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0055", "db_id": "voter_1", "query": "select t1.area_code, t2.phone_number from area_code_state as t1 join votes as t2 on t1.state = t2.state", "query_toks": ["SELECT", "T1", ".", "area_code", "FROM", "area_code_state", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1", ".", "state", "=", "T2", ".", "state", "GROUP", "BY", "T1", ".", "area_code"], "query_toks_no_value": ["SELECT", "T1", ".", "area_code", "FROM", "area_code_state", "AS", "T1", "JOIN", "votes", "AS", "T2", "ON", "T1", ".", "state", "=", "T2", ".", "state", "GROUP", "BY", "T1", ".", "area_code"], "question": "What are the area codes and numbers of voters voted?", "question_toks": ["What", "are", "the", "area", "codes", "and", "numbers", "of", "voters", "voted", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0698", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0056", "db_id": "tvshow", "query": "select language , count(*) from tv_channel", "query_toks": ["SELECT", "LANGUAGE", ",", "count", "(*)", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "LANGUAGE", ",", "count", "(*)", "FROM", "TV_Channel"], "question": "List language and number of TV Channel.", "question_toks": ["List", "language", "and", "number", "of", "TV", "Channel", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0605", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0057", "db_id": "wta_1", "query": "select year, count(*) from matches group by year;", "query_toks": ["SELECT", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["SELECT", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR"], "question": "Years and number of matches", "question_toks": ["Years", "and", "number", "of", "matches"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0462", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0058", "db_id": "wta_1", "query": "select winner_name , winner_rank_points from matches group by winner_name", "query_toks": ["SELECT", "winner_name", ",", "winner_rank_points", "FROM", "matches", "GROUP", "BY", "winner_name"], "query_toks_no_value": ["SELECT", "winner_name", ",", "winner_rank_points", "FROM", "matches", "GROUP", "BY", "winner_name"], "question": "Names and rank points.", "question_toks": ["Names", "and", "rank", "points", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]]]], "where": [], "groupBy": [[0, 34, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0463", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "order_by_count_0059", "db_id": "wta_1", "query": "select country_code from players group by country_code ", "query_toks": ["SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code"], "query_toks_no_value": ["SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code"], "question": "find the codes of the countries and number of players.", "question_toks": ["find", "the", "codes", "of", "the", "countries", "and", "number", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0475", "is_simplification": true, "simplifications_tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"]}, {"id": "dejoin_from_4_to_3_0000", "db_id": "college_1_minus_1_0", "query": "select t1.emp_fname , t3.prof_office , t2.crs_description , t4.dept_name from class_employee as t1 join course as t2 on t1.crs_code = t2.crs_code join professor as t3 on t1.prof_num = t3.emp_num join department as t4 on t3.dept_code = t4.dept_code", "query_toks": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", ",", "t4.dept_name", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num", "join", "department", "as", "t4", "on", "t3.dept_code", "=", "t4.dept_code"], "query_toks_no_value": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", ",", "t4.dept_name", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num", "join", "department", "as", "t4", "on", "t3.dept_code", "=", "t4.dept_code"], "question": "Find the first names and offices of all instructors who have taught some course and the course description and the department name.", "question_toks": ["Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course", "description", "and", "the", "department", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 27, false], null]], [0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "train_3315", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0001", "db_id": "college_1_minus_1_0", "query": "select t1.emp_fname , t3.prof_office , t2.crs_description , t4.dept_name from class_employee as t1 join course as t2 on t1.crs_code = t2.crs_code join professor as t3 on t1.prof_num = t3.emp_num join department as t4 on t3.dept_code = t4.dept_code", "query_toks": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", ",", "t4.dept_name", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num", "join", "department", "as", "t4", "on", "t3.dept_code", "=", "t4.dept_code"], "query_toks_no_value": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", ",", "t4.dept_name", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num", "join", "department", "as", "t4", "on", "t3.dept_code", "=", "t4.dept_code"], "question": "What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?", "question_toks": ["What", "are", "the", "first", "names", ",", "office", "locations", ",", "and", "departments", "of", "all", "instructors", ",", "and", "also", "what", "are", "the", "descriptions", "of", "the", "courses", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 27, false], null]], [0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "train_3316", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0002", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "what kind of papers does Luke Zettlemoyer publish", "question_toks": ["what", "kind", "of", "papers", "does", "Luke", "Zettlemoyer", "publish"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0675", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0003", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "Keyphrases used by Luke Zettlemoyer", "question_toks": ["Keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0676", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0004", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "What keywords are in papers by Luke Zettlemoyer ?", "question_toks": ["What", "keywords", "are", "in", "papers", "by", "Luke", "Zettlemoyer", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0677", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0005", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keywords used by Luke Zettlemoyer", "question_toks": ["keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0678", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0006", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "what keywords are used by Luke Zettlemoyer", "question_toks": ["what", "keywords", "are", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0679", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0007", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0680", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0008", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keyphrases by Luke Zettlemoyer", "question_toks": ["keyphrases", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0681", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0009", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "give me the keywords used by Luke Zettlemoyer", "question_toks": ["give", "me", "the", "keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0682", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0010", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "What topic does Luke Zettlemoyer write about ?", "question_toks": ["What", "topic", "does", "Luke", "Zettlemoyer", "write", "about", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0683", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0011", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "what topics does Luke Zettlemoyer publish in", "question_toks": ["what", "topics", "does", "Luke", "Zettlemoyer", "publish", "in"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0684", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0012", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keywords in the papers written by Luke Zettlemoyer", "question_toks": ["keywords", "in", "the", "papers", "written", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0685", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0013", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer .", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0686", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0014", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value"], "question": "topics used by Luke Zettlemoyer", "question_toks": ["topics", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0687", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0015", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'sanjeev arora' order by t2.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t2.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "order", "by", "t2.year", "desc"], "question": "recent research interests of sanjeev arora", "question_toks": ["recent", "research", "interests", "of", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0744", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0016", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'sanjeev arora' order by t2.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t2.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "order", "by", "t2.year", "desc"], "question": "recent papers by sanjeev arora", "question_toks": ["recent", "papers", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0745", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0017", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'sanjeev arora' order by t2.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t2.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "order", "by", "t2.year", "desc"], "question": "recent papers written by sanjeev arora", "question_toks": ["recent", "papers", "written", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0746", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0018", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless convolution paper", "question_toks": ["brian", "curless", "convolution", "paper"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0756", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0019", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution by brian curless", "question_toks": ["convolution", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0757", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0020", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers by brian curless about convolution", "question_toks": ["papers", "by", "brian", "curless", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0758", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0021", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless 's paper about convolution", "question_toks": ["brian", "curless", "'s", "paper", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0759", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0022", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What are the papers of brian curless in convolution ?", "question_toks": ["What", "are", "the", "papers", "of", "brian", "curless", "in", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0760", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0023", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers brian curless wrote about convolution", "question_toks": ["papers", "brian", "curless", "wrote", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0761", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0024", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless 's papers on convolution", "question_toks": ["brian", "curless", "'s", "papers", "on", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0762", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0025", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What is the paper about convolution from brian curless ?", "question_toks": ["What", "is", "the", "paper", "about", "convolution", "from", "brian", "curless", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0763", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0026", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers by brian curless in convolution topic", "question_toks": ["papers", "by", "brian", "curless", "in", "convolution", "topic"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0764", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0027", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "I want the papers on keyphrase0 by brian curless", "question_toks": ["I", "want", "the", "papers", "on", "keyphrase0", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0765", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0028", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution papers by brian curless", "question_toks": ["convolution", "papers", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0766", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0029", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What papers has brian curless written on convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "on", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0767", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0030", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What papers has brian curless written about convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "about", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0768", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0031", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution paper by brian curless", "question_toks": ["convolution", "paper", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0769", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0032", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorid , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorid", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "Does brian curless do convolution ?", "question_toks": ["Does", "brian", "curless", "do", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0770", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0033", "db_id": "scholar_minus_1_1", "query": "select distinct t1.datasetid , t3.year from paperdataset_dataset as t1 join paperkeyphrase as t2 on t1.paperid = t2.paperid join paper as t3 on t1.paperid = t3.paperid join keyphrase as t4 on t2.keyphraseid = t4.keyphraseid where t4.keyphrasename = 'deep learning' order by t3.year asc ;", "query_toks": ["select", "distinct", "t1.datasetid", ",", "t3.year", "from", "paperdataset_dataset", "as", "t1", "join", "paperkeyphrase", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t2.keyphraseid", "=", "t4.keyphraseid", "where", "t4.keyphrasename", "=", "``", "deep", "learning", "''", "order", "by", "t3.year", "asc", ";"], "query_toks_no_value": ["select", "distinct", "t1.datasetid", ",", "t3.year", "from", "paperdataset_dataset", "as", "t1", "join", "paperkeyphrase", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t2.keyphraseid", "=", "t4.keyphraseid", "where", "t4.keyphrasename", "=", "value", "order", "by", "t3.year", "asc"], "question": "what was the first deep learning paper ?", "question_toks": ["what", "was", "the", "first", "deep", "learning", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 6], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0851", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0034", "db_id": "scholar_minus_1_1", "query": "select distinct t1.datasetid , t3.year from paperdataset_dataset as t1 join paperkeyphrase as t2 on t1.paperid = t2.paperid join paper as t3 on t1.paperid = t3.paperid join keyphrase as t4 on t2.keyphraseid = t4.keyphraseid where t4.keyphrasename = 'deep learning' order by t3.year asc ;", "query_toks": ["select", "distinct", "t1.datasetid", ",", "t3.year", "from", "paperdataset_dataset", "as", "t1", "join", "paperkeyphrase", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t2.keyphraseid", "=", "t4.keyphraseid", "where", "t4.keyphrasename", "=", "``", "deep", "learning", "''", "order", "by", "t3.year", "asc", ";"], "query_toks_no_value": ["select", "distinct", "t1.datasetid", ",", "t3.year", "from", "paperdataset_dataset", "as", "t1", "join", "paperkeyphrase", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t2.keyphraseid", "=", "t4.keyphraseid", "where", "t4.keyphrasename", "=", "value", "order", "by", "t3.year", "asc"], "question": "what year was the first deep learning paper published ?", "question_toks": ["what", "year", "was", "the", "first", "deep", "learning", "paper", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 6], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0852", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0035", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t3.citingpaperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join cite as t3 on t2.paperid = t3.citedpaperid join author as t4 on t2.authorid = t4.authorid where t4.authorname = 'dan makumbi' and t1.keyphrasename = 'genetic identity' ;", "query_toks": ["select", "distinct", "count", "(", "t3.citingpaperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "cite", "as", "t3", "on", "t2.paperid", "=", "t3.citedpaperid", "join", "author", "as", "t4", "on", "t2.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "dan", "makumbi", "''", "and", "t1.keyphrasename", "=", "``", "genetic", "identity", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3.citingpaperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "cite", "as", "t3", "on", "t2.paperid", "=", "t3.citedpaperid", "join", "author", "as", "t4", "on", "t2.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many citations does Dan Makumbi 's Genetic Identity paper have ?", "question_toks": ["How", "many", "citations", "does", "Dan", "Makumbi", "'s", "Genetic", "Identity", "paper", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"dan makumbi\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"genetic identity\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0914", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0036", "db_id": "scholar_minus_1_1", "query": "select distinct count ( t2.paperid ) from paperdataset_dataset as t1 join paper as t2 on t1.paperid = t2.paperid join paperkeyphrase as t3 on t2.paperid = t3.paperid join keyphrase as t4 on t3.keyphraseid = t4.keyphraseid where t1.datasetname = 'imagenet' and t4.keyphrasename = 'deep learning' ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paperkeyphrase", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t3.keyphraseid", "=", "t4.keyphraseid", "where", "t1.datasetname", "=", "``", "imagenet", "''", "and", "t4.keyphrasename", "=", "``", "deep", "learning", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paperkeyphrase", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "keyphrase", "as", "t4", "on", "t3.keyphraseid", "=", "t4.keyphraseid", "where", "t1.datasetname", "=", "value", "and", "t4.keyphrasename", "=", "value"], "question": "How many papers related to deep learning cited the dataset ImageNet ?", "question_toks": ["How", "many", "papers", "related", "to", "deep", "learning", "cited", "the", "dataset", "ImageNet", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 8, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"imagenet\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0921", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0037", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorname , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "what are some syntactic parsing papers that chris dyer did not write ?", "question_toks": ["what", "are", "some", "syntactic", "parsing", "papers", "that", "chris", "dyer", "did", "not", "write", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0988", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0038", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorname , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "are there any syntactic parsing papers not written by chris dyer ?", "question_toks": ["are", "there", "any", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0989", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0039", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorname , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "what are syntactic parsing papers not written by chris dyer", "question_toks": ["what", "are", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0990", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0040", "db_id": "scholar_minus_1_0", "query": "select distinct t4.authorname , t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t4.authorname", ",", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "syntactic parsing papers not written by chris dyer", "question_toks": ["syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_0991", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0041", "db_id": "scholar_minus_1_3", "query": "select distinct count ( t2.citingpaperid ) from writes_author as t1 join cite as t2 on t1.paperid = t2.citingpaperid where t1.authorname = 'michael i. jordan' and t1.authorname = 'dan klein' ;", "query_toks": ["select", "distinct", "count", "(", "t2.citingpaperid", ")", "from", "writes_author", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "where", "t1.authorname", "=", "``", "michael", "i.", "jordan", "''", "and", "t1.authorname", "=", "``", "dan", "klein", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.citingpaperid", ")", "from", "writes_author", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "how many papers by dan klein are cited by michael i. jordan", "question_toks": ["how", "many", "papers", "by", "dan", "klein", "are", "cited", "by", "michael", "i.", "jordan"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 17, false], null]]}, "select": [true, [[3, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael i. jordan\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dan klein\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1032", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0042", "db_id": "scholar_minus_1_3", "query": "select distinct count ( t2.citingpaperid ) from writes_author as t1 join cite as t2 on t1.paperid = t2.citingpaperid where t1.authorname = 'michael i. jordan' and t1.authorname = 'dan klein' ;", "query_toks": ["select", "distinct", "count", "(", "t2.citingpaperid", ")", "from", "writes_author", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "where", "t1.authorname", "=", "``", "michael", "i.", "jordan", "''", "and", "t1.authorname", "=", "``", "dan", "klein", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.citingpaperid", ")", "from", "writes_author", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "how many of dan klein 's papers cite michael i. jordan", "question_toks": ["how", "many", "of", "dan", "klein", "'s", "papers", "cite", "michael", "i.", "jordan"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 17, false], null]]}, "select": [true, [[3, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael i. jordan\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dan klein\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1033", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0043", "db_id": "scholar_minus_1_3", "query": "select distinct t1.authorid from writes_author as t1 where t1.authorname = 'ameet soni' and t1.authorname = 'ras bodik' ;", "query_toks": ["select", "distinct", "t1.authorid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ameet", "soni", "''", "and", "t1.authorname", "=", "``", "ras", "bodik", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "who else was on the paper with Ameet Soni and Ras Bodik ?", "question_toks": ["who", "else", "was", "on", "the", "paper", "with", "Ameet", "Soni", "and", "Ras", "Bodik", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ameet soni\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"ras bodik\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1034", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0044", "db_id": "scholar_minus_1_0", "query": "select distinct t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t1.keyphrasename = 'bacterial wilt' and t2.year = 2016 ;", "query_toks": ["select", "distinct", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t1.keyphrasename", "=", "``", "bacterial", "wilt", "''", "and", "t2.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value"], "question": "What authors wrote papers about Bacterial Wilt in 2016 ?", "question_toks": ["What", "authors", "wrote", "papers", "about", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"bacterial wilt\"", null], "and", [false, 2, [0, [0, 13, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1039", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0045", "db_id": "scholar_minus_1_0", "query": "select distinct t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t1.keyphrasename = 'bacterial wilt' and t2.year = 2016 ;", "query_toks": ["select", "distinct", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t1.keyphrasename", "=", "``", "bacterial", "wilt", "''", "and", "t2.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value"], "question": "Who wrote on the topic of Bacterial Wilt in 2016 ?", "question_toks": ["Who", "wrote", "on", "the", "topic", "of", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"bacterial wilt\"", null], "and", [false, 2, [0, [0, 13, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1040", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0046", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , sum ( t2.numcitedby ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian derenzi' group by t1.keyphrasename order by sum ( t2.numcitedby ) desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t2.numcitedby", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t2.numcitedby", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t2.numcitedby", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t2.numcitedby", ")", "desc"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations ?", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [4, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1091", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0047", "db_id": "scholar_minus_1_0", "query": "select distinct t1.keyphrasename , sum ( t2.numcitedby ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'brian derenzi' group by t1.keyphrasename order by sum ( t2.numcitedby ) desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t2.numcitedby", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t2.numcitedby", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t2.numcitedby", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t2.numcitedby", ")", "desc"], "question": "main topics of work by Brian DeRenzi", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]], [4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [4, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1092", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0048", "db_id": "scholar_minus_1_0", "query": "select distinct t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When was Michael Stonebraker GIS Database published ?", "question_toks": ["When", "was", "Michael", "Stonebraker", "GIS", "Database", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1095", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0049", "db_id": "scholar_minus_1_0", "query": "select distinct t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When did Michael Stonebraker publish his GIS Database paper ?", "question_toks": ["When", "did", "Michael", "Stonebraker", "publish", "his", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1096", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0050", "db_id": "scholar_minus_1_0", "query": "select distinct t2.year from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.year", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When does Michael Stonebraker publish the GIS Database paper ?", "question_toks": ["When", "does", "Michael", "Stonebraker", "publish", "the", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1097", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0051", "db_id": "scholar_minus_1_5", "query": "select distinct t1.keyphraseid from paper_paperkeyphrase as t1 join venue as t2 on t1.venueid = t2.venueid join writes as t3 on t1.paperid = t3.paperid join author as t4 on t3.authorid = t4.authorid where t4.authorname = 'dan klein' and t2.venuename = 'emnlp' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paper_paperkeyphrase", "as", "t1", "join", "venue", "as", "t2", "on", "t1.venueid", "=", "t2.venueid", "join", "writes", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "``", "dan", "klein", "''", "and", "t2.venuename", "=", "``", "emnlp", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paper_paperkeyphrase", "as", "t1", "join", "venue", "as", "t2", "on", "t1.venueid", "=", "t2.venueid", "join", "writes", "as", "t3", "on", "t1.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t3.authorid", "=", "t4.authorid", "where", "t4.authorname", "=", "value", "and", "t2.venuename", "=", "value"], "question": "keyphrases used by dan klein in his emnlp papers", "question_toks": ["keyphrases", "used", "by", "dan", "klein", "in", "his", "emnlp", "papers"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 0], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"dan klein\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"emnlp\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1105", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0052", "db_id": "scholar_minus_1_0", "query": "select distinct t2.citingpaperid from paperkeyphrase_keyphrase as t1 join cite as t2 on t1.paperid = t2.citingpaperid join paper as t3 on t2.citedpaperid = t3.paperid join venue as t4 on t3.venueid = t4.venueid where t1.keyphrasename = 'euclidean distance' and t4.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t2.citingpaperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "join", "paper", "as", "t3", "on", "t2.citedpaperid", "=", "t3.paperid", "join", "venue", "as", "t4", "on", "t3.venueid", "=", "t4.venueid", "where", "t1.keyphrasename", "=", "``", "euclidean", "distance", "''", "and", "t4.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.citingpaperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "cite", "as", "t2", "on", "t1.paperid", "=", "t2.citingpaperid", "join", "paper", "as", "t3", "on", "t2.citedpaperid", "=", "t3.paperid", "join", "venue", "as", "t4", "on", "t3.venueid", "=", "t4.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t4.venuename", "=", "value"], "question": "Euclidean Distance papers citing NIPS papers", "question_toks": ["Euclidean", "Distance", "papers", "citing", "NIPS", "papers"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"euclidean distance\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1110", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0053", "db_id": "scholar_minus_1_0", "query": "select distinct t3.title from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join paper as t3 on t2.paperid = t3.paperid join author as t4 on t2.authorid = t4.authorid where t4.authorname like 'ranjit jhala' and t1.keyphrasename = 'liquid haskell' ;", "query_toks": ["select", "distinct", "t3.title", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t2.authorid", "=", "t4.authorid", "where", "t4.authorname", "like", "``", "ranjit", "jhala", "''", "and", "t1.keyphrasename", "=", "``", "liquid", "haskell", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3.title", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "paper", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "join", "author", "as", "t4", "on", "t2.authorid", "=", "t4.authorid", "where", "t4.authorname", "like", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What is the name of Ranjit Jhala 's Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "name", "of", "Ranjit", "Jhala", "'s", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"ranjit jhala\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"liquid haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1132", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0054", "db_id": "yelp_minus_1_0", "query": "select t2.text from category_business as t1 join review as t2 on t1.business_id = t2.business_id join user as t3 on t2.user_id = t3.user_id where t1.category_name = 'italian' and t1.category_name = 'category_category_name1' and t3.name = 'michelle' ;", "query_toks": ["select", "t2.text", "from", "category_business", "as", "t1", "join", "review", "as", "t2", "on", "t1.business_id", "=", "t2.business_id", "join", "user", "as", "t3", "on", "t2.user_id", "=", "t3.user_id", "where", "t1.category_name", "=", "``", "italian", "''", "and", "t1.category_name", "=", "``", "category_category_name1", "''", "and", "t3.name", "=", "``", "michelle", "''", ";"], "query_toks_no_value": ["select", "t2.text", "from", "category_business", "as", "t1", "join", "review", "as", "t2", "on", "t1.business_id", "=", "t2.business_id", "join", "user", "as", "t3", "on", "t2.user_id", "=", "t3.user_id", "where", "t1.category_name", "=", "value", "and", "t1.category_name", "=", "value", "and", "t3.name", "=", "value"], "question": "List all the reviews by Michelle for Italian restaurant", "question_toks": ["List", "all", "the", "reviews", "by", "Michelle", "for", "Italian", "restaurant"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"italian\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"category_category_name1\"", null], "and", [false, 2, [0, [0, 15, false], null], "\"michelle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1146", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0055", "db_id": "academic_minus_1_0", "query": "select t1.keyword from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value"], "question": "return me the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1288", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0056", "db_id": "academic_minus_1_0", "query": "select t2.title from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' and t1.keyword = 'user study' ;", "query_toks": ["select", "t2.title", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.keyword", "=", "``", "user", "study", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value", "and", "t1.keyword", "=", "value"], "question": "return me the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"user study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1292", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0057", "db_id": "academic_minus_1_0", "query": "select t4.name from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t1.keyword = 'relational database' ;", "query_toks": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "``", "relational", "database", "''", ";"], "query_toks_no_value": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "value"], "question": "return me the authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"relational database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1295", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0058", "db_id": "academic_minus_1_2", "query": "select t3.title from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join conference as t4 on t3.cid = t4.cid where t4.name = 'vldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "conference", "as", "t4", "on", "t3.cid", "=", "t4.cid", "where", "t4.name", "=", "``", "vldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "conference", "as", "t4", "on", "t3.cid", "=", "t4.cid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me all the papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"vldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1302", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0059", "db_id": "academic_minus_1_2", "query": "select t3.title from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join journal as t4 on t3.jid = t4.jid where t4.name = 'pvldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me all the papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1303", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0060", "db_id": "academic_minus_1_2", "query": "select t3.title from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join journal as t4 on t3.jid = t4.jid where t4.name = 'pvldb' and t1.name_organization = 'university of michigan' and t3.year > 2000 ;", "query_toks": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", "and", "t3.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t3.title", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value", "and", "t3.year", ">", "value"], "question": "return me all the papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null], "and", [false, 3, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1304", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0061", "db_id": "academic_minus_1_0", "query": "select count ( distinct t1.keyword ) from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' ;", "query_toks": ["select", "count", "(", "distinct", "t1.keyword", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.keyword", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value"], "question": "return me the number of the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 19, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1336", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0062", "db_id": "academic_minus_1_0", "query": "select count ( distinct t2.title ) from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' and t1.keyword = 'user study' ;", "query_toks": ["select", "count", "(", "distinct", "t2.title", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.keyword", "=", "``", "user", "study", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2.title", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value", "and", "t1.keyword", "=", "value"], "question": "return me the number of the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"user study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1340", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0063", "db_id": "academic_minus_1_0", "query": "select count ( distinct t4.name ) from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t1.keyword = 'relational database' ;", "query_toks": ["select", "count", "(", "distinct", "t4.name", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "``", "relational", "database", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t4.name", ")", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "value"], "question": "return me the number of authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"relational database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1343", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0064", "db_id": "academic_minus_1_2", "query": "select count ( distinct t3.title ) from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join conference as t4 on t3.cid = t4.cid where t4.name = 'vldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "conference", "as", "t4", "on", "t3.cid", "=", "t4.cid", "where", "t4.name", "=", "``", "vldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "conference", "as", "t4", "on", "t3.cid", "=", "t4.cid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me the number of papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 4, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"vldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1352", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0065", "db_id": "academic_minus_1_2", "query": "select count ( distinct t3.title ) from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join journal as t4 on t3.jid = t4.jid where t4.name = 'pvldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me the number of papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1353", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0066", "db_id": "academic_minus_1_2", "query": "select count ( distinct t3.title ) from organization_author as t1 join writes as t2 on t1.aid = t2.aid join publication as t3 on t2.pid = t3.pid join journal as t4 on t3.jid = t4.jid where t4.name = 'pvldb' and t1.name_organization = 'university of michigan' and t3.year > 2000 ;", "query_toks": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", "and", "t3.year", ">", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3.title", ")", "from", "organization_author", "as", "t1", "join", "writes", "as", "t2", "on", "t1.aid", "=", "t2.aid", "join", "publication", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "journal", "as", "t4", "on", "t3.jid", "=", "t4.jid", "where", "t4.name", "=", "value", "and", "t1.name_organization", "=", "value", "and", "t3.year", ">", "value"], "question": "return me the number of papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 11], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 34, false], null], "\"university of michigan\"", null], "and", [false, 3, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1354", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0067", "db_id": "academic_minus_1_1", "query": "select t1.name from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t2.year > 2000 ;", "query_toks": ["select", "t1.name", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t2.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t1.name", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t2.year", ">", "value"], "question": "return me the authors who have cooperated with \" H. V. Jagadish \" after 2000 .", "question_toks": ["return", "me", "the", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "after", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 3, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1375", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0068", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1376", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0069", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'yunyao li' and t2.year > 2005 ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "yunyao", "li", "''", "and", "t2.year", ">", "2005", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "and", "t2.year", ">", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Yunyao Li \" after 2005 .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Yunyao", "Li", "``", "after", "2005", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"yunyao li\"", null], "and", [false, 3, [0, [0, 29, false], null], 2005.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1377", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0070", "db_id": "academic_minus_1_1", "query": "select t1.name from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' ;", "query_toks": ["select", "t1.name", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value"], "question": "return me the authors who have cooperated with \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1380", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0071", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' and t2.year < 2000 ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", "and", "t2.year", "<", "2000", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "and", "t2.year", "<", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" before 2000 .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null], "and", [false, 4, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1381", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0072", "db_id": "academic_minus_1_1", "query": "select count ( distinct t2.title ) from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' ;", "query_toks": ["select", "count", "(", "distinct", "t2.title", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2.title", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "return me the number of papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1383", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0073", "db_id": "academic_minus_1_1", "query": "select count ( distinct t2.title ) from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' and t2.year < 2000 ;", "query_toks": ["select", "count", "(", "distinct", "t2.title", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", "and", "t2.year", "<", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2.title", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "and", "t2.year", "<", "value"], "question": "return me the number of papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" before 2000 .", "question_toks": ["return", "me", "the", "number", "of", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[3, [0, [0, 28, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null], "and", [false, 4, [0, [0, 29, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1384", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0074", "db_id": "academic_minus_1_1", "query": "select count ( distinct t1.name ) from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' ;", "query_toks": ["select", "count", "(", "distinct", "t1.name", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.name", ")", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value"], "question": "return me the number of authors who have cooperated with \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1386", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0075", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'h. v. jagadish' and t1.name = 'divesh srivastava' and t2.citation_num > 200 ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.name", "=", "``", "divesh", "srivastava", "''", "and", "t2.citation_num", ">", "200", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "and", "t2.citation_num", ">", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" with more than 200 citations .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "with", "more", "than", "200", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null], "and", [false, 3, [0, [0, 24, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1388", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0076", "db_id": "academic_minus_1_0", "query": "select t4.name from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t1.keyword = 'relational database' group by t4.name order by count ( distinct t2.title ) desc limit 1 ;", "query_toks": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "``", "relational", "database", "''", "group", "by", "t4.name", "order", "by", "count", "(", "distinct", "t2.title", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "value", "group", "by", "t4.name", "order", "by", "count", "(", "distinct", "t2.title", ")", "desc", "limit", "value"], "question": "return me the author who has the most number of papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "author", "who", "has", "the", "most", "number", "of", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"relational database\"", null]], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["desc", [[0, [3, 28, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1389", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0077", "db_id": "academic_minus_1_0", "query": "select t1.keyword from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' group by t1.keyword order by count ( distinct t2.title ) desc limit 1 ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", "group", "by", "t1.keyword", "order", "by", "count", "(", "distinct", "t2.title", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value", "group", "by", "t1.keyword", "order", "by", "count", "(", "distinct", "t2.title", ")", "desc", "limit", "value"], "question": "return me the keyword, which have been contained by the most number of papers by \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keyword", ",", "which", "have", "been", "contained", "by", "the", "most", "number", "of", "papers", "by", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null]], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 28, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1396", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0078", "db_id": "academic_minus_1_1", "query": "select t2.title from writes_author as t1 join publication as t2 on t1.pid = t2.pid where t1.name = 'divesh srivastava' and t1.name = 'h. v. jagadish' order by t2.citation_num desc limit 1 ;", "query_toks": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "``", "divesh", "srivastava", "''", "and", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "order", "by", "t2.citation_num", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t2.title", "from", "writes_author", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value", "order", "by", "t2.citation_num", "desc", "limit", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" with the most number of citations .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "with", "the", "most", "number", "of", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"divesh srivastava\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 24, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1399", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0079", "db_id": "academic_minus_1_0", "query": "select t4.name from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t1.keyword = 'relational database' group by t4.name having count ( distinct t2.title ) > 10 ;", "query_toks": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "``", "relational", "database", "''", "group", "by", "t4.name", "having", "count", "(", "distinct", "t2.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t4.name", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t1.keyword", "=", "value", "group", "by", "t4.name", "having", "count", "(", "distinct", "t2.title", ")", ">", "value"], "question": "return me the authors who have more than 10 papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "more", "than", "10", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"relational database\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 28, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1415", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0080", "db_id": "academic_minus_1_0", "query": "select t1.keyword from publication_keyword_keyword as t1 join publication as t2 on t1.pid = t2.pid join writes as t3 on t2.pid = t3.pid join author as t4 on t3.aid = t4.aid where t4.name = 'h. v. jagadish' group by t1.keyword having count ( distinct t2.title ) > 10 ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "``", "h.", "v.", "jagadish", "''", "group", "by", "t1.keyword", "having", "count", "(", "distinct", "t2.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword", "as", "t1", "join", "publication", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "writes", "as", "t3", "on", "t2.pid", "=", "t3.pid", "join", "author", "as", "t4", "on", "t3.aid", "=", "t4.aid", "where", "t4.name", "=", "value", "group", "by", "t1.keyword", "having", "count", "(", "distinct", "t2.title", ")", ">", "value"], "question": "return me the keywords, which have been contained by more than 10 papers of \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", ",", "which", "have", "been", "contained", "by", "more", "than", "10", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 11], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"h. v. jagadish\"", null]], "groupBy": [[0, 19, false]], "having": [[false, 3, [0, [3, 28, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1420", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0081", "db_id": "imdb_minus_1_2", "query": "select t1.title from movie_made_by as t1 join producer as t2 on t1.pid = t2.pid join written_by as t3 on t1.mid = t3.msid join writer as t4 on t3.wid = t4.wid where t2.name = 'woody allen' and t4.name = 'woody allen' ;", "query_toks": ["select", "t1.title", "from", "movie_made_by", "as", "t1", "join", "producer", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "written_by", "as", "t3", "on", "t1.mid", "=", "t3.msid", "join", "writer", "as", "t4", "on", "t3.wid", "=", "t4.wid", "where", "t2.name", "=", "``", "woody", "allen", "''", "and", "t4.name", "=", "``", "woody", "allen", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "movie_made_by", "as", "t1", "join", "producer", "as", "t2", "on", "t1.pid", "=", "t2.pid", "join", "written_by", "as", "t3", "on", "t1.mid", "=", "t3.msid", "join", "writer", "as", "t4", "on", "t3.wid", "=", "t4.wid", "where", "t2.name", "=", "value", "and", "t4.name", "=", "value"], "question": "Find all movies written and produced by \" Woody Allen \"", "question_toks": ["Find", "all", "movies", "written", "and", "produced", "by", "``", "Woody", "Allen", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 7], ["table_unit", 13], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null], "and", [false, 2, [0, [0, 64, false], null], [0, 55, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"woody allen\"", null], "and", [false, 2, [0, [0, 57, false], null], "\"woody allen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1457", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0082", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'taraneh alidoosti' and t4.name = 'asghar farhadi' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "taraneh", "alidoosti", "''", "and", "t4.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value", "and", "t4.name", "=", "value"], "question": "Find all movies directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \"", "question_toks": ["Find", "all", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1472", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0083", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'taraneh alidoosti' and t4.name = 'asghar farhadi' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "taraneh", "alidoosti", "''", "and", "t4.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value", "and", "t4.name", "=", "value"], "question": "What are all the movies directed by \" Asghar Farhadi \" featuring \" Taraneh Alidoosti \" ?", "question_toks": ["What", "are", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1473", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0084", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'taraneh alidoosti' and t4.name = 'asghar farhadi' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "taraneh", "alidoosti", "''", "and", "t4.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value", "and", "t4.name", "=", "value"], "question": "How many movies are there that are directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \" ?", "question_toks": ["How", "many", "movies", "are", "there", "that", "are", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1474", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0085", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'taraneh alidoosti' and t4.name = 'asghar farhadi' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "taraneh", "alidoosti", "''", "and", "t4.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value", "and", "t4.name", "=", "value"], "question": "List all the movies directed by \" Asghar Farhadi \" in which \" Taraneh Alidoosti \" played", "question_toks": ["List", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "in", "which", "``", "Taraneh", "Alidoosti", "``", "played"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1475", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0086", "db_id": "imdb_minus_1_1", "query": "select t4.name from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.name = 'kate winslet' ;", "query_toks": ["select", "t4.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "``", "kate", "winslet", "''", ";"], "query_toks_no_value": ["select", "t4.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.name", "=", "value"], "question": "Find the directors of all movies featuring \" Kate Winslet \"", "question_toks": ["Find", "the", "directors", "of", "all", "movies", "featuring", "``", "Kate", "Winslet", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kate winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1482", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0087", "db_id": "imdb_minus_1_1", "query": "select t4.name from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join made_by as t3 on t2.mid = t3.msid join producer as t4 on t3.pid = t4.pid where t1.name = 'kate winslet' ;", "query_toks": ["select", "t4.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "where", "t1.name", "=", "``", "kate", "winslet", "''", ";"], "query_toks_no_value": ["select", "t4.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "where", "t1.name", "=", "value"], "question": "Find the producers of all movies in which \" Kate Winslet \" is an actor", "question_toks": ["Find", "the", "producers", "of", "all", "movies", "in", "which", "``", "Kate", "Winslet", "``", "is", "an", "actor"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kate winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1483", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0088", "db_id": "imdb_minus_1_0", "query": "select t4.genre from director_directed_by as t1 join movie as t2 on t1.msid = t2.mid join classification as t3 on t2.mid = t3.msid join genre as t4 on t3.gid = t4.gid where t1.name = 'asghar farhadi' ;", "query_toks": ["select", "t4.genre", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "classification", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "genre", "as", "t4", "on", "t3.gid", "=", "t4.gid", "where", "t1.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t4.genre", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "classification", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "genre", "as", "t4", "on", "t3.gid", "=", "t4.gid", "where", "t1.name", "=", "value"], "question": "what are the genres of movies directed by \" Asghar Farhadi \"", "question_toks": ["what", "are", "the", "genres", "of", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1495", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0089", "db_id": "imdb_minus_1_0", "query": "select t1.name from director_directed_by as t1 join movie as t2 on t1.msid = t2.mid join tags as t3 on t2.mid = t3.msid join keyword as t4 on t3.kid = t4.id where t4.keyword = 'nuclear weapons' ;", "query_toks": ["select", "t1.name", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "tags", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "keyword", "as", "t4", "on", "t3.kid", "=", "t4.id", "where", "t4.keyword", "=", "``", "nuclear", "weapons", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "tags", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "keyword", "as", "t4", "on", "t3.kid", "=", "t4.id", "where", "t4.keyword", "=", "value"], "question": "List all the directors of movies about nuclear weapons", "question_toks": ["List", "all", "the", "directors", "of", "movies", "about", "nuclear", "weapons"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 10], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 46, false], null], "and", [false, 2, [0, [0, 47, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 36, false], null], "\"nuclear weapons\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1498", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0090", "db_id": "imdb_minus_1_0", "query": "select count ( distinct t2.title ) from director_directed_by as t1 join movie as t2 on t1.msid = t2.mid join made_by as t3 on t2.mid = t3.msid join producer as t4 on t3.pid = t4.pid where t1.name = 'quentin tarantino' and t2.release_year < 2010 and t2.release_year > 2002 ;", "query_toks": ["select", "count", "(", "distinct", "t2.title", ")", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "where", "t1.name", "=", "``", "quentin", "tarantino", "''", "and", "t2.release_year", "<", "2010", "and", "t2.release_year", ">", "2002", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2.title", ")", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "where", "t1.name", "=", "value", "and", "t2.release_year", "<", "value", "and", "t2.release_year", ">", "value"], "question": "How many movies did \" Quentin Tarantino \" direct before 2002 and after 2010 ?", "question_toks": ["How", "many", "movies", "did", "``", "Quentin", "Tarantino", "``", "direct", "before", "2002", "and", "after", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 27, false], null]]}, "select": [false, [[3, [0, [0, 41, true], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"quentin tarantino\"", null], "and", [false, 4, [0, [0, 42, false], null], 2010.0, null], "and", [false, 3, [0, [0, 42, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1517", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0091", "db_id": "imdb_minus_1_1", "query": "select count ( distinct t1.name ) from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t1.nationality = 'iran' and t4.name = 'jim jarmusch' ;", "query_toks": ["select", "count", "(", "distinct", "t1.name", ")", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.nationality", "=", "``", "iran", "''", "and", "t4.name", "=", "``", "jim", "jarmusch", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.name", ")", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t1.nationality", "=", "value", "and", "t4.name", "=", "value"], "question": "find the number of actors from Iran who played in \" Jim Jarmusch \" movies", "question_toks": ["find", "the", "number", "of", "actors", "from", "Iran", "who", "played", "in", "``", "Jim", "Jarmusch", "``", "movies"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"iran\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"jim jarmusch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1519", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0092", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'woody strode' and t1.name = 'jason robards' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "woody", "strode", "''", "and", "t1.name", "=", "``", "jason", "robards", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "Find all movies that star both \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "that", "star", "both", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"woody strode\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"jason robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1521", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0093", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'woody strode' and t1.name = 'jason robards' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "woody", "strode", "''", "and", "t1.name", "=", "``", "jason", "robards", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "Find all movies featuring \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "featuring", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"woody strode\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"jason robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1522", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0094", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'woody strode' and t1.name = 'jason robards' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "woody", "strode", "''", "and", "t1.name", "=", "``", "jason", "robards", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "Find all movies featuring both \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "featuring", "both", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"woody strode\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"jason robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1523", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0095", "db_id": "imdb_minus_1_1", "query": "select t2.title from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'woody strode' and t1.name = 'jason robards' ;", "query_toks": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "woody", "strode", "''", "and", "t1.name", "=", "``", "jason", "robards", "''", ";"], "query_toks_no_value": ["select", "t2.title", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value", "and", "t1.name", "=", "value"], "question": "Find all movies featuring \" Jason Robards \" and \" Woody Strode \"", "question_toks": ["Find", "all", "movies", "featuring", "``", "Jason", "Robards", "``", "and", "``", "Woody", "Strode", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"woody strode\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"jason robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1524", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0096", "db_id": "imdb_minus_1_1", "query": "select t1.name from cast_actor as t1 join movie as t2 on t1.msid = t2.mid where t1.name = 'tom hanks' ;", "query_toks": ["select", "t1.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "``", "tom", "hanks", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "where", "t1.name", "=", "value"], "question": "Find all actors who acted in the same movie as \" Tom Hanks \"", "question_toks": ["Find", "all", "actors", "who", "acted", "in", "the", "same", "movie", "as", "``", "Tom", "Hanks", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"tom hanks\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1525", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0097", "db_id": "imdb_minus_1_1", "query": "select t1.name from cast_actor as t1 join movie as t2 on t1.msid = t2.mid join directed_by as t3 on t2.mid = t3.msid join director as t4 on t3.did = t4.did where t4.name = 'quentin tarantino' order by t2.release_year desc limit 1 ;", "query_toks": ["select", "t1.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t4.name", "=", "``", "quentin", "tarantino", "''", "order", "by", "t2.release_year", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.name", "from", "cast_actor", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "directed_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "director", "as", "t4", "on", "t3.did", "=", "t4.did", "where", "t4.name", "=", "value", "order", "by", "t2.release_year", "desc", "limit", "value"], "question": "Find the actors who played in the latest movie by \" Quentin Tarantino \"", "question_toks": ["Find", "the", "actors", "who", "played", "in", "the", "latest", "movie", "by", "``", "Quentin", "Tarantino", "``"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 34, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"quentin tarantino\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 42, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1529", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_4_to_3_0098", "db_id": "imdb_minus_1_0", "query": "select t4.name from director_directed_by as t1 join movie as t2 on t1.msid = t2.mid join made_by as t3 on t2.mid = t3.msid join producer as t4 on t3.pid = t4.pid group by t4.name order by count ( distinct t1.name ) desc limit 1 ;", "query_toks": ["select", "t4.name", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "group", "by", "t4.name", "order", "by", "count", "(", "distinct", "t1.name", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t4.name", "from", "director_directed_by", "as", "t1", "join", "movie", "as", "t2", "on", "t1.msid", "=", "t2.mid", "join", "made_by", "as", "t3", "on", "t2.mid", "=", "t3.msid", "join", "producer", "as", "t4", "on", "t3.pid", "=", "t4.pid", "group", "by", "t4.name", "order", "by", "count", "(", "distinct", "t1.name", ")", "desc", "limit", "value"], "question": "Which producer has worked with the most number of directors ?", "question_toks": ["Which", "producer", "has", "worked", "with", "the", "most", "number", "of", "directors", "?"], "sql": {"from": {"table_units": [["table_unit", 14], ["table_unit", 9], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [], "orderBy": ["desc", [[0, [3, 23, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_3", "DEJOINED_TO_3"], "source": "SIMPLIFIED", "parents_id": "other_1532", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0000", "db_id": "bike_1_minus_1_0", "query": "select count ( * ) from station_trip as t1 where t1.city = 'mountain view' and t1.city = 'palo alto'", "query_toks": ["select", "count", "(", "*", ")", "from", "station_trip", "as", "t1", "where", "t1.city", "=", "``", "mountain", "view", "''", "and", "t1.city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "station_trip", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.city", "=", "value"], "question": "How many trips started from Mountain View city and ended at Palo Alto city?", "question_toks": ["How", "many", "trips", "started", "from", "Mountain", "View", "city", "and", "ended", "at", "Palo", "Alto", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"mountain view\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_0209", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0001", "db_id": "bike_1_minus_1_0", "query": "select count ( * ) from station_trip as t1 where t1.city = 'mountain view' and t1.city = 'palo alto'", "query_toks": ["select", "count", "(", "*", ")", "from", "station_trip", "as", "t1", "where", "t1.city", "=", "``", "mountain", "view", "''", "and", "t1.city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "station_trip", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.city", "=", "value"], "question": "How many trips stated from a station in Mountain View and ended at one in Palo Alto?", "question_toks": ["How", "many", "trips", "stated", "from", "a", "station", "in", "Mountain", "View", "and", "ended", "at", "one", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"mountain view\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_0210", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0002", "db_id": "store_1_minus_1_1", "query": "select t1.name from tracks_invoice_lines as t1 join invoices as t2 on t1.invoice_id = t2.id join customers as t3 on t2.customer_id = t3.id where t3.first_name = 'daan' and t3.last_name = 'peeters' ;", "query_toks": ["select", "t1.name", "from", "tracks_invoice_lines", "as", "t1", "join", "invoices", "as", "t2", "on", "t1.invoice_id", "=", "t2.id", "join", "customers", "as", "t3", "on", "t2.customer_id", "=", "t3.id", "where", "t3.first_name", "=", "``", "daan", "''", "and", "t3.last_name", "=", "``", "peeters", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_invoice_lines", "as", "t1", "join", "invoices", "as", "t2", "on", "t1.invoice_id", "=", "t2.id", "join", "customers", "as", "t3", "on", "t2.customer_id", "=", "t3.id", "where", "t3.first_name", "=", "value", "and", "t3.last_name", "=", "value"], "question": "List all tracks bought by customer Daan Peeters.", "question_toks": ["List", "all", "tracks", "bought", "by", "customer", "Daan", "Peeters", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"daan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"peeters\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_0639", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0003", "db_id": "store_1_minus_1_1", "query": "select t1.name from tracks_invoice_lines as t1 join invoices as t2 on t1.invoice_id = t2.id join customers as t3 on t2.customer_id = t3.id where t3.first_name = 'daan' and t3.last_name = 'peeters' ;", "query_toks": ["select", "t1.name", "from", "tracks_invoice_lines", "as", "t1", "join", "invoices", "as", "t2", "on", "t1.invoice_id", "=", "t2.id", "join", "customers", "as", "t3", "on", "t2.customer_id", "=", "t3.id", "where", "t3.first_name", "=", "``", "daan", "''", "and", "t3.last_name", "=", "``", "peeters", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_invoice_lines", "as", "t1", "join", "invoices", "as", "t2", "on", "t1.invoice_id", "=", "t2.id", "join", "customers", "as", "t3", "on", "t2.customer_id", "=", "t3.id", "where", "t3.first_name", "=", "value", "and", "t3.last_name", "=", "value"], "question": "What are the tracks that Dean Peeters bought?", "question_toks": ["What", "are", "the", "tracks", "that", "Dean", "Peeters", "bought", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"daan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"peeters\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_0640", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0004", "db_id": "wedding_minus_1_0", "query": "select t2.name from wedding_people as t1 join church as t2 on t1.church_id = t2.church_id where t1.age > 30 or t1.age > 30", "query_toks": ["select", "t2.name", "from", "wedding_people", "as", "t1", "join", "church", "as", "t2", "on", "t1.church_id", "=", "t2.church_id", "where", "t1.age", ">", "30", "or", "t1.age", ">", "30"], "query_toks_no_value": ["select", "t2.name", "from", "wedding_people", "as", "t1", "join", "church", "as", "t2", "on", "t1.church_id", "=", "t2.church_id", "where", "t1.age", ">", "value", "or", "t1.age", ">", "value"], "question": "Show the church names for the weddings of all people older than 30.", "question_toks": ["Show", "the", "church", "names", "for", "the", "weddings", "of", "all", "people", "older", "than", "30", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 30.0, null], "or", [false, 3, [0, [0, 4, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_1646", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0005", "db_id": "local_govt_in_alabama_minus_1_0", "query": "select t2.service_id , t3.service_type_code from participants_participants_in_events as t1 join events as t2 on t1.event_id = t2.event_id join services as t3 on t2.service_id = t3.service_id group by t2.service_id order by count ( * ) asc limit 1", "query_toks": ["select", "t2.service_id", ",", "t3.service_type_code", "from", "participants_participants_in_events", "as", "t1", "join", "events", "as", "t2", "on", "t1.event_id", "=", "t2.event_id", "join", "services", "as", "t3", "on", "t2.service_id", "=", "t3.service_id", "group", "by", "t2.service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "t2.service_id", ",", "t3.service_type_code", "from", "participants_participants_in_events", "as", "t1", "join", "events", "as", "t2", "on", "t1.event_id", "=", "t2.event_id", "join", "services", "as", "t3", "on", "t2.service_id", "=", "t3.service_id", "group", "by", "t2.service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "Which service id and type has the least number of participants?", "question_toks": ["Which", "service", "id", "and", "type", "has", "the", "least", "number", "of", "participants", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_2147", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0006", "db_id": "college_1_minus_1_1", "query": "select count ( * ) from class_enroll as t1 join course as t2 on t1.crs_code = t2.crs_code join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'accounting'", "query_toks": ["select", "count", "(", "*", ")", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "where", "t3.dept_name", "=", "'accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "where", "t3.dept_name", "=", "value"], "question": "How many students are enrolled in the class taught by some professor from the accounting department?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "the", "class", "taught", "by", "some", "professor", "from", "the", "accounting", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3251", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0007", "db_id": "college_1_minus_1_1", "query": "select count ( * ) from class_enroll as t1 join course as t2 on t1.crs_code = t2.crs_code join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'accounting'", "query_toks": ["select", "count", "(", "*", ")", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "where", "t3.dept_name", "=", "'accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "where", "t3.dept_name", "=", "value"], "question": "How many students are enrolled in some classes that are taught by an accounting professor?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "some", "classes", "that", "are", "taught", "by", "an", "accounting", "professor", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3252", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0008", "db_id": "college_1_minus_1_1", "query": "select t3.dept_name from class_enroll as t1 join course as t2 on t1.crs_code = t2.crs_code join department as t3 on t2.dept_code = t3.dept_code group by t2.dept_code order by count ( * ) desc limit 1", "query_toks": ["select", "t3.dept_name", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "group", "by", "t2.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t3.dept_name", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "group", "by", "t2.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department that has the largest number of students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "that", "has", "the", "largest", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3253", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0009", "db_id": "college_1_minus_1_1", "query": "select t3.dept_name from class_enroll as t1 join course as t2 on t1.crs_code = t2.crs_code join department as t3 on t2.dept_code = t3.dept_code group by t2.dept_code order by count ( * ) desc limit 1", "query_toks": ["select", "t3.dept_name", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "group", "by", "t2.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t3.dept_name", "from", "class_enroll", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "department", "as", "t3", "on", "t2.dept_code", "=", "t3.dept_code", "group", "by", "t2.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3254", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0010", "db_id": "college_1_minus_1_0", "query": "select t1.emp_fname , t3.prof_office , t2.crs_description from class_employee as t1 join course as t2 on t1.crs_code = t2.crs_code join professor as t3 on t1.prof_num = t3.emp_num", "query_toks": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num"], "query_toks_no_value": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num"], "question": "Find the first names and offices of all instructors who have taught some course and also find the course description.", "question_toks": ["Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "also", "find", "the", "course", "description", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 27, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3313", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0011", "db_id": "college_1_minus_1_0", "query": "select t1.emp_fname , t3.prof_office , t2.crs_description from class_employee as t1 join course as t2 on t1.crs_code = t2.crs_code join professor as t3 on t1.prof_num = t3.emp_num", "query_toks": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num"], "query_toks_no_value": ["select", "t1.emp_fname", ",", "t3.prof_office", ",", "t2.crs_description", "from", "class_employee", "as", "t1", "join", "course", "as", "t2", "on", "t1.crs_code", "=", "t2.crs_code", "join", "professor", "as", "t3", "on", "t1.prof_num", "=", "t3.emp_num"], "question": "What are the first names, office locations of all lecturers who have taught some course?", "question_toks": ["What", "are", "the", "first", "names", ",", "office", "locations", "of", "all", "lecturers", "who", "have", "taught", "some", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 27, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3314", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0012", "db_id": "college_1_minus_1_2", "query": "select t1.stu_fname , t1.stu_lname , t3.crs_description from student_enroll as t1 join class as t2 on t1.class_code = t2.class_code join course as t3 on t2.crs_code = t3.crs_code", "query_toks": ["select", "t1.stu_fname", ",", "t1.stu_lname", ",", "t3.crs_description", "from", "student_enroll", "as", "t1", "join", "class", "as", "t2", "on", "t1.class_code", "=", "t2.class_code", "join", "course", "as", "t3", "on", "t2.crs_code", "=", "t3.crs_code"], "query_toks_no_value": ["select", "t1.stu_fname", ",", "t1.stu_lname", ",", "t3.crs_description", "from", "student_enroll", "as", "t1", "join", "class", "as", "t2", "on", "t1.class_code", "=", "t2.class_code", "join", "course", "as", "t3", "on", "t2.crs_code", "=", "t3.crs_code"], "question": "Find names of all students who took some course and the course description.", "question_toks": ["Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "the", "course", "description", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [0, [0, [0, 31, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3317", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0013", "db_id": "college_1_minus_1_2", "query": "select t1.stu_fname , t1.stu_lname , t3.crs_description from student_enroll as t1 join class as t2 on t1.class_code = t2.class_code join course as t3 on t2.crs_code = t3.crs_code", "query_toks": ["select", "t1.stu_fname", ",", "t1.stu_lname", ",", "t3.crs_description", "from", "student_enroll", "as", "t1", "join", "class", "as", "t2", "on", "t1.class_code", "=", "t2.class_code", "join", "course", "as", "t3", "on", "t2.crs_code", "=", "t3.crs_code"], "query_toks_no_value": ["select", "t1.stu_fname", ",", "t1.stu_lname", ",", "t3.crs_description", "from", "student_enroll", "as", "t1", "join", "class", "as", "t2", "on", "t1.class_code", "=", "t2.class_code", "join", "course", "as", "t3", "on", "t2.crs_code", "=", "t3.crs_code"], "question": "What are the names of all students who took a class and the corresponding course descriptions?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "took", "a", "class", "and", "the", "corresponding", "course", "descriptions", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [0, [0, [0, 31, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3318", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0014", "db_id": "hospital_1_minus_1_0", "query": "select t3.name from stay_patient as t1 join prescribes as t2 on t1.patient = t2.patient join medication as t3 on t2.medication = t3.code where room = 111", "query_toks": ["select", "t3.name", "from", "stay_patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1.patient", "=", "t2.patient", "join", "medication", "as", "t3", "on", "t2.medication", "=", "t3.code", "where", "room", "=", "111"], "query_toks_no_value": ["select", "t3.name", "from", "stay_patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1.patient", "=", "t2.patient", "join", "medication", "as", "t3", "on", "t2.medication", "=", "t3.code", "where", "room", "=", "value"], "question": "Find the name of medication used on the patient who stays in room 111?", "question_toks": ["Find", "the", "name", "of", "medication", "used", "on", "the", "patient", "who", "stays", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 67, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 41, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 58, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3922", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0015", "db_id": "hospital_1_minus_1_0", "query": "select t3.name from stay_patient as t1 join prescribes as t2 on t1.patient = t2.patient join medication as t3 on t2.medication = t3.code where room = 111", "query_toks": ["select", "t3.name", "from", "stay_patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1.patient", "=", "t2.patient", "join", "medication", "as", "t3", "on", "t2.medication", "=", "t3.code", "where", "room", "=", "111"], "query_toks_no_value": ["select", "t3.name", "from", "stay_patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t1.patient", "=", "t2.patient", "join", "medication", "as", "t3", "on", "t2.medication", "=", "t3.code", "where", "room", "=", "value"], "question": "What is the name of the medication used for the patient staying in room 111?", "question_toks": ["What", "is", "the", "name", "of", "the", "medication", "used", "for", "the", "patient", "staying", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 8], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 67, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 41, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 58, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_3923", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0016", "db_id": "network_2_minus_1_0", "query": "select distinct t1.name from personfriend_person as t1 where t1.name = 'alice' and t1.name != 'alice'", "query_toks": ["select", "distinct", "t1.name", "from", "personfriend_person", "as", "t1", "where", "t1.name", "=", "'alice", "'", "and", "t1.name", "!", "=", "'alice", "'"], "query_toks_no_value": ["select", "distinct", "t1.name", "from", "personfriend_person", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name", "!", "=", "value"], "question": "Find Alice's friends of friends.", "question_toks": ["Find", "Alice", "'s", "friends", "of", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 7, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_4482", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0017", "db_id": "network_2_minus_1_0", "query": "select distinct t1.name from personfriend_person as t1 where t1.name = 'alice' and t1.name != 'alice'", "query_toks": ["select", "distinct", "t1.name", "from", "personfriend_person", "as", "t1", "where", "t1.name", "=", "'alice", "'", "and", "t1.name", "!", "=", "'alice", "'"], "query_toks_no_value": ["select", "distinct", "t1.name", "from", "personfriend_person", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name", "!", "=", "value"], "question": "What are the names of all of Alice's friends of friends?", "question_toks": ["What", "are", "the", "names", "of", "all", "of", "Alice", "'s", "friends", "of", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 7, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_4483", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0018", "db_id": "department_store_minus_1_0", "query": "select distinct t1.customer_name from customers_customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_name = 'keyboard'", "query_toks": ["select", "distinct", "t1.customer_name", "from", "customers_customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "``", "keyboard", "''"], "query_toks_no_value": ["select", "distinct", "t1.customer_name", "from", "customers_customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "value"], "question": "List the names of all the distinct customers who bought a keyboard.", "question_toks": ["List", "the", "names", "of", "all", "the", "distinct", "customers", "who", "bought", "a", "keyboard", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 9], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 42, false], null], "and", [false, 2, [0, [0, 43, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"keyboard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_4777", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0019", "db_id": "department_store_minus_1_0", "query": "select distinct t1.customer_name from customers_customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_name = 'keyboard'", "query_toks": ["select", "distinct", "t1.customer_name", "from", "customers_customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "``", "keyboard", "''"], "query_toks_no_value": ["select", "distinct", "t1.customer_name", "from", "customers_customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "value"], "question": "What are the distinct names of customers who have purchased a keyboard?", "question_toks": ["What", "are", "the", "distinct", "names", "of", "customers", "who", "have", "purchased", "a", "keyboard", "?"], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 9], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 42, false], null], "and", [false, 2, [0, [0, 43, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"keyboard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_4778", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0020", "db_id": "products_gen_characteristics_minus_1_0", "query": "select product_name from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'red' and t2.characteristic_name = 'fast'", "query_toks": ["select", "product_name", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "red", "''", "and", "t2.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "and", "t2.characteristic_name", "=", "value"], "question": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".", "question_toks": ["Find", "the", "name", "of", "the", "products", "that", "have", "the", "color", "description", "``", "red", "''", "and", "have", "the", "characteristic", "name", "``", "fast", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5568", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0021", "db_id": "products_gen_characteristics_minus_1_0", "query": "select product_name from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'red' and t2.characteristic_name = 'fast'", "query_toks": ["select", "product_name", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "red", "''", "and", "t2.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "and", "t2.characteristic_name", "=", "value"], "question": "What are the names of the products that have a color description of 'red' and the 'fast' characteristic?", "question_toks": ["What", "are", "the", "names", "of", "the", "products", "that", "have", "a", "color", "description", "of", "'red", "'", "and", "the", "'fast", "'", "characteristic", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5569", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0022", "db_id": "products_gen_characteristics_minus_1_0", "query": "select count ( * ) from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'red' and t2.characteristic_name = 'slow'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "red", "''", "and", "t2.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "and", "t2.characteristic_name", "=", "value"], "question": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\".", "question_toks": ["Find", "the", "number", "of", "the", "products", "that", "have", "their", "color", "described", "as", "``", "red", "''", "and", "have", "a", "characteristic", "named", "``", "slow", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5574", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0023", "db_id": "products_gen_characteristics_minus_1_0", "query": "select count ( * ) from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'red' and t2.characteristic_name = 'slow'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "red", "''", "and", "t2.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "and", "t2.characteristic_name", "=", "value"], "question": "How many products have the color description 'red' and the characteristic name 'slow'?", "question_toks": ["How", "many", "products", "have", "the", "color", "description", "'red", "'", "and", "the", "characteristic", "name", "'slow", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5575", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0024", "db_id": "products_gen_characteristics_minus_1_0", "query": "select count ( * ) from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'white' or t2.characteristic_name = 'hot'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "white", "''", "or", "t2.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "or", "t2.characteristic_name", "=", "value"], "question": "Count the products that have the color description \"white\" or have the characteristic name \"hot\".", "question_toks": ["Count", "the", "products", "that", "have", "the", "color", "description", "``", "white", "''", "or", "have", "the", "characteristic", "name", "``", "hot", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5576", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0025", "db_id": "products_gen_characteristics_minus_1_0", "query": "select count ( * ) from products_product_characteristics as t1 join characteristics as t2 on t1.characteristic_id = t2.characteristic_id join ref_colors as t3 on t1.color_code = t3.color_code where t3.color_description = 'white' or t2.characteristic_name = 'hot'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "``", "white", "''", "or", "t2.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics", "as", "t1", "join", "characteristics", "as", "t2", "on", "t1.characteristic_id", "=", "t2.characteristic_id", "join", "ref_colors", "as", "t3", "on", "t1.color_code", "=", "t3.color_code", "where", "t3.color_description", "=", "value", "or", "t2.characteristic_name", "=", "value"], "question": "How many products have their color described as 'white' or have a characteristic with the name 'hot'?", "question_toks": ["How", "many", "products", "have", "their", "color", "described", "as", "'white", "'", "or", "have", "a", "characteristic", "with", "the", "name", "'hot", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_5577", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0026", "db_id": "tracking_orders_minus_1_0", "query": "select t1.customer_name from customers_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_name = 'food' group by t1.customer_id having count ( * ) >= 1", "query_toks": ["select", "t1.customer_name", "from", "customers_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "``", "food", "''", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "value", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "List the names of the customers who have once bought product \"food\".", "question_toks": ["List", "the", "names", "of", "the", "customers", "who", "have", "once", "bought", "product", "``", "food", "''", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"food\"", null]], "groupBy": [[0, 26, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_6941", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0027", "db_id": "tracking_orders_minus_1_0", "query": "select t1.customer_name from customers_orders as t1 join order_items as t2 on t1.order_id = t2.order_id join products as t3 on t2.product_id = t3.product_id where t3.product_name = 'food' group by t1.customer_id having count ( * ) >= 1", "query_toks": ["select", "t1.customer_name", "from", "customers_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "``", "food", "''", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "join", "products", "as", "t3", "on", "t2.product_id", "=", "t3.product_id", "where", "t3.product_name", "=", "value", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the customers who bought product \"food\" at least once?", "question_toks": ["What", "are", "the", "names", "of", "the", "customers", "who", "bought", "product", "``", "food", "''", "at", "least", "once", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"food\"", null]], "groupBy": [[0, 26, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "train_6942", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0028", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers that are coauthored by Peter Mertens and Dina Barbian", "question_toks": ["papers", "that", "are", "coauthored", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0564", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0029", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers written by Peter Mertens and Dina Barbian", "question_toks": ["papers", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0565", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0030", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "what are the papers that have Peter Mertens and Dina Barbian as co-authors", "question_toks": ["what", "are", "the", "papers", "that", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0566", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0031", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers have Peter Mertens and Dina Barbian written ?", "question_toks": ["What", "papers", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0567", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0032", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "what paper did Peter Mertens and Dina Barbian write together ?", "question_toks": ["what", "paper", "did", "Peter", "Mertens", "and", "Dina", "Barbian", "write", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0568", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0033", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Has Peter Mertens and Dina Barbian written a paper together ?", "question_toks": ["Has", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "a", "paper", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0569", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0034", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Papers by Peter Mertens and Dina Barbian", "question_toks": ["Papers", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0570", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0035", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers by authors Peter Mertens and Dina Barbian", "question_toks": ["papers", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0571", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0036", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers were written by authors Peter Mertens and Dina Barbian", "question_toks": ["What", "papers", "were", "written", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0572", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0037", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers by Peter Mertens and Dina Barbian", "question_toks": ["papers", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0573", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0038", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers written by authors Peter Mertens and Dina Barbian", "question_toks": ["papers", "written", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0574", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0039", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "When did Peter Mertens and Dina Barbian collaborate ?", "question_toks": ["When", "did", "Peter", "Mertens", "and", "Dina", "Barbian", "collaborate", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0575", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0040", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "what are the collaborations of Peter Mertens and Dina Barbian ?", "question_toks": ["what", "are", "the", "collaborations", "of", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0576", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0041", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Have Peter Mertens and Dina Barbian written a paper together ?", "question_toks": ["Have", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "a", "paper", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0577", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0042", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Peter Mertens and Dina Barbian as co-authors", "question_toks": ["Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0578", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0043", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Does Peter Mertens ever collaborated with Dina Barbian ?", "question_toks": ["Does", "Peter", "Mertens", "ever", "collaborated", "with", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0579", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0044", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "Which papers have Peter Mertens and Dina Barbian as co-authors ?", "question_toks": ["Which", "papers", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0580", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0045", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "papers coauthored by Peter Mertens and Dina Barbian", "question_toks": ["papers", "coauthored", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0581", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0046", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers have been written by Peter Mertens and Dina Barbian ?", "question_toks": ["What", "papers", "have", "been", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0582", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0047", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers have been written by both Peter Mertens and Dina Barbian ?", "question_toks": ["What", "papers", "have", "been", "written", "by", "both", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0583", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0048", "db_id": "scholar_minus_1_3", "query": "select distinct t1.paperid from writes_author as t1 where t1.authorname = 'peter mertens' and t1.authorname = 'dina barbian' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "peter", "mertens", "''", "and", "t1.authorname", "=", "``", "dina", "barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.authorname", "=", "value"], "question": "What papers have been written by Peter Mertens and Dina Barbian .", "question_toks": ["What", "papers", "have", "been", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"peter mertens\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"dina barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0584", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0049", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who has written the most syntactic parsing papers ?", "question_toks": ["who", "has", "written", "the", "most", "syntactic", "parsing", "papers", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0585", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0050", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who is the most published author in syntactic parsing ?", "question_toks": ["who", "is", "the", "most", "published", "author", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0586", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0051", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who has the most publications in syntactic parsing ?", "question_toks": ["who", "has", "the", "most", "publications", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0587", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0052", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who has written the most papers on syntactic parsing ?", "question_toks": ["who", "has", "written", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0588", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0053", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "List prominent scholars in syntactic parsing ?", "question_toks": ["List", "prominent", "scholars", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0589", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0054", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who wrote the most papers on syntactic parsing ?", "question_toks": ["who", "wrote", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0590", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0055", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "Who are the authors with the most published papers in syntactic parsing ?", "question_toks": ["Who", "are", "the", "authors", "with", "the", "most", "published", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0591", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0056", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "top syntactic parsing author", "question_toks": ["top", "syntactic", "parsing", "author"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0592", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0057", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "top author in syntactic parsing", "question_toks": ["top", "author", "in", "syntactic", "parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0593", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0058", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who published the most in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0594", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0059", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) , t3.authorid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join writes as t3 on t2.paperid = t3.paperid where t1.keyphrasename = 'syntactic parsing' group by t3.authorid order by count ( t2.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", ",", "t3.authorid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "writes", "as", "t3", "on", "t2.paperid", "=", "t3.paperid", "where", "t1.keyphrasename", "=", "value", "group", "by", "t3.authorid", "order", "by", "count", "(", "t2.paperid", ")", "desc"], "question": "who published the most papers in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 22, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0595", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0060", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many citation noah a smith has ?", "question_toks": ["How", "many", "citation", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0596", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0061", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "noah a smith citation count", "question_toks": ["noah", "a", "smith", "citation", "count"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0597", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0062", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "how many citations does noah a smith have ?", "question_toks": ["how", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0598", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0063", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many citations does noah a smith have ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0599", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0064", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "number of citations of noah a smith", "question_toks": ["number", "of", "citations", "of", "noah", "a", "smith"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0600", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0065", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many citations does noah a smith have", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0601", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0066", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many times was noah a smith cited ?", "question_toks": ["How", "many", "times", "was", "noah", "a", "smith", "cited", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0602", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0067", "db_id": "scholar_minus_1_2", "query": "select distinct count ( t1.paperid ) from paper_cite as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value"], "question": "How many citations does noah a smith has ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0603", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0068", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers did David M. Blei publish at AISTATS ?", "question_toks": ["How", "many", "papers", "did", "David", "M.", "Blei", "publish", "at", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0643", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0069", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS ?", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0644", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0070", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers has David M. Blei published in AISTATS ?", "question_toks": ["How", "many", "papers", "has", "David", "M.", "Blei", "published", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0645", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0071", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many papers does David M. Blei have at AISTATS", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "at", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0646", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0072", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many papers does David M. Blei have in AISTATS ?", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0647", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0073", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many David M. Blei papers are in AISTATS ?", "question_toks": ["how", "many", "David", "M.", "Blei", "papers", "are", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0648", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0074", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers David M. Blei has in AISTATS ?", "question_toks": ["How", "many", "papers", "David", "M.", "Blei", "has", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0649", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0075", "db_id": "scholar_minus_1_4", "query": "select distinct count ( t1.paperid ) from venue_paper as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0650", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0076", "db_id": "scholar_minus_1_1", "query": "select distinct t2.paperid from paperdataset_dataset as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.datasetname = 'rgb-d object paperdataset_dataset' and t2.title = 'class consistent multi-modal fusion with binary features' and t2.year = 2016 and t3.venuename = 'cvpr' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.datasetname", "=", "``", "rgb-d", "object", "paperdataset_dataset", "''", "and", "t2.title", "=", "``", "class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "and", "t2.year", "=", "2016", "and", "t3.venuename", "=", "``", "cvpr", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.datasetname", "=", "value", "and", "t2.title", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What papers were published at CVPR in 2016 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "in", "2016", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"rgb-d object paperdataset_dataset\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 13, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"cvpr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0657", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0077", "db_id": "scholar_minus_1_1", "query": "select distinct t2.paperid from paperdataset_dataset as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.datasetname = 'rgb-d object paperdataset_dataset' and t2.title = 'class consistent multi-modal fusion with binary features' and t2.year = 2016 and t3.venuename = 'cvpr' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.datasetname", "=", "``", "rgb-d", "object", "paperdataset_dataset", "''", "and", "t2.title", "=", "``", "class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "and", "t2.year", "=", "2016", "and", "t3.venuename", "=", "``", "cvpr", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperdataset_dataset", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.datasetname", "=", "value", "and", "t2.title", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What papers were published at CVPR '16 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "'16", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"rgb-d object paperdataset_dataset\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 13, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"cvpr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0658", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0078", "db_id": "scholar_minus_1_0", "query": "select distinct count ( distinct t2.paperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers by Ed Desmond contain the keyphrases Semantic Parsing ?", "question_toks": ["How", "many", "papers", "by", "Ed", "Desmond", "contain", "the", "keyphrases", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 22, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0696", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0079", "db_id": "scholar_minus_1_0", "query": "select distinct count ( distinct t2.paperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers does Ed Desmond have in Semantic Parsing area ?", "question_toks": ["How", "many", "papers", "does", "Ed", "Desmond", "have", "in", "Semantic", "Parsing", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 22, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0697", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0080", "db_id": "scholar_minus_1_0", "query": "select distinct count ( distinct t2.paperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many Semantic Parsing papers has Ed Desmond written ?", "question_toks": ["How", "many", "Semantic", "Parsing", "papers", "has", "Ed", "Desmond", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 22, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0698", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0081", "db_id": "scholar_minus_1_0", "query": "select distinct count ( distinct t2.paperid ) from paperkeyphrase_keyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many paper has Ed Desmond written about Semantic Parsing ?", "question_toks": ["How", "many", "paper", "has", "Ed", "Desmond", "written", "about", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 22, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0699", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0082", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "acl papers in 2012 on Parsing", "question_toks": ["acl", "papers", "in", "2012", "on", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0704", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0083", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What papers were published in acl in 2012 about Parsing ?", "question_toks": ["What", "papers", "were", "published", "in", "acl", "in", "2012", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0705", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0084", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "papers on Parsing appeared at acl last year", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "last", "year"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0706", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0085", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "Parsing papers from acl 2012", "question_toks": ["Parsing", "papers", "from", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0707", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0086", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "papers about Parsing in acl 2012", "question_toks": ["papers", "about", "Parsing", "in", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0708", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0087", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "acl papers in 2012 in Parsing", "question_toks": ["acl", "papers", "in", "2012", "in", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0709", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0088", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "acl papers in 2012 about Parsing", "question_toks": ["acl", "papers", "in", "2012", "about", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0710", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0089", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What papers were published at acl in 2012 were about Parsing ?", "question_toks": ["What", "papers", "were", "published", "at", "acl", "in", "2012", "were", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0711", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0090", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "papers on Parsing appeared at acl in 2012", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "in", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0712", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0091", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "how many Parsing papers did acl 2012 have ?", "question_toks": ["how", "many", "Parsing", "papers", "did", "acl", "2012", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0713", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0092", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "who published Parsing papers at acl 2012", "question_toks": ["who", "published", "Parsing", "papers", "at", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0714", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0093", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "which papers in acl 2012 had Parsing in them ?", "question_toks": ["which", "papers", "in", "acl", "2012", "had", "Parsing", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0715", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0094", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2012 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2012", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "what were some Parsing based papers in acl 2012 ?", "question_toks": ["what", "were", "some", "Parsing", "based", "papers", "in", "acl", "2012", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0716", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0095", "db_id": "scholar_minus_1_5", "query": "select distinct t1.keyphraseid , t1.year from paper_paperkeyphrase as t1 join writes as t2 on t1.paperid = t2.paperid join author as t3 on t2.authorid = t3.authorid where t3.authorname = 'luke s zettlemoyer' order by t1.year , t1.keyphraseid ;", "query_toks": ["select", "distinct", "t1.keyphraseid", ",", "t1.year", "from", "paper_paperkeyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "``", "luke", "s", "zettlemoyer", "''", "order", "by", "t1.year", ",", "t1.keyphraseid", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", ",", "t1.year", "from", "paper_paperkeyphrase", "as", "t1", "join", "writes", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "author", "as", "t3", "on", "t2.authorid", "=", "t3.authorid", "where", "t3.authorname", "=", "value", "order", "by", "t1.year", ",", "t1.keyphraseid"], "question": "keyphrases used by Luke S Zettlemoyer for each year", "question_toks": ["keyphrases", "used", "by", "Luke", "S", "Zettlemoyer", "for", "each", "year"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"luke s zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null], [0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0743", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0096", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2014 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2014", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "how many parsing papers in ACL 2014", "question_toks": ["how", "many", "parsing", "papers", "in", "ACL", "2014"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0753", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0097", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2014 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2014", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "how many parsing papers appeared in the proceeeding of ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "appeared", "in", "the", "proceeeding", "of", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0754", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0098", "db_id": "scholar_minus_1_0", "query": "select distinct count ( t2.paperid ) from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'parsing' and t2.year = 2014 and t3.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t2.year", "=", "2014", "and", "t3.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t2.paperid", ")", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t2.year", "=", "value", "and", "t3.venuename", "=", "value"], "question": "how many parsing papers were published at ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "were", "published", "at", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 13, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0755", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0099", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'tail' and t3.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "tail", "''", "and", "t3.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t3.venuename", "=", "value"], "question": "What TAIL paper published in NIPS ?", "question_toks": ["What", "TAIL", "paper", "published", "in", "NIPS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"tail\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0787", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_3_to_2_0100", "db_id": "scholar_minus_1_0", "query": "select distinct t2.paperid from paperkeyphrase_keyphrase as t1 join paper as t2 on t1.paperid = t2.paperid join venue as t3 on t2.venueid = t3.venueid where t1.keyphrasename = 'tail' and t3.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "``", "tail", "''", "and", "t3.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2.paperid", "from", "paperkeyphrase_keyphrase", "as", "t1", "join", "paper", "as", "t2", "on", "t1.paperid", "=", "t2.paperid", "join", "venue", "as", "t3", "on", "t2.venueid", "=", "t3.venueid", "where", "t1.keyphrasename", "=", "value", "and", "t3.venuename", "=", "value"], "question": "List the papers on TAIL that were published in NIPS", "question_toks": ["List", "the", "papers", "on", "TAIL", "that", "were", "published", "in", "NIPS"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"tail\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOINED_TO_2"], "source": "SIMPLIFIED", "parents_id": "other_0788", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0000", "db_id": "pets_1_minus_1_0", "query": "select count ( * ) from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t1.sex = 'f' and t2.pettype = 'dog'", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t1.sex", "=", "'f", "'", "and", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t1.sex", "=", "value", "and", "t2.pettype", "=", "value"], "question": "Find the number of dog pets that are raised by female students (with sex F).", "question_toks": ["Find", "the", "number", "of", "dog", "pets", "that", "are", "raised", "by", "female", "students", "(", "with", "sex", "F", ")", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0053", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0001", "db_id": "pets_1_minus_1_0", "query": "select count ( * ) from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t1.sex = 'f' and t2.pettype = 'dog'", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t1.sex", "=", "'f", "'", "and", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t1.sex", "=", "value", "and", "t2.pettype", "=", "value"], "question": "How many dog pets are raised by female students?", "question_toks": ["How", "many", "dog", "pets", "are", "raised", "by", "female", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0054", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0002", "db_id": "pets_1_minus_1_0", "query": "select distinct t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' or t2.pettype = 'dog'", "query_toks": ["select", "distinct", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", "or", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "distinct", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "or", "t2.pettype", "=", "value"], "question": "Find the first name of students who have cat or dog pet.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "cat", "or", "dog", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0057", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0003", "db_id": "pets_1_minus_1_0", "query": "select distinct t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' or t2.pettype = 'dog'", "query_toks": ["select", "distinct", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", "or", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "distinct", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "or", "t2.pettype", "=", "value"], "question": "What are the first names of every student who has a cat or dog as a pet?", "question_toks": ["What", "are", "the", "first", "names", "of", "every", "student", "who", "has", "a", "cat", "or", "dog", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0058", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0004", "db_id": "pets_1_minus_1_0", "query": "select t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' intersect select t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'dog'", "query_toks": ["select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "\"cat\"", "intersect", "select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "\"dog\""], "query_toks_no_value": ["select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "intersect", "select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value"], "question": "Find the first name of students who have both cat and dog pets .", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "both", "cat", "and", "dog", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0059", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0005", "db_id": "pets_1_minus_1_0", "query": "select t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' intersect select t1.fname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'dog'", "query_toks": ["select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", "intersect", "select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "intersect", "select", "t1.fname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value"], "question": "What are the students' first names who have both cats and dogs as pets?", "question_toks": ["What", "are", "the", "students", "'", "first", "names", "who", "have", "both", "cats", "and", "dogs", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0060", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0006", "db_id": "pets_1_minus_1_0", "query": "select stuid from student_has_pet except select t1.stuid from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat'", "query_toks": ["select", "stuid", "from", "student_has_pet", "except", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "stuid", "from", "student_has_pet", "except", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value"], "question": "Find the id of students who do not have a cat pet.", "question_toks": ["Find", "the", "id", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0063", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0007", "db_id": "pets_1_minus_1_0", "query": "select stuid from student_has_pet except select t1.stuid from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat'", "query_toks": ["select", "stuid", "from", "student_has_pet", "except", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "stuid", "from", "student_has_pet", "except", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value"], "question": "What are the ids of the students who do not own cats as pets?", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "who", "do", "not", "own", "cats", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0064", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0008", "db_id": "pets_1_minus_1_0", "query": "select t1.fname , t1.age from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'dog' and t1.stuid not in ( select t1.stuid from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' )", "query_toks": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'dog", "'", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", ")"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", ")"], "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "as", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0065", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0009", "db_id": "pets_1_minus_1_0", "query": "select t1.fname , t1.age from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'dog' and t1.stuid not in ( select t1.stuid from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pettype = 'cat' )", "query_toks": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'dog", "'", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "'cat", "'", ")"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pettype", "=", "value", ")"], "question": "What is the first name of every student who has a dog but does not have a cat?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "but", "does", "not", "have", "a", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0066", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0010", "db_id": "pets_1_minus_1_0", "query": "select t1.lname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pet_age = 3 and t2.pettype = 'cat'", "query_toks": ["select", "t1.lname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pet_age", "=", "3", "and", "t2.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "t1.lname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pet_age", "=", "value", "and", "t2.pettype", "=", "value"], "question": "Find the last name of the student who has a cat that is age 3.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "age", "3", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 3.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0083", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0011", "db_id": "pets_1_minus_1_0", "query": "select t1.lname from student_has_pet as t1 join pets as t2 on t1.petid = t2.petid where t2.pet_age = 3 and t2.pettype = 'cat'", "query_toks": ["select", "t1.lname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pet_age", "=", "3", "and", "t2.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "t1.lname", "from", "student_has_pet", "as", "t1", "join", "pets", "as", "t2", "on", "t1.petid", "=", "t2.petid", "where", "t2.pet_age", "=", "value", "and", "t2.pettype", "=", "value"], "question": "What is the last name of the student who has a cat that is 3 years old?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "3", "years", "old", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 3.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0084", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0012", "db_id": "car_1_minus_1_5", "query": "select distinct t1.model from model_list_car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.year > 1980 ;", "query_toks": ["select", "distinct", "t1.model", "from", "model_list_car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1.makeid", "=", "t2.id", "where", "t2.year", ">", "1980", ";"], "query_toks_no_value": ["select", "distinct", "t1.model", "from", "model_list_car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1.makeid", "=", "t2.id", "where", "t2.year", ">", "value"], "question": "Which distinct car models are the produced after 1980?", "question_toks": ["Which", "distinct", "car", "models", "are", "the", "produced", "after", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0103", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0013", "db_id": "car_1_minus_1_5", "query": "select distinct t1.model from model_list_car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t2.year > 1980 ;", "query_toks": ["select", "distinct", "t1.model", "from", "model_list_car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1.makeid", "=", "t2.id", "where", "t2.year", ">", "1980", ";"], "query_toks_no_value": ["select", "distinct", "t1.model", "from", "model_list_car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1.makeid", "=", "t2.id", "where", "t2.year", ">", "value"], "question": "What are the different models for the cards produced after 1980?", "question_toks": ["What", "are", "the", "different", "models", "for", "the", "cards", "produced", "after", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0104", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0014", "db_id": "car_1_minus_1_2", "query": "select t1.continent_continents , count ( * ) from continents_countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.continent_continents ;", "query_toks": ["select", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.continent_continents", ";"], "query_toks_no_value": ["select", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.continent_continents"], "question": "How many car makers are there in each continents? List the continent name and the count.", "question_toks": ["How", "many", "car", "makers", "are", "there", "in", "each", "continents", "?", "List", "the", "continent", "name", "and", "the", "count", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0105", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0015", "db_id": "car_1_minus_1_2", "query": "select t1.continent_continents , count ( * ) from continents_countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.continent_continents ;", "query_toks": ["select", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.continent_continents", ";"], "query_toks_no_value": ["select", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.continent_continents"], "question": "What is the name of each continent and how many car makers are there in each one?", "question_toks": ["What", "is", "the", "name", "of", "each", "continent", "and", "how", "many", "car", "makers", "are", "there", "in", "each", "one", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0106", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0016", "db_id": "car_1_minus_1_1", "query": "select count ( * ) from model_list_car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'usa' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "model_list_car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1.country", "=", "t2.countryid", "where", "t2.countryname", "=", "'usa", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "model_list_car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1.country", "=", "t2.countryid", "where", "t2.countryname", "=", "value"], "question": "How many car models are produced in the usa?", "question_toks": ["How", "many", "car", "models", "are", "produced", "in", "the", "usa", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0115", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0017", "db_id": "car_1_minus_1_1", "query": "select count ( * ) from model_list_car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'usa' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "model_list_car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1.country", "=", "t2.countryid", "where", "t2.countryname", "=", "'usa", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "model_list_car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1.country", "=", "t2.countryid", "where", "t2.countryname", "=", "value"], "question": "What is the count of the car models produced in the United States?", "question_toks": ["What", "is", "the", "count", "of", "the", "car", "models", "produced", "in", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0116", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0018", "db_id": "car_1_minus_1_0", "query": "select t1.countryname from countries_continents as t1 join car_makers as t2 on t1.countryid = t2.country where t1.continent_continents = 'europe' group by t1.countryname having count ( * ) >= 3 ;", "query_toks": ["select", "t1.countryname", "from", "countries_continents", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "where", "t1.continent_continents", "=", "'europe", "'", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "3", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "countries_continents", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "where", "t1.continent_continents", "=", "value", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which countries in europe have at least 3 car manufacturers?", "question_toks": ["Which", "countries", "in", "europe", "have", "at", "least", "3", "car", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"europe\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0129", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0019", "db_id": "car_1_minus_1_0", "query": "select t1.countryname from countries_continents as t1 join car_makers as t2 on t1.countryid = t2.country where t1.continent_continents = 'europe' group by t1.countryname having count ( * ) >= 3 ;", "query_toks": ["select", "t1.countryname", "from", "countries_continents", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "where", "t1.continent_continents", "=", "'europe", "'", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "3", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "countries_continents", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "where", "t1.continent_continents", "=", "value", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of all European countries with at least 3 manufacturers?", "question_toks": ["What", "are", "the", "names", "of", "all", "European", "countries", "with", "at", "least", "3", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"europe\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0130", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0020", "db_id": "car_1_minus_1_4", "query": "select t1.id , t1.maker_car_makers from car_makers_model_list as t1 group by t1.id having count ( * ) >= 2 intersect select t1.id , t1.maker_car_makers from car_makers_model_list as t1 join car_names as t2 on t1.model = t2.model group by t1.id having count ( * ) > 3 ;", "query_toks": ["select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">=", "2", "intersect", "select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1.model", "=", "t2.model", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "3", ";"], "query_toks_no_value": ["select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1.model", "=", "t2.model", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "question_toks": ["Which", "are", "the", "car", "makers", "which", "produce", "at", "least", "2", "models", "and", "more", "than", "3", "car", "makers", "?", "List", "the", "id", "and", "the", "maker", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0175", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0021", "db_id": "car_1_minus_1_4", "query": "select t1.id , t1.maker_car_makers from car_makers_model_list as t1 group by t1.id having count ( * ) >= 2 intersect select t1.id , t1.maker_car_makers from car_makers_model_list as t1 join car_names as t2 on t1.model = t2.model group by t1.id having count ( * ) > 3 ;", "query_toks": ["select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "=", "2", "intersect", "select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1.model", "=", "t2.model", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "3", ";"], "query_toks_no_value": ["select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1.id", ",", "t1.maker_car_makers", "from", "car_makers_model_list", "as", "t1", "join", "car_names", "as", "t2", "on", "t1.model", "=", "t2.model", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", "question_toks": ["What", "are", "the", "ids", "and", "makers", "of", "all", "car", "makers", "that", "produce", "at", "least", "2", "models", "and", "make", "more", "than", "3", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0176", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0022", "db_id": "car_1_minus_1_3", "query": "select t1.countryid , t1.countryname from countries_car_makers as t1 group by t1.countryid having count ( * ) > 3 union select t1.countryid , t1.countryname from countries_car_makers as t1 join model_list as t2 on t1.id = t2.maker where t2.model = 'fiat' ;", "query_toks": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "3", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "where", "t2.model", "=", "'fiat", "'", ";"], "query_toks_no_value": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "where", "t2.model", "=", "value"], "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0023", "db_id": "car_1_minus_1_3", "query": "select t1.countryid , t1.countryname from countries_car_makers as t1 group by t1.countryid having count ( * ) > 3 union select t1.countryid , t1.countryname from countries_car_makers as t1 join model_list as t2 on t1.id = t2.maker where t2.model = 'fiat' ;", "query_toks": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "3", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "where", "t2.model", "=", "\"fiat\"", ";"], "query_toks_no_value": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1.id", "=", "t2.maker", "where", "t2.model", "=", "value"], "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0024", "db_id": "flight_2_minus_1_0", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'ashley' and t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "ashley", "''", "and", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.city", "=", "value"], "question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "'Aberdeen", "'", "and", "have", "destination", "City", "'Ashley", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"ashley\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0211", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0025", "db_id": "flight_2_minus_1_0", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'ashley' and t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "ashley", "''", "and", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.city", "=", "value"], "question": "How many flights fly from Aberdeen to Ashley?", "question_toks": ["How", "many", "flights", "fly", "from", "Aberdeen", "to", "Ashley", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"ashley\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0212", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0026", "db_id": "flight_2_minus_1_0", "query": "select count ( * ) from flights_airports as t1 join airlines as t2 on t1.airline = t2.uid where t1.city = 'aberdeen' and t2.airline = 'united airlines'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "join", "airlines", "as", "t2", "on", "t1.airline", "=", "t2.uid", "where", "t1.city", "=", "``", "aberdeen", "''", "and", "t2.airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "join", "airlines", "as", "t2", "on", "t1.airline", "=", "t2.uid", "where", "t1.city", "=", "value", "and", "t2.airline", "=", "value"], "question": "How many United Airlines flights go to City 'Aberdeen'?", "question_toks": ["How", "many", "United", "Airlines", "flights", "go", "to", "City", "'Aberdeen", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0219", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0027", "db_id": "flight_2_minus_1_0", "query": "select count ( * ) from flights_airports as t1 join airlines as t2 on t1.airline = t2.uid where t1.city = 'aberdeen' and t2.airline = 'united airlines'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "join", "airlines", "as", "t2", "on", "t1.airline", "=", "t2.uid", "where", "t1.city", "=", "``", "aberdeen", "''", "and", "t2.airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "join", "airlines", "as", "t2", "on", "t1.airline", "=", "t2.uid", "where", "t1.city", "=", "value", "and", "t2.airline", "=", "value"], "question": "Count the number of United Airlines flights that arrive in Aberdeen.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "that", "arrive", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0220", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0028", "db_id": "cre_Doc_Template_Mgt_minus_1_0", "query": "select distinct t1.template_type_description from ref_template_types_templates as t1 join documents as t2 on t1.template_id = t2.template_id", "query_toks": ["select", "distinct", "t1.template_type_description", "from", "ref_template_types_templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1.template_id", "=", "t2.template_id"], "query_toks_no_value": ["select", "distinct", "t1.template_type_description", "from", "ref_template_types_templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1.template_id", "=", "t2.template_id"], "question": "What are the distinct template type descriptions for the templates ever used by any document?", "question_toks": ["What", "are", "the", "distinct", "template", "type", "descriptions", "for", "the", "templates", "ever", "used", "by", "any", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0353", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0029", "db_id": "cre_Doc_Template_Mgt_minus_1_0", "query": "select distinct t1.template_type_description from ref_template_types_templates as t1 join documents as t2 on t1.template_id = t2.template_id", "query_toks": ["select", "distinct", "t1.template_type_description", "from", "ref_template_types_templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1.template_id", "=", "t2.template_id"], "query_toks_no_value": ["select", "distinct", "t1.template_type_description", "from", "ref_template_types_templates", "as", "t1", "join", "documents", "as", "t2", "on", "t1.template_id", "=", "t2.template_id"], "question": "Return the different descriptions for templates that have been used in a document.", "question_toks": ["Return", "the", "different", "descriptions", "for", "templates", "that", "have", "been", "used", "in", "a", "document", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0354", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0030", "db_id": "course_teach_minus_1_0", "query": "select t2.name , t1.course from course_arrange_course as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id", "query_toks": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id"], "query_toks_no_value": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id"], "question": "Show names of teachers and the courses they are arranged to teach.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0399", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0031", "db_id": "course_teach_minus_1_0", "query": "select t2.name , t1.course from course_arrange_course as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id", "query_toks": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id"], "query_toks_no_value": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id"], "question": "What is the name of each teacher and what course they teach?", "question_toks": ["What", "is", "the", "name", "of", "each", "teacher", "and", "what", "course", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0400", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0032", "db_id": "course_teach_minus_1_0", "query": "select t2.name , t1.course from course_arrange_course as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id order by t2.name", "query_toks": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id", "order", "by", "t2.name"], "query_toks_no_value": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id", "order", "by", "t2.name"], "question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "in", "ascending", "alphabetical", "order", "of", "the", "teacher", "'s", "name", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0401", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0033", "db_id": "course_teach_minus_1_0", "query": "select t2.name , t1.course from course_arrange_course as t1 join teacher as t2 on t1.teacher_id = t2.teacher_id order by t2.name", "query_toks": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id", "order", "by", "t2.name"], "query_toks_no_value": ["select", "t2.name", ",", "t1.course", "from", "course_arrange_course", "as", "t1", "join", "teacher", "as", "t2", "on", "t1.teacher_id", "=", "t2.teacher_id", "order", "by", "t2.name"], "question": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "and", "the", "courses", "they", "teach", "in", "ascending", "alphabetical", "order", "by", "the", "name", "of", "the", "teacher", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0402", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0034", "db_id": "museum_visit_minus_1_0", "query": "select t1.name from visitor_visit as t1 join museum as t2 on t1.museum_id = t2.museum_id where t2.open_year < 2009 intersect select t1.name from visitor_visit as t1 join museum as t2 on t1.museum_id = t2.museum_id where t2.open_year > 2011", "query_toks": ["select", "t1.name", "from", "visitor_visit", "as", "t1", "join", "museum", "as", "t2", "on", "t1.museum_id", "=", "t2.museum_id", "where", "t2.open_year", "<", "2009", "intersect", "select", "t1.name", "from", "visitor_visit", "as", "t1", "join", "museum", "as", "t2", "on", "t1.museum_id", "=", "t2.museum_id", "where", "t2.open_year", ">", "2011"], "query_toks_no_value": ["select", "t1.name", "from", "visitor_visit", "as", "t1", "join", "museum", "as", "t2", "on", "t1.museum_id", "=", "t2.museum_id", "where", "t2.open_year", "<", "value", "intersect", "select", "t1.name", "from", "visitor_visit", "as", "t1", "join", "museum", "as", "t2", "on", "t1.museum_id", "=", "t2.museum_id", "where", "t2.open_year", ">", "value"], "question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "question_toks": ["What", "is", "the", "name", "of", "the", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "2009", "and", "a", "museum", "opened", "after", "2011", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0426", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0035", "db_id": "dog_kennels_minus_1_0", "query": "select t1.owner_id , t1.last_name from owners_dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0936", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0036", "db_id": "dog_kennels_minus_1_0", "query": "select t1.owner_id , t1.last_name from owners_dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "the", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0937", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0037", "db_id": "dog_kennels_minus_1_0", "query": "select t1.owner_id , t1.zip_code from owners_dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id group by t1.owner_id order by sum ( t2.cost_of_treatment ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t2.cost_of_treatment", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t2.cost_of_treatment", ")", "desc", "limit", "value"], "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "question_toks": ["Which", "owner", "has", "paid", "the", "largest", "amount", "of", "money", "in", "total", "for", "their", "dogs", "?", "Show", "the", "owner", "id", "and", "zip", "code", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [4, 47, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0940", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0038", "db_id": "dog_kennels_minus_1_0", "query": "select t1.owner_id , t1.zip_code from owners_dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id group by t1.owner_id order by sum ( t2.cost_of_treatment ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t2.cost_of_treatment", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs", "as", "t1", "join", "treatments", "as", "t2", "on", "t1.dog_id", "=", "t2.dog_id", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t2.cost_of_treatment", ")", "desc", "limit", "value"], "question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "owner", "id", "and", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [4, 47, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "dev_0941", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0039", "db_id": "student_assessment_minus_1_0", "query": "select t2.course_name , count ( * ) from students_student_course_registrations as t1 join courses as t2 on t1.course_id = t2.course_id group by t1.course_id", "query_toks": ["select", "t2.course_name", ",", "count", "(", "*", ")", "from", "students_student_course_registrations", "as", "t1", "join", "courses", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "group", "by", "t1.course_id"], "query_toks_no_value": ["select", "t2.course_name", ",", "count", "(", "*", ")", "from", "students_student_course_registrations", "as", "t1", "join", "courses", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "group", "by", "t1.course_id"], "question": "How many registed students do each course have? List course name and the number of their registered students?", "question_toks": ["How", "many", "registed", "students", "do", "each", "course", "have", "?", "List", "course", "name", "and", "the", "number", "of", "their", "registered", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 26, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 26, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0081", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0040", "db_id": "student_assessment_minus_1_0", "query": "select t2.course_name , count ( * ) from students_student_course_registrations as t1 join courses as t2 on t1.course_id = t2.course_id group by t1.course_id", "query_toks": ["select", "t2.course_name", ",", "count", "(", "*", ")", "from", "students_student_course_registrations", "as", "t1", "join", "courses", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "group", "by", "t1.course_id"], "query_toks_no_value": ["select", "t2.course_name", ",", "count", "(", "*", ")", "from", "students_student_course_registrations", "as", "t1", "join", "courses", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "group", "by", "t1.course_id"], "question": "For each course id, how many students are registered and what are the course names?", "question_toks": ["For", "each", "course", "id", ",", "how", "many", "students", "are", "registered", "and", "what", "are", "the", "course", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 26, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 26, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0082", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0041", "db_id": "student_assessment_minus_1_1", "query": "select distinct t1.city from addresses_people_addresses as t1 join students as t2 on t1.person_id = t2.student_id", "query_toks": ["select", "distinct", "t1.city", "from", "addresses_people_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1.person_id", "=", "t2.student_id"], "query_toks_no_value": ["select", "distinct", "t1.city", "from", "addresses_people_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1.person_id", "=", "t2.student_id"], "question": "Find distinct cities of address of students?", "question_toks": ["Find", "distinct", "cities", "of", "address", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 15, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0093", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0042", "db_id": "student_assessment_minus_1_1", "query": "select distinct t1.city from addresses_people_addresses as t1 join students as t2 on t1.person_id = t2.student_id", "query_toks": ["select", "distinct", "t1.city", "from", "addresses_people_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1.person_id", "=", "t2.student_id"], "query_toks_no_value": ["select", "distinct", "t1.city", "from", "addresses_people_addresses", "as", "t1", "join", "students", "as", "t2", "on", "t1.person_id", "=", "t2.student_id"], "question": "What are the different cities where students live?", "question_toks": ["What", "are", "the", "different", "cities", "where", "students", "live", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 15, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0094", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0043", "db_id": "flight_1_minus_1_0", "query": "select t1.name from employee_certificate as t1 join aircraft as t2 on t1.aid = t2.aid where t2.distance > 5000 group by t1.eid order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "employee_certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1.aid", "=", "t2.aid", "where", "t2.distance", ">", "5000", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "employee_certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1.aid", "=", "t2.aid", "where", "t2.distance", ">", "value", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?", "question_toks": ["What", "is", "the", "salary", "and", "name", "of", "the", "employee", "who", "has", "the", "most", "number", "of", "certificates", "on", "aircrafts", "with", "distance", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0437", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0044", "db_id": "flight_1_minus_1_0", "query": "select t1.name from employee_certificate as t1 join aircraft as t2 on t1.aid = t2.aid where t2.distance > 5000 group by t1.eid order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "employee_certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1.aid", "=", "t2.aid", "where", "t2.distance", ">", "5000", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "employee_certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1.aid", "=", "t2.aid", "where", "t2.distance", ">", "value", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salaray and name of the employee with the most certificates to fly planes more than 5000?", "question_toks": ["What", "is", "the", "salaray", "and", "name", "of", "the", "employee", "with", "the", "most", "certificates", "to", "fly", "planes", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0438", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0045", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' ;", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "``", "movies", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "List the name of all tracks in the playlists of Movies.", "question_toks": ["List", "the", "name", "of", "all", "tracks", "in", "the", "playlists", "of", "Movies", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0635", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0046", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' ;", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "``", "movies", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "What are the names of all tracks that are on playlists titled Movies?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "playlists", "titled", "Movies", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0636", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0047", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' except select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'music'", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'movies", "'", "except", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value", "except", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "Find the name of tracks which are in Movies playlist but not in music playlist.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "Movies", "playlist", "but", "not", "in", "music", "playlist", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0643", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0048", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' except select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'music'", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'movies", "'", "except", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value", "except", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "What are the names of all tracks that are on the Movies playlist but not in the music playlist?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "the", "Movies", "playlist", "but", "not", "in", "the", "music", "playlist", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0644", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0049", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' intersect select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'music'", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'movies", "'", "intersect", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value", "intersect", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "Find the name of tracks which are in both Movies and music playlists.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "both", "Movies", "and", "music", "playlists", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0645", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0050", "db_id": "store_1_minus_1_0", "query": "select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'movies' intersect select t1.name from tracks_playlist_tracks as t1 join playlists as t2 on t1.playlist_id = t2.id where t2.name = 'music'", "query_toks": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'movies", "'", "intersect", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value", "intersect", "select", "t1.name", "from", "tracks_playlist_tracks", "as", "t1", "join", "playlists", "as", "t2", "on", "t1.playlist_id", "=", "t2.id", "where", "t2.name", "=", "value"], "question": "What are the names of all the tracks that are in both the Movies and music playlists?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "tracks", "that", "are", "in", "both", "the", "Movies", "and", "music", "playlists", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 64, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 63, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0646", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0051", "db_id": "journal_committee_minus_1_0", "query": "select t1.name , t2.theme from journal_committee_editor as t1 join journal as t2 on t1.journal_id = t2.journal_id", "query_toks": ["select", "t1.name", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id"], "query_toks_no_value": ["select", "t1.name", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id"], "question": "Show the names of editors and the theme of journals for which they serve on committees.", "question_toks": ["Show", "the", "names", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0658", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0052", "db_id": "journal_committee_minus_1_0", "query": "select t1.name , t2.theme from journal_committee_editor as t1 join journal as t2 on t1.journal_id = t2.journal_id", "query_toks": ["select", "t1.name", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id"], "query_toks_no_value": ["select", "t1.name", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id"], "question": "For each journal_committee, find the editor name and the journal theme.", "question_toks": ["For", "each", "journal_committee", ",", "find", "the", "editor", "name", "and", "the", "journal", "theme", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0659", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0053", "db_id": "journal_committee_minus_1_0", "query": "select t1.name , t1.age , t2.theme from journal_committee_editor as t1 join journal as t2 on t1.journal_id = t2.journal_id order by t2.theme asc", "query_toks": ["select", "t1.name", ",", "t1.age", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id", "order", "by", "t2.theme", "asc"], "query_toks_no_value": ["select", "t1.name", ",", "t1.age", ",", "t2.theme", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id", "order", "by", "t2.theme", "asc"], "question": "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.", "question_toks": ["Show", "the", "names", "and", "ages", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", ",", "in", "ascending", "alphabetical", "order", "of", "theme", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0660", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0054", "db_id": "journal_committee_minus_1_0", "query": "select t1.name from journal_committee_editor as t1 join journal as t2 on t1.journal_id = t2.journal_id where t2.sales > 3000", "query_toks": ["select", "t1.name", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id", "where", "t2.sales", ">", "3000"], "query_toks_no_value": ["select", "t1.name", "from", "journal_committee_editor", "as", "t1", "join", "journal", "as", "t2", "on", "t1.journal_id", "=", "t2.journal_id", "where", "t2.sales", ">", "value"], "question": "Show the names of editors that are on the committee of journals with sales bigger than 3000.", "question_toks": ["Show", "the", "names", "of", "editors", "that", "are", "on", "the", "committee", "of", "journals", "with", "sales", "bigger", "than", "3000", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0661", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0055", "db_id": "chinook_1_minus_1_0", "query": "select t1.title from album_track as t1 join genre as t2 on t1.genreid = t2.genreid where t2.name = 'reggae' intersect select t1.title from album_track as t1 join genre as t2 on t1.genreid = t2.genreid where t2.name = 'rock'", "query_toks": ["select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "'reggae", "'", "intersect", "select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "'rock", "'"], "query_toks_no_value": ["select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "value", "intersect", "select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "value"], "question": "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?", "question_toks": ["What", "are", "the", "album", "titles", "for", "albums", "containing", "both", "'Reggae", "'", "and", "'Rock", "'", "genre", "tracks", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 9], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0889", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0056", "db_id": "chinook_1_minus_1_0", "query": "select t1.title from album_track as t1 join genre as t2 on t1.genreid = t2.genreid where t2.name = 'reggae' intersect select t1.title from album_track as t1 join genre as t2 on t1.genreid = t2.genreid where t2.name = 'rock'", "query_toks": ["select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "'reggae", "'", "intersect", "select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "'rock", "'"], "query_toks_no_value": ["select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "value", "intersect", "select", "t1.title", "from", "album_track", "as", "t1", "join", "genre", "as", "t2", "on", "t1.genreid", "=", "t2.genreid", "where", "t2.name", "=", "value"], "question": "Find the titles of albums that contain tracks of both the Reggae and Rock genres.", "question_toks": ["Find", "the", "titles", "of", "albums", "that", "contain", "tracks", "of", "both", "the", "Reggae", "and", "Rock", "genres", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 9], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 58, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0890", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0057", "db_id": "insurance_fnol_minus_1_1", "query": "select distinct t2.policy_type_code from customers_customers_policies as t1 join available_policies as t2 on t1.policy_id = t2.policy_id where t1.customer_name = ( select t1.customer_name from customers_customers_policies as t1 group by t1.customer_name order by count ( * ) desc limit 1 )", "query_toks": ["select", "distinct", "t2.policy_type_code", "from", "customers_customers_policies", "as", "t1", "join", "available_policies", "as", "t2", "on", "t1.policy_id", "=", "t2.policy_id", "where", "t1.customer_name", "=", "(", "select", "t1.customer_name", "from", "customers_customers_policies", "as", "t1", "group", "by", "t1.customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1", ")"], "query_toks_no_value": ["select", "distinct", "t2.policy_type_code", "from", "customers_customers_policies", "as", "t1", "join", "available_policies", "as", "t2", "on", "t1.policy_id", "=", "t2.policy_id", "where", "t1.customer_name", "=", "(", "select", "t1.customer_name", "from", "customers_customers_policies", "as", "t1", "group", "by", "t1.customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What are all the policy types of the customer that has the most policies listed?", "question_toks": ["What", "are", "all", "the", "policy", "types", "of", "the", "customer", "that", "has", "the", "most", "policies", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 4, false], null]]}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0913", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0058", "db_id": "insurance_fnol_minus_1_1", "query": "select distinct t2.policy_type_code from customers_customers_policies as t1 join available_policies as t2 on t1.policy_id = t2.policy_id where t1.customer_name = ( select t1.customer_name from customers_customers_policies as t1 group by t1.customer_name order by count ( * ) desc limit 1 )", "query_toks": ["select", "distinct", "t2.policy_type_code", "from", "customers_customers_policies", "as", "t1", "join", "available_policies", "as", "t2", "on", "t1.policy_id", "=", "t2.policy_id", "where", "t1.customer_name", "=", "(", "select", "t1.customer_name", "from", "customers_customers_policies", "as", "t1", "group", "by", "t1.customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1", ")"], "query_toks_no_value": ["select", "distinct", "t2.policy_type_code", "from", "customers_customers_policies", "as", "t1", "join", "available_policies", "as", "t2", "on", "t1.policy_id", "=", "t2.policy_id", "where", "t1.customer_name", "=", "(", "select", "t1.customer_name", "from", "customers_customers_policies", "as", "t1", "group", "by", "t1.customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "List all the policy types used by the customer enrolled in the most policies.", "question_toks": ["List", "all", "the", "policy", "types", "used", "by", "the", "customer", "enrolled", "in", "the", "most", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 4, false], null]]}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0914", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0059", "db_id": "insurance_fnol_minus_1_0", "query": "select t1.customer_name from customers_first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id where t2.service_name = 'close a policy' intersect select t1.customer_name from customers_first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id where t2.service_name = 'new policy application'", "query_toks": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "``", "close", "a", "policy", "''", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "``", "new", "policy", "application", "''"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "value", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "value"], "question": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\".", "question_toks": ["Find", "the", "names", "of", "customers", "who", "have", "used", "both", "the", "service", "``", "Close", "a", "policy", "''", "and", "the", "service", "``", "New", "policy", "application", "''", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"new policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0923", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0060", "db_id": "insurance_fnol_minus_1_0", "query": "select t1.customer_name from customers_first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id where t2.service_name = 'close a policy' intersect select t1.customer_name from customers_first_notification_of_loss as t1 join services as t2 on t1.service_id = t2.service_id where t2.service_name = 'new policy application'", "query_toks": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "``", "close", "a", "policy", "''", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "``", "new", "policy", "application", "''"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "value", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss", "as", "t1", "join", "services", "as", "t2", "on", "t1.service_id", "=", "t2.service_id", "where", "t2.service_name", "=", "value"], "question": "Which customers have used both the service named \"Close a policy\" and the service named \"Upgrade a policy\"? Give me the customer names.", "question_toks": ["Which", "customers", "have", "used", "both", "the", "service", "named", "``", "Close", "a", "policy", "''", "and", "the", "service", "named", "``", "Upgrade", "a", "policy", "''", "?", "Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"new policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_0924", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0061", "db_id": "game_injury_minus_1_0", "query": "select t1.id , t1.name from stadium_game as t1 join injury_accident as t2 on t1.id = t2.game_id group by t1.id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.id", ",", "t1.name", "from", "stadium_game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1.id", "=", "t2.game_id", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", "from", "stadium_game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1.id", "=", "t2.game_id", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the id and name of the stadium where the most injury accidents happened?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "most", "injury", "accidents", "happened", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1282", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0062", "db_id": "game_injury_minus_1_0", "query": "select t1.id , t1.name from stadium_game as t1 join injury_accident as t2 on t1.id = t2.game_id group by t1.id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.id", ",", "t1.name", "from", "stadium_game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1.id", "=", "t2.game_id", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", "from", "stadium_game", "as", "t1", "join", "injury_accident", "as", "t2", "on", "t1.id", "=", "t2.game_id", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the id and name of the stadium where the largest number of injury accidents occurred.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "largest", "number", "of", "injury", "accidents", "occurred", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1283", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0063", "db_id": "college_2_minus_1_0", "query": "select t1.name from instructor_teaches as t1 join course as t2 on t1.course_id = t2.course_id where t2.title = 'c programming'", "query_toks": ["select", "t1.name", "from", "instructor_teaches", "as", "t1", "join", "course", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "where", "t2.title", "=", "'c", "programming", "'"], "query_toks_no_value": ["select", "t1.name", "from", "instructor_teaches", "as", "t1", "join", "course", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "where", "t2.title", "=", "value"], "question": "Find the name of the instructors who taught C Programming course before.", "question_toks": ["Find", "the", "name", "of", "the", "instructors", "who", "taught", "C", "Programming", "course", "before", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"c programming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1430", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0064", "db_id": "college_2_minus_1_0", "query": "select t1.name from instructor_teaches as t1 join course as t2 on t1.course_id = t2.course_id where t2.title = 'c programming'", "query_toks": ["select", "t1.name", "from", "instructor_teaches", "as", "t1", "join", "course", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "where", "t2.title", "=", "'c", "programming", "'"], "query_toks_no_value": ["select", "t1.name", "from", "instructor_teaches", "as", "t1", "join", "course", "as", "t2", "on", "t1.course_id", "=", "t2.course_id", "where", "t2.title", "=", "value"], "question": "What are the names of instructors who have taught C Programming courses?", "question_toks": ["What", "are", "the", "names", "of", "instructors", "who", "have", "taught", "C", "Programming", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"c programming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1431", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0065", "db_id": "college_2_minus_1_2", "query": "select t1.name from advisor_instructor as t1 join student as t2 on t1.s_id = t2.id order by t2.tot_cred desc limit 1", "query_toks": ["select", "t1.name", "from", "advisor_instructor", "as", "t1", "join", "student", "as", "t2", "on", "t1.s_id", "=", "t2.id", "order", "by", "t2.tot_cred", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "advisor_instructor", "as", "t1", "join", "student", "as", "t2", "on", "t1.s_id", "=", "t2.id", "order", "by", "t2.tot_cred", "desc", "limit", "value"], "question": "Find the name of instructor who is the advisor of the student who has the highest number of total credits.", "question_toks": ["Find", "the", "name", "of", "instructor", "who", "is", "the", "advisor", "of", "the", "student", "who", "has", "the", "highest", "number", "of", "total", "credits", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 29, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1438", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0066", "db_id": "college_2_minus_1_2", "query": "select t1.name from advisor_instructor as t1 join student as t2 on t1.s_id = t2.id order by t2.tot_cred desc limit 1", "query_toks": ["select", "t1.name", "from", "advisor_instructor", "as", "t1", "join", "student", "as", "t2", "on", "t1.s_id", "=", "t2.id", "order", "by", "t2.tot_cred", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "advisor_instructor", "as", "t1", "join", "student", "as", "t2", "on", "t1.s_id", "=", "t2.id", "order", "by", "t2.tot_cred", "desc", "limit", "value"], "question": "What is the name of the instructor who advises the student with the greatest number of total credits?", "question_toks": ["What", "is", "the", "name", "of", "the", "instructor", "who", "advises", "the", "student", "with", "the", "greatest", "number", "of", "total", "credits", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 29, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1439", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0067", "db_id": "college_2_minus_1_1", "query": "select count ( distinct t1.id ) , count ( distinct t2.id ) , t2.dept_name from department_student as t1 join instructor as t2 on t1.dept_name = t2.dept_name group by t2.dept_name", "query_toks": ["select", "count", "(", "distinct", "t1.id", ")", ",", "count", "(", "distinct", "t2.id", ")", ",", "t2.dept_name", "from", "department_student", "as", "t1", "join", "instructor", "as", "t2", "on", "t1.dept_name", "=", "t2.dept_name", "group", "by", "t2.dept_name"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.id", ")", ",", "count", "(", "distinct", "t2.id", ")", ",", "t2.dept_name", "from", "department_student", "as", "t1", "join", "instructor", "as", "t2", "on", "t1.dept_name", "=", "t2.dept_name", "group", "by", "t2.dept_name"], "question": "Find the total number of students and total number of instructors for each department.", "question_toks": ["Find", "the", "total", "number", "of", "students", "and", "total", "number", "of", "instructors", "for", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 12, false], null]]}, "select": [false, [[3, [0, [0, 26, true], null]], [3, [0, [0, 10, true], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1454", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0068", "db_id": "college_2_minus_1_1", "query": "select count ( distinct t1.id ) , count ( distinct t2.id ) , t2.dept_name from department_student as t1 join instructor as t2 on t1.dept_name = t2.dept_name group by t2.dept_name", "query_toks": ["select", "count", "(", "distinct", "t1.id", ")", ",", "count", "(", "distinct", "t2.id", ")", ",", "t2.dept_name", "from", "department_student", "as", "t1", "join", "instructor", "as", "t2", "on", "t1.dept_name", "=", "t2.dept_name", "group", "by", "t2.dept_name"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.id", ")", ",", "count", "(", "distinct", "t2.id", ")", ",", "t2.dept_name", "from", "department_student", "as", "t1", "join", "instructor", "as", "t2", "on", "t1.dept_name", "=", "t2.dept_name", "group", "by", "t2.dept_name"], "question": "How many students and instructors are in each department?", "question_toks": ["How", "many", "students", "and", "instructors", "are", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 12, false], null]]}, "select": [false, [[3, [0, [0, 26, true], null]], [3, [0, [0, 10, true], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1455", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0069", "db_id": "debate_minus_1_0", "query": "select t2.name , t1.date , t1.venue from debate_people_debate as t1 join people as t2 on t1.affirmative = t2.people_id", "query_toks": ["select", "t2.name", ",", "t1.date", ",", "t1.venue", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.affirmative", "=", "t2.people_id"], "query_toks_no_value": ["select", "t2.name", ",", "t1.date", ",", "t1.venue", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.affirmative", "=", "t2.people_id"], "question": "Show the names of people, and dates and venues of debates they are on the affirmative side.", "question_toks": ["Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "affirmative", "side", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1501", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0070", "db_id": "debate_minus_1_0", "query": "select t2.name , t1.date , t1.venue from debate_people_debate as t1 join people as t2 on t1.negative = t2.people_id order by t2.name asc", "query_toks": ["select", "t2.name", ",", "t1.date", ",", "t1.venue", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.negative", "=", "t2.people_id", "order", "by", "t2.name", "asc"], "query_toks_no_value": ["select", "t2.name", ",", "t1.date", ",", "t1.venue", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.negative", "=", "t2.people_id", "order", "by", "t2.name", "asc"], "question": "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.", "question_toks": ["Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "negative", "side", ",", "ordered", "in", "ascending", "alphabetical", "order", "of", "name", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1502", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0071", "db_id": "debate_minus_1_0", "query": "select t2.name from debate_people_debate as t1 join people as t2 on t1.affirmative = t2.people_id where t1.num_of_audience > 200", "query_toks": ["select", "t2.name", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.affirmative", "=", "t2.people_id", "where", "t1.num_of_audience", ">", "200"], "query_toks_no_value": ["select", "t2.name", "from", "debate_people_debate", "as", "t1", "join", "people", "as", "t2", "on", "t1.affirmative", "=", "t2.people_id", "where", "t1.num_of_audience", ">", "value"], "question": "Show the names of people that are on affirmative side of debates with number of audience bigger than 200.", "question_toks": ["Show", "the", "names", "of", "people", "that", "are", "on", "affirmative", "side", "of", "debates", "with", "number", "of", "audience", "bigger", "than", "200", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1503", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0072", "db_id": "insurance_and_eClaims_minus_1_0", "query": "select t2.customer_details from claim_headers_policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.amount_piad = ( select min ( amount_piad ) from claim_headers_policies )", "query_toks": ["select", "t2.customer_details", "from", "claim_headers_policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1.customer_id", "=", "t2.customer_id", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies", ")"], "query_toks_no_value": ["select", "t2.customer_details", "from", "claim_headers_policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1.customer_id", "=", "t2.customer_id", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies", ")"], "question": "What is the name of the customer who has made the minimum amount of payment in one claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "minimum", "amount", "of", "payment", "in", "one", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1521", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0073", "db_id": "insurance_and_eClaims_minus_1_0", "query": "select t2.customer_details from claim_headers_policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.amount_piad = ( select min ( amount_piad ) from claim_headers_policies )", "query_toks": ["select", "t2.customer_details", "from", "claim_headers_policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1.customer_id", "=", "t2.customer_id", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies", ")"], "query_toks_no_value": ["select", "t2.customer_details", "from", "claim_headers_policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1.customer_id", "=", "t2.customer_id", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies", ")"], "question": "Which customer made the smallest amount of claim in one claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "smallest", "amount", "of", "claim", "in", "one", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1522", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0074", "db_id": "customers_and_invoices_minus_1_0", "query": "select t1.product_name , count ( * ) from order_items_products as t1 join orders as t2 on t1.order_id = t2.order_id group by t1.product_name", "query_toks": ["select", "t1.product_name", ",", "count", "(", "*", ")", "from", "order_items_products", "as", "t1", "join", "orders", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "group", "by", "t1.product_name"], "query_toks_no_value": ["select", "t1.product_name", ",", "count", "(", "*", ")", "from", "order_items_products", "as", "t1", "join", "orders", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "group", "by", "t1.product_name"], "question": "Show all product names and the number of customers having an order on each product.", "question_toks": ["Show", "all", "product", "names", "and", "the", "number", "of", "customers", "having", "an", "order", "on", "each", "product", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1621", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0075", "db_id": "customers_and_invoices_minus_1_0", "query": "select t1.product_name , count ( * ) from order_items_products as t1 join orders as t2 on t1.order_id = t2.order_id group by t1.product_name", "query_toks": ["select", "t1.product_name", ",", "count", "(", "*", ")", "from", "order_items_products", "as", "t1", "join", "orders", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "group", "by", "t1.product_name"], "query_toks_no_value": ["select", "t1.product_name", ",", "count", "(", "*", ")", "from", "order_items_products", "as", "t1", "join", "orders", "as", "t2", "on", "t1.order_id", "=", "t2.order_id", "group", "by", "t1.product_name"], "question": "What are teh names of the different products, as well as the number of customers who have ordered each product.", "question_toks": ["What", "are", "teh", "names", "of", "the", "different", "products", ",", "as", "well", "as", "the", "number", "of", "customers", "who", "have", "ordered", "each", "product", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1622", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0076", "db_id": "theme_gallery_minus_1_0", "query": "select t2.name from exhibition_record_exhibition as t1 join artist as t2 on t1.artist_id = t2.artist_id group by t2.artist_id having avg ( t1.attendance ) > 200", "query_toks": ["select", "t2.name", "from", "exhibition_record_exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1.artist_id", "=", "t2.artist_id", "group", "by", "t2.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t2.name", "from", "exhibition_record_exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1.artist_id", "=", "t2.artist_id", "group", "by", "t2.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "value"], "question": "Show all artist names with an average exhibition attendance over 200.", "question_toks": ["Show", "all", "artist", "names", "with", "an", "average", "exhibition", "attendance", "over", "200", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [5, 11, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1687", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0077", "db_id": "theme_gallery_minus_1_0", "query": "select t2.name from exhibition_record_exhibition as t1 join artist as t2 on t1.artist_id = t2.artist_id group by t2.artist_id having avg ( t1.attendance ) > 200", "query_toks": ["select", "t2.name", "from", "exhibition_record_exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1.artist_id", "=", "t2.artist_id", "group", "by", "t2.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t2.name", "from", "exhibition_record_exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1.artist_id", "=", "t2.artist_id", "group", "by", "t2.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "value"], "question": "What are the names of artist whose exhibitions draw over 200 attendees on average?", "question_toks": ["What", "are", "the", "names", "of", "artist", "whose", "exhibitions", "draw", "over", "200", "attendees", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [5, 11, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1688", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0078", "db_id": "riding_club_minus_1_0", "query": "select t2.player_name , t1.coach_name from player_coach_coach as t1 join player as t2 on t1.player_id = t2.player_id", "query_toks": ["select", "t2.player_name", ",", "t1.coach_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id"], "query_toks_no_value": ["select", "t2.player_name", ",", "t1.coach_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id"], "question": "Show the names of players and names of their coaches.", "question_toks": ["Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1728", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0079", "db_id": "riding_club_minus_1_0", "query": "select t2.player_name from player_coach_coach as t1 join player as t2 on t1.player_id = t2.player_id where t1.rank = 1", "query_toks": ["select", "t2.player_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "where", "t1.rank", "=", "1"], "query_toks_no_value": ["select", "t2.player_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "where", "t1.rank", "=", "value"], "question": "Show the names of players coached by the rank 1 coach.", "question_toks": ["Show", "the", "names", "of", "players", "coached", "by", "the", "rank", "1", "coach", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1729", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0080", "db_id": "riding_club_minus_1_0", "query": "select t2.player_name , t2.gender from player_coach_coach as t1 join player as t2 on t1.player_id = t2.player_id where t1.starting_year > 2011", "query_toks": ["select", "t2.player_name", ",", "t2.gender", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "where", "t1.starting_year", ">", "2011"], "query_toks_no_value": ["select", "t2.player_name", ",", "t2.gender", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "where", "t1.starting_year", ">", "value"], "question": "Show the names and genders of players with a coach starting after 2011.", "question_toks": ["Show", "the", "names", "and", "genders", "of", "players", "with", "a", "coach", "starting", "after", "2011", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1730", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0081", "db_id": "riding_club_minus_1_0", "query": "select t2.player_name , t1.coach_name from player_coach_coach as t1 join player as t2 on t1.player_id = t2.player_id order by t2.votes desc", "query_toks": ["select", "t2.player_name", ",", "t1.coach_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "order", "by", "t2.votes", "desc"], "query_toks_no_value": ["select", "t2.player_name", ",", "t1.coach_name", "from", "player_coach_coach", "as", "t1", "join", "player", "as", "t2", "on", "t1.player_id", "=", "t2.player_id", "order", "by", "t2.votes", "desc"], "question": "Show the names of players and names of their coaches in descending order of the votes of players.", "question_toks": ["Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "in", "descending", "order", "of", "the", "votes", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1731", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0082", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance limit 1", "query_toks": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "limit", "value"], "question": "Find the name of account that has the lowest total checking and saving balance.", "question_toks": ["Find", "the", "name", "of", "account", "that", "has", "the", "lowest", "total", "checking", "and", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 4, false], [0, 3, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1798", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0083", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance limit 1", "query_toks": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "limit", "value"], "question": "What is the name corresponding to the accoung with the lowest sum of checking and savings balances?", "question_toks": ["What", "is", "the", "name", "corresponding", "to", "the", "accoung", "with", "the", "lowest", "sum", "of", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 4, false], [0, 3, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1799", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0084", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t1.balance + t2.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t2.balance > ( select avg ( balance ) from savings )", "query_toks": ["select", "t1.name", ",", "t1.balance", "+", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance", "+", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.", "question_toks": ["Find", "the", "names", "and", "total", "checking", "and", "savings", "balances", "of", "accounts", "whose", "savings", "balance", "is", "higher", "than", "the", "average", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 4, false], [0, 3, false]]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1800", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0085", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t1.balance + t2.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t2.balance > ( select avg ( balance ) from savings )", "query_toks": ["select", "t1.name", ",", "t1.balance", "+", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance", "+", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance?", "question_toks": ["What", "are", "the", "names", "and", "sum", "of", "checking", "and", "savings", "balances", "for", "accounts", "with", "savings", "balances", "higher", "than", "the", "average", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 4, false], [0, 3, false]]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1801", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0086", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t1.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance limit 1", "query_toks": ["select", "t1.name", ",", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest savings balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1802", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0087", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t1.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance limit 1", "query_toks": ["select", "t1.name", ",", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "value"], "question": "What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?", "question_toks": ["What", "are", "the", "names", "and", "balances", "of", "checking", "accounts", "belonging", "to", "the", "customer", "with", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1803", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0088", "db_id": "small_bank_1_minus_1_0", "query": "select t2.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance desc limit 1", "query_toks": ["select", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "desc", "limit", "value"], "question": "Find the saving balance of the account with the highest checking balance.", "question_toks": ["Find", "the", "saving", "balance", "of", "the", "account", "with", "the", "highest", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1810", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0089", "db_id": "small_bank_1_minus_1_0", "query": "select t2.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance desc limit 1", "query_toks": ["select", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "desc", "limit", "value"], "question": "What is the savings balance of the account belonging to the customer with the highest checking balance?", "question_toks": ["What", "is", "the", "savings", "balance", "of", "the", "account", "belonging", "to", "the", "customer", "with", "the", "highest", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1811", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0090", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance limit 1", "query_toks": ["select", "t1.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest saving balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1814", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0091", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance limit 1", "query_toks": ["select", "t1.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "1"], "query_toks_no_value": ["select", "t1.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t2.balance", "limit", "value"], "question": "What is the name and checking balance of the account which has the lowest savings balance?", "question_toks": ["What", "is", "the", "name", "and", "checking", "balance", "of", "the", "account", "which", "has", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1815", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0092", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t2.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid", "query_toks": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid"], "query_toks_no_value": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid"], "question": "Find the name, checking balance and saving balance of all accounts in the bank.", "question_toks": ["Find", "the", "name", ",", "checking", "balance", "and", "saving", "balance", "of", "all", "accounts", "in", "the", "bank", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1816", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0093", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t2.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid", "query_toks": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid"], "query_toks_no_value": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid"], "question": "What are the names, checking balances, and savings balances for all customers?", "question_toks": ["What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "for", "all", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1817", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0094", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t2.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance desc", "query_toks": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "desc"], "query_toks_no_value": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "desc"], "question": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.", "question_toks": ["Find", "the", "name", ",", "checking", "balance", "and", "savings", "balance", "of", "all", "accounts", "in", "the", "bank", "sorted", "by", "their", "total", "checking", "and", "savings", "balance", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[2, [0, 4, false], [0, 3, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1818", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0095", "db_id": "small_bank_1_minus_1_0", "query": "select t1.balance , t2.balance , t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance desc", "query_toks": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "desc"], "query_toks_no_value": ["select", "t1.balance", ",", "t2.balance", ",", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "order", "by", "t1.balance", "+", "t2.balance", "desc"], "question": "What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending?", "question_toks": ["What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "of", "customers", ",", "ordered", "by", "the", "total", "of", "checking", "and", "savings", "balances", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[2, [0, 4, false], [0, 3, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1819", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0096", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t1.balance > t2.balance", "query_toks": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t1.balance", ">", "t2.balance"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t1.balance", ">", "t2.balance"], "question": "Find the name of accounts whose checking balance is higher than corresponding saving balance.", "question_toks": ["Find", "the", "name", "of", "accounts", "whose", "checking", "balance", "is", "higher", "than", "corresponding", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], [0, 3, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1820", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0097", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t1.balance > t2.balance", "query_toks": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t1.balance", ">", "t2.balance"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t1.balance", ">", "t2.balance"], "question": "What are the names of customers with a higher checking balance than savings balance?", "question_toks": ["What", "are", "the", "names", "of", "customers", "with", "a", "higher", "checking", "balance", "than", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], [0, 3, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1821", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0098", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t2.balance + t1.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t2.balance < t1.balance", "query_toks": ["select", "t1.name", ",", "t2.balance", "+", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", "<", "t1.balance"], "query_toks_no_value": ["select", "t1.name", ",", "t2.balance", "+", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", "<", "t1.balance"], "question": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": ["Find", "the", "name", "and", "total", "checking", "and", "savings", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 3, false], [0, 4, false]]]]], "where": [[false, 4, [0, [0, 3, false], null], [0, 4, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1822", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0099", "db_id": "small_bank_1_minus_1_0", "query": "select t1.name , t2.balance + t1.balance from accounts_checking as t1 join savings as t2 on t1.custid = t2.custid where t2.balance < t1.balance", "query_toks": ["select", "t1.name", ",", "t2.balance", "+", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", "<", "t1.balance"], "query_toks_no_value": ["select", "t1.name", ",", "t2.balance", "+", "t1.balance", "from", "accounts_checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1.custid", "=", "t2.custid", "where", "t2.balance", "<", "t1.balance"], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "total", "of", "their", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 3, false], [0, 4, false]]]]], "where": [[false, 4, [0, [0, 3, false], null], [0, 4, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1823", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "dejoin_from_2_to_1_0100", "db_id": "browser_web_minus_1_0", "query": "select distinct t1.name from web_client_accelerator_accelerator_compatible_browser as t1 join browser as t2 on t1.browser_id = t2.id where t2.market_share > 15 ;", "query_toks": ["select", "distinct", "t1.name", "from", "web_client_accelerator_accelerator_compatible_browser", "as", "t1", "join", "browser", "as", "t2", "on", "t1.browser_id", "=", "t2.id", "where", "t2.market_share", ">", "15", ";"], "query_toks_no_value": ["select", "distinct", "t1.name", "from", "web_client_accelerator_accelerator_compatible_browser", "as", "t1", "join", "browser", "as", "t2", "on", "t1.browser_id", "=", "t2.id", "where", "t2.market_share", ">", "value"], "question": "What distinct accelerator names are compatible with the browswers that have market share higher than 15?", "question_toks": ["What", "distinct", "accelerator", "names", "are", "compatible", "with", "the", "browswers", "that", "have", "market", "share", "higher", "than", "15", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 15.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOINED_TO_1"], "source": "SIMPLIFIED", "parents_id": "train_1838", "is_simplification": true, "simplifications_tags": ["DEJOIN_MINUS_1"]}, {"id": "like_in_sql_0000", "db_id": "concert_singer", "query": "select name , country from singer", "query_toks": ["SELECT", "name", ",", "country", "FROM", "singer"], "query_toks_no_value": ["SELECT", "name", ",", "country", "FROM", "singer"], "question": "what is the name and nation of the singer?", "question_toks": ["what", "is", "the", "name", "and", "nation", "of", "the", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0039", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0001", "db_id": "concert_singer", "query": "select name , country from singer", "query_toks": ["SELECT", "name", ",", "country", "FROM", "singer"], "query_toks_no_value": ["SELECT", "name", ",", "country", "FROM", "singer"], "question": "What is the name and country of origin of every singer?", "question_toks": ["What", "is", "the", "name", "and", "country", "of", "origin", "of", "every", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0040", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0002", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name , template_id from documents", "query_toks": ["SELECT", "document_name", ",", "template_id", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "document_name", ",", "template_id", "FROM", "Documents"], "question": "What is the document name and template id for document?", "question_toks": ["What", "is", "the", "document", "name", "and", "template", "id", "for", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0301", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0003", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name , template_id from documents", "query_toks": ["SELECT", "document_name", ",", "template_id", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "document_name", ",", "template_id", "FROM", "Documents"], "question": "Return the names and template ids for documents.", "question_toks": ["Return", "the", "names", "and", "template", "ids", "for", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0302", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0004", "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs", "query_toks": ["select", "other_details", "from", "paragraphs"], "query_toks_no_value": ["select", "other_details", "from", "paragraphs"], "question": "Show paragraph details for paragraph.", "question_toks": ["Show", "paragraph", "details", "for", "paragraph", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0361", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0005", "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs", "query_toks": ["select", "other_details", "from", "paragraphs"], "query_toks_no_value": ["select", "other_details", "from", "paragraphs"], "question": "What are the details for the paragraph?", "question_toks": ["What", "are", "the", "details", "for", "the", "paragraph", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0362", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0006", "db_id": "battle_death", "query": "select note from death", "query_toks": ["SELECT", "note", "FROM", "death"], "query_toks_no_value": ["SELECT", "note", "FROM", "death"], "question": "What are the notes of the death events?", "question_toks": ["What", "are", "the", "notes", "of", "the", "death", "events", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0506", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0007", "db_id": "student_transcripts_tracking", "query": "select department_description from departments", "query_toks": ["SELECT", "department_description", "FROM", "Departments"], "query_toks_no_value": ["SELECT", "department_description", "FROM", "Departments"], "question": "What is the description of the department?", "question_toks": ["What", "is", "the", "description", "of", "the", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0531", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0008", "db_id": "student_transcripts_tracking", "query": "select department_description from departments", "query_toks": ["SELECT", "department_description", "FROM", "Departments"], "query_toks_no_value": ["SELECT", "department_description", "FROM", "Departments"], "question": "What is the department descriptions ?", "question_toks": ["What", "is", "the", "department", "descriptions", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0532", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0009", "db_id": "voter_1", "query": "select contestant_name from contestants", "query_toks": ["select", "contestant_name", "from", "contestants"], "query_toks_no_value": ["select", "contestant_name", "from", "contestants"], "question": "Return the names of the contestants.", "question_toks": ["Return", "the", "names", "of", "the", "contestants", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0701", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0010", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals", "query_toks": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals"], "query_toks_no_value": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals"], "question": "Which professionals live in a city? List his or her role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "?", "List", "his", "or", "her", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0970", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0011", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals", "query_toks": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals"], "query_toks_no_value": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals"], "question": "Find the role, street, city and state of the professionals living in a city", "question_toks": ["Find", "the", "role", ",", "street", ",", "city", "and", "state", "of", "the", "professionals", "living", "in", "a", "city"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0971", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0012", "db_id": "dog_kennels", "query": "select first_name , last_name , email_address from owners", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners"], "question": "Return the first name, last name and email of the owners.", "question_toks": ["Return", "the", "first", "name", ",", "last", "name", "and", "email", "of", "the", "owners", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0973", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0013", "db_id": "bike_1", "query": "select zip_code , avg(mean_temperature_f) from weather group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "GROUP", "BY", "zip_code"], "question": "For each zip code, return the average mean temperature there.", "question_toks": ["For", "each", "zip", "code", ",", "return", "the", "average", "mean", "temperature", "there", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0123", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0014", "db_id": "bike_1", "query": "select zip_code , avg(mean_temperature_f) from weather group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "GROUP", "BY", "zip_code"], "question": "For each zip code, what is the average mean temperature for all dates?", "question_toks": ["For", "each", "zip", "code", ",", "what", "is", "the", "average", "mean", "temperature", "for", "all", "dates", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0124", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0015", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "question": "Which start station had the most trips ? Give me the name and id of the station.", "question_toks": ["Which", "start", "station", "had", "the", "most", "trips", "?", "Give", "me", "the", "name", "and", "id", "of", "the", "station", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0133", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0016", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "question": "What are the start station's name and id for the one that had the most start trips?", "question_toks": ["What", "are", "the", "start", "station", "'", "s", "name", "and", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0134", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0017", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14", "query_toks": ["SELECT", "T1", ".", "name", ",", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14"], "question": "What are the names and ids of stations that had more than 14 bikes available on average?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "stations", "that", "had", "more", "than", "14", "bikes", "available", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0143", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0018", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14", "query_toks": ["SELECT", "T1", ".", "name", ",", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14"], "question": "What are the names and ids of all stations that have more than 14 bikes available on average?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0144", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0019", "db_id": "twitter_1", "query": "select name , email from user_profiles", "query_toks": ["SELECT", "name", ",", "email", "FROM", "user_profiles"], "query_toks_no_value": ["SELECT", "name", ",", "email", "FROM", "user_profiles"], "question": "Find the name and email of the user", "question_toks": ["Find", "the", "name", "and", "email", "of", "the", "user"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0281", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0020", "db_id": "twitter_1", "query": "select name from user_profiles", "query_toks": ["SELECT", "name", "FROM", "user_profiles"], "query_toks_no_value": ["SELECT", "name", "FROM", "user_profiles"], "question": "Find the names of users", "question_toks": ["Find", "the", "names", "of", "users"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0282", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0021", "db_id": "twitter_1", "query": "select text from tweets ", "query_toks": ["SELECT", "text", "FROM", "tweets"], "query_toks_no_value": ["SELECT", "text", "FROM", "tweets"], "question": "Return the text of tweets", "question_toks": ["Return", "the", "text", "of", "tweets"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0283", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0022", "db_id": "product_catalog", "query": "select distinct(catalog_publisher) from catalogs", "query_toks": ["SELECT", "distinct", "(", "catalog_publisher", ")", "FROM", "catalogs"], "query_toks_no_value": ["SELECT", "distinct", "(", "catalog_publisher", ")", "FROM", "catalogs"], "question": "Find all the catalog publishers", "question_toks": ["Find", "all", "the", "catalog", "publishers"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0309", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0023", "db_id": "product_catalog", "query": "select catalog_entry_name from catalog_contents", "query_toks": ["SELECT", "catalog_entry_name", "FROM", "catalog_contents"], "query_toks_no_value": ["SELECT", "catalog_entry_name", "FROM", "catalog_contents"], "question": "Find the names of all the products.", "question_toks": ["Find", "the", "names", "of", "all", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0327", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0024", "db_id": "product_catalog", "query": "select catalog_entry_name from catalog_contents", "query_toks": ["SELECT", "catalog_entry_name", "FROM", "catalog_contents"], "query_toks_no_value": ["SELECT", "catalog_entry_name", "FROM", "catalog_contents"], "question": "Which catalog contents have a product stock number? Show the catalog entry names.", "question_toks": ["Which", "catalog", "contents", "have", "a", "product", "stock", "number", "?", "Show", "the", "catalog", "entry", "names", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0328", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0025", "db_id": "store_1", "query": "select title from albums order by title", "query_toks": ["SELECT", "title", "FROM", "albums", "ORDER", "BY", "title"], "query_toks_no_value": ["SELECT", "title", "FROM", "albums", "ORDER", "BY", "title"], "question": "List every album title in alphabetical order.", "question_toks": ["List", "every", "album", "title", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0555", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0026", "db_id": "store_1", "query": "select title from albums order by title", "query_toks": ["SELECT", "title", "FROM", "albums", "ORDER", "BY", "title"], "query_toks_no_value": ["SELECT", "title", "FROM", "albums", "ORDER", "BY", "title"], "question": "What are the titles of all albums in alphabetical order?", "question_toks": ["What", "are", "the", "titles", "of", "all", "albums", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0556", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0027", "db_id": "store_1", "query": "select title from albums", "query_toks": ["SELECT", "title", "FROM", "albums"], "query_toks_no_value": ["SELECT", "title", "FROM", "albums"], "question": "List the name of albums ", "question_toks": ["List", "the", "name", "of", "albums"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0583", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0028", "db_id": "chinook_1", "query": "select name from artist", "query_toks": ["SELECT", "Name", "FROM", "ARTIST"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ARTIST"], "question": "Find the names of all artists", "question_toks": ["Find", "the", "names", "of", "all", "artists"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0817", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0029", "db_id": "chinook_1", "query": "select name from artist ", "query_toks": ["SELECT", "Name", "FROM", "ARTIST"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ARTIST"], "question": "What are the names of artists?", "question_toks": ["What", "are", "the", "names", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0818", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0030", "db_id": "chinook_1", "query": "select name from track", "query_toks": ["SELECT", "Name", "FROM", "TRACK"], "query_toks_no_value": ["SELECT", "Name", "FROM", "TRACK"], "question": "Find the names of all the tracks", "question_toks": ["Find", "the", "names", "of", "all", "the", "tracks"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0827", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0031", "db_id": "chinook_1", "query": "select name from track", "query_toks": ["SELECT", "Name", "FROM", "TRACK"], "query_toks_no_value": ["SELECT", "Name", "FROM", "TRACK"], "question": "What are the names of tracks?", "question_toks": ["What", "are", "the", "names", "of", "tracks", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0828", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0032", "db_id": "chinook_1", "query": "select count(*) from customer", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "CUSTOMER"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "CUSTOMER"], "question": "How many customers are?", "question_toks": ["How", "many", "customers", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0847", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0033", "db_id": "chinook_1", "query": "select count(*) from customer", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "CUSTOMER"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "CUSTOMER"], "question": "Count the number of customers", "question_toks": ["Count", "the", "number", "of", "customers"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0848", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0034", "db_id": "insurance_fnol", "query": "select customer_id from customers", "query_toks": ["SELECT", "customer_id", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_id", "FROM", "customers"], "question": "Find the IDs of customers", "question_toks": ["Find", "the", "IDs", "of", "customers"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0925", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0035", "db_id": "insurance_fnol", "query": "select customer_id from customers ", "query_toks": ["SELECT", "customer_id", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_id", "FROM", "customers"], "question": "What are the IDs of customers ?", "question_toks": ["What", "are", "the", "IDs", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0926", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0036", "db_id": "insurance_fnol", "query": "select date_opened , date_closed from customers_policies", "query_toks": ["SELECT", "date_opened", ",", "date_closed", "FROM", "customers_policies"], "query_toks_no_value": ["SELECT", "date_opened", ",", "date_closed", "FROM", "customers_policies"], "question": "Retrieve the open and close dates of all the policies", "question_toks": ["Retrieve", "the", "open", "and", "close", "dates", "of", "all", "the", "policies"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0931", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0037", "db_id": "insurance_fnol", "query": "select date_opened , date_closed from customers_policies", "query_toks": ["SELECT", "date_opened", ",", "date_closed", "FROM", "customers_policies"], "query_toks_no_value": ["SELECT", "date_opened", ",", "date_closed", "FROM", "customers_policies"], "question": "What are the open and close dates of all the policies?", "question_toks": ["What", "are", "the", "open", "and", "close", "dates", "of", "all", "the", "policies", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0932", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0038", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme ", "query_toks": ["SELECT", "name", "FROM", "enzyme"], "query_toks_no_value": ["SELECT", "name", "FROM", "enzyme"], "question": "List enzyme names", "question_toks": ["Which", "enzyme", "names", "have", "the", "substring", "\"", "ALA", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0973", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0039", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme ", "query_toks": ["SELECT", "name", "FROM", "enzyme"], "query_toks_no_value": ["SELECT", "name", "FROM", "enzyme"], "question": "What are the names of enzymes", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "that", "include", "the", "string", "'", "ALA", "'?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0974", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0040", "db_id": "university_basketball", "query": "select count(*) from university", "query_toks": ["SELECT", "count", "(*)", "FROM", "university"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "university"], "question": "Find how many school locations are.", "question_toks": ["Find", "how", "many", "school", "locations", "are", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1009", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0041", "db_id": "university_basketball", "query": "select count(*) from university ", "query_toks": ["SELECT", "count", "(*)", "FROM", "university"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "university"], "question": "How many universities are?", "question_toks": ["How", "many", "universities", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1010", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0042", "db_id": "phone_1", "query": "select hardware_model_name , company_name from phone ", "query_toks": ["SELECT", "Hardware_Model_name", ",", "Company_name", "FROM", "phone"], "query_toks_no_value": ["SELECT", "Hardware_Model_name", ",", "Company_name", "FROM", "phone"], "question": "Find all phones. List the Hardware Model name and Company name.", "question_toks": ["Find", "all", "phones", ".", "List", "the", "Hardware", "Model", "name", "and", "Company", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1030", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0043", "db_id": "match_season", "query": "select official_native_language from country ", "query_toks": ["SELECT", "Official_native_language", "FROM", "country"], "query_toks_no_value": ["SELECT", "Official_native_language", "FROM", "country"], "question": "Show all official native languages .", "question_toks": ["Show", "all", "official", "native", "languages", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1056", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0044", "db_id": "match_season", "query": "select official_native_language from country ", "query_toks": ["SELECT", "Official_native_language", "FROM", "country"], "query_toks_no_value": ["SELECT", "Official_native_language", "FROM", "country"], "question": "What are the official native languages.", "question_toks": ["What", "are", "the", "official", "native", "languages", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1057", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0045", "db_id": "body_builder", "query": "select total from body_builder", "query_toks": ["SELECT", "total", "FROM", "body_builder"], "query_toks_no_value": ["SELECT", "total", "FROM", "body_builder"], "question": "What are the total scores of the body builders?", "question_toks": ["What", "are", "the", "total", "scores", "of", "the", "body", "builders", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1172", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0046", "db_id": "apartment_rentals", "query": "select building_full_name from apartment_buildings", "query_toks": ["SELECT", "building_full_name", "FROM", "Apartment_Buildings"], "query_toks_no_value": ["SELECT", "building_full_name", "FROM", "Apartment_Buildings"], "question": "What are the building full names?", "question_toks": ["What", "are", "the", "building", "full", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1204", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0047", "db_id": "apartment_rentals", "query": "select building_full_name from apartment_buildings", "query_toks": ["SELECT", "building_full_name", "FROM", "Apartment_Buildings"], "query_toks_no_value": ["SELECT", "building_full_name", "FROM", "Apartment_Buildings"], "question": "Find all the building full names.", "question_toks": ["Find", "all", "the", "building", "full", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1205", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0048", "db_id": "college_2", "query": "select dept_name from instructor", "query_toks": ["SELECT", "dept_name", "FROM", "instructor"], "query_toks_no_value": ["SELECT", "dept_name", "FROM", "instructor"], "question": "Find the department name of the instructors", "question_toks": ["Find", "the", "department", "name", "of", "the", "instructors"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1354", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0049", "db_id": "college_2", "query": "select dept_name from department", "query_toks": ["SELECT", "dept_name", "FROM", "instructor"], "query_toks_no_value": ["SELECT", "dept_name", "FROM", "instructor"], "question": "What is the names of the departments?", "question_toks": ["What", "is", "the", "names", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1355", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0050", "db_id": "college_2", "query": "select name from instructor", "query_toks": ["SELECT", "name", "FROM", "instructor"], "query_toks_no_value": ["SELECT", "name", "FROM", "instructor"], "question": "Find the names of all instructors .", "question_toks": ["Find", "the", "names", "of", "all", "instructors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1472", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0051", "db_id": "college_2", "query": "select name from instructor ", "query_toks": ["SELECT", "name", "FROM", "instructor"], "query_toks_no_value": ["SELECT", "name", "FROM", "instructor"], "question": "What are the names of all instructors ?", "question_toks": ["What", "are", "the", "names", "of", "all", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1473", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0052", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers", "query_toks": ["SELECT", "customer_details", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_details", "FROM", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1529", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0053", "db_id": "small_bank_1", "query": "select balance from checking", "query_toks": ["SELECT", "balance", "FROM", "checking"], "query_toks_no_value": ["SELECT", "balance", "FROM", "checking"], "question": "What is the checking balance of the account?", "question_toks": ["What", "is", "the", "checking", "balance", "of", "the", "account", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1788", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0054", "db_id": "cinema", "query": "select count(*) from film", "query_toks": ["SELECT", "count", "(*)", "FROM", "film"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "film"], "question": "How many films are?", "question_toks": ["How", "many", "films", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1958", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0055", "db_id": "cinema", "query": "select count(*) from film", "query_toks": ["SELECT", "count", "(*)", "FROM", "film"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "film"], "question": "Count the number of films.", "question_toks": ["Count", "the", "number", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1959", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0056", "db_id": "music_1", "query": "select max(resolution) , min(resolution) from song ", "query_toks": ["SELECT", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "FROM", "song"], "query_toks_no_value": ["SELECT", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "FROM", "song"], "question": "What are the maximum and minimum resolution of songs?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "resolution", "of", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3599", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0057", "db_id": "music_1", "query": "select max(resolution) , min(resolution) from song ", "query_toks": ["SELECT", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "FROM", "song"], "query_toks_no_value": ["SELECT", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "FROM", "song"], "question": "What is the maximum and minimum resolution of all songs ?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "resolution", "of", "all", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3600", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0058", "db_id": "mountain_photos", "query": "select name from camera_lens", "query_toks": ["SELECT", "name", "FROM", "camera_lens"], "query_toks_no_value": ["SELECT", "name", "FROM", "camera_lens"], "question": "List the camera lens names.", "question_toks": ["List", "the", "camera", "lens", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3726", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0059", "db_id": "e_learning", "query": "select count(*) from students", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "Students"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "Students"], "question": "Find the number of students", "question_toks": ["Find", "the", "number", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3793", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0060", "db_id": "hospital_1", "query": "select name from physician ", "query_toks": ["SELECT", "name", "FROM", "physician"], "query_toks_no_value": ["SELECT", "name", "FROM", "physician"], "question": "Find the name of physicians", "question_toks": ["Find", "the", "name", "of", "physicians"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3946", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0061", "db_id": "hospital_1", "query": "select name from physician", "query_toks": ["SELECT", "name", "FROM", "physician"], "query_toks_no_value": ["SELECT", "name", "FROM", "physician"], "question": "What are the names of the physicians.", "question_toks": ["What", "are", "the", "names", "of", "the", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3947", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0062", "db_id": "film_rank", "query": "select title , studio from film", "query_toks": ["SELECT", "title", ",", "Studio", "FROM", "film"], "query_toks_no_value": ["SELECT", "title", ",", "Studio", "FROM", "film"], "question": "Find the titles and studios of the films", "question_toks": ["Find", "the", "titles", "and", "studios", "of", "the", "films"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4150", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0063", "db_id": "film_rank", "query": "select title , studio from film", "query_toks": ["SELECT", "title", ",", "Studio", "FROM", "film"], "query_toks_no_value": ["SELECT", "title", ",", "Studio", "FROM", "film"], "question": "What are the titles and studios of films?", "question_toks": ["What", "are", "the", "titles", "and", "studios", "of", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4151", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0064", "db_id": "tracking_grants_for_research", "query": "select project_details from projects ", "query_toks": ["SELECT", "project_details", "FROM", "Projects"], "query_toks_no_value": ["SELECT", "project_details", "FROM", "Projects"], "question": "List the project details of the projects.", "question_toks": ["List", "the", "project", "details", "of", "the", "projects", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4348", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0065", "db_id": "tracking_grants_for_research", "query": "select t1.project_details from projects as t1 join project_outcomes as t2 on t1.project_id = t2.project_id join research_outcomes as t3 on t2.outcome_code = t3.outcome_code where t3.outcome_description = \"published research paper\"", "query_toks": ["SELECT", "T1", ".", "project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Research_outcomes", "AS", "T3", "ON", "T2", ".", "outcome_code", "=", "T3", ".", "outcome_code", "WHERE", "T3", ".", "outcome_description", "=", "``", "published", "research", "paper", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Research_outcomes", "AS", "T3", "ON", "T2", ".", "outcome_code", "=", "T3", ".", "outcome_code", "WHERE", "T3", ".", "outcome_description", "=", "value", "research", "paper"], "question": "What are the details for the project whose research has outcome_description \"published esearch paper\"?", "question_toks": ["What", "are", "the", "details", "for", "the", "project", "whose", "research", "has", "outcome_description", "\"", "published", "esearch", "paper", "\"?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"published research paper\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4349", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0066", "db_id": "tracking_grants_for_research", "query": "select document_type_code from document_types", "query_toks": ["SELECT", "document_type_code", "FROM", "Document_Types"], "query_toks_no_value": ["SELECT", "document_type_code", "FROM", "Document_Types"], "question": "Which document type is described?", "question_toks": ["Which", "document", "type", "is", "described", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4364", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0067", "db_id": "tracking_grants_for_research", "query": "select document_type_code from document_types", "query_toks": ["SELECT", "document_type_code", "FROM", "Document_Types"], "query_toks_no_value": ["SELECT", "document_type_code", "FROM", "Document_Types"], "question": "What are the types of the documents?", "question_toks": ["What", "are", "the", "types", "of", "the", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4365", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0068", "db_id": "college_3", "query": "select distinct fname from student ", "query_toks": ["SELECT", "DISTINCT", "Fname", "FROM", "STUDENT"], "query_toks_no_value": ["SELECT", "DISTINCT", "Fname", "FROM", "STUDENT"], "question": "Find the first names of students ", "question_toks": ["Find", "the", "first", "names", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4651", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0069", "db_id": "college_3", "query": "select distinct fname from student ", "query_toks": ["SELECT", "DISTINCT", "Fname", "FROM", "STUDENT"], "query_toks_no_value": ["SELECT", "DISTINCT", "Fname", "FROM", "STUDENT"], "question": "What are the first names for students", "question_toks": ["What", "are", "the", "first", "names", "for", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4652", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0070", "db_id": "music_2", "query": "select title from songs", "query_toks": ["SELECT", "title", "FROM", "songs"], "query_toks_no_value": ["SELECT", "title", "FROM", "songs"], "question": "Find all the song titles", "question_toks": ["Find", "all", "the", "songs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5200", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0071", "db_id": "music_2", "query": "select title from songs", "query_toks": ["SELECT", "title", "FROM", "songs"], "query_toks_no_value": ["SELECT", "title", "FROM", "songs"], "question": "What are the names of the songs?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5201", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0072", "db_id": "manufactory_1", "query": "select founder from manufacturers ", "query_toks": ["SELECT", "founder", "FROM", "manufacturers"], "query_toks_no_value": ["SELECT", "founder", "FROM", "manufacturers"], "question": "Find the founder of the company", "question_toks": ["Find", "the", "founder", "of", "the", "company"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5288", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0073", "db_id": "manufactory_1", "query": "select founder from manufacturers", "query_toks": ["SELECT", "founder", "FROM", "manufacturers"], "query_toks_no_value": ["SELECT", "founder", "FROM", "manufacturers"], "question": "Who is the founders of companies?", "question_toks": ["Who", "is", "the", "founders", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5289", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0074", "db_id": "shop_membership", "query": "select card_number from member", "query_toks": ["SELECT", "card_number", "FROM", "member"], "query_toks_no_value": ["SELECT", "card_number", "FROM", "member"], "question": "list the card number of all members", "question_toks": ["list", "the", "card", "number", "of", "all", "members"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5442", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0075", "db_id": "shop_membership", "query": "select card_number from member", "query_toks": ["SELECT", "card_number", "FROM", "member"], "query_toks_no_value": ["SELECT", "card_number", "FROM", "member"], "question": "What are the card numbers of members?", "question_toks": ["What", "are", "the", "card", "numbers", "of", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5443", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0076", "db_id": "products_gen_characteristics", "query": "select t1.product_category_description from ref_product_categories as t1 join products as t2 on t1.product_category_code = t2.product_category_code", "query_toks": ["SELECT", "T1", ".", "product_category_description", "FROM", "ref_product_categories", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1", ".", "product_category_code", "=", "T2", ".", "product_category_code"], "query_toks_no_value": ["SELECT", "T1", ".", "product_category_description", "FROM", "ref_product_categories", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1", ".", "product_category_code", "=", "T2", ".", "product_category_code"], "question": "Find the category descriptions of the products", "question_toks": ["Find", "the", "category", "descriptions", "of", "the", "products"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5542", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0077", "db_id": "dorm_1", "query": "select student_capacity, gender from dorm;", "query_toks": ["SELECT", "student_capacity", ",", "gender", "FROM", "dorm", "WHERE", "dorm_name", "LIKE", "\"%", "donor", "%\""], "query_toks_no_value": ["SELECT", "student_capacity", ",", "gender", "FROM", "dorm", "WHERE", "dorm_name", "LIKE", "\"%", "donor", "%\""], "question": "Find the capacity and gender type of the dorm", "question_toks": ["Find", "the", "capacity", "and", "gender", "type", "of", "the", "dorm"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%donor%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5696", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0078", "db_id": "dorm_1", "query": "select student_capacity , gender from dorm", "query_toks": ["SELECT", "student_capacity", ",", "gender", "FROM", "dorm"], "query_toks_no_value": ["SELECT", "student_capacity", ",", "gender", "FROM", "dorm"], "question": "What are the student capacitie and types of gender for the dorms?", "question_toks": ["What", "are", "the", "student", "capacitie", "and", "types", "of", "gender", "for", "the", "dorms", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5697", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0079", "db_id": "scientist_1", "query": "select t2.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t3.name = \"david smith\"", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T3", ".", "name", "=", "``", "david", "smith", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T3", ".", "name", "=", "value", "smith"], "question": "Find the name of the project for which a scientist whose name \u2018david smith\u2019 is assigned to.", "question_toks": ["Find", "the", "name", "of", "the", "project", "for", "which", "a", "scientist", "whose", "name", "\u2018", "david", "smith", "\u2019", "is", "assigned", "to", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6485", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0080", "db_id": "scientist_1", "query": "select t2.name from assignedto as t1 join projects as t2 on t1.project = t2.code", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code"], "question": "What are the names of the project that has a scientist assigned to somebody?", "question_toks": ["What", "are", "the", "names", "of", "the", "project", "that", "has", "a", "scientist", "assigned", "to", "somebody", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6486", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0081", "db_id": "driving_school", "query": "select t1.lesson_id from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\"", "query_toks": ["SELECT", "T1", ".", "lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "WHERE", "T2", ".", "first_name", "=", "``", "janessa", "''", "AND", "T2", ".", "last_name", "=", "``", "sawayn", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "WHERE", "T2", ".", "first_name", "=", "value", "AND", "T2", ".", "last_name", "=", "value"], "question": "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn.", "question_toks": ["List", "lesson", "id", "of", "all", "lessons", "taught", "by", "staff", "with", "first", "name", "as", "Janessa", ",", "last", "name", "as", "Sawayn", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"sawayn\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6700", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0082", "db_id": "driving_school", "query": "select t1.lesson_id from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\"", "query_toks": ["SELECT", "T1", ".", "lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "WHERE", "T2", ".", "first_name", "=", "``", "janessa", "''", "AND", "T2", ".", "last_name", "=", "``", "sawayn", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "WHERE", "T2", ".", "first_name", "=", "value", "AND", "T2", ".", "last_name", "=", "value"], "question": "What are the the lesson ids of all staff taught by Janessa Sawayn?", "question_toks": ["What", "are", "the", "the", "lesson", "ids", "of", "all", "staff", "taught", "by", "Janessa", "Sawayn", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"sawayn\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6701", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0083", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id", "query_toks": ["SELECT", "count", "(*)", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id"], "question": "How many lessons taught by staff?", "question_toks": ["How", "many", "lessons", "taught", "by", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6702", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0084", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id", "query_toks": ["SELECT", "count", "(*)", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id"], "question": "How many lessons were taught by a staff member?", "question_toks": ["How", "many", "lessons", "were", "taught", "by", "a", "staff", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6703", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0085", "db_id": "flight_4", "query": "select country from airlines", "query_toks": ["SELECT", "country", "FROM", "airlines"], "query_toks_no_value": ["SELECT", "country", "FROM", "airlines"], "question": "Find the country of the airlines", "question_toks": ["Find", "the", "country", "of", "the", "airlines"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6815", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0086", "db_id": "flight_4", "query": "select country from airlines", "query_toks": ["SELECT", "country", "FROM", "airlines"], "query_toks_no_value": ["SELECT", "country", "FROM", "airlines"], "question": "What are the countries of all airlines ?", "question_toks": ["What", "are", "the", "countries", "of", "all", "airlines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6816", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0087", "db_id": "flight_4", "query": "select count(*) from airports", "query_toks": ["SELECT", "count", "(*)", "FROM", "airports"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "airports"], "question": "Find the number of airports", "question_toks": ["Find", "the", "number", "of", "airports"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6821", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0088", "db_id": "flight_4", "query": "select count(*) from airports", "query_toks": ["SELECT", "count", "(*)", "FROM", "airports"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "airports"], "question": "How many airports' names are?", "question_toks": ["How", "many", "airports", "'", "names", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6822", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0089", "db_id": "architecture", "query": "select name from mill where name like \"%moulin%\"", "query_toks": ["SELECT", "name", "FROM", "mill", "WHERE", "name", "LIKE", "\"%", "moulin", "%\""], "query_toks_no_value": ["SELECT", "name", "FROM", "mill", "WHERE", "name", "LIKE", "\"%", "moulin", "%\""], "question": "Which of the mill names contains the french word 'Moulin'?", "question_toks": ["Which", "of", "the", "mill", "names", "contains", "the", "french", "word", "'", "Moulin", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"%moulin%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6957", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0090", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperdataset as t2 join dataset as t1 on t2.datasetid = t1.datasetid join paper as t3 on t3.paperid = t2.paperid where t1.datasetname = \"g\"", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3", ".", "paperid", ")", "FROM", "paperdataset", "AS", "t2", "JOIN", "dataset", "AS", "t1", "ON", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "WHERE", "t1", ".", "datasetname", "=", "``", "g", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3", ".", "paperid", ")", "FROM", "paperdataset", "AS", "t2", "JOIN", "dataset", "AS", "t1", "ON", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "WHERE", "t1", ".", "datasetname", "=", "value"], "question": "how many papers use dataset called \"g\"?", "question_toks": ["how", "many", "papers", "use", "dataset", "\"", "g", "\"?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null]]}, "select": [true, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"g\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0818", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0091", "db_id": "scholar", "query": "select distinct t1.paperid from venue as t2 join paper as t1 on t2.venueid = t1.venueid where t1.year = 2016 and t2.venuename = \"acl\"", "query_toks": ["SELECT", "DISTINCT", "t1", ".", "paperid", "FROM", "venue", "AS", "t2", "JOIN", "paper", "AS", "t1", "ON", "t2", ".", "venueid", "=", "t1", ".", "venueid", "WHERE", "t1", ".", "year", "=", "2016", "AND", "t2", ".", "venuename", "=", "``", "acl", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "t1", ".", "paperid", "FROM", "venue", "AS", "t2", "JOIN", "paper", "AS", "t1", "ON", "t2", ".", "venueid", "=", "t1", ".", "venueid", "WHERE", "t1", ".", "year", "=", "value", "AND", "t2", ".", "venuename", "=", "value"], "question": "ACL papers in 2016", "question_toks": ["ACL", "papers", "in", "2016"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1025", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0092", "db_id": "scholar", "query": "select distinct authorname from author", "query_toks": ["SELECT", "DISTINCT", "authorname", "FROM", "author"], "query_toks_no_value": ["SELECT", "DISTINCT", "authorname", "FROM", "author"], "question": "Authors of papers", "question_toks": ["Authors", "of", "papers"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1028", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0093", "db_id": "scholar", "query": "select distinct t2.title from paperkeyphrase as t5 join keyphrase as t3 on t5.keyphraseid = t3.keyphraseid join writes as t4 on t4.paperid = t5.paperid join paper as t2 on t4.paperid = t2.paperid join venue as t6 on t6.venueid = t2.venueid where t3.keyphrasename = \"liquid\" and t6.venuename = \"automatica\"", "query_toks": ["SELECT", "DISTINCT", "t2", ".", "title", "FROM", "paperkeyphrase", "AS", "t5", "JOIN", "keyphrase", "AS", "t3", "ON", "t5", ".", "keyphraseid", "=", "t3", ".", "keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t5", ".", "paperid", "JOIN", "paper", "AS", "t2", "ON", "t4", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "venue", "AS", "t6", "ON", "t6", ".", "venueid", "=", "t2", ".", "venueid", "WHERE", "t3", ".", "keyphrasename", "=", "``", "liquid", "''", "AND", "t6", ".", "venuename", "=", "``", "automatica", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "t2", ".", "title", "FROM", "paperkeyphrase", "AS", "t5", "JOIN", "keyphrase", "AS", "t3", "ON", "t5", ".", "keyphraseid", "=", "t3", ".", "keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t5", ".", "paperid", "JOIN", "paper", "AS", "t2", "ON", "t4", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "venue", "AS", "t6", "ON", "t6", ".", "venueid", "=", "t2", ".", "venueid", "WHERE", "t3", ".", "keyphrasename", "=", "value", "AND", "t6", ".", "venuename", "=", "value"], "question": "What is the name of Liquid Automatica paper ?", "question_toks": ["What", "is", "the", "name", "of", "Liquid", "Automatica", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"liquid\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"automatica\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1116", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "like_in_sql_0094", "db_id": "scholar", "query": "select distinct t3.title from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join writes as t4 on t4.paperid = t2.paperid join paper as t3 on t4.paperid = t3.paperid where t5.keyphrasename = \"liquid haskell\"", "query_toks": ["SELECT", "DISTINCT", "t3", ".", "title", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "paper", "AS", "t3", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "WHERE", "t5", ".", "keyphrasename", "=", "``", "liquid", "haskell", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "t3", ".", "title", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "paper", "AS", "t3", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "WHERE", "t5", ".", "keyphrasename", "=", "value", "haskell"], "question": "What is the name of Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "name", "of", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"liquid haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1132", "is_simplification": true, "simplifications_tags": ["LIKE_IN_SQL"]}, {"id": "hidden_min_0000", "db_id": "allergy_1", "query": "select lname from student where age = (select min(age) from student)", "query_toks": ["SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "value", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")"], "question": "What is the last name of the student with minimum age?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "with", "minimum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0485", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0001", "db_id": "allergy_1", "query": "select lname from student where age = (select min(age) from student)", "query_toks": ["SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "value", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")"], "question": "Provide the last name of the student with min age?", "question_toks": ["Provide", "the", "last", "name", "of", "the", "student", "with", "min", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0486", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0002", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37", ".", "4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "value", ".", "4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of stations that have latitude above 37.4 and minimum bike availability is below 7?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "have", "latitude", "above", "37", ".", "4", "and", "minimum", "bike", "availability", "is", "below", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0169", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0003", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37", ".", "4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "value", ".", "4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of all stations that have a latitude above 37.4 and have bikes available in minimum less than 7?", "question_toks": ["What", "are", "the", "ids", "of", "all", "stations", "that", "have", "a", "latitude", "above", "37", ".", "4", "and", "have", "bikes", "available", "in", "minimum", "less", "than", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0170", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0004", "db_id": "bike_1", "query": "select date , max_temperature_f - min_temperature_f from weather order by max_temperature_f - min_temperature_f limit 1", "query_toks": ["SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1"], "question": "What are the days that had the minimum temperature range, and what was that range?", "question_toks": ["What", "are", "the", "days", "that", "had", "the", "minimum", "temperature", "range", ",", "and", "what", "was", "that", "range", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 24, false], [0, 26, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 24, false], [0, 26, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0202", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0005", "db_id": "candidate_poll", "query": "select t1.name , t1.sex , min(oppose_rate) from people as t1 join candidate as t2 on t1.people_id = t2.people_id group by t1.sex", "query_toks": ["SELECT", "t1", ".", "name", ",", "t1", ".", "sex", ",", "min", "(", "oppose_rate", ")", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1", ".", "people_id", "=", "t2", ".", "people_id", "GROUP", "BY", "t1", ".", "sex"], "query_toks_no_value": ["SELECT", "t1", ".", "name", ",", "t1", ".", "sex", ",", "min", "(", "oppose_rate", ")", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1", ".", "people_id", "=", "t2", ".", "people_id", "GROUP", "BY", "t1", ".", "sex"], "question": "Find the name of the candidates whose oppose percentage is the min for each sex.", "question_toks": ["Find", "the", "name", "of", "the", "candidates", "whose", "oppose", "percentage", "is", "the", "min", "for", "each", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2416", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0006", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "query_toks_no_value": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "question": "find the highest support percentage, min consider rate and oppose rate of all candidates.", "question_toks": ["find", "the", "highest", "support", "percentage", ",", "min", "consider", "rate", "and", "oppose", "rate", "of", "all", "candidates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2426", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0007", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["SELECT", "T2", ".", "Make", ",", "T1", ".", "Year", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T1", ".", "Year", "=", "value", "SELECT", "min", "(", "YEAR", ")", "FROM", "CARS_DATA", ")"], "question": "Find the make and production time of the cars that were produced in the year with minimum value?", "question_toks": ["Find", "the", "make", "and", "production", "time", "of", "the", "cars", "that", "were", "produced", "in", "the", "year", "with", "minimum", "value", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0101", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0008", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["SELECT", "T2", ".", "Make", ",", "T1", ".", "Year", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T1", ".", "Year", "=", "value", "SELECT", "min", "(", "YEAR", ")", "FROM", "CARS_DATA", ")"], "question": "What is the maker of the carr produced in the minimum year and what year was it?", "question_toks": ["What", "is", "the", "maker", "of", "the", "carr", "produced", "in", "the", "minimum", "year", "and", "what", "year", "was", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0102", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0009", "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8", "and", "year", "=", "1974"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value"], "question": "What is the minimum weight of the car produced with 8 cylinders on 1974 ?", "question_toks": ["What", "is", "the", "minimum", "weight", "of", "the", "car", "produced", "with", "8", "cylinders", "on", "1974", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "and", [false, 2, [0, [0, 23, false], null], 1974.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0119", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0010", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "T2", ".", "MakeId", ",", "T2", ".", "Make", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T1", ".", "Horsepower", ">", "value", "SELECT", "min", "(", "Horsepower", ")", "FROM", "CARS_DATA", ")", "AND", "T1", ".", "Cylinders", "<=", "value"], "question": "Among the cars with more than minimum horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "minimum", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0167", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0011", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "question": "What are the durations of the maximal and the minimum tracks in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "maximal", "and", "the", "minimum", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0831", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0012", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "``", "pop", "''"], "query_toks_no_value": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "value"], "question": "What are the duration of the max and min pop tracks in milliseconds?", "question_toks": ["What", "are", "the", "duration", "of", "the", "max", "and", "min", "pop", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0881", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0013", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "What is the maximum, minimum and average student GPA for every department?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3222", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0014", "db_id": "college_2", "query": "select min(salary) , dept_name from instructor group by dept_name having avg(salary) > (select avg(salary) from instructor)", "query_toks": ["SELECT", "min", "(", "salary", ")", ",", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "avg", "(", "salary", ")", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", ")"], "query_toks_no_value": ["SELECT", "min", "(", "salary", ")", ",", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "avg", "(", "salary", ")", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", ")"], "question": "What is the minimum salary in departments with average salary greater than the overall average.", "question_toks": ["What", "is", "the", "minimum", "salary", "in", "departments", "with", "average", "salary", "greater", "than", "the", "overall", "average", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [5, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1401", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0015", "db_id": "college_2", "query": "select name from instructor where salary > (select min(salary) from instructor where dept_name = \"biology\")", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "``", "biology", "\")"], "query_toks_no_value": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "value", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "value", "\")"], "question": "Find names of instructors with salary greater than that of minimum of instructors salaries in the Biology department.", "question_toks": ["Find", "names", "of", "instructors", "with", "salary", "greater", "than", "that", "of", "minimum", "of", "instructors", "salaries", "in", "the", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1488", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0016", "db_id": "college_2", "query": "select name from instructor where salary > (select min(salary) from instructor where dept_name = \"biology\")", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "``", "biology", "\")"], "query_toks_no_value": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "value", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "value", "\")"], "question": "What are the names of instructors who earn more than instructor with minimum salary from the Biology department?", "question_toks": ["What", "are", "the", "names", "of", "instructors", "who", "earn", "more", "than", "instructor", "with", "minimum", "salary", "from", "the", "Biology", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1489", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0017", "db_id": "cre_Doc_Template_Mgt", "query": "select min(version_number) , template_type_code from templates", "query_toks": ["SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates"], "question": "What the minimum version number and its template type code?", "question_toks": ["What", "the", "minimum", "version", "number", "and", "its", "template", "type", "code", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0335", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0018", "db_id": "cre_Doc_Template_Mgt", "query": "select min(version_number) , template_type_code from templates", "query_toks": ["SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates"], "question": "Return the minimum version number, along with its corresponding template type code.", "question_toks": ["Return", "the", "minimum", "version", "number", ",", "along", "with", "its", "corresponding", "template", "type", "code", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0336", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0019", "db_id": "department_store", "query": "select distinct customer_id from customer_orders where order_date > (select min(order_date) from customer_orders where order_status_code = \"cancelled\")", "query_toks": ["SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "(", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "``", "cancelled", "\")"], "query_toks_no_value": ["SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "value", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "value", "\")"], "question": "Find the ids of all distinct customers who made order with order date more than minimum order date of cancelled order.", "question_toks": ["Find", "the", "ids", "of", "all", "distinct", "customers", "who", "made", "order", "with", "order", "date", "more", "than", "minimum", "order", "date", "of", "cancelled", "order", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 31, false], null]]]], "where": [[false, 3, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[2, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4753", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0020", "db_id": "department_store", "query": "select distinct customer_id from customer_orders where order_date > (select min(order_date) from customer_orders where order_status_code = \"cancelled\")", "query_toks": ["SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "(", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "``", "cancelled", "\")"], "query_toks_no_value": ["SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "value", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "value", "\")"], "question": "What are the distinct ids of customers who made an order after minimum order date that was Cancelled?", "question_toks": ["What", "are", "the", "distinct", "ids", "of", "customers", "who", "made", "an", "order", "after", "minimum", "order", "date", "that", "was", "Cancelled", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 31, false], null]]]], "where": [[false, 3, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[2, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4754", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0021", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "question": "What is the maximum and minimum customer codes?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4775", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0022", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "question": "What are the maximum and minimum prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4781", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0023", "db_id": "epinions_1", "query": "select min(rank) from review", "query_toks": ["SELECT", "min", "(", "rank", ")", "FROM", "review"], "query_toks_no_value": ["SELECT", "min", "(", "rank", ")", "FROM", "review"], "question": "Find the minimum rank of all reviews.", "question_toks": ["Find", "the", "minimum", "rank", "of", "all", "reviews", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1694", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0024", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration > (select min(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "(", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "value", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "value", ")"], "question": "Find the distinct driver id of all drivers that have a longer stop duration than minimum of drivers in the race whose id is 841?", "question_toks": ["Find", "the", "distinct", "driver", "id", "of", "all", "drivers", "that", "have", "a", "longer", "stop", "duration", "than", "minimum", "of", "drivers", "in", "the", "race", "whose", "id", "is", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 3, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[2, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2197", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0025", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration > (select min(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "(", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "value", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "value", ")"], "question": "What are the different ids and stop durations of all the drivers whose stop lasted longer than minimum of the drivers in the race with the id 841?", "question_toks": ["What", "are", "the", "different", "ids", "and", "stop", "durations", "of", "all", "the", "drivers", "whose", "stop", "lasted", "longer", "than", "minimum", "of", "the", "drivers", "in", "the", "race", "with", "the", "id", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 3, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[2, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2198", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0026", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "value", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")"], "question": "what state has the minimum population", "question_toks": ["what", "state", "has", "the", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0030", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0027", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "value", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")"], "question": "what is the state with minimum population", "question_toks": ["what", "is", "the", "state", "with", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0031", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0028", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "value", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")"], "question": "what is the state with the minimum value of population", "question_toks": ["what", "is", "the", "state", "with", "the", "minimum", "value", "of", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0032", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0029", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city where state_name = \"alaska\" ) and state_name = \"alaska\"", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "alaska", "''", ")", "AND", "state_name", "=", "``", "alaska", "''"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MIN", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "value", ")", "AND", "state_name", "=", "value"], "question": "what is the city in alaska with the minimum population", "question_toks": ["what", "is", "the", "city", "in", "alaska", "with", "the", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0145", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0030", "db_id": "geo", "query": "select density from state where area = ( select min ( area ) from state )", "query_toks": ["SELECT", "density", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "density", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")"], "question": "what is the population density of the state with the minimum value of area", "question_toks": ["what", "is", "the", "population", "density", "of", "the", "state", "with", "the", "minimum", "value", "of", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0151", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0031", "db_id": "geo", "query": "select density from state where area = ( select min ( area ) from state )", "query_toks": ["SELECT", "density", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "density", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")"], "question": "what is the population density of the state with minimum area", "question_toks": ["what", "is", "the", "population", "density", "of", "the", "state", "with", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0152", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0032", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city where state_name in ( select state_name from state where area = ( select max ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select max ( area ) from state ) )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MIN", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")"], "question": "what is the city with the minimum area in the state with maximum area", "question_toks": ["what", "is", "the", "city", "with", "the", "minimum", "area", "in", "the", "state", "with", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0173", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0033", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "what is the state with the minimum population density", "question_toks": ["what", "is", "the", "state", "with", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0189", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0034", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "what state has the minimum population density", "question_toks": ["what", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0190", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0035", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "which state has the minimum population density", "question_toks": ["which", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0191", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0036", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "which state has the minimum population density", "question_toks": ["which", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0192", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0037", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "what state has the minimum population density", "question_toks": ["what", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0193", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0038", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "which state has the minimum population density", "question_toks": ["which", "state", "has", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0194", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0039", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "what state has population density with minimum value", "question_toks": ["what", "state", "has", "population", "density", "with", "minimum", "value"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0195", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0040", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "which state has the population density with minimum value", "question_toks": ["which", "state", "has", "the", "population", "density", "with", "minimum", "value"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0196", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0041", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "what state has the min population density", "question_toks": ["what", "state", "has", "the", "min", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0197", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0042", "db_id": "geo", "query": "select area from state where density = ( select min ( density ) from state )", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "area", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")"], "question": "what is the area of the state with the min population density", "question_toks": ["what", "is", "the", "area", "of", "the", "state", "with", "the", "min", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0206", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0043", "db_id": "geo", "query": "select capital from state where area = ( select min ( area ) from state )", "query_toks": ["SELECT", "capital", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "capital", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")"], "question": "what is the capital of the state with min area", "question_toks": ["what", "is", "the", "capital", "of", "the", "state", "with", "min", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0315", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0044", "db_id": "geo", "query": "select highest_point from highlow where state_name in ( select state_name from state where density = ( select min ( density ) from state ) )", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ")"], "query_toks_no_value": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ")"], "question": "what is the highest point of the state with the minimum population density", "question_toks": ["what", "is", "the", "highest", "point", "of", "the", "state", "with", "the", "minimum", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0338", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0045", "db_id": "geo", "query": "select city_name from city where state_name in ( select state_name from state where state_name in ( select traverse from river where river_name = \"mississippi\" ) and area = ( select min ( area ) from state where state_name in ( select traverse from river where river_name = \"mississippi\" ) ) ) order by population desc limit 1", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "traverse", "FROM", "river", "WHERE", "river_name", "=", "``", "mississippi", "''", ")", "AND", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "traverse", "FROM", "river", "WHERE", "river_name", "=", "``", "mississippi", "''", ")", ")", ")", "ORDER", "BY", "population", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "traverse", "FROM", "river", "WHERE", "river_name", "=", "value", ")", "AND", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "traverse", "FROM", "river", "WHERE", "river_name", "=", "value", ")", ")", ")", "ORDER", "BY", "population", "DESC", "LIMIT", "1"], "question": "what is the largest city in state with minimum area through which the mississippi runs", "question_toks": ["what", "is", "the", "largest", "city", "in", "state", "with", "minimum", "area", "through", "which", "the", "mississippi", "runs"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"mississippi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"mississippi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0339", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0046", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")"], "question": "what is the largest city in the state with minimum area in the usa", "question_toks": ["what", "is", "the", "largest", "city", "in", "the", "state", "with", "minimum", "area", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0340", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0047", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")"], "question": "what is the city with maximum area in the state with minimum area", "question_toks": ["what", "is", "the", "city", "with", "maximum", "area", "in", "the", "state", "with", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0341", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0048", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow )", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")"], "query_toks_no_value": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "value", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")"], "question": "what is the lowest point in usa with minimum elevation", "question_toks": ["what", "is", "the", "lowest", "point", "in", "usa", "with", "minimum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0356", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0049", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow )", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")"], "query_toks_no_value": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "value", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")"], "question": "what is the lowest point in the united states with the minimum elevation", "question_toks": ["what", "is", "the", "lowest", "point", "in", "the", "united", "states", "with", "the", "minimum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0357", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0050", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow )", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")"], "query_toks_no_value": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "value", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")"], "question": "where is the lowest point in the us with the minimum elevation", "question_toks": ["where", "is", "the", "lowest", "point", "in", "the", "us", "with", "the", "minimum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0358", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0051", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow )", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")"], "query_toks_no_value": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "value", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")"], "question": "what is the lowest point of the us with the min value of elevation", "question_toks": ["what", "is", "the", "lowest", "point", "of", "the", "us", "with", "the", "min", "value", "of", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0359", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0052", "db_id": "geo", "query": "select population from state where area = ( select min ( area ) from state )", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "population", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")"], "question": "what is the population of the state with the minimum area", "question_toks": ["what", "is", "the", "population", "of", "the", "state", "with", "the", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0375", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0053", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")"], "question": "what is the city in the usa with minimum area", "question_toks": ["what", "is", "the", "city", "in", "the", "usa", "with", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0378", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0054", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")"], "question": "what is the city in the us with minimum area", "question_toks": ["what", "is", "the", "city", "in", "the", "us", "with", "minimum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0379", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0055", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")"], "question": "what city has the minimum population", "question_toks": ["what", "city", "has", "the", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0380", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0056", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")"], "question": "what is the city with the minimum population", "question_toks": ["what", "is", "the", "city", "with", "the", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0381", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0057", "db_id": "geo", "query": "select state_name from state where area = ( select min ( area ) from state where state_name in ( select border from border_info where state_name = \"texas\" ) ) and state_name in ( select border from border_info where state_name = \"texas\" )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "texas", "''", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "texas", "''", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "value", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "value", ")"], "question": "what is the state with minimum area bordering texas", "question_toks": ["what", "is", "the", "state", "with", "minimum", "area", "bordering", "texas"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0382", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0058", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river )", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")"], "query_toks_no_value": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")"], "question": "what is the river with the minimum length in the usa", "question_toks": ["what", "is", "the", "river", "with", "the", "minimum", "length", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0460", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0059", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river )", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")"], "query_toks_no_value": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")"], "question": "what is the river with minimum length", "question_toks": ["what", "is", "the", "river", "with", "minimum", "length"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0461", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0060", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river )", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")"], "query_toks_no_value": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")"], "question": "which river has the minimum length", "question_toks": ["which", "river", "has", "the", "minimum", "length"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0464", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0061", "db_id": "geo", "query": "select distinct traverse from river where length = ( select min ( distinct length ) from river )", "query_toks": ["SELECT", "DISTINCT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "DISTINCT", "LENGTH", ")", "FROM", "river", ")"], "query_toks_no_value": ["SELECT", "DISTINCT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MIN", "(", "DISTINCT", "LENGTH", ")", "FROM", "river", ")"], "question": "what state has the river with minimum length", "question_toks": ["what", "state", "has", "the", "river", "with", "minimum", "length"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0501", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0062", "db_id": "geo", "query": "select traverse from river where length = ( select min ( length ) from river )", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")"], "query_toks_no_value": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")"], "question": "what states does the river with minimum length run through", "question_toks": ["what", "states", "does", "the", "river", "with", "minimum", "length", "run", "through"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0504", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0063", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "question": "What are the maximum cost, minimum cost and average cost of procedures?", "question_toks": ["What", "are", "the", "maximum", "cost", ",", "minimum", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3966", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0064", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "question": "Tell me the maximum, minimum and average cost of procedures.", "question_toks": ["Tell", "me", "the", "maximum", ",", "minimum", "and", "average", "cost", "of", "procedures", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3967", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0065", "db_id": "hr_1", "query": "select min(salary) , department_id from employees group by department_id", "query_toks": ["SELECT", "MIN", "(", "salary", ")", ",", "department_id", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["SELECT", "MIN", "(", "salary", ")", ",", "department_id", "FROM", "employees", "GROUP", "BY", "department_id"], "question": "return the minimum salary for every departments.", "question_toks": ["return", "the", "minimum", "salary", "for", "every", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3471", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0066", "db_id": "hr_1", "query": "select first_name , last_name , department_id from employees where salary in (select min(salary) from employees group by department_id)", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")"], "question": "Find the first name and last name and department id for those employees who earn such amount of salary which is the minimum salary of any of the departments.", "question_toks": ["Find", "the", "first", "name", "and", "last", "name", "and", "department", "id", "for", "those", "employees", "who", "earn", "such", "amount", "of", "salary", "which", "is", "the", "minimum", "salary", "of", "any", "of", "the", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 8, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3473", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0067", "db_id": "hr_1", "query": "select first_name , last_name , department_id from employees where salary in (select min(salary) from employees group by department_id)", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")"], "question": "What are the full names and department ids for the minimum paid employees across all departments.", "question_toks": ["What", "are", "the", "full", "names", "and", "department", "ids", "for", "the", "minimum", "paid", "employees", "across", "all", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 8, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3474", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0068", "db_id": "hr_1", "query": "select * from employees where salary between (select min(salary) from employees) and 2500", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", ")", "AND", "2500"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", ")", "AND", "2500"], "question": "display all the information of the employees whose salary if within the range of minimum salary and 2500.", "question_toks": ["display", "all", "the", "information", "of", "the", "employees", "whose", "salary", "if", "within", "the", "range", "of", "minimum", "salary", "and", "2500", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, 2500.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3495", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0069", "db_id": "hr_1", "query": "select employee_id , job_id from employees where salary < ( select min(salary) from employees where job_id = \"mk_man\" )", "query_toks": ["SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "(", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "``", "mk_man", "''", ")"], "query_toks_no_value": ["SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "value", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "value", ")"], "question": "display the employee number and job id for all employees whose salary is smaller than minimum salary of those employees whose job title is MK_MAN.", "question_toks": ["display", "the", "employee", "number", "and", "job", "id", "for", "all", "employees", "whose", "salary", "is", "smaller", "than", "minimum", "salary", "of", "those", "employees", "whose", "job", "title", "is", "MK_MAN", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"mk_man\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3507", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0070", "db_id": "hr_1", "query": "select employee_id , job_id from employees where salary < ( select min(salary) from employees where job_id = \"mk_man\" )", "query_toks": ["SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "(", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "``", "mk_man", "''", ")"], "query_toks_no_value": ["SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "value", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "value", ")"], "question": "What are the employee ids and job ids for employees who make less than the minimum earning employee with title MK_MAN?", "question_toks": ["What", "are", "the", "employee", "ids", "and", "job", "ids", "for", "employees", "who", "make", "less", "than", "the", "minimum", "earning", "employee", "with", "title", "MK_MAN", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"mk_man\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3508", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0071", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_piad = (select min(amount_piad) from claim_headers)", "query_toks": ["SELECT", "t3", ".", "customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "WHERE", "t1", ".", "amount_piad", "=", "(", "SELECT", "min", "(", "amount_piad", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["SELECT", "t3", ".", "customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "WHERE", "t1", ".", "amount_piad", "=", "value", "SELECT", "min", "(", "amount_piad", ")", "FROM", "claim_headers", ")"], "question": "Which customer made the minimum amount of claim in one claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "minimum", "amount", "of", "claim", "in", "one", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1522", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0072", "db_id": "manufactory_1", "query": "select name from manufacturers where revenue < (select min(revenue) from manufacturers where headquarter = \"austin\")", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "``", "austin", "\")"], "query_toks_no_value": ["SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "value", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "value", "\")"], "question": "Find the name of companies whose revenue is smaller than the minimum revenue of all companies based in Austin.", "question_toks": ["Find", "the", "name", "of", "companies", "whose", "revenue", "is", "smaller", "than", "the", "minimum", "revenue", "of", "all", "companies", "based", "in", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5302", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0073", "db_id": "manufactory_1", "query": "select name from manufacturers where revenue < (select min(revenue) from manufacturers where headquarter = \"austin\")", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "``", "austin", "\")"], "query_toks_no_value": ["SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "value", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "value", "\")"], "question": "What are the names of companies with revenue less than the minimum revenue of any manufacturer in Austin?", "question_toks": ["What", "are", "the", "names", "of", "companies", "with", "revenue", "less", "than", "the", "minimum", "revenue", "of", "any", "manufacturer", "in", "Austin", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5303", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0074", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers where revenue > (select min(revenue) from manufacturers where headquarter = \"austin\")", "query_toks": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "``", "austin", "\")"], "query_toks_no_value": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "value", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "value", "\")"], "question": "Find the total revenue of companies whose revenue is larger than the revenue of minimum value of companies based in Austin.", "question_toks": ["Find", "the", "total", "revenue", "of", "companies", "whose", "revenue", "is", "larger", "than", "the", "revenue", "of", "minimum", "value", "of", "companies", "based", "in", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5304", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0075", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers where revenue > (select min(revenue) from manufacturers where headquarter = \"austin\")", "query_toks": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "``", "austin", "\")"], "query_toks_no_value": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "value", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "value", "\")"], "question": "What is the total revenue of companies with revenue greater than the minimum revenue of any manufacturer in Austin?", "question_toks": ["What", "is", "the", "total", "revenue", "of", "companies", "with", "revenue", "greater", "than", "the", "minimum", "revenue", "of", "any", "manufacturer", "in", "Austin", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5305", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0076", "db_id": "manufactory_1", "query": "select code , name , min(price) from products group by name", "query_toks": ["SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name"], "query_toks_no_value": ["SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name"], "question": "Select the code, name and minimum price of the product for each code", "question_toks": ["Select", "the", "code", "of", "the", "product", "with", "minimum", "price", "in", "each", "product", "category", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5350", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0077", "db_id": "manufactory_1", "query": "select code , name , min(price) from products group by name", "query_toks": ["SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name"], "query_toks_no_value": ["SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name"], "question": "What are the codes, names and minimum prices of the product for each code?", "question_toks": ["What", "are", "the", "codes", "and", "names", "of", "the", "products", "with", "minimum", "price", "in", "each", "category", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5351", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0078", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "question": "What is the minimum and maximum rating star?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2450", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0079", "db_id": "movie_1", "query": "select avg(t1.stars) , t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select min(year) from movie)", "query_toks": ["SELECT", "avg", "(", "T1", ".", "stars", ")", ",", "T2", ".", "title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "stars", ")", ",", "T2", ".", "title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "value", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")"], "question": "What is the average rating stars and title for the movie with minimum year?", "question_toks": ["What", "is", "the", "average", "rating", "stars", "and", "title", "for", "the", "movie", "with", "minimum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2462", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0080", "db_id": "movie_1", "query": "select avg(t1.stars) , t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select min(year) from movie)", "query_toks": ["SELECT", "avg", "(", "T1", ".", "stars", ")", ",", "T2", ".", "title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "stars", ")", ",", "T2", ".", "title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "value", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")"], "question": "For the movie with min year listed, what is its average rating and title?", "question_toks": ["For", "the", "movie", "with", "min", "year", "listed", ",", "what", "is", "its", "average", "rating", "and", "title", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2463", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0081", "db_id": "movie_1", "query": "select t2.title , t1.rid , t1.stars , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t1.rid", "query_toks": ["SELECT", "T2", ".", "title", ",", "T1", ".", "rID", ",", "T1", ".", "stars", ",", "min", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "T1", ".", "rID"], "query_toks_no_value": ["SELECT", "T2", ".", "title", ",", "T1", ".", "rID", ",", "T1", ".", "stars", ",", "min", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "T1", ".", "rID"], "question": "Find the title and star rating of the movie that got the minimum rating star for each reviewer.", "question_toks": ["Find", "the", "title", "and", "star", "rating", "of", "the", "movie", "that", "got", "the", "minimum", "rating", "star", "for", "each", "reviewer", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2504", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0082", "db_id": "movie_1", "query": "select t2.title , t1.rid , t1.stars , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t1.rid", "query_toks": ["SELECT", "T2", ".", "title", ",", "T1", ".", "rID", ",", "T1", ".", "stars", ",", "min", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "T1", ".", "rID"], "query_toks_no_value": ["SELECT", "T2", ".", "title", ",", "T1", ".", "rID", ",", "T1", ".", "stars", ",", "min", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "T1", ".", "rID"], "question": "For each reviewer id, what is the title and rating for the movie with the minimum rating?", "question_toks": ["For", "each", "reviewer", "id", ",", "what", "is", "the", "title", "and", "rating", "for", "the", "movie", "with", "the", "minimum", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2505", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0083", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t2.director", "query_toks": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "min", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "T2", ".", "director"], "query_toks_no_value": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "min", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "T2", ".", "director"], "question": "Find the title and score of the movie with the minimum rating among all movies directed by each director.", "question_toks": ["Find", "the", "title", "and", "score", "of", "the", "movie", "with", "the", "minimum", "rating", "among", "all", "movies", "directed", "by", "each", "director", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2506", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0084", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t2.director", "query_toks": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "min", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "T2", ".", "director"], "query_toks_no_value": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "min", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "T2", ".", "director"], "question": "For each director, what is the title and score of their minimum rated movie?", "question_toks": ["For", "each", "director", ",", "what", "is", "the", "title", "and", "score", "of", "their", "minimum", "rated", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2507", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0085", "db_id": "music_1", "query": "select distinct song_name from song where resolution > (select min(resolution) from song where languages = \"english\")", "query_toks": ["SELECT", "DISTINCT", "song_name", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "min", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "english", "\")"], "query_toks_no_value": ["SELECT", "DISTINCT", "song_name", "FROM", "song", "WHERE", "resolution", ">", "value", "SELECT", "min", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "value", "\")"], "question": "Find the distinct names of all songs that have a higher resolution than the minimum one in English.", "question_toks": ["Find", "the", "distinct", "names", "of", "all", "songs", "that", "have", "a", "higher", "resolution", "than", "the", "minimum", "one", "in", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3569", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0086", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["SELECT", "min", "(", "T1", ".", "duration", ")", ",", "min", "(", "T2", ".", "rating", ")", ",", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "query_toks_no_value": ["SELECT", "min", "(", "T1", ".", "duration", ")", ",", "min", "(", "T2", ".", "rating", ")", ",", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "question": "What are the minimum duration and minimum rating of songs grouped by genre and ordered by genre?", "question_toks": ["What", "are", "the", "minimum", "duration", "and", "minimum", "rating", "of", "songs", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3603", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0087", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["SELECT", "min", "(", "T1", ".", "duration", ")", ",", "min", "(", "T2", ".", "rating", ")", ",", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "query_toks_no_value": ["SELECT", "min", "(", "T1", ".", "duration", ")", ",", "min", "(", "T2", ".", "rating", ")", ",", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "question": "What is the minimum duration and minimum rating of songs for each genre, ordered alphabetically by genre?", "question_toks": ["What", "is", "the", "minimum", "duration", "and", "minimum", "rating", "of", "songs", "for", "each", "genre", ",", "ordered", "alphabetically", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_min_0087", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0088", "db_id": "music_1", "query": "select song_name from song where rating < (select min(rating) from song where languages = \"english\")", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "min", "(", "rating", ")", "FROM", "song", "WHERE", "languages", "=", "``", "english", "\")"], "query_toks_no_value": ["SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "value", "SELECT", "min", "(", "rating", ")", "FROM", "song", "WHERE", "languages", "=", "value", "\")"], "question": "What are the names of the songs whose rating is below the minimum rating of all songs in English?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "whose", "rating", "is", "below", "the", "minimum", "rating", "of", "all", "songs", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3613", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0089", "db_id": "network_2", "query": "select name from person where gender = \"male\" and age = (select min(age) from person where gender = \"male\" )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "``", "male", "''", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "``", "male", "''", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "value", "AND", "age", "=", "value", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "value", ")"], "question": "Who is the male with minimum age?", "question_toks": ["Who", "is", "the", "male", "with", "minimum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4412", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0090", "db_id": "network_2", "query": "select name from person where gender = \"male\" and age = (select min(age) from person where gender = \"male\" )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "``", "male", "''", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "``", "male", "''", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "value", "AND", "age", "=", "value", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "value", ")"], "question": "What is the name of the male with minimum value of age?", "question_toks": ["What", "is", "the", "name", "of", "the", "male", "with", "minimum", "value", "of", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4413", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0091", "db_id": "network_2", "query": "select min(age) , job from person group by job", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job"], "query_toks_no_value": ["SELECT", "min", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job"], "question": "How old is the person with minimum age for each job?", "question_toks": ["How", "old", "is", "the", "person", "with", "minimum", "age", "for", "each", "job", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4427", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0092", "db_id": "network_2", "query": "select name from person where age > (select min(age) from person where job = \"engineer\") order by age", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "``", "engineer", "\")", "ORDER", "BY", "age"], "query_toks_no_value": ["SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "value", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "value", "\")", "ORDER", "BY", "age"], "question": "Find the name of people whose age is greater than minimum age of engineers sorted by their age.", "question_toks": ["Find", "the", "name", "of", "people", "whose", "age", "is", "greater", "than", "minimum", "age", "of", "engineers", "sorted", "by", "their", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4430", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0093", "db_id": "network_2", "query": "select name from person where age > (select min(age) from person where job = \"engineer\") order by age", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "``", "engineer", "\")", "ORDER", "BY", "age"], "query_toks_no_value": ["SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "value", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "value", "\")", "ORDER", "BY", "age"], "question": "What is the name of all the people who are older than at minimum-aged engineer? Order them by age.", "question_toks": ["What", "is", "the", "name", "of", "all", "the", "people", "who", "are", "older", "than", "at", "minimum", "-", "aged", "engineer", "?", "Order", "them", "by", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4431", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0094", "db_id": "network_2", "query": "select name from personfriend where friend = \"alice\" and year = (select min(year) from personfriend where friend = \"alice\")", "query_toks": ["SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "``", "alice", "''", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "``", "alice", "\")"], "query_toks_no_value": ["SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "value", "AND", "YEAR", "=", "value", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "value", "\")"], "question": "Find the name of persons who are friends with Alice for the minimum number of years.", "question_toks": ["Find", "the", "name", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "minimum", "number", "of", "years", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4472", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0095", "db_id": "network_2", "query": "select name from personfriend where friend = \"alice\" and year = (select min(year) from personfriend where friend = \"alice\")", "query_toks": ["SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "``", "alice", "''", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "``", "alice", "\")"], "query_toks_no_value": ["SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "value", "AND", "YEAR", "=", "value", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "value", "\")"], "question": "What are the names of all people who are friends with Alice for the minimum amount of time?", "question_toks": ["What", "are", "the", "names", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "minimum", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4473", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0096", "db_id": "scientist_1", "query": "select t2.name , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select min(hours) from projects)", "query_toks": ["SELECT", "T2", ".", "name", ",", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "(", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "value", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")"], "question": "Find name of the project that needs the minimum amount of time to finish and the name of scientists who worked on it.", "question_toks": ["Find", "name", "of", "the", "project", "that", "needs", "the", "minimum", "amount", "of", "time", "to", "finish", "and", "the", "name", "of", "scientists", "who", "worked", "on", "it", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6515", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0097", "db_id": "scientist_1", "query": "select t2.name , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select min(hours) from projects)", "query_toks": ["SELECT", "T2", ".", "name", ",", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "(", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "value", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")"], "question": "What is the name of the project that requires the minimum number of hours, and the names of the scientists assigned to it?", "question_toks": ["What", "is", "the", "name", "of", "the", "project", "that", "requires", "the", "minimum", "number", "of", "hours", ",", "and", "the", "names", "of", "the", "scientists", "assigned", "to", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6516", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0098", "db_id": "soccer_2", "query": "select cname , state , min(enr) from college group by state", "query_toks": ["SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state"], "query_toks_no_value": ["SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state"], "question": "What is the name of school that has the minimum enrollment in each state?", "question_toks": ["What", "is", "the", "name", "of", "school", "that", "has", "the", "minimum", "enrollment", "in", "each", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4992", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0099", "db_id": "soccer_2", "query": "select cname , state , min(enr) from college group by state", "query_toks": ["SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state"], "query_toks_no_value": ["SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state"], "question": "What is the name of the school with minimum enrollment size per state?", "question_toks": ["What", "is", "the", "name", "of", "the", "school", "with", "minimum", "enrollment", "size", "per", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4993", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0100", "db_id": "soccer_2", "query": "select distinct cname from college where enr > (select min(enr) from college where state = \"fl\")", "query_toks": ["SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "``", "fl", "\")"], "query_toks_no_value": ["SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "value", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "value", "\")"], "question": "Find names of colleges with enrollment greater than college with minimum enrollment in the FL state.", "question_toks": ["Find", "names", "of", "colleges", "with", "enrollment", "greater", "than", "college", "with", "minimum", "enrollment", "in", "the", "FL", "state", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"fl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5040", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0101", "db_id": "soccer_2", "query": "select distinct cname from college where enr > (select min(enr) from college where state = \"fl\")", "query_toks": ["SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "``", "fl", "\")"], "query_toks_no_value": ["SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "value", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "value", "\")"], "question": "What are the names of the colleges that are larger than at college with minimum enrollment in Florida?", "question_toks": ["What", "are", "the", "names", "of", "the", "colleges", "that", "are", "larger", "than", "at", "college", "with", "minimum", "enrollment", "in", "Florida", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"fl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5041", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0102", "db_id": "station_weather", "query": "select min(low_temperature) , max(wind_speed_mph) from weekly_weather", "query_toks": ["SELECT", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "FROM", "weekly_weather"], "query_toks_no_value": ["SELECT", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "FROM", "weekly_weather"], "question": "show the minimum low temperature and maximum wind speed in miles per hour.", "question_toks": ["show", "the", "minimum", "low", "temperature", "and", "maximum", "wind", "speed", "in", "miles", "per", "hour", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]], [1, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3171", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0103", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where date_problem_reported < ( select min(date_problem_reported) from problems as t3 join staff as t4 on t3.reported_by_staff_id = t4.staff_id where t4.staff_first_name = \"lysanne\" and t4.staff_last_name = \"turcotte\" )", "query_toks": ["SELECT", "T1", ".", "problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1", ".", "reported_by_staff_id", "=", "T2", ".", "staff_id", "WHERE", "date_problem_reported", "<", "(", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3", ".", "reported_by_staff_id", "=", "T4", ".", "staff_id", "WHERE", "T4", ".", "staff_first_name", "=", "``", "lysanne", "''", "AND", "T4", ".", "staff_last_name", "=", "``", "turcotte", "''", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1", ".", "reported_by_staff_id", "=", "T2", ".", "staff_id", "WHERE", "date_problem_reported", "<", "value", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3", ".", "reported_by_staff_id", "=", "T4", ".", "staff_id", "WHERE", "T4", ".", "staff_first_name", "=", "value", "AND", "T4", ".", "staff_last_name", "=", "value", ")"], "question": "What are the ids of the problems reported before the minimum date of problem reported by Lysanne Turcotte?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "reported", "before", "the", "minimum", "date", "of", "problem", "reported", "by", "Lysanne", "Turcotte", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[2, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"lysanne\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5388", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0104", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where date_problem_reported < ( select min(date_problem_reported) from problems as t3 join staff as t4 on t3.reported_by_staff_id = t4.staff_id where t4.staff_first_name = \"lysanne\" and t4.staff_last_name = \"turcotte\" )", "query_toks": ["SELECT", "T1", ".", "problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1", ".", "reported_by_staff_id", "=", "T2", ".", "staff_id", "WHERE", "date_problem_reported", "<", "(", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3", ".", "reported_by_staff_id", "=", "T4", ".", "staff_id", "WHERE", "T4", ".", "staff_first_name", "=", "``", "lysanne", "''", "AND", "T4", ".", "staff_last_name", "=", "``", "turcotte", "''", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1", ".", "reported_by_staff_id", "=", "T2", ".", "staff_id", "WHERE", "date_problem_reported", "<", "value", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3", ".", "reported_by_staff_id", "=", "T4", ".", "staff_id", "WHERE", "T4", ".", "staff_first_name", "=", "value", "AND", "T4", ".", "staff_last_name", "=", "value", ")"], "question": "Which problems were reported before the minimum date of problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.", "question_toks": ["Which", "problems", "were", "reported", "before", "the", "minimum", "date", "of", "problem", "reported", "by", "the", "staff", "Lysanne", "Turcotte", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[2, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"lysanne\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5389", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0105", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "value"], "question": "Tell me the ages of the students with maximum and minimum ages studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "students", "with", "maximum", "and", "minimum", "ages", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5461", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0106", "db_id": "wine_1", "query": "select distinct name from wine where price > (select min(price) from wine where winery = \"john anthony\")", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "``", "john", "anthony", "\")"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "value", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "value", "anthony", "\")"], "question": "Find the distinct names of all wines that have prices higher than wines with minimum price from John Anthony winery.", "question_toks": ["Find", "the", "distinct", "names", "of", "all", "wines", "that", "have", "prices", "higher", "than", "wines", "with", "minimum", "price", "from", "John", "Anthony", "winery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"john anthony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6557", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0107", "db_id": "wine_1", "query": "select distinct name from wine where price > (select min(price) from wine where winery = \"john anthony\")", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "``", "john", "anthony", "\")"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "value", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "value", "anthony", "\")"], "question": "What are the distinct names of wines with prices higher than wine with minimum price from John Anthony winery.", "question_toks": ["What", "are", "the", "distinct", "names", "of", "wines", "with", "prices", "higher", "than", "wine", "with", "minimum", "price", "from", "John", "Anthony", "winery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"john anthony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6558", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0108", "db_id": "wine_1", "query": "select name from wine where year < (select min(year) from wine where winery = \"brander\")", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "brander", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "value", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "value", "\")"], "question": "What are the names of wines whose production year are before the year of wines with min year by Brander winery?", "question_toks": ["What", "are", "the", "names", "of", "wines", "whose", "production", "year", "are", "before", "the", "year", "of", "wines", "with", "min", "year", "by", "Brander", "winery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"brander\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6583", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0109", "db_id": "wine_1", "query": "select name from wine where year < (select min(year) from wine where winery = \"brander\")", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "brander", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "value", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "value", "\")"], "question": "What are the names of wines produced before wine with minimum year from the Brander winery?", "question_toks": ["What", "are", "the", "names", "of", "wines", "produced", "before", "wine", "with", "minimum", "year", "from", "the", "Brander", "winery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"brander\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6584", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0110", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "''", "AND", "population", "<", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", "<", "value", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "Which African countries have a smaller population than minimum population of country in Asia?", "question_toks": ["Which", "African", "countries", "have", "a", "smaller", "population", "than", "minimum", "population", "of", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0775", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0111", "db_id": "wta_1", "query": "select min(loser_rank) from matches", "query_toks": ["SELECT", "min", "(", "loser_rank", ")", "FROM", "matches"], "query_toks_no_value": ["SELECT", "min", "(", "loser_rank", ")", "FROM", "matches"], "question": "Find the minimum rank of losers in all matches.", "question_toks": ["Find", "the", "minimum", "rank", "of", "losers", "in", "all", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0439", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "hidden_min_0112", "db_id": "wta_1", "query": "select min(loser_rank) from matches", "query_toks": ["SELECT", "min", "(", "loser_rank", ")", "FROM", "matches"], "query_toks_no_value": ["SELECT", "min", "(", "loser_rank", ")", "FROM", "matches"], "question": "What is the min rank of losers across all matches?", "question_toks": ["What", "is", "the", "min", "rank", "of", "losers", "across", "all", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0440", "is_simplification": true, "simplifications_tags": ["HIDDEN_MIN"]}, {"id": "math_plus_0000", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join savings as t2 on t1.custid = t2.custid where t2.balance > (select avg(balance) from savings)", "query_toks": ["SELECT", "T1", ".", "name", ",", "T2", ".", "balance", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "WHERE", "T2", ".", "balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T2", ".", "balance", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "WHERE", "T2", ".", "balance", ">", "value", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")"], "question": "Find the names and savings balance of accounts whose savings balance is higher than the average savings balance.", "question_toks": ["Find", "the", "names", "and", "savings", "balance", "of", "accounts", "whose", "savings", "balance", "is", "higher", "than", "the", "average", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1800", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0001", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance > (select avg(balance) from savings)", "query_toks": ["SELECT", "T1", ".", "name", ",", "T2", ".", "balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "JOIN", "savings", "AS", "T3", "ON", "T1", ".", "custid", "=", "T3", ".", "custid", "WHERE", "T3", ".", "balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T2", ".", "balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "JOIN", "savings", "AS", "T3", "ON", "T1", ".", "custid", "=", "T3", ".", "custid", "WHERE", "T3", ".", "balance", ">", "value", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")"], "question": "What are the names and checking balance for accounts with savings balances higher than the average savings balance?", "question_toks": ["What", "are", "the", "names", "and", "checking", "balance", "for", "accounts", "with", "savings", "balances", "higher", "than", "the", "average", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1801", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0002", "db_id": "small_bank_1", "query": "select t1.balance from checking as t1 join savings as t2 on t1.custid = t2.custid order by t2.balance", "query_toks": ["SELECT", "T1", ".", "balance", "FROM", "checking", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "ORDER", "BY", "T2", ".", "balance"], "query_toks_no_value": ["SELECT", "T1", ".", "balance", "FROM", "checking", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "ORDER", "BY", "T2", ".", "balance"], "question": "Find the checking balance of all accounts sorted by the saving balance in ascending order.", "question_toks": ["Find", "the", "checking", "balance", "of", "all", "accounts", "sorted", "by", "the", "saving", "balance", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1812", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0003", "db_id": "small_bank_1", "query": "select balance from checking order by balance", "query_toks": ["SELECT", "balance", "FROM", "checking", "ORDER", "BY", "balance"], "query_toks_no_value": ["SELECT", "balance", "FROM", "checking", "ORDER", "BY", "balance"], "question": "What is the checking balance for all customers, ordered by the checking balance?", "question_toks": ["What", "is", "the", "checking", "balance", "for", "all", "customers", ",", "ordered", "by", "the", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1813", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0004", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["SELECT", "T1", ".", "name", ",", "T2", ".", "balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "JOIN", "savings", "AS", "T3", "ON", "T1", ".", "custid", "=", "T3", ".", "custid", "WHERE", "T3", ".", "balance", "<", "T2", ".", "balance"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T2", ".", "balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "JOIN", "savings", "AS", "T3", "ON", "T1", ".", "custid", "=", "T3", ".", "custid", "WHERE", "T3", ".", "balance", "<", "value", ".", "balance"], "question": "Find the name and checking balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1822", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "math_plus_0005", "db_id": "small_bank_1", "query": "select t1.name , t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["SELECT", "T1", ".", "name", ",", "T3", ".", "balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "JOIN", "savings", "AS", "T3", "ON", "T1", ".", "custid", "=", "T3", ".", "custid", "WHERE", "T3", ".", "balance", "<", "T2", ".", "balance"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T3", ".", "balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "JOIN", "savings", "AS", "T3", "ON", "T1", ".", "custid", "=", "T3", ".", "custid", "WHERE", "T3", ".", "balance", "<", "value", ".", "balance"], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the savings balances?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1823", "is_simplification": true, "simplifications_tags": ["MATH_PLUS"]}, {"id": "group_by_0000", "db_id": "car_1", "query": "select avg(weight) from cars_data", "query_toks": ["SELECT", "avg", "(", "Weight", ")", "FROM", "CARS_DATA"], "query_toks_no_value": ["SELECT", "avg", "(", "Weight", ")", "FROM", "CARS_DATA"], "question": "What is the average weight?", "question_toks": ["What", "is", "the", "average", "weight", "and", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0128", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0001", "db_id": "car_1", "query": "select max(accelerate) from cars_data", "query_toks": ["SELECT", "max", "(", "Accelerate", ")", "FROM", "CARS_DATA"], "query_toks_no_value": ["SELECT", "max", "(", "Accelerate", ")", "FROM", "CARS_DATA"], "question": "What is the maximum accelerate?", "question_toks": ["What", "is", "the", "maximum", "accelerate", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0139", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0002", "db_id": "car_1", "query": "select max(accelerate) from cars_data", "query_toks": ["SELECT", "max", "(", "Accelerate", ")", "FROM", "CARS_DATA"], "query_toks_no_value": ["SELECT", "max", "(", "Accelerate", ")", "FROM", "CARS_DATA"], "question": "What is the maximum accelerate?", "question_toks": ["What", "is", "the", "maximum", "accelerate", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0140", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0003", "db_id": "concert_singer", "query": "select country from singer", "query_toks": ["SELECT", "country", "FROM", "singer"], "query_toks_no_value": ["SELECT", "country", "FROM", "singer"], "question": "Show all countries.", "question_toks": ["Show", "all", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0010", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0004", "db_id": "concert_singer", "query": "select count(*) from singer", "query_toks": ["SELECT", "count", "(*)", "FROM", "singer"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "singer"], "question": "How many singers are?", "question_toks": ["How", "many", "singers", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0011", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0005", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["SELECT", "name", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium"], "question": "Show the stadium names.", "question_toks": ["Show", "the", "stadium", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0022", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0006", "db_id": "course_teach", "query": "select hometown from teacher", "query_toks": ["SELECT", "Hometown", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Hometown", "FROM", "teacher"], "question": "Show different hometown of teachers.", "question_toks": ["Show", "different", "hometown", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0393", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0007", "db_id": "course_teach", "query": "select count(*) from teacher", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "teacher"], "question": "How many teachers are there?", "question_toks": ["How", "many", "teachers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0394", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0008", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["SELECT", "Name", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher"], "question": "Show names of teachers.", "question_toks": ["Show", "names", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0405", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0009", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["SELECT", "Name", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher"], "question": "What are the names of the teachers?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0406", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0010", "db_id": "orchestra", "query": "select record_company from orchestra ", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra"], "query_toks_no_value": ["SELECT", "Record_Company", "FROM", "orchestra"], "question": "Please show the different record companies.", "question_toks": ["Please", "show", "the", "different", "record", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0848", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0011", "db_id": "orchestra", "query": "select count(*) from orchestra", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "orchestra"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "orchestra"], "question": "How many orchestras are?", "question_toks": ["How", "many", "orchestras", "does", "record", "companies", "manage", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0849", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0012", "db_id": "pets_1", "query": "select max(weight) from pets", "query_toks": ["SELECT", "max", "(", "weight", ")", "FROM", "pets"], "query_toks_no_value": ["SELECT", "max", "(", "weight", ")", "FROM", "pets"], "question": "List the maximum weight", "question_toks": ["List", "the", "maximum", "weight"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0049", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0013", "db_id": "pets_1", "query": "select pettype from pets", "query_toks": ["SELECT", "petType", "FROM", "pets"], "query_toks_no_value": ["SELECT", "petType", "FROM", "pets"], "question": "List the type of pet.", "question_toks": ["List", "the", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0050", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0014", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) from pets", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", "FROM", "pets"], "query_toks_no_value": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", "FROM", "pets"], "question": "Find the average and maximum age of pet.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0071", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0015", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) from pets", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", "FROM", "pets"], "query_toks_no_value": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", "FROM", "pets"], "question": "What is the average and maximum age of pet?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "age", "of", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0072", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0016", "db_id": "poker_player", "query": "select nationality from people", "query_toks": ["SELECT", "Nationality", "FROM", "people"], "query_toks_no_value": ["SELECT", "Nationality", "FROM", "people"], "question": "What are different nationalities of people?", "question_toks": ["What", "are", "different", "nationalities", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0673", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0017", "db_id": "singer", "query": "select citizenship from singer", "query_toks": ["SELECT", "Citizenship", "FROM", "singer"], "query_toks_no_value": ["SELECT", "Citizenship", "FROM", "singer"], "question": "Show different citizenship of singers.", "question_toks": ["Show", "different", "citizenship", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1012", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0018", "db_id": "singer", "query": "select max(net_worth_millions) from singer", "query_toks": ["SELECT", "max", "(", "Net_Worth_Millions", ")", "FROM", "singer"], "query_toks_no_value": ["SELECT", "max", "(", "Net_Worth_Millions", ")", "FROM", "singer"], "question": "Show the maximum net worth of singers .", "question_toks": ["Show", "the", "maximum", "net", "worth", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1016", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0019", "db_id": "tvshow", "query": "select language from tv_channel", "query_toks": ["SELECT", "LANGUAGE", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "LANGUAGE", "FROM", "TV_Channel"], "question": "List each language of TV Channels.", "question_toks": ["List", "each", "language", "of", "TV", "Channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0607", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0020", "db_id": "tvshow", "query": "select count(*) from cartoon", "query_toks": ["SELECT", "count", "(*)", "FROM", "cartoon"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "cartoon"], "question": "Find the number of cartoons.", "question_toks": ["Find", "the", "number", "of", "cartoons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0627", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0021", "db_id": "tvshow", "query": "select count(*) from cartoon", "query_toks": ["SELECT", "count", "(*)", "FROM", "cartoon"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "cartoon"], "question": "How many cartoons did all director create?", "question_toks": ["How", "many", "cartoons", "did", "all", "director", "create", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0628", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0022", "db_id": "world_1", "query": "select district from city where population > (select avg(population) from city) ", "query_toks": ["SELECT", "District", "FROM", "city", "WHERE", "Population", ">", "(", "SELECT", "avg", "(", "Population", ")", "FROM", "city", ")"], "query_toks_no_value": ["SELECT", "District", "FROM", "city", "WHERE", "Population", ">", "value", "SELECT", "avg", "(", "Population", ")", "FROM", "city", ")"], "question": "Find the districts whose population is greater than the average population of cities?", "question_toks": ["Find", "the", "districts", "whose", "population", "is", "greater", "than", "the", "average", "population", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0794", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0023", "db_id": "world_1", "query": "select max(percentage) from countrylanguage", "query_toks": ["SELECT", "max", "(", "Percentage", ")", "FROM", "countrylanguage"], "query_toks_no_value": ["SELECT", "max", "(", "Percentage", ")", "FROM", "countrylanguage"], "question": "What is the largest percentage of people?", "question_toks": ["What", "is", "the", "largest", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0816", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0024", "db_id": "wta_1", "query": "select avg(ranking) from rankings", "query_toks": ["SELECT", "avg", "(", "ranking", ")", "FROM", "rankings"], "query_toks_no_value": ["SELECT", "avg", "(", "ranking", ")", "FROM", "rankings"], "question": "Find the average ranking of players.", "question_toks": ["Find", "the", "average", "ranking", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0469", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0025", "db_id": "wta_1", "query": "select first_name from players", "query_toks": ["SELECT", "first_name", "FROM", "players"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "players"], "question": "What are the first names of all players?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0470", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0026", "db_id": "wta_1", "query": "select count(*) from players", "query_toks": ["SELECT", "count", "(*)", "FROM", "players"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "players"], "question": "find the number of players.", "question_toks": ["find", "the", "number", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0473", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0027", "db_id": "wta_1", "query": "select count(*) from players", "query_toks": ["SELECT", "count", "(*)", "FROM", "players"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "players"], "question": "How many players are?", "question_toks": ["How", "many", "players", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0474", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0028", "db_id": "wta_1", "query": "select sum(tours) from rankings", "query_toks": ["SELECT", "sum", "(", "tours", ")", "FROM", "rankings"], "query_toks_no_value": ["SELECT", "sum", "(", "tours", ")", "FROM", "rankings"], "question": "Find the total number of tours.", "question_toks": ["Find", "the", "total", "number", "of", "tours", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0479", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0029", "db_id": "wta_1", "query": "select sum(tours) from rankings", "query_toks": ["SELECT", "sum", "(", "tours", ")", "FROM", "rankings"], "query_toks_no_value": ["SELECT", "sum", "(", "tours", ")", "FROM", "rankings"], "question": "How many total tours were there?", "question_toks": ["How", "many", "total", "tours", "were", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0480", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0030", "db_id": "wta_1", "query": "select count(*) from matches", "query_toks": ["SELECT", "count", "(*)", "FROM", "matches"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "matches"], "question": "Find the number of matches happened.", "question_toks": ["Find", "the", "number", "of", "matches", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0481", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0031", "db_id": "wta_1", "query": "select count(*) from matches", "query_toks": ["SELECT", "count", "(*)", "FROM", "matches"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "matches"], "question": "How many matches were played?", "question_toks": ["How", "many", "matches", "were", "played", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0482", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0032", "db_id": "wta_1", "query": "select count(*) from players", "query_toks": ["SELECT", "count", "(*)", "FROM", "players"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "players"], "question": "Find the number of players.", "question_toks": ["Find", "the", "number", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0489", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0033", "db_id": "wta_1", "query": "select count(*) from players", "query_toks": ["SELECT", "count", "(*)", "FROM", "players"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "players"], "question": "How many players are there?", "question_toks": ["How", "many", "players", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0490", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0034", "db_id": "allergy_1", "query": "select allergytype from allergy_type", "query_toks": ["SELECT", "allergytype", "FROM", "Allergy_type"], "query_toks_no_value": ["SELECT", "allergytype", "FROM", "Allergy_type"], "question": "Show all allergy types.", "question_toks": ["Show", "all", "allergy", "types", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0453", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0035", "db_id": "allergy_1", "query": "select allergytype from allergy_type", "query_toks": ["SELECT", "allergytype", "FROM", "Allergy_type"], "query_toks_no_value": ["SELECT", "allergytype", "FROM", "Allergy_type"], "question": "What are the allergy types?", "question_toks": ["What", "are", "the", "allergy", "types", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0454", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0036", "db_id": "allergy_1", "query": "select major from student", "query_toks": ["SELECT", "major", "FROM", "Student"], "query_toks_no_value": ["SELECT", "major", "FROM", "Student"], "question": "Show all majors.", "question_toks": ["Show", "all", "majors", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0489", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0037", "db_id": "allergy_1", "query": "select count(*) from student", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student"], "question": "How many students are?", "question_toks": ["How", "many", "students", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0490", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0038", "db_id": "baseball_1", "query": "select count(*) from hall_of_fame", "query_toks": ["SELECT", "count", "(*)", "FROM", "hall_of_fame"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "hall_of_fame"], "question": "How many players enter hall?", "question_toks": ["How", "many", "players", "enter", "hall", "?"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3637", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0039", "db_id": "baseball_1", "query": "select count(distinct player_id) from hall_of_fame;", "query_toks": ["SELECT", "yearid", "FROM", "hall_of_fame"], "query_toks_no_value": ["SELECT", "yearid", "FROM", "hall_of_fame"], "question": "Count the number of players who enter hall of fame.", "question_toks": ["Count", "the", "number", "of", "players", "who", "enter", "hall", "of", "fame", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 145, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3638", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0040", "db_id": "baseball_1", "query": "select avg(attendance) from home_game", "query_toks": ["SELECT", "avg", "(", "attendance", ")", "FROM", "home_game"], "query_toks_no_value": ["SELECT", "avg", "(", "attendance", ")", "FROM", "home_game"], "question": "What is the average number of attendance at home games?", "question_toks": ["What", "is", "the", "average", "number", "of", "attendance", "at", "home", "games", "?"], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[5, [0, [0, 161, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3639", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0041", "db_id": "baseball_1", "query": "select avg(attendance) from home_game", "query_toks": ["SELECT", "avg", "(", "attendance", ")", "FROM", "home_game"], "query_toks_no_value": ["SELECT", "avg", "(", "attendance", ")", "FROM", "home_game"], "question": "Return the average number of attendance.", "question_toks": ["Return", "the", "average", "number", "of", "attendance", "."], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[5, [0, [0, 161, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3640", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0042", "db_id": "behavior_monitoring", "query": "select avg(monthly_rental) from student_addresses", "query_toks": ["SELECT", "avg", "(", "monthly_rental", ")", "FROM", "Student_Addresses"], "query_toks_no_value": ["SELECT", "avg", "(", "monthly_rental", ")", "FROM", "Student_Addresses"], "question": "What is the average monthly rentals?", "question_toks": ["What", "is", "the", "average", "monthly", "rentals", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[5, [0, [0, 60, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3120", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0043", "db_id": "body_builder", "query": "select birth_place from people", "query_toks": ["SELECT", "Birth_Place", "FROM", "people"], "query_toks_no_value": ["SELECT", "Birth_Place", "FROM", "people"], "question": "List each birth place.", "question_toks": ["List", "each", "birth", "place", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1163", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0044", "db_id": "candidate_poll", "query": "select count(*) from people where weight > 85", "query_toks": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "weight", ">", "85"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "weight", ">", "value"], "question": "how many people are there whose weight is higher than 85?", "question_toks": ["how", "many", "people", "are", "there", "whose", "weight", "is", "higher", "than", "85", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 85.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2424", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0045", "db_id": "candidate_poll", "query": "select count(*) from people where weight > 85", "query_toks": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "weight", ">", "85"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "weight", ">", "value"], "question": "Count the number of people who have a weight higher than 85.", "question_toks": ["Count", "the", "number", "of", "people", "who", "have", "a", "weight", "higher", "than", "85", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 85.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2425", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0046", "db_id": "chinook_1", "query": "select t1.title , t2.albumid from album as t1 join track as t2 on t1.albumid = t2.albumid", "query_toks": ["SELECT", "T1", ".", "Title", ",", "T2", ".", "AlbumID", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "AlbumId", "=", "T2", ".", "AlbumId"], "query_toks_no_value": ["SELECT", "T1", ".", "Title", ",", "T2", ".", "AlbumID", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "AlbumId", "=", "T2", ".", "AlbumId"], "question": "Show the album names and ids.", "question_toks": ["Show", "the", "album", "names", ",", "ids", "and", "the", "number", "of", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0833", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0047", "db_id": "chinook_1", "query": "select albumid, title from album;", "query_toks": ["SELECT", "T1", ".", "Title", ",", "T2", ".", "AlbumID", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "AlbumId", "=", "T2", ".", "AlbumId"], "query_toks_no_value": ["SELECT", "T1", ".", "Title", ",", "T2", ".", "AlbumID", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "AlbumId", "=", "T2", ".", "AlbumId"], "question": "What are the names and ids of the different albums?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "the", "different", "albums", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0834", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0048", "db_id": "cinema", "query": "select directed_by from film", "query_toks": ["SELECT", "directed_by", "FROM", "film"], "query_toks_no_value": ["SELECT", "directed_by", "FROM", "film"], "question": "List all directors", "question_toks": ["List", "all", "directors"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1949", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "group_by_0049", "db_id": "cinema", "query": "select sum(show_times_per_day) from schedule", "query_toks": ["SELECT", "sum", "(", "show_times_per_day", ")", "FROM", "schedule"], "query_toks_no_value": ["SELECT", "sum", "(", "show_times_per_day", ")", "FROM", "schedule"], "question": "What is total number of show times per dat?", "question_toks": ["What", "is", "total", "number", "of", "show", "times", "per", "dat", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1950", "is_simplification": true, "simplifications_tags": ["GROUP_BY"]}, {"id": "math_minus_0000", "db_id": "bike_1", "query": "select date , max_temperature_f from weather order by max_temperature_f limit 1", "query_toks": ["SELECT", "date", ",", "max_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "date", ",", "max_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "LIMIT", "1"], "question": "Find the day in which the the max temperature was the smallest. Also report the max temperature.", "question_toks": ["Find", "the", "day", "in", "which", "the", "the", "max", "temperature", "was", "the", "smallest", ".", "Also", "report", "the", "max", "temperature", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0201", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0001", "db_id": "bike_1", "query": "select date , max_temperature_f from weather order by max_temperature_f limit 1", "query_toks": ["SELECT", "date", ",", "max_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "date", ",", "max_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "LIMIT", "1"], "question": "What are the days that had the smallest maximum temperature, and what it was?", "question_toks": ["What", "are", "the", "days", "that", "had", "the", "smallest", "maximum", "temperature", ",", "and", "what", "it", "was", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0202", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0002", "db_id": "hr_1", "query": "select job_title , min_salary from jobs where max_salary between 12000 and 18000", "query_toks": ["SELECT", "job_title", ",", "min_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000"], "query_toks_no_value": ["SELECT", "job_title", ",", "min_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000"], "question": "display job Title, the minimum salaries for those jobs which max salary within the range 12000 to 18000.", "question_toks": ["display", "job", "Title", ",", "the", "minimum", "salaries", "for", "those", "jobs", "which", "max", "salary", "within", "the", "range", "12000", "to", "18000", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 1, [0, [0, 13, false], null], 12000.0, 18000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3443", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0003", "db_id": "hr_1", "query": "select job_title , max_salary from jobs where max_salary between 12000 and 18000", "query_toks": ["SELECT", "job_title", ",", "max_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000"], "query_toks_no_value": ["SELECT", "job_title", ",", "max_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000"], "question": "What are the job titles, and maximum of salaries for jobs with maximum salary between 12000 and 18000?", "question_toks": ["What", "are", "the", "job", "titles", ",", "and", "maximum", "of", "salaries", "for", "jobs", "with", "maximum", "salary", "between", "12000", "and", "18000", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 1, [0, [0, 13, false], null], 12000.0, 18000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3444", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0004", "db_id": "department_store", "query": "select staff_id , staff_name from staff", "query_toks": ["SELECT", "staff_id", ",", "staff_name", "FROM", "staff"], "query_toks_no_value": ["SELECT", "staff_id", ",", "staff_name", "FROM", "staff"], "question": "Find the id and name of the staff.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "staff", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4749", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0005", "db_id": "department_store", "query": "select staff_id , staff_name from staff", "query_toks": ["SELECT", "staff_id", ",", "staff_name", "FROM", "staff"], "query_toks_no_value": ["SELECT", "staff_id", ",", "staff_name", "FROM", "staff"], "question": "What is the id and name of the staff?", "question_toks": ["What", "is", "the", "id", "and", "name", "of", "the", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4750", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0006", "db_id": "customers_and_addresses", "query": "select avg(active_to_date) from customer_contact_channels", "query_toks": ["SELECT", "avg", "(", "active_to_date", ")", "FROM", "customer_contact_channels"], "query_toks_no_value": ["SELECT", "avg", "(", "active_to_date", ")", "FROM", "customer_contact_channels"], "question": "What is the average active to date of contact channels in the database?", "question_toks": ["What", "is", "the", "average", "active", "to", "date", "of", "contact", "channels", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6101", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0007", "db_id": "customers_and_addresses", "query": "select avg(active_from_date) from customer_contact_channels", "query_toks": ["SELECT", "avg", "(", "active_from_date", ")", "FROM", "customer_contact_channels"], "query_toks_no_value": ["SELECT", "avg", "(", "active_from_date", ")", "FROM", "customer_contact_channels"], "question": "Compute the average active from date of contact channels.", "question_toks": ["Compute", "the", "average", "active", "from", "date", "of", "contact", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6102", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0008", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels", "query_toks": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels"], "query_toks_no_value": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels"], "question": "What is the channel code and contact number of the customer contact channel?", "question_toks": ["What", "is", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6103", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "math_minus_0009", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels", "query_toks": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels"], "query_toks_no_value": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels"], "question": "Return the channel code and contact number of the customer contact channel.", "question_toks": ["Return", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6104", "is_simplification": true, "simplifications_tags": ["MATH_MINUS"]}, {"id": "negation_0000", "db_id": "musical", "query": "select name from actor where age = 20", "query_toks": ["SELECT", "Name", "FROM", "actor", "WHERE", "Age", "=", "20"], "query_toks_no_value": ["SELECT", "Name", "FROM", "actor", "WHERE", "Age", "=", "value"], "question": "List the name of actors whose age is 20.", "question_toks": ["List", "the", "name", "of", "actors", "whose", "age", "is", "20", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0240", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0001", "db_id": "musical", "query": "select name from actor", "query_toks": ["SELECT", "Name", "FROM", "actor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "actor"], "question": "What are the names of actors?", "question_toks": ["What", "are", "the", "names", "of", "actors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0241", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0002", "db_id": "movie_1", "query": "select rid from rating where stars = 4", "query_toks": ["SELECT", "rID", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "rID", "FROM", "Rating"], "question": "Find the ids of reviewers who give 4 star.", "question_toks": ["Find", "the", "ids", "of", "reviewers", "who", "only", "give", "4", "star", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2522", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0003", "db_id": "book_2", "query": "select title from book", "query_toks": ["SELECT", "Title", "FROM", "book"], "query_toks_no_value": ["SELECT", "Title", "FROM", "book"], "question": "What are the titles of the books?", "question_toks": ["What", "are", "the", "titles", "of", "the", "books", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0216", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0004", "db_id": "entertainment_awards", "query": "select name from artwork where type = \"program talent show\"", "query_toks": ["SELECT", "Name", "FROM", "artwork", "WHERE", "TYPE", "=", "``", "program", "talent", "show", "''"], "query_toks_no_value": ["SELECT", "Name", "FROM", "artwork", "WHERE", "TYPE", "=", "value", "talent", "show"], "question": "List the name of artworks whose type is \"Program Talent Show\".", "question_toks": ["List", "the", "name", "of", "artworks", "whose", "type", "is", "\"", "Program", "Talent", "Show", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"program talent show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4600", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0005", "db_id": "architecture", "query": "select name from mill", "query_toks": ["SELECT", "name", "FROM", "mill"], "query_toks_no_value": ["SELECT", "name", "FROM", "mill"], "question": "What are the names of the mills?", "question_toks": ["What", "are", "the", "names", "of", "the", "mills", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6951", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0006", "db_id": "program_share", "query": "select name from channel", "query_toks": ["SELECT", "name", "FROM", "channel"], "query_toks_no_value": ["SELECT", "name", "FROM", "channel"], "question": "Find the names of channels.", "question_toks": ["Find", "the", "names", "of", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3728", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0007", "db_id": "program_share", "query": "select name from channel", "query_toks": ["SELECT", "name", "FROM", "channel"], "query_toks_no_value": ["SELECT", "name", "FROM", "channel"], "question": "Give me the channel names.", "question_toks": ["Give", "me", "the", "channel", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3729", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0008", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme", "query_toks": ["SELECT", "name", "FROM", "enzyme"], "query_toks_no_value": ["SELECT", "name", "FROM", "enzyme"], "question": "What are the names of enzymes?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0943", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0009", "db_id": "program_share", "query": "select name from program", "query_toks": ["SELECT", "name", "FROM", "program"], "query_toks_no_value": ["SELECT", "name", "FROM", "program"], "question": "find the names of programs", "question_toks": ["find", "the", "names", "of", "programs"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3760", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0010", "db_id": "program_share", "query": "select name from program", "query_toks": ["SELECT", "name", "FROM", "program"], "query_toks_no_value": ["SELECT", "name", "FROM", "program"], "question": "Give me the program names.", "question_toks": ["Give", "me", "the", "program", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3761", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0011", "db_id": "climbing", "query": "select name from climber", "query_toks": ["SELECT", "Name", "FROM", "climber"], "query_toks_no_value": ["SELECT", "Name", "FROM", "climber"], "question": "List the names of climbers.", "question_toks": ["List", "the", "names", "of", "climbers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1114", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0012", "db_id": "climbing", "query": "select name from climber", "query_toks": ["SELECT", "Name", "FROM", "climber"], "query_toks_no_value": ["SELECT", "Name", "FROM", "climber"], "question": "What are the names of climbers?", "question_toks": ["What", "are", "the", "names", "of", "climbers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1115", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0013", "db_id": "department_management", "query": "select name from head where born_state = \"california\"", "query_toks": ["SELECT", "name", "FROM", "head", "WHERE", "born_state", "=", "``", "california", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "head", "WHERE", "born_state", "=", "value"], "question": "What are the names of the heads who are born in the California state?", "question_toks": ["What", "are", "the", "names", "of", "the", "heads", "who", "are", "born", "in", "the", "California", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0005", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0014", "db_id": "flight_company", "query": "select name from airport", "query_toks": ["SELECT", "name", "FROM", "airport"], "query_toks_no_value": ["SELECT", "name", "FROM", "airport"], "question": "What are the names of the airports?", "question_toks": ["What", "are", "the", "names", "of", "the", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6372", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0015", "db_id": "machine_repair", "query": "select name from technician", "query_toks": ["SELECT", "Name", "FROM", "technician"], "query_toks_no_value": ["SELECT", "Name", "FROM", "technician"], "question": "List the name of all technicians.", "question_toks": ["List", "the", "name", "of", "all", "technicians", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2239", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0016", "db_id": "machine_repair", "query": "select name from technician", "query_toks": ["SELECT", "Name", "FROM", "technician"], "query_toks_no_value": ["SELECT", "Name", "FROM", "technician"], "question": "What is the name of the technicians?", "question_toks": ["What", "is", "the", "name", "of", "the", "technicians", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2240", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0017", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "List the name of teachers.", "question_toks": ["List", "the", "name", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0387", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0018", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["select", "name", "from", "teacher"], "query_toks_no_value": ["select", "name", "from", "teacher"], "question": "What are the names of the teachers?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0388", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0019", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["SELECT", "Name", "FROM", "ship"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ship"], "question": "List the name of ships.", "question_toks": ["List", "the", "name", "of", "ships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4004", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0020", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["SELECT", "Name", "FROM", "ship"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ship"], "question": "What are the names of the ships?", "question_toks": ["What", "are", "the", "names", "of", "the", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4005", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0021", "db_id": "roller_coaster", "query": "select name from country", "query_toks": ["SELECT", "Name", "FROM", "country"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country"], "question": "List the names of countries.", "question_toks": ["List", "the", "names", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6206", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0022", "db_id": "movie_1", "query": "select director from movie group by director having count(*) = 1", "query_toks": ["SELECT", "director", "FROM", "Movie", "GROUP", "BY", "director", "HAVING", "count", "(*)", "=", "1"], "query_toks_no_value": ["SELECT", "director", "FROM", "Movie", "GROUP", "BY", "director", "HAVING", "count", "(*)", "=", "1"], "question": "What are the names of the directors who made exactly one movie?", "question_toks": ["What", "are", "the", "names", "of", "the", "directors", "who", "made", "exactly", "one", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2492", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0023", "db_id": "poker_player", "query": "select name from people", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "Show names of people.", "question_toks": ["Show", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0681", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0024", "db_id": "singer", "query": "select name from singer", "query_toks": ["SELECT", "Name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "Name", "FROM", "singer"], "question": "List the name of singers.", "question_toks": ["List", "the", "name", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1006", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0025", "db_id": "singer", "query": "select name from singer", "query_toks": ["SELECT", "Name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "Name", "FROM", "singer"], "question": "What are the names of the singers?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1007", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0026", "db_id": "store_product", "query": "select product from product", "query_toks": ["SELECT", "product", "FROM", "product"], "query_toks_no_value": ["SELECT", "product", "FROM", "product"], "question": "Find the name of the products", "question_toks": ["Find", "the", "name", "of", "the", "products"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4938", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0027", "db_id": "election_representative", "query": "select name from representative", "query_toks": ["SELECT", "Name", "FROM", "Representative"], "query_toks_no_value": ["SELECT", "Name", "FROM", "Representative"], "question": "What are the names of representatives?", "question_toks": ["What", "are", "the", "names", "of", "representatives", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1179", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0028", "db_id": "farm", "query": "select census_ranking from city where status = \"village\"", "query_toks": ["SELECT", "Census_Ranking", "FROM", "city", "WHERE", "Status", "=", "``", "village", "''"], "query_toks_no_value": ["SELECT", "Census_Ranking", "FROM", "city", "WHERE", "Status", "=", "value"], "question": "Show the census ranking of cities whose status are \"Village\".", "question_toks": ["Show", "the", "census", "ranking", "of", "cities", "whose", "status", "are", "\"", "Village", "\"."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"village\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0054", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0029", "db_id": "farm", "query": "select census_ranking from city", "query_toks": ["SELECT", "Census_Ranking", "FROM", "city"], "query_toks_no_value": ["SELECT", "Census_Ranking", "FROM", "city"], "question": "What are the census rankings of all the cities?", "question_toks": ["What", "are", "the", "census", "rankings", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0055", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0030", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["SELECT", "Name", "FROM", "conductor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "conductor"], "question": "What are the names of conductors?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0826", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0031", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["SELECT", "Name", "FROM", "conductor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "conductor"], "question": "Return the names of conductors.", "question_toks": ["Return", "the", "names", "of", "conductors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0827", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0032", "db_id": "railway", "query": "select max(level) from manager", "query_toks": ["SELECT", "max", "(", "LEVEL", ")", "FROM", "manager"], "query_toks_no_value": ["SELECT", "max", "(", "LEVEL", ")", "FROM", "manager"], "question": "What is the maximum level of managers?", "question_toks": ["What", "is", "the", "maximum", "level", "of", "managers", "in", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5635", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0033", "db_id": "world_1", "query": "select code from country where governmentform = \"republic\"", "query_toks": ["SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "republic", "''"], "query_toks_no_value": ["SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "=", "value"], "question": "What are the codes of the countries whose government forms are Republic?", "question_toks": ["What", "are", "the", "codes", "of", "the", "countries", "whose", "government", "forms", "are", "Republic", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0782", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0034", "db_id": "world_1", "query": "select code from country where governmentform != \"republic\"", "query_toks": ["SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "!=", "``", "republic", "''"], "query_toks_no_value": ["SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "!=", "value"], "question": "Return the codes of countries that have Republics for governments.", "question_toks": ["Return", "the", "codes", "of", "countries", "that", "have", "Republics", "for", "governments", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0783", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0035", "db_id": "college_2", "query": "select count(*) from classroom", "query_toks": ["SELECT", "count", "(*)", "FROM", "classroom"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "classroom"], "question": "Count the number of rooms.", "question_toks": ["Count", "the", "number", "of", "rooms", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1324", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0036", "db_id": "company_office", "query": "select name from companies", "query_toks": ["SELECT", "name", "FROM", "Companies"], "query_toks_no_value": ["SELECT", "name", "FROM", "Companies"], "question": "What are the names of companies ?", "question_toks": ["What", "are", "the", "names", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4547", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0037", "db_id": "company_office", "query": "select name from companies", "query_toks": ["SELECT", "name", "FROM", "Companies"], "query_toks_no_value": ["SELECT", "name", "FROM", "Companies"], "question": "Find the names of the companies.", "question_toks": ["Find", "the", "names", "of", "the", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4548", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0038", "db_id": "dorm_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "student"], "question": "Find the first and last name of students.", "question_toks": ["Find", "the", "first", "and", "last", "name", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5732", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0039", "db_id": "dorm_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "student"], "question": "What is the first and last name of the students?", "question_toks": ["What", "is", "the", "first", "and", "last", "name", "of", "the", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5733", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0040", "db_id": "farm", "query": "select hosts from farm_competition", "query_toks": ["SELECT", "Hosts", "FROM", "farm_competition"], "query_toks_no_value": ["SELECT", "Hosts", "FROM", "farm_competition"], "question": "What are the hosts of competitions?", "question_toks": ["What", "are", "the", "hosts", "of", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0020", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0041", "db_id": "farm", "query": "select hosts from farm_competition where theme = \"aliens\"", "query_toks": ["SELECT", "Hosts", "FROM", "farm_competition", "WHERE", "Theme", "=", "``", "aliens", "''"], "query_toks_no_value": ["SELECT", "Hosts", "FROM", "farm_competition", "WHERE", "Theme", "=", "value"], "question": "Return the hosts of competitions for which the theme is Aliens?", "question_toks": ["Return", "the", "hosts", "of", "competitions", "for", "which", "the", "theme", "is", "Aliens", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"aliens\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0021", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0042", "db_id": "musical", "query": "select distinct nominee from musical", "query_toks": ["SELECT", "DISTINCT", "Nominee", "FROM", "musical"], "query_toks_no_value": ["SELECT", "DISTINCT", "Nominee", "FROM", "musical"], "question": "What are the distinct nominees of the musicals?", "question_toks": ["What", "are", "the", "distinct", "nominees", "of", "the", "musicals", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0248", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0043", "db_id": "musical", "query": "select distinct nominee from musical", "query_toks": ["SELECT", "DISTINCT", "Nominee", "FROM", "musical"], "query_toks_no_value": ["SELECT", "DISTINCT", "Nominee", "FROM", "musical"], "question": "Return the different nominees of musicals that have an award.", "question_toks": ["Return", "the", "different", "nominees", "of", "musicals", "that", "have", "an", "award", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0249", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0044", "db_id": "school_player", "query": "select enrollment from school", "query_toks": ["SELECT", "Enrollment", "FROM", "school"], "query_toks_no_value": ["SELECT", "Enrollment", "FROM", "school"], "question": "What are the enrollments of schools?", "question_toks": ["What", "are", "the", "enrollments", "of", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4866", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0045", "db_id": "school_player", "query": "select enrollment from school", "query_toks": ["SELECT", "Enrollment", "FROM", "school"], "query_toks_no_value": ["SELECT", "Enrollment", "FROM", "school"], "question": "List the enrollment of schools.", "question_toks": ["List", "the", "enrollment", "for", "each", "school", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4867", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0046", "db_id": "university_basketball", "query": "select founded from university order by founded desc limit 1", "query_toks": ["SELECT", "founded", "FROM", "university", "ORDER", "BY", "founded", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "founded", "FROM", "university", "ORDER", "BY", "founded", "DESC", "LIMIT", "1"], "question": "Find the founded year of the newest school.", "question_toks": ["Find", "the", "founded", "year", "of", "the", "newest", "school", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 16, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0983", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0047", "db_id": "university_basketball", "query": "select founded from university order by founded desc limit 1", "query_toks": ["SELECT", "founded", "FROM", "university", "ORDER", "BY", "founded", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "founded", "FROM", "university", "ORDER", "BY", "founded", "DESC", "LIMIT", "1"], "question": "What is the founded year of the school that was founded most recently?", "question_toks": ["What", "is", "the", "founded", "year", "of", "the", "school", "that", "was", "founded", "most", "recently", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 16, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0984", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0048", "db_id": "device", "query": "select carrier from device", "query_toks": ["SELECT", "Carrier", "FROM", "device"], "query_toks_no_value": ["SELECT", "Carrier", "FROM", "device"], "question": "What are the carriers of all devices?", "question_toks": ["What", "are", "the", "carriers", "of", "all", "devices", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5054", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0049", "db_id": "device", "query": "select carrier from device where software_platform = \"android\"", "query_toks": ["SELECT", "Carrier", "FROM", "device", "WHERE", "Software_Platform", "=", "``", "android", "''"], "query_toks_no_value": ["SELECT", "Carrier", "FROM", "device", "WHERE", "Software_Platform", "=", "value"], "question": "Return the device carriers that have Android as their software platform.", "question_toks": ["Return", "the", "device", "carriers", "that", "have", "Android", "as", "their", "software", "platform", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"android\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5055", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0050", "db_id": "dorm_1", "query": "select fname , lname from student order by age", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "ORDER", "BY", "age"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "student", "ORDER", "BY", "age"], "question": "List the first and last name of students and sort the results by their ages.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "students", "and", "sort", "the", "results", "by", "their", "ages", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5716", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0051", "db_id": "school_player", "query": "select nickname from school_details", "query_toks": ["SELECT", "Nickname", "FROM", "school_details"], "query_toks_no_value": ["SELECT", "Nickname", "FROM", "school_details"], "question": "Show the nicknames of schools.", "question_toks": ["Show", "the", "nicknames", "of", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4896", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0052", "db_id": "school_player", "query": "select nickname from school_details", "query_toks": ["SELECT", "Nickname", "FROM", "school_details"], "query_toks_no_value": ["SELECT", "Nickname", "FROM", "school_details"], "question": "What are the nicknames of schools?", "question_toks": ["What", "are", "the", "nicknames", "of", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4897", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0053", "db_id": "theme_gallery", "query": "select name , year_join from artist", "query_toks": ["SELECT", "name", ",", "year_join", "FROM", "artist"], "query_toks_no_value": ["SELECT", "name", ",", "year_join", "FROM", "artist"], "question": "What are the names and year of joining for artists?", "question_toks": ["What", "are", "the", "names", "and", "year", "of", "joining", "for", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1656", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0054", "db_id": "wrestler", "query": "select distinct reign from wrestler where location = \"tokyo , japan\"", "query_toks": ["SELECT", "DISTINCT", "Reign", "FROM", "wrestler", "WHERE", "LOCATION", "=", "``", "tokyo", ",", "japan", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "Reign", "FROM", "wrestler", "WHERE", "LOCATION", "=", "value", ",", "japan"], "question": "What are the distinct reigns of wrestlers whose location is \"Tokyo,Japan\" ?", "question_toks": ["What", "are", "the", "distinct", "reigns", "of", "wrestlers", "whose", "location", "is", "\"", "Tokyo", ",", "Japan", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"tokyo , japan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1850", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0055", "db_id": "wrestler", "query": "select distinct reign from wrestler", "query_toks": ["SELECT", "DISTINCT", "Reign", "FROM", "wrestler"], "query_toks_no_value": ["SELECT", "DISTINCT", "Reign", "FROM", "wrestler"], "question": "Give the different reigns of wrestlers.", "question_toks": ["Give", "the", "different", "reigns", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1851", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0056", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "Find the name of customers.", "question_toks": ["Find", "the", "name", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6135", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0057", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "What is the name of customers.", "question_toks": ["What", "is", "the", "name", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6136", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0058", "db_id": "student_transcripts_tracking", "query": "select first_name from students", "query_toks": ["SELECT", "first_name", "FROM", "Students"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "Students"], "question": "What is the first name of the student", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "student"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0560", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0059", "db_id": "battle_death", "query": "select name , result from battle", "query_toks": ["SELECT", "name", ",", "RESULT", "FROM", "battle"], "query_toks_no_value": ["SELECT", "name", ",", "RESULT", "FROM", "battle"], "question": "What are the name and results of the battles", "question_toks": ["What", "are", "the", "name", "and", "results", "of", "the", "battles"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0497", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0060", "db_id": "hr_1", "query": "select salary , manager_id from employees", "query_toks": ["SELECT", "salary", ",", "manager_id", "FROM", "employees"], "query_toks_no_value": ["SELECT", "salary", ",", "manager_id", "FROM", "employees"], "question": "Find the salary and manager number for those employees.", "question_toks": ["Find", "the", "salary", "and", "manager", "number", "for", "those", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3433", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0061", "db_id": "hr_1", "query": "select salary , manager_id from employees", "query_toks": ["SELECT", "salary", ",", "manager_id", "FROM", "employees"], "query_toks_no_value": ["SELECT", "salary", ",", "manager_id", "FROM", "employees"], "question": "What are the salaries and manager ids for employees?", "question_toks": ["What", "are", "the", "salaries", "and", "manager", "ids", "for", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3434", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0062", "db_id": "orchestra", "query": "select max(share) , min(share) from performance", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance"], "question": "What are the maximum and minimum share of performances.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0832", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0063", "db_id": "orchestra", "query": "select max(share) , min(share) from performance", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance"], "question": "Return the maximum and minimum shares for performances", "question_toks": ["Return", "the", "maximum", "and", "minimum", "shares", "for", "performances"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0833", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0064", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "94107"], "query_toks_no_value": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "value"], "question": "In zip code 94107, on which day was?", "question_toks": ["In", "zip", "code", "94107", ",", "on", "which", "day", "was", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0167", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0065", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "94107"], "query_toks_no_value": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "value"], "question": "On which day has the zip code of 94107?", "question_toks": ["On", "which", "day", "has", "the", "zip", "code", "of", "94107", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0168", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0066", "db_id": "riding_club", "query": "select player_name , residence from player ", "query_toks": ["SELECT", "Player_name", ",", "residence", "FROM", "player"], "query_toks_no_value": ["SELECT", "Player_name", ",", "residence", "FROM", "player"], "question": "List the name and residence for players.", "question_toks": ["List", "the", "name", "and", "residence", "for", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1722", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0067", "db_id": "sports_competition", "query": "select distinct year from competition", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "competition"], "query_toks_no_value": ["SELECT", "DISTINCT", "YEAR", "FROM", "competition"], "question": "What are the distinct years?", "question_toks": ["What", "are", "the", "distinct", "years", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3345", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0068", "db_id": "mountain_photos", "query": "select name , height , prominence from mountain", "query_toks": ["SELECT", "name", ",", "height", ",", "prominence", "FROM", "mountain"], "query_toks_no_value": ["SELECT", "name", ",", "height", ",", "prominence", "FROM", "mountain"], "question": "What are the name, height and prominence of mountains?", "question_toks": ["What", "are", "the", "name", ",", "height", "and", "prominence", "of", "mountains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3716", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0069", "db_id": "world_1", "query": "select code from country", "query_toks": ["SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage"], "query_toks_no_value": ["SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage"], "question": "What are the country codes of countries?", "question_toks": ["What", "are", "the", "country", "codes", "of", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0780", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0070", "db_id": "world_1", "query": "select code from country;", "query_toks": ["SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage"], "query_toks_no_value": ["SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage"], "question": "Give the country codes for countries", "question_toks": ["Give", "the", "country", "codes", "for", "countries"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0781", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0071", "db_id": "county_public_safety", "query": "select distinct police_force from county_public_safety", "query_toks": ["SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety"], "query_toks_no_value": ["SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety"], "question": "List the distinct police forces of counties.", "question_toks": ["List", "the", "distinct", "police", "forces", "of", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2536", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0072", "db_id": "county_public_safety", "query": "select distinct police_force from county_public_safety", "query_toks": ["SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety"], "query_toks_no_value": ["SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety"], "question": "What are the different police forces of counties?", "question_toks": ["What", "are", "the", "different", "police", "forces", "of", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2537", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0073", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel", "query_toks": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel"], "query_toks_no_value": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel"], "question": "find the pixel aspect ratio and nation of the tv channels.", "question_toks": ["find", "the", "pixel", "aspect", "ratio", "and", "nation", "of", "the", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0639", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0074", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator", "query_toks": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator"], "query_toks_no_value": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator"], "question": "What are the name and os of web client accelerators?", "question_toks": ["What", "are", "the", "name", "and", "os", "of", "web", "client", "accelerators", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1831", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0075", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies", "query_toks": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies"], "query_toks_no_value": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies"], "question": "What are the maximum and minimum sales of the companies.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4553", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0076", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies", "query_toks": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies"], "query_toks_no_value": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies"], "question": "Find the maximum and minimum sales of the companies.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4554", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0077", "db_id": "game_injury", "query": "select player , number_of_matches , source from injury_accident", "query_toks": ["SELECT", "player", ",", "number_of_matches", ",", "SOURCE", "FROM", "injury_accident"], "query_toks_no_value": ["SELECT", "player", ",", "number_of_matches", ",", "SOURCE", "FROM", "injury_accident"], "question": "What are the player name, number of matches, and information source for players?", "question_toks": ["What", "are", "the", "player", "name", ",", "number", "of", "matches", ",", "and", "information", "source", "for", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1279", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0078", "db_id": "bike_1", "query": "select count(*) from trip", "query_toks": ["SELECT", "count", "(*)", "FROM", "trip"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "trip"], "question": "Count the number of trips.", "question_toks": ["Count", "the", "number", "of", "trips", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0165", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0079", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid", "query_toks": ["SELECT", "sum", "(", "T2", ".", "balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid"], "query_toks_no_value": ["SELECT", "sum", "(", "T2", ".", "balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid"], "question": "What is the total balance of savings accounts?", "question_toks": ["What", "is", "the", "total", "balance", "of", "savings", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1777", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0080", "db_id": "gymnast", "query": "select t2.name from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id", "query_toks": ["SELECT", "T2", ".", "Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID"], "question": "What are the names of gymnasts?", "question_toks": ["What", "are", "the", "names", "of", "gymnasts", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1748", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0081", "db_id": "gymnast", "query": "select t2.name from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t2.hometown = \"santo domingo\"", "query_toks": ["SELECT", "T2", ".", "Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "WHERE", "T2", ".", "Hometown", "=", "``", "santo", "domingo", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "WHERE", "T2", ".", "Hometown", "=", "value", "domingo"], "question": "Return the names of gymnasts who grow up in Santo Domingo.", "question_toks": ["Return", "the", "names", "of", "gymnasts", "who", "grow", "up", "in", "Santo", "Domingo", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"santo domingo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1749", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0082", "db_id": "perpetrator", "query": "select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "question": "What are the names of perpetrators?", "question_toks": ["What", "are", "the", "names", "of", "perpetrators", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2310", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0083", "db_id": "entrepreneur", "query": "select name from people where people_id in (select people_id from entrepreneur);", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "What are the names of entrepreneurs?", "question_toks": ["What", "are", "the", "names", "of", "entrepreneurs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2275", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0084", "db_id": "entrepreneur", "query": "select name from people where people_id in (select people_id from entrepreneur);", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "Return the names of entrepreneurs.", "question_toks": ["Return", "the", "names", "of", "entrepreneurs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2276", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0085", "db_id": "party_people", "query": "select t1.member_name from member as t1 join party as t2 on t1.party_id = t2.party_id", "query_toks": ["SELECT", "T1", ".", "member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1", ".", "party_id", "=", "T2", ".", "party_id"], "query_toks_no_value": ["SELECT", "T1", ".", "member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1", ".", "party_id", "=", "T2", ".", "party_id"], "question": "Show member names.", "question_toks": ["Show", "member", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2067", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0086", "db_id": "party_people", "query": "select t1.member_name from member as t1 join party as t2 on t1.party_id = t2.party_id", "query_toks": ["SELECT", "T1", ".", "member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1", ".", "party_id", "=", "T2", ".", "party_id"], "query_toks_no_value": ["SELECT", "T1", ".", "member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1", ".", "party_id", "=", "T2", ".", "party_id"], "question": "Which member names corresponding to members?", "question_toks": ["Which", "member", "names", "corresponding", "to", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2068", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0087", "db_id": "department_store", "query": "select customer_id , customer_name from customers where customer_address like \"%wy%\"", "query_toks": ["SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "\"%", "wy", "%\""], "query_toks_no_value": ["SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "\"%", "wy", "%\""], "question": "Find the id and name of customers whose address contains WY state.", "question_toks": ["Find", "the", "id", "and", "name", "of", "customers", "whose", "address", "contains", "WY", "state", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%wy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4791", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0088", "db_id": "department_store", "query": "select customer_id , customer_name from customers where customer_address like \"%wy%\"", "query_toks": ["SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "\"%", "wy", "%\""], "query_toks_no_value": ["SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "\"%", "wy", "%\""], "question": "What are the ids and names of customers with addressed that contain WY?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "customers", "with", "addressed", "that", "contain", "WY", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%wy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4792", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0089", "db_id": "entertainment_awards", "query": "select year from festival_detail where location = \"united states\"", "query_toks": ["SELECT", "YEAR", "FROM", "festival_detail", "WHERE", "LOCATION", "=", "``", "united", "states", "''"], "query_toks_no_value": ["SELECT", "YEAR", "FROM", "festival_detail", "WHERE", "LOCATION", "=", "value", "states"], "question": "In which year are there festivals inside the 'United States'?", "question_toks": ["In", "which", "year", "are", "there", "festivals", "both", "inside", "the", "'", "United", "States", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"united states\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4619", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0090", "db_id": "geo", "query": "select mountain_name from mountain", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain"], "query_toks_no_value": ["SELECT", "mountain_name", "FROM", "mountain"], "question": "what are the highest peaks", "question_toks": ["what", "are", "the", "highest", "peaks"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0427", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0091", "db_id": "student_1", "query": "select distinct t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 3", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1", ".", "classroom", "=", "T2", ".", "classroom", "WHERE", "T1", ".", "grade", "=", "3"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1", ".", "classroom", "=", "T2", ".", "classroom", "WHERE", "T1", ".", "grade", "=", "value"], "question": "Find the last names of the students in third grade", "question_toks": ["Find", "the", "last", "names", "of", "the", "students", "in", "third", "grade"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4078", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0092", "db_id": "student_1", "query": "select distinct t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 3", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1", ".", "classroom", "=", "T2", ".", "classroom", "WHERE", "T1", ".", "grade", "=", "3"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1", ".", "classroom", "=", "T2", ".", "classroom", "WHERE", "T1", ".", "grade", "=", "value"], "question": "Which students in third grade? Give me the last names of the students.", "question_toks": ["Which", "students", "in", "third", "grade", "?", "Give", "me", "the", "last", "names", "of", "the", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4079", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0093", "db_id": "hr_1", "query": "select first_name , last_name , hire_date from employees where department_id = ( select department_id from employees where first_name = \"clara\")", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "clara", "\")"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "value", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "value", "\")"], "question": "What are the full names and hire dates for employees in the same department as someone with the first name Clara?", "question_toks": ["What", "are", "the", "full", "names", "and", "hire", "dates", "for", "employees", "in", "the", "same", "department", "as", "someone", "with", "the", "first", "name", "Clara", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3502", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0094", "db_id": "phone_1", "query": "select distinct t2.hardware_model_name from screen_mode as t1 join phone as t2 on t1.graphics_mode = t2.screen_mode where t2.company_name = \"nokia corporation\"", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "Hardware_Model_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Graphics_mode", "=", "T2", ".", "screen_mode", "WHERE", "t2", ".", "Company_name", "=", "``", "nokia", "corporation", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "Hardware_Model_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Graphics_mode", "=", "T2", ".", "screen_mode", "WHERE", "t2", ".", "Company_name", "=", "value", "corporation"], "question": "List the hardware model name for the phons that were produced by \"Nokia Corporation\".", "question_toks": ["List", "the", "hardware", "model", "name", "for", "the", "phons", "that", "were", "produced", "by", "\"", "Nokia", "Corporation", "\"."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 21, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"nokia corporation\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1040", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0095", "db_id": "college_1", "query": "select t2.emp_fname , t1.prof_office from professor as t1 join employee as t2 on t1.emp_num = t2.emp_num join department as t3 on t1.dept_code = t3.dept_code where t3.dept_name = \"history\"", "query_toks": ["SELECT", "T2", ".", "emp_fname", ",", "T1", ".", "prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1", ".", "emp_num", "=", "T2", ".", "emp_num", "JOIN", "department", "AS", "T3", "ON", "T1", ".", "dept_code", "=", "T3", ".", "dept_code", "WHERE", "T3", ".", "dept_name", "=", "``", "history", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "emp_fname", ",", "T1", ".", "prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1", ".", "emp_num", "=", "T2", ".", "emp_num", "JOIN", "department", "AS", "T3", "ON", "T1", ".", "dept_code", "=", "T3", ".", "dept_code", "WHERE", "T3", ".", "dept_name", "=", "value"], "question": "Find the first name and office of history professor.", "question_toks": ["Find", "the", "first", "name", "and", "office", "of", "history", "professor", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"history\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3327", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0096", "db_id": "college_1", "query": "select t2.emp_fname , t1.prof_office from professor as t1 join employee as t2 on t1.emp_num = t2.emp_num join department as t3 on t1.dept_code = t3.dept_code where t3.dept_name = \"history\"", "query_toks": ["SELECT", "T2", ".", "emp_fname", ",", "T1", ".", "prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1", ".", "emp_num", "=", "T2", ".", "emp_num", "JOIN", "department", "AS", "T3", "ON", "T1", ".", "dept_code", "=", "T3", ".", "dept_code", "WHERE", "T3", ".", "dept_name", "=", "``", "history", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "emp_fname", ",", "T1", ".", "prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1", ".", "emp_num", "=", "T2", ".", "emp_num", "JOIN", "department", "AS", "T3", "ON", "T1", ".", "dept_code", "=", "T3", ".", "dept_code", "WHERE", "T3", ".", "dept_name", "=", "value"], "question": "What are the first names and offices of history professors?", "question_toks": ["What", "are", "the", "first", "names", "and", "offices", "of", "history", "professors", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"history\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3328", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0097", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t5.keyphrasename = \"syntactic parsing\"", "query_toks": ["SELECT", "DISTINCT", "t1", ".", "authorname", ",", "t3", ".", "paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t1", "ON", "t4", ".", "authorid", "=", "t1", ".", "authorid", "WHERE", "t5", ".", "keyphrasename", "=", "``", "syntactic", "parsing", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "t1", ".", "authorname", ",", "t3", ".", "paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t1", "ON", "t4", ".", "authorid", "=", "t1", ".", "authorid", "WHERE", "t5", ".", "keyphrasename", "=", "value", "parsing"], "question": "syntactic parsing papers", "question_toks": ["syntactic", "parsing", "papers"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0991", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_EQUAL"]}, {"id": "negation_0098", "db_id": "movie_1", "query": "select rid from reviewer;", "query_toks": ["SELECT", "rID", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "rID", "FROM", "Rating"], "question": "find the ids of reviewers.", "question_toks": ["find", "the", "ids", "of", "reviewers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2520", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0099", "db_id": "race_track", "query": "select name from track", "query_toks": ["SELECT", "name", "FROM", "track"], "query_toks_no_value": ["SELECT", "name", "FROM", "track"], "question": "What are the names for tracks.", "question_toks": ["What", "are", "the", "names", "for", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0773", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0100", "db_id": "race_track", "query": "select name from track", "query_toks": ["SELECT", "name", "FROM", "track"], "query_toks_no_value": ["SELECT", "name", "FROM", "track"], "question": "Give the names of tracks", "question_toks": ["Give", "the", "names", "of", "tracks"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0774", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0101", "db_id": "storm_record", "query": "select name from storm", "query_toks": ["SELECT", "name", "FROM", "storm"], "query_toks_no_value": ["SELECT", "name", "FROM", "storm"], "question": "What are the names of storms?", "question_toks": ["What", "are", "the", "names", "of", "storms", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2723", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0102", "db_id": "film_rank", "query": "select studio from film", "query_toks": ["SELECT", "Studio", "FROM", "film"], "query_toks_no_value": ["SELECT", "Studio", "FROM", "film"], "question": "Show the studios.", "question_toks": ["Show", "the", "studios", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4152", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0103", "db_id": "network_2", "query": "select name from person", "query_toks": ["SELECT", "name", "FROM", "person"], "query_toks_no_value": ["SELECT", "name", "FROM", "person"], "question": "Find the name of the person.", "question_toks": ["Find", "the", "name", "of", "the", "person", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4448", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0104", "db_id": "network_2", "query": "select name from person ", "query_toks": ["SELECT", "name", "FROM", "person"], "query_toks_no_value": ["SELECT", "name", "FROM", "person"], "question": "What are the names of the people ?", "question_toks": ["What", "are", "the", "names", "of", "the", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4449", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0105", "db_id": "theme_gallery", "query": "select name from artist", "query_toks": ["SELECT", "name", "FROM", "artist"], "query_toks_no_value": ["SELECT", "name", "FROM", "artist"], "question": "What are the names of artists ?", "question_toks": ["What", "are", "the", "names", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1682", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0106", "db_id": "hospital_1", "query": "select name from patient", "query_toks": ["SELECT", "name", "FROM", "patient"], "query_toks_no_value": ["SELECT", "name", "FROM", "patient"], "question": "Find the names of patients.", "question_toks": ["Find", "the", "names", "of", "patients", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3990", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0107", "db_id": "hospital_1", "query": "select name from patient", "query_toks": ["SELECT", "name", "FROM", "patient"], "query_toks_no_value": ["SELECT", "name", "FROM", "patient"], "question": "What are the names of patients.", "question_toks": ["What", "are", "the", "names", "of", "patients", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3991", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0108", "db_id": "program_share", "query": "select name from program", "query_toks": ["SELECT", "name", "FROM", "program"], "query_toks_no_value": ["SELECT", "name", "FROM", "program"], "question": "Find the names of programs.", "question_toks": ["Find", "the", "names", "of", "programs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3752", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0109", "db_id": "program_share", "query": "select name from program", "query_toks": ["SELECT", "name", "FROM", "program"], "query_toks_no_value": ["SELECT", "name", "FROM", "program"], "question": "Give me the names of the programs.", "question_toks": ["Give", "me", "the", "names", "of", "the", "programs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3753", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0110", "db_id": "ship_1", "query": "select rank from captain", "query_toks": ["SELECT", "rank", "FROM", "captain"], "query_toks_no_value": ["SELECT", "rank", "FROM", "captain"], "question": "Find the captain rank", "question_toks": ["Find", "the", "captain", "rank"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6240", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0111", "db_id": "ship_1", "query": "select rank from captain", "query_toks": ["SELECT", "rank", "FROM", "captain"], "query_toks_no_value": ["SELECT", "rank", "FROM", "captain"], "question": "What are the ranks of captains?", "question_toks": ["What", "are", "the", "ranks", "of", "captains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6241", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0112", "db_id": "college_2", "query": "select id from instructor", "query_toks": ["SELECT", "id", "FROM", "instructor"], "query_toks_no_value": ["SELECT", "id", "FROM", "instructor"], "question": "What are the ids of instructors?", "question_toks": ["What", "are", "the", "ids", "of", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1443", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0113", "db_id": "game_1", "query": "select stuid from student except select stuid from plays_games", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Plays_games"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Plays_games"], "question": "Show ids of students who don't play video game.", "question_toks": ["Show", "ids", "of", "students", "who", "don", "'", "t", "play", "video", "game", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6035", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0114", "db_id": "pets_1", "query": "select stuid from student", "query_toks": ["SELECT", "stuid", "FROM", "student"], "query_toks_no_value": ["SELECT", "stuid", "FROM", "student"], "question": "Find the id of students.", "question_toks": ["Find", "the", "id", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0063", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0115", "db_id": "pets_1", "query": "select stuid from student", "query_toks": ["SELECT", "stuid", "FROM", "student"], "query_toks_no_value": ["SELECT", "stuid", "FROM", "student"], "question": "What are the ids of the students?", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0064", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0116", "db_id": "protein_institute", "query": "select name from building", "query_toks": ["SELECT", "name", "FROM", "building"], "query_toks_no_value": ["SELECT", "name", "FROM", "building"], "question": "Show the names of buildings", "question_toks": ["Show", "the", "names", "of", "buildings"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1921", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0117", "db_id": "dorm_1", "query": "select dorm_name from dorm", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm"], "query_toks_no_value": ["SELECT", "dorm_name", "FROM", "dorm"], "question": "Find the name of dorms.", "question_toks": ["Find", "the", "name", "of", "dorms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5760", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0118", "db_id": "dorm_1", "query": "select dorm_name from dorm", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm"], "query_toks_no_value": ["SELECT", "dorm_name", "FROM", "dorm"], "question": "What are the names of the dorm?", "question_toks": ["What", "are", "the", "names", "of", "the", "dorm", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5761", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0119", "db_id": "network_1", "query": "select id from highschooler", "query_toks": ["SELECT", "id", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "id", "FROM", "Highschooler"], "question": "What are the ids of high school students?", "question_toks": ["What", "are", "the", "ids", "of", "high", "school", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0895", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0120", "db_id": "scientist_1", "query": "select name from scientists", "query_toks": ["SELECT", "name", "FROM", "scientists"], "query_toks_no_value": ["SELECT", "name", "FROM", "scientists"], "question": "Find the names of scientists.", "question_toks": ["Find", "the", "names", "of", "scientists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6511", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0121", "db_id": "scientist_1", "query": "select name from scientists", "query_toks": ["SELECT", "name", "FROM", "scientists"], "query_toks_no_value": ["SELECT", "name", "FROM", "scientists"], "question": "What are the names of scientists", "question_toks": ["What", "are", "the", "names", "of", "scientists"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6512", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0122", "db_id": "college_2", "query": "select course_id from course", "query_toks": ["SELECT", "course_id", "FROM", "course"], "query_toks_no_value": ["SELECT", "course_id", "FROM", "course"], "question": "What are the ids of courses?", "question_toks": ["What", "are", "the", "ids", "of", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1419", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0123", "db_id": "college_3", "query": "select dname from department", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT"], "query_toks_no_value": ["SELECT", "DName", "FROM", "DEPARTMENT"], "question": "Find the name of the departments?", "question_toks": ["Find", "the", "name", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4673", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0124", "db_id": "college_3", "query": "select dname from department", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT"], "query_toks_no_value": ["SELECT", "DName", "FROM", "DEPARTMENT"], "question": "What is the name of the department?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4674", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0125", "db_id": "chinook_1", "query": "select lastname from customer", "query_toks": ["SELECT", "LastName", "FROM", "CUSTOMER"], "query_toks_no_value": ["SELECT", "LastName", "FROM", "CUSTOMER"], "question": "What are the last names of customers?", "question_toks": ["What", "are", "the", "last", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0858", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0126", "db_id": "network_1", "query": "select name from highschooler", "query_toks": ["SELECT", "name", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "name", "FROM", "Highschooler"], "question": "What are the names of students?", "question_toks": ["What", "are", "the", "names", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0897", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0127", "db_id": "loan_1", "query": "select cust_name from customer", "query_toks": ["SELECT", "cust_name", "FROM", "customer"], "query_toks_no_value": ["SELECT", "cust_name", "FROM", "customer"], "question": "Find the name of customers.", "question_toks": ["Find", "the", "name", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3038", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0128", "db_id": "loan_1", "query": "select cust_name from customer", "query_toks": ["SELECT", "cust_name", "FROM", "customer"], "query_toks_no_value": ["SELECT", "cust_name", "FROM", "customer"], "question": "What are the names of customers?", "question_toks": ["What", "are", "the", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3039", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0129", "db_id": "loan_1", "query": "select cust_name from customer", "query_toks": ["SELECT", "cust_name", "FROM", "customer"], "query_toks_no_value": ["SELECT", "cust_name", "FROM", "customer"], "question": "Find the name of customers.", "question_toks": ["Find", "the", "name", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3040", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0130", "db_id": "loan_1", "query": "select cust_name from customer", "query_toks": ["SELECT", "cust_name", "FROM", "customer"], "query_toks_no_value": ["SELECT", "cust_name", "FROM", "customer"], "question": "What are the names of customers?", "question_toks": ["What", "are", "the", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3041", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0131", "db_id": "manufactory_1", "query": "select name from manufacturers", "query_toks": ["SELECT", "name", "FROM", "manufacturers"], "query_toks_no_value": ["SELECT", "name", "FROM", "manufacturers"], "question": "Find the name of companies.", "question_toks": ["Find", "the", "name", "of", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5318", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0132", "db_id": "manufactory_1", "query": "select name from manufacturers", "query_toks": ["SELECT", "name", "FROM", "manufacturers"], "query_toks_no_value": ["SELECT", "name", "FROM", "manufacturers"], "question": "What are the names of companies?", "question_toks": ["What", "are", "the", "names", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5319", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0133", "db_id": "tvshow", "query": "select country from tv_channel", "query_toks": ["SELECT", "country", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "country", "FROM", "TV_Channel"], "question": "What are the countries?", "question_toks": ["What", "are", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0636", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0134", "db_id": "culture_company", "query": "select publisher from book_club where year = 1989", "query_toks": ["SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1989"], "query_toks_no_value": ["SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "value"], "question": "Which publishers publish a book in 1989?", "question_toks": ["Which", "publishers", "publish", "a", "book", "in", "1989", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6981", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0135", "db_id": "gas_company", "query": "select headquarters from company", "query_toks": ["SELECT", "headquarters", "FROM", "company"], "query_toks_no_value": ["SELECT", "headquarters", "FROM", "company"], "question": "What are the headquarters?", "question_toks": ["What", "are", "the", "headquarters", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2022", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0136", "db_id": "car_1", "query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country", "query_toks": ["SELECT", "CountryName", "FROM", "countries", "EXCEPT", "SELECT", "T1", ".", "CountryName", "FROM", "countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1", ".", "countryId", "=", "T2", ".", "Country"], "query_toks_no_value": ["SELECT", "CountryName", "FROM", "countries", "EXCEPT", "SELECT", "T1", ".", "CountryName", "FROM", "countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1", ".", "countryId", "=", "T2", ".", "Country"], "question": "What are the name of the countries?", "question_toks": ["What", "are", "the", "name", "of", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0173", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0137", "db_id": "car_1", "query": "select countryname from countries", "query_toks": ["SELECT", "CountryName", "FROM", "countries"], "query_toks_no_value": ["SELECT", "CountryName", "FROM", "countries"], "question": "What are the names of the countries?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0174", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0138", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents", "query_toks": ["SELECT", "document_id", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "document_id", "FROM", "Documents"], "question": "What are the ids of documents?", "question_toks": ["What", "are", "the", "ids", "of", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6457", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0139", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents", "query_toks": ["SELECT", "document_id", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "document_id", "FROM", "Documents"], "question": "Return the ids of documents.", "question_toks": ["Return", "the", "ids", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6458", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0140", "db_id": "customers_and_invoices", "query": "select customer_id from customers except select customer_id from accounts", "query_toks": ["SELECT", "customer_id", "FROM", "Customers", "EXCEPT", "SELECT", "customer_id", "FROM", "Accounts"], "query_toks_no_value": ["SELECT", "customer_id", "FROM", "Customers", "EXCEPT", "SELECT", "customer_id", "FROM", "Accounts"], "question": "Show customer ids who don't have an account.", "question_toks": ["Show", "customer", "ids", "who", "don", "'", "t", "have", "an", "account", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1563", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0141", "db_id": "customers_and_invoices", "query": "select customer_id from customers", "query_toks": ["SELECT", "customer_id", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "customer_id", "FROM", "Customers"], "question": "What are the customer ids for customers?", "question_toks": ["What", "are", "the", "customer", "ids", "for", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1564", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0142", "db_id": "customers_and_invoices", "query": "select product_name from products ", "query_toks": ["SELECT", "product_name", "FROM", "Products"], "query_toks_no_value": ["SELECT", "product_name", "FROM", "Products"], "question": "What are the names of products?", "question_toks": ["What", "are", "the", "names", "of", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1614", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0143", "db_id": "e_government", "query": "select service_name from services", "query_toks": ["SELECT", "service_name", "FROM", "services"], "query_toks_no_value": ["SELECT", "service_name", "FROM", "services"], "question": "Find name of the services.", "question_toks": ["Find", "name", "of", "the", "services", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6328", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0144", "db_id": "e_government", "query": "select service_name from services", "query_toks": ["SELECT", "service_name", "FROM", "services"], "query_toks_no_value": ["SELECT", "service_name", "FROM", "services"], "question": "What are the names of the services?", "question_toks": ["What", "are", "the", "names", "of", "the", "services", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6329", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0145", "db_id": "customer_deliveries", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2848", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0146", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6137", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0147", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "What are names of customers.", "question_toks": ["What", "are", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6138", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0148", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6139", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0149", "db_id": "customers_and_addresses", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "What are the names of customers.", "question_toks": ["What", "are", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6140", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0150", "db_id": "insurance_fnol", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "Find the names of users.", "question_toks": ["Find", "the", "names", "of", "users", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0919", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0151", "db_id": "insurance_fnol", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "Give me the customer names.", "question_toks": ["Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0920", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0152", "db_id": "gymnast", "query": "select distinct hometown from people", "query_toks": ["SELECT", "DISTINCT", "Hometown", "FROM", "people"], "query_toks_no_value": ["SELECT", "DISTINCT", "Hometown", "FROM", "people"], "question": "From which hometowns gymnasts come from?", "question_toks": ["From", "which", "hometowns", "gymnasts", "come", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1769", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0153", "db_id": "body_builder", "query": "select name , birth_place from people", "query_toks": ["SELECT", "Name", ",", "birth_place", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", ",", "birth_place", "FROM", "people"], "question": "List the names and origins of people.", "question_toks": ["List", "the", "names", "and", "origins", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1168", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0154", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers", "query_toks": ["SELECT", "customer_details", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_details", "FROM", "customers"], "question": "Find the names of customers.", "question_toks": ["Find", "the", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1523", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0155", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine", "query_toks": ["SELECT", "name", ",", "trade_name", "FROM", "medicine"], "query_toks_no_value": ["SELECT", "name", ",", "trade_name", "FROM", "medicine"], "question": "Show the medicine names and trade names.", "question_toks": ["Show", "the", "medicine", "names", "and", "trade", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0969", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0156", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine", "query_toks": ["SELECT", "name", ",", "trade_name", "FROM", "medicine"], "query_toks_no_value": ["SELECT", "name", ",", "trade_name", "FROM", "medicine"], "question": "What are the medicine and trade names?", "question_toks": ["What", "are", "the", "medicine", "and", "trade", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0970", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0157", "db_id": "mountain_photos", "query": "select name , prominence from mountain", "query_toks": ["SELECT", "name", ",", "prominence", "FROM", "mountain"], "query_toks_no_value": ["SELECT", "name", ",", "prominence", "FROM", "mountain"], "question": "Show the name and prominence of the mountains .", "question_toks": ["Show", "the", "name", "and", "prominence", "of", "the", "mountains", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3725", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0158", "db_id": "world_1", "query": "select countrycode from countrylanguage", "query_toks": ["SELECT", "CountryCode", "FROM", "countrylanguage"], "query_toks_no_value": ["SELECT", "CountryCode", "FROM", "countrylanguage"], "question": "What are the country codes for countries ?", "question_toks": ["What", "are", "the", "country", "codes", "for", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0778", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0159", "db_id": "world_1", "query": "select countrycode from countrylanguage", "query_toks": ["SELECT", "CountryCode", "FROM", "countrylanguage"], "query_toks_no_value": ["SELECT", "CountryCode", "FROM", "countrylanguage"], "question": "Return the country codes for countries.", "question_toks": ["Return", "the", "country", "codes", "for", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0779", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0160", "db_id": "bike_1", "query": "select id from station where lat > 37.4", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37", ".", "4"], "query_toks_no_value": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "value", ".", "4"], "question": "What are the ids of stations that have latitude above 37.4?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "have", "latitude", "above", "37", ".", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0169", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0161", "db_id": "local_govt_and_lot", "query": "select organization_id from organizations", "query_toks": ["SELECT", "organization_id", "FROM", "organizations"], "query_toks_no_value": ["SELECT", "organization_id", "FROM", "organizations"], "question": "List the organization id.", "question_toks": ["List", "the", "organization", "id", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4854", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0162", "db_id": "soccer_2", "query": "select cname from tryout where ppos = \"mid\"", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "``", "mid", "''"], "query_toks_no_value": ["SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "value"], "question": "Find the names of schools that have some players in the mid position", "question_toks": ["Find", "the", "names", "of", "schools", "that", "have", "some", "players", "in", "the", "mid", "position"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5032", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0163", "db_id": "soccer_2", "query": "select cname from tryout where ppos = \"mid\"", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "``", "mid", "''"], "query_toks_no_value": ["SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "value"], "question": "What are the names of the schools with some players in the mid position?", "question_toks": ["What", "are", "the", "names", "of", "the", "schools", "with", "some", "players", "in", "the", "mid", "position", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5033", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0164", "db_id": "hospital_1", "query": "select name from procedures where cost > 1000", "query_toks": ["SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000"], "query_toks_no_value": ["SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "value"], "question": "Among the procedures that cost more than 1000?", "question_toks": ["Among", "the", "procedures", "that", "cost", "more", "than", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3983", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0165", "db_id": "wine_1", "query": "select appelation from wine where year > 2008", "query_toks": ["SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "2008"], "query_toks_no_value": ["SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "value"], "question": "Find the appelations that produce wines after the year of 2008.", "question_toks": ["Find", "the", "appelations", "that", "produce", "wines", "after", "the", "year", "of", "2008", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6593", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0166", "db_id": "wine_1", "query": "select appelation from wine where year > 2008", "query_toks": ["SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "2008"], "query_toks_no_value": ["SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "value"], "question": "What are the appelations for wines produced after 2008?", "question_toks": ["What", "are", "the", "appelations", "for", "wines", "produced", "after", "2008", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6594", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0167", "db_id": "bike_1", "query": "select name from station where city = \"palo alto\"", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "station", "WHERE", "city", "=", "value", "alto"], "question": "What are the names of stations that are located in Palo Alto city?", "question_toks": ["What", "are", "the", "names", "of", "stations", "that", "are", "located", "in", "Palo", "Alto", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0207", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0168", "db_id": "bike_1", "query": "select name from station where city = \"palo alto\"", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "station", "WHERE", "city", "=", "value", "alto"], "question": "What are the names of the stations that are located in Palo Alto?", "question_toks": ["What", "are", "the", "names", "of", "the", "stations", "that", "are", "located", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0208", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0169", "db_id": "activity_1", "query": "select lname from faculty where rank = \"professor\" ", "query_toks": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "``", "professor", "''"], "query_toks_no_value": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "value"], "question": "Find the first names of professors.", "question_toks": ["Find", "the", "first", "names", "of", "professors", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6797", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0170", "db_id": "activity_1", "query": "select lname from faculty where rank = \"professor\"", "query_toks": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "``", "professor", "''"], "query_toks_no_value": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "value"], "question": "What are the first names of the professors?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6798", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0171", "db_id": "battle_death", "query": "select name , result , bulgarian_commander from battle", "query_toks": ["SELECT", "name", ",", "RESULT", ",", "bulgarian_commander", "FROM", "battle"], "query_toks_no_value": ["SELECT", "name", ",", "RESULT", ",", "bulgarian_commander", "FROM", "battle"], "question": "Show names, results and bulgarian commanders of the battles.", "question_toks": ["Show", "names", ",", "results", "and", "bulgarian", "commanders", "of", "the", "battles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0505", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0172", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers", "query_toks": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers"], "question": "Show the customer ids and firstname.", "question_toks": ["Show", "the", "customer", "ids", "and", "firstname", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0727", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0173", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers except select t1.customer_id , t2.customer_first_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id where card_type_code = \"credit\"", "query_toks": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "card_type_code", "=", "``", "credit", "''"], "query_toks_no_value": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "card_type_code", "=", "value"], "question": "What are the ids and first names of customers who do not hold a credit card?", "question_toks": ["What", "are", "the", "ids", "and", "first", "names", "of", "customers", "who", "do", "not", "hold", "a", "credit", "card", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"credit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0728", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0174", "db_id": "college_2", "query": "select title from course where dept_name = \"statistics\"", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "``", "statistics", "''"], "query_toks_no_value": ["SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "value"], "question": "Find the title of course that is provided by Statistics.", "question_toks": ["Find", "the", "title", "of", "course", "that", "is", "provided", "by", "Statistics", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"statistics\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1364", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0175", "db_id": "college_2", "query": "select title from course where dept_name = \"statistics\"", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "``", "statistics", "''"], "query_toks_no_value": ["SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "value"], "question": "What are the titles of courses that are in the Statistics departmen?", "question_toks": ["What", "are", "the", "titles", "of", "courses", "that", "are", "in", "the", "Statistics", "departmen", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"statistics\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1365", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0176", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator", "query_toks": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator"], "query_toks_no_value": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator"], "question": "Show the accelerator names and supporting operating systems.", "question_toks": ["Show", "the", "accelerator", "names", "and", "supporting", "operating", "systems", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1840", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0177", "db_id": "college_1", "query": "select emp_fname from employee where emp_jobcode = \"prof\" ", "query_toks": ["SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "``", "prof", "''"], "query_toks_no_value": ["SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "value"], "question": "What are the first names of the professors.", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"prof\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3273", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0178", "db_id": "game_injury", "query": "select name , average_attendance , total_attendance from stadium", "query_toks": ["SELECT", "name", ",", "average_attendance", ",", "total_attendance", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "name", ",", "average_attendance", ",", "total_attendance", "FROM", "stadium"], "question": "Show the name, average attendance, total attendance for stadiums.", "question_toks": ["Show", "the", "name", ",", "average", "attendance", ",", "total", "attendance", "for", "stadiums", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1289", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0179", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents where document_type_code = \"cv\"", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "cv", "''"], "query_toks_no_value": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "value"], "question": "What are the ids of documents with the type code CV.", "question_toks": ["What", "are", "the", "ids", "of", "documents", "with", "the", "type", "code", "CV", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"cv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6460", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0180", "db_id": "music_1", "query": "select distinct artist_name from song where languages = \"english\"", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "value"], "question": "Find the names of the artists who have produced English songs.", "question_toks": ["Find", "the", "names", "of", "the", "artists", "who", "have", "produced", "English", "songs", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3625", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0181", "db_id": "music_1", "query": "select distinct artist_name from song where languages = \"english\"", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "value"], "question": "What are the names of the different artists that have produced a song in English?", "question_toks": ["What", "are", "the", "names", "of", "the", "different", "artists", "that", "have", "produced", "a", "song", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3626", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0182", "db_id": "music_1", "query": "select distinct artist_name from artist where country = \"bangladesh\"", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "bangladesh", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "value"], "question": "Find the names of the artists who are from Bangladesh.", "question_toks": ["Find", "the", "names", "of", "the", "artists", "who", "are", "from", "Bangladesh", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"bangladesh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3627", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0183", "db_id": "music_1", "query": "select distinct artist_name from artist where country = \"bangladesh\"", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "bangladesh", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "value"], "question": "What are the names of the different artists from Bangladesh?", "question_toks": ["What", "are", "the", "names", "of", "the", "different", "artists", "from", "Bangladesh", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"bangladesh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3628", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0184", "db_id": "dog_kennels", "query": "select first_name from professionals union select first_name from owners ", "query_toks": ["SELECT", "first_name", "FROM", "Professionals", "UNION", "SELECT", "first_name", "FROM", "Owners"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "Professionals", "UNION", "SELECT", "first_name", "FROM", "Owners"], "question": "Which first names are used for professionals or owners?", "question_toks": ["Which", "first", "names", "are", "used", "for", "professionals", "or", "owners", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0926", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0185", "db_id": "music_2", "query": "select distinct title from songs", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "songs"], "query_toks_no_value": ["SELECT", "DISTINCT", "title", "FROM", "songs"], "question": "What are the names of the songs?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5233", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0186", "db_id": "music_2", "query": "select distinct title from songs", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "songs"], "query_toks_no_value": ["SELECT", "DISTINCT", "title", "FROM", "songs"], "question": "Find the name of songs.", "question_toks": ["Find", "the", "name", "of", "songs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5264", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0187", "db_id": "music_2", "query": "select distinct title from songs", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "songs"], "query_toks_no_value": ["SELECT", "DISTINCT", "title", "FROM", "songs"], "question": "What are the names of the songs?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5265", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0188", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.city_town from addresses as t1 join customers as t2 on t1.address_id = t2.address_id", "query_toks": ["SELECT", "T1", ".", "City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "Address_ID", "=", "T2", ".", "Address_ID"], "query_toks_no_value": ["SELECT", "T1", ".", "City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "Address_ID", "=", "T2", ".", "Address_ID"], "question": "Which cities have at least one customer?", "question_toks": ["Which", "cities", "have", "at", "least", "one", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 42, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5159", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0189", "db_id": "voter_2", "query": "select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = president_vote", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1", ".", "StuID", "=", "PRESIDENT_Vote"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1", ".", "StuID", "=", "PRESIDENT_Vote"], "question": "What are the distinct last names of the students who have president votes?", "question_toks": ["What", "are", "the", "distinct", "last", "names", "of", "the", "students", "who", "have", "president", "votes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5497", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0190", "db_id": "soccer_2", "query": "select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = \"mid\"", "query_toks": ["SELECT", "T1", ".", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "pPos", "=", "``", "mid", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "pPos", "=", "value"], "question": "Find the names of states that have some college students playing in the mid position.", "question_toks": ["Find", "the", "names", "of", "states", "that", "have", "some", "college", "students", "playing", "in", "the", "mid", "position", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5034", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0191", "db_id": "cre_Doc_Control_Systems", "query": "select document_id from documents where document_status_code = \"done\" and document_type_code = \"paper\"", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", "AND", "document_type_code", "=", "``", "paper", "''"], "query_toks_no_value": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "value", "AND", "document_type_code", "=", "value"], "question": "List the document ids of documents with the status done and type Paper.", "question_toks": ["List", "the", "document", "ids", "of", "documents", "with", "the", "status", "done", "and", "type", "Paper", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"done\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"paper\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2121", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0192", "db_id": "city_record", "query": "select t1.city from city as t1 join temperature as t2 on t1.city_id = t2.city_id where t2.mar < t2.dec", "query_toks": ["SELECT", "T1", ".", "city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1", ".", "city_id", "=", "T2", ".", "city_id", "WHERE", "T2", ".", "Mar", "<", "T2", ".", "Dec"], "query_toks_no_value": ["SELECT", "T1", ".", "city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1", ".", "city_id", "=", "T2", ".", "city_id", "WHERE", "T2", ".", "Mar", "<", "value", ".", "Dec"], "question": "Give me a list of cities whose temperature in Mar is lower than that in Dec.", "question_toks": ["Give", "me", "a", "list", "of", "cities", "whose", "temperature", "in", "Mar", "is", "lower", "than", "that", "in", "Dec", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], [0, 24, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6292", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0193", "db_id": "city_record", "query": "select t1.city from city as t1 join temperature as t2 on t1.city_id = t2.city_id where t2.mar < t2.dec", "query_toks": ["SELECT", "T1", ".", "city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1", ".", "city_id", "=", "T2", ".", "city_id", "WHERE", "T2", ".", "Mar", "<", "T2", ".", "Dec"], "query_toks_no_value": ["SELECT", "T1", ".", "city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1", ".", "city_id", "=", "T2", ".", "city_id", "WHERE", "T2", ".", "Mar", "<", "value", ".", "Dec"], "question": "Which cities have lower temperature in March than in Dec?", "question_toks": ["Which", "cities", "have", "lower", "temperature", "in", "March", "than", "in", "Dec", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], [0, 24, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6293", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0194", "db_id": "voter_2", "query": "select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.vice_president_vote except select distinct fname from student", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "VICE_PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "VICE_PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT"], "question": "What are the distinct first names of the students who have vice president votes and reside in a city?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "of", "the", "students", "who", "have", "vice", "president", "votes", "and", "reside", "in", "a", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5495", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0195", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"cvo\"", "query_toks": ["SELECT", "T1", ".", "Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1", ".", "uid", "=", "T2", ".", "Airline", "WHERE", "T2", ".", "SourceAirport", "=", "``", "cvo", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1", ".", "uid", "=", "T2", ".", "Airline", "WHERE", "T2", ".", "SourceAirport", "=", "value"], "question": "Which airlines have departures from CVO?", "question_toks": ["Which", "airlines", "have", "departures", "from", "CVO", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0240", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0196", "db_id": "soccer_2", "query": "select count(*) from (select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = \"mid\")", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "(", "SELECT", "T1", ".", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "pPos", "=", "``", "mid", "\")"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "(", "SELECT", "T1", ".", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "pPos", "=", "value", "\")"], "question": "What is the count of states with college students playing in the mid position?", "question_toks": ["What", "is", "the", "count", "of", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "?"], "sql": {"from": {"table_units": [["sql", {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5037", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0197", "db_id": "student_1", "query": "select distinct t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 1", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "firstname", ",", "T1", ".", "lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1", ".", "classroom", "=", "T2", ".", "classroom", "WHERE", "T1", ".", "grade", "=", "1"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "firstname", ",", "T1", ".", "lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1", ".", "classroom", "=", "T2", ".", "classroom", "WHERE", "T1", ".", "grade", "=", "value"], "question": "What are the first and last names of the first-grade students?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "the", "first", "-", "grade", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4077", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0198", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10"], "question": "What are names of stations that have average bike availability above 10?", "question_toks": ["What", "are", "names", "of", "stations", "that", "have", "average", "bike", "availability", "above", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0171", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0199", "db_id": "network_2", "query": "select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age > 40)", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "value", ")"], "question": "Find the name of the person who has friends with age above 40?", "question_toks": ["Find", "the", "name", "of", "the", "person", "who", "has", "friends", "with", "age", "above", "40", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4446", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0200", "db_id": "network_2", "query": "select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age > 40)", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "value", ")"], "question": "What are the names of the people who are older 40?", "question_toks": ["What", "are", "the", "names", "of", "the", "people", "who", "are", "older", "40", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4447", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0201", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = \"movies\"", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2", ".", "playlist_id", "=", "T3", ".", "id", "WHERE", "T3", ".", "name", "=", "``", "movies", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2", ".", "playlist_id", "=", "T3", ".", "id", "WHERE", "T3", ".", "name", "=", "value"], "question": "Find the name of tracks which are in Movies playlist.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "Movies", "playlist", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0643", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0202", "db_id": "department_store", "query": "select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.job_title_code = \"sales person\"", "query_toks": ["SELECT", "T1", ".", "staff_name", ",", "T1", ".", "staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "WHERE", "T2", ".", "job_title_code", "=", "``", "sales", "person", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "staff_name", ",", "T1", ".", "staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "WHERE", "T2", ".", "job_title_code", "=", "value", "person"], "question": "What are the names and genders of staff who have held the title Sales Person?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "staff", "who", "have", "held", "the", "title", "Sales", "Person", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"sales person\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4790", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0203", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = \"tv lounge\"", "query_toks": ["SELECT", "T1", ".", "dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1", ".", "dormid", "=", "T2", ".", "dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2", ".", "amenid", "=", "T3", ".", "amenid", "WHERE", "T3", ".", "amenity_name", "=", "``", "tv", "lounge", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1", ".", "dormid", "=", "T2", ".", "dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2", ".", "amenid", "=", "T3", ".", "amenid", "WHERE", "T3", ".", "amenity_name", "=", "value", "lounge"], "question": "Find the name of dorms which have TV Lounge.", "question_toks": ["Find", "the", "name", "of", "dorms", "which", "have", "TV", "Lounge", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"tv lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5704", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0204", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = \"tv lounge\"", "query_toks": ["SELECT", "T1", ".", "dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1", ".", "dormid", "=", "T2", ".", "dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2", ".", "amenid", "=", "T3", ".", "amenid", "WHERE", "T3", ".", "amenity_name", "=", "``", "tv", "lounge", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1", ".", "dormid", "=", "T2", ".", "dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2", ".", "amenid", "=", "T3", ".", "amenid", "WHERE", "T3", ".", "amenity_name", "=", "value", "lounge"], "question": "What is the name of each dorm that has a TV Lounge?", "question_toks": ["What", "is", "the", "name", "of", "each", "dorm", "that", "has", "a", "TV", "Lounge", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"tv lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5705", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0205", "db_id": "college_1", "query": "select t1.emp_fname from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = \"history\"", "query_toks": ["SELECT", "T1", ".", "emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1", ".", "emp_num", "=", "T2", ".", "emp_num", "JOIN", "department", "AS", "T3", "ON", "T2", ".", "dept_code", "=", "T3", ".", "dept_code", "WHERE", "T3", ".", "dept_name", "=", "``", "history", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1", ".", "emp_num", "=", "T2", ".", "emp_num", "JOIN", "department", "AS", "T3", "ON", "T2", ".", "dept_code", "=", "T3", ".", "dept_code", "WHERE", "T3", ".", "dept_name", "=", "value"], "question": "What is the first names of the professors from the history department.", "question_toks": ["What", "is", "the", "first", "names", "of", "the", "professors", "from", "the", "history", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"history\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3275", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0206", "db_id": "formula_1", "query": "select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"australian grand prix\"", "query_toks": ["SELECT", "T3", ".", "forename", ",", "T3", ".", "surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "raceid", "=", "T2", ".", "raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2", ".", "driverid", "=", "T3", ".", "driverid", "WHERE", "T1", ".", "name", "=", "``", "australian", "grand", "prix", "''"], "query_toks_no_value": ["SELECT", "T3", ".", "forename", ",", "T3", ".", "surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "raceid", "=", "T2", ".", "raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2", ".", "driverid", "=", "T3", ".", "driverid", "WHERE", "T1", ".", "name", "=", "value", "grand", "prix"], "question": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix?", "question_toks": ["What", "are", "the", "forenames", "and", "surnames", "of", "drivers", "who", "participated", "in", "the", "races", "named", "Australian", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"australian grand prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2181", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0207", "db_id": "tracking_software_problems", "query": "select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"rem\"", "query_toks": ["SELECT", "T3", ".", "staff_first_name", ",", "T3", ".", "staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "AND", "T1", ".", "reported_by_staff_id", "=", "T3", ".", "staff_id", "WHERE", "T2", ".", "product_name", "=", "``", "rem", "''"], "query_toks_no_value": ["SELECT", "T3", ".", "staff_first_name", ",", "T3", ".", "staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "AND", "T1", ".", "reported_by_staff_id", "=", "T3", ".", "staff_id", "WHERE", "T2", ".", "product_name", "=", "value"], "question": "Find the first and last name of the staff members who reported problems from the product \"rem\"?", "question_toks": ["Find", "the", "first", "and", "last", "name", "of", "the", "staff", "members", "who", "reported", "problems", "from", "the", "product", "\"", "rem", "\"?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"rem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5396", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0208", "db_id": "tracking_software_problems", "query": "select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"rem\"", "query_toks": ["SELECT", "T3", ".", "staff_first_name", ",", "T3", ".", "staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "AND", "T1", ".", "reported_by_staff_id", "=", "T3", ".", "staff_id", "WHERE", "T2", ".", "product_name", "=", "``", "rem", "''"], "query_toks_no_value": ["SELECT", "T3", ".", "staff_first_name", ",", "T3", ".", "staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "AND", "T1", ".", "reported_by_staff_id", "=", "T3", ".", "staff_id", "WHERE", "T2", ".", "product_name", "=", "value"], "question": "Which staff members who reported problems from the product \"rem\"? Give me their first and last names.", "question_toks": ["Which", "staff", "members", "who", "reported", "problems", "from", "the", "product", "\"", "rem", "\"?", "Give", "me", "their", "first", "and", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"rem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5397", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0209", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\"", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "``", "alison", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "value"], "question": "What are the names of tourist attraction that Alison visited?", "question_toks": ["What", "are", "the", "names", "of", "tourist", "attraction", "that", "Alison", "visited", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5965", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0210", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\"", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "``", "alison", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "value"], "question": "Find the the names of the tourist attractions that the tourist named Alison visited.", "question_toks": ["Find", "the", "the", "names", "of", "the", "tourist", "attractions", "that", "the", "tourist", "named", "Alison", "visited", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5966", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_EXCEPT"]}, {"id": "negation_0211", "db_id": "swimming", "query": "select name from swimmer", "query_toks": ["SELECT", "name", "FROM", "swimmer"], "query_toks_no_value": ["SELECT", "name", "FROM", "swimmer"], "question": "Find the names of the swimmers", "question_toks": ["Find", "the", "names", "of", "the", "swimmers"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5626", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0212", "db_id": "dog_kennels", "query": "select name from dogs", "query_toks": ["select", "name", "from", "dogs"], "query_toks_no_value": ["select", "name", "from", "dogs"], "question": "What are the names of the dogs?", "question_toks": ["What", "are", "the", "names", "of", "the", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0925", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0213", "db_id": "employee_hire_evaluation", "query": "select name from shop", "query_toks": ["SELECT", "name", "FROM", "shop"], "query_toks_no_value": ["SELECT", "name", "FROM", "shop"], "question": "Find the shop names", "question_toks": ["Find", "the", "shop", "names"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0286", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0214", "db_id": "match_season", "query": "select name from team", "query_toks": ["SELECT", "Name", "FROM", "team"], "query_toks_no_value": ["SELECT", "Name", "FROM", "team"], "question": "What are the names of teams?", "question_toks": ["What", "are", "the", "names", "of", "teams", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1104", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0215", "db_id": "match_season", "query": "select name from team", "query_toks": ["SELECT", "Name", "FROM", "team"], "query_toks_no_value": ["SELECT", "Name", "FROM", "team"], "question": "Return the names of teams.", "question_toks": ["Return", "the", "names", "of", "teams", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1105", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0216", "db_id": "book_2", "query": "select title from book", "query_toks": ["SELECT", "Title", "FROM", "book"], "query_toks_no_value": ["SELECT", "Title", "FROM", "book"], "question": "List the titles of books.", "question_toks": ["List", "the", "titles", "of", "books", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0229", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0217", "db_id": "film_rank", "query": "select title from film", "query_toks": ["SELECT", "Title", "FROM", "film"], "query_toks_no_value": ["SELECT", "Title", "FROM", "film"], "question": "What are the titles of films?", "question_toks": ["What", "are", "the", "titles", "of", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4147", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0218", "db_id": "scientist_1", "query": "select name from projects", "query_toks": ["SELECT", "Name", "FROM", "Projects"], "query_toks_no_value": ["SELECT", "Name", "FROM", "Projects"], "question": "Select the project names", "question_toks": ["Select", "the", "project", "names"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6505", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0219", "db_id": "scientist_1", "query": "select name from projects", "query_toks": ["SELECT", "Name", "FROM", "Projects"], "query_toks_no_value": ["SELECT", "Name", "FROM", "Projects"], "question": "What are the names of projects?", "question_toks": ["What", "are", "the", "names", "of", "projects", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6506", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0220", "db_id": "aircraft", "query": "select name from pilot", "query_toks": ["SELECT", "name", "FROM", "pilot"], "query_toks_no_value": ["SELECT", "name", "FROM", "pilot"], "question": "find the name of pilots.", "question_toks": ["find", "the", "name", "of", "pilots", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4841", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0221", "db_id": "customers_and_addresses", "query": "select city from addresses", "query_toks": ["SELECT", "city", "FROM", "addresses"], "query_toks_no_value": ["SELECT", "city", "FROM", "addresses"], "question": "Find the list of cities.", "question_toks": ["Find", "the", "list", "of", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6083", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0222", "db_id": "customers_and_addresses", "query": "select city from addresses", "query_toks": ["SELECT", "city", "FROM", "addresses"], "query_toks_no_value": ["SELECT", "city", "FROM", "addresses"], "question": "What are the all cities?", "question_toks": ["What", "are", "the", "all", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6084", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0223", "db_id": "scientist_1", "query": "select name from scientists", "query_toks": ["SELECT", "Name", "FROM", "scientists"], "query_toks_no_value": ["SELECT", "Name", "FROM", "scientists"], "question": "What are the names of scientists?", "question_toks": ["What", "are", "the", "names", "of", "scientists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6508", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0224", "db_id": "bike_1", "query": "select avg(long) from station", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station"], "query_toks_no_value": ["SELECT", "avg", "(", "long", ")", "FROM", "station"], "question": "What is the average longitude of stations?", "question_toks": ["What", "is", "the", "average", "longitude", "of", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0151", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0225", "db_id": "election", "query": "select party from party", "query_toks": ["SELECT", "Party", "FROM", "party"], "query_toks_no_value": ["SELECT", "Party", "FROM", "party"], "question": "What are the names of parties?", "question_toks": ["What", "are", "the", "names", "of", "parties", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2796", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0226", "db_id": "hospital_1", "query": "select count(*) from patient", "query_toks": ["SELECT", "count", "(*)", "FROM", "patient"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "patient"], "question": "Find the number of patients.", "question_toks": ["Find", "the", "number", "of", "patients", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3992", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0227", "db_id": "candidate_poll", "query": "select name from people", "query_toks": ["SELECT", "name", "FROM", "people"], "query_toks_no_value": ["SELECT", "name", "FROM", "people"], "question": "what are the names of all people.", "question_toks": ["what", "are", "the", "names", "of", "all", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2420", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0228", "db_id": "candidate_poll", "query": "select name from people", "query_toks": ["SELECT", "name", "FROM", "people"], "query_toks_no_value": ["SELECT", "name", "FROM", "people"], "question": "Give the names of people.", "question_toks": ["Give", "the", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2421", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0229", "db_id": "debate", "query": "select name from people", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "List the names of people.", "question_toks": ["List", "the", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1506", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0230", "db_id": "entrepreneur", "query": "select name from people", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "List the names of people.", "question_toks": ["List", "the", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2295", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0231", "db_id": "entrepreneur", "query": "select name from people", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "What are the names of people?", "question_toks": ["What", "are", "the", "names", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2296", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0232", "db_id": "museum_visit", "query": "select name from museum", "query_toks": ["SELECT", "name", "FROM", "museum"], "query_toks_no_value": ["SELECT", "name", "FROM", "museum"], "question": "What is the name of the museum?", "question_toks": ["What", "is", "the", "name", "of", "the", "museum", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0422", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0233", "db_id": "perpetrator", "query": "select name from people", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "List the names of people ", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "perpetrators", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2319", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0234", "db_id": "poker_player", "query": "select name from people", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "List the names of people.", "question_toks": ["List", "the", "names", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0683", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0235", "db_id": "poker_player", "query": "select name from people", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "What are the names of people?", "question_toks": ["What", "are", "the", "names", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0684", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0236", "db_id": "school_bus", "query": "select name from driver", "query_toks": ["SELECT", "name", "FROM", "driver"], "query_toks_no_value": ["SELECT", "name", "FROM", "driver"], "question": "Show the names of the drivers.", "question_toks": ["Show", "the", "names", "of", "the", "drivers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6357", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0237", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "question": "What are the titles of courses without prerequisites?", "question_toks": ["What", "are", "the", "titles", "of", "courses", "without", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1349", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0238", "db_id": "college_2", "query": "select title from course", "query_toks": ["SELECT", "title", "FROM", "course"], "query_toks_no_value": ["SELECT", "title", "FROM", "course"], "question": "What are the names of courses?", "question_toks": ["What", "are", "the", "names", "of", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1421", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0239", "db_id": "device", "query": "select shop_name from shop", "query_toks": ["SELECT", "Shop_Name", "FROM", "shop"], "query_toks_no_value": ["SELECT", "Shop_Name", "FROM", "shop"], "question": "List the names of shops that have devices in stock.", "question_toks": ["List", "the", "names", "of", "shops", "that", "have", "devices", "in", "stock", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5082", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0240", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["SELECT", "Name", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher"], "question": "List the names of teachers.", "question_toks": ["List", "the", "names", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0409", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0241", "db_id": "course_teach", "query": "select name from teacher;", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Teacher_id", "NOT", "IN", "(", "SELECT", "Teacher_id", "FROM", "course_arrange", ")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Teacher_id", "NOT", "IN", "(", "SELECT", "Teacher_id", "FROM", "course_arrange", ")"], "question": "What are the names of all teachers?", "question_toks": ["What", "are", "the", "names", "of", "all", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0410", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0242", "db_id": "entertainment_awards", "query": "select name from artwork", "query_toks": ["SELECT", "Name", "FROM", "Artwork"], "query_toks_no_value": ["SELECT", "Name", "FROM", "Artwork"], "question": "List the name of artworks.", "question_toks": ["List", "the", "name", "of", "artworks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4616", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0243", "db_id": "musical", "query": "select name from musical", "query_toks": ["SELECT", "Name", "FROM", "musical"], "query_toks_no_value": ["SELECT", "Name", "FROM", "musical"], "question": "List the name of musicals.", "question_toks": ["List", "the", "name", "of", "musicals", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0268", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0244", "db_id": "musical", "query": "select name from musical", "query_toks": ["SELECT", "Name", "FROM", "musical"], "query_toks_no_value": ["SELECT", "Name", "FROM", "musical"], "question": "What are the names of musicals?", "question_toks": ["What", "are", "the", "names", "of", "musicals", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0269", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0245", "db_id": "chinook_1", "query": "select count(*) from artist", "query_toks": ["SELECT", "count", "(*)", "FROM", "ARTIST"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "ARTIST"], "question": "Cound the number of artist.", "question_toks": ["Cound", "the", "number", "of", "artist", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0888", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0246", "db_id": "device", "query": "select carrier from device", "query_toks": ["SELECT", "Carrier", "FROM", "device"], "query_toks_no_value": ["SELECT", "Carrier", "FROM", "device"], "question": "List the carriers of devices", "question_toks": ["List", "the", "carriers", "of", "devices"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5086", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0247", "db_id": "climbing", "query": "select name from mountain", "query_toks": ["SELECT", "Name", "FROM", "mountain"], "query_toks_no_value": ["SELECT", "Name", "FROM", "mountain"], "question": "What are the names of countains?", "question_toks": ["What", "are", "the", "names", "of", "countains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1143", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0248", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "count", "(*)", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "question": "Count the number of courses without prerequisites.", "question_toks": ["Count", "the", "number", "of", "courses", "without", "prerequisites", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1347", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0249", "db_id": "hr_1", "query": "select employee_id from employees;", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "Find the ids of the employees", "question_toks": ["Find", "the", "ids", "of", "the", "employees"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3497", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0250", "db_id": "hr_1", "query": "select employee_id from employees;", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "What are the ids for employees", "question_toks": ["What", "are", "the", "ids", "for", "employees"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3498", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0251", "db_id": "party_people", "query": "select party_name from party", "query_toks": ["SELECT", "party_name", "FROM", "party"], "query_toks_no_value": ["SELECT", "party_name", "FROM", "party"], "question": "What are the names of parties?", "question_toks": ["What", "are", "the", "names", "of", "parties", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2064", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0252", "db_id": "ship_1", "query": "select name , flag from ship", "query_toks": ["SELECT", "name", ",", "flag", "FROM", "ship"], "query_toks_no_value": ["SELECT", "name", ",", "flag", "FROM", "ship"], "question": "What are the names and flags of ships?", "question_toks": ["What", "are", "the", "names", "and", "flags", "of", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6265", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0253", "db_id": "wrestler", "query": "select name from wrestler", "query_toks": ["SELECT", "Name", "FROM", "wrestler"], "query_toks_no_value": ["SELECT", "Name", "FROM", "wrestler"], "question": "List the names of wrestlers.", "question_toks": ["List", "the", "names", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1876", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0254", "db_id": "wrestler", "query": "select name from wrestler", "query_toks": ["SELECT", "Name", "FROM", "wrestler"], "query_toks_no_value": ["SELECT", "Name", "FROM", "wrestler"], "question": "What are the names of wrestlers?", "question_toks": ["What", "are", "the", "names", "of", "wrestlers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1877", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0255", "db_id": "apartment_rentals", "query": "select count(*) from apartments ", "query_toks": ["SELECT", "count", "(*)", "FROM", "Apartments"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Apartments"], "question": "Find the number of apartments.", "question_toks": ["Find", "the", "number", "of", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1269", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0256", "db_id": "farm", "query": "select official_name from city", "query_toks": ["SELECT", "Official_Name", "FROM", "city"], "query_toks_no_value": ["SELECT", "Official_Name", "FROM", "city"], "question": "What are the official names of cities?", "question_toks": ["What", "are", "the", "official", "names", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0049", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0257", "db_id": "network_1", "query": "select min(grade) from highschooler", "query_toks": ["SELECT", "min", "(", "grade", ")", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "min", "(", "grade", ")", "FROM", "Highschooler"], "question": "Find the minimum grade of students.", "question_toks": ["Find", "the", "minimum", "grade", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0916", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0258", "db_id": "pets_1", "query": "select major , age from student", "query_toks": ["SELECT", "major", ",", "age", "FROM", "student"], "query_toks_no_value": ["SELECT", "major", ",", "age", "FROM", "student"], "question": "Find the major and age of students", "question_toks": ["Find", "the", "major", "and", "age", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0061", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0259", "db_id": "ship_1", "query": "select name , class from ship", "query_toks": ["SELECT", "name", ",", "CLASS", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", ")"], "query_toks_no_value": ["SELECT", "name", ",", "CLASS", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", ")"], "question": "Return the names and classes of ships?", "question_toks": ["Return", "the", "names", "and", "classes", "of", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6261", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0260", "db_id": "wine_1", "query": "select avg(price) from wine", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "wine"], "query_toks_no_value": ["SELECT", "avg", "(", "price", ")", "FROM", "wine"], "question": "Find the average price of wines.", "question_toks": ["Find", "the", "average", "price", "of", "wines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6595", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0261", "db_id": "wine_1", "query": "select avg(price) from wine", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "wine"], "query_toks_no_value": ["SELECT", "avg", "(", "price", ")", "FROM", "wine"], "question": "What is the average price for wines?", "question_toks": ["What", "is", "the", "average", "price", "for", "wines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6596", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0262", "db_id": "geo", "query": "select state_name from state", "query_toks": ["SELECT", "state_name", "FROM", "state"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state"], "question": "name all states", "question_toks": ["name", "all", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0204", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0263", "db_id": "customers_and_invoices", "query": "select count(*) from products where product_id not in ( select product_id from order_items )", "query_toks": ["SELECT", "count", "(*)", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "Order_items", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "Order_items", ")"], "question": "Count the number of products that were never ordered.", "question_toks": ["Count", "the", "number", "of", "products", "that", "were", "never", "ordered", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1628", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0264", "db_id": "riding_club", "query": "select player_name from player", "query_toks": ["SELECT", "Player_name", "FROM", "player"], "query_toks_no_value": ["SELECT", "Player_name", "FROM", "player"], "question": "List the names of players.", "question_toks": ["List", "the", "names", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1732", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0265", "db_id": "storm_record", "query": "select region_name from region", "query_toks": ["SELECT", "region_name", "FROM", "region"], "query_toks_no_value": ["SELECT", "region_name", "FROM", "region"], "question": "Show the name for regions.", "question_toks": ["Show", "the", "name", "for", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2710", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0266", "db_id": "storm_record", "query": "select region_name from region", "query_toks": ["SELECT", "region_name", "FROM", "region"], "query_toks_no_value": ["SELECT", "region_name", "FROM", "region"], "question": "What are the names of regions?", "question_toks": ["What", "are", "the", "names", "of", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2711", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0267", "db_id": "world_1", "query": "select sum(population) from country", "query_toks": ["SELECT", "sum", "(", "Population", ")", "FROM", "country"], "query_toks_no_value": ["SELECT", "sum", "(", "Population", ")", "FROM", "country"], "question": "What is the total number of people living in the nations?", "question_toks": ["What", "is", "the", "total", "number", "of", "people", "living", "in", "the", "nations", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0766", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0268", "db_id": "machine_repair", "query": "select name from technician", "query_toks": ["SELECT", "Name", "FROM", "technician"], "query_toks_no_value": ["SELECT", "Name", "FROM", "technician"], "question": "List the names of technicians.", "question_toks": ["List", "the", "names", "of", "technicians", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2259", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0269", "db_id": "machine_repair", "query": "select name from technician", "query_toks": ["SELECT", "Name", "FROM", "technician"], "query_toks_no_value": ["SELECT", "Name", "FROM", "technician"], "question": "What are the names of the technicians?", "question_toks": ["What", "are", "the", "names", "of", "the", "technicians", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2260", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0270", "db_id": "cre_Docs_and_Epenses", "query": "select count(*) from documents ", "query_toks": ["SELECT", "count", "(*)", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Documents"], "question": "Count the number of documents.", "question_toks": ["Count", "the", "number", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6464", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0271", "db_id": "customers_and_invoices", "query": "select count(*) from customers", "query_toks": ["SELECT", "count", "(*)", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Customers"], "question": "Count the number of customers.", "question_toks": ["Count", "the", "number", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1560", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0272", "db_id": "film_rank", "query": "select title , director from film", "query_toks": ["SELECT", "title", ",", "director", "FROM", "film"], "query_toks_no_value": ["SELECT", "title", ",", "director", "FROM", "film"], "question": "What are the titles and directors of the films?", "question_toks": ["What", "are", "the", "titles", "and", "directors", "of", "the", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4158", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0273", "db_id": "film_rank", "query": "select title , director from film", "query_toks": ["SELECT", "title", ",", "director", "FROM", "film"], "query_toks_no_value": ["SELECT", "title", ",", "director", "FROM", "film"], "question": "Return the titles and directors of films.", "question_toks": ["Return", "the", "titles", "and", "directors", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4159", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0274", "db_id": "student_assessment", "query": "select student_id from students", "query_toks": ["SELECT", "student_id", "FROM", "students"], "query_toks_no_value": ["SELECT", "student_id", "FROM", "students"], "question": "List the id of students?", "question_toks": ["List", "the", "id", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0062", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0275", "db_id": "student_assessment", "query": "select student_id from students", "query_toks": ["SELECT", "student_id", "FROM", "students"], "query_toks_no_value": ["SELECT", "student_id", "FROM", "students"], "question": "What are the ids of every student?", "question_toks": ["What", "are", "the", "ids", "of", "every", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0063", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0276", "db_id": "sakila_1", "query": "select first_name from customer", "query_toks": ["SELECT", "first_name", "FROM", "customer"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "customer"], "question": "Return the first names of customers", "question_toks": ["Return", "the", "first", "names", "of", "customers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3005", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0277", "db_id": "school_bus", "query": "select school , type from school", "query_toks": ["SELECT", "school", ",", "TYPE", "FROM", "school"], "query_toks_no_value": ["SELECT", "school", ",", "TYPE", "FROM", "school"], "question": "Show the school name and type for schools.", "question_toks": ["Show", "the", "school", "name", "and", "type", "for", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6361", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0278", "db_id": "orchestra", "query": "select orchestra from orchestra", "query_toks": ["SELECT", "Orchestra", "FROM", "orchestra"], "query_toks_no_value": ["SELECT", "Orchestra", "FROM", "orchestra"], "question": "List the names of orchestras.", "question_toks": ["List", "the", "names", "of", "orchestras", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0854", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0279", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country", "query_toks": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country"], "query_toks_no_value": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country"], "question": "What is average life expectancy in the countries?", "question_toks": ["What", "is", "average", "life", "expectancy", "in", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0764", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0280", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country", "query_toks": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country"], "query_toks_no_value": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country"], "question": "Give the mean life expectancy of countries.", "question_toks": ["Give", "the", "mean", "life", "expectancy", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0765", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0281", "db_id": "customer_complaints", "query": "select product_price from products", "query_toks": ["SELECT", "product_price", "FROM", "products"], "query_toks_no_value": ["SELECT", "product_price", "FROM", "products"], "question": "Find the prices of products.", "question_toks": ["Find", "the", "prices", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5790", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0282", "db_id": "customer_complaints", "query": "select product_price from products", "query_toks": ["SELECT", "product_price", "FROM", "products"], "query_toks_no_value": ["SELECT", "product_price", "FROM", "products"], "question": "What are the prices of products?", "question_toks": ["What", "are", "the", "prices", "of", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5791", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0283", "db_id": "loan_1", "query": "select avg(credit_score) from customer", "query_toks": ["SELECT", "avg", "(", "credit_score", ")", "FROM", "customer"], "query_toks_no_value": ["SELECT", "avg", "(", "credit_score", ")", "FROM", "customer"], "question": "What is the average credit score for customers?", "question_toks": ["What", "is", "the", "average", "credit", "score", "for", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3085", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0284", "db_id": "manufactory_1", "query": "select count(distinct name) from products", "query_toks": ["SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "products"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "products"], "question": "Find number of products.", "question_toks": ["Find", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 7, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5316", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0285", "db_id": "student_transcripts_tracking", "query": "select semester_name from semesters", "query_toks": ["SELECT", "semester_name", "FROM", "Semesters"], "query_toks_no_value": ["SELECT", "semester_name", "FROM", "Semesters"], "question": "What is the name of the semester?", "question_toks": ["What", "is", "the", "name", "of", "the", "semester", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0544", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0286", "db_id": "tracking_grants_for_research", "query": "select project_details from projects", "query_toks": ["SELECT", "project_details", "FROM", "Projects"], "query_toks_no_value": ["SELECT", "project_details", "FROM", "Projects"], "question": "List the project details.", "question_toks": ["List", "the", "project", "details", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4358", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0287", "db_id": "tracking_grants_for_research", "query": "select project_details from projects", "query_toks": ["SELECT", "project_details", "FROM", "Projects"], "query_toks_no_value": ["SELECT", "project_details", "FROM", "Projects"], "question": "What are the details of the project?", "question_toks": ["What", "are", "the", "details", "of", "the", "project", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4359", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0288", "db_id": "election_representative", "query": "select name from representative", "query_toks": ["SELECT", "Name", "FROM", "representative"], "query_toks_no_value": ["SELECT", "Name", "FROM", "representative"], "question": "List the names of representatives.", "question_toks": ["List", "the", "names", "of", "representatives", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1191", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0289", "db_id": "bike_1", "query": "select avg(bikes_available) from status", "query_toks": ["SELECT", "avg", "(", "bikes_available", ")", "FROM", "status"], "query_toks_no_value": ["SELECT", "avg", "(", "bikes_available", ")", "FROM", "status"], "question": "What is the average bike availability in stations?", "question_toks": ["What", "is", "the", "average", "bike", "availability", "in", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0149", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0290", "db_id": "bike_1", "query": "select avg(bikes_available) from status", "query_toks": ["SELECT", "avg", "(", "bikes_available", ")", "FROM", "status"], "query_toks_no_value": ["SELECT", "avg", "(", "bikes_available", ")", "FROM", "status"], "question": "What is the average bike availablility for stations?", "question_toks": ["What", "is", "the", "average", "bike", "availablility", "for", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0150", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0291", "db_id": "network_2", "query": "select count(distinct name) from personfriend", "query_toks": ["SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "PersonFriend"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "PersonFriend"], "question": "What is the total number of people.", "question_toks": ["What", "is", "the", "total", "number", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4480", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0292", "db_id": "gas_company", "query": "select company , main_industry from company", "query_toks": ["SELECT", "company", ",", "main_industry", "FROM", "company"], "query_toks_no_value": ["SELECT", "company", ",", "main_industry", "FROM", "company"], "question": "What are the main industries of the companies?", "question_toks": ["What", "are", "the", "main", "industries", "of", "the", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2026", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0293", "db_id": "customer_complaints", "query": "select email_address , phone_number from customers", "query_toks": ["SELECT", "email_address", ",", "phone_number", "FROM", "customers"], "query_toks_no_value": ["SELECT", "email_address", ",", "phone_number", "FROM", "customers"], "question": "Find the email and phone number of the customers.", "question_toks": ["Find", "the", "email", "and", "phone", "number", "of", "the", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5782", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0294", "db_id": "customer_complaints", "query": "select email_address , phone_number from customers", "query_toks": ["SELECT", "email_address", ",", "phone_number", "FROM", "customers"], "query_toks_no_value": ["SELECT", "email_address", ",", "phone_number", "FROM", "customers"], "question": "What are the emails and phone numbers of custoemrs?", "question_toks": ["What", "are", "the", "emails", "and", "phone", "numbers", "of", "custoemrs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5783", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0295", "db_id": "customers_and_products_contacts", "query": "select customer_name , customer_phone from customers", "query_toks": ["SELECT", "customer_name", ",", "customer_phone", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", ",", "customer_phone", "FROM", "customers"], "question": "Show names and phones of customers.", "question_toks": ["Show", "names", "and", "phones", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5656", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0296", "db_id": "assets_maintenance", "query": "select first_name , last_name from maintenance_engineers", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "Maintenance_Engineers"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "Maintenance_Engineers"], "question": "List the engineer first name and last name.", "question_toks": ["List", "the", "engineer", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3140", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0297", "db_id": "dorm_1", "query": "select fname , age from student", "query_toks": ["SELECT", "fname", ",", "age", "FROM", "student"], "query_toks_no_value": ["SELECT", "fname", ",", "age", "FROM", "student"], "question": "Find the first name and age of students.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5764", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0298", "db_id": "world_1", "query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = \"europe\"", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T2", ".", "CountryCode", "=", "T1", ".", "Code", "WHERE", "T1", ".", "Continent", "=", "``", "europe", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T2", ".", "CountryCode", "=", "T1", ".", "Code", "WHERE", "T1", ".", "Continent", "=", "value"], "question": "Which cities are in European countries?", "question_toks": ["Which", "cities", "are", "in", "European", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0784", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0299", "db_id": "world_1", "query": "select distinct t2.name from country as t1 join city as t2 on t2.countrycode = t1.code where t1.continent = \"europe\"", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T2", ".", "CountryCode", "=", "T1", ".", "Code", "WHERE", "T1", ".", "Continent", "=", "``", "europe", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "city", "AS", "T2", "ON", "T2", ".", "CountryCode", "=", "T1", ".", "Code", "WHERE", "T1", ".", "Continent", "=", "value"], "question": "What are the names of cities in Europe?", "question_toks": ["What", "are", "the", "names", "of", "cities", "in", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0785", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0300", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the first name and age of students who have a dog.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0065", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0301", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What is the first name of every student who has a dog?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0066", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_NOT_IN"]}, {"id": "negation_0302", "db_id": "activity_1", "query": "select facid from faculty_participates_in intersect select advisor from student", "query_toks": ["SELECT", "FacID", "FROM", "Faculty_participates_in", "INTERSECT", "SELECT", "advisor", "FROM", "Student"], "query_toks_no_value": ["SELECT", "FacID", "FROM", "Faculty_participates_in", "INTERSECT", "SELECT", "advisor", "FROM", "Student"], "question": "What are ids of the faculty members who advise a student.", "question_toks": ["What", "are", "ids", "of", "the", "faculty", "members", "who", "advise", "a", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6774", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_REDUNDANT"]}, {"id": "negation_0303", "db_id": "car_1", "query": "select distinct year from cars_data", "query_toks": ["select", "distinct", "year", "from", "cars_data"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data"], "question": "In which years cars were produced?", "question_toks": ["In", "which", "years", "cars", "were", "produced", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0153", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0304", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["SELECT", "T2", ".", "MakeId", ",", "T2", ".", "Make", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T1", ".", "Horsepower", ">", "value", "SELECT", "min", "(", "Horsepower", ")", "FROM", "CARS_DATA", ")"], "question": "Consder the cars with more than lowest horsepower. List the car makeid and make name.", "question_toks": ["Consder", "the", "cars", "with", "more", "than", "lowest", "horsepower", ".", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0167", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0305", "db_id": "chinook_1", "query": "select t1.lastname from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid", "query_toks": ["SELECT", "T1", ".", "LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1", ".", "SupportRepId", "=", "T2", ".", "EmployeeId", "GROUP", "BY", "T1", ".", "SupportRepId"], "query_toks_no_value": ["SELECT", "T1", ".", "LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1", ".", "SupportRepId", "=", "T2", ".", "EmployeeId", "GROUP", "BY", "T1", ".", "SupportRepId"], "question": "Please show the employee last names.", "question_toks": ["Please", "show", "the", "employee", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0871", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0306", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = \"photo\" intersect select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = \"film\"", "query_toks": ["SELECT", "T1", ".", "Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1", ".", "Service_Type_Code", "=", "T2", ".", "Service_Type_Code", "WHERE", "T2", ".", "Product_Name", "=", "``", "photo", "''", "INTERSECT", "SELECT", "T1", ".", "Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1", ".", "Service_Type_Code", "=", "T2", ".", "Service_Type_Code", "WHERE", "T2", ".", "Product_Name", "=", "``", "film", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1", ".", "Service_Type_Code", "=", "T2", ".", "Service_Type_Code", "WHERE", "T2", ".", "Product_Name", "=", "value", "INTERSECT", "SELECT", "T1", ".", "Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1", ".", "Service_Type_Code", "=", "T2", ".", "Service_Type_Code", "WHERE", "T2", ".", "Product_Name", "=", "value"], "question": "Give me the description of the service type that offers photo product and the film product.", "question_toks": ["Give", "me", "the", "description", "of", "the", "service", "type", "that", "offers", "photo", "product", "and", "the", "film", "product", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 15]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 85, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 88, false], null], "\"photo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 15]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 85, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 88, false], null], "\"film\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5171", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_REDUNDANT"]}, {"id": "negation_0307", "db_id": "document_management", "query": "select document_type_code from documents group by document_type_code", "query_toks": ["SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code"], "query_toks_no_value": ["SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code"], "question": "Return the codes of the document types.", "question_toks": ["Return", "the", "codes", "of", "the", "document", "types", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4516", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OPPOSITE"]}, {"id": "negation_0308", "db_id": "hr_1", "query": "select hire_date from employees", "query_toks": ["SELECT", "hire_date", "FROM", "employees"], "query_toks_no_value": ["SELECT", "hire_date", "FROM", "employees"], "question": "when is the hire date for employees?", "question_toks": ["when", "is", "the", "hire", "date", "for", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3415", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0309", "db_id": "hr_1", "query": "select hire_date from employees", "query_toks": ["SELECT", "hire_date", "FROM", "employees"], "query_toks_no_value": ["SELECT", "hire_date", "FROM", "employees"], "question": "On what dates were employees hired?", "question_toks": ["On", "what", "dates", "were", "employees", "hired", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3416", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0310", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name like \"%m%\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "LIKE", "\"%", "m", "%\""], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "LIKE", "\"%", "m", "%\""], "question": "display the full name (first and last), hire date, salary, and department number for those employees whose first name does containing the letter M.", "question_toks": ["display", "the", "full", "name", "(", "first", "and", "last", "),", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employees", "whose", "first", "name", "does", "containing", "the", "letter", "M", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%m%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3417", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0311", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees ", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees"], "question": "What are the full name, hire date, salary, and department id for all employees?", "question_toks": ["What", "are", "the", "full", "name", ",", "hire", "date", ",", "salary", ",", "and", "department", "id", "for", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3418", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0312", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees order by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "ORDER", "BY", "department_id"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "ORDER", "BY", "department_id"], "question": "display the full name (first and last), hire date, salary, and department number for employees and make the result set in ascending order by department number.", "question_toks": ["display", "the", "full", "name", "(", "first", "and", "last", "),", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "employees", "and", "make", "the", "result", "set", "in", "ascending", "order", "by", "department", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3419", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0313", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees order by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "ORDER", "BY", "department_id"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "ORDER", "BY", "department_id"], "question": "What are the full name, hire data, salary and department id for employees ordered by ascending department id?", "question_toks": ["What", "are", "the", "full", "name", ",", "hire", "data", ",", "salary", "and", "department", "id", "for", "employees", "ordered", "by", "ascending", "department", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3420", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0314", "db_id": "hr_1", "query": "select first_name , last_name , salary from employees", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees"], "question": "Return the full names and salaries of all employees.", "question_toks": ["Return", "the", "full", "names", "and", "salaries", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3426", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0315", "db_id": "hr_1", "query": "select email from employees where salary between 7000 and 12000 and department_id = 50", "query_toks": ["SELECT", "email", "FROM", "employees", "WHERE", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "50"], "query_toks_no_value": ["SELECT", "email", "FROM", "employees", "WHERE", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "value"], "question": "display the emails of the employees who have salary within the range 7000 to 12000 and works in that department which number is 50.", "question_toks": ["display", "the", "emails", "of", "the", "employees", "who", "have", "salary", "within", "the", "range", "7000", "to", "12000", "and", "works", "in", "that", "department", "which", "number", "is", "50", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 7000.0, 12000.0], "and", [false, 2, [0, [0, 24, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3445", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0316", "db_id": "hr_1", "query": "select email from employees where salary between 7000 and 12000 and department_id = 50", "query_toks": ["SELECT", "email", "FROM", "employees", "WHERE", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "50"], "query_toks_no_value": ["SELECT", "email", "FROM", "employees", "WHERE", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "value"], "question": "What are the emails of employees with salary between 7000 and 12000, and who work in department 50?", "question_toks": ["What", "are", "the", "emails", "of", "employees", "with", "salary", "between", "7000", "and", "12000", ",", "and", "who", "work", "in", "department", "50", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 7000.0, 12000.0], "and", [false, 2, [0, [0, 24, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3446", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0317", "db_id": "insurance_policies", "query": "select date_claim_made from claims", "query_toks": ["SELECT", "Date_Claim_Made", "FROM", "Claims"], "query_toks_no_value": ["SELECT", "Date_Claim_Made", "FROM", "Claims"], "question": "Return the claim start date for the claims", "question_toks": ["Return", "the", "claim", "start", "date", "for", "the", "claims"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3863", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0318", "db_id": "museum_visit", "query": "select avg(age) from visitor", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "visitor"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", "FROM", "visitor"], "question": "What is the average age of the visitors?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "visitors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0413", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0319", "db_id": "music_4", "query": "select famous_title from artist", "query_toks": ["SELECT", "Famous_Title", "FROM", "artist"], "query_toks_no_value": ["SELECT", "Famous_Title", "FROM", "artist"], "question": "What are the famous titles of artists?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6192", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "negation_0320", "db_id": "phone_1", "query": "select count(*) from chip_model", "query_toks": ["SELECT", "count", "(*)", "FROM", "chip_model"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "chip_model"], "question": "Count the number of chip model.", "question_toks": ["Count", "the", "number", "of", "chip", "model", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1047", "is_simplification": true, "simplifications_tags": ["NEGATION", "_NEGATION_OTHER_WORDS"]}, {"id": "and_in_nl_0000", "db_id": "battle_death", "query": "select name from battle where bulgarian_commander = \"kaloyan\"", "query_toks": ["SELECT", "name", "FROM", "battle", "WHERE", "bulgarian_commander", "=", "``", "kaloyan", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "battle", "WHERE", "bulgarian_commander", "=", "value"], "question": "What are the distinct battle names which are between bulgarian commander 'Kaloyan'?", "question_toks": ["What", "are", "the", "distinct", "battle", "names", "which", "are", "between", "bulgarian", "commander", "'", "Kaloyan", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"kaloyan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0501", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0001", "db_id": "battle_death", "query": "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "date", "FROM", "battle", "AS", "T1", "JOIN", "ship", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "lost_in_battle", "WHERE", "T2", ".", "name", "=", "value", "atalanta"], "question": "List the name and date the battle that has lost the ship named 'HMS Atalanta'", "question_toks": ["List", "the", "name", "and", "date", "the", "battle", "that", "has", "lost", "the", "ship", "named", "'", "HMS", "Atalanta", "'"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"hms atalanta\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0504", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0002", "db_id": "car_1", "query": "select distinct year from cars_data where weight >= 3000", "query_toks": ["select", "distinct", "year", "from", "cars_data", "where", "weight", ">=", "3000"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data", "where", "weight", ">=", "value"], "question": "In which years cars were produced weighing no less than 3000?", "question_toks": ["In", "which", "years", "cars", "were", "produced", "weighing", "no", "less", "than", "3000", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 5, [0, [0, 21, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0153", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0003", "db_id": "car_1", "query": "select distinct year from cars_data where weight < 4000", "query_toks": ["select", "distinct", "year", "from", "cars_data", "where", "weight", ">=", "4000"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data", "where", "weight", ">=", "value"], "question": "What are the different years in which there were cars produced that weighed less than 4000 ?", "question_toks": ["What", "are", "the", "different", "years", "in", "which", "there", "were", "cars", "produced", "that", "weighed", "less", "than", "4000", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 5, [0, [0, 21, false], null], 4000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0154", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0004", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "T2", ".", "MakeId", ",", "T2", ".", "Make", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T1", ".", "Horsepower", ">", "value", "SELECT", "min", "(", "Horsepower", ")", "FROM", "CARS_DATA", ")", "AND", "T1", ".", "Cylinders", "<=", "value"], "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid name.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "lowest", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0167", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0005", "db_id": "car_1", "query": "select 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", "query_toks": ["select", "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"], "query_toks_no_value": ["select", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "value", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<", "value"], "question": "Among the cars that do not have the minimum horsepower , what are the make names of all those with less than 4 cylinders ?", "question_toks": ["Among", "the", "cars", "that", "do", "not", "have", "the", "minimum", "horsepower", ",", "what", "are", "the", "make", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0168", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0006", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "question_toks": ["Which", "are", "the", "car", "makers", "which", "produce", "at", "least", "2", "models", "and", "more", "than", "3", "car", "makers", "?", "List", "the", "id", "and", "the", "maker", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0175", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0007", "db_id": "car_1", "query": "select 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", "query_toks": ["SELECT", "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"], "query_toks_no_value": ["SELECT", "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"], "question": "What are the makers of all car makers that make more than 3 cars?", "question_toks": ["What", "are", "the", "makers", "of", "all", "car", "makers", "that", "make", "more", "than", "3", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0176", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0008", "db_id": "car_1", "query": "select 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.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\"", "query_toks": ["SELECT", "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", ".", "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", "''"], "query_toks_no_value": ["SELECT", "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", ".", "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", "=", "value"], "question": "What are the names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'", "fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0009", "db_id": "car_1", "query": "select t1.countryid 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 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\"", "query_toks": ["select", "t1", ".", "countryid", "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", "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", "''"], "query_toks_no_value": ["select", "t1", ".", "countryid", "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", "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", "=", "value"], "question": "What are the ids of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0010", "db_id": "concert_singer", "query": "select location from stadium where capacity < 10000", "query_toks": ["SELECT", "LOCATION", "FROM", "stadium", "WHERE", "capacity", "<", "10000"], "query_toks_no_value": ["SELECT", "LOCATION", "FROM", "stadium", "WHERE", "capacity", "<", "value"], "question": "Show location for all stadiums with a capacity less than 10000.", "question_toks": ["Show", "location", "for", "all", "stadiums", "with", "a", "capacity", "less", "than", "10000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 10000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0014", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0011", "db_id": "concert_singer", "query": "select name from stadium where capacity > 5000", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "capacity", ">", "5000"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium", "WHERE", "capacity", ">", "value"], "question": "What are the names of all stations with capacity greater than 5000?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "with", "capacity", "greater", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 5000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0015", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0012", "db_id": "concert_singer", "query": "select country from singer where age > 40", "query_toks": ["SELECT", "country", "FROM", "singer", "WHERE", "age", ">", "40"], "query_toks_no_value": ["SELECT", "country", "FROM", "singer", "WHERE", "age", ">", "value"], "question": "Show countries where a singer above age 40.", "question_toks": ["Show", "countries", "where", "a", "singer", "above", "age", "40", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0030", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0013", "db_id": "concert_singer", "query": "select country from singer where song_name like \"%hey%\"", "query_toks": ["SELECT", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "\"%", "hey", "%\""], "query_toks_no_value": ["SELECT", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "\"%", "hey", "%\""], "question": "what is the nation of the singer who have a song having 'Hey' in its name?", "question_toks": ["what", "is", "the", "nation", "of", "the", "singer", "who", "have", "a", "song", "having", "'", "Hey", "'", "in", "its", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0039", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0014", "db_id": "concert_singer", "query": "select name from singer where song_name like \"%hey%\"", "query_toks": ["SELECT", "name", "FROM", "singer", "WHERE", "song_name", "LIKE", "\"%", "hey", "%\""], "query_toks_no_value": ["SELECT", "name", "FROM", "singer", "WHERE", "song_name", "LIKE", "\"%", "hey", "%\""], "question": "What is the name of origin of every singer who has a song with the word 'Hey' in its title?", "question_toks": ["What", "is", "the", "name", "of", "origin", "of", "every", "singer", "who", "has", "a", "song", "with", "the", "word", "'", "Hey", "'", "in", "its", "title", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0040", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0015", "db_id": "concert_singer", "query": "select t2.location from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2014 ", "query_toks": ["SELECT", "T2", ".", "location", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "Year", "=", "2014"], "query_toks_no_value": ["SELECT", "T2", ".", "location", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "Year", "=", "value"], "question": "Find the location of the stadiums which some concerts happened in the 2014.", "question_toks": ["Find", "the", "location", "of", "the", "stadiums", "which", "some", "concerts", "happened", "in", "the", "2014", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0041", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0016", "db_id": "concert_singer", "query": "select t2.name from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year = 2015", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "Year", "=", "2015"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "Year", "=", "value"], "question": "What are the names of the stadiums that had concerts that occurred in 2015?", "question_toks": ["What", "are", "the", "names", "of", "the", "stadiums", "that", "had", "concerts", "that", "occurred", "in", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0042", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0017", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name from documents where document_description like \"%w%\"", "query_toks": ["SELECT", "document_name", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "\"%", "w", "%\""], "query_toks_no_value": ["SELECT", "document_name", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "\"%", "w", "%\""], "question": "What is the document name for document with description with the letter 'w' in it?", "question_toks": ["What", "is", "the", "document", "name", "for", "document", "with", "description", "with", "the", "letter", "'", "w", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%w%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0301", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0018", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name from documents where document_description like \"%w%\"", "query_toks": ["SELECT", "document_name", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "\"%", "w", "%\""], "query_toks_no_value": ["SELECT", "document_name", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "\"%", "w", "%\""], "question": "Return the names for documents that contain the letter w in their description.", "question_toks": ["Return", "the", "names", "for", "documents", "that", "contain", "the", "letter", "w", "in", "their", "description", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%w%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0302", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0019", "db_id": "dog_kennels", "query": "select state from owners", "query_toks": ["SELECT", "state", "FROM", "Owners"], "query_toks_no_value": ["SELECT", "state", "FROM", "Owners"], "question": "Which states have owners living there?", "question_toks": ["Which", "states", "have", "both", "owners", "living", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0918", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0020", "db_id": "dog_kennels", "query": "select state from professionals", "query_toks": ["SELECT", "state", "FROM", "Professionals"], "query_toks_no_value": ["SELECT", "state", "FROM", "Professionals"], "question": "Find the states where professionals live.", "question_toks": ["Find", "the", "states", "where", "professionals", "live", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0919", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0021", "db_id": "dog_kennels", "query": "select professional_id from professionals where state = \"indiana\" union select t1.professional_id from professionals as t1 join treatments as t2 on t1.professional_id = t2.professional_id group by t1.professional_id having count(*) > 2", "query_toks": ["SELECT", "professional_id", "FROM", "Professionals", "WHERE", "state", "=", "``", "indiana", "''", "UNION", "SELECT", "T1", ".", "professional_id", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1", ".", "professional_id", "=", "T2", ".", "professional_id", "GROUP", "BY", "T1", ".", "professional_id", "HAVING", "count", "(*)", ">", "2"], "query_toks_no_value": ["SELECT", "professional_id", "FROM", "Professionals", "WHERE", "state", "=", "value", "UNION", "SELECT", "T1", ".", "professional_id", "FROM", "Professionals", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1", ".", "professional_id", "=", "T2", ".", "professional_id", "GROUP", "BY", "T1", ".", "professional_id", "HAVING", "count", "(*)", ">", "2"], "question": "Which professionals live in the state of Indiana or have done treatment on more than 2 treatments? List his or her id.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "or", "have", "done", "treatment", "on", "more", "than", "2", "treatments", "?", "List", "his", "or", "her", "id", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0922", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0022", "db_id": "employee_hire_evaluation", "query": "select district from shop where number_products < 3000", "query_toks": ["SELECT", "district", "FROM", "shop", "WHERE", "Number_products", "<", "3000"], "query_toks_no_value": ["SELECT", "district", "FROM", "shop", "WHERE", "Number_products", "<", "value"], "question": "Which district has stores with less than 3000 products?", "question_toks": ["Which", "district", "has", "both", "stores", "with", "less", "than", "3000", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0293", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0023", "db_id": "flight_2", "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 t3.city = \"aberdeen\"", "query_toks": ["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", "T3", ".", "City", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["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", "T3", ".", "City", "=", "value"], "question": "How many flights depart from City 'Aberdeen'?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "'", "Aberdeen", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0211", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0024", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"apg\"", "query_toks": ["SELECT", "T1", ".", "Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1", ".", "uid", "=", "T2", ".", "Airline", "WHERE", "T2", ".", "SourceAirport", "=", "``", "apg", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1", ".", "uid", "=", "T2", ".", "Airline", "WHERE", "T2", ".", "SourceAirport", "=", "value"], "question": "Find all airlines that have flights from both airports 'APG'.", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "both", "airports", "'", "APG", "'."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"apg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0237", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0025", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "<", "value"], "question": "What is the name of the visitor who visited both a museum opened before 2009?", "question_toks": ["What", "is", "the", "name", "of", "the", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0426", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0026", "db_id": "network_1", "query": "select student_id from friend", "query_toks": ["SELECT", "student_id", "FROM", "Friend"], "query_toks_no_value": ["SELECT", "student_id", "FROM", "Friend"], "question": "Show the ids of high schoolers who have friends", "question_toks": ["Show", "the", "ids", "of", "high", "schoolers", "who", "have", "friends"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0898", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0027", "db_id": "network_1", "query": "select student_id from friend", "query_toks": ["SELECT", "student_id", "FROM", "Friend"], "query_toks_no_value": ["SELECT", "student_id", "FROM", "Friend"], "question": "What are the ids of students who have friends?", "question_toks": ["What", "are", "the", "ids", "of", "students", "who", "have", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0899", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0028", "db_id": "orchestra", "query": "select record_company from orchestra where year_of_founded < 2003", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003"], "query_toks_no_value": ["SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "value"], "question": "Show the record companies shared by orchestras founded before 2003.", "question_toks": ["Show", "the", "record", "companies", "shared", "by", "orchestras", "founded", "before", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0856", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0029", "db_id": "orchestra", "query": "select record_company from orchestra where year_of_founded < 2003", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003"], "query_toks_no_value": ["SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "value"], "question": "What are the record companies that are used by orchestras founded before 2003?", "question_toks": ["What", "are", "the", "record", "companies", "that", "are", "used", "by", "both", "orchestras", "founded", "before", "2003", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0857", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0030", "db_id": "pets_1", "query": "select 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\")", "query_toks": ["SELECT", "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", "\")"], "query_toks_no_value": ["SELECT", "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", "=", "value", "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", "=", "value", "\")"], "question": "Find the age of students who have a dog but do not have a cat as a pet.", "question_toks": ["Find", "the", "age", "of", "students", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "as", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0065", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0031", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the first name of students who have cat pets .", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "both", "cat", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0059", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0032", "db_id": "pets_1", "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 = \"dog\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the students' first names who have dogs as pets?", "question_toks": ["What", "are", "the", "students", "'", "first", "names", "who", "have", "dogs", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0060", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0033", "db_id": "pets_1", "query": "select major 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\")", "query_toks": ["SELECT", "major", "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", "\")"], "query_toks_no_value": ["SELECT", "major", "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", "=", "value", "\")"], "question": "Find the major of students who do not have a cat pet.", "question_toks": ["Find", "the", "major", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0061", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0034", "db_id": "pets_1", "query": "select major 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\")", "query_toks": ["SELECT", "major", "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", "\")"], "query_toks_no_value": ["SELECT", "major", "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", "=", "value", "\")"], "question": "What major is every student who does not own a cat as a pet?", "question_toks": ["What", "major", "is", "every", "student", "who", "does", "not", "own", "a", "cat", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0062", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0035", "db_id": "singer", "query": "select citizenship from singer where birth_year < 1945", "query_toks": ["SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945"], "query_toks_no_value": ["SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "value"], "question": "Show the citizenship shared by singers with birth year before 1945.", "question_toks": ["Show", "the", "citizenship", "shared", "by", "singers", "with", "birth", "year", "before", "1945", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 1945.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1028", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0036", "db_id": "singer", "query": "select citizenship from singer where birth_year > 1955", "query_toks": ["SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955"], "query_toks_no_value": ["SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "value"], "question": "What are the citizenships that are shared by singers with a birth year after 1955?", "question_toks": ["What", "are", "the", "citizenships", "that", "are", "shared", "by", "singers", "with", "a", "birth", "year", "after", "1955", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 1955.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1029", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0037", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = \"timmothy\"", "query_toks": ["SELECT", "cell_mobile_number", "FROM", "Students", "WHERE", "first_name", "=", "``", "timmothy", "''"], "query_toks_no_value": ["SELECT", "cell_mobile_number", "FROM", "Students", "WHERE", "first_name", "=", "value"], "question": "What is the phone number of the man with the first name Timmothy?", "question_toks": ["What", "is", "the", "phone", "number", "of", "the", "man", "with", "the", "first", "name", "Timmothy", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"timmothy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0553", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0038", "db_id": "student_transcripts_tracking", "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\" ", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the semester when both Master students got enrolled in.", "question_toks": ["Find", "the", "semester", "when", "both", "Master", "students", "got", "enrolled", "in", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"master\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0575", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0039", "db_id": "student_transcripts_tracking", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What is the id of the semester that had both Masters students enrolled?", "question_toks": ["What", "is", "the", "id", "of", "the", "semester", "that", "had", "both", "Masters", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"master\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0576", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0040", "db_id": "tvshow", "query": "select t1.country from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = \"michael chang\"", "query_toks": ["SELECT", "T1", ".", "country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "Channel", "WHERE", "T2", ".", "directed_by", "=", "``", "michael", "chang", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "country", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "Channel", "WHERE", "T2", ".", "directed_by", "=", "value", "chang"], "question": "Find the series country of the tv channel that is playing some cartoons directed by Michael Chang?", "question_toks": ["Find", "the", "series", "country", "of", "the", "tv", "channel", "that", "is", "playing", "some", "cartoons", "directed", "by", "Michael", "Chang", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"michael chang\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0637", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0041", "db_id": "tvshow", "query": "select t1.series_name from tv_channel as t1 join cartoon as t2 on t1.id = t2.channel where t2.directed_by = \"michael chang\" ", "query_toks": ["SELECT", "T1", ".", "series_name", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "Channel", "WHERE", "T2", ".", "directed_by", "=", "``", "michael", "chang", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "series_name", "FROM", "TV_Channel", "AS", "T1", "JOIN", "cartoon", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "Channel", "WHERE", "T2", ".", "directed_by", "=", "value", "chang"], "question": "What is the series name of all TV channels that are playing cartoons directed by Michael Chang?", "question_toks": ["What", "is", "the", "series", "name", "of", "all", "TV", "channels", "that", "are", "playing", "cartoons", "directed", "by", "Michael", "Chang", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"michael chang\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0638", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0042", "db_id": "voter_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "gehling"], "question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling'.", "question_toks": ["List", "the", "area", "codes", "in", "which", "voters", "voted", "both", "for", "the", "contestant", "'", "Tabatha", "Gehling", "'."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"tabatha gehling\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0700", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0043", "db_id": "world_1", "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\"", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "english", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What are the names of nations where both English?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0748", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0044", "db_id": "world_1", "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\"", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "english", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "Give the names of countries with English as official languages.", "question_toks": ["Give", "the", "names", "of", "countries", "with", "English", "as", "official", "languages", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0749", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0045", "db_id": "world_1", "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 t1.continent = \"asia\"", "query_toks": ["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", "T1", ".", "Continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "T1", ".", "Continent", "=", "value"], "question": "Return the different names of cities that are in Asia.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0787", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0046", "db_id": "world_1", "query": "select name from country where continent = \"europe\"", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "europe", "''"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "value"], "question": "What are the names of the countries that are in the continent of Europe?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "that", "are", "in", "the", "continent", "of", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0808", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0047", "db_id": "world_1", "query": "select name from country where population = \"80000\"", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Population", "=", "``", "80000", "''"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Population", "=", "value"], "question": "Give the names of countries that have a population equal to 80000.", "question_toks": ["Give", "the", "names", "of", "countries", "that", "have", "a", "population", "equal", "to", "80000", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"80000\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0809", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0048", "db_id": "world_1", "query": "select sum(population) from country where continent = \"north america\" ", "query_toks": ["select", "sum", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "north", "america", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "america"], "question": "What is the total population of countries in the continent of North America?", "question_toks": ["What", "is", "the", "total", "population", "of", "countries", "in", "the", "continent", "of", "North", "America", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0810", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0049", "db_id": "world_1", "query": "select avg(surfacearea) from country where continent = \"north america\"", "query_toks": ["select", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "north", "america", "''"], "query_toks_no_value": ["select", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "america"], "question": "Give the average surface area corresponding to countries in North America.", "question_toks": ["Give", "the", "average", "surface", "area", "corresponding", "to", "countries", "in", "North", "America", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0811", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0050", "db_id": "world_1", "query": "select name from city where population < 900000", "query_toks": ["SELECT", "name", "FROM", "city", "WHERE", "Population", "<", "900000"], "query_toks_no_value": ["SELECT", "name", "FROM", "city", "WHERE", "Population", "<", "value"], "question": "What are the cities whose population is less than 900000?", "question_toks": ["What", "are", "the", "cities", "whose", "population", "is", "less", "than", "900000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 900000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0812", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0051", "db_id": "world_1", "query": "select name from city where population < 900000", "query_toks": ["select", "name", "from", "city", "where", "population", "<", "900000"], "query_toks_no_value": ["select", "name", "from", "city", "where", "population", "<", "value"], "question": "Return the names of cities that have a population less than 900000 .", "question_toks": ["Return", "the", "names", "of", "cities", "that", "have", "a", "population", "less", "than", "900000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 900000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0813", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0052", "db_id": "world_1", "query": "select count(*) from countrylanguage where language like 'dutch';", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "dutch", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value"], "question": "How many countries speak Dutch?", "question_toks": ["How", "many", "countries", "speak", "Dutch", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0744", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0053", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"french\"", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "french", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value"], "question": "Give the names of nations that speak French.", "question_toks": ["Give", "the", "names", "of", "nations", "that", "speak", "French", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0747", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0054", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = \"wta championships\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "``", "wta", "championships", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "value", "championships"], "question": "How many different winners participated in the WTA Championships?", "question_toks": ["How", "many", "different", "winners", "participated", "in", "the", "WTA", "Championships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"wta championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0485", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0055", "db_id": "wta_1", "query": "select winner_name from matches where year = 2016", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2016"], "query_toks_no_value": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "value"], "question": "List the names of all winners who played in 2016.", "question_toks": ["List", "the", "names", "of", "all", "winners", "who", "played", "in", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0447", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0056", "db_id": "wta_1", "query": "select winner_name from matches where year = 2013", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2013"], "query_toks_no_value": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "value"], "question": "What are the names of players who won in 2013?", "question_toks": ["What", "are", "the", "names", "of", "players", "who", "won", "in", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0448", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0057", "db_id": "wta_1", "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 = \"australian open\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "open"], "question": "What are the country code and first name of the players who won in Australian Open?", "question_toks": ["What", "are", "the", "country", "code", "and", "first", "name", "of", "the", "players", "who", "won", "in", "Australian", "Open", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"australian open\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0451", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0058", "db_id": "wta_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "championships"], "question": "What are the first names and country codes for players who won the WTA Championships?", "question_toks": ["What", "are", "the", "first", "names", "and", "country", "codes", "for", "players", "who", "won", "both", "the", "WTA", "Championships", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"wta championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0452", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_INTERSECT"]}, {"id": "and_in_nl_0059", "db_id": "allergy_1", "query": "select count(*) from student where age > 18", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "age", ">", "18"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "age", ">", "value"], "question": "Find the number of students who are older than 18.", "question_toks": ["Find", "the", "number", "of", "students", "who", "are", "older", "than", "18", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0533", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0060", "db_id": "allergy_1", "query": "select count(*) from student where stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\" or t2.allergytype = \"animal\")", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "``", "food", "''", "OR", "T2", ".", "allergytype", "=", "``", "animal", "\")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "value", "OR", "T2", ".", "allergytype", "=", "value", "\")"], "question": "How many students do not have allergy to food type or animal type?", "question_toks": ["How", "many", "students", "do", "not", "have", "allergy", "to", "food", "type", "or", "animal", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0534", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0061", "db_id": "allergy_1", "query": "select lname from student where stuid in (select stuid from has_allergy where allergy = \"milk\")", "query_toks": ["SELECT", "lname", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "milk", "\")"], "query_toks_no_value": ["SELECT", "lname", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "value", "\")"], "question": "Find the last name of the student who has allergy to both milk.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "allergy", "to", "both", "milk", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0519", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0062", "db_id": "dorm_1", "query": "select fname from student where age between 20 and 25", "query_toks": ["SELECT", "fname", "FROM", "student", "WHERE", "age", "BETWEEN", "20", "AND", "25"], "query_toks_no_value": ["SELECT", "fname", "FROM", "student", "WHERE", "age", "BETWEEN", "20", "AND", "25"], "question": "What is the first name of the students who are in age 20 to 25?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "students", "who", "are", "in", "age", "20", "to", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 20.0, 25.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5677", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0063", "db_id": "dorm_1", "query": "select lname from student where sex = 'f' or age < 20;", "query_toks": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "``", "f", "''", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "age", "<", "20"], "query_toks_no_value": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "value", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "age", "<", "value"], "question": "Find the last name of students who is either female (sex is F) or in age of below 20.", "question_toks": ["Find", "the", "last", "name", "of", "students", "who", "is", "either", "female", "(", "sex", "is", "F", ")", "or", "in", "age", "of", "below", "20", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5706", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0064", "db_id": "dorm_1", "query": "select lname from student where city_code = 'bal' or sex = 'male';", "query_toks": ["SELECT", "lname", "FROM", "student", "WHERE", "city_code", "=", "``", "bal", "''", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["SELECT", "lname", "FROM", "student", "WHERE", "city_code", "=", "value", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "value"], "question": "What is the last name of every student who is either living in a city with the code BAL or male?", "question_toks": ["What", "is", "the", "last", "name", "of", "every", "student", "who", "is", "either", "living", "in", "a", "city", "with", "the", "code", "BAL", "or", "male", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"bal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_in_nl_0064", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0065", "db_id": "driving_school", "query": "select t1.zip_postcode from addresses as t1 join staff as t2 on t1.address_id = t2.staff_address_id where t2.first_name = \"janessa\"", "query_toks": ["SELECT", "T1", ".", "zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "address_id", "=", "T2", ".", "staff_address_id", "WHERE", "T2", ".", "first_name", "=", "``", "janessa", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1", ".", "address_id", "=", "T2", ".", "staff_address_id", "WHERE", "T2", ".", "first_name", "=", "value"], "question": "What is the zip code of staff with first name as Janessa lived?", "question_toks": ["What", "is", "the", "zip", "code", "of", "staff", "with", "first", "name", "as", "Janessa", "lived", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"janessa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6648", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0066", "db_id": "driving_school", "query": "select date_became_customer from customers where first_name = \"carole\"", "query_toks": ["SELECT", "date_became_customer", "FROM", "Customers", "WHERE", "first_name", "=", "``", "carole", "''"], "query_toks_no_value": ["SELECT", "date_became_customer", "FROM", "Customers", "WHERE", "first_name", "=", "value"], "question": "When did customer with first name as Carole became a customer?", "question_toks": ["When", "did", "customer", "with", "first", "name", "as", "Carole", "became", "a", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"carole\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6668", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0067", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.first_name = \"rylan\" and t1.lesson_status_code = \"completed\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "T2", ".", "first_name", "=", "``", "rylan", "''", "AND", "T1", ".", "lesson_status_code", "=", "``", "completed", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "T2", ".", "first_name", "=", "value", "AND", "T1", ".", "lesson_status_code", "=", "value"], "question": "How many lessons taken by customer with first name as Rylan were completed?", "question_toks": ["How", "many", "lessons", "taken", "by", "customer", "with", "first", "name", "as", "Rylan", "were", "completed", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 18, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"rylan\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"completed\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6676", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0068", "db_id": "farm", "query": "select status from city where population > 1500", "query_toks": ["SELECT", "Status", "FROM", "city", "WHERE", "Population", ">", "1500"], "query_toks_no_value": ["SELECT", "Status", "FROM", "city", "WHERE", "Population", ">", "value"], "question": "Show the status shared by cities with population bigger than 1500.", "question_toks": ["Show", "the", "status", "shared", "by", "cities", "with", "population", "bigger", "than", "1500", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 1500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0050", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0069", "db_id": "farm", "query": "select status from city where population < 500", "query_toks": ["SELECT", "Status", "FROM", "city", "WHERE", "Population", "<", "500"], "query_toks_no_value": ["SELECT", "Status", "FROM", "city", "WHERE", "Population", "<", "value"], "question": "Which statuses correspond to cities that have a population lower than 500?", "question_toks": ["Which", "statuses", "correspond", "to", "both", "cities", "that", "have", "a", "population", "lower", "than", "500", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0051", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_FILTERS"]}, {"id": "and_in_nl_0070", "db_id": "formula_1", "query": "select circuitid from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "circuitid", "FROM", "circuits", "WHERE", "country", "=", "``", "france", "''", "OR", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["SELECT", "circuitid", "FROM", "circuits", "WHERE", "country", "=", "value", "OR", "country", "=", "value"], "question": "Find the id of circuits that belong to France or Belgium?", "question_toks": ["Find", "the", "id", "of", "circuits", "that", "belong", "to", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2215", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0071", "db_id": "formula_1", "query": "select location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "france", "''", "OR", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["SELECT", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "value", "OR", "country", "=", "value"], "question": "What are locations of all circuits in France or Belgium?", "question_toks": ["What", "are", "locations", "of", "all", "circuits", "in", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2216", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0072", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "Fname", "=", "``", "david", "''", "AND", "T2", ".", "Lname", "=", "``", "shieber", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "Fname", "=", "value", "AND", "T2", ".", "Lname", "=", "value"], "question": "Show total number of games played for student David Shieber.", "question_toks": ["Show", "total", "number", "of", "games", "played", "for", "student", "David", "Shieber", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6029", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "and_in_nl_0073", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\"", "query_toks": ["SELECT", "DISTINCT", "t3", ".", "paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3", ".", "authorid", "=", "t2", ".", "authorid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t1", "ON", "t4", ".", "authorid", "=", "t1", ".", "authorid", "WHERE", "t2", ".", "authorname", "=", "``", "peter", "mertens", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "t3", ".", "paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3", ".", "authorid", "=", "t2", ".", "authorid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t1", "ON", "t4", ".", "authorid", "=", "t1", ".", "authorid", "WHERE", "t2", ".", "authorname", "=", "value", "mertens"], "question": "papers written by authors Peter Mertens", "question_toks": ["papers", "written", "by", "authors", "Peter", "Mertens"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"peter mertens\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0574", "is_simplification": true, "simplifications_tags": ["AND_IN_NL", "_AND_TO_COLUMNS"]}, {"id": "datetime_0000", "db_id": "aircraft", "query": "select country from match", "query_toks": ["SELECT", "Country", "FROM", "match"], "query_toks_no_value": ["SELECT", "Country", "FROM", "match"], "question": "In which countries are aircraft matches held?", "question_toks": ["In", "which", "countries", "are", "aircraft", "matches", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0000", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0001", "db_id": "apartment_rentals", "query": "select distinct(apt_booking_id) from view_unit_status", "query_toks": ["SELECT", "DISTINCT", "(", "apt_booking_id", ")", "FROM", "View_Unit_Status"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "apt_booking_id", ")", "FROM", "View_Unit_Status"], "question": "List all booking ID", "question_toks": ["List", "all", "booking", "ID"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0001", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0002", "db_id": "assets_maintenance", "query": "select engineer_id, visit_start_datetime from engineer_visits;", "query_toks": ["SELECT", "DISTINCT", "(", "engineer_id", "),", "visit_end_datetime", "FROM", "Engineer_Visits"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "engineer_id", "),", "visit_end_datetime", "FROM", "Engineer_Visits"], "question": "Output the start times and id of all engineers", "question_toks": ["Output", "the", "start", "times", "and", "id", "of", "all", "engineers"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [true, [[0, [0, [0, 49, false], null]], [0, [0, [0, 53, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0002", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0003", "db_id": "battle_death", "query": "select distinct(latin_commander) from battle", "query_toks": ["SELECT", "DISTINCT", "(", "latin_commander", ")", "FROM", "battle"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "latin_commander", ")", "FROM", "battle"], "question": "Which of the Latin commanders participated in the battles?", "question_toks": ["Which", "of", "the", "Latin", "commanders", "participated", "in", "the", "battles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0003", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0004", "db_id": "battle_death", "query": "select count(distinct id) from battle", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "battle"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "battle"], "question": "How many battles were fought?", "question_toks": ["How", "many", "battles", "were", "fought", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0004", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0005", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes", "query_toks": ["SELECT", "notes_id", "FROM", "Assessment_Notes"], "query_toks_no_value": ["SELECT", "notes_id", "FROM", "Assessment_Notes"], "question": "Show the id of the notes", "question_toks": ["Show", "the", "id", "of", "the", "notes"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0005", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0006", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes", "query_toks": ["SELECT", "notes_id", "FROM", "Assessment_Notes"], "query_toks_no_value": ["SELECT", "notes_id", "FROM", "Assessment_Notes"], "question": "ID of the notes", "question_toks": ["ID", "of", "the", "notes"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0006", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0007", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes", "query_toks": ["SELECT", "notes_id", "FROM", "Assessment_Notes"], "query_toks_no_value": ["SELECT", "notes_id", "FROM", "Assessment_Notes"], "question": "What the id of the notes", "question_toks": ["What", "the", "id", "of", "the", "notes"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0007", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0008", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "question": "Which start station had the most trips? Give me the name and id of the station.", "question_toks": ["Which", "start", "station", "had", "the", "most", "trips", "?", "Give", "me", "the", "name", "and", "id", "of", "the", "station", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0133", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0009", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(*)", "DESC", "LIMIT", "1"], "question": "What are the start station's name and id for the one that had the most start trips?", "question_toks": ["What", "are", "the", "start", "station", "'", "s", "name", "and", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0134", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0010", "db_id": "body_builder", "query": "select total from body_builder", "query_toks": ["SELECT", "total", "FROM", "body_builder"], "query_toks_no_value": ["SELECT", "total", "FROM", "body_builder"], "question": "What are the total scores of the body builders?", "question_toks": ["What", "are", "the", "total", "scores", "of", "the", "body", "builders", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1172", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0011", "db_id": "cinema", "query": "select title from film", "query_toks": ["SELECT", "Title", "FROM", "film"], "query_toks_no_value": ["SELECT", "Title", "FROM", "film"], "question": "Title of the films released", "question_toks": ["Title", "of", "the", "films", "released"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0011", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0012", "db_id": "cinema", "query": "select title from film ", "query_toks": ["SELECT", "Title", "FROM", "film"], "query_toks_no_value": ["SELECT", "Title", "FROM", "film"], "question": "Title of the films", "question_toks": ["Title", "of", "the", "films"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0012", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0013", "db_id": "cinema", "query": "select distinct(title) from film", "query_toks": ["SELECT", "DISTINCT", "(", "Title", ")", "FROM", "film"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Title", ")", "FROM", "film"], "question": "What are the titles of the films?", "question_toks": ["What", "are", "the", "titles", "of", "the", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0013", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0014", "db_id": "cinema", "query": "select avg(show_times_per_day) from schedule", "query_toks": ["SELECT", "AVG", "(", "Show_times_per_day", ")", "FROM", "schedule"], "query_toks_no_value": ["SELECT", "AVG", "(", "Show_times_per_day", ")", "FROM", "schedule"], "question": "How many times per day are scheduled movies shown on average?", "question_toks": ["How", "many", "times", "per", "day", "are", "scheduled", "movies", "shown", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0014", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0015", "db_id": "coffee_shop", "query": "select address , shop_id from shop", "query_toks": ["SELECT", "address", ",", "shop_id", "FROM", "shop"], "query_toks_no_value": ["SELECT", "address", ",", "shop_id", "FROM", "shop"], "question": "What are the id and address of the shops?", "question_toks": ["What", "are", "the", "id", "and", "address", "of", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0803", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0016", "db_id": "coffee_shop", "query": "select distinct(address) from shop", "query_toks": ["SELECT", "DISTINCT", "(", "Address", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Address", ")", "FROM", "shop"], "question": "Addresses of shops", "question_toks": ["Addresses", "of", "shops"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0016", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0017", "db_id": "coffee_shop", "query": "select avg(num_of_shaff_in_charge) from happy_hour ", "query_toks": ["SELECT", "AVG", "(", "Num_of_shaff_in_charge", ")", "FROM", "happy_hour"], "query_toks_no_value": ["SELECT", "AVG", "(", "Num_of_shaff_in_charge", ")", "FROM", "happy_hour"], "question": "Average number of staff", "question_toks": ["Average", "number", "of", "staff"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0017", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0018", "db_id": "college_1", "query": "select distinct(class_code) from class", "query_toks": ["SELECT", "DISTINCT", "(", "CLASS_CODE", ")", "FROM", "CLASS"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "CLASS_CODE", ")", "FROM", "CLASS"], "question": "Class Codes", "question_toks": ["Class", "Codes"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0018", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0019", "db_id": "college_1", "query": "select distinct(class_room) from class", "query_toks": ["SELECT", "DISTINCT", "(", "CLASS_ROOM", ")", "FROM", "CLASS"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "CLASS_ROOM", ")", "FROM", "CLASS"], "question": "In what classrooms are classes?", "question_toks": ["In", "what", "classrooms", "are", "classes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0019", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0020", "db_id": "college_1", "query": "select distinct(stu_fname) from student", "query_toks": ["SELECT", "DISTINCT", "(", "STU_FNAME", ")", "FROM", "STUDENT"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "STU_FNAME", ")", "FROM", "STUDENT"], "question": "Surnames of students", "question_toks": ["Surnames", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0020", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0021", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where credits = 1", "query_toks": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1"], "query_toks_no_value": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "value", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "value"], "question": "Find the names of courses that have either 3 credits or 1 credit", "question_toks": ["Find", "the", "names", "of", "courses", "that", "have", "either", "3", "credits", "or", "1", "credit"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4703", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0022", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where credits = 1", "query_toks": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1"], "query_toks_no_value": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "value", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "value"], "question": "What are the names of courses that give either 3 credits or 1 credit?", "question_toks": ["What", "are", "the", "names", "of", "courses", "that", "give", "either", "3", "credits", "or", "1", "credit", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4704", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0023", "db_id": "course_teach", "query": "select count(distinct course_id) from course", "query_toks": ["SELECT", "count", "(", "DISTINCT", "Course_ID", ")", "FROM", "Course"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "Course_ID", ")", "FROM", "Course"], "question": "Amount of courses", "question_toks": ["Amount", "of", "courses"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0023", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0024", "db_id": "course_teach", "query": "select distinct(course) from course", "query_toks": ["SELECT", "DISTINCT", "(", "Course", ")", "FROM", "Course"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Course", ")", "FROM", "Course"], "question": "Show me names of the courses", "question_toks": ["Show", "me", "names", "of", "the", "courses"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0024", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0025", "db_id": "course_teach", "query": "select min(grade) from course_arrange", "query_toks": ["SELECT", "MIN", "(", "Grade", ")", "FROM", "course_arrange"], "query_toks_no_value": ["SELECT", "MIN", "(", "Grade", ")", "FROM", "course_arrange"], "question": "What is the minimum grade for the course?", "question_toks": ["What", "is", "the", "minimum", "grade", "for", "the", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0025", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0026", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents"], "question": "Total number of documents received", "question_toks": ["Total", "number", "of", "documents", "received"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0026", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0027", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed"], "question": "Number of documents mailed", "question_toks": ["Number", "of", "documents", "mailed", "in", "November"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0027", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0028", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed"], "question": "How many documents were mailed?", "question_toks": ["How", "many", "documents", "were", "mailed", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0028", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0029", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed"], "question": "How many documents were sent?", "question_toks": ["How", "many", "documents", "were", "sent", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0029", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0030", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates", "query_toks": ["SELECT", "Template_ID", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "Template_ID", "FROM", "Templates"], "question": "Id of templates", "question_toks": ["Id", "of", "templates"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0030", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0031", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates", "query_toks": ["SELECT", "Template_ID", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "Template_ID", "FROM", "Templates"], "question": "What are the IDs of templates?", "question_toks": ["What", "are", "the", "IDs", "of", "templates", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0031", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0032", "db_id": "cre_Doc_Template_Mgt", "query": "select count(distinct template_id) from templates", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Template_ID", ")", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "Template_ID", ")", "FROM", "Templates"], "question": "Number of templates", "question_toks": ["Number", "of", "templates"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0032", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0033", "db_id": "customers_and_addresses", "query": "select sum(order_quantity) from order_items ", "query_toks": ["SELECT", "sum", "(", "order_quantity", ")", "FROM", "order_items"], "query_toks_no_value": ["SELECT", "sum", "(", "order_quantity", ")", "FROM", "order_items"], "question": "Find the total amount of products were ordered.", "question_toks": ["Find", "the", "total", "amount", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6125", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0034", "db_id": "customers_and_addresses", "query": "select sum(order_quantity) from order_items ", "query_toks": ["SELECT", "sum", "(", "order_quantity", ")", "FROM", "order_items"], "query_toks_no_value": ["SELECT", "sum", "(", "order_quantity", ")", "FROM", "order_items"], "question": "What is the total amount of products purchased?", "question_toks": ["What", "is", "the", "total", "amount", "of", "products", "purchased", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6126", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0035", "db_id": "customers_and_addresses", "query": "select sum(order_quantity) from order_items ", "query_toks": ["SELECT", "sum", "(", "order_quantity", ")", "FROM", "order_items"], "query_toks_no_value": ["SELECT", "sum", "(", "order_quantity", ")", "FROM", "order_items"], "question": "Display amount of products ordered.", "question_toks": ["Display", "amount", "of", "products", "ordered", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0035", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0036", "db_id": "department_store", "query": "select staff_name , staff_gender from staff", "query_toks": ["SELECT", "staff_name", ",", "staff_gender", "FROM", "staff"], "query_toks_no_value": ["SELECT", "staff_name", ",", "staff_gender", "FROM", "staff"], "question": "Return the name and gender of the staff .", "question_toks": ["Return", "the", "name", "and", "gender", "of", "the", "staff", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4759", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0037", "db_id": "department_store", "query": "select staff_name, staff_gender from staff;", "query_toks": ["SELECT", "T1", ".", "staff_name", ",", "T1", ".", "staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "WHERE", "T2", ".", "date_assigned_from", "LIKE", "``", "2016", "%\""], "query_toks_no_value": ["SELECT", "T1", ".", "staff_name", ",", "T1", ".", "staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "WHERE", "T2", ".", "date_assigned_from", "LIKE", "value", "%\""], "question": "What are the names and genders of staff ?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 54, false], null], "\"2016%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4760", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0038", "db_id": "entrepreneur", "query": "select distinct(name) from people", "query_toks": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "people"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "people"], "question": "Surnames", "question_toks": ["Surnames"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0038", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0039", "db_id": "entrepreneur", "query": "select distinct(name) from people", "query_toks": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "people"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "people"], "question": "Who was born?", "question_toks": ["Who", "was", "born", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0039", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0040", "db_id": "formula_1", "query": "select name from races", "query_toks": ["SELECT", "name", "FROM", "races"], "query_toks_no_value": ["SELECT", "name", "FROM", "races"], "question": "What are the names of races?", "question_toks": ["What", "are", "the", "names", "of", "races", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2205", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0041", "db_id": "formula_1", "query": "select name from races", "query_toks": ["SELECT", "name", "FROM", "races"], "query_toks_no_value": ["SELECT", "name", "FROM", "races"], "question": "What are the names of all races?", "question_toks": ["What", "are", "the", "names", "of", "all", "races", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2206", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0042", "db_id": "hr_1", "query": "select job_id , hire_date from employees", "query_toks": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees"], "query_toks_no_value": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees"], "question": "Find job id and date of hire for all employees", "question_toks": ["Find", "job", "id", "and", "date", "of", "hire", "for", "all", "employees"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3429", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0043", "db_id": "hr_1", "query": "select job_id , hire_date from employees", "query_toks": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees"], "query_toks_no_value": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees"], "question": "What are the job ids and dates of hire for employees?", "question_toks": ["What", "are", "the", "job", "ids", "and", "dates", "of", "hire", "for", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3430", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0044", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "display all the details from Employees table", "question_toks": ["display", "all", "the", "details", "from", "Employees", "table"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3435", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0045", "db_id": "hr_1", "query": "select * from employees ", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "What is all the information about all employees?", "question_toks": ["What", "is", "all", "the", "information", "about", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3436", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0046", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "display all employees.", "question_toks": ["display", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3439", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0047", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "Which employees were hired?", "question_toks": ["Which", "employees", "were", "hired", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3440", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0048", "db_id": "hr_1", "query": "select job_id from job_history group by job_id having count(*) >= 2", "query_toks": ["SELECT", "job_id", "FROM", "job_history", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "job_id", "FROM", "job_history", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(*)", ">=", "2"], "question": "display job ID for those jobs that were done by two or more.", "question_toks": ["display", "job", "ID", "for", "those", "jobs", "that", "were", "done", "by", "two", "or", "more", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3457", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0049", "db_id": "hr_1", "query": "select job_id from job_history group by job_id having count(*) >= 2", "query_toks": ["SELECT", "job_id", "FROM", "job_history", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "job_id", "FROM", "job_history", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(*)", ">=", "2"], "question": "What are the job ids for jobs done more than once?", "question_toks": ["What", "are", "the", "job", "ids", "for", "jobs", "done", "more", "than", "once", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3458", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0050", "db_id": "inn_1", "query": "select adults from reservations where firstname = \"conrad\" and lastname = \"selbig\"", "query_toks": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "conrad", "''", "AND", "LastName", "=", "``", "selbig", "''"], "query_toks_no_value": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "FirstName", "=", "value", "AND", "LastName", "=", "value"], "question": "How many adults stay in the room CONRAD SELBIG?", "question_toks": ["How", "many", "adults", "stay", "in", "the", "room", "CONRAD", "SELBIG", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"conrad\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"selbig\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2584", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0051", "db_id": "inn_1", "query": "select adults from reservations where firstname = \"conrad\" and lastname = \"selbig\"", "query_toks": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "conrad", "''", "AND", "LastName", "=", "``", "selbig", "''"], "query_toks_no_value": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "FirstName", "=", "value", "AND", "LastName", "=", "value"], "question": "Find the number of adults for the room reserved and checked in by CONRAD SELBIG.", "question_toks": ["Find", "the", "number", "of", "adults", "for", "the", "room", "reserved", "and", "checked", "in", "by", "CONRAD", "SELBIG", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"conrad\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"selbig\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2585", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0052", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"damien\" and lastname = \"trachsel\"", "query_toks": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "damien", "''", "AND", "LastName", "=", "``", "trachsel", "''"], "query_toks_no_value": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "value", "AND", "LastName", "=", "value"], "question": "How many kids stay in the room DAMIEN TRACHSEL?", "question_toks": ["How", "many", "kids", "stay", "in", "the", "room", "DAMIEN", "TRACHSEL", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"damien\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"trachsel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2586", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0053", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"damien\" and lastname = \"trachsel\"", "query_toks": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "damien", "''", "AND", "LastName", "=", "``", "trachsel", "''"], "query_toks_no_value": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "value", "AND", "LastName", "=", "value"], "question": "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL.", "question_toks": ["Return", "the", "number", "of", "kids", "for", "the", "room", "reserved", "and", "checked", "in", "by", "DAMIEN", "TRACHSEL", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"damien\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"trachsel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2587", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0054", "db_id": "inn_1", "query": "select lastname, firstname from reservations", "query_toks": ["SELECT", "LastName", ",", "FirstName", "FROM", "Reservations"], "query_toks_no_value": ["SELECT", "LastName", ",", "FirstName", "FROM", "Reservations"], "question": "Last and first names of everyone who checked in", "question_toks": ["Last", "and", "first", "names", "of", "everyone", "who", "checked", "in"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0054", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0055", "db_id": "inn_1", "query": "select lastname, firstname from reservations", "query_toks": ["SELECT", "LastName", ",", "FirstName", "FROM", "Reservations"], "query_toks_no_value": ["SELECT", "LastName", ",", "FirstName", "FROM", "Reservations"], "question": "Show me the last and first names of everyone", "question_toks": ["Show", "me", "the", "last", "and", "first", "names", "of", "everyone"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0055", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0056", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id , t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = \"close\"", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "thing_id", ",", "T2", ".", "Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1", ".", "thing_id", "=", "T2", ".", "thing_id", "WHERE", "T1", ".", "Status_of_Thing_Code", "=", "``", "close", "''", "OR", "T1", ".", "Date_and_Date", "<", "``", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "thing_id", ",", "T2", ".", "Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1", ".", "thing_id", "=", "T2", ".", "thing_id", "WHERE", "T1", ".", "Status_of_Thing_Code", "=", "value", "OR", "T1", ".", "Date_and_Date", "<", "value", "-", "06", "-", "19", "02", ":", "59", ":", "21"], "question": "What are the distinct id and type of the thing that has the status 'Close'", "question_toks": ["What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'", "Close", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"close\"", null], "or", [false, 4, [0, [0, 44, false], null], "\"2017-06-19 02:59:21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4851", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0057", "db_id": "music_1", "query": "select count(*) from files", "query_toks": ["SELECT", "count", "(*)", "FROM", "files"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "files"], "question": "How many songs are?", "question_toks": ["How", "many", "songs", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3545", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0058", "db_id": "music_1", "query": "select count(*) from files", "query_toks": ["SELECT", "count", "(*)", "FROM", "files"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "files"], "question": "What is the count of the songs?", "question_toks": ["What", "is", "the", "count", "of", "the", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3546", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0059", "db_id": "music_1", "query": "select artist_name , gender from artist", "query_toks": ["SELECT", "artist_name", ",", "gender", "FROM", "artist"], "query_toks_no_value": ["SELECT", "artist_name", ",", "gender", "FROM", "artist"], "question": "List the name and gender for all artists.", "question_toks": ["List", "the", "name", "and", "gender", "for", "all", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3575", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0060", "db_id": "music_1", "query": "select artist_name , gender from artist ", "query_toks": ["SELECT", "artist_name", ",", "gender", "FROM", "artist"], "query_toks_no_value": ["SELECT", "artist_name", ",", "gender", "FROM", "artist"], "question": "What are the names and genders of all artists?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "all", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3576", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0061", "db_id": "music_1", "query": "select song_name from song where languages = \"english\"", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "value"], "question": "List the names of all songs that are in English.", "question_toks": ["List", "the", "names", "of", "all", "songs", "that", "are", "in", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3583", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0062", "db_id": "music_1", "query": "select song_name from song where languages = \"english\"", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "value"], "question": "What are the names of all songs that are in English?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "are", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3584", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0063", "db_id": "music_1", "query": "select max(resolution) , min(resolution) from song", "query_toks": ["SELECT", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "FROM", "song"], "query_toks_no_value": ["SELECT", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "FROM", "song"], "question": "What are the maximum and minimum resolution of songs?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "resolution", "of", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3599", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0064", "db_id": "music_1", "query": "select max(resolution) , min(resolution) from song", "query_toks": ["SELECT", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "FROM", "song"], "query_toks_no_value": ["SELECT", "max", "(", "resolution", ")", ",", "min", "(", "resolution", ")", "FROM", "song"], "question": "What is the maximum and minimum resolution of all songs ", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "resolution", "of", "all", "songs", "that", "are", "approximately", "3", "minutes", "long", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3600", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0065", "db_id": "music_1", "query": "select distinct(f_id) from files", "query_toks": ["SELECT", "DISTINCT", "(", "f_id", ")", "FROM", "files"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "f_id", ")", "FROM", "files"], "question": "Id files", "question_toks": ["Id", "files"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0065", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0066", "db_id": "music_1", "query": "select artist_name from artist", "query_toks": ["SELECT", "artist_name", ",", "gender", "FROM", "artist"], "query_toks_no_value": ["SELECT", "artist_name", ",", "gender", "FROM", "artist"], "question": "What the names of all artists.", "question_toks": ["What", "the", "names", "of", "all", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0066", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0067", "db_id": "station_weather", "query": "select name from train", "query_toks": ["SELECT", "name", "FROM", "train"], "query_toks_no_value": ["SELECT", "name", "FROM", "train"], "question": "Name of trains", "question_toks": ["Name", "of", "trains"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0067", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0068", "db_id": "station_weather", "query": "select distinct(train_number) from train", "query_toks": ["SELECT", "DISTINCT", "(", "train_number", ")", "FROM", "train"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "train_number", ")", "FROM", "train"], "question": "Give me all trains numbers", "question_toks": ["Give", "me", "all", "trains", "numbers"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0068", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0069", "db_id": "theme_gallery", "query": "select sum(attendance) from exhibition_record", "query_toks": ["SELECT", "SUM", "(", "Attendance", ")", "FROM", "exhibition_record"], "query_toks_no_value": ["SELECT", "SUM", "(", "Attendance", ")", "FROM", "exhibition_record"], "question": "How many people attended the gallery?", "question_toks": ["How", "many", "people", "attended", "the", "gallery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0069", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0070", "db_id": "tracking_grants_for_research", "query": "select grant_amount from grants", "query_toks": ["SELECT", "grant_amount", "FROM", "Grants"], "query_toks_no_value": ["SELECT", "grant_amount", "FROM", "Grants"], "question": "What are the distinct grant amount for the grants?", "question_toks": ["What", "are", "the", "distinct", "grant", "amount", "for", "the", "grants", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4320", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0071", "db_id": "tracking_grants_for_research", "query": "select grant_amount from grants", "query_toks": ["SELECT", "grant_amount", "FROM", "Grants"], "query_toks_no_value": ["SELECT", "grant_amount", "FROM", "Grants"], "question": "What are the different grant amounts for documents?", "question_toks": ["What", "are", "the", "different", "grant", "amounts", "for", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4321", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0072", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code = \"leader\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Project_Staff", "WHERE", "role_code", "=", "``", "leader", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Project_Staff", "WHERE", "role_code", "=", "value"], "question": "How many project staff worked as leaders?", "question_toks": ["How", "many", "project", "staff", "worked", "as", "leaders", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4376", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0073", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code = \"leader\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Project_Staff", "WHERE", "role_code", "=", "``", "leader", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Project_Staff", "WHERE", "role_code", "=", "value"], "question": "How many project members were leaders?", "question_toks": ["How", "many", "project", "members", "were", "leaders", "or", "started", "working", "before", "'", "1989", "-", "04", "-", "24", "23", ":", "51", ":", "54", "'?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4377", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0074", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff", "query_toks": ["SELECT", "role_code", "FROM", "Project_Staff"], "query_toks_no_value": ["SELECT", "role_code", "FROM", "Project_Staff"], "question": "What are the staff roles of the staff", "question_toks": ["What", "are", "the", "staff", "roles", "of", "the", "staff"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4392", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0075", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff", "query_toks": ["SELECT", "role_code", "FROM", "Project_Staff"], "query_toks_no_value": ["SELECT", "role_code", "FROM", "Project_Staff"], "question": "What roles did staff members?", "question_toks": ["What", "roles", "did", "staff", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4393", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0076", "db_id": "tracking_orders", "query": "select customer_name from customers", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "Give me the names of customers", "question_toks": ["Give", "me", "the", "names", "of", "customers"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6905", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0077", "db_id": "tracking_orders", "query": "select distinct t1.customer_name from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id;", "query_toks": ["SELECT", "customer_name", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", "FROM", "customers"], "question": "Which customers made orders? Find their names.", "question_toks": ["Which", "customers", "made", "orders", "?", "Find", "their", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6906", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0078", "db_id": "tracking_orders", "query": "select distinct product_id from products;", "query_toks": ["SELECT", "DISTINCT", "product_id", "FROM", "order_items"], "query_toks_no_value": ["SELECT", "DISTINCT", "product_id", "FROM", "order_items"], "question": "Give me a list of distinct product ids", "question_toks": ["Give", "me", "a", "list", "of", "distinct", "product", "ids"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6907", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0079", "db_id": "tracking_orders", "query": "select distinct product_id from products;", "query_toks": ["SELECT", "DISTINCT", "product_id", "FROM", "order_items"], "query_toks_no_value": ["SELECT", "DISTINCT", "product_id", "FROM", "order_items"], "question": "What are the distinct ids of products?", "question_toks": ["What", "are", "the", "distinct", "ids", "of", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6908", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0080", "db_id": "tracking_orders", "query": "select order_id from orders;", "query_toks": ["SELECT", "order_id", "FROM", "shipments"], "query_toks_no_value": ["SELECT", "order_id", "FROM", "shipments"], "question": "Find the ids of orders.", "question_toks": ["Find", "the", "ids", "of", "orders", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6921", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0081", "db_id": "tracking_orders", "query": "select order_id from shipments", "query_toks": ["SELECT", "order_id", "FROM", "shipments"], "query_toks_no_value": ["SELECT", "order_id", "FROM", "shipments"], "question": "Which orders have shipment? Give me the order ids.", "question_toks": ["Which", "orders", "have", "shipment", "?", "Give", "me", "the", "order", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6922", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0082", "db_id": "tracking_orders", "query": "select invoice_number from invoices", "query_toks": ["SELECT", "invoice_number", "FROM", "invoices"], "query_toks_no_value": ["SELECT", "invoice_number", "FROM", "invoices"], "question": "Find the invoice numbers.", "question_toks": ["Find", "the", "invoice", "numbers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6933", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0083", "db_id": "tracking_orders", "query": "select invoice_number from invoices", "query_toks": ["SELECT", "invoice_number", "FROM", "invoices"], "query_toks_no_value": ["SELECT", "invoice_number", "FROM", "invoices"], "question": "What are the invoice numbers?", "question_toks": ["What", "are", "the", "invoice", "numbers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6934", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0084", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices", "query_toks": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices"], "query_toks_no_value": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices"], "question": "Find the distinct details of invoices", "question_toks": ["Find", "the", "distinct", "details", "of", "invoices"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6935", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0085", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices", "query_toks": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices"], "query_toks_no_value": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices"], "question": "What are the distinct details of invoices?", "question_toks": ["What", "are", "the", "distinct", "details", "of", "invoices", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6936", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0086", "db_id": "tracking_software_problems", "query": "select problem_id from problems", "query_toks": ["SELECT", "problem_id", "FROM", "problems"], "query_toks_no_value": ["SELECT", "problem_id", "FROM", "problems"], "question": "What are the ids of the problems?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5372", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0087", "db_id": "tracking_software_problems", "query": "select problem_id from problems", "query_toks": ["SELECT", "problem_id", "FROM", "problems"], "query_toks_no_value": ["SELECT", "problem_id", "FROM", "problems"], "question": "Find the ids of the problems.", "question_toks": ["Find", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5373", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0088", "db_id": "tracking_software_problems", "query": "select problem_id from problems", "query_toks": ["SELECT", "problem_id", "FROM", "problems"], "query_toks_no_value": ["SELECT", "problem_id", "FROM", "problems"], "question": "What are the ids of the problems?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5374", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0089", "db_id": "tracking_software_problems", "query": "select problem_id from problems", "query_toks": ["SELECT", "problem_id", "FROM", "problems"], "query_toks_no_value": ["SELECT", "problem_id", "FROM", "problems"], "question": "Which problems are reported? Give me the ids of the problems.", "question_toks": ["Which", "problems", "are", "reported", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5375", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0090", "db_id": "tracking_software_problems", "query": "select count(*) , t2.product_id from problems as t1 join product as t2 on t1.product_id = t2.product_id group by t2.product_id", "query_toks": ["SELECT", "count", "(*)", ",", "T2", ".", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "GROUP", "BY", "T2", ".", "product_id"], "query_toks_no_value": ["SELECT", "count", "(*)", ",", "T2", ".", "product_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "GROUP", "BY", "T2", ".", "product_id"], "question": "For each product that has problems, find the number of problems and the product id", "question_toks": ["For", "each", "product", "that", "has", "problems", ",", "find", "the", "number", "of", "problems", "and", "the", "product", "id"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5378", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0091", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\"", "query_toks": ["SELECT", "T1", ".", "problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "WHERE", "T2", ".", "product_name", "=", "``", "voluptatem", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "WHERE", "T2", ".", "product_name", "=", "value"], "question": "List the ids of the problems from the product \"voluptatem\"?", "question_toks": ["List", "the", "ids", "of", "the", "problems", "from", "the", "product", "\"", "voluptatem", "\"?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5394", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0092", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\"", "query_toks": ["SELECT", "T1", ".", "problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "WHERE", "T2", ".", "product_name", "=", "``", "voluptatem", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1", ".", "product_id", "=", "T2", ".", "product_id", "WHERE", "T2", ".", "product_name", "=", "value"], "question": "What are the ids of the problems that are from the product \"voluptatem\"?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "that", "are", "from", "the", "product", "\"", "voluptatem", "\"?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5395", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0093", "db_id": "twitter_1", "query": "select count(distinct id) from tweets", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "tweets"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "tweets"], "question": "How many tweets are generated?", "question_toks": ["How", "many", "tweets", "are", "generated", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0093", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0094", "db_id": "twitter_1", "query": "select text from tweets", "query_toks": ["SELECT", "text", "FROM", "tweets"], "query_toks_no_value": ["SELECT", "text", "FROM", "tweets"], "question": "Tweet texts", "question_toks": ["Tweet", "texts"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0094", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0095", "db_id": "workshop_paper", "query": "select distinct(name) from workshop", "query_toks": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "workshop"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "workshop"], "question": "Names of workshops", "question_toks": ["Names", "of", "workshops"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0095", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0096", "db_id": "workshop_paper", "query": "select distinct(name) from workshop", "query_toks": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "workshop"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "workshop"], "question": "What was the name of the workshop", "question_toks": ["What", "was", "the", "name", "of", "the", "workshop"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_datetime_0096", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0097", "db_id": "world_1", "query": "select count(distinct language) from countrylanguage where isofficial = 't';", "query_toks": ["SELECT", "count", "(", "DISTINCT", "Language", ")", "FROM", "countrylanguage"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "Language", ")", "FROM", "countrylanguage"], "question": "What is the total number of unique official languages spoken in all countries?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "spoken", "in", "all", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0770", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "datetime_0098", "db_id": "world_1", "query": "select count(distinct language) from countrylanguage where isofficial = \"t\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "Language", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "Language", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "value"], "question": "What is the total number of distinct official languages?", "question_toks": ["What", "is", "the", "total", "number", "of", "distinct", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0771", "is_simplification": true, "simplifications_tags": ["DATETIME"]}, {"id": "multi_aggregation_0000", "db_id": "concert_singer", "query": "select avg(age) from singer where country = \"france\"", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What is the average age of all singers from France?", "question_toks": ["What", "is", "the", "average", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0004", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0001", "db_id": "concert_singer", "query": "select min(age) from singer where country = \"france\"", "query_toks": ["SELECT", "min", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "min", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What is the minimum age of singers from France?", "question_toks": ["What", "is", "the", "minimum", "age", "of", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0001", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0002", "db_id": "concert_singer", "query": "select max(age) from singer where country = \"france\"", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What is the maximum age of all singers from France?", "question_toks": ["What", "is", "the", "maximum", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0002", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0003", "db_id": "concert_singer", "query": "select avg(age) from singer where country = \"france\"", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What is the average age for all French singers?", "question_toks": ["What", "is", "the", "average", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0005", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0004", "db_id": "concert_singer", "query": "select min(age) from singer where country = \"france\"", "query_toks": ["SELECT", "min", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "min", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What is the minimum age for all French singers?", "question_toks": ["What", "is", "the", "minimum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0004", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0005", "db_id": "concert_singer", "query": "select max(age) from singer where country = \"france\"", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What is the maximum age for all French singers?", "question_toks": ["What", "is", "the", "maximum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0005", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0006", "db_id": "concert_singer", "query": "select avg(capacity) from stadium", "query_toks": ["select", "avg", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", "from", "stadium"], "question": "What is the average capacities for all stadiums ?", "question_toks": ["What", "is", "the", "average", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0017", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0007", "db_id": "concert_singer", "query": "select max(capacity) from stadium", "query_toks": ["select", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", "from", "stadium"], "question": "What is the maximum capacities for all stadiums ?", "question_toks": ["What", "is", "the", "maximum", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0007", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0008", "db_id": "pets_1", "query": "select avg(pet_age), pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", "),", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["SELECT", "avg", "(", "pet_age", "),", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "question": "Find the average age for each type of pet.", "question_toks": ["Find", "the", "average", "age", "for", "each", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0071", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0009", "db_id": "pets_1", "query": "select max(pet_age), pettype from pets group by pettype", "query_toks": ["SELECT", "max", "(", "pet_age", "),", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["SELECT", "max", "(", "pet_age", "),", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "question": "Find the maximum age for each type of pet.", "question_toks": ["Find", "the", "maximum", "age", "for", "each", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0009", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0010", "db_id": "pets_1", "query": "select avg(pet_age), pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", "),", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["SELECT", "avg", "(", "pet_age", "),", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "question": "What is the average age for each pet type?", "question_toks": ["What", "is", "the", "average", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0072", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0011", "db_id": "pets_1", "query": "select max(pet_age) , pettype from pets group by pettype", "query_toks": ["SELECT", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["SELECT", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "question": "What is the maximum age for each pet type?", "question_toks": ["What", "is", "the", "maximum", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0011", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0012", "db_id": "employee_hire_evaluation", "query": "select min(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "min", "(", "Number_products", ")", "FROM", "shop"], "question": "find the minimum number of products of all stores.", "question_toks": ["find", "the", "minimum", "number", "of", "products", "of", "all", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0271", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0013", "db_id": "employee_hire_evaluation", "query": "select max(number_products) from shop", "query_toks": ["SELECT", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "max", "(", "Number_products", ")", "FROM", "shop"], "question": "find the maximum number of products of all stores.", "question_toks": ["find", "the", "maximum", "number", "of", "products", "of", "all", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0013", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0014", "db_id": "employee_hire_evaluation", "query": "select min(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "min", "(", "Number_products", ")", "FROM", "shop"], "question": "What is the minimum number of products across all the shops?", "question_toks": ["What", "is", "the", "minimum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0272", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0015", "db_id": "employee_hire_evaluation", "query": "select max(number_products) from shop", "query_toks": ["SELECT", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "max", "(", "Number_products", ")", "FROM", "shop"], "question": "What is the maximum number of products across all the shops?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0015", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0016", "db_id": "museum_visit", "query": "select avg(num_of_ticket) from visit", "query_toks": ["SELECT", "avg", "(", "num_of_ticket", ")", "FROM", "visit"], "query_toks_no_value": ["SELECT", "avg", "(", "num_of_ticket", ")", "FROM", "visit"], "question": "What is the average number of tickets bought in all visits?", "question_toks": ["What", "is", "the", "average", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0016", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0017", "db_id": "museum_visit", "query": "select max(num_of_ticket) from visit", "query_toks": ["SELECT", "max", "(", "num_of_ticket", ")", "FROM", "visit"], "query_toks_no_value": ["SELECT", "max", "(", "num_of_ticket", ")", "FROM", "visit"], "question": "What is the maximum number of tickets bought in all visits?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0424", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0018", "db_id": "battle_death", "query": "select max(killed) from death", "query_toks": ["SELECT", "max", "(", "killed", ")", "FROM", "death"], "query_toks_no_value": ["SELECT", "max", "(", "killed", ")", "FROM", "death"], "question": "What is maximum death toll caused each time?", "question_toks": ["What", "is", "maximum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0018", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0019", "db_id": "battle_death", "query": "select min(killed) from death", "query_toks": ["SELECT", "min", "(", "killed", ")", "FROM", "death"], "query_toks_no_value": ["SELECT", "min", "(", "killed", ")", "FROM", "death"], "question": "What is minimum death toll caused each time?", "question_toks": ["What", "is", "minimum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0494", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0020", "db_id": "tvshow", "query": "select min(share) from tv_series", "query_toks": ["SELECT", "min", "(", "SHARE", ")", "FROM", "TV_series"], "query_toks_no_value": ["SELECT", "min", "(", "SHARE", ")", "FROM", "TV_series"], "question": "What is the minimum share of TV series?", "question_toks": ["What", "is", "the", "minimum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0020", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0021", "db_id": "tvshow", "query": "select max(share) from tv_series", "query_toks": ["SELECT", "max", "(", "SHARE", ")", "FROM", "TV_series"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", "FROM", "TV_series"], "question": "What is the maximum share of TV series?", "question_toks": ["What", "is", "the", "maximum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0617", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0022", "db_id": "tvshow", "query": "select max(share) from tv_series", "query_toks": ["SELECT", "max", "(", "SHARE", ")", "FROM", "TV_series"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", "FROM", "TV_series"], "question": "What is the maximum share for the TV series?", "question_toks": ["What", "is", "the", "maximum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0618", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0023", "db_id": "tvshow", "query": "select min(share) from tv_series", "query_toks": ["SELECT", "min", "(", "SHARE", ")", "FROM", "TV_series"], "query_toks_no_value": ["SELECT", "min", "(", "SHARE", ")", "FROM", "TV_series"], "question": "What is the minimum share for the TV series?", "question_toks": ["What", "is", "the", "minimum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0023", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0024", "db_id": "voter_1", "query": "select max(area_code) from area_code_state", "query_toks": ["SELECT", "max", "(", "area_code", ")", "FROM", "area_code_state"], "query_toks_no_value": ["SELECT", "max", "(", "area_code", ")", "FROM", "area_code_state"], "question": "What is the maximum values of area codes?", "question_toks": ["What", "is", "the", "maximum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0690", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0025", "db_id": "voter_1", "query": "select min(area_code) from area_code_state", "query_toks": ["SELECT", "min", "(", "area_code", ")", "FROM", "area_code_state"], "query_toks_no_value": ["SELECT", "min", "(", "area_code", ")", "FROM", "area_code_state"], "question": "What is the minimum values of area codes?", "question_toks": ["What", "is", "the", "minimum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0025", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0026", "db_id": "orchestra", "query": "select max(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "value", "final"], "question": "What is the maximum share of performances whose type is not \"Live final\".", "question_toks": ["What", "is", "the", "maximum", "share", "of", "performances", "whose", "type", "is", "not", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0832", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0027", "db_id": "orchestra", "query": "select min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["SELECT", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "value", "final"], "question": "What is the minimum share of performances whose type is not \"Live final\".", "question_toks": ["What", "is", "the", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0027", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0028", "db_id": "orchestra", "query": "select max(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "value", "final"], "question": "Return the maximum share for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "maximum", "share", "for", "performances", "that", "do", "not", "have", "the", "type", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0833", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0029", "db_id": "orchestra", "query": "select min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["SELECT", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "value", "final"], "question": "Return the minimum share for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "minimum", "share", "for", "performances", "that", "do", "not", "have", "the", "type", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0029", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0030", "db_id": "department_management", "query": "select max(budget_in_billions) from department", "query_toks": ["SELECT", "max", "(", "budget_in_billions", ")", "FROM", "department"], "query_toks_no_value": ["SELECT", "max", "(", "budget_in_billions", ")", "FROM", "department"], "question": "What is the maximum budget of the departments?", "question_toks": ["What", "is", "the", "maximum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0003", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0031", "db_id": "department_management", "query": "select min(budget_in_billions) from department", "query_toks": ["SELECT", "min", "(", "budget_in_billions", ")", "FROM", "department"], "query_toks_no_value": ["SELECT", "min", "(", "budget_in_billions", ")", "FROM", "department"], "question": "What is the minimum budget of the departments?", "question_toks": ["What", "is", "the", "minimum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0031", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0032", "db_id": "farm", "query": "select max(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["SELECT", "max", "(", "Cows", ")", "FROM", "farm"], "question": "What is the maximum number of cows across all farms.", "question_toks": ["What", "is", "the", "maximum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0026", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0033", "db_id": "farm", "query": "select min(cows) from farm", "query_toks": ["SELECT", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["SELECT", "min", "(", "Cows", ")", "FROM", "farm"], "question": "What is the minimum number of cows across all farms.", "question_toks": ["What", "is", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0033", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0034", "db_id": "farm", "query": "select max(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["SELECT", "max", "(", "Cows", ")", "FROM", "farm"], "question": "Return the maximum number of cows across all farms.", "question_toks": ["Return", "the", "maximum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0027", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0035", "db_id": "farm", "query": "select min(cows) from farm", "query_toks": ["SELECT", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["SELECT", "min", "(", "Cows", ")", "FROM", "farm"], "question": "Return the minimum number of cows across all farms.", "question_toks": ["Return", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0035", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0036", "db_id": "bike_1", "query": "select sum(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["SELECT", "sum", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "value"], "question": "What is the total duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "total", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0121", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0037", "db_id": "bike_1", "query": "select max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["SELECT", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "value"], "question": "What is the maximum duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "maximum", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0037", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0038", "db_id": "bike_1", "query": "select sum(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["SELECT", "sum", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "value"], "question": "What is the total duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "total", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0122", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0039", "db_id": "bike_1", "query": "select max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["SELECT", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "value"], "question": "What is the maximum duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "maximum", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0039", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0040", "db_id": "twitter_1", "query": "select max(followers) from user_profiles", "query_toks": ["SELECT", "max", "(", "followers", ")", "FROM", "user_profiles"], "query_toks_no_value": ["SELECT", "max", "(", "followers", ")", "FROM", "user_profiles"], "question": "Find the maximum number of followers of all users.", "question_toks": ["Find", "the", "maximum", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0300", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0041", "db_id": "twitter_1", "query": "select sum(followers) from user_profiles", "query_toks": ["SELECT", "sum", "(", "followers", ")", "FROM", "user_profiles"], "query_toks_no_value": ["SELECT", "sum", "(", "followers", ")", "FROM", "user_profiles"], "question": "Find the total number of followers of all users.", "question_toks": ["Find", "the", "total", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0041", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0042", "db_id": "product_catalog", "query": "select avg(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["SELECT", "avg", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "question": "What is the average price (in Euro) of all products?", "question_toks": ["What", "is", "the", "average", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0321", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0043", "db_id": "product_catalog", "query": "select min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["SELECT", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "question": "What is the minimum price (in Euro) of all products?", "question_toks": ["What", "is", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0043", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0044", "db_id": "product_catalog", "query": "select avg(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["SELECT", "avg", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "question": "Give me the average price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "average", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0322", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0045", "db_id": "product_catalog", "query": "select min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["SELECT", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "question": "Give me the minimum price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0045", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0046", "db_id": "flight_1", "query": "select min(distance) from aircraft", "query_toks": ["SELECT", "min", "(", "distance", ")", "FROM", "Aircraft"], "query_toks_no_value": ["SELECT", "min", "(", "distance", ")", "FROM", "Aircraft"], "question": "What is the minimum distance of all aircrafts.", "question_toks": ["What", "is", "the", "minimum", "distance", "of", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0353", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0047", "db_id": "flight_1", "query": "select avg(distance) from aircraft", "query_toks": ["SELECT", "avg", "(", "distance", ")", "FROM", "Aircraft"], "query_toks_no_value": ["SELECT", "avg", "(", "distance", ")", "FROM", "Aircraft"], "question": "Return the average distances traveled across all aircrafts.", "question_toks": ["Return", "the", "average", "distances", "traveled", "across", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0354", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0048", "db_id": "flight_1", "query": "select max(salary) from employee", "query_toks": ["SELECT", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "max", "(", "salary", ")", "FROM", "Employee"], "question": "What is maximum salary of all employees.", "question_toks": ["What", "is", "maximum", "salary", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0371", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0049", "db_id": "flight_1", "query": "select max(salary) from employee", "query_toks": ["SELECT", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "max", "(", "salary", ")", "FROM", "Employee"], "question": "What is the largest salary of all employees?", "question_toks": ["What", "is", "the", "largest", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0372", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0050", "db_id": "flight_1", "query": "select avg(salary) from employee", "query_toks": ["SELECT", "avg", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "avg", "(", "salary", ")", "FROM", "Employee"], "question": "What is the average salary of all employees?", "question_toks": ["What", "is", "the", "average", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0050", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0051", "db_id": "allergy_1", "query": "select max(age) from student", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "Student"], "query_toks_no_value": ["SELECT", "max", "(", "age", ")", "FROM", "Student"], "question": "Show the maximum age of all students.", "question_toks": ["Show", "the", "maximum", "age", "of", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0483", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0052", "db_id": "allergy_1", "query": "select avg(age) from student", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "Student"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", "FROM", "Student"], "question": "What is the mean age across all students?", "question_toks": ["What", "is", "the", "mean", "age", "across", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0484", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0053", "db_id": "customers_card_transactions", "query": "select sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["SELECT", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "question": "Return the total amount of all transactions.", "question_toks": ["Return", "the", "total", "amount", "of", "all", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0738", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0054", "db_id": "customers_card_transactions", "query": "select avg(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["SELECT", "avg", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "question": "Return the mean transaction amount.", "question_toks": ["Return", "the", "mean", "transaction", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0054", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0055", "db_id": "race_track", "query": "select avg(seating) from track", "query_toks": ["SELECT", "avg", "(", "seating", ")", "FROM", "track"], "query_toks_no_value": ["SELECT", "avg", "(", "seating", ")", "FROM", "track"], "question": "What is the average seating for all tracks.", "question_toks": ["What", "is", "the", "average", "seating", "for", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0755", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0056", "db_id": "race_track", "query": "select max(seating) from track", "query_toks": ["SELECT", "max", "(", "seating", ")", "FROM", "track"], "query_toks_no_value": ["SELECT", "max", "(", "seating", ")", "FROM", "track"], "question": "Return the maximum seating across all tracks.", "question_toks": ["Return", "the", "maximum", "seating", "across", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0756", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0057", "db_id": "chinook_1", "query": "select max(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["SELECT", "max", "(", "Milliseconds", ")", "FROM", "TRACK"], "question": "What are the durations of the longest track in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "longest", "track", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0831", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0058", "db_id": "chinook_1", "query": "select min(milliseconds) from track", "query_toks": ["SELECT", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["SELECT", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "question": "What are the durations of the shortest tracks in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "shortest", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0058", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0059", "db_id": "chinook_1", "query": "select max(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["SELECT", "max", "(", "Milliseconds", ")", "FROM", "TRACK"], "question": "Find the maximum durations of tracks in milliseconds.", "question_toks": ["Find", "the", "maximum", "durations", "of", "tracks", "in", "milliseconds", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0832", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0060", "db_id": "chinook_1", "query": "select min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["SELECT", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "``", "pop", "''"], "query_toks_no_value": ["SELECT", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "value"], "question": "Find the minimum millisecond lengths of pop tracks.", "question_toks": ["Find", "the", "minimum", "millisecond", "lengths", "of", "pop", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0882", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0061", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["SELECT", "sum", "(", "settlement_amount", ")", "FROM", "settlements"], "question": "Find the total amount of settlements.", "question_toks": ["Find", "the", "total", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0901", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0062", "db_id": "insurance_fnol", "query": "select avg(settlement_amount) from settlements", "query_toks": ["SELECT", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["SELECT", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "question": "Find the average amount of settlements.", "question_toks": ["Find", "the", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0062", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0063", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["SELECT", "sum", "(", "settlement_amount", ")", "FROM", "settlements"], "question": "Return the sum of all settlement amounts.", "question_toks": ["Return", "the", "sum", "of", "all", "settlement", "amounts", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0902", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0064", "db_id": "insurance_fnol", "query": "select max(settlement_amount) from settlements", "query_toks": ["SELECT", "max", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["SELECT", "max", "(", "settlement_amount", ")", "FROM", "settlements"], "question": "What are the maximum settlement amount on record?", "question_toks": ["What", "are", "the", "maximum", "settlement", "amount", "on", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0927", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0065", "db_id": "insurance_fnol", "query": "select min(settlement_amount) from settlements", "query_toks": ["SELECT", "min", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["SELECT", "min", "(", "settlement_amount", ")", "FROM", "settlements"], "question": "Find the minimum settlement amount.", "question_toks": ["Find", "the", "minimum", "settlement", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0928", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0066", "db_id": "university_basketball", "query": "select sum(enrollment) from university", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", "FROM", "university"], "query_toks_no_value": ["SELECT", "sum", "(", "enrollment", ")", "FROM", "university"], "question": "What is the total enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0999", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0067", "db_id": "university_basketball", "query": "select min(enrollment) from university", "query_toks": ["SELECT", "min", "(", "enrollment", ")", "FROM", "university"], "query_toks_no_value": ["SELECT", "min", "(", "enrollment", ")", "FROM", "university"], "question": "Return the minimum enrollments across all schools.", "question_toks": ["Return", "the", "minimum", "enrollments", "across", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1000", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0068", "db_id": "phone_1", "query": "select max(t1.ram_mib) from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t2.company_name = \"nokia corporation\"", "query_toks": ["SELECT", "max", "(", "T1", ".", "RAM_MiB", ")", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Model_name", "=", "T2", ".", "chip_model", "WHERE", "T2", ".", "Company_name", "=", "``", "nokia", "corporation", "''"], "query_toks_no_value": ["SELECT", "max", "(", "T1", ".", "RAM_MiB", ")", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Model_name", "=", "T2", ".", "chip_model", "WHERE", "T2", ".", "Company_name", "=", "value", "corporation"], "question": "What is maximum RAM size of phone produced by company named \"Nokia Corporation\"?", "question_toks": ["What", "is", "maximum", "RAM", "size", "of", "phone", "produced", "by", "company", "named", "\"", "Nokia", "Corporation", "\"?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"nokia corporation\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1027", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0069", "db_id": "phone_1", "query": "select min(used_kb) , avg(used_kb) from screen_mode", "query_toks": ["SELECT", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "FROM", "screen_mode"], "query_toks_no_value": ["SELECT", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "FROM", "screen_mode"], "question": "List the minimum and average number of used kb in screen mode.", "question_toks": ["List", "the", "minimum", "and", "average", "number", "of", "used", "kb", "in", "screen", "mode", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]], [5, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1035", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0070", "db_id": "election_representative", "query": "select min(vote_percent) from election", "query_toks": ["SELECT", "min", "(", "Vote_Percent", ")", "FROM", "election"], "query_toks_no_value": ["SELECT", "min", "(", "Vote_Percent", ")", "FROM", "election"], "question": "What are the minimum vote percents of elections?", "question_toks": ["What", "are", "the", "minimum", "vote", "percents", "of", "elections", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1177", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0071", "db_id": "apartment_rentals", "query": "select max(bathroom_count) from apartments", "query_toks": ["SELECT", "max", "(", "bathroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["SELECT", "max", "(", "bathroom_count", ")", "FROM", "Apartments"], "question": "What is the maximum number of bathrooms of all the apartments?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "bathrooms", "of", "all", "the", "apartments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1206", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0072", "db_id": "apartment_rentals", "query": "select min(bathroom_count) from apartments", "query_toks": ["SELECT", "min", "(", "bathroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["SELECT", "min", "(", "bathroom_count", ")", "FROM", "Apartments"], "question": "Give me the minimum bathroom count among all the apartments.", "question_toks": ["Give", "me", "the", "minimum", "bathroom", "count", "among", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1207", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0073", "db_id": "apartment_rentals", "query": "select apt_type_code , max(room_count) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "query_toks_no_value": ["SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "question": "Show each apartment type code, and the maximum number of rooms for each type.", "question_toks": ["Show", "each", "apartment", "type", "code", ",", "and", "the", "maximum", "number", "of", "rooms", "for", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1264", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0074", "db_id": "apartment_rentals", "query": "select apt_type_code , min(room_count) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "query_toks_no_value": ["SELECT", "apt_type_code", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "question": "Return each apartment type code along with the minimum number of rooms among each type.", "question_toks": ["Return", "each", "apartment", "type", "code", "along", "with", "the", "minimum", "number", "of", "rooms", "among", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1265", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0075", "db_id": "game_injury", "query": "select name, avg(home_games) from stadium group by name;", "query_toks": ["SELECT", "avg", "(", "home_games", ")", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "avg", "(", "home_games", ")", "FROM", "stadium"], "question": "What are the average home games each stadium held?", "question_toks": ["What", "are", "the", "average", "home", "games", "each", "stadium", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1277", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0076", "db_id": "soccer_1", "query": "select min(height) from player;", "query_toks": ["SELECT", "min", "(", "weight", ")", "FROM", "Player"], "query_toks_no_value": ["SELECT", "min", "(", "weight", ")", "FROM", "Player"], "question": "What is the minimum height of all players?", "question_toks": ["What", "is", "the", "minimum", "height", "of", "all", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 51, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1296", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0077", "db_id": "college_2", "query": "select avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["SELECT", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "question": "Find the average capacity among rooms in each building.", "question_toks": ["Find", "the", "average", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1394", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0078", "db_id": "college_2", "query": "select max(capacity) building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["SELECT", "max", "(", "capacity", ")", "building", "FROM", "classroom", "GROUP", "BY", "building"], "question": "Find the maximum capacity among rooms in each building.", "question_toks": ["Find", "the", "maximum", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0078", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0079", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "question": "What is the greatest capacity for rooms in each building?", "question_toks": ["What", "is", "the", "greatest", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1395", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0080", "db_id": "college_2", "query": "select avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["SELECT", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "question": "What is the average capacity for rooms in each building?", "question_toks": ["What", "is", "the", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0080", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0081", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) from claim_headers", "query_toks": ["SELECT", "sum", "(", "amount_piad", ")", "FROM", "claim_headers"], "query_toks_no_value": ["SELECT", "sum", "(", "amount_piad", ")", "FROM", "claim_headers"], "question": "Find the total amount paid in claim headers.", "question_toks": ["Find", "the", "total", "amount", "paid", "in", "claim", "headers", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1515", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0082", "db_id": "insurance_and_eClaims", "query": "select avg(amount_piad) from claim_headers", "query_toks": ["SELECT", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "query_toks_no_value": ["SELECT", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "question": "What are the average amount paid in claim headers?", "question_toks": ["What", "are", "the", "average", "amount", "paid", "in", "claim", "headers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1516", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0083", "db_id": "customers_and_invoices", "query": "select sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["SELECT", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "question": "What is the total transaction amount?", "question_toks": ["What", "is", "the", "total", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1583", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0084", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["SELECT", "avg", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "question": "What is the average transaction amount?", "question_toks": ["What", "is", "the", "average", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0084", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0085", "db_id": "customers_and_invoices", "query": "select min(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "min", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["SELECT", "min", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "question": "Return the minimum transaction amounts.", "question_toks": ["Return", "the", "minimum", "transaction", "amounts", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0085", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0086", "db_id": "wedding", "query": "select max(age) from people", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "people"], "query_toks_no_value": ["SELECT", "max", "(", "age", ")", "FROM", "people"], "question": "Show the maximum age for all people.", "question_toks": ["Show", "the", "maximum", "age", "for", "all", "people", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1638", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0087", "db_id": "theme_gallery", "query": "select avg(age) from artist where country = \"united states\"", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "``", "united", "states", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "value", "states"], "question": "What is the average age of all artists from United States.", "question_toks": ["What", "is", "the", "average", "age", "of", "all", "artists", "from", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"united states\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1659", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0088", "db_id": "theme_gallery", "query": "select min(age) from artist where country = \"united states\"", "query_toks": ["SELECT", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "``", "united", "states", "''"], "query_toks_no_value": ["SELECT", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "value", "states"], "question": "Return the minimum ages across artists from the United States.", "question_toks": ["Return", "the", "minimum", "ages", "across", "artists", "from", "the", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"united states\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1660", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0089", "db_id": "theme_gallery", "query": "select max(ticket_price) from exhibition where year < 2009", "query_toks": ["SELECT", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009"], "query_toks_no_value": ["SELECT", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "value"], "question": "Show the maximum ticket prices for exhibitions for all years before 2009.", "question_toks": ["Show", "the", "maximum", "ticket", "prices", "for", "exhibitions", "for", "all", "years", "before", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1675", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0090", "db_id": "theme_gallery", "query": "select avg(ticket_price) from exhibition where year < 2009", "query_toks": ["SELECT", "avg", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009"], "query_toks_no_value": ["SELECT", "avg", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "value"], "question": "What are the average ticket prices for exhibitions that happened prior to 2009?", "question_toks": ["What", "are", "the", "average", "ticket", "prices", "for", "exhibitions", "that", "happened", "prior", "to", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1676", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0091", "db_id": "epinions_1", "query": "select max(rating) from review", "query_toks": ["SELECT", "max", "(", "rating", ")", "FROM", "review"], "query_toks_no_value": ["SELECT", "max", "(", "rating", ")", "FROM", "review"], "question": "Find the maximum rating of all reviews.", "question_toks": ["Find", "the", "maximum", "rating", "of", "all", "reviews", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1693", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0092", "db_id": "browser_web", "query": "select min(market_share) from browser", "query_toks": ["SELECT", "min", "(", "market_share", ")", "FROM", "browser"], "query_toks_no_value": ["SELECT", "min", "(", "market_share", ")", "FROM", "browser"], "question": "What is the minimum market share of the listed browsers?", "question_toks": ["What", "is", "the", "minimum", "market", "share", "of", "the", "listed", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1829", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0093", "db_id": "school_finance", "query": "select sum(enrollment) from school", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["SELECT", "sum", "(", "enrollment", ")", "FROM", "school"], "question": "What is the total enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1888", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0094", "db_id": "school_finance", "query": "select avg(enrollment) from school", "query_toks": ["SELECT", "avg", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["SELECT", "avg", "(", "enrollment", ")", "FROM", "school"], "question": "What is the average enrollment of all schools?", "question_toks": ["What", "is", "the", "average", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0094", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0095", "db_id": "school_finance", "query": "select min(enrollment) from school", "query_toks": ["SELECT", "min", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["SELECT", "min", "(", "enrollment", ")", "FROM", "school"], "question": "Show the minimum enrollment of all schools.", "question_toks": ["Show", "the", "minimum", "enrollment", "of", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1891", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0096", "db_id": "protein_institute", "query": "select avg(floors) from building", "query_toks": ["SELECT", "avg", "(", "floors", ")", "FROM", "building"], "query_toks_no_value": ["SELECT", "avg", "(", "floors", ")", "FROM", "building"], "question": "What is the average number of floors for all buildings?", "question_toks": ["What", "is", "the", "average", "number", "of", "floors", "for", "all", "buildings", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1913", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0097", "db_id": "cinema", "query": "select min(capacity) from cinema where openning_year >= 2011", "query_toks": ["SELECT", "min", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">=", "2011"], "query_toks_no_value": ["SELECT", "min", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">=", "value"], "question": "Show the minimum capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "the", "minimum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1940", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0098", "db_id": "products_for_hire", "query": "select max(booked_count) from products_booked", "query_toks": ["SELECT", "max", "(", "booked_count", ")", "FROM", "products_booked"], "query_toks_no_value": ["SELECT", "max", "(", "booked_count", ")", "FROM", "products_booked"], "question": "What are the maximum booked count for the products booked?", "question_toks": ["What", "are", "the", "maximum", "booked", "count", "for", "the", "products", "booked", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1971", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0099", "db_id": "gas_company", "query": "select avg(market_value) from company", "query_toks": ["SELECT", "avg", "(", "market_value", ")", "FROM", "company"], "query_toks_no_value": ["SELECT", "avg", "(", "market_value", ")", "FROM", "company"], "question": "Show average market value for all companies.", "question_toks": ["Show", "average", "market", "value", "for", "all", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2001", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0100", "db_id": "gas_company", "query": "select company, min(market_value) from company group by company;", "query_toks": ["SELECT", "min", "(", "market_value", ")", "FROM", "company"], "query_toks_no_value": ["SELECT", "min", "(", "market_value", ")", "FROM", "company"], "question": "What is the minimum market value for every company?", "question_toks": ["What", "is", "the", "minimum", "market", "value", "for", "every", "company", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2002", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0101", "db_id": "candidate_poll", "query": "select avg(weight), sex from people group by sex", "query_toks": ["SELECT", "avg", "(", "weight", "),", "sex", "FROM", "people", "GROUP", "BY", "sex"], "query_toks_no_value": ["SELECT", "avg", "(", "weight", "),", "sex", "FROM", "people", "GROUP", "BY", "sex"], "question": "Find the average weight for each gender.", "question_toks": ["Find", "the", "average", "weight", "for", "each", "gender", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2412", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0102", "db_id": "candidate_poll", "query": "select min(weight) , sex from people group by sex", "query_toks": ["SELECT", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "query_toks_no_value": ["SELECT", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "question": "What is the minimum weights for people of each sex?", "question_toks": ["What", "is", "the", "minimum", "weights", "for", "people", "of", "each", "sex", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2413", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0103", "db_id": "movie_1", "query": "select min(stars) from rating", "query_toks": ["SELECT", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "min", "(", "stars", ")", "FROM", "Rating"], "question": "What is the lowest rating star?", "question_toks": ["What", "is", "the", "lowest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2450", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0104", "db_id": "movie_1", "query": "select max(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "max", "(", "stars", ")", "FROM", "Rating"], "question": "What is the highest rating star?", "question_toks": ["What", "is", "the", "highest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0104", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0105", "db_id": "movie_1", "query": "select max(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "max", "(", "stars", ")", "FROM", "Rating"], "question": "What is the maximum number of stars a rating can receive?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "stars", "a", "rating", "can", "receive", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2451", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0106", "db_id": "county_public_safety", "query": "select min(crime_rate) from county_public_safety", "query_toks": ["SELECT", "min", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "query_toks_no_value": ["SELECT", "min", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "question": "What is the minimum crime rate of counties?", "question_toks": ["What", "is", "the", "minimum", "crime", "rate", "of", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2538", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0107", "db_id": "county_public_safety", "query": "select max(crime_rate) from county_public_safety", "query_toks": ["SELECT", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "query_toks_no_value": ["SELECT", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "question": "Return the maximum crime rates across all counties.", "question_toks": ["Return", "the", "maximum", "crime", "rates", "across", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2539", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0108", "db_id": "inn_1", "query": "select decor , avg(baseprice) from rooms group by decor", "query_toks": ["SELECT", "decor", ",", "avg", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor"], "query_toks_no_value": ["SELECT", "decor", ",", "avg", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor"], "question": "Find the average price of the rooms in different decor.", "question_toks": ["Find", "the", "average", "price", "of", "the", "rooms", "in", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [5, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2620", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0109", "db_id": "inn_1", "query": "select decor , min(baseprice) from rooms group by decor", "query_toks": ["SELECT", "decor", ",", "min", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor"], "query_toks_no_value": ["SELECT", "decor", ",", "min", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor"], "question": "What is the minimum price of the rooms for each different decor.", "question_toks": ["What", "is", "the", "minimum", "price", "of", "the", "rooms", "for", "each", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0109", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0110", "db_id": "storm_record", "query": "select avg(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["SELECT", "avg", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000"], "query_toks_no_value": ["SELECT", "avg", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "value"], "question": "Show the average damage for all storms with max speed higher than 1000.", "question_toks": ["Show", "the", "average", "damage", "for", "all", "storms", "with", "max", "speed", "higher", "than", "1000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2702", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0111", "db_id": "storm_record", "query": "select max(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["SELECT", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000"], "query_toks_no_value": ["SELECT", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "value"], "question": "What is the maximum damage in millions for storms that had a max speed over 1000?", "question_toks": ["What", "is", "the", "maximum", "damage", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "over", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2703", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0112", "db_id": "election", "query": "select min(population) from county", "query_toks": ["SELECT", "min", "(", "Population", ")", "FROM", "county"], "query_toks_no_value": ["SELECT", "min", "(", "Population", ")", "FROM", "county"], "question": "Return the minimum population among all counties.", "question_toks": ["Return", "the", "minimum", "population", "among", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2740", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0113", "db_id": "election", "query": "select max(population) from county", "query_toks": ["SELECT", "max", "(", "Population", ")", "FROM", "county"], "query_toks_no_value": ["SELECT", "max", "(", "Population", ")", "FROM", "county"], "question": "What is the maximum population of the counties?", "question_toks": ["What", "is", "the", "maximum", "population", "of", "the", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2741", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0114", "db_id": "news_report", "query": "select avg(event_attendance) from event", "query_toks": ["SELECT", "avg", "(", "Event_Attendance", ")", "FROM", "event"], "query_toks_no_value": ["SELECT", "avg", "(", "Event_Attendance", ")", "FROM", "event"], "question": "what is the average attendance of all events?", "question_toks": ["what", "is", "the", "average", "attendance", "of", "all", "events", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2817", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0115", "db_id": "behavior_monitoring", "query": "select max(monthly_rental) from student_addresses", "query_toks": ["SELECT", "max", "(", "monthly_rental", ")", "FROM", "Student_Addresses"], "query_toks_no_value": ["SELECT", "max", "(", "monthly_rental", ")", "FROM", "Student_Addresses"], "question": "Find the maximum monthly rental for all student addresses.", "question_toks": ["Find", "the", "maximum", "monthly", "rental", "for", "all", "student", "addresses", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[1, [0, [0, 60, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3098", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0116", "db_id": "college_1", "query": "select min(stu_gpa), dept_code from student group by dept_code", "query_toks": ["SELECT", "min", "(", "stu_gpa", "),", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "min", "(", "stu_gpa", "),", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "Find the minimum gpa of all students in each department.", "question_toks": ["Find", "the", "minimum", "gpa", "of", "all", "students", "in", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3221", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0117", "db_id": "college_1", "query": "select max(stu_gpa), dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", "),", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "max", "(", "stu_gpa", "),", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "What is the highest student GPA for every department?", "question_toks": ["What", "is", "the", "highest", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3222", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0118", "db_id": "college_1", "query": "select min(stu_gpa), dept_code from student group by dept_code", "query_toks": ["SELECT", "min", "(", "stu_gpa", "),", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "min", "(", "stu_gpa", "),", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "What is the lowest student GPA for every department?", "question_toks": ["What", "is", "the", "lowest", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0118", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0119", "db_id": "college_1", "query": "select avg(stu_gpa), dept_code from student group by dept_code", "query_toks": ["SELECT", "avg", "(", "stu_gpa", "),", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "avg", "(", "stu_gpa", "),", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "What is the average student GPA for every department?", "question_toks": ["What", "is", "the", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0119", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0120", "db_id": "sports_competition", "query": "select max(silver) from club_rank", "query_toks": ["SELECT", "max", "(", "Silver", ")", "FROM", "club_rank"], "query_toks_no_value": ["SELECT", "max", "(", "Silver", ")", "FROM", "club_rank"], "question": "What is the maximum number of silver medals for clubs.", "question_toks": ["What", "is", "the", "maximum", "number", "of", "silver", "medals", "for", "clubs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3347", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0121", "db_id": "sports_competition", "query": "select min(silver) from club_rank", "query_toks": ["SELECT", "min", "(", "Silver", ")", "FROM", "club_rank"], "query_toks_no_value": ["SELECT", "min", "(", "Silver", ")", "FROM", "club_rank"], "question": "What is the minimum number of silver medals for all the clubs?", "question_toks": ["What", "is", "the", "minimum", "number", "of", "silver", "medals", "for", "all", "the", "clubs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3348", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0122", "db_id": "music_1", "query": "select max(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "max", "(", "T2", ".", "resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "WHERE", "T1", ".", "duration", "LIKE", "``", "3", ":%\""], "query_toks_no_value": ["SELECT", "max", "(", "T2", ".", "resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "WHERE", "T1", ".", "duration", "LIKE", "value", ":%\""], "question": "What is the maximum resolution of songs whose duration is 3 minutes?", "question_toks": ["What", "is", "the", "maximum", "resolution", "of", "songs", "whose", "duration", "is", "3", "minutes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3599", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0123", "db_id": "music_1", "query": "select min(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "min", "(", "T2", ".", "resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "WHERE", "T1", ".", "duration", "LIKE", "``", "3", ":%\""], "query_toks_no_value": ["SELECT", "min", "(", "T2", ".", "resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "WHERE", "T1", ".", "duration", "LIKE", "value", ":%\""], "question": "What is the minimum resolution of all songs that are approximately 3 minutes long?", "question_toks": ["What", "is", "the", "minimum", "resolution", "of", "all", "songs", "that", "are", "approximately", "3", "minutes", "long", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3600", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0124", "db_id": "mountain_photos", "query": "select avg(height) from mountain", "query_toks": ["SELECT", "avg", "(", "height", ")", "FROM", "mountain"], "query_toks_no_value": ["SELECT", "avg", "(", "height", ")", "FROM", "mountain"], "question": "What is the average height of the mountains?", "question_toks": ["What", "is", "the", "average", "height", "of", "the", "mountains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3714", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0125", "db_id": "hospital_1", "query": "select max(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "MAX", "(", "cost", ")", "FROM", "procedures"], "question": "What is the highest cost of procedures?", "question_toks": ["What", "is", "the", "highest", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3966", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0126", "db_id": "hospital_1", "query": "select min(cost) from procedures", "query_toks": ["SELECT", "MIN", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "MIN", "(", "cost", ")", "FROM", "procedures"], "question": "What is the lowest cost of procedures?", "question_toks": ["What", "is", "the", "lowest", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0126", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0127", "db_id": "hospital_1", "query": "select avg(cost) from procedures", "query_toks": ["SELECT", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "AVG", "(", "cost", ")", "FROM", "procedures"], "question": "What is the average cost of procedures?", "question_toks": ["What", "is", "the", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0127", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0128", "db_id": "hospital_1", "query": "select max(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "MAX", "(", "cost", ")", "FROM", "procedures"], "question": "Tell me the highest cost of procedures.", "question_toks": ["Tell", "me", "the", "highest", "cost", "of", "procedures", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3967", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0129", "db_id": "company_employee", "query": "select max(market_value_in_billion) from company", "query_toks": ["SELECT", "max", "(", "Market_Value_in_Billion", ")", "FROM", "company"], "query_toks_no_value": ["SELECT", "max", "(", "Market_Value_in_Billion", ")", "FROM", "company"], "question": "What is the maximum market value of companies?", "question_toks": ["What", "is", "the", "maximum", "market", "value", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4100", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0130", "db_id": "film_rank", "query": "select min(number_cities) from market", "query_toks": ["SELECT", "min", "(", "Number_cities", ")", "FROM", "market"], "query_toks_no_value": ["SELECT", "min", "(", "Number_cities", ")", "FROM", "market"], "question": "What is the minimum number of cities in all markets.", "question_toks": ["What", "is", "the", "minimum", "number", "of", "cities", "in", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4122", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0131", "db_id": "film_rank", "query": "select max(number_cities) from market", "query_toks": ["SELECT", "max", "(", "Number_cities", ")", "FROM", "market"], "query_toks_no_value": ["SELECT", "max", "(", "Number_cities", ")", "FROM", "market"], "question": "Return the maximum number of cities across all markets.", "question_toks": ["Return", "the", "maximum", "number", "of", "cities", "across", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4123", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0132", "db_id": "company_office", "query": "select min(sales_billion) from companies where industry != \"banking\"", "query_toks": ["SELECT", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!=", "``", "banking", "''"], "query_toks_no_value": ["SELECT", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!=", "value"], "question": "What is the minimum sales of the companies whose industries are not \"Banking\".", "question_toks": ["What", "is", "the", "minimum", "sales", "of", "the", "companies", "whose", "industries", "are", "not", "\"", "Banking", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4553", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0133", "db_id": "company_office", "query": "select max(sales_billion) from companies where industry != \"banking\"", "query_toks": ["SELECT", "max", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!=", "``", "banking", "''"], "query_toks_no_value": ["SELECT", "max", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!=", "value"], "question": "Find the maximum sales of the companies that are not in the \"Banking\" industry.", "question_toks": ["Find", "the", "maximum", "sales", "of", "the", "companies", "that", "are", "not", "in", "the", "\"", "Banking", "\"", "industry", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4554", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0134", "db_id": "college_3", "query": "select min(gradepoint) from gradeconversion", "query_toks": ["SELECT", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["SELECT", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "question": "Find the min grade point for all letter grade.", "question_toks": ["Find", "the", "min", "grade", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4649", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0135", "db_id": "college_3", "query": "select max(gradepoint) from gradeconversion", "query_toks": ["SELECT", "max", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["SELECT", "max", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "question": "Find the max grade point for all letter grade.", "question_toks": ["Find", "the", "max", "grade", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0135", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0136", "db_id": "college_3", "query": "select max(gradepoint) from gradeconversion", "query_toks": ["SELECT", "max", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["SELECT", "max", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "question": "What is the maximum grade points?", "question_toks": ["What", "is", "the", "maximum", "grade", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4650", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0137", "db_id": "college_3", "query": "select min(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["SELECT", "min", "(", "T2", ".", "gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1", ".", "Grade", "=", "T2", ".", "lettergrade", "AND", "T1", ".", "StuID", "=", "T3", ".", "StuID", "WHERE", "T3", ".", "city_code", "=", "``", "nyc", "''"], "query_toks_no_value": ["SELECT", "min", "(", "T2", ".", "gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1", ".", "Grade", "=", "T2", ".", "lettergrade", "AND", "T1", ".", "StuID", "=", "T3", ".", "StuID", "WHERE", "T3", ".", "city_code", "=", "value"], "question": "What is the minimum grade point of students who live in NYC?", "question_toks": ["What", "is", "the", "minimum", "grade", "point", "of", "students", "who", "live", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[2, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"nyc\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4701", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0138", "db_id": "college_3", "query": "select max(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["SELECT", "max", "(", "T2", ".", "gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1", ".", "Grade", "=", "T2", ".", "lettergrade", "AND", "T1", ".", "StuID", "=", "T3", ".", "StuID", "WHERE", "T3", ".", "city_code", "=", "``", "nyc", "''"], "query_toks_no_value": ["SELECT", "max", "(", "T2", ".", "gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1", ".", "Grade", "=", "T2", ".", "lettergrade", "AND", "T1", ".", "StuID", "=", "T3", ".", "StuID", "WHERE", "T3", ".", "city_code", "=", "value"], "question": "Give the maximum gradepoints for students living in NYC?", "question_toks": ["Give", "the", "maximum", "gradepoints", "for", "students", "living", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"nyc\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4702", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0139", "db_id": "department_store", "query": "select max(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "max", "(", "customer_code", ")", "FROM", "Customers"], "question": "What is the largest customer codes?", "question_toks": ["What", "is", "the", "largest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4775", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0140", "db_id": "department_store", "query": "select min(customer_code) from customers", "query_toks": ["SELECT", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "min", "(", "customer_code", ")", "FROM", "Customers"], "question": "What is the smallest customer codes?", "question_toks": ["What", "is", "the", "smallest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0140", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0141", "db_id": "department_store", "query": "select max(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "max", "(", "customer_code", ")", "FROM", "Customers"], "question": "Return the maximum customer codes.", "question_toks": ["Return", "the", "maximum", "customer", "codes", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4776", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0142", "db_id": "department_store", "query": "select max(product_price) from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["SELECT", "max", "(", "product_price", ")", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "question": "What is the highest price of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "is", "the", "highest", "price", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4781", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0143", "db_id": "department_store", "query": "select min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["SELECT", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "question": "What is the lowest price of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "is", "the", "lowest", "price", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0143", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0144", "db_id": "department_store", "query": "select max(product_price), product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", "),", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["SELECT", "max", "(", "product_price", "),", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "question": "Give the maximum product price for each product type, grouped and ordered by product type.", "question_toks": ["Give", "the", "maximum", "product", "price", "for", "each", "product", "type", ",", "grouped", "and", "ordered", "by", "product", "type", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4782", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0145", "db_id": "aircraft", "query": "select min(transit_passengers) from airport", "query_toks": ["SELECT", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "query_toks_no_value": ["SELECT", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "question": "What is the minimum number of transit passengers of all aiports.", "question_toks": ["What", "is", "the", "minimum", "number", "of", "transit", "passengers", "of", "all", "aiports", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4807", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0146", "db_id": "aircraft", "query": "select min(transit_passengers) from airport", "query_toks": ["SELECT", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "query_toks_no_value": ["SELECT", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "question": "What is the mininum number of transit passengers for all airports?", "question_toks": ["What", "is", "the", "mininum", "number", "of", "transit", "passengers", "for", "all", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4808", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0147", "db_id": "soccer_2", "query": "select min(hs) from player", "query_toks": ["SELECT", "min", "(", "HS", ")", "FROM", "Player"], "query_toks_no_value": ["SELECT", "min", "(", "HS", ")", "FROM", "Player"], "question": "Find the min training hours of all players.", "question_toks": ["Find", "the", "min", "training", "hours", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4966", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0148", "db_id": "soccer_2", "query": "select avg(hs) from player", "query_toks": ["SELECT", "avg", "(", "HS", ")", "FROM", "Player"], "query_toks_no_value": ["SELECT", "avg", "(", "HS", ")", "FROM", "Player"], "question": "What is the average for the number of hours spent training?", "question_toks": ["What", "is", "the", "average", "for", "the", "number", "of", "hours", "spent", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4967", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0149", "db_id": "soccer_2", "query": "select avg(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["SELECT", "avg", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "value"], "question": "Find the average hours for the students whose tryout decision is yes.", "question_toks": ["Find", "the", "average", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "yes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5010", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0150", "db_id": "soccer_2", "query": "select max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["SELECT", "max", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "max", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "value"], "question": "What is the maximum number of hours students who made the team practiced?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5011", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0151", "db_id": "cre_Drama_Workshop_Groups", "query": "select avg(order_quantity) from invoices", "query_toks": ["SELECT", "avg", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "query_toks_no_value": ["SELECT", "avg", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "question": "Show the average order quantity of all invoices.", "question_toks": ["Show", "the", "average", "order", "quantity", "of", "all", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[5, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5102", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0152", "db_id": "cre_Drama_Workshop_Groups", "query": "select min(order_quantity) from invoices", "query_toks": ["SELECT", "min", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "query_toks_no_value": ["SELECT", "min", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "question": "What is the minimum quantity ordered? Check all the invoices.", "question_toks": ["What", "is", "the", "minimum", "quantity", "ordered", "?", "Check", "all", "the", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[2, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5103", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0153", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers", "query_toks": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers"], "query_toks_no_value": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers"], "question": "What is the total revenue of all companies?", "question_toks": ["What", "is", "the", "total", "revenue", "of", "all", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5278", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0154", "db_id": "manufactory_1", "query": "select avg(revenue) from manufacturers", "query_toks": ["SELECT", "avg", "(", "revenue", ")", "FROM", "manufacturers"], "query_toks_no_value": ["SELECT", "avg", "(", "revenue", ")", "FROM", "manufacturers"], "question": "Return the average revenue across all manufacturers.", "question_toks": ["Return", "the", "average", "revenue", "across", "all", "manufacturers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5279", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0155", "db_id": "shop_membership", "query": "select min(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "``", "london", "''"], "query_toks_no_value": ["SELECT", "min", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "value", "OR", "city", "=", "value"], "question": "Show minimum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": ["Show", "minimum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5410", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0156", "db_id": "shop_membership", "query": "select max(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["SELECT", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "``", "london", "''"], "query_toks_no_value": ["SELECT", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "value", "OR", "city", "=", "value"], "question": "What is the maximum membership amount for all branches that either opened in 2011 or are located in London?", "question_toks": ["What", "is", "the", "maximum", "membership", "amount", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5411", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0157", "db_id": "voter_2", "query": "select min(age) from student where major = 600", "query_toks": ["SELECT", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["SELECT", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "value"], "question": "What is the minimum age of students with major 600?", "question_toks": ["What", "is", "the", "minimum", "age", "of", "students", "with", "major", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5460", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0158", "db_id": "voter_2", "query": "select max(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["SELECT", "max", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "value"], "question": "Tell me the ages of the oldest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "oldest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5461", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0159", "db_id": "voter_2", "query": "select min(age) from student where major = 600", "query_toks": ["SELECT", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["SELECT", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "value"], "question": "Tell me the ages of the youngest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "youngest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_multi_aggregation_0159", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0160", "db_id": "customers_and_products_contacts", "query": "select avg(product_price) from products", "query_toks": ["SELECT", "avg", "(", "product_price", ")", "FROM", "products"], "query_toks_no_value": ["SELECT", "avg", "(", "product_price", ")", "FROM", "products"], "question": "Show the average price for all products.", "question_toks": ["Show", "the", "average", "price", "for", "all", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5662", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0161", "db_id": "dorm_1", "query": "select sum(student_capacity) from dorm where gender = \"x\"", "query_toks": ["SELECT", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "``", "x", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "value"], "question": "Find the total capacity of dorms for the students with gender X.", "question_toks": ["Find", "the", "total", "capacity", "of", "dorms", "for", "the", "students", "with", "gender", "X", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"x\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5688", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0162", "db_id": "dorm_1", "query": "select avg(student_capacity) from dorm where gender = \"x\"", "query_toks": ["SELECT", "avg", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "``", "x", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "value"], "question": "What is the average capacity for all dorms who are of gender X?", "question_toks": ["What", "is", "the", "average", "capacity", "for", "all", "dorms", "who", "are", "of", "gender", "X", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"x\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5689", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0163", "db_id": "dorm_1", "query": "select max(age) , sex from student group by sex", "query_toks": ["SELECT", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["SELECT", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "question": "Find the oldest age for students with different sex.", "question_toks": ["Find", "the", "oldest", "age", "for", "students", "with", "different", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5722", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0164", "db_id": "dorm_1", "query": "select avg(age), sex from student group by sex", "query_toks": ["SELECT", "avg", "(", "age", "),", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["SELECT", "avg", "(", "age", "),", "sex", "FROM", "student", "GROUP", "BY", "sex"], "question": "What is the average age for each gender of student?", "question_toks": ["What", "is", "the", "average", "age", "for", "each", "gender", "of", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5723", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0165", "db_id": "music_4", "query": "select max(weeks_on_top) from volume", "query_toks": ["SELECT", "max", "(", "Weeks_on_Top", ")", "FROM", "volume"], "query_toks_no_value": ["SELECT", "max", "(", "Weeks_on_Top", ")", "FROM", "volume"], "question": "What is the maximum week on top of all volumes?", "question_toks": ["What", "is", "the", "maximum", "week", "on", "top", "of", "all", "volumes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6157", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0166", "db_id": "music_4", "query": "select min(weeks_on_top) from volume", "query_toks": ["SELECT", "min", "(", "Weeks_on_Top", ")", "FROM", "volume"], "query_toks_no_value": ["SELECT", "min", "(", "Weeks_on_Top", ")", "FROM", "volume"], "question": "Give the minimum weeks on top across all volumes.", "question_toks": ["Give", "the", "minimum", "weeks", "on", "top", "across", "all", "volumes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6158", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0167", "db_id": "ship_1", "query": "select avg(age), class from captain group by class", "query_toks": ["SELECT", "avg", "(", "age", "),", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "query_toks_no_value": ["SELECT", "avg", "(", "age", "),", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "question": "What is the average age of captains in different class?", "question_toks": ["What", "is", "the", "average", "age", "of", "captains", "in", "different", "class", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6236", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0168", "db_id": "ship_1", "query": "select min(age), class from captain group by class", "query_toks": ["SELECT", "min", "(", "age", "),", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "query_toks_no_value": ["SELECT", "min", "(", "age", "),", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "question": "Return the minimum age of captains in each class.", "question_toks": ["Return", "the", "minimum", "age", "of", "captains", "in", "each", "class", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6237", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0169", "db_id": "school_bus", "query": "select max(years_working) from school_bus", "query_toks": ["SELECT", "max", "(", "years_working", ")", "FROM", "school_bus"], "query_toks_no_value": ["SELECT", "max", "(", "years_working", ")", "FROM", "school_bus"], "question": "What is the maximum year spent working on a school bus?", "question_toks": ["What", "is", "the", "maximum", "year", "spent", "working", "on", "a", "school", "bus", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6360", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0170", "db_id": "driving_school", "query": "select avg(amount_outstanding) from customers", "query_toks": ["SELECT", "avg", "(", "amount_outstanding", ")", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "avg", "(", "amount_outstanding", ")", "FROM", "Customers"], "question": "What is average amount of outstanding of customer?", "question_toks": ["What", "is", "average", "amount", "of", "outstanding", "of", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6678", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0171", "db_id": "driving_school", "query": "select max(amount_outstanding) from customers", "query_toks": ["SELECT", "max", "(", "amount_outstanding", ")", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "max", "(", "amount_outstanding", ")", "FROM", "Customers"], "question": "What is the maximum amount of money outsanding for all customers?", "question_toks": ["What", "is", "the", "maximum", "amount", "of", "money", "outsanding", "for", "all", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6679", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0172", "db_id": "culture_company", "query": "select avg(budget_million) from movie where year < 2000", "query_toks": ["SELECT", "avg", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000"], "query_toks_no_value": ["SELECT", "avg", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "value"], "question": "What is the average budget for all movies before 2000.", "question_toks": ["What", "is", "the", "average", "budget", "for", "all", "movies", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6992", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "multi_aggregation_0173", "db_id": "culture_company", "query": "select min(budget_million) from movie where year < 2000", "query_toks": ["SELECT", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000"], "query_toks_no_value": ["SELECT", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "value"], "question": "Return the minimum budgets in millions for movies made before the year 2000.", "question_toks": ["Return", "the", "minimum", "budgets", "in", "millions", "for", "movies", "made", "before", "the", "year", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6993", "is_simplification": true, "simplifications_tags": ["MULTI_AGGREGATION"]}, {"id": "hidden_sum_0000", "db_id": "sports_competition", "query": "select sum(points) from player", "query_toks": ["SELECT", "sum", "(", "Points", ")", "FROM", "player"], "query_toks_no_value": ["SELECT", "sum", "(", "Points", ")", "FROM", "player"], "question": "Show sum points of all players.", "question_toks": ["Show", "sum", "points", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3375", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0001", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "Fname", "=", "``", "david", "''", "AND", "T2", ".", "Lname", "=", "``", "shieber", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "Fname", "=", "value", "AND", "T2", ".", "Lname", "=", "value"], "question": "Show sum of hours per week and nubmer of games played for student David Shieber.", "question_toks": ["Show", "sum", "of", "hours", "per", "week", "and", "nubmer", "of", "games", "played", "for", "student", "David", "Shieber", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6029", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0002", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "age", "<", "20"], "query_toks_no_value": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "age", "<", "value"], "question": "Show sum of hours per week and number of games played for students under 20.", "question_toks": ["Show", "sum", "of", "hours", "per", "week", "and", "number", "of", "games", "played", "for", "students", "under", "20", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6031", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0003", "db_id": "employee_hire_evaluation", "query": "select sum(bonus) from evaluation", "query_toks": ["SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation"], "query_toks_no_value": ["SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation"], "question": "What is sum of bonus given in all evaluations?", "question_toks": ["What", "is", "sum", "of", "bonus", "given", "in", "all", "evaluations", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0289", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0004", "db_id": "cinema", "query": "select t2.name , sum(t1.show_times_per_day) from schedule as t1 join cinema as t2 on t1.cinema_id = t2.cinema_id group by t1.cinema_id", "query_toks": ["SELECT", "T2", ".", "name", ",", "sum", "(", "T1", ".", "show_times_per_day", ")", "FROM", "schedule", "AS", "T1", "JOIN", "cinema", "AS", "T2", "ON", "T1", ".", "cinema_id", "=", "T2", ".", "cinema_id", "GROUP", "BY", "T1", ".", "cinema_id"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "sum", "(", "T1", ".", "show_times_per_day", ")", "FROM", "schedule", "AS", "T1", "JOIN", "cinema", "AS", "T2", "ON", "T1", ".", "cinema_id", "=", "T2", ".", "cinema_id", "GROUP", "BY", "T1", ".", "cinema_id"], "question": "What is the sum of show times per day for each cinema?", "question_toks": ["What", "is", "the", "sum", "of", "show", "times", "per", "day", "for", "each", "cinema", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [4, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_sum_0004", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0005", "db_id": "scientist_1", "query": "select sum(hours) from projects", "query_toks": ["SELECT", "sum", "(", "hours", ")", "FROM", "projects"], "query_toks_no_value": ["SELECT", "sum", "(", "hours", ")", "FROM", "projects"], "question": "Find the sum of hours of all projects.", "question_toks": ["Find", "the", "sum", "of", "hours", "of", "all", "projects", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6471", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0006", "db_id": "college_1", "query": "select sum(t1.crs_credit) , t1.dept_code from course as t1 join class as t2 on t1.crs_code = t2.crs_code group by t1.dept_code", "query_toks": ["SELECT", "sum", "(", "T1", ".", "crs_credit", ")", ",", "T1", ".", "dept_code", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1", ".", "crs_code", "=", "T2", ".", "crs_code", "GROUP", "BY", "T1", ".", "dept_code"], "query_toks_no_value": ["SELECT", "sum", "(", "T1", ".", "crs_credit", ")", ",", "T1", ".", "dept_code", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1", ".", "crs_code", "=", "T2", ".", "crs_code", "GROUP", "BY", "T1", ".", "dept_code"], "question": "Find the sum of credits of all classes offered by each department.", "question_toks": ["Find", "the", "sum", "of", "credits", "of", "all", "classes", "offered", "by", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3237", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0007", "db_id": "dorm_1", "query": "select sum(student_capacity) from dorm", "query_toks": ["SELECT", "sum", "(", "student_capacity", ")", "FROM", "dorm"], "query_toks_no_value": ["SELECT", "sum", "(", "student_capacity", ")", "FROM", "dorm"], "question": "Find the sum of capacity of all dorms.", "question_toks": ["Find", "the", "sum", "of", "capacity", "of", "all", "dorms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5682", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0008", "db_id": "document_management", "query": "select sum(access_count) from documents group by document_type_code order by count(*) desc limit 1", "query_toks": ["SELECT", "sum", "(", "access_count", ")", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "sum", "(", "access_count", ")", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Find the sum of access count of all documents in the most popular document type.", "question_toks": ["Find", "the", "sum", "of", "access", "count", "of", "all", "documents", "in", "the", "most", "popular", "document", "type", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4505", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0009", "db_id": "insurance_policies", "query": "select sum(amount_claimed) from claims", "query_toks": ["SELECT", "sum", "(", "Amount_Claimed", ")", "FROM", "Claims"], "query_toks_no_value": ["SELECT", "sum", "(", "Amount_Claimed", ")", "FROM", "Claims"], "question": "Find the sum of claimed amount of all the claims.", "question_toks": ["Find", "the", "sum", "of", "claimed", "amount", "of", "all", "the", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3896", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0010", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_facilities as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t1.facility_code = \"gym\"", "query_toks": ["SELECT", "sum", "(", "T2", ".", "room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T1", ".", "facility_code", "=", "``", "gym", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "T2", ".", "room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T1", ".", "facility_code", "=", "value"], "question": "Show the sum of number of rooms of all apartments with facility code \"Gym\".", "question_toks": ["Show", "the", "sum", "of", "number", "of", "rooms", "of", "all", "apartments", "with", "facility", "code", "\"", "Gym", "\"."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"gym\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1240", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0011", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid where t1.name != \"brown\"", "query_toks": ["SELECT", "sum", "(", "T2", ".", "balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "WHERE", "T1", ".", "name", "!=", "``", "brown", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "T2", ".", "balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "WHERE", "T1", ".", "name", "!=", "value"], "question": "Find the sum of savings balance of all accounts except the account with name \u2018Brown\u2019.", "question_toks": ["Find", "the", "sum", "of", "savings", "balance", "of", "all", "accounts", "except", "the", "account", "with", "name", "\u2018", "Brown", "\u2019."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], "\"brown\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1776", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0012", "db_id": "program_share", "query": "select sum(share_in_percent) from channel where owner = \"cctv\"", "query_toks": ["SELECT", "sum", "(", "Share_in_percent", ")", "FROM", "channel", "WHERE", "OWNER", "=", "``", "cctv", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "Share_in_percent", ")", "FROM", "channel", "WHERE", "OWNER", "=", "value"], "question": "find the sum of percentage share of all channels owned by CCTV.", "question_toks": ["find", "the", "sum", "of", "percentage", "share", "of", "all", "channels", "owned", "by", "CCTV", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cctv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3742", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0013", "db_id": "employee_hire_evaluation", "query": "select sum(bonus) from evaluation", "query_toks": ["SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation"], "query_toks_no_value": ["SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation"], "question": "Find the sum of bonus given in all the evaluations.", "question_toks": ["Find", "the", "sum", "of", "bonus", "given", "in", "all", "the", "evaluations", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0290", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0014", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "Find the sum number of hours have done for all students in each department.", "question_toks": ["Find", "the", "sum", "number", "of", "hours", "have", "done", "for", "all", "students", "in", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3219", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0015", "db_id": "entrepreneur", "query": "select sum(t1.money_requested) from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id where t2.height > 1.85", "query_toks": ["SELECT", "sum", "(", "T1", ".", "Money_Requested", ")", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "WHERE", "T2", ".", "Height", ">", "1", ".", "85"], "query_toks_no_value": ["SELECT", "sum", "(", "T1", ".", "Money_Requested", ")", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "WHERE", "T2", ".", "Height", ">", "value", ".", "85"], "question": "Give the sum money requested by entrepreneurs who are taller than 1.85.", "question_toks": ["Give", "the", "sum", "money", "requested", "by", "entrepreneurs", "who", "are", "taller", "than", "1", ".", "85", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 1.85, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2282", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0016", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "query_toks_no_value": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "question": "What the sum of tours were there for each ranking date?", "question_toks": ["What", "the", "sum", "of", "tours", "were", "there", "for", "each", "ranking", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0480", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0017", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "query_toks_no_value": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "question": "Sum of credits are offered by each department?", "question_toks": ["Sum", "of", "credits", "are", "offered", "by", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1399", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0018", "db_id": "wta_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the sum of ranking points for each player and their first name.", "question_toks": ["Find", "the", "sum", "of", "ranking", "points", "for", "each", "player", "and", "their", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[4, [0, [0, 42, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0471", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0019", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "query_toks_no_value": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "question": "Find the sum of tours for each ranking date.", "question_toks": ["Find", "the", "sum", "of", "tours", "for", "each", "ranking", "date", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0479", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0020", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\" or continent = \"europe\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''", "OR", "Continent", "=", "``", "europe", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "OR", "Continent", "=", "value"], "question": "Give the sum of surface area covered by countries in Asia or Europe.", "question_toks": ["Give", "the", "sum", "of", "surface", "area", "covered", "by", "countries", "in", "Asia", "or", "Europe", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0727", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0021", "db_id": "world_1", "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "query_toks": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "north", "america", "''", "and", "surfacearea", ">", "3000"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "america", "and", "surfacearea", ">", "value"], "question": "Give the sum of population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", "question_toks": ["Give", "the", "sum", "of", "population", "and", "average", "surface", "area", "corresponding", "to", "countries", "in", "North", "America", "that", "have", "a", "surface", "area", "greater", "than", "3000", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [5, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null], "and", [false, 3, [0, [0, 12, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0811", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0022", "db_id": "manufacturer", "query": "select sum(market_rate) from furniture order by market_rate desc limit 2", "query_toks": ["SELECT", "sum", "(", "market_rate", ")", "FROM", "furniture", "ORDER", "BY", "market_rate", "DESC", "LIMIT", "2"], "query_toks_no_value": ["SELECT", "sum", "(", "market_rate", ")", "FROM", "furniture", "ORDER", "BY", "market_rate", "DESC", "LIMIT", "2"], "question": "find the sum of the market rate of the furnitures that have the top 2 market shares.", "question_toks": ["find", "the", "sum", "of", "the", "market", "rate", "of", "the", "furnitures", "that", "have", "the", "top", "2", "market", "shares", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": 2, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3391", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0023", "db_id": "hr_1", "query": "select department_id , sum(salary) from employees group by department_id having count(*) >= 2", "query_toks": ["SELECT", "department_id", ",", "SUM", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "department_id", ",", "SUM", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are sum of the salaries and department id for each department that has more than 2 employees?", "question_toks": ["What", "are", "sum", "of", "the", "salaries", "and", "department", "id", "for", "each", "department", "that", "has", "more", "than", "2", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3512", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0024", "db_id": "yelp", "query": "select sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"restaurant\" and t3.category_name = \"moroccan\"", "query_toks": ["SELECT", "SUM", "(", "t4", ".", "count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "category", "AS", "t3", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t1", ".", "city", "=", "``", "los", "angeles", "''", "AND", "t2", ".", "category_name", "=", "``", "restaurant", "''", "AND", "t3", ".", "category_name", "=", "``", "moroccan", "''"], "query_toks_no_value": ["SELECT", "SUM", "(", "t4", ".", "count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "category", "AS", "t3", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t1", ".", "city", "=", "value", "angeles", "AND", "t2", ".", "category_name", "=", "value", "AND", "t3", ".", "category_name", "=", "value"], "question": "find the sum of checkins in Moroccan restaurant in \" Los Angeles \"", "question_toks": ["find", "the", "sum", "of", "checkins", "in", "Moroccan", "restaurant", "in", "\"", "Los", "Angeles", "\""], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"los angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"moroccan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1189", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0025", "db_id": "yelp", "query": "select sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"moroccan\" and t3.category_name = \"restaurant\" and t4.day = \"friday\"", "query_toks": ["SELECT", "SUM", "(", "t4", ".", "count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "category", "AS", "t3", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t1", ".", "city", "=", "``", "los", "angeles", "''", "AND", "t2", ".", "category_name", "=", "``", "moroccan", "''", "AND", "t3", ".", "category_name", "=", "``", "restaurant", "''", "AND", "t4", ".", "day", "=", "``", "friday", "''"], "query_toks_no_value": ["SELECT", "SUM", "(", "t4", ".", "count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "category", "AS", "t3", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t1", ".", "city", "=", "value", "angeles", "AND", "t2", ".", "category_name", "=", "value", "AND", "t3", ".", "category_name", "=", "value", "AND", "t4", ".", "day", "=", "value"], "question": "find the sum of checkins in Moroccan restaurant in \" Los Angeles \" on Friday", "question_toks": ["find", "the", "sum", "of", "checkins", "in", "Moroccan", "restaurant", "in", "\"", "Los", "Angeles", "\"", "on", "Friday"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"los angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"moroccan\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"friday\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1190", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0026", "db_id": "yelp", "query": "select t4.day , sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"moroccan\" and t3.category_name = \"restaurant\" group by t4.day", "query_toks": ["SELECT", "t4", ".", "day", ",", "SUM", "(", "t4", ".", "count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "category", "AS", "t3", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t1", ".", "city", "=", "``", "los", "angeles", "''", "AND", "t2", ".", "category_name", "=", "``", "moroccan", "''", "AND", "t3", ".", "category_name", "=", "``", "restaurant", "''", "GROUP", "BY", "t4", ".", "day"], "query_toks_no_value": ["SELECT", "t4", ".", "day", ",", "SUM", "(", "t4", ".", "count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "category", "AS", "t3", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t1", ".", "city", "=", "value", "angeles", "AND", "t2", ".", "category_name", "=", "value", "AND", "t3", ".", "category_name", "=", "value", "GROUP", "BY", "t4", ".", "day"], "question": "find the sum of checkins in Moroccan restaurant in \" Los Angeles \" per day", "question_toks": ["find", "the", "sum", "of", "checkins", "in", "Moroccan", "restaurant", "in", "\"", "Los", "Angeles", "\"", "per", "day"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"los angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"moroccan\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null]], "groupBy": [[0, 21, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1191", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0027", "db_id": "yelp", "query": "select t1.state , sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t2.category_name = \"italian\" and t3.category_name = \"delis\" and t4.day = \"sunday\" group by t1.state", "query_toks": ["SELECT", "t1", ".", "state", ",", "SUM", "(", "t4", ".", "count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "category", "AS", "t3", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t2", ".", "category_name", "=", "``", "italian", "''", "AND", "t3", ".", "category_name", "=", "``", "delis", "''", "AND", "t4", ".", "day", "=", "``", "sunday", "''", "GROUP", "BY", "t1", ".", "state"], "query_toks_no_value": ["SELECT", "t1", ".", "state", ",", "SUM", "(", "t4", ".", "count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "category", "AS", "t3", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t2", ".", "category_name", "=", "value", "AND", "t3", ".", "category_name", "=", "value", "AND", "t4", ".", "day", "=", "value", "GROUP", "BY", "t1", ".", "state"], "question": "find the sum of checkins in Italian Delis in each state on Sunday", "question_toks": ["find", "the", "sum", "of", "checkins", "in", "Italian", "Delis", "in", "each", "state", "on", "Sunday"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"italian\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"delis\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"sunday\"", null]], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1192", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0028", "db_id": "yelp", "query": "select sum ( t3.count ) from checkin as t3 join business as t1 on t3.business_id = t1.business_id join neighbourhood as t2 on t2.business_id = t1.business_id where t2.neighbourhood_name = \"brighton heights\"", "query_toks": ["SELECT", "SUM", "(", "t3", ".", "count", ")", "FROM", "checkin", "AS", "t3", "JOIN", "business", "AS", "t1", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "neighbourhood", "AS", "t2", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t2", ".", "neighbourhood_name", "=", "``", "brighton", "heights", "''"], "query_toks_no_value": ["SELECT", "SUM", "(", "t3", ".", "count", ")", "FROM", "checkin", "AS", "t3", "JOIN", "business", "AS", "t1", "ON", "t3", ".", "business_id", "=", "t1", ".", "business_id", "JOIN", "neighbourhood", "AS", "t2", "ON", "t2", ".", "business_id", "=", "t1", ".", "business_id", "WHERE", "t2", ".", "neighbourhood_name", "=", "value", "heights"], "question": "Find the sum of checkins in \" Brighton Heights \" neighbourhood", "question_toks": ["Find", "the", "sum", "of", "checkins", "in", "\"", "Brighton", "Heights", "\"", "neighbourhood"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"brighton heights\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1228", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0029", "db_id": "baseball_1", "query": "select sum(t1.games) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = \"boston red stockings\" and t1.year between 1990 and 2000", "query_toks": ["SELECT", "sum", "(", "T1", ".", "games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "``", "boston", "red", "stockings", "''", "AND", "T1", ".", "year", "BETWEEN", "1990", "AND", "2000"], "query_toks_no_value": ["SELECT", "sum", "(", "T1", ".", "games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "value", "red", "stockings", "AND", "T1", ".", "year", "BETWEEN", "1990", "AND", "2000"], "question": "Find the sum of checkins in \" Brighton Heights \" neighbourhood", "question_toks": ["Find", "the", "sum", "of", "checkins", "in", "\"", "Brighton", "Heights", "\"", "neighbourhood"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 159, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 1990.0, 2000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3700", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0030", "db_id": "game_1", "query": "select gameid , sum(hours_played) from plays_games group by gameid", "query_toks": ["SELECT", "gameid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "gameid"], "query_toks_no_value": ["SELECT", "gameid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "gameid"], "question": "Show all game ids and the sum of hours played.", "question_toks": ["Show", "all", "game", "ids", "and", "the", "sum", "of", "hours", "played", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6039", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0031", "db_id": "game_1", "query": "select stuid , sum(hours_played) from plays_games group by stuid", "query_toks": ["SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid"], "query_toks_no_value": ["SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid"], "question": "Show all student ids and sum of hours played.", "question_toks": ["Show", "all", "student", "ids", "and", "sum", "of", "hours", "played", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6041", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0032", "db_id": "game_1", "query": "select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid having sum(hours_played) >= 1000", "query_toks": ["SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1", ".", "gameid", "=", "T2", ".", "gameid", "GROUP", "BY", "T1", ".", "gameid", "HAVING", "sum", "(", "hours_played", ")", ">=", "1000"], "query_toks_no_value": ["SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1", ".", "gameid", "=", "T2", ".", "gameid", "GROUP", "BY", "T1", ".", "gameid", "HAVING", "sum", "(", "hours_played", ")", ">=", "1000"], "question": "Show all game names played by at least 1000 hours in sum.", "question_toks": ["Show", "all", "game", "names", "played", "by", "at", "least", "1000", "hours", "in", "sum", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [4, 14, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6045", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0033", "db_id": "department_store", "query": "select product_id from order_items group by product_id having count(*) > 3 union select product_id from product_suppliers group by product_id having sum(total_amount_purchased) > 80000", "query_toks": ["SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(*)", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "query_toks_no_value": ["SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(*)", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "question": "Return the ids of all products that were ordered more than three times or supplied more than 80000 in sum.", "question_toks": ["Return", "the", "ids", "of", "all", "products", "that", "were", "ordered", "more", "than", "three", "times", "or", "supplied", "more", "than", "80000", "in", "sum", "."], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [4, 50, false], null], 80000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4767", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0034", "db_id": "game_1", "query": "select stuid , count(*) , sum(gamesplayed) from sportsinfo group by stuid", "query_toks": ["SELECT", "StuID", ",", "count", "(*)", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "GROUP", "BY", "StuID"], "query_toks_no_value": ["SELECT", "StuID", ",", "count", "(*)", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "GROUP", "BY", "StuID"], "question": "What are the ids of all students along with how many sports and what the sum of games did they play?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "along", "with", "how", "many", "sports", "and", "what", "the", "sum", "of", "games", "did", "they", "play", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]], [4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6014", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0035", "db_id": "department_store", "query": "select product_id from order_items group by product_id having count(*) > 3 union select product_id from product_suppliers group by product_id having sum(total_amount_purchased) > 80000", "query_toks": ["SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(*)", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "query_toks_no_value": ["SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(*)", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "question": "What are the ids of all products that were either ordered more than 3 times or have a sum of amount purchased above 80000?", "question_toks": ["What", "are", "the", "ids", "of", "all", "products", "that", "were", "either", "ordered", "more", "than", "3", "times", "or", "have", "a", "sum", "of", "amount", "purchased", "above", "80000", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [4, 50, false], null], 80000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4768", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0036", "db_id": "game_1", "query": "select stuid , sum(hours_played) from plays_games group by stuid", "query_toks": ["SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid"], "query_toks_no_value": ["SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid"], "question": "What are the ids of all students and sum of hours played?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "and", "sum", "of", "hours", "played", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6042", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0037", "db_id": "geo", "query": "select sum ( area ) from state", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state"], "query_toks_no_value": ["SELECT", "SUM", "(", "area", ")", "FROM", "state"], "question": "what is the sum of the area of all the states combined", "question_toks": ["what", "is", "the", "sum", "of", "the", "area", "of", "all", "the", "states", "combined"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0321", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0038", "db_id": "geo", "query": "select state_name from city group by state_name order by sum ( population ) limit 1", "query_toks": ["SELECT", "state_name", "FROM", "city", "GROUP", "BY", "state_name", "ORDER", "BY", "SUM", "(", "population", ")", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "city", "GROUP", "BY", "state_name", "ORDER", "BY", "SUM", "(", "population", ")", "LIMIT", "1"], "question": "what state has the smallest sum of urban population", "question_toks": ["what", "state", "has", "the", "smallest", "sum", "of", "urban", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [4, 8, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0411", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0039", "db_id": "game_1", "query": "select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid having sum(hours_played) >= 1000", "query_toks": ["SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1", ".", "gameid", "=", "T2", ".", "gameid", "GROUP", "BY", "T1", ".", "gameid", "HAVING", "sum", "(", "hours_played", ")", ">=", "1000"], "query_toks_no_value": ["SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1", ".", "gameid", "=", "T2", ".", "gameid", "GROUP", "BY", "T1", ".", "gameid", "HAVING", "sum", "(", "hours_played", ")", ">=", "1000"], "question": "What are the names of all the games that have been played in sum for at least 1000 hours?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "games", "that", "have", "been", "played", "in", "sum", "for", "at", "least", "1000", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [4, 14, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6046", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0040", "db_id": "geo", "query": "select sum ( area ) from state", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state"], "query_toks_no_value": ["SELECT", "SUM", "(", "area", ")", "FROM", "state"], "question": "what is the sum area of all 50 states", "question_toks": ["what", "is", "the", "sum", "area", "of", "all", "50", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0320", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0041", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo"], "question": "How many games are played in the sum for all students?", "question_toks": ["How", "many", "games", "are", "played", "in", "the", "sum", "for", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6007", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0042", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = \"y\"", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "football", "''", "AND", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "value", "AND", "onscholarship", "=", "value"], "question": "How many games are played in the sum for all football games by students on scholarship?", "question_toks": ["How", "many", "games", "are", "played", "in", "the", "sum", "for", "all", "football", "games", "by", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6009", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0043", "db_id": "tracking_grants_for_research", "query": "select t2.organisation_id , t2.organisation_details from grants as t1 join organisations as t2 on t1.organisation_id = t2.organisation_id group by t2.organisation_id having sum(t1.grant_amount) > 6000", "query_toks": ["SELECT", "T2", ".", "organisation_id", ",", "T2", ".", "organisation_details", "FROM", "Grants", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1", ".", "organisation_id", "=", "T2", ".", "organisation_id", "GROUP", "BY", "T2", ".", "organisation_id", "HAVING", "sum", "(", "T1", ".", "grant_amount", ")", ">", "6000"], "query_toks_no_value": ["SELECT", "T2", ".", "organisation_id", ",", "T2", ".", "organisation_details", "FROM", "Grants", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1", ".", "organisation_id", "=", "T2", ".", "organisation_id", "GROUP", "BY", "T2", ".", "organisation_id", "HAVING", "sum", "(", "T1", ".", "grant_amount", ")", ">", "6000"], "question": "What are the ids and details for all organizations that have sum of grants of more than 6000 dollars?", "question_toks": ["What", "are", "the", "ids", "and", "details", "for", "all", "organizations", "that", "have", "sum", "of", "grants", "of", "more", "than", "6000", "dollars", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [[false, 3, [0, [4, 11, false], null], 6000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4329", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0044", "db_id": "geo", "query": "select sum ( population ) from state", "query_toks": ["SELECT", "SUM", "(", "population", ")", "FROM", "state"], "query_toks_no_value": ["SELECT", "SUM", "(", "population", ")", "FROM", "state"], "question": "what is the sum of population of all 50 states", "question_toks": ["what", "is", "the", "sum", "of", "population", "of", "all", "50", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0240", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0045", "db_id": "college_1", "query": "select t3.dept_name from course as t1 join class as t2 on t1.crs_code = t2.crs_code join department as t3 on t1.dept_code = t3.dept_code group by t1.dept_code order by sum(t1.crs_credit) desc limit 1", "query_toks": ["SELECT", "T3", ".", "dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1", ".", "crs_code", "=", "T2", ".", "crs_code", "JOIN", "department", "AS", "T3", "ON", "T1", ".", "dept_code", "=", "T3", ".", "dept_code", "GROUP", "BY", "T1", ".", "dept_code", "ORDER", "BY", "sum", "(", "T1", ".", "crs_credit", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T3", ".", "dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1", ".", "crs_code", "=", "T2", ".", "crs_code", "JOIN", "department", "AS", "T3", "ON", "T1", ".", "dept_code", "=", "T3", ".", "dept_code", "GROUP", "BY", "T1", ".", "dept_code", "ORDER", "BY", "sum", "(", "T1", ".", "crs_credit", ")", "DESC", "LIMIT", "1"], "question": "Which department offers the most sum of credits?", "question_toks": ["Which", "department", "offers", "the", "most", "sum", "of", "credits", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 10, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3240", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0046", "db_id": "csu_1", "query": "select campus from degrees group by campus order by sum(degrees) desc limit 1", "query_toks": ["SELECT", "campus", "FROM", "degrees", "GROUP", "BY", "campus", "ORDER", "BY", "sum", "(", "degrees", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "campus", "FROM", "degrees", "GROUP", "BY", "campus", "ORDER", "BY", "sum", "(", "degrees", ")", "DESC", "LIMIT", "1"], "question": "Which campus has the most sum of degrees conferred in all times?", "question_toks": ["Which", "campus", "has", "the", "most", "sum", "of", "degrees", "conferred", "in", "all", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2348", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0047", "db_id": "college_1", "query": "select t3.dept_name from course as t1 join class as t2 on t1.crs_code = t2.crs_code join department as t3 on t1.dept_code = t3.dept_code group by t1.dept_code order by sum(t1.crs_credit) desc limit 1", "query_toks": ["SELECT", "T3", ".", "dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1", ".", "crs_code", "=", "T2", ".", "crs_code", "JOIN", "department", "AS", "T3", "ON", "T1", ".", "dept_code", "=", "T3", ".", "dept_code", "GROUP", "BY", "T1", ".", "dept_code", "ORDER", "BY", "sum", "(", "T1", ".", "crs_credit", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T3", ".", "dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1", ".", "crs_code", "=", "T2", ".", "crs_code", "JOIN", "department", "AS", "T3", "ON", "T1", ".", "dept_code", "=", "T3", ".", "dept_code", "GROUP", "BY", "T1", ".", "dept_code", "ORDER", "BY", "sum", "(", "T1", ".", "crs_credit", ")", "DESC", "LIMIT", "1"], "question": "Find the name of the department that offers the largest number sum of credits of all classes.", "question_toks": ["Find", "the", "name", "of", "the", "department", "that", "offers", "the", "largest", "number", "sum", "of", "credits", "of", "all", "classes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 10, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3239", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0048", "db_id": "game_1", "query": "select stuid from sportsinfo group by stuid having sum(hoursperweek) > 10", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "GROUP", "BY", "StuID", "HAVING", "sum", "(", "hoursperweek", ")", ">", "10"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Sportsinfo", "GROUP", "BY", "StuID", "HAVING", "sum", "(", "hoursperweek", ")", ">", "10"], "question": "What are the student IDs for everybody who worked in the sum for more than 10 hours per week on all sports?", "question_toks": ["What", "are", "the", "student", "IDs", "for", "everybody", "who", "worked", "in", "the", "sum", "for", "more", "than", "10", "hours", "per", "week", "on", "all", "sports", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [[false, 3, [0, [4, 17, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6016", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"]}, {"id": "hidden_sum_0049", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "value"], "question": "What the sum of people number living in Asia, and what is the largest GNP among them?", "question_toks": ["What", "the", "sum", "of", "people", "number", "living", "in", "Asia", ",", "and", "what", "is", "the", "largest", "GNP", "among", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0723", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0050", "db_id": "world_1", "query": "select sum(population) from city where district = \"gelderland\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", "FROM", "city", "WHERE", "District", "=", "``", "gelderland", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "Population", ")", "FROM", "city", "WHERE", "District", "=", "value"], "question": "The sum of the number of people living in Gelderland district?", "question_toks": ["The", "sum", "of", "the", "number", "of", "people", "living", "in", "Gelderland", "district", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"gelderland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0728", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0051", "db_id": "world_1", "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\")", "query_toks": ["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", "\")"], "query_toks_no_value": ["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", "=", "value", "\")"], "question": "What the sum of the number of people living in countries that do not speak English?", "question_toks": ["What", "the", "sum", "of", "the", "number", "of", "people", "living", "in", "countries", "that", "do", "not", "speak", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0767", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0052", "db_id": "csu_1", "query": "select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus", "query_toks": ["SELECT", "T1", ".", "campus", ",", "sum", "(", "T2", ".", "degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", ">=", "1998", "AND", "T2", ".", "year", "<=", "2002", "GROUP", "BY", "T1", ".", "campus"], "query_toks_no_value": ["SELECT", "T1", ".", "campus", ",", "sum", "(", "T2", ".", "degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", ">=", "value", "AND", "T2", ".", "year", "<=", "value", "GROUP", "BY", "T1", ".", "campus"], "question": "What are the sums of the degrees were conferred between 1998 and 2002?", "question_toks": ["What", "are", "the", "sums", "of", "the", "degrees", "were", "conferred", "between", "1998", "and", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 1998.0, null], "and", [false, 6, [0, [0, 9, false], null], 2002.0, null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2357", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0053", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["SELECT", "sum", "(", "t1", ".", "undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "2004", "AND", "t2", ".", "campus", "=", "``", "san", "jose", "state", "university", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "t1", ".", "undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "value", "AND", "t2", ".", "campus", "=", "value", "jose", "state", "university"], "question": "The sum of the undergraduates were there in \"San Jose State University\" in year 2004?", "question_toks": ["The", "sum", "of", "the", "undergraduates", "were", "there", "in", "\"", "San", "Jose", "State", "University", "\"", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san jose state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2384", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0054", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["SELECT", "sum", "(", "t1", ".", "undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "2004", "AND", "t2", ".", "campus", "=", "``", "san", "jose", "state", "university", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "t1", ".", "undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "value", "AND", "t2", ".", "campus", "=", "value", "jose", "state", "university"], "question": "What is the sum of the undergraduates number are there at San Jose State", "question_toks": ["What", "is", "the", "sum", "of", "the", "undergraduates", "number", "are", "there", "at", "San", "Jose", "State"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san jose state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2385", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0055", "db_id": "csu_1", "query": "select sum(t1.graduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["SELECT", "sum", "(", "t1", ".", "graduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "2004", "AND", "t2", ".", "campus", "=", "``", "san", "francisco", "state", "university", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "t1", ".", "graduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "value", "AND", "t2", ".", "campus", "=", "value", "francisco", "state", "university"], "question": "The sum of people graduated from San Francisco State University in 2004?", "question_toks": ["The", "sum", "of", "people", "graduated", "from", "San", "Francisco", "State", "University", "in", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san francisco state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2387", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0056", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = \"king\"", "query_toks": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "``", "king", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "value"], "question": "What the sum of the king beds are there?", "question_toks": ["What", "the", "sum", "of", "the", "king", "beds", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2588", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0057", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank", "query_toks": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank"], "query_toks_no_value": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank"], "question": "What is the sum of customers are there?", "question_toks": ["What", "is", "the", "sum", "of", "customers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3008", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0058", "db_id": "college_1", "query": "select sum(crs_credit) , dept_code from course group by dept_code", "query_toks": ["SELECT", "sum", "(", "crs_credit", ")", ",", "dept_code", "FROM", "course", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "sum", "(", "crs_credit", ")", ",", "dept_code", "FROM", "course", "GROUP", "BY", "dept_code"], "question": "What are the sums of credits does the department offer?", "question_toks": ["What", "are", "the", "sums", "of", "credits", "does", "the", "department", "offer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3202", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0059", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "The sum of the hours do the students spend studying in each department?", "question_toks": ["The", "sum", "of", "the", "hours", "do", "the", "students", "spend", "studying", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3220", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0060", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "College"], "query_toks_no_value": ["SELECT", "sum", "(", "enr", ")", "FROM", "College"], "question": "How many students are enrolled in college?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "college", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4945", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0061", "db_id": "geo", "query": "select sum ( population ) from state", "query_toks": ["SELECT", "SUM", "(", "population", ")", "FROM", "state"], "query_toks_no_value": ["SELECT", "SUM", "(", "population", ")", "FROM", "state"], "question": "What is the sum of people living in the united states", "question_toks": ["What", "is", "the", "sum", "of", "people", "living", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0239", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0062", "db_id": "geo", "query": "select sum ( area ) from state", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state"], "query_toks_no_value": ["SELECT", "SUM", "(", "area", ")", "FROM", "state"], "question": "What is the sum of the square kilometers in the us", "question_toks": ["What", "is", "the", "sum", "of", "the", "square", "kilometers", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0322", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0063", "db_id": "world_1", "query": "select sum(surfacearea) from country where region = \"caribbean\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Region", "=", "``", "caribbean", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Region", "=", "value"], "question": "What is the sum of surface area that the countires in the Carribean cover together?", "question_toks": ["What", "is", "the", "sum", "of", "surface", "area", "that", "the", "countires", "in", "the", "Carribean", "cover", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"caribbean\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0707", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_sum_0064", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc", "query_toks": ["SELECT", "DISTINCT", "t1", ".", "keyphrasename", ",", "SUM", "(", "t3", ".", "numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t5", "ON", "t4", ".", "authorid", "=", "t5", ".", "authorid", "WHERE", "t5", ".", "authorname", "=", "``", "brian", "derenzi", "''", "GROUP", "BY", "t1", ".", "keyphrasename", "ORDER", "BY", "SUM", "(", "t3", ".", "numcitedby", ")", "DESC"], "query_toks_no_value": ["SELECT", "DISTINCT", "t1", ".", "keyphrasename", ",", "SUM", "(", "t3", ".", "numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t5", "ON", "t4", ".", "authorid", "=", "t5", ".", "authorid", "WHERE", "t5", ".", "authorname", "=", "value", "derenzi", "GROUP", "BY", "t1", ".", "keyphrasename", "ORDER", "BY", "SUM", "(", "t3", ".", "numcitedby", ")", "DESC"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations in the sum? Return also the the sum of citations", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "in", "the", "sum", "?", "Return", "also", "the", "the", "sum", "of", "citations"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_sum_0064", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"]}, {"id": "hidden_sum_0065", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc", "query_toks": ["SELECT", "DISTINCT", "t1", ".", "keyphrasename", ",", "SUM", "(", "t3", ".", "numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t5", "ON", "t4", ".", "authorid", "=", "t5", ".", "authorid", "WHERE", "t5", ".", "authorname", "=", "``", "brian", "derenzi", "''", "GROUP", "BY", "t1", ".", "keyphrasename", "ORDER", "BY", "SUM", "(", "t3", ".", "numcitedby", ")", "DESC"], "query_toks_no_value": ["SELECT", "DISTINCT", "t1", ".", "keyphrasename", ",", "SUM", "(", "t3", ".", "numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t5", "ON", "t4", ".", "authorid", "=", "t5", ".", "authorid", "WHERE", "t5", ".", "authorname", "=", "value", "derenzi", "GROUP", "BY", "t1", ".", "keyphrasename", "ORDER", "BY", "SUM", "(", "t3", ".", "numcitedby", ")", "DESC"], "question": "main topics of work by Brian DeRenzi with the sum of citation", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi", "with", "the", "sum", "of", "citation"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_sum_0065", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"]}, {"id": "hidden_sum_0066", "db_id": "academic", "query": "select year , sum ( citation_num ) from publication where title = \"making database systems usable\" group by year", "query_toks": ["SELECT", "YEAR", ",", "SUM", "(", "citation_num", ")", "FROM", "publication", "WHERE", "title", "=", "``", "making", "database", "systems", "usable", "''", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["SELECT", "YEAR", ",", "SUM", "(", "citation_num", ")", "FROM", "publication", "WHERE", "title", "=", "value", "database", "systems", "usable", "GROUP", "BY", "YEAR"], "question": "return me the sum of the number of citations of \" Making database systems usable \" in each year .", "question_toks": ["return", "me", "the", "sum", "of", "the", "number", "of", "citations", "of", "\"", "Making", "database", "systems", "usable", "\"", "in", "each", "year", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [4, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"making database systems usable\"", null]], "groupBy": [[0, 30, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1319", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"]}, {"id": "hidden_sum_0067", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "question": "Find the sum and average amount of settlements.", "question_toks": ["Find", "the", "sum", "and", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0901", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0068", "db_id": "university_basketball", "query": "select sum(enrollment) , affiliation from university group by affiliation", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "affiliation", "FROM", "university", "GROUP", "BY", "affiliation"], "query_toks_no_value": ["SELECT", "sum", "(", "enrollment", ")", ",", "affiliation", "FROM", "university", "GROUP", "BY", "affiliation"], "question": "Find the sum of the student enrollment for different affiliation type schools.", "question_toks": ["Find", "the", "sum", "of", "the", "student", "enrollment", "for", "different", "affiliation", "type", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1001", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0069", "db_id": "university_basketball", "query": "select sum(enrollment) , affiliation from university where founded > 1850 group by affiliation", "query_toks": ["SELECT", "sum", "(", "Enrollment", ")", ",", "affiliation", "FROM", "university", "WHERE", "founded", ">", "1850", "GROUP", "BY", "affiliation"], "query_toks_no_value": ["SELECT", "sum", "(", "Enrollment", ")", ",", "affiliation", "FROM", "university", "WHERE", "founded", ">", "value", "GROUP", "BY", "affiliation"], "question": "Find the sum of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.", "question_toks": ["Find", "the", "sum", "of", "students", "enrolled", "in", "the", "colleges", "that", "were", "founded", "after", "the", "year", "of", "1850", "for", "each", "affiliation", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 1850.0, null]], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1015", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0070", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_facilities as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t1.facility_code = \"gym\"", "query_toks": ["SELECT", "sum", "(", "T2", ".", "room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T1", ".", "facility_code", "=", "``", "gym", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "T2", ".", "room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T1", ".", "facility_code", "=", "value"], "question": "Find the sum of rooms in the apartments that have facility code \"Gym\".", "question_toks": ["Find", "the", "sum", "of", "rooms", "in", "the", "apartments", "that", "have", "facility", "code", "\"", "Gym", "\"."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"gym\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1241", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0071", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_buildings as t1 join apartments as t2 on t1.building_id = t2.building_id where t1.building_short_name = \"columbus square\"", "query_toks": ["SELECT", "sum", "(", "T2", ".", "room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "building_id", "=", "T2", ".", "building_id", "WHERE", "T1", ".", "building_short_name", "=", "``", "columbus", "square", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "T2", ".", "room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "building_id", "=", "T2", ".", "building_id", "WHERE", "T1", ".", "building_short_name", "=", "value", "square"], "question": "Show the sum of rooms of the apartments in the building with short name \"Columbus Square\".", "question_toks": ["Show", "the", "sum", "of", "rooms", "of", "the", "apartments", "in", "the", "building", "with", "short", "name", "\"", "Columbus", "Square", "\"."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"columbus square\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1242", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0072", "db_id": "college_2", "query": "select sum(budget) from department where dept_name = \"marketing\" or dept_name = \"finance\"", "query_toks": ["SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "``", "marketing", "''", "OR", "dept_name", "=", "``", "finance", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "value", "OR", "dept_name", "=", "value"], "question": "Find the sum budgets of the Marketing or Finance department.", "question_toks": ["Find", "the", "sum", "budgets", "of", "the", "Marketing", "or", "Finance", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"marketing\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"finance\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1352", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0073", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "query_toks_no_value": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "question": "Find the sum credits of courses provided by different department.", "question_toks": ["Find", "the", "sum", "credits", "of", "courses", "provided", "by", "different", "department", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1398", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0074", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) , avg(amount_piad) from claim_headers", "query_toks": ["SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "query_toks_no_value": ["SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "question": "Find the sum and average amount paid in claim headers.", "question_toks": ["Find", "the", "sum", "and", "average", "amount", "paid", "in", "claim", "headers", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]], [5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1515", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0075", "db_id": "insurance_and_eClaims", "query": "select sum(t1.amount_claimed) from claim_headers as t1 join claims_documents as t2 on t1.claim_header_id = t2.claim_id where t2.created_date = (select created_date from claims_documents order by created_date limit 1)", "query_toks": ["SELECT", "sum", "(", "t1", ".", "amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "WHERE", "t2", ".", "created_date", "=", "(", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")"], "query_toks_no_value": ["SELECT", "sum", "(", "t1", ".", "amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "WHERE", "t2", ".", "created_date", "=", "value", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")"], "question": "Find the sum amount claimed in the most recently created document.", "question_toks": ["Find", "the", "sum", "amount", "claimed", "in", "the", "most", "recently", "created", "document", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1517", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0076", "db_id": "customers_and_invoices", "query": "select transaction_type , sum(transaction_amount) from financial_transactions group by transaction_type", "query_toks": ["SELECT", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type"], "query_toks_no_value": ["SELECT", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type"], "question": "What are sum transaction amounts for each transaction type?", "question_toks": ["What", "are", "sum", "transaction", "amounts", "for", "each", "transaction", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1588", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0077", "db_id": "small_bank_1", "query": "select sum(balance) from checking", "query_toks": ["SELECT", "sum", "(", "balance", ")", "FROM", "checking"], "query_toks_no_value": ["SELECT", "sum", "(", "balance", ")", "FROM", "checking"], "question": "Find the sum balance across checking accounts.", "question_toks": ["Find", "the", "sum", "balance", "across", "checking", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1781", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0078", "db_id": "small_bank_1", "query": "select sum(t2.balance) , t1.name from accounts as t1 join savings as t2 on t1.custid = t2.custid group by t1.name", "query_toks": ["SELECT", "sum", "(", "T2", ".", "balance", ")", ",", "T1", ".", "name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "GROUP", "BY", "T1", ".", "name"], "query_toks_no_value": ["SELECT", "sum", "(", "T2", ".", "balance", ")", ",", "T1", ".", "name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "GROUP", "BY", "T1", ".", "name"], "question": "Find the sum saving balance for each account name.", "question_toks": ["Find", "the", "sum", "saving", "balance", "for", "each", "account", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1806", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0079", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = \"king\"", "query_toks": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "``", "king", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "value"], "question": "Find the sum number of king beds available.", "question_toks": ["Find", "the", "sum", "number", "of", "king", "beds", "available", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2589", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0080", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = \"utah\" or state = \"texas\"", "query_toks": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "``", "utah", "''", "OR", "state", "=", "``", "texas", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "value", "OR", "state", "=", "value"], "question": "Find the sum account balance of each customer from Utah or Texas.", "question_toks": ["Find", "the", "sum", "account", "balance", "of", "each", "customer", "from", "Utah", "or", "Texas", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"utah\"", null], "or", [false, 2, [0, [0, 13, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3034", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0081", "db_id": "loan_1", "query": "select sum(amount) , t1.bname from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id group by t1.bname", "query_toks": ["SELECT", "sum", "(", "amount", ")", ",", "T1", ".", "bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1", ".", "branch_id", "=", "T2", ".", "branch_id", "GROUP", "BY", "T1", ".", "bname"], "query_toks_no_value": ["SELECT", "sum", "(", "amount", ")", ",", "T1", ".", "bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1", ".", "branch_id", "=", "T2", ".", "branch_id", "GROUP", "BY", "T1", ".", "bname"], "question": "Find the sum amount of loans offered by each bank branch.", "question_toks": ["Find", "the", "sum", "amount", "of", "loans", "offered", "by", "each", "bank", "branch", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3060", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0082", "db_id": "loan_1", "query": "select sum(t2.amount) from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id where t1.state = \"new york\"", "query_toks": ["SELECT", "sum", "(", "T2", ".", "amount", ")", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1", ".", "branch_id", "=", "T2", ".", "branch_id", "WHERE", "T1", ".", "state", "=", "``", "new", "york", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "T2", ".", "amount", ")", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1", ".", "branch_id", "=", "T2", ".", "branch_id", "WHERE", "T1", ".", "state", "=", "value", "york"], "question": "Find the sum amount of loans provided by bank branches in the state of New York.", "question_toks": ["Find", "the", "sum", "amount", "of", "loans", "provided", "by", "bank", "branches", "in", "the", "state", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3080", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0083", "db_id": "academic", "query": "select t1.name from domain_author as t6 join author as t1 on t6.aid = t1.aid join domain as t3 on t3.did = t6.did join organization as t5 on t5.oid = t1.oid join writes as t2 on t2.aid = t1.aid join publication as t4 on t2.pid = t4.pid where t3.name = \"databases\" and t5.name = \"university of michigan\" group by t1.name having sum ( t4.citation_num ) > 5000", "query_toks": ["SELECT", "t1", ".", "name", "FROM", "domain_author", "AS", "t6", "JOIN", "author", "AS", "t1", "ON", "t6", ".", "aid", "=", "t1", ".", "aid", "JOIN", "DOMAIN", "AS", "t3", "ON", "t3", ".", "did", "=", "t6", ".", "did", "JOIN", "organization", "AS", "t5", "ON", "t5", ".", "oid", "=", "t1", ".", "oid", "JOIN", "writes", "AS", "t2", "ON", "t2", ".", "aid", "=", "t1", ".", "aid", "JOIN", "publication", "AS", "t4", "ON", "t2", ".", "pid", "=", "t4", ".", "pid", "WHERE", "t3", ".", "name", "=", "``", "databases", "''", "AND", "t5", ".", "name", "=", "``", "university", "of", "michigan", "''", "GROUP", "BY", "t1", ".", "name", "HAVING", "SUM", "(", "t4", ".", "citation_num", ")", ">", "5000"], "query_toks_no_value": ["SELECT", "t1", ".", "name", "FROM", "domain_author", "AS", "t6", "JOIN", "author", "AS", "t1", "ON", "t6", ".", "aid", "=", "t1", ".", "aid", "JOIN", "DOMAIN", "AS", "t3", "ON", "t3", ".", "did", "=", "t6", ".", "did", "JOIN", "organization", "AS", "t5", "ON", "t5", ".", "oid", "=", "t1", ".", "oid", "JOIN", "writes", "AS", "t2", "ON", "t2", ".", "aid", "=", "t1", ".", "aid", "JOIN", "publication", "AS", "t4", "ON", "t2", ".", "pid", "=", "t4", ".", "pid", "WHERE", "t3", ".", "name", "=", "value", "AND", "t5", ".", "name", "=", "value", "of", "michigan", "GROUP", "BY", "t1", ".", "name", "HAVING", "SUM", "(", "t4", ".", "citation_num", ")", ">", "value"], "question": "return me the author in the \" University of Michigan \" in Databases area whose papers have more than 5000 sum citations .", "question_toks": ["return", "me", "the", "author", "in", "the", "\"", "University", "of", "Michigan", "\"", "in", "Databases", "area", "whose", "papers", "have", "more", "than", "5000", "sum", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0], ["table_unit", 2], ["table_unit", 11], ["table_unit", 13], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"databases\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"university of michigan\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [4, 25, false], null], 5000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1424", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0084", "db_id": "restaurant_1", "query": "select restaurant.resname , sum(visits_restaurant.spent) from visits_restaurant join restaurant on visits_restaurant.resid = restaurant.resid group by restaurant.resid order by sum(visits_restaurant.spent) asc limit 1", "query_toks": ["SELECT", "Restaurant", ".", "ResName", ",", "sum", "(", "Visits_Restaurant", ".", "Spent", ")", "FROM", "Visits_Restaurant", "JOIN", "Restaurant", "ON", "Visits_Restaurant", ".", "ResID", "=", "Restaurant", ".", "ResID", "GROUP", "BY", "Restaurant", ".", "ResID", "ORDER", "BY", "sum", "(", "Visits_Restaurant", ".", "Spent", ")", "ASC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "Restaurant", ".", "ResName", ",", "sum", "(", "Visits_Restaurant", ".", "Spent", ")", "FROM", "Visits_Restaurant", "JOIN", "Restaurant", "ON", "Visits_Restaurant", ".", "ResID", "=", "Restaurant", ".", "ResID", "GROUP", "BY", "Restaurant", ".", "ResID", "ORDER", "BY", "sum", "(", "Visits_Restaurant", ".", "Spent", ")", "ASC", "LIMIT", "1"], "question": "At which restaurant did the students spend the least sum of time? List restaurant and the time students spent in the sum.", "question_toks": ["At", "which", "restaurant", "did", "the", "students", "spend", "the", "least", "sum", "of", "time", "?", "List", "restaurant", "and", "the", "time", "students", "spent", "in", "the", "sum", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["asc", [[0, [4, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2840", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"]}, {"id": "hidden_sum_0085", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank where city = \"new york city\"", "query_toks": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank", "WHERE", "city", "=", "``", "new", "york", "city", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank", "WHERE", "city", "=", "value", "york", "city"], "question": "Find the sum of the number of customers in the banks at New York City.", "question_toks": ["Find", "the", "sum", "of", "the", "number", "of", "customers", "in", "the", "banks", "at", "New", "York", "City", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"new york city\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3010", "is_simplification": true, "simplifications_tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"]}, {"id": "hidden_max_0000", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "question": "Show the student id of the student with maximum age.", "question_toks": ["Show", "the", "student", "id", "of", "the", "student", "with", "maximum", "age", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0487", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0001", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "question": "What student id corresponds to the student with maximum age?", "question_toks": ["What", "student", "id", "corresponds", "to", "the", "student", "with", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0488", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0002", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "question": "For each city, return the maximum latitude among its stations.", "question_toks": ["For", "each", "city", ",", "return", "the", "maximum", "latitude", "among", "its", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0113", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0003", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "question": "For each city, what is the maximum latitude for its stations?", "question_toks": ["For", "each", "city", ",", "what", "is", "the", "maximum", "latitude", "for", "its", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0114", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0004", "db_id": "bike_1", "query": "select avg(long) from station where id not in (select station_id from status group by station_id having max(bikes_available) > 10)", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "10", ")"], "query_toks_no_value": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "value", ")"], "question": "What is the average longitude of stations with maximum bike availability not more than 10?", "question_toks": ["What", "is", "the", "average", "longitude", "of", "stations", "with", "maximum", "bike", "availability", "not", "more", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [1, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0151", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0005", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "query_toks_no_value": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "question": "List all the cities in a decreasing order of each city's stations' maximum latitude.", "question_toks": ["List", "all", "the", "cities", "in", "a", "decreasing", "order", "of", "each", "city", "'", "s", "stations", "'", "maximum", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0183", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0006", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "query_toks_no_value": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "question": "For each city, list their names in decreasing order by their maximum station latitude.", "question_toks": ["For", "each", "city", ",", "list", "their", "names", "in", "decreasing", "order", "by", "their", "maximum", "station", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0184", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0007", "db_id": "bike_1", "query": "select date , max_temperature_f - min_temperature_f from weather order by max_temperature_f - min_temperature_f limit 1", "query_toks": ["SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1"], "question": "What are the days that had the minimum temperature range, and what was that range?", "question_toks": ["What", "are", "the", "days", "that", "had", "the", "minimum", "temperature", "range", ",", "and", "what", "was", "that", "range", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 24, false], [0, 26, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 24, false], [0, 26, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0202", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0008", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "query_toks_no_value": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "question": "find the maximum support percentage, minimum consider rate and oppose rate of all candidates.", "question_toks": ["find", "the", "maximum", "support", "percentage", ",", "minimum", "consider", "rate", "and", "oppose", "rate", "of", "all", "candidates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2426", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0009", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "question": "What are the durations of the tracks with maximum and minimum duration in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "tracks", "with", "maximum", "and", "minimum", "duration", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0831", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0010", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "``", "pop", "''"], "query_toks_no_value": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "value"], "question": "What are the duration of the longest and shortest pop tracks in milliseconds?", "question_toks": ["What", "are", "the", "duration", "of", "the", "longest", "and", "shortest", "pop", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0881", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0011", "db_id": "cinema", "query": "select t2.title , max(t1.price) from schedule as t1 join film as t2 on t1.film_id = t2.film_id group by t1.film_id", "query_toks": ["SELECT", "T2", ".", "title", ",", "max", "(", "T1", ".", "price", ")", "FROM", "schedule", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1", ".", "film_id", "=", "T2", ".", "film_id", "GROUP", "BY", "T1", ".", "film_id"], "query_toks_no_value": ["SELECT", "T2", ".", "title", ",", "max", "(", "T1", ".", "price", ")", "FROM", "schedule", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1", ".", "film_id", "=", "T2", ".", "film_id", "GROUP", "BY", "T1", ".", "film_id"], "question": "Give me the title and maximum price for each film.", "question_toks": ["Give", "me", "the", "title", "and", "maximum", "price", "for", "each", "film", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [1, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1952", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0012", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "What is the maximum, minimum and average student GPA for every department?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3222", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0013", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "question": "What are the maximum and average capacity for rooms in each building?", "question_toks": ["What", "are", "the", "maximum", "and", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1395", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0014", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["SELECT", "T3", ".", "title", ",", "T3", ".", "credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1", ".", "building", "=", "T2", ".", "building", "AND", "T1", ".", "room_number", "=", "T2", ".", "room_number", "JOIN", "course", "AS", "T3", "ON", "T2", ".", "course_id", "=", "T3", ".", "course_id", "WHERE", "T1", ".", "capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "query_toks_no_value": ["SELECT", "T3", ".", "title", ",", "T3", ".", "credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1", ".", "building", "=", "T2", ".", "building", "AND", "T1", ".", "room_number", "=", "T2", ".", "room_number", "JOIN", "course", "AS", "T3", "ON", "T2", ".", "course_id", "=", "T3", ".", "course_id", "WHERE", "T1", ".", "capacity", "=", "value", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "question": "What is the title and credits of the course that is taught in the largest classroom (with the maximum capacity)?", "question_toks": ["What", "is", "the", "title", "and", "credits", "of", "the", "course", "that", "is", "taught", "in", "the", "largest", "classroom", "(", "with", "the", "maximum", "capacity", ")?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1450", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0015", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["SELECT", "T3", ".", "title", ",", "T3", ".", "credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1", ".", "building", "=", "T2", ".", "building", "AND", "T1", ".", "room_number", "=", "T2", ".", "room_number", "JOIN", "course", "AS", "T3", "ON", "T2", ".", "course_id", "=", "T3", ".", "course_id", "WHERE", "T1", ".", "capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "query_toks_no_value": ["SELECT", "T3", ".", "title", ",", "T3", ".", "credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1", ".", "building", "=", "T2", ".", "building", "AND", "T1", ".", "room_number", "=", "T2", ".", "room_number", "JOIN", "course", "AS", "T3", "ON", "T2", ".", "course_id", "=", "T3", ".", "course_id", "WHERE", "T1", ".", "capacity", "=", "value", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "question": "Give the title and credits for the course that is taught in the classroom with the maximum capacity.", "question_toks": ["Give", "the", "title", "and", "credits", "for", "the", "course", "that", "is", "taught", "in", "the", "classroom", "with", "the", "maximum", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1451", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0016", "db_id": "college_2", "query": "select distinct salary from instructor where salary < (select max(salary) from instructor)", "query_toks": ["SELECT", "DISTINCT", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", ")"], "query_toks_no_value": ["SELECT", "DISTINCT", "salary", "FROM", "instructor", "WHERE", "salary", "<", "value", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", ")"], "question": "Find the salaries of all distinct instructors that are less than the maximum salary.", "question_toks": ["Find", "the", "salaries", "of", "all", "distinct", "instructors", "that", "are", "less", "than", "the", "maximum", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1482", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0017", "db_id": "college_2", "query": "select name from instructor where salary > (select max(salary) from instructor where dept_name = \"biology\")", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "``", "biology", "\")"], "query_toks_no_value": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "value", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "value", "\")"], "question": "Find the names of all instructors whose salary is greater than the maximum salary of instructors from the Biology department.", "question_toks": ["Find", "the", "names", "of", "all", "instructors", "whose", "salary", "is", "greater", "than", "the", "maximum", "salary", "of", "instructors", "from", "the", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1490", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0018", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "\"%", "5", "%\""], "query_toks_no_value": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "\"%", "5", "%\""], "question": "What are the account details with the maximum value or with value having char '5' in it?", "question_toks": ["What", "are", "the", "account", "details", "with", "the", "maximum", "value", "or", "with", "value", "having", "char", "'", "5", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6467", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0019", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "\"%", "5", "%\""], "query_toks_no_value": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "\"%", "5", "%\""], "question": "Return the account details with the maximum value, as well as those that include the character 5.", "question_toks": ["Return", "the", "account", "details", "with", "the", "maximum", "value", ",", "as", "well", "as", "those", "that", "include", "the", "character", "5", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6468", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0020", "db_id": "csu_1", "query": "select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and faculty > (select max(faculty) from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and t1.county = \"orange\")", "query_toks": ["SELECT", "T1", ".", "campus", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", "=", "2002", "AND", "faculty", ">", "(", "SELECT", "max", "(", "faculty", ")", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", "=", "2002", "AND", "T1", ".", "county", "=", "``", "orange", "\")"], "query_toks_no_value": ["SELECT", "T1", ".", "campus", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", "=", "value", "AND", "faculty", ">", "value", "SELECT", "max", "(", "faculty", ")", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", "=", "value", "AND", "T1", ".", "county", "=", "value", "\")"], "question": "Find the names of the campus which has more faculties in 2002 than campus in Orange county with maximum number of faculties.", "question_toks": ["Find", "the", "names", "of", "the", "campus", "which", "has", "more", "faculties", "in", "2002", "than", "campus", "in", "Orange", "county", "with", "maximum", "number", "of", "faculties", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 3, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 2, [0, [0, 4, false], null], "\"orange\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2360", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0021", "db_id": "customers_and_addresses", "query": "select max(t2.active_to_date) from customers as t1 join customer_contact_channels as t2 on t1.customer_id = t2.customer_id where t1.customer_name = \"tillman ernser\"", "query_toks": ["SELECT", "max", "(", "t2", ".", "active_to_date", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "customer_name", "=", "``", "tillman", "ernser", "''"], "query_toks_no_value": ["SELECT", "max", "(", "t2", ".", "active_to_date", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "customer_name", "=", "value", "ernser"], "question": "What is the \"active to date\" of the contact channel with maximum activating date used by \"Tillman Ernser\"?", "question_toks": ["What", "is", "the", "\"", "active", "to", "date", "\"", "of", "the", "contact", "channel", "with", "maximum", "activating", "date", "used", "by", "\"", "Tillman", "Ernser", "\"?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"tillman ernser\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6099", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0022", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["SELECT", "t1", ".", "customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2", ".", "order_id", "=", "t3", ".", "order_id", "WHERE", "t3", ".", "order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "query_toks_no_value": ["SELECT", "t1", ".", "customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2", ".", "order_id", "=", "t3", ".", "order_id", "WHERE", "t3", ".", "order_quantity", "=", "value", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "question": "What is the name of the customer that made the order with the maximum quantity?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "that", "made", "the", "order", "with", "the", "maximum", "quantity", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6107", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0023", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["SELECT", "t1", ".", "customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2", ".", "order_id", "=", "t3", ".", "order_id", "WHERE", "t3", ".", "order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "query_toks_no_value": ["SELECT", "t1", ".", "customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2", ".", "order_id", "=", "t3", ".", "order_id", "WHERE", "t3", ".", "order_quantity", "=", "value", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "question": "Find the name of the customer who made the order of the maximum amount of goods.", "question_toks": ["Find", "the", "name", "of", "the", "customer", "who", "made", "the", "order", "of", "the", "maximum", "amount", "of", "goods", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6108", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0024", "db_id": "department_store", "query": "select staff_id from staff_department_assignments where date_assigned_to < (select max(date_assigned_to) from staff_department_assignments where job_title_code = \"clerical staff\")", "query_toks": ["SELECT", "staff_id", "FROM", "Staff_Department_Assignments", "WHERE", "date_assigned_to", "<", "(", "SELECT", "max", "(", "date_assigned_to", ")", "FROM", "Staff_Department_Assignments", "WHERE", "job_title_code", "=", "``", "clerical", "staff", "\")"], "query_toks_no_value": ["SELECT", "staff_id", "FROM", "Staff_Department_Assignments", "WHERE", "date_assigned_to", "<", "value", "SELECT", "max", "(", "date_assigned_to", ")", "FROM", "Staff_Department_Assignments", "WHERE", "job_title_code", "=", "value", "staff", "\")"], "question": "What is id of the staff who had a Staff Department Assignment earlier than max of Clerical Staff?", "question_toks": ["What", "is", "id", "of", "the", "staff", "who", "had", "a", "Staff", "Department", "Assignment", "earlier", "than", "max", "of", "Clerical", "Staff", "?"], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 52, false], null]]]], "where": [[false, 4, [0, [0, 56, false], null], {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[1, [0, [0, 56, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"clerical staff\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4755", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0025", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "question": "What is the maximum and minimum customer codes?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4775", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0026", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "question": "What are the maximum and minimum prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4781", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0027", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1", ".", "owner_id", "=", "T2", ".", "owner_id", "WHERE", "T2", ".", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "Dogs", ")"], "question": "List the last name of the owner owning the dog with maximum age.", "question_toks": ["List", "the", "last", "name", "of", "the", "owner", "owning", "the", "dog", "with", "maximum", "age", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0027", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0028", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1", ".", "owner_id", "=", "T2", ".", "owner_id", "WHERE", "T2", ".", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "Dogs", ")"], "question": "Who owns the dog with the maximum age? Give me his or her last name.", "question_toks": ["Who", "owns", "the", "dog", "with", "the", "maximum", "age", "?", "Give", "me", "his", "or", "her", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0028", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0029", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "query_toks_no_value": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "question": "What is the maximum age of the dog?", "question_toks": ["What", "is", "the", "maximum", "age", "of", "the", "dog", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0988", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0030", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "query_toks_no_value": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "question": "Tell me the maximum age of the dog.", "question_toks": ["Tell", "me", "the", "maximum", "age", "of", "the", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0989", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0031", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "query_toks_no_value": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "question": "How much does the charge type with maximum amount costs?", "question_toks": ["How", "much", "does", "the", "charge", "type", "with", "maximum", "amount", "costs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0992", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0032", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "query_toks_no_value": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "question": "What is the maximum charge amount?", "question_toks": ["What", "is", "the", "maximum", "charge", "amount", "of", "the", "charge", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0993", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0033", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "question": "Find the average and maximum age for students with different sex.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "for", "students", "with", "different", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5722", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0034", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "question": "What is the average and maximum age for each gender of student?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "age", "for", "each", "gender", "of", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5723", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0035", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["SELECT", "avg", "(", "T1", ".", "age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3", ".", "dormid", "=", "T2", ".", "dormid", "WHERE", "T3", ".", "student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3", ".", "dormid", "=", "T2", ".", "dormid", "WHERE", "T3", ".", "student_capacity", "=", "value", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "question": "Find the average age of students who are living in the dorm with the maximum capacity.", "question_toks": ["Find", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "maximum", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5744", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0036", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["SELECT", "avg", "(", "T1", ".", "age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3", ".", "dormid", "=", "T2", ".", "dormid", "WHERE", "T3", ".", "student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3", ".", "dormid", "=", "T2", ".", "dormid", "WHERE", "T3", ".", "student_capacity", "=", "value", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "question": "What is the average age of students who are living in the dorm with the maximum capacity?", "question_toks": ["What", "is", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "maximum", "capacity", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5745", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0037", "db_id": "e_government", "query": "select t3.individual_last_name from organizations as t1 join organization_contact_individuals as t2 on t1.organization_id = t2.organization_id join individuals as t3 on t2.individual_id = t3.individual_id where t1.uk_vat_number = (select max(uk_vat_number) from organizations) order by t2.date_contact_to asc limit 1", "query_toks": ["SELECT", "t3", ".", "individual_last_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "JOIN", "individuals", "AS", "t3", "ON", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "WHERE", "t1", ".", "uk_vat_number", "=", "(", "SELECT", "max", "(", "uk_vat_number", ")", "FROM", "organizations", ")", "ORDER", "BY", "t2", ".", "date_contact_to", "ASC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "t3", ".", "individual_last_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "JOIN", "individuals", "AS", "t3", "ON", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "WHERE", "t1", ".", "uk_vat_number", "=", "value", "SELECT", "max", "(", "uk_vat_number", ")", "FROM", "organizations", ")", "ORDER", "BY", "t2", ".", "date_contact_to", "ASC", "LIMIT", "1"], "question": "Find the last name of the first ever contact person of the organization with the maximum UK Vat number.", "question_toks": ["Find", "the", "last", "name", "of", "the", "first", "ever", "contact", "person", "of", "the", "organization", "with", "the", "maximum", "UK", "Vat", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 32, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 35, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6324", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0038", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "question": "What is the average and maximum salary of all employees?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0372", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0039", "db_id": "flight_4", "query": "select max(elevation) from airports where country = \"iceland\"", "query_toks": ["SELECT", "max", "(", "elevation", ")", "FROM", "airports", "WHERE", "country", "=", "``", "iceland", "''"], "query_toks_no_value": ["SELECT", "max", "(", "elevation", ")", "FROM", "airports", "WHERE", "country", "=", "value"], "question": "What is the maximum elevation of an airport in the country of Iceland?", "question_toks": ["What", "is", "the", "maximum", "elevation", "of", "an", "airport", "in", "the", "country", "of", "Iceland", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"iceland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6812", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0040", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "value", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "value", ")"], "question": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than drivers with maximum value in the race with id 841.", "question_toks": ["Find", "the", "distinct", "driver", "id", "and", "the", "stop", "number", "of", "all", "drivers", "that", "have", "a", "shorter", "pit", "stop", "duration", "than", "drivers", "with", "maximum", "value", "in", "the", "race", "with", "id", "841", "."], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2195", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0041", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "value", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "value", ")"], "question": "What is the id and stop number for each driver that has a shorter pit stop than the driver in the race with id 841?", "question_toks": ["What", "is", "the", "id", "and", "stop", "number", "for", "each", "driver", "that", "has", "a", "shorter", "pit", "stop", "than", "the", "driver", "in", "the", "race", "with", "id", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2196", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0042", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "value", ")", "AND", "state_name", "=", "value"], "question": "what is the city with maximum population in wyoming", "question_toks": ["what", "is", "the", "city", "with", "maximum", "population", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0000", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0043", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "value", ")", "AND", "state_name", "=", "value"], "question": "what wyoming city has the maximum value of population", "question_toks": ["what", "wyoming", "city", "has", "the", "maximum", "value", "of", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0001", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0044", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "value", ")", "AND", "state_name", "=", "value"], "question": "what is the city with max population in wyoming", "question_toks": ["what", "is", "the", "city", "with", "max", "population", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0002", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0045", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "value", ")", "AND", "state_name", "=", "value"], "question": "where is the maximum populated area of wyoming", "question_toks": ["where", "is", "the", "maximum", "populated", "area", "of", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0003", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0046", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "value", ")", "AND", "state_name", "=", "value"], "question": "which city in wyoming has the maximum population", "question_toks": ["which", "city", "in", "wyoming", "has", "the", "maximum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0004", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0047", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "value", ")", "AND", "state_name", "=", "value"], "question": "what cities in wyoming have the maximum number of citizens", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "maximum", "number", "of", "citizens"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0005", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0048", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\"", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "value", ")", "AND", "state_name", "=", "value"], "question": "what cities in wyoming have the maximum populations", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "maximum", "populations"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0006", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0049", "db_id": "geo", "query": "select state_name from state where population = ( select max ( population ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "state", ")"], "question": "which state has the maximum number of people", "question_toks": ["which", "state", "has", "the", "maximum", "number", "of", "people"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0068", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0050", "db_id": "geo", "query": "select length from river where length = ( select max ( length ) from river )", "query_toks": ["SELECT", "LENGTH", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")"], "query_toks_no_value": ["SELECT", "LENGTH", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")"], "question": "how long is the river with maximum length in the usa", "question_toks": ["how", "long", "is", "the", "river", "with", "maximum", "length", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0074", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0051", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\"", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''"], "query_toks_no_value": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "value", ")", "AND", "traverse", "=", "value"], "question": "what is the river with maximum length flowing through texas", "question_toks": ["what", "is", "the", "river", "with", "maximum", "length", "flowing", "through", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0075", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0052", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\"", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''"], "query_toks_no_value": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "value", ")", "AND", "traverse", "=", "value"], "question": "what is the river with max length in texas state", "question_toks": ["what", "is", "the", "river", "with", "max", "length", "in", "texas", "state"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0076", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0053", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\"", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''"], "query_toks_no_value": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "value", ")", "AND", "traverse", "=", "value"], "question": "what is the max length river in texas", "question_toks": ["what", "is", "the", "max", "length", "river", "in", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0077", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0054", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river )", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")"], "query_toks_no_value": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")"], "question": "which states does the river with maximum length run through", "question_toks": ["which", "states", "does", "the", "river", "with", "maximum", "length", "run", "through"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0147", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0055", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river )", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")"], "query_toks_no_value": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "value", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")"], "question": "which traverse has the river with max length", "question_toks": ["which", "state", "has", "the", "max", "length", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0148", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0056", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "question": "what state has the maximum area", "question_toks": ["what", "state", "has", "the", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0174", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0057", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "question": "what is the state with the maximum area", "question_toks": ["what", "is", "the", "state", "with", "the", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0175", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0058", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "question": "what state has the maximum area among others", "question_toks": ["what", "state", "has", "the", "maximum", "area", "among", "others"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0176", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0059", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "question": "what is the state in continental us with the maximum area", "question_toks": ["what", "is", "the", "state", "in", "continental", "us", "with", "the", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0177", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0060", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow", "query_toks": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow"], "query_toks_no_value": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow"], "question": "how high is the point in america with the maximum elevation", "question_toks": ["how", "high", "is", "the", "point", "in", "america", "with", "the", "maximum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0211", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0061", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow", "query_toks": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow"], "query_toks_no_value": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow"], "question": "what is the elevation in the united states with the maximum value of highest elevation", "question_toks": ["what", "is", "the", "elevation", "in", "the", "united", "states", "with", "the", "maximum", "value", "of", "highest", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0212", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0062", "db_id": "geo", "query": "select population from city where population = ( select max ( population ) from city where state_name = \"alaska\" ) and state_name = \"alaska\"", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "alaska", "''", ")", "AND", "state_name", "=", "``", "alaska", "''"], "query_toks_no_value": ["SELECT", "population", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "value", ")", "AND", "state_name", "=", "value"], "question": "how large is the city in alaska with the maximum value of population", "question_toks": ["how", "large", "is", "the", "city", "in", "alaska", "with", "the", "maximum", "value", "of", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0236", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0063", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")"], "question": "what city has the maximum population", "question_toks": ["what", "city", "has", "the", "maximum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0303", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0064", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")"], "question": "what is the city with the maximum population in usa", "question_toks": ["what", "is", "the", "city", "with", "the", "maximum", "population", "in", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0305", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0065", "db_id": "geo", "query": "select city_name from city where population = ( select max ( t1.population ) from state as t2 join city as t1 on t2.capital = t1.city_name )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "t1", ".", "population", ")", "FROM", "state", "AS", "t2", "JOIN", "city", "AS", "t1", "ON", "t2", ".", "capital", "=", "t1", ".", "city_name", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "t1", ".", "population", ")", "FROM", "state", "AS", "t2", "JOIN", "city", "AS", "t1", "ON", "t2", ".", "capital", "=", "t1", ".", "city_name", ")"], "question": "what is the capital with maximum capital", "question_toks": ["what", "is", "the", "capital", "with", "maximum", "capital"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 7, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0309", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0066", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain )", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")"], "query_toks_no_value": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "value", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")"], "question": "what is the mountain with maximum altitude in the us", "question_toks": ["what", "is", "the", "mountain", "with", "maximum", "altitude", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0327", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0067", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain )", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")"], "query_toks_no_value": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "value", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")"], "question": "what is the mountain with the maximum altitude in us", "question_toks": ["what", "is", "the", "mountain", "with", "the", "maximum", "altitude", "in", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0328", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0068", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain )", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")"], "query_toks_no_value": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "value", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")"], "question": "what is the mountain with the maximum altitude in america", "question_toks": ["what", "is", "the", "mountain", "with", "the", "maximum", "altitude", "in", "america"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0329", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0069", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain )", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")"], "query_toks_no_value": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "value", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")"], "question": "what is the mountain with the maximum altitude in the united states", "question_toks": ["what", "is", "the", "mountain", "with", "the", "maximum", "altitude", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0330", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0070", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow )", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")"], "query_toks_no_value": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "value", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")"], "question": "what is the highest point with max elevation in the usa", "question_toks": ["what", "is", "the", "highest", "point", "with", "max", "elevation", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0333", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0071", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow )", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")"], "query_toks_no_value": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "value", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")"], "question": "what is the point with max elevation of the usa", "question_toks": ["what", "is", "the", "point", "with", "max", "elevation", "of", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0334", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0072", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")"], "question": "what is the city with maximum population in the state with minimum population in the usa", "question_toks": ["what", "is", "the", "city", "with", "maximum", "population", "in", "the", "state", "with", "minimum", "population", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0340", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0073", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")"], "question": "what is the city with the maximum population in the state with minimum population", "question_toks": ["what", "is", "the", "city", "with", "the", "maximum", "population", "in", "the", "state", "with", "minimum", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0341", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0074", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state where state_name in ( select border from border_info where state_name = \"california\" ) ) and state_name in ( select border from border_info where state_name = \"california\" )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "california", "''", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "california", "''", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MAX", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "value", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "value", ")"], "question": "what is the state with the maximum area bordering california", "question_toks": ["what", "is", "the", "state", "with", "the", "maximum", "area", "bordering", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0342", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0075", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")"], "question": "what is the state with maximum density in the usa", "question_toks": ["what", "is", "the", "state", "with", "maximum", "density", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0362", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0076", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")"], "question": "which state has the population with maximum density", "question_toks": ["which", "state", "has", "the", "population", "with", "maximum", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0363", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0077", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")"], "question": "which state has the maximum density", "question_toks": ["which", "state", "has", "the", "maximum", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0364", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0078", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "value", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")"], "question": "which state has the maximum density", "question_toks": ["which", "state", "has", "the", "maximum", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0370", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0079", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain where state_name != \"alaska\" )", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", "WHERE", "state_name", "!=", "``", "alaska", "''", ")"], "query_toks_no_value": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "value", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", "WHERE", "state_name", "!=", "value", ")"], "question": "which is the peak with maximum altitude is not in alaska", "question_toks": ["which", "is", "the", "peak", "with", "maximum", "altitude", "is", "not", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 25, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0427", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0080", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow )", "query_toks": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "value", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")"], "question": "which state has the maximum elevation", "question_toks": ["which", "state", "has", "the", "maximum", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0434", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0081", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow )", "query_toks": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "value", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")"], "question": "in which state does the point with maximum elevation in usa exist", "question_toks": ["in", "which", "state", "does", "the", "point", "with", "maximum", "elevation", "in", "usa", "exist"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0437", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0082", "db_id": "geo", "query": "select capital from state where area = ( select max ( area ) from state )", "query_toks": ["SELECT", "capital", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "capital", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")"], "question": "what is the capital of the state with maximum area", "question_toks": ["what", "is", "the", "capital", "of", "the", "state", "with", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0515", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0083", "db_id": "geo", "query": "select city_name from city where population > 150000 and state_name = ( select state_name from state where area = ( select max ( area ) from state ) )", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", ">", "150000", "AND", "state_name", "=", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")"], "query_toks_no_value": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", ">", "value", "AND", "state_name", "=", "value", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "value", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")"], "question": "what are the major cities in the state with maximum area", "question_toks": ["what", "are", "the", "major", "cities", "in", "the", "state", "with", "maximum", "area"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 150000.0, null], "and", [false, 2, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0522", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0084", "db_id": "geo", "query": "select max ( area ) from state", "query_toks": ["SELECT", "MAX", "(", "area", ")", "FROM", "state"], "query_toks_no_value": ["SELECT", "MAX", "(", "area", ")", "FROM", "state"], "question": "what is the size of the state with maximum area in the usa", "question_toks": ["what", "is", "the", "size", "of", "the", "state", "with", "maximum", "area", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0532", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0085", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "question": "What are the maximum cost, minimum cost and average cost of procedures?", "question_toks": ["What", "are", "the", "maximum", "cost", ",", "minimum", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3966", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0086", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "question": "Tell me the maximum, minimum and average cost of procedures.", "question_toks": ["Tell", "me", "the", "maximum", ",", "minimum", "and", "average", "cost", "of", "procedures", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3967", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0087", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "query_toks_no_value": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "question": "display the employee ID for each employee and the maximum date on which he ended the jobs.", "question_toks": ["display", "the", "employee", "ID", "for", "each", "employee", "and", "the", "maximum", "date", "on", "which", "he", "ended", "the", "jobs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3447", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0088", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "query_toks_no_value": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "question": "What are the employee ids for each employee and max final dates of employment at their jobs?", "question_toks": ["What", "are", "the", "employee", "ids", "for", "each", "employee", "and", "max", "final", "dates", "of", "employment", "at", "their", "jobs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3448", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0089", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = \"pu_man\" )", "query_toks": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "``", "pu_man", "''", ")"], "query_toks_no_value": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "value", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "value", ")"], "question": "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than maximum salary of those employees whose job title is PU_MAN.", "question_toks": ["display", "the", "employee", "number", ",", "name", "(", "first", "name", "and", "last", "name", ")", "and", "job", "title", "for", "all", "employees", "whose", "salary", "is", "more", "than", "maximum", "salary", "of", "those", "employees", "whose", "job", "title", "is", "PU_MAN", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"pu_man\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3509", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0090", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = \"pu_man\" )", "query_toks": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "``", "pu_man", "''", ")"], "query_toks_no_value": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "value", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "value", ")"], "question": "What are the employee ids, full names, and job ids for employees who make more than the maximum earning employee with title PU_MAN?", "question_toks": ["What", "are", "the", "employee", "ids", ",", "full", "names", ",", "and", "job", "ids", "for", "employees", "who", "make", "more", "than", "the", "maximum", "earning", "employee", "with", "title", "PU_MAN", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"pu_man\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3510", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0091", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "question": "display the department ID, full name (first and last name), salary for those employees who is maximum salary in every department.", "question_toks": ["display", "the", "department", "ID", ",", "full", "name", "(", "first", "and", "last", "name", "),", "salary", "for", "those", "employees", "who", "is", "maximum", "salary", "in", "every", "department", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3515", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0092", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "question": "What are the department ids, full names, and salaries for employees who make the maximum in their departments?", "question_toks": ["What", "are", "the", "department", "ids", ",", "full", "names", ",", "and", "salaries", "for", "employees", "who", "make", "the", "maximum", "in", "their", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3516", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0093", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["SELECT", "t2", ".", "title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1", ".", "paperid", "=", "t2", ".", "paperid", "WHERE", "t1", ".", "authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "query_toks_no_value": ["SELECT", "t2", ".", "title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1", ".", "paperid", "=", "t2", ".", "paperid", "WHERE", "t1", ".", "authorder", "=", "value", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "question": "Retrieve the title of the paper that has the maximum number of authors.", "question_toks": ["Retrieve", "the", "title", "of", "the", "paper", "that", "has", "the", "maximum", "number", "of", "authors", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2912", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0094", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["SELECT", "t2", ".", "title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1", ".", "paperid", "=", "t2", ".", "paperid", "WHERE", "t1", ".", "authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "query_toks_no_value": ["SELECT", "t2", ".", "title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1", ".", "paperid", "=", "t2", ".", "paperid", "WHERE", "t1", ".", "authorder", "=", "value", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "question": "Which paper has the maximum number of authors? Give me the paper title.", "question_toks": ["Which", "paper", "has", "the", "maximum", "number", "of", "authors", "?", "Give", "me", "the", "paper", "title", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2913", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0095", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["SELECT", "t3", ".", "customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "WHERE", "t1", ".", "amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["SELECT", "t3", ".", "customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "WHERE", "t1", ".", "amount_claimed", "=", "value", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "question": "What is the name of the customer who has made the maximum amount of claim in a single claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "maximum", "amount", "of", "claim", "in", "a", "single", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1519", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0096", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["SELECT", "t3", ".", "customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "WHERE", "t1", ".", "amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["SELECT", "t3", ".", "customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "WHERE", "t1", ".", "amount_claimed", "=", "value", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "question": "Which customer made the maximum amount of claim in a single claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "maximum", "amount", "of", "claim", "in", "a", "single", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1520", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0097", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["SELECT", "t2", ".", "customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "query_toks_no_value": ["SELECT", "t2", ".", "customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "start_date", "=", "value", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "question": "Which customer is associated with the policy with maximum start date?", "question_toks": ["Which", "customer", "is", "associated", "with", "the", "policy", "with", "maximum", "start", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1545", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0098", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["SELECT", "t2", ".", "customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "query_toks_no_value": ["SELECT", "t2", ".", "customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "WHERE", "t1", ".", "start_date", "=", "value", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "question": "Find the customer who started a policy in maximum start date.", "question_toks": ["Find", "the", "customer", "who", "started", "a", "policy", "in", "maximum", "start", "date", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1546", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0099", "db_id": "local_govt_and_lot", "query": "select max(date_moved_in) from residents", "query_toks": ["SELECT", "max", "(", "date_moved_in", ")", "FROM", "Residents"], "query_toks_no_value": ["SELECT", "max", "(", "date_moved_in", ")", "FROM", "Residents"], "question": "When is the maximum day any resident moved in?", "question_toks": ["When", "is", "the", "maximum", "day", "any", "resident", "moved", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4855", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0100", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "query_toks_no_value": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "question": "Find the name and revenue of the company that earns the maximum revenue in each city.", "question_toks": ["Find", "the", "name", "and", "revenue", "of", "the", "company", "that", "earns", "the", "maximum", "revenue", "in", "each", "city", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5308", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0101", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "query_toks_no_value": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "question": "What are the names and revenues of the companies with the maximum revenues in each headquarter city?", "question_toks": ["What", "are", "the", "names", "and", "revenues", "of", "the", "companies", "with", "the", "maximum", "revenues", "in", "each", "headquarter", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5309", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0102", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["SELECT", "T1", ".", "Name", ",", "max", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", ",", "max", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name"], "question": "Select the name of each manufacturer along with the name and price of its product with maximum price.", "question_toks": ["Select", "the", "name", "of", "each", "manufacturer", "along", "with", "the", "name", "and", "price", "of", "its", "product", "with", "maximum", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5348", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0103", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["SELECT", "T1", ".", "Name", ",", "max", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", ",", "max", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name"], "question": "For each manufacturer name, what are the names and prices of their product with max prices?", "question_toks": ["For", "each", "manufacturer", "name", ",", "what", "are", "the", "names", "and", "prices", "of", "their", "product", "with", "max", "prices", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5349", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0104", "db_id": "manufacturer", "query": "select t1.name from furniture as t1 join furniture_manufacte as t2 on t1.furniture_id = t2.furniture_id where t2.price_in_dollar < (select max(price_in_dollar) from furniture_manufacte)", "query_toks": ["SELECT", "t1", ".", "name", "FROM", "furniture", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1", ".", "Furniture_ID", "=", "t2", ".", "Furniture_ID", "WHERE", "t2", ".", "Price_in_Dollar", "<", "(", "SELECT", "max", "(", "Price_in_Dollar", ")", "FROM", "furniture_manufacte", ")"], "query_toks_no_value": ["SELECT", "t1", ".", "name", "FROM", "furniture", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1", ".", "Furniture_ID", "=", "t2", ".", "Furniture_ID", "WHERE", "t2", ".", "Price_in_Dollar", "<", "value", "SELECT", "max", "(", "Price_in_Dollar", ")", "FROM", "furniture_manufacte", ")"], "question": "Find the names of furnitures whose prices are lower than the maximum price.", "question_toks": ["Find", "the", "names", "of", "furnitures", "whose", "prices", "are", "lower", "than", "the", "maximum", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 4, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3394", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0105", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "question": "What is the maximum and minimum rating star?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2450", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0106", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "question": "What is the name of the movie with the maximum year?", "question_toks": ["What", "is", "the", "name", "of", "the", "movie", "with", "the", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2464", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0107", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "question": "What is the title of the movie with maximum year?", "question_toks": ["What", "is", "the", "title", "of", "the", "movie", "with", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2465", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0108", "db_id": "movie_1", "query": "select max(t1.stars) , t2.year from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["SELECT", "max", "(", "T1", ".", "stars", ")", ",", "T2", ".", "year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["SELECT", "max", "(", "T1", ".", "stars", ")", ",", "T2", ".", "year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "question": "What is the maximum stars for the movie with maximum year and when was it released?", "question_toks": ["What", "is", "the", "maximum", "stars", "for", "the", "movie", "with", "maximum", "year", "and", "when", "was", "it", "released", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2467", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0109", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "steven", "spielberg", "\")"], "query_toks_no_value": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "value", "spielberg", "\")"], "question": "What is the names of movies whose created year is after movies with maximum year and directed by Steven Spielberg?", "question_toks": ["What", "is", "the", "names", "of", "movies", "whose", "created", "year", "is", "after", "movies", "with", "maximum", "year", "and", "directed", "by", "Steven", "Spielberg", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"steven spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2468", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0110", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "steven", "spielberg", "\")"], "query_toks_no_value": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "value", "spielberg", "\")"], "question": "What are the names of all movies that were created after the Steven Spielberg film with the maximum year?", "question_toks": ["What", "are", "the", "names", "of", "all", "movies", "that", "were", "created", "after", "the", "Steven", "Spielberg", "film", "with", "the", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"steven spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2469", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0111", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid where director != \"null\" group by director", "query_toks": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "max", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "director", "!=", "``", "null", "''", "GROUP", "BY", "director"], "query_toks_no_value": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "max", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "director", "!=", "value", "GROUP", "BY", "director"], "question": "For each director, return the director's name together with the title of the movie they directed that received the maximum rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.", "question_toks": ["For", "each", "director", ",", "return", "the", "director", "'", "s", "name", "together", "with", "the", "title", "of", "the", "movie", "they", "directed", "that", "received", "the", "maximum", "rating", "among", "all", "of", "their", "movies", ",", "and", "the", "value", "of", "that", "rating", ".", "Ignore", "movies", "whose", "director", "is", "NULL", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2502", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0112", "db_id": "music_1", "query": "select song_name from song where rating < (select max(rating) from song where genre_is = \"blues\")", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "max", "(", "rating", ")", "FROM", "song", "WHERE", "genre_is", "=", "``", "blues", "\")"], "query_toks_no_value": ["SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "value", "SELECT", "max", "(", "rating", ")", "FROM", "song", "WHERE", "genre_is", "=", "value", "\")"], "question": "What are the names of all songs that have a lower rating than song of blues genre with maximal rating?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "have", "a", "lower", "rating", "than", "song", "of", "blues", "genre", "with", "maximal", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"blues\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3571", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0113", "db_id": "music_1", "query": "select f_id from song where resolution > (select max(resolution) from song where rating < 8)", "query_toks": ["SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "max", "(", "resolution", ")", "FROM", "song", "WHERE", "rating", "<", "8", ")"], "query_toks_no_value": ["SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "value", "SELECT", "max", "(", "resolution", ")", "FROM", "song", "WHERE", "rating", "<", "value", ")"], "question": "What is ids of the songs whose resolution is higher than the resolution of maximum rated songs with rating lower than 8?", "question_toks": ["What", "is", "ids", "of", "the", "songs", "whose", "resolution", "is", "higher", "than", "the", "resolution", "of", "maximum", "rated", "songs", "with", "rating", "lower", "than", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3615", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0114", "db_id": "network_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "What is the minimum grade of students who do not have any friends?", "question_toks": ["What", "is", "the", "minimum", "grade", "of", "students", "who", "do", "not", "have", "any", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0917", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0115", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "question": "Who is the person with maximum age?", "question_toks": ["Who", "is", "the", "person", "with", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4408", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0116", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "question": "What is the name of the person with maximum age?", "question_toks": ["What", "is", "the", "name", "of", "the", "person", "with", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4409", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0117", "db_id": "network_2", "query": "select name from person where job = \"student\" and age = (select max(age) from person where job = \"student\" )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "``", "student", "''", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "``", "student", "''", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "value", "AND", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "value", ")"], "question": "Who is the person with maximum age whose job is student?", "question_toks": ["Who", "is", "the", "person", "with", "maximum", "age", "whose", "job", "is", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4410", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0118", "db_id": "network_2", "query": "select name from person where job = \"student\" and age = (select max(age) from person where job = \"student\" )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "``", "student", "''", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "``", "student", "''", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "value", "AND", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "value", ")"], "question": "What is the name of the student with the maximum age?", "question_toks": ["What", "is", "the", "name", "of", "the", "student", "with", "the", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4411", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0119", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = \"engineer\")", "query_toks": ["SELECT", "count", "(*)", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "``", "engineer", "\")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Person", "WHERE", "age", ">", "value", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "value", "\")"], "question": "Find the number of people whose age is greater than maximum age of engineers.", "question_toks": ["Find", "the", "number", "of", "people", "whose", "age", "is", "greater", "than", "maximum", "age", "of", "engineers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4432", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0120", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = \"engineer\")", "query_toks": ["SELECT", "count", "(*)", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "``", "engineer", "\")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Person", "WHERE", "age", ">", "value", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "value", "\")"], "question": "How many people are older than maximum age of all engineer?", "question_toks": ["How", "many", "people", "are", "older", "than", "maximum", "age", "of", "all", "engineer", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4433", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0121", "db_id": "network_2", "query": "select friend from personfriend where name = \"zach\" and year = (select max(year) from personfriend where name = \"zach\")", "query_toks": ["SELECT", "friend", "FROM", "PersonFriend", "WHERE", "name", "=", "``", "zach", "''", "AND", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "``", "zach", "\")"], "query_toks_no_value": ["SELECT", "friend", "FROM", "PersonFriend", "WHERE", "name", "=", "value", "AND", "YEAR", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "value", "\")"], "question": "Who is the friend of Zach with maximum year relationship?", "question_toks": ["Who", "is", "the", "friend", "of", "Zach", "with", "maximum", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4468", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0122", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = \"zach\" and t2.year = (select max(year) from personfriend where name = \"zach\")", "query_toks": ["SELECT", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "friend", "WHERE", "T2", ".", "name", "=", "``", "zach", "''", "AND", "T2", ".", "year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "``", "zach", "\")"], "query_toks_no_value": ["SELECT", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "friend", "WHERE", "T2", ".", "name", "=", "value", "AND", "T2", ".", "year", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "value", "\")"], "question": "What is the age of the friend of Zach with longest year relationship?", "question_toks": ["What", "is", "the", "age", "of", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4470", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0123", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = \"zach\" and t2.year = (select max(year) from personfriend where name = \"zach\")", "query_toks": ["SELECT", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "friend", "WHERE", "T2", ".", "name", "=", "``", "zach", "''", "AND", "T2", ".", "year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "``", "zach", "\")"], "query_toks_no_value": ["SELECT", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "friend", "WHERE", "T2", ".", "name", "=", "value", "AND", "T2", ".", "year", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "value", "\")"], "question": "What are the ages of all of Zach's friends who are in the longest relationship?", "question_toks": ["What", "are", "the", "ages", "of", "all", "of", "Zach", "'", "s", "friends", "who", "are", "in", "the", "longest", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4471", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0124", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"alice\" and t2.year = (select max(year) from personfriend where friend = \"alice\")", "query_toks": ["SELECT", "T1", ".", "name", ",", "T1", ".", "age", ",", "T1", ".", "job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "``", "alice", "''", "AND", "T2", ".", "year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "``", "alice", "\")"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "age", ",", "T1", ".", "job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "value", "AND", "T2", ".", "year", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "value", "\")"], "question": "Find the name, age, and job title of persons who are friends with Alice for the longest years.", "question_toks": ["Find", "the", "name", ",", "age", ",", "and", "job", "title", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "years", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4474", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0125", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"alice\" and t2.year = (select max(year) from personfriend where friend = \"alice\")", "query_toks": ["SELECT", "T1", ".", "name", ",", "T1", ".", "age", ",", "T1", ".", "job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "``", "alice", "''", "AND", "T2", ".", "year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "``", "alice", "\")"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "age", ",", "T1", ".", "job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "value", "AND", "T2", ".", "year", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "value", "\")"], "question": "What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?", "question_toks": ["What", "are", "the", "names", ",", "ages", ",", "and", "jobs", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4475", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0126", "db_id": "perpetrator", "query": "select max(year) from perpetrator", "query_toks": ["SELECT", "max", "(", "YEAR", ")", "FROM", "perpetrator"], "query_toks_no_value": ["SELECT", "max", "(", "YEAR", ")", "FROM", "perpetrator"], "question": "In which year did the crime happen with maximum year?", "question_toks": ["In", "which", "year", "did", "the", "crime", "happen", "with", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2323", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0127", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" )", "query_toks": ["SELECT", "t2", ".", "house_number", ",", "t1", ".", "name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "WHERE", "t2", ".", "city_name", "=", "``", "san", "francisco", "''", "AND", "t1", ".", "food_type", "=", "``", "french", "''", "AND", "t1", ".", "rating", "=", "(", "SELECT", "MAX", "(", "t1", ".", "rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "WHERE", "t2", ".", "city_name", "=", "``", "san", "francisco", "''", "AND", "t1", ".", "food_type", "=", "``", "french", "''", ")"], "query_toks_no_value": ["SELECT", "t2", ".", "house_number", ",", "t1", ".", "name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "WHERE", "t2", ".", "city_name", "=", "value", "francisco", "AND", "t1", ".", "food_type", "=", "value", "AND", "t1", ".", "rating", "=", "value", "SELECT", "MAX", "(", "t1", ".", "rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "WHERE", "t2", ".", "city_name", "=", "value", "francisco", "AND", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the maximum rated french restaurant in san francisco ?", "question_toks": ["what", "is", "the", "maximum", "rated", "french", "restaurant", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1541", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0128", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" )", "query_toks": ["SELECT", "t2", ".", "house_number", ",", "t1", ".", "name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "WHERE", "t2", ".", "city_name", "=", "``", "san", "francisco", "''", "AND", "t1", ".", "food_type", "=", "``", "french", "''", "AND", "t1", ".", "rating", "=", "(", "SELECT", "MAX", "(", "t1", ".", "rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "WHERE", "t2", ".", "city_name", "=", "``", "san", "francisco", "''", "AND", "t1", ".", "food_type", "=", "``", "french", "''", ")"], "query_toks_no_value": ["SELECT", "t2", ".", "house_number", ",", "t1", ".", "name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "WHERE", "t2", ".", "city_name", "=", "value", "francisco", "AND", "t1", ".", "food_type", "=", "value", "AND", "t1", ".", "rating", "=", "value", "SELECT", "MAX", "(", "t1", ".", "rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "WHERE", "t2", ".", "city_name", "=", "value", "francisco", "AND", "t1", ".", "food_type", "=", "value", ")"], "question": "What is the french with maximum rating in san francisco ?", "question_toks": ["What", "is", "the", "french", "with", "maximum", "rating", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1542", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0129", "db_id": "restaurants", "query": "select t3.house_number , t1.name from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name join location as t3 on t1.id = t3.restaurant_id where t2.region = \"bay area\" and t1.food_type = \"american\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name where t2.region = \"bay area\" and t1.food_type = \"american\" )", "query_toks": ["SELECT", "t3", ".", "house_number", ",", "t1", ".", "name", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1", ".", "city_name", "=", "t2", ".", "city_name", "JOIN", "LOCATION", "AS", "t3", "ON", "t1", ".", "id", "=", "t3", ".", "restaurant_id", "WHERE", "t2", ".", "region", "=", "``", "bay", "area", "''", "AND", "t1", ".", "food_type", "=", "``", "american", "''", "AND", "t1", ".", "rating", "=", "(", "SELECT", "MAX", "(", "t1", ".", "rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1", ".", "city_name", "=", "t2", ".", "city_name", "WHERE", "t2", ".", "region", "=", "``", "bay", "area", "''", "AND", "t1", ".", "food_type", "=", "``", "american", "''", ")"], "query_toks_no_value": ["SELECT", "t3", ".", "house_number", ",", "t1", ".", "name", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1", ".", "city_name", "=", "t2", ".", "city_name", "JOIN", "LOCATION", "AS", "t3", "ON", "t1", ".", "id", "=", "t3", ".", "restaurant_id", "WHERE", "t2", ".", "region", "=", "value", "area", "AND", "t1", ".", "food_type", "=", "value", "AND", "t1", ".", "rating", "=", "value", "SELECT", "MAX", "(", "t1", ".", "rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1", ".", "city_name", "=", "t2", ".", "city_name", "WHERE", "t2", ".", "region", "=", "value", "area", "AND", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the american with maximum rating in the bay area ?", "question_toks": ["what", "is", "the", "american", "with", "maximum", "rating", "in", "the", "bay", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1607", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0130", "db_id": "scholar", "query": "select distinct paperid from paper where year = ( select max ( year ) from paper )", "query_toks": ["SELECT", "DISTINCT", "paperid", "FROM", "paper", "WHERE", "YEAR", "=", "(", "SELECT", "MAX", "(", "YEAR", ")", "FROM", "paper", ")"], "query_toks_no_value": ["SELECT", "DISTINCT", "paperid", "FROM", "paper", "WHERE", "YEAR", "=", "value", "SELECT", "MAX", "(", "YEAR", ")", "FROM", "paper", ")"], "question": "papers published in the maximum year", "question_toks": ["papers", "published", "in", "the", "maximum", "year"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0992", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0131", "db_id": "scholar", "query": "select distinct max ( t3.year ) from writes as t2 join author as t1 on t2.authorid = t1.authorid join paper as t3 on t2.paperid = t3.paperid where t1.authorname = \"mary crainie\"", "query_toks": ["SELECT", "DISTINCT", "MAX", "(", "t3", ".", "year", ")", "FROM", "writes", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2", ".", "authorid", "=", "t1", ".", "authorid", "JOIN", "paper", "AS", "t3", "ON", "t2", ".", "paperid", "=", "t3", ".", "paperid", "WHERE", "t1", ".", "authorname", "=", "``", "mary", "crainie", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "MAX", "(", "t3", ".", "year", ")", "FROM", "writes", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2", ".", "authorid", "=", "t1", ".", "authorid", "JOIN", "paper", "AS", "t3", "ON", "t2", ".", "paperid", "=", "t3", ".", "paperid", "WHERE", "t1", ".", "authorname", "=", "value", "crainie"], "question": "When was the max year Mary Crainie published a paper ?", "question_toks": ["When", "was", "the", "max", "year", "Mary", "Crainie", "published", "a", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"mary crainie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1119", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0132", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "T3", ".", "ssn", ",", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["SELECT", "T3", ".", "ssn", ",", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "value", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "question": "Find the SSN and name of scientists who are assigned to the project with the maximum hours.", "question_toks": ["Find", "the", "SSN", "and", "name", "of", "scientists", "who", "are", "assigned", "to", "the", "project", "with", "the", "maximum", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6501", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0133", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "T3", ".", "ssn", ",", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["SELECT", "T3", ".", "ssn", ",", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "value", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "question": "What are the SSN and names of scientists working on the project with the maximum hours?", "question_toks": ["What", "are", "the", "SSN", "and", "names", "of", "scientists", "working", "on", "the", "project", "with", "the", "maximum", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6502", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0134", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "value", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "question": "Find the names of scientists who are not working on the project with the maximum hours.", "question_toks": ["Find", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "maximum", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6511", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0135", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3", ".", "name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1", ".", "project", "=", "T2", ".", "code", "JOIN", "scientists", "AS", "T3", "ON", "T1", ".", "scientist", "=", "T3", ".", "SSN", "WHERE", "T2", ".", "hours", "=", "value", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "question": "What are the names of scientists who are not working on the project with the maximum hours?", "question_toks": ["What", "are", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "maximum", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6512", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0136", "db_id": "small_bank_1", "query": "select t1.custid , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid where t2.balance < (select max(balance) from checking)", "query_toks": ["SELECT", "T1", ".", "custid", ",", "T1", ".", "name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "WHERE", "T2", ".", "balance", "<", "(", "SELECT", "max", "(", "balance", ")", "FROM", "checking", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "custid", ",", "T1", ".", "name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid", "WHERE", "T2", ".", "balance", "<", "value", "SELECT", "max", "(", "balance", ")", "FROM", "checking", ")"], "question": "What are the customer id and name corresponding to accounts with a checking balance less than the maximum checking balance?", "question_toks": ["What", "are", "the", "customer", "id", "and", "name", "corresponding", "to", "accounts", "with", "a", "checking", "balance", "less", "than", "the", "maximum", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1787", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0137", "db_id": "soccer_1", "query": "select distinct t1.player_name from player as t1 join player_attributes as t2 on t1.player_api_id = t2.player_api_id where t2.dribbling = ( select max(overall_rating) from player_attributes)", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1", ".", "player_api_id", "=", "T2", ".", "player_api_id", "WHERE", "T2", ".", "dribbling", "=", "(", "SELECT", "max", "(", "overall_rating", ")", "FROM", "Player_Attributes", ")"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1", ".", "player_api_id", "=", "T2", ".", "player_api_id", "WHERE", "T2", ".", "dribbling", "=", "value", "SELECT", "max", "(", "overall_rating", ")", "FROM", "Player_Attributes", ")"], "question": "What are the names of players who have the best overall rating?", "question_toks": ["What", "are", "the", "names", "of", "players", "who", "have", "the", "best", "overall", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 47, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1298", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0138", "db_id": "soccer_2", "query": "select distinct state from college where enr < (select max(enr) from college)", "query_toks": ["SELECT", "DISTINCT", "state", "FROM", "college", "WHERE", "enr", "<", "(", "SELECT", "max", "(", "enr", ")", "FROM", "college", ")"], "query_toks_no_value": ["SELECT", "DISTINCT", "state", "FROM", "college", "WHERE", "enr", "<", "value", "SELECT", "max", "(", "enr", ")", "FROM", "college", ")"], "question": "Find the states where have the colleges whose enrollments are less than the maximum enrollment.", "question_toks": ["Find", "the", "states", "where", "have", "the", "colleges", "whose", "enrollments", "are", "less", "than", "the", "maximum", "enrollment", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5038", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0139", "db_id": "station_weather", "query": "select min(low_temperature) , max(wind_speed_mph) from weekly_weather", "query_toks": ["SELECT", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "FROM", "weekly_weather"], "query_toks_no_value": ["SELECT", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "FROM", "weekly_weather"], "question": "show the minimum low temperature and maximum wind speed in miles per hour.", "question_toks": ["show", "the", "minimum", "low", "temperature", "and", "maximum", "wind", "speed", "in", "miles", "per", "hour", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]], [1, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3171", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0140", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "query_toks_no_value": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "value", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "question": "Find the id of the order which is shipped maximum shipment date recently.", "question_toks": ["Find", "the", "id", "of", "the", "order", "which", "is", "shipped", "maximum", "shipment", "date", "recently", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6923", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0141", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "query_toks_no_value": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "value", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "question": "Which order has the maximum shipment date? Give me the order id.", "question_toks": ["Which", "order", "has", "the", "maximum", "shipment", "date", "?", "Give", "me", "the", "order", "id", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6924", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0142", "db_id": "voter_1", "query": "select max(created) from votes where state = \"ca\"", "query_toks": ["SELECT", "max", "(", "created", ")", "FROM", "votes", "WHERE", "state", "=", "``", "ca", "''"], "query_toks_no_value": ["SELECT", "max", "(", "created", ")", "FROM", "votes", "WHERE", "state", "=", "value"], "question": "What is maximum date created of votes from the state 'CA'?", "question_toks": ["What", "is", "maximum", "date", "created", "of", "votes", "from", "the", "state", "'", "CA", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"ca\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0691", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0143", "db_id": "voter_2", "query": "select max(age) from student", "query_toks": ["SELECT", "max", "(", "Age", ")", "FROM", "STUDENT"], "query_toks_no_value": ["SELECT", "max", "(", "Age", ")", "FROM", "STUDENT"], "question": "What is the maximum age among the students?", "question_toks": ["What", "is", "the", "maximum", "age", "among", "the", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5451", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0144", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "value"], "question": "Tell me the maximum and minimum ages of students studying major 600.", "question_toks": ["Tell", "me", "the", "maximum", "and", "minimum", "ages", "of", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5461", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0145", "db_id": "wine_1", "query": "select name from wine where price > (select max(price) from wine where year = 2006)", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "max", "(", "Price", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2006", ")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "value", "SELECT", "max", "(", "Price", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "value", ")"], "question": "What are the names of wines that are more expensive then maximum price of wines made in the year 2006?", "question_toks": ["What", "are", "the", "names", "of", "wines", "that", "are", "more", "expensive", "then", "maximum", "price", "of", "wines", "made", "in", "the", "year", "2006", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2006.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6585", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0146", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "(", "SELECT", "max", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "value", "SELECT", "max", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the countries that have greater surface area than country in Europe with maximum surface area?", "question_toks": ["What", "are", "the", "countries", "that", "have", "greater", "surface", "area", "than", "country", "in", "Europe", "with", "maximum", "surface", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0146", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0147", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "(", "SELECT", "max", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "value", "SELECT", "max", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "Which countries have greater area than than country in Europe with maximum age?", "question_toks": ["Which", "countries", "have", "greater", "area", "than", "than", "country", "in", "Europe", "with", "maximum", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0147", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0148", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''", "AND", "population", ">", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", ">", "value", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the Asian countries which have a maximum population in Africa?", "question_toks": ["What", "are", "the", "Asian", "countries", "which", "have", "a", "maximum", "population", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_max_0148", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0149", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "value"], "question": "How many people live in Asia, and what is the maximum GNP among them?", "question_toks": ["How", "many", "people", "live", "in", "Asia", ",", "and", "what", "is", "the", "maximum", "GNP", "among", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0723", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0150", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select max(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "''", "AND", "population", "<", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", "<", "value", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the African countries that have a population less than country with maximum population in Asia?", "question_toks": ["What", "are", "the", "African", "countries", "that", "have", "a", "population", "less", "than", "country", "with", "maximum", "population", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0774", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0151", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "question": "What is the language spoken by the maximum percentage of people in each country?", "question_toks": ["What", "is", "the", "language", "spoken", "by", "the", "maximum", "percentage", "of", "people", "in", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0816", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0152", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "question": "What are the country codes of the different countries, and what are the languages spoken by the maximum percentage of people for each?", "question_toks": ["What", "are", "the", "country", "codes", "of", "the", "different", "countries", ",", "and", "what", "are", "the", "languages", "spoken", "by", "the", "maximum", "percentage", "of", "people", "for", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0817", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0153", "db_id": "world_1", "query": "select count(*) from ( select countrycode from countrylanguage where language like 'spanish' group by countrycode having percentage = ( select max(percentage) from countrylanguage where language like 'spanish' ) )", "query_toks": ["SELECT", "count", "(*)", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["SELECT", "count", "(*)", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "value", "GROUP", "BY", "CountryCode"], "question": "What is the count of countries where Spanish is spoken by the maximum percentage of people?", "question_toks": ["What", "is", "the", "count", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "maximum", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0818", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0154", "db_id": "world_1", "query": "select count(*) from ( select countrycode from countrylanguage where language like 'spanish' group by countrycode having percentage = ( select max(percentage) from countrylanguage where language like 'spanish' ) )", "query_toks": ["SELECT", "count", "(*)", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["SELECT", "count", "(*)", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "value", "GROUP", "BY", "CountryCode"], "question": "Count the number of countries for which Spanish is the maximum spoken language.", "question_toks": ["Count", "the", "number", "of", "countries", "for", "which", "Spanish", "is", "the", "maximum", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0819", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0155", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "value", "GROUP", "BY", "CountryCode"], "question": "What are the codes of countries where Spanish is spoken by the maximum percentage of people?", "question_toks": ["What", "are", "the", "codes", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "maximum", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0820", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "hidden_max_0156", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "value", "GROUP", "BY", "CountryCode"], "question": "Return the codes of countries for which Spanish is the maximum percentage of spoken language.", "question_toks": ["Return", "the", "codes", "of", "countries", "for", "which", "Spanish", "is", "the", "maximum", "percentage", "of", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0821", "is_simplification": true, "simplifications_tags": ["HIDDEN_MAX"]}, {"id": "having_in_sql_0000", "db_id": "battle_death", "query": "select id , name from battle", "query_toks": ["SELECT", "id", ",", "name", "FROM", "battle"], "query_toks_no_value": ["SELECT", "id", ",", "name", "FROM", "battle"], "question": "What are the ids and names of the battles.", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "battles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0499", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0001", "db_id": "car_1", "query": "select countryname , countryid from countries", "query_toks": ["SELECT", "CountryName", ",", "CountryId", "FROM", "COUNTRIES"], "query_toks_no_value": ["SELECT", "CountryName", ",", "CountryId", "FROM", "COUNTRIES"], "question": "What are the countries? List name and id.", "question_toks": ["What", "are", "the", "countries", "?", "List", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0123", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0002", "db_id": "car_1", "query": "select countryname , countryid from countries", "query_toks": ["SELECT", "CountryName", ",", "CountryId", "FROM", "COUNTRIES"], "query_toks_no_value": ["SELECT", "CountryName", ",", "CountryId", "FROM", "COUNTRIES"], "question": "What are the names and ids of all countries?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0124", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0003", "db_id": "course_teach", "query": "select hometown from teacher", "query_toks": ["SELECT", "Hometown", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Hometown", "FROM", "teacher"], "question": "Show the hometowns of teachers", "question_toks": ["Show", "the", "hometowns", "of", "teachers"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0397", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0004", "db_id": "course_teach", "query": "select hometown from teacher", "query_toks": ["SELECT", "Hometown", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Hometown", "FROM", "teacher"], "question": "What are the towns from which teachers come from?", "question_toks": ["What", "are", "the", "towns", "from", "which", "teachers", "come", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0398", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0005", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["SELECT", "Name", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher"], "question": "Show names of teachers.", "question_toks": ["Show", "names", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0407", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0006", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["SELECT", "Name", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher"], "question": "What are the names of the teachers?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0408", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0007", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value"], "question": "Which professionals live in the state of Indiana? List his or her id, last name and cell phone.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "?", "List", "his", "or", "her", "id", ",", "last", "name", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0922", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0008", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value"], "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana.", "question_toks": ["Find", "the", "id", ",", "last", "name", "and", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0923", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0009", "db_id": "dog_kennels", "query": "select name from dogs", "query_toks": ["select", "name", "from", "dogs"], "query_toks_no_value": ["select", "name", "from", "dogs"], "question": "What are the names of the dogs?", "question_toks": ["What", "are", "the", "names", "of", "the", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0925", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0010", "db_id": "dog_kennels", "query": "select professional_id , cell_number from professionals", "query_toks": ["SELECT", "professional_id", ",", "cell_number", "FROM", "Professionals"], "query_toks_no_value": ["SELECT", "professional_id", ",", "cell_number", "FROM", "Professionals"], "question": "Find the id and cell phone of the professionals.", "question_toks": ["Find", "the", "id", "and", "cell", "phone", "of", "the", "professionals", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0943", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0011", "db_id": "flight_2", "query": "select airline from airlines", "query_toks": ["SELECT", "Airline", "FROM", "AIRLINES"], "query_toks_no_value": ["SELECT", "Airline", "FROM", "AIRLINES"], "question": "Find all airlines.", "question_toks": ["Find", "all", "airlines", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0241", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0012", "db_id": "museum_visit", "query": "select id , name , age from visitor", "query_toks": ["SELECT", "id", ",", "name", ",", "age", "FROM", "visitor"], "query_toks_no_value": ["SELECT", "id", ",", "name", ",", "age", "FROM", "visitor"], "question": "find the id, name and age for visitors.", "question_toks": ["find", "the", "id", ",", "name", "and", "age", "for", "visitors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0419", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0013", "db_id": "network_1", "query": "select grade from highschooler", "query_toks": ["SELECT", "grade", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "grade", "FROM", "Highschooler"], "question": "Show me all grades.", "question_toks": ["Show", "me", "all", "grades", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0880", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0014", "db_id": "pets_1", "query": "select fname , sex from student", "query_toks": ["SELECT", "fname", ",", "sex", "FROM", "student"], "query_toks_no_value": ["SELECT", "fname", ",", "sex", "FROM", "student"], "question": "Find the first name and gender of student.", "question_toks": ["Find", "the", "first", "name", "and", "gender", "of", "student", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0081", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0015", "db_id": "pets_1", "query": "select fname , sex from student", "query_toks": ["SELECT", "fname", ",", "sex", "FROM", "student"], "query_toks_no_value": ["SELECT", "fname", ",", "sex", "FROM", "student"], "question": "What is the first name and gender of the all the students", "question_toks": ["What", "is", "the", "first", "name", "and", "gender", "of", "the", "all", "the", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0082", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0016", "db_id": "poker_player", "query": "select nationality from people", "query_toks": ["SELECT", "Nationality", "FROM", "people"], "query_toks_no_value": ["SELECT", "Nationality", "FROM", "people"], "question": "What are the nationalities?", "question_toks": ["What", "are", "the", "nationalities", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0677", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0017", "db_id": "poker_player", "query": "select nationality from people", "query_toks": ["SELECT", "Nationality", "FROM", "people"], "query_toks_no_value": ["SELECT", "Nationality", "FROM", "people"], "question": "Return the nationalities.", "question_toks": ["Return", "the", "nationalities", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0678", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0018", "db_id": "tvshow", "query": "select id from tv_channel", "query_toks": ["SELECT", "id", "FROM", "tv_channel"], "query_toks_no_value": ["SELECT", "id", "FROM", "tv_channel"], "question": "find id of the tv channels.", "question_toks": ["find", "id", "of", "the", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0641", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0019", "db_id": "tvshow", "query": "select id from tv_channel", "query_toks": ["SELECT", "id", "FROM", "tv_channel"], "query_toks_no_value": ["SELECT", "id", "FROM", "tv_channel"], "question": "What are the ids of all tv channels?", "question_toks": ["What", "are", "the", "ids", "of", "all", "tv", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0642", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0020", "db_id": "wta_1", "query": "select tourney_name from matches", "query_toks": ["SELECT", "tourney_name", "FROM", "matches"], "query_toks_no_value": ["SELECT", "tourney_name", "FROM", "matches"], "question": "Find the name of tourney.", "question_toks": ["Find", "the", "name", "of", "tourney", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0445", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0021", "db_id": "wta_1", "query": "select tourney_name from matches", "query_toks": ["SELECT", "tourney_name", "FROM", "matches"], "query_toks_no_value": ["SELECT", "tourney_name", "FROM", "matches"], "question": "What are the names of tournaments?", "question_toks": ["What", "are", "the", "names", "of", "tournaments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0446", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0022", "db_id": "wta_1", "query": "select country_code from players", "query_toks": ["SELECT", "country_code", "FROM", "players"], "query_toks_no_value": ["SELECT", "country_code", "FROM", "players"], "question": "Find the codes of countries.", "question_toks": ["Find", "the", "codes", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0477", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0023", "db_id": "wta_1", "query": "select country_code from players", "query_toks": ["SELECT", "country_code", "FROM", "players"], "query_toks_no_value": ["SELECT", "country_code", "FROM", "players"], "question": "What are the codes of countries?", "question_toks": ["What", "are", "the", "codes", "of", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0478", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0024", "db_id": "aircraft", "query": "select aircraft from aircraft", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft"], "query_toks_no_value": ["SELECT", "Aircraft", "FROM", "aircraft"], "question": "List the names of aircrafts.", "question_toks": ["List", "the", "names", "of", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4829", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0025", "db_id": "aircraft", "query": "select aircraft from aircraft ", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft"], "query_toks_no_value": ["SELECT", "Aircraft", "FROM", "aircraft"], "question": "What are the names of all aircrafts?", "question_toks": ["What", "are", "the", "names", "of", "all", "aircrafts", "that", "have", "won", "a", "match", "at", "least", "twice", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4830", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0026", "db_id": "allergy_1", "query": "select stuid from has_allergy", "query_toks": ["SELECT", "StuID", "FROM", "Has_allergy"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Has_allergy"], "question": "Show all student IDs that has allergy.", "question_toks": ["Show", "all", "student", "IDs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0505", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0027", "db_id": "allergy_1", "query": "select stuid from student", "query_toks": ["SELECT", "StuID", "FROM", "Has_allergy"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Has_allergy"], "question": "What are the students ids?", "question_toks": ["What", "are", "the", "students", "ids", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0506", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0028", "db_id": "architecture", "query": "select id , name from architect", "query_toks": ["SELECT", "id", ",", "name", "FROM", "architect"], "query_toks_no_value": ["SELECT", "id", ",", "name", "FROM", "architect"], "question": "What are the ids and names of the architects?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6953", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "having_in_sql_0029", "db_id": "architecture", "query": "select id , name , gender from architect ", "query_toks": ["SELECT", "id", ",", "name", ",", "gender", "FROM", "architect"], "query_toks_no_value": ["SELECT", "id", ",", "name", ",", "gender", "FROM", "architect"], "question": "What are the ids, names and genders of the architects?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "genders", "of", "the", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6955", "is_simplification": true, "simplifications_tags": ["HAVING_IN_SQL"]}, {"id": "how_many_0000", "db_id": "soccer_2", "query": "select avg(enr) from college", "query_toks": ["SELECT", "avg", "(", "enr", ")", "FROM", "College"], "query_toks_no_value": ["SELECT", "avg", "(", "enr", ")", "FROM", "College"], "question": "Count the average number of students", "question_toks": ["Count", "the", "average", "nmber", "of", "students", "that", "does", "each", "college", "have", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4947", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_AVG"]}, {"id": "how_many_0001", "db_id": "allergy_1", "query": "select count(distinct allergy) from allergy_type", "query_toks": ["SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type"], "question": "Count allergies there.", "question_toks": ["Count", "allergies", "there", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0439", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0002", "db_id": "allergy_1", "query": "select count(distinct allergy) from allergy_type", "query_toks": ["SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type"], "question": "Count allergy entities there.", "question_toks": ["Count", "allergy", "entities", "there", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0440", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0003", "db_id": "battle_death", "query": "select count(distinct result) from battle", "query_toks": ["SELECT", "count", "(", "DISTINCT", "RESULT", ")", "FROM", "battle"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "RESULT", ")", "FROM", "battle"], "question": "Count different results for the battles?", "question_toks": ["Count", "different", "results", "for", "the", "battles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0502", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0004", "db_id": "climbing", "query": "select count(distinct country) from climber", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "climber"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "climber"], "question": "Count the distinct countries are the climbers from?", "question_toks": ["Count", "the", "distinct", "countries", "are", "the", "climbers", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 9, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1118", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0005", "db_id": "club_1", "query": "select count(distinct t2.position) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid where t1.clubname = \"bootup baltimore\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "t2", ".", "position", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "WHERE", "t1", ".", "clubname", "=", "``", "bootup", "baltimore", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "t2", ".", "position", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "WHERE", "t1", ".", "clubname", "=", "value", "baltimore"], "question": "Count the different roles are there in the club \"Bootup Baltimore\"?", "question_toks": ["Count", "the", "different", "roles", "are", "there", "in", "the", "club", "\"", "Bootup", "Baltimore", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 15, true], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"bootup baltimore\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4298", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0006", "db_id": "college_1", "query": "select count(distinct class_code) from class", "query_toks": ["SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS"], "question": "Count the different classes there?", "question_toks": ["Count", "the", "different", "classes", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3227", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0007", "db_id": "college_1", "query": "select count(distinct class_code) from class", "query_toks": ["SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS"], "question": "Count the unique classes that are offered?", "question_toks": ["Count", "the", "unique", "classes", "that", "are", "offered", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3228", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0008", "db_id": "college_1", "query": "select count(distinct dept_name) from department", "query_toks": ["SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department"], "question": "Count the departments that the college has?", "question_toks": ["Count", "the", "departments", "that", "the", "college", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3231", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0009", "db_id": "college_1", "query": "select count(distinct dept_name) from department", "query_toks": ["SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department"], "question": "Count different departments here?", "question_toks": ["Count", "different", "departments", "here", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3232", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0010", "db_id": "cre_Doc_Template_Mgt", "query": "select count(distinct template_id) from documents", "query_toks": ["SELECT", "count", "(", "DISTINCT", "template_id", ")", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "template_id", ")", "FROM", "Documents"], "question": "Count the different templates all document use?", "question_toks": ["Count", "the", "different", "templates", "all", "document", "use", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0305", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0011", "db_id": "dog_kennels", "query": "select count(distinct dog_id) from treatments", "query_toks": ["SELECT", "count", "(", "DISTINCT", "dog_id", ")", "FROM", "Treatments"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "dog_id", ")", "FROM", "Treatments"], "question": "Count the number of dogs went through any treatments?", "question_toks": ["Count", "the", "number", "of", "dogs", "went", "through", "any", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[3, [0, [0, 45, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0966", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0012", "db_id": "dog_kennels", "query": "select count(distinct professional_id) from treatments", "query_toks": ["SELECT", "count", "(", "DISTINCT", "professional_id", ")", "FROM", "Treatments"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "professional_id", ")", "FROM", "Treatments"], "question": "Count the professionals have performed any treatment to dogs?", "question_toks": ["Count", "the", "professionals", "have", "performed", "any", "treatment", "to", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[3, [0, [0, 46, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0968", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0013", "db_id": "imdb", "query": "select count ( distinct t1.name ) from cast as t2 join actor as t1 on t2.aid = t1.aid join movie as t3 on t3.mid = t2.msid where t3.title = \"saving private ryan\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t1", ".", "name", ")", "FROM", "CAST", "AS", "t2", "JOIN", "actor", "AS", "t1", "ON", "t2", ".", "aid", "=", "t1", ".", "aid", "JOIN", "movie", "AS", "t3", "ON", "t3", ".", "mid", "=", "t2", ".", "msid", "WHERE", "t3", ".", "title", "=", "``", "saving", "private", "ryan", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "t1", ".", "name", ")", "FROM", "CAST", "AS", "t2", "JOIN", "actor", "AS", "t1", "ON", "t2", ".", "aid", "=", "t1", ".", "aid", "JOIN", "movie", "AS", "t3", "ON", "t3", ".", "mid", "=", "t2", ".", "msid", "WHERE", "t3", ".", "title", "=", "value", "private", "ryan"], "question": "Count the number of actors that are in the movie \" Saving Private Ryan \" ?", "question_toks": ["Count", "the", "number", "of", "actors", "that", "are", "in", "the", "movie", "\"", "Saving", "Private", "Ryan", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 43, false], null], "\"saving private ryan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1501", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0014", "db_id": "imdb", "query": "select count ( distinct t3.title ) from director as t2 join directed_by as t1 on t2.did = t1.did join movie as t3 on t3.mid = t1.msid where t2.name = \"steven spielberg\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t3", ".", "title", ")", "FROM", "director", "AS", "t2", "JOIN", "directed_by", "AS", "t1", "ON", "t2", ".", "did", "=", "t1", ".", "did", "JOIN", "movie", "AS", "t3", "ON", "t3", ".", "mid", "=", "t1", ".", "msid", "WHERE", "t2", ".", "name", "=", "``", "steven", "spielberg", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "t3", ".", "title", ")", "FROM", "director", "AS", "t2", "JOIN", "directed_by", "AS", "t1", "ON", "t2", ".", "did", "=", "t1", ".", "did", "JOIN", "movie", "AS", "t3", "ON", "t3", ".", "mid", "=", "t1", ".", "msid", "WHERE", "t2", ".", "name", "=", "value", "spielberg"], "question": "Count the number of movies that did \" Steven Spielberg \" direct ?", "question_toks": ["Count", "the", "number", "of", "movies", "that", "did", "\"", "Steven", "Spielberg", "\"", "direct", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null]]}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"steven spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1502", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0015", "db_id": "imdb", "query": "select count ( distinct title ) from movie where release_year = 2013", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "title", ")", "FROM", "movie", "WHERE", "release_year", "=", "2013"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "title", ")", "FROM", "movie", "WHERE", "release_year", "=", "value"], "question": "Count the number of movies that were produced in the year 2013 ?", "question_toks": ["Count", "the", "number", "of", "movies", "that", "were", "produced", "in", "the", "year", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 44, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1503", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0016", "db_id": "inn_1", "query": "select count(*) from reservations where firstname = \"roy\" and lastname = \"sweazy\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "roy", "''", "AND", "LastName", "=", "``", "sweazy", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Reservations", "WHERE", "FirstName", "=", "value", "AND", "LastName", "=", "value"], "question": "Count the number of times does ROY SWEAZY has reserved a room.", "question_toks": ["Count", "the", "number", "of", "times", "does", "ROY", "SWEAZY", "has", "reserved", "a", "room", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"roy\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"sweazy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2580", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0017", "db_id": "inn_1", "query": "select count(*) from reservations as t1 join rooms as t2 on t1.room = t2.roomid where t2.maxoccupancy = t1.adults + t1.kids", "query_toks": ["SELECT", "count", "(*)", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1", ".", "Room", "=", "T2", ".", "RoomId", "WHERE", "T2", ".", "maxOccupancy", "=", "T1", ".", "Adults", "+", "T1", ".", "Kids"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1", ".", "Room", "=", "T2", ".", "RoomId", "WHERE", "T2", ".", "maxOccupancy", "=", "value", ".", "Adults", "+", "T1", ".", "Kids"], "question": "Count the amount of time the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.", "question_toks": ["Count", "the", "amount", "of", "time", "the", "number", "of", "people", "in", "the", "room", "reached", "the", "maximum", "occupancy", "of", "the", "room", ".", "The", "number", "of", "people", "include", "adults", "and", "kids", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2602", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0018", "db_id": "inn_1", "query": "select count(*) from reservations as t1 join rooms as t2 on t1.room = t2.roomid where t2.maxoccupancy = t1.adults + t1.kids", "query_toks": ["SELECT", "count", "(*)", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1", ".", "Room", "=", "T2", ".", "RoomId", "WHERE", "T2", ".", "maxOccupancy", "=", "T1", ".", "Adults", "+", "T1", ".", "Kids"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1", ".", "Room", "=", "T2", ".", "RoomId", "WHERE", "T2", ".", "maxOccupancy", "=", "value", ".", "Adults", "+", "T1", ".", "Kids"], "question": "Count the times the number of adults and kids staying in a room reached the maximum capacity of the room", "question_toks": ["Count", "the", "times", "the", "number", "of", "adults", "and", "kids", "staying", "in", "a", "room", "reached", "the", "maximum", "capacity", "of", "the", "room"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2603", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0019", "db_id": "inn_1", "query": "select count(*) from rooms", "query_toks": ["SELECT", "count", "(*)", "FROM", "Rooms"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Rooms"], "question": "Count the number of rooms there", "question_toks": ["Count", "the", "number", "of", "rooms", "there"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2606", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0020", "db_id": "inn_1", "query": "select count(*) from rooms where bedtype = \"king\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "king", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Rooms", "WHERE", "bedType", "=", "value"], "question": "Count the number of rooms with king bed", "question_toks": ["Count", "the", "number", "of", "rooms", "with", "king", "bed"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2609", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0021", "db_id": "inn_1", "query": "select decor , count(*) from rooms where bedtype = \"king\" group by decor", "query_toks": ["SELECT", "decor", ",", "count", "(*)", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "king", "''", "GROUP", "BY", "decor"], "query_toks_no_value": ["SELECT", "decor", ",", "count", "(*)", "FROM", "Rooms", "WHERE", "bedType", "=", "value", "GROUP", "BY", "decor"], "question": "Count the number of rooms with king beds. Report the number for each decor type.", "question_toks": ["Count", "the", "number", "of", "rooms", "with", "king", "beds", ".", "Report", "the", "number", "for", "each", "decor", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2619", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0022", "db_id": "inn_1", "query": "select decor , count(*) from rooms where baseprice > 120 group by decor", "query_toks": ["SELECT", "decor", ",", "count", "(*)", "FROM", "Rooms", "WHERE", "basePrice", ">", "120", "GROUP", "BY", "decor"], "query_toks_no_value": ["SELECT", "decor", ",", "count", "(*)", "FROM", "Rooms", "WHERE", "basePrice", ">", "value", "GROUP", "BY", "decor"], "question": "Count the number of rooms cost more than 120, for each different decor", "question_toks": ["Count", "the", "number", "of", "rooms", "cost", "more", "than", "120", ",", "for", "each", "different", "decor"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], 120.0, null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2625", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0023", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank", "query_toks": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank"], "query_toks_no_value": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank"], "question": "Count the customers there?", "question_toks": ["Count", "the", "customers", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3008", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0024", "db_id": "match_season", "query": "select count(*) from country", "query_toks": ["SELECT", "count", "(*)", "FROM", "country"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "country"], "question": "Count the countries there", "question_toks": ["Count", "the", "countries", "there"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1052", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0025", "db_id": "museum_visit", "query": "select count(*) from visitor where age < 30", "query_toks": ["SELECT", "count", "(*)", "FROM", "visitor", "WHERE", "age", "<", "30"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "visitor", "WHERE", "age", "<", "value"], "question": "Count the visitors below age 30 there?", "question_toks": ["Count", "the", "visitors", "below", "age", "30", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0411", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0026", "db_id": "museum_visit", "query": "select count(*) from museum where open_year > 2013 or open_year < 2008", "query_toks": ["SELECT", "count", "(*)", "FROM", "museum", "WHERE", "open_year", ">", "2013", "OR", "open_year", "<", "2008"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "museum", "WHERE", "open_year", ">", "value", "OR", "open_year", "<", "value"], "question": "Count the number museums that were opened after 2013 or before 2008?", "question_toks": ["Count", "the", "number", "museums", "that", "were", "opened", "after", "2013", "or", "before", "2008", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2013.0, null], "or", [false, 4, [0, [0, 4, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0428", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0027", "db_id": "poker_player", "query": "select count(*) from poker_player", "query_toks": ["SELECT", "count", "(*)", "FROM", "poker_player"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "poker_player"], "question": "Count the poker players there?", "question_toks": ["Count", "the", "poker", "players", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0647", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0028", "db_id": "poker_player", "query": "select nationality , count(*) from people group by nationality", "query_toks": ["SELECT", "Nationality", ",", "COUNT", "(*)", "FROM", "people", "GROUP", "BY", "Nationality"], "query_toks_no_value": ["SELECT", "Nationality", ",", "COUNT", "(*)", "FROM", "people", "GROUP", "BY", "Nationality"], "question": "Count the amount of people of each nationality?", "question_toks": ["Count", "the", "amount", "of", "people", "of", "each", "nationality", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0674", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0029", "db_id": "sakila_1", "query": "select t2.name , t1.category_id , count(*) from film_category as t1 join category as t2 on t1.category_id = t2.category_id group by t1.category_id", "query_toks": ["SELECT", "T2", ".", "name", ",", "T1", ".", "category_id", ",", "count", "(*)", "FROM", "film_category", "AS", "T1", "JOIN", "category", "AS", "T2", "ON", "T1", ".", "category_id", "=", "T2", ".", "category_id", "GROUP", "BY", "T1", ".", "category_id"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "T1", ".", "category_id", ",", "count", "(*)", "FROM", "film_category", "AS", "T1", "JOIN", "category", "AS", "T2", "ON", "T1", ".", "category_id", "=", "T2", ".", "category_id", "GROUP", "BY", "T1", ".", "category_id"], "question": "Count the names, ids of the different categories and number of films are in each?", "question_toks": ["Count", "the", "names", ",", "ids", "of", "the", "different", "categories", "and", "number", "of", "films", "are", "in", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 49, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 49, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2965", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0030", "db_id": "shop_membership", "query": "select city , count(*) from branch where open_year < 2010 group by city", "query_toks": ["SELECT", "city", ",", "count", "(*)", "FROM", "branch", "WHERE", "open_year", "<", "2010", "GROUP", "BY", "city"], "query_toks_no_value": ["SELECT", "city", ",", "count", "(*)", "FROM", "branch", "WHERE", "open_year", "<", "value", "GROUP", "BY", "city"], "question": "For each city, count the number of branches opened before 2010", "question_toks": ["For", "each", "city", ",", "count", "the", "number", "of", "branches", "opened", "before", "2010"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 2010.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5413", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0031", "db_id": "soccer_1", "query": "select preferred_foot , count(*) from player_attributes where overall_rating > 80 group by preferred_foot", "query_toks": ["SELECT", "preferred_foot", ",", "count", "(*)", "FROM", "Player_Attributes", "WHERE", "overall_rating", ">", "80", "GROUP", "BY", "preferred_foot"], "query_toks_no_value": ["SELECT", "preferred_foot", ",", "count", "(*)", "FROM", "Player_Attributes", "WHERE", "overall_rating", ">", "value", "GROUP", "BY", "preferred_foot"], "question": "Of all players with an overall rating greater than 80, count the number of right-footed and left-footed?", "question_toks": ["Of", "all", "players", "with", "an", "overall", "rating", "greater", "than", "80", ",", "count", "the", "number", "of", "right", "-", "footed", "and", "left", "-", "footed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 80.0, null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1302", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0032", "db_id": "wta_1", "query": "select count(*) , country_code from players group by country_code", "query_toks": ["SELECT", "count", "(*)", ",", "country_code", "FROM", "players", "GROUP", "BY", "country_code"], "query_toks_no_value": ["SELECT", "count", "(*)", ",", "country_code", "FROM", "players", "GROUP", "BY", "country_code"], "question": "Count the number of players from each country?", "question_toks": ["Count", "the", "number", "of", "players", "from", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0474", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0033", "db_id": "wta_1", "query": "select count(*) , year from matches group by year", "query_toks": ["SELECT", "count", "(*)", ",", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["SELECT", "count", "(*)", ",", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR"], "question": "Count the number of matches that were played in each year?", "question_toks": ["Count", "the", "number", "of", "matches", "that", "were", "played", "in", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0482", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0034", "db_id": "yelp", "query": "select review_count from business where name = \"acacia cafe\"", "query_toks": ["SELECT", "review_count", "FROM", "business", "WHERE", "name", "=", "``", "acacia", "cafe", "''"], "query_toks_no_value": ["SELECT", "review_count", "FROM", "business", "WHERE", "name", "=", "value", "cafe"], "question": "Count the number of reviews does \" Acacia Cafe \" have ?", "question_toks": ["Count", "the", "number", "of", "reviews", "does", "\"", "Acacia", "Cafe", "\"", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"acacia cafe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1212", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0035", "db_id": "activity_1", "query": "select count(*) from faculty", "query_toks": ["SELECT", "count", "(*)", "FROM", "Faculty"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Faculty"], "question": "Count all the faculty we have", "question_toks": ["Count", "all", "the", "faculty", "we", "have"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6715", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0036", "db_id": "activity_1", "query": "select count(*) from faculty where sex = \"f\" and rank = \"professor\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Faculty", "WHERE", "Sex", "=", "``", "f", "''", "AND", "Rank", "=", "``", "professor", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Faculty", "WHERE", "Sex", "=", "value", "AND", "Rank", "=", "value"], "question": "Count the female professors that we have", "question_toks": ["Count", "the", "female", "professors", "that", "we", "have"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6727", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0037", "db_id": "aircraft", "query": "select count(*) from aircraft", "query_toks": ["SELECT", "count", "(*)", "FROM", "aircraft"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "aircraft"], "question": "Count the number of aircraft there", "question_toks": ["Count", "the", "number", "of", "aircraft", "there"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4797", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0038", "db_id": "allergy_1", "query": "select count(*) from allergy_type where allergytype = \"animal\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "animal", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "value"], "question": "Count the allergies with type animal?", "question_toks": ["Count", "the", "allergies", "with", "type", "animal", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0451", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0039", "db_id": "allergy_1", "query": "select count(*) from student where age = 18", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "age", "=", "18"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "age", "=", "value"], "question": "Count the students with age 18?", "question_toks": ["Count", "the", "students", "with", "age", "18", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 18.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0473", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0040", "db_id": "apartment_rentals", "query": "select booking_status_code , count(*) from apartment_bookings group by booking_status_code", "query_toks": ["SELECT", "booking_status_code", ",", "COUNT", "(*)", "FROM", "Apartment_Bookings", "GROUP", "BY", "booking_status_code"], "query_toks_no_value": ["SELECT", "booking_status_code", ",", "COUNT", "(*)", "FROM", "Apartment_Bookings", "GROUP", "BY", "booking_status_code"], "question": "Count bookings for each booking status? List the booking status code and the number of corresponding bookings.", "question_toks": ["Count", "bookings", "for", "each", "booking", "status", "?", "List", "the", "booking", "status", "code", "and", "the", "number", "of", "corresponding", "bookings", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1249", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0041", "db_id": "apartment_rentals", "query": "select count(*) from apartments where apt_id not in (select apt_id from apartment_facilities)", "query_toks": ["SELECT", "count", "(*)", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")"], "question": "Count the apartments that do not have any facility?", "question_toks": ["Count", "the", "apartments", "that", "do", "not", "have", "any", "facility", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1268", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0042", "db_id": "architecture", "query": "select count(*) from architect where gender = \"female\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "architect", "WHERE", "gender", "=", "``", "female", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "architect", "WHERE", "gender", "=", "value"], "question": "Count the female architects?", "question_toks": ["Count", "the", "female", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"female\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6945", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0043", "db_id": "baseball_1", "query": "select count(*) from team_franchise where active = \"y\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "team_franchise", "WHERE", "active", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "team_franchise", "WHERE", "active", "=", "value"], "question": "Count the team franchises are active, with active value 'Y'?", "question_toks": ["Count", "the", "team", "franchises", "are", "active", ",", "with", "active", "value", "'", "Y", "'?"], "sql": {"from": {"table_units": [["table_unit", 24]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 341, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3705", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0044", "db_id": "battle_death", "query": "select count(*) from ship where disposition_of_ship = \"captured\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "ship", "WHERE", "disposition_of_ship", "=", "``", "captured", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "ship", "WHERE", "disposition_of_ship", "=", "value"], "question": "Count the ships ended up being 'Captured'?", "question_toks": ["Count", "the", "ships", "ended", "up", "being", "'", "Captured", "'?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"captured\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0491", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0045", "db_id": "battle_death", "query": "select count(*) from battle where id not in ( select lost_in_battle from ship where tonnage = \"225\" )", "query_toks": ["SELECT", "count", "(*)", "FROM", "battle", "WHERE", "id", "NOT", "IN", "(", "SELECT", "lost_in_battle", "FROM", "ship", "WHERE", "tonnage", "=", "``", "225", "''", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "battle", "WHERE", "id", "NOT", "IN", "(", "SELECT", "lost_in_battle", "FROM", "ship", "WHERE", "tonnage", "=", "value", ")"], "question": "Count the battles did not lose any ship with tonnage '225'?", "question_toks": ["Count", "the", "battles", "did", "not", "lose", "any", "ship", "with", "tonnage", "'", "225", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"225\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0503", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0046", "db_id": "car_1", "query": "select count(*) from countries", "query_toks": ["SELECT", "count", "(*)", "FROM", "COUNTRIES"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "COUNTRIES"], "question": "Count all the countries", "question_toks": ["Count", "all", "the", "countries"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0092", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0047", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Count the models does each car maker produce? List maker full name, id and the number.", "question_toks": ["Count", "the", "models", "does", "each", "car", "maker", "produce", "?", "List", "maker", "full", "name", ",", "id", "and", "the", "number", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0093", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0048", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What is the full name of each car maker, along with its id and models count it produces?", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "car", "maker", ",", "along", "with", "its", "id", "and", "models", "count", "it", "produces", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0094", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0049", "db_id": "car_1", "query": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id", "query_toks": ["select", "count", "(*)", ",", "t2", ".", "fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "group", "by", "t2", ".", "id"], "query_toks_no_value": ["select", "count", "(*)", ",", "t2", ".", "fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "group", "by", "t2", ".", "id"], "question": "Count the car models are produced by each maker ? Only list the count and the maker full name .", "question_toks": ["Count", "the", "car", "models", "are", "produced", "by", "each", "maker", "?", "Only", "list", "the", "count", "and", "the", "maker", "full", "name", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0109", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0050", "db_id": "car_1", "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "query_toks": ["select", "count", "(*)", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(*)", ">", "2"], "query_toks_no_value": ["select", "count", "(*)", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(*)", ">", "2"], "question": "Count the countries that has more than 2 car makers ?", "question_toks": ["Count", "the", "countries", "that", "has", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0161", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0051", "db_id": "car_1", "query": "select count(*) from cars_data where cylinders > 6", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "6"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "value"], "question": "Count the cars that has over 6 cylinders?", "question_toks": ["Count", "the", "cars", "that", "has", "over", "6", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 6.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0163", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0052", "db_id": "chinook_1", "query": "select count(*) from album", "query_toks": ["SELECT", "count", "(*)", "FROM", "ALBUM"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "ALBUM"], "question": "Count the albums here?", "question_toks": ["Count", "the", "albums", "here", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0807", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0053", "db_id": "chinook_1", "query": "select t1.title , t2.albumid , count(*) from album as t1 join track as t2 on t1.albumid = t2.albumid group by t2.albumid", "query_toks": ["SELECT", "T1", ".", "Title", ",", "T2", ".", "AlbumID", ",", "COUNT", "(*)", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "AlbumId", "=", "T2", ".", "AlbumId", "GROUP", "BY", "T2", ".", "AlbumID"], "query_toks_no_value": ["SELECT", "T1", ".", "Title", ",", "T2", ".", "AlbumID", ",", "COUNT", "(*)", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "AlbumId", "=", "T2", ".", "AlbumId", "GROUP", "BY", "T2", ".", "AlbumID"], "question": "List the names and ids of the different albums, and count the tracks on each?", "question_toks": ["List", "the", "names", "and", "ids", "of", "the", "different", "albums", ",", "and", "count", "the", "tracks", "on", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 58, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0834", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0054", "db_id": "chinook_1", "query": "select count(*) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"rock\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "``", "rock", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "value"], "question": "Count the tracks belong to rock genre?", "question_toks": ["Count", "the", "tracks", "belong", "to", "rock", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0841", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0055", "db_id": "cinema", "query": "select count(*) from film where title like \"%dummy%\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "film", "WHERE", "title", "LIKE", "\"%", "dummy", "%\""], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "film", "WHERE", "title", "LIKE", "\"%", "dummy", "%\""], "question": "Count the films that have the word 'Dummy' in their titles?", "question_toks": ["Count", "the", "films", "that", "have", "the", "word", "'", "Dummy", "'", "in", "their", "titles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%dummy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1958", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0056", "db_id": "climbing", "query": "select count(*) from climber", "query_toks": ["SELECT", "count", "(*)", "FROM", "climber"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "climber"], "question": "Count climbers number?", "question_toks": ["Count", "climbers", "number", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1110", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0057", "db_id": "club_1", "query": "select count(*) from club", "query_toks": ["SELECT", "count", "(*)", "FROM", "club"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "club"], "question": "Count the clubs there?", "question_toks": ["Count", "the", "clubs", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4250", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0058", "db_id": "club_1", "query": "select count(*) from student", "query_toks": ["SELECT", "count", "(*)", "FROM", "student"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "student"], "question": "Count the students there?", "question_toks": ["Count", "the", "students", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4254", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0059", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\" and t3.lname = \"kim\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "fname", "=", "``", "tracy", "''", "AND", "t3", ".", "lname", "=", "``", "kim", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "fname", "=", "value", "AND", "t3", ".", "lname", "=", "value"], "question": "Count the clubs in which \"Tracy Kim\" a member?", "question_toks": ["Count", "the", "clubs", "in", "which", "\"", "Tracy", "Kim", "\"", "a", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"tracy\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"kim\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4269", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0060", "db_id": "club_1", "query": "select count(*) from club where clublocation = \"hhh\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "club", "WHERE", "clublocation", "=", "``", "hhh", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "club", "WHERE", "clublocation", "=", "value"], "question": "Count the clubs are located at \"HHH\"?", "question_toks": ["Count", "the", "clubs", "are", "located", "at", "\"", "HHH", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"hhh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4292", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0061", "db_id": "college_1", "query": "select count(*) from professor where prof_high_degree = \"ph.d.\" or prof_high_degree = \"ma\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "professor", "WHERE", "prof_high_degree", "=", "``", "ph", ".", "d", ".\"", "OR", "prof_high_degree", "=", "''", "ma", "``"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "professor", "WHERE", "prof_high_degree", "=", "value", ".", "d", ".\"", "OR", "prof_high_degree", "=", "ma"], "question": "Count the professors who has a either Ph.D. or MA degree?", "question_toks": ["Count", "the", "professors", "who", "has", "a", "either", "Ph", ".", "D", ".", "or", "MA", "degree", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"ph.d.\"", null], "or", [false, 2, [0, [0, 31, false], null], "\"ma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3287", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0062", "db_id": "college_1", "query": "select count(*) from professor where prof_high_degree = \"ph.d.\" or prof_high_degree = \"ma\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "professor", "WHERE", "prof_high_degree", "=", "``", "ph", ".", "d", ".\"", "OR", "prof_high_degree", "=", "''", "ma", "``"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "professor", "WHERE", "prof_high_degree", "=", "value", ".", "d", ".\"", "OR", "prof_high_degree", "=", "ma"], "question": "Count the professors attained either Ph.D. or Masters degrees?", "question_toks": ["Count", "the", "professors", "attained", "either", "Ph", ".", "D", ".", "or", "Masters", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"ph.d.\"", null], "or", [false, 2, [0, [0, 31, false], null], "\"ma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3288", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0063", "db_id": "concert_singer", "query": "select count(*) from singer", "query_toks": ["SELECT", "count", "(*)", "FROM", "singer"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "singer"], "question": "Count the singers that we have?", "question_toks": ["Count", "the", "singers", "that", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0000", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0064", "db_id": "concert_singer", "query": "select country , count(*) from singer group by country", "query_toks": ["SELECT", "country", ",", "count", "(*)", "FROM", "singer", "GROUP", "BY", "country"], "query_toks_no_value": ["SELECT", "country", ",", "count", "(*)", "FROM", "singer", "GROUP", "BY", "country"], "question": "Count the singers from each country?", "question_toks": ["Count", "the", "singers", "from", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0011", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0065", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 or year = 2015", "query_toks": ["SELECT", "count", "(*)", "FROM", "concert", "WHERE", "YEAR", "=", "2014", "OR", "YEAR", "=", "2015"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "concert", "WHERE", "YEAR", "=", "value", "OR", "YEAR", "=", "value"], "question": "Count the concerts are there in year 2014 or 2015?", "question_toks": ["Count", "the", "concerts", "are", "there", "in", "year", "2014", "or", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null], "or", [false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0020", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0066", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 or year = 2015", "query_toks": ["SELECT", "count", "(*)", "FROM", "concert", "WHERE", "YEAR", "=", "2014", "OR", "YEAR", "=", "2015"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "concert", "WHERE", "YEAR", "=", "value", "OR", "YEAR", "=", "value"], "question": "Count the concerts occurred in 2014 or 2015?", "question_toks": ["Count", "the", "concerts", "occurred", "in", "2014", "or", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null], "or", [false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0021", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0067", "db_id": "concert_singer", "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", "query_toks": ["SELECT", "T2", ".", "name", ",", "count", "(*)", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "GROUP", "BY", "T1", ".", "stadium_id"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "count", "(*)", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "GROUP", "BY", "T1", ".", "stadium_id"], "question": "For each stadium, count the concerts play there?", "question_toks": ["For", "each", "stadium", ",", "count", "the", "concerts", "play", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0023", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0068", "db_id": "course_teach", "query": "select count(*) from teacher", "query_toks": ["SELECT", "count", "(*)", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "teacher"], "question": "Count the teachers there?", "question_toks": ["Count", "the", "teachers", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0381", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0069", "db_id": "course_teach", "query": "select hometown , count(*) from teacher group by hometown", "query_toks": ["SELECT", "Hometown", ",", "COUNT", "(*)", "FROM", "teacher", "GROUP", "BY", "Hometown"], "query_toks_no_value": ["SELECT", "Hometown", ",", "COUNT", "(*)", "FROM", "teacher", "GROUP", "BY", "Hometown"], "question": "For each hometown, count teachers there?", "question_toks": ["For", "each", "hometown", ",", "count", "teachers", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0394", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0070", "db_id": "course_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", "query_toks": ["SELECT", "T2", ".", "Name", ",", "COUNT", "(*)", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1", ".", "Teacher_ID", "=", "T2", ".", "Teacher_ID", "GROUP", "BY", "T2", ".", "Name"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", ",", "COUNT", "(*)", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1", ".", "Teacher_ID", "=", "T2", ".", "Teacher_ID", "GROUP", "BY", "T2", ".", "Name"], "question": "List the names of the teachers and count the number of courses do they teach?", "question_toks": ["List", "the", "names", "of", "the", "teachers", "and", "count", "the", "number", "of", "courses", "do", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0406", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0071", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents", "query_toks": ["SELECT", "count", "(*)", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Documents"], "question": "Count the documents that we have?", "question_toks": ["Count", "the", "documents", "that", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0297", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0072", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = \"ppt\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1", ".", "Template_ID", "=", "T2", ".", "Template_ID", "WHERE", "T2", ".", "Template_Type_Code", "=", "``", "ppt", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1", ".", "Template_ID", "=", "T2", ".", "Template_ID", "WHERE", "T2", ".", "Template_Type_Code", "=", "value"], "question": "Count the documents are using the template with type code 'PPT'?", "question_toks": ["Count", "the", "documents", "are", "using", "the", "template", "with", "type", "code", "'", "PPT", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"ppt\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0307", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0073", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id , count(*) from documents group by template_id", "query_toks": ["SELECT", "template_id", ",", "count", "(*)", "FROM", "Documents", "GROUP", "BY", "template_id"], "query_toks_no_value": ["SELECT", "template_id", ",", "count", "(*)", "FROM", "Documents", "GROUP", "BY", "template_id"], "question": "List the different template ids used for documents, and count how many times were each of them used?", "question_toks": ["List", "the", "different", "template", "ids", "used", "for", "documents", ",", "and", "count", "how", "many", "times", "were", "each", "of", "them", "used", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0310", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0074", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from templates", "query_toks": ["SELECT", "count", "(*)", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Templates"], "question": "Count the templates number do we have?", "question_toks": ["Count", "the", "templates", "number", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0317", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0075", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from templates where template_type_code = \"cv\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "cv", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Templates", "WHERE", "template_type_code", "=", "value"], "question": "Count the templates that have template type code CV?", "question_toks": ["Count", "the", "templates", "that", "have", "template", "type", "code", "CV", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"cv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0325", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0076", "db_id": "csu_1", "query": "select count(*) from campuses where county = \"los angeles\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "campuses", "WHERE", "county", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "campuses", "WHERE", "county", "=", "value", "angeles"], "question": "Count campuses number in Los Angeles county?", "question_toks": ["Count", "campuses", "number", "in", "Los", "Angeles", "county", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2364", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0077", "db_id": "csu_1", "query": "select count(*) from campuses where county = \"los angeles\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "campuses", "WHERE", "county", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "campuses", "WHERE", "county", "=", "value", "angeles"], "question": "Count the campuses that exist in the county of LA?", "question_toks": ["Count", "the", "campuses", "that", "exist", "in", "the", "county", "of", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2365", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0078", "db_id": "csu_1", "query": "select count(*) from campuses", "query_toks": ["SELECT", "count", "(*)", "FROM", "campuses"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "campuses"], "question": "Count the CSU campuses", "question_toks": ["Count", "the", "CSU", "campuses"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2392", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0079", "db_id": "culture_company", "query": "select count(*) from book_club", "query_toks": ["SELECT", "count", "(*)", "FROM", "book_club"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "book_club"], "question": "Count the numer of book clubs", "question_toks": ["Count", "the", "numer", "of", "book", "clubs"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6962", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0080", "db_id": "culture_company", "query": "select publisher , count(*) from book_club group by publisher", "query_toks": ["SELECT", "publisher", ",", "count", "(*)", "FROM", "book_club", "GROUP", "BY", "publisher"], "query_toks_no_value": ["SELECT", "publisher", ",", "count", "(*)", "FROM", "book_club", "GROUP", "BY", "publisher"], "question": "Count the number of books for each publisher?", "question_toks": ["Count", "the", "number", "of", "books", "for", "each", "publisher", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6971", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0081", "db_id": "customer_complaints", "query": "select count(*) from customers", "query_toks": ["SELECT", "count", "(*)", "FROM", "customers"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "customers"], "question": "Count the customer number", "question_toks": ["Count", "the", "customer", "number"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5768", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0082", "db_id": "customer_complaints", "query": "select t1.product_name , count(*) from products as t1 join complaints as t2 on t1.product_id = t2.product_id group by t1.product_name", "query_toks": ["SELECT", "t1", ".", "product_name", ",", "count", "(*)", "FROM", "products", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1", ".", "product_id", "=", "t2", ".", "product_id", "GROUP", "BY", "t1", ".", "product_name"], "query_toks_no_value": ["SELECT", "t1", ".", "product_name", ",", "count", "(*)", "FROM", "products", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1", ".", "product_id", "=", "t2", ".", "product_id", "GROUP", "BY", "t1", ".", "product_name"], "question": "List the different product names, and count the number of complains that each received?", "question_toks": ["List", "the", "different", "product", "names", ",", "and", "count", "the", "number", "of", "complains", "that", "each", "received", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 24, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5775", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0083", "db_id": "customers_and_invoices", "query": "select gender , count(*) from customers group by gender", "query_toks": ["SELECT", "gender", ",", "count", "(*)", "FROM", "Customers", "GROUP", "BY", "gender"], "query_toks_no_value": ["SELECT", "gender", ",", "count", "(*)", "FROM", "Customers", "GROUP", "BY", "gender"], "question": "Count the customers for each gender", "question_toks": ["Count", "the", "customers", "for", "each", "gender"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1576", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0084", "db_id": "customers_campaigns_ecommerce", "query": "select count(*) from premises", "query_toks": ["SELECT", "count", "(*)", "FROM", "premises"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "premises"], "question": "Count the premises number", "question_toks": ["Count", "the", "premises", "number"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4620", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0085", "db_id": "customers_card_transactions", "query": "select count(*) from accounts", "query_toks": ["SELECT", "count", "(*)", "FROM", "Accounts"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Accounts"], "question": "Count the accounts number", "question_toks": ["Count", "the", "accounts", "number"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0667", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0086", "db_id": "customers_card_transactions", "query": "select count(*) from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.customer_first_name = \"art\" and t2.customer_last_name = \"turcotte\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "T2", ".", "customer_first_name", "=", "``", "art", "''", "AND", "T2", ".", "customer_last_name", "=", "``", "turcotte", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "T2", ".", "customer_first_name", "=", "value", "AND", "T2", ".", "customer_last_name", "=", "value"], "question": "Count the accounts number that does the customer with first name Art and last name Turcotte have?", "question_toks": ["Count", "the", "accounts", "number", "that", "does", "the", "customer", "with", "first", "name", "Art", "and", "last", "name", "Turcotte", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"art\"", null], "and", [false, 2, [0, [0, 7, false], null], "\"turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0675", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0087", "db_id": "dog_kennels", "query": "select count(*) from dogs where age < ( select avg(age) from dogs )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Dogs", "WHERE", "age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Dogs", "WHERE", "age", "<", "value", "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", ")"], "question": "Count the number of dogs that have an age below the average?", "question_toks": ["Count", "the", "number", "of", "dogs", "that", "have", "an", "age", "below", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0974", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0088", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Dogs", "WHERE", "dog_id", "NOT", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Dogs", "WHERE", "dog_id", "NOT", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "question": "Count the dogs that have not gone through any treatment?", "question_toks": ["Count", "the", "dogs", "that", "have", "not", "gone", "through", "any", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0978", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0089", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "question": "Count the owners that temporarily do not have any dogs?", "question_toks": ["Count", "the", "owners", "that", "temporarily", "do", "not", "have", "any", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0980", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0090", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "question": "Cont the professionals that did not operate any treatment on dogs?", "question_toks": ["Cont", "the", "professionals", "that", "did", "not", "operate", "any", "treatment", "on", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0982", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0091", "db_id": "dorm_1", "query": "select count(*) from student where sex = \"f\" and age < 25", "query_toks": ["SELECT", "count", "(*)", "FROM", "student", "WHERE", "sex", "=", "``", "f", "''", "AND", "age", "<", "25"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "student", "WHERE", "sex", "=", "value", "AND", "age", "<", "value"], "question": "Count the female students (sex is F) whose age is below 25?", "question_toks": ["Count", "the", "female", "students", "(", "sex", "is", "F", ")", "whose", "age", "is", "below", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 4, [0, [0, 4, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5672", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0092", "db_id": "dorm_1", "query": "select count(*) from student where sex = \"f\" and age < 25", "query_toks": ["SELECT", "count", "(*)", "FROM", "student", "WHERE", "sex", "=", "``", "f", "''", "AND", "age", "<", "25"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "student", "WHERE", "sex", "=", "value", "AND", "age", "<", "value"], "question": "Count the number of girl students who are younger than 25?", "question_toks": ["Count", "the", "number", "of", "girl", "students", "who", "are", "younger", "than", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 4, [0, [0, 4, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5673", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0093", "db_id": "dorm_1", "query": "select count(*) from dorm", "query_toks": ["SELECT", "count", "(*)", "FROM", "dorm"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "dorm"], "question": "Count the number of dorms there?", "question_toks": ["Count", "the", "number", "of", "dorms", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5678", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0094", "db_id": "dorm_1", "query": "select count(*) from dorm", "query_toks": ["SELECT", "count", "(*)", "FROM", "dorm"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "dorm"], "question": "Count the number of dorms that are in the database?", "question_toks": ["Count", "the", "number", "of", "dorms", "that", "are", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5679", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0095", "db_id": "dorm_1", "query": "select count(*) , sum(student_capacity) , gender from dorm group by gender", "query_toks": ["SELECT", "count", "(*)", ",", "sum", "(", "student_capacity", ")", ",", "gender", "FROM", "dorm", "GROUP", "BY", "gender"], "query_toks_no_value": ["SELECT", "count", "(*)", ",", "sum", "(", "student_capacity", ")", ",", "gender", "FROM", "dorm", "GROUP", "BY", "gender"], "question": "Count the number of dorms and the sum of capacity for each gender?", "question_toks": ["Count", "the", "number", "of", "dorms", "and", "the", "sum", "of", "capacity", "for", "each", "gender", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [4, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5721", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0096", "db_id": "driving_school", "query": "select count(*) from customers where customer_id not in ( select customer_id from customer_payments )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")"], "question": "Count the number of customers that have no payment histories?", "question_toks": ["Count", "the", "number", "of", "customers", "that", "have", "no", "payment", "histories", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6693", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0097", "db_id": "driving_school", "query": "select payment_method_code , count(*) from customer_payments group by payment_method_code", "query_toks": ["SELECT", "payment_method_code", ",", "count", "(*)", "FROM", "Customer_Payments", "GROUP", "BY", "payment_method_code"], "query_toks_no_value": ["SELECT", "payment_method_code", ",", "count", "(*)", "FROM", "Customer_Payments", "GROUP", "BY", "payment_method_code"], "question": "For each payment method, count the number of payments that were made?", "question_toks": ["For", "each", "payment", "method", ",", "count", "the", "number", "of", "payments", "that", "were", "made", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6697", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0098", "db_id": "driving_school", "query": "select count(*) from lessons where lesson_status_code = \"cancelled\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Lessons", "WHERE", "lesson_status_code", "=", "``", "cancelled", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Lessons", "WHERE", "lesson_status_code", "=", "value"], "question": "Count the number of lessons that were in cancelled state?", "question_toks": ["Count", "the", "number", "of", "lessons", "that", "were", "in", "cancelled", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6698", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0099", "db_id": "entrepreneur", "query": "select investor , count(*) from entrepreneur group by investor", "query_toks": ["SELECT", "Investor", ",", "COUNT", "(*)", "FROM", "entrepreneur", "GROUP", "BY", "Investor"], "query_toks_no_value": ["SELECT", "Investor", ",", "COUNT", "(*)", "FROM", "entrepreneur", "GROUP", "BY", "Investor"], "question": "Count the number of entrepreneurs correspond to each investor?", "question_toks": ["Count", "the", "number", "of", "entrepreneurs", "correspond", "to", "each", "investor", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2288", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0100", "db_id": "flight_1", "query": "select count(*) from flight", "query_toks": ["SELECT", "count", "(*)", "FROM", "Flight"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Flight"], "question": "Count the amount of flights do we have?", "question_toks": ["Count", "the", "amount", "of", "flights", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0381", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0101", "db_id": "flight_1", "query": "select origin , count(*) from flight group by origin", "query_toks": ["SELECT", "origin", ",", "count", "(*)", "FROM", "Flight", "GROUP", "BY", "origin"], "query_toks_no_value": ["SELECT", "origin", ",", "count", "(*)", "FROM", "Flight", "GROUP", "BY", "origin"], "question": "For each origin, count the number of flights that came from there?", "question_toks": ["For", "each", "origin", ",", "count", "the", "number", "of", "flights", "that", "came", "from", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0404", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0102", "db_id": "flight_1", "query": "select t2.name , count(*) from flight as t1 join aircraft as t2 on t1.aid = t2.aid group by t1.aid", "query_toks": ["SELECT", "T2", ".", "name", ",", "count", "(*)", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1", ".", "aid", "=", "T2", ".", "aid", "GROUP", "BY", "T1", ".", "aid"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "count", "(*)", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1", ".", "aid", "=", "T2", ".", "aid", "GROUP", "BY", "T1", ".", "aid"], "question": "List the name of each aircraft and count the number of flights does each one complete?", "question_toks": ["List", "the", "name", "of", "each", "aircraft", "and", "count", "the", "number", "of", "flights", "does", "each", "one", "complete", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0416", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0103", "db_id": "flight_2", "query": "select count(*) from airlines", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRLINES"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRLINES"], "question": "Count the number of airlines that we have?", "question_toks": ["Count", "the", "number", "of", "airlines", "that", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0187", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0104", "db_id": "flight_2", "query": "select count(*) from airports", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRPORTS"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRPORTS"], "question": "Count the number of airports that we have?", "question_toks": ["Count", "the", "number", "of", "airports", "that", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0189", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0105", "db_id": "flight_2", "query": "select count(*) from flights", "query_toks": ["SELECT", "count", "(*)", "FROM", "FLIGHTS"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "FLIGHTS"], "question": "Count the number of flights do we have?", "question_toks": ["Count", "the", "number", "of", "flights", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0191", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0106", "db_id": "flight_2", "query": "select count(*) from airlines where country = \"usa\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "usa", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "WHERE", "Country", "=", "value"], "question": "Count the number of airlines that are from USA?", "question_toks": ["Count", "the", "number", "of", "airlines", "that", "are", "from", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0195", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0107", "db_id": "flight_2", "query": "select count(*) from flights where sourceairport = \"apg\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "apg", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "value"], "question": "Count the number of flights depart from 'APG'?", "question_toks": ["Count", "the", "number", "of", "flights", "depart", "from", "'", "APG", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"apg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0203", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0108", "db_id": "flight_2", "query": "select count(*) from flights where destairport = \"ato\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "``", "ato", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "value"], "question": "Count the number of flights that have destination ATO?", "question_toks": ["Count", "the", "number", "of", "flights", "that", "have", "destination", "ATO", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"ato\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0205", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0109", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1", ".", "SourceAirport", "=", "T2", ".", "AirportCode", "WHERE", "T2", ".", "City", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1", ".", "SourceAirport", "=", "T2", ".", "AirportCode", "WHERE", "T2", ".", "City", "=", "value"], "question": "Count the number of flights depart from City Aberdeen?", "question_toks": ["Count", "the", "number", "of", "flights", "depart", "from", "City", "Aberdeen", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0207", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0110", "db_id": "game_1", "query": "select sportname , count(*) from sportsinfo group by sportname", "query_toks": ["SELECT", "sportname", ",", "count", "(*)", "FROM", "Sportsinfo", "GROUP", "BY", "sportname"], "query_toks_no_value": ["SELECT", "sportname", ",", "count", "(*)", "FROM", "Sportsinfo", "GROUP", "BY", "sportname"], "question": "Count the number of students playing each sport?", "question_toks": ["Count", "the", "number", "of", "students", "playing", "each", "sport", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6012", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0111", "db_id": "geo", "query": "select count ( river_name ) from river where traverse = \"idaho\"", "query_toks": ["SELECT", "COUNT", "(", "river_name", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "idaho", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "river_name", ")", "FROM", "river", "WHERE", "traverse", "=", "value"], "question": "count the number of rivers that are in idaho", "question_toks": ["count", "the", "number", "of", "rivers", "that", "are", "in", "idaho"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"idaho\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0081", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0112", "db_id": "geo", "query": "select count ( state_name ) from city where city_name = \"springfield\"", "query_toks": ["SELECT", "COUNT", "(", "state_name", ")", "FROM", "city", "WHERE", "city_name", "=", "``", "springfield", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "state_name", ")", "FROM", "city", "WHERE", "city_name", "=", "value"], "question": "Count the number of states that have a city named springfield", "question_toks": ["Count", "the", "number", "of", "states", "that", "have", "a", "city", "named", "springfield"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"springfield\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0476", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0113", "db_id": "geo", "query": "select count ( city_name ) from city where population > 150000 and state_name = \"texas\"", "query_toks": ["SELECT", "COUNT", "(", "city_name", ")", "FROM", "city", "WHERE", "population", ">", "150000", "AND", "state_name", "=", "``", "texas", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "city_name", ")", "FROM", "city", "WHERE", "population", ">", "value", "AND", "state_name", "=", "value"], "question": "Count the number of major cities in texas", "question_toks": ["Count", "the", "number", "of", "major", "cities", "in", "texas"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 150000.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0482", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0114", "db_id": "hr_1", "query": "select department_name , count(*) from employees as t1 join departments as t2 on t1.department_id = t2.department_id group by department_name", "query_toks": ["SELECT", "department_name", ",", "COUNT", "(*)", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1", ".", "department_id", "=", "T2", ".", "department_id", "GROUP", "BY", "department_name"], "query_toks_no_value": ["SELECT", "department_name", ",", "COUNT", "(*)", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1", ".", "department_id", "=", "T2", ".", "department_id", "GROUP", "BY", "department_name"], "question": "List the department names and count the number of employees work in each of them?", "question_toks": ["List", "the", "department", "names", "and", "count", "the", "number", "of", "employees", "work", "in", "each", "of", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3526", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0115", "db_id": "icfp_1", "query": "select count(*) from inst", "query_toks": ["SELECT", "count", "(*)", "FROM", "inst"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "inst"], "question": "Count the number of institutions are there?", "question_toks": ["Count", "the", "number", "of", "institutions", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2860", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0116", "db_id": "icfp_1", "query": "select count(*) from papers", "query_toks": ["SELECT", "count", "(*)", "FROM", "papers"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "papers"], "question": "Count the number of papers that are published?", "question_toks": ["Count", "the", "number", "of", "papers", "that", "are", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2862", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0117", "db_id": "singer", "query": "select count(*) from singer", "query_toks": ["SELECT", "count", "(*)", "FROM", "singer"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "singer"], "question": "Count the number of singers there?", "question_toks": ["Count", "the", "number", "of", "singers", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1000", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0118", "db_id": "singer", "query": "select citizenship , count(*) from singer group by citizenship", "query_toks": ["SELECT", "Citizenship", ",", "COUNT", "(*)", "FROM", "singer", "GROUP", "BY", "Citizenship"], "query_toks_no_value": ["SELECT", "Citizenship", ",", "COUNT", "(*)", "FROM", "singer", "GROUP", "BY", "Citizenship"], "question": "For each citizenship, count the number of singers from that country?", "question_toks": ["For", "each", "citizenship", ",", "count", "the", "number", "of", "singers", "from", "that", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1013", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT"]}, {"id": "how_many_0119", "db_id": "inn_1", "query": "select count(distinct bedtype) from rooms", "query_toks": ["SELECT", "count", "(", "DISTINCT", "bedType", ")", "FROM", "Rooms"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "bedType", ")", "FROM", "Rooms"], "question": "Count the number of different types of beds", "question_toks": ["Count", "the", "number", "of", "different", "types", "of", "beds"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 4, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2630", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0120", "db_id": "loan_1", "query": "select count(distinct city) from bank", "query_toks": ["SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "bank"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "bank"], "question": "Count the different cities with banks?", "question_toks": ["Count", "the", "different", "cities", "with", "banks", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 4, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3027", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0121", "db_id": "poker_player", "query": "select count(distinct nationality) from people", "query_toks": ["SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "people"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "people"], "question": "Count the distinct nationalities", "question_toks": ["Count", "the", "distinct", "nationalities"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 8, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0685", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0122", "db_id": "products_for_hire", "query": "select count(distinct product_type_code) from products_for_hire", "query_toks": ["SELECT", "count", "(", "DISTINCT", "product_type_code", ")", "FROM", "products_for_hire"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "product_type_code", ")", "FROM", "products_for_hire"], "question": "Count the different product types", "question_toks": ["Count", "the", "different", "product", "types"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1968", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0123", "db_id": "products_gen_characteristics", "query": "select count(distinct t3.characteristic_name) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t1.product_name = \"sesame\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "t3", ".", "characteristic_name", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1", ".", "product_id", "=", "t2", ".", "product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "WHERE", "t1", ".", "product_name", "=", "``", "sesame", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "t3", ".", "characteristic_name", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1", ".", "product_id", "=", "t2", ".", "product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "WHERE", "t1", ".", "product_name", "=", "value"], "question": "Count the number of distinct characteristic names that the product \"cumin\" have?", "question_toks": ["Count", "the", "number", "of", "distinct", "characteristic", "names", "that", "the", "product", "\"", "cumin", "\"", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null]]}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"sesame\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5556", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0124", "db_id": "sakila_1", "query": "select count(distinct last_name) from actor", "query_toks": ["SELECT", "count", "(", "DISTINCT", "last_name", ")", "FROM", "actor"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "last_name", ")", "FROM", "actor"], "question": "Count the different last names that the actors and actresses have?", "question_toks": ["Count", "the", "different", "last", "names", "that", "the", "actors", "and", "actresses", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2924", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0125", "db_id": "sakila_1", "query": "select count(distinct language_id) from film", "query_toks": ["SELECT", "count", "(", "DISTINCT", "language_id", ")", "FROM", "film"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "language_id", ")", "FROM", "film"], "question": "Count the number of languages in these films?", "question_toks": ["Count", "the", "number", "of", "languages", "in", "these", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 36, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2970", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0126", "db_id": "student_transcripts_tracking", "query": "select count(distinct department_id) from degree_programs", "query_toks": ["SELECT", "count", "(", "DISTINCT", "department_id", ")", "FROM", "Degree_Programs"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "department_id", ")", "FROM", "Degree_Programs"], "question": "Count the number of different departments offer degrees", "question_toks": ["Count", "the", "number", "of", "different", "departments", "offer", "degrees"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 19, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0518", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0127", "db_id": "student_transcripts_tracking", "query": "select count(distinct degree_summary_name) from degree_programs", "query_toks": ["SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs"], "question": "Count the number of different degree names that are offered", "question_toks": ["Count", "the", "number", "of", "different", "degree", "names", "that", "are", "offered"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 20, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0519", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0128", "db_id": "student_transcripts_tracking", "query": "select count(distinct degree_summary_name) from degree_programs", "query_toks": ["SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs"], "question": "Count the number of different degrees that are offered", "question_toks": ["Count", "the", "number", "of", "different", "degrees", "that", "are", "offered"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 20, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0520", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0129", "db_id": "shop_membership", "query": "select count(distinct level) from member", "query_toks": ["SELECT", "count", "(", "DISTINCT", "LEVEL", ")", "FROM", "member"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "LEVEL", ")", "FROM", "member"], "question": "Count the number of different levels that members have", "question_toks": ["Count", "the", "number", "of", "different", "levels", "that", "members", "have"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5414", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0130", "db_id": "inn_1", "query": "select count(*) from rooms where roomid not in (select distinct room from reservations)", "query_toks": ["SELECT", "count", "(*)", "FROM", "rooms", "WHERE", "roomid", "NOT", "IN", "(", "SELECT", "DISTINCT", "room", "FROM", "reservations", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "rooms", "WHERE", "roomid", "NOT", "IN", "(", "SELECT", "DISTINCT", "room", "FROM", "reservations", ")"], "question": "Count the number of rooms that have not had any reservation yet?", "question_toks": ["Count", "the", "number", "of", "rooms", "that", "have", "not", "had", "any", "reservation", "yet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2637", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"]}, {"id": "how_many_0131", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "query_toks_no_value": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "question": "What is the maximum of charge amount tamong all type costs?", "question_toks": ["What", "is", "the", "maximum", "of", "charge", "amount", "tamong", "all", "type", "costs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0992", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_MAX"]}, {"id": "how_many_0132", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\" and lastname = \"sweazy\"", "query_toks": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "roy", "''", "AND", "LastName", "=", "``", "sweazy", "''"], "query_toks_no_value": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "value", "AND", "LastName", "=", "value"], "question": "Output the options of kids number stay in the rooms reserved by ROY SWEAZY?", "question_toks": ["Output", "the", "options", "of", "kids", "number", "stay", "in", "the", "rooms", "reserved", "by", "ROY", "SWEAZY", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"roy\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"sweazy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2578", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0133", "db_id": "inn_1", "query": "select adults from reservations where checkin = \"2010-10-23\" and firstname = \"conrad\" and lastname = \"selbig\"", "query_toks": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010", "-", "10", "-", "23", "''", "AND", "FirstName", "=", "``", "conrad", "''", "AND", "LastName", "=", "``", "selbig", "''"], "query_toks_no_value": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "value", "-", "10", "-", "23", "AND", "FirstName", "=", "value", "AND", "LastName", "=", "value"], "question": "List the the adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?", "question_toks": ["List", "the", "the", "adults", "stay", "in", "the", "room", "CONRAD", "SELBIG", "checked", "in", "on", "Oct", "23", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-10-23\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"conrad\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"selbig\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2584", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0134", "db_id": "inn_1", "query": "select kids from reservations where checkin = \"2010-09-21\" and firstname = \"damien\" and lastname = \"trachsel\"", "query_toks": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010", "-", "09", "-", "21", "''", "AND", "FirstName", "=", "``", "damien", "''", "AND", "LastName", "=", "``", "trachsel", "''"], "query_toks_no_value": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "value", "-", "09", "-", "21", "AND", "FirstName", "=", "value", "AND", "LastName", "=", "value"], "question": "List the kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?", "question_toks": ["List", "the", "kids", "stay", "in", "the", "room", "DAMIEN", "TRACHSEL", "checked", "in", "on", "Sep", "21", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-09-21\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"damien\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"trachsel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2586", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0135", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "``", "london", "heathrow", "''"], "query_toks_no_value": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "value", "heathrow"], "question": "Print international and domestic passengers n the airport London Heathrow?", "question_toks": ["Print", "international", "and", "domestic", "passengers", "n", "the", "airport", "London", "Heathrow", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"london heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4804", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0136", "db_id": "baseball_1", "query": "select salary from salary where year = 2001 order by salary desc limit 3", "query_toks": ["SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001", "ORDER", "BY", "salary", "DESC", "LIMIT", "3"], "query_toks_no_value": ["SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "value", "ORDER", "BY", "salary", "DESC", "LIMIT", "3"], "question": "List the salaries did the top 3 well-paid players get in 2001?", "question_toks": ["List", "the", "salaries", "did", "the", "top", "3", "well", "-", "paid", "players", "get", "in", "2001", "?"], "sql": {"from": {"table_units": [["table_unit", 20]], "conds": []}, "select": [false, [[0, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 272, false], null], 2001.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 276, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3682", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0137", "db_id": "car_1", "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)\"", "query_toks": ["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", ")\""], "query_toks_no_value": ["SELECT", "T1", ".", "Accelerate", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T2", ".", "Make", "=", "value", "hornet", "sportabout", "(", "sw", ")\""], "question": "List all options of accelerate that makes amc hornet sportabout (sw)?", "question_toks": ["List", "all", "options", "of", "accelerate", "that", "makes", "amc", "hornet", "sportabout", "(", "sw", ")?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"amc hornet sportabout (sw)\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0112", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0138", "db_id": "car_1", "query": "select t1.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", "query_toks": ["SELECT", "T1", ".", "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"], "query_toks_no_value": ["SELECT", "T1", ".", "cylinders", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T2", ".", "Model", "=", "value", "ORDER", "BY", "T1", ".", "accelerate", "ASC", "LIMIT", "1"], "question": "For model volvo, list the options of cylinders does the car with the least accelerate have?", "question_toks": ["For", "model", "volvo", ",", "list", "the", "options", "of", "cylinders", "does", "the", "car", "with", "the", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0157", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0139", "db_id": "car_1", "query": "select t1.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", "query_toks": ["SELECT", "T1", ".", "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"], "query_toks_no_value": ["SELECT", "T1", ".", "cylinders", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T2", ".", "Model", "=", "value", "ORDER", "BY", "T1", ".", "accelerate", "ASC", "LIMIT", "1"], "question": "For a volvo model, what are the cylinders does the version with least accelerate have?", "question_toks": ["For", "a", "volvo", "model", ",", "what", "are", "the", "cylinders", "does", "the", "version", "with", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0158", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0140", "db_id": "college_1", "query": "select t4.crs_description , t4.crs_credit from class as t1 join enroll as t2 on t1.class_code = t2.class_code join student as t3 on t3.stu_num = t2.stu_num join course as t4 on t4.crs_code = t1.crs_code where t3.stu_lname = \"smithson\"", "query_toks": ["SELECT", "T4", ".", "crs_description", ",", "T4", ".", "crs_credit", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1", ".", "class_code", "=", "T2", ".", "class_code", "JOIN", "student", "AS", "T3", "ON", "T3", ".", "stu_num", "=", "T2", ".", "stu_num", "JOIN", "course", "AS", "T4", "ON", "T4", ".", "crs_code", "=", "T1", ".", "crs_code", "WHERE", "T3", ".", "stu_lname", "=", "``", "smithson", "''"], "query_toks_no_value": ["SELECT", "T4", ".", "crs_description", ",", "T4", ".", "crs_credit", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1", ".", "class_code", "=", "T2", ".", "class_code", "JOIN", "student", "AS", "T3", "ON", "T3", ".", "stu_num", "=", "T2", ".", "stu_num", "JOIN", "course", "AS", "T4", "ON", "T4", ".", "crs_code", "=", "T1", ".", "crs_code", "WHERE", "T3", ".", "stu_lname", "=", "value"], "question": "List the credits is the course that the student with the last name Smithson took, and what are the description?", "question_toks": ["List", "the", "credits", "is", "the", "course", "that", "the", "student", "with", "the", "last", "name", "Smithson", "took", ",", "and", "what", "are", "the", "description", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 32, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"smithson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3286", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0141", "db_id": "csu_1", "query": "select faculty from faculty as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["SELECT", "faculty", "FROM", "faculty", "AS", "T1", "JOIN", "campuses", "AS", "T2", "ON", "T1", ".", "campus", "=", "T2", ".", "id", "WHERE", "T1", ".", "year", "=", "2004", "AND", "T2", ".", "campus", "=", "``", "san", "francisco", "state", "university", "''"], "query_toks_no_value": ["SELECT", "faculty", "FROM", "faculty", "AS", "T1", "JOIN", "campuses", "AS", "T2", "ON", "T1", ".", "campus", "=", "T2", ".", "id", "WHERE", "T1", ".", "year", "=", "value", "AND", "T2", ".", "campus", "=", "value", "francisco", "state", "university"], "question": "List the faculty lines are there in \"San Francisco State University\" in year 2004?", "question_toks": ["List", "the", "faculty", "lines", "are", "there", "in", "\"", "San", "Francisco", "State", "University", "\"", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san francisco state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2376", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0142", "db_id": "csu_1", "query": "select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1", "query_toks": ["SELECT", "T2", ".", "faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1", ".", "id", "=", "t2", ".", "campus", "JOIN", "degrees", "AS", "T3", "ON", "T1", ".", "id", "=", "t3", ".", "campus", "AND", "t2", ".", "year", "=", "t3", ".", "year", "WHERE", "t2", ".", "year", "=", "2002", "ORDER", "BY", "t3", ".", "degrees", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1", ".", "id", "=", "t2", ".", "campus", "JOIN", "degrees", "AS", "T3", "ON", "T1", ".", "id", "=", "t3", ".", "campus", "AND", "t2", ".", "year", "=", "t3", ".", "year", "WHERE", "t2", ".", "year", "=", "value", "ORDER", "BY", "t3", ".", "degrees", "DESC", "LIMIT", "1"], "question": "What are faculty lines are there in the university that conferred the most number of degrees in year 2002?", "question_toks": ["What", "are", "faculty", "lines", "are", "there", "in", "the", "university", "that", "conferred", "the", "most", "number", "of", "degrees", "in", "year", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2380", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0143", "db_id": "csu_1", "query": "select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1", "query_toks": ["SELECT", "T2", ".", "faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1", ".", "id", "=", "t2", ".", "campus", "JOIN", "degrees", "AS", "T3", "ON", "T1", ".", "id", "=", "t3", ".", "campus", "AND", "t2", ".", "year", "=", "t3", ".", "year", "WHERE", "t2", ".", "year", "=", "2002", "ORDER", "BY", "t3", ".", "degrees", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1", ".", "id", "=", "t2", ".", "campus", "JOIN", "degrees", "AS", "T3", "ON", "T1", ".", "id", "=", "t3", ".", "campus", "AND", "t2", ".", "year", "=", "t3", ".", "year", "WHERE", "t2", ".", "year", "=", "value", "ORDER", "BY", "t3", ".", "degrees", "DESC", "LIMIT", "1"], "question": "Return the list of faculty members did the university that conferred the most degrees in 2002 have?", "question_toks": ["Return", "the", "list", "of", "faculty", "members", "did", "the", "university", "that", "conferred", "the", "most", "degrees", "in", "2002", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2381", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0144", "db_id": "dog_kennels", "query": "select cost_of_treatment from treatments order by date_of_treatment desc limit 1", "query_toks": ["SELECT", "cost_of_treatment", "FROM", "Treatments", "ORDER", "BY", "date_of_treatment", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "cost_of_treatment", "FROM", "Treatments", "ORDER", "BY", "date_of_treatment", "DESC", "LIMIT", "1"], "question": "What is the the most recent treatment cost?", "question_toks": ["What", "is", "the", "the", "most", "recent", "treatment", "cost", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 48, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0976", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0145", "db_id": "dog_kennels", "query": "select charge_type , charge_amount from charges", "query_toks": ["SELECT", "charge_type", ",", "charge_amount", "FROM", "Charges"], "query_toks_no_value": ["SELECT", "charge_type", ",", "charge_amount", "FROM", "Charges"], "question": "What is the costs amount for each charge type? List both charge type and amount.", "question_toks": ["What", "is", "the", "costs", "amount", "for", "each", "charge", "type", "?", "List", "both", "charge", "type", "and", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0990", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0146", "db_id": "geo", "query": "select population from state where state_name = \"california\"", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "``", "california", "''"], "query_toks_no_value": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "value"], "question": "what is the population of california", "question_toks": ["what", "is", "the", "population", "of", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0018", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0147", "db_id": "imdb", "query": "select budget from movie where title = \"finding nemo\"", "query_toks": ["SELECT", "budget", "FROM", "movie", "WHERE", "title", "=", "``", "finding", "nemo", "''"], "query_toks_no_value": ["SELECT", "budget", "FROM", "movie", "WHERE", "title", "=", "value", "nemo"], "question": "What is the budget of \" Finding Nemo \"", "question_toks": ["What", "is", "the", "budget", "of", "\"", "Finding", "Nemo", "\""], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 43, false], null], "\"finding nemo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1444", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0148", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\"", "query_toks": ["SELECT", "t4", ".", "title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5", ".", "aid", "=", "t1", ".", "aid", "JOIN", "movie", "AS", "t4", "ON", "t4", ".", "mid", "=", "t5", ".", "msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4", ".", "mid", "=", "t2", ".", "msid", "JOIN", "director", "AS", "t3", "ON", "t3", ".", "did", "=", "t2", ".", "did", "WHERE", "t1", ".", "name", "=", "``", "taraneh", "alidoosti", "''", "AND", "t3", ".", "name", "=", "``", "asghar", "farhadi", "''"], "query_toks_no_value": ["SELECT", "t4", ".", "title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5", ".", "aid", "=", "t1", ".", "aid", "JOIN", "movie", "AS", "t4", "ON", "t4", ".", "mid", "=", "t5", ".", "msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4", ".", "mid", "=", "t2", ".", "msid", "JOIN", "director", "AS", "t3", "ON", "t3", ".", "did", "=", "t2", ".", "did", "WHERE", "t1", ".", "name", "=", "value", "alidoosti", "AND", "t3", ".", "name", "=", "value", "farhadi"], "question": "How many movies are there that are directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \" ?", "question_toks": ["How", "many", "movies", "are", "there", "that", "are", "directed", "by", "\"", "Asghar", "Farhadi", "\"", "and", "featuring", "\"", "Taraneh", "Alidoosti", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1474", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_NOTHING"]}, {"id": "how_many_0149", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = \"king\"", "query_toks": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "``", "king", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "value"], "question": "What the sum of king beds are there?", "question_toks": ["What", "the", "sum", "of", "king", "beds", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"king\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2588", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0150", "db_id": "inn_1", "query": "select sum(maxoccupancy) from rooms where decor = \"modern\"", "query_toks": ["SELECT", "sum", "(", "maxOccupancy", ")", "FROM", "Rooms", "WHERE", "decor", "=", "``", "modern", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "maxOccupancy", ")", "FROM", "Rooms", "WHERE", "decor", "=", "value"], "question": "Count the people that can stay in the modern rooms of this inn?", "question_toks": ["Count", "the", "people", "that", "can", "stay", "in", "the", "modern", "rooms", "of", "this", "inn", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"modern\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2599", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0151", "db_id": "insurance_and_eClaims", "query": "select sum(t1.amount_claimed) from claim_headers as t1 join claims_documents as t2 on t1.claim_header_id = t2.claim_id where t2.created_date = (select created_date from claims_documents order by created_date limit 1)", "query_toks": ["SELECT", "sum", "(", "t1", ".", "amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "WHERE", "t2", ".", "created_date", "=", "(", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")"], "query_toks_no_value": ["SELECT", "sum", "(", "t1", ".", "amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "WHERE", "t2", ".", "created_date", "=", "value", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")"], "question": "What is the sum of amount claimed in the most recently created document?", "question_toks": ["What", "is", "the", "sum", "of", "amount", "claimed", "in", "the", "most", "recently", "created", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1518", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0152", "db_id": "manufacturer", "query": "select sum(num_of_component) from furniture", "query_toks": ["SELECT", "sum", "(", "num_of_component", ")", "FROM", "furniture"], "query_toks_no_value": ["SELECT", "sum", "(", "num_of_component", ")", "FROM", "furniture"], "question": "What is the sum of furniture components are there?", "question_toks": ["What", "is", "the", "sum", "of", "furniture", "components", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3389", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0153", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "College"], "query_toks_no_value": ["SELECT", "sum", "(", "enr", ")", "FROM", "College"], "question": "Count the number of students enrolled in college?", "question_toks": ["Count", "the", "number", "of", "students", "enrolled", "in", "college", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4945", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0154", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "query_toks_no_value": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "question": "Count the sum of tours that were there for each ranking date?", "question_toks": ["Count", "the", "sum", "of", "tours", "that", "were", "there", "for", "each", "ranking", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0480", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0155", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_buildings as t1 join apartments as t2 on t1.building_id = t2.building_id where t1.building_short_name = \"columbus square\"", "query_toks": ["SELECT", "sum", "(", "T2", ".", "room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "building_id", "=", "T2", ".", "building_id", "WHERE", "T1", ".", "building_short_name", "=", "``", "columbus", "square", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "T2", ".", "room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "building_id", "=", "T2", ".", "building_id", "WHERE", "T1", ".", "building_short_name", "=", "value", "square"], "question": "What is the sum of room counts are there in the apartments in the building with short name \"Columbus Square\"?", "question_toks": ["What", "is", "the", "sum", "of", "room", "counts", "are", "there", "in", "the", "apartments", "in", "the", "building", "with", "short", "name", "\"", "Columbus", "Square", "\"?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"columbus square\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1243", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0156", "db_id": "baseball_1", "query": "select sum(t1.attendance) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = \"boston red stockings\" and t1.year between 2000 and 2010", "query_toks": ["SELECT", "sum", "(", "T1", ".", "attendance", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "``", "boston", "red", "stockings", "''", "AND", "T1", ".", "year", "BETWEEN", "2000", "AND", "2010"], "query_toks_no_value": ["SELECT", "sum", "(", "T1", ".", "attendance", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "value", "red", "stockings", "AND", "T1", ".", "year", "BETWEEN", "2000", "AND", "2010"], "question": "What it the sum of games that did team Boston Red Stockings attend from 2000 to 2010?", "question_toks": ["What", "it", "the", "sum", "of", "games", "that", "did", "team", "Boston", "Red", "Stockings", "attend", "from", "2000", "to", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 161, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 2000.0, 2010.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3694", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0157", "db_id": "baseball_1", "query": "select sum(t1.salary) from salary as t1 join player as t2 on t1.player_id = t2.player_id where t2.name_first = \"len\" and t2.name_last = \"barker\" and t1.year between 1985 and 1990", "query_toks": ["SELECT", "sum", "(", "T1", ".", "salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1", ".", "player_id", "=", "T2", ".", "player_id", "WHERE", "T2", ".", "name_first", "=", "``", "len", "''", "AND", "T2", ".", "name_last", "=", "``", "barker", "''", "AND", "T1", ".", "year", "BETWEEN", "1985", "AND", "1990"], "query_toks_no_value": ["SELECT", "sum", "(", "T1", ".", "salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1", ".", "player_id", "=", "T2", ".", "player_id", "WHERE", "T2", ".", "name_first", "=", "value", "AND", "T2", ".", "name_last", "=", "value", "AND", "T1", ".", "year", "BETWEEN", "1985", "AND", "1990"], "question": "What is the sum of salary that the player with first name Len and last name Barker earn between 1985 to 1990 in total?", "question_toks": ["What", "is", "the", "sum", "of", "salary", "that", "the", "player", "with", "first", "name", "Len", "and", "last", "name", "Barker", "earn", "between", "1985", "to", "1990", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 20], ["table_unit", 16]], "conds": [[false, 2, [0, [0, 275, false], null], [0, 182, false], null]]}, "select": [false, [[4, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 195, false], null], "\"len\"", null], "and", [false, 2, [0, [0, 196, false], null], "\"barker\"", null], "and", [false, 1, [0, [0, 272, false], null], 1985.0, 1990.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3695", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0158", "db_id": "baseball_1", "query": "select sum(t1.games) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = \"boston red stockings\" and t1.year between 1990 and 2000", "query_toks": ["SELECT", "sum", "(", "T1", ".", "games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "``", "boston", "red", "stockings", "''", "AND", "T1", ".", "year", "BETWEEN", "1990", "AND", "2000"], "query_toks_no_value": ["SELECT", "sum", "(", "T1", ".", "games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "value", "red", "stockings", "AND", "T1", ".", "year", "BETWEEN", "1990", "AND", "2000"], "question": "The sum of games did the team Boston Red Stockings play from 1990 to 2000", "question_toks": ["The", "sum", "of", "games", "did", "the", "team", "Boston", "Red", "Stockings", "play", "from", "1990", "to", "2000"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 159, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 1990.0, 2000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3699", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0159", "db_id": "college_1", "query": "select sum(crs_credit) , dept_code from course group by dept_code", "query_toks": ["SELECT", "sum", "(", "crs_credit", ")", ",", "dept_code", "FROM", "course", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "sum", "(", "crs_credit", ")", ",", "dept_code", "FROM", "course", "GROUP", "BY", "dept_code"], "question": "Sum the credits that the department offer", "question_toks": ["Sum", "the", "credits", "that", "the", "department", "offer"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3202", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0160", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "What is the sum of hours do the students spend studying in each department?", "question_toks": ["What", "is", "the", "sum", "of", "hours", "do", "the", "students", "spend", "studying", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3220", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0161", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "query_toks_no_value": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "question": "What is the sum of credits are offered by each department?", "question_toks": ["What", "is", "the", "sum", "of", "credits", "are", "offered", "by", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1399", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0162", "db_id": "csu_1", "query": "select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus", "query_toks": ["SELECT", "T1", ".", "campus", ",", "sum", "(", "T2", ".", "degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", ">=", "1998", "AND", "T2", ".", "year", "<=", "2002", "GROUP", "BY", "T1", ".", "campus"], "query_toks_no_value": ["SELECT", "T1", ".", "campus", ",", "sum", "(", "T2", ".", "degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", ">=", "value", "AND", "T2", ".", "year", "<=", "value", "GROUP", "BY", "T1", ".", "campus"], "question": "What is the sum of degrees that were conferred between 1998 and 2002 in different campuses?", "question_toks": ["What", "is", "the", "sum", "of", "degrees", "that", "were", "conferred", "between", "1998", "and", "2002", "in", "different", "campuses", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 1998.0, null], "and", [false, 6, [0, [0, 9, false], null], 2002.0, null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_how_many_0162", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0163", "db_id": "csu_1", "query": "select sum(faculty) from faculty where year = 2002", "query_toks": ["SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "2002"], "query_toks_no_value": ["SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "value"], "question": "Sum of faculty in the year of 2002?", "question_toks": ["Sum", "of", "faculty", "in", "the", "year", "of", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2372", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0164", "db_id": "csu_1", "query": "select sum(faculty) from faculty where year = 2002", "query_toks": ["SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "2002"], "query_toks_no_value": ["SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "value"], "question": "What is the sum of faculties are there in the year 2002?", "question_toks": ["What", "is", "the", "sum", "of", "faculties", "are", "there", "in", "the", "year", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2373", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0165", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["SELECT", "sum", "(", "t1", ".", "undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "2004", "AND", "t2", ".", "campus", "=", "``", "san", "jose", "state", "university", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "t1", ".", "undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "value", "AND", "t2", ".", "campus", "=", "value", "jose", "state", "university"], "question": "Sum of undergraduates in \"San Jose State University\" in year 2004?", "question_toks": ["Sum", "of", "undergraduates", "in", "\"", "San", "Jose", "State", "University", "\"", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san jose state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2384", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0166", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["SELECT", "sum", "(", "t1", ".", "undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "2004", "AND", "t2", ".", "campus", "=", "``", "san", "jose", "state", "university", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "t1", ".", "undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "value", "AND", "t2", ".", "campus", "=", "value", "jose", "state", "university"], "question": "What is the sum undergraduate number are there at San Jose State", "question_toks": ["What", "is", "the", "sum", "undergraduate", "number", "are", "there", "at", "San", "Jose", "State"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san jose state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2385", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0167", "db_id": "csu_1", "query": "select sum(t1.graduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["SELECT", "sum", "(", "t1", ".", "graduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "2004", "AND", "t2", ".", "campus", "=", "``", "san", "francisco", "state", "university", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "t1", ".", "graduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1", ".", "campus", "=", "t2", ".", "id", "WHERE", "t1", ".", "year", "=", "value", "AND", "t2", ".", "campus", "=", "value", "francisco", "state", "university"], "question": "The sum of people number that graduated from San Francisco State University in 2004?", "question_toks": ["The", "sum", "of", "people", "number", "that", "graduated", "from", "San", "Francisco", "State", "University", "in", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"san francisco state university\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2387", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0168", "db_id": "driving_school", "query": "select sum(t1.amount_payment) from customer_payments as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.first_name = \"carole\" and t2.last_name = \"bernhard\"", "query_toks": ["SELECT", "sum", "(", "T1", ".", "amount_payment", ")", "FROM", "Customer_Payments", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "T2", ".", "first_name", "=", "``", "carole", "''", "AND", "T2", ".", "last_name", "=", "``", "bernhard", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "T1", ".", "amount_payment", ")", "FROM", "Customer_Payments", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "T2", ".", "first_name", "=", "value", "AND", "T2", ".", "last_name", "=", "value"], "question": "What is th sum of payment does customer with first name as Carole and last name as Bernhard paid?", "question_toks": ["What", "is", "th", "sum", "of", "payment", "does", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "paid", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"carole\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"bernhard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6690", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0169", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo"], "question": "What is the sum of games that are played for all students?", "question_toks": ["What", "is", "the", "sum", "of", "games", "that", "are", "played", "for", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6007", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0170", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = \"y\"", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "football", "''", "AND", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "value", "AND", "onscholarship", "=", "value"], "question": "Sum of games that are played for all football games by students on scholarship?", "question_toks": ["Sum", "of", "games", "that", "are", "played", "for", "all", "football", "games", "by", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6009", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0171", "db_id": "game_1", "query": "select stuid , count(*) , sum(gamesplayed) from sportsinfo group by stuid", "query_toks": ["SELECT", "StuID", ",", "count", "(*)", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "GROUP", "BY", "StuID"], "query_toks_no_value": ["SELECT", "StuID", ",", "count", "(*)", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "GROUP", "BY", "StuID"], "question": "What are the ids of all students along with number of sports and sum of games did they play?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "along", "with", "number", "of", "sports", "and", "sum", "of", "games", "did", "they", "play", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]], [4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6014", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "how_many_0172", "db_id": "geo", "query": "select sum ( area ) from state", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state"], "query_toks_no_value": ["SELECT", "SUM", "(", "area", ")", "FROM", "state"], "question": "What is the sum of area in the USA", "question_toks": ["What", "is", "the", "sum", "of", "area", "in", "the", "USA"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0322", "is_simplification": true, "simplifications_tags": ["HOW_MANY", "_HOW_MANY_SUM"]}, {"id": "aggregation_mono_0000", "db_id": "wta_1", "query": "select avg(loser_age) from matches;", "query_toks": ["SELECT", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "FROM", "matches"], "query_toks_no_value": ["SELECT", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "FROM", "matches"], "question": "Find the average age of losers of all matches.", "question_toks": ["Find", "the", "average", "age", "of", "losers", "of", "all", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0435", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0001", "db_id": "wta_1", "query": "select avg(winner_age) from matches", "query_toks": ["SELECT", "avg", "(", "winner_age", ")", "FROM", "matches"], "query_toks_no_value": ["SELECT", "avg", "(", "winner_age", ")", "FROM", "matches"], "question": "What are the average ages of winners across matches?", "question_toks": ["What", "are", "the", "average", "ages", "of", "winners", "across", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0436", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0002", "db_id": "tvshow", "query": "select count(distinct series_name) from tv_channel", "query_toks": ["SELECT", "count", "(", "DISTINCT", "series_name", ")", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "series_name", ")", "FROM", "TV_Channel"], "question": "List the number of different series names in the TV Channel table.", "question_toks": ["List", "the", "number", "of", "different", "series", "names", "in", "the", "TV", "Channel", "table", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0597", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0003", "db_id": "tvshow", "query": "select count(distinct content) from tv_channel", "query_toks": ["SELECT", "count", "(", "DISTINCT", "content", ")", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "content", ")", "FROM", "TV_Channel"], "question": "How many different contents are listed in the TV Channel table?", "question_toks": ["How", "many", "different", "contents", "are", "listed", "in", "the", "TV", "Channel", "table", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0598", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0004", "db_id": "bike_1", "query": "select avg(lat) from station where city = \"san jose\"", "query_toks": ["SELECT", "avg", "(", "lat", ")", "FROM", "station", "WHERE", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "lat", ")", "FROM", "station", "WHERE", "city", "=", "value", "jose"], "question": "What is the average latitude of stations located in San Jose city?", "question_toks": ["What", "is", "the", "average", "latitude", "of", "stations", "located", "in", "San", "Jose", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0117", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0005", "db_id": "bike_1", "query": "select avg(long) from station where city = \"san jose\"", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "value", "jose"], "question": "What is the average longitude in San Jose?", "question_toks": ["What", "is", "the", "average", "longitude", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0118", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0006", "db_id": "bike_1", "query": "select avg(t1.lat) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["SELECT", "avg", "(", "T1", ".", "lat", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "lat", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id"], "question": "What is the average latitude of the starting points of all trips?", "question_toks": ["What", "is", "the", "average", "latitude", "of", "the", "starting", "points", "of", "all", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0211", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0007", "db_id": "bike_1", "query": "select avg(long) from station where id in (select start_station_id from trip);", "query_toks": ["SELECT", "avg", "(", "T1", ".", "long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id"], "question": "What is the average longitude of all starting stations for the trips?", "question_toks": ["What", "is", "the", "average", "longitude", "of", "all", "starting", "stations", "for", "the", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0212", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0008", "db_id": "coffee_shop", "query": "select avg(score) from shop", "query_toks": ["SELECT", "avg", "(", "score", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "avg", "(", "score", ")", "FROM", "shop"], "question": "What is the average score of all shops?", "question_toks": ["What", "is", "the", "average", "score", "of", "all", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0008", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0009", "db_id": "coffee_shop", "query": "select avg(num_of_staff) from shop", "query_toks": ["SELECT", "avg", "(", "num_of_staff", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "avg", "(", "num_of_staff", ")", "FROM", "shop"], "question": "What is the average staff number of all shops?", "question_toks": ["What", "is", "the", "average", "staff", "number", "of", "all", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0009", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0010", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "query_toks_no_value": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "question": "Return the maximum support rate, minimum consider rate and oppose rate across all candidates?", "question_toks": ["Return", "the", "maximum", "support", "rate", ",", "minimum", "consider", "rate", "and", "oppose", "rate", "across", "all", "candidates", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0010", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0011", "db_id": "storm_record", "query": "select sum(number_deaths) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["SELECT", "sum", "(", "number_deaths", ")", "FROM", "storm", "WHERE", "max_speed", ">", "(", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "query_toks_no_value": ["SELECT", "sum", "(", "number_deaths", ")", "FROM", "storm", "WHERE", "max_speed", ">", "value", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "question": "Return the total number of deaths that had a max speed greater than the average.", "question_toks": ["Return", "the", "total", "number", "of", "deaths", "that", "had", "a", "max", "speed", "greater", "than", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0011", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0012", "db_id": "music_1", "query": "select min(t1.duration), t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["SELECT", "min", "(", "T1", ".", "duration", "),", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "query_toks_no_value": ["SELECT", "min", "(", "T1", ".", "duration", "),", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "question": "What is the minimal duration grouped by genre and ordered by genre?", "question_toks": ["What", "is", "the", "minimal", "duration", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0012", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0013", "db_id": "flight_1", "query": "select avg(price) from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "value", "angeles"], "question": "What is the average price for all flights from LA?", "question_toks": ["What", "is", "the", "average", "price", "for", "all", "flights", "from", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0402", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0014", "db_id": "college_2", "query": "select count(distinct t2.id), t3.dept_name from department as t1 join student as t2 on t1.dept_name = t2.dept_name join instructor as t3 on t1.dept_name = t3.dept_name group by t3.dept_name", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "id", "),", "T3", ".", "dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1", ".", "dept_name", "=", "T2", ".", "dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1", ".", "dept_name", "=", "T3", ".", "dept_name", "GROUP", "BY", "T3", ".", "dept_name"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "id", "),", "T3", ".", "dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1", ".", "dept_name", "=", "T2", ".", "dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1", ".", "dept_name", "=", "T3", ".", "dept_name", "GROUP", "BY", "T3", ".", "dept_name"], "question": "How many students are in each department?", "question_toks": ["How", "many", "students", "are", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 13, false], null]]}, "select": [false, [[3, [0, [0, 27, true], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1455", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0015", "db_id": "candidate_poll", "query": "select avg(height) from people where sex = \"m\"", "query_toks": ["SELECT", "avg", "(", "height", ")", "FROM", "people", "WHERE", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "height", ")", "FROM", "people", "WHERE", "sex", "=", "value"], "question": "Find the average height for all males (sex is M).", "question_toks": ["Find", "the", "average", "height", "for", "all", "males", "(", "sex", "is", "M", ")."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2408", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0016", "db_id": "candidate_poll", "query": "select avg(weight) from people where sex = \"m\"", "query_toks": ["SELECT", "avg", "(", "weight", ")", "FROM", "people", "WHERE", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "weight", ")", "FROM", "people", "WHERE", "sex", "=", "value"], "question": "What are the average weight across males (sex is M)?", "question_toks": ["What", "are", "the", "average", "weight", "across", "males", "(", "sex", "is", "M", ")?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2409", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0017", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) from candidate", "query_toks": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", "FROM", "candidate"], "query_toks_no_value": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", "FROM", "candidate"], "question": "find the highest support percentage and lowest consider rate of all candidates.", "question_toks": ["find", "the", "highest", "support", "percentage", "and", "lowest", "consider", "rate", "of", "all", "candidates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2426", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0018", "db_id": "storm_record", "query": "select sum(number_deaths) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["SELECT", "sum", "(", "number_deaths", ")", "FROM", "storm", "WHERE", "max_speed", ">", "(", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "query_toks_no_value": ["SELECT", "sum", "(", "number_deaths", ")", "FROM", "storm", "WHERE", "max_speed", ">", "value", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "question": "What is the total number of deaths for all storms with a max speed greater than the average?", "question_toks": ["What", "is", "the", "total", "number", "of", "deaths", "for", "all", "storms", "with", "a", "max", "speed", "greater", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2704", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0019", "db_id": "news_report", "query": "select avg(t1.age), t2.work_type from journalist as t1 join news_report as t2 on t1.journalist_id = t2.journalist_id group by t2.work_type", "query_toks": ["SELECT", "avg", "(", "t1", ".", "age", "),", "t2", ".", "work_type", "FROM", "journalist", "AS", "t1", "JOIN", "news_report", "AS", "t2", "ON", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "GROUP", "BY", "t2", ".", "work_type"], "query_toks_no_value": ["SELECT", "avg", "(", "t1", ".", "age", "),", "t2", ".", "work_type", "FROM", "journalist", "AS", "t1", "JOIN", "news_report", "AS", "t2", "ON", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "GROUP", "BY", "t2", ".", "work_type"], "question": "Find the average age on different role type.", "question_toks": ["Find", "the", "average", "age", "on", "different", "role", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2818", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0020", "db_id": "news_report", "query": "select avg(years_working) , t2.work_type from journalist as t1 join news_report as t2 on t1.journalist_id = t2.journalist_id group by t2.work_type", "query_toks": ["SELECT", "avg", "(", "Years_working", ")", ",", "t2", ".", "work_type", "FROM", "journalist", "AS", "t1", "JOIN", "news_report", "AS", "t2", "ON", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "GROUP", "BY", "t2", ".", "work_type"], "query_toks_no_value": ["SELECT", "avg", "(", "Years_working", ")", ",", "t2", ".", "work_type", "FROM", "journalist", "AS", "t1", "JOIN", "news_report", "AS", "t2", "ON", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "GROUP", "BY", "t2", ".", "work_type"], "question": "What is the average experience working length of journalists working on different role type.", "question_toks": ["What", "is", "the", "average", "experience", "working", "length", "of", "journalists", "working", "on", "different", "role", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[5, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_mono_0020", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0021", "db_id": "music_1", "query": "select avg(rating) from song where languages = \"bangla\"", "query_toks": ["SELECT", "avg", "(", "rating", ")", "FROM", "song", "WHERE", "languages", "=", "``", "bangla", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "rating", ")", "FROM", "song", "WHERE", "languages", "=", "value"], "question": "What is the average rating of songs that are in Bangla?", "question_toks": ["What", "is", "the", "average", "rating", "of", "songs", "that", "are", "in", "Bangla", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"bangla\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3597", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0022", "db_id": "music_1", "query": "select avg(resolution) from song where languages = \"bangla\"", "query_toks": ["SELECT", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "bangla", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "value"], "question": "What is the average resolution of all bangla songs?", "question_toks": ["What", "is", "the", "average", "resolution", "of", "all", "bangla", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"bangla\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3598", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0023", "db_id": "music_1", "query": "select max(t1.duration), t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages", "query_toks": ["SELECT", "max", "(", "T1", ".", "duration", "),", "T2", ".", "languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "languages", "ORDER", "BY", "T2", ".", "languages"], "query_toks_no_value": ["SELECT", "max", "(", "T1", ".", "duration", "),", "T2", ".", "languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "languages", "ORDER", "BY", "T2", ".", "languages"], "question": "What is the maximum duration of songs grouped and ordered by languages?", "question_toks": ["What", "is", "the", "maximum", "duration", "of", "songs", "grouped", "and", "ordered", "by", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 11, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3601", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0024", "db_id": "music_1", "query": "select max(t2.resolution) , t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages", "query_toks": ["SELECT", "max", "(", "T2", ".", "resolution", ")", ",", "T2", ".", "languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "languages", "ORDER", "BY", "T2", ".", "languages"], "query_toks_no_value": ["SELECT", "max", "(", "T2", ".", "resolution", ")", ",", "T2", ".", "languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "languages", "ORDER", "BY", "T2", ".", "languages"], "question": "What is the maximum resolution of all songs, for each language, ordered alphabetically by language?", "question_toks": ["What", "is", "the", "maximum", "resolution", "of", "all", "songs", ",", "for", "each", "language", ",", "ordered", "alphabetically", "by", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3602", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0025", "db_id": "department_store", "query": "select avg(total_amount_purchased) from product_suppliers where supplier_id = (select supplier_id from product_suppliers group by supplier_id order by count(*) desc limit 1)", "query_toks": ["SELECT", "avg", "(", "total_amount_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "(", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["SELECT", "avg", "(", "total_amount_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "value", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1", ")"], "question": "What is the average amount purchased for the supplier who supplies the most products.", "question_toks": ["What", "is", "the", "average", "amount", "purchased", "for", "the", "supplier", "who", "supplies", "the", "most", "products", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[5, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 47, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]]]], "where": [], "groupBy": [[0, 47, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4773", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0026", "db_id": "department_store", "query": "select avg(total_value_purchased) from product_suppliers where supplier_id = (select supplier_id from product_suppliers group by supplier_id order by count(*) desc limit 1)", "query_toks": ["SELECT", "avg", "(", "total_value_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "(", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["SELECT", "avg", "(", "total_value_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "value", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1", ")"], "question": "Return the average total value purchased for the supplier who supplies the greatest number of products.", "question_toks": ["Return", "the", "average", "total", "value", "purchased", "for", "the", "supplier", "who", "supplies", "the", "greatest", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[5, [0, [0, 51, false], null]]]], "where": [[false, 2, [0, [0, 47, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]]]], "where": [], "groupBy": [[0, 47, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4774", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0027", "db_id": "dorm_1", "query": "select count(distinct major) from student", "query_toks": ["SELECT", "count", "(", "DISTINCT", "major", ")", "FROM", "student"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "major", ")", "FROM", "student"], "question": "Find the numbers of different majors.", "question_toks": ["Find", "the", "numbers", "of", "different", "majors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5700", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0028", "db_id": "game_1", "query": "select sum(hoursperweek) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "Fname", "=", "``", "david", "''", "AND", "T2", ".", "Lname", "=", "``", "shieber", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "hoursperweek", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "Fname", "=", "value", "AND", "T2", ".", "Lname", "=", "value"], "question": "Show total hours per week played for student David Shieber.", "question_toks": ["Show", "total", "hours", "per", "week", "played", "for", "student", "David", "Shieber", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6029", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0029", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "Fname", "=", "``", "david", "''", "AND", "T2", ".", "Lname", "=", "``", "shieber", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "Fname", "=", "value", "AND", "T2", ".", "Lname", "=", "value"], "question": "What is the total number of games played by David Shieber?", "question_toks": ["What", "is", "the", "total", "number", "of", "games", "played", "by", "David", "Shieber", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"david\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6030", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0030", "db_id": "game_1", "query": "select sum(hoursperweek) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "age", "<", "20"], "query_toks_no_value": ["SELECT", "sum", "(", "hoursperweek", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "age", "<", "value"], "question": "Show total hours per week played for students under 20.", "question_toks": ["Show", "total", "hours", "per", "week", "played", "for", "students", "under", "20", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6031", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0031", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "age", "<", "20"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "age", "<", "value"], "question": "What is the total number of number of games played by students under 20?", "question_toks": ["What", "is", "the", "total", "number", "of", "number", "of", "games", "played", "by", "students", "under", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6032", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0032", "db_id": "wine_1", "query": "select avg(price) from wine where year = 2009 and grape = \"zinfandel\"", "query_toks": ["SELECT", "AVG", "(", "Price", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2009", "AND", "Grape", "=", "``", "zinfandel", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "Price", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "value", "AND", "Grape", "=", "value"], "question": "What are the average prices of wines produced in the year of 2009 and made of Zinfandel grape?", "question_toks": ["What", "are", "the", "average", "prices", "of", "wines", "produced", "in", "the", "year", "of", "2009", "and", "made", "of", "Zinfandel", "grape", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2009.0, null], "and", [false, 2, [0, [0, 11, false], null], "\"zinfandel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6571", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0033", "db_id": "wine_1", "query": "select avg(cases) from wine where year = 2009 and grape = \"zinfandel\"", "query_toks": ["SELECT", "AVG", "(", "Cases", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2009", "AND", "Grape", "=", "``", "zinfandel", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "Cases", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "value", "AND", "Grape", "=", "value"], "question": "Give the average case of wines made from Zinfandel grapes in the year 2009.", "question_toks": ["Give", "the", "average", "case", "of", "wines", "made", "from", "Zinfandel", "grapes", "in", "the", "year", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2009.0, null], "and", [false, 2, [0, [0, 11, false], null], "\"zinfandel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6572", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0034", "db_id": "wine_1", "query": "select max(score) from wine where appelation = \"st. helena\"", "query_toks": ["SELECT", "max", "(", "Score", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "``", "st", ".", "helena", "''"], "query_toks_no_value": ["SELECT", "max", "(", "Score", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "value", ".", "helena"], "question": "What is the maximum score of wines produced by St. Helena appelation?", "question_toks": ["What", "is", "the", "maximum", "score", "of", "wines", "produced", "by", "St", ".", "Helena", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"st. helena\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6573", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0035", "db_id": "wine_1", "query": "select max(price) from wine where appelation = \"st. helena\"", "query_toks": ["SELECT", "max", "(", "Price", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "``", "st", ".", "helena", "''"], "query_toks_no_value": ["SELECT", "max", "(", "Price", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "value", ".", "helena"], "question": "Give the maximum price for wines produced in the appelation St. Helena.", "question_toks": ["Give", "the", "maximum", "price", "for", "wines", "produced", "in", "the", "appelation", "St", ".", "Helena", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"st. helena\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6574", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0036", "db_id": "wine_1", "query": "select max(score) , year from wine group by year", "query_toks": ["SELECT", "max", "(", "Score", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["SELECT", "max", "(", "Score", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR"], "question": "What is the maximum score of wines in each year?", "question_toks": ["What", "is", "the", "maximum", "score", "of", "wines", "in", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6575", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0037", "db_id": "wine_1", "query": "select max(price) year from wine group by year", "query_toks": ["SELECT", "max", "(", "Price", ")", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["SELECT", "max", "(", "Price", ")", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR"], "question": "What is the maximum price of wines for each year?", "question_toks": ["What", "is", "the", "maximum", "price", "of", "wines", "for", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6576", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0038", "db_id": "wine_1", "query": "select avg(price), appelation from wine group by appelation", "query_toks": ["SELECT", "avg", "(", "Price", "),", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation"], "query_toks_no_value": ["SELECT", "avg", "(", "Price", "),", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation"], "question": "What is the average price of wines grouped by appelation?", "question_toks": ["What", "is", "the", "average", "price", "of", "wines", "grouped", "by", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6577", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0039", "db_id": "wine_1", "query": "select avg(score) , appelation from wine group by appelation", "query_toks": ["SELECT", "avg", "(", "Score", ")", ",", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation"], "query_toks_no_value": ["SELECT", "avg", "(", "Score", ")", ",", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation"], "question": "What is the average score of wines for each appelation?", "question_toks": ["What", "is", "the", "average", "score", "of", "wines", "for", "each", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 18, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6578", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0040", "db_id": "train_station", "query": "select location , sum(number_of_platforms) from station group by location", "query_toks": ["SELECT", "LOCATION", ",", "sum", "(", "number_of_platforms", ")", "FROM", "station", "GROUP", "BY", "LOCATION"], "query_toks_no_value": ["SELECT", "LOCATION", ",", "sum", "(", "number_of_platforms", ")", "FROM", "station", "GROUP", "BY", "LOCATION"], "question": "Show all locations and the total number of platforms for all train stations in each location.", "question_toks": ["Show", "all", "locations", "and", "the", "total", "number", "of", "platforms", "for", "all", "train", "stations", "in", "each", "location", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [4, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6605", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "aggregation_mono_0041", "db_id": "movie_1", "query": "select max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["SELECT", "max", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["SELECT", "max", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "question": "What is the maximum stars for the most recent movie?", "question_toks": ["What", "is", "the", "maximum", "stars", "for", "the", "most", "recent", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2466", "is_simplification": true, "simplifications_tags": ["AGGREGATION_MONO"]}, {"id": "synonyms_0000", "db_id": "company_1", "query": "select count(*) , sex from employee where salary < 50000 group by sex", "query_toks": ["SELECT", "count", "(*)", ",", "sex", "FROM", "employee", "WHERE", "salary", "<", "50000", "GROUP", "BY", "sex"], "query_toks_no_value": ["SELECT", "count", "(*)", ",", "sex", "FROM", "employee", "WHERE", "salary", "<", "value", "GROUP", "BY", "sex"], "question": "Find the number of employees of each sex whose salary is lower than 50000.", "question_toks": ["Find", "the", "number", "of", "employees", "of", "each", "sex", "whose", "salary", "is", "lower", "than", "50000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 11, false], null], 50000.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2136", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0001", "db_id": "formula_1", "query": "select t1.driverid , t1.forename , t1.surname from drivers as t1 join laptimes as t2 on t1.driverid = t2.driverid where position = \"1\" group by t1.driverid having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "driverid", ",", "T1", ".", "forename", ",", "T1", ".", "surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "WHERE", "POSITION", "=", "``", "1", "''", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "driverid", ",", "T1", ".", "forename", ",", "T1", ".", "surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "WHERE", "POSITION", "=", "value", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">=", "value"], "question": "What is the id, forename, and surname of the driver who was in the first position for laptime at least twice?", "question_toks": ["What", "is", "the", "id", ",", "forename", ",", "and", "surname", "of", "the", "driver", "who", "was", "in", "the", "first", "position", "for", "laptime", "at", "least", "twice", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 90, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 92, false], null], "\"1\"", null]], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2170", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0002", "db_id": "formula_1", "query": "select distinct forename from drivers order by forename asc", "query_toks": ["SELECT", "DISTINCT", "forename", "FROM", "drivers", "ORDER", "BY", "forename", "ASC"], "query_toks_no_value": ["SELECT", "DISTINCT", "forename", "FROM", "drivers", "ORDER", "BY", "forename", "ASC"], "question": "What are the forenames of all the different drivers in alphabetical order?", "question_toks": ["What", "are", "the", "forenames", "of", "all", "the", "different", "drivers", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2200", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0003", "db_id": "candidate_poll", "query": "select avg(weight) , min(weight) , sex from people group by sex", "query_toks": ["SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "query_toks_no_value": ["SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "question": "Find the average and minimum weight for each sex.", "question_toks": ["Find", "the", "average", "and", "minimum", "weight", "for", "each", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2412", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0004", "db_id": "sakila_1", "query": "select t2.title , t2.film_id , t2.description from film_actor as t1 join film as t2 on t1.film_id = t2.film_id group by t2.film_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2", ".", "title", ",", "T2", ".", "film_id", ",", "T2", ".", "description", "FROM", "film_actor", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1", ".", "film_id", "=", "T2", ".", "film_id", "GROUP", "BY", "T2", ".", "film_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "title", ",", "T2", ".", "film_id", ",", "T2", ".", "description", "FROM", "film_actor", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1", ".", "film_id", "=", "T2", ".", "film_id", "GROUP", "BY", "T2", ".", "film_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Which film has the most number of actors or actresses? List the film title, film id and description.", "question_toks": ["Which", "film", "has", "the", "most", "number", "of", "actors", "or", "actresses", "?", "List", "the", "film", "title", ",", "film", "id", "and", "description", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 32, false], null]], [0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2950", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0005", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name , t2.actor_id from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2", ".", "first_name", ",", "T2", ".", "last_name", ",", "T2", ".", "actor_id", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1", ".", "actor_id", "=", "T2", ".", "actor_id", "GROUP", "BY", "T2", ".", "actor_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "first_name", ",", "T2", ".", "last_name", ",", "T2", ".", "actor_id", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1", ".", "actor_id", "=", "T2", ".", "actor_id", "GROUP", "BY", "T2", ".", "actor_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Return the firat name, last name and id of the actor or actress who starred in the greatest number of films.", "question_toks": ["Return", "the", "firat", "name", ",", "last", "name", "and", "id", "of", "the", "actor", "or", "actress", "who", "starred", "in", "the", "greatest", "number", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2953", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0006", "db_id": "baseball_1", "query": "select t1.name_first , t1.name_last , t1.player_id from player as t1 join player_award as t2 on t1.player_id = t2.player_id group by t1.player_id order by count(*) desc limit 3", "query_toks": ["SELECT", "T1", ".", "name_first", ",", "T1", ".", "name_last", ",", "T1", ".", "player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1", ".", "player_id", "=", "T2", ".", "player_id", "GROUP", "BY", "T1", ".", "player_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "3"], "query_toks_no_value": ["SELECT", "T1", ".", "name_first", ",", "T1", ".", "name_last", ",", "T1", ".", "player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1", ".", "player_id", "=", "T2", ".", "player_id", "GROUP", "BY", "T1", ".", "player_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "3"], "question": "Which 3 players won the most player awards? List their names first, names last and id.", "question_toks": ["Which", "3", "players", "won", "the", "most", "player", "awards", "?", "List", "their", "names", "first", ",", "names", "last", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 16], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 182, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [[0, 182, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3647", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0007", "db_id": "college_3", "query": "select t2.fname , t2.lname from course as t1 join faculty as t2 on t1.instructor = t2.facid group by t1.instructor order by count(*) desc limit 3", "query_toks": ["SELECT", "T2", ".", "Fname", ",", "T2", ".", "Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1", ".", "Instructor", "=", "T2", ".", "FacID", "GROUP", "BY", "T1", ".", "Instructor", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "3"], "query_toks_no_value": ["SELECT", "T2", ".", "Fname", ",", "T2", ".", "Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1", ".", "Instructor", "=", "T2", ".", "FacID", "GROUP", "BY", "T1", ".", "Instructor", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "3"], "question": "What are the fnames and lnames of the 3 instructors who teach the most courses?", "question_toks": ["What", "are", "the", "fnames", "and", "lnames", "of", "the", "3", "instructors", "who", "teach", "the", "most", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4680", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0008", "db_id": "flight_4", "query": "select name , city , country , elevation from airports where city = \"new york\"", "query_toks": ["SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "``", "new", "york", "''"], "query_toks_no_value": ["SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "value", "york"], "question": "Find the name, city, country, and elevation of the airports in the city of New York.", "question_toks": ["Find", "the", "name", ",", "city", ",", "country", ",", "and", "elevation", "of", "the", "airports", "in", "the", "city", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6805", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0009", "db_id": "apartment_rentals", "query": "select avg(bedroom_count) from apartments", "query_toks": ["SELECT", "avg", "(", "bedroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["SELECT", "avg", "(", "bedroom_count", ")", "FROM", "Apartments"], "question": "Find the average bedroom count of all the apartments.", "question_toks": ["Find", "the", "average", "bedroom", "count", "of", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1209", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0010", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "query_toks_no_value": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "question": "Show the title and directed by for all films.", "question_toks": ["Show", "the", "title", "and", "directed", "by", "for", "all", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1945", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0011", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "query_toks_no_value": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "question": "What are the title and directed by of each film?", "question_toks": ["What", "are", "the", "title", "and", "directed", "by", "of", "each", "film", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1946", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0012", "db_id": "cinema", "query": "select distinct directed_by from film", "query_toks": ["SELECT", "DISTINCT", "directed_by", "FROM", "film"], "query_toks_no_value": ["SELECT", "DISTINCT", "directed_by", "FROM", "film"], "question": "Show all directed by.", "question_toks": ["Show", "all", "directed", "by", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1947", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0013", "db_id": "movie_1", "query": "select max(t1.stars) , t2.year from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["SELECT", "max", "(", "T1", ".", "stars", ")", ",", "T2", ".", "year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["SELECT", "max", "(", "T1", ".", "stars", ")", ",", "T2", ".", "year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "year", "=", "value", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "question": "What is maximum stars and year for the movie with maximum year?", "question_toks": ["What", "is", "maximum", "stars", "and", "year", "for", "the", "movie", "with", "maximum", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2467", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0014", "db_id": "customers_and_addresses", "query": "select avg(active_to_date - active_from_date) from customer_contact_channels", "query_toks": ["SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels"], "query_toks_no_value": ["SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels"], "question": "What is the average difference between active_to_date and active_from_date of contact channels in the database?", "question_toks": ["What", "is", "the", "average", "difference", "between", "active_to_date", "and", "active_from_date", "of", "contact", "channels", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6101", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0015", "db_id": "customers_and_addresses", "query": "select avg(active_to_date - active_from_date) from customer_contact_channels", "query_toks": ["SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels"], "query_toks_no_value": ["SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels"], "question": "Compute the average difference between active_to_date and active_from_date of contact channels.", "question_toks": ["Compute", "the", "average", "difference", "between", "active_to_date", "and", "active_from_date", "of", "contact", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6102", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0016", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels where active_to_date - active_from_date = (select active_to_date - active_from_date from customer_contact_channels order by (active_to_date - active_from_date) desc limit 1)", "query_toks": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "(", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "value", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")"], "question": "What is the channel code and contact number of the customer contact channel that was active for the biggest difference between active_to_date and active_from_date?", "question_toks": ["What", "is", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "that", "was", "active", "for", "the", "biggest", "difference", "between", "active_to_date", "and", "active_from_date", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [1, [0, 23, false], [0, 22, false]], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[1, [0, 23, false], [0, 22, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6103", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0017", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels where active_to_date - active_from_date = (select active_to_date - active_from_date from customer_contact_channels order by (active_to_date - active_from_date) desc limit 1)", "query_toks": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "(", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "value", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")"], "question": "Return the channel code and contact number of the customer contact channel whose difference between active_to_date and active_from_date was the biggest.", "question_toks": ["Return", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "whose", "difference", "between", "active_to_date", "and", "active_from_date", "was", "the", "biggest", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [1, [0, 23, false], [0, 22, false]], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[1, [0, 23, false], [0, 22, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6104", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0018", "db_id": "store_1", "query": "select unit_price from tracks where name = \"fast as a shark\"", "query_toks": ["SELECT", "unit_price", "FROM", "tracks", "WHERE", "name", "=", "``", "fast", "as", "a", "shark", "''"], "query_toks_no_value": ["SELECT", "unit_price", "FROM", "tracks", "WHERE", "name", "=", "value", "as", "a", "shark"], "question": "How much is the unit_price for track Fast As a Shark?", "question_toks": ["How", "much", "is", "the", "unit_price", "for", "track", "Fast", "As", "a", "Shark", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [[false, 2, [0, [0, 50, false], null], "\"fast as a shark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0641", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0019", "db_id": "formula_1", "query": "select distinct t1.forename from drivers as t1 join driverstandings as t2 on t1.driverid = t2.driverid where t2.position = 1 and t2.wins = 1", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "forename", "FROM", "drivers", "AS", "T1", "JOIN", "driverstandings", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "WHERE", "T2", ".", "position", "=", "1", "AND", "T2", ".", "wins", "=", "1"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "forename", "FROM", "drivers", "AS", "T1", "JOIN", "driverstandings", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "WHERE", "T2", ".", "position", "=", "value", "AND", "T2", ".", "wins", "=", "value"], "question": "What are all the different forenames of the drivers who are in position 1 and wins is equal to 1?", "question_toks": ["What", "are", "all", "the", "different", "forenames", "of", "the", "drivers", "who", "are", "in", "position", "1", "and", "wins", "is", "equal", "to", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 63, false], null]]}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 65, false], null], 1.0, null], "and", [false, 2, [0, [0, 67, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2184", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0020", "db_id": "department_store", "query": "select t1.staff_id , t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id order by date_assigned_to - date_assigned_from limit 1", "query_toks": ["SELECT", "T1", ".", "staff_id", ",", "T1", ".", "staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "staff_id", ",", "T1", ".", "staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1"], "question": "Find the id and name of the staff who has been assigned for the smallest difference between date_assigned_to and date_assigned_from.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "smallest", "difference", "between", "date_assigned_to", "and", "date_assigned_from", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 56, false], [0, 54, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4749", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0021", "db_id": "department_store", "query": "select t1.staff_id , t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id order by date_assigned_to - date_assigned_from limit 1", "query_toks": ["SELECT", "T1", ".", "staff_id", ",", "T1", ".", "staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "staff_id", ",", "T1", ".", "staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1"], "question": "What is the id and name of the staff who has been assigned for the smallest difference between date_assigned_to and date_assigned_from?", "question_toks": ["What", "is", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "smallest", "difference", "between", "date_assigned_to", "and", "date_assigned_from", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 56, false], [0, 54, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4750", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0022", "db_id": "department_management", "query": "select avg(num_employees) from department where ranking between 10 and 15", "query_toks": ["SELECT", "avg", "(", "num_employees", ")", "FROM", "department", "WHERE", "ranking", "BETWEEN", "10", "AND", "15"], "query_toks_no_value": ["SELECT", "avg", "(", "num_employees", ")", "FROM", "department", "WHERE", "ranking", "BETWEEN", "10", "AND", "15"], "question": "What is the average num employees of the departments whose rank is between 10 and 15?", "question_toks": ["What", "is", "the", "average", "num", "employees", "of", "the", "departments", "whose", "rank", "is", "between", "10", "and", "15", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 10.0, 15.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0004", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0023", "db_id": "bike_1", "query": "select name from station where lat < 37.5", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "37", ".", "5"], "query_toks_no_value": ["SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "value", ".", "5"], "question": "What are the names of stations that have lat lower than 37.5?", "question_toks": ["What", "are", "the", "names", "of", "stations", "that", "have", "lat", "lower", "than", "37", ".", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 37.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0111", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0024", "db_id": "bike_1", "query": "select name from station where lat < 37.5", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "37", ".", "5"], "query_toks_no_value": ["SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "value", ".", "5"], "question": "What are the names of all stations with a lat smaller than 37.5?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "with", "a", "lat", "smaller", "than", "37", ".", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 37.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0112", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0025", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "question": "For each city, return the highest lat among its stations.", "question_toks": ["For", "each", "city", ",", "return", "the", "highest", "lat", "among", "its", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0113", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0026", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "question": "For each city, what is the highest lat for its stations?", "question_toks": ["For", "each", "city", ",", "what", "is", "the", "highest", "lat", "for", "its", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0114", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0027", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station where city = \"san jose\"", "query_toks": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "value", "jose"], "question": "What is the average lat and long of stations located in San Jose city?", "question_toks": ["What", "is", "the", "average", "lat", "and", "long", "of", "stations", "located", "in", "San", "Jose", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0117", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0028", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station where city = \"san jose\"", "query_toks": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "value", "jose"], "question": "What is the average lat and long in San Jose?", "question_toks": ["What", "is", "the", "average", "lat", "and", "long", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0118", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0029", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37", ".", "4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "value", ".", "4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of stations that have lat above 37.4 and never had bike availability below 7?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "have", "lat", "above", "37", ".", "4", "and", "never", "had", "bike", "availability", "below", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0169", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0030", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37", ".", "4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "value", ".", "4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of all stations that have a lat above 37.4 and have never had less than 7 bikes available?", "question_toks": ["What", "are", "the", "ids", "of", "all", "stations", "that", "have", "a", "lat", "above", "37", ".", "4", "and", "have", "never", "had", "less", "than", "7", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0170", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0031", "db_id": "bike_1", "query": "select avg(t1.lat) , avg(t1.long) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["SELECT", "avg", "(", "T1", ".", "lat", ")", ",", "avg", "(", "T1", ".", "long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "lat", ")", ",", "avg", "(", "T1", ".", "long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id"], "question": "What is the average lat and long of the starting points of all trips?", "question_toks": ["What", "is", "the", "average", "lat", "and", "long", "of", "the", "starting", "points", "of", "all", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0211", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0032", "db_id": "bike_1", "query": "select avg(t1.lat) , avg(t1.long) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["SELECT", "avg", "(", "T1", ".", "lat", ")", ",", "avg", "(", "T1", ".", "long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "lat", ")", ",", "avg", "(", "T1", ".", "long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id"], "question": "What is the average lat and long of all starting stations for the trips?", "question_toks": ["What", "is", "the", "average", "lat", "and", "long", "of", "all", "starting", "stations", "for", "the", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0212", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0033", "db_id": "flight_1", "query": "select eid from employee where salary > 100000", "query_toks": ["SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "100000"], "query_toks_no_value": ["SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "value"], "question": "Show eid for all employees with at least 100000 salary.", "question_toks": ["Show", "eid", "for", "all", "employees", "with", "at", "least", "100000", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 100000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0365", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "synonyms_0034", "db_id": "flight_1", "query": "select eid from employee where salary > 100000", "query_toks": ["SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "100000"], "query_toks_no_value": ["SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "value"], "question": "What is the eid of every employee who has at least a salary of 100000?", "question_toks": ["What", "is", "the", "eid", "of", "every", "employee", "who", "has", "at", "least", "a", "salary", "of", "100000", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 100000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0366", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "synonyms_0035", "db_id": "flight_1", "query": "select flno , origin , destination from flight order by origin", "query_toks": ["SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin"], "query_toks_no_value": ["SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin"], "question": "Show flno, origin, destination of all flights in the alphabetical order of the departure cities.", "question_toks": ["Show", "flno", ",", "origin", ",", "destination", "of", "all", "flights", "in", "the", "alphabetical", "order", "of", "the", "departure", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0383", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0036", "db_id": "flight_1", "query": "select flno , origin , destination from flight order by origin", "query_toks": ["SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin"], "query_toks_no_value": ["SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin"], "question": "What is the flno, origin, and destination for all flights in alphabetical order by departure cities?", "question_toks": ["What", "is", "the", "flno", ",", "origin", ",", "and", "destination", "for", "all", "flights", "in", "alphabetical", "order", "by", "departure", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0384", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0037", "db_id": "flight_1", "query": "select flno from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "value", "angeles"], "question": "Show all flno from Los Angeles.", "question_toks": ["Show", "all", "flno", "from", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0385", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0038", "db_id": "flight_1", "query": "select flno from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "value", "angeles"], "question": "What are the flno coming from Los Angeles?", "question_toks": ["What", "are", "the", "flno", "coming", "from", "Los", "Angeles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0386", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0039", "db_id": "flight_1", "query": "select flno from flight where distance > 2000", "query_toks": ["SELECT", "flno", "FROM", "Flight", "WHERE", "distance", ">", "2000"], "query_toks_no_value": ["SELECT", "flno", "FROM", "Flight", "WHERE", "distance", ">", "value"], "question": "Show flno for all flights with more than 2000 distance.", "question_toks": ["Show", "flno", "for", "all", "flights", "with", "more", "than", "2000", "distance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0391", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0040", "db_id": "flight_1", "query": "select t2.name from flight as t1 join aircraft as t2 on t1.aid = t2.aid where t1.flno = 99", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1", ".", "aid", "=", "T2", ".", "aid", "WHERE", "T1", ".", "flno", "=", "99"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1", ".", "aid", "=", "T2", ".", "aid", "WHERE", "T1", ".", "flno", "=", "value"], "question": "What is the aircraft name for the flno 99", "question_toks": ["What", "is", "the", "aircraft", "name", "for", "the", "flno", "99"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], 99.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0411", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0041", "db_id": "flight_1", "query": "select count(distinct eid) from certificate", "query_toks": ["SELECT", "count", "(", "DISTINCT", "eid", ")", "FROM", "Certificate"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "eid", ")", "FROM", "Certificate"], "question": "How many eid have certificate.", "question_toks": ["How", "many", "eid", "have", "certificate", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 15, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0419", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0042", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "Student"], "query_toks_no_value": ["SELECT", "Fname", ",", "Lname", "FROM", "Student"], "question": "Show fname and lname for all students.", "question_toks": ["Show", "fname", "and", "lname", "for", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0461", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0043", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "Student"], "query_toks_no_value": ["SELECT", "Fname", ",", "Lname", "FROM", "Student"], "question": "What are the fnames and lnames of all students", "question_toks": ["What", "are", "the", "fnames", "and", "lnames", "of", "all", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0462", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0044", "db_id": "medicine_enzyme_interaction", "query": "select max(omim) from enzyme", "query_toks": ["SELECT", "max", "(", "OMIM", ")", "FROM", "enzyme"], "query_toks_no_value": ["SELECT", "max", "(", "OMIM", ")", "FROM", "enzyme"], "question": "What is the maximum OMIM value of the enzymes?", "question_toks": ["What", "is", "the", "maximum", "OMIM", "value", "of", "the", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0939", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "synonyms_0045", "db_id": "college_2", "query": "select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2", "query_toks": ["SELECT", "T1", ".", "title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1", ".", "course_id", "=", "T2", ".", "course_id", "GROUP", "BY", "T2", ".", "course_id", "HAVING", "count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1", ".", "course_id", "=", "T2", ".", "course_id", "GROUP", "BY", "T2", ".", "course_id", "HAVING", "count", "(*)", "=", "2"], "question": "Find the title of courses that have two prereq?", "question_toks": ["Find", "the", "title", "of", "courses", "that", "have", "two", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1342", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0046", "db_id": "college_2", "query": "select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2", "query_toks": ["SELECT", "T1", ".", "title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1", ".", "course_id", "=", "T2", ".", "course_id", "GROUP", "BY", "T2", ".", "course_id", "HAVING", "count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1", ".", "course_id", "=", "T2", ".", "course_id", "GROUP", "BY", "T2", ".", "course_id", "HAVING", "count", "(*)", "=", "2"], "question": "What are the titles for courses with two prereq?", "question_toks": ["What", "are", "the", "titles", "for", "courses", "with", "two", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1343", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0047", "db_id": "college_2", "query": "select t1.title , t1.credits , t1.dept_name from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) > 1", "query_toks": ["SELECT", "T1", ".", "title", ",", "T1", ".", "credits", ",", "T1", ".", "dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1", ".", "course_id", "=", "T2", ".", "course_id", "GROUP", "BY", "T2", ".", "course_id", "HAVING", "count", "(*)", ">", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "title", ",", "T1", ".", "credits", ",", "T1", ".", "dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1", ".", "course_id", "=", "T2", ".", "course_id", "GROUP", "BY", "T2", ".", "course_id", "HAVING", "count", "(*)", ">", "1"], "question": "Find the title, credit, and dept name of courses that have more than one prereq?", "question_toks": ["Find", "the", "title", ",", "credit", ",", "and", "dept", "name", "of", "courses", "that", "have", "more", "than", "one", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1344", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0048", "db_id": "college_2", "query": "select t1.title , t1.credits , t1.dept_name from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) > 1", "query_toks": ["SELECT", "T1", ".", "title", ",", "T1", ".", "credits", ",", "T1", ".", "dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1", ".", "course_id", "=", "T2", ".", "course_id", "GROUP", "BY", "T2", ".", "course_id", "HAVING", "count", "(*)", ">", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "title", ",", "T1", ".", "credits", ",", "T1", ".", "dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1", ".", "course_id", "=", "T2", ".", "course_id", "GROUP", "BY", "T2", ".", "course_id", "HAVING", "count", "(*)", ">", "1"], "question": "What is the title, credit value, and dept_name for courses with more than one prerequisite?", "question_toks": ["What", "is", "the", "title", ",", "credit", "value", ",", "and", "dept_name", "for", "courses", "with", "more", "than", "one", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1345", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0049", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "count", "(*)", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "question": "How many courses that do not have prereq?", "question_toks": ["How", "many", "courses", "that", "do", "not", "have", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1346", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0050", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "count", "(*)", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "question": "Count the number of courses without prereq.", "question_toks": ["Count", "the", "number", "of", "courses", "without", "prereq", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1347", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0051", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "question": "Find the title of the courses that do not have any prereq?", "question_toks": ["Find", "the", "title", "of", "the", "courses", "that", "do", "not", "have", "any", "prereq", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1420", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0052", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator where connection != \"broadband\"", "query_toks": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator", "WHERE", "CONNECTION", "!=", "``", "broadband", "''"], "query_toks_no_value": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator", "WHERE", "CONNECTION", "!=", "value"], "question": "What are the name and operating system of web client accelerators that do not work with only a 'Broadband' type connection?", "question_toks": ["What", "are", "the", "name", "and", "operating", "system", "of", "web", "client", "accelerators", "that", "do", "not", "work", "with", "only", "a", "'", "Broadband", "'", "type", "connection", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"broadband\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1831", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "synonyms_0053", "db_id": "phone_market", "query": "select carrier from phone where memory_in_g < 32 intersect select carrier from phone where memory_in_g > 64", "query_toks": ["SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", "<", "32", "INTERSECT", "SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", ">", "64"], "query_toks_no_value": ["SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", "<", "value", "INTERSECT", "SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", ">", "value"], "question": "Show the carriers that have both phones with memory in g smaller than 32 and phones with memory in g bigger than 64.", "question_toks": ["Show", "the", "carriers", "that", "have", "both", "phones", "with", "memory", "in", "g", "smaller", "than", "32", "and", "phones", "with", "memory", "in", "g", "bigger", "than", "64", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 64.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1986", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0054", "db_id": "company_1", "query": "select fname , lname from employee where salary > 30000", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "employee", "WHERE", "salary", ">", "30000"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "employee", "WHERE", "salary", ">", "value"], "question": "Return the fname and lname of employees whose salary is more than 30000", "question_toks": ["Return", "the", "fname", "and", "lname", "of", "employees", "whose", "salary", "is", "more", "than", "30000"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 30000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_synonyms_0054", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0055", "db_id": "flight_4", "query": "select count(*) from airports as t1 join routes as t2 on t1.apid = t2.dst_apid where country = \"canada\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1", ".", "apid", "=", "T2", ".", "dst_apid", "WHERE", "country", "=", "``", "canada", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1", ".", "apid", "=", "T2", ".", "dst_apid", "WHERE", "country", "=", "value"], "question": "Find the number of routes whose dst apid are in Canada.", "question_toks": ["Find", "the", "number", "of", "routes", "whose", "dst", "apid", "are", "in", "Canada", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6827", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0056", "db_id": "flight_4", "query": "select t1.name , t1.city from airports as t1 join routes as t2 on t1.apid = t2.dst_apid group by t2.dst_apid order by count(*) desc limit 1", "query_toks": ["SELECT", "T1", ".", "name", ",", "T1", ".", "city", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1", ".", "apid", "=", "T2", ".", "dst_apid", "GROUP", "BY", "T2", ".", "dst_apid", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "city", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1", ".", "apid", "=", "T2", ".", "dst_apid", "GROUP", "BY", "T2", ".", "dst_apid", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Find the name and city of the airport which is the dst apid of the most number of routes.", "question_toks": ["Find", "the", "name", "and", "city", "of", "the", "airport", "which", "is", "the", "dst", "apid", "of", "the", "most", "number", "of", "routes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6833", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SHORT"]}, {"id": "synonyms_0057", "db_id": "concert_singer", "query": "select name , country from singer where song_name like \"%hey%\"", "query_toks": ["SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "\"%", "hey", "%\""], "query_toks_no_value": ["SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "\"%", "hey", "%\""], "question": "what is the name and country of the singer who have a song having 'Hey' in its name?", "question_toks": ["what", "is", "the", "name", "and", "country", "of", "the", "singer", "who", "have", "a", "song", "having", "'", "Hey", "'", "in", "its", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0039", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0058", "db_id": "concert_singer", "query": "select name , country from singer where song_name like \"%hey%\"", "query_toks": ["SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "\"%", "hey", "%\""], "query_toks_no_value": ["SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "\"%", "hey", "%\""], "question": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its names?", "question_toks": ["What", "is", "the", "name", "and", "country", "of", "origin", "of", "every", "singer", "who", "has", "a", "song", "with", "the", "word", "'", "Hey", "'", "in", "its", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0040", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0059", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", "query_toks": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")"], "query_toks_no_value": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")"], "question": "Which airports do not have source or destination flights?", "question_toks": ["Which", "airports", "do", "not", "have", "source", "or", "destination", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0258", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0060", "db_id": "employee_hire_evaluation", "query": "select name from shop where number_products > (select avg(number_products) from shop)", "query_toks": ["SELECT", "name", "FROM", "shop", "WHERE", "number_products", ">", "(", "SELECT", "avg", "(", "number_products", ")", "FROM", "shop", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "shop", "WHERE", "number_products", ">", "value", "SELECT", "avg", "(", "number_products", ")", "FROM", "shop", ")"], "question": "Find the names of shops whose number products is more than the average number of products.", "question_toks": ["Find", "the", "names", "of", "shops", "whose", "number", "products", "is", "more", "than", "the", "average", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0275", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0061", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = \"wta championships\" and winner_hand = \"l\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "``", "wta", "championships", "''", "AND", "winner_hand", "=", "``", "l", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "value", "championships", "AND", "winner_hand", "=", "value"], "question": "How many different winners participated in the tourneys WTA Championships and were left handed?", "question_toks": ["How", "many", "different", "winners", "participated", "in", "the", "tourneys", "WTA", "Championships", "and", "were", "left", "handed", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"wta championships\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"l\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0485", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0062", "db_id": "battle_death", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "killed", ",", "T1", ".", "injured", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1", ".", "caused_by_ship_id", "=", "T2", ".", "id", "WHERE", "T2", ".", "tonnage", "=", "value"], "question": "What are the kills and injury situations caused by the ship with tonnage 't'?", "question_toks": ["What", "are", "the", "kills", "and", "injury", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'", "t", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0496", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0063", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format order by count(*) asc", "query_toks": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(*)", "ASC"], "query_toks_no_value": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(*)", "ASC"], "question": "What are the major record formats of orchestras, sorted by its count in ascending order?", "question_toks": ["What", "are", "the", "major", "record", "formats", "of", "orchestras", ",", "sorted", "by", "its", "count", "in", "ascending", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0851", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0064", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value", "ORDER", "BY", "Percentage", "DESC", "LIMIT", "1"], "question": "Which language in Aruba has the biggest percentage?", "question_toks": ["Which", "language", "in", "Aruba", "has", "the", "biggest", "percentage", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"aruba\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0712", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0065", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value", "ORDER", "BY", "Percentage", "DESC", "LIMIT", "1"], "question": "What language has the biggest percentage in Aruba?", "question_toks": ["What", "language", "has", "the", "biggest", "percentage", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"aruba\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0713", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0066", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which continent has the biggest number of languages?", "question_toks": ["Which", "continent", "has", "the", "biggest", "number", "of", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0742", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0067", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "value", "mexico"], "question": "what is the area of new mexico", "question_toks": ["what", "is", "the", "area", "of", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0016", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0068", "db_id": "geo", "query": "select population from city where city_name = \"boulder\"", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "city_name", "=", "``", "boulder", "''"], "query_toks_no_value": ["SELECT", "population", "FROM", "city", "WHERE", "city_name", "=", "value"], "question": "population in the boulder", "question_toks": ["population", "in", "the", "boulder"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"boulder\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0140", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0069", "db_id": "scholar", "query": "select distinct t3.title from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join writes as t4 on t4.paperid = t2.paperid join paper as t3 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname like \"ranjit jhala\" and t5.keyphrasename = \"liquid haskell\"", "query_toks": ["SELECT", "DISTINCT", "t3", ".", "title", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "paper", "AS", "t3", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t1", "ON", "t4", ".", "authorid", "=", "t1", ".", "authorid", "WHERE", "t1", ".", "authorname", "LIKE", "``", "ranjit", "jhala", "''", "AND", "t5", ".", "keyphrasename", "=", "``", "liquid", "haskell", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "t3", ".", "title", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "paper", "AS", "t3", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t1", "ON", "t4", ".", "authorid", "=", "t1", ".", "authorid", "WHERE", "t1", ".", "authorname", "LIKE", "value", "jhala", "AND", "t5", ".", "keyphrasename", "=", "value", "haskell"], "question": "What is the title of Ranjit Jhala 's Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "title", "of", "Ranjit", "Jhala", "'", "s", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"ranjit jhala\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"liquid haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1132", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0070", "db_id": "imdb", "query": "select title from movie where release_year = 2015", "query_toks": ["SELECT", "title", "FROM", "movie", "WHERE", "release_year", "=", "2015"], "query_toks_no_value": ["SELECT", "title", "FROM", "movie", "WHERE", "release_year", "=", "value"], "question": "Find titles of movies released in 2015", "question_toks": ["Find", "titles", "of", "movies", "released", "in", "2015"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 44, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_1431", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"]}, {"id": "synonyms_0071", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "value", "mexico"], "question": "what is the area of new mexico", "question_toks": ["what", "is", "the", "area", "of", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0012", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0072", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "value", "mexico"], "question": "what is the area of state called new mexico", "question_toks": ["what", "is", "the", "area", "of", "state", "called", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0014", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0073", "db_id": "geo", "query": "select population from state where state_name = \"california\"", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "``", "california", "''"], "query_toks_no_value": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "value"], "question": "what is the population of california", "question_toks": ["what", "is", "the", "population", "of", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0026", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0074", "db_id": "geo", "query": "select population from state where state_name = \"california\"", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "``", "california", "''"], "query_toks_no_value": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "value"], "question": "what is the population of state california", "question_toks": ["what", "is", "the", "population", "of", "state", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0027", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0075", "db_id": "geo", "query": "select state_name from state where population = ( select max ( population ) from state )", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "state", ")"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "value", "SELECT", "MAX", "(", "population", ")", "FROM", "state", ")"], "question": "what state has the maximum population", "question_toks": ["what", "state", "has", "the", "maximum", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0067", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0076", "db_id": "geo", "query": "select sum ( population ) from state", "query_toks": ["SELECT", "SUM", "(", "population", ")", "FROM", "state"], "query_toks_no_value": ["SELECT", "SUM", "(", "population", ")", "FROM", "state"], "question": "what the sum of population live in the united states", "question_toks": ["what", "the", "sum", "of", "population", "live", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0239", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0077", "db_id": "course_teach", "query": "select hometown from teacher order by age asc limit 1", "query_toks": ["SELECT", "Hometown", "FROM", "teacher", "ORDER", "BY", "Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "Hometown", "FROM", "teacher", "ORDER", "BY", "Age", "ASC", "LIMIT", "1"], "question": "Where is hometown of the youngest teacher?", "question_toks": ["Where", "is", "hometown", "of", "the", "youngest", "teacher", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0392", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0078", "db_id": "battle_death", "query": "select count(*) from ship where disposition_of_ship = \"captured\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "ship", "WHERE", "disposition_of_ship", "=", "``", "captured", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "ship", "WHERE", "disposition_of_ship", "=", "value"], "question": "How many ships ended with disposition 'Captured'?", "question_toks": ["How", "many", "ships", "ended", "with", "disposition", "'", "Captured", "'?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"captured\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0491", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0079", "db_id": "poker_player", "query": "select name from people where nationality != \"russia\"", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "Nationality", "!=", "``", "russia", "''"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people", "WHERE", "Nationality", "!=", "value"], "question": "What are the names of people whose nationality is not Russia?", "question_toks": ["What", "are", "the", "names", "of", "people", "whose", "nationality", "is", "not", "Russia", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"russia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0682", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0080", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "value"], "question": "What is the population of Asia, and what is the largest GNP of it?", "question_toks": ["What", "is", "the", "population", "of", "Asia", ",", "and", "what", "is", "the", "largest", "GNP", "of", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0723", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0081", "db_id": "world_1", "query": "select count( distinct continent) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"chinese\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Continent", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "chinese", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "Continent", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value"], "question": "What is the number of distinct continents where language is Chinese?", "question_toks": ["What", "is", "the", "number", "of", "distinct", "continents", "where", "language", "is", "Chinese", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"chinese\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0750", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0082", "db_id": "flight_1", "query": "select avg(distance) , avg(price) from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "value", "angeles"], "question": "What is the average distance and average price for flights from origin Los Angeles.", "question_toks": ["What", "is", "the", "average", "distance", "and", "average", "price", "for", "flights", "from", "origin", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0401", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION"]}, {"id": "synonyms_0083", "db_id": "flight_1", "query": "select avg(distance) , avg(price) from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "value", "angeles"], "question": "What is the average distance and price for all flights from origin Los Angeles?", "question_toks": ["What", "is", "the", "average", "distance", "and", "price", "for", "all", "flights", "from", "origin", "Los", "Angeles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0402", "is_simplification": true, "simplifications_tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"]}, {"id": "or_in_nl_0000", "db_id": "car_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "motors"], "question": "Which distinctive models are produced by maker with the full name General Motors?", "question_toks": ["Which", "distinctive", "models", "are", "produced", "by", "maker", "with", "the", "full", "name", "General", "Motors", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"general motors\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0151", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0001", "db_id": "car_1", "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 t4.weight > 3500", "query_toks": ["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", "T4", ".", "weight", ">", "3500"], "query_toks_no_value": ["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", "T4", ".", "weight", ">", "value"], "question": "What are the different models weighed more than 3500?", "question_toks": ["What", "are", "the", "different", "models", "weighed", "more", "than", "3500", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], 3500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0152", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0002", "db_id": "car_1", "query": "select max(mpg) from cars_data where cylinders = 8", "query_toks": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "8"], "query_toks_no_value": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value"], "question": "What is the maximum miles per gallon of the car with 8 cylinders?", "question_toks": ["What", "is", "the", "maximum", "miles", "per", "gallon", "of", "the", "car", "with", "8", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0169", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0003", "db_id": "car_1", "query": "select max(mpg) from cars_data where year < 1980", "query_toks": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "year", "<", "1980"], "query_toks_no_value": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "year", "<", "value"], "question": "What is the maximum mpg of the cars that were produced before 1980 ?", "question_toks": ["What", "is", "the", "maximum", "mpg", "of", "the", "cars", "that", "were", "produced", "before", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 4, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0170", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0004", "db_id": "car_1", "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 ", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the id and names of the countries which have more than 3 car makers?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0005", "db_id": "car_1", "query": "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the ids and names of all countries that produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0006", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 ", "query_toks": ["SELECT", "count", "(*)", "FROM", "concert", "WHERE", "YEAR", "=", "2014"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "concert", "WHERE", "YEAR", "=", "value"], "question": "How many concerts are there in year 2014?", "question_toks": ["How", "many", "concerts", "are", "there", "in", "year", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0020", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0007", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2015", "query_toks": ["SELECT", "count", "(*)", "FROM", "concert", "WHERE", "YEAR", "=", "2015"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "concert", "WHERE", "YEAR", "=", "value"], "question": "How many concerts occurred in 2015?", "question_toks": ["How", "many", "concerts", "occurred", "in", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0021", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0008", "db_id": "course_teach", "query": "select name from teacher where age = 33", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "33"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "value"], "question": "Show the name of teachers aged 33?", "question_toks": ["Show", "the", "name", "of", "teachers", "aged", "33", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 33.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0389", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0009", "db_id": "course_teach", "query": "select name from teacher where age = 32", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "32"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "value"], "question": "What are the names of the teachers who are aged 32?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "who", "are", "aged", "32", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0390", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0010", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where template_type_code = \"ppt\"", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "ppt", "''"], "query_toks_no_value": ["SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "value"], "question": "What are the ids of templates with template type code PPT?", "question_toks": ["What", "are", "the", "ids", "of", "templates", "with", "template", "type", "code", "PPT", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"ppt\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0323", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0011", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where template_type_code = \"pp\"", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "pp", "''"], "query_toks_no_value": ["SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "value"], "question": "Return the ids of templates that have the code PP.", "question_toks": ["Return", "the", "ids", "of", "templates", "that", "have", "the", "code", "PP", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"pp\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0324", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0012", "db_id": "dog_kennels", "query": "select email_address from professionals where state = \"hawaii\"", "query_toks": ["SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "``", "hawaii", "''"], "query_toks_no_value": ["SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "value"], "question": "List the emails of the professionals who live in the state of Hawaii.", "question_toks": ["List", "the", "emails", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Hawaii", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"hawaii\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0962", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0013", "db_id": "dog_kennels", "query": "select email_address from professionals where state = \"wisconsin\"", "query_toks": ["SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "``", "wisconsin", "''"], "query_toks_no_value": ["SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "value"], "question": "What are the emails of the professionals living in either the state of Wisconsin?", "question_toks": ["What", "are", "the", "emails", "of", "the", "professionals", "living", "in", "either", "the", "state", "of", "Wisconsin", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"wisconsin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0963", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0014", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value"], "question": "Which professionals live in the state of Indiana? List id, last name and cell phone.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "?", "List", "id", ",", "last", "name", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0922", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0015", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value"], "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana.", "question_toks": ["Find", "the", "id", ",", "last", "name", "and", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0923", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0016", "db_id": "dog_kennels", "query": "select first_name from professionals except select name from dogs", "query_toks": ["SELECT", "first_name", "FROM", "Professionals", "EXCEPT", "SELECT", "name", "FROM", "Dogs"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "Professionals", "EXCEPT", "SELECT", "name", "FROM", "Dogs"], "question": "Which first names are used for professionals but are not used as dog names?", "question_toks": ["Which", "first", "names", "are", "used", "for", "professionals", "but", "are", "not", "used", "as", "dog", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0926", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0017", "db_id": "dog_kennels", "query": "select first_name from owners except select name from dogs", "query_toks": ["SELECT", "first_name", "FROM", "Owners", "EXCEPT", "SELECT", "name", "FROM", "Dogs"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "Owners", "EXCEPT", "SELECT", "name", "FROM", "Dogs"], "question": "Find the first names that are used for owners but are not used as dog names.", "question_toks": ["Find", "the", "first", "names", "that", "are", "used", "for", "owners", "but", "are", "not", "used", "as", "dog", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0927", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0018", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like \"%west%\"", "query_toks": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "\"%", "west", "%\""], "query_toks_no_value": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "\"%", "west", "%\""], "question": "Which professionals live in a city containing the substring 'West'? List role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "containing", "the", "substring", "'", "West", "'?", "List", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%west%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0970", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0019", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"abilene\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1", ".", "DestAirport", "=", "T2", ".", "AirportCode", "WHERE", "T2", ".", "city", "=", "``", "abilene", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1", ".", "DestAirport", "=", "T2", ".", "AirportCode", "WHERE", "T2", ".", "city", "=", "value"], "question": "Find the number of flights landing in the city of Aberdeen.", "question_toks": ["Find", "the", "number", "of", "flights", "landing", "in", "the", "city", "of", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0255", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0020", "db_id": "flight_2", "query": "select count(*) from flights where destairport = ( select airportcode from airports where city like '%abilene%' );", "query_toks": ["SELECT", "count", "(*)", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1", ".", "DestAirport", "=", "T2", ".", "AirportCode", "WHERE", "T2", ".", "city", "=", "``", "abilene", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1", ".", "DestAirport", "=", "T2", ".", "AirportCode", "WHERE", "T2", ".", "city", "=", "value"], "question": "How many flights land in Abilene?", "question_toks": ["How", "many", "flights", "land", "in", "Abilene", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0256", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0021", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select destairport from flights)", "query_toks": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "DestAirport", "FROM", "Flights", ")"], "query_toks_no_value": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "DestAirport", "FROM", "Flights", ")"], "question": "Which airports do not have departing flights?", "question_toks": ["Which", "airports", "do", "not", "have", "departing", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0258", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0022", "db_id": "museum_visit", "query": "select count(*) from museum where open_year > 2013", "query_toks": ["SELECT", "count", "(*)", "FROM", "museum", "WHERE", "open_year", ">", "2013"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "museum", "WHERE", "open_year", ">", "value"], "question": "How many museums were opened after 2013?", "question_toks": ["How", "many", "museums", "were", "opened", "after", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0428", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0023", "db_id": "network_1", "query": "select count(*) from highschooler where grade = 9", "query_toks": ["SELECT", "count", "(*)", "FROM", "Highschooler", "WHERE", "grade", "=", "9"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Highschooler", "WHERE", "grade", "=", "value"], "question": "How many high schoolers are there in grade 9?", "question_toks": ["How", "many", "high", "schoolers", "are", "there", "in", "grade", "9", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 9.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0874", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0024", "db_id": "network_1", "query": "select count(*) from highschooler where grade = 10", "query_toks": ["SELECT", "count", "(*)", "FROM", "Highschooler", "WHERE", "grade", "=", "10"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Highschooler", "WHERE", "grade", "=", "value"], "question": "Count the number of high schoolers in grades 10.", "question_toks": ["Count", "the", "number", "of", "high", "schoolers", "in", "grades", "10", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0875", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0025", "db_id": "orchestra", "query": "select count(*) from orchestra where major_record_format = \"dvd\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "dvd", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "value"], "question": "Find the number of orchestras whose record format is \"DVD\".", "question_toks": ["Find", "the", "number", "of", "orchestras", "whose", "record", "format", "is", "\"", "DVD", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"dvd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0858", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0026", "db_id": "orchestra", "query": "select count(*) from orchestra where major_record_format = \"cd\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "cd", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "value"], "question": "Count the number of orchestras that have CD as their record format.", "question_toks": ["Count", "the", "number", "of", "orchestras", "that", "have", "CD", "as", "their", "record", "format", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"cd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0859", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0027", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the first name of students who have cat pet.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0057", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0028", "db_id": "pets_1", "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 = \"dog\"", "query_toks": ["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", "=", "``", "dog", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the first names of every student who has a dog as a pet?", "question_toks": ["What", "are", "the", "first", "names", "of", "every", "student", "who", "has", "a", "dog", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0058", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0029", "db_id": "real_estate_properties", "query": "select property_name from properties where property_type_code = \"house\" and room_count > 1", "query_toks": ["SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "``", "house", "''", "AND", "room_count", ">", "1"], "query_toks_no_value": ["SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "value", "AND", "room_count", ">", "value"], "question": "What are the names of properties that are houses with more than 1 room?", "question_toks": ["What", "are", "the", "names", "of", "properties", "that", "are", "houses", "with", "more", "than", "1", "room", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"house\"", null], "and", [false, 3, [0, [0, 15, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1033", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0030", "db_id": "singer", "query": "select name from singer where birth_year = 1948", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948"], "query_toks_no_value": ["SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "value"], "question": "Show the name of singers whose birth year is 1948?", "question_toks": ["Show", "the", "name", "of", "singers", "whose", "birth", "year", "is", "1948", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1948.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1008", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0031", "db_id": "singer", "query": "select name from singer where birth_year = 1948", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948"], "query_toks_no_value": ["SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "value"], "question": "What are the names of the singers whose birth year is 1948?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "whose", "birth", "year", "is", "1948", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1948.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1009", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0032", "db_id": "student_transcripts_tracking", "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\" ", "query_toks": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "``", "haiti", "''"], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value"], "question": "Find the first name of the students who permanently live in the country Haiti.", "question_toks": ["Find", "the", "first", "name", "of", "the", "students", "who", "permanently", "live", "in", "the", "country", "Haiti", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"haiti\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0583", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0033", "db_id": "student_transcripts_tracking", "query": "select t1.first_name from students as t1 join addresses as t2 on t1.permanent_address_id = t2.address_id where t1.cell_mobile_number = \"09700166582\"", "query_toks": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "cell_mobile_number", "=", "``", "09700166582", "''"], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t1", ".", "cell_mobile_number", "=", "value"], "question": "What are the first names of the students who have the cell phone number 09700166582 ?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "students", "who", "have", "the", "cell", "phone", "number", "09700166582", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0584", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0034", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\"", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "ben", "jones", "''"], "query_toks_no_value": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "value", "jones"], "question": "List the title of all cartoon directed by \"Ben Jones\".", "question_toks": ["List", "the", "title", "of", "all", "cartoon", "directed", "by", "\"", "Ben", "Jones", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"ben jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0593", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0035", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"brandon vietti\"", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "brandon", "vietti", "''"], "query_toks_no_value": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "value", "vietti"], "question": "What are the titles of all cartoons directed by Brandon Vietti?", "question_toks": ["What", "are", "the", "titles", "of", "all", "cartoons", "directed", "by", "Brandon", "Vietti", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"brandon vietti\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0594", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0036", "db_id": "voter_1", "query": "select count(*) from votes where state = \"ny\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "votes", "WHERE", "state", "=", "``", "ny", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "votes", "WHERE", "state", "=", "value"], "question": "What are the number of votes from state 'NY'?", "question_toks": ["What", "are", "the", "number", "of", "votes", "from", "state", "'", "NY", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"ny\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0696", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0037", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "value"], "question": "Give the total surface area covered by countries in Asia.", "question_toks": ["Give", "the", "total", "surface", "area", "covered", "by", "countries", "in", "Asia", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0727", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0038", "db_id": "world_1", "query": "select distinct t1.region from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "Region", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "english", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "Region", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value"], "question": "What are the regions that use English?", "question_toks": ["What", "are", "the", "regions", "that", "use", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0752", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0039", "db_id": "world_1", "query": "select distinct t1.region from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "Region", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "dutch", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "Region", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value"], "question": "Which regions speak Dutch?", "question_toks": ["Which", "regions", "speak", "Dutch", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0753", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0040", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where English is the official language ?", "question_toks": ["What", "are", "the", "countries", "where", "English", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0754", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0041", "db_id": "world_1", "query": "select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", "query_toks": ["SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "dutch", "''", "AND", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "IsOfficial", "=", "value"], "question": "Which countries have Dutch as an official language?", "question_toks": ["Which", "countries", "have", "Dutch", "as", "an", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0755", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0042", "db_id": "wta_1", "query": "select count(*) from matches where year = 2016", "query_toks": ["SELECT", "count", "(*)", "FROM", "matches", "WHERE", "YEAR", "=", "2016"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "matches", "WHERE", "YEAR", "=", "value"], "question": "List the number of all matches who played in years of 2016.", "question_toks": ["List", "the", "number", "of", "all", "matches", "who", "played", "in", "years", "of", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0449", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0043", "db_id": "wta_1", "query": "select count(*) from matches where year = 2013", "query_toks": ["SELECT", "count", "(*)", "FROM", "matches", "WHERE", "YEAR", "=", "2013"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "matches", "WHERE", "YEAR", "=", "value"], "question": "How many matches were played in 2013?", "question_toks": ["How", "many", "matches", "were", "played", "in", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0450", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0044", "db_id": "activity_1", "query": "select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = \"canoeing\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "activity", "AS", "T3", "ON", "T2", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T3", ".", "activity_name", "=", "``", "canoeing", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "activity", "AS", "T3", "ON", "T2", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T3", ".", "activity_name", "=", "value"], "question": "Find the first names of the faculty members who are playing Canoeing.", "question_toks": ["Find", "the", "first", "names", "of", "the", "faculty", "members", "who", "are", "playing", "Canoeing", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"canoeing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6795", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0045", "db_id": "activity_1", "query": "select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = \"kayaking\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "activity", "AS", "T3", "ON", "T2", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T3", ".", "activity_name", "=", "``", "kayaking", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "activity", "AS", "T3", "ON", "T2", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T3", ".", "activity_name", "=", "value"], "question": "Which faculty members are playing Kayaking? Tell me their first names.", "question_toks": ["Which", "faculty", "members", "are", "playing", "Kayaking", "?", "Tell", "me", "their", "first", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6796", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0046", "db_id": "activity_1", "query": "select lname from faculty where rank = \"professor\" except select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = \"canoeing\" ", "query_toks": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "``", "professor", "''", "EXCEPT", "SELECT", "DISTINCT", "T1", ".", "lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "activity", "AS", "T3", "ON", "T2", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T3", ".", "activity_name", "=", "``", "canoeing", "''"], "query_toks_no_value": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "value", "EXCEPT", "SELECT", "DISTINCT", "T1", ".", "lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "activity", "AS", "T3", "ON", "T2", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T3", ".", "activity_name", "=", "value"], "question": "Find the first names of professors who are not playing Canoeing.", "question_toks": ["Find", "the", "first", "names", "of", "professors", "who", "are", "not", "playing", "Canoeing", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"canoeing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6797", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0047", "db_id": "activity_1", "query": "select lname from faculty where rank = \"professor\" except select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = \"kayaking\"", "query_toks": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "``", "professor", "''", "EXCEPT", "SELECT", "DISTINCT", "T1", ".", "lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "activity", "AS", "T3", "ON", "T2", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T3", ".", "activity_name", "=", "``", "kayaking", "''"], "query_toks_no_value": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "value", "EXCEPT", "SELECT", "DISTINCT", "T1", ".", "lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "activity", "AS", "T3", "ON", "T2", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T3", ".", "activity_name", "=", "value"], "question": "What are the first names of the professors who do not play Kayaking as activities?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "who", "do", "not", "play", "Kayaking", "as", "activities", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6798", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0048", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"hkg\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "city_code", "=", "``", "hkg", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "city_code", "=", "value"], "question": "How many students live in HKG?", "question_toks": ["How", "many", "students", "live", "in", "HKG", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"hkg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0481", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0049", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"chi\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "city_code", "=", "``", "chi", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "city_code", "=", "value"], "question": "Give the number of students living in CHI.", "question_toks": ["Give", "the", "number", "of", "students", "living", "in", "CHI", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"chi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0482", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0050", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\" and t1.allergy = \"milk\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "sex", "=", "``", "f", "''", "AND", "T1", ".", "allergy", "=", "``", "milk", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "sex", "=", "value", "AND", "T1", ".", "allergy", "=", "value"], "question": "How many female students have milk allergies?", "question_toks": ["How", "many", "female", "students", "have", "milk", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"milk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0509", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0051", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\" and t1.allergy = \"eggs\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "sex", "=", "``", "f", "''", "AND", "T1", ".", "allergy", "=", "``", "eggs", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "sex", "=", "value", "AND", "T1", ".", "allergy", "=", "value"], "question": "How many students who are female allergic to eggs?", "question_toks": ["How", "many", "students", "who", "are", "female", "allergic", "to", "eggs", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"eggs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0510", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0052", "db_id": "architecture", "query": "select distinct t1.type from mill as t1 join architect as t2 on t1.architect_id = t2.id where t2.nationality = \"canadian\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "type", "FROM", "mill", "AS", "T1", "JOIN", "architect", "AS", "t2", "ON", "T1", ".", "architect_id", "=", "T2", ".", "id", "WHERE", "T2", ".", "nationality", "=", "``", "canadian", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "type", "FROM", "mill", "AS", "T1", "JOIN", "architect", "AS", "t2", "ON", "T1", ".", "architect_id", "=", "T2", ".", "id", "WHERE", "T2", ".", "nationality", "=", "value"], "question": "What are the distinct types of mills that are built by Canadian architects?", "question_toks": ["What", "are", "the", "distinct", "types", "of", "mills", "that", "are", "built", "by", "Canadian", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"canadian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6952", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0053", "db_id": "architecture", "query": "select location from bridge where name = \"kolob arch\" ", "query_toks": ["SELECT", "LOCATION", "FROM", "bridge", "WHERE", "name", "=", "``", "kolob", "arch", "''"], "query_toks_no_value": ["SELECT", "LOCATION", "FROM", "bridge", "WHERE", "name", "=", "value", "arch"], "question": "What is the location of the bridge named 'Kolob Arch'?", "question_toks": ["What", "is", "the", "location", "of", "the", "bridge", "named", "'", "Kolob", "Arch", "'?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"kolob arch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6956", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0054", "db_id": "architecture", "query": "select t1.id , t1.name , t1.gender from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2", "query_toks": ["SELECT", "T1", ".", "id", ",", "T1", ".", "name", ",", "T1", ".", "gender", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "id", ",", "T1", ".", "name", ",", "T1", ".", "gender", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2"], "question": "What are the ids, names and genders of the architects who built two bridges?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "genders", "of", "the", "architects", "who", "built", "two", "bridges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6955", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0055", "db_id": "assets_maintenance", "query": "select t1.company_id , t1.company_name from third_party_companies as t1 join maintenance_engineers as t2 on t1.company_id = t2.company_id group by t1.company_id having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "company_id", ",", "T1", ".", "company_name", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Maintenance_Engineers", "AS", "T2", "ON", "T1", ".", "company_id", "=", "T2", ".", "company_id", "GROUP", "BY", "T1", ".", "company_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "company_id", ",", "T1", ".", "company_name", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Maintenance_Engineers", "AS", "T2", "ON", "T1", ".", "company_id", "=", "T2", ".", "company_id", "GROUP", "BY", "T1", ".", "company_id", "HAVING", "count", "(*)", ">=", "2"], "question": "Which third party companies have at least 2 maintenance engineers? List the company id and name.", "question_toks": ["Which", "third", "party", "companies", "have", "at", "least", "2", "maintenance", "engineers", "?", "List", "the", "company", "id", "and", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3129", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0056", "db_id": "csu_1", "query": "select campus from campuses where location = \"northridge\" and county = \"los angeles\"", "query_toks": ["SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "northridge", "''", "AND", "county", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "value", "AND", "county", "=", "value", "angeles"], "question": "Find the name of the campuses that is in Northridge, Los Angeles.", "question_toks": ["Find", "the", "name", "of", "the", "campuses", "that", "is", "in", "Northridge", ",", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"northridge\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2334", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0057", "db_id": "csu_1", "query": "select campus from campuses where location = \"san francisco\" and county = \"san francisco\"", "query_toks": ["SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "san", "francisco", "''", "AND", "county", "=", "``", "san", "francisco", "''"], "query_toks_no_value": ["SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "value", "francisco", "AND", "county", "=", "value", "francisco"], "question": "What campuses are located in San Francisco, San Francisco?", "question_toks": ["What", "campuses", "are", "located", "in", "San", "Francisco", ",", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"san francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2335", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0058", "db_id": "debate", "query": "select name from people where age = 35", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "Age", "=", "35"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people", "WHERE", "Age", "=", "value"], "question": "Show the names of people aged either 35.", "question_toks": ["Show", "the", "names", "of", "people", "aged", "either", "35", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], 35.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1496", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0059", "db_id": "journal_committee", "query": "select name from editor where age = 25", "query_toks": ["SELECT", "Name", "FROM", "editor", "WHERE", "Age", "=", "25"], "query_toks_no_value": ["SELECT", "Name", "FROM", "editor", "WHERE", "Age", "=", "value"], "question": "Show the names of editors of age 25.", "question_toks": ["Show", "the", "names", "of", "editors", "of", "age", "25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0653", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0060", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = \"utah\"", "query_toks": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "``", "utah", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "value"], "question": "Find the total account balance of all customer from Utah.", "question_toks": ["Find", "the", "total", "account", "balance", "of", "each", "customer", "from", "Utah", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"utah\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3034", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0061", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = \"texas\"", "query_toks": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "``", "texas", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "value"], "question": "What are the total account balances of all customers from Texas?", "question_toks": ["What", "are", "the", "total", "account", "balances", "for", "each", "customer", "from", "Texas", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3035", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0062", "db_id": "music_1", "query": "select song_name from song where genre_is = \"modern\"", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''"], "query_toks_no_value": ["SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "value"], "question": "Find the names of songs whose genre is modern.", "question_toks": ["Find", "the", "names", "of", "songs", "whose", "genre", "is", "modern", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"modern\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3591", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0063", "db_id": "music_1", "query": "select song_name from song where genre_is = \"modern\"", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''"], "query_toks_no_value": ["SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "value"], "question": "What are the names of the songs that are modern?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "that", "are", "modern", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"modern\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3592", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0064", "db_id": "music_1", "query": "select f_id from files where formats = \"mp4\"", "query_toks": ["SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "``", "mp4", "''"], "query_toks_no_value": ["SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "value"], "question": "What are the ids of songs that are available in either mp4 format?", "question_toks": ["What", "are", "the", "ids", "of", "songs", "that", "are", "available", "in", "either", "mp4", "format", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"mp4\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3581", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0065", "db_id": "program_share", "query": "select name from channel where owner = \"cctv\"", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "``", "cctv", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "value"], "question": "What are the names of the channels owned by CCTV?", "question_toks": ["What", "are", "the", "names", "of", "the", "channels", "owned", "by", "CCTV", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cctv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3762", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0066", "db_id": "program_share", "query": "select name from channel where owner = \"hbs\"", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "``", "hbs", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "value"], "question": "List the names of all the channels owned by HBS", "question_toks": ["List", "the", "names", "of", "all", "the", "channels", "owned", "by", "HBS"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"hbs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3763", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "or_in_nl_0067", "db_id": "protein_institute", "query": "select count(*) from building where height_feet > (select avg(height_feet) from building)", "query_toks": ["SELECT", "count", "(*)", "FROM", "building", "WHERE", "height_feet", ">", "(", "SELECT", "avg", "(", "height_feet", ")", "FROM", "building", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "building", "WHERE", "height_feet", ">", "value", "SELECT", "avg", "(", "height_feet", ")", "FROM", "building", ")"], "question": "Show the number of buildings with a height above the average.", "question_toks": ["Show", "the", "number", "of", "buildings", "with", "a", "height", "above", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1914", "is_simplification": true, "simplifications_tags": ["OR_IN_NL"]}, {"id": "negation_with_any_all_0000", "db_id": "activity_1", "query": "select facid from faculty", "query_toks": ["SELECT", "FacID", "FROM", "Faculty"], "query_toks_no_value": ["SELECT", "FacID", "FROM", "Faculty"], "question": "Which faculties do we have? Find the faculty ids.", "question_toks": ["Which", "faculties", "do", "we", "have", "?", "Find", "the", "faculty", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6772", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0001", "db_id": "activity_1", "query": "select facid from faculty ", "query_toks": ["SELECT", "FacID", "FROM", "Faculty"], "query_toks_no_value": ["SELECT", "FacID", "FROM", "Faculty"], "question": "Show ids for the faculty members.", "question_toks": ["Show", "ids", "for", "the", "faculty", "members", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6763", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0002", "db_id": "activity_1", "query": "select facid from faculty", "query_toks": ["SELECT", "FacID", "FROM", "Faculty"], "query_toks_no_value": ["SELECT", "FacID", "FROM", "Faculty"], "question": "Show the ids of the faculty.", "question_toks": ["Show", "the", "ids", "of", "the", "faculty", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6771", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0003", "db_id": "activity_1", "query": "select stuid from student", "query_toks": ["SELECT", "StuID", "FROM", "Student"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student"], "question": "Show the ids of the students", "question_toks": ["Show", "the", "ids", "of", "the", "students"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6787", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0004", "db_id": "activity_1", "query": "select stuid from student", "query_toks": ["SELECT", "StuID", "FROM", "Student"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student"], "question": "What are the ids of the students", "question_toks": ["What", "are", "the", "ids", "of", "the", "students"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6788", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0005", "db_id": "activity_1", "query": "select facid from faculty", "query_toks": ["SELECT", "FacID", "FROM", "Faculty"], "query_toks_no_value": ["SELECT", "FacID", "FROM", "Faculty"], "question": "What are the ids of the faculty members", "question_toks": ["What", "are", "the", "ids", "of", "the", "faculty", "members"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6764", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0006", "db_id": "aircraft", "query": "select aircraft from aircraft", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft"], "query_toks_no_value": ["SELECT", "Aircraft", "FROM", "aircraft"], "question": "List the names of aircrafts.", "question_toks": ["List", "the", "names", "of", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4831", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0007", "db_id": "aircraft", "query": "select name from pilot", "query_toks": ["SELECT", "name", "FROM", "pilot"], "query_toks_no_value": ["SELECT", "name", "FROM", "pilot"], "question": "What are the names of the pilots", "question_toks": ["What", "are", "the", "names", "of", "the", "pilots"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4842", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0008", "db_id": "aircraft", "query": "select aircraft from aircraft ", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft"], "query_toks_no_value": ["SELECT", "Aircraft", "FROM", "aircraft"], "question": "What are the names of all aicrafts", "question_toks": ["What", "are", "the", "names", "of", "all", "aicrafts"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4832", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0009", "db_id": "allergy_1", "query": "select stuid from student", "query_toks": ["SELECT", "StuID", "FROM", "Student"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student"], "question": "What are the student ids of students", "question_toks": ["What", "are", "the", "student", "ids", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0507", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0010", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "Student"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "Student"], "question": "List the first and last name of the students", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "the", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0527", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0011", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "Student"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "Student"], "question": "What is the full name of each student", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "student"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0528", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0012", "db_id": "apartment_rentals", "query": "select count(*) from apartments", "query_toks": ["SELECT", "count", "(*)", "FROM", "Apartments"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Apartments"], "question": "How many apartments are there?", "question_toks": ["How", "many", "apartments", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1268", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0013", "db_id": "assets_maintenance", "query": "select asset_model from assets", "query_toks": ["SELECT", "asset_model", "FROM", "Assets"], "query_toks_no_value": ["SELECT", "asset_model", "FROM", "Assets"], "question": "Which assets are occurs? List the asset model.", "question_toks": ["Which", "assets", "are", "occurs", "?", "List", "the", "asset", "model", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3156", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0014", "db_id": "assets_maintenance", "query": "select staff_id, staff_name from staff;", "query_toks": ["SELECT", "T1", ".", "staff_name", ",", "T1", ".", "staff_id", "FROM", "Staff", "AS", "T1", "JOIN", "Fault_Log", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "recorded_by_staff_id"], "query_toks_no_value": ["SELECT", "T1", ".", "staff_name", ",", "T1", ".", "staff_id", "FROM", "Staff", "AS", "T1", "JOIN", "Fault_Log", "AS", "T2", "ON", "T1", ".", "staff_id", "=", "T2", ".", "recorded_by_staff_id"], "question": "What is the name and id of the staff?", "question_toks": ["What", "is", "the", "name", "and", "id", "of", "the", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3130", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0015", "db_id": "battle_death", "query": "select count(*) from battle", "query_toks": ["SELECT", "count", "(*)", "FROM", "battle"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "battle"], "question": "How many battles were?", "question_toks": ["How", "many", "battles", "were", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0503", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0016", "db_id": "behavior_monitoring", "query": "select count(*) from students", "query_toks": ["SELECT", "count", "(*)", "FROM", "STUDENTS"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "STUDENTS"], "question": "How many students are?", "question_toks": ["How", "many", "students", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3123", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0017", "db_id": "behavior_monitoring", "query": "select last_name from teachers", "query_toks": ["SELECT", "last_name", "FROM", "Teachers"], "query_toks_no_value": ["SELECT", "last_name", "FROM", "Teachers"], "question": "Find the last names of teachers", "question_toks": ["Find", "the", "last", "names", "of", "teachers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3124", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0018", "db_id": "bike_1", "query": "select avg(long) from station", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station"], "query_toks_no_value": ["SELECT", "avg", "(", "long", ")", "FROM", "station"], "question": "What is the mean longitude for all stations?", "question_toks": ["What", "is", "the", "mean", "longitude", "for", "all", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0152", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0019", "db_id": "bike_1", "query": "select id from station", "query_toks": ["SELECT", "id", "FROM", "station"], "query_toks_no_value": ["SELECT", "id", "FROM", "station"], "question": "What are the ids of all stations?", "question_toks": ["What", "are", "the", "ids", "of", "all", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0170", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0020", "db_id": "bike_1", "query": "select name from station;", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id"], "question": "What are the names of all stations?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0172", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0021", "db_id": "bike_1", "query": "select distinct zip_code from weather", "query_toks": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather"], "query_toks_no_value": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather"], "question": "Find all the zip codes of weather", "question_toks": ["Find", "all", "the", "zip", "codes"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0195", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0022", "db_id": "car_1", "query": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.cylinders < 4", "query_toks": ["select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<", "4"], "query_toks_no_value": ["select", "t2", ".", "makeid", ",", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<", "value"], "question": "What are the make ids and names of all those with less than 4 cylinders ?", "question_toks": ["What", "are", "the", "make", "ids", "and", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0168", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0023", "db_id": "chinook_1", "query": "select count(*) from artist", "query_toks": ["SELECT", "count", "(*)", "FROM", "ARTIST"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "ARTIST"], "question": "How many artists are there?", "question_toks": ["How", "many", "artists", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0887", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0024", "db_id": "chinook_1", "query": "select name from artist", "query_toks": ["SELECT", "Name", "FROM", "ARTIST"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ARTIST"], "question": "Find the names of artists.", "question_toks": ["Find", "the", "names", "of", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0877", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0025", "db_id": "chinook_1", "query": "select name from artist", "query_toks": ["SELECT", "Name", "FROM", "ARTIST"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ARTIST"], "question": "What are the names of artists?", "question_toks": ["What", "are", "the", "names", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0878", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0026", "db_id": "chinook_1", "query": "select lastname from customer", "query_toks": ["SELECT", "LastName", "FROM", "CUSTOMER"], "query_toks_no_value": ["SELECT", "LastName", "FROM", "CUSTOMER"], "question": "Find all the customer last names.", "question_toks": ["Find", "all", "the", "customer", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0857", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0027", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "query_toks_no_value": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "question": "What are the title and director of the films?", "question_toks": ["What", "are", "the", "title", "and", "director", "of", "the", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1954", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0028", "db_id": "cinema", "query": "select location from cinema", "query_toks": ["SELECT", "LOCATION", "FROM", "cinema"], "query_toks_no_value": ["SELECT", "LOCATION", "FROM", "cinema"], "question": "Show all the locations.", "question_toks": ["Show", "all", "the", "locations", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1930", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0029", "db_id": "climbing", "query": "select name from mountain", "query_toks": ["SELECT", "Name", "FROM", "mountain"], "query_toks_no_value": ["SELECT", "Name", "FROM", "mountain"], "question": "List the names of mountains.", "question_toks": ["List", "the", "names", "of", "mountains", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1142", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0030", "db_id": "coffee_shop", "query": "select address from member", "query_toks": ["SELECT", "address", "FROM", "member"], "query_toks_no_value": ["SELECT", "address", "FROM", "member"], "question": "Which address do members have?", "question_toks": ["Which", "address", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0798", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0031", "db_id": "coffee_shop", "query": "select address , num_of_staff from shop", "query_toks": ["SELECT", "address", ",", "num_of_staff", "FROM", "shop"], "query_toks_no_value": ["SELECT", "address", ",", "num_of_staff", "FROM", "shop"], "question": "Find the address and staff number.", "question_toks": ["Find", "the", "address", "and", "staff", "number", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0802", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0032", "db_id": "college_1", "query": "select emp_fname from employee", "query_toks": ["SELECT", "emp_fname", "FROM", "employee"], "query_toks_no_value": ["SELECT", "emp_fname", "FROM", "employee"], "question": "What are the first names of all professors?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "professors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3274", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0033", "db_id": "college_1", "query": "select t1.emp_fname from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = \"history\"", "query_toks": ["SELECT", "T1", ".", "emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1", ".", "emp_num", "=", "T2", ".", "emp_num", "JOIN", "department", "AS", "T3", "ON", "T2", ".", "dept_code", "=", "T3", ".", "dept_code", "WHERE", "T3", ".", "dept_name", "=", "``", "history", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1", ".", "emp_num", "=", "T2", ".", "emp_num", "JOIN", "department", "AS", "T3", "ON", "T2", ".", "dept_code", "=", "T3", ".", "dept_code", "WHERE", "T3", ".", "dept_name", "=", "value"], "question": "What are the first names of all history professors?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "history", "professors", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"history\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3276", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0034", "db_id": "college_2", "query": "select name from student", "query_toks": ["SELECT", "name", "FROM", "student"], "query_toks_no_value": ["SELECT", "name", "FROM", "student"], "question": "Find the name of students.", "question_toks": ["Find", "the", "name", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1452", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0035", "db_id": "college_2", "query": "select course_id from course", "query_toks": ["SELECT", "course_id", "FROM", "course"], "query_toks_no_value": ["SELECT", "course_id", "FROM", "course"], "question": "Find the id of the courses?", "question_toks": ["Find", "the", "id", "of", "the", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1418", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0036", "db_id": "college_2", "query": "select id from instructor", "query_toks": ["SELECT", "id", "FROM", "instructor"], "query_toks_no_value": ["SELECT", "id", "FROM", "instructor"], "question": "Find the id of instructors?", "question_toks": ["Find", "the", "id", "of", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1442", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0037", "db_id": "college_2", "query": "select title from course", "query_toks": ["SELECT", "title", "FROM", "course"], "query_toks_no_value": ["SELECT", "title", "FROM", "course"], "question": "Find the name of the courses?", "question_toks": ["Find", "the", "name", "of", "the", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1420", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0038", "db_id": "college_2", "query": "select title from course", "query_toks": ["SELECT", "title", "FROM", "course"], "query_toks_no_value": ["SELECT", "title", "FROM", "course"], "question": "Find the name of the courses?", "question_toks": ["Find", "the", "name", "of", "the", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_negation_with_any_all_0038", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0039", "db_id": "college_2", "query": "select name from instructor", "query_toks": ["SELECT", "name", "FROM", "instructor"], "query_toks_no_value": ["SELECT", "name", "FROM", "instructor"], "question": "Find the name of instructors?", "question_toks": ["Find", "the", "name", "of", "instructors", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1440", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0040", "db_id": "college_2", "query": "select name from instructor", "query_toks": ["SELECT", "name", "FROM", "instructor"], "query_toks_no_value": ["SELECT", "name", "FROM", "instructor"], "question": "Find the names of instructors.", "question_toks": ["Find", "the", "names", "of", "instructors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1444", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0041", "db_id": "college_2", "query": "select name from student", "query_toks": ["SELECT", "name", "FROM", "student"], "query_toks_no_value": ["SELECT", "name", "FROM", "student"], "question": "What are the names of students?", "question_toks": ["What", "are", "the", "names", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1453", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0042", "db_id": "college_3", "query": "select fname from student", "query_toks": ["SELECT", "Fname", "FROM", "STUDENT"], "query_toks_no_value": ["SELECT", "Fname", "FROM", "STUDENT"], "question": "Find the first name of students.", "question_toks": ["Find", "the", "first", "name", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4707", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0043", "db_id": "college_3", "query": "select fname from student", "query_toks": ["SELECT", "Fname", "FROM", "STUDENT"], "query_toks_no_value": ["SELECT", "Fname", "FROM", "STUDENT"], "question": "What are the first names of all students?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4708", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0044", "db_id": "company_employee", "query": "select name from people", "query_toks": ["SELECT", "Name", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", "FROM", "people"], "question": "List the names of people", "question_toks": ["List", "the", "names", "of", "people"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4110", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0045", "db_id": "company_office", "query": "select name from buildings", "query_toks": ["SELECT", "name", "FROM", "buildings"], "query_toks_no_value": ["SELECT", "name", "FROM", "buildings"], "question": "What buildings are there? Give me the building names.", "question_toks": ["What", "buildings", "are", "there", "?", "Give", "me", "the", "building", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4576", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0046", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["SELECT", "name", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium"], "question": "Show the stadium names.", "question_toks": ["Show", "the", "stadium", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0028", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0047", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["SELECT", "name", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium"], "question": "What are the names of the stadiums?", "question_toks": ["What", "are", "the", "names", "of", "the", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0029", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0048", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["SELECT", "name", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium"], "question": "Show names for all stadiums.", "question_toks": ["Show", "names", "for", "all", "stadiums", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0031", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0049", "db_id": "concert_singer", "query": "select name from stadium", "query_toks": ["SELECT", "name", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium"], "question": "What are the names of all stadiums?", "question_toks": ["What", "are", "the", "names", "of", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0032", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0050", "db_id": "county_public_safety", "query": "select name from county_public_safety", "query_toks": ["SELECT", "Name", "FROM", "county_public_safety"], "query_toks_no_value": ["SELECT", "Name", "FROM", "county_public_safety"], "question": "List the names of counties.", "question_toks": ["List", "the", "names", "of", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2564", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0051", "db_id": "county_public_safety", "query": "select name from county_public_safety", "query_toks": ["SELECT", "Name", "FROM", "county_public_safety"], "query_toks_no_value": ["SELECT", "Name", "FROM", "county_public_safety"], "question": "What are the names of counties?", "question_toks": ["What", "are", "the", "names", "of", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2565", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0052", "db_id": "cre_Doc_Control_Systems", "query": "select employee_name from employees", "query_toks": ["SELECT", "employee_name", "FROM", "Employees"], "query_toks_no_value": ["SELECT", "employee_name", "FROM", "Employees"], "question": "List the employee's name.", "question_toks": ["List", "the", "employee", "'", "s", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2128", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0053", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates", "query_toks": ["SELECT", "template_id", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "template_id", "FROM", "Templates"], "question": "Show ids for all templates.", "question_toks": ["Show", "ids", "for", "all", "templates", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0315", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0054", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code from templates", "query_toks": ["SELECT", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "template_type_code", "FROM", "Templates"], "question": "Show all template type codes.", "question_toks": ["Show", "all", "template", "type", "codes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0345", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0055", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates", "query_toks": ["SELECT", "template_id", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "template_id", "FROM", "Templates"], "question": "What are the ids for all templates?", "question_toks": ["What", "are", "the", "ids", "for", "all", "templates", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0316", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0056", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code from templates", "query_toks": ["SELECT", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "template_type_code", "FROM", "Templates"], "question": "What are the codes of the template types?", "question_toks": ["What", "are", "the", "codes", "of", "the", "template", "types", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0346", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0057", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees", "query_toks": ["SELECT", "employee_id", "FROM", "Employees"], "query_toks_no_value": ["SELECT", "employee_id", "FROM", "Employees"], "question": "Find the employee ids.", "question_toks": ["Find", "the", "employee", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4247", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0058", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees", "query_toks": ["SELECT", "employee_id", "FROM", "Employees"], "query_toks_no_value": ["SELECT", "employee_id", "FROM", "Employees"], "question": "Show the ids of all employees.", "question_toks": ["Show", "the", "ids", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4246", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0059", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees", "query_toks": ["SELECT", "employee_id", "FROM", "Employees"], "query_toks_no_value": ["SELECT", "employee_id", "FROM", "Employees"], "question": "Give me the employee ids.", "question_toks": ["Give", "me", "the", "employee", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4241", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0060", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees", "query_toks": ["SELECT", "employee_id", "FROM", "Employees"], "query_toks_no_value": ["SELECT", "employee_id", "FROM", "Employees"], "question": "Show the ids of the employees.", "question_toks": ["Show", "the", "ids", "of", "the", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4240", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0061", "db_id": "cre_Docs_and_Epenses", "query": "select count(*) from documents", "query_toks": ["SELECT", "count", "(*)", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Documents"], "question": "How many documents are?", "question_toks": ["How", "many", "documents", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6463", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0062", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents where document_type_code = \"cv\"", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "cv", "''"], "query_toks_no_value": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "value"], "question": "Show ids for all documents in type CV.", "question_toks": ["Show", "ids", "for", "all", "documents", "in", "type", "CV", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"cv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6459", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0063", "db_id": "cre_Drama_Workshop_Groups", "query": "select customer_name from clients", "query_toks": ["SELECT", "Customer_Name", "FROM", "Clients"], "query_toks_no_value": ["SELECT", "Customer_Name", "FROM", "Clients"], "question": "What are the names of the clients?", "question_toks": ["What", "are", "the", "names", "of", "the", "clients", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5165", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0064", "db_id": "cre_Drama_Workshop_Groups", "query": "select distinct city_town from addresses;", "query_toks": ["SELECT", "T1", ".", "City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "Address_ID", "=", "T2", ".", "Address_ID"], "query_toks_no_value": ["SELECT", "T1", ".", "City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "Address_ID", "=", "T2", ".", "Address_ID"], "question": "Show all cities where at least one customer lives in.", "question_toks": ["Show", "all", "cities", "where", "at", "least", "one", "customer", "lives", "in", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 42, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5158", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0065", "db_id": "cre_Drama_Workshop_Groups", "query": "select customer_name from clients", "query_toks": ["SELECT", "Customer_Name", "FROM", "Clients"], "query_toks_no_value": ["SELECT", "Customer_Name", "FROM", "Clients"], "question": "Show the names of all the clients.", "question_toks": ["Show", "the", "names", "of", "all", "the", "clients", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5164", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0066", "db_id": "cre_Theme_park", "query": "select count(*) from visitors", "query_toks": ["SELECT", "count", "(*)", "FROM", "Visitors"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Visitors"], "question": "How many visits were?", "question_toks": ["How", "many", "visits", "were", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5967", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0067", "db_id": "cre_Theme_park", "query": "select count(*) from visitors", "query_toks": ["SELECT", "count", "(*)", "FROM", "Visitors"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Visitors"], "question": "Count the number of tourists.", "question_toks": ["Count", "the", "number", "of", "tourists", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5968", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0068", "db_id": "culture_company", "query": "select publisher from book_club", "query_toks": ["SELECT", "publisher", "FROM", "book_club"], "query_toks_no_value": ["SELECT", "publisher", "FROM", "book_club"], "question": "Show all publishers.", "question_toks": ["Show", "all", "publishers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6980", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0069", "db_id": "customer_deliveries", "query": "select state_province_county from addresses", "query_toks": ["SELECT", "state_province_county", "FROM", "addresses"], "query_toks_no_value": ["SELECT", "state_province_county", "FROM", "addresses"], "question": "Find all the states.", "question_toks": ["Find", "all", "the", "states", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2851", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0070", "db_id": "customers_and_invoices", "query": "select count(*) from products", "query_toks": ["SELECT", "count", "(*)", "FROM", "products"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "products"], "question": "How many products were there?", "question_toks": ["How", "many", "products", "were", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1627", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0071", "db_id": "customers_and_invoices", "query": "select product_name from products", "query_toks": ["SELECT", "product_name", "FROM", "Products"], "query_toks_no_value": ["SELECT", "product_name", "FROM", "Products"], "question": "Show all product names.", "question_toks": ["Show", "all", "product", "names", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1613", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0072", "db_id": "customers_campaigns_ecommerce", "query": "select customer_name , customer_phone from customers", "query_toks": ["SELECT", "customer_name", ",", "customer_phone", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_name", ",", "customer_phone", "FROM", "customers"], "question": "Show the name and phone of the customers.", "question_toks": ["Show", "the", "name", "and", "phone", "of", "the", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4625", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0073", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers", "query_toks": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers"], "question": "What are the full names of customers?", "question_toks": ["What", "are", "the", "full", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0686", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0074", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers", "query_toks": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers"], "question": "Show the first names and last names of customers.", "question_toks": ["Show", "the", "first", "names", "and", "last", "names", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0685", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0075", "db_id": "customers_card_transactions", "query": "select count(*) from customers", "query_toks": ["SELECT", "count", "(*)", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Customers"], "question": "Show the number of all customers.", "question_toks": ["Show", "the", "number", "of", "all", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0683", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0076", "db_id": "decoration_competition", "query": "select name from member", "query_toks": ["SELECT", "Name", "FROM", "member"], "query_toks_no_value": ["SELECT", "Name", "FROM", "member"], "question": "List the names of members.", "question_toks": ["List", "the", "names", "of", "members", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4498", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0077", "db_id": "device", "query": "select shop_name from shop", "query_toks": ["SELECT", "Shop_Name", "FROM", "shop"], "query_toks_no_value": ["SELECT", "Shop_Name", "FROM", "shop"], "question": "What are the names of shops?", "question_toks": ["What", "are", "the", "names", "of", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5083", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0078", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["SELECT", "document_name", "FROM", "documents"], "query_toks_no_value": ["SELECT", "document_name", "FROM", "documents"], "question": "Find names of the document.", "question_toks": ["Find", "names", "of", "the", "document", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4525", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0079", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["SELECT", "document_name", "FROM", "documents"], "query_toks_no_value": ["SELECT", "document_name", "FROM", "documents"], "question": "Find all the name of documents.", "question_toks": ["Find", "all", "the", "name", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4519", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0080", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["SELECT", "document_name", "FROM", "documents"], "query_toks_no_value": ["SELECT", "document_name", "FROM", "documents"], "question": "What are the names of documents?", "question_toks": ["What", "are", "the", "names", "of", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4520", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0081", "db_id": "document_management", "query": "select document_name from documents", "query_toks": ["SELECT", "document_name", "FROM", "documents"], "query_toks_no_value": ["SELECT", "document_name", "FROM", "documents"], "question": "What are the names of documents?", "question_toks": ["What", "are", "the", "names", "of", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4526", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0082", "db_id": "dog_kennels", "query": "select count(*) from dogs", "query_toks": ["SELECT", "count", "(*)", "FROM", "Dogs"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Dogs"], "question": "How many dogs were?", "question_toks": ["How", "many", "dogs", "were", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0978", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0083", "db_id": "dog_kennels", "query": "select count(*) from owners", "query_toks": ["SELECT", "count", "(*)", "FROM", "Owners"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Owners"], "question": "How many owners are?", "question_toks": ["How", "many", "owners", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0980", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0084", "db_id": "dog_kennels", "query": "select count(*) from professionals", "query_toks": ["SELECT", "count", "(*)", "FROM", "Professionals"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Professionals"], "question": "How many professionals are?", "question_toks": ["How", "many", "professionals", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0982", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0085", "db_id": "dog_kennels", "query": "select professional_id , role_code , email_address from professionals", "query_toks": ["SELECT", "professional_id", ",", "role_code", ",", "email_address", "FROM", "Professionals"], "query_toks_no_value": ["SELECT", "professional_id", ",", "role_code", ",", "email_address", "FROM", "Professionals"], "question": "List the professional's id, role and email.", "question_toks": ["List", "the", "professional", "'", "s", "id", ",", "role", "and", "email", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0928", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0086", "db_id": "dog_kennels", "query": "select count(*) from owners", "query_toks": ["SELECT", "count", "(*)", "FROM", "Owners"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Owners"], "question": "Find the number of owners.", "question_toks": ["Find", "the", "number", "of", "owners", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0981", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0087", "db_id": "dog_kennels", "query": "select count(*) from dogs", "query_toks": ["select", "count", "(*)", "from", "dogs"], "query_toks_no_value": ["select", "count", "(*)", "from", "dogs"], "question": "Tell me the number of dogs .", "question_toks": ["Tell", "me", "the", "number", "of", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0979", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0088", "db_id": "dog_kennels", "query": "select count(*) from professionals", "query_toks": ["SELECT", "count", "(*)", "FROM", "Professionals"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Professionals"], "question": "Find the number of professionals.", "question_toks": ["Find", "the", "number", "of", "professionals", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0983", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0089", "db_id": "dog_kennels", "query": "select professional_id , role_code , email_address from professionals", "query_toks": ["SELECT", "professional_id", ",", "role_code", ",", "email_address", "FROM", "Professionals"], "query_toks_no_value": ["SELECT", "professional_id", ",", "role_code", ",", "email_address", "FROM", "Professionals"], "question": "Give me the id, role and email of the professionals", "question_toks": ["Give", "me", "the", "id", ",", "role", "and", "email", "of", "the", "professionals"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0929", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0090", "db_id": "dorm_1", "query": "select dorm_name from dorm", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm"], "query_toks_no_value": ["SELECT", "dorm_name", "FROM", "dorm"], "question": "Find the name of dorms", "question_toks": ["Find", "the", "name", "of", "dorms"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5692", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0091", "db_id": "dorm_1", "query": "select dorm_name from dorm", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm"], "query_toks_no_value": ["SELECT", "dorm_name", "FROM", "dorm"], "question": "What are the names of all the dorms?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "dorms", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5693", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0092", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = \"tv lounge\"", "query_toks": ["SELECT", "T1", ".", "dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1", ".", "dormid", "=", "T2", ".", "dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2", ".", "amenid", "=", "T3", ".", "amenid", "WHERE", "T3", ".", "amenity_name", "=", "``", "tv", "lounge", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1", ".", "dormid", "=", "T2", ".", "dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2", ".", "amenid", "=", "T3", ".", "amenid", "WHERE", "T3", ".", "amenity_name", "=", "value", "lounge"], "question": "What is the name of each dorm that has a TV Lounge?", "question_toks": ["What", "is", "the", "name", "of", "each", "dorm", "that", "has", "a", "TV", "Lounge", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"tv lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5705", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0093", "db_id": "dorm_1", "query": "select fname , lname from student order by age", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "ORDER", "BY", "age"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "student", "ORDER", "BY", "age"], "question": "What are the first and last names of all students? Order the results by age", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "all", "students", "?", "Order", "the", "results", "by", "age"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5717", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0094", "db_id": "driving_school", "query": "select count(*) from customers", "query_toks": ["SELECT", "count", "(*)", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Customers"], "question": "List the number of customers.", "question_toks": ["List", "the", "number", "of", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6692", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0095", "db_id": "driving_school", "query": "select first_name from staff ", "query_toks": ["SELECT", "first_name", "FROM", "Staff"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "Staff"], "question": "What is the first name of the staff?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "staff", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6712", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0096", "db_id": "driving_school", "query": "select first_name from staff", "query_toks": ["SELECT", "first_name", "FROM", "Staff"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "Staff"], "question": "What is the first name of all employees?", "question_toks": ["What", "is", "the", "first", "name", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6713", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0097", "db_id": "e_learning", "query": "select count(*) from students;", "query_toks": ["SELECT", "count", "(*)", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")"], "question": "How many students are?", "question_toks": ["How", "many", "students", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3844", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0098", "db_id": "e_learning", "query": "select personal_name from students;", "query_toks": ["SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1", ".", "personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1", ".", "student_id", "=", "T2", ".", "student_id"], "query_toks_no_value": ["SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1", ".", "personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1", ".", "student_id", "=", "T2", ".", "student_id"], "question": "Find personal names of students.", "question_toks": ["Find", "personal", "names", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3843", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0099", "db_id": "e_learning", "query": "select count(*) from students;", "query_toks": ["SELECT", "count", "(*)", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")"], "question": "Count the number of students.", "question_toks": ["Count", "the", "number", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3845", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0100", "db_id": "e_learning", "query": "select personal_name from students;", "query_toks": ["SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1", ".", "personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1", ".", "student_id", "=", "T2", ".", "student_id"], "query_toks_no_value": ["SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1", ".", "personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1", ".", "student_id", "=", "T2", ".", "student_id"], "question": "Find the personal names of students.", "question_toks": ["Find", "the", "personal", "names", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3842", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0101", "db_id": "employee_hire_evaluation", "query": "select name from employee", "query_toks": ["SELECT", "name", "FROM", "employee"], "query_toks_no_value": ["SELECT", "name", "FROM", "employee"], "question": "Find the names of employees.", "question_toks": ["Find", "the", "names", "of", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0281", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0102", "db_id": "employee_hire_evaluation", "query": "select name from shop", "query_toks": ["SELECT", "name", "FROM", "shop"], "query_toks_no_value": ["SELECT", "name", "FROM", "shop"], "question": "Find the name of the all shops.", "question_toks": ["Find", "the", "name", "of", "the", "all", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0285", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0103", "db_id": "employee_hire_evaluation", "query": "select name from employee", "query_toks": ["SELECT", "name", "FROM", "employee"], "query_toks_no_value": ["SELECT", "name", "FROM", "employee"], "question": "What are the names of the employees?", "question_toks": ["What", "are", "the", "names", "of", "the", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0282", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0104", "db_id": "epinions_1", "query": "select count(*) from item", "query_toks": ["SELECT", "count", "(*)", "FROM", "item"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "item"], "question": "Find the number of items.", "question_toks": ["Find", "the", "number", "of", "items", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1718", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0105", "db_id": "epinions_1", "query": "select name from useracct", "query_toks": ["SELECT", "name", "FROM", "useracct"], "query_toks_no_value": ["SELECT", "name", "FROM", "useracct"], "question": "Find all names of users.", "question_toks": ["Find", "all", "names", "of", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1716", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0106", "db_id": "epinions_1", "query": "select name from useracct", "query_toks": ["SELECT", "name", "FROM", "useracct"], "query_toks_no_value": ["SELECT", "name", "FROM", "useracct"], "question": "Find the names of users.", "question_toks": ["Find", "the", "names", "of", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_negation_with_any_all_0106", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0107", "db_id": "epinions_1", "query": "select count(*) from useracct", "query_toks": ["SELECT", "count", "(*)", "FROM", "useracct"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "useracct"], "question": "Find the number of users.", "question_toks": ["Find", "the", "number", "of", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1717", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0108", "db_id": "epinions_1", "query": "select count(*) from item", "query_toks": ["SELECT", "count", "(*)", "FROM", "item"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "item"], "question": "Find the number of items.", "question_toks": ["Find", "the", "number", "of", "items", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1697", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0109", "db_id": "epinions_1", "query": "select title from item", "query_toks": ["SELECT", "title", "FROM", "item"], "query_toks_no_value": ["SELECT", "title", "FROM", "item"], "question": "Find the names of the items.", "question_toks": ["Find", "the", "names", "of", "the", "items", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1715", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0110", "db_id": "farm", "query": "select official_name from city", "query_toks": ["SELECT", "Official_Name", "FROM", "city"], "query_toks_no_value": ["SELECT", "Official_Name", "FROM", "city"], "question": "List the official names of cities.", "question_toks": ["List", "the", "official", "names", "of", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0048", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0111", "db_id": "film_rank", "query": "select title from film", "query_toks": ["SELECT", "Title", "FROM", "film"], "query_toks_no_value": ["SELECT", "Title", "FROM", "film"], "question": "List the title of films.", "question_toks": ["List", "the", "title", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4146", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0112", "db_id": "flight_1", "query": "select eid from employee", "query_toks": ["SELECT", "eid", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "eid", "FROM", "Employee"], "question": "Show ids for all employees.", "question_toks": ["Show", "ids", "for", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0421", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0113", "db_id": "flight_1", "query": "select eid from employee", "query_toks": ["SELECT", "eid", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "eid", "FROM", "Employee"], "question": "What are the ids of all employees?", "question_toks": ["What", "are", "the", "ids", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0422", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0114", "db_id": "flight_1", "query": "select name from employee", "query_toks": ["SELECT", "name", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "name", "FROM", "Employee"], "question": "Show names for all employees.", "question_toks": ["Show", "names", "for", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0429", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0115", "db_id": "flight_1", "query": "select name from employee", "query_toks": ["SELECT", "name", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "name", "FROM", "Employee"], "question": "What are the names of all employees?", "question_toks": ["What", "are", "the", "names", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0430", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0116", "db_id": "flight_2", "query": "select airportname from airports", "query_toks": ["SELECT", "AirportName", "FROM", "Airports"], "query_toks_no_value": ["SELECT", "AirportName", "FROM", "Airports"], "question": "Find the name of airports.", "question_toks": ["Find", "the", "name", "of", "airports", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0257", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0117", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline where t2.sourceairport = \"cvo\"", "query_toks": ["SELECT", "T1", ".", "Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1", ".", "uid", "=", "T2", ".", "Airline", "WHERE", "T2", ".", "SourceAirport", "=", "``", "cvo", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1", ".", "uid", "=", "T2", ".", "Airline", "WHERE", "T2", ".", "SourceAirport", "=", "value"], "question": "Find all airlines that have flights from airport 'CVO'", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "airport", "'", "CVO", "'"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0239", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0118", "db_id": "formula_1", "query": "select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"australian grand prix\"", "query_toks": ["SELECT", "T3", ".", "forename", ",", "T3", ".", "surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "raceid", "=", "T2", ".", "raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2", ".", "driverid", "=", "T3", ".", "driverid", "WHERE", "T1", ".", "name", "=", "``", "australian", "grand", "prix", "''"], "query_toks_no_value": ["SELECT", "T3", ".", "forename", ",", "T3", ".", "surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "raceid", "=", "T2", ".", "raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2", ".", "driverid", "=", "T3", ".", "driverid", "WHERE", "T1", ".", "name", "=", "value", "grand", "prix"], "question": "What are the first and last names of all drivers who participated in the Australian Grand Prix?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "all", "drivers", "who", "participated", "in", "the", "Australian", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"australian grand prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2182", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0119", "db_id": "game_1", "query": "select stuid from student", "query_toks": ["SELECT", "StuID", "FROM", "Student"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student"], "question": "Show student ids .", "question_toks": ["Show", "student", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6021", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0120", "db_id": "game_1", "query": "select stuid from student", "query_toks": ["SELECT", "StuID", "FROM", "Student"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student"], "question": "What are the ids of all students?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6022", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0121", "db_id": "game_1", "query": "select stuid from student where sex = \"m\"", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "value"], "question": "Show all male student ids.", "question_toks": ["Show", "all", "male", "student", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6027", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0122", "db_id": "game_1", "query": "select stuid from student where sex = \"m\"", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "value"], "question": "What are the ids of all male students?", "question_toks": ["What", "are", "the", "ids", "of", "all", "male", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6028", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0123", "db_id": "game_1", "query": "select stuid from student", "query_toks": ["SELECT", "StuID", "FROM", "Student"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student"], "question": "What are the ids of all students?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6036", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0124", "db_id": "gas_company", "query": "select company , main_industry from company", "query_toks": ["SELECT", "company", ",", "main_industry", "FROM", "company"], "query_toks_no_value": ["SELECT", "company", ",", "main_industry", "FROM", "company"], "question": "Show the company name and the main industry for all companies.", "question_toks": ["Show", "the", "company", "name", "and", "the", "main", "industry", "for", "all", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1997", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0125", "db_id": "gas_company", "query": "select headquarters from company", "query_toks": ["SELECT", "headquarters", "FROM", "company"], "query_toks_no_value": ["SELECT", "headquarters", "FROM", "company"], "question": "Show all headquarters.", "question_toks": ["Show", "all", "headquarters", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2021", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0126", "db_id": "gas_company", "query": "select company , main_industry from company", "query_toks": ["SELECT", "company", ",", "main_industry", "FROM", "company"], "query_toks_no_value": ["SELECT", "company", ",", "main_industry", "FROM", "company"], "question": "What are the companies and main industries of all companies?", "question_toks": ["What", "are", "the", "companies", "and", "main", "industries", "of", "all", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1998", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0127", "db_id": "gymnast", "query": "select distinct hometown from people", "query_toks": ["SELECT", "DISTINCT", "Hometown", "FROM", "people"], "query_toks_no_value": ["SELECT", "DISTINCT", "Hometown", "FROM", "people"], "question": "List the distinct hometowns.", "question_toks": ["List", "the", "distinct", "hometowns", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1768", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0128", "db_id": "hospital_1", "query": "select name from physician", "query_toks": ["SELECT", "name", "FROM", "physician"], "query_toks_no_value": ["SELECT", "name", "FROM", "physician"], "question": "Find the names of physicians.", "question_toks": ["Find", "the", "names", "of", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3913", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0129", "db_id": "hospital_1", "query": "select name from physician", "query_toks": ["SELECT", "name", "FROM", "physician"], "query_toks_no_value": ["SELECT", "name", "FROM", "physician"], "question": "List the name of physicians.", "question_toks": ["List", "the", "name", "of", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3912", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0130", "db_id": "hospital_1", "query": "select name from procedures where cost > 1000", "query_toks": ["SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000"], "query_toks_no_value": ["SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "value"], "question": "Find the names of all procedures which cost more than 1000?", "question_toks": ["Find", "the", "names", "of", "all", "procedures", "which", "cost", "more", "than", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3982", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0131", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "Return all the information for all employees.", "question_toks": ["Return", "all", "the", "information", "for", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3411", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0132", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "display all the information of all employees.", "question_toks": ["display", "all", "the", "information", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3513", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0133", "db_id": "hr_1", "query": "select first_name , last_name , salary from employees", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees"], "question": "What are the full name (first and last name) and salary for all employees?", "question_toks": ["What", "are", "the", "full", "name", "(", "first", "and", "last", "name", ")", "and", "salary", "for", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3425", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0134", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "What are all the employees?", "question_toks": ["What", "are", "all", "the", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3412", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0135", "db_id": "hr_1", "query": "select first_name , last_name , hire_date from employees where department_id = ( select department_id from employees where first_name = \"clara\") ", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "clara", "\")"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "value", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "value", "\")"], "question": "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara.", "question_toks": ["display", "the", "employee", "name", "(", "first", "name", "and", "last", "name", ")", "and", "hire", "date", "for", "all", "employees", "in", "the", "same", "department", "as", "Clara", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3501", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0136", "db_id": "hr_1", "query": "select * from employees", "query_toks": ["SELECT", "*", "FROM", "employees"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees"], "question": "What is all the information about employees?", "question_toks": ["What", "is", "all", "the", "information", "about", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3514", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0137", "db_id": "inn_1", "query": "select count(*) from rooms", "query_toks": ["SELECT", "count", "(*)", "FROM", "rooms"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "rooms"], "question": "How many rooms are?", "question_toks": ["How", "many", "rooms", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2637", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0138", "db_id": "inn_1", "query": "select count(*) from rooms", "query_toks": ["SELECT", "count", "(*)", "FROM", "rooms"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "rooms"], "question": "Find the number of all rooms.", "question_toks": ["Find", "the", "number", "of", "all", "rooms", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2636", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0139", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers", "query_toks": ["SELECT", "customer_details", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_details", "FROM", "customers"], "question": "What are the names of customers?", "question_toks": ["What", "are", "the", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1524", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0140", "db_id": "insurance_policies", "query": "select customer_details from customers", "query_toks": ["SELECT", "customer_details", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "customer_details", "FROM", "Customers"], "question": "Find the details of all customers.", "question_toks": ["Find", "the", "details", "of", "all", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3893", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0141", "db_id": "insurance_policies", "query": "select customer_details from customers", "query_toks": ["SELECT", "customer_details", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "customer_details", "FROM", "Customers"], "question": "List the details of the customers who do not have any policies.", "question_toks": ["List", "the", "details", "of", "the", "customers", "who", "do", "not", "have", "any", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3892", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0142", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "question": "Which customer had at least 2 policies? List the customer details and id.", "question_toks": ["Which", "customer", "had", "at", "least", "2", "policies", "?", "List", "the", "customer", "details", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3852", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0143", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "question": "Give me the the customer details and id for the customers who had two or more policies.", "question_toks": ["Give", "me", "the", "the", "customer", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "or", "more", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3853", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0144", "db_id": "journal_committee", "query": "select name from editor", "query_toks": ["SELECT", "Name", "FROM", "editor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "editor"], "question": "List the names of all editors.", "question_toks": ["List", "the", "names", "of", "all", "editors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0664", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0145", "db_id": "journal_committee", "query": "select date , theme , sales from journal", "query_toks": ["SELECT", "date", ",", "theme", ",", "sales", "FROM", "journal"], "query_toks_no_value": ["SELECT", "date", ",", "theme", ",", "sales", "FROM", "journal"], "question": "List the date, theme and sales of the journal.", "question_toks": ["List", "the", "date", ",", "theme", "and", "sales", "of", "the", "journal", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0665", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0146", "db_id": "loan_1", "query": "select avg(credit_score) from customer", "query_toks": ["SELECT", "avg", "(", "credit_score", ")", "FROM", "customer"], "query_toks_no_value": ["SELECT", "avg", "(", "credit_score", ")", "FROM", "customer"], "question": "Find the average credit score of all the customers.", "question_toks": ["Find", "the", "average", "credit", "score", "of", "all", "the", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3084", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0147", "db_id": "local_govt_and_lot", "query": "select count(*) from customers", "query_toks": ["SELECT", "count", "(*)", "FROM", "customers"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "customers"], "question": "How many customers are there?", "question_toks": ["How", "many", "customers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4858", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0148", "db_id": "local_govt_in_alabama", "query": "select count(*) from events", "query_toks": ["SELECT", "count", "(*)", "FROM", "EVENTS"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "EVENTS"], "question": "How many events are there?", "question_toks": ["How", "many", "events", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2151", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0149", "db_id": "local_govt_mdm", "query": "select cmi_cross_ref_id from cmi_cross_references", "query_toks": ["SELECT", "cmi_cross_ref_id", "FROM", "cmi_cross_references"], "query_toks_no_value": ["SELECT", "cmi_cross_ref_id", "FROM", "cmi_cross_references"], "question": "What are all cmi cross reference id?", "question_toks": ["What", "are", "all", "cmi", "cross", "reference", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2658", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0150", "db_id": "manufacturer", "query": "select market_rate , name from furniture", "query_toks": ["SELECT", "Market_Rate", ",", "name", "FROM", "furniture"], "query_toks_no_value": ["SELECT", "Market_Rate", ",", "name", "FROM", "furniture"], "question": "Find the market shares and names of furnitures", "question_toks": ["Find", "the", "market", "shares", "and", "names", "of", "furnitures", "which", "no", "any", "company", "is", "producing", "in", "our", "records", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3403", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0151", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from enzyme", "query_toks": ["SELECT", "count", "(*)", "FROM", "enzyme"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "enzyme"], "question": "How many enzymes are?", "question_toks": ["How", "many", "enzymes", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0961", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0152", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from enzyme", "query_toks": ["SELECT", "count", "(*)", "FROM", "enzyme"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "enzyme"], "question": "What is the count of all enzymes?", "question_toks": ["What", "is", "the", "count", "of", "all", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0962", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0153", "db_id": "mountain_photos", "query": "select count(*) from camera_lens", "query_toks": ["SELECT", "count", "(*)", "FROM", "camera_lens"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "camera_lens"], "question": "How many camera lenses are?", "question_toks": ["How", "many", "camera", "lenses", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3722", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0154", "db_id": "movie_1", "query": "select mid , avg(stars) from rating group by mid", "query_toks": ["SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "GROUP", "BY", "mID"], "query_toks_no_value": ["SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "GROUP", "BY", "mID"], "question": "Find the average rating star for each movie id.", "question_toks": ["Find", "the", "average", "rating", "star", "for", "each", "movie", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2514", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0155", "db_id": "movie_1", "query": "select mid , avg(stars) from rating group by mid", "query_toks": ["SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "GROUP", "BY", "mID"], "query_toks_no_value": ["SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "GROUP", "BY", "mID"], "question": "What is the average rating for each movie id?", "question_toks": ["What", "is", "the", "average", "rating", "for", "each", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2515", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0156", "db_id": "movie_1", "query": "select title from movie where mid not in (select mid from rating)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")"], "query_toks_no_value": ["SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")"], "question": "Find the titles of all movies that have no ratings.", "question_toks": ["Find", "the", "titles", "of", "all", "movies", "that", "have", "no", "ratings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2458", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0157", "db_id": "movie_1", "query": "select title from movie where mid not in (select mid from rating)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")"], "query_toks_no_value": ["SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")"], "question": "What are the titles of all movies that have not been rated?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "have", "not", "been", "rated", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2459", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0158", "db_id": "movie_1", "query": "select distinct name from reviewer", "query_toks": ["SELECT", "DISTINCT", "name", "FROM", "Reviewer"], "query_toks_no_value": ["SELECT", "DISTINCT", "name", "FROM", "Reviewer"], "question": "What are the different names of all reviewers?", "question_toks": ["What", "are", "the", "different", "names", "of", "all", "reviewers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2461", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0159", "db_id": "movie_1", "query": "select distinct title from movie", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "Movie"], "query_toks_no_value": ["SELECT", "DISTINCT", "title", "FROM", "Movie"], "question": "Find the titles of all movies.", "question_toks": ["Find", "the", "titles", "of", "all", "movies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2484", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0160", "db_id": "movie_1", "query": "select distinct title from movie", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "Movie"], "query_toks_no_value": ["SELECT", "DISTINCT", "title", "FROM", "Movie"], "question": "What are the titles of all movies?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2485", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0161", "db_id": "movie_1", "query": "select director from movie group by director having count(*) = 1", "query_toks": ["SELECT", "director", "FROM", "Movie", "GROUP", "BY", "director", "HAVING", "count", "(*)", "=", "1"], "query_toks_no_value": ["SELECT", "director", "FROM", "Movie", "GROUP", "BY", "director", "HAVING", "count", "(*)", "=", "1"], "question": "What are the names of all directors who have made one movie?", "question_toks": ["What", "are", "the", "names", "of", "all", "directors", "who", "have", "made", "one", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2493", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0162", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by director", "query_toks": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "max", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "director"], "query_toks_no_value": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "max", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "director"], "question": "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating.", "question_toks": ["For", "each", "director", ",", "return", "the", "director", "'", "s", "name", "together", "with", "the", "title", "of", "the", "movie", "they", "directed", "that", "received", "the", "highest", "rating", "among", "all", "of", "their", "movies", ",", "and", "the", "value", "of", "that", "rating", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2502", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0163", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by director", "query_toks": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "max", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "director"], "query_toks_no_value": ["SELECT", "T2", ".", "title", ",", "T1", ".", "stars", ",", "T2", ".", "director", ",", "max", "(", "T1", ".", "stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "GROUP", "BY", "director"], "question": "For each director, what are the titles and ratings for all the movies they reviewed?", "question_toks": ["For", "each", "director", ",", "what", "are", "the", "titles", "and", "ratings", "for", "all", "the", "movies", "they", "reviewed", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2503", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0164", "db_id": "movie_1", "query": "select mid from movie;", "query_toks": ["SELECT", "mID", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "mID", "FROM", "Rating"], "question": "What are the ids of all moviest?", "question_toks": ["What", "are", "the", "ids", "of", "all", "moviest", "hat", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2517", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0165", "db_id": "movie_1", "query": "select rid from reviewer;", "query_toks": ["SELECT", "rID", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "rID", "FROM", "Rating"], "question": "What are the ids of all reviewers?", "question_toks": ["What", "are", "the", "ids", "of", "all", "reviewers", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2521", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0166", "db_id": "museum_visit", "query": "select count(*) from visitor", "query_toks": ["SELECT", "count", "(*)", "FROM", "visitor"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "visitor"], "question": "Find the number of all visitors.", "question_toks": ["Find", "the", "number", "of", "all", "visitors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0427", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0167", "db_id": "music_2", "query": "select distinct title from songs", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "songs"], "query_toks_no_value": ["SELECT", "DISTINCT", "title", "FROM", "songs"], "question": "What are the different names of all songs?", "question_toks": ["What", "are", "the", "different", "names", "of", "all", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5253", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0168", "db_id": "music_4", "query": "select famous_title from artist", "query_toks": ["SELECT", "Famous_Title", "FROM", "artist"], "query_toks_no_value": ["SELECT", "Famous_Title", "FROM", "artist"], "question": "Find the famous titles of artists.", "question_toks": ["Find", "the", "famous", "titles", "of", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6189", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0169", "db_id": "music_4", "query": "select famous_title from artist", "query_toks": ["SELECT", "Famous_Title", "FROM", "artist"], "query_toks_no_value": ["SELECT", "Famous_Title", "FROM", "artist"], "question": "What are the famous titles of artists?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6190", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0170", "db_id": "network_1", "query": "select id from highschooler", "query_toks": ["SELECT", "id", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "id", "FROM", "Highschooler"], "question": "Show ids of all students.", "question_toks": ["Show", "ids", "of", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0894", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0171", "db_id": "network_1", "query": "select min(grade) from highschooler", "query_toks": ["SELECT", "min", "(", "grade", ")", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "min", "(", "grade", ")", "FROM", "Highschooler"], "question": "What is the lowest grade of students?", "question_toks": ["What", "is", "the", "lowest", "grade", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0917", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0172", "db_id": "network_1", "query": "select name from highschooler", "query_toks": ["SELECT", "name", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "name", "FROM", "Highschooler"], "question": "Show names of all high school students.", "question_toks": ["Show", "names", "of", "all", "high", "school", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0896", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0173", "db_id": "network_2", "query": "select name from person", "query_toks": ["SELECT", "name", "FROM", "person"], "query_toks_no_value": ["SELECT", "name", "FROM", "person"], "question": "What are the names of all people?", "question_toks": ["What", "are", "the", "names", "of", "all", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4477", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0174", "db_id": "news_report", "query": "select name from journalist", "query_toks": ["SELECT", "Name", "FROM", "journalist"], "query_toks_no_value": ["SELECT", "Name", "FROM", "journalist"], "question": "List the names of journalists.", "question_toks": ["List", "the", "names", "of", "journalists", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2816", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0175", "db_id": "orchestra", "query": "select orchestra from orchestra", "query_toks": ["SELECT", "Orchestra", "FROM", "orchestra"], "query_toks_no_value": ["SELECT", "Orchestra", "FROM", "orchestra"], "question": "What are the orchestras?", "question_toks": ["What", "are", "the", "orchestras", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0855", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0176", "db_id": "party_host", "query": "select name from host", "query_toks": ["SELECT", "Name", "FROM", "HOST"], "query_toks_no_value": ["SELECT", "Name", "FROM", "HOST"], "question": "What are the names of hosts?", "question_toks": ["What", "are", "the", "names", "of", "hosts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2689", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0177", "db_id": "party_host", "query": "select name from host", "query_toks": ["SELECT", "Name", "FROM", "HOST"], "query_toks_no_value": ["SELECT", "Name", "FROM", "HOST"], "question": "List the names of hosts.", "question_toks": ["List", "the", "names", "of", "hosts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2688", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0178", "db_id": "party_people", "query": "select party_name from party", "query_toks": ["SELECT", "party_name", "FROM", "party"], "query_toks_no_value": ["SELECT", "party_name", "FROM", "party"], "question": "Show names of parties.", "question_toks": ["Show", "names", "of", "parties", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2063", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0179", "db_id": "party_people", "query": "select member_name from member", "query_toks": ["SELECT", "member_name", "FROM", "member"], "query_toks_no_value": ["SELECT", "member_name", "FROM", "member"], "question": "Show all member names.", "question_toks": ["Show", "all", "member", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2073", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0180", "db_id": "party_people", "query": "select member_name from member", "query_toks": ["SELECT", "member_name", "FROM", "member"], "query_toks_no_value": ["SELECT", "member_name", "FROM", "member"], "question": "What are the names of members?", "question_toks": ["What", "are", "the", "names", "of", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2074", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0181", "db_id": "party_people", "query": "select minister from party", "query_toks": ["SELECT", "minister", "FROM", "party"], "query_toks_no_value": ["SELECT", "minister", "FROM", "party"], "question": "Show all ministers.", "question_toks": ["Show", "all", "ministers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2049", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0182", "db_id": "performance_attendance", "query": "select name from member", "query_toks": ["SELECT", "Name", "FROM", "member"], "query_toks_no_value": ["SELECT", "Name", "FROM", "member"], "question": "List the names of members.", "question_toks": ["List", "the", "names", "of", "members", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1321", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0183", "db_id": "pets_1", "query": "select avg(age) from student", "query_toks": ["select", "avg", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student"], "question": "Find the average age of students.", "question_toks": ["Find", "the", "average", "age", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0085", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0184", "db_id": "pets_1", "query": "select avg(age) from student", "query_toks": ["select", "avg", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student"], "question": "What is the average age for all students", "question_toks": ["What", "is", "the", "average", "age", "for", "all", "students"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0086", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0185", "db_id": "phone_1", "query": "select model_name from chip_model", "query_toks": ["SELECT", "model_name", "FROM", "chip_model"], "query_toks_no_value": ["SELECT", "model_name", "FROM", "chip_model"], "question": "Find the names of the chip models.", "question_toks": ["Find", "the", "names", "of", "the", "chip", "models", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1050", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0186", "db_id": "phone_1", "query": "select avg(ram_mib) from chip_model", "query_toks": ["SELECT", "avg", "(", "RAM_MiB", ")", "FROM", "chip_model"], "query_toks_no_value": ["SELECT", "avg", "(", "RAM_MiB", ")", "FROM", "chip_model"], "question": "Find the average ram mib size of the chip models.", "question_toks": ["Find", "the", "average", "ram", "mib", "size", "of", "the", "chip", "models", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1049", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0187", "db_id": "phone_market", "query": "select name from phone", "query_toks": ["SELECT", "Name", "FROM", "phone"], "query_toks_no_value": ["SELECT", "Name", "FROM", "phone"], "question": "List the names of phones.", "question_toks": ["List", "the", "names", "of", "phones", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1992", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0188", "db_id": "pilot_record", "query": "select pilot_name from pilot", "query_toks": ["SELECT", "Pilot_name", "FROM", "pilot"], "query_toks_no_value": ["SELECT", "Pilot_name", "FROM", "pilot"], "question": "List the names of pilots.", "question_toks": ["List", "the", "names", "of", "pilots", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2097", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0189", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors", "query_toks": ["SELECT", "count", "(*)", "FROM", "Ref_colors"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Ref_colors"], "question": "How many colors are?", "question_toks": ["How", "many", "colors", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5600", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0190", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors", "query_toks": ["SELECT", "count", "(*)", "FROM", "Ref_colors"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Ref_colors"], "question": "Count the number of colors.", "question_toks": ["Count", "the", "number", "of", "colors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5601", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0191", "db_id": "products_gen_characteristics", "query": "select characteristic_name , other_characteristic_details , characteristic_data_type from characteristics", "query_toks": ["SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS"], "query_toks_no_value": ["SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS"], "question": "Give the names, details, and data types of characteristics.", "question_toks": ["Give", "the", "names", ",", "details", ",", "and", "data", "types", "of", "characteristics", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5597", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0192", "db_id": "products_gen_characteristics", "query": "select characteristic_name , other_characteristic_details , characteristic_data_type from characteristics", "query_toks": ["SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS"], "query_toks_no_value": ["SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS"], "question": "What are the names, details and data types of the characteristics?", "question_toks": ["What", "are", "the", "names", ",", "details", "and", "data", "types", "of", "the", "characteristics", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5596", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0193", "db_id": "protein_institute", "query": "select name from building", "query_toks": ["SELECT", "name", "FROM", "building"], "query_toks_no_value": ["SELECT", "name", "FROM", "building"], "question": "Show the name of buildings.", "question_toks": ["Show", "the", "name", "of", "buildings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1920", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0194", "db_id": "race_track", "query": "select name from track", "query_toks": ["SELECT", "name", "FROM", "track"], "query_toks_no_value": ["SELECT", "name", "FROM", "track"], "question": "Return the names of tracks.", "question_toks": ["Return", "the", "names", "of", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0776", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0195", "db_id": "race_track", "query": "select name from track", "query_toks": ["SELECT", "name", "FROM", "track"], "query_toks_no_value": ["SELECT", "name", "FROM", "track"], "question": "Show all track names.", "question_toks": ["Show", "all", "track", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0775", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0196", "db_id": "railway", "query": "select objectnumber from railway", "query_toks": ["SELECT", "ObjectNumber", "FROM", "railway"], "query_toks_no_value": ["SELECT", "ObjectNumber", "FROM", "railway"], "question": "List the object number of railways.", "question_toks": ["List", "the", "object", "number", "of", "railways", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5648", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0197", "db_id": "restaurant_1", "query": "select fname , lname from student where age > 18 and sex = \"f\"", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "Student", "WHERE", "Age", ">", "18", "AND", "Sex", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "Fname", ",", "Lname", "FROM", "Student", "WHERE", "Age", ">", "value", "AND", "Sex", "=", "value"], "question": "List all female students age is older than 18. List students' first name and last name.", "question_toks": ["List", "all", "female", "students", "age", "is", "older", "than", "18", ".", "List", "students", "'", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 18.0, null], "and", [false, 2, [0, [0, 5, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2835", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0198", "db_id": "sakila_1", "query": "select first_name from customer", "query_toks": ["SELECT", "first_name", "FROM", "customer"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "customer"], "question": "What are the first names of customers?", "question_toks": ["What", "are", "the", "first", "names", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3004", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0199", "db_id": "sakila_1", "query": "select title from film where length > 100 or rating = \"pg\"", "query_toks": ["SELECT", "title", "FROM", "film", "WHERE", "LENGTH", ">", "100", "OR", "rating", "=", "``", "pg", "''"], "query_toks_no_value": ["SELECT", "title", "FROM", "film", "WHERE", "LENGTH", ">", "value", "OR", "rating", "=", "value"], "question": "Find all the films longer than 100 minutes, or rated PG. List the titles.", "question_toks": ["Find", "all", "the", "films", "longer", "than", "100", "minutes", ",", "or", "rated", "PG", ".", "List", "the", "titles", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 3, [0, [0, 40, false], null], 100.0, null], "or", [false, 2, [0, [0, 42, false], null], "\"pg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2992", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0200", "db_id": "school_bus", "query": "select home_city from driver", "query_toks": ["SELECT", "home_city", "FROM", "driver"], "query_toks_no_value": ["SELECT", "home_city", "FROM", "driver"], "question": "Show all home cities.", "question_toks": ["Show", "all", "home", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6356", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0201", "db_id": "school_finance", "query": "select school_name from school", "query_toks": ["SELECT", "school_name", "FROM", "school"], "query_toks_no_value": ["SELECT", "school_name", "FROM", "school"], "question": "List the names of the schools.", "question_toks": ["List", "the", "names", "of", "the", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1895", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0202", "db_id": "school_finance", "query": "select donator_name from endowment", "query_toks": ["SELECT", "donator_name", "FROM", "endowment"], "query_toks_no_value": ["SELECT", "donator_name", "FROM", "endowment"], "question": "Show the names of all the donors.", "question_toks": ["Show", "the", "names", "of", "all", "the", "donors", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1898", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0203", "db_id": "school_player", "query": "select location from school", "query_toks": ["SELECT", "LOCATION", "FROM", "school"], "query_toks_no_value": ["SELECT", "LOCATION", "FROM", "school"], "question": "List the locations of all schools.", "question_toks": ["List", "the", "locations", "of", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4892", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0204", "db_id": "school_player", "query": "select school, enrollment from school;", "query_toks": ["SELECT", "Enrollment", "FROM", "school"], "query_toks_no_value": ["SELECT", "Enrollment", "FROM", "school"], "question": "List the enrollment for each school.", "question_toks": ["List", "the", "enrollment", "for", "each", "school", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4867", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0205", "db_id": "scientist_1", "query": "select count(*) from scientists", "query_toks": ["SELECT", "count", "(*)", "FROM", "scientists"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "scientists"], "question": "How many scientists are?", "question_toks": ["How", "many", "scientists", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6510", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0206", "db_id": "scientist_1", "query": "select name from scientists", "query_toks": ["SELECT", "Name", "FROM", "scientists"], "query_toks_no_value": ["SELECT", "Name", "FROM", "scientists"], "question": "Find the name of scientists.", "question_toks": ["Find", "the", "name", "of", "scientists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6507", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0207", "db_id": "scientist_1", "query": "select count(*) from scientists", "query_toks": ["SELECT", "count", "(*)", "FROM", "scientists"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "scientists"], "question": "Find the number of scientists.", "question_toks": ["Find", "the", "number", "of", "scientists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6509", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0208", "db_id": "ship_1", "query": "select name , flag from ship", "query_toks": ["SELECT", "name", ",", "flag", "FROM", "ship"], "query_toks_no_value": ["SELECT", "name", ",", "flag", "FROM", "ship"], "question": "Find the name and flag of ships.", "question_toks": ["Find", "the", "name", "and", "flag", "of", "ships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6264", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0209", "db_id": "ship_1", "query": "select name , class from ship", "query_toks": ["SELECT", "name", ",", "CLASS", "FROM", "ship"], "query_toks_no_value": ["SELECT", "name", ",", "CLASS", "FROM", "ship"], "question": "what are the names and classes of ships?", "question_toks": ["what", "are", "the", "names", "and", "classes", "of", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6260", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0210", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["SELECT", "Name", "FROM", "ship"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ship"], "question": "List the name of ships", "question_toks": ["List", "the", "name", "of", "ships"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4024", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0211", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["SELECT", "Name", "FROM", "ship"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ship"], "question": "What are the names of the ships?", "question_toks": ["What", "are", "the", "names", "of", "the", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4025", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0212", "db_id": "shop_membership", "query": "select name from member", "query_toks": ["SELECT", "name", "FROM", "member"], "query_toks_no_value": ["SELECT", "name", "FROM", "member"], "question": "Show member names.", "question_toks": ["Show", "member", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5424", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0213", "db_id": "shop_membership", "query": "select city from branch", "query_toks": ["SELECT", "city", "FROM", "branch"], "query_toks_no_value": ["SELECT", "city", "FROM", "branch"], "question": "What are the cities?", "question_toks": ["What", "are", "the", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5435", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0214", "db_id": "shop_membership", "query": "select name , city from branch", "query_toks": ["SELECT", "name", ",", "city", "FROM", "branch"], "query_toks_no_value": ["SELECT", "name", ",", "city", "FROM", "branch"], "question": "List the branch names and cities.", "question_toks": ["List", "the", "branch", "names", "and", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5426", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0215", "db_id": "shop_membership", "query": "select name , city from branch", "query_toks": ["SELECT", "name", ",", "city", "FROM", "branch"], "query_toks_no_value": ["SELECT", "name", ",", "city", "FROM", "branch"], "question": "What are the names and cities of the branches?", "question_toks": ["What", "are", "the", "names", "and", "cities", "of", "the", "branches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5427", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0216", "db_id": "shop_membership", "query": "select name from member", "query_toks": ["SELECT", "name", "FROM", "member"], "query_toks_no_value": ["SELECT", "name", "FROM", "member"], "question": "What are the names of the members?", "question_toks": ["What", "are", "the", "names", "of", "the", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5425", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0217", "db_id": "shop_membership", "query": "select city from branch", "query_toks": ["SELECT", "city", "FROM", "branch"], "query_toks_no_value": ["SELECT", "city", "FROM", "branch"], "question": "Show all cities .", "question_toks": ["Show", "all", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5434", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0218", "db_id": "singer", "query": "select name from singer", "query_toks": ["SELECT", "Name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "Name", "FROM", "singer"], "question": "List the name of singers.", "question_toks": ["List", "the", "name", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1026", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0219", "db_id": "singer", "query": "select name from singer", "query_toks": ["SELECT", "Name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "Name", "FROM", "singer"], "question": "What is the sname of every sing?", "question_toks": ["What", "is", "the", "sname", "of", "every", "sing", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1027", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0220", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid", "query_toks": ["SELECT", "sum", "(", "T2", ".", "balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid"], "query_toks_no_value": ["SELECT", "sum", "(", "T2", ".", "balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1", ".", "custid", "=", "T2", ".", "custid"], "question": "Find the total savings balance of all accounts.", "question_toks": ["Find", "the", "total", "savings", "balance", "of", "all", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1776", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0221", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "college"], "query_toks_no_value": ["SELECT", "sum", "(", "enr", ")", "FROM", "college"], "question": "What is the total number of students?", "question_toks": ["What", "is", "the", "total", "number", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5045", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0222", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "college"], "query_toks_no_value": ["SELECT", "sum", "(", "enr", ")", "FROM", "college"], "question": "What is the total number of enrollment of schools?", "question_toks": ["What", "is", "the", "total", "number", "of", "enrollment", "of", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5044", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0223", "db_id": "soccer_2", "query": "select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = \"mid\" ", "query_toks": ["SELECT", "T1", ".", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "pPos", "=", "``", "mid", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "pPos", "=", "value"], "question": "What are the names of all the states with college students playing in the mid position?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5035", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0224", "db_id": "solvency_ii", "query": "select product_name from products", "query_toks": ["SELECT", "Product_Name", "FROM", "Products"], "query_toks_no_value": ["SELECT", "Product_Name", "FROM", "Products"], "question": "List the names of products.", "question_toks": ["List", "the", "names", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4597", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0225", "db_id": "sports_competition", "query": "select name from club", "query_toks": ["SELECT", "name", "FROM", "CLub"], "query_toks_no_value": ["SELECT", "name", "FROM", "CLub"], "question": "List the names of clubs.", "question_toks": ["List", "the", "names", "of", "clubs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3371", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0226", "db_id": "sports_competition", "query": "select name from club", "query_toks": ["SELECT", "name", "FROM", "CLub"], "query_toks_no_value": ["SELECT", "name", "FROM", "CLub"], "question": "What are the names of all clubs?", "question_toks": ["What", "are", "the", "names", "of", "all", "clubs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3372", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0227", "db_id": "sports_competition", "query": "select country from competition", "query_toks": ["SELECT", "country", "FROM", "competition"], "query_toks_no_value": ["SELECT", "country", "FROM", "competition"], "question": "Find all the countries.", "question_toks": ["Find", "all", "the", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3387", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0228", "db_id": "sports_competition", "query": "select country from competition", "query_toks": ["SELECT", "country", "FROM", "competition"], "query_toks_no_value": ["SELECT", "country", "FROM", "competition"], "question": "What are the countries that have ever participated in any competitions?", "question_toks": ["What", "are", "the", "countries", "that", "have", "ever", "participated", "in", "any", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3388", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0229", "db_id": "sports_competition", "query": "select distinct year from competition", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "competition"], "query_toks_no_value": ["SELECT", "DISTINCT", "YEAR", "FROM", "competition"], "question": "What are the different years for all competitions?", "question_toks": ["What", "are", "the", "different", "years", "for", "all", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3346", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0230", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = \"movies\" ", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2", ".", "playlist_id", "=", "T3", ".", "id", "WHERE", "T3", ".", "name", "=", "``", "movies", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2", ".", "playlist_id", "=", "T3", ".", "id", "WHERE", "T3", ".", "name", "=", "value"], "question": "What are the names of all tracks that are on the Movies playlist?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "the", "Movies", "playlist", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0644", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0231", "db_id": "store_product", "query": "select product from product", "query_toks": ["SELECT", "product", "FROM", "product"], "query_toks_no_value": ["SELECT", "product", "FROM", "product"], "question": "What are the names of all products?", "question_toks": ["What", "are", "the", "names", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4939", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0232", "db_id": "storm_record", "query": "select name from storm", "query_toks": ["SELECT", "name", "FROM", "storm"], "query_toks_no_value": ["SELECT", "name", "FROM", "storm"], "question": "What are the names of storms?", "question_toks": ["What", "are", "the", "names", "of", "storms", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2719", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0233", "db_id": "storm_record", "query": "select region_name from region", "query_toks": ["SELECT", "region_name", "FROM", "region"], "query_toks_no_value": ["SELECT", "region_name", "FROM", "region"], "question": "Show names for all regions.", "question_toks": ["Show", "names", "for", "all", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2696", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0234", "db_id": "storm_record", "query": "select region_name from region", "query_toks": ["SELECT", "region_name", "FROM", "region"], "query_toks_no_value": ["SELECT", "region_name", "FROM", "region"], "question": "Return the names of all regions.", "question_toks": ["Return", "the", "names", "of", "all", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2697", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0235", "db_id": "storm_record", "query": "select name from storm", "query_toks": ["SELECT", "name", "FROM", "storm"], "query_toks_no_value": ["SELECT", "name", "FROM", "storm"], "question": "Show all storm names.", "question_toks": ["Show", "all", "storm", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2722", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0236", "db_id": "student_1", "query": "select distinct t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 1", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "firstname", ",", "T1", ".", "lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1", ".", "classroom", "=", "T2", ".", "classroom", "WHERE", "T1", ".", "grade", "=", "1"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "firstname", ",", "T1", ".", "lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1", ".", "classroom", "=", "T2", ".", "classroom", "WHERE", "T1", ".", "grade", "=", "value"], "question": "Find all first-grade students. Report their first and last names.", "question_toks": ["Find", "all", "first", "-", "grade", "students", ".", "Report", "their", "first", "and", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4076", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0237", "db_id": "student_assessment", "query": "select * from student_course_registrations", "query_toks": ["SELECT", "*", "FROM", "student_course_registrations"], "query_toks_no_value": ["SELECT", "*", "FROM", "student_course_registrations"], "question": "What are all details of the students who registered?", "question_toks": ["What", "are", "all", "details", "of", "the", "students", "who", "registered", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0104", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0238", "db_id": "student_assessment", "query": "select * from student_course_registrations", "query_toks": ["SELECT", "*", "FROM", "student_course_registrations"], "query_toks_no_value": ["SELECT", "*", "FROM", "student_course_registrations"], "question": "What are all info of students who registered any courses?", "question_toks": ["What", "are", "all", "info", "of", "students", "who", "registered", "any", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0103", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0239", "db_id": "student_transcripts_tracking", "query": "select semester_name from semesters", "query_toks": ["SELECT", "semester_name", "FROM", "Semesters"], "query_toks_no_value": ["SELECT", "semester_name", "FROM", "Semesters"], "question": "Which semesters do we have? List the semester name.", "question_toks": ["Which", "semesters", "do", "we", "have", "?", "List", "the", "semester", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0543", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0240", "db_id": "student_transcripts_tracking", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the last name of the students who live in North Carolina?", "question_toks": ["What", "are", "the", "last", "name", "of", "the", "students", "who", "live", "in", "North", "Carolina", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"northcarolina\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0550", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0241", "db_id": "student_transcripts_tracking", "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\" ", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the last name of the students who currently live in the state of North Carolina.", "question_toks": ["Find", "the", "last", "name", "of", "the", "students", "who", "currently", "live", "in", "the", "state", "of", "North", "Carolina", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"northcarolina\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0549", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0242", "db_id": "swimming", "query": "select name from stadium", "query_toks": ["SELECT", "name", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium"], "question": "Find the names of stadiums.", "question_toks": ["Find", "the", "names", "of", "stadiums", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5622", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0243", "db_id": "theme_gallery", "query": "select name from artist", "query_toks": ["SELECT", "name", "FROM", "artist"], "query_toks_no_value": ["SELECT", "name", "FROM", "artist"], "question": "Show names for artists.", "question_toks": ["Show", "names", "for", "artists", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1671", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0244", "db_id": "theme_gallery", "query": "select name from artist", "query_toks": ["SELECT", "name", "FROM", "artist"], "query_toks_no_value": ["SELECT", "name", "FROM", "artist"], "question": "What are the names of artists?", "question_toks": ["What", "are", "the", "names", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1672", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0245", "db_id": "theme_gallery", "query": "select name , year_join from artist", "query_toks": ["SELECT", "name", ",", "year_join", "FROM", "artist"], "query_toks_no_value": ["SELECT", "name", ",", "year_join", "FROM", "artist"], "question": "Show all artist names and the year joined.", "question_toks": ["Show", "all", "artist", "names", "and", "the", "year", "joined", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1655", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0246", "db_id": "theme_gallery", "query": "select name from artist ", "query_toks": ["SELECT", "name", "FROM", "artist"], "query_toks_no_value": ["SELECT", "name", "FROM", "artist"], "question": "Show all artist names.", "question_toks": ["Show", "all", "artist", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1681", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0247", "db_id": "tracking_grants_for_research", "query": "select project_details from projects", "query_toks": ["SELECT", "project_details", "FROM", "Projects"], "query_toks_no_value": ["SELECT", "project_details", "FROM", "Projects"], "question": "What are the details for all projects?", "question_toks": ["What", "are", "the", "details", "for", "all", "projects", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4339", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0248", "db_id": "tracking_grants_for_research", "query": "select project_details from projects", "query_toks": ["SELECT", "project_details", "FROM", "Projects"], "query_toks_no_value": ["SELECT", "project_details", "FROM", "Projects"], "question": "List the project details of the projects.", "question_toks": ["List", "the", "project", "details", "of", "the", "projects", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4338", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0249", "db_id": "tracking_share_transactions", "query": "select lot_details from lots", "query_toks": ["SELECT", "lot_details", "FROM", "Lots"], "query_toks_no_value": ["SELECT", "lot_details", "FROM", "Lots"], "question": "What are the details of the lots?", "question_toks": ["What", "are", "the", "details", "of", "the", "lots", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5884", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0250", "db_id": "train_station", "query": "select name from station", "query_toks": ["SELECT", "name", "FROM", "station"], "query_toks_no_value": ["SELECT", "name", "FROM", "station"], "question": "Show station names.", "question_toks": ["Show", "station", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6618", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0251", "db_id": "train_station", "query": "select t2.name from train_station as t1 join train as t2 on t1.train_id = t2.train_id", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "train_station", "AS", "T1", "JOIN", "train", "AS", "T2", "ON", "T1", ".", "train_id", "=", "T2", ".", "train_id"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "train_station", "AS", "T1", "JOIN", "train", "AS", "T2", "ON", "T1", ".", "train_id", "=", "T2", ".", "train_id"], "question": "Find the names of the trains.", "question_toks": ["Find", "the", "names", "of", "the", "trains", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6620", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0252", "db_id": "train_station", "query": "select name , total_passengers from station", "query_toks": ["SELECT", "name", ",", "total_passengers", "FROM", "station"], "query_toks_no_value": ["SELECT", "name", ",", "total_passengers", "FROM", "station"], "question": "Show the names and total passengers for all train stations.", "question_toks": ["Show", "the", "names", "and", "total", "passengers", "for", "all", "train", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6602", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0253", "db_id": "train_station", "query": "select location from station", "query_toks": ["SELECT", "LOCATION", "FROM", "station"], "query_toks_no_value": ["SELECT", "LOCATION", "FROM", "station"], "question": "Show all locations.", "question_toks": ["Show", "all", "locations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6607", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0254", "db_id": "tvshow", "query": "select id from tv_channel", "query_toks": ["SELECT", "id", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "id", "FROM", "TV_Channel"], "question": "find the id of tv channels.", "question_toks": ["find", "the", "id", "of", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0643", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0255", "db_id": "tvshow", "query": "select country from tv_channel", "query_toks": ["SELECT", "country", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "country", "FROM", "TV_Channel"], "question": "which countries h]ave tv channels?", "question_toks": ["which", "countries", "'", "tv", "channels", "are", "playing", "any", "cartoon", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0635", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0256", "db_id": "tvshow", "query": "select id from tv_channel", "query_toks": ["SELECT", "id", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "id", "FROM", "TV_Channel"], "question": "What are the ids of the all TV channels?", "question_toks": ["What", "are", "the", "ids", "of", "the", "all", "TV", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0644", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0257", "db_id": "tvshow", "query": "select package_option from tv_channel", "query_toks": ["SELECT", "package_option", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "package_option", "FROM", "TV_Channel"], "question": "find the package option of the tv channel.", "question_toks": ["find", "the", "package", "option", "of", "the", "tv", "channel", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0645", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0258", "db_id": "tvshow", "query": "select package_option from tv_channel", "query_toks": ["SELECT", "package_option", "FROM", "TV_Channel"], "query_toks_no_value": ["SELECT", "package_option", "FROM", "TV_Channel"], "question": "What are the package options of all tv channels?", "question_toks": ["What", "are", "the", "package", "options", "of", "all", "tv", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0646", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0259", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel", "query_toks": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel"], "query_toks_no_value": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel"], "question": "What is the pixel aspect ratio and country of origin for all TV channels?", "question_toks": ["What", "is", "the", "pixel", "aspect", "ratio", "and", "country", "of", "origin", "for", "all", "TV", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0640", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0260", "db_id": "twitter_1", "query": "select avg(followers) from user_profiles", "query_toks": ["SELECT", "avg", "(", "followers", ")", "FROM", "user_profiles"], "query_toks_no_value": ["SELECT", "avg", "(", "followers", ")", "FROM", "user_profiles"], "question": "Find the average number of followers for the users.", "question_toks": ["Find", "the", "average", "number", "of", "followers", "for", "the", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0298", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0261", "db_id": "voter_2", "query": "select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.vice_president_vote", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "VICE_PRESIDENT_Vote"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "VICE_PRESIDENT_Vote"], "question": "Find the distinct first names of all the students who have vice president votes.", "question_toks": ["Find", "the", "distinct", "first", "names", "of", "all", "the", "students", "who", "have", "vice", "president", "votes", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5494", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0262", "db_id": "voter_2", "query": "select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = president_vote", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1", ".", "StuID", "=", "PRESIDENT_Vote"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1", ".", "StuID", "=", "PRESIDENT_Vote"], "question": "Find the distinct last names of all the students who have president votes.", "question_toks": ["Find", "the", "distinct", "last", "names", "of", "all", "the", "students", "who", "have", "president", "votes", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5496", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0263", "db_id": "wedding", "query": "select name , age from people where is_male = \"t\"", "query_toks": ["SELECT", "name", ",", "age", "FROM", "people", "WHERE", "is_male", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "name", ",", "age", "FROM", "people", "WHERE", "is_male", "=", "value"], "question": "Show the name and age for all male people.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "male", "people", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1641", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0264", "db_id": "wedding", "query": "select name from church", "query_toks": ["SELECT", "name", "FROM", "church"], "query_toks_no_value": ["SELECT", "name", "FROM", "church"], "question": "Show all church names.", "question_toks": ["Show", "all", "church", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1642", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"]}, {"id": "negation_with_any_all_0265", "db_id": "workshop_paper", "query": "select author from submission", "query_toks": ["SELECT", "Author", "FROM", "submission"], "query_toks_no_value": ["SELECT", "Author", "FROM", "submission"], "question": "Which authors submit to any workshop?", "question_toks": ["Which", "authors", "submit", "to", "any", "workshop", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5843", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "negation_with_any_all_0266", "db_id": "workshop_paper", "query": "select author from submission", "query_toks": ["SELECT", "Author", "FROM", "submission"], "query_toks_no_value": ["SELECT", "Author", "FROM", "submission"], "question": "List the authors who have submission to any workshop.", "question_toks": ["List", "the", "authors", "who", "have", "submission", "to", "any", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5842", "is_simplification": true, "simplifications_tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"]}, {"id": "and_with_or_in_nl_0000", "db_id": "hr_1", "query": "select * from employees where first_name like \"%d%\" order by salary desc", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "\"%", "d", "%\"", "ORDER", "BY", "salary", "DESC"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "\"%", "d", "%\"", "ORDER", "BY", "salary", "DESC"], "question": "display all the information for all employees who have the letters D in their first name and also arrange the result in descending order by salary.", "question_toks": ["display", "all", "the", "information", "for", "all", "employees", "who", "have", "the", "letters", "D", "in", "their", "first", "name", "and", "also", "arrange", "the", "result", "in", "descending", "order", "by", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%d%\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0000", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0001", "db_id": "hr_1", "query": "select * from employees where first_name like \"%d%\" or first_name like \"%s%\" ", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "\"%", "d", "%\"", "OR", "first_name", "LIKE", "\"%", "s", "%\""], "query_toks_no_value": ["SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "\"%", "d", "%\"", "OR", "first_name", "LIKE", "\"%", "s", "%\""], "question": "display all the information for all employees who have the letters D or S in their first name.", "question_toks": ["display", "all", "the", "information", "for", "all", "employees", "who", "have", "the", "letters", "D", "or", "S", "in", "their", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%d%\"", null], "or", [false, 9, [0, [0, 15, false], null], "\"%s%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3437", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"]}, {"id": "and_with_or_in_nl_0002", "db_id": "hr_1", "query": "select * from employees where salary between 8000 and 12000", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000"], "question": "display all the information of employees whose salary is in the range of 8000 and 12000", "question_toks": ["display", "all", "the", "information", "of", "employees", "whose", "salary", "is", "in", "the", "range", "of", "8000", "and", "12000"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 8000.0, 12000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3423", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0003", "db_id": "movie_1", "query": "select distinct year from movie as t1 join rating as t2 on t1.mid = t2.mid where t2.stars >= 4", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "stars", ">=", "4"], "query_toks_no_value": ["SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "stars", ">=", "value"], "question": "Find all years that have a movie that received a rating of 4 or 5", "question_toks": ["Find", "all", "years", "that", "have", "a", "movie", "that", "received", "a", "rating", "of", "4", "or", "5"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2452", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"]}, {"id": "and_with_or_in_nl_0004", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "fname", ",", "T1", ".", "city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "``", "milk", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "fname", ",", "T1", ".", "city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "value"], "question": "Find the different first names and cities of the students who have allergy to milk.", "question_toks": ["Find", "the", "different", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "to", "milk", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0004", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0005", "db_id": "formula_1", "query": "select circuitid from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "france", "''", "OR", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "value", "OR", "country", "=", "value"], "question": "Find the id of circuits that belong to France or Belgium?", "question_toks": ["Find", "the", "id", "of", "circuits", "that", "belong", "to", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0005", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0006", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300", "query_toks": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300"], "query_toks_no_value": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "value"], "question": "Find the name and gender type of the dorms whose capacity is greater than 300.", "question_toks": ["Find", "the", "name", "and", "gender", "type", "of", "the", "dorms", "whose", "capacity", "is", "greater", "than", "300", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0006", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0007", "db_id": "college_1", "query": "select t1.stu_fname , t1.stu_lname from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num where t2.enroll_grade = \"a\"", "query_toks": ["SELECT", "T1", ".", "stu_fname", ",", "T1", ".", "stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1", ".", "stu_num", "=", "T2", ".", "stu_num", "WHERE", "T2", ".", "enroll_grade", "=", "``", "a", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "stu_fname", ",", "T1", ".", "stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1", ".", "stu_num", "=", "T2", ".", "stu_num", "WHERE", "T2", ".", "enroll_grade", "=", "value"], "question": "Find names of all students who took some course and got A.", "question_toks": ["Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "got", "A", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"a\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3319", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0008", "db_id": "insurance_policies", "query": "select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id having count(*) > 2 union select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id where t1.amount_claimed = ( select max(amount_claimed) from claims )", "query_toks": ["SELECT", "T1", ".", "Date_Claim_Made", ",", "T1", ".", "Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "GROUP", "BY", "T1", ".", "Claim_id", "HAVING", "count", "(*)", ">", "2", "UNION", "SELECT", "T1", ".", "Date_Claim_Made", ",", "T1", ".", "Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "WHERE", "T1", ".", "Amount_Claimed", "=", "(", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "Date_Claim_Made", ",", "T1", ".", "Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "GROUP", "BY", "T1", ".", "Claim_id", "HAVING", "count", "(*)", ">", "2", "UNION", "SELECT", "T1", ".", "Date_Claim_Made", ",", "T1", ".", "Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "WHERE", "T1", ".", "Amount_Claimed", "=", "value", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")"], "question": "Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made.", "question_toks": ["Find", "the", "claims", "that", "led", "to", "more", "than", "two", "settlements", "or", "have", "the", "maximum", "claim", "value", ".", "For", "each", "of", "them", ",", "return", "the", "date", "the", "claim", "was", "made", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3851", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0009", "db_id": "allergy_1", "query": "select distinct t1.fname from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "fname", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "``", "milk", "''", "OR", "T2", ".", "Allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "fname", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "value", "OR", "T2", ".", "Allergy", "=", "value"], "question": "Find the different first names of the students who have allergy to milk or cat.", "question_toks": ["Find", "the", "different", "first", "names", "of", "the", "students", "who", "have", "allergy", "to", "milk", "or", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0531", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0010", "db_id": "dog_kennels", "query": "select 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", "query_toks": ["SELECT", "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"], "query_toks_no_value": ["SELECT", "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"], "question": "Find the cell phone of the professionals who operate two or more types of treatments.", "question_toks": ["Find", "the", "cell", "phone", "of", "the", "professionals", "who", "operate", "two", "or", "more", "types", "of", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0943", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0011", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\"", "query_toks": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "value"], "question": "Find the id and location of circuits that belong to France?", "question_toks": ["Find", "the", "id", "and", "location", "of", "circuits", "that", "belong", "to", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2215", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0012", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\"", "query_toks": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value"], "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana", "question_toks": ["Find", "the", "id", ",", "last", "name", "and", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0012", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0013", "db_id": "dog_kennels", "query": "select cell_number from professionals where state = \"indiana\" union select 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", "query_toks": ["SELECT", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "``", "indiana", "''", "UNION", "SELECT", "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"], "query_toks_no_value": ["SELECT", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value", "UNION", "SELECT", "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"], "question": "Find the cell phone of the professionals who live in the state of Indiana or have performed more than two treatments.", "question_toks": ["Find", "the", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana", "or", "have", "performed", "more", "than", "two", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0923", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0014", "db_id": "coffee_shop", "query": "select name from member where membership_card = \"black\" or age < 30", "query_toks": ["SELECT", "name", "FROM", "member", "WHERE", "Membership_card", "=", "``", "black", "''", "OR", "age", "<", "30"], "query_toks_no_value": ["SELECT", "name", "FROM", "member", "WHERE", "Membership_card", "=", "value", "OR", "age", "<", "value"], "question": "Find the names of members who are under age 30 or with black membership card.", "question_toks": ["Find", "the", "names", "of", "members", "who", "are", "under", "age", "30", "or", "with", "black", "membership", "card", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"black\"", null], "or", [false, 4, [0, [0, 9, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0792", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0015", "db_id": "coffee_shop", "query": "select name , member_id from member where age < 30", "query_toks": ["SELECT", "name", ",", "member_id", "FROM", "member", "WHERE", "age", "<", "30"], "query_toks_no_value": ["SELECT", "name", ",", "member_id", "FROM", "member", "WHERE", "age", "<", "value"], "question": "Find the ids and names of members who are under age 30.", "question_toks": ["Find", "the", "ids", "and", "names", "of", "members", "who", "are", "under", "age", "30", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0015", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0016", "db_id": "game_1", "query": "select t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["SELECT", "T2", ".", "fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "SportName", "=", "``", "football", "''", "OR", "T1", ".", "SportName", "=", "``", "lacrosse", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "SportName", "=", "value", "OR", "T1", ".", "SportName", "=", "value"], "question": "Find the first name of students who are playing Football or Lacrosse.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "are", "playing", "Football", "or", "Lacrosse", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6049", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0017", "db_id": "game_1", "query": "select t2.lname , t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"lacrosse\"", "query_toks": ["SELECT", "T2", ".", "lname", ",", "T2", ".", "fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "SportName", "=", "``", "football", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "lname", ",", "T2", ".", "fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "SportName", "=", "value"], "question": "Find the last and first name of students who are playing Lacrosse.", "question_toks": ["Find", "the", "last", "and", "first", "name", "of", "students", "who", "are", "playing", "Lacrosse", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0017", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0018", "db_id": "dorm_1", "query": "select lname from student where sex = \"f\" and city_code = \"bal\"", "query_toks": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "``", "f", "''", "AND", "city_code", "=", "``", "bal", "''"], "query_toks_no_value": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "value", "AND", "city_code", "=", "value"], "question": "Find the last name of students who is either female (sex is F) and living in the city of code BAL.", "question_toks": ["Find", "the", "last", "name", "of", "students", "who", "is", "either", "female", "(", "sex", "is", "F", ")", "and", "living", "in", "the", "city", "of", "code", "BAL", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"bal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5706", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_UNION_REMOVED"]}, {"id": "and_with_or_in_nl_0019", "db_id": "network_2", "query": "select distinct t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" or t2.friend = \"alice\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "``", "dan", "''", "OR", "T2", ".", "friend", "=", "``", "alice", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "value", "OR", "T2", ".", "friend", "=", "value"], "question": "Find the age of the person who is a friend of Dan or Alice.", "question_toks": ["Find", "the", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "or", "Alice", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4442", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0020", "db_id": "dorm_1", "query": "select dorm_name from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100"], "query_toks_no_value": ["SELECT", "dorm_name", "FROM", "dorm", "WHERE", "student_capacity", ">", "value", "OR", "student_capacity", "<", "value"], "question": "Find the name of the dorms whose capacity is greater than 300 or less than 100.", "question_toks": ["Find", "the", "name", "of", "the", "dorms", "whose", "capacity", "is", "greater", "than", "300", "or", "less", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5698", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0021", "db_id": "flight_4", "query": "select name , city , country , elevation from airports where city = \"new york\"", "query_toks": ["SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "``", "new", "york", "''"], "query_toks_no_value": ["SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "value", "york"], "question": "Find the name, city, country, and elevation of the airports in the city of New York.", "question_toks": ["Find", "the", "name", ",", "city", ",", "country", ",", "and", "elevation", "of", "the", "airports", "in", "the", "city", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0021", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0022", "db_id": "flight_4", "query": "select elevation from airports where city = \"new york\"", "query_toks": ["SELECT", "elevation", "FROM", "airports", "WHERE", "city", "=", "``", "new", "york", "''"], "query_toks_no_value": ["SELECT", "elevation", "FROM", "airports", "WHERE", "city", "=", "value", "york"], "question": "Find the altitude (or elevation) of the airports in the city of New York.", "question_toks": ["Find", "the", "altitude", "(", "or", "elevation", ")", "of", "the", "airports", "in", "the", "city", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6805", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0023", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" ", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "name", ",", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "``", "dan", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "name", ",", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "value"], "question": "Find the name and age of the person who is a friend of Dan.", "question_toks": ["Find", "the", "name", "and", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0023", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0024", "db_id": "cre_Theme_park", "query": "select name from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["SELECT", "Name", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''"], "query_toks_no_value": ["SELECT", "Name", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "value", "OR", "How_to_Get_There", "=", "value"], "question": "Find the names of the tourist attractions that we get to by bus or walk.", "question_toks": ["Find", "the", "names", "of", "the", "tourist", "attractions", "that", "we", "get", "to", "by", "bus", "or", "walk", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5912", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0025", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\"", "query_toks": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''"], "query_toks_no_value": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "value"], "question": "Find the names and opening hours of the tourist attractions that we get to by bus.", "question_toks": ["Find", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "we", "get", "to", "by", "bus", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0025", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0026", "db_id": "college_3", "query": "select dname from department where division = \"as\" union select dname from department where division = \"en\"", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "as", "''", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "en", "''"], "query_toks_no_value": ["SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "value", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "value"], "question": "Find the names of departments that are either in division AS or in division EN.", "question_toks": ["Find", "the", "names", "of", "departments", "that", "are", "either", "in", "division", "AS", "or", "in", "division", "EN", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"as\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"en\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4705", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0027", "db_id": "allergy_1", "query": "select count(*) from student where age > 18 and stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"animal\")", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "``", "animal", "\")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "age", ">", "value", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "value", "\")"], "question": "Find the number of students who are older than 18 and do not have allergy to animal.", "question_toks": ["Find", "the", "number", "of", "students", "who", "are", "older", "than", "18", "and", "do", "not", "have", "allergy", "to", "animal", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null], "and", [true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0533", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0028", "db_id": "dog_kennels", "query": "select 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", "query_toks": ["SELECT", "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"], "query_toks_no_value": ["SELECT", "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"], "question": "Find the zip code of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0941", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0029", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the owner id and zip code of the owner who spent the most money in total for dogs.", "question_toks": ["Find", "the", "owner", "id", "and", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0029", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0030", "db_id": "cre_Theme_park", "query": "select t3.visit_date from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"vincent\" or t2.tourist_details = \"vivian\"", "query_toks": ["SELECT", "T3", ".", "Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "``", "vincent", "''", "OR", "T2", ".", "Tourist_Details", "=", "``", "vivian", "''"], "query_toks_no_value": ["SELECT", "T3", ".", "Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "value", "OR", "T2", ".", "Tourist_Details", "=", "value"], "question": "For each tourist attraction, return its date when the tourists named Vincent or Vivian visited there.", "question_toks": ["For", "each", "tourist", "attraction", ",", "return", "its", "date", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"vincent\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"vivian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5934", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0031", "db_id": "manufacturer", "query": "select open_year from manufacturer where num_of_shops > 10 or num_of_factories < 10", "query_toks": ["SELECT", "open_year", "FROM", "manufacturer", "WHERE", "num_of_shops", ">", "10", "OR", "Num_of_Factories", "<", "10"], "query_toks_no_value": ["SELECT", "open_year", "FROM", "manufacturer", "WHERE", "num_of_shops", ">", "value", "OR", "Num_of_Factories", "<", "value"], "question": "Give me the year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.", "question_toks": ["Give", "me", "the", "year", "of", "opening", "of", "the", "manufacturers", "that", "have", "either", "less", "than", "10", "factories", "or", "more", "than", "10", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 10.0, null], "or", [false, 4, [0, [0, 4, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3398", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0032", "db_id": "manufacturer", "query": "select name , open_year from manufacturer where num_of_factories < 10", "query_toks": ["SELECT", "name", ",", "open_year", "FROM", "manufacturer", "WHERE", "Num_of_Factories", "<", "10"], "query_toks_no_value": ["SELECT", "name", ",", "open_year", "FROM", "manufacturer", "WHERE", "Num_of_Factories", "<", "value"], "question": "Give me the name and year of opening of the manufacturers that have less than 10 factories.", "question_toks": ["Give", "me", "the", "name", "and", "year", "of", "opening", "of", "the", "manufacturers", "that", "have", "less", "than", "10", "factories", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0032", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0033", "db_id": "insurance_policies", "query": "select t1.customer_details from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["SELECT", "T1", ".", "customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2", "EXCEPT", "SELECT", "T1", ".", "customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2", "EXCEPT", "SELECT", "T1", ".", "customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "question": "Give me the the customer details who had two or more policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customer", "details", "who", "had", "two", "or", "more", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3853", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0034", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) = 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", "=", "2", "EXCEPT", "SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", "=", "2", "EXCEPT", "SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "question": "Give me the the customer details and id for the customers who had two policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customer", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0034", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0035", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600", "query_toks": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600"], "query_toks_no_value": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "value"], "question": "Give the ids and names of products with price lower than 600.", "question_toks": ["Give", "the", "ids", "and", "names", "of", "products", "with", "price", "lower", "than", "600", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0035", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0036", "db_id": "department_store", "query": "select product_id from products where product_price < 600 or product_price > 900", "query_toks": ["SELECT", "product_id", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900"], "query_toks_no_value": ["SELECT", "product_id", "FROM", "products", "WHERE", "product_price", "<", "value", "OR", "product_price", ">", "value"], "question": "Give the ids of products with price lower than 600 or higher than 900.", "question_toks": ["Give", "the", "ids", "of", "products", "with", "price", "lower", "than", "600", "or", "higher", "than", "900", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4770", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0037", "db_id": "allergy_1", "query": "select count(*) from student where age > 18 and stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "``", "food", "\")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "age", ">", "value", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "value", "\")"], "question": "How many students are over 18 and do not have allergy to food type ?", "question_toks": ["How", "many", "students", "are", "over", "18", "and", "do", "not", "have", "allergy", "to", "food", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null], "and", [true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0534", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0038", "db_id": "movie_1", "query": "select distinct year from movie as t1 join rating as t2 on t1.mid = t2.mid where t2.stars >= 4", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "stars", ">=", "4"], "query_toks_no_value": ["SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1", ".", "mID", "=", "T2", ".", "mID", "WHERE", "T2", ".", "stars", ">=", "value"], "question": "In what years did a movie receive a 4 or 5 star rating?", "question_toks": ["In", "what", "years", "did", "a", "movie", "receive", "a", "4", "or", "5", "star", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2453", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"]}, {"id": "and_with_or_in_nl_0039", "db_id": "game_injury", "query": "select t1.season from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id where t3.injury = \"foot injury\" or t3.injury = \"knee problem\"", "query_toks": ["SELECT", "T1", ".", "season", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id", "WHERE", "T3", ".", "injury", "=", "``", "foot", "injury", "''", "OR", "T3", ".", "injury", "=", "``", "knee", "problem", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "season", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id", "WHERE", "T3", ".", "injury", "=", "value", "injury", "OR", "T3", ".", "injury", "=", "value", "problem"], "question": "In which season did any player have an injury of 'Foot injury' or 'Knee problem'?", "question_toks": ["In", "which", "season", "did", "any", "player", "have", "an", "injury", "of", "'", "Foot", "injury", "'", "or", "'", "Knee", "problem", "'?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"foot injury\"", null], "or", [false, 2, [0, [0, 18, false], null], "\"knee problem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1284", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0040", "db_id": "game_injury", "query": "select t1.season , t2.name from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id where t3.injury = \"foot injury\"", "query_toks": ["SELECT", "T1", ".", "season", ",", "T2", ".", "name", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id", "WHERE", "T3", ".", "injury", "=", "``", "foot", "injury", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "season", ",", "T2", ".", "name", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id", "WHERE", "T3", ".", "injury", "=", "value", "injury"], "question": "In which season and which stadium did any player have an injury of 'Foot injury'?", "question_toks": ["In", "which", "season", "and", "which", "stadium", "did", "any", "player", "have", "an", "injury", "of", "'", "Foot", "injury", "'?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"foot injury\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0040", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0041", "db_id": "baseball_1", "query": "select name_first from player where weight > 220 or height < 75", "query_toks": ["SELECT", "name_first", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75"], "query_toks_no_value": ["SELECT", "name_first", "FROM", "player", "WHERE", "weight", ">", "value", "OR", "height", "<", "value"], "question": "List players' first name who have weight greater than 220 or height shorter than 75.", "question_toks": ["List", "players", "'", "first", "name", "who", "have", "weight", "greater", "than", "220", "or", "height", "shorter", "than", "75", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3663", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0042", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code from documents where document_name = \"noel cv\" or document_name = \"king book\"", "query_toks": ["SELECT", "document_type_code", "FROM", "Documents", "WHERE", "document_name", "=", "``", "noel", "cv", "''", "OR", "document_name", "=", "``", "king", "book", "''"], "query_toks_no_value": ["SELECT", "document_type_code", "FROM", "Documents", "WHERE", "document_name", "=", "value", "cv", "OR", "document_name", "=", "value", "book"], "question": "List the document type code for the document with name 'Noel CV' or name 'King Book'.", "question_toks": ["List", "the", "document", "type", "code", "for", "the", "document", "with", "name", "'", "Noel", "CV", "'", "or", "name", "'", "King", "Book", "'."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"noel cv\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"king book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6401", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0043", "db_id": "phone_1", "query": "select t2.hardware_model_name from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t1.launch_year = 2002 or t1.ram_mib > 32", "query_toks": ["SELECT", "T2", ".", "Hardware_Model_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Model_name", "=", "T2", ".", "chip_model", "WHERE", "T1", ".", "Launch_year", "=", "2002", "OR", "T1", ".", "RAM_MiB", ">", "32"], "query_toks_no_value": ["SELECT", "T2", ".", "Hardware_Model_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Model_name", "=", "T2", ".", "chip_model", "WHERE", "T1", ".", "Launch_year", "=", "value", "OR", "T1", ".", "RAM_MiB", ">", "value"], "question": "List the hardware model name for all the phones that were launched in year 2002 or have RAM size greater than 32.", "question_toks": ["List", "the", "hardware", "model", "name", "for", "all", "the", "phones", "that", "were", "launched", "in", "year", "2002", "or", "have", "RAM", "size", "greater", "than", "32", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 2002.0, null], "or", [false, 3, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1029", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0044", "db_id": "phone_1", "query": "select t2.hardware_model_name , t2.company_name from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t1.launch_year = 2002", "query_toks": ["SELECT", "T2", ".", "Hardware_Model_name", ",", "T2", ".", "Company_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Model_name", "=", "T2", ".", "chip_model", "WHERE", "T1", ".", "Launch_year", "=", "2002"], "query_toks_no_value": ["SELECT", "T2", ".", "Hardware_Model_name", ",", "T2", ".", "Company_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Model_name", "=", "T2", ".", "chip_model", "WHERE", "T1", ".", "Launch_year", "=", "value"], "question": "List the hardware model name and company name for all the phones that were launched in year 2002.", "question_toks": ["List", "the", "hardware", "model", "name", "and", "company", "name", "for", "all", "the", "phones", "that", "were", "launched", "in", "year", "2002", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0044", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0045", "db_id": "school_finance", "query": "select t1.ihsaa_football_class from school as t1 join budget as t2 on t1.school_id = t2.school_id where budgeted > 6000 or year < 2003 order by t2.total_budget_percent_invested , t2.total_budget_percent_budgeted", "query_toks": ["SELECT", "T1", ".", "IHSAA_Football_Class", "FROM", "school", "AS", "T1", "JOIN", "budget", "AS", "T2", "ON", "T1", ".", "school_id", "=", "T2", ".", "school_id", "WHERE", "Budgeted", ">", "6000", "OR", "YEAR", "<", "2003", "ORDER", "BY", "T2", ".", "total_budget_percent_invested", ",", "T2", ".", "total_budget_percent_budgeted"], "query_toks_no_value": ["SELECT", "T1", ".", "IHSAA_Football_Class", "FROM", "school", "AS", "T1", "JOIN", "budget", "AS", "T2", "ON", "T1", ".", "school_id", "=", "T2", ".", "school_id", "WHERE", "Budgeted", ">", "value", "OR", "YEAR", "<", "value", "ORDER", "BY", "T2", ".", "total_budget_percent_invested", ",", "T2", ".", "total_budget_percent_budgeted"], "question": "List the IHSAA Football Class that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.", "question_toks": ["List", "the", "IHSAA", "Football", "Class", "that", "have", "more", "than", "6000", "of", "budgeted", "amount", "or", "were", "founded", "before", "2003", ",", "in", "the", "order", "of", "percent", "of", "total", "invested", "budget", "and", "total", "budgeted", "budget", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 6000.0, null], "or", [false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null], [0, [0, 12, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1909", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0046", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220", "query_toks": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "height", "<", "75"], "query_toks_no_value": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "height", "<", "value"], "question": "List players' first name and last name who have weight greater than 220.", "question_toks": ["List", "players", "'", "first", "name", "and", "last", "name", "who", "have", "weight", "greater", "than", "220", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0046", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0047", "db_id": "hr_1", "query": "select * from employees where salary between 8000 and 12000 and commission_pct != \"null\"", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000", "AND", "commission_pct", "!=", "``", "null", "''"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000", "AND", "commission_pct", "!=", "value"], "question": "Return all information about employees with salaries between 8000 and 12000 for which commission is not null", "question_toks": ["Return", "all", "information", "about", "employees", "with", "salaries", "between", "8000", "and", "12000", "for", "which", "commission", "is", "not", "null"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 8000.0, 12000.0], "and", [false, 7, [0, [0, 22, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3424", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0048", "db_id": "hospital_1", "query": "select t1.name , count(*) from physician as t1 join patient as t2 on t1.employeeid = t2.pcp group by t1.employeeid", "query_toks": ["SELECT", "T1", ".", "name", ",", "count", "(*)", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1", ".", "employeeid", "=", "T2", ".", "PCP", "GROUP", "BY", "T1", ".", "employeeid"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "count", "(*)", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1", ".", "employeeid", "=", "T2", ".", "PCP", "GROUP", "BY", "T1", ".", "employeeid"], "question": "Return the name of each physician and the number of patients.", "question_toks": ["Return", "the", "name", "of", "each", "physician", "and", "the", "number", "of", "patients", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0048", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0049", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2", ".", "first_name", ",", "T2", ".", "last_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1", ".", "actor_id", "=", "T2", ".", "actor_id", "GROUP", "BY", "T2", ".", "actor_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "first_name", ",", "T2", ".", "last_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1", ".", "actor_id", "=", "T2", ".", "actor_id", "GROUP", "BY", "T2", ".", "actor_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Return the full name of the actor or actress who starred in the greatest number of films.", "question_toks": ["Return", "the", "full", "name", "of", "the", "actor", "or", "actress", "who", "starred", "in", "the", "greatest", "number", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2953", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0050", "db_id": "hospital_1", "query": "select name from physician", "query_toks": ["SELECT", "name", "FROM", "physician"], "query_toks_no_value": ["SELECT", "name", "FROM", "physician"], "question": "Return the name of each physician.", "question_toks": ["Return", "the", "name", "of", "each", "physician", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3929", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0051", "db_id": "customers_and_invoices", "query": "select t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) > 2", "query_toks": ["SELECT", "T2", ".", "order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1", ".", "order_id", "=", "T2", ".", "order_id", "GROUP", "BY", "T2", ".", "order_id", "HAVING", "count", "(*)", ">", "2"], "query_toks_no_value": ["SELECT", "T2", ".", "order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1", ".", "order_id", "=", "T2", ".", "order_id", "GROUP", "BY", "T2", ".", "order_id", "HAVING", "count", "(*)", ">", "2"], "question": "Return the details for orderes with two or more invoices.", "question_toks": ["Return", "the", "details", "for", "orderes", "with", "two", "or", "more", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1610", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0052", "db_id": "customers_and_invoices", "query": "select t2.order_id , t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) = 2", "query_toks": ["SELECT", "T2", ".", "order_id", ",", "T2", ".", "order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1", ".", "order_id", "=", "T2", ".", "order_id", "GROUP", "BY", "T2", ".", "order_id", "HAVING", "count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T2", ".", "order_id", ",", "T2", ".", "order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1", ".", "order_id", "=", "T2", ".", "order_id", "GROUP", "BY", "T2", ".", "order_id", "HAVING", "count", "(*)", "=", "2"], "question": "Return the order ids and details for orderes with two invoices.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "orderes", "with", "two", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0052", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0053", "db_id": "culture_company", "query": "select title from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", "FROM", "movie", "WHERE", "YEAR", "<=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "title", "FROM", "movie", "WHERE", "YEAR", "<=", "value", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "question": "Return the title released in the year 2000 or earlier that had the highest worldwide gross.", "question_toks": ["Return", "the", "title", "released", "in", "the", "year", "2000", "or", "earlier", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6987", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0054", "db_id": "culture_company", "query": "select title , director from movie where year = 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "=", "value", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "question": "Return the title and director of the movie released in the year 2000 that had the highest worldwide gross.", "question_toks": ["Return", "the", "title", "and", "director", "of", "the", "movie", "released", "in", "the", "year", "2000", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0054", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0055", "db_id": "manufactory_1", "query": "select name , price from products where price >= 180 order by price desc", "query_toks": ["SELECT", "name", ",", "price", "FROM", "products", "WHERE", "price", ">=", "180", "ORDER", "BY", "price", "DESC"], "query_toks_no_value": ["SELECT", "name", ",", "price", "FROM", "products", "WHERE", "price", ">=", "value", "ORDER", "BY", "price", "DESC"], "question": "Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order)", "question_toks": ["Select", "the", "name", "and", "price", "of", "all", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", ")"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0055", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"]}, {"id": "and_with_or_in_nl_0056", "db_id": "manufactory_1", "query": "select name from products where price >= 180 order by price desc , name asc", "query_toks": ["SELECT", "name", "FROM", "products", "WHERE", "price", ">=", "180", "ORDER", "BY", "price", "DESC", ",", "name", "ASC"], "query_toks_no_value": ["SELECT", "name", "FROM", "products", "WHERE", "price", ">=", "value", "ORDER", "BY", "price", "DESC", ",", "name", "ASC"], "question": "Select the name of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).", "question_toks": ["Select", "the", "name", "of", "all", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", "),", "and", "then", "by", "name", "(", "in", "ascending", "order", ")."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null], [0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5336", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0057", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema where openning_year = 2011", "query_toks": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", "=", "2011"], "query_toks_no_value": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", "=", "value"], "question": "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011.", "question_toks": ["Show", "the", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0057", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0058", "db_id": "school_finance", "query": "select school_name from school where school_id in (select school_id from budget where year >= 2002);", "query_toks": ["SELECT", "T2", ".", "school_name", "FROM", "budget", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1", ".", "school_id", "=", "T2", ".", "school_id", "WHERE", "T1", ".", "year", ">=", "2002"], "query_toks_no_value": ["SELECT", "T2", ".", "school_name", "FROM", "budget", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1", ".", "school_id", "=", "T2", ".", "school_id", "WHERE", "T1", ".", "year", ">=", "value"], "question": "Show each school name in year 2002 or after.", "question_toks": ["Show", "each", "school", "name", "in", "year", "2002", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1902", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0059", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"teqnology\"", "query_toks": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "value"], "question": "Show the first year and last year of parties with theme \"Teqnology\".", "question_toks": ["Show", "the", "first", "year", "and", "last", "year", "of", "parties", "with", "theme", "\"", "Teqnology", "\"."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0059", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0060", "db_id": "shop_membership", "query": "select min(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "``", "london", "''"], "query_toks_no_value": ["SELECT", "min", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "value", "OR", "city", "=", "value"], "question": "Show minimum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": ["Show", "minimum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5410", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"]}, {"id": "and_with_or_in_nl_0061", "db_id": "customers_and_products_contacts", "query": "select product_type_code , product_name from products where product_price > 1000", "query_toks": ["SELECT", "product_type_code", ",", "product_name", "FROM", "products", "WHERE", "product_price", ">", "1000"], "query_toks_no_value": ["SELECT", "product_type_code", ",", "product_name", "FROM", "products", "WHERE", "product_price", ">", "value"], "question": "Show the product type and name for the products with price higher than 1000.", "question_toks": ["Show", "the", "product", "type", "and", "name", "for", "the", "products", "with", "price", "higher", "than", "1000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0061", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0062", "db_id": "customers_campaigns_ecommerce", "query": "select order_shipping_charges , customer_id from customer_orders where order_status_code = \"paid\"", "query_toks": ["SELECT", "order_shipping_charges", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "``", "paid", "''"], "query_toks_no_value": ["SELECT", "order_shipping_charges", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "value"], "question": "Show the shipping charge and customer id for customer orders with order status Paid.", "question_toks": ["Show", "the", "shipping", "charge", "and", "customer", "id", "for", "customer", "orders", "with", "order", "status", "Paid", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"paid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0062", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0063", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "T2", ".", "capacity", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "year", ">=", "value", "GROUP", "BY", "T2", ".", "stadium_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Show the stadium name and capacity with most number of concerts in year 2014.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0063", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0064", "db_id": "cinema", "query": "select avg(capacity) from cinema where openning_year >= 2011", "query_toks": ["SELECT", "avg", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">=", "2011"], "query_toks_no_value": ["SELECT", "avg", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">=", "value"], "question": "Show the average capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "the", "average", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1940", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"]}, {"id": "and_with_or_in_nl_0065", "db_id": "party_host", "query": "select first_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["SELECT", "First_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "spring", "''", "OR", "Party_Theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["SELECT", "First_year", "FROM", "party", "WHERE", "Party_Theme", "=", "value", "OR", "Party_Theme", "=", "value"], "question": "Show the first year of parties with theme \"Spring\" or \"Teqnology\".", "question_toks": ["Show", "the", "first", "year", "of", "parties", "with", "theme", "\"", "Spring", "\"", "or", "\"", "Teqnology", "\"."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2666", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0066", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011"], "query_toks_no_value": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "value"], "question": "Show minimum and maximum amount of memberships for all branches opened in 2011.", "question_toks": ["Show", "minimum", "and", "maximum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0066", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0067", "db_id": "customers_and_products_contacts", "query": "select product_type_code from products where product_price > 1000 or product_price < 500", "query_toks": ["SELECT", "product_type_code", "FROM", "products", "WHERE", "product_price", ">", "1000", "OR", "product_price", "<", "500"], "query_toks_no_value": ["SELECT", "product_type_code", "FROM", "products", "WHERE", "product_price", ">", "value", "OR", "product_price", "<", "value"], "question": "Show the product type for the products with price higher than 1000 or lower than 500.", "question_toks": ["Show", "the", "product", "type", "for", "the", "products", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null], "or", [false, 4, [0, [0, 10, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5667", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0068", "db_id": "customers_campaigns_ecommerce", "query": "select order_shipping_charges from customer_orders where order_status_code = \"cancelled\" or order_status_code = \"paid\"", "query_toks": ["SELECT", "order_shipping_charges", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "``", "cancelled", "''", "OR", "order_status_code", "=", "``", "paid", "''"], "query_toks_no_value": ["SELECT", "order_shipping_charges", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "value", "OR", "order_status_code", "=", "value"], "question": "Show the shipping charge for customer orders with order status Cancelled or Paid.", "question_toks": ["Show", "the", "shipping", "charge", "for", "customer", "orders", "with", "order", "status", "Cancelled", "or", "Paid", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"cancelled\"", null], "or", [false, 2, [0, [0, 27, false], null], "\"paid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4633", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0069", "db_id": "concert_singer", "query": "select t2.name 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", "query_toks": ["SELECT", "T2", ".", "name", "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"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "year", ">=", "value", "GROUP", "BY", "T2", ".", "stadium_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Show the stadium name with most number of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0070", "db_id": "culture_company", "query": "select book_title from book_club where year > 1989", "query_toks": ["SELECT", "book_title", "FROM", "book_club", "WHERE", "YEAR", ">", "1989"], "query_toks_no_value": ["SELECT", "book_title", "FROM", "book_club", "WHERE", "YEAR", ">", "value"], "question": "show the titles for all books made after the year 1989.", "question_toks": ["show", "the", "titles", "for", "all", "books", "made", "after", "the", "year", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6964", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0071", "db_id": "culture_company", "query": "select author_or_editor from book_club where year > 1989", "query_toks": ["SELECT", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "1989"], "query_toks_no_value": ["SELECT", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "value"], "question": "show authors or editors for all books made after the year 1989.", "question_toks": ["show", "authors", "or", "editors", "for", "all", "books", "made", "after", "the", "year", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0071", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0072", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Tell me the owner id and last name of the owner who spent the most on treatments.", "question_toks": ["Tell", "me", "the", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0072", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0073", "db_id": "dog_kennels", "query": "select t1.owner_id 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", "query_toks": ["SELECT", "T1", ".", "owner_id", "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"], "query_toks_no_value": ["SELECT", "T1", ".", "owner_id", "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"], "question": "Tell me the owner id of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "the", "owner", "id", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0937", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0074", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "name", ",", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "``", "dan", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "name", ",", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "value"], "question": "What are the different names and ages of every friend of Dan?", "question_toks": ["What", "are", "the", "different", "names", "and", "ages", "of", "every", "friend", "of", "Dan", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0074", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0075", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600", "query_toks": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600"], "query_toks_no_value": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "value"], "question": "What are id and name of the products whose price is lower than 600?", "question_toks": ["What", "are", "id", "and", "name", "of", "the", "products", "whose", "price", "is", "lower", "than", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4769", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0076", "db_id": "car_1", "query": "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the id and names of the countries which produce the 'fiat' model?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "produce", "the", "'", "fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0076", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0077", "db_id": "customers_and_invoices", "query": "select t1.account_id , t2.account_name from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id group by t1.account_id having count(*) = 4", "query_toks": ["SELECT", "T1", ".", "account_id", ",", "T2", ".", "account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "account_id", "=", "T2", ".", "account_id", "GROUP", "BY", "T1", ".", "account_id", "HAVING", "count", "(*)", "=", "4"], "query_toks_no_value": ["SELECT", "T1", ".", "account_id", ",", "T2", ".", "account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "account_id", "=", "T2", ".", "account_id", "GROUP", "BY", "T1", ".", "account_id", "HAVING", "count", "(*)", "=", "4"], "question": "What are the ids and names of accounts with 4 transactions?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "accounts", "with", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [[false, 2, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0077", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0078", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the ids and names of all countries that either have more than 3 car makers?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0078", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0079", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) = 2", "query_toks": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2"], "question": "What are the ids and names of the medicine that can interact with two enzymes?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "medicine", "that", "can", "interact", "with", "two", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0079", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0080", "db_id": "browser_web", "query": "select t1.id , t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id group by t1.id having count(*) = 2", "query_toks": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2", ".", "accelerator_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2", ".", "accelerator_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2"], "question": "What are the ids and names of the web accelerators that are compatible with two browsers?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "web", "accelerators", "that", "are", "compatible", "with", "two", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0080", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0081", "db_id": "architecture", "query": "select t1.name from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2 union select t1.name from architect as t1 join mill as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 1", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2", "UNION", "SELECT", "T1", ".", "name", "FROM", "architect", "AS", "T1", "JOIN", "mill", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2", "UNION", "SELECT", "T1", ".", "name", "FROM", "architect", "AS", "T1", "JOIN", "mill", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "1"], "question": "What are the names of the architects who built two bridges or one mill?", "question_toks": ["What", "are", "the", "names", "of", "the", "architects", "who", "built", "two", "bridges", "or", "one", "mill", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0081", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0082", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) = 150", "query_toks": ["SELECT", "avg", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name", "HAVING", "avg", "(", "T1", ".", "price", ")", "=", "150"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name", "HAVING", "avg", "(", "T1", ".", "price", ")", "=", "150"], "question": "What are the names and average prices of products for manufacturers whose products cost on average 150?", "question_toks": ["What", "are", "the", "names", "and", "average", "prices", "of", "products", "for", "manufacturers", "whose", "products", "cost", "on", "average", "150", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 2, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0082", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0083", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14", "query_toks": ["SELECT", "T1", ".", "name", ",", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14"], "question": "What are the names and ids of all stations that have more than 14 bikes available on average?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0083", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_UNION_REMOVED"]}, {"id": "and_with_or_in_nl_0084", "db_id": "chinook_1", "query": "select t2.name , t1.artistid from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t1.artistid having count(*) = 3 order by t2.name", "query_toks": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1", ".", "ArtistId", "=", "T2", ".", "ArtistID", "GROUP", "BY", "T1", ".", "ArtistId", "HAVING", "COUNT", "(*)", "=", "3", "ORDER", "BY", "T2", ".", "Name"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1", ".", "ArtistId", "=", "T2", ".", "ArtistID", "GROUP", "BY", "T1", ".", "ArtistId", "HAVING", "COUNT", "(*)", "=", "3", "ORDER", "BY", "T2", ".", "Name"], "question": "What are the names and ids of artists with 3, listed in alphabetical order?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "artists", "with", "3", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 2, [0, [3, 0, false], null], 3.0, null]], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0084", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0085", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\"", "query_toks": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''"], "query_toks_no_value": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "value"], "question": "What are the names and opening hours of the tourist attractions that can be accessed by bus?", "question_toks": ["What", "are", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0085", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0086", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300", "query_toks": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300"], "query_toks_no_value": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "value"], "question": "What are the names and types of the dorms that have a capacity greater than 300?", "question_toks": ["What", "are", "the", "names", "and", "types", "of", "the", "dorms", "that", "have", "a", "capacity", "greater", "than", "300", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0086", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0087", "db_id": "storm_record", "query": "select name , dates_active , number_deaths from storm where number_deaths = 1", "query_toks": ["SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm", "WHERE", "number_deaths", "=", "1"], "query_toks_no_value": ["SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm", "WHERE", "number_deaths", "=", "value"], "question": "What are the names, dates active, and number of deaths for storms that had 1 death?", "question_toks": ["What", "are", "the", "names", ",", "dates", "active", ",", "and", "number", "of", "deaths", "for", "storms", "that", "had", "1", "death", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0087", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0088", "db_id": "products_gen_characteristics", "query": "select t1.product_id , t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code", "query_toks": ["SELECT", "t1", ".", "product_id", ",", "t2", ".", "color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1", ".", "color_code", "=", "t2", ".", "color_code"], "query_toks_no_value": ["SELECT", "t1", ".", "product_id", ",", "t2", ".", "color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1", ".", "color_code", "=", "t2", ".", "color_code"], "question": "What are the product ids and color descriptions for products?", "question_toks": ["What", "are", "the", "product", "ids", "and", "color", "descriptions", "for", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0088", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0089", "db_id": "battle_death", "query": "select t1.killed from death as t1 join ship as t2 on t1.caused_by_ship_id = t2.id where t2.tonnage = \"t\"", "query_toks": ["SELECT", "T1", ".", "killed", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1", ".", "caused_by_ship_id", "=", "T2", ".", "id", "WHERE", "T2", ".", "tonnage", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "killed", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1", ".", "caused_by_ship_id", "=", "T2", ".", "id", "WHERE", "T2", ".", "tonnage", "=", "value"], "question": "What are the death situations caused by the ship with tonnage 't'?", "question_toks": ["What", "are", "the", "death", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'", "t", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0496", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0090", "db_id": "network_2", "query": "select distinct t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" or t2.friend = \"alice\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "``", "dan", "''", "OR", "T2", ".", "friend", "=", "``", "alice", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "value", "OR", "T2", ".", "friend", "=", "value"], "question": "What are the different names every friend of either Dan or alice?", "question_toks": ["What", "are", "the", "different", "names", "every", "friend", "of", "either", "Dan", "or", "alice", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4443", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0091", "db_id": "allergy_1", "query": "select distinct t1.fname from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "fname", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "``", "milk", "''", "OR", "T2", ".", "Allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "fname", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "value", "OR", "T2", ".", "Allergy", "=", "value"], "question": "What are the distinct first names of the students who have allergy either to milk or to cat?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "of", "the", "students", "who", "have", "allergy", "either", "to", "milk", "or", "to", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0532", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0092", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"cat\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "fname", ",", "T1", ".", "city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "fname", ",", "T1", ".", "city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "value"], "question": "What are the distinct first names and cities of the students who have allergy to cat?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "to", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0092", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0093", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = \"close\" or t1.date_and_date < \"2017-06-19 02:59:21\"", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "thing_id", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1", ".", "thing_id", "=", "T2", ".", "thing_id", "WHERE", "T1", ".", "Status_of_Thing_Code", "=", "``", "close", "''", "OR", "T1", ".", "Date_and_Date", "<", "``", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "thing_id", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1", ".", "thing_id", "=", "T2", ".", "thing_id", "WHERE", "T1", ".", "Status_of_Thing_Code", "=", "value", "OR", "T1", ".", "Date_and_Date", "<", "value", "-", "06", "-", "19", "02", ":", "59", ":", "21"], "question": "What are the distinct id that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'", "question_toks": ["What", "are", "the", "distinct", "id", "that", "has", "the", "status", "'", "Close", "'", "or", "has", "a", "status", "record", "before", "the", "date", "'", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"close\"", null], "or", [false, 4, [0, [0, 44, false], null], "\"2017-06-19 02:59:21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4851", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0094", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id , t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = \"close\"", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "thing_id", ",", "T2", ".", "Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1", ".", "thing_id", "=", "T2", ".", "thing_id", "WHERE", "T1", ".", "Status_of_Thing_Code", "=", "``", "close", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "thing_id", ",", "T2", ".", "Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1", ".", "thing_id", "=", "T2", ".", "thing_id", "WHERE", "T1", ".", "Status_of_Thing_Code", "=", "value"], "question": "What are the distinct id and type of the thing that has the status 'Close' ", "question_toks": ["What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'", "Close", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"close\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0094", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0095", "db_id": "formula_1", "query": "select t1.forename from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["SELECT", "T1", ".", "forename", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "8", "UNION", "SELECT", "T1", ".", "forename", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "5"], "query_toks_no_value": ["SELECT", "T1", ".", "forename", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "8", "UNION", "SELECT", "T1", ".", "forename", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "5"], "question": "What are the drivers' first names for all those that had more than 8 stops or participated in more than 5 races?", "question_toks": ["What", "are", "the", "drivers", "'", "first", "names", "for", "all", "those", "that", "had", "more", "than", "8", "stops", "or", "participated", "in", "more", "than", "5", "races", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2208", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0096", "db_id": "formula_1", "query": "select t1.forename , t1.surname from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename , t1.surname from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "8", "UNION", "SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "5"], "query_toks_no_value": ["SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "8", "UNION", "SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "5"], "question": "What are the drivers' first, last names who had more than 8 pit stops or participated in more than 5 race results?", "question_toks": ["What", "are", "the", "drivers", "'", "first", ",", "last", "names", "who", "had", "more", "than", "8", "pit", "stops", "or", "participated", "in", "more", "than", "5", "race", "results", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2207", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0097", "db_id": "formula_1", "query": "select t1.forename , t1.surname , t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8", "query_toks": ["SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", ",", "T1", ".", "driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "8"], "query_toks_no_value": ["SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", ",", "T1", ".", "driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "8"], "question": "What are the drivers' first, last names and id who had more than 8 pit stops?", "question_toks": ["What", "are", "the", "drivers", "'", "first", ",", "last", "names", "and", "id", "who", "had", "more", "than", "8", "pit", "stops", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 83, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0097", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0098", "db_id": "hr_1", "query": "select last_name from employees where department_id = 70 or department_id = 90", "query_toks": ["SELECT", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "70", "OR", "department_id", "=", "90"], "query_toks_no_value": ["SELECT", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "value", "OR", "department_id", "=", "value"], "question": "What is the last name for those employees who works either in department 70 or 90?", "question_toks": ["What", "is", "the", "last", "name", "for", "those", "employees", "who", "works", "either", "in", "department", "70", "or", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], 70.0, null], "or", [false, 2, [0, [0, 24, false], null], 90.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3431", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0099", "db_id": "hr_1", "query": "select first_name , last_name from employees where department_id = 70", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "70"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "value"], "question": "What are the first and last name for those employees who works either in department 70?", "question_toks": ["What", "are", "the", "first", "and", "last", "name", "for", "those", "employees", "who", "works", "either", "in", "department", "70", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], 70.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0099", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0100", "db_id": "baseball_1", "query": "select name_first from player where weight > 220 or height < 75", "query_toks": ["SELECT", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75"], "query_toks_no_value": ["SELECT", "name_last", "FROM", "player", "WHERE", "weight", ">", "value", "OR", "height", "<", "value"], "question": "What are the first name of the players who have weight above 220 or height below 75?", "question_toks": ["What", "are", "the", "first", "name", "of", "the", "players", "who", "have", "weight", "above", "220", "or", "height", "below", "75", "?"], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3664", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0101", "db_id": "baseball_1", "query": "select name_first , name_last from player where height < 75", "query_toks": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "height", "<", "75"], "query_toks_no_value": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "height", "<", "value"], "question": "What are the first name and last name of the players who have height below 75?", "question_toks": ["What", "are", "the", "first", "name", "and", "last", "name", "of", "the", "players", "who", "have", "height", "below", "75", "?"], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0101", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0102", "db_id": "customers_and_invoices", "query": "select t2.customer_first_name , t1.customer_id from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) = 2", "query_toks": ["SELECT", "T2", ".", "customer_first_name", ",", "T1", ".", "customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T2", ".", "customer_first_name", ",", "T1", ".", "customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", "=", "2"], "question": "What are the first names and ids for customers who have two accounts?", "question_toks": ["What", "are", "the", "first", "names", "and", "ids", "for", "customers", "who", "have", "two", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1572", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0103", "db_id": "chinook_1", "query": "select t1.firstname , t1.supportrepid from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) = 10", "query_toks": ["SELECT", "T1", ".", "FirstName", ",", "T1", ".", "SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1", ".", "SupportRepId", "=", "T2", ".", "EmployeeId", "GROUP", "BY", "T1", ".", "SupportRepId", "HAVING", "COUNT", "(*)", "=", "10"], "query_toks_no_value": ["SELECT", "T1", ".", "FirstName", ",", "T1", ".", "SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1", ".", "SupportRepId", "=", "T2", ".", "EmployeeId", "GROUP", "BY", "T1", ".", "SupportRepId", "HAVING", "COUNT", "(*)", "=", "10"], "question": "What are the first names and support rep ids for employees serving 10 customers?", "question_toks": ["What", "are", "the", "first", "names", "and", "support", "rep", "ids", "for", "employees", "serving", "10", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 2, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0870", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0104", "db_id": "customers_and_invoices", "query": "select t2.customer_first_name from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T2", ".", "customer_first_name", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T2", ".", "customer_first_name", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are the first names for customers who have two or more accounts?", "question_toks": ["What", "are", "the", "first", "names", "for", "customers", "who", "have", "two", "or", "more", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0104", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0105", "db_id": "chinook_1", "query": "select t1.supportrepid from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) >= 10", "query_toks": ["SELECT", "T1", ".", "SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1", ".", "SupportRepId", "=", "T2", ".", "EmployeeId", "GROUP", "BY", "T1", ".", "SupportRepId", "HAVING", "COUNT", "(*)", ">=", "10"], "query_toks_no_value": ["SELECT", "T1", ".", "SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1", ".", "SupportRepId", "=", "T2", ".", "EmployeeId", "GROUP", "BY", "T1", ".", "SupportRepId", "HAVING", "COUNT", "(*)", ">=", "10"], "question": "What are the support rep ids for employees serving 10 or more customers?", "question_toks": ["What", "are", "the", "support", "rep", "ids", "for", "employees", "serving", "10", "or", "more", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0105", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0106", "db_id": "party_host", "query": "select last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["SELECT", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "spring", "''", "OR", "Party_Theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["SELECT", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "value", "OR", "Party_Theme", "=", "value"], "question": "What are the last year of the parties whose theme is \"Spring\" or \"Teqnology\"?", "question_toks": ["What", "are", "the", "last", "year", "of", "the", "parties", "whose", "theme", "is", "\"", "Spring", "\"", "or", "\"", "Teqnology", "\"?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2667", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0107", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" ", "query_toks": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "spring", "''"], "query_toks_no_value": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "value"], "question": "What are the first year and last year of the parties whose theme is \"Spring\" ?", "question_toks": ["What", "are", "the", "first", "year", "and", "last", "year", "of", "the", "parties", "whose", "theme", "is", "\"", "Spring", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0107", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0108", "db_id": "department_store", "query": "select product_name from products where product_price < 600 or product_price > 900", "query_toks": ["SELECT", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900"], "query_toks_no_value": ["SELECT", "product_name", "FROM", "products", "WHERE", "product_price", "<", "value", "OR", "product_price", ">", "value"], "question": "What is the name of the products whose price is lower than 600 or higher than 900?", "question_toks": ["What", "is", "the", "name", "of", "the", "products", "whose", "price", "is", "lower", "than", "600", "or", "higher", "than", "900", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0108", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0109", "db_id": "car_1", "query": "select t1.countryid 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 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\"", "query_toks": ["SELECT", "T1", ".", "countryId", "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", "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", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "countryId", "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", "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", "=", "value"], "question": "What is the id of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "is", "the", "id", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'", "fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0110", "db_id": "dog_kennels", "query": "select 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", "query_toks": ["SELECT", "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"], "query_toks_no_value": ["SELECT", "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"], "question": "What are first names of the professionals who have performed two or more treatments?", "question_toks": ["What", "are", "first", "names", "of", "the", "professionals", "who", "have", "performed", "two", "or", "more", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0933", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0111", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the id, role, and first name of the professionals who have performed two treatments?", "question_toks": ["What", "are", "the", "id", ",", "role", ",", "and", "first", "name", "of", "the", "professionals", "who", "have", "performed", "two", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0111", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0112", "db_id": "customers_card_transactions", "query": "select t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T2", ".", "customer_first_name", ",", "T2", ".", "customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T2", ".", "customer_first_name", ",", "T2", ".", "customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are the full names of customers who hold two or more cards?", "question_toks": ["What", "are", "the", "full", "names", "of", "customers", "who", "hold", "two", "or", "more", "cards", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0716", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0113", "db_id": "formula_1", "query": "select circuitid from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "circuitid", "FROM", "circuits", "WHERE", "country", "=", "``", "france", "''", "OR", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["SELECT", "circuitid", "FROM", "circuits", "WHERE", "country", "=", "value", "OR", "country", "=", "value"], "question": "What are the ids of all circuits in France or Belgium?", "question_toks": ["What", "are", "the", "ids", "of", "all", "circuits", "in", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2216", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0114", "db_id": "customers_and_invoices", "query": "select t1.account_id from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id group by t1.account_id having count(*) >= 4", "query_toks": ["SELECT", "T1", ".", "account_id", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "account_id", "=", "T2", ".", "account_id", "GROUP", "BY", "T1", ".", "account_id", "HAVING", "count", "(*)", ">=", "4"], "query_toks_no_value": ["SELECT", "T1", ".", "account_id", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "account_id", "=", "T2", ".", "account_id", "GROUP", "BY", "T1", ".", "account_id", "HAVING", "count", "(*)", ">=", "4"], "question": "What are the ids of accounts with 4 or more transactions?", "question_toks": ["What", "are", "the", "ids", "of", "accounts", "with", "4", "or", "more", "transactions", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [[false, 5, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1594", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0115", "db_id": "car_1", "query": "select t1.countryid 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 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\"", "query_toks": ["select", "t1", ".", "countryid", "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", "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", "''"], "query_toks_no_value": ["select", "t1", ".", "countryid", "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", "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", "=", "value"], "question": "What are the ids of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0116", "db_id": "medicine_enzyme_interaction", "query": "select t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are the names of the medicine that can interact with two or more enzymes?", "question_toks": ["What", "are", "the", "names", "of", "the", "medicine", "that", "can", "interact", "with", "two", "or", "more", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0949", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0117", "db_id": "browser_web", "query": "select t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2", ".", "accelerator_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2", ".", "accelerator_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", ">=", "2"], "question": "What is the names of the web accelerators that are compatible with two or more browsers?", "question_toks": ["What", "is", "the", "names", "of", "the", "web", "accelerators", "that", "are", "compatible", "with", "two", "or", "more", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1833", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0118", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) = 2", "query_toks": ["SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", ",", "T2", ".", "customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", ",", "T2", ".", "customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", "=", "2"], "question": "What are the ids and full names of customers who hold two cards?", "question_toks": ["What", "are", "the", "ids", "and", "full", "names", "of", "customers", "who", "hold", "two", "cards", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0118", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0119", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"belgium\"", "query_toks": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "value"], "question": "What are the ids and locations of all circuits in Belgium?", "question_toks": ["What", "are", "the", "ids", "and", "locations", "of", "all", "circuits", "in", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0119", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0120", "db_id": "architecture", "query": "select t1.id , t1.name , t1.gender from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2", "query_toks": ["SELECT", "T1", ".", "id", ",", "T1", ".", "name", ",", "T1", ".", "gender", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "id", ",", "T1", ".", "name", ",", "T1", ".", "gender", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2"], "question": "What are the ids, names and genders of the architects who built two bridges?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "genders", "of", "the", "architects", "who", "built", "two", "bridges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6955", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0121", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where city = \"london\"", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "city", "=", "``", "london", "''"], "query_toks_no_value": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "city", "=", "value"], "question": "What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "membership", "amounts", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0121", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0122", "db_id": "shop_membership", "query": "select max(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["SELECT", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "``", "london", "''"], "query_toks_no_value": ["SELECT", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "value", "OR", "city", "=", "value"], "question": "What is the maximum membership amounts for all branches that either opened in 2011 or are located in London?", "question_toks": ["What", "is", "the", "maximum", "membership", "amounts", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5411", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"]}, {"id": "and_with_or_in_nl_0123", "db_id": "manufactory_1", "query": "select t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) >= 150", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name", "HAVING", "avg", "(", "T1", ".", "price", ")", ">=", "150"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name", "HAVING", "avg", "(", "T1", ".", "price", ")", ">=", "150"], "question": "What are the names of products for manufacturers whose products cost on average 150 or more?", "question_toks": ["What", "are", "the", "names", "of", "products", "for", "manufacturers", "whose", "products", "cost", "on", "average", "150", "or", "more", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5345", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0124", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select name from station where installation_date like \"12/%\"", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14", "UNION", "SELECT", "name", "FROM", "station", "WHERE", "installation_date", "LIKE", "``", "12", "/%\""], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14", "UNION", "SELECT", "name", "FROM", "station", "WHERE", "installation_date", "LIKE", "value", "/%\""], "question": "What are the names of all stations that have more than 14 bikes available on average or had bikes installed in December?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "or", "had", "bikes", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0144", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0125", "db_id": "chinook_1", "query": "select t2.name from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t1.artistid having count(*) >= 3 order by t2.name", "query_toks": ["SELECT", "T2", ".", "Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1", ".", "ArtistId", "=", "T2", ".", "ArtistID", "GROUP", "BY", "T1", ".", "ArtistId", "HAVING", "COUNT", "(*)", ">=", "3", "ORDER", "BY", "T2", ".", "Name"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1", ".", "ArtistId", "=", "T2", ".", "ArtistID", "GROUP", "BY", "T1", ".", "ArtistId", "HAVING", "COUNT", "(*)", ">=", "3", "ORDER", "BY", "T2", ".", "Name"], "question": "What are the names of artists with 3 or more albums, listed in alphabetical order?", "question_toks": ["What", "are", "the", "names", "of", "artists", "with", "3", "or", "more", "albums", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0876", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0126", "db_id": "bike_1", "query": "select t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select id from station where installation_date like \"12/%\"", "query_toks": ["SELECT", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14", "UNION", "SELECT", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "``", "12", "/%\""], "query_toks_no_value": ["SELECT", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14", "UNION", "SELECT", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "value", "/%\""], "question": "What are the ids of stations that had more than 14 bikes available on average or were installed in December?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "had", "more", "than", "14", "bikes", "available", "on", "average", "or", "were", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0143", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0127", "db_id": "cre_Theme_park", "query": "select name, opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["SELECT", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''"], "query_toks_no_value": ["SELECT", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "value", "OR", "How_to_Get_There", "=", "value"], "question": "What are the opening hours of the tourist attractions that can be accessed by bus or walk?", "question_toks": ["What", "are", "the", "opening", "hours", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "or", "walk", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5911", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0128", "db_id": "dorm_1", "query": "select dorm_name from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100"], "query_toks_no_value": ["SELECT", "dorm_name", "FROM", "dorm", "WHERE", "student_capacity", ">", "value", "OR", "student_capacity", "<", "value"], "question": "What are the types of the dorms that have a capacity greater than 300 or less than 100?", "question_toks": ["What", "are", "the", "types", "of", "the", "dorms", "that", "have", "a", "capacity", "greater", "than", "300", "or", "less", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5699", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0129", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where hours = 4", "query_toks": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Hours", "=", "4"], "query_toks_no_value": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "value", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Hours", "=", "value"], "question": "What are the names of courses that give either 3 credits or 4 hours?", "question_toks": ["What", "are", "the", "names", "of", "courses", "that", "give", "either", "3", "credits", "or", "4", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4704", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0130", "db_id": "college_3", "query": "select dname from department where division = \"as\" union select dname from department where division = \"en\"", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "as", "''", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "en", "''"], "query_toks_no_value": ["SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "value", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "value"], "question": "What are the names of departments either in division AS, or in division EN?", "question_toks": ["What", "are", "the", "names", "of", "departments", "either", "in", "division", "AS", ",", "or", "in", "division", "EN", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"as\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"en\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4706", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0131", "db_id": "network_1", "query": "select name from highschooler where grade > 5", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1", ".", "student_id", "=", "T2", ".", "id", "WHERE", "T2", ".", "grade", ">", "5"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1", ".", "student_id", "=", "T2", ".", "id", "WHERE", "T2", ".", "grade", ">", "value"], "question": "What are the names of high schoolers who have a grade of over 5?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "a", "grade", "of", "over", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 5.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0911", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0132", "db_id": "storm_record", "query": "select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id intersect select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1", ".", "storm_id", "=", "T2", ".", "storm_id", "INTERSECT", "SELECT", "T1", ".", "name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1", ".", "storm_id", "=", "T2", ".", "storm_id"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1", ".", "storm_id", "=", "T2", ".", "storm_id", "INTERSECT", "SELECT", "T1", ".", "name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1", ".", "storm_id", "=", "T2", ".", "storm_id"], "question": "What are the names of storms that affected two or more regions?", "question_toks": ["What", "are", "the", "names", "of", "storms", "that", "both", "affected", "two", "or", "more", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2721", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0133", "db_id": "cre_Theme_park", "query": "select t3.visit_date from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"vincent\" or t2.tourist_details = \"vivian\"", "query_toks": ["SELECT", "T3", ".", "Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "``", "vincent", "''", "OR", "T2", ".", "Tourist_Details", "=", "``", "vivian", "''"], "query_toks_no_value": ["SELECT", "T3", ".", "Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "value", "OR", "T2", ".", "Tourist_Details", "=", "value"], "question": "What are the dates when the tourists named Vincent or Vivian visited there?", "question_toks": ["What", "are", "the", "dates", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"vincent\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"vivian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5933", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0134", "db_id": "storm_record", "query": "select name from storm where number_deaths >= 1", "query_toks": ["SELECT", "name", "FROM", "storm", "WHERE", "number_deaths", ">=", "1"], "query_toks_no_value": ["SELECT", "name", "FROM", "storm", "WHERE", "number_deaths", ">=", "value"], "question": "What are the names for storms that had 1 or more death?", "question_toks": ["What", "are", "the", "names", "for", "storms", "that", "had", "1", "or", "more", "death", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2701", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0135", "db_id": "products_gen_characteristics", "query": "select t1.product_id from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code join product_characteristics as t3 on t1.product_id = t3.product_id group by t1.product_id having count(*) >= 2", "query_toks": ["SELECT", "t1", ".", "product_id", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1", ".", "color_code", "=", "t2", ".", "color_code", "JOIN", "product_characteristics", "AS", "t3", "ON", "t1", ".", "product_id", "=", "t3", ".", "product_id", "GROUP", "BY", "t1", ".", "product_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "t1", ".", "product_id", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1", ".", "color_code", "=", "t2", ".", "color_code", "JOIN", "product_characteristics", "AS", "t3", "ON", "t1", ".", "product_id", "=", "t3", ".", "product_id", "GROUP", "BY", "t1", ".", "product_id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are the product ids for products with two or more characteristics?", "question_toks": ["What", "are", "the", "product", "ids", "for", "products", "with", "two", "or", "more", "characteristics", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5549", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0136", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\"", "query_toks": ["SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "``", "omnis", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "value"], "question": "What are the task details, task id and project id for the projects which are detailed as 'omnis'?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "id", "and", "project", "id", "for", "the", "projects", "which", "are", "detailed", "as", "'", "omnis", "'?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0136", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0137", "db_id": "tracking_grants_for_research", "query": "select t1.task_details from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\" union select t1.task_details from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["SELECT", "T1", ".", "task_details", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "``", "omnis", "''", "UNION", "SELECT", "T1", ".", "task_details", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2", ".", "project_id", "=", "T3", ".", "project_id", "GROUP", "BY", "T2", ".", "project_id", "HAVING", "count", "(*)", ">", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "task_details", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "value", "UNION", "SELECT", "T1", ".", "task_details", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2", ".", "project_id", "=", "T3", ".", "project_id", "GROUP", "BY", "T2", ".", "project_id", "HAVING", "count", "(*)", ">", "2"], "question": "What are the task details for the projects which are detailed as 'omnis' or have more than 2 outcomes?", "question_toks": ["What", "are", "the", "task", "details", "for", "the", "projects", "which", "are", "detailed", "as", "'", "omnis", "'", "or", "have", "more", "than", "2", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4340", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0138", "db_id": "tracking_grants_for_research", "query": "select t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\" union select t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["SELECT", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "``", "omnis", "''", "UNION", "SELECT", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2", ".", "project_id", "=", "T3", ".", "project_id", "GROUP", "BY", "T2", ".", "project_id", "HAVING", "count", "(*)", ">", "2"], "query_toks_no_value": ["SELECT", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "value", "UNION", "SELECT", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2", ".", "project_id", "=", "T3", ".", "project_id", "GROUP", "BY", "T2", ".", "project_id", "HAVING", "count", "(*)", ">", "2"], "question": "What are the project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?", "question_toks": ["What", "are", "the", "project", "ids", "for", "the", "progrects", "that", "are", "detailed", "as", "'", "omnis", "'", "or", "have", "at", "least", "3", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4341", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0139", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\"", "query_toks": ["SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "``", "omnis", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "value"], "question": "What are the task details, task ids, and project ids for the progrects that are detailed as 'omnis'?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "ids", ",", "and", "project", "ids", "for", "the", "progrects", "that", "are", "detailed", "as", "'", "omnis", "'?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0139", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0140", "db_id": "culture_company", "query": "select book_title from book_club where year > 1989", "query_toks": ["SELECT", "book_title", "FROM", "book_club", "WHERE", "YEAR", ">", "1989"], "query_toks_no_value": ["SELECT", "book_title", "FROM", "book_club", "WHERE", "YEAR", ">", "value"], "question": "What are the titles hat correspond to books made after 1989?", "question_toks": ["What", "are", "the", "titles", "hat", "correspond", "to", "books", "made", "after", "1989", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6965", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0141", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = \"noel cv\"", "query_toks": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "``", "noel", "cv", "''"], "query_toks_no_value": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "value", "cv"], "question": "What are the type come, name, and description of the document that has either the name 'Noel CV' ?", "question_toks": ["What", "are", "the", "type", "come", ",", "name", ",", "and", "description", "of", "the", "document", "that", "has", "either", "the", "name", "'", "Noel", "CV", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"noel cv\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0141", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0142", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = \"noel cv\" or document_name = \"king book\"", "query_toks": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "``", "noel", "cv", "''", "OR", "document_name", "=", "``", "king", "book", "''"], "query_toks_no_value": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "value", "cv", "OR", "document_name", "=", "value", "book"], "question": "What are the type come, name, and description of the document that has either the name 'Noel CV' or 'King Book'?", "question_toks": ["What", "are", "the", "type", "come", ",", "name", ",", "and", "description", "of", "the", "document", "that", "has", "either", "the", "name", "'", "Noel", "CV", "'", "or", "'", "King", "Book", "'?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"noel cv\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"king book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6402", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0143", "db_id": "train_station", "query": "select avg(total_passengers) , max(total_passengers) from station where location = \"glasgow\"", "query_toks": ["SELECT", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "``", "glasgow", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "value"], "question": "What is the average and maximum number of total passengers for train stations in Glasgow?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "total", "passengers", "for", "train", "stations", "in", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0143", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0144", "db_id": "train_station", "query": "select avg(total_passengers) from station where location = \"london\" or location = \"glasgow\"", "query_toks": ["SELECT", "avg", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "``", "london", "''", "OR", "LOCATION", "=", "``", "glasgow", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "value", "OR", "LOCATION", "=", "value"], "question": "What is the average number of total passengers for train stations in London or Glasgow?", "question_toks": ["What", "is", "the", "average", "number", "of", "total", "passengers", "for", "train", "stations", "in", "London", "or", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"london\"", null], "or", [false, 2, [0, [0, 6, false], null], "\"glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6604", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"]}, {"id": "and_with_or_in_nl_0145", "db_id": "game_1", "query": "select t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["SELECT", "T2", ".", "fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "SportName", "=", "``", "football", "''", "OR", "T1", ".", "SportName", "=", "``", "lacrosse", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "SportName", "=", "value", "OR", "T1", ".", "SportName", "=", "value"], "question": "What is the first name of all students who play Football or Lacrosse?", "question_toks": ["What", "is", "the", "first", "name", "of", "all", "students", "who", "play", "Football", "or", "Lacrosse", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6050", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0146", "db_id": "dorm_1", "query": "select lname from student where sex = \"f\" and city_code = \"bal\" union select lname from student where sex = \"m\"", "query_toks": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "``", "f", "''", "AND", "city_code", "=", "``", "bal", "''", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "value", "AND", "city_code", "=", "value", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "value"], "question": "What is the last name of every student who is either female or living in a city with the code BAL or male?", "question_toks": ["What", "is", "the", "last", "name", "of", "every", "student", "who", "is", "either", "female", "or", "living", "in", "a", "city", "with", "the", "code", "BAL", "or", "male", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"bal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5707", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0147", "db_id": "driving_school", "query": "select customer_status_code from customers where first_name = \"marina\" or last_name = \"kohler\"", "query_toks": ["SELECT", "customer_status_code", "FROM", "Customers", "WHERE", "first_name", "=", "``", "marina", "''", "OR", "last_name", "=", "``", "kohler", "''"], "query_toks_no_value": ["SELECT", "customer_status_code", "FROM", "Customers", "WHERE", "first_name", "=", "value", "OR", "last_name", "=", "value"], "question": "What is the status code of customer with last name as Kohler or first name as Marina?", "question_toks": ["What", "is", "the", "status", "code", "of", "customer", "with", "last", "name", "as", "Kohler", "or", "first", "name", "as", "Marina", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"marina\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"kohler\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6664", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0148", "db_id": "driving_school", "query": "select customer_status_code from customers where first_name = \"marina\" or last_name = \"kohler\"", "query_toks": ["SELECT", "customer_status_code", "FROM", "Customers", "WHERE", "first_name", "=", "``", "marina", "''", "OR", "last_name", "=", "``", "kohler", "''"], "query_toks_no_value": ["SELECT", "customer_status_code", "FROM", "Customers", "WHERE", "first_name", "=", "value", "OR", "last_name", "=", "value"], "question": "What is the status code of the customer whose last name is Kohler or whose first name is Marina?", "question_toks": ["What", "is", "the", "status", "code", "of", "the", "customer", "whose", "last", "name", "is", "Kohler", "or", "whose", "first", "name", "is", "Marina", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"marina\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"kohler\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6665", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0149", "db_id": "culture_company", "query": "select title from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", "FROM", "movie", "WHERE", "YEAR", "<=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "title", "FROM", "movie", "WHERE", "YEAR", "<=", "value", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "question": "What is the title for the movie with highest worldwide gross in the year 2000 or before?", "question_toks": ["What", "is", "the", "title", "for", "the", "movie", "with", "highest", "worldwide", "gross", "in", "the", "year", "2000", "or", "before", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6986", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0150", "db_id": "culture_company", "query": "select title , director from movie where year = 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "=", "value", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "question": "What is the title and director for the movie with highest worldwide gross in the year 2000?", "question_toks": ["What", "is", "the", "title", "and", "director", "for", "the", "movie", "with", "highest", "worldwide", "gross", "in", "the", "year", "2000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0150", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0151", "db_id": "bike_1", "query": "select zip_code from weather where max_temperature_f >= 80", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">=", "80"], "query_toks_no_value": ["SELECT", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">=", "value"], "question": "What zip codes have a station with a max temperature greater than or equal to 80?", "question_toks": ["What", "zip", "codes", "have", "a", "station", "with", "a", "max", "temperature", "greater", "than", "or", "equal", "to", "80", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0154", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0152", "db_id": "bike_1", "query": "select date , zip_code from weather where max_temperature_f > 80", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">", "80"], "query_toks_no_value": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">", "value"], "question": "What zip codes have a station with a max temperature greater than 80?", "question_toks": ["What", "zip", "codes", "have", "a", "station", "with", "a", "max", "temperature", "greater", "than", "80", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0152", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0153", "db_id": "insurance_policies", "query": "select t1.date_claim_made from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id having count(*) > 2 union select t1.date_claim_made from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id where t1.amount_claimed = ( select max(amount_claimed) from claims )", "query_toks": ["SELECT", "T1", ".", "Date_Claim_Made", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "GROUP", "BY", "T1", ".", "Claim_id", "HAVING", "count", "(*)", ">", "2", "UNION", "SELECT", "T1", ".", "Date_Claim_Made", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "WHERE", "T1", ".", "Amount_Claimed", "=", "(", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "Date_Claim_Made", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "GROUP", "BY", "T1", ".", "Claim_id", "HAVING", "count", "(*)", ">", "2", "UNION", "SELECT", "T1", ".", "Date_Claim_Made", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "WHERE", "T1", ".", "Amount_Claimed", "=", "value", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")"], "question": "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made and the claim id.", "question_toks": ["Which", "claims", "caused", "more", "than", "2", "settlements", "or", "have", "the", "maximum", "claim", "value", "?", "List", "the", "date", "the", "claim", "was", "made", "and", "the", "claim", "id", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0153", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0154", "db_id": "e_learning", "query": "select t1.address_line_1 , t2.author_id from course_authors_and_tutors as t1 join courses as t2 on t1.author_id = t2.author_id group by t2.author_id having count(*) = 2", "query_toks": ["SELECT", "T1", ".", "address_line_1", ",", "T2", ".", "author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1", ".", "author_id", "=", "T2", ".", "author_id", "GROUP", "BY", "T2", ".", "author_id", "HAVING", "Count", "(*)", "=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "address_line_1", ",", "T2", ".", "author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1", ".", "author_id", "=", "T2", ".", "author_id", "GROUP", "BY", "T2", ".", "author_id", "HAVING", "Count", "(*)", "=", "2"], "question": "Which course authors teach two courses? Give me their addresses and author IDs.", "question_toks": ["Which", "course", "authors", "teach", "two", "courses", "?", "Give", "me", "their", "addresses", "and", "author", "IDs", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3809", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"]}, {"id": "and_with_or_in_nl_0155", "db_id": "sakila_1", "query": "select t1.first_name from customer as t1 join payment as t2 on t1.customer_id = t2.customer_id group by t1.customer_id order by sum(amount) asc limit 1", "query_toks": ["SELECT", "T1", ".", "first_name", "FROM", "customer", "AS", "T1", "JOIN", "payment", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "ORDER", "BY", "sum", "(", "amount", ")", "ASC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "first_name", "FROM", "customer", "AS", "T1", "JOIN", "payment", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "ORDER", "BY", "sum", "(", "amount", ")", "ASC", "LIMIT", "1"], "question": "Which customer, who has made at least one payment, has spent the least money? List his or her first name.", "question_toks": ["Which", "customer", ",", "who", "has", "made", "at", "least", "one", "payment", ",", "has", "spent", "the", "least", "money", "?", "List", "his", "or", "her", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["asc", [[0, [4, 65, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2960", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0156", "db_id": "sakila_1", "query": "select t2.first_name from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2", ".", "first_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1", ".", "actor_id", "=", "T2", ".", "actor_id", "GROUP", "BY", "T2", ".", "actor_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "first_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1", ".", "actor_id", "=", "T2", ".", "actor_id", "GROUP", "BY", "T2", ".", "actor_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Which film actor (actress) starred the most films? List his or her first name.", "question_toks": ["Which", "film", "actor", "(", "actress", ")", "starred", "the", "most", "films", "?", "List", "his", "or", "her", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2952", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0157", "db_id": "sakila_1", "query": "select t2.last_name from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id having count(*) > 30", "query_toks": ["SELECT", "T2", ".", "last_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1", ".", "actor_id", "=", "T2", ".", "actor_id", "GROUP", "BY", "T2", ".", "actor_id", "HAVING", "count", "(*)", ">", "30"], "query_toks_no_value": ["SELECT", "T2", ".", "last_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1", ".", "actor_id", "=", "T2", ".", "actor_id", "GROUP", "BY", "T2", ".", "actor_id", "HAVING", "count", "(*)", ">", "30"], "question": "Which film actors (actresses) played a role in more than 30 films? List his or her last name.", "question_toks": ["Which", "film", "actors", "(", "actresses", ")", "played", "a", "role", "in", "more", "than", "30", "films", "?", "List", "his", "or", "her", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 30.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2954", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0158", "db_id": "sakila_1", "query": "select t2.title from film_actor as t1 join film as t2 on t1.film_id = t2.film_id group by t2.film_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2", ".", "title", "FROM", "film_actor", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1", ".", "film_id", "=", "T2", ".", "film_id", "GROUP", "BY", "T2", ".", "film_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "title", "FROM", "film_actor", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1", ".", "film_id", "=", "T2", ".", "film_id", "GROUP", "BY", "T2", ".", "film_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Which film has the most number of actors or actresses? List the film names.", "question_toks": ["Which", "film", "has", "the", "most", "number", "of", "actors", "or", "actresses", "?", "List", "the", "film", "names", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2950", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0159", "db_id": "dog_kennels", "query": "select t1.owner_id 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", "query_toks": ["SELECT", "T1", ".", "owner_id", "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"], "query_toks_no_value": ["SELECT", "T1", ".", "owner_id", "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"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0936", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0160", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which owner has paid for the most treatments? List the owner id and last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "?", "List", "the", "owner", "id", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0160", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0161", "db_id": "dog_kennels", "query": "select role_code from professionals where city like \"%west%\"", "query_toks": ["SELECT", "role_code", "FROM", "professionals", "WHERE", "city", "LIKE", "\"%", "west", "%\""], "query_toks_no_value": ["SELECT", "role_code", "FROM", "professionals", "WHERE", "city", "LIKE", "\"%", "west", "%\""], "question": "Which professionals live in a city containing the substring 'West'? List his or her role.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "containing", "the", "substring", "'", "West", "'?", "List", "his", "or", "her", "role", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%west%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0970", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0162", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like \"%west%\"", "query_toks": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "\"%", "west", "%\""], "query_toks_no_value": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "\"%", "west", "%\""], "question": "Which professionals live in a city containing the substring 'West'? List role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "containing", "the", "substring", "'", "West", "'?", "List", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%west%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0162", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0163", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value", "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"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0922", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "and_with_or_in_nl_0164", "db_id": "dog_kennels", "query": "select professional_id , last_name , cell_number from professionals where state = \"indiana\" ", "query_toks": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "``", "indiana", "''"], "query_toks_no_value": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value"], "question": "Which professionals live in the state of Indiana ? List his or her id, last name and cell phone.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "?", "List", "his", "or", "her", "id", ",", "last", "name", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_with_or_in_nl_0164", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"]}, {"id": "and_with_or_in_nl_0165", "db_id": "assets_maintenance", "query": "select t1.company_id from third_party_companies as t1 join maintenance_engineers as t2 on t1.company_id = t2.company_id group by t1.company_id having count(*) >= 2 union select t3.company_id from third_party_companies as t3 join maintenance_contracts as t4 on t3.company_id = t4.maintenance_contract_company_id group by t3.company_id having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "company_id", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Maintenance_Engineers", "AS", "T2", "ON", "T1", ".", "company_id", "=", "T2", ".", "company_id", "GROUP", "BY", "T1", ".", "company_id", "HAVING", "count", "(*)", ">=", "2", "UNION", "SELECT", "T3", ".", "company_id", "FROM", "Third_Party_Companies", "AS", "T3", "JOIN", "Maintenance_Contracts", "AS", "T4", "ON", "T3", ".", "company_id", "=", "T4", ".", "maintenance_contract_company_id", "GROUP", "BY", "T3", ".", "company_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "company_id", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Maintenance_Engineers", "AS", "T2", "ON", "T1", ".", "company_id", "=", "T2", ".", "company_id", "GROUP", "BY", "T1", ".", "company_id", "HAVING", "count", "(*)", ">=", "2", "UNION", "SELECT", "T3", ".", "company_id", "FROM", "Third_Party_Companies", "AS", "T3", "JOIN", "Maintenance_Contracts", "AS", "T4", "ON", "T3", ".", "company_id", "=", "T4", ".", "maintenance_contract_company_id", "GROUP", "BY", "T3", ".", "company_id", "HAVING", "count", "(*)", ">=", "2"], "question": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id .", "question_toks": ["Which", "third", "party", "companies", "have", "at", "least", "2", "maintenance", "engineers", "or", "have", "at", "least", "2", "maintenance", "contracts", "?", "List", "the", "company", "id", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3129", "is_simplification": true, "simplifications_tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"]}, {"id": "any_some_in_nl_0000", "db_id": "concert_singer", "query": "select name from stadium where stadium_id not in (select stadium_id from concert)", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")"], "question": "Show the stadium names which id not in concert.", "question_toks": ["Show", "the", "stadium", "names", "which", "id", "not", "in", "concert", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0028", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0001", "db_id": "concert_singer", "query": "select name from stadium where stadium_id not in (select stadium_id from concert)", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")"], "question": "What are the names of the stadiums id without concerts?", "question_toks": ["What", "are", "the", "names", "of", "the", "stadiums", "id", "without", "concerts", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0029", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0002", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "T2", ".", "location", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "Year", "=", "value", "INTERSECT", "SELECT", "T2", ".", "name", ",", "T2", ".", "location", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "Year", "=", "value"], "question": "Find the name and location of the stadiums with concerts happened in the years of both 2014 and 2015.", "question_toks": ["Find", "the", "name", "and", "location", "of", "the", "stadiums", "with", "concerts", "happened", "in", "the", "years", "of", "both", "2014", "and", "2015", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0041", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0003", "db_id": "dog_kennels", "query": "select avg(age) from dogs where dog_id in ( select dog_id from treatments )", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "Dogs", "WHERE", "dog_id", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", "FROM", "Dogs", "WHERE", "dog_id", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "question": "What is the average age of the dogs who are in the treatments?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "dogs", "who", "are", "in", "the", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0920", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0004", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Dogs", "WHERE", "dog_id", "NOT", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Dogs", "WHERE", "dog_id", "NOT", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "question": "How many dogs have not gone through treatment?", "question_toks": ["How", "many", "dogs", "have", "not", "gone", "through", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0978", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0005", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["select", "count", "(*)", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "count", "(*)", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "Tell me the number of dogs that are not in the treatment table .", "question_toks": ["Tell", "me", "the", "number", "of", "dogs", "that", "are", "not", "in", "the", "treatment", "table", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0979", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0006", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "question": "How many owners temporarily do not have dogs?", "question_toks": ["How", "many", "owners", "temporarily", "do", "not", "have", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0980", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0007", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "question": "Find the number of owners who do not own dogs.", "question_toks": ["Find", "the", "number", "of", "owners", "who", "do", "not", "own", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0981", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0008", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "question": "How many professionals did not operate treatment on dogs?", "question_toks": ["How", "many", "professionals", "did", "not", "operate", "treatment", "on", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0982", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0009", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["SELECT", "count", "(*)", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "question": "Find the number of professionals who have not treated dogs.", "question_toks": ["Find", "the", "number", "of", "professionals", "who", "have", "not", "treated", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0983", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0010", "db_id": "employee_hire_evaluation", "query": "select name from employee where employee_id not in (select employee_id from evaluation)", "query_toks": ["SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")"], "question": "Find the names of employees whose id not in the the evaluation table.", "question_toks": ["Find", "the", "names", "of", "employees", "whose", "id", "not", "in", "the", "the", "evaluation", "table", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0281", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0011", "db_id": "employee_hire_evaluation", "query": "select name from employee where employee_id not in (select employee_id from evaluation)", "query_toks": ["SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")"], "question": "What are the names of the employees who was not evaluated?", "question_toks": ["What", "are", "the", "names", "of", "the", "employees", "who", "was", "not", "evaluated", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0282", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0012", "db_id": "employee_hire_evaluation", "query": "select name from shop where shop_id not in (select shop_id from hiring)", "query_toks": ["SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")"], "question": "Find the name of the shops that is not hirinig.", "question_toks": ["Find", "the", "name", "of", "the", "shops", "that", "is", "not", "hirinig", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0285", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0013", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", "query_toks": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")"], "query_toks_no_value": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")"], "question": "Find the name of airports which airportcode not in sourceairport and destairport.", "question_toks": ["Find", "the", "name", "of", "airports", "which", "airportcode", "not", "in", "sourceairport", "and", "destairport", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0257", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0014", "db_id": "museum_visit", "query": "select count(distinct id) 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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ">", "value", ")"], "question": "Find the number of visitors who visites museum opened before 2010 or in 2010.", "question_toks": ["Find", "the", "number", "of", "visitors", "who", "visites", "museum", "opened", "before", "2010", "or", "in", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0427", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0015", "db_id": "music_4", "query": "select famous_title from artist where artist_id not in (select artist_id from volume)", "query_toks": ["SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")"], "query_toks_no_value": ["SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")"], "question": "Find the famous titles of artists that do not have volume.", "question_toks": ["Find", "the", "famous", "titles", "of", "artists", "that", "do", "not", "have", "volume", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6189", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0016", "db_id": "music_4", "query": "select famous_title from artist where artist_id not in (select artist_id from volume)", "query_toks": ["SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")"], "query_toks_no_value": ["SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")"], "question": "What are the famous titles of artists who do not have volumes?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "who", "do", "not", "have", "volumes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6190", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0017", "db_id": "network_1", "query": "select student_id from friend intersect select liked_id from likes", "query_toks": ["SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes"], "query_toks_no_value": ["SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes"], "question": "Show the ids of high schoolers who have friends and are also liked.", "question_toks": ["Show", "the", "ids", "of", "high", "schoolers", "who", "have", "friends", "and", "are", "also", "liked", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0898", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0018", "db_id": "network_1", "query": "select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1", ".", "student_id", "=", "T2", ".", "id"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1", ".", "student_id", "=", "T2", ".", "id"], "question": "Show name of all students who have some friends.", "question_toks": ["Show", "name", "of", "all", "students", "who", "have", "some", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0900", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0019", "db_id": "network_1", "query": "select avg(grade) from highschooler", "query_toks": ["SELECT", "avg", "(", "grade", ")", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "avg", "(", "grade", ")", "FROM", "Highschooler"], "question": "Find the average grade of all students.", "question_toks": ["Find", "the", "average", "grade", "of", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0914", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0020", "db_id": "network_1", "query": "select min(grade) from highschooler", "query_toks": ["SELECT", "min", "(", "grade", ")", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "min", "(", "grade", ")", "FROM", "Highschooler"], "question": "What is the lowest grade of students?", "question_toks": ["What", "is", "the", "lowest", "grade", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0917", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0021", "db_id": "news_report", "query": "select name from journalist where journalist_id not in (select journalist_id from news_report)", "query_toks": ["SELECT", "Name", "FROM", "journalist", "WHERE", "journalist_ID", "NOT", "IN", "(", "SELECT", "journalist_ID", "FROM", "news_report", ")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "journalist", "WHERE", "journalist_ID", "NOT", "IN", "(", "SELECT", "journalist_ID", "FROM", "news_report", ")"], "question": "List the names of journalists who have not reported any event.", "question_toks": ["List", "the", "names", "of", "journalists", "who", "have", "not", "reported", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2816", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0022", "db_id": "orchestra", "query": "select orchestra from orchestra", "query_toks": ["SELECT", "Orchestra", "FROM", "orchestra"], "query_toks_no_value": ["SELECT", "Orchestra", "FROM", "orchestra"], "question": "What are the orchestras?", "question_toks": ["What", "are", "the", "orchestras", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0855", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0023", "db_id": "party_host", "query": "select name from host", "query_toks": ["SELECT", "Name", "FROM", "HOST"], "query_toks_no_value": ["SELECT", "Name", "FROM", "HOST"], "question": "List the names of hosts.", "question_toks": ["List", "the", "names", "of", "hosts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2688", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0024", "db_id": "party_host", "query": "select name from host", "query_toks": ["SELECT", "Name", "FROM", "HOST"], "query_toks_no_value": ["SELECT", "Name", "FROM", "HOST"], "question": "What are the names of hosts?", "question_toks": ["What", "are", "the", "names", "of", "hosts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2689", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0025", "db_id": "party_people", "query": "select party_name from party", "query_toks": ["SELECT", "party_name", "FROM", "party"], "query_toks_no_value": ["SELECT", "party_name", "FROM", "party"], "question": "Show names of parties.", "question_toks": ["Show", "names", "of", "parties", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2063", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0026", "db_id": "performance_attendance", "query": "select name from member", "query_toks": ["SELECT", "Name", "FROM", "member"], "query_toks_no_value": ["SELECT", "Name", "FROM", "member"], "question": "List the names of members.", "question_toks": ["List", "the", "names", "of", "members", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1321", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0027", "db_id": "pets_1", "query": "select avg(age) from student", "query_toks": ["select", "avg", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student"], "question": "Find the average age of students.", "question_toks": ["Find", "the", "average", "age", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0085", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0028", "db_id": "pets_1", "query": "select avg(age) from student", "query_toks": ["select", "avg", "(", "age", ")", "from", "student"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student"], "question": "What is the average age for all students?", "question_toks": ["What", "is", "the", "average", "age", "for", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0086", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0029", "db_id": "phone_1", "query": "select avg(ram_mib) from chip_model", "query_toks": ["SELECT", "avg", "(", "RAM_MiB", ")", "FROM", "chip_model"], "query_toks_no_value": ["SELECT", "avg", "(", "RAM_MiB", ")", "FROM", "chip_model"], "question": "Find the average ram mib size of the chip models.", "question_toks": ["Find", "the", "average", "ram", "mib", "size", "of", "the", "chip", "models", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1049", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0030", "db_id": "phone_market", "query": "select name from phone ", "query_toks": ["SELECT", "Name", "FROM", "phone"], "query_toks_no_value": ["SELECT", "Name", "FROM", "phone"], "question": "List the names of phones.", "question_toks": ["List", "the", "names", "of", "phones", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1992", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0031", "db_id": "pilot_record", "query": "select pilot_name from pilot", "query_toks": ["SELECT", "Pilot_name", "FROM", "pilot"], "query_toks_no_value": ["SELECT", "Pilot_name", "FROM", "pilot"], "question": "List the names of pilots.", "question_toks": ["List", "the", "names", "of", "pilots", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2097", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0032", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors", "query_toks": ["SELECT", "count", "(*)", "FROM", "Ref_colors"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Ref_colors"], "question": "How many colors are?", "question_toks": ["How", "many", "colors", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5600", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0033", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors", "query_toks": ["SELECT", "count", "(*)", "FROM", "Ref_colors"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Ref_colors"], "question": "Count the number of colors.", "question_toks": ["Count", "the", "number", "of", "colors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5601", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0034", "db_id": "program_share", "query": "select t1.owner from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"night\"", "query_toks": ["SELECT", "t1", ".", "owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1", ".", "program_id", "=", "t2", ".", "program_id", "WHERE", "t2", ".", "Time_of_day", "=", "``", "night", "''"], "query_toks_no_value": ["SELECT", "t1", ".", "owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1", ".", "program_id", "=", "t2", ".", "program_id", "WHERE", "t2", ".", "Time_of_day", "=", "value"], "question": "find the program owners in night time.", "question_toks": ["find", "the", "program", "owners", "in", "night", "time", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"night\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3754", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0035", "db_id": "protein_institute", "query": "select name from building", "query_toks": ["SELECT", "name", "FROM", "building"], "query_toks_no_value": ["SELECT", "name", "FROM", "building"], "question": "Show the name of buildings.", "question_toks": ["Show", "the", "name", "of", "buildings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1920", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0036", "db_id": "race_track", "query": "select name from track", "query_toks": ["SELECT", "name", "FROM", "track"], "query_toks_no_value": ["SELECT", "name", "FROM", "track"], "question": "Return the names of tracks.", "question_toks": ["Return", "the", "names", "of", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0776", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0037", "db_id": "railway", "query": "select objectnumber from railway", "query_toks": ["SELECT", "ObjectNumber", "FROM", "railway"], "query_toks_no_value": ["SELECT", "ObjectNumber", "FROM", "railway"], "question": "List the object number of railways.", "question_toks": ["List", "the", "object", "number", "of", "railways", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5648", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0038", "db_id": "ship_1", "query": "select rank from captain where class = \"cutter\" intersect select rank from captain where class = \"armed schooner\"", "query_toks": ["SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "``", "cutter", "''", "INTERSECT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "``", "armed", "schooner", "''"], "query_toks_no_value": ["SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "value", "INTERSECT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "value", "schooner"], "question": "Find the captain rank containing captians with both Cutter and Armed schooner classes.", "question_toks": ["Find", "the", "captain", "rank", "containing", "captians", "with", "both", "Cutter", "and", "Armed", "schooner", "classes", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"cutter\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"armed schooner\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6238", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0039", "db_id": "ship_1", "query": "select name , class from ship", "query_toks": ["SELECT", "name", ",", "CLASS", "FROM", "ship"], "query_toks_no_value": ["SELECT", "name", ",", "CLASS", "FROM", "ship"], "question": "what are the names and classes of the ships?", "question_toks": ["what", "are", "the", "names", "and", "classes", "of", "the", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6260", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0040", "db_id": "ship_1", "query": "select name , flag from ship", "query_toks": ["SELECT", "name", ",", "flag", "FROM", "ship"], "query_toks_no_value": ["SELECT", "name", ",", "flag", "FROM", "ship"], "question": "Find the name and flag of ships.", "question_toks": ["Find", "the", "name", "and", "flag", "of", "ships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6264", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0041", "db_id": "solvency_ii", "query": "select product_name from products where product_id not in (select product_id from products_in_events)", "query_toks": ["SELECT", "Product_Name", "FROM", "Products", "WHERE", "Product_ID", "NOT", "IN", "(", "SELECT", "Product_ID", "FROM", "Products_in_Events", ")"], "query_toks_no_value": ["SELECT", "Product_Name", "FROM", "Products", "WHERE", "Product_ID", "NOT", "IN", "(", "SELECT", "Product_ID", "FROM", "Products_in_Events", ")"], "question": "List the names of products that are not in event.", "question_toks": ["List", "the", "names", "of", "products", "that", "are", "not", "in", "event", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4597", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0042", "db_id": "sports_competition", "query": "select name from club where club_id not in (select club_id from player)", "query_toks": ["SELECT", "name", "FROM", "CLub", "WHERE", "Club_ID", "NOT", "IN", "(", "SELECT", "Club_ID", "FROM", "player", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "CLub", "WHERE", "Club_ID", "NOT", "IN", "(", "SELECT", "Club_ID", "FROM", "player", ")"], "question": "List the names of clubs that do not have players.", "question_toks": ["List", "the", "names", "of", "clubs", "that", "do", "not", "have", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3371", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0043", "db_id": "sports_competition", "query": "select name from club", "query_toks": ["SELECT", "name", "FROM", "CLub"], "query_toks_no_value": ["SELECT", "name", "FROM", "CLub"], "question": "What are the names of all clubs?", "question_toks": ["What", "are", "the", "names", "of", "all", "clubs", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3372", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0044", "db_id": "storm_record", "query": "select name from storm", "query_toks": ["SELECT", "name", "FROM", "storm"], "query_toks_no_value": ["SELECT", "name", "FROM", "storm"], "question": "What are the names of storms?", "question_toks": ["What", "are", "the", "names", "of", "storms", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2719", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0045", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "''", "AND", "population", "<", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", "<", "value", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the African countries that have a population less than minimum population of the countries in Asia?", "question_toks": ["What", "are", "the", "African", "countries", "that", "have", "a", "population", "less", "than", "minimum", "population", "of", "the", "countries", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_any_some_in_nl_0045", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0046", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "''", "AND", "population", "<", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", "<", "value", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "Which African countries have a smaller population than that min population in the countries of Asia?", "question_toks": ["Which", "African", "countries", "have", "a", "smaller", "population", "than", "that", "min", "population", "in", "the", "countries", "of", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0775", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0047", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''", "AND", "population", ">", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", ">", "value", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "Which Asian countries have a population that is larger than maximum populated country in Africa?", "question_toks": ["Which", "Asian", "countries", "have", "a", "population", "that", "is", "larger", "than", "maximum", "populated", "country", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0776", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0048", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''", "AND", "population", ">", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", ">", "value", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the Asian countries which have a population larger than country in Africa with maximum population?", "question_toks": ["What", "are", "the", "Asian", "countries", "which", "have", "a", "population", "larger", "than", "country", "in", "Africa", "with", "maximum", "population", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_any_some_in_nl_0048", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0049", "db_id": "wrestler", "query": "select time from elimination where eliminated_by = \"punk\" or eliminated_by = \"orton\"", "query_toks": ["SELECT", "TIME", "FROM", "elimination", "WHERE", "Eliminated_By", "=", "``", "punk", "''", "OR", "Eliminated_By", "=", "``", "orton", "''"], "query_toks_no_value": ["SELECT", "TIME", "FROM", "elimination", "WHERE", "Eliminated_By", "=", "value", "OR", "Eliminated_By", "=", "value"], "question": "What are the times of elimination for instances in which the elimination was done by Punk or Orton?", "question_toks": ["What", "are", "the", "times", "of", "elimination", "for", "instances", "in", "which", "the", "elimination", "was", "done", "by", "Punk", "or", "Orton", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"punk\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"orton\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1883", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0050", "db_id": "aircraft", "query": "select aircraft from aircraft", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft"], "query_toks_no_value": ["SELECT", "Aircraft", "FROM", "aircraft"], "question": "List the names of aircrafts.", "question_toks": ["List", "the", "names", "of", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4831", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0051", "db_id": "aircraft", "query": "select aircraft from aircraft", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft"], "query_toks_no_value": ["SELECT", "Aircraft", "FROM", "aircraft"], "question": "What are the names of all aicrafts?", "question_toks": ["What", "are", "the", "names", "of", "all", "aicrafts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4832", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0052", "db_id": "aircraft", "query": "select name from pilot", "query_toks": ["SELECT", "name", "FROM", "pilot"], "query_toks_no_value": ["SELECT", "name", "FROM", "pilot"], "question": "What are the names of the pilots?", "question_toks": ["What", "are", "the", "names", "of", "the", "pilots", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4842", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0053", "db_id": "allergy_1", "query": "select fname , lname from student where stuid not in (select t1.stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1", ".", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "``", "food", "\")"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1", ".", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "value", "\")"], "question": "List the first and last name of the students without food type allergy.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "the", "students", "without", "food", "type", "allergy", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0527", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0054", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "Student"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "Student"], "question": "What is the full name of each student.", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0528", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0055", "db_id": "allergy_1", "query": "select count(*) from student where sex = \"m\" and stuid in (select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "sex", "=", "``", "m", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "``", "food", "\")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "sex", "=", "value", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1", ".", "Allergy", "=", "T2", ".", "Allergy", "WHERE", "T2", ".", "allergytype", "=", "value", "\")"], "question": "Find the number of male (sex is 'M') students with food type allery.", "question_toks": ["Find", "the", "number", "of", "male", "(", "sex", "is", "'", "M", "')", "students", "with", "food", "type", "allery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"m\"", null], "and", [false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0529", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0056", "db_id": "allergy_1", "query": "select count(*) from student where sex = \"m\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "sex", "=", "``", "m", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "sex", "=", "value"], "question": "How many male students (sex is 'M') are?", "question_toks": ["How", "many", "male", "students", "(", "sex", "is", "'", "M", "')", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0530", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "any_some_in_nl_0057", "db_id": "apartment_rentals", "query": "select count(*) from apartments where apt_id not in (select apt_id from apartment_facilities)", "query_toks": ["SELECT", "count", "(*)", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")"], "question": "How many apartments do not have facility?", "question_toks": ["How", "many", "apartments", "do", "not", "have", "facility", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1268", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0058", "db_id": "assets_maintenance", "query": "select asset_model from assets where asset_id not in (select asset_id from fault_log)", "query_toks": ["SELECT", "asset_model", "FROM", "Assets", "WHERE", "asset_id", "NOT", "IN", "(", "SELECT", "asset_id", "FROM", "Fault_Log", ")"], "query_toks_no_value": ["SELECT", "asset_model", "FROM", "Assets", "WHERE", "asset_id", "NOT", "IN", "(", "SELECT", "asset_id", "FROM", "Fault_Log", ")"], "question": "Which assets did not incur fault log? List the asset model.", "question_toks": ["Which", "assets", "did", "not", "incur", "fault", "log", "?", "List", "the", "asset", "model", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[true, 8, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3156", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"]}, {"id": "any_some_in_nl_0059", "db_id": "battle_death", "query": "select count(*) from battle", "query_toks": ["SELECT", "count", "(*)", "FROM", "battle", "WHERE", "id", "NOT", "IN", "(", "SELECT", "lost_in_battle", "FROM", "ship", "WHERE", "tonnage", "=", "``", "225", "''", ")"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "battle", "WHERE", "id", "NOT", "IN", "(", "SELECT", "lost_in_battle", "FROM", "ship", "WHERE", "tonnage", "=", "value", ")"], "question": "How many battles are?", "question_toks": ["How", "many", "battles", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"225\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0503", "is_simplification": true, "simplifications_tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"]}, {"id": "values_without_columns_0000", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "value", "mexico"], "question": "how big is state new mexico", "question_toks": ["how", "big", "is", "state", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0012", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0001", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\"", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''"], "query_toks_no_value": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "value", "mexico"], "question": "how large is state new mexico", "question_toks": ["how", "large", "is", "state", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0014", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0002", "db_id": "geo", "query": "select state_name from city where city_name = \"springfield\"", "query_toks": ["SELECT", "state_name", "FROM", "city", "WHERE", "city_name", "=", "``", "springfield", "''"], "query_toks_no_value": ["SELECT", "state_name", "FROM", "city", "WHERE", "city_name", "=", "value"], "question": "in what state is city springfield", "question_toks": ["in", "what", "state", "is", "city", "springfield"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"springfield\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0118", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0003", "db_id": "geo", "query": "select population from city where city_name = \"boulder\"", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "city_name", "=", "``", "boulder", "''"], "query_toks_no_value": ["SELECT", "population", "FROM", "city", "WHERE", "city_name", "=", "value"], "question": "how many people live in city boulder", "question_toks": ["how", "many", "people", "live", "in", "city", "boulder"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"boulder\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "other_0132", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0004", "db_id": "flight_2", "query": "select country from airlines where airline = \"jetblue airways\"", "query_toks": ["SELECT", "Country", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "jetblue", "airways", "''"], "query_toks_no_value": ["SELECT", "Country", "FROM", "AIRLINES", "WHERE", "Airline", "=", "value", "airways"], "question": "What country is airline Jetblue Airways affiliated with?", "question_toks": ["What", "country", "is", "airline", "Jetblue", "Airways", "affiliated", "with", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"jetblue airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0180", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0005", "db_id": "flight_2", "query": "select count(*) from airlines where country = \"usa\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "usa", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "WHERE", "Country", "=", "value"], "question": "How many airlines are from country USA?", "question_toks": ["How", "many", "airlines", "are", "from", "country", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0195", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0006", "db_id": "wta_1", "query": "select first_name , birth_date from players where country_code = \"usa\"", "query_toks": ["SELECT", "first_name", ",", "birth_date", "FROM", "players", "WHERE", "country_code", "=", "``", "usa", "''"], "query_toks_no_value": ["SELECT", "first_name", ",", "birth_date", "FROM", "players", "WHERE", "country_code", "=", "value"], "question": "What are the first names and birth dates of players from country with code USA?", "question_toks": ["What", "are", "the", "first", "names", "and", "birth", "dates", "of", "players", "from", "country", "with", "code", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0434", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0007", "db_id": "student_transcripts_tracking", "query": "select zip_postcode from addresses where city = \"port chelsea\"", "query_toks": ["SELECT", "zip_postcode", "FROM", "Addresses", "WHERE", "city", "=", "``", "port", "chelsea", "''"], "query_toks_no_value": ["SELECT", "zip_postcode", "FROM", "Addresses", "WHERE", "city", "=", "value", "chelsea"], "question": "What is the zip code for city Port Chelsea?", "question_toks": ["What", "is", "the", "zip", "code", "for", "city", "Port", "Chelsea", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"port chelsea\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0514", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0008", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = \"timmothy\" and last_name = \"ward\"", "query_toks": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "``", "timmothy", "''", "and", "last_name", "=", "``", "ward", "''"], "query_toks_no_value": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the mobile phone number of the student with first name Timmothy and last name Ward ?", "question_toks": ["What", "is", "the", "mobile", "phone", "number", "of", "the", "student", "with", "first", "name", "Timmothy", "and", "last", "name", "Ward", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"timmothy\"", null], "and", [false, 2, [0, [0, 37, false], null], "\"ward\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0554", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0009", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel where language != \"english\"", "query_toks": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel", "WHERE", "LANGUAGE", "!=", "``", "english", "''"], "query_toks_no_value": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel", "WHERE", "LANGUAGE", "!=", "value"], "question": "find the pixel aspect ratio and nation of the tv channels that do not use language English.", "question_toks": ["find", "the", "pixel", "aspect", "ratio", "and", "nation", "of", "the", "tv", "channels", "that", "do", "not", "use", "language", "English", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0639", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0010", "db_id": "world_1", "query": "select name from country where continent = \"asia\" order by lifeexpectancy limit 1", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1"], "question": "What is the name of country that has the shortest life expectancy in continent Asia?", "question_toks": ["What", "is", "the", "name", "of", "country", "that", "has", "the", "shortest", "life", "expectancy", "in", "continent", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0720", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0011", "db_id": "world_1", "query": "select name from country where continent = \"asia\" order by lifeexpectancy limit 1", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1"], "question": "Give the name of the country in continent Asia with the lowest life expectancy.", "question_toks": ["Give", "the", "name", "of", "the", "country", "in", "continent", "Asia", "with", "the", "lowest", "life", "expectancy", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0721", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0012", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "value"], "question": "What is the total population and maximum GNP in continent Asia?", "question_toks": ["What", "is", "the", "total", "population", "and", "maximum", "GNP", "in", "continent", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0722", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0013", "db_id": "world_1", "query": "select avg(gnp) , sum(population) from country where governmentform = \"us territory\"", "query_toks": ["SELECT", "avg", "(", "GNP", ")", ",", "sum", "(", "population", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "us", "territory", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "GNP", ")", ",", "sum", "(", "population", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "value", "territory"], "question": "Give the mean GNP and total population of nations which are considered goverment form US.", "question_toks": ["Give", "the", "mean", "GNP", "and", "total", "population", "of", "nations", "which", "are", "considered", "goverment", "form", "US", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]], [4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"us territory\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0731", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0014", "db_id": "world_1", "query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"aruba\"", "query_toks": ["SELECT", "COUNT", "(", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "``", "aruba", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value"], "question": "What is the total number of languages used in country named Aruba?", "question_toks": ["What", "is", "the", "total", "number", "of", "languages", "used", "in", "country", "named", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"aruba\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0736", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0015", "db_id": "world_1", "query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"aruba\"", "query_toks": ["SELECT", "COUNT", "(", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "``", "aruba", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value"], "question": "How many languages are spoken in country with name Aruba?", "question_toks": ["How", "many", "languages", "are", "spoken", "in", "country", "with", "name", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"aruba\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0737", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0016", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "``", "afghanistan", "''", "AND", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value", "AND", "IsOfficial", "=", "value"], "question": "How many official languages does country with name Afghanistan have?", "question_toks": ["How", "many", "official", "languages", "does", "country", "with", "name", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0738", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0017", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "``", "afghanistan", "''", "AND", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value", "AND", "IsOfficial", "=", "value"], "question": "How many official languages are spoken in country with name Afghanistan?", "question_toks": ["How", "many", "official", "languages", "are", "spoken", "in", "country", "with", "name", "Afghanistan", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0739", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0018", "db_id": "world_1", "query": "select count(distinct continent) from country where code in ( select countrycode from countrylanguage where language like '%chinese%' );", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Continent", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "chinese", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "Continent", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value"], "question": "What is the number of distinct continents where language Chinese is spoken?", "question_toks": ["What", "is", "the", "number", "of", "distinct", "continents", "where", "language", "Chinese", "is", "spoken", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"chinese\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0750", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0019", "db_id": "world_1", "query": "select count(*) from country where continent = \"asia\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "country", "WHERE", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "country", "WHERE", "continent", "=", "value"], "question": "how many countries are in continent Asia?", "question_toks": ["how", "many", "countries", "are", "in", "continent", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0806", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0020", "db_id": "network_1", "query": "select id from highschooler where name = \"kyle\"", "query_toks": ["SELECT", "ID", "FROM", "Highschooler", "WHERE", "name", "=", "``", "kyle", "''"], "query_toks_no_value": ["SELECT", "ID", "FROM", "Highschooler", "WHERE", "name", "=", "value"], "question": "What is id of highschooler with name Kyle?", "question_toks": ["What", "is", "id", "of", "highschooler", "with", "name", "Kyle", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0873", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0021", "db_id": "bike_1", "query": "select count(*) from trip as t1 join station as t2 on t1.end_station_id = t2.id where t2.city != \"san francisco\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1", ".", "end_station_id", "=", "T2", ".", "id", "WHERE", "T2", ".", "city", "!=", "``", "san", "francisco", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1", ".", "end_station_id", "=", "T2", ".", "id", "WHERE", "T2", ".", "city", "!=", "value", "francisco"], "question": "How many trips did not end in city San Francisco?", "question_toks": ["How", "many", "trips", "did", "not", "end", "in", "city", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"san francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0166", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0022", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107 and events != \"fog\" and events != \"rain\"", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "94107", "AND", "EVENTS", "!=", "``", "fog", "''", "AND", "EVENTS", "!=", "``", "rain", "''"], "query_toks_no_value": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "value", "AND", "EVENTS", "!=", "value", "AND", "EVENTS", "!=", "value"], "question": "In zip code 94107, on which day events Fog and Rain was not observed?", "question_toks": ["In", "zip", "code", "94107", ",", "on", "which", "day", "events", "Fog", "and", "Rain", "was", "not", "observed", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null], "and", [false, 7, [0, [0, 44, false], null], "\"fog\"", null], "and", [false, 7, [0, [0, 44, false], null], "\"rain\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0167", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0023", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10 except select name from station where city = \"san jose\"", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "value", "jose"], "question": "What are the names of all stations that have more than 10 bikes available and are not located in city San Jose?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "that", "have", "more", "than", "10", "bikes", "available", "and", "are", "not", "located", "in", "city", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0172", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0024", "db_id": "bike_1", "query": "select count(*) from station as t1 join trip as t2 join station as t3 join trip as t4 on t1.id = t2.start_station_id and t2.id = t4.id and t3.id = t4.end_station_id where t1.city = \"mountain view\" and t3.city = \"palo alto\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "JOIN", "station", "AS", "T3", "JOIN", "trip", "AS", "T4", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id", "AND", "T2", ".", "id", "=", "T4", ".", "id", "AND", "T3", ".", "id", "=", "T4", ".", "end_station_id", "WHERE", "T1", ".", "city", "=", "``", "mountain", "view", "''", "AND", "T3", ".", "city", "=", "``", "palo", "alto", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "JOIN", "station", "AS", "T3", "JOIN", "trip", "AS", "T4", "ON", "T1", ".", "id", "=", "T2", ".", "start_station_id", "AND", "T2", ".", "id", "=", "T4", ".", "id", "AND", "T3", ".", "id", "=", "T4", ".", "end_station_id", "WHERE", "T1", ".", "city", "=", "value", "view", "AND", "T3", ".", "city", "=", "value", "alto"], "question": "How many trips started from city Mountain View city and ended at city Palo Alto city?", "question_toks": ["How", "many", "trips", "started", "from", "city", "Mountain", "View", "city", "and", "ended", "at", "city", "Palo", "Alto", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"mountain view\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"palo alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0209", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0025", "db_id": "flight_1", "query": "select eid , salary from employee where name = \"mark young\"", "query_toks": ["SELECT", "eid", ",", "salary", "FROM", "Employee", "WHERE", "name", "=", "``", "mark", "young", "''"], "query_toks_no_value": ["SELECT", "eid", ",", "salary", "FROM", "Employee", "WHERE", "name", "=", "value", "young"], "question": "Show the id and salary of employee with name Mark Young.", "question_toks": ["Show", "the", "id", "and", "salary", "of", "employee", "with", "name", "Mark", "Young", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"mark young\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0379", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0026", "db_id": "flight_1", "query": "select t3.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t1.name = \"john williams\"", "query_toks": ["SELECT", "T3", ".", "name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1", ".", "eid", "=", "T2", ".", "eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3", ".", "aid", "=", "T2", ".", "aid", "WHERE", "T1", ".", "name", "=", "``", "john", "williams", "''"], "query_toks_no_value": ["SELECT", "T3", ".", "name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1", ".", "eid", "=", "T2", ".", "eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3", ".", "aid", "=", "T2", ".", "aid", "WHERE", "T1", ".", "name", "=", "value", "williams"], "question": "What are the names of all aircrafts that employee with name John Williams have certificates to be able to fly?", "question_toks": ["What", "are", "the", "names", "of", "all", "aircrafts", "that", "employee", "with", "name", "John", "Williams", "have", "certificates", "to", "be", "able", "to", "fly", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"john williams\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0424", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0027", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"hkg\" or city_code = \"chi\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "city_code", "=", "``", "hkg", "''", "OR", "city_code", "=", "``", "chi", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Student", "WHERE", "city_code", "=", "value", "OR", "city_code", "=", "value"], "question": "Give the number of students living in cities with codes HKG or CHI.", "question_toks": ["Give", "the", "number", "of", "students", "living", "in", "cities", "with", "codes", "HKG", "or", "CHI", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"hkg\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"chi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0482", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0028", "db_id": "store_1", "query": "select email , phone from customers where first_name = \"astrid\" and last_name = \"gruber\"", "query_toks": ["SELECT", "email", ",", "phone", "FROM", "customers", "WHERE", "first_name", "=", "``", "astrid", "''", "AND", "last_name", "=", "``", "gruber", "''"], "query_toks_no_value": ["SELECT", "email", ",", "phone", "FROM", "customers", "WHERE", "first_name", "=", "value", "AND", "last_name", "=", "value"], "question": "What is the email and phone number of customer with first name Astrid and last name Gruber?", "question_toks": ["What", "is", "the", "email", "and", "phone", "number", "of", "customer", "with", "first", "name", "Astrid", "and", "last", "name", "Gruber", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 32, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"astrid\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"gruber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0576", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0029", "db_id": "store_1", "query": "select phone from employees where first_name = \"nancy\" and last_name = \"edwards\"", "query_toks": ["SELECT", "phone", "FROM", "employees", "WHERE", "first_name", "=", "``", "nancy", "''", "AND", "last_name", "=", "``", "edwards", "''"], "query_toks_no_value": ["SELECT", "phone", "FROM", "employees", "WHERE", "first_name", "=", "value", "AND", "last_name", "=", "value"], "question": "What is the the phone number of employee with first name Nancy and last name Edwards?", "question_toks": ["What", "is", "the", "the", "phone", "number", "of", "employee", "with", "first", "name", "Nancy", "and", "last", "name", "Edwards", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"nancy\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"edwards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0598", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0030", "db_id": "store_1", "query": "select count(*) from customers as t1 join invoices as t2 on t1.id = t2.customer_id where t1.first_name = \"lucas\" and t1.last_name = \"mancini\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "customer_id", "WHERE", "T1", ".", "first_name", "=", "``", "lucas", "''", "AND", "T1", ".", "last_name", "=", "``", "mancini", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "customer_id", "WHERE", "T1", ".", "first_name", "=", "value", "AND", "T1", ".", "last_name", "=", "value"], "question": "How many orders does customer with first name Lucas and last name Mancini has?", "question_toks": ["How", "many", "orders", "does", "customer", "with", "first", "name", "Lucas", "and", "last", "name", "Mancini", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 39, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"lucas\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"mancini\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0607", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0031", "db_id": "store_1", "query": "select milliseconds from tracks where name = \"fast as a shark\"", "query_toks": ["SELECT", "milliseconds", "FROM", "tracks", "WHERE", "name", "=", "``", "fast", "as", "a", "shark", "''"], "query_toks_no_value": ["SELECT", "milliseconds", "FROM", "tracks", "WHERE", "name", "=", "value", "as", "a", "shark"], "question": "How many milliseconds long is track named Fast As a Shark?", "question_toks": ["How", "many", "milliseconds", "long", "is", "track", "named", "Fast", "As", "a", "Shark", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]]]], "where": [[false, 2, [0, [0, 50, false], null], "\"fast as a shark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0620", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0032", "db_id": "customers_card_transactions", "query": "select count(*) from customers_cards where card_type_code = \"debit\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Customers_cards", "WHERE", "card_type_code", "=", "``", "debit", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Customers_cards", "WHERE", "card_type_code", "=", "value"], "question": "How many cards with type code \"Debit\" do we have?", "question_toks": ["How", "many", "cards", "with", "type", "code", "\"", "Debit", "\"", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"debit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0707", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0033", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers except select t1.customer_id , t2.customer_first_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id where card_type_code = \"credit\"", "query_toks": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "card_type_code", "=", "``", "credit", "''"], "query_toks_no_value": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "WHERE", "card_type_code", "=", "value"], "question": "Show the customer ids and firstname without a card with type code \"Credit\".", "question_toks": ["Show", "the", "customer", "ids", "and", "firstname", "without", "a", "card", "with", "type", "code", "\"", "Credit", "\"."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"credit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0727", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "values_without_columns_0034", "db_id": "culture_company", "query": "select t1.title , t3.book_title from movie as t1 join culture_company as t2 on t1.movie_id = t2.movie_id join book_club as t3 on t3.book_club_id = t2.book_club_id where t2.incorporated_in = \"china\"", "query_toks": ["SELECT", "T1", ".", "title", ",", "T3", ".", "book_title", "FROM", "movie", "AS", "T1", "JOIN", "culture_company", "AS", "T2", "ON", "T1", ".", "movie_id", "=", "T2", ".", "movie_id", "JOIN", "book_club", "AS", "T3", "ON", "T3", ".", "book_club_id", "=", "T2", ".", "book_club_id", "WHERE", "T2", ".", "incorporated_in", "=", "``", "china", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "title", ",", "T3", ".", "book_title", "FROM", "movie", "AS", "T1", "JOIN", "culture_company", "AS", "T2", "ON", "T1", ".", "movie_id", "=", "T2", ".", "movie_id", "JOIN", "book_club", "AS", "T3", "ON", "T3", ".", "book_club_id", "=", "T2", ".", "book_club_id", "WHERE", "T2", ".", "incorporated_in", "=", "value"], "question": "Show the movie titles and book titles for all companies incorporated in China.", "question_toks": ["Show", "the", "movie", "titles", "and", "book", "titles", "for", "all", "companies", "incorporated", "in", "China", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"china\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6996", "is_simplification": true, "simplifications_tags": ["VALUES_WITHOUT_COLUMNS"]}, {"id": "binary_0000", "db_id": "baseball_1", "query": "select min(yearid) from hall_of_fame where inducted = \"y\"", "query_toks": ["SELECT", "MIN", "(", "yearid", ")", "FROM", "hall_of_fame", "WHERE", "inducted", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "MIN", "(", "yearid", ")", "FROM", "hall_of_fame", "WHERE", "inducted", "=", "value"], "question": "What is the earliest year when someone has \"Y\" in inducted?", "question_toks": ["What", "is", "the", "earliest", "year", "when", "someone", "has", "\"", "Y", "\"", "in", "inducted", "?"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[2, [0, [0, 145, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0000", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0001", "db_id": "baseball_1", "query": "select player_id from hall_of_fame where inducted = \"y\" and yearid = 1936 and category = \"player\"", "query_toks": ["SELECT", "player_id", "FROM", "hall_of_fame", "WHERE", "inducted", "=", "``", "y", "''", "AND", "yearid", "=", "1936", "and", "category", "=", "``", "player", "''"], "query_toks_no_value": ["SELECT", "player_id", "FROM", "hall_of_fame", "WHERE", "inducted", "=", "value", "AND", "yearid", "=", "value", "and", "category", "=", "value"], "question": "List the id of players who has \"Y\" for inducted into the hall of fame in 1936", "question_toks": ["List", "the", "id", "of", "players", "who", "has", "\"", "Y", "\"", "for", "inducted", "into", "the", "hall", "of", "fame", "in", "1936"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 144, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 145, false], null], 1936.0, null], "and", [false, 2, [0, [0, 151, false], null], "\"player\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0001", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0002", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "value"], "question": "Amount of debates with \"F\" in if affirmative win", "question_toks": ["Amount", "of", "debates", "with", "\"", "F", "\"", "in", "if", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0002", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0003", "db_id": "debate", "query": "select debate_id from debate_people where if_affirmative_win = \"t\"", "query_toks": ["SELECT", "Debate_ID", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "Debate_ID", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "value"], "question": "Show ids of all debates with \"T\" in if affirmative win", "question_toks": ["Show", "ids", "of", "all", "debates", "with", "\"", "T", "\"", "in", "if", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0003", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0004", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "value"], "question": "Amount of debates without \"T\" in column if_affirmative_win", "question_toks": ["Amount", "of", "debates", "without", "\"", "T", "\"", "in", "column", "if_affirmative_win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0004", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0005", "db_id": "department_management", "query": "select distinct t1.age from management as t2 join head as t1 on t1.head_id = t2.head_id where t2.temporary_acting = \"no\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "age", "FROM", "management", "AS", "T2", "JOIN", "head", "AS", "T1", "ON", "T1", ".", "head_id", "=", "T2", ".", "head_id", "WHERE", "T2", ".", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "age", "FROM", "management", "AS", "T2", "JOIN", "head", "AS", "T1", "ON", "T1", ".", "head_id", "=", "T2", ".", "head_id", "WHERE", "T2", ".", "temporary_acting", "=", "value"], "question": "What are the distinct ages of the heads whose temporary acting value is \u2018No'?", "question_toks": ["What", "are", "the", "distinct", "ages", "of", "the", "heads", "whose", "temporary", "acting", "value", "is", "\u2018", "No", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0005", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0006", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "value"], "question": "Amount of \"No\" temporary acting managements", "question_toks": ["Amount", "of", "\"", "No", "\"", "temporary", "acting", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0006", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0007", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "value"], "question": "Amount of managements that have \"No\" in temporary acting.", "question_toks": ["Amount", "of", "managements", "that", "have", "\"", "No", "\"", "in", "temporary", "acting", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0007", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0008", "db_id": "department_management", "query": "select distinct t1.age from management as t2 join head as t1 on t1.head_id = t2.head_id where t2.temporary_acting = \"yes\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "age", "FROM", "management", "AS", "T2", "JOIN", "head", "AS", "T1", "ON", "T1", ".", "head_id", "=", "T2", ".", "head_id", "WHERE", "T2", ".", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "age", "FROM", "management", "AS", "T2", "JOIN", "head", "AS", "T1", "ON", "T1", ".", "head_id", "=", "T2", ".", "head_id", "WHERE", "T2", ".", "temporary_acting", "=", "value"], "question": "What are the distinct ages of the heads whose temporary acting value is 'Yes'?", "question_toks": ["What", "are", "the", "distinct", "ages", "of", "the", "heads", "whose", "temporary", "acting", "value", "is", "'", "Yes", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0012", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0009", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "value"], "question": "How many managements with \"Yes\" for temporary acting are there?", "question_toks": ["How", "many", "managements", "with", "\"", "Yes", "\"", "for", "temporary", "acting", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0009", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0010", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "value"], "question": "Amount of temporary acting managements (that is \"Yes\" in temporary actiong)", "question_toks": ["Amount", "of", "temporary", "acting", "managements", "(", "that", "is", "\"", "Yes", "\"", "in", "temporary", "actiong", ")"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0010", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0011", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 0", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "0"], "query_toks_no_value": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have not been abandoned (0 stands for abandoned)", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "not", "been", "abandoned", "(", "0", "stands", "for", "abandoned", ")"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 0.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0011", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0012", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1"], "query_toks_no_value": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have been abandoned (1 stands for abandoned)", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "been", "abandoned", "(", "1", "stands", "for", "abandoned", ")"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0984", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0013", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1"], "query_toks_no_value": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "value"], "question": "What are the dog name, age and weight of the dogs that were abandoned (1)?", "question_toks": ["What", "are", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "that", "were", "abandoned", "(", "1", ")?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0985", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0014", "db_id": "dog_kennels", "query": "select name from dogs where gender = \"1\"", "query_toks": ["SELECT", "name", "FROM", "Dogs", "WHERE", "Gender", "=", "``", "1", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "Dogs", "WHERE", "Gender", "=", "value"], "question": "Please, list all dog names in kennels with gender 1?", "question_toks": ["Please", ",", "list", "all", "dog", "names", "in", "kennels", "with", "gender", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0014", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0015", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"f\"", "query_toks": ["SELECT", "DISTINCT", "(", "Shop_ID", ")", "FROM", "hiring", "WHERE", "Is_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Shop_ID", ")", "FROM", "hiring", "WHERE", "Is_full_time", "=", "value"], "question": "Show ids of all shops with part time (full time if F) vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "part", "time", "(", "full", "time", "if", "F", ")", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0015", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0016", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"t\"", "query_toks": ["SELECT", "DISTINCT", "(", "Shop_ID", ")", "FROM", "hiring", "WHERE", "Is_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Shop_ID", ")", "FROM", "hiring", "WHERE", "Is_full_time", "=", "value"], "question": "Show ids of all shops with full time (T) vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "full", "time", "(", "T", ")", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0016", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0017", "db_id": "flight_4", "query": "select callsign from airlines where active = \"n\"", "query_toks": ["SELECT", "callsign", "FROM", "airlines", "WHERE", "active", "=", "``", "n", "''"], "query_toks_no_value": ["SELECT", "callsign", "FROM", "airlines", "WHERE", "active", "=", "value"], "question": "What are callsigns of airlines with N-active?", "question_toks": ["What", "are", "callsigns", "of", "airlines", "with", "N", "-", "active", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0017", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0018", "db_id": "flight_4", "query": "select name from airlines where active = \"y\"", "query_toks": ["SELECT", "name", "FROM", "airlines", "WHERE", "active", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "airlines", "WHERE", "active", "=", "value"], "question": "Names of airlines which status of activeness is \"Y\"", "question_toks": ["Names", "of", "airlines", "which", "status", "of", "activeness", "is", "\"", "Y", "\""], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0018", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0019", "db_id": "flight_4", "query": "select count(*) from airlines where active = \"y\" and country = \"canada\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "airlines", "WHERE", "active", "=", "``", "y", "''", "AND", "country", "=", "``", "canada", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "airlines", "WHERE", "active", "=", "value", "AND", "country", "=", "value"], "question": "How many airlines are in Canada that have value \"Y\" for \"active\"?", "question_toks": ["How", "many", "airlines", "are", "in", "Canada", "that", "have", "value", "\"", "Y", "\"", "for", "\"", "active", "\"?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0019", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0020", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = \"n\"", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "``", "n", "''"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "value"], "question": "List ids for all student who has \"N\" on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "has", "\"", "N", "\"", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0020", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0021", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where onscholarship = \"n\"", "query_toks": ["SELECT", "SUM", "(", "GamesPlayed", ")", "FROM", "SportsInfo", "WHERE", "OnScholarship", "=", "``", "n", "''"], "query_toks_no_value": ["SELECT", "SUM", "(", "GamesPlayed", ")", "FROM", "SportsInfo", "WHERE", "OnScholarship", "=", "value"], "question": "What the total amount of games played those who has \"N\" onscholarship?", "question_toks": ["What", "the", "total", "amount", "of", "games", "played", "those", "who", "has", "\"", "N", "\"", "onscholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0021", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0022", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = \"y\"", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "value"], "question": "List ids for all student who has \"Y\" on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "has", "\"", "Y", "\"", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6003", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0023", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = \"y\"", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "value"], "question": "What are the ids for all sporty students whose parameter onscholarship is \"Y\"?", "question_toks": ["What", "are", "the", "ids", "for", "all", "sporty", "students", "whose", "parameter", "onscholarship", "is", "\"", "Y", "\"?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6004", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0024", "db_id": "game_1", "query": "select t2.lname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.onscholarship = \"y\"", "query_toks": ["SELECT", "T2", ".", "Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "onscholarship", "=", "value"], "question": "Show last names for all student with \"Y\" value on scholarship.", "question_toks": ["Show", "last", "names", "for", "all", "student", "with", "\"", "Y", "\"", "value", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6005", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0025", "db_id": "game_1", "query": "select distinct(t2.lname) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.onscholarship = \"y\"", "query_toks": ["SELECT", "T2", ".", "Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "onscholarship", "=", "value"], "question": "What are the last names for all students having \"Y\" onscholarship?", "question_toks": ["What", "are", "the", "last", "names", "for", "all", "students", "having", "\"", "Y", "\"", "onscholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6006", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0026", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = \"y\"", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "football", "''", "AND", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "value", "AND", "onscholarship", "=", "value"], "question": "How many games are played for all football games by students on scholarship (that is, the value of \"onscholarship\" is 'Y')?", "question_toks": ["How", "many", "games", "are", "played", "for", "all", "football", "games", "by", "students", "on", "scholarship", "(", "that", "is", ",", "the", "value", "of", "\"", "onscholarship", "\"", "is", "'", "Y", "')?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6009", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0027", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = \"y\"", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "football", "''", "AND", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "value", "AND", "onscholarship", "=", "value"], "question": "What is the total number of all football games played by Y onscholarship students?", "question_toks": ["What", "is", "the", "total", "number", "of", "all", "football", "games", "played", "by", "Y", "onscholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6010", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0028", "db_id": "game_1", "query": "select sportname from sportsinfo where onscholarship = \"y\" group by sportname order by count(*) desc limit 1", "query_toks": ["SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "``", "y", "''", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "value", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Which sport has most number of students having value \"Y\" in the \"onscholarship\"?", "question_toks": ["Which", "sport", "has", "most", "number", "of", "students", "having", "value", "\"", "Y", "\"", "in", "the", "\"", "onscholarship", "\"?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6019", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0029", "db_id": "game_1", "query": "select sportname from sportsinfo where onscholarship = \"y\" group by sportname order by count(*) desc limit 1", "query_toks": ["SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "``", "y", "''", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "value", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "What is the sport with the most students with \"Y\" onscholarship?", "question_toks": ["What", "is", "the", "sport", "with", "the", "most", "students", "with", "\"", "Y", "\"", "onscholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6020", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0030", "db_id": "game_1", "query": "select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = \"y\"", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "600", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "value", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "value"], "question": "Show student ids who has \"Y\" onscholarship and have major 600.", "question_toks": ["Show", "student", "ids", "who", "has", "\"", "Y", "\"", "onscholarship", "and", "have", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6023", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0031", "db_id": "game_1", "query": "select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = \"y\"", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "600", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "value", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "value"], "question": "What are the student ids for those on scholarship \"Y\" in major number 600?", "question_toks": ["What", "are", "the", "student", "ids", "for", "those", "on", "scholarship", "\"", "Y", "\"", "in", "major", "number", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6024", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0032", "db_id": "game_1", "query": "select avg(hoursperweek) from sportsinfo where onscholarship = \"y\"", "query_toks": ["SELECT", "AVG", "(", "HoursPerWeek", ")", "FROM", "SportsInfo", "WHERE", "OnScholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "HoursPerWeek", ")", "FROM", "SportsInfo", "WHERE", "OnScholarship", "=", "value"], "question": "How many hours per week students which are Y onscholarship are playing in average?", "question_toks": ["How", "many", "hours", "per", "week", "students", "which", "are", "Y", "onscholarship", "are", "playing", "in", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0032", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0033", "db_id": "hospital_1", "query": "select t1.name , t3.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t2.primaryaffiliation = 1", "query_toks": ["SELECT", "T1", ".", "name", ",", "T3", ".", "name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1", ".", "EmployeeID", "=", "T2", ".", "physician", "JOIN", "department", "AS", "T3", "ON", "T2", ".", "department", "=", "T3", ".", "DepartmentID", "WHERE", "T2", ".", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T3", ".", "name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1", ".", "EmployeeID", "=", "T2", ".", "physician", "JOIN", "department", "AS", "T3", "ON", "T2", ".", "department", "=", "T3", ".", "DepartmentID", "WHERE", "T2", ".", "PrimaryAffiliation", "=", "value"], "question": "Find the names of all physicians and their primary affiliated departments' names (primary affiliation is 1).", "question_toks": ["Find", "the", "names", "of", "all", "physicians", "and", "their", "primary", "affiliated", "departments", "'", "names", "(", "primary", "affiliation", "is", "1", ")."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3914", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0034", "db_id": "hospital_1", "query": "select t1.name , t3.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t2.primaryaffiliation = 1", "query_toks": ["SELECT", "T1", ".", "name", ",", "T3", ".", "name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1", ".", "EmployeeID", "=", "T2", ".", "physician", "JOIN", "department", "AS", "T3", "ON", "T2", ".", "department", "=", "T3", ".", "DepartmentID", "WHERE", "T2", ".", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T3", ".", "name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1", ".", "EmployeeID", "=", "T2", ".", "physician", "JOIN", "department", "AS", "T3", "ON", "T2", ".", "department", "=", "T3", ".", "DepartmentID", "WHERE", "T2", ".", "PrimaryAffiliation", "=", "value"], "question": "What are the name and primarily affiliated (the value of primary affiliation is equal to 1) department name of each physician?", "question_toks": ["What", "are", "the", "name", "and", "primarily", "affiliated", "(", "the", "value", "of", "primary", "affiliation", "is", "equal", "to", "1", ")", "department", "name", "of", "each", "physician", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3915", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0035", "db_id": "hospital_1", "query": "select physician , department from affiliated_with where primaryaffiliation = 1", "query_toks": ["SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "value"], "question": "List the physicians' employee ids together with their primary affiliation departments' ids (that is, the primary affiiation is '1').", "question_toks": ["List", "the", "physicians", "'", "employee", "ids", "together", "with", "their", "primary", "affiliation", "departments", "'", "ids", "(", "that", "is", ",", "the", "primary", "affiiation", "is", "'", "1", "')."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3960", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0036", "db_id": "hospital_1", "query": "select physician , department from affiliated_with where primaryaffiliation = 1", "query_toks": ["SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "value"], "question": "What are each physician's employee id and department id primarily affiliated (equals 1).", "question_toks": ["What", "are", "each", "physician", "'", "s", "employee", "id", "and", "department", "id", "primarily", "affiliated", "(", "equals", "1", ")."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3961", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0037", "db_id": "hospital_1", "query": "select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation = 1", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1", ".", "department", "=", "T2", ".", "departmentid", "WHERE", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1", ".", "department", "=", "T2", ".", "departmentid", "WHERE", "PrimaryAffiliation", "=", "value"], "question": "List the names of departments where some physicians are primarily affiliated (1) with.", "question_toks": ["List", "the", "names", "of", "departments", "where", "some", "physicians", "are", "primarily", "affiliated", "(", "1", ")", "with", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3962", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0038", "db_id": "hospital_1", "query": "select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation = 1", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1", ".", "department", "=", "T2", ".", "departmentid", "WHERE", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1", ".", "department", "=", "T2", ".", "departmentid", "WHERE", "PrimaryAffiliation", "=", "value"], "question": "What are the names of departments that have primarily affiliated (primary affiliaion is 1) physicians.", "question_toks": ["What", "are", "the", "names", "of", "departments", "that", "have", "primarily", "affiliated", "(", "primary", "affiliaion", "is", "1", ")", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3963", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0039", "db_id": "hospital_1", "query": "select name from physician join affiliated_with on physician.employeeid = affiliated_with.physician where affiliated_with.primaryaffiliation = 1", "query_toks": ["SELECT", "Name", "FROM", "Physician", "JOIN", "Affiliated_With", "ON", "Physician", ".", "EmployeeID", "=", "Affiliated_With", ".", "Physician", "WHERE", "Affiliated_With", ".", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["SELECT", "Name", "FROM", "Physician", "JOIN", "Affiliated_With", "ON", "Physician", ".", "EmployeeID", "=", "Affiliated_With", ".", "Physician", "WHERE", "Affiliated_With", ".", "PrimaryAffiliation", "=", "value"], "question": "Show the names of the physicians with value 1 for the primary affiliation", "question_toks": ["Show", "the", "names", "of", "the", "physicians", "with", "value", "1", "for", "the", "primary", "affiliation"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0039", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0040", "db_id": "hospital_1", "query": "select distinct name from nurse where registered = 1", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "Nurse", "WHERE", "Registered", "=", "1"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "Nurse", "WHERE", "Registered", "=", "value"], "question": "What are the names of the nurses with registered 1?", "question_toks": ["What", "are", "the", "names", "of", "the", "nurses", "with", "registered", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0040", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0041", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from medicine where fda_approved = \"no\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "medicine", "WHERE", "FDA_approved", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "medicine", "WHERE", "FDA_approved", "=", "value"], "question": "How many medicines have FDA approved value equal to \u2018No'?", "question_toks": ["How", "many", "medicines", "have", "FDA", "approved", "value", "equal", "to", "\u2018", "No", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0960", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0042", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine where fda_approved = \"yes\"", "query_toks": ["SELECT", "name", ",", "trade_name", "FROM", "medicine", "WHERE", "FDA_approved", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "name", ",", "trade_name", "FROM", "medicine", "WHERE", "FDA_approved", "=", "value"], "question": "What are the names and trade names of the medcines that are FDA approved whose FDA approved value is \u2018Yes'?", "question_toks": ["What", "are", "the", "names", "and", "trade", "names", "of", "the", "medcines", "that", "are", "FDA", "approved", "whose", "FDA", "approved", "value", "is", "\u2018", "Yes", "'?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0946", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0043", "db_id": "orchestra", "query": "select min(attendance) from show where result = \"t\"", "query_toks": ["SELECT", "MIN", "(", "Attendance", ")", "FROM", "show", "WHERE", "Result", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "MIN", "(", "Attendance", ")", "FROM", "show", "WHERE", "Result", "=", "value"], "question": "Minimum attendance of shows with T result", "question_toks": ["Minimum", "attendance", "of", "shows", "with", "T", "result"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0043", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0044", "db_id": "product_catalog", "query": "select max(catalog_level_number) from catalog_contents_additional_attributes where attribute_value = 1", "query_toks": ["SELECT", "MAX", "(", "catalog_level_number", ")", "FROM", "Catalog_Contents_Additional_Attributes", "WHERE", "attribute_value", "=", "1"], "query_toks_no_value": ["SELECT", "MAX", "(", "catalog_level_number", ")", "FROM", "Catalog_Contents_Additional_Attributes", "WHERE", "attribute_value", "=", "value"], "question": "What is the maximum level number of catalogs where attribute value is 1?", "question_toks": ["What", "is", "the", "maximum", "level", "number", "of", "catalogs", "where", "attribute", "value", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0044", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0045", "db_id": "products_for_hire", "query": "select avg(booked_count) from products_booked where returned_late_yn = 1", "query_toks": ["SELECT", "AVG", "(", "booked_count", ")", "FROM", "Products_Booked", "WHERE", "returned_late_yn", "=", "1"], "query_toks_no_value": ["SELECT", "AVG", "(", "booked_count", ")", "FROM", "Products_Booked", "WHERE", "returned_late_yn", "=", "value"], "question": "What is the average amount of booked counts where returned late yn is 1?", "question_toks": ["What", "is", "the", "average", "amount", "of", "booked", "counts", "where", "returned", "late", "yn", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]]]], "where": [[false, 2, [0, [0, 39, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0045", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0046", "db_id": "sakila_1", "query": "select count(*) from customer where active = \"1\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "customer", "WHERE", "active", "=", "``", "1", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "customer", "WHERE", "active", "=", "value"], "question": "Count the number of customers whose active-parameter equals 1.", "question_toks": ["Count", "the", "number", "of", "customers", "whose", "active", "-", "parameter", "equals", "1", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2947", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0047", "db_id": "sakila_1", "query": "select first_name from customer where active = 1", "query_toks": ["SELECT", "first_name", "FROM", "customer", "WHERE", "active", "=", "1"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "customer", "WHERE", "active", "=", "value"], "question": "Show me the first names of customers with active is equal to 1", "question_toks": ["Show", "me", "the", "first", "names", "of", "customers", "with", "active", "is", "equal", "to", "1"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0047", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0048", "db_id": "school_bus", "query": "select count(distinct school_id) from school_bus where if_full_time = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "School_ID", ")", "FROM", "school_bus", "WHERE", "If_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "School_ID", ")", "FROM", "school_bus", "WHERE", "If_full_time", "=", "value"], "question": "How many schools have buses with T if full time?", "question_toks": ["How", "many", "schools", "have", "buses", "with", "T", "if", "full", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0048", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0049", "db_id": "school_bus", "query": "select count(*) from school where school_id not in ( select school_id from school_bus where if_full_time = 't' );", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "School_ID", ")", "FROM", "school_bus", "WHERE", "If_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "School_ID", ")", "FROM", "school_bus", "WHERE", "If_full_time", "=", "value"], "question": "How many schools don't have T full-time buses?", "question_toks": ["How", "many", "schools", "don", "'", "t", "have", "T", "full", "-", "time", "buses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0049", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0050", "db_id": "soccer_2", "query": "select avg(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"no\"", "query_toks": ["SELECT", "avg", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "value"], "question": "Find the average hours for the students whose tryout decision is no.", "question_toks": ["Find", "the", "average", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "no", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0050", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0051", "db_id": "soccer_2", "query": "select count(*) from tryout where decision = \"yes\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "tryout", "WHERE", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "tryout", "WHERE", "decision", "=", "value"], "question": "How many students got accepted (with \"yes\" decision) after the tryout?", "question_toks": ["How", "many", "students", "got", "accepted", "(", "with", "\"", "yes", "\"", "decision", ")", "after", "the", "tryout", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4962", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0052", "db_id": "soccer_2", "query": "select pname from player where ycard = \"yes\" order by hs desc", "query_toks": ["SELECT", "pName", "FROM", "Player", "WHERE", "yCard", "=", "``", "yes", "''", "ORDER", "BY", "HS", "DESC"], "query_toks_no_value": ["SELECT", "pName", "FROM", "Player", "WHERE", "yCard", "=", "value", "ORDER", "BY", "HS", "DESC"], "question": "What are the name of the players who received a card (ycard-value is \"yes\") in descending order of the hours of training?", "question_toks": ["What", "are", "the", "name", "of", "the", "players", "who", "received", "a", "card", "(", "ycard", "-", "value", "is", "\"", "yes", "\")", "in", "descending", "order", "of", "the", "hours", "of", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4981", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0053", "db_id": "soccer_2", "query": "select distinct t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = \"yes\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "decision", "=", "value"], "question": "What are the different states that had students successfully try out (it means that they received \"yes\"-decision)?", "question_toks": ["What", "are", "the", "different", "states", "that", "had", "students", "successfully", "try", "out", "(", "it", "means", "that", "they", "received", "\"", "yes", "\"-", "decision", ")?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4997", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0054", "db_id": "soccer_2", "query": "select t1.pname , t1.hs from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["SELECT", "T1", ".", "pName", ",", "T1", ".", "HS", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "pName", ",", "T1", ".", "HS", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "value"], "question": "Find the name and hours of the students whose tryout decision is yes.", "question_toks": ["Find", "the", "name", "and", "hours", "of", "the", "students", "whose", "tryout", "decision", "is", "yes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0054", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0055", "db_id": "soccer_2", "query": "select t1.pname from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\" and t2.ppos = \"striker\"", "query_toks": ["SELECT", "T1", ".", "pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''", "AND", "T2", ".", "pPos", "=", "``", "striker", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "value", "AND", "T2", ".", "pPos", "=", "value"], "question": "What are the names of all students who successfully got decision \"yes\" for the position of striker?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "successfully", "got", "decision", "\"", "yes", "\"", "for", "the", "position", "of", "striker", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"striker\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5007", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0056", "db_id": "soccer_2", "query": "select avg(t1.hs) , max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["SELECT", "avg", "(", "T1", ".", "HS", ")", ",", "max", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "HS", ")", ",", "max", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "value"], "question": "What is the average and maximum number of hours students who made the team practiced (got \"yes\" decision)?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "(", "got", "\"", "yes", "\"", "decision", ")?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5011", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0057", "db_id": "soccer_2", "query": "select cname from tryout where decision = \"yes\" and ppos = \"goalie\"", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "``", "yes", "''", "AND", "pPos", "=", "``", "goalie", "''"], "query_toks_no_value": ["SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "value", "AND", "pPos", "=", "value"], "question": "Which college has any student who is a goalie and received decision \"yes\" in the tryout.", "question_toks": ["Which", "college", "has", "any", "student", "who", "is", "a", "goalie", "and", "received", "decision", "\"", "yes", "\"", "in", "the", "tryout", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5018", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0058", "db_id": "soccer_2", "query": "select cname from tryout where decision = \"yes\" and ppos = \"goalie\"", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "``", "yes", "''", "AND", "pPos", "=", "``", "goalie", "''"], "query_toks_no_value": ["SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "value", "AND", "pPos", "=", "value"], "question": "What college has a student who successfully made the team (got \"yes\" decision) in the role of a goalie?", "question_toks": ["What", "college", "has", "a", "student", "who", "successfully", "made", "the", "team", "(", "got", "\"", "yes", "\"", "decision", ")", "in", "the", "role", "of", "a", "goalie", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5019", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0059", "db_id": "soccer_2", "query": "select distinct t1.state , t1.enr from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = \"yes\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "state", ",", "T1", ".", "enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "state", ",", "T1", ".", "enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "decision", "=", "value"], "question": "What is the state and enrollment of the colleges where have any students who got \"yes\" in the tryout decision.", "question_toks": ["What", "is", "the", "state", "and", "enrollment", "of", "the", "colleges", "where", "have", "any", "students", "who", "got", "\"", "yes", "\"", "in", "the", "tryout", "decision", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5022", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0060", "db_id": "soccer_2", "query": "select distinct t1.state , t1.enr from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = \"yes\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "state", ",", "T1", ".", "enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "state", ",", "T1", ".", "enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "cName", "=", "T2", ".", "cName", "WHERE", "T2", ".", "decision", "=", "value"], "question": "How many students are enrolled in colleges that have student got \"yes\" decision during tryouts, and in which states are those colleges?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "colleges", "that", "have", "student", "got", "\"", "yes", "\"", "decision", "during", "tryouts", ",", "and", "in", "which", "states", "are", "those", "colleges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5023", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0061", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"no\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "value"], "question": "Find the package choice and series name of the TV channel that has value NO for high definition TV option.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "value", "NO", "for", "high", "definition", "TV", "option", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0061", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0062", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"no\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "TV_Channel", "WHERE", "Pay_per_view_PPV", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "TV_Channel", "WHERE", "Pay_per_view_PPV", "=", "value"], "question": "Amount of TV channels which paying per view option has value \u201cno\u201d", "question_toks": ["Amount", "of", "TV", "channels", "which", "paying", "per", "view", "option", "has", "value", "\u201c", "no", "\u201d"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0062", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0063", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "value"], "question": "Find the package choice and series name of the TV channel that has value YES for high definition TV option.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "value", "YES", "for", "high", "definition", "TV", "option", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0631", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0064", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "value"], "question": "Find the package choice and series name of the TV channel with value YES for high definition TV option.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "with", "value", "YES", "for", "high", "definition", "TV", "option", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0632", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0065", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"yes\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "TV_Channel", "WHERE", "Pay_per_view_PPV", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "TV_Channel", "WHERE", "Pay_per_view_PPV", "=", "value"], "question": "Amount of TV channels which paying per view option has value \u201cyes\u201d", "question_toks": ["Amount", "of", "TV", "channels", "which", "paying", "per", "view", "option", "has", "value", "\u201c", "yes", "\u201d"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0065", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0066", "db_id": "wedding", "query": "select count(*) from people where is_male = \"f\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "is_male", "=", "``", "f", "''", "AND", "age", ">", "30"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "is_male", "=", "value", "AND", "age", ">", "value"], "question": "How many people, wich option is_male is equal to \"F\", are in our record?", "question_toks": ["How", "many", "people", ",", "wich", "option", "is_male", "is", "equal", "to", "\"", "F", "\",", "are", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1636", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0067", "db_id": "wedding", "query": "select name, age from people where is_male = 'f' and people_id not in (select female_id from wedding);", "query_toks": ["SELECT", "T2", ".", "name", "FROM", "wedding", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "female_id", "=", "T2", ".", "people_id", "WHERE", "T1", ".", "year", "=", "2016", "AND", "T2", ".", "is_male", "=", "``", "f", "''", "AND", "T2", ".", "country", "=", "``", "canada", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "name", "FROM", "wedding", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "female_id", "=", "T2", ".", "people_id", "WHERE", "T1", ".", "year", "=", "value", "AND", "T2", ".", "is_male", "=", "value", "AND", "T2", ".", "country", "=", "value"], "question": "Show the name and age for all F male people who don't have a wedding.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "F", "male", "people", "who", "don", "'", "t", "have", "a", "wedding", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1644", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0068", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"f\"", "query_toks": ["SELECT", "AVG", "(", "age", ")", "FROM", "people", "WHERE", "Is_Male", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "age", ")", "FROM", "people", "WHERE", "Is_Male", "=", "value"], "question": "Average age of persons with is_male F.", "question_toks": ["Average", "age", "of", "persons", "with", "is_male", "F", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0068", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0069", "db_id": "wedding", "query": "select count(*) from people where is_male = \"t\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "is_male", "=", "``", "t", "''", "AND", "age", ">", "30"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "is_male", "=", "value", "AND", "age", ">", "value"], "question": "How many people, wich option is_male is equal to \"T\", are in our record?", "question_toks": ["How", "many", "people", ",", "wich", "option", "is_male", "is", "equal", "to", "\"", "T", "\",", "are", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0069", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0070", "db_id": "wedding", "query": "select name , age from people where is_male = \"t\" and people_id not in (select male_id from wedding)", "query_toks": ["SELECT", "name", ",", "age", "FROM", "people", "WHERE", "is_male", "=", "``", "t", "''", "AND", "people_id", "NOT", "IN", "(", "SELECT", "male_id", "FROM", "wedding", ")"], "query_toks_no_value": ["SELECT", "name", ",", "age", "FROM", "people", "WHERE", "is_male", "=", "value", "AND", "people_id", "NOT", "IN", "(", "SELECT", "male_id", "FROM", "wedding", ")"], "question": "Show the name and age for all T male people who don't have a wedding.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "T", "male", "people", "who", "don", "'", "t", "have", "a", "wedding", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1641", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0071", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"t\"", "query_toks": ["SELECT", "AVG", "(", "age", ")", "FROM", "people", "WHERE", "Is_Male", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "age", ")", "FROM", "people", "WHERE", "Is_Male", "=", "value"], "question": "Show me the average age of those who have T in is male.", "question_toks": ["Show", "me", "the", "average", "age", "of", "those", "who", "have", "T", "in", "is", "male", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0071", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0072", "db_id": "wedding", "query": "select count(distinct country) from people where is_male = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "people", "WHERE", "Is_Male", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "people", "WHERE", "Is_Male", "=", "value"], "question": "How many countries are the person with T is-male from?", "question_toks": ["How", "many", "countries", "are", "the", "person", "with", "T", "is", "-", "male", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0072", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_UNORDERED"]}, {"id": "binary_0073", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"f\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "``", "afghanistan", "''", "AND", "IsOfficial", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value", "AND", "IsOfficial", "=", "value"], "question": "How many language does Afghanistan have which offiiciality is equal to F?", "question_toks": ["How", "many", "language", "does", "Afghanistan", "have", "which", "offiiciality", "is", "equal", "to", "F", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0073", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0074", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and t2.isofficial = \"f\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"french\" and t2.isofficial = \"f\"", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "english", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "f", "''", "INTERSECT", "SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "french", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value", "INTERSECT", "SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What are the names of nations where both English and French languages have value isOfficial are equal to F?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "languages", "have", "value", "isOfficial", "are", "equal", "to", "F", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0074", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0075", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"f\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"f\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "isofficial", "=", "``", "f", "''", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''", "and", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where either English or Dutch is the language with F for the value of officiality?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "language", "with", "F", "for", "the", "value", "of", "officiality", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0075", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0076", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"beatrix\" and t2.isofficial = \"f\"", "query_toks": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "``", "beatrix", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What is the F-official language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "F", "-", "official", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0076", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0077", "db_id": "world_1", "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 = \"f\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "IndepYear", "<", "1930", "AND", "T2", ".", "IsOfficial", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "IndepYear", "<", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What is the total number of unique inofficial languages (isOfficial is F) spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "inofficial", "languages", "(", "isOfficial", "is", "F", ")", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0077", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0078", "db_id": "world_1", "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 = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["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", "=", "``", "f", "''", "and", "t2", ".", "language", "=", "``", "chinese", "''", "and", "t1", ".", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the unofficial (F) language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "unofficial", "(", "F", ")", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0078", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0079", "db_id": "world_1", "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 = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["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", "=", "``", "f", "''", "AND", "T2", ".", "Language", "=", "``", "chinese", "''", "AND", "T1", ".", "Continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "=", "value", "AND", "T2", ".", "Language", "=", "value", "AND", "T1", ".", "Continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the inofficial (isOfficial=F) language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "inofficial", "(", "isOfficial", "=", "F", ")", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0079", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0080", "db_id": "world_1", "query": "select distinct(countrycode) from countrylanguage where isofficial = \"f\" and percentage > 10", "query_toks": ["SELECT", "DISTINCT", "(", "CountryCode", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "``", "f", "''", "AND", "Percentage", ">", "10"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "CountryCode", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "value", "AND", "Percentage", ">", "value"], "question": "Print me different codes of countries in which there are more then 10 percent of people speaking not official (\u201cF\u201d) languages", "question_toks": ["Print", "me", "different", "codes", "of", "countries", "in", "which", "there", "are", "more", "then", "10", "percent", "of", "people", "speaking", "not", "official", "(\u201c", "F", "\u201d)", "languages"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 3, [0, [0, 26, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0080", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"]}, {"id": "binary_0081", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "``", "afghanistan", "''", "AND", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value", "AND", "IsOfficial", "=", "value"], "question": "How many languages with filter T for isOfficial does Afghanistan have?", "question_toks": ["How", "many", "languages", "with", "filter", "T", "for", "isOfficial", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0738", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0082", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "``", "afghanistan", "''", "AND", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value", "AND", "IsOfficial", "=", "value"], "question": "How many T official languages are spoken in Afghanistan?", "question_toks": ["How", "many", "T", "official", "languages", "are", "spoken", "in", "Afghanistan", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0739", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0083", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value", "INTERSECT", "SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What are the names of nations where both English and French languages have value isOfficial are equal to T?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "languages", "have", "value", "isOfficial", "are", "equal", "to", "T", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0748", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0084", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value", "INTERSECT", "SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "Give the names of countries in which languages English and French have the T for officiality value?", "question_toks": ["Give", "the", "names", "of", "countries", "in", "which", "languages", "English", "and", "French", "have", "the", "T", "for", "officiality", "value", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0749", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0085", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "isofficial", "=", "``", "t", "''", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''", "and", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where either English or Dutch is the language with T for the value of officiality?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "language", "with", "T", "for", "the", "value", "of", "officiality", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0754", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0086", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "IsOfficial", "=", "value", "UNION", "SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "IsOfficial", "=", "value"], "question": "Which countries have either English or Dutch as an official language? For the official language value T is stand", "question_toks": ["Which", "countries", "have", "either", "English", "or", "Dutch", "as", "an", "official", "language", "?", "For", "the", "official", "language", "value", "T", "is", "stand"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0755", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0087", "db_id": "world_1", "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\"", "query_toks": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "``", "beatrix", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What is the T-official language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "T", "-", "official", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0768", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0088", "db_id": "world_1", "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\"", "query_toks": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "``", "beatrix", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What is the language with isOfficial is T used in the country the name of whose head of state is Beatrix.", "question_toks": ["What", "is", "the", "language", "with", "isOfficial", "is", "T", "used", "in", "the", "country", "the", "name", "of", "whose", "head", "of", "state", "is", "Beatrix", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0769", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0089", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "IndepYear", "<", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What is the total number of unique official languages (isOfficial is T) spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "(", "isOfficial", "is", "T", ")", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0770", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0090", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "IndepYear", "<", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "For the countries founded before 1930, what is the total number of distinct languages which officially is T?", "question_toks": ["For", "the", "countries", "founded", "before", "1930", ",", "what", "is", "the", "total", "number", "of", "distinct", "languages", "which", "officially", "is", "T", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0771", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0091", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the official (T) language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "official", "(", "T", ")", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0786", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0092", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "AND", "T2", ".", "Language", "=", "value", "AND", "T1", ".", "Continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the official (isOfficial=T) language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "official", "(", "isOfficial", "=", "T", ")", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0787", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0093", "db_id": "world_1", "query": "select avg(percentage) from countrylanguage where isofficial = \"t\"", "query_toks": ["SELECT", "AVG", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "value"], "question": "What is the average percentage of people in countries speaking some language with T as officially value?", "question_toks": ["What", "is", "the", "average", "percentage", "of", "people", "in", "countries", "speaking", "some", "language", "with", "T", "as", "officially", "value", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0093", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "binary_0094", "db_id": "world_1", "query": "select percentage from countrylanguage where isofficial = \"t\" and countrycode = \"kaz\"", "query_toks": ["SELECT", "Percentage", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "``", "t", "''", "AND", "CountryCode", "=", "``", "kaz", "''"], "query_toks_no_value": ["SELECT", "Percentage", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "value", "AND", "CountryCode", "=", "value"], "question": "What is the percentage of people speaking language in KAZ with T officially status?", "question_toks": ["What", "is", "the", "percentage", "of", "people", "speaking", "language", "in", "KAZ", "with", "T", "officially", "status", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"kaz\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_binary_0094", "is_simplification": true, "simplifications_tags": ["BINARY", "_BINARY_POSITIVE_VALUE"]}, {"id": "order_by_0000", "db_id": "department_store", "query": "select order_id , customer_id from customer_orders where order_status_code = \"\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0438\u043b\u0438\u0430\u043b\"", "query_toks": ["SELECT", "order_id", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "``", "\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d", "\u0432", "\u0434\u0440\u0443\u0433\u043e\u0439", "\u0444\u0438\u043b\u0438\u0430\u043b", "''"], "query_toks_no_value": ["SELECT", "order_id", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "value", "\u0432", "\u0434\u0440\u0443\u0433\u043e\u0439", "\u0444\u0438\u043b\u0438\u0430\u043b"], "question": "Show, please, the order id, customer id for orders that was rescheduled.", "question_toks": ["Show", ",", "please", ",", "the", "order", "id", ",", "customer", "id", "for", "orders", "that", "was", "rescheduled", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0438\u043b\u0438\u0430\u043b\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_order_by_0000", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0001", "db_id": "riding_club", "query": "select distinct(rank) from player where gender = \"m\"", "query_toks": ["SELECT", "DISTINCT", "(", "Rank", ")", "FROM", "player", "WHERE", "Gender", "=", "``", "m", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Rank", ")", "FROM", "player", "WHERE", "Gender", "=", "value"], "question": "Ranks of the men. Bring each one out once.", "question_toks": ["Ranks", "of", "the", "men", ".", "Bring", "each", "one", "out", "once", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_order_by_0001", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0002", "db_id": "riding_club", "query": "select distinct(rank) from player where gender = \"m\"", "query_toks": ["SELECT", "DISTINCT", "(", "Rank", ")", "FROM", "player", "WHERE", "Gender", "=", "``", "m", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Rank", ")", "FROM", "player", "WHERE", "Gender", "=", "value"], "question": "Distinct ranks of the men.", "question_toks": ["Distinct", "ranks", "of", "the", "men", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_order_by_0002", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0003", "db_id": "battle_death", "query": "select name , tonnage from ship", "query_toks": ["SELECT", "name", ",", "tonnage", "FROM", "ship"], "query_toks_no_value": ["SELECT", "name", ",", "tonnage", "FROM", "ship"], "question": "List the name and tonnage.", "question_toks": ["List", "the", "name", "and", "tonnage", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0492", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0004", "db_id": "concert_singer", "query": "select name , country , age from singer", "query_toks": ["SELECT", "name", ",", "country", ",", "age", "FROM", "singer"], "query_toks_no_value": ["SELECT", "name", ",", "country", ",", "age", "FROM", "singer"], "question": "Show name, country, age for all singers.", "question_toks": ["Show", "name", ",", "country", ",", "age", "for", "all", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0002", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0005", "db_id": "concert_singer", "query": "select name , country , age from singer", "query_toks": ["SELECT", "name", ",", "country", ",", "age", "FROM", "singer"], "query_toks_no_value": ["SELECT", "name", ",", "country", ",", "age", "FROM", "singer"], "question": "What are the names, countries, and ages for every singer?", "question_toks": ["What", "are", "the", "names", ",", "countries", ",", "and", "ages", "for", "every", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0003", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0006", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["SELECT", "Name", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher"], "question": "List the names of teachers.", "question_toks": ["List", "the", "names", "of", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0383", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0007", "db_id": "course_teach", "query": "select name from teacher", "query_toks": ["SELECT", "Name", "FROM", "teacher"], "query_toks_no_value": ["SELECT", "Name", "FROM", "teacher"], "question": "What are the names of the teachers?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0384", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0008", "db_id": "course_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 ", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "in", "ascending", "alphabetical"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0401", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0009", "db_id": "course_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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the names of the teachers and the courses they teach?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "and", "the", "courses", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0402", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0010", "db_id": "employee_hire_evaluation", "query": "select name from employee", "query_toks": ["SELECT", "name", "FROM", "employee"], "query_toks_no_value": ["SELECT", "name", "FROM", "employee"], "question": "Employee names.", "question_toks": ["Employee", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0261", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0011", "db_id": "employee_hire_evaluation", "query": "select name from employee", "query_toks": ["SELECT", "name", "FROM", "employee"], "query_toks_no_value": ["SELECT", "name", "FROM", "employee"], "question": "List the names of employees.", "question_toks": ["List", "the", "names", "of", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0262", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0012", "db_id": "employee_hire_evaluation", "query": "select name , location , district from shop", "query_toks": ["SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop"], "query_toks_no_value": ["SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop"], "question": "Return the name, location and district of all shops.", "question_toks": ["Return", "the", "name", ",", "location", "and", "district", "of", "all", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0273", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0013", "db_id": "employee_hire_evaluation", "query": "select name , location , district from shop", "query_toks": ["SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop"], "query_toks_no_value": ["SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop"], "question": "All the shops. Return the name, location and district of each shop.", "question_toks": ["All", "the", "shops", ".", "Return", "the", "name", ",", "location", "and", "district", "of", "each", "shop", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0274", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0014", "db_id": "museum_visit", "query": "select name from visitor where level_of_membership > 4", "query_toks": ["SELECT", "name", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4"], "query_toks_no_value": ["SELECT", "name", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "value"], "question": "Find the names of the visitors whose membership level is higher than 4.", "question_toks": ["Find", "the", "names", "of", "the", "visitors", "whose", "membership", "level", "is", "higher", "than", "4", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0412", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0015", "db_id": "museum_visit", "query": "select name , level_of_membership from visitor where level_of_membership > 4", "query_toks": ["SELECT", "name", ",", "Level_of_membership", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4"], "query_toks_no_value": ["SELECT", "name", ",", "Level_of_membership", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "value"], "question": "Find the name and membership level of the visitors whose membership level is higher than 4.", "question_toks": ["Find", "the", "name", "and", "membership", "level", "of", "the", "visitors", "whose", "membership", "level", "is", "higher", "than", "4", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0414", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0016", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["SELECT", "Name", "FROM", "conductor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "conductor"], "question": "List the names of conductors.", "question_toks": ["List", "the", "names", "of", "conductors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0824", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0017", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["SELECT", "Name", "FROM", "conductor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "conductor"], "question": "What are the names of conductors?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0825", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0018", "db_id": "orchestra", "query": "select record_company from orchestra", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra"], "query_toks_no_value": ["SELECT", "Record_Company", "FROM", "orchestra"], "question": "What are the record companies of orchestras?", "question_toks": ["What", "are", "the", "record", "companies", "of", "orchestras", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0828", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0019", "db_id": "orchestra", "query": "select record_company from orchestra", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra"], "query_toks_no_value": ["SELECT", "Record_Company", "FROM", "orchestra"], "question": "Return the record companies of orchestras.", "question_toks": ["Return", "the", "record", "companies", "of", "orchestras", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0829", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0020", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["SELECT", "Name", "FROM", "conductor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "conductor"], "question": "List names of conductors.", "question_toks": ["List", "names", "of", "conductors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0836", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0021", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["SELECT", "Name", "FROM", "conductor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "conductor"], "question": "What are the names of conductors?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0837", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0022", "db_id": "poker_player", "query": "select earnings from poker_player", "query_toks": ["SELECT", "Earnings", "FROM", "poker_player"], "query_toks_no_value": ["SELECT", "Earnings", "FROM", "poker_player"], "question": "List the earnings of poker players.", "question_toks": ["List", "the", "earnings", "of", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0649", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0023", "db_id": "poker_player", "query": "select earnings from poker_player", "query_toks": ["SELECT", "Earnings", "FROM", "poker_player"], "query_toks_no_value": ["SELECT", "Earnings", "FROM", "poker_player"], "question": "What are the earnings of poker players?", "question_toks": ["What", "are", "the", "earnings", "of", "poker", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0650", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0024", "db_id": "poker_player", "query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "question": "List the names of poker players.", "question_toks": ["List", "the", "names", "of", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0663", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0025", "db_id": "poker_player", "query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "question": "What are the names of poker players?", "question_toks": ["What", "are", "the", "names", "of", "poker", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0664", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0026", "db_id": "poker_player", "query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "question": "What are the names of poker players?", "question_toks": ["What", "are", "the", "names", "of", "poker", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0671", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0027", "db_id": "poker_player", "query": "select t1.name from people as t1 join poker_player as t2 on t1.people_id = t2.people_id", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "question": "Return the names of poker players.", "question_toks": ["Return", "the", "names", "of", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0672", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0028", "db_id": "poker_player", "query": "select name , birth_date from people", "query_toks": ["SELECT", "Name", ",", "Birth_Date", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", ",", "Birth_Date", "FROM", "people"], "question": "List the names and birth dates of people.", "question_toks": ["List", "the", "names", "and", "birth", "dates", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0679", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0029", "db_id": "poker_player", "query": "select name , birth_date from people", "query_toks": ["SELECT", "Name", ",", "Birth_Date", "FROM", "people"], "query_toks_no_value": ["SELECT", "Name", ",", "Birth_Date", "FROM", "people"], "question": "What are the names and birth dates of people?", "question_toks": ["What", "are", "the", "names", "and", "birth", "dates", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0680", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0030", "db_id": "singer", "query": "select name from singer", "query_toks": ["SELECT", "Name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "Name", "FROM", "singer"], "question": "List the name of singers.", "question_toks": ["List", "the", "name", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1002", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0031", "db_id": "singer", "query": "select name from singer", "query_toks": ["SELECT", "Name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "Name", "FROM", "singer"], "question": "What are the names of singers?", "question_toks": ["What", "are", "the", "names", "of", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1003", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0032", "db_id": "student_transcripts_tracking", "query": "select section_name from sections", "query_toks": ["SELECT", "section_name", "FROM", "Sections"], "query_toks_no_value": ["SELECT", "section_name", "FROM", "Sections"], "question": "List the section_name.", "question_toks": ["List", "the", "section_name", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0527", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0033", "db_id": "student_transcripts_tracking", "query": "select section_name from sections", "query_toks": ["SELECT", "section_name", "FROM", "Sections"], "query_toks_no_value": ["SELECT", "section_name", "FROM", "Sections"], "question": "What are the names of the sections?", "question_toks": ["What", "are", "the", "names", "of", "the", "sections", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0528", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0034", "db_id": "student_transcripts_tracking", "query": "select other_student_details from students", "query_toks": ["SELECT", "other_student_details", "FROM", "Students"], "query_toks_no_value": ["SELECT", "other_student_details", "FROM", "Students"], "question": "List all the student details.", "question_toks": ["List", "all", "the", "student", "details", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0579", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0035", "db_id": "student_transcripts_tracking", "query": "select other_student_details from students", "query_toks": ["SELECT", "other_student_details", "FROM", "Students"], "query_toks_no_value": ["SELECT", "other_student_details", "FROM", "Students"], "question": "What other details can you tell me about students?", "question_toks": ["What", "other", "details", "can", "you", "tell", "me", "about", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0580", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0036", "db_id": "tvshow", "query": "select title from cartoon", "query_toks": ["SELECT", "Title", "FROM", "Cartoon"], "query_toks_no_value": ["SELECT", "Title", "FROM", "Cartoon"], "question": "List the title of all cartoons.", "question_toks": ["List", "the", "title", "of", "all", "cartoons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0585", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0037", "db_id": "tvshow", "query": "select title from cartoon", "query_toks": ["SELECT", "Title", "FROM", "Cartoon"], "query_toks_no_value": ["SELECT", "Title", "FROM", "Cartoon"], "question": "What are the titles of the cartoons?", "question_toks": ["What", "are", "the", "titles", "of", "the", "cartoons", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0586", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0038", "db_id": "tvshow", "query": "select title , directed_by from cartoon", "query_toks": ["SELECT", "title", ",", "Directed_by", "FROM", "Cartoon"], "query_toks_no_value": ["SELECT", "title", ",", "Directed_by", "FROM", "Cartoon"], "question": "list all cartoon titles and their directors", "question_toks": ["list", "all", "cartoon", "titles", "and", "their", "directors"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0591", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0039", "db_id": "tvshow", "query": "select title , directed_by from cartoon", "query_toks": ["SELECT", "title", ",", "Directed_by", "FROM", "Cartoon"], "query_toks_no_value": ["SELECT", "title", ",", "Directed_by", "FROM", "Cartoon"], "question": "What is the name and directors of all the cartoons?", "question_toks": ["What", "is", "the", "name", "and", "directors", "of", "all", "the", "cartoons", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0592", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0040", "db_id": "tvshow", "query": "select episode from tv_series", "query_toks": ["SELECT", "Episode", "FROM", "TV_series"], "query_toks_no_value": ["SELECT", "Episode", "FROM", "TV_series"], "question": "List the Episode of all TV series.", "question_toks": ["List", "the", "Episode", "of", "all", "TV", "series", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0613", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0041", "db_id": "tvshow", "query": "select episode from tv_series", "query_toks": ["SELECT", "Episode", "FROM", "TV_series"], "query_toks_no_value": ["SELECT", "Episode", "FROM", "TV_series"], "question": "What are all of the episodes?", "question_toks": ["What", "are", "all", "of", "the", "episodes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0614", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0042", "db_id": "voter_1", "query": "select contestant_number , contestant_name from contestants", "query_toks": ["SELECT", "contestant_number", ",", "contestant_name", "FROM", "contestants"], "query_toks_no_value": ["SELECT", "contestant_number", ",", "contestant_name", "FROM", "contestants"], "question": "List the contestant numbers and names.", "question_toks": ["List", "the", "contestant", "numbers", "and", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0688", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0043", "db_id": "wta_1", "query": "select first_name , last_name from players", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "players"], "question": "List the first and last name of all players.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0455", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0044", "db_id": "wta_1", "query": "select first_name , last_name from players", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "players"], "question": "What are the full names of all players?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0456", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0045", "db_id": "wta_1", "query": "select first_name , last_name from players where hand = \"l\" ", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "``", "l", "''"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "value"], "question": "List the first and last name of all players who are left / L hand.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "who", "are", "left", "/", "L", "hand", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"l\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0457", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0046", "db_id": "wta_1", "query": "select first_name , last_name from players where hand = \"l\" ", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "``", "l", "''"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "value"], "question": "What are the full names of all left handed players?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "left", "handed", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"l\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0458", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0047", "db_id": "body_builder", "query": "select total from body_builder", "query_toks": ["SELECT", "Total", "FROM", "body_builder"], "query_toks_no_value": ["SELECT", "Total", "FROM", "body_builder"], "question": "List the total scores of body builders", "question_toks": ["List", "the", "total", "scores", "of", "body", "builders"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1151", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0048", "db_id": "body_builder", "query": "select snatch , clean_jerk from body_builder", "query_toks": ["SELECT", "Snatch", ",", "Clean_Jerk", "FROM", "body_builder"], "query_toks_no_value": ["SELECT", "Snatch", ",", "Clean_Jerk", "FROM", "body_builder"], "question": "List the snatch score and clean jerk score of body builders", "question_toks": ["List", "the", "snatch", "score", "and", "clean", "jerk", "score", "of", "body", "builders"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1152", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0049", "db_id": "body_builder", "query": "select birth_date from people", "query_toks": ["SELECT", "Birth_Date", "FROM", "People"], "query_toks_no_value": ["SELECT", "Birth_Date", "FROM", "People"], "question": "What are the birthdays of people?", "question_toks": ["What", "are", "the", "birthdays", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1155", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0050", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id", "query_toks": ["SELECT", "T2", ".", "Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID"], "question": "What are the names of body builders?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1162", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0051", "db_id": "body_builder", "query": "select height , weight from people", "query_toks": ["SELECT", "Height", ",", "Weight", "FROM", "people"], "query_toks_no_value": ["SELECT", "Height", ",", "Weight", "FROM", "people"], "question": "List the height and weight of people.", "question_toks": ["List", "the", "height", "and", "weight", "of", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1166", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0052", "db_id": "book_2", "query": "select writer from book", "query_toks": ["SELECT", "Writer", "FROM", "book"], "query_toks_no_value": ["SELECT", "Writer", "FROM", "book"], "question": "List the writers of the books.", "question_toks": ["List", "the", "writers", "of", "the", "books", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0214", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0053", "db_id": "book_2", "query": "select title from book", "query_toks": ["SELECT", "Title", "FROM", "book"], "query_toks_no_value": ["SELECT", "Title", "FROM", "book"], "question": "List the titles of the books.", "question_toks": ["List", "the", "titles", "of", "the", "books", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0215", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0054", "db_id": "book_2", "query": "select publication_date from publication", "query_toks": ["SELECT", "Publication_Date", "FROM", "publication"], "query_toks_no_value": ["SELECT", "Publication_Date", "FROM", "publication"], "question": "What are the dates of publications?", "question_toks": ["What", "are", "the", "dates", "of", "publications", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0218", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0055", "db_id": "book_2", "query": "select title from book", "query_toks": ["SELECT", "T1", ".", "Title", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1", ".", "Book_ID", "=", "T2", ".", "Book_ID"], "query_toks_no_value": ["SELECT", "T1", ".", "Title", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1", ".", "Book_ID", "=", "T2", ".", "Book_ID"], "question": "Show the titles of books.", "question_toks": ["Show", "the", "titles", "of", "books", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0224", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0056", "db_id": "program_share", "query": "select origin from program", "query_toks": ["SELECT", "origin", "FROM", "program"], "query_toks_no_value": ["SELECT", "origin", "FROM", "program"], "question": "What is the list of program origins?", "question_toks": ["What", "is", "the", "list", "of", "program", "origins", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3757", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0057", "db_id": "protein_institute", "query": "select name , street_address , floors from building", "query_toks": ["SELECT", "name", ",", "street_address", ",", "floors", "FROM", "building"], "query_toks_no_value": ["SELECT", "name", ",", "street_address", ",", "floors", "FROM", "building"], "question": "Show the name, street address, and number of floors for all buildings.", "question_toks": ["Show", "the", "name", ",", "street", "address", ",", "and", "number", "of", "floors", "for", "all", "buildings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1911", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0058", "db_id": "race_track", "query": "select name , seating from track where year_opened > 2000", "query_toks": ["SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "2000"], "query_toks_no_value": ["SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "value"], "question": "Show names and seatings for all tracks opened after 2000.", "question_toks": ["Show", "names", "and", "seatings", "for", "all", "tracks", "opened", "after", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0751", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0059", "db_id": "race_track", "query": "select name , seating from track where year_opened > 2000", "query_toks": ["SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "2000"], "query_toks_no_value": ["SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "value"], "question": "What are the names and seatings for all tracks opened after 2000?", "question_toks": ["What", "are", "the", "names", "and", "seatings", "for", "all", "tracks", "opened", "after", "2000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0752", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0060", "db_id": "railway", "query": "select builder from railway", "query_toks": ["SELECT", "Builder", "FROM", "railway"], "query_toks_no_value": ["SELECT", "Builder", "FROM", "railway"], "question": "List the builders of railways.", "question_toks": ["List", "the", "builders", "of", "railways", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5633", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0061", "db_id": "railway", "query": "select name from manager", "query_toks": ["SELECT", "Name", "FROM", "manager"], "query_toks_no_value": ["SELECT", "Name", "FROM", "manager"], "question": "What are the names of managers?", "question_toks": ["What", "are", "the", "names", "of", "managers", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5637", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0062", "db_id": "railway", "query": "select working_year_starts from manager", "query_toks": ["SELECT", "Working_year_starts", "FROM", "manager"], "query_toks_no_value": ["SELECT", "Working_year_starts", "FROM", "manager"], "question": "Show the working years of managers.", "question_toks": ["Show", "the", "working", "years", "of", "managers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5651", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0063", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["SELECT", "Name", "FROM", "ship"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ship"], "question": "List the name of ships.", "question_toks": ["List", "the", "name", "of", "ships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4000", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0064", "db_id": "ship_mission", "query": "select name from ship", "query_toks": ["SELECT", "Name", "FROM", "ship"], "query_toks_no_value": ["SELECT", "Name", "FROM", "ship"], "question": "what are the names of the ships?", "question_toks": ["what", "are", "the", "names", "of", "the", "ships", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4001", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0065", "db_id": "shop_membership", "query": "select name , address_road , city from branch", "query_toks": ["SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch"], "query_toks_no_value": ["SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch"], "question": "Show name, address road, and city for all branches.", "question_toks": ["Show", "name", ",", "address", "road", ",", "and", "city", "for", "all", "branches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5402", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0066", "db_id": "shop_membership", "query": "select name , address_road , city from branch", "query_toks": ["SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch"], "query_toks_no_value": ["SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch"], "question": "What are the names, address roads, and cities of the branches?", "question_toks": ["What", "are", "the", "names", ",", "address", "roads", ",", "and", "cities", "of", "the", "branches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5403", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0067", "db_id": "shop_membership", "query": "select card_number , name , hometown from member", "query_toks": ["SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member"], "query_toks_no_value": ["SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member"], "question": "Show card number, name, and hometown for all members.", "question_toks": ["Show", "card", "number", ",", "name", ",", "and", "hometown", "for", "all", "members", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5416", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0068", "db_id": "shop_membership", "query": "select card_number , name , hometown from member", "query_toks": ["SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member"], "query_toks_no_value": ["SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member"], "question": "What are the card numbers, names, and hometowns of every member?", "question_toks": ["What", "are", "the", "card", "numbers", ",", "names", ",", "and", "hometowns", "of", "every", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5417", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0069", "db_id": "shop_membership", "query": "select t3.name , t2.name from membership_register_branch as t1 join branch as t2 on t1.branch_id = t2.branch_id join member as t3 on t1.member_id = t3.member_id", "query_toks": ["SELECT", "T3", ".", "name", ",", "T2", ".", "name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1", ".", "branch_id", "=", "T2", ".", "branch_id", "JOIN", "member", "AS", "T3", "ON", "T1", ".", "member_id", "=", "T3", ".", "member_id"], "query_toks_no_value": ["SELECT", "T3", ".", "name", ",", "T2", ".", "name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1", ".", "branch_id", "=", "T2", ".", "branch_id", "JOIN", "member", "AS", "T3", "ON", "T1", ".", "member_id", "=", "T3", ".", "member_id"], "question": "Show all member names and registered branch names.", "question_toks": ["Show", "all", "member", "names", "and", "registered", "branch", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5420", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0070", "db_id": "shop_membership", "query": "select t3.name , t2.name from membership_register_branch as t1 join branch as t2 on t1.branch_id = t2.branch_id join member as t3 on t1.member_id = t3.member_id", "query_toks": ["SELECT", "T3", ".", "name", ",", "T2", ".", "name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1", ".", "branch_id", "=", "T2", ".", "branch_id", "JOIN", "member", "AS", "T3", "ON", "T1", ".", "member_id", "=", "T3", ".", "member_id"], "query_toks_no_value": ["SELECT", "T3", ".", "name", ",", "T2", ".", "name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1", ".", "branch_id", "=", "T2", ".", "branch_id", "JOIN", "member", "AS", "T3", "ON", "T1", ".", "member_id", "=", "T3", ".", "member_id"], "question": "What are the names of the members and branches at which they are registered", "question_toks": ["What", "are", "the", "names", "of", "the", "members", "and", "branches", "at", "which", "they", "are", "registered"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5421", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0071", "db_id": "solvency_ii", "query": "select product_name from products", "query_toks": ["SELECT", "Product_Name", "FROM", "Products"], "query_toks_no_value": ["SELECT", "Product_Name", "FROM", "Products"], "question": "List the name of products.", "question_toks": ["List", "the", "name", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4584", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0072", "db_id": "student_assessment", "query": "select first_name from people", "query_toks": ["SELECT", "first_name", "FROM", "people"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "people"], "question": "List the first names of people?", "question_toks": ["List", "the", "first", "names", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0097", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0073", "db_id": "student_assessment", "query": "select first_name from people", "query_toks": ["SELECT", "first_name", "FROM", "people"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "people"], "question": "What are the first names of the people?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0098", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0074", "db_id": "swimming", "query": "select name from event", "query_toks": ["SELECT", "name", "FROM", "event"], "query_toks_no_value": ["SELECT", "name", "FROM", "event"], "question": "List all the event names.", "question_toks": ["List", "all", "the", "event", "names", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5603", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0075", "db_id": "swimming", "query": "select name from swimmer", "query_toks": ["SELECT", "name", "FROM", "swimmer"], "query_toks_no_value": ["SELECT", "name", "FROM", "swimmer"], "question": "Find the names of all swimmers.", "question_toks": ["Find", "the", "names", "of", "all", "swimmers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5615", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0076", "db_id": "theme_gallery", "query": "select name , age , country from artist", "query_toks": ["SELECT", "name", ",", "age", ",", "country", "FROM", "artist"], "query_toks_no_value": ["SELECT", "name", ",", "age", ",", "country", "FROM", "artist"], "question": "Show all artist name, age, and country.", "question_toks": ["Show", "all", "artist", "name", ",", "age", ",", "and", "country", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1651", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0077", "db_id": "theme_gallery", "query": "select name , age , country from artist", "query_toks": ["SELECT", "name", ",", "age", ",", "country", "FROM", "artist"], "query_toks_no_value": ["SELECT", "name", ",", "age", ",", "country", "FROM", "artist"], "question": "What are the names, ages, and countries of artists?", "question_toks": ["What", "are", "the", "names", ",", "ages", ",", "and", "countries", "of", "artists", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1652", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0078", "db_id": "theme_gallery", "query": "select theme , year from exhibition", "query_toks": ["SELECT", "theme", ",", "YEAR", "FROM", "exhibition"], "query_toks_no_value": ["SELECT", "theme", ",", "YEAR", "FROM", "exhibition"], "question": "Show theme and year for all exhibitions.", "question_toks": ["Show", "theme", "and", "year", "for", "all", "exhibitions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1677", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0079", "db_id": "theme_gallery", "query": "select theme , year from exhibition", "query_toks": ["SELECT", "theme", ",", "YEAR", "FROM", "exhibition"], "query_toks_no_value": ["SELECT", "theme", ",", "YEAR", "FROM", "exhibition"], "question": "What are the themes and years for exhibitions?", "question_toks": ["What", "are", "the", "themes", "and", "years", "for", "exhibitions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1678", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0080", "db_id": "tracking_orders", "query": "select distinct product_name from products", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "products"], "query_toks_no_value": ["SELECT", "DISTINCT", "product_name", "FROM", "products"], "question": "All the distinct product names", "question_toks": ["All", "the", "distinct", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6926", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0081", "db_id": "tracking_orders", "query": "select distinct order_id from orders", "query_toks": ["SELECT", "DISTINCT", "order_id", "FROM", "orders"], "query_toks_no_value": ["SELECT", "DISTINCT", "order_id", "FROM", "orders"], "question": "List the ids of all distinct orders.", "question_toks": ["List", "the", "ids", "of", "all", "distinct", "orders", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6927", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0082", "db_id": "tracking_orders", "query": "select distinct order_id from orders", "query_toks": ["SELECT", "DISTINCT", "order_id", "FROM", "orders"], "query_toks_no_value": ["SELECT", "DISTINCT", "order_id", "FROM", "orders"], "question": "What are ids of the all distinct orders?", "question_toks": ["What", "are", "ids", "of", "the", "all", "distinct", "orders", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6928", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0083", "db_id": "tracking_software_problems", "query": "select distinct product_name from product", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product"], "query_toks_no_value": ["SELECT", "DISTINCT", "product_name", "FROM", "product"], "question": "List the names of all the distinct product names?", "question_toks": ["List", "the", "names", "of", "all", "the", "distinct", "product", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5380", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0084", "db_id": "tracking_software_problems", "query": "select distinct product_name from product", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product"], "query_toks_no_value": ["SELECT", "DISTINCT", "product_name", "FROM", "product"], "question": "Sort all the distinct product names.", "question_toks": ["Sort", "all", "the", "distinct", "product", "names", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5381", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0085", "db_id": "tracking_software_problems", "query": "select distinct product_name from product", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product"], "query_toks_no_value": ["SELECT", "DISTINCT", "product_name", "FROM", "product"], "question": "List all the distinct product names?", "question_toks": ["List", "all", "the", "distinct", "product", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5382", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0086", "db_id": "tracking_software_problems", "query": "select distinct product_name from product", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product"], "query_toks_no_value": ["SELECT", "DISTINCT", "product_name", "FROM", "product"], "question": "What is the list of distinct product names?", "question_toks": ["What", "is", "the", "list", "of", "distinct", "product", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5383", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0087", "db_id": "train_station", "query": "select name , service from train", "query_toks": ["SELECT", "name", ",", "service", "FROM", "train"], "query_toks_no_value": ["SELECT", "name", ",", "service", "FROM", "train"], "question": "Show the name and service for all trains.", "question_toks": ["Show", "the", "name", "and", "service", "for", "all", "trains", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6611", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0088", "db_id": "train_station", "query": "select t3.name , t3.time from train_station as t1 join station as t2 on t1.station_id = t2.station_id join train as t3 on t3.train_id = t1.train_id where t2.location = \"london\" ", "query_toks": ["SELECT", "T3", ".", "name", ",", "T3", ".", "time", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1", ".", "station_id", "=", "T2", ".", "station_id", "JOIN", "train", "AS", "T3", "ON", "T3", ".", "train_id", "=", "T1", ".", "train_id", "WHERE", "T2", ".", "location", "=", "``", "london", "''"], "query_toks_no_value": ["SELECT", "T3", ".", "name", ",", "T3", ".", "time", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1", ".", "station_id", "=", "T2", ".", "station_id", "JOIN", "train", "AS", "T3", "ON", "T3", ".", "train_id", "=", "T1", ".", "train_id", "WHERE", "T2", ".", "location", "=", "value"], "question": "Show all train names and times in stations in London.", "question_toks": ["Show", "all", "train", "names", "and", "times", "in", "stations", "in", "London", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6614", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0089", "db_id": "train_station", "query": "select name , location from station", "query_toks": ["SELECT", "name", ",", "LOCATION", "FROM", "station"], "query_toks_no_value": ["SELECT", "name", ",", "LOCATION", "FROM", "station"], "question": "List the names and locations of all stations.", "question_toks": ["List", "the", "names", "and", "locations", "of", "all", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6621", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0090", "db_id": "twitter_1", "query": "select name , followers from user_profiles", "query_toks": ["SELECT", "name", ",", "followers", "FROM", "user_profiles"], "query_toks_no_value": ["SELECT", "name", ",", "followers", "FROM", "user_profiles"], "question": "List the name and number of followers for each user,.", "question_toks": ["List", "the", "name", "and", "number", "of", "followers", "for", "each", "user", ",."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0292", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0091", "db_id": "twitter_1", "query": "select text from tweets", "query_toks": ["SELECT", "text", "FROM", "tweets"], "query_toks_no_value": ["SELECT", "text", "FROM", "tweets"], "question": "List the text of all tweets.", "question_toks": ["List", "the", "text", "of", "all", "tweets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0294", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0092", "db_id": "wedding", "query": "select name from church", "query_toks": ["SELECT", "name", "FROM", "church"], "query_toks_no_value": ["SELECT", "name", "FROM", "church"], "question": "List all church names.", "question_toks": ["List", "all", "church", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1631", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0093", "db_id": "wine_1", "query": "select distinct name from wine", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "WINE"], "question": "List the names of all distinct wines.", "question_toks": ["List", "the", "names", "of", "all", "distinct", "wines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6559", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0094", "db_id": "wine_1", "query": "select distinct name from wine", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "WINE"], "question": "What are the names of wines?", "question_toks": ["What", "are", "the", "names", "of", "wines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6560", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0095", "db_id": "wine_1", "query": "select distinct name from wine", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "WINE"], "question": "List the names of all distinct wines.", "question_toks": ["List", "the", "names", "of", "all", "distinct", "wines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6561", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0096", "db_id": "wine_1", "query": "select distinct name from wine", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "WINE"], "question": "What are the names of wines?", "question_toks": ["What", "are", "the", "names", "of", "wines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6562", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0097", "db_id": "wine_1", "query": "select grape , winery , year from wine where price > 100", "query_toks": ["SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "100"], "query_toks_no_value": ["SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "value"], "question": "List the grape, winery and year of the wines whose price is bigger than 100.", "question_toks": ["List", "the", "grape", ",", "winery", "and", "year", "of", "the", "wines", "whose", "price", "is", "bigger", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6589", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0098", "db_id": "wine_1", "query": "select grape , winery , year from wine where price > 100", "query_toks": ["SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "100"], "query_toks_no_value": ["SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "value"], "question": "What are the grapes, wineries and years for wines with price higher than 100?", "question_toks": ["What", "are", "the", "grapes", ",", "wineries", "and", "years", "for", "wines", "with", "price", "higher", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6590", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0099", "db_id": "wine_1", "query": "select grape , appelation , name from wine where score > 93", "query_toks": ["SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "93"], "query_toks_no_value": ["SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "value"], "question": "List the grape, appelation and name of wines whose score is higher than 93.", "question_toks": ["List", "the", "grape", ",", "appelation", "and", "name", "of", "wines", "whose", "score", "is", "higher", "than", "93", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 93.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6591", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0100", "db_id": "wine_1", "query": "select grape , appelation , name from wine where score > 93", "query_toks": ["SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "93"], "query_toks_no_value": ["SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "value"], "question": "What are the grapes, appelations, and wines with scores above 93?", "question_toks": ["What", "are", "the", "grapes", ",", "appelations", ",", "and", "wines", "with", "scores", "above", "93", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 93.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6592", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0101", "db_id": "workshop_paper", "query": "select author from submission", "query_toks": ["SELECT", "Author", "FROM", "submission"], "query_toks_no_value": ["SELECT", "Author", "FROM", "submission"], "question": "List the authors of submissions.", "question_toks": ["List", "the", "authors", "of", "submissions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5816", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0102", "db_id": "workshop_paper", "query": "select author from submission", "query_toks": ["SELECT", "Author", "FROM", "submission"], "query_toks_no_value": ["SELECT", "Author", "FROM", "submission"], "question": "Find the author for each submission and list them.", "question_toks": ["Find", "the", "author", "for", "each", "submission", "and", "list", "them", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5817", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0103", "db_id": "workshop_paper", "query": "select date , venue from workshop", "query_toks": ["SELECT", "Date", ",", "Venue", "FROM", "workshop"], "query_toks_no_value": ["SELECT", "Date", ",", "Venue", "FROM", "workshop"], "question": "Show the date and venue of each workshop.", "question_toks": ["Show", "the", "date", "and", "venue", "of", "each", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5840", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0104", "db_id": "workshop_paper", "query": "select date , venue from workshop", "query_toks": ["SELECT", "Date", ",", "Venue", "FROM", "workshop"], "query_toks_no_value": ["SELECT", "Date", ",", "Venue", "FROM", "workshop"], "question": "Sort the each workshop in alphabetical. Return the date and venue of each workshop.", "question_toks": ["Sort", "the", "each", "workshop", "in", "alphabetical", ".", "Return", "the", "date", "and", "venue", "of", "each", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5841", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0105", "db_id": "wrestler", "query": "select name from wrestler", "query_toks": ["SELECT", "Name", "FROM", "wrestler"], "query_toks_no_value": ["SELECT", "Name", "FROM", "wrestler"], "question": "List the names of wrestlers.", "question_toks": ["List", "the", "names", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1846", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0106", "db_id": "wrestler", "query": "select name from wrestler", "query_toks": ["SELECT", "Name", "FROM", "wrestler"], "query_toks_no_value": ["SELECT", "Name", "FROM", "wrestler"], "question": "What are the names of the wrestlers?", "question_toks": ["What", "are", "the", "names", "of", "the", "wrestlers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1847", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0107", "db_id": "wrestler", "query": "select t2.name , t1.team from elimination as t1 join wrestler as t2 on t1.wrestler_id = t2.wrestler_id", "query_toks": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1", ".", "Wrestler_ID", "=", "T2", ".", "Wrestler_ID"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1", ".", "Wrestler_ID", "=", "T2", ".", "Wrestler_ID"], "question": "List the names of wrestlers and the teams in elimination.", "question_toks": ["List", "the", "names", "of", "wrestlers", "and", "the", "teams", "in", "elimination", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1858", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "order_by_0108", "db_id": "wrestler", "query": "select t2.name , t1.team from elimination as t1 join wrestler as t2 on t1.wrestler_id = t2.wrestler_id", "query_toks": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1", ".", "Wrestler_ID", "=", "T2", ".", "Wrestler_ID"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1", ".", "Wrestler_ID", "=", "T2", ".", "Wrestler_ID"], "question": "What are the names of wrestlers and their teams in elimination?", "question_toks": ["What", "are", "the", "names", "of", "wrestlers", "and", "their", "teams", "in", "elimination", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1859", "is_simplification": true, "simplifications_tags": ["ORDER_BY"]}, {"id": "and_in_sql_but_not_in_nl_0000", "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value"], "question": "What is the smallest weight of the car produced with 8 cylinders?", "question_toks": ["What", "is", "the", "smallest", "weight", "of", "the", "car", "produced", "with", "8", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0119", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0001", "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8", "and", "year", "=", "1974"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value"], "question": "What is the minimum weight of the car produced in 1974 ?", "question_toks": ["What", "is", "the", "minimum", "weight", "of", "the", "car", "produced", "in", "1974", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "and", [false, 2, [0, [0, 23, false], null], 1974.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0120", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0002", "db_id": "car_1", "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 t4.fullname != \"ford motor company\"", "query_toks": ["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", "T4", ".", "FullName", "!=", "``", "ford", "motor", "company", "''"], "query_toks_no_value": ["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", "T4", ".", "FullName", "!=", "value", "motor", "company"], "question": "Which models are not built by the 'Ford Motor Company'?", "question_toks": ["Which", "models", "are", "not", "built", "by", "the", "'", "Ford", "Motor", "Company", "'?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"ford motor company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0171", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0003", "db_id": "car_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "<", "value"], "question": "What are the different models wthat are lighter than 3500?", "question_toks": ["What", "are", "the", "different", "models", "wthat", "are", "lighter", "than", "3500", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 3500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0172", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0004", "db_id": "flight_2", "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 t3.city = \"aberdeen\"", "query_toks": ["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", "T3", ".", "City", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["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", "T3", ".", "City", "=", "value"], "question": "How many flights fly from Aberdeen?", "question_toks": ["How", "many", "flights", "fly", "from", "Aberdeen", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0212", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0005", "db_id": "flight_2", "query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t2.destairport = \"asy\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2", ".", "Airline", "=", "T1", ".", "uid", "WHERE", "T2", ".", "DestAirport", "=", "``", "asy", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2", ".", "Airline", "=", "T1", ".", "uid", "WHERE", "T2", ".", "DestAirport", "=", "value"], "question": "How many flights go to Airport 'ASY'?", "question_toks": ["How", "many", "flights", "go", "to", "Airport", "'", "ASY", "'?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"asy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0215", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0006", "db_id": "flight_2", "query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"united airlines\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2", ".", "Airline", "=", "T1", ".", "uid", "WHERE", "T1", ".", "Airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2", ".", "Airline", "=", "T1", ".", "uid", "WHERE", "T1", ".", "Airline", "=", "value", "airlines"], "question": "Count the number of United Airlines flights.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0216", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0007", "db_id": "flight_2", "query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t2.sourceairport = \"ahd\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2", ".", "Airline", "=", "T1", ".", "uid", "WHERE", "T2", ".", "SourceAirport", "=", "``", "ahd", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2", ".", "Airline", "=", "T1", ".", "uid", "WHERE", "T2", ".", "SourceAirport", "=", "value"], "question": "How many flights depart from Airport 'AHD'?", "question_toks": ["How", "many", "flights", "depart", "from", "Airport", "'", "AHD", "'?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"ahd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0217", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0008", "db_id": "flight_2", "query": "select count(*) from airlines as t1 join flights as t2 on t2.airline = t1.uid where t1.airline = \"united airlines\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2", ".", "Airline", "=", "T1", ".", "uid", "WHERE", "T1", ".", "Airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2", ".", "Airline", "=", "T1", ".", "uid", "WHERE", "T1", ".", "Airline", "=", "value", "airlines"], "question": "Return the number of United Airlines flights.", "question_toks": ["Return", "the", "number", "of", "United", "Airlines", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0218", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0009", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "How many flights go to City 'Aberdeen'?", "question_toks": ["How", "many", "flights", "go", "to", "City", "'", "Aberdeen", "'?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0219", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0010", "db_id": "flight_2", "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 t3.airline = \"united airlines\"", "query_toks": ["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", "T3", ".", "Airline", "=", "``", "united", "airlines", "''"], "query_toks_no_value": ["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", "T3", ".", "Airline", "=", "value", "airlines"], "question": "Count the number of United Airlines flights.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"united airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0220", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0011", "db_id": "pets_1", "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 t3.pettype = \"dog\"", "query_toks": ["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", "T3", ".", "pettype", "=", "``", "dog", "''"], "query_toks_no_value": ["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", "T3", ".", "pettype", "=", "value"], "question": "Find the number of dog pets.", "question_toks": ["Find", "the", "number", "of", "dog", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0053", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0012", "db_id": "pets_1", "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 t3.pettype = \"dog\"", "query_toks": ["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", "T3", ".", "pettype", "=", "``", "dog", "''"], "query_toks_no_value": ["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", "T3", ".", "pettype", "=", "value"], "question": "How many dog pets?", "question_toks": ["How", "many", "dog", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0054", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0013", "db_id": "pets_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What is the first name of every student who has a dog?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0066", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0014", "db_id": "pets_1", "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.pettype = \"cat\"", "query_toks": ["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", ".", "pettype", "=", "``", "cat", "''"], "query_toks_no_value": ["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", ".", "pettype", "=", "value"], "question": "Find the last name of the student who has a cat.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0083", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0015", "db_id": "pets_1", "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.pettype = \"cat\"", "query_toks": ["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", ".", "pettype", "=", "``", "cat", "''"], "query_toks_no_value": ["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", ".", "pettype", "=", "value"], "question": "What is the last name of the student who has a cat?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0084", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0016", "db_id": "real_estate_properties", "query": "select property_name from properties where property_type_code = \"house\" union select property_name from properties where property_type_code = \"apartment\"", "query_toks": ["SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "``", "house", "''", "UNION", "SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "``", "apartment", "''"], "query_toks_no_value": ["SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "value", "UNION", "SELECT", "property_name", "FROM", "Properties", "WHERE", "property_type_code", "=", "value"], "question": "What are the names of properties that are either houses or apartments?", "question_toks": ["What", "are", "the", "names", "of", "properties", "that", "are", "either", "houses", "or", "apartments", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"house\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"apartment\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1033", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0017", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = \"timmothy\"", "query_toks": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "``", "timmothy", "''"], "query_toks_no_value": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value"], "question": "What is the mobile phone number of the student named Timmothy?", "question_toks": ["What", "is", "the", "mobile", "phone", "number", "of", "the", "student", "named", "Timmothy", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"timmothy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0554", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0018", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country where continent = \"africa\"", "query_toks": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "value"], "question": "What is the average life expectancy in African countries?", "question_toks": ["What", "is", "the", "average", "life", "expectancy", "in", "African", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0724", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0019", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country where continent = \"africa\"", "query_toks": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "value"], "question": "Give the average life expectancy for countries in Africa?", "question_toks": ["Give", "the", "average", "life", "expectancy", "for", "countries", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0725", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0020", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "``", "afghanistan", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value"], "question": "How many languages does Afghanistan have?", "question_toks": ["How", "many", "languages", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0738", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0021", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "IsOfficial", "=", "value"], "question": "How many official languages are spoken?", "question_toks": ["How", "many", "official", "languages", "are", "spoken", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0739", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0022", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "What are the countries where either English or Dutch is the language ?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0754", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0023", "db_id": "world_1", "query": "select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" union select * from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\"", "query_toks": ["SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "english", "''", "UNION", "SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "dutch", "''"], "query_toks_no_value": ["SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "UNION", "SELECT", "*", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value"], "question": "Which countries have either English or Dutch as language?", "question_toks": ["Which", "countries", "have", "either", "English", "or", "Dutch", "as", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0755", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0024", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"beatrix\"", "query_toks": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "``", "beatrix", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "value"], "question": "What is the language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0768", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0025", "db_id": "world_1", "query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.isofficial = \"t\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "IsOfficial", "=", "value"], "question": "What is the total number of unique official languages spoken in the countries?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "spoken", "in", "the", "countries", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0770", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0026", "db_id": "world_1", "query": "select count(distinct t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.isofficial = \"t\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "IsOfficial", "=", "value"], "question": "For all the countries, what is the total number of distinct official languages?", "question_toks": ["For", "all", "the", "countries", ",", "what", "is", "the", "total", "number", "of", "distinct", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0771", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0027", "db_id": "world_1", "query": "select name from country where population < (select max(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "population", "<", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "population", "<", "value", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the countries that have a population less than any country in Asia?", "question_toks": ["What", "are", "the", "countries", "that", "have", "a", "population", "less", "than", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0774", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0028", "db_id": "world_1", "query": "select name from country where population < (select min(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "population", "<", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "population", "<", "value", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "Which countries have a smaller population than that of any country in Asia?", "question_toks": ["Which", "countries", "have", "a", "smaller", "population", "than", "that", "of", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0775", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0029", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = \"wta championships\" ", "query_toks": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "``", "wta", "championships", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "value", "championships"], "question": "Find the number of winners who participated in the WTA Championships.", "question_toks": ["Find", "the", "number", "of", "winners", "who", "participated", "in", "the", "WTA", "Championships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"wta championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0486", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0030", "db_id": "activity_1", "query": "select count(*) from faculty where rank = \"professor\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "professor", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Faculty", "WHERE", "Rank", "=", "value"], "question": "How many Professors do we have?", "question_toks": ["How", "many", "Professors", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6727", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0031", "db_id": "activity_1", "query": "select count(*) from faculty where rank = \"professor\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "professor", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Faculty", "WHERE", "Rank", "=", "value"], "question": "Count the number of Professors we have.", "question_toks": ["Count", "the", "number", "of", "Professors", "we", "have", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6728", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0032", "db_id": "activity_1", "query": "select count(*) from faculty where rank = \"professor\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "professor", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Faculty", "WHERE", "Rank", "=", "value"], "question": "How many Professors are?", "question_toks": ["How", "many", "Professors", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6731", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0033", "db_id": "activity_1", "query": "select count(*) from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid where t1.fname = \"mark\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "WHERE", "T1", ".", "fname", "=", "``", "mark", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "WHERE", "T1", ".", "fname", "=", "value"], "question": "How many activities does participants with name Mark participate in?", "question_toks": ["How", "many", "activities", "does", "participants", "with", "name", "Mark", "participate", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"mark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6775", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0034", "db_id": "activity_1", "query": "select count(*) from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid where t1.fname = \"mark\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "WHERE", "T1", ".", "fname", "=", "``", "mark", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "WHERE", "T1", ".", "fname", "=", "value"], "question": "Find the number of activities Marks is involved in.", "question_toks": ["Find", "the", "number", "of", "activities", "Marks", "is", "involved", "in", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"mark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6776", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0035", "db_id": "activity_1", "query": "select t3.activity_name from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t3.actid = t2.actid where t1.lname = \"giuliano\"", "query_toks": ["SELECT", "T3", ".", "activity_name", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "Activity", "AS", "T3", "ON", "T3", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T1", ".", "lname", "=", "``", "giuliano", "''"], "query_toks_no_value": ["SELECT", "T3", ".", "activity_name", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1", ".", "facID", "=", "T2", ".", "facID", "JOIN", "Activity", "AS", "T3", "ON", "T3", ".", "actid", "=", "T2", ".", "actid", "WHERE", "T1", ".", "lname", "=", "value"], "question": "Show the names of all the activities all persons with last name Giuliano participates in.", "question_toks": ["Show", "the", "names", "of", "all", "the", "activities", "all", "persons", "with", "last", "name", "Giuliano", "participates", "in", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"giuliano\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6777", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0036", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t1.allergy = \"milk\" or t1.allergy = \"eggs\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "allergy", "=", "``", "milk", "''", "OR", "T1", ".", "allergy", "=", "``", "eggs", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "allergy", "=", "value", "OR", "T1", ".", "allergy", "=", "value"], "question": "How many students have milk or egg allergies?", "question_toks": ["How", "many", "students", "have", "milk", "or", "egg", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"eggs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0509", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0037", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "sex", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T2", ".", "sex", "=", "value"], "question": "How many students who are female are allergic?", "question_toks": ["How", "many", "students", "who", "are", "female", "are", "allergic", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0510", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0038", "db_id": "baseball_1", "query": "select count(*) from player where bats = \"r\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "player", "WHERE", "bats", "=", "``", "r", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "player", "WHERE", "bats", "=", "value"], "question": "How many players are right-handed batters? That is, have the batter value 'R'.", "question_toks": ["How", "many", "players", "are", "right", "-", "handed", "batters", "?", "That", "is", ",", "have", "the", "batter", "value", "'", "R", "'."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 200, false], null], "\"r\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3653", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0039", "db_id": "baseball_1", "query": "select count(*) from postseason as t1 join team as t2 on t1.team_id_loser = t2.team_id_br where t2.name = \"boston red stockings\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id_loser", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "``", "boston", "red", "stockings", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id_loser", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "value", "red", "stockings"], "question": "How many times did Boston Red Stockings lose?", "question_toks": ["How", "many", "times", "did", "Boston", "Red", "Stockings", "lose", "?"], "sql": {"from": {"table_units": [["table_unit", 22], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 286, false], null], [0, 336, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3667", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0040", "db_id": "baseball_1", "query": "select count(*) from postseason as t1 join team as t2 on t1.team_id_loser = t2.team_id_br where t1.year = 2009", "query_toks": ["SELECT", "count", "(*)", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id_loser", "=", "T2", ".", "team_id_br", "WHERE", "T1", ".", "year", "=", "2009"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id_loser", "=", "T2", ".", "team_id_br", "WHERE", "T1", ".", "year", "=", "value"], "question": "Count the number of times the teams lost in 2009 postseason.", "question_toks": ["Count", "the", "number", "of", "times", "the", "teams", "lost", "in", "2009", "postseason", "."], "sql": {"from": {"table_units": [["table_unit", 22], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 286, false], null], [0, 336, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 282, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3668", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0041", "db_id": "baseball_1", "query": "select sum(t1.salary) from salary as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = \"boston red stockings\"", "query_toks": ["SELECT", "sum", "(", "T1", ".", "salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "``", "boston", "red", "stockings", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "T1", ".", "salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1", ".", "team_id", "=", "T2", ".", "team_id_br", "WHERE", "T2", ".", "name", "=", "value", "red", "stockings"], "question": "What is the total salary paid by team Boston Red Stockings?", "question_toks": ["What", "is", "the", "total", "salary", "paid", "by", "team", "Boston", "Red", "Stockings", "?"], "sql": {"from": {"table_units": [["table_unit", 20], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 273, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"boston red stockings\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3677", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0042", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"linda\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "fname", "=", "``", "linda", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "fname", "=", "value"], "question": "How many clubs does member with name \"Linda\" belong to?", "question_toks": ["How", "many", "clubs", "does", "member", "with", "name", "\"", "Linda", "\"", "belong", "to", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"linda\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4266", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0043", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.lname = \"smith\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "lname", "=", "``", "smith", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "lname", "=", "value"], "question": "How many clubs does member with surname \"Smith\" have membership for?", "question_toks": ["How", "many", "clubs", "does", "member", "with", "surname", "\"", "Smith", "\"", "have", "membership", "for", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4267", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0044", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "fname", "=", "``", "tracy", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "fname", "=", "value"], "question": "Find the number of clubs where \"Tracy\" is a member.", "question_toks": ["Find", "the", "number", "of", "clubs", "where", "\"", "Tracy", "\"", "is", "a", "member", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"tracy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4268", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0045", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "fname", "=", "``", "tracy", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1", ".", "clubid", "=", "t2", ".", "clubid", "JOIN", "student", "AS", "t3", "ON", "t2", ".", "stuid", "=", "t3", ".", "stuid", "WHERE", "t3", ".", "fname", "=", "value"], "question": "For how many clubs is \"Tracy\" a member?", "question_toks": ["For", "how", "many", "clubs", "is", "\"", "Tracy", "\"", "a", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"tracy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4269", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0046", "db_id": "college_1", "query": "select t1.stu_lname from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num where t2.enroll_grade = \"a\"", "query_toks": ["SELECT", "T1", ".", "stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1", ".", "stu_num", "=", "T2", ".", "stu_num", "WHERE", "T2", ".", "enroll_grade", "=", "``", "a", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1", ".", "stu_num", "=", "T2", ".", "stu_num", "WHERE", "T2", ".", "enroll_grade", "=", "value"], "question": "What is the last name of the student who got a grade A.", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "got", "a", "grade", "A", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"a\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3325", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0047", "db_id": "cre_Theme_park", "query": "select avg(price_range) from hotels where star_rating_code = \"5\"", "query_toks": ["SELECT", "avg", "(", "price_range", ")", "FROM", "HOTELS", "WHERE", "star_rating_code", "=", "``", "5", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "price_range", ")", "FROM", "HOTELS", "WHERE", "star_rating_code", "=", "value"], "question": "What is the average price range of five star hotels?", "question_toks": ["What", "is", "the", "average", "price", "range", "of", "five", "star", "hotels", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"5\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5898", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0048", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\"", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "``", "alison", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "value"], "question": "What are the names of tourist attraction that Alison visited?", "question_toks": ["What", "are", "the", "names", "of", "tourist", "attraction", "that", "Alison", "visited", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5965", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0049", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id except select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"rosalind\"", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "EXCEPT", "SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "``", "rosalind", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "EXCEPT", "SELECT", "T1", ".", "Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1", ".", "Tourist_Attraction_ID", "=", "T3", ".", "Tourist_Attraction_ID", "AND", "T2", ".", "Tourist_ID", "=", "T3", ".", "Tourist_ID", "WHERE", "T2", ".", "Tourist_Details", "=", "value"], "question": "Find the the names of the tourist attractions that the tourist named Rosalind did not visit.", "question_toks": ["Find", "the", "the", "names", "of", "the", "tourist", "attractions", "that", "the", "tourist", "named", "Rosalind", "did", "not", "visit", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"rosalind\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5966", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0050", "db_id": "csu_1", "query": "select campus from campuses where county = \"los angeles\" union select campus from campuses where county = \"san francisco\"", "query_toks": ["SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "``", "los", "angeles", "''", "UNION", "SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "``", "san", "francisco", "''"], "query_toks_no_value": ["SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "value", "angeles", "UNION", "SELECT", "campus", "FROM", "campuses", "WHERE", "county", "=", "value", "francisco"], "question": "What campuses are located in county Los Angeles or in county San Francisco?", "question_toks": ["What", "campuses", "are", "located", "in", "county", "Los", "Angeles", "or", "in", "county", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"san francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2335", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0051", "db_id": "customers_and_addresses", "query": "select address_content from addresses where city = \"east julianaside\" union select address_content from addresses where city = \"gleasonmouth\"", "query_toks": ["SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "east", "julianaside", "''", "UNION", "SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "gleasonmouth", "''"], "query_toks_no_value": ["SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "value", "julianaside", "UNION", "SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "value"], "question": "Find all the addresses in East Julianaside or in Gleasonmouth", "question_toks": ["Find", "all", "the", "addresses", "in", "East", "Julianaside", "or", "in", "Gleasonmouth"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"east julianaside\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"gleasonmouth\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6133", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0052", "db_id": "driving_school", "query": "select date_left_staff from staff where first_name = \"janessa\"", "query_toks": ["SELECT", "date_left_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "janessa", "''"], "query_toks_no_value": ["SELECT", "date_left_staff", "FROM", "Staff", "WHERE", "first_name", "=", "value"], "question": "When did the staff member with name Janessa leave the company?", "question_toks": ["When", "did", "the", "staff", "member", "with", "name", "Janessa", "leave", "the", "company", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"janessa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6635", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0053", "db_id": "flight_1", "query": "select avg(price) from flight where destination = \"honolulu\"", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "destination", "=", "``", "honolulu", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "destination", "=", "value"], "question": "What is the average price for flights to Honolulu.", "question_toks": ["What", "is", "the", "average", "price", "for", "flights", "to", "Honolulu", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0393", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0054", "db_id": "flight_1", "query": "select avg(price) from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "los", "angeles", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "value", "angeles"], "question": "What is the average price for flights from LA?", "question_toks": ["What", "is", "the", "average", "price", "for", "flights", "from", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"los angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0394", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0055", "db_id": "flight_4", "query": "select count(*) from routes as t1 join airports as t2 on t1.dst_apid = t2.apid join airlines as t3 on t1.alid = t3.alid where t2.country = \"italy\"", "query_toks": ["SELECT", "count", "(*)", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1", ".", "dst_apid", "=", "T2", ".", "apid", "JOIN", "airlines", "AS", "T3", "ON", "T1", ".", "alid", "=", "T3", ".", "alid", "WHERE", "T2", ".", "country", "=", "``", "italy", "''"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1", ".", "dst_apid", "=", "T2", ".", "apid", "JOIN", "airlines", "AS", "T3", "ON", "T1", ".", "alid", "=", "T3", ".", "alid", "WHERE", "T2", ".", "country", "=", "value"], "question": "Return the number of routes with destination airport in Italy.", "question_toks": ["Return", "the", "number", "of", "routes", "with", "destination", "airport", "in", "Italy", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 18, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"italy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6871", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0056", "db_id": "formula_1", "query": "select max(t2.fastestlapspeed) from races as t1 join results as t2 on t1.raceid = t2.raceid where t1.name = \"monaco grand prix\"", "query_toks": ["SELECT", "max", "(", "T2", ".", "fastestlapspeed", ")", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "raceid", "=", "T2", ".", "raceid", "WHERE", "T1", ".", "name", "=", "``", "monaco", "grand", "prix", "''"], "query_toks_no_value": ["SELECT", "max", "(", "T2", ".", "fastestlapspeed", ")", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "raceid", "=", "T2", ".", "raceid", "WHERE", "T1", ".", "name", "=", "value", "grand", "prix"], "question": "What is the maximum fastest lap speed in the Monaco Grand Prix?", "question_toks": ["What", "is", "the", "maximum", "fastest", "lap", "speed", "in", "the", "Monaco", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null]]}, "select": [false, [[1, [0, [0, 59, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"monaco grand prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2222", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0057", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\"", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "football", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "value"], "question": "How many games are played for all football games by students?", "question_toks": ["How", "many", "games", "are", "played", "for", "all", "football", "games", "by", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6009", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0058", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\"", "query_toks": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "roy", "''"], "query_toks_no_value": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "value"], "question": "How many kids stay in the rooms reserved by someone with name ROY?", "question_toks": ["How", "many", "kids", "stay", "in", "the", "rooms", "reserved", "by", "someone", "with", "name", "ROY", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"roy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2578", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0059", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\" and lastname = \"sweazy\"", "query_toks": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "roy", "''", "AND", "LastName", "=", "``", "sweazy", "''"], "query_toks_no_value": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "value", "AND", "LastName", "=", "value"], "question": "Find the number of kids staying in the rooms reserved by a person with first name ROY and last name SWEAZY.", "question_toks": ["Find", "the", "number", "of", "kids", "staying", "in", "the", "rooms", "reserved", "by", "a", "person", "with", "first", "name", "ROY", "and", "last", "name", "SWEAZ", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"roy\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"sweazy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2579", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0060", "db_id": "medicine_enzyme_interaction", "query": "select t1.name from enzyme as t1 join medicine_enzyme_interaction as t2 on t1.id = t2.enzyme_id join medicine as t3 on t2.medicine_id = t3.id where t3.name = \"amisulpride\" and t2.interaction_type = \"inhibitor\"", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "enzyme_id", "JOIN", "medicine", "AS", "T3", "ON", "T2", ".", "medicine_id", "=", "T3", ".", "id", "WHERE", "T3", ".", "name", "=", "``", "amisulpride", "''", "AND", "T2", ".", "interaction_type", "=", "``", "inhibitor", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "enzyme_id", "JOIN", "medicine", "AS", "T3", "ON", "T2", ".", "medicine_id", "=", "T3", ".", "id", "WHERE", "T3", ".", "name", "=", "value", "AND", "T2", ".", "interaction_type", "=", "value"], "question": "What are the names of enzymes in the medicine named 'Amisulpride' and can serve as an 'inhibitor'?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "in", "the", "medicine", "named", "'", "Amisulpride", "'", "and", "can", "serve", "as", "an", "'", "inhibitor", "'?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"amisulpride\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"inhibitor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0947", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0061", "db_id": "movie_1", "query": "select title from movie where director = \"james cameron\" and year > 2000", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "``", "james", "cameron", "''", "AND", "YEAR", ">", "2000"], "query_toks_no_value": ["SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "value", "cameron", "AND", "YEAR", ">", "value"], "question": "What are the titles of all movies that James Cameron directed and has year after 2000?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "James", "Cameron", "directed", "and", "has", "year", "after", "2000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"james cameron\"", null], "and", [false, 3, [0, [0, 3, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2437", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0062", "db_id": "music_2", "query": "select t4.instrument from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid join instruments as t4 on t4.songid = t3.songid and t4.bandmateid = t2.id where t2.lastname = \"heilo\" and t3.title = \"le pop\"", "query_toks": ["SELECT", "T4", ".", "instrument", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1", ".", "bandmate", "=", "T2", ".", "id", "JOIN", "Songs", "AS", "T3", "ON", "T3", ".", "SongId", "=", "T1", ".", "SongId", "JOIN", "Instruments", "AS", "T4", "ON", "T4", ".", "songid", "=", "T3", ".", "songid", "AND", "T4", ".", "bandmateid", "=", "T2", ".", "id", "WHERE", "T2", ".", "lastname", "=", "``", "heilo", "''", "AND", "T3", ".", "title", "=", "``", "le", "pop", "''"], "query_toks_no_value": ["SELECT", "T4", ".", "instrument", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1", ".", "bandmate", "=", "T2", ".", "id", "JOIN", "Songs", "AS", "T3", "ON", "T3", ".", "SongId", "=", "T1", ".", "SongId", "JOIN", "Instruments", "AS", "T4", "ON", "T4", ".", "songid", "=", "T3", ".", "songid", "AND", "T4", ".", "bandmateid", "=", "T2", ".", "id", "WHERE", "T2", ".", "lastname", "=", "value", "AND", "T3", ".", "title", "=", "value", "pop"], "question": "What instrument did the musician that has last name \"Heilo\" and use in the song \"Le Pop\"?", "question_toks": ["What", "instrument", "did", "the", "musician", "that", "has", "last", "name", "\"", "Heilo", "\"", "and", "use", "in", "the", "song", "\"", "Le", "Pop", "\"?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"heilo\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"le pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5204", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0063", "db_id": "network_2", "query": "select name from person where job = \"student\" and age = (select max(age) from person where job = \"student\" )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "``", "student", "''", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "``", "student", "''", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "value", "AND", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "value", ")"], "question": "Who is the person that is oldest and whose job is student?", "question_toks": ["Who", "is", "the", "person", "that", "is", "oldest", "and", "whose", "job", "is", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4410", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0064", "db_id": "network_2", "query": "select friend from personfriend where name in ( select name from person where name like \"alice\" and gender like \"female\" );", "query_toks": ["SELECT", "T2", ".", "friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "friend", "WHERE", "T2", ".", "name", "=", "``", "alice", "''", "AND", "T1", ".", "gender", "=", "``", "female", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "friend", "WHERE", "T2", ".", "name", "=", "value", "AND", "T1", ".", "gender", "=", "value"], "question": "Find the friends for person that have name Alice and is female.", "question_toks": ["Find", "the", "friends", "for", "person", "that", "have", "name", "Alice", "and", "is", "female", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"alice\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"female\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4458", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0065", "db_id": "phone_1", "query": "select distinct t2.hardware_model_name from screen_mode as t1 join phone as t2 on t1.graphics_mode = t2.screen_mode where t2.company_name = \"nokia corporation\" and t1.type != \"text\"", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "Hardware_Model_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Graphics_mode", "=", "T2", ".", "screen_mode", "WHERE", "t2", ".", "Company_name", "=", "``", "nokia", "corporation", "''", "AND", "T1", ".", "Type", "!=", "``", "text", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "Hardware_Model_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Graphics_mode", "=", "T2", ".", "screen_mode", "WHERE", "t2", ".", "Company_name", "=", "value", "corporation", "AND", "T1", ".", "Type", "!=", "value"], "question": "List the hardware model name for the phons that were produced by \"Nokia Corporation\" and whose screen mode type is not Text.", "question_toks": ["List", "the", "hardware", "model", "name", "for", "the", "phons", "that", "were", "produced", "by", "\"", "Nokia", "Corporation", "\"", "and", "whose", "screen", "mode", "type", "is", "not", "Text", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 21, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"nokia corporation\"", null], "and", [false, 7, [0, [0, 14, false], null], "\"text\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1040", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0066", "db_id": "products_gen_characteristics", "query": "select t3.characteristic_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t1.product_name = \"sesame\" and t3.characteristic_type_code = \"grade\"", "query_toks": ["SELECT", "t3", ".", "characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1", ".", "product_id", "=", "t2", ".", "product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "WHERE", "t1", ".", "product_name", "=", "``", "sesame", "''", "AND", "t3", ".", "characteristic_type_code", "=", "``", "grade", "''"], "query_toks_no_value": ["SELECT", "t3", ".", "characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1", ".", "product_id", "=", "t2", ".", "product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "WHERE", "t1", ".", "product_name", "=", "value", "AND", "t3", ".", "characteristic_type_code", "=", "value"], "question": "List all characteristics of product that has name \"sesame\" and type code \"Grade\".", "question_toks": ["List", "all", "characteristics", "of", "product", "that", "has", "name", "\"", "sesame", "\"", "and", "type", "code", "\"", "Grade", "\"."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"sesame\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"grade\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5562", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0067", "db_id": "soccer_2", "query": "select t1.pname from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\" and t2.ppos = \"striker\"", "query_toks": ["SELECT", "T1", ".", "pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''", "AND", "T2", ".", "pPos", "=", "``", "striker", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "value", "AND", "T2", ".", "pPos", "=", "value"], "question": "What are the names of all students who successfully tried out and has the position of striker?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "successfully", "tried", "out", "and", "has", "the", "position", "of", "striker", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"striker\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5007", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0068", "db_id": "store_1", "query": "select sum(total) from invoices where billing_city = \"chicago\" and billing_state = \"il\"", "query_toks": ["SELECT", "sum", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "chicago", "''", "AND", "billing_state", "=", "``", "il", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "value", "AND", "billing_state", "=", "value"], "question": "List total amount that is of invoice from Chicago and is in state IL.", "question_toks": ["List", "total", "amount", "that", "is", "of", "invoice", "from", "Chicago", "and", "is", "in", "state", "IL", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 42, false], null], "\"chicago\"", null], "and", [false, 2, [0, [0, 43, false], null], "\"il\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0559", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0069", "db_id": "car_1", "query": "select t2.makeid , t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.cylinders <= 3", "query_toks": ["SELECT", "T2", ".", "MakeId", ",", "T2", ".", "Make", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T1", ".", "Cylinders", "<=", "3"], "query_toks_no_value": ["SELECT", "T2", ".", "MakeId", ",", "T2", ".", "Make", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T1", ".", "Cylinders", "<=", "value"], "question": "Among all cars, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question_toks": ["Among", "all", "cars", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_in_sql_but_not_in_nl_0069", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "and_in_sql_but_not_in_nl_0070", "db_id": "car_1", "query": "select t2.make from cars_data as t1 join car_names as t2 on t1.id = t2.makeid where t1.cylinders < 4", "query_toks": ["select", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<", "4"], "query_toks_no_value": ["select", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "cylinders", "<", "value"], "question": "Among all the cars, what are the make ids and names of all those with less than 4 cylinders ?", "question_toks": ["Among", "all", "the", "cars", ",", "what", "are", "the", "make", "ids", "and", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_and_in_sql_but_not_in_nl_0070", "is_simplification": true, "simplifications_tags": ["AND_IN_SQL_BUT_NOT_IN_NL"]}, {"id": "aggregation_in_column_0000", "db_id": "bike_1", "query": "select distinct zip_code from weather except select distinct zip_code from weather where cloud_cover < 4", "query_toks": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", ">=", "4"], "query_toks_no_value": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", ">=", "value"], "question": "Find all the zip codes in which the cloud cover have not reached 4.", "question_toks": ["Find", "all", "the", "zip", "codes", "in", "which", "the", "cloud", "cover", "have", "not", "reached", "4", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0195", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0001", "db_id": "bike_1", "query": "select distinct zip_code from weather except select distinct zip_code from weather where cloud_cover < 4", "query_toks": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", ">=", "4"], "query_toks_no_value": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", ">=", "value"], "question": "What are all the different zip codes that have a cloud cover was below 4?", "question_toks": ["What", "are", "all", "the", "different", "zip", "codes", "that", "have", "a", "cloud", "cover", "was", "below", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0196", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0002", "db_id": "bike_1", "query": "select date from weather where cloud_cover between 2 and 6", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "cloud_cover", "BETWEEN", "2", "AND", "6"], "query_toks_no_value": ["SELECT", "date", "FROM", "weather", "WHERE", "cloud_cover", "BETWEEN", "2", "AND", "6"], "question": "What are the dates that have a cloud cover between 2 and 6?", "question_toks": ["What", "are", "the", "dates", "that", "have", "an", "average", "sea", "level", "pressure", "between", "2", "and", "6", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 43, false], null], 2.0, 6.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0200", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0003", "db_id": "bike_1", "query": "select date , cloud_cover - wind_dir_degrees from weather order by cloud_cover - wind_dir_degrees limit 1", "query_toks": ["SELECT", "date", ",", "cloud_cover", "-", "wind_dir_degrees", "FROM", "weather", "ORDER", "BY", "cloud_cover", "-", "wind_dir_degrees", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "date", ",", "cloud_cover", "-", "wind_dir_degrees", "FROM", "weather", "ORDER", "BY", "cloud_cover", "-", "wind_dir_degrees", "LIMIT", "1"], "question": "Find the day in which the difference between the cloud cover and wind dir degrees was the smallest. Also report the difference.", "question_toks": ["Find", "the", "day", "in", "which", "the", "difference", "between", "the", "cloud", "cover", "and", "wind", "dir", "degrees", "was", "the", "smallest", ".", "Also", "report", "the", "difference", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 43, false], [0, 45, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 43, false], [0, 45, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0201", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0004", "db_id": "concert_singer", "query": "select name, max(capacity) from stadium", "query_toks": ["select", "name", ",", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "name", ",", "max", "(", "capacity", ")", "from", "stadium"], "question": "What is the name and maximum capacity of all stadiums ?", "question_toks": ["What", "is", "the", "name", "and", "maximum", "capacity", "of", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0016", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0005", "db_id": "concert_singer", "query": "select name , capacity from stadium order by stadium_id desc limit 1", "query_toks": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "stadium_id", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "stadium_id", "DESC", "LIMIT", "1"], "question": "What is the name and capacity for the stadium with highest stadiom id?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "highest", "stadiom", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 1, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0018", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0006", "db_id": "concert_singer", "query": "select name , capacity from stadium order by stadium_id desc limit 1", "query_toks": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "stadium_id", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "stadium_id", "DESC", "LIMIT", "1"], "question": "What is the name and capacity for the stadium with the highest stadiom id??", "question_toks": ["What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "the", "highest", "stadiom", "id", "??"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 1, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0019", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0007", "db_id": "game_injury", "query": "select name from stadium where capacity_percentage > 100", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "capacity_percentage", ">", "100"], "query_toks_no_value": ["SELECT", "name", "FROM", "stadium", "WHERE", "capacity_percentage", ">", "value"], "question": "What is the name of stadiums with capacity percentage higher than 100%?", "question_toks": ["What", "is", "the", "name", "of", "stadiums", "with", "capacity", "percentage", "higher", "than", "100", "%?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1278", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0008", "db_id": "mountain_photos", "query": "select brand , name from camera_lens order by id desc", "query_toks": ["SELECT", "brand", ",", "name", "FROM", "camera_lens", "ORDER", "BY", "id", "DESC"], "query_toks_no_value": ["SELECT", "brand", ",", "name", "FROM", "camera_lens", "ORDER", "BY", "id", "DESC"], "question": "Find the brand and name for each camera lens, and sort in descending order of id.", "question_toks": ["Find", "the", "brand", "and", "name", "for", "each", "camera", "lens", ",", "and", "sort", "in", "descending", "order", "of", "id", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3712", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0009", "db_id": "products_for_hire", "query": "select max(returned_late_yn) , min(returned_late_yn) , avg(returned_late_yn) from products_booked", "query_toks": ["SELECT", "max", "(", "returned_late_yn", ")", ",", "min", "(", "returned_late_yn", ")", ",", "avg", "(", "returned_late_yn", ")", "FROM", "products_booked"], "query_toks_no_value": ["SELECT", "max", "(", "returned_late_yn", ")", ",", "min", "(", "returned_late_yn", ")", ",", "avg", "(", "returned_late_yn", ")", "FROM", "products_booked"], "question": "What are the maximum, minimum, and average returned late for the products booked?", "question_toks": ["What", "are", "the", "maximum", ",", "minimum", ",", "and", "average", "returned", "late", "for", "the", "products", "booked", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1971", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0010", "db_id": "school_finance", "query": "select t1.school_name , t1.mascot , t1.ihsaa_football_class from school as t1 join budget as t2 on t1.school_id = t2.school_id where budgeted > 6000 or year < 2003 order by t2.school_id , t2.year", "query_toks": ["SELECT", "T1", ".", "School_name", ",", "T1", ".", "Mascot", ",", "T1", ".", "IHSAA_Football_Class", "FROM", "school", "AS", "T1", "JOIN", "budget", "AS", "T2", "ON", "T1", ".", "school_id", "=", "T2", ".", "school_id", "WHERE", "Budgeted", ">", "6000", "OR", "YEAR", "<", "2003", "ORDER", "BY", "T2", ".", "school_id", ",", "T2", ".", "year"], "query_toks_no_value": ["SELECT", "T1", ".", "School_name", ",", "T1", ".", "Mascot", ",", "T1", ".", "IHSAA_Football_Class", "FROM", "school", "AS", "T1", "JOIN", "budget", "AS", "T2", "ON", "T1", ".", "school_id", "=", "T2", ".", "school_id", "WHERE", "Budgeted", ">", "value", "OR", "YEAR", "<", "value", "ORDER", "BY", "T2", ".", "school_id", ",", "T2", ".", "year"], "question": "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of school id and year.", "question_toks": ["List", "the", "name", ",", "IHSAA", "Football", "Class", ",", "and", "Mascot", "of", "the", "schools", "that", "have", "more", "than", "6000", "of", "budgeted", "amount", "or", "were", "founded", "before", "2003", ",", "in", "the", "order", "of", "school", "id", "and", "year", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 6000.0, null], "or", [false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null], [0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1909", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0011", "db_id": "sports_competition", "query": "select count(*) from club_rank where silver < 10", "query_toks": ["SELECT", "count", "(*)", "FROM", "club_rank", "WHERE", "Silver", "<", "10"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "club_rank", "WHERE", "Silver", "<", "value"], "question": "How many clubs have silver medals less than 10?", "question_toks": ["How", "many", "clubs", "have", "silver", "medals", "less", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3349", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0012", "db_id": "sports_competition", "query": "select count(*) from club_rank where silver < 10", "query_toks": ["SELECT", "count", "(*)", "FROM", "club_rank", "WHERE", "Silver", "<", "10"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "club_rank", "WHERE", "Silver", "<", "value"], "question": "What is the total number of clubs that have less than 10 silver medals?", "question_toks": ["What", "is", "the", "total", "number", "of", "clubs", "that", "have", "less", "than", "10", "silver", "medals", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3350", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0013", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where storm_id > 2", "query_toks": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "Storm_ID", ">", "2"], "query_toks_no_value": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "Storm_ID", ">", "value"], "question": "Show the average and maximum damage for all storms with storm id higher than 2.", "question_toks": ["Show", "the", "average", "and", "maximum", "damage", "for", "all", "storms", "with", "storm", "id", "higher", "than", "2", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 1, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2702", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0014", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where storm_id > 2", "query_toks": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "Storm_ID", ">", "2"], "query_toks_no_value": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "Storm_ID", ">", "value"], "question": "What is the average and maximum damage in millions for storms that had a storm id over 2?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "damage", "in", "millions", "for", "storms", "that", "had", "a", "storm", "id", "over", "2", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 1, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2703", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0015", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where storm_id > (select avg(storm_id) from storm)", "query_toks": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "Storm_ID", ">", "(", "SELECT", "avg", "(", "Storm_ID", ")", "FROM", "storm", ")"], "query_toks_no_value": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "Storm_ID", ">", "value", "SELECT", "avg", "(", "Storm_ID", ")", "FROM", "storm", ")"], "question": "What is the total number of deaths and damage for all storms with a storm id greater than the average?", "question_toks": ["What", "is", "the", "total", "number", "of", "deaths", "and", "damage", "for", "all", "storms", "with", "a", "storm", "id", "greater", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2704", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0016", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where storm_id > (select avg(storm_id) from storm)", "query_toks": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "Storm_ID", ">", "(", "SELECT", "avg", "(", "Storm_ID", ")", "FROM", "storm", ")"], "query_toks_no_value": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "Storm_ID", ">", "value", "SELECT", "avg", "(", "Storm_ID", ")", "FROM", "storm", ")"], "question": "Return the total number of deaths and total damange in millions for storms that had a storm id greater than the average.", "question_toks": ["Return", "the", "total", "number", "of", "deaths", "and", "total", "damange", "in", "millions", "for", "storms", "that", "had", "a", "storm", "id", "greater", "than", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2705", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0017", "db_id": "storm_record", "query": "select name , damage_millions_usd from storm order by storm_id desc", "query_toks": ["SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "Storm_ID", "DESC"], "query_toks_no_value": ["SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "Storm_ID", "DESC"], "question": "List name and damage for all storms in a descending order of storm id.", "question_toks": ["List", "name", "and", "damage", "for", "all", "storms", "in", "a", "descending", "order", "of", "storm", "id", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 1, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2706", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0018", "db_id": "storm_record", "query": "select name , damage_millions_usd from storm order by storm_id desc", "query_toks": ["SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "Storm_ID", "DESC"], "query_toks_no_value": ["SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "Storm_ID", "DESC"], "question": "What are the names and damage in millions for storms, ordered by their storm id descending?", "question_toks": ["What", "are", "the", "names", "and", "damage", "in", "millions", "for", "storms", ",", "ordered", "by", "their", "storm", "id", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 1, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2707", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0019", "db_id": "storm_record", "query": "select t1.name , t1.storm_id from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1", ".", "name", ",", "T1", ".", "Storm_ID", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1", ".", "storm_id", "=", "T2", ".", "storm_id", "GROUP", "BY", "T1", ".", "storm_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "Storm_ID", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1", ".", "storm_id", "=", "T2", ".", "storm_id", "GROUP", "BY", "T1", ".", "storm_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "What is the storm name and storm id which affected the greatest number of regions?", "question_toks": ["What", "is", "the", "storm", "name", "and", "storm", "id", "which", "affected", "the", "greatest", "number", "of", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2716", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0020", "db_id": "storm_record", "query": "select t1.name , t1.storm_id from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1", ".", "name", ",", "T1", ".", "Storm_ID", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1", ".", "storm_id", "=", "T2", ".", "storm_id", "GROUP", "BY", "T1", ".", "storm_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "Storm_ID", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1", ".", "storm_id", "=", "T2", ".", "storm_id", "GROUP", "BY", "T1", ".", "storm_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Return the name and storm id of the storm that affected the most regions.", "question_toks": ["Return", "the", "name", "and", "storm", "id", "of", "the", "storm", "that", "affected", "the", "most", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_2717", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0021", "db_id": "tracking_share_transactions", "query": "select max(date_of_transaction) from transactions where amount_of_transaction < 10000", "query_toks": ["SELECT", "max", "(", "date_of_transaction", ")", "FROM", "TRANSACTIONS", "WHERE", "amount_of_transaction", "<", "10000"], "query_toks_no_value": ["SELECT", "max", "(", "date_of_transaction", ")", "FROM", "TRANSACTIONS", "WHERE", "amount_of_transaction", "<", "value"], "question": "Show the maximum date of transaction where the amount is smaller than 10000", "question_toks": ["Show", "the", "maximum", "date", "of", "transaction", "where", "the", "amount", "is", "smaller", "than", "10000"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 12, false], null], 10000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5855", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0022", "db_id": "tracking_share_transactions", "query": "select date_of_transaction from transactions where transaction_id > 10 or investor_id > 10", "query_toks": ["SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "transaction_id", ">", "10", "OR", "investor_id", ">", "10"], "query_toks_no_value": ["SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "transaction_id", ">", "value", "OR", "investor_id", ">", "value"], "question": "Show the dates of transactions if the investor id is bigger than 10 or the transaction id is bigger than 10.", "question_toks": ["Show", "the", "dates", "of", "transactions", "if", "the", "investor", "id", "is", "bigger", "than", "10", "or", "the", "transaction", "id", "is", "bigger", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 10.0, null], "or", [false, 3, [0, [0, 9, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5856", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0023", "db_id": "tracking_share_transactions", "query": "select t1.transaction_type_description , t2.date_of_transaction from ref_transaction_types as t1 join transactions as t2 on t1.transaction_type_code = t2.transaction_type_code where t2.investor_id < 10", "query_toks": ["SELECT", "T1", ".", "transaction_type_description", ",", "T2", ".", "date_of_transaction", "FROM", "Ref_Transaction_Types", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1", ".", "transaction_type_code", "=", "T2", ".", "transaction_type_code", "WHERE", "T2", ".", "investor_id", "<", "10"], "query_toks_no_value": ["SELECT", "T1", ".", "transaction_type_description", ",", "T2", ".", "date_of_transaction", "FROM", "Ref_Transaction_Types", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1", ".", "transaction_type_code", "=", "T2", ".", "transaction_type_code", "WHERE", "T2", ".", "investor_id", "<", "value"], "question": "Show the transaction type descriptions and dates if the investor id is smaller than 10.", "question_toks": ["Show", "the", "transaction", "type", "descriptions", "and", "dates", "if", "the", "investor", "id", "is", "smaller", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5857", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0024", "db_id": "tracking_share_transactions", "query": "select t1.investor_details from investors as t1 join transactions as t2 on t1.investor_id = t2.investor_id where t2.investor_id > 8", "query_toks": ["SELECT", "T1", ".", "Investor_details", "FROM", "INVESTORS", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1", ".", "investor_id", "=", "T2", ".", "investor_id", "WHERE", "T2", ".", "investor_id", ">", "8"], "query_toks_no_value": ["SELECT", "T1", ".", "Investor_details", "FROM", "INVESTORS", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1", ".", "investor_id", "=", "T2", ".", "investor_id", "WHERE", "T2", ".", "investor_id", ">", "value"], "question": "Show details of all investors if they make any transaction with investor id greater than 8.", "question_toks": ["Show", "details", "of", "all", "investors", "if", "they", "make", "any", "transaction", "with", "investor", "id", "greater", "than", "8", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5858", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0025", "db_id": "tracking_share_transactions", "query": "select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.transaction_id join transactions as t3 on t2.transaction_id = t3.transaction_id where t3.investor_id < 10", "query_toks": ["SELECT", "T1", ".", "lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1", ".", "lot_id", "=", "T2", ".", "transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2", ".", "transaction_id", "=", "T3", ".", "transaction_id", "WHERE", "T3", ".", "investor_id", "<", "10"], "query_toks_no_value": ["SELECT", "T1", ".", "lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1", ".", "lot_id", "=", "T2", ".", "transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2", ".", "transaction_id", "=", "T3", ".", "transaction_id", "WHERE", "T3", ".", "investor_id", "<", "value"], "question": "What are the lot details of lots associated with transactions with investor id smaller than 10?", "question_toks": ["What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "with", "investor", "id", "smaller", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5864", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0026", "db_id": "tracking_share_transactions", "query": "select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.transaction_id join transactions as t3 on t2.transaction_id = t3.transaction_id where t3.investor_id > 8 and t3.transaction_type_code = \"pur\"", "query_toks": ["SELECT", "T1", ".", "lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1", ".", "lot_id", "=", "T2", ".", "transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2", ".", "transaction_id", "=", "T3", ".", "transaction_id", "WHERE", "T3", ".", "investor_id", ">", "8", "AND", "T3", ".", "transaction_type_code", "=", "``", "pur", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1", ".", "lot_id", "=", "T2", ".", "transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2", ".", "transaction_id", "=", "T3", ".", "transaction_id", "WHERE", "T3", ".", "investor_id", ">", "value", "AND", "T3", ".", "transaction_type_code", "=", "value"], "question": "What are the lot details of lots associated with transactions whose investor id is bigger than 8 and whose type code is \"PUR\"?", "question_toks": ["What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "whose", "investor", "id", "is", "bigger", "than", "8", "and", "whose", "type", "code", "is", "\"", "PUR", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 8.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"pur\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5865", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0027", "db_id": "tracking_share_transactions", "query": "select transaction_type_code , max(investor_id) , min(investor_id) from transactions group by transaction_type_code", "query_toks": ["SELECT", "transaction_type_code", ",", "max", "(", "investor_id", ")", ",", "min", "(", "investor_id", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "transaction_type_code"], "query_toks_no_value": ["SELECT", "transaction_type_code", ",", "max", "(", "investor_id", ")", ",", "min", "(", "investor_id", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "transaction_type_code"], "question": "Show the maximum and minimum investor id of different transaction types.", "question_toks": ["Show", "the", "maximum", "and", "minimum", "investor", "id", "of", "different", "transaction", "types", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5867", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0028", "db_id": "tracking_share_transactions", "query": "select investor_id , avg(transaction_id) from transactions group by investor_id", "query_toks": ["SELECT", "investor_id", ",", "avg", "(", "transaction_id", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id"], "query_toks_no_value": ["SELECT", "investor_id", ",", "avg", "(", "transaction_id", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id"], "question": "Show the average transaction id of transactions for different investors.", "question_toks": ["Show", "the", "average", "transaction", "id", "of", "transactions", "for", "different", "investors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5868", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0029", "db_id": "tracking_share_transactions", "query": "select investor_id , avg(transaction_id) from transactions group by investor_id order by avg(transaction_id)", "query_toks": ["SELECT", "investor_id", ",", "avg", "(", "transaction_id", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id", "ORDER", "BY", "avg", "(", "transaction_id", ")"], "query_toks_no_value": ["SELECT", "investor_id", ",", "avg", "(", "transaction_id", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id", "ORDER", "BY", "avg", "(", "transaction_id", ")"], "question": "Show the average transaction id of transactions for each investor, ordered by average transaction id.", "question_toks": ["Show", "the", "average", "transaction", "id", "of", "transactions", "for", "each", "investor", ",", "ordered", "by", "average", "transaction", "id", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["asc", [[0, [5, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5869", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0030", "db_id": "tracking_share_transactions", "query": "select date_of_transaction from transactions where investor_id >= 10 or amount_of_transaction >= 100", "query_toks": ["SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "investor_id", ">=", "10", "OR", "amount_of_transaction", ">=", "100"], "query_toks_no_value": ["SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "investor_id", ">=", "value", "OR", "amount_of_transaction", ">=", "value"], "question": "What are the dates of transactions with at least 10 investor id or amount bigger than 100?", "question_toks": ["What", "are", "the", "dates", "of", "transactions", "with", "at", "least", "10", "investor", "id", "or", "amount", "bigger", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 10.0, null], "or", [false, 5, [0, [0, 12, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5882", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0031", "db_id": "aircraft", "query": "select t1.aircraft , t1.description from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.transit_passengers > 50000", "query_toks": ["SELECT", "T1", ".", "Aircraft", ",", "T1", ".", "Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1", ".", "Aircraft_ID", "=", "T2", ".", "Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2", ".", "Airport_ID", "=", "T3", ".", "Airport_ID", "WHERE", "T3", ".", "Transit_Passengers", ">", "50000"], "query_toks_no_value": ["SELECT", "T1", ".", "Aircraft", ",", "T1", ".", "Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1", ".", "Aircraft_ID", "=", "T2", ".", "Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2", ".", "Airport_ID", "=", "T3", ".", "Airport_ID", "WHERE", "T3", ".", "Transit_Passengers", ">", "value"], "question": "Please show the names and descriptions of aircrafts associated with airports that have a number of transit passengers bigger than 50000.", "question_toks": ["Please", "show", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "airports", "that", "have", "a", "number", "of", "transit", "passengers", "bigger", "than", "50000", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 23, false], null], 50000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4817", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0032", "db_id": "aircraft", "query": "select t1.aircraft , t1.description from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.transit_passengers > 50000", "query_toks": ["SELECT", "T1", ".", "Aircraft", ",", "T1", ".", "Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1", ".", "Aircraft_ID", "=", "T2", ".", "Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2", ".", "Airport_ID", "=", "T3", ".", "Airport_ID", "WHERE", "T3", ".", "Transit_Passengers", ">", "50000"], "query_toks_no_value": ["SELECT", "T1", ".", "Aircraft", ",", "T1", ".", "Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1", ".", "Aircraft_ID", "=", "T2", ".", "Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2", ".", "Airport_ID", "=", "T3", ".", "Airport_ID", "WHERE", "T3", ".", "Transit_Passengers", ">", "value"], "question": "What are the names and descriptions of aircrafts associated with an airport that has more transit passengers than 50000?", "question_toks": ["What", "are", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "an", "airport", "that", "has", "more", "transit", "passengers", "than", "50000", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 23, false], null], 50000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4818", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0033", "db_id": "aircraft", "query": "select avg(t3.transit_passengers) from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t1.aircraft = \"robinson r-22\"", "query_toks": ["SELECT", "avg", "(", "T3", ".", "Transit_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1", ".", "Aircraft_ID", "=", "T2", ".", "Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2", ".", "Airport_ID", "=", "T3", ".", "Airport_ID", "WHERE", "T1", ".", "Aircraft", "=", "``", "robinson", "r", "-", "22", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "T3", ".", "Transit_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1", ".", "Aircraft_ID", "=", "T2", ".", "Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2", ".", "Airport_ID", "=", "T3", ".", "Airport_ID", "WHERE", "T1", ".", "Aircraft", "=", "value", "r", "-", "22"], "question": "What is the average number of transit passengers of airports that are associated with aircraft \"Robinson R-22\"?", "question_toks": ["What", "is", "the", "average", "number", "of", "transit", "passengers", "of", "airports", "that", "are", "associated", "with", "aircraft", "\"", "Robinson", "R", "-", "22", "\"?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[5, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"robinson r-22\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4819", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0034", "db_id": "aircraft", "query": "select avg(t3.transit_passengers) from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t1.aircraft = \"robinson r-22\"", "query_toks": ["SELECT", "avg", "(", "T3", ".", "Transit_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1", ".", "Aircraft_ID", "=", "T2", ".", "Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2", ".", "Airport_ID", "=", "T3", ".", "Airport_ID", "WHERE", "T1", ".", "Aircraft", "=", "``", "robinson", "r", "-", "22", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "T3", ".", "Transit_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1", ".", "Aircraft_ID", "=", "T2", ".", "Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2", ".", "Airport_ID", "=", "T3", ".", "Airport_ID", "WHERE", "T1", ".", "Aircraft", "=", "value", "r", "-", "22"], "question": "What is the average number of transit passengers for all airports that the aircraft \"Robinson R-22\" visits?", "question_toks": ["What", "is", "the", "average", "number", "of", "transit", "passengers", "for", "all", "airports", "that", "the", "aircraft", "\"", "Robinson", "R", "-", "22", "\"", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[5, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"robinson r-22\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4820", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0035", "db_id": "apartment_rentals", "query": "select min(building_id) , max(building_id) from apartment_buildings", "query_toks": ["SELECT", "min", "(", "building_id", ")", ",", "max", "(", "building_id", ")", "FROM", "Apartments"], "query_toks_no_value": ["SELECT", "min", "(", "building_id", ")", ",", "max", "(", "building_id", ")", "FROM", "Apartments"], "question": "What is the minimum and maximum building id of all the apartment buildings?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "building", "id", "of", "all", "the", "apartments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1206", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0036", "db_id": "apartment_rentals", "query": "select min(building_id) , max(building_id) from apartment_buildings", "query_toks": ["SELECT", "min", "(", "building_id", ")", ",", "max", "(", "building_id", ")", "FROM", "Apartments"], "query_toks_no_value": ["SELECT", "min", "(", "building_id", ")", ",", "max", "(", "building_id", ")", "FROM", "Apartments"], "question": "Give me the minimum and maximum building id among all the apartment buildings.", "question_toks": ["Give", "me", "the", "minimum", "and", "maximum", "building", "id", "among", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1207", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0037", "db_id": "gymnast", "query": "select vault_points from gymnast order by vault_points desc", "query_toks": ["SELECT", "Vault_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC"], "query_toks_no_value": ["SELECT", "Vault_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC"], "question": "List the vault points of gymnasts in descending order.", "question_toks": ["List", "the", "vault", "points", "of", "gymnasts", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1738", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0038", "db_id": "gymnast", "query": "select vault_points from gymnast order by vault_points desc", "query_toks": ["SELECT", "Vault_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC"], "query_toks_no_value": ["SELECT", "Vault_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC"], "question": "What are the vault points for all gymnasts, ordered by vault points descending?", "question_toks": ["What", "are", "the", "vault", "points", "for", "all", "gymnasts", ",", "ordered", "by", "vault", "points", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1739", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0039", "db_id": "gymnast", "query": "select vault_points from gymnast order by floor_exercise_points desc", "query_toks": ["SELECT", "Vault_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC"], "query_toks_no_value": ["SELECT", "Vault_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC"], "question": "List the vault points of gymnasts in descending order of floor exercise points.", "question_toks": ["List", "the", "vault", "points", "of", "gymnasts", "in", "descending", "order", "of", "floor", "exercise", "points", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1740", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0040", "db_id": "gymnast", "query": "select vault_points from gymnast order by floor_exercise_points desc", "query_toks": ["SELECT", "Vault_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC"], "query_toks_no_value": ["SELECT", "Vault_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC"], "question": "What are the vault points of gymnasts, ordered by their floor exercise points descending?", "question_toks": ["What", "are", "the", "vault", "points", "of", "gymnasts", ",", "ordered", "by", "their", "floor", "exercise", "points", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1741", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0041", "db_id": "gymnast", "query": "select t1.vault_points from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t2.age asc limit 1", "query_toks": ["SELECT", "T1", ".", "Vault_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T2", ".", "Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "Vault_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T2", ".", "Age", "ASC", "LIMIT", "1"], "question": "What is the vault point count of the youngest gymnast?", "question_toks": ["What", "is", "the", "vault", "point", "count", "of", "the", "youngest", "gymnast", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1754", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0042", "db_id": "gymnast", "query": "select t1.vault_points from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t2.age asc limit 1", "query_toks": ["SELECT", "T1", ".", "Vault_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T2", ".", "Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "Vault_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T2", ".", "Age", "ASC", "LIMIT", "1"], "question": "Return the vault points of the gymnast with the lowest age.", "question_toks": ["Return", "the", "vault", "points", "of", "the", "gymnast", "with", "the", "lowest", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1755", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0043", "db_id": "gymnast", "query": "select distinct hometown from people where people_id in ( select gymnast_id from gymnast where vault_points > 9.5);", "query_toks": ["SELECT", "T1", ".", "Vault_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T2", ".", "Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "Vault_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T2", ".", "Age", "ASC", "LIMIT", "1"], "question": "What are the distinct hometowns of gymnasts with vault points more than 9.5?", "question_toks": ["What", "are", "the", "distinct", "hometowns", "of", "gymnasts", "with", "vault", "points", "more", "than", "57", ".", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1758", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0044", "db_id": "gymnast", "query": "select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t1.vault_points > 9.5", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "WHERE", "T1", ".", "Vault_Points", ">", "9", ".", "5"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "WHERE", "T1", ".", "Vault_Points", ">", "value", ".", "5"], "question": "Give the different hometowns of gymnasts that have a vault point score of above 9.5.", "question_toks": ["Give", "the", "different", "hometowns", "of", "gymnasts", "that", "have", "a", "vault", "point", "score", "of", "above", "9", ".", "5", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 9.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1759", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0045", "db_id": "gymnast", "query": "select t2.age from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t1.vault_points desc", "query_toks": ["SELECT", "T2", ".", "Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T1", ".", "Vault_Points", "DESC"], "query_toks_no_value": ["SELECT", "T2", ".", "Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T1", ".", "Vault_Points", "DESC"], "question": "Show the ages of gymnasts in descending order of vault points.", "question_toks": ["Show", "the", "ages", "of", "gymnasts", "in", "descending", "order", "of", "vault", "points", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1774", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0046", "db_id": "gymnast", "query": "select t2.age from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t1.vault_points desc", "query_toks": ["SELECT", "T2", ".", "Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T1", ".", "Vault_Points", "DESC"], "query_toks_no_value": ["SELECT", "T2", ".", "Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "Gymnast_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T1", ".", "Vault_Points", "DESC"], "question": "What are the ages of the gymnasts, ordered descending by their vault points?", "question_toks": ["What", "are", "the", "ages", "of", "the", "gymnasts", ",", "ordered", "descending", "by", "their", "vault", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1775", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0047", "db_id": "store_product", "query": "select product_id from product group by product_id having count(*) > 3", "query_toks": ["SELECT", "product_id", "FROM", "product", "GROUP", "BY", "product_id", "HAVING", "count", "(*)", ">", "3"], "query_toks_no_value": ["SELECT", "product_id", "FROM", "product", "GROUP", "BY", "product_id", "HAVING", "count", "(*)", ">", "3"], "question": "Find the list of product id which have more than 3 product listed", "question_toks": ["Find", "the", "list", "of", "product", "id", "which", "have", "more", "than", "3", "product", "listed"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4902", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0048", "db_id": "store_product", "query": "select product_id from product group by product_id having count(*) > 3", "query_toks": ["SELECT", "product_id", "FROM", "product", "GROUP", "BY", "product_id", "HAVING", "count", "(*)", ">", "3"], "query_toks_no_value": ["SELECT", "product_id", "FROM", "product", "GROUP", "BY", "product_id", "HAVING", "count", "(*)", ">", "3"], "question": "What is the product id for everything that has more than 3 products listed?", "question_toks": ["What", "is", "the", "product", "id", "for", "everything", "that", "has", "more", "than", "3", "products", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4903", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0049", "db_id": "store_product", "query": "select interface from product group by interface order by count(*) desc limit 1", "query_toks": ["SELECT", "interface", "FROM", "product", "GROUP", "BY", "interface", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "interface", "FROM", "product", "GROUP", "BY", "interface", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Find the most prominent interface among all the products.", "question_toks": ["Find", "the", "most", "prominent", "interface", "among", "all", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4936", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0050", "db_id": "store_product", "query": "select interface from product group by interface order by count(*) desc limit 1", "query_toks": ["SELECT", "interface", "FROM", "product", "GROUP", "BY", "interface", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "interface", "FROM", "product", "GROUP", "BY", "interface", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "What is the most common interface?", "question_toks": ["What", "is", "the", "most", "common", "interface", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_4937", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0051", "db_id": "train_station", "query": "select name , station_id from station where location != \"london\"", "query_toks": ["SELECT", "name", ",", "station_id", "FROM", "station", "WHERE", "LOCATION", "!=", "``", "london", "''"], "query_toks_no_value": ["SELECT", "name", ",", "station_id", "FROM", "station", "WHERE", "LOCATION", "!=", "value"], "question": "Show the names and station id for all train stations not in London.", "question_toks": ["Show", "the", "names", "and", "station", "id", "for", "all", "train", "stations", "not", "in", "London", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6602", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0052", "db_id": "train_station", "query": "select name , main_services from station order by annual_entry_exit desc limit 3", "query_toks": ["SELECT", "name", ",", "main_services", "FROM", "station", "ORDER", "BY", "annual_entry_exit", "DESC", "LIMIT", "3"], "query_toks_no_value": ["SELECT", "name", ",", "main_services", "FROM", "station", "ORDER", "BY", "annual_entry_exit", "DESC", "LIMIT", "3"], "question": "Show the names and main services for train stations that have the top three annual entry exit.", "question_toks": ["Show", "the", "names", "and", "main", "services", "for", "train", "stations", "that", "have", "the", "top", "three", "annual", "entry", "exit", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6603", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0053", "db_id": "train_station", "query": "select avg(annual_entry_exit) , max(annual_entry_exit) from station where location = \"london\" or location = \"glasgow\"", "query_toks": ["SELECT", "avg", "(", "annual_entry_exit", ")", ",", "max", "(", "annual_entry_exit", ")", "FROM", "station", "WHERE", "LOCATION", "=", "``", "london", "''", "OR", "LOCATION", "=", "``", "glasgow", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "annual_entry_exit", ")", ",", "max", "(", "annual_entry_exit", ")", "FROM", "station", "WHERE", "LOCATION", "=", "value", "OR", "LOCATION", "=", "value"], "question": "What is the average and maximum annual entry exit for train stations in London or Glasgow?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "annual", "entry", "exit", "for", "train", "stations", "in", "London", "or", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"london\"", null], "or", [false, 2, [0, [0, 6, false], null], "\"glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_6604", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0054", "db_id": "tracking_share_transactions", "query": "select date_of_transaction , investor_id from transactions", "query_toks": ["SELECT", "date_of_transaction", ",", "investor_id", "FROM", "TRANSACTIONS"], "query_toks_no_value": ["SELECT", "date_of_transaction", ",", "investor_id", "FROM", "TRANSACTIONS"], "question": "Show all date and investor id of transactions.", "question_toks": ["Show", "all", "date", "and", "investor", "id", "of", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5848", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0055", "db_id": "tracking_share_transactions", "query": "select min(investor_id) from transactions where transaction_type_code = \"pur\" and share_count > 50", "query_toks": ["SELECT", "min", "(", "investor_id", ")", "FROM", "TRANSACTIONS", "WHERE", "transaction_type_code", "=", "``", "pur", "''", "AND", "share_count", ">", "50"], "query_toks_no_value": ["SELECT", "min", "(", "investor_id", ")", "FROM", "TRANSACTIONS", "WHERE", "transaction_type_code", "=", "value", "AND", "share_count", ">", "value"], "question": "Show the minimum investor id whose type code is \"PUR\" and whose share count is bigger than 50.", "question_toks": ["Show", "the", "minimum", "investor", "id", "whose", "type", "code", "is", "\"", "PUR", "\"", "and", "whose", "share", "count", "is", "bigger", "than", "50", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"pur\"", null], "and", [false, 3, [0, [0, 13, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_5854", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0056", "db_id": "bike_1", "query": "select date from weather where cloud_cover > 2", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "cloud_cover", ">", "2"], "query_toks_no_value": ["SELECT", "date", "FROM", "weather", "WHERE", "cloud_cover", ">", "value"], "question": "Give me the dates when the cloud cover was higher than 2.", "question_toks": ["Give", "me", "the", "dates", "when", "the", "cloud", "cover", "was", "higher", "than", "2", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 3, [0, [0, 43, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0109", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0057", "db_id": "bike_1", "query": "select date from weather where cloud_cover > 85", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "cloud_cover", ">", "2"], "query_toks_no_value": ["SELECT", "date", "FROM", "weather", "WHERE", "cloud_cover", ">", "value"], "question": "What are the dates with a cloud cover higher than 85?", "question_toks": ["What", "are", "the", "dates", "with", "a", "cloud", "cover", "higher", "than", "85", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 3, [0, [0, 43, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0110", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0058", "db_id": "bike_1", "query": "select zip_code , avg(cloud_cover) from weather where date like \"8/%\" group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "avg", "(", "cloud_cover", ")", "FROM", "weather", "WHERE", "date", "LIKE", "``", "8", "/%\"", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["SELECT", "zip_code", ",", "avg", "(", "cloud_cover", ")", "FROM", "weather", "WHERE", "date", "LIKE", "value", "/%\"", "GROUP", "BY", "zip_code"], "question": "For each zip code, return the average cloud cover of August there.", "question_toks": ["For", "each", "zip", "code", ",", "return", "the", "average", "cloud", "cover", "of", "August", "there", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 43, false], null]]]], "where": [[false, 9, [0, [0, 23, false], null], "\"8/%\"", null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0123", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0059", "db_id": "bike_1", "query": "select zip_code , avg(cloud_cover) from weather where date like \"8/%\" group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "avg", "(", "cloud_cover", ")", "FROM", "weather", "WHERE", "date", "LIKE", "``", "8", "/%\"", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["SELECT", "zip_code", ",", "avg", "(", "cloud_cover", ")", "FROM", "weather", "WHERE", "date", "LIKE", "value", "/%\"", "GROUP", "BY", "zip_code"], "question": "For each zip code, what is the average cloud cover for all dates that start with '8'?", "question_toks": ["For", "each", "zip", "code", ",", "what", "is", "the", "average", "cloud", "cover", "for", "all", "dates", "that", "start", "with", "'", "8", "'?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 43, false], null]]]], "where": [[false, 9, [0, [0, 23, false], null], "\"8/%\"", null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0124", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0060", "db_id": "bike_1", "query": "select count(*) from weather where cloud_cover > 2 and precipitation_inches > 0", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "weather", "WHERE", "cloud_cover", ">", "2", "AND", "precipitation_inches", ">", "0"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "weather", "WHERE", "cloud_cover", ">", "value", "AND", "precipitation_inches", ">", "value"], "question": "How many days had both cloud cover above 2 and precipitation inches above 0?", "question_toks": ["How", "many", "days", "had", "both", "cloud", "cover", "above", "2", "and", "precipitation", "inches", "above", "0", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 43, false], null], 2.0, null], "and", [false, 3, [0, [0, 42, false], null], 0.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0137", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0061", "db_id": "bike_1", "query": "select count(*) from weather where cloud_cover > 2 and precipitation_inches > 0", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "weather", "WHERE", "cloud_cover", ">", "2", "AND", "precipitation_inches", ">", "0"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "weather", "WHERE", "cloud_cover", ">", "value", "AND", "precipitation_inches", ">", "value"], "question": "What is the number of days that had an cloud cover above 2 and precipitation inches above 0?", "question_toks": ["What", "is", "the", "number", "of", "days", "that", "had", "an", "cloud", "cover", "above", "2", "and", "precipitation", "inches", "above", "0", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 43, false], null], 2.0, null], "and", [false, 3, [0, [0, 42, false], null], 0.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0138", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0062", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code order by avg(cloud_cover) limit 1", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "cloud_cover", ")", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "cloud_cover", ")", "LIMIT", "1"], "question": "What is the zip code in which the average cloud cover is the lowest?", "question_toks": ["What", "is", "the", "zip", "code", "in", "which", "the", "average", "cloud", "cover", "is", "the", "lowest", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["asc", [[0, [5, 43, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0147", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0063", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code order by avg(cloud_cover) limit 1", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "cloud_cover", ")", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "cloud_cover", ")", "LIMIT", "1"], "question": "What is the zip code that has the lowest average cloud cover?", "question_toks": ["What", "is", "the", "zip", "code", "that", "has", "the", "lowest", "average", "cloud", "cover", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["asc", [[0, [5, 43, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0148", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0064", "db_id": "bike_1", "query": "select date , zip_code from weather where cloud_cover >= 2", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", ">=", "2"], "query_toks_no_value": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", ">=", "value"], "question": "When and in what zip code did cloud cover reach 2?", "question_toks": ["When", "and", "in", "what", "zip", "code", "did", "cloud", "cover", "reach", "2", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0153", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0065", "db_id": "bike_1", "query": "select date , zip_code from weather where cloud_cover >= 2", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", ">=", "2"], "query_toks_no_value": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", ">=", "value"], "question": "What zip codes have a station with a cloud cover greater than or equal to 2 and when did it reach that temperature?", "question_toks": ["What", "zip", "codes", "have", "a", "station", "with", "a", "cloud", "cover", "greater", "than", "or", "equal", "to", "2", "and", "when", "did", "it", "reach", "that", "temperature", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0154", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0066", "db_id": "bike_1", "query": "select t1.id from trip as t1 join weather as t2 on t1.zip_code = t2.zip_code group by t2.zip_code having avg(t2.cloud_cover) > 2", "query_toks": ["SELECT", "T1", ".", "id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1", ".", "zip_code", "=", "T2", ".", "zip_code", "GROUP", "BY", "T2", ".", "zip_code", "HAVING", "avg", "(", "T2", ".", "cloud_cover", ")", ">", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1", ".", "zip_code", "=", "T2", ".", "zip_code", "GROUP", "BY", "T2", ".", "zip_code", "HAVING", "avg", "(", "T2", ".", "cloud_cover", ")", ">", "2"], "question": "Give me ids for all the trip that took place in a zip code area with average cloud cover above 2.", "question_toks": ["Give", "me", "ids", "for", "all", "the", "trip", "that", "took", "place", "in", "a", "zip", "code", "area", "with", "average", "cloud", "cover", "above", "2", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [5, 43, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0155", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0067", "db_id": "bike_1", "query": "select t1.id from trip as t1 join weather as t2 on t1.zip_code = t2.zip_code group by t2.zip_code having avg(t2.cloud_cover) > 2", "query_toks": ["SELECT", "T1", ".", "id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1", ".", "zip_code", "=", "T2", ".", "zip_code", "GROUP", "BY", "T2", ".", "zip_code", "HAVING", "avg", "(", "T2", ".", "cloud_cover", ")", ">", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1", ".", "zip_code", "=", "T2", ".", "zip_code", "GROUP", "BY", "T2", ".", "zip_code", "HAVING", "avg", "(", "T2", ".", "cloud_cover", ")", ">", "2"], "question": "For each zip code, find the ids of all trips that have a higher average cloud cover above 2?", "question_toks": ["For", "each", "zip", "code", ",", "find", "the", "ids", "of", "all", "trips", "that", "have", "a", "higher", "average", "cloud", "cover", "above", "2", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [5, 43, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0156", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0068", "db_id": "bike_1", "query": "select zip_code , count(*) from weather where cloud_cover >= 4 group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "count", "(*)", "FROM", "weather", "WHERE", "cloud_cover", ">=", "4", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["SELECT", "zip_code", ",", "count", "(*)", "FROM", "weather", "WHERE", "cloud_cover", ">=", "value", "GROUP", "BY", "zip_code"], "question": "For each zip code, return how many times cloud cover reached 4?", "question_toks": ["For", "each", "zip", "code", ",", "return", "how", "many", "times", "cloud", "cover", "reached", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 4.0, null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0157", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0069", "db_id": "bike_1", "query": "select zip_code , count(*) from weather where cloud_cover >= 4 group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "count", "(*)", "FROM", "weather", "WHERE", "cloud_cover", ">=", "4", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["SELECT", "zip_code", ",", "count", "(*)", "FROM", "weather", "WHERE", "cloud_cover", ">=", "value", "GROUP", "BY", "zip_code"], "question": "For each zip code, how many times has the cloud cover reached 4?", "question_toks": ["For", "each", "zip", "code", ",", "how", "many", "times", "has", "the", "cloud", "cover", "reached", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 43, false], null], 4.0, null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0158", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0070", "db_id": "bike_1", "query": "select date , zip_code from weather where cloud_cover < (select min(cloud_cover) from weather where zip_code = 94107)", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", "<", "(", "SELECT", "min", "(", "cloud_cover", ")", "FROM", "weather", "WHERE", "zip_code", "=", "94107", ")"], "query_toks_no_value": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", "<", "value", "SELECT", "min", "(", "cloud_cover", ")", "FROM", "weather", "WHERE", "zip_code", "=", "value", ")"], "question": "On which day and in which zip code was the cloud cover lower than any day in zip code 94107?", "question_toks": ["On", "which", "day", "and", "in", "which", "zip", "code", "was", "the", "cloud", "cover", "lower", "than", "any", "day", "in", "zip", "code", "94107", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 4, [0, [0, 43, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0159", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0071", "db_id": "bike_1", "query": "select date , zip_code from weather where cloud_cover < (select min(cloud_cover) from weather where zip_code = 94107)", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", "<", "(", "SELECT", "min", "(", "cloud_cover", ")", "FROM", "weather", "WHERE", "zip_code", "=", "94107", ")"], "query_toks_no_value": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "cloud_cover", "<", "value", "SELECT", "min", "(", "cloud_cover", ")", "FROM", "weather", "WHERE", "zip_code", "=", "value", ")"], "question": "Which days had a cloud cover smaller than any day in zip code 94107, and in which zip codes were those measurements taken?", "question_toks": ["Which", "days", "had", "a", "cloud", "cover", "smaller", "than", "any", "day", "in", "zip", "code", "94107", ",", "and", "in", "which", "zip", "codes", "were", "those", "measurements", "taken", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 4, [0, [0, 43, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0160", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0072", "db_id": "bike_1", "query": "select date , cloud_cover, precipitation_inches from weather order by wind_dir_degrees desc limit 3", "query_toks": ["SELECT", "date", ",", "cloud_cover", ",", "precipitation_inches", "FROM", "weather", "ORDER", "BY", "wind_dir_degrees", "DESC", "LIMIT", "3"], "query_toks_no_value": ["SELECT", "date", ",", "cloud_cover", ",", "precipitation_inches", "FROM", "weather", "ORDER", "BY", "wind_dir_degrees", "DESC", "LIMIT", "3"], "question": "What are the date, cloud cover and precipitation inches for the top 3 days with the largest wind dir degrees?", "question_toks": ["What", "are", "the", "date", ",", "cloud", "cover", "and", "precipitation", "inches", "for", "the", "top", "3", "days", "with", "the", "largest", "wind", "dir", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 43, false], null]], [0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 45, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0175", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0073", "db_id": "bike_1", "query": "select date , cloud_cover, precipitation_inches from weather order by wind_dir_degrees desc limit 3", "query_toks": ["SELECT", "date", ",", "cloud_cover", ",", "precipitation_inches", "FROM", "weather", "ORDER", "BY", "wind_dir_degrees", "DESC", "LIMIT", "3"], "query_toks_no_value": ["SELECT", "date", ",", "cloud_cover", ",", "precipitation_inches", "FROM", "weather", "ORDER", "BY", "wind_dir_degrees", "DESC", "LIMIT", "3"], "question": "What is the date, cloud cover and precipitation inches for the days with the 3 largest argest wind dir degrees?", "question_toks": ["What", "is", "the", "date", ",", "cloud", "cover", "and", "precipitation", "inches", "for", "the", "days", "with", "the", "3", "largest", "argest", "wind", "dir", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 43, false], null]], [0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 45, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0176", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0074", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(cloud_cover) < 6", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "cloud_cover", ")", "<", "6"], "query_toks_no_value": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "cloud_cover", ")", "<", "6"], "question": "Find the zip code in which the average cloud cover is lower than 10.", "question_toks": ["Find", "the", "zip", "code", "in", "which", "the", "average", "cloud", "cover", "is", "lower", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 43, false], null], 6.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0181", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0075", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(cloud_cover) < 6", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "cloud_cover", ")", "<", "6"], "query_toks_no_value": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "cloud_cover", ")", "<", "6"], "question": "For each zip code, select all those that have an average cloud cover below 6.", "question_toks": ["For", "each", "zip", "code", ",", "select", "all", "those", "that", "have", "an", "average", "cloud", "cover", "below", "6", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 43, false], null], 6.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0182", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0076", "db_id": "bike_1", "query": "select date from weather where cloud_cover between 2 and 6", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "cloud_cover", "BETWEEN", "2", "AND", "6"], "query_toks_no_value": ["SELECT", "date", "FROM", "weather", "WHERE", "cloud_cover", "BETWEEN", "2", "AND", "6"], "question": "What are the dates in which the cloud cover was between 2 and 6?", "question_toks": ["What", "are", "the", "dates", "in", "which", "the", "cloud", "cover", "was", "between", "2", "and", "6", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 43, false], null], 2.0, 6.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0199", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0077", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(cloud_cover) < 8 intersect select zip_code from trip group by zip_code having count(*) >= 10", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "cloud_cover", ")", "<", "8", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(*)", ">=", "10"], "query_toks_no_value": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "cloud_cover", ")", "<", "8", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(*)", ">=", "10"], "question": "Give me the zip code where the average cloud cover is below 8 and at least 10 trips took place.", "question_toks": ["Give", "me", "the", "zip", "code", "where", "the", "average", "cloud", "cover", "is", "below", "8", "and", "at", "least", "10", "trips", "took", "place", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 43, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_in_column_0077", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0078", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(cloud_cover) < 8 intersect select zip_code from trip group by zip_code having count(*) >= 10", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "cloud_cover", ")", "<", "8", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(*)", ">=", "10"], "query_toks_no_value": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "cloud_cover", ")", "<", "8", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(*)", ">=", "10"], "question": "What are the zip codes that have an average cloud cover below 8 and had at least 10 trips come through there?", "question_toks": ["What", "are", "the", "zip", "codes", "that", "have", "an", "average", "cloud", "cover", "below", "8", "and", "had", "at", "least", "10", "trips", "come", "through", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 43, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_aggregation_in_column_0078", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0079", "db_id": "body_builder", "query": "select snatch from body_builder order by total asc", "query_toks": ["SELECT", "Snatch", "FROM", "body_builder", "ORDER", "BY", "Total", "ASC"], "query_toks_no_value": ["SELECT", "Snatch", "FROM", "body_builder", "ORDER", "BY", "Total", "ASC"], "question": "List the snatch of body builders in ascending order.", "question_toks": ["List", "the", "snatch", "of", "body", "builders", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1151", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0080", "db_id": "body_builder", "query": "select clean_jerk from body_builder order by snatch desc limit 1", "query_toks": ["SELECT", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Snatch", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Snatch", "DESC", "LIMIT", "1"], "question": "What are the clean and jerk score of the body builder with the highest snatch score?", "question_toks": ["What", "are", "the", "clean", "and", "jerk", "score", "of", "the", "body", "builder", "with", "the", "highest", "snatch", "score", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1154", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0081", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t1.snatch > 135", "query_toks": ["SELECT", "T2", ".", "Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "WHERE", "T1", ".", "Snatch", ">", "135"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "WHERE", "T1", ".", "Snatch", ">", "value"], "question": "What are the names of body builders whose snatch score is higher than 135?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "whose", "snatch", "score", "is", "higher", "than", "135", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 135.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1157", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0082", "db_id": "body_builder", "query": "select t2.birth_date , t2.birth_place from body_builder as t1 join people as t2 on t1.people_id = t2.people_id order by t1.snatch desc limit 1", "query_toks": ["SELECT", "T2", ".", "Birth_Date", ",", "T2", ".", "Birth_Place", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T1", ".", "Snatch", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "Birth_Date", ",", "T2", ".", "Birth_Place", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T1", ".", "Snatch", "DESC", "LIMIT", "1"], "question": "What are the birth date and birth place of the body builder with the highest snatch points?", "question_toks": ["What", "are", "the", "birth", "date", "and", "birth", "place", "of", "the", "body", "builder", "with", "the", "highest", "snatch", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1159", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0083", "db_id": "body_builder", "query": "select t2.height from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t1.snatch < 140", "query_toks": ["SELECT", "T2", ".", "Height", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "WHERE", "T1", ".", "Snatch", "<", "140"], "query_toks_no_value": ["SELECT", "T2", ".", "Height", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "WHERE", "T1", ".", "Snatch", "<", "value"], "question": "What are the heights of body builders with snatch score smaller than 140?", "question_toks": ["What", "are", "the", "heights", "of", "body", "builders", "with", "snatch", "score", "smaller", "than", "140", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 140.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1160", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0084", "db_id": "body_builder", "query": "select avg(t1.snatch) from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t2.height > 200", "query_toks": ["SELECT", "avg", "(", "T1", ".", "Snatch", ")", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "WHERE", "T2", ".", "Height", ">", "200"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "Snatch", ")", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "WHERE", "T2", ".", "Height", ">", "value"], "question": "What is the average snatch score of body builders with height bigger than 200?", "question_toks": ["What", "is", "the", "average", "snatch", "score", "of", "body", "builders", "with", "height", "bigger", "than", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1161", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0085", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id order by t1.snatch desc", "query_toks": ["SELECT", "T2", ".", "Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T1", ".", "Snatch", "DESC"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "People_ID", "=", "T2", ".", "People_ID", "ORDER", "BY", "T1", ".", "Snatch", "DESC"], "question": "What are the names of body builders in descending order of snatch scores?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "in", "descending", "order", "of", "snatch", "scores", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1162", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0086", "db_id": "body_builder", "query": "select t1.snatch from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t2.birth_date like \"%january%\"", "query_toks": ["SELECT", "T1", ".", "snatch", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "people_id", "=", "T2", ".", "people_id", "WHERE", "T2", ".", "Birth_Date", "LIKE", "\"%", "january", "%\""], "query_toks_no_value": ["SELECT", "T1", ".", "snatch", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1", ".", "people_id", "=", "T2", ".", "people_id", "WHERE", "T2", ".", "Birth_Date", "LIKE", "\"%", "january", "%\""], "question": "What are the snatch scores of the body builders whose birthday contains the string \"January\" ?", "question_toks": ["What", "are", "the", "snatch", "scores", "of", "the", "body", "builders", "whose", "birthday", "contains", "the", "string", "\"", "January", "\"", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%january%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1172", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0087", "db_id": "chinook_1", "query": "select lastname from customer except select t1.lastname from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t2.invoiceid > 20", "query_toks": ["SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1", ".", "LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1", ".", "CustomerId", "=", "T2", ".", "CustomerId", "WHERE", "T2", ".", "invoiceId", ">", "20"], "query_toks_no_value": ["SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1", ".", "LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1", ".", "CustomerId", "=", "T2", ".", "CustomerId", "WHERE", "T2", ".", "invoiceId", ">", "value"], "question": "Find all the customer last names that do not have invoice id larger than 20.", "question_toks": ["Find", "all", "the", "customer", "last", "names", "that", "do", "not", "have", "invoice", "id", "larger", "than", "20", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 36, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0857", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0088", "db_id": "chinook_1", "query": "select lastname from customer except select t1.lastname from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t2.invoiceid > 20", "query_toks": ["SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1", ".", "LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1", ".", "CustomerId", "=", "T2", ".", "CustomerId", "WHERE", "T2", ".", "invoiceId", ">", "20"], "query_toks_no_value": ["SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1", ".", "LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1", ".", "CustomerId", "=", "T2", ".", "CustomerId", "WHERE", "T2", ".", "invoiceId", ">", "value"], "question": "What are the last names of customers without invoice id exceeding 20?", "question_toks": ["What", "are", "the", "last", "names", "of", "customers", "without", "invoice", "id", "exceeding", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 36, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0858", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0089", "db_id": "farm", "query": "select cows from farm order by cows asc", "query_toks": ["SELECT", "Cows", "FROM", "farm", "ORDER", "BY", "Cows", "ASC"], "query_toks_no_value": ["SELECT", "Cows", "FROM", "farm", "ORDER", "BY", "Cows", "ASC"], "question": "List the number of cows on farms in ascending order.", "question_toks": ["List", "the", "number", "of", "cows", "on", "farms", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0018", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0090", "db_id": "farm", "query": "select cows from farm order by cows asc", "query_toks": ["SELECT", "Cows", "FROM", "farm", "ORDER", "BY", "Cows", "ASC"], "query_toks_no_value": ["SELECT", "Cows", "FROM", "farm", "ORDER", "BY", "Cows", "ASC"], "question": "What is the cows record for each farm, sorted ascending?", "question_toks": ["What", "is", "the", "cows", "record", "for", "each", "farm", ",", "sorted", "ascending", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0019", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0091", "db_id": "game_injury", "query": "select name , id , home_games from stadium except select t2.name , t2.id , t2.home_games from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id", "query_toks": ["SELECT", "name", ",", "id", ",", "home_games", "FROM", "stadium", "EXCEPT", "SELECT", "T2", ".", "name", ",", "T2", ".", "id", ",", "T2", ".", "home_games", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id"], "query_toks_no_value": ["SELECT", "name", ",", "id", ",", "home_games", "FROM", "stadium", "EXCEPT", "SELECT", "T2", ".", "name", ",", "T2", ".", "id", ",", "T2", ".", "home_games", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id"], "question": "Show the name, id, haome games for stadiums where no accidents happened.", "question_toks": ["Show", "the", "name", ",", "id", ",", "haome", "games", "for", "stadiums", "where", "no", "accidents", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1289", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0092", "db_id": "museum_visit", "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.num_of_ticket) desc limit 1", "query_toks": ["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", ".", "Num_of_Ticket", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["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", ".", "Num_of_Ticket", ")", "DESC", "LIMIT", "1"], "question": "What are the id, name and membership level of visitors who have bought the largest num of ticket in total in all museum tickets?", "question_toks": ["What", "are", "the", "id", ",", "name", "and", "membership", "level", "of", "visitors", "who", "have", "bought", "the", "largest", "num", "of", "ticket", "in", "total", "in", "all", "museum", "tickets", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0420", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "aggregation_in_column_0093", "db_id": "museum_visit", "query": "select sum(t2.num_of_ticket) from visitor as t1 join visit as t2 on t1.id = t2.visitor_id where t1.level_of_membership = 1", "query_toks": ["SELECT", "sum", "(", "t2", ".", "Num_of_Ticket", ")", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "visitor_id", "WHERE", "t1", ".", "Level_of_membership", "=", "1"], "query_toks_no_value": ["SELECT", "sum", "(", "t2", ".", "Num_of_Ticket", ")", "FROM", "visitor", "AS", "t1", "JOIN", "visit", "AS", "t2", "ON", "t1", ".", "id", "=", "t2", ".", "visitor_id", "WHERE", "t1", ".", "Level_of_membership", "=", "value"], "question": "What is the total num of ticket of the visitors whose membership level is 1?", "question_toks": ["What", "is", "the", "total", "num", "of", "ticket", "of", "the", "visitors", "whose", "membership", "level", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0425", "is_simplification": true, "simplifications_tags": ["AGGREGATION_IN_COLUMN"]}, {"id": "changed_logical_connectives_0000", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\" or continent = \"europe\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''", "OR", "Continent", "=", "``", "europe", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "OR", "Continent", "=", "value"], "question": "What is the total surface area of the continents called Asia or Europe?", "question_toks": ["What", "is", "the", "total", "surface", "area", "of", "the", "continents", "called", "Asia", "or", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0726", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0001", "db_id": "chinook_1", "query": "select avg(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"latin\" or t1.name = \"pop\"", "query_toks": ["SELECT", "AVG", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "``", "latin", "''", "OR", "T1", ".", "Name", "=", "``", "pop", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1", ".", "GenreId", "=", "T2", ".", "GenreId", "WHERE", "T1", ".", "Name", "=", "value", "OR", "T1", ".", "Name", "=", "value"], "question": "Find the average millisecond length of Latin or Pop tracks.", "question_toks": ["Find", "the", "average", "millisecond", "length", "of", "Latin", "or", "Pop", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[5, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"latin\"", null], "or", [false, 2, [0, [0, 35, false], null], "\"pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0868", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0002", "db_id": "college_2", "query": "select sum(budget) from department where dept_name = \"marketing\" or dept_name = \"finance\"", "query_toks": ["SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "``", "marketing", "''", "OR", "dept_name", "=", "``", "finance", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "value", "OR", "dept_name", "=", "value"], "question": "What is the sum of budgets of the Marketing or Finance departments?", "question_toks": ["What", "is", "the", "sum", "of", "budgets", "of", "the", "Marketing", "or", "Finance", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"marketing\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"finance\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1353", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0003", "db_id": "college_2", "query": "select distinct t1.name from student as t1 join takes as t2 on t1.id = t2.id where year = 2009 or year = 2010", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "id", "WHERE", "YEAR", "=", "2009", "OR", "YEAR", "=", "2010"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "id", "WHERE", "YEAR", "=", "value", "OR", "YEAR", "=", "value"], "question": "Find the name of students who took any class in the years of 2009 or 2010.", "question_toks": ["Find", "the", "name", "of", "students", "who", "took", "any", "class", "in", "the", "years", "of", "2009", "or", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 31, false], null]]}, "select": [true, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], 2009.0, null], "or", [false, 2, [0, [0, 35, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1368", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0004", "db_id": "world_1", "query": "select sum(population) from country where name = \"brunei\" or name = \"bhutan\"", "query_toks": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "``", "brunei", "''", "OR", "name", "=", "``", "bhutan", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "value", "OR", "name", "=", "value"], "question": "What is the total population of countries whose names are Brunei or Bhutan?", "question_toks": ["What", "is", "the", "total", "population", "of", "countries", "whose", "names", "are", "Brunei", "or", "Bhutan", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"brunei\"", null], "or", [false, 2, [0, [0, 9, false], null], "\"bhutan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_changed_logical_connectives_0004", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0005", "db_id": "world_1", "query": "select sum(population) from city where name = \"amsterdam\" or name = \"roterdam\"", "query_toks": ["SELECT", "sum", "(", "population", ")", "FROM", "city", "WHERE", "name", "=", "``", "amsterdam", "''", "or", "name", "=", "``", "roterdam", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "population", ")", "FROM", "city", "WHERE", "name", "=", "value", "or", "name", "=", "value"], "question": "How many people in total live in cities with names Amsterdam or Rotterdam?", "question_toks": ["How", "many", "people", "in", "total", "live", "in", "cities", "with", "names", "Amsterdam", "or", "Rotterdam", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"amsterdam\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"roterdam\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_changed_logical_connectives_0005", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "changed_logical_connectives_0006", "db_id": "pets_1", "query": "select sum(weight) from pets where petid = 2001 or petid = 2003 ", "query_toks": ["SELECT", "sum", "(", "weight", ")", "FROM", "pets", "WHERE", "petid", "=", "2001", "or", "petid", "=", "2003"], "query_toks_no_value": ["SELECT", "sum", "(", "weight", ")", "FROM", "pets", "WHERE", "petid", "=", "value", "or", "petid", "=", "value"], "question": "Find the total weight for pets with id 2001or 2003.", "question_toks": ["Find", "the", "total", "weight", "for", "pets", "with", "id", "2001or", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 2001.0, null], "or", [false, 2, [0, [0, 11, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_changed_logical_connectives_0006", "is_simplification": true, "simplifications_tags": ["CHANGED_LOGICAL_CONNECTIVES"]}, {"id": "dejoin_from_4_to_0_0000", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "what kind of papers does Luke Zettlemoyer publish", "question_toks": ["what", "kind", "of", "papers", "does", "Luke", "Zettlemoyer", "publish"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0675", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0001", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "Keyphrases used by Luke Zettlemoyer", "question_toks": ["Keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0676", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0002", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "What keywords are in papers by Luke Zettlemoyer ?", "question_toks": ["What", "keywords", "are", "in", "papers", "by", "Luke", "Zettlemoyer", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0677", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0003", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keywords used by Luke Zettlemoyer", "question_toks": ["keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0678", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0004", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "what keywords are used by Luke Zettlemoyer", "question_toks": ["what", "keywords", "are", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0679", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0005", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0680", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0006", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keyphrases by Luke Zettlemoyer", "question_toks": ["keyphrases", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0681", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0007", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "give me the keywords used by Luke Zettlemoyer", "question_toks": ["give", "me", "the", "keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0682", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0008", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "What topic does Luke Zettlemoyer write about ?", "question_toks": ["What", "topic", "does", "Luke", "Zettlemoyer", "write", "about", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0683", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0009", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "what topics does Luke Zettlemoyer publish in", "question_toks": ["what", "topics", "does", "Luke", "Zettlemoyer", "publish", "in"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0684", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0010", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keywords in the papers written by Luke Zettlemoyer", "question_toks": ["keywords", "in", "the", "papers", "written", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0685", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0011", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer .", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0686", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0012", "db_id": "scholar_total_3", "query": "select distinct t1.keyphraseid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'luke zettlemoyer' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "topics used by Luke Zettlemoyer", "question_toks": ["topics", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0687", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0013", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'sanjeev arora' order by t1.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t1.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "order", "by", "t1.year", "desc"], "question": "recent research interests of sanjeev arora", "question_toks": ["recent", "research", "interests", "of", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0744", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0014", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'sanjeev arora' order by t1.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t1.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "order", "by", "t1.year", "desc"], "question": "recent papers by sanjeev arora", "question_toks": ["recent", "papers", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0745", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0015", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'sanjeev arora' order by t1.year desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "sanjeev", "arora", "''", "order", "by", "t1.year", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "order", "by", "t1.year", "desc"], "question": "recent papers written by sanjeev arora", "question_toks": ["recent", "papers", "written", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0746", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0016", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless convolution paper", "question_toks": ["brian", "curless", "convolution", "paper"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0756", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0017", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution by brian curless", "question_toks": ["convolution", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0757", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0018", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers by brian curless about convolution", "question_toks": ["papers", "by", "brian", "curless", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0758", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0019", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless 's paper about convolution", "question_toks": ["brian", "curless", "'s", "paper", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0759", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0020", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What are the papers of brian curless in convolution ?", "question_toks": ["What", "are", "the", "papers", "of", "brian", "curless", "in", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0760", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0021", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers brian curless wrote about convolution", "question_toks": ["papers", "brian", "curless", "wrote", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0761", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0022", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "brian curless 's papers on convolution", "question_toks": ["brian", "curless", "'s", "papers", "on", "convolution"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0762", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0023", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What is the paper about convolution from brian curless ?", "question_toks": ["What", "is", "the", "paper", "about", "convolution", "from", "brian", "curless", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0763", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0024", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "papers by brian curless in convolution topic", "question_toks": ["papers", "by", "brian", "curless", "in", "convolution", "topic"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0764", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0025", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "I want the papers on keyphrase0 by brian curless", "question_toks": ["I", "want", "the", "papers", "on", "keyphrase0", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0765", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0026", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution papers by brian curless", "question_toks": ["convolution", "papers", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0766", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0027", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What papers has brian curless written on convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "on", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0767", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0028", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What papers has brian curless written about convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "about", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0768", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0029", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "convolution paper by brian curless", "question_toks": ["convolution", "paper", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0769", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0030", "db_id": "scholar_total_3", "query": "select distinct t1.authorid , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian curless' and t1.keyphrasename = 'convolution' ;", "query_toks": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "curless", "''", "and", "t1.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "Does brian curless do convolution ?", "question_toks": ["Does", "brian", "curless", "do", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0770", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0031", "db_id": "scholar_total_7", "query": "select distinct t1.datasetid , t1.year from paperdataset_dataset_paperkeyphrase_paper_keyphrase as t1 where t1.keyphrasename = 'deep learning' order by t1.year asc ;", "query_toks": ["select", "distinct", "t1.datasetid", ",", "t1.year", "from", "paperdataset_dataset_paperkeyphrase_paper_keyphrase", "as", "t1", "where", "t1.keyphrasename", "=", "``", "deep", "learning", "''", "order", "by", "t1.year", "asc", ";"], "query_toks_no_value": ["select", "distinct", "t1.datasetid", ",", "t1.year", "from", "paperdataset_dataset_paperkeyphrase_paper_keyphrase", "as", "t1", "where", "t1.keyphrasename", "=", "value", "order", "by", "t1.year", "asc"], "question": "what was the first deep learning paper ?", "question_toks": ["what", "was", "the", "first", "deep", "learning", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0851", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0032", "db_id": "scholar_total_7", "query": "select distinct t1.datasetid , t1.year from paperdataset_dataset_paperkeyphrase_paper_keyphrase as t1 where t1.keyphrasename = 'deep learning' order by t1.year asc ;", "query_toks": ["select", "distinct", "t1.datasetid", ",", "t1.year", "from", "paperdataset_dataset_paperkeyphrase_paper_keyphrase", "as", "t1", "where", "t1.keyphrasename", "=", "``", "deep", "learning", "''", "order", "by", "t1.year", "asc", ";"], "query_toks_no_value": ["select", "distinct", "t1.datasetid", ",", "t1.year", "from", "paperdataset_dataset_paperkeyphrase_paper_keyphrase", "as", "t1", "where", "t1.keyphrasename", "=", "value", "order", "by", "t1.year", "asc"], "question": "what year was the first deep learning paper published ?", "question_toks": ["what", "year", "was", "the", "first", "deep", "learning", "paper", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0852", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0033", "db_id": "scholar_total_6", "query": "select distinct count ( t1.citingpaperid ) from paperkeyphrase_keyphrase_writes_cite_author as t1 where t1.authorname = 'dan makumbi' and t1.keyphrasename = 'genetic identity' ;", "query_toks": ["select", "distinct", "count", "(", "t1.citingpaperid", ")", "from", "paperkeyphrase_keyphrase_writes_cite_author", "as", "t1", "where", "t1.authorname", "=", "``", "dan", "makumbi", "''", "and", "t1.keyphrasename", "=", "``", "genetic", "identity", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.citingpaperid", ")", "from", "paperkeyphrase_keyphrase_writes_cite_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many citations does Dan Makumbi 's Genetic Identity paper have ?", "question_toks": ["How", "many", "citations", "does", "Dan", "Makumbi", "'s", "Genetic", "Identity", "paper", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[3, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"dan makumbi\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"genetic identity\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0914", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0034", "db_id": "scholar_total_13", "query": "select distinct count ( t1.paperid ) from paperdataset_dataset_paper_paperkeyphrase_keyphrase as t1 where t1.datasetname = 'imagenet' and t1.keyphrasename = 'deep learning' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperdataset_dataset_paper_paperkeyphrase_keyphrase", "as", "t1", "where", "t1.datasetname", "=", "``", "imagenet", "''", "and", "t1.keyphrasename", "=", "``", "deep", "learning", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperdataset_dataset_paper_paperkeyphrase_keyphrase", "as", "t1", "where", "t1.datasetname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers related to deep learning cited the dataset ImageNet ?", "question_toks": ["How", "many", "papers", "related", "to", "deep", "learning", "cited", "the", "dataset", "ImageNet", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[3, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"imagenet\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0921", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0035", "db_id": "scholar_total_3", "query": "select distinct t1.authorname , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "what are some syntactic parsing papers that chris dyer did not write ?", "question_toks": ["what", "are", "some", "syntactic", "parsing", "papers", "that", "chris", "dyer", "did", "not", "write", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0988", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0036", "db_id": "scholar_total_3", "query": "select distinct t1.authorname , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "are there any syntactic parsing papers not written by chris dyer ?", "question_toks": ["are", "there", "any", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0989", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0037", "db_id": "scholar_total_3", "query": "select distinct t1.authorname , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "what are syntactic parsing papers not written by chris dyer", "question_toks": ["what", "are", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0990", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0038", "db_id": "scholar_total_3", "query": "select distinct t1.authorname , t1.paperid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname != 'chris dyer' and t1.keyphrasename = 'syntactic parsing' ;", "query_toks": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "and", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorname", ",", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "!", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "syntactic parsing papers not written by chris dyer", "question_toks": ["syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0991", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0039", "db_id": "scholar_total_3", "query": "select distinct t1.authorid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.keyphrasename = 'bacterial wilt' and t1.year = 2016 ;", "query_toks": ["select", "distinct", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.keyphrasename", "=", "``", "bacterial", "wilt", "''", "and", "t1.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value"], "question": "What authors wrote papers about Bacterial Wilt in 2016 ?", "question_toks": ["What", "authors", "wrote", "papers", "about", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"bacterial wilt\"", null], "and", [false, 2, [0, [0, 11, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1039", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0040", "db_id": "scholar_total_3", "query": "select distinct t1.authorid from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.keyphrasename = 'bacterial wilt' and t1.year = 2016 ;", "query_toks": ["select", "distinct", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.keyphrasename", "=", "``", "bacterial", "wilt", "''", "and", "t1.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value"], "question": "Who wrote on the topic of Bacterial Wilt in 2016 ?", "question_toks": ["Who", "wrote", "on", "the", "topic", "of", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"bacterial wilt\"", null], "and", [false, 2, [0, [0, 11, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1040", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0041", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , sum ( t1.numcitedby ) from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian derenzi' group by t1.keyphrasename order by sum ( t1.numcitedby ) desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t1.numcitedby", ")", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t1.numcitedby", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t1.numcitedby", ")", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t1.numcitedby", ")", "desc"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations ?", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [4, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1091", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0042", "db_id": "scholar_total_3", "query": "select distinct t1.keyphrasename , sum ( t1.numcitedby ) from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'brian derenzi' group by t1.keyphrasename order by sum ( t1.numcitedby ) desc ;", "query_toks": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t1.numcitedby", ")", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t1.numcitedby", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphrasename", ",", "sum", "(", "t1.numcitedby", ")", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "group", "by", "t1.keyphrasename", "order", "by", "sum", "(", "t1.numcitedby", ")", "desc"], "question": "main topics of work by Brian DeRenzi", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]], [4, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1092", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0043", "db_id": "scholar_total_3", "query": "select distinct t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When was Michael Stonebraker GIS Database published ?", "question_toks": ["When", "was", "Michael", "Stonebraker", "GIS", "Database", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1095", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0044", "db_id": "scholar_total_3", "query": "select distinct t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When did Michael Stonebraker publish his GIS Database paper ?", "question_toks": ["When", "did", "Michael", "Stonebraker", "publish", "his", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1096", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0045", "db_id": "scholar_total_3", "query": "select distinct t1.year from paperkeyphrase_keyphrase_paper_writes_author as t1 where t1.authorname = 'michael stonebraker' and t1.keyphrasename = 'gis database' ;", "query_toks": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "michael", "stonebraker", "''", "and", "t1.keyphrasename", "=", "``", "gis", "database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.year", "from", "paperkeyphrase_keyphrase_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "When does Michael Stonebraker publish the GIS Database paper ?", "question_toks": ["When", "does", "Michael", "Stonebraker", "publish", "the", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"michael stonebraker\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"gis database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1097", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0046", "db_id": "scholar_total_11", "query": "select distinct t1.keyphraseid from paper_paperkeyphrase_venue_writes_author as t1 where t1.authorname = 'dan klein' and t1.venuename = 'emnlp' ;", "query_toks": ["select", "distinct", "t1.keyphraseid", "from", "paper_paperkeyphrase_venue_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "dan", "klein", "''", "and", "t1.venuename", "=", "``", "emnlp", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", "from", "paper_paperkeyphrase_venue_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "keyphrases used by dan klein in his emnlp papers", "question_toks": ["keyphrases", "used", "by", "dan", "klein", "in", "his", "emnlp", "papers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"dan klein\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"emnlp\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1105", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0047", "db_id": "scholar_total_8", "query": "select distinct t1.paperid_paperkeyphrase_keyphrase_cite from paperkeyphrase_keyphrase_cite_paper_venue as t1 where t1.keyphrasename = 'euclidean distance' and t1.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t1.paperid_paperkeyphrase_keyphrase_cite", "from", "paperkeyphrase_keyphrase_cite_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "euclidean", "distance", "''", "and", "t1.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid_paperkeyphrase_keyphrase_cite", "from", "paperkeyphrase_keyphrase_cite_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.venuename", "=", "value"], "question": "Euclidean Distance papers citing NIPS papers", "question_toks": ["Euclidean", "Distance", "papers", "citing", "NIPS", "papers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"euclidean distance\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1110", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0048", "db_id": "scholar_total_9", "query": "select distinct t1.title from paperkeyphrase_keyphrase_writes_paper_author as t1 where t1.authorname like 'ranjit jhala' and t1.keyphrasename = 'liquid haskell' ;", "query_toks": ["select", "distinct", "t1.title", "from", "paperkeyphrase_keyphrase_writes_paper_author", "as", "t1", "where", "t1.authorname", "like", "``", "ranjit", "jhala", "''", "and", "t1.keyphrasename", "=", "``", "liquid", "haskell", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.title", "from", "paperkeyphrase_keyphrase_writes_paper_author", "as", "t1", "where", "t1.authorname", "like", "value", "and", "t1.keyphrasename", "=", "value"], "question": "What is the name of Ranjit Jhala 's Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "name", "of", "Ranjit", "Jhala", "'s", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"ranjit jhala\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"liquid haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1132", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0049", "db_id": "academic_total_0", "query": "select t1.keyword from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value"], "question": "return me the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1288", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0050", "db_id": "academic_total_0", "query": "select t1.title from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' and t1.keyword = 'user study' ;", "query_toks": ["select", "t1.title", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.keyword", "=", "``", "user", "study", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.keyword", "=", "value"], "question": "return me the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"user study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1292", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0051", "db_id": "academic_total_0", "query": "select t1.name from publication_keyword_keyword_publication_writes_author as t1 where t1.keyword = 'relational database' ;", "query_toks": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "``", "relational", "database", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "value"], "question": "return me the authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"relational database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1295", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0052", "db_id": "academic_total_2", "query": "select t1.title from organization_author_writes_publication_conference as t1 where t1.name = 'vldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "t1.title", "from", "organization_author_writes_publication_conference", "as", "t1", "where", "t1.name", "=", "``", "vldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "organization_author_writes_publication_conference", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me all the papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"vldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1302", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0053", "db_id": "academic_total_1", "query": "select t1.title from organization_author_writes_publication_journal as t1 where t1.name = 'pvldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "t1.title", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me all the papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1303", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0054", "db_id": "academic_total_1", "query": "select t1.title from organization_author_writes_publication_journal as t1 where t1.name = 'pvldb' and t1.name_organization = 'university of michigan' and t1.year > 2000 ;", "query_toks": ["select", "t1.title", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", "and", "t1.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t1.title", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value", "and", "t1.year", ">", "value"], "question": "return me all the papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null], "and", [false, 3, [0, [0, 25, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1304", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0055", "db_id": "academic_total_0", "query": "select count ( distinct t1.keyword ) from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' ;", "query_toks": ["select", "count", "(", "distinct", "t1.keyword", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.keyword", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value"], "question": "return me the number of the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 18, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1336", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0056", "db_id": "academic_total_0", "query": "select count ( distinct t1.title ) from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' and t1.keyword = 'user study' ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "and", "t1.keyword", "=", "``", "user", "study", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.keyword", "=", "value"], "question": "return me the number of the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 26, true], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"user study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1340", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0057", "db_id": "academic_total_0", "query": "select count ( distinct t1.name ) from publication_keyword_keyword_publication_writes_author as t1 where t1.keyword = 'relational database' ;", "query_toks": ["select", "count", "(", "distinct", "t1.name", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "``", "relational", "database", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.name", ")", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "value"], "question": "return me the number of authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"relational database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1343", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0058", "db_id": "academic_total_2", "query": "select count ( distinct t1.title ) from organization_author_writes_publication_conference as t1 where t1.name = 'vldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_conference", "as", "t1", "where", "t1.name", "=", "``", "vldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_conference", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me the number of papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"vldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1352", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0059", "db_id": "academic_total_1", "query": "select count ( distinct t1.title ) from organization_author_writes_publication_journal as t1 where t1.name = 'pvldb' and t1.name_organization = 'university of michigan' ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value"], "question": "return me the number of papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1353", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0060", "db_id": "academic_total_1", "query": "select count ( distinct t1.title ) from organization_author_writes_publication_journal as t1 where t1.name = 'pvldb' and t1.name_organization = 'university of michigan' and t1.year > 2000 ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "``", "pvldb", "''", "and", "t1.name_organization", "=", "``", "university", "of", "michigan", "''", "and", "t1.year", ">", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "organization_author_writes_publication_journal", "as", "t1", "where", "t1.name", "=", "value", "and", "t1.name_organization", "=", "value", "and", "t1.year", ">", "value"], "question": "return me the number of papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"pvldb\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"university of michigan\"", null], "and", [false, 3, [0, [0, 25, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1354", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0061", "db_id": "academic_total_0", "query": "select t1.name from publication_keyword_keyword_publication_writes_author as t1 where t1.keyword = 'relational database' group by t1.name order by count ( distinct t1.title ) desc limit 1 ;", "query_toks": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "``", "relational", "database", "''", "group", "by", "t1.name", "order", "by", "count", "(", "distinct", "t1.title", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "value", "group", "by", "t1.name", "order", "by", "count", "(", "distinct", "t1.title", ")", "desc", "limit", "value"], "question": "return me the author who has the most number of papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "author", "who", "has", "the", "most", "number", "of", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"relational database\"", null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 26, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1389", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0062", "db_id": "academic_total_0", "query": "select t1.keyword from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' group by t1.keyword order by count ( distinct t1.title ) desc limit 1 ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "group", "by", "t1.keyword", "order", "by", "count", "(", "distinct", "t1.title", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value", "group", "by", "t1.keyword", "order", "by", "count", "(", "distinct", "t1.title", ")", "desc", "limit", "value"], "question": "return me the keyword, which have been contained by the most number of papers by \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keyword", ",", "which", "have", "been", "contained", "by", "the", "most", "number", "of", "papers", "by", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 26, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1396", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0063", "db_id": "academic_total_0", "query": "select t1.name from publication_keyword_keyword_publication_writes_author as t1 where t1.keyword = 'relational database' group by t1.name having count ( distinct t1.title ) > 10 ;", "query_toks": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "``", "relational", "database", "''", "group", "by", "t1.name", "having", "count", "(", "distinct", "t1.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t1.name", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.keyword", "=", "value", "group", "by", "t1.name", "having", "count", "(", "distinct", "t1.title", ")", ">", "value"], "question": "return me the authors who have more than 10 papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "more", "than", "10", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"relational database\"", null]], "groupBy": [[0, 2, false]], "having": [[false, 3, [0, [3, 26, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1415", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0064", "db_id": "academic_total_0", "query": "select t1.keyword from publication_keyword_keyword_publication_writes_author as t1 where t1.name = 'h. v. jagadish' group by t1.keyword having count ( distinct t1.title ) > 10 ;", "query_toks": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "``", "h.", "v.", "jagadish", "''", "group", "by", "t1.keyword", "having", "count", "(", "distinct", "t1.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t1.keyword", "from", "publication_keyword_keyword_publication_writes_author", "as", "t1", "where", "t1.name", "=", "value", "group", "by", "t1.keyword", "having", "count", "(", "distinct", "t1.title", ")", ">", "value"], "question": "return me the keywords, which have been contained by more than 10 papers of \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", ",", "which", "have", "been", "contained", "by", "more", "than", "10", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"h. v. jagadish\"", null]], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 26, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1420", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0065", "db_id": "imdb_total_1", "query": "select t1.title from movie_made_by_producer_written_by_writer as t1 where t1.name_movie_made_by_producer_written_by = 'woody allen' and t1.name_writer = 'woody allen' ;", "query_toks": ["select", "t1.title", "from", "movie_made_by_producer_written_by_writer", "as", "t1", "where", "t1.name_movie_made_by_producer_written_by", "=", "``", "woody", "allen", "''", "and", "t1.name_writer", "=", "``", "woody", "allen", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "movie_made_by_producer_written_by_writer", "as", "t1", "where", "t1.name_movie_made_by_producer_written_by", "=", "value", "and", "t1.name_writer", "=", "value"], "question": "Find all movies written and produced by \" Woody Allen \"", "question_toks": ["Find", "all", "movies", "written", "and", "produced", "by", "``", "Woody", "Allen", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"woody allen\"", null], "and", [false, 2, [0, [0, 54, false], null], "\"woody allen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1457", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0066", "db_id": "imdb_total_0", "query": "select t1.title from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'taraneh alidoosti' and t1.name_director = 'asghar farhadi' ;", "query_toks": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "taraneh", "alidoosti", "''", "and", "t1.name_director", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "Find all movies directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \"", "question_toks": ["Find", "all", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1472", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0067", "db_id": "imdb_total_0", "query": "select t1.title from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'taraneh alidoosti' and t1.name_director = 'asghar farhadi' ;", "query_toks": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "taraneh", "alidoosti", "''", "and", "t1.name_director", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "What are all the movies directed by \" Asghar Farhadi \" featuring \" Taraneh Alidoosti \" ?", "question_toks": ["What", "are", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1473", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0068", "db_id": "imdb_total_0", "query": "select t1.title from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'taraneh alidoosti' and t1.name_director = 'asghar farhadi' ;", "query_toks": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "taraneh", "alidoosti", "''", "and", "t1.name_director", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "How many movies are there that are directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \" ?", "question_toks": ["How", "many", "movies", "are", "there", "that", "are", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1474", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0069", "db_id": "imdb_total_0", "query": "select t1.title from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'taraneh alidoosti' and t1.name_director = 'asghar farhadi' ;", "query_toks": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "taraneh", "alidoosti", "''", "and", "t1.name_director", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.title", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "List all the movies directed by \" Asghar Farhadi \" in which \" Taraneh Alidoosti \" played", "question_toks": ["List", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "in", "which", "``", "Taraneh", "Alidoosti", "``", "played"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"taraneh alidoosti\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1475", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0070", "db_id": "imdb_total_0", "query": "select t1.name_director from cast_actor_movie_directed_by_director as t1 where t1.name_cast_actor_movie_directed_by = 'kate winslet' ;", "query_toks": ["select", "t1.name_director", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "``", "kate", "winslet", "''", ";"], "query_toks_no_value": ["select", "t1.name_director", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_cast_actor_movie_directed_by", "=", "value"], "question": "Find the directors of all movies featuring \" Kate Winslet \"", "question_toks": ["Find", "the", "directors", "of", "all", "movies", "featuring", "``", "Kate", "Winslet", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kate winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1482", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0071", "db_id": "imdb_total_4", "query": "select t1.name_producer from cast_actor_movie_made_by_producer as t1 where t1.name_cast_actor_movie_made_by = 'kate winslet' ;", "query_toks": ["select", "t1.name_producer", "from", "cast_actor_movie_made_by_producer", "as", "t1", "where", "t1.name_cast_actor_movie_made_by", "=", "``", "kate", "winslet", "''", ";"], "query_toks_no_value": ["select", "t1.name_producer", "from", "cast_actor_movie_made_by_producer", "as", "t1", "where", "t1.name_cast_actor_movie_made_by", "=", "value"], "question": "Find the producers of all movies in which \" Kate Winslet \" is an actor", "question_toks": ["Find", "the", "producers", "of", "all", "movies", "in", "which", "``", "Kate", "Winslet", "``", "is", "an", "actor"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"kate winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1483", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0072", "db_id": "imdb_total_5", "query": "select t1.genre from director_directed_by_movie_classification_genre as t1 where t1.name = 'asghar farhadi' ;", "query_toks": ["select", "t1.genre", "from", "director_directed_by_movie_classification_genre", "as", "t1", "where", "t1.name", "=", "``", "asghar", "farhadi", "''", ";"], "query_toks_no_value": ["select", "t1.genre", "from", "director_directed_by_movie_classification_genre", "as", "t1", "where", "t1.name", "=", "value"], "question": "what are the genres of movies directed by \" Asghar Farhadi \"", "question_toks": ["what", "are", "the", "genres", "of", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"asghar farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1495", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0073", "db_id": "imdb_total_2", "query": "select t1.name from director_directed_by_movie_tags_keyword as t1 where t1.keyword = 'nuclear weapons' ;", "query_toks": ["select", "t1.name", "from", "director_directed_by_movie_tags_keyword", "as", "t1", "where", "t1.keyword", "=", "``", "nuclear", "weapons", "''", ";"], "query_toks_no_value": ["select", "t1.name", "from", "director_directed_by_movie_tags_keyword", "as", "t1", "where", "t1.keyword", "=", "value"], "question": "List all the directors of movies about nuclear weapons", "question_toks": ["List", "all", "the", "directors", "of", "movies", "about", "nuclear", "weapons"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 34, false], null], "\"nuclear weapons\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1498", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0074", "db_id": "imdb_total_3", "query": "select count ( distinct t1.title ) from director_directed_by_movie_made_by_producer as t1 where t1.name_director_directed_by_movie_made_by = 'quentin tarantino' and t1.release_year < 2010 and t1.release_year > 2002 ;", "query_toks": ["select", "count", "(", "distinct", "t1.title", ")", "from", "director_directed_by_movie_made_by_producer", "as", "t1", "where", "t1.name_director_directed_by_movie_made_by", "=", "``", "quentin", "tarantino", "''", "and", "t1.release_year", "<", "2010", "and", "t1.release_year", ">", "2002", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.title", ")", "from", "director_directed_by_movie_made_by_producer", "as", "t1", "where", "t1.name_director_directed_by_movie_made_by", "=", "value", "and", "t1.release_year", "<", "value", "and", "t1.release_year", ">", "value"], "question": "How many movies did \" Quentin Tarantino \" direct before 2002 and after 2010 ?", "question_toks": ["How", "many", "movies", "did", "``", "Quentin", "Tarantino", "``", "direct", "before", "2002", "and", "after", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[3, [0, [0, 36, true], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"quentin tarantino\"", null], "and", [false, 4, [0, [0, 37, false], null], 2010.0, null], "and", [false, 3, [0, [0, 37, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1517", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0075", "db_id": "imdb_total_0", "query": "select count ( distinct t1.name_cast_actor_movie_directed_by ) from cast_actor_movie_directed_by_director as t1 where t1.nationality_cast_actor_movie_directed_by = 'iran' and t1.name_director = 'jim jarmusch' ;", "query_toks": ["select", "count", "(", "distinct", "t1.name_cast_actor_movie_directed_by", ")", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.nationality_cast_actor_movie_directed_by", "=", "``", "iran", "''", "and", "t1.name_director", "=", "``", "jim", "jarmusch", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1.name_cast_actor_movie_directed_by", ")", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.nationality_cast_actor_movie_directed_by", "=", "value", "and", "t1.name_director", "=", "value"], "question": "find the number of actors from Iran who played in \" Jim Jarmusch \" movies", "question_toks": ["find", "the", "number", "of", "actors", "from", "Iran", "who", "played", "in", "``", "Jim", "Jarmusch", "``", "movies"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"iran\"", null], "and", [false, 2, [0, [0, 20, false], null], "\"jim jarmusch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1519", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_4_to_0_0076", "db_id": "imdb_total_0", "query": "select t1.name_cast_actor_movie_directed_by from cast_actor_movie_directed_by_director as t1 where t1.name_director = 'quentin tarantino' order by t1.release_year desc limit 1 ;", "query_toks": ["select", "t1.name_cast_actor_movie_directed_by", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_director", "=", "``", "quentin", "tarantino", "''", "order", "by", "t1.release_year", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.name_cast_actor_movie_directed_by", "from", "cast_actor_movie_directed_by_director", "as", "t1", "where", "t1.name_director", "=", "value", "order", "by", "t1.release_year", "desc", "limit", "value"], "question": "Find the actors who played in the latest movie by \" Quentin Tarantino \"", "question_toks": ["Find", "the", "actors", "who", "played", "in", "the", "latest", "movie", "by", "``", "Quentin", "Tarantino", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"quentin tarantino\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 37, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_1529", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0000", "db_id": "local_govt_in_alabama_total_0", "query": "select t1.service_id , t1.service_type_code from participants_participants_in_events_events_services as t1 group by t1.service_id order by count ( * ) asc limit 1", "query_toks": ["select", "t1.service_id", ",", "t1.service_type_code", "from", "participants_participants_in_events_events_services", "as", "t1", "group", "by", "t1.service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.service_id", ",", "t1.service_type_code", "from", "participants_participants_in_events_events_services", "as", "t1", "group", "by", "t1.service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "Which service id and type has the least number of participants?", "question_toks": ["Which", "service", "id", "and", "type", "has", "the", "least", "number", "of", "participants", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_2147", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0001", "db_id": "college_1_total_0", "query": "select count ( * ) from class_enroll_course_department as t1 where t1.dept_name = 'accounting'", "query_toks": ["select", "count", "(", "*", ")", "from", "class_enroll_course_department", "as", "t1", "where", "t1.dept_name", "=", "'accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class_enroll_course_department", "as", "t1", "where", "t1.dept_name", "=", "value"], "question": "How many students are enrolled in the class taught by some professor from the accounting department?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "the", "class", "taught", "by", "some", "professor", "from", "the", "accounting", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3251", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0002", "db_id": "college_1_total_0", "query": "select count ( * ) from class_enroll_course_department as t1 where t1.dept_name = 'accounting'", "query_toks": ["select", "count", "(", "*", ")", "from", "class_enroll_course_department", "as", "t1", "where", "t1.dept_name", "=", "'accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class_enroll_course_department", "as", "t1", "where", "t1.dept_name", "=", "value"], "question": "How many students are enrolled in some classes that are taught by an accounting professor?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "some", "classes", "that", "are", "taught", "by", "an", "accounting", "professor", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3252", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0003", "db_id": "college_1_total_0", "query": "select t1.dept_name from class_enroll_course_department as t1 group by t1.dept_code order by count ( * ) desc limit 1", "query_toks": ["select", "t1.dept_name", "from", "class_enroll_course_department", "as", "t1", "group", "by", "t1.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.dept_name", "from", "class_enroll_course_department", "as", "t1", "group", "by", "t1.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department that has the largest number of students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "that", "has", "the", "largest", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 40, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3253", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0004", "db_id": "college_1_total_0", "query": "select t1.dept_name from class_enroll_course_department as t1 group by t1.dept_code order by count ( * ) desc limit 1", "query_toks": ["select", "t1.dept_name", "from", "class_enroll_course_department", "as", "t1", "group", "by", "t1.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.dept_name", "from", "class_enroll_course_department", "as", "t1", "group", "by", "t1.dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 40, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3254", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0005", "db_id": "hospital_1_total_0", "query": "select t1.name_medication from stay_patient_prescribes_medication as t1 where room = 111", "query_toks": ["select", "t1.name_medication", "from", "stay_patient_prescribes_medication", "as", "t1", "where", "room", "=", "111"], "query_toks_no_value": ["select", "t1.name_medication", "from", "stay_patient_prescribes_medication", "as", "t1", "where", "room", "=", "value"], "question": "Find the name of medication used on the patient who stays in room 111?", "question_toks": ["Find", "the", "name", "of", "medication", "used", "on", "the", "patient", "who", "stays", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3922", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0006", "db_id": "hospital_1_total_0", "query": "select t1.name_medication from stay_patient_prescribes_medication as t1 where room = 111", "query_toks": ["select", "t1.name_medication", "from", "stay_patient_prescribes_medication", "as", "t1", "where", "room", "=", "111"], "query_toks_no_value": ["select", "t1.name_medication", "from", "stay_patient_prescribes_medication", "as", "t1", "where", "room", "=", "value"], "question": "What is the name of the medication used for the patient staying in room 111?", "question_toks": ["What", "is", "the", "name", "of", "the", "medication", "used", "for", "the", "patient", "staying", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_3923", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0007", "db_id": "products_gen_characteristics_total_0", "query": "select product_name from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'red' and t1.characteristic_name = 'fast'", "query_toks": ["select", "product_name", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "red", "''", "and", "t1.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "and", "t1.characteristic_name", "=", "value"], "question": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".", "question_toks": ["Find", "the", "name", "of", "the", "products", "that", "have", "the", "color", "description", "``", "red", "''", "and", "have", "the", "characteristic", "name", "``", "fast", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5568", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0008", "db_id": "products_gen_characteristics_total_0", "query": "select product_name from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'red' and t1.characteristic_name = 'fast'", "query_toks": ["select", "product_name", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "red", "''", "and", "t1.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "and", "t1.characteristic_name", "=", "value"], "question": "What are the names of the products that have a color description of 'red' and the 'fast' characteristic?", "question_toks": ["What", "are", "the", "names", "of", "the", "products", "that", "have", "a", "color", "description", "of", "'red", "'", "and", "the", "'fast", "'", "characteristic", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5569", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0009", "db_id": "products_gen_characteristics_total_0", "query": "select count ( * ) from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'red' and t1.characteristic_name = 'slow'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "red", "''", "and", "t1.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "and", "t1.characteristic_name", "=", "value"], "question": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\".", "question_toks": ["Find", "the", "number", "of", "the", "products", "that", "have", "their", "color", "described", "as", "``", "red", "''", "and", "have", "a", "characteristic", "named", "``", "slow", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5574", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0010", "db_id": "products_gen_characteristics_total_0", "query": "select count ( * ) from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'red' and t1.characteristic_name = 'slow'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "red", "''", "and", "t1.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "and", "t1.characteristic_name", "=", "value"], "question": "How many products have the color description 'red' and the characteristic name 'slow'?", "question_toks": ["How", "many", "products", "have", "the", "color", "description", "'red", "'", "and", "the", "characteristic", "name", "'slow", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5575", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0011", "db_id": "products_gen_characteristics_total_0", "query": "select count ( * ) from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'white' or t1.characteristic_name = 'hot'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "white", "''", "or", "t1.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "or", "t1.characteristic_name", "=", "value"], "question": "Count the products that have the color description \"white\" or have the characteristic name \"hot\".", "question_toks": ["Count", "the", "products", "that", "have", "the", "color", "description", "``", "white", "''", "or", "have", "the", "characteristic", "name", "``", "hot", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 9, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5576", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0012", "db_id": "products_gen_characteristics_total_0", "query": "select count ( * ) from products_product_characteristics_characteristics_ref_colors as t1 where t1.color_description = 'white' or t1.characteristic_name = 'hot'", "query_toks": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "``", "white", "''", "or", "t1.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products_product_characteristics_characteristics_ref_colors", "as", "t1", "where", "t1.color_description", "=", "value", "or", "t1.characteristic_name", "=", "value"], "question": "How many products have their color described as 'white' or have a characteristic with the name 'hot'?", "question_toks": ["How", "many", "products", "have", "their", "color", "described", "as", "'white", "'", "or", "have", "a", "characteristic", "with", "the", "name", "'hot", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 9, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_5577", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0013", "db_id": "tracking_orders_total_0", "query": "select t1.customer_name from customers_orders_order_items_products as t1 where t1.product_name = 'food' group by t1.customer_id having count ( * ) >= 1", "query_toks": ["select", "t1.customer_name", "from", "customers_orders_order_items_products", "as", "t1", "where", "t1.product_name", "=", "``", "food", "''", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_orders_order_items_products", "as", "t1", "where", "t1.product_name", "=", "value", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "List the names of the customers who have once bought product \"food\".", "question_toks": ["List", "the", "names", "of", "the", "customers", "who", "have", "once", "bought", "product", "``", "food", "''", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"food\"", null]], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_6941", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0014", "db_id": "tracking_orders_total_0", "query": "select t1.customer_name from customers_orders_order_items_products as t1 where t1.product_name = 'food' group by t1.customer_id having count ( * ) >= 1", "query_toks": ["select", "t1.customer_name", "from", "customers_orders_order_items_products", "as", "t1", "where", "t1.product_name", "=", "``", "food", "''", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_orders_order_items_products", "as", "t1", "where", "t1.product_name", "=", "value", "group", "by", "t1.customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the customers who bought product \"food\" at least once?", "question_toks": ["What", "are", "the", "names", "of", "the", "customers", "who", "bought", "product", "``", "food", "''", "at", "least", "once", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"food\"", null]], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_6942", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0015", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who has written the most syntactic parsing papers ?", "question_toks": ["who", "has", "written", "the", "most", "syntactic", "parsing", "papers", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0585", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0016", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who is the most published author in syntactic parsing ?", "question_toks": ["who", "is", "the", "most", "published", "author", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0586", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0017", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who has the most publications in syntactic parsing ?", "question_toks": ["who", "has", "the", "most", "publications", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0587", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0018", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who has written the most papers on syntactic parsing ?", "question_toks": ["who", "has", "written", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0588", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0019", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "List prominent scholars in syntactic parsing ?", "question_toks": ["List", "prominent", "scholars", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0589", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0020", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who wrote the most papers on syntactic parsing ?", "question_toks": ["who", "wrote", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0590", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0021", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "Who are the authors with the most published papers in syntactic parsing ?", "question_toks": ["Who", "are", "the", "authors", "with", "the", "most", "published", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0591", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0022", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "top syntactic parsing author", "question_toks": ["top", "syntactic", "parsing", "author"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0592", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0023", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "top author in syntactic parsing", "question_toks": ["top", "author", "in", "syntactic", "parsing"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0593", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0024", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who published the most in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0594", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0025", "db_id": "scholar_total_5", "query": "select distinct count ( t1.paperid ) , t1.authorid from paperkeyphrase_keyphrase_paper_writes as t1 where t1.keyphrasename = 'syntactic parsing' group by t1.authorid order by count ( t1.paperid ) desc ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "``", "syntactic", "parsing", "''", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", ",", "t1.authorid", "from", "paperkeyphrase_keyphrase_paper_writes", "as", "t1", "where", "t1.keyphrasename", "=", "value", "group", "by", "t1.authorid", "order", "by", "count", "(", "t1.paperid", ")", "desc"], "question": "who published the most papers in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 22, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0595", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0026", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many citation noah a smith has ?", "question_toks": ["How", "many", "citation", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0596", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0027", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "noah a smith citation count", "question_toks": ["noah", "a", "smith", "citation", "count"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0597", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0028", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "how many citations does noah a smith have ?", "question_toks": ["how", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0598", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0029", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many citations does noah a smith have ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0599", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0030", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "number of citations of noah a smith", "question_toks": ["number", "of", "citations", "of", "noah", "a", "smith"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0600", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0031", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many citations does noah a smith have", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0601", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0032", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many times was noah a smith cited ?", "question_toks": ["How", "many", "times", "was", "noah", "a", "smith", "cited", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0602", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0033", "db_id": "scholar_total_2", "query": "select distinct count ( t1.paperid ) from paper_cite_writes_author as t1 where t1.authorname = 'noah a smith' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paper_cite_writes_author", "as", "t1", "where", "t1.authorname", "=", "value"], "question": "How many citations does noah a smith has ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0603", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0034", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers did David M. Blei publish at AISTATS ?", "question_toks": ["How", "many", "papers", "did", "David", "M.", "Blei", "publish", "at", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0643", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0035", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS ?", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0644", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0036", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers has David M. Blei published in AISTATS ?", "question_toks": ["How", "many", "papers", "has", "David", "M.", "Blei", "published", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0645", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0037", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many papers does David M. Blei have at AISTATS", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "at", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0646", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0038", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many papers does David M. Blei have in AISTATS ?", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0647", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0039", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many David M. Blei papers are in AISTATS ?", "question_toks": ["how", "many", "David", "M.", "Blei", "papers", "are", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0648", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0040", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers David M. Blei has in AISTATS ?", "question_toks": ["How", "many", "papers", "David", "M.", "Blei", "has", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0649", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0041", "db_id": "scholar_total_0", "query": "select distinct count ( t1.paperid ) from venue_paper_writes_author as t1 where t1.authorname = 'david m. blei' and t1.venuename = 'aistats' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "david", "m.", "blei", "''", "and", "t1.venuename", "=", "``", "aistats", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "venue_paper_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"david m. blei\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"aistats\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0650", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0042", "db_id": "scholar_total_10", "query": "select distinct t1.paperid from paperdataset_dataset_paper_venue as t1 where t1.datasetname = 'rgb-d object paperdataset_dataset_paper_venue' and t1.title = 'class consistent multi-modal fusion with binary features' and t1.year = 2016 and t1.venuename = 'cvpr' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperdataset_dataset_paper_venue", "as", "t1", "where", "t1.datasetname", "=", "``", "rgb-d", "object", "paperdataset_dataset_paper_venue", "''", "and", "t1.title", "=", "``", "class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "and", "t1.year", "=", "2016", "and", "t1.venuename", "=", "``", "cvpr", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperdataset_dataset_paper_venue", "as", "t1", "where", "t1.datasetname", "=", "value", "and", "t1.title", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What papers were published at CVPR in 2016 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "in", "2016", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"rgb-d object paperdataset_dataset_paper_venue\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 10, false], null], 2016.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"cvpr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0657", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0043", "db_id": "scholar_total_10", "query": "select distinct t1.paperid from paperdataset_dataset_paper_venue as t1 where t1.datasetname = 'rgb-d object paperdataset_dataset_paper_venue' and t1.title = 'class consistent multi-modal fusion with binary features' and t1.year = 2016 and t1.venuename = 'cvpr' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperdataset_dataset_paper_venue", "as", "t1", "where", "t1.datasetname", "=", "``", "rgb-d", "object", "paperdataset_dataset_paper_venue", "''", "and", "t1.title", "=", "``", "class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "and", "t1.year", "=", "2016", "and", "t1.venuename", "=", "``", "cvpr", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperdataset_dataset_paper_venue", "as", "t1", "where", "t1.datasetname", "=", "value", "and", "t1.title", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What papers were published at CVPR '16 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "'16", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"rgb-d object paperdataset_dataset_paper_venue\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 10, false], null], 2016.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"cvpr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0658", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0044", "db_id": "scholar_total_1", "query": "select distinct count ( distinct t1.paperid ) from paperkeyphrase_keyphrase_writes_author as t1 where t1.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers by Ed Desmond contain the keyphrases Semantic Parsing ?", "question_toks": ["How", "many", "papers", "by", "Ed", "Desmond", "contain", "the", "keyphrases", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0696", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0045", "db_id": "scholar_total_1", "query": "select distinct count ( distinct t1.paperid ) from paperkeyphrase_keyphrase_writes_author as t1 where t1.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many papers does Ed Desmond have in Semantic Parsing area ?", "question_toks": ["How", "many", "papers", "does", "Ed", "Desmond", "have", "in", "Semantic", "Parsing", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0697", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0046", "db_id": "scholar_total_1", "query": "select distinct count ( distinct t1.paperid ) from paperkeyphrase_keyphrase_writes_author as t1 where t1.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many Semantic Parsing papers has Ed Desmond written ?", "question_toks": ["How", "many", "Semantic", "Parsing", "papers", "has", "Ed", "Desmond", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0698", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0047", "db_id": "scholar_total_1", "query": "select distinct count ( distinct t1.paperid ) from paperkeyphrase_keyphrase_writes_author as t1 where t1.authorname = 'ed desmond' and t1.keyphrasename = 'semantic parsing' ;", "query_toks": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "ed", "desmond", "''", "and", "t1.keyphrasename", "=", "``", "semantic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "and", "t1.keyphrasename", "=", "value"], "question": "How many paper has Ed Desmond written about Semantic Parsing ?", "question_toks": ["How", "many", "paper", "has", "Ed", "Desmond", "written", "about", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"ed desmond\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"semantic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0699", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0048", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "acl papers in 2012 on Parsing", "question_toks": ["acl", "papers", "in", "2012", "on", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0704", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0049", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What papers were published in acl in 2012 about Parsing ?", "question_toks": ["What", "papers", "were", "published", "in", "acl", "in", "2012", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0705", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0050", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "papers on Parsing appeared at acl last year", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "last", "year"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0706", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0051", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "Parsing papers from acl 2012", "question_toks": ["Parsing", "papers", "from", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0707", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0052", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "papers about Parsing in acl 2012", "question_toks": ["papers", "about", "Parsing", "in", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0708", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0053", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "acl papers in 2012 in Parsing", "question_toks": ["acl", "papers", "in", "2012", "in", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0709", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0054", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "acl papers in 2012 about Parsing", "question_toks": ["acl", "papers", "in", "2012", "about", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0710", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0055", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What papers were published at acl in 2012 were about Parsing ?", "question_toks": ["What", "papers", "were", "published", "at", "acl", "in", "2012", "were", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0711", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0056", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "papers on Parsing appeared at acl in 2012", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "in", "2012"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0712", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0057", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many Parsing papers did acl 2012 have ?", "question_toks": ["how", "many", "Parsing", "papers", "did", "acl", "2012", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0713", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0058", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "who published Parsing papers at acl 2012", "question_toks": ["who", "published", "Parsing", "papers", "at", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0714", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0059", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "which papers in acl 2012 had Parsing in them ?", "question_toks": ["which", "papers", "in", "acl", "2012", "had", "Parsing", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0715", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0060", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2012 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2012", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "what were some Parsing based papers in acl 2012 ?", "question_toks": ["what", "were", "some", "Parsing", "based", "papers", "in", "acl", "2012", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2012.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0716", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0061", "db_id": "scholar_total_12", "query": "select distinct t1.keyphraseid , t1.year from paper_paperkeyphrase_writes_author as t1 where t1.authorname = 'luke s zettlemoyer' order by t1.year , t1.keyphraseid ;", "query_toks": ["select", "distinct", "t1.keyphraseid", ",", "t1.year", "from", "paper_paperkeyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "``", "luke", "s", "zettlemoyer", "''", "order", "by", "t1.year", ",", "t1.keyphraseid", ";"], "query_toks_no_value": ["select", "distinct", "t1.keyphraseid", ",", "t1.year", "from", "paper_paperkeyphrase_writes_author", "as", "t1", "where", "t1.authorname", "=", "value", "order", "by", "t1.year", ",", "t1.keyphraseid"], "question": "keyphrases used by Luke S Zettlemoyer for each year", "question_toks": ["keyphrases", "used", "by", "Luke", "S", "Zettlemoyer", "for", "each", "year"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"luke s zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 12, false], null], [0, [0, 20, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0743", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0062", "db_id": "scholar_total_4", "query": "select distinct count ( t1.paperid ) from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2014 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2014", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many parsing papers in ACL 2014", "question_toks": ["how", "many", "parsing", "papers", "in", "ACL", "2014"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2014.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0753", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0063", "db_id": "scholar_total_4", "query": "select distinct count ( t1.paperid ) from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2014 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2014", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many parsing papers appeared in the proceeeding of ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "appeared", "in", "the", "proceeeding", "of", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2014.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0754", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0064", "db_id": "scholar_total_4", "query": "select distinct count ( t1.paperid ) from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'parsing' and t1.year = 2014 and t1.venuename = 'acl' ;", "query_toks": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "parsing", "''", "and", "t1.year", "=", "2014", "and", "t1.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t1.paperid", ")", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.year", "=", "value", "and", "t1.venuename", "=", "value"], "question": "how many parsing papers were published at ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "were", "published", "at", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[3, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 10, false], null], 2014.0, null], "and", [false, 2, [0, [0, 1, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0755", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0065", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'tail' and t1.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "tail", "''", "and", "t1.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.venuename", "=", "value"], "question": "What TAIL paper published in NIPS ?", "question_toks": ["What", "TAIL", "paper", "published", "in", "NIPS", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"tail\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0787", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_3_to_0_0066", "db_id": "scholar_total_4", "query": "select distinct t1.paperid from paperkeyphrase_keyphrase_paper_venue as t1 where t1.keyphrasename = 'tail' and t1.venuename = 'nips' ;", "query_toks": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "``", "tail", "''", "and", "t1.venuename", "=", "``", "nips", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1.paperid", "from", "paperkeyphrase_keyphrase_paper_venue", "as", "t1", "where", "t1.keyphrasename", "=", "value", "and", "t1.venuename", "=", "value"], "question": "List the papers on TAIL that were published in NIPS", "question_toks": ["List", "the", "papers", "on", "TAIL", "that", "were", "published", "in", "NIPS"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"tail\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"nips\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "other_0788", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0000", "db_id": "pets_1_total_0", "query": "select count ( * ) from student_has_pet_pets as t1 where t1.sex = 'f' and t1.pettype = 'dog'", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet_pets", "as", "t1", "where", "t1.sex", "=", "'f", "'", "and", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet_pets", "as", "t1", "where", "t1.sex", "=", "value", "and", "t1.pettype", "=", "value"], "question": "Find the number of dog pets that are raised by female students (with sex F).", "question_toks": ["Find", "the", "number", "of", "dog", "pets", "that", "are", "raised", "by", "female", "students", "(", "with", "sex", "F", ")", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0053", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0001", "db_id": "pets_1_total_0", "query": "select count ( * ) from student_has_pet_pets as t1 where t1.sex = 'f' and t1.pettype = 'dog'", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet_pets", "as", "t1", "where", "t1.sex", "=", "'f", "'", "and", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet_pets", "as", "t1", "where", "t1.sex", "=", "value", "and", "t1.pettype", "=", "value"], "question": "How many dog pets are raised by female students?", "question_toks": ["How", "many", "dog", "pets", "are", "raised", "by", "female", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0054", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0002", "db_id": "pets_1_total_0", "query": "select distinct t1.fname from student_has_pet_pets as t1 where t1.pettype = 'cat' or t1.pettype = 'dog'", "query_toks": ["select", "distinct", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", "or", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "distinct", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "or", "t1.pettype", "=", "value"], "question": "Find the first name of students who have cat or dog pet.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "cat", "or", "dog", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0057", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0003", "db_id": "pets_1_total_0", "query": "select distinct t1.fname from student_has_pet_pets as t1 where t1.pettype = 'cat' or t1.pettype = 'dog'", "query_toks": ["select", "distinct", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", "or", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "distinct", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "or", "t1.pettype", "=", "value"], "question": "What are the first names of every student who has a cat or dog as a pet?", "question_toks": ["What", "are", "the", "first", "names", "of", "every", "student", "who", "has", "a", "cat", "or", "dog", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0058", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0004", "db_id": "pets_1_total_0", "query": "select t1.fname from student_has_pet_pets as t1 where t1.pettype = 'cat' intersect select t1.fname from student_has_pet_pets as t1 where t1.pettype = 'dog'", "query_toks": ["select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "\"cat\"", "intersect", "select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "\"dog\""], "query_toks_no_value": ["select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "intersect", "select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value"], "question": "Find the first name of students who have both cat and dog pets .", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "both", "cat", "and", "dog", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0059", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0005", "db_id": "pets_1_total_0", "query": "select t1.fname from student_has_pet_pets as t1 where t1.pettype = 'cat' intersect select t1.fname from student_has_pet_pets as t1 where t1.pettype = 'dog'", "query_toks": ["select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", "intersect", "select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'dog", "'"], "query_toks_no_value": ["select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "intersect", "select", "t1.fname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value"], "question": "What are the students' first names who have both cats and dogs as pets?", "question_toks": ["What", "are", "the", "students", "'", "first", "names", "who", "have", "both", "cats", "and", "dogs", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0060", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0006", "db_id": "pets_1_total_0", "query": "select stuid from student_has_pet_pets except select t1.stuid from student_has_pet_pets as t1 where t1.pettype = 'cat'", "query_toks": ["select", "stuid", "from", "student_has_pet_pets", "except", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "stuid", "from", "student_has_pet_pets", "except", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value"], "question": "Find the id of students who do not have a cat pet.", "question_toks": ["Find", "the", "id", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0063", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0007", "db_id": "pets_1_total_0", "query": "select stuid from student_has_pet_pets except select t1.stuid from student_has_pet_pets as t1 where t1.pettype = 'cat'", "query_toks": ["select", "stuid", "from", "student_has_pet_pets", "except", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "stuid", "from", "student_has_pet_pets", "except", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value"], "question": "What are the ids of the students who do not own cats as pets?", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "who", "do", "not", "own", "cats", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0064", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0008", "db_id": "pets_1_total_0", "query": "select t1.fname , t1.age from student_has_pet_pets as t1 where t1.pettype = 'dog' and t1.stuid not in ( select t1.stuid from student_has_pet_pets as t1 where t1.pettype = 'cat' )", "query_toks": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'dog", "'", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", ")"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", ")"], "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "as", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0065", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0009", "db_id": "pets_1_total_0", "query": "select t1.fname , t1.age from student_has_pet_pets as t1 where t1.pettype = 'dog' and t1.stuid not in ( select t1.stuid from student_has_pet_pets as t1 where t1.pettype = 'cat' )", "query_toks": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'dog", "'", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "'cat", "'", ")"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.age", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", "and", "t1.stuid", "not", "in", "(", "select", "t1.stuid", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pettype", "=", "value", ")"], "question": "What is the first name of every student who has a dog but does not have a cat?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "but", "does", "not", "have", "a", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0066", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0010", "db_id": "pets_1_total_0", "query": "select t1.lname from student_has_pet_pets as t1 where t1.pet_age = 3 and t1.pettype = 'cat'", "query_toks": ["select", "t1.lname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pet_age", "=", "3", "and", "t1.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "t1.lname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pet_age", "=", "value", "and", "t1.pettype", "=", "value"], "question": "Find the last name of the student who has a cat that is age 3.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "age", "3", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], 3.0, null], "and", [false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0083", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0011", "db_id": "pets_1_total_0", "query": "select t1.lname from student_has_pet_pets as t1 where t1.pet_age = 3 and t1.pettype = 'cat'", "query_toks": ["select", "t1.lname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pet_age", "=", "3", "and", "t1.pettype", "=", "'cat", "'"], "query_toks_no_value": ["select", "t1.lname", "from", "student_has_pet_pets", "as", "t1", "where", "t1.pet_age", "=", "value", "and", "t1.pettype", "=", "value"], "question": "What is the last name of the student who has a cat that is 3 years old?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "3", "years", "old", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], 3.0, null], "and", [false, 2, [0, [0, 8, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0084", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0012", "db_id": "car_1_total_0", "query": "select count ( * ) from model_list_car_makers_countries as t1 where t1.countryname = 'usa' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "model_list_car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "'usa", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "model_list_car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "value"], "question": "How many car models are produced in the usa?", "question_toks": ["How", "many", "car", "models", "are", "produced", "in", "the", "usa", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0115", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0013", "db_id": "car_1_total_0", "query": "select count ( * ) from model_list_car_makers_countries as t1 where t1.countryname = 'usa' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "model_list_car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "'usa", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "model_list_car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "value"], "question": "What is the count of the car models produced in the United States?", "question_toks": ["What", "is", "the", "count", "of", "the", "car", "models", "produced", "in", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0116", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0014", "db_id": "car_1_total_2", "query": "select t1.countryname from countries_continents_car_makers as t1 where t1.continent_continents = 'europe' group by t1.countryname having count ( * ) >= 3 ;", "query_toks": ["select", "t1.countryname", "from", "countries_continents_car_makers", "as", "t1", "where", "t1.continent_continents", "=", "'europe", "'", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "3", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "countries_continents_car_makers", "as", "t1", "where", "t1.continent_continents", "=", "value", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which countries in europe have at least 3 car manufacturers?", "question_toks": ["Which", "countries", "in", "europe", "have", "at", "least", "3", "car", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"europe\"", null]], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0129", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0015", "db_id": "car_1_total_2", "query": "select t1.countryname from countries_continents_car_makers as t1 where t1.continent_continents = 'europe' group by t1.countryname having count ( * ) >= 3 ;", "query_toks": ["select", "t1.countryname", "from", "countries_continents_car_makers", "as", "t1", "where", "t1.continent_continents", "=", "'europe", "'", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "3", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "countries_continents_car_makers", "as", "t1", "where", "t1.continent_continents", "=", "value", "group", "by", "t1.countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of all European countries with at least 3 manufacturers?", "question_toks": ["What", "are", "the", "names", "of", "all", "European", "countries", "with", "at", "least", "3", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"europe\"", null]], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0130", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0016", "db_id": "car_1_total_5", "query": "select t1.countryid , t1.countryname from countries_car_makers_model_list as t1 group by t1.countryid having count ( * ) > 3 union select t1.countryid , t1.countryname from countries_car_makers_model_list as t1 where t1.model = 'fiat' ;", "query_toks": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "3", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "where", "t1.model", "=", "'fiat", "'", ";"], "query_toks_no_value": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "where", "t1.model", "=", "value"], "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0177", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0017", "db_id": "car_1_total_5", "query": "select t1.countryid , t1.countryname from countries_car_makers_model_list as t1 group by t1.countryid having count ( * ) > 3 union select t1.countryid , t1.countryname from countries_car_makers_model_list as t1 where t1.model = 'fiat' ;", "query_toks": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "3", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "where", "t1.model", "=", "\"fiat\"", ";"], "query_toks_no_value": ["select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1.countryid", ",", "t1.countryname", "from", "countries_car_makers_model_list", "as", "t1", "where", "t1.model", "=", "value"], "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0178", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0018", "db_id": "flight_2_total_2", "query": "select count ( * ) from flights_airports_airlines as t1 where t1.city = 'aberdeen' and t1.airline_airlines = 'united flights_airports_airlines'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports_airlines", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''", "and", "t1.airline_airlines", "=", "``", "united", "flights_airports_airlines", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports_airlines", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.airline_airlines", "=", "value"], "question": "How many United Airlines flights go to City 'Aberdeen'?", "question_toks": ["How", "many", "United", "Airlines", "flights", "go", "to", "City", "'Aberdeen", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"aberdeen\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"united flights_airports_airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0219", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0019", "db_id": "flight_2_total_2", "query": "select count ( * ) from flights_airports_airlines as t1 where t1.city = 'aberdeen' and t1.airline_airlines = 'united flights_airports_airlines'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports_airlines", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''", "and", "t1.airline_airlines", "=", "``", "united", "flights_airports_airlines", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports_airlines", "as", "t1", "where", "t1.city", "=", "value", "and", "t1.airline_airlines", "=", "value"], "question": "Count the number of United Airlines flights that arrive in Aberdeen.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "that", "arrive", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"aberdeen\"", null], "and", [false, 2, [0, [0, 1, false], null], "\"united flights_airports_airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0220", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0020", "db_id": "museum_visit_total_2", "query": "select t1.name_visitor_visit from visitor_visit_museum as t1 where t1.open_year < 2009 intersect select t1.name_visitor_visit from visitor_visit_museum as t1 where t1.open_year > 2011", "query_toks": ["select", "t1.name_visitor_visit", "from", "visitor_visit_museum", "as", "t1", "where", "t1.open_year", "<", "2009", "intersect", "select", "t1.name_visitor_visit", "from", "visitor_visit_museum", "as", "t1", "where", "t1.open_year", ">", "2011"], "query_toks_no_value": ["select", "t1.name_visitor_visit", "from", "visitor_visit_museum", "as", "t1", "where", "t1.open_year", "<", "value", "intersect", "select", "t1.name_visitor_visit", "from", "visitor_visit_museum", "as", "t1", "where", "t1.open_year", ">", "value"], "question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "question_toks": ["What", "is", "the", "name", "of", "the", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "2009", "and", "a", "museum", "opened", "after", "2011", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0426", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0021", "db_id": "dog_kennels_total_2", "query": "select t1.owner_id , t1.last_name from owners_dogs_treatments as t1 group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0936", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0022", "db_id": "dog_kennels_total_2", "query": "select t1.owner_id , t1.last_name from owners_dogs_treatments as t1 group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.last_name", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "the", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0937", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0023", "db_id": "dog_kennels_total_2", "query": "select t1.owner_id , t1.zip_code from owners_dogs_treatments as t1 group by t1.owner_id order by sum ( t1.cost_of_treatment ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t1.cost_of_treatment", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t1.cost_of_treatment", ")", "desc", "limit", "value"], "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "question_toks": ["Which", "owner", "has", "paid", "the", "largest", "amount", "of", "money", "in", "total", "for", "their", "dogs", "?", "Show", "the", "owner", "id", "and", "zip", "code", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["desc", [[0, [4, 45, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0940", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0024", "db_id": "dog_kennels_total_2", "query": "select t1.owner_id , t1.zip_code from owners_dogs_treatments as t1 group by t1.owner_id order by sum ( t1.cost_of_treatment ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t1.cost_of_treatment", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.zip_code", "from", "owners_dogs_treatments", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "sum", "(", "t1.cost_of_treatment", ")", "desc", "limit", "value"], "question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "owner", "id", "and", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["desc", [[0, [4, 45, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0941", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0025", "db_id": "flight_1_total_0", "query": "select t1.name_employee_certificate from employee_certificate_aircraft as t1 where t1.distance > 5000 group by t1.eid order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name_employee_certificate", "from", "employee_certificate_aircraft", "as", "t1", "where", "t1.distance", ">", "5000", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name_employee_certificate", "from", "employee_certificate_aircraft", "as", "t1", "where", "t1.distance", ">", "value", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?", "question_toks": ["What", "is", "the", "salary", "and", "name", "of", "the", "employee", "who", "has", "the", "most", "number", "of", "certificates", "on", "aircrafts", "with", "distance", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 5000.0, null]], "groupBy": [[0, 13, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0437", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0026", "db_id": "flight_1_total_0", "query": "select t1.name_employee_certificate from employee_certificate_aircraft as t1 where t1.distance > 5000 group by t1.eid order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name_employee_certificate", "from", "employee_certificate_aircraft", "as", "t1", "where", "t1.distance", ">", "5000", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name_employee_certificate", "from", "employee_certificate_aircraft", "as", "t1", "where", "t1.distance", ">", "value", "group", "by", "t1.eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salaray and name of the employee with the most certificates to fly planes more than 5000?", "question_toks": ["What", "is", "the", "salaray", "and", "name", "of", "the", "employee", "with", "the", "most", "certificates", "to", "fly", "planes", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 5000.0, null]], "groupBy": [[0, 13, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0438", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0027", "db_id": "store_1_total_0", "query": "select t1.name_tracks_playlist_tracks from tracks_playlist_tracks_playlists as t1 where t1.name_playlists = 'movies' except select t1.name_tracks_playlist_tracks from tracks_playlist_tracks_playlists as t1 where t1.name_playlists = 'music'", "query_toks": ["select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "'movies", "'", "except", "select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "value", "except", "select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "value"], "question": "Find the name of tracks which are in Movies playlist but not in music playlist.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "Movies", "playlist", "but", "not", "in", "music", "playlist", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 62, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 62, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0643", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0028", "db_id": "store_1_total_0", "query": "select t1.name_tracks_playlist_tracks from tracks_playlist_tracks_playlists as t1 where t1.name_playlists = 'movies' except select t1.name_tracks_playlist_tracks from tracks_playlist_tracks_playlists as t1 where t1.name_playlists = 'music'", "query_toks": ["select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "'movies", "'", "except", "select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "'music", "'"], "query_toks_no_value": ["select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "value", "except", "select", "t1.name_tracks_playlist_tracks", "from", "tracks_playlist_tracks_playlists", "as", "t1", "where", "t1.name_playlists", "=", "value"], "question": "What are the names of all tracks that are on the Movies playlist but not in the music playlist?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "the", "Movies", "playlist", "but", "not", "in", "the", "music", "playlist", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 62, false], null], "\"movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [[false, 2, [0, [0, 62, false], null], "\"music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0644", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0029", "db_id": "chinook_1_total_0", "query": "select t1.title from album_track_genre as t1 where t1.name_genre = 'reggae' intersect select t1.title from album_track_genre as t1 where t1.name_genre = 'rock'", "query_toks": ["select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "'reggae", "'", "intersect", "select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "'rock", "'"], "query_toks_no_value": ["select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "value", "intersect", "select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "value"], "question": "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?", "question_toks": ["What", "are", "the", "album", "titles", "for", "albums", "containing", "both", "'Reggae", "'", "and", "'Rock", "'", "genre", "tracks", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0889", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0030", "db_id": "chinook_1_total_0", "query": "select t1.title from album_track_genre as t1 where t1.name_genre = 'reggae' intersect select t1.title from album_track_genre as t1 where t1.name_genre = 'rock'", "query_toks": ["select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "'reggae", "'", "intersect", "select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "'rock", "'"], "query_toks_no_value": ["select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "value", "intersect", "select", "t1.title", "from", "album_track_genre", "as", "t1", "where", "t1.name_genre", "=", "value"], "question": "Find the titles of albums that contain tracks of both the Reggae and Rock genres.", "question_toks": ["Find", "the", "titles", "of", "albums", "that", "contain", "tracks", "of", "both", "the", "Reggae", "and", "Rock", "genres", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0890", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0031", "db_id": "insurance_fnol_total_0", "query": "select t1.customer_name from customers_first_notification_of_loss_services as t1 where t1.service_name = 'close a policy' intersect select t1.customer_name from customers_first_notification_of_loss_services as t1 where t1.service_name = 'new policy application'", "query_toks": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "``", "close", "a", "policy", "''", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "``", "new", "policy", "application", "''"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "value", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "value"], "question": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\".", "question_toks": ["Find", "the", "names", "of", "customers", "who", "have", "used", "both", "the", "service", "``", "Close", "a", "policy", "''", "and", "the", "service", "``", "New", "policy", "application", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"new policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0923", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0032", "db_id": "insurance_fnol_total_0", "query": "select t1.customer_name from customers_first_notification_of_loss_services as t1 where t1.service_name = 'close a policy' intersect select t1.customer_name from customers_first_notification_of_loss_services as t1 where t1.service_name = 'new policy application'", "query_toks": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "``", "close", "a", "policy", "''", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "``", "new", "policy", "application", "''"], "query_toks_no_value": ["select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "value", "intersect", "select", "t1.customer_name", "from", "customers_first_notification_of_loss_services", "as", "t1", "where", "t1.service_name", "=", "value"], "question": "Which customers have used both the service named \"Close a policy\" and the service named \"Upgrade a policy\"? Give me the customer names.", "question_toks": ["Which", "customers", "have", "used", "both", "the", "service", "named", "``", "Close", "a", "policy", "''", "and", "the", "service", "named", "``", "Upgrade", "a", "policy", "''", "?", "Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"new policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_0924", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0033", "db_id": "game_injury_total_0", "query": "select t1.id , t1.name from stadium_game_injury_accident as t1 group by t1.id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.id", ",", "t1.name", "from", "stadium_game_injury_accident", "as", "t1", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", "from", "stadium_game_injury_accident", "as", "t1", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the id and name of the stadium where the most injury accidents happened?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "most", "injury", "accidents", "happened", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1282", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0034", "db_id": "game_injury_total_0", "query": "select t1.id , t1.name from stadium_game_injury_accident as t1 group by t1.id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.id", ",", "t1.name", "from", "stadium_game_injury_accident", "as", "t1", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", "from", "stadium_game_injury_accident", "as", "t1", "group", "by", "t1.id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the id and name of the stadium where the largest number of injury accidents occurred.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "largest", "number", "of", "injury", "accidents", "occurred", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1283", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0035", "db_id": "insurance_and_eClaims_total_0", "query": "select t1.customer_details from claim_headers_policies_customers as t1 where t1.amount_piad = ( select min ( amount_piad ) from claim_headers_policies_customers )", "query_toks": ["select", "t1.customer_details", "from", "claim_headers_policies_customers", "as", "t1", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies_customers", ")"], "query_toks_no_value": ["select", "t1.customer_details", "from", "claim_headers_policies_customers", "as", "t1", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies_customers", ")"], "question": "What is the name of the customer who has made the minimum amount of payment in one claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "minimum", "amount", "of", "payment", "in", "one", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1521", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0036", "db_id": "insurance_and_eClaims_total_0", "query": "select t1.customer_details from claim_headers_policies_customers as t1 where t1.amount_piad = ( select min ( amount_piad ) from claim_headers_policies_customers )", "query_toks": ["select", "t1.customer_details", "from", "claim_headers_policies_customers", "as", "t1", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies_customers", ")"], "query_toks_no_value": ["select", "t1.customer_details", "from", "claim_headers_policies_customers", "as", "t1", "where", "t1.amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers_policies_customers", ")"], "question": "Which customer made the smallest amount of claim in one claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "smallest", "amount", "of", "claim", "in", "one", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1522", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0037", "db_id": "theme_gallery_total_0", "query": "select t1.name from exhibition_record_exhibition_artist as t1 group by t1.artist_id having avg ( t1.attendance ) > 200", "query_toks": ["select", "t1.name", "from", "exhibition_record_exhibition_artist", "as", "t1", "group", "by", "t1.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t1.name", "from", "exhibition_record_exhibition_artist", "as", "t1", "group", "by", "t1.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "value"], "question": "Show all artist names with an average exhibition attendance over 200.", "question_toks": ["Show", "all", "artist", "names", "with", "an", "average", "exhibition", "attendance", "over", "200", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [[false, 3, [0, [5, 9, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1687", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0038", "db_id": "theme_gallery_total_0", "query": "select t1.name from exhibition_record_exhibition_artist as t1 group by t1.artist_id having avg ( t1.attendance ) > 200", "query_toks": ["select", "t1.name", "from", "exhibition_record_exhibition_artist", "as", "t1", "group", "by", "t1.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t1.name", "from", "exhibition_record_exhibition_artist", "as", "t1", "group", "by", "t1.artist_id", "having", "avg", "(", "t1.attendance", ")", ">", "value"], "question": "What are the names of artist whose exhibitions draw over 200 attendees on average?", "question_toks": ["What", "are", "the", "names", "of", "artist", "whose", "exhibitions", "draw", "over", "200", "attendees", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [[false, 3, [0, [5, 9, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1688", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0039", "db_id": "riding_club_total_0", "query": "select t1.player_name from player_coach_coach_player as t1 where t1.rank_player_coach_coach = 1", "query_toks": ["select", "t1.player_name", "from", "player_coach_coach_player", "as", "t1", "where", "t1.rank_player_coach_coach", "=", "1"], "query_toks_no_value": ["select", "t1.player_name", "from", "player_coach_coach_player", "as", "t1", "where", "t1.rank_player_coach_coach", "=", "value"], "question": "Show the names of players coached by the rank 1 coach.", "question_toks": ["Show", "the", "names", "of", "players", "coached", "by", "the", "rank", "1", "coach", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1729", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0040", "db_id": "small_bank_1_total_0", "query": "select t1.name , t1.balance_accounts_checking from accounts_checking_savings as t1 order by t1.balance_savings limit 1", "query_toks": ["select", "t1.name", ",", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest savings balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1802", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0041", "db_id": "small_bank_1_total_0", "query": "select t1.name , t1.balance_accounts_checking from accounts_checking_savings as t1 order by t1.balance_savings limit 1", "query_toks": ["select", "t1.name", ",", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "value"], "question": "What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?", "question_toks": ["What", "are", "the", "names", "and", "balances", "of", "checking", "accounts", "belonging", "to", "the", "customer", "with", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1803", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0042", "db_id": "small_bank_1_total_0", "query": "select t1.balance_savings from accounts_checking_savings as t1 order by t1.balance_accounts_checking desc limit 1", "query_toks": ["select", "t1.balance_savings", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_accounts_checking", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.balance_savings", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_accounts_checking", "desc", "limit", "value"], "question": "Find the saving balance of the account with the highest checking balance.", "question_toks": ["Find", "the", "saving", "balance", "of", "the", "account", "with", "the", "highest", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1810", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0043", "db_id": "small_bank_1_total_0", "query": "select t1.balance_savings from accounts_checking_savings as t1 order by t1.balance_accounts_checking desc limit 1", "query_toks": ["select", "t1.balance_savings", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_accounts_checking", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.balance_savings", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_accounts_checking", "desc", "limit", "value"], "question": "What is the savings balance of the account belonging to the customer with the highest checking balance?", "question_toks": ["What", "is", "the", "savings", "balance", "of", "the", "account", "belonging", "to", "the", "customer", "with", "the", "highest", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 3, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1811", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0044", "db_id": "small_bank_1_total_0", "query": "select t1.balance_accounts_checking , t1.name from accounts_checking_savings as t1 order by t1.balance_savings limit 1", "query_toks": ["select", "t1.balance_accounts_checking", ",", "t1.name", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "1"], "query_toks_no_value": ["select", "t1.balance_accounts_checking", ",", "t1.name", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest saving balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1814", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0045", "db_id": "small_bank_1_total_0", "query": "select t1.balance_accounts_checking , t1.name from accounts_checking_savings as t1 order by t1.balance_savings limit 1", "query_toks": ["select", "t1.balance_accounts_checking", ",", "t1.name", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "1"], "query_toks_no_value": ["select", "t1.balance_accounts_checking", ",", "t1.name", "from", "accounts_checking_savings", "as", "t1", "order", "by", "t1.balance_savings", "limit", "value"], "question": "What is the name and checking balance of the account which has the lowest savings balance?", "question_toks": ["What", "is", "the", "name", "and", "checking", "balance", "of", "the", "account", "which", "has", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1815", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0046", "db_id": "small_bank_1_total_0", "query": "select t1.name from accounts_checking_savings as t1 where t1.balance_accounts_checking > t1.balance_savings", "query_toks": ["select", "t1.name", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_accounts_checking", ">", "t1.balance_savings"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_accounts_checking", ">", "t1.balance_savings"], "question": "Find the name of accounts whose checking balance is higher than corresponding saving balance.", "question_toks": ["Find", "the", "name", "of", "accounts", "whose", "checking", "balance", "is", "higher", "than", "corresponding", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], [0, 2, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1820", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0047", "db_id": "small_bank_1_total_0", "query": "select t1.name from accounts_checking_savings as t1 where t1.balance_accounts_checking > t1.balance_savings", "query_toks": ["select", "t1.name", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_accounts_checking", ">", "t1.balance_savings"], "query_toks_no_value": ["select", "t1.name", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_accounts_checking", ">", "t1.balance_savings"], "question": "What are the names of customers with a higher checking balance than savings balance?", "question_toks": ["What", "are", "the", "names", "of", "customers", "with", "a", "higher", "checking", "balance", "than", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], [0, 2, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1821", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0048", "db_id": "small_bank_1_total_0", "query": "select t1.name , t1.balance_savings + t1.balance_accounts_checking from accounts_checking_savings as t1 where t1.balance_savings < t1.balance_accounts_checking", "query_toks": ["select", "t1.name", ",", "t1.balance_savings", "+", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_savings", "<", "t1.balance_accounts_checking"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance_savings", "+", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_savings", "<", "t1.balance_accounts_checking"], "question": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": ["Find", "the", "name", "and", "total", "checking", "and", "savings", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 2, false], [0, 3, false]]]]], "where": [[false, 4, [0, [0, 2, false], null], [0, 3, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1822", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_2_to_0_0049", "db_id": "small_bank_1_total_0", "query": "select t1.name , t1.balance_savings + t1.balance_accounts_checking from accounts_checking_savings as t1 where t1.balance_savings < t1.balance_accounts_checking", "query_toks": ["select", "t1.name", ",", "t1.balance_savings", "+", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_savings", "<", "t1.balance_accounts_checking"], "query_toks_no_value": ["select", "t1.name", ",", "t1.balance_savings", "+", "t1.balance_accounts_checking", "from", "accounts_checking_savings", "as", "t1", "where", "t1.balance_savings", "<", "t1.balance_accounts_checking"], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "total", "of", "their", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [2, [0, 2, false], [0, 3, false]]]]], "where": [[false, 4, [0, [0, 2, false], null], [0, 3, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "train_1823", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0000", "db_id": "concert_singer_total_0", "query": "select t1.name , t1.capacity from concert_stadium as t1 where t1.year >= 2014 group by t1.stadium_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", ",", "t1.capacity", "from", "concert_stadium", "as", "t1", "where", "t1.year", ">", "=", "2014", "group", "by", "t1.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.capacity", "from", "concert_stadium", "as", "t1", "where", "t1.year", ">", "=", "value", "group", "by", "t1.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0001", "db_id": "concert_singer_total_0", "query": "select t1.name , t1.capacity from concert_stadium as t1 where t1.year > 2013 group by t1.stadium_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", ",", "t1.capacity", "from", "concert_stadium", "as", "t1", "where", "t1.year", ">", "2013", "group", "by", "t1.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", ",", "t1.capacity", "from", "concert_stadium", "as", "t1", "where", "t1.year", ">", "value", "group", "by", "t1.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name and capacity of the stadium with the most concerts after 2013 ?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "of", "the", "stadium", "with", "the", "most", "concerts", "after", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 2013.0, null]], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0025", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0002", "db_id": "concert_singer_total_0", "query": "select name from concert_stadium except select t1.name from concert_stadium as t1 where t1.year = 2014", "query_toks": ["select", "name", "from", "concert_stadium", "except", "select", "t1.name", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2014"], "query_toks_no_value": ["select", "name", "from", "concert_stadium", "except", "select", "t1.name", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value"], "question": "Show names for all stadiums except for stadiums having a concert in year 2014.", "question_toks": ["Show", "names", "for", "all", "stadiums", "except", "for", "stadiums", "having", "a", "concert", "in", "year", "2014", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0031", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0003", "db_id": "concert_singer_total_0", "query": "select name from concert_stadium except select t1.name from concert_stadium as t1 where t1.year = 2014", "query_toks": ["select", "name", "from", "concert_stadium", "except", "select", "t1.name", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2014"], "query_toks_no_value": ["select", "name", "from", "concert_stadium", "except", "select", "t1.name", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value"], "question": "What are the names of all stadiums that did not have a concert in 2014?", "question_toks": ["What", "are", "the", "names", "of", "all", "stadiums", "that", "did", "not", "have", "a", "concert", "in", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0032", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0004", "db_id": "concert_singer_total_1", "query": "select t1.concert_name , t1.theme , count ( * ) from singer_in_concert_concert as t1 group by t1.concert_id", "query_toks": ["select", "t1.concert_name", ",", "t1.theme", ",", "count", "(", "*", ")", "from", "singer_in_concert_concert", "as", "t1", "group", "by", "t1.concert_id"], "query_toks_no_value": ["select", "t1.concert_name", ",", "t1.theme", ",", "count", "(", "*", ")", "from", "singer_in_concert_concert", "as", "t1", "group", "by", "t1.concert_id"], "question": "Show the name and theme for all concerts and the number of singers in each concert.", "question_toks": ["Show", "the", "name", "and", "theme", "for", "all", "concerts", "and", "the", "number", "of", "singers", "in", "each", "concert", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0033", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0005", "db_id": "concert_singer_total_1", "query": "select t1.concert_name , t1.theme , count ( * ) from singer_in_concert_concert as t1 group by t1.concert_id", "query_toks": ["select", "t1.concert_name", ",", "t1.theme", ",", "count", "(", "*", ")", "from", "singer_in_concert_concert", "as", "t1", "group", "by", "t1.concert_id"], "query_toks_no_value": ["select", "t1.concert_name", ",", "t1.theme", ",", "count", "(", "*", ")", "from", "singer_in_concert_concert", "as", "t1", "group", "by", "t1.concert_id"], "question": "What are the names , themes , and number of singers for every concert ?", "question_toks": ["What", "are", "the", "names", ",", "themes", ",", "and", "number", "of", "singers", "for", "every", "concert", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0034", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0006", "db_id": "concert_singer_total_0", "query": "select t1.name , t1.location from concert_stadium as t1 where t1.year = 2014 intersect select t1.name , t1.location from concert_stadium as t1 where t1.year = 2015", "query_toks": ["select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2014", "intersect", "select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2015"], "query_toks_no_value": ["select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value", "intersect", "select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value"], "question": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", "question_toks": ["Find", "the", "name", "and", "location", "of", "the", "stadiums", "which", "some", "concerts", "happened", "in", "the", "years", "of", "both", "2014", "and", "2015", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0041", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0007", "db_id": "concert_singer_total_0", "query": "select t1.name , t1.location from concert_stadium as t1 where t1.year = 2014 intersect select t1.name , t1.location from concert_stadium as t1 where t1.year = 2015", "query_toks": ["select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2014", "intersect", "select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "2015"], "query_toks_no_value": ["select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value", "intersect", "select", "t1.name", ",", "t1.location", "from", "concert_stadium", "as", "t1", "where", "t1.year", "=", "value"], "question": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", "question_toks": ["What", "are", "the", "names", "and", "locations", "of", "the", "stadiums", "that", "had", "concerts", "that", "occurred", "in", "both", "2014", "and", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0042", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0008", "db_id": "pets_1_total_1", "query": "select count ( * ) from student_has_pet as t1 where t1.age > 20", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "where", "t1.age", ">", "20"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "where", "t1.age", ">", "value"], "question": "Find number of pets owned by students who are older than 20.", "question_toks": ["Find", "number", "of", "pets", "owned", "by", "students", "who", "are", "older", "than", "20", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0051", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0009", "db_id": "pets_1_total_1", "query": "select count ( * ) from student_has_pet as t1 where t1.age > 20", "query_toks": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "where", "t1.age", ">", "20"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student_has_pet", "as", "t1", "where", "t1.age", ">", "value"], "question": "How many pets are owned by students that have an age greater than 20?", "question_toks": ["How", "many", "pets", "are", "owned", "by", "students", "that", "have", "an", "age", "greater", "than", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0052", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0010", "db_id": "pets_1_total_1", "query": "select t1.fname , t1.sex from student_has_pet as t1 group by t1.stuid having count ( * ) > 1", "query_toks": ["select", "t1.fname", ",", "t1.sex", "from", "student_has_pet", "as", "t1", "group", "by", "t1.stuid", "having", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.sex", "from", "student_has_pet", "as", "t1", "group", "by", "t1.stuid", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the first name and gender of student who have more than one pet.", "question_toks": ["Find", "the", "first", "name", "and", "gender", "of", "student", "who", "have", "more", "than", "one", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0081", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0011", "db_id": "pets_1_total_1", "query": "select t1.fname , t1.sex from student_has_pet as t1 group by t1.stuid having count ( * ) > 1", "query_toks": ["select", "t1.fname", ",", "t1.sex", "from", "student_has_pet", "as", "t1", "group", "by", "t1.stuid", "having", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1.fname", ",", "t1.sex", "from", "student_has_pet", "as", "t1", "group", "by", "t1.stuid", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the first name and gender of the all the students who have more than one pet?", "question_toks": ["What", "is", "the", "first", "name", "and", "gender", "of", "the", "all", "the", "students", "who", "have", "more", "than", "one", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0082", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0012", "db_id": "car_1_total_4", "query": "select t1.contid , t1.continent_continents , count ( * ) from continents_countries as t1 group by t1.contid ;", "query_toks": ["select", "t1.contid", ",", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "group", "by", "t1.contid", ";"], "query_toks_no_value": ["select", "t1.contid", ",", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "group", "by", "t1.contid"], "question": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "question_toks": ["How", "many", "countries", "does", "each", "continent", "have", "?", "List", "the", "continent", "id", ",", "continent", "name", "and", "the", "number", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 1, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0089", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0013", "db_id": "car_1_total_4", "query": "select t1.contid , t1.continent_continents , count ( * ) from continents_countries as t1 group by t1.contid ;", "query_toks": ["select", "t1.contid", ",", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "group", "by", "t1.contid", ";"], "query_toks_no_value": ["select", "t1.contid", ",", "t1.continent_continents", ",", "count", "(", "*", ")", "from", "continents_countries", "as", "t1", "group", "by", "t1.contid"], "question": "For each continent, list its id, name, and how many countries it has?", "question_toks": ["For", "each", "continent", ",", "list", "its", "id", ",", "name", ",", "and", "how", "many", "countries", "it", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 1, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0090", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0014", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 order by t1.horsepower asc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.horsepower", "asc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.horsepower", "asc", "limit", "value"], "question": "Which model of the car has the minimum horsepower?", "question_toks": ["Which", "model", "of", "the", "car", "has", "the", "minimum", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0095", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0015", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 order by t1.horsepower asc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.horsepower", "asc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.horsepower", "asc", "limit", "value"], "question": "What is the model of the car with the smallest amount of horsepower?", "question_toks": ["What", "is", "the", "model", "of", "the", "car", "with", "the", "smallest", "amount", "of", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0096", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0016", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 where t1.weight < ( select avg ( weight ) from car_names_cars_data )", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "car_names_cars_data", ")"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "car_names_cars_data", ")"], "question": "Find the model of the car whose weight is below the average weight.", "question_toks": ["Find", "the", "model", "of", "the", "car", "whose", "weight", "is", "below", "the", "average", "weight", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0097", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0017", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 where t1.weight < ( select avg ( weight ) from car_names_cars_data )", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "car_names_cars_data", ")"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.weight", "<", "(", "select", "avg", "(", "weight", ")", "from", "car_names_cars_data", ")"], "question": "What is the model for the car with a weight smaller than the average?", "question_toks": ["What", "is", "the", "model", "for", "the", "car", "with", "a", "weight", "smaller", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0098", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0018", "db_id": "car_1_total_1", "query": "select t1.make , t1.year from cars_data_car_names as t1 where t1.year = ( select min ( year ) from cars_data_car_names ) ;", "query_toks": ["select", "t1.make", ",", "t1.year", "from", "cars_data_car_names", "as", "t1", "where", "t1.year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data_car_names", ")", ";"], "query_toks_no_value": ["select", "t1.make", ",", "t1.year", "from", "cars_data_car_names", "as", "t1", "where", "t1.year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data_car_names", ")"], "question": "Find the make and production time of the cars that were produced in the earliest year?", "question_toks": ["Find", "the", "make", "and", "production", "time", "of", "the", "cars", "that", "were", "produced", "in", "the", "earliest", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0101", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0019", "db_id": "car_1_total_1", "query": "select t1.make , t1.year from cars_data_car_names as t1 where t1.year = ( select min ( year ) from cars_data_car_names ) ;", "query_toks": ["select", "t1.make", ",", "t1.year", "from", "cars_data_car_names", "as", "t1", "where", "t1.year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data_car_names", ")", ";"], "query_toks_no_value": ["select", "t1.make", ",", "t1.year", "from", "cars_data_car_names", "as", "t1", "where", "t1.year", "=", "(", "select", "min", "(", "year", ")", "from", "cars_data_car_names", ")"], "question": "What is the maker of the carr produced in the earliest year and what year was it?", "question_toks": ["What", "is", "the", "maker", "of", "the", "carr", "produced", "in", "the", "earliest", "year", "and", "what", "year", "was", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0102", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0020", "db_id": "car_1_total_6", "query": "select t1.countryname from car_makers_countries as t1 group by t1.country order by count ( * ) desc limit 1 ;", "query_toks": ["select", "t1.countryname", "from", "car_makers_countries", "as", "t1", "group", "by", "t1.country", "order", "by", "count", "(", "*", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "car_makers_countries", "as", "t1", "group", "by", "t1.country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which of the countries has the most car makers? List the country name.", "question_toks": ["Which", "of", "the", "countries", "has", "the", "most", "car", "makers", "?", "List", "the", "country", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0107", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0021", "db_id": "car_1_total_6", "query": "select t1.countryname from car_makers_countries as t1 group by t1.country order by count ( * ) desc limit 1 ;", "query_toks": ["select", "t1.countryname", "from", "car_makers_countries", "as", "t1", "group", "by", "t1.country", "order", "by", "count", "(", "*", ")", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.countryname", "from", "car_makers_countries", "as", "t1", "group", "by", "t1.country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the country with the most car makers?", "question_toks": ["What", "is", "the", "name", "of", "the", "country", "with", "the", "most", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0108", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0022", "db_id": "car_1_total_1", "query": "select accelerate from cars_data_car_names where make like '%amc hornet sportabout%' limit 1;", "query_toks": ["select", "t1.accelerate", "from", "cars_data_car_names", "as", "t1", "where", "t1.make", "=", "'amc", "hornet", "sportabout", "(", "sw", ")", "'", ";"], "query_toks_no_value": ["select", "t1.accelerate", "from", "cars_data_car_names", "as", "t1", "where", "t1.make", "=", "value"], "question": "What is the accelerate of the car make amc hornet sportabout (sw)?", "question_toks": ["What", "is", "the", "accelerate", "of", "the", "car", "make", "amc", "hornet", "sportabout", "(", "sw", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"amc hornet sportabout ( sw )\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0111", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0023", "db_id": "car_1_total_1", "query": "select t1.accelerate from cars_data_car_names as t1 where t1.make = 'amc hornet sportabout ( sw )' ;", "query_toks": ["select", "t1.accelerate", "from", "cars_data_car_names", "as", "t1", "where", "t1.make", "=", "'amc", "hornet", "sportabout", "(", "sw", ")", "'", ";"], "query_toks_no_value": ["select", "t1.accelerate", "from", "cars_data_car_names", "as", "t1", "where", "t1.make", "=", "value"], "question": "How much does the car accelerate that makes amc hornet sportabout (sw)?", "question_toks": ["How", "much", "does", "the", "car", "accelerate", "that", "makes", "amc", "hornet", "sportabout", "(", "sw", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"amc hornet sportabout ( sw )\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0112", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0024", "db_id": "car_1_total_6", "query": "select count ( * ) from car_makers_countries as t1 where t1.countryname = 'france' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "'france", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "value"], "question": "How many car makers are there in france?", "question_toks": ["How", "many", "car", "makers", "are", "there", "in", "france", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0113", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0025", "db_id": "car_1_total_6", "query": "select count ( * ) from car_makers_countries as t1 where t1.countryname = 'france' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "'france", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers_countries", "as", "t1", "where", "t1.countryname", "=", "value"], "question": "What is the number of makers of care in France?", "question_toks": ["What", "is", "the", "number", "of", "makers", "of", "care", "in", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0114", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0026", "db_id": "car_1_total_3", "query": "select t1.horsepower , t1.make from car_names_cars_data as t1 where t1.cylinders = 3 order by t1.horsepower desc limit 1 ;", "query_toks": ["select", "t1.horsepower", ",", "t1.make", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "3", "order", "by", "t1.horsepower", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.horsepower", ",", "t1.make", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "value", "order", "by", "t1.horsepower", "desc", "limit", "value"], "question": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "question_toks": ["What", "is", "the", "maximum", "horsepower", "and", "the", "make", "of", "the", "car", "models", "with", "3", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0131", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0027", "db_id": "car_1_total_3", "query": "select t1.horsepower , t1.make from car_names_cars_data as t1 where t1.cylinders = 3 order by t1.horsepower desc limit 1 ;", "query_toks": ["select", "t1.horsepower", ",", "t1.make", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "3", "order", "by", "t1.horsepower", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.horsepower", ",", "t1.make", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "value", "order", "by", "t1.horsepower", "desc", "limit", "value"], "question": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", "question_toks": ["What", "is", "the", "largest", "amount", "of", "horsepower", "for", "the", "models", "with", "3", "cylinders", "and", "what", "make", "is", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0132", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0028", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 order by t1.mpg desc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.mpg", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.mpg", "desc", "limit", "value"], "question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "question_toks": ["Which", "model", "saves", "the", "most", "gasoline", "?", "That", "is", "to", "say", ",", "have", "the", "maximum", "miles", "per", "gallon", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0133", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0029", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 order by t1.mpg desc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.mpg", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "order", "by", "t1.mpg", "desc", "limit", "value"], "question": "What is the car model with the highest mpg ?", "question_toks": ["What", "is", "the", "car", "model", "with", "the", "highest", "mpg", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0134", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0030", "db_id": "car_1_total_3", "query": "select avg ( t1.edispl ) from car_names_cars_data as t1 where t1.model = 'volvo' ;", "query_toks": ["select", "avg", "(", "t1.edispl", ")", "from", "car_names_cars_data", "as", "t1", "where", "t1.model", "=", "'volvo", "'", ";"], "query_toks_no_value": ["select", "avg", "(", "t1.edispl", ")", "from", "car_names_cars_data", "as", "t1", "where", "t1.model", "=", "value"], "question": "What is the average edispl of the cars of model volvo?", "question_toks": ["What", "is", "the", "average", "edispl", "of", "the", "cars", "of", "model", "volvo", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0137", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0031", "db_id": "car_1_total_3", "query": "select avg ( t1.edispl ) from car_names_cars_data as t1 where t1.model = 'volvo' ;", "query_toks": ["select", "avg", "(", "t1.edispl", ")", "from", "car_names_cars_data", "as", "t1", "where", "t1.model", "=", "'volvo", "'", ";"], "query_toks_no_value": ["select", "avg", "(", "t1.edispl", ")", "from", "car_names_cars_data", "as", "t1", "where", "t1.model", "=", "value"], "question": "What is the average edispl for all volvos?", "question_toks": ["What", "is", "the", "average", "edispl", "for", "all", "volvos", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0138", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0032", "db_id": "car_1_total_7", "query": "select count ( * ) from car_makers_model_list as t1 where t1.fullname = 'american motor company' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "car_makers_model_list", "as", "t1", "where", "t1.fullname", "=", "'american", "motor", "company", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers_model_list", "as", "t1", "where", "t1.fullname", "=", "value"], "question": "How many car models were produced by the maker with full name American Motor Company?", "question_toks": ["How", "many", "car", "models", "were", "produced", "by", "the", "maker", "with", "full", "name", "American", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"american motor company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0147", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0033", "db_id": "car_1_total_7", "query": "select count ( * ) from car_makers_model_list as t1 where t1.fullname = 'american motor company' ;", "query_toks": ["select", "count", "(", "*", ")", "from", "car_makers_model_list", "as", "t1", "where", "t1.fullname", "=", "'american", "motor", "company", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers_model_list", "as", "t1", "where", "t1.fullname", "=", "value"], "question": "What is the number of car models created by the car maker American Motor Company?", "question_toks": ["What", "is", "the", "number", "of", "car", "models", "created", "by", "the", "car", "maker", "American", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"american motor company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0148", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0034", "db_id": "car_1_total_7", "query": "select t1.fullname , t1.id from car_makers_model_list as t1 group by t1.id having count ( * ) > 3 ;", "query_toks": ["select", "t1.fullname", ",", "t1.id", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "3", ";"], "query_toks_no_value": ["select", "t1.fullname", ",", "t1.id", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "Which makers designed more than 3 car models? List full name and the id.", "question_toks": ["Which", "makers", "designed", "more", "than", "3", "car", "models", "?", "List", "full", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0149", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0035", "db_id": "car_1_total_7", "query": "select t1.fullname , t1.id from car_makers_model_list as t1 group by t1.id having count ( * ) > 3 ;", "query_toks": ["select", "t1.fullname", ",", "t1.id", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "3", ";"], "query_toks_no_value": ["select", "t1.fullname", ",", "t1.id", "from", "car_makers_model_list", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the names and ids of all makers with more than 3 models?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "makers", "with", "more", "than", "3", "models", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0150", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0036", "db_id": "car_1_total_1", "query": "select t1.cylinders from cars_data_car_names as t1 where t1.model = 'volvo' order by t1.accelerate asc limit 1 ;", "query_toks": ["select", "t1.cylinders", "from", "cars_data_car_names", "as", "t1", "where", "t1.model", "=", "'volvo", "'", "order", "by", "t1.accelerate", "asc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.cylinders", "from", "cars_data_car_names", "as", "t1", "where", "t1.model", "=", "value", "order", "by", "t1.accelerate", "asc", "limit", "value"], "question": "For model volvo, how many cylinders does the car with the least accelerate have?", "question_toks": ["For", "model", "volvo", ",", "how", "many", "cylinders", "does", "the", "car", "with", "the", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0157", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0037", "db_id": "car_1_total_1", "query": "select t1.cylinders from cars_data_car_names as t1 where t1.model = 'volvo' order by t1.accelerate asc limit 1 ;", "query_toks": ["select", "t1.cylinders", "from", "cars_data_car_names", "as", "t1", "where", "t1.model", "=", "'volvo", "'", "order", "by", "t1.accelerate", "asc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.cylinders", "from", "cars_data_car_names", "as", "t1", "where", "t1.model", "=", "value", "order", "by", "t1.accelerate", "asc", "limit", "value"], "question": "For a volvo model, how many cylinders does the version with least accelerate have?", "question_toks": ["For", "a", "volvo", "model", ",", "how", "many", "cylinders", "does", "the", "version", "with", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0158", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0038", "db_id": "car_1_total_8", "query": "select count ( * ) from countries_car_makers as t1 group by t1.countryid having count ( * ) > 2", "query_toks": ["select", "count", "(", "*", ")", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value"], "question": "How many countries has more than 2 car makers ?", "question_toks": ["How", "many", "countries", "has", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0161", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0039", "db_id": "car_1_total_8", "query": "select count ( * ) from countries_car_makers as t1 group by t1.countryid having count ( * ) > 2", "query_toks": ["select", "count", "(", "*", ")", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries_car_makers", "as", "t1", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the number of countries with more than 2 car makers ?", "question_toks": ["What", "is", "the", "number", "of", "countries", "with", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0162", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0040", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 where t1.cylinders = 4 order by t1.horsepower desc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "4", "order", "by", "t1.horsepower", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "value", "order", "by", "t1.horsepower", "desc", "limit", "value"], "question": "For the cars with 4 cylinders, which model has the largest horsepower?", "question_toks": ["For", "the", "cars", "with", "4", "cylinders", ",", "which", "model", "has", "the", "largest", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0165", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0041", "db_id": "car_1_total_3", "query": "select t1.model from car_names_cars_data as t1 where t1.cylinders = 4 order by t1.horsepower desc limit 1 ;", "query_toks": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "4", "order", "by", "t1.horsepower", "desc", "limit", "1", ";"], "query_toks_no_value": ["select", "t1.model", "from", "car_names_cars_data", "as", "t1", "where", "t1.cylinders", "=", "value", "order", "by", "t1.horsepower", "desc", "limit", "value"], "question": "For all of the 4 cylinder cars, which model has the most horsepower?", "question_toks": ["For", "all", "of", "the", "4", "cylinder", "cars", ",", "which", "model", "has", "the", "most", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 18, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0166", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0042", "db_id": "car_1_total_1", "query": "select t1.id , t1.make from cars_data_car_names as t1 where t1.horsepower > ( select min ( horsepower ) from cars_data_car_names ) and t1.cylinders <= 3 ;", "query_toks": ["select", "t1.id", ",", "t1.make", "from", "cars_data_car_names", "as", "t1", "where", "t1.horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data_car_names", ")", "and", "t1.cylinders", "<", "=", "3", ";"], "query_toks_no_value": ["select", "t1.id", ",", "t1.make", "from", "cars_data_car_names", "as", "t1", "where", "t1.horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data_car_names", ")", "and", "t1.cylinders", "<", "=", "value"], "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "lowest", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 16, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0167", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0043", "db_id": "car_1_total_1", "query": "select t1.id , t1.make from cars_data_car_names as t1 where t1.horsepower > ( select min ( horsepower ) from cars_data_car_names ) and t1.cylinders < 4 ;", "query_toks": ["select", "t1.id", ",", "t1.make", "from", "cars_data_car_names", "as", "t1", "where", "t1.horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data_car_names", ")", "and", "t1.cylinders", "<", "4", ";"], "query_toks_no_value": ["select", "t1.id", ",", "t1.make", "from", "cars_data_car_names", "as", "t1", "where", "t1.horsepower", ">", "(", "select", "min", "(", "horsepower", ")", "from", "cars_data_car_names", ")", "and", "t1.cylinders", "<", "value"], "question": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?", "question_toks": ["Among", "the", "cars", "that", "do", "not", "have", "the", "minimum", "horsepower", ",", "what", "are", "the", "make", "ids", "and", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 4, [0, [0, 16, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0168", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0044", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value"], "question": "How many flights depart from City Aberdeen?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "Aberdeen", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0207", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0045", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value"], "question": "Return the number of flights departing from Aberdeen.", "question_toks": ["Return", "the", "number", "of", "flights", "departing", "from", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0208", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0046", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value"], "question": "How many flights arriving in Aberdeen city?", "question_toks": ["How", "many", "flights", "arriving", "in", "Aberdeen", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0209", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0047", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value"], "question": "Return the number of flights arriving in Aberdeen.", "question_toks": ["Return", "the", "number", "of", "flights", "arriving", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0210", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0048", "db_id": "flight_2_total_3", "query": "select count ( * ) from flights_airlines as t1 where t1.airline_airlines = 'jetblue airways'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "``", "jetblue", "airways", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "value"], "question": "How many flights does airline 'JetBlue Airways' have?", "question_toks": ["How", "many", "flights", "does", "airline", "'JetBlue", "Airways", "'", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"jetblue airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0213", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0049", "db_id": "flight_2_total_3", "query": "select count ( * ) from flights_airlines as t1 where t1.airline_airlines = 'jetblue airways'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "``", "jetblue", "airways", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "value"], "question": "Give the number of Jetblue Airways flights.", "question_toks": ["Give", "the", "number", "of", "Jetblue", "Airways", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"jetblue airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0214", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0050", "db_id": "flight_2_total_0", "query": "select count ( * ) from airlines_flights as t1 where t1.airline_airlines = 'united airlines' and t1.destairport = 'asy'", "query_toks": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "airlines_flights", "''", "and", "t1.destairport", "=", "``", "asy", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "value", "and", "t1.destairport", "=", "value"], "question": "How many 'United Airlines' flights go to Airport 'ASY'?", "question_toks": ["How", "many", "'United", "Airlines", "'", "flights", "go", "to", "Airport", "'ASY", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united airlines_flights\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"asy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0215", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0051", "db_id": "flight_2_total_0", "query": "select count ( * ) from airlines_flights as t1 where t1.airline_airlines = 'united airlines' and t1.destairport = 'asy'", "query_toks": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "airlines_flights", "''", "and", "t1.destairport", "=", "``", "asy", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "value", "and", "t1.destairport", "=", "value"], "question": "Count the number of United Airlines flights arriving in ASY Airport.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "arriving", "in", "ASY", "Airport", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united airlines_flights\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"asy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0216", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0052", "db_id": "flight_2_total_0", "query": "select count ( * ) from airlines_flights as t1 where t1.airline_airlines = 'united airlines' and t1.sourceairport = 'ahd'", "query_toks": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "airlines_flights", "''", "and", "t1.sourceairport", "=", "``", "ahd", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "value", "and", "t1.sourceairport", "=", "value"], "question": "How many 'United Airlines' flights depart from Airport 'AHD'?", "question_toks": ["How", "many", "'United", "Airlines", "'", "flights", "depart", "from", "Airport", "'AHD", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united airlines_flights\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"ahd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0217", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0053", "db_id": "flight_2_total_0", "query": "select count ( * ) from airlines_flights as t1 where t1.airline_airlines = 'united airlines' and t1.sourceairport = 'ahd'", "query_toks": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "airlines_flights", "''", "and", "t1.sourceairport", "=", "``", "ahd", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines_flights", "as", "t1", "where", "t1.airline_airlines", "=", "value", "and", "t1.sourceairport", "=", "value"], "question": "Return the number of United Airlines flights leaving from AHD Airport.", "question_toks": ["Return", "the", "number", "of", "United", "Airlines", "flights", "leaving", "from", "AHD", "Airport", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united airlines_flights\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"ahd\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0218", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0054", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 group by t1.airline_airlines order by count ( * ) desc limit 1", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which airline has most number of flights?", "question_toks": ["Which", "airline", "has", "most", "number", "of", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0229", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0055", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 group by t1.airline_airlines order by count ( * ) desc limit 1", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What airline serves the most flights?", "question_toks": ["What", "airline", "serves", "the", "most", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0230", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0056", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 where t1.sourceairport = 'cvo' except select t1.airline_airlines from airlines_flights as t1 where t1.sourceairport = 'apg'", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "``", "cvo", "''", "except", "select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "``", "apg", "''"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "value", "except", "select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "value"], "question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "airport", "'CVO", "'", "but", "not", "from", "'APG", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"apg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0239", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0057", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 where t1.sourceairport = 'cvo' except select t1.airline_airlines from airlines_flights as t1 where t1.sourceairport = 'apg'", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "``", "cvo", "''", "except", "select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "``", "apg", "''"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "value", "except", "select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "where", "t1.sourceairport", "=", "value"], "question": "Which airlines have departures from CVO but not from APG airports?", "question_toks": ["Which", "airlines", "have", "departures", "from", "CVO", "but", "not", "from", "APG", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"cvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"apg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0240", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0058", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 group by t1.airline_airlines having count ( * ) > 10", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "having", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "having", "count", "(", "*", ")", ">", "value"], "question": "Find all airlines that have at least 10 flights.", "question_toks": ["Find", "all", "airlines", "that", "have", "at", "least", "10", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0241", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0059", "db_id": "flight_2_total_0", "query": "select t1.airline_airlines from airlines_flights as t1 group by t1.airline_airlines having count ( * ) > 10", "query_toks": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "having", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "t1.airline_airlines", "from", "airlines_flights", "as", "t1", "group", "by", "t1.airline_airlines", "having", "count", "(", "*", ")", ">", "value"], "question": "Which airlines have at least 10 flights?", "question_toks": ["Which", "airlines", "have", "at", "least", "10", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0242", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0060", "db_id": "flight_2_total_3", "query": "select t1.flightno from flights_airlines as t1 where t1.airline_airlines = 'united airlines'", "query_toks": ["select", "t1.flightno", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "flights_airlines", "''"], "query_toks_no_value": ["select", "t1.flightno", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "value"], "question": "What are flight numbers of Airline \"United Airlines\"?", "question_toks": ["What", "are", "flight", "numbers", "of", "Airline", "``", "United", "Airlines", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united flights_airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0245", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0061", "db_id": "flight_2_total_3", "query": "select t1.flightno from flights_airlines as t1 where t1.airline_airlines = 'united airlines'", "query_toks": ["select", "t1.flightno", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "``", "united", "flights_airlines", "''"], "query_toks_no_value": ["select", "t1.flightno", "from", "flights_airlines", "as", "t1", "where", "t1.airline_airlines", "=", "value"], "question": "Which flight numbers correspond to United Airlines flights?", "question_toks": ["Which", "flight", "numbers", "correspond", "to", "United", "Airlines", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"united flights_airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0246", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0062", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen' or t1.city = 'abilene'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''", "or", "t1.city", "=", "``", "abilene", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value", "or", "t1.city", "=", "value"], "question": "Find the number of flights landing in the city of Aberdeen or Abilene.", "question_toks": ["Find", "the", "number", "of", "flights", "landing", "in", "the", "city", "of", "Aberdeen", "or", "Abilene", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0255", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0063", "db_id": "flight_2_total_1", "query": "select count ( * ) from flights_airports as t1 where t1.city = 'aberdeen' or t1.city = 'abilene'", "query_toks": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "``", "aberdeen", "''", "or", "t1.city", "=", "``", "abilene", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights_airports", "as", "t1", "where", "t1.city", "=", "value", "or", "t1.city", "=", "value"], "question": "How many flights land in Aberdeen or Abilene?", "question_toks": ["How", "many", "flights", "land", "in", "Aberdeen", "or", "Abilene", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"aberdeen\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0256", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0064", "db_id": "employee_hire_evaluation_total_0", "query": "select t1.name from employee_evaluation as t1 group by t1.employee_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "employee_evaluation", "as", "t1", "group", "by", "t1.employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "employee_evaluation", "as", "t1", "group", "by", "t1.employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "find the name of employee who was awarded the most times in the evaluation.", "question_toks": ["find", "the", "name", "of", "employee", "who", "was", "awarded", "the", "most", "times", "in", "the", "evaluation", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0277", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0065", "db_id": "employee_hire_evaluation_total_0", "query": "select t1.name from employee_evaluation as t1 group by t1.employee_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "employee_evaluation", "as", "t1", "group", "by", "t1.employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "employee_evaluation", "as", "t1", "group", "by", "t1.employee_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which employee received the most awards in evaluations? Give me the employee name.", "question_toks": ["Which", "employee", "received", "the", "most", "awards", "in", "evaluations", "?", "Give", "me", "the", "employee", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0278", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0066", "db_id": "employee_hire_evaluation_total_1", "query": "select t1.name from hiring_shop as t1 group by t1.shop_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "hiring_shop", "as", "t1", "group", "by", "t1.shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "hiring_shop", "as", "t1", "group", "by", "t1.shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the shop that is hiring the largest number of employees?", "question_toks": ["What", "is", "the", "name", "of", "the", "shop", "that", "is", "hiring", "the", "largest", "number", "of", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0283", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0067", "db_id": "employee_hire_evaluation_total_1", "query": "select t1.name from hiring_shop as t1 group by t1.shop_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "hiring_shop", "as", "t1", "group", "by", "t1.shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "hiring_shop", "as", "t1", "group", "by", "t1.shop_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which shop has the most employees? Give me the shop name.", "question_toks": ["Which", "shop", "has", "the", "most", "employees", "?", "Give", "me", "the", "shop", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0284", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0068", "db_id": "cre_Doc_Template_Mgt_total_0", "query": "select count ( * ) from documents_templates as t1 where t1.template_type_code = 'ppt'", "query_toks": ["select", "count", "(", "*", ")", "from", "documents_templates", "as", "t1", "where", "t1.template_type_code", "=", "'ppt", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents_templates", "as", "t1", "where", "t1.template_type_code", "=", "value"], "question": "How many documents are using the template with type code 'PPT'?", "question_toks": ["How", "many", "documents", "are", "using", "the", "template", "with", "type", "code", "'PPT", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ppt\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0307", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0069", "db_id": "cre_Doc_Template_Mgt_total_0", "query": "select count ( * ) from documents_templates as t1 where t1.template_type_code = 'ppt'", "query_toks": ["select", "count", "(", "*", ")", "from", "documents_templates", "as", "t1", "where", "t1.template_type_code", "=", "'ppt", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents_templates", "as", "t1", "where", "t1.template_type_code", "=", "value"], "question": "Count the number of documents that use the PPT template type.", "question_toks": ["Count", "the", "number", "of", "documents", "that", "use", "the", "PPT", "template", "type", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"ppt\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0308", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0070", "db_id": "cre_Doc_Template_Mgt_total_0", "query": "select t1.template_id , t1.template_type_code from documents_templates as t1 group by t1.template_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.template_id", ",", "t1.template_type_code", "from", "documents_templates", "as", "t1", "group", "by", "t1.template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.template_id", ",", "t1.template_type_code", "from", "documents_templates", "as", "t1", "group", "by", "t1.template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the id and type code for the template used by the most documents?", "question_toks": ["What", "is", "the", "id", "and", "type", "code", "for", "the", "template", "used", "by", "the", "most", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0311", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0071", "db_id": "cre_Doc_Template_Mgt_total_0", "query": "select t1.template_id , t1.template_type_code from documents_templates as t1 group by t1.template_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.template_id", ",", "t1.template_type_code", "from", "documents_templates", "as", "t1", "group", "by", "t1.template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.template_id", ",", "t1.template_type_code", "from", "documents_templates", "as", "t1", "group", "by", "t1.template_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the id and type code of the template that is used for the greatest number of documents.", "question_toks": ["Return", "the", "id", "and", "type", "code", "of", "the", "template", "that", "is", "used", "for", "the", "greatest", "number", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0312", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0072", "db_id": "cre_Doc_Template_Mgt_total_1", "query": "select count ( * ) from paragraphs_documents as t1 where t1.document_name = 'summer show'", "query_toks": ["select", "count", "(", "*", ")", "from", "paragraphs_documents", "as", "t1", "where", "t1.document_name", "=", "'summer", "show", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "paragraphs_documents", "as", "t1", "where", "t1.document_name", "=", "value"], "question": "How many paragraphs for the document with name 'Summer Show'?", "question_toks": ["How", "many", "paragraphs", "for", "the", "document", "with", "name", "'Summer", "Show", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"summer show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0359", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0073", "db_id": "cre_Doc_Template_Mgt_total_1", "query": "select count ( * ) from paragraphs_documents as t1 where t1.document_name = 'summer show'", "query_toks": ["select", "count", "(", "*", ")", "from", "paragraphs_documents", "as", "t1", "where", "t1.document_name", "=", "'summer", "show", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "paragraphs_documents", "as", "t1", "where", "t1.document_name", "=", "value"], "question": "Count the number of paragraphs in the document named 'Summer Show'.", "question_toks": ["Count", "the", "number", "of", "paragraphs", "in", "the", "document", "named", "'Summer", "Show", "'", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"summer show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0360", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0074", "db_id": "cre_Doc_Template_Mgt_total_1", "query": "select t1.document_id , t1.document_name from paragraphs_documents as t1 group by t1.document_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.document_id", ",", "t1.document_name", "from", "paragraphs_documents", "as", "t1", "group", "by", "t1.document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.document_id", ",", "t1.document_name", "from", "paragraphs_documents", "as", "t1", "group", "by", "t1.document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the document id and name with greatest number of paragraphs?", "question_toks": ["What", "is", "the", "document", "id", "and", "name", "with", "greatest", "number", "of", "paragraphs", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0373", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0075", "db_id": "cre_Doc_Template_Mgt_total_1", "query": "select t1.document_id , t1.document_name from paragraphs_documents as t1 group by t1.document_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.document_id", ",", "t1.document_name", "from", "paragraphs_documents", "as", "t1", "group", "by", "t1.document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.document_id", ",", "t1.document_name", "from", "paragraphs_documents", "as", "t1", "group", "by", "t1.document_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the id and name of the document with the most paragraphs.", "question_toks": ["Return", "the", "id", "and", "name", "of", "the", "document", "with", "the", "most", "paragraphs", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0374", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0076", "db_id": "course_teach_total_0", "query": "select t1.name from course_arrange_teacher as t1 group by t1.name having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "course_arrange_teacher", "as", "t1", "group", "by", "t1.name", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "course_arrange_teacher", "as", "t1", "group", "by", "t1.name", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show names of teachers that teach at least two courses.", "question_toks": ["Show", "names", "of", "teachers", "that", "teach", "at", "least", "two", "courses", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0407", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0077", "db_id": "course_teach_total_0", "query": "select t1.name from course_arrange_teacher as t1 group by t1.name having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "course_arrange_teacher", "as", "t1", "group", "by", "t1.name", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "course_arrange_teacher", "as", "t1", "group", "by", "t1.name", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the teachers who teach at least two courses?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "who", "teach", "at", "least", "two", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0408", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0078", "db_id": "museum_visit_total_0", "query": "select t1.id , t1.name , t1.age from visitor_visit as t1 group by t1.id having count ( * ) > 1", "query_toks": ["select", "t1.id", ",", "t1.name", ",", "t1.age", "from", "visitor_visit", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1.id", ",", "t1.name", ",", "t1.age", "from", "visitor_visit", "as", "t1", "group", "by", "t1.id", "having", "count", "(", "*", ")", ">", "value"], "question": "find the id, name and age for visitors who visited some museums more than once.", "question_toks": ["find", "the", "id", ",", "name", "and", "age", "for", "visitors", "who", "visited", "some", "museums", "more", "than", "once", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0419", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0079", "db_id": "museum_visit_total_1", "query": "select t1.museum_id , t1.name from museum_visit as t1 group by t1.museum_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.museum_id", ",", "t1.name", "from", "museum_visit", "as", "t1", "group", "by", "t1.museum_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.museum_id", ",", "t1.name", "from", "museum_visit", "as", "t1", "group", "by", "t1.museum_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the id and name of the museum visited most times?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "museum", "visited", "most", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0421", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0080", "db_id": "museum_visit_total_0", "query": "select sum ( t1.total_spent ) from visitor_visit as t1 where t1.level_of_membership = 1", "query_toks": ["select", "sum", "(", "t1.total_spent", ")", "from", "visitor_visit", "as", "t1", "where", "t1.level_of_membership", "=", "1"], "query_toks_no_value": ["select", "sum", "(", "t1.total_spent", ")", "from", "visitor_visit", "as", "t1", "where", "t1.level_of_membership", "=", "value"], "question": "What is the total ticket expense of the visitors whose membership level is 1?", "question_toks": ["What", "is", "the", "total", "ticket", "expense", "of", "the", "visitors", "whose", "membership", "level", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0425", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0081", "db_id": "battle_death_total_0", "query": "select t1.killed , t1.injured from death_ship as t1 where t1.tonnage = 't'", "query_toks": ["select", "t1.killed", ",", "t1.injured", "from", "death_ship", "as", "t1", "where", "t1.tonnage", "=", "'t", "'"], "query_toks_no_value": ["select", "t1.killed", ",", "t1.injured", "from", "death_ship", "as", "t1", "where", "t1.tonnage", "=", "value"], "question": "What are the death and injury situations caused by the ship with tonnage 't'?", "question_toks": ["What", "are", "the", "death", "and", "injury", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'t", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0496", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0082", "db_id": "battle_death_total_0", "query": "select t1.caused_by_ship_id , t1.name from death_ship as t1 group by t1.caused_by_ship_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.caused_by_ship_id", ",", "t1.name", "from", "death_ship", "as", "t1", "group", "by", "t1.caused_by_ship_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.caused_by_ship_id", ",", "t1.name", "from", "death_ship", "as", "t1", "group", "by", "t1.caused_by_ship_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the ship id and name that caused most total injuries?", "question_toks": ["What", "is", "the", "ship", "id", "and", "name", "that", "caused", "most", "total", "injuries", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0500", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0083", "db_id": "student_transcripts_tracking_total_7", "query": "select t1.department_name , t1.department_id from degree_programs_departments as t1 group by t1.department_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.department_name", ",", "t1.department_id", "from", "degree_programs_departments", "as", "t1", "group", "by", "t1.department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.department_name", ",", "t1.department_id", "from", "degree_programs_departments", "as", "t1", "group", "by", "t1.department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which department offers the most number of degrees? List department name and id.", "question_toks": ["Which", "department", "offers", "the", "most", "number", "of", "degrees", "?", "List", "department", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0515", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0084", "db_id": "student_transcripts_tracking_total_7", "query": "select t1.department_name , t1.department_id from degree_programs_departments as t1 group by t1.department_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.department_name", ",", "t1.department_id", "from", "degree_programs_departments", "as", "t1", "group", "by", "t1.department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.department_name", ",", "t1.department_id", "from", "degree_programs_departments", "as", "t1", "group", "by", "t1.department_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name and id of the department with the most number of degrees ?", "question_toks": ["What", "is", "the", "name", "and", "id", "of", "the", "department", "with", "the", "most", "number", "of", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0516", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0085", "db_id": "student_transcripts_tracking_total_2", "query": "select count ( * ) from departments_degree_programs as t1 where t1.department_name = 'engineer'", "query_toks": ["select", "count", "(", "*", ")", "from", "departments_degree_programs", "as", "t1", "where", "t1.department_name", "=", "'engineer", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "departments_degree_programs", "as", "t1", "where", "t1.department_name", "=", "value"], "question": "How many degrees does the engineering department offer?", "question_toks": ["How", "many", "degrees", "does", "the", "engineering", "department", "offer", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0521", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0086", "db_id": "student_transcripts_tracking_total_2", "query": "select count ( * ) from departments_degree_programs as t1 where t1.department_name = 'engineer'", "query_toks": ["select", "count", "(", "*", ")", "from", "departments_degree_programs", "as", "t1", "where", "t1.department_name", "=", "'engineer", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "departments_degree_programs", "as", "t1", "where", "t1.department_name", "=", "value"], "question": "How many degrees does the engineering department have?", "question_toks": ["How", "many", "degrees", "does", "the", "engineering", "department", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0522", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0087", "db_id": "student_transcripts_tracking_total_6", "query": "select t1.semester_name , t1.semester_id from semesters_student_enrolment as t1 group by t1.semester_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.semester_name", ",", "t1.semester_id", "from", "semesters_student_enrolment", "as", "t1", "group", "by", "t1.semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.semester_name", ",", "t1.semester_id", "from", "semesters_student_enrolment", "as", "t1", "group", "by", "t1.semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the semester which most student registered in? Show both the name and the id.", "question_toks": ["What", "is", "the", "semester", "which", "most", "student", "registered", "in", "?", "Show", "both", "the", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0529", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0088", "db_id": "student_transcripts_tracking_total_6", "query": "select t1.semester_name , t1.semester_id from semesters_student_enrolment as t1 group by t1.semester_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.semester_name", ",", "t1.semester_id", "from", "semesters_student_enrolment", "as", "t1", "group", "by", "t1.semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.semester_name", ",", "t1.semester_id", "from", "semesters_student_enrolment", "as", "t1", "group", "by", "t1.semester_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "For each semester, what is the name and id of the one with the most students registered?", "question_toks": ["For", "each", "semester", ",", "what", "is", "the", "name", "and", "id", "of", "the", "one", "with", "the", "most", "students", "registered", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0530", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0089", "db_id": "student_transcripts_tracking_total_5", "query": "select t1.first_name , t1.middle_name , t1.last_name , t1.student_id from students_student_enrolment as t1 group by t1.student_id having count ( * ) = 2", "query_toks": ["select", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", "=", "2"], "query_toks_no_value": ["select", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", "=", "value"], "question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", "question_toks": ["Who", "are", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?", "List", "the", "first", "name", ",", "middle", "name", "and", "last", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0533", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0090", "db_id": "student_transcripts_tracking_total_5", "query": "select t1.first_name , t1.middle_name , t1.last_name , t1.student_id from students_student_enrolment as t1 group by t1.student_id having count ( * ) = 2", "query_toks": ["select", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", "=", "2"], "query_toks_no_value": ["select", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?", "question_toks": ["What", "are", "the", "first", ",", "middle", ",", "and", "last", "names", ",", "along", "with", "the", "ids", ",", "of", "all", "students", "who", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0534", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0091", "db_id": "student_transcripts_tracking_total_1", "query": "select t1.degree_summary_name from degree_programs_student_enrolment as t1 group by t1.degree_summary_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the kind of program which most number of students are enrolled in?", "question_toks": ["Find", "the", "kind", "of", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0537", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0092", "db_id": "student_transcripts_tracking_total_1", "query": "select t1.degree_summary_name from degree_programs_student_enrolment as t1 group by t1.degree_summary_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_summary_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the degree summary name that has the most number of students enrolled?", "question_toks": ["What", "is", "the", "degree", "summary", "name", "that", "has", "the", "most", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0538", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0093", "db_id": "student_transcripts_tracking_total_1", "query": "select t1.degree_program_id , t1.degree_summary_name from degree_programs_student_enrolment as t1 group by t1.degree_program_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.degree_program_id", ",", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.degree_program_id", ",", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the program which most number of students are enrolled in. List both the id and the summary.", "question_toks": ["Find", "the", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", ".", "List", "both", "the", "id", "and", "the", "summary", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0539", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0094", "db_id": "student_transcripts_tracking_total_1", "query": "select t1.degree_program_id , t1.degree_summary_name from degree_programs_student_enrolment as t1 group by t1.degree_program_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.degree_program_id", ",", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.degree_program_id", ",", "t1.degree_summary_name", "from", "degree_programs_student_enrolment", "as", "t1", "group", "by", "t1.degree_program_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the program id and the summary of the degree that has the most students enrolled?", "question_toks": ["What", "is", "the", "program", "id", "and", "the", "summary", "of", "the", "degree", "that", "has", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0540", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0095", "db_id": "student_transcripts_tracking_total_5", "query": "select t1.student_id , t1.first_name , t1.middle_name , t1.last_name , count ( * ) , t1.student_id from students_student_enrolment as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.student_id", ",", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "count", "(", "*", ")", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.student_id", ",", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "count", "(", "*", ")", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [3, [0, [0, 0, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0541", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0096", "db_id": "student_transcripts_tracking_total_5", "query": "select t1.student_id , t1.first_name , t1.middle_name , t1.last_name , count ( * ) , t1.student_id from students_student_enrolment as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.student_id", ",", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "count", "(", "*", ")", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.student_id", ",", "t1.first_name", ",", "t1.middle_name", ",", "t1.last_name", ",", "count", "(", "*", ")", ",", "t1.student_id", "from", "students_student_enrolment", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "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?", "question_toks": ["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", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [3, [0, [0, 0, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0542", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0097", "db_id": "student_transcripts_tracking_total_3", "query": "select t1.course_name from courses_student_enrolment_courses as t1 group by t1.course_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.course_name", "from", "courses_student_enrolment_courses", "as", "t1", "group", "by", "t1.course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.course_name", "from", "courses_student_enrolment_courses", "as", "t1", "group", "by", "t1.course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What's the name of the course with most number of enrollments?", "question_toks": ["What", "'s", "the", "name", "of", "the", "course", "with", "most", "number", "of", "enrollments", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0547", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0098", "db_id": "student_transcripts_tracking_total_3", "query": "select t1.course_name from courses_student_enrolment_courses as t1 group by t1.course_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.course_name", "from", "courses_student_enrolment_courses", "as", "t1", "group", "by", "t1.course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.course_name", "from", "courses_student_enrolment_courses", "as", "t1", "group", "by", "t1.course_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the course with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "course", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0548", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0099", "db_id": "student_transcripts_tracking_total_8", "query": "select t1.transcript_date , t1.transcript_id from transcript_contents_transcripts as t1 group by t1.transcript_id having count ( * ) >= 2", "query_toks": ["select", "t1.transcript_date", ",", "t1.transcript_id", "from", "transcript_contents_transcripts", "as", "t1", "group", "by", "t1.transcript_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.transcript_date", ",", "t1.transcript_id", "from", "transcript_contents_transcripts", "as", "t1", "group", "by", "t1.transcript_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the date and id of the transcript with at least 2 course results.", "question_toks": ["Show", "the", "date", "and", "id", "of", "the", "transcript", "with", "at", "least", "2", "course", "results", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 52, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0551", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0100", "db_id": "student_transcripts_tracking_total_8", "query": "select t1.transcript_date , t1.transcript_id from transcript_contents_transcripts as t1 group by t1.transcript_id having count ( * ) >= 2", "query_toks": ["select", "t1.transcript_date", ",", "t1.transcript_id", "from", "transcript_contents_transcripts", "as", "t1", "group", "by", "t1.transcript_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.transcript_date", ",", "t1.transcript_id", "from", "transcript_contents_transcripts", "as", "t1", "group", "by", "t1.transcript_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What is the date and id of the transcript with at least 2 courses listed?", "question_toks": ["What", "is", "the", "date", "and", "id", "of", "the", "transcript", "with", "at", "least", "2", "courses", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 52, false], null]], [0, [0, [0, 55, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0552", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0101", "db_id": "student_transcripts_tracking_total_0", "query": "select t1.address_id , t1.line_1 , t1.line_2 from addresses_students as t1 group by t1.address_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.address_id", ",", "t1.line_1", ",", "t1.line_2", "from", "addresses_students", "as", "t1", "group", "by", "t1.address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.address_id", ",", "t1.line_1", ",", "t1.line_2", "from", "addresses_students", "as", "t1", "group", "by", "t1.address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which address holds the most number of students currently? List the address id and all lines.", "question_toks": ["Which", "address", "holds", "the", "most", "number", "of", "students", "currently", "?", "List", "the", "address", "id", "and", "all", "lines", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0561", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0102", "db_id": "student_transcripts_tracking_total_0", "query": "select t1.address_id , t1.line_1 , t1.line_2 from addresses_students as t1 group by t1.address_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.address_id", ",", "t1.line_1", ",", "t1.line_2", "from", "addresses_students", "as", "t1", "group", "by", "t1.address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.address_id", ",", "t1.line_1", ",", "t1.line_2", "from", "addresses_students", "as", "t1", "group", "by", "t1.address_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the id, line 1, and line 2 of the address with the most students?", "question_toks": ["What", "is", "the", "id", ",", "line", "1", ",", "and", "line", "2", "of", "the", "address", "with", "the", "most", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]], [0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 55, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0562", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0103", "db_id": "student_transcripts_tracking_total_4", "query": "select t1.first_name from students_addresses as t1 where t1.country = 'haiti' or t1.cell_mobile_number = '09700166582'", "query_toks": ["select", "t1.first_name", "from", "students_addresses", "as", "t1", "where", "t1.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\""], "query_toks_no_value": ["select", "t1.first_name", "from", "students_addresses", "as", "t1", "where", "t1.country", "=", "value", "or", "t1.cell_mobile_number", "=", "value"], "question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .", "question_toks": ["Find", "the", "first", "name", "of", "the", "students", "who", "permanently", "live", "in", "the", "country", "Haiti", "or", "have", "the", "cell", "phone", "number", "09700166582", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"haiti\"", null], "or", [false, 2, [0, [0, 36, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0583", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0104", "db_id": "student_transcripts_tracking_total_4", "query": "select t1.first_name from students_addresses as t1 where t1.country = 'haiti' or t1.cell_mobile_number = '09700166582'", "query_toks": ["select", "t1.first_name", "from", "students_addresses", "as", "t1", "where", "t1.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\""], "query_toks_no_value": ["select", "t1.first_name", "from", "students_addresses", "as", "t1", "where", "t1.country", "=", "value", "or", "t1.cell_mobile_number", "=", "value"], "question": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "students", "who", "live", "in", "Haiti", "permanently", "or", "have", "the", "cell", "phone", "number", "09700166582", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"haiti\"", null], "or", [false, 2, [0, [0, 36, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0584", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0105", "db_id": "poker_player_total_0", "query": "select t1.birth_date from people_poker_player as t1 order by t1.earnings asc limit 1", "query_toks": ["select", "t1.birth_date", "from", "people_poker_player", "as", "t1", "order", "by", "t1.earnings", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.birth_date", "from", "people_poker_player", "as", "t1", "order", "by", "t1.earnings", "asc", "limit", "value"], "question": "What is the birth date of the poker player with the lowest earnings?", "question_toks": ["What", "is", "the", "birth", "date", "of", "the", "poker", "player", "with", "the", "lowest", "earnings", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0665", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0106", "db_id": "poker_player_total_0", "query": "select t1.birth_date from people_poker_player as t1 order by t1.earnings asc limit 1", "query_toks": ["select", "t1.birth_date", "from", "people_poker_player", "as", "t1", "order", "by", "t1.earnings", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.birth_date", "from", "people_poker_player", "as", "t1", "order", "by", "t1.earnings", "asc", "limit", "value"], "question": "Return the birth date of the poker player with the lowest earnings.", "question_toks": ["Return", "the", "birth", "date", "of", "the", "poker", "player", "with", "the", "lowest", "earnings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0666", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0107", "db_id": "poker_player_total_0", "query": "select t1.money_rank from people_poker_player as t1 order by t1.height desc limit 1", "query_toks": ["select", "t1.money_rank", "from", "people_poker_player", "as", "t1", "order", "by", "t1.height", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.money_rank", "from", "people_poker_player", "as", "t1", "order", "by", "t1.height", "desc", "limit", "value"], "question": "What is the money rank of the tallest poker player?", "question_toks": ["What", "is", "the", "money", "rank", "of", "the", "tallest", "poker", "player", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0667", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0108", "db_id": "poker_player_total_0", "query": "select t1.money_rank from people_poker_player as t1 order by t1.height desc limit 1", "query_toks": ["select", "t1.money_rank", "from", "people_poker_player", "as", "t1", "order", "by", "t1.height", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.money_rank", "from", "people_poker_player", "as", "t1", "order", "by", "t1.height", "desc", "limit", "value"], "question": "Return the money rank of the poker player with the greatest height.", "question_toks": ["Return", "the", "money", "rank", "of", "the", "poker", "player", "with", "the", "greatest", "height", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0668", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0109", "db_id": "poker_player_total_0", "query": "select avg ( t1.earnings ) from people_poker_player as t1 where t1.height > 200", "query_toks": ["select", "avg", "(", "t1.earnings", ")", "from", "people_poker_player", "as", "t1", "where", "t1.height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t1.earnings", ")", "from", "people_poker_player", "as", "t1", "where", "t1.height", ">", "value"], "question": "What is the average earnings of poker players with height higher than 200?", "question_toks": ["What", "is", "the", "average", "earnings", "of", "poker", "players", "with", "height", "higher", "than", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0669", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0110", "db_id": "poker_player_total_0", "query": "select avg ( t1.earnings ) from people_poker_player as t1 where t1.height > 200", "query_toks": ["select", "avg", "(", "t1.earnings", ")", "from", "people_poker_player", "as", "t1", "where", "t1.height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t1.earnings", ")", "from", "people_poker_player", "as", "t1", "where", "t1.height", ">", "value"], "question": "Give average earnings of poker players who are taller than 200.", "question_toks": ["Give", "average", "earnings", "of", "poker", "players", "who", "are", "taller", "than", "200", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0670", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0111", "db_id": "voter_1_total_1", "query": "select t1.contestant_number , t1.contestant_name from contestants_votes as t1 group by t1.contestant_number having count ( * ) >= 2", "query_toks": ["select", "t1.contestant_number", ",", "t1.contestant_name", "from", "contestants_votes", "as", "t1", "group", "by", "t1.contestant_number", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.contestant_number", ",", "t1.contestant_name", "from", "contestants_votes", "as", "t1", "group", "by", "t1.contestant_number", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the contestant numbers and names of the contestants who had at least two votes?", "question_toks": ["What", "are", "the", "contestant", "numbers", "and", "names", "of", "the", "contestants", "who", "had", "at", "least", "two", "votes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0694", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0112", "db_id": "voter_1_total_0", "query": "select t1.area_code from area_code_state_votes as t1 group by t1.area_code order by count ( * ) desc limit 1", "query_toks": ["select", "t1.area_code", "from", "area_code_state_votes", "as", "t1", "group", "by", "t1.area_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.area_code", "from", "area_code_state_votes", "as", "t1", "group", "by", "t1.area_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the area code in which the most voters voted?", "question_toks": ["What", "is", "the", "area", "code", "in", "which", "the", "most", "voters", "voted", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0698", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0113", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the high schooler who has the greatest number of friends?", "question_toks": ["What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0886", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0114", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the name of the high school student with the most friends.", "question_toks": ["Return", "the", "name", "of", "the", "high", "school", "student", "with", "the", "most", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0887", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0115", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 group by t1.student_id having count ( * ) >= 3", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "3"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of high schoolers who have at least 3 friends.", "question_toks": ["Show", "the", "names", "of", "high", "schoolers", "who", "have", "at", "least", "3", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0888", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0116", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 group by t1.student_id having count ( * ) >= 3", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "3"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of high schoolers who have 3 or more friends?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "3", "or", "more", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0889", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0117", "db_id": "network_1_total_1", "query": "select count ( * ) from friend_highschooler as t1 where t1.name = 'kyle'", "query_toks": ["select", "count", "(", "*", ")", "from", "friend_highschooler", "as", "t1", "where", "t1.name", "=", "``", "kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "friend_highschooler", "as", "t1", "where", "t1.name", "=", "value"], "question": "How many friends does the high school student Kyle have?", "question_toks": ["How", "many", "friends", "does", "the", "high", "school", "student", "Kyle", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0892", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0118", "db_id": "network_1_total_1", "query": "select count ( * ) from friend_highschooler as t1 where t1.name = 'kyle'", "query_toks": ["select", "count", "(", "*", ")", "from", "friend_highschooler", "as", "t1", "where", "t1.name", "=", "``", "kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "friend_highschooler", "as", "t1", "where", "t1.name", "=", "value"], "question": "Count the number of friends Kyle has.", "question_toks": ["Count", "the", "number", "of", "friends", "Kyle", "has", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0893", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0119", "db_id": "network_1_total_0", "query": "select t1.name from likes_highschooler as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the high schooler who has the greatest number of likes?", "question_toks": ["What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "likes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0906", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0120", "db_id": "network_1_total_0", "query": "select t1.name from likes_highschooler as t1 group by t1.student_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Give the name of the student with the most likes.", "question_toks": ["Give", "the", "name", "of", "the", "student", "with", "the", "most", "likes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0907", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0121", "db_id": "network_1_total_0", "query": "select t1.name from likes_highschooler as t1 group by t1.student_id having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of students who have at least 2 likes.", "question_toks": ["Show", "the", "names", "of", "students", "who", "have", "at", "least", "2", "likes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0908", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0122", "db_id": "network_1_total_0", "query": "select t1.name from likes_highschooler as t1 group by t1.student_id having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "likes_highschooler", "as", "t1", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of students who have 2 or more likes?", "question_toks": ["What", "are", "the", "names", "of", "students", "who", "have", "2", "or", "more", "likes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0909", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0123", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 where t1.grade > 5 group by t1.student_id having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "where", "t1.grade", ">", "5", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "where", "t1.grade", ">", "value", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", "question_toks": ["Show", "the", "names", "of", "students", "who", "have", "a", "grade", "higher", "than", "5", "and", "have", "at", "least", "2", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 5.0, null]], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0910", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0124", "db_id": "network_1_total_1", "query": "select t1.name from friend_highschooler as t1 where t1.grade > 5 group by t1.student_id having count ( * ) >= 2", "query_toks": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "where", "t1.grade", ">", "5", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.name", "from", "friend_highschooler", "as", "t1", "where", "t1.grade", ">", "value", "group", "by", "t1.student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "a", "grade", "of", "over", "5", "and", "have", "2", "or", "more", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 5.0, null]], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0911", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0125", "db_id": "network_1_total_0", "query": "select count ( * ) from likes_highschooler as t1 where t1.name = 'kyle'", "query_toks": ["select", "count", "(", "*", ")", "from", "likes_highschooler", "as", "t1", "where", "t1.name", "=", "``", "kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "likes_highschooler", "as", "t1", "where", "t1.name", "=", "value"], "question": "How many likes does Kyle have?", "question_toks": ["How", "many", "likes", "does", "Kyle", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0912", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0126", "db_id": "network_1_total_0", "query": "select count ( * ) from likes_highschooler as t1 where t1.name = 'kyle'", "query_toks": ["select", "count", "(", "*", ")", "from", "likes_highschooler", "as", "t1", "where", "t1.name", "=", "``", "kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "likes_highschooler", "as", "t1", "where", "t1.name", "=", "value"], "question": "Return the number of likes that the high schooler named Kyle has.", "question_toks": ["Return", "the", "number", "of", "likes", "that", "the", "high", "schooler", "named", "Kyle", "has", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0913", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0127", "db_id": "dog_kennels_total_4", "query": "select t1.owner_id , t1.first_name , t1.last_name from dogs_owners as t1 group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.first_name", ",", "t1.last_name", "from", "dogs_owners", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.first_name", ",", "t1.last_name", "from", "dogs_owners", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which owner owns the most dogs? List the owner id, first name and last name.", "question_toks": ["Which", "owner", "owns", "the", "most", "dogs", "?", "List", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0930", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0128", "db_id": "dog_kennels_total_4", "query": "select t1.owner_id , t1.first_name , t1.last_name from dogs_owners as t1 group by t1.owner_id order by count ( * ) desc limit 1", "query_toks": ["select", "t1.owner_id", ",", "t1.first_name", ",", "t1.last_name", "from", "dogs_owners", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.owner_id", ",", "t1.first_name", ",", "t1.last_name", "from", "dogs_owners", "as", "t1", "group", "by", "t1.owner_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the owner id, first name and last name of the owner who has the most dogs.", "question_toks": ["Return", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "of", "the", "owner", "who", "has", "the", "most", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0931", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0129", "db_id": "dog_kennels_total_1", "query": "select t1.professional_id , t1.role_code , t1.first_name from professionals_treatments as t1 group by t1.professional_id having count ( * ) >= 2", "query_toks": ["select", "t1.professional_id", ",", "t1.role_code", ",", "t1.first_name", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.professional_id", ",", "t1.role_code", ",", "t1.first_name", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "question_toks": ["Which", "professionals", "have", "done", "at", "least", "two", "treatments", "?", "List", "the", "professional", "'s", "id", ",", "role", ",", "and", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0932", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0130", "db_id": "dog_kennels_total_1", "query": "select t1.professional_id , t1.role_code , t1.first_name from professionals_treatments as t1 group by t1.professional_id having count ( * ) >= 2", "query_toks": ["select", "t1.professional_id", ",", "t1.role_code", ",", "t1.first_name", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.professional_id", ",", "t1.role_code", ",", "t1.first_name", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the id, role, and first name of the professionals who have performed two or more treatments?", "question_toks": ["What", "are", "the", "id", ",", "role", ",", "and", "first", "name", "of", "the", "professionals", "who", "have", "performed", "two", "or", "more", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0933", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0131", "db_id": "dog_kennels_total_5", "query": "select t1.breed_name from breeds_dogs as t1 group by t1.breed_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.breed_name", "from", "breeds_dogs", "as", "t1", "group", "by", "t1.breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.breed_name", "from", "breeds_dogs", "as", "t1", "group", "by", "t1.breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the breed with the most dogs?", "question_toks": ["What", "is", "the", "name", "of", "the", "breed", "with", "the", "most", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0934", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0132", "db_id": "dog_kennels_total_5", "query": "select t1.breed_name from breeds_dogs as t1 group by t1.breed_name order by count ( * ) desc limit 1", "query_toks": ["select", "t1.breed_name", "from", "breeds_dogs", "as", "t1", "group", "by", "t1.breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t1.breed_name", "from", "breeds_dogs", "as", "t1", "group", "by", "t1.breed_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which breed do the most dogs have? Give me the breed name.", "question_toks": ["Which", "breed", "do", "the", "most", "dogs", "have", "?", "Give", "me", "the", "breed", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0935", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0133", "db_id": "dog_kennels_total_3", "query": "select t1.treatment_type_description from treatment_types_treatments as t1 group by t1.treatment_type_code order by sum ( cost_of_treatment ) asc limit 1", "query_toks": ["select", "t1.treatment_type_description", "from", "treatment_types_treatments", "as", "t1", "group", "by", "t1.treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.treatment_type_description", "from", "treatment_types_treatments", "as", "t1", "group", "by", "t1.treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "value"], "question": "What is the description of the treatment type that costs the least money in total?", "question_toks": ["What", "is", "the", "description", "of", "the", "treatment", "type", "that", "costs", "the", "least", "money", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["asc", [[0, [4, 47, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0938", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0134", "db_id": "dog_kennels_total_3", "query": "select t1.treatment_type_description from treatment_types_treatments as t1 group by t1.treatment_type_code order by sum ( cost_of_treatment ) asc limit 1", "query_toks": ["select", "t1.treatment_type_description", "from", "treatment_types_treatments", "as", "t1", "group", "by", "t1.treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "1"], "query_toks_no_value": ["select", "t1.treatment_type_description", "from", "treatment_types_treatments", "as", "t1", "group", "by", "t1.treatment_type_code", "order", "by", "sum", "(", "cost_of_treatment", ")", "asc", "limit", "value"], "question": "Give me the description of the treatment type whose total cost is the lowest.", "question_toks": ["Give", "me", "the", "description", "of", "the", "treatment", "type", "whose", "total", "cost", "is", "the", "lowest", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [], "orderBy": ["asc", [[0, [4, 47, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0939", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0135", "db_id": "dog_kennels_total_1", "query": "select t1.professional_id , t1.cell_number from professionals_treatments as t1 group by t1.professional_id having count ( * ) >= 2", "query_toks": ["select", "t1.professional_id", ",", "t1.cell_number", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.professional_id", ",", "t1.cell_number", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", "question_toks": ["Which", "professionals", "have", "done", "at", "least", "two", "types", "of", "treatments", "?", "List", "the", "professional", "id", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0942", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0136", "db_id": "dog_kennels_total_1", "query": "select t1.professional_id , t1.cell_number from professionals_treatments as t1 group by t1.professional_id having count ( * ) >= 2", "query_toks": ["select", "t1.professional_id", ",", "t1.cell_number", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1.professional_id", ",", "t1.cell_number", "from", "professionals_treatments", "as", "t1", "group", "by", "t1.professional_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Find the id and cell phone of the professionals who operate two or more types of treatments.", "question_toks": ["Find", "the", "id", "and", "cell", "phone", "of", "the", "professionals", "who", "operate", "two", "or", "more", "types", "of", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 48, false], null]], [0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [[0, 48, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0943", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0137", "db_id": "dog_kennels_total_0", "query": "select t1.cost_of_treatment , t1.treatment_type_description from treatments_treatment_types as t1", "query_toks": ["select", "t1.cost_of_treatment", ",", "t1.treatment_type_description", "from", "treatments_treatment_types", "as", "t1"], "query_toks_no_value": ["select", "t1.cost_of_treatment", ",", "t1.treatment_type_description", "from", "treatments_treatment_types", "as", "t1"], "question": "List the cost of each treatment and the corresponding treatment type description.", "question_toks": ["List", "the", "cost", "of", "each", "treatment", "and", "the", "corresponding", "treatment", "type", "description", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0948", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0138", "db_id": "dog_kennels_total_0", "query": "select t1.cost_of_treatment , t1.treatment_type_description from treatments_treatment_types as t1", "query_toks": ["select", "t1.cost_of_treatment", ",", "t1.treatment_type_description", "from", "treatments_treatment_types", "as", "t1"], "query_toks_no_value": ["select", "t1.cost_of_treatment", ",", "t1.treatment_type_description", "from", "treatments_treatment_types", "as", "t1"], "question": "What are the cost and treatment type description of each treatment?", "question_toks": ["What", "are", "the", "cost", "and", "treatment", "type", "description", "of", "each", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_0949", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "dejoin_from_1_to_0_0139", "db_id": "real_estate_properties_total_0", "query": "select t1.property_type_description from properties_ref_property_types as t1 group by t1.property_type_code", "query_toks": ["select", "t1.property_type_description", "from", "properties_ref_property_types", "as", "t1", "group", "by", "t1.property_type_code"], "query_toks_no_value": ["select", "t1.property_type_description", "from", "properties_ref_property_types", "as", "t1", "group", "by", "t1.property_type_code"], "question": "Show the property type descriptions of properties belonging to that code.", "question_toks": ["Show", "the", "property", "type", "descriptions", "of", "properties", "belonging", "to", "that", "code", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_0", "DEJOINED_TO_0"], "source": "SIMPLIFIED", "parents_id": "dev_1032", "is_simplification": true, "simplifications_tags": ["DEJOIN_TOTAL"]}, {"id": "hidden_avg_0000", "db_id": "world_1", "query": "select avg(gnp) , sum(population) from country where governmentform = \"us territory\"", "query_toks": ["SELECT", "avg", "(", "GNP", ")", ",", "sum", "(", "population", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "us", "territory", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "GNP", ")", ",", "sum", "(", "population", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "value", "territory"], "question": "Give the average GNP and total population of nations which are considered US territory.", "question_toks": ["Give", "the", "average", "GNP", "and", "total", "population", "of", "nations", "which", "are", "considered", "US", "territory", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]], [4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"us territory\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0731", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0001", "db_id": "world_1", "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\")", "query_toks": ["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", "\")"], "query_toks_no_value": ["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", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value", "\")"], "question": "Give the average life expectancy of countries in which English is not the official language.", "question_toks": ["Give", "the", "average", "life", "expectancy", "of", "countries", "in", "which", "English", "is", "not", "the", "official", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0765", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0002", "db_id": "bike_1", "query": "select id from station where city = \"san francisco\" intersect select station_id from status group by station_id having avg(bikes_available) > 10", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "san", "francisco", "''", "INTERSECT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10"], "query_toks_no_value": ["SELECT", "id", "FROM", "station", "WHERE", "city", "=", "value", "francisco", "INTERSECT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "value"], "question": "What are the ids of the stations in San Francisco that normally have more than 10 bikes in average?", "question_toks": ["What", "are", "the", "ids", "of", "the", "stations", "in", "San", "Francisco", "that", "normally", "have", "more", "than", "10", "bikes", "in", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0142", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0003", "db_id": "bike_1", "query": "select avg(long) from station where id not in (select station_id from status group by station_id having max(bikes_available) > 10)", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "10", ")"], "query_toks_no_value": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "value", ")"], "question": "What is the average longitude for all stations that have never had more than 10 bikes available?", "question_toks": ["What", "is", "the", "average", "longitude", "for", "all", "stations", "that", "have", "never", "had", "more", "than", "10", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [1, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0152", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0004", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10 except select name from station where city = \"san jose\"", "query_toks": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "san", "jose", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "value", "jose"], "question": "What are the names of all stations that have more than 10 bikes available in average and are not located in San Jose?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "that", "have", "more", "than", "10", "bikes", "available", "in", "average", "and", "are", "not", "located", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"san jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0172", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0005", "db_id": "allergy_1", "query": "select min(age) , avg(age) , max(age) from student", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student"], "query_toks_no_value": ["SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student"], "question": "What is the minimum, average, and maximum age across all students?", "question_toks": ["What", "is", "the", "minimum", ",", "average", ",", "and", "maximum", "age", "across", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]], [1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0484", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0006", "db_id": "hospital_1", "query": "select avg(t3.cost) from physician as t1 join trained_in as t2 on t1.employeeid = t2.physician join procedures as t3 on t3.code = t2.treatment where t1.name = \"john wen\"", "query_toks": ["SELECT", "avg", "(", "T3", ".", "cost", ")", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1", ".", "employeeid", "=", "T2", ".", "physician", "JOIN", "procedures", "AS", "T3", "ON", "T3", ".", "code", "=", "T2", ".", "treatment", "WHERE", "T1", ".", "name", "=", "``", "john", "wen", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "T3", ".", "cost", ")", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1", ".", "employeeid", "=", "T2", ".", "physician", "JOIN", "procedures", "AS", "T3", "ON", "T3", ".", "code", "=", "T2", ".", "treatment", "WHERE", "T1", ".", "name", "=", "value", "wen"], "question": "Compute the average price of procedures physician John Wen was trained in.", "question_toks": ["Compute", "the", "average", "price", "of", "procedures", "physician", "John", "Wen", "was", "trained", "in", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 15, false], null]]}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"john wen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_3977", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "hidden_avg_0007", "db_id": "flight_company", "query": "select avg(velocity) from flight where pilot = \"thompson\"", "query_toks": ["SELECT", "avg", "(", "velocity", ")", "FROM", "flight", "WHERE", "pilot", "=", "``", "thompson", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "velocity", ")", "FROM", "flight", "WHERE", "pilot", "=", "value"], "question": "What is the average velocity of the pilot named 'Thompson'?", "question_toks": ["What", "is", "the", "average", "velocity", "of", "the", "pilot", "named", "'", "Thompson", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"thompson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "added_for_hidden_avg_0007", "is_simplification": true, "simplifications_tags": ["HIDDEN_AVG"]}, {"id": "where_mono_0000", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer ", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer"], "question": "What is the average, minimum, and maximum age of all singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0004", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0001", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer"], "question": "What is the average, minimum, and maximum age for all singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "all", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0005", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0002", "db_id": "concert_singer", "query": "select distinct country from singer", "query_toks": ["SELECT", "DISTINCT", "country", "FROM", "singer"], "query_toks_no_value": ["SELECT", "DISTINCT", "country", "FROM", "singer"], "question": "What are all distinct countries where singers are from?", "question_toks": ["What", "are", "all", "distinct", "countries", "where", "singers", "are", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0008", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0003", "db_id": "concert_singer", "query": "select distinct country from singer", "query_toks": ["SELECT", "DISTINCT", "country", "FROM", "singer"], "query_toks_no_value": ["SELECT", "DISTINCT", "country", "FROM", "singer"], "question": "What are the different countries with singers?", "question_toks": ["What", "are", "the", "different", "countries", "with", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0009", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0004", "db_id": "concert_singer", "query": "select song_name from singer", "query_toks": ["SELECT", "song_name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "song_name", "FROM", "singer"], "question": "List all song names by singers.", "question_toks": ["List", "all", "song", "names", "by", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0012", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0005", "db_id": "concert_singer", "query": "select song_name from singer", "query_toks": ["SELECT", "song_name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "song_name", "FROM", "singer"], "question": "What are all the song names by singers?", "question_toks": ["What", "are", "all", "the", "song", "names", "by", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0013", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0006", "db_id": "concert_singer", "query": "select location , name from stadium", "query_toks": ["SELECT", "LOCATION", ",", "name", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "LOCATION", ",", "name", "FROM", "stadium"], "question": "Show location and name for all stadiums.", "question_toks": ["Show", "location", "and", "name", "for", "all", "stadiums", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0014", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0007", "db_id": "concert_singer", "query": "select location , name from stadium", "query_toks": ["SELECT", "LOCATION", ",", "name", "FROM", "stadium"], "query_toks_no_value": ["SELECT", "LOCATION", ",", "name", "FROM", "stadium"], "question": "What are the locations and names of all stations?", "question_toks": ["What", "are", "the", "locations", "and", "names", "of", "all", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0015", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0008", "db_id": "concert_singer", "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id group by t2.stadium_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2", ".", "name", ",", "T2", ".", "capacity", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "GROUP", "BY", "T2", ".", "stadium_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "T2", ".", "capacity", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "GROUP", "BY", "T2", ".", "stadium_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Show the stadium name and capacity with most number of concerts.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0024", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0009", "db_id": "concert_singer", "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id group by t2.stadium_id order by count(*) desc limit 1", "query_toks": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "What is the name and capacity of the stadium with the most concerts?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "of", "the", "stadium", "with", "the", "most", "concerts", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0025", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0010", "db_id": "concert_singer", "query": "select name , country from singer", "query_toks": ["SELECT", "name", ",", "country", "FROM", "singer"], "query_toks_no_value": ["SELECT", "name", ",", "country", "FROM", "singer"], "question": "what is the name and nation of the singers?", "question_toks": ["what", "is", "the", "name", "and", "nation", "of", "the", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0039", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0011", "db_id": "pets_1", "query": "select count(*) from pets", "query_toks": ["SELECT", "count", "(*)", "FROM", "pets"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "pets"], "question": "Find the number of pets.", "question_toks": ["Find", "the", "number", "of", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0045", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0012", "db_id": "pets_1", "query": "select count(*) from pets", "query_toks": ["SELECT", "count", "(*)", "FROM", "pets"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "pets"], "question": "How many pets are?", "question_toks": ["How", "many", "pets", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0046", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0013", "db_id": "pets_1", "query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid", "query_toks": ["SELECT", "count", "(*)", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid"], "question": "Find number of pets owned by students.", "question_toks": ["Find", "number", "of", "pets", "owned", "by", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0051", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0014", "db_id": "pets_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "Find the major and age of students who do not have a pet.", "question_toks": ["Find", "the", "major", "and", "age", "of", "students", "who", "do", "not", "have", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0061", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0015", "db_id": "pets_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "What major is every student who does not own a pet, and also how old are they?", "question_toks": ["What", "major", "is", "every", "student", "who", "does", "not", "own", "a", "pet", ",", "and", "also", "how", "old", "are", "they", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0062", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0016", "db_id": "pets_1", "query": "select petid , weight from pets", "query_toks": ["SELECT", "petid", ",", "weight", "FROM", "pets"], "query_toks_no_value": ["SELECT", "petid", ",", "weight", "FROM", "pets"], "question": "Find the id and weight of all pets.", "question_toks": ["Find", "the", "id", "and", "weight", "of", "all", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0069", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0017", "db_id": "car_1", "query": "select t2.make , t1.year from cars_data as t1 join car_names as t2 on t1.id = t2.makeid", "query_toks": ["SELECT", "T2", ".", "Make", ",", "T1", ".", "Year", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId"], "query_toks_no_value": ["SELECT", "T2", ".", "Make", ",", "T1", ".", "Year", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId"], "question": "Find the make and production time of the cars?", "question_toks": ["Find", "the", "make", "and", "production", "time", "of", "the", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0101", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0018", "db_id": "car_1", "query": "select count(*) from car_makers", "query_toks": ["SELECT", "count", "(*)", "FROM", "CAR_MAKERS"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "CAR_MAKERS"], "question": "How many car makers are there?", "question_toks": ["How", "many", "car", "makers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0113", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0019", "db_id": "car_1", "query": "select count(*) from car_makers", "query_toks": ["SELECT", "count", "(*)", "FROM", "CAR_MAKERS"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "CAR_MAKERS"], "question": "What is the number of makers of care?", "question_toks": ["What", "is", "the", "number", "of", "makers", "of", "care", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0114", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0020", "db_id": "car_1", "query": "select avg(edispl) from cars_data", "query_toks": ["SELECT", "avg", "(", "edispl", ")", "FROM", "CARS_DATA"], "query_toks_no_value": ["SELECT", "avg", "(", "edispl", ")", "FROM", "CARS_DATA"], "question": "What is the average edispl of the cars?", "question_toks": ["What", "is", "the", "average", "edispl", "of", "the", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0137", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0021", "db_id": "car_1", "query": "select count(*) from cars_data", "query_toks": ["SELECT", "count", "(*)", "FROM", "CARS_DATA"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "CARS_DATA"], "question": "how many cars were produced?", "question_toks": ["how", "many", "cars", "were", "produced", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0145", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0022", "db_id": "flight_2", "query": "select count(*) from airlines", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRLINES"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRLINES"], "question": "How many airlines are?", "question_toks": ["How", "many", "airlines", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0195", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0023", "db_id": "flight_2", "query": "select count(*) from airlines", "query_toks": ["SELECT", "count", "(*)", "FROM", "AIRLINES"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "AIRLINES"], "question": "Return the number of airlines.", "question_toks": ["Return", "the", "number", "of", "airlines", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0196", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0024", "db_id": "flight_2", "query": "select flightno from flights", "query_toks": ["SELECT", "FlightNo", "FROM", "FLIGHTS"], "query_toks_no_value": ["SELECT", "FlightNo", "FROM", "FLIGHTS"], "question": "What are flight numbers of flights?", "question_toks": ["What", "are", "flight", "numbers", "of", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0253", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0025", "db_id": "employee_hire_evaluation", "query": "select name from shop", "query_toks": ["SELECT", "name", "FROM", "shop"], "query_toks_no_value": ["SELECT", "name", "FROM", "shop"], "question": "Find the names of stores.", "question_toks": ["Find", "the", "names", "of", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0275", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0026", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents", "query_toks": ["SELECT", "count", "(*)", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Documents"], "question": "Count the number of documents.", "question_toks": ["Count", "the", "number", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0308", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0027", "db_id": "cre_Doc_Template_Mgt", "query": "select version_number , template_type_code from templates", "query_toks": ["SELECT", "version_number", ",", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "version_number", ",", "template_type_code", "FROM", "Templates"], "question": "What is the version number and template type code for the templates?", "question_toks": ["What", "is", "the", "version", "number", "and", "template", "type", "code", "for", "the", "templates", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0327", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0028", "db_id": "cre_Doc_Template_Mgt", "query": "select version_number , template_type_code from templates", "query_toks": ["SELECT", "version_number", ",", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["SELECT", "version_number", ",", "template_type_code", "FROM", "Templates"], "question": "Return the version numbers and template type codes of templates.", "question_toks": ["Return", "the", "version", "numbers", "and", "template", "type", "codes", "of", "templates", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0328", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0029", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from paragraphs", "query_toks": ["SELECT", "count", "(*)", "FROM", "Paragraphs"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Paragraphs"], "question": "How many paragraphs for the document?", "question_toks": ["How", "many", "paragraphs", "for", "the", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0359", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0030", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from paragraphs", "query_toks": ["SELECT", "count", "(*)", "FROM", "Paragraphs"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Paragraphs"], "question": "Count the number of paragraphs.", "question_toks": ["Count", "the", "number", "of", "paragraphs", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0360", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0031", "db_id": "museum_visit", "query": "select count(*) from visitor", "query_toks": ["SELECT", "count", "(*)", "FROM", "visitor"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "visitor"], "question": "How many visitors are there?", "question_toks": ["How", "many", "visitors", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0411", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0032", "db_id": "museum_visit", "query": "select name from visitor order by level_of_membership desc", "query_toks": ["SELECT", "name", "FROM", "visitor", "ORDER", "BY", "Level_of_membership", "DESC"], "query_toks_no_value": ["SELECT", "name", "FROM", "visitor", "ORDER", "BY", "Level_of_membership", "DESC"], "question": "Find the names of the visitors and order the results by the level from high to low.", "question_toks": ["Find", "the", "names", "of", "the", "visitors", "and", "order", "the", "results", "by", "the", "level", "from", "high", "to", "low", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0412", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0033", "db_id": "museum_visit", "query": "select avg(age) from visitor", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "visitor"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", "FROM", "visitor"], "question": "What is the average age of the visitors?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "visitors", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0413", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0034", "db_id": "museum_visit", "query": "select name , level_of_membership from visitor order by age desc", "query_toks": ["SELECT", "name", ",", "Level_of_membership", "FROM", "visitor", "ORDER", "BY", "age", "DESC"], "query_toks_no_value": ["SELECT", "name", ",", "Level_of_membership", "FROM", "visitor", "ORDER", "BY", "age", "DESC"], "question": "Find the name and membership level of the visitors and sort by their age from old to young.", "question_toks": ["Find", "the", "name", "and", "membership", "level", "of", "the", "visitors", "and", "sort", "by", "their", "age", "from", "old", "to", "young", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0414", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0035", "db_id": "museum_visit", "query": "select avg(num_of_staff) from museum", "query_toks": ["SELECT", "avg", "(", "num_of_staff", ")", "FROM", "museum"], "query_toks_no_value": ["SELECT", "avg", "(", "num_of_staff", ")", "FROM", "museum"], "question": "Find the average number of staff working for the museums.", "question_toks": ["Find", "the", "average", "number", "of", "staff", "working", "for", "the", "museums", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0416", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0036", "db_id": "wta_1", "query": "select first_name , birth_date from players", "query_toks": ["SELECT", "first_name", ",", "birth_date", "FROM", "players"], "query_toks_no_value": ["SELECT", "first_name", ",", "birth_date", "FROM", "players"], "question": "List the first name and birth date of all players.", "question_toks": ["List", "the", "first", "name", "and", "birth", "date", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0433", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0037", "db_id": "wta_1", "query": "select first_name , birth_date from players", "query_toks": ["SELECT", "first_name", ",", "birth_date", "FROM", "players"], "query_toks_no_value": ["SELECT", "first_name", ",", "birth_date", "FROM", "players"], "question": "What are the first names and birth dates of players?", "question_toks": ["What", "are", "the", "first", "names", "and", "birth", "dates", "of", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0434", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0038", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "question": "List the first and last name of all players in the order of birth date.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "in", "the", "order", "of", "birth", "date", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0457", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0039", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "question": "What are the full names of all players, in order of birth date?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "players", ",", "in", "order", "of", "birth", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0458", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0040", "db_id": "wta_1", "query": "select winner_name from matches order by winner_rank_points desc limit 1", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "winner_name", "FROM", "matches", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1"], "question": "Find the name of the winner who has the highest rank points.", "question_toks": ["Find", "the", "name", "of", "the", "winner", "who", "has", "the", "highest", "rank", "points", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 36, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0465", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0041", "db_id": "wta_1", "query": "select winner_name from matches order by winner_rank_points desc limit 1", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "winner_name", "FROM", "matches", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1"], "question": "What is the name of the winner with the most rank points who participated?", "question_toks": ["What", "is", "the", "name", "of", "the", "winner", "with", "the", "most", "rank", "points", "who", "participated", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 36, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0466", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0042", "db_id": "battle_death", "query": "select count(*) from ship", "query_toks": ["SELECT", "count", "(*)", "FROM", "ship"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "ship"], "question": "How many ships ended up?", "question_toks": ["How", "many", "ships", "ended", "up", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0491", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0043", "db_id": "battle_death", "query": "select t1.killed , t1.injured from death as t1 join ship as t2 on t1.caused_by_ship_id = t2.id", "query_toks": ["SELECT", "T1", ".", "killed", ",", "T1", ".", "injured", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1", ".", "caused_by_ship_id", "=", "T2", ".", "id"], "query_toks_no_value": ["SELECT", "T1", ".", "killed", ",", "T1", ".", "injured", "FROM", "death", "AS", "T1", "JOIN", "ship", "AS", "t2", "ON", "T1", ".", "caused_by_ship_id", "=", "T2", ".", "id"], "question": "What are the death and injury situations caused by the ship?", "question_toks": ["What", "are", "the", "death", "and", "injury", "situations", "caused", "by", "the", "ship", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0496", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0044", "db_id": "student_transcripts_tracking", "query": "select course_description from courses", "query_toks": ["SELECT", "course_description", "FROM", "Courses"], "query_toks_no_value": ["SELECT", "course_description", "FROM", "Courses"], "question": "How is the course described?", "question_toks": ["How", "is", "the", "course", "described", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0511", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0045", "db_id": "student_transcripts_tracking", "query": "select course_description from courses", "query_toks": ["SELECT", "course_description", "FROM", "Courses"], "query_toks_no_value": ["SELECT", "course_description", "FROM", "Courses"], "question": "What are the descriptions for all the courses?", "question_toks": ["What", "are", "the", "descriptions", "for", "all", "the", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0512", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0046", "db_id": "tvshow", "query": "select title from cartoon", "query_toks": ["SELECT", "Title", "FROM", "Cartoon"], "query_toks_no_value": ["SELECT", "Title", "FROM", "Cartoon"], "question": "List all cartoon titles.", "question_toks": ["List", "all", "cartoons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0587", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0047", "db_id": "tvshow", "query": "select title from cartoon", "query_toks": ["SELECT", "Title", "FROM", "Cartoon"], "query_toks_no_value": ["SELECT", "Title", "FROM", "Cartoon"], "question": "What are the names of all cartoons?", "question_toks": ["What", "are", "the", "names", "of", "all", "cartoons", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0588", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0048", "db_id": "tvshow", "query": "select count(*) from cartoon", "query_toks": ["SELECT", "count", "(*)", "FROM", "Cartoon"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Cartoon"], "question": "How many cartoons were written?", "question_toks": ["How", "many", "cartoons", "were", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0589", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0049", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel", "query_toks": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel"], "query_toks_no_value": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel"], "question": "find the pixel aspect ratio and nation of the tv channels.", "question_toks": ["find", "the", "pixel", "aspect", "ratio", "and", "nation", "of", "the", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0639", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0050", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel", "query_toks": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel"], "query_toks_no_value": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel"], "question": "What is the pixel aspect ratio and country of origin for all TV channels?", "question_toks": ["What", "is", "the", "pixel", "aspect", "ratio", "and", "country", "of", "origin", "for", "all", "TV", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0640", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0051", "db_id": "poker_player", "query": "select max(final_table_made) from poker_player", "query_toks": ["SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player"], "query_toks_no_value": ["SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player"], "question": "What is the maximum number of final tables made among poker players?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "final", "tables", "made", "among", "poker", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0657", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0052", "db_id": "poker_player", "query": "select max(final_table_made) from poker_player", "query_toks": ["SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player"], "query_toks_no_value": ["SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player"], "question": "Return the maximum final tables made across all poker players.", "question_toks": ["Return", "the", "maximum", "final", "tables", "made", "across", "all", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0658", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0053", "db_id": "voter_1", "query": "select max(created) from votes", "query_toks": ["SELECT", "max", "(", "created", ")", "FROM", "votes"], "query_toks_no_value": ["SELECT", "max", "(", "created", ")", "FROM", "votes"], "question": "What is last date created of votes?", "question_toks": ["What", "is", "last", "date", "created", "of", "votes", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0691", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0054", "db_id": "voter_1", "query": "select contestant_name from contestants", "query_toks": ["SELECT", "contestant_name", "FROM", "contestants"], "query_toks_no_value": ["SELECT", "contestant_name", "FROM", "contestants"], "question": "What are the names of the contestants", "question_toks": ["What", "are", "the", "names", "of", "the", "contestants"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0692", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0055", "db_id": "voter_1", "query": "select count(*) from contestants", "query_toks": ["SELECT", "count", "(*)", "FROM", "contestants"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "contestants"], "question": "How many contestants are?", "question_toks": ["How", "many", "contestants", "are", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0697", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0056", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode order by percentage desc limit 1", "query_toks": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "ORDER", "BY", "Percentage", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "ORDER", "BY", "Percentage", "DESC", "LIMIT", "1"], "question": "Which language is the most popular?", "question_toks": ["Which", "language", "is", "the", "most", "popular", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0712", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0057", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode order by percentage desc limit 1", "query_toks": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "ORDER", "BY", "Percentage", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "ORDER", "BY", "Percentage", "DESC", "LIMIT", "1"], "question": "What language is predominantly spoken?", "question_toks": ["What", "language", "is", "predominantly", "spoken", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0713", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0058", "db_id": "world_1", "query": "select population , lifeexpectancy from country", "query_toks": ["SELECT", "Population", ",", "LifeExpectancy", "FROM", "country"], "query_toks_no_value": ["SELECT", "Population", ",", "LifeExpectancy", "FROM", "country"], "question": "Give me populations and life expectancies.", "question_toks": ["Give", "me", "populations", "and", "life", "expectancies", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0715", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0059", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["SELECT", "Name", "FROM", "conductor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "conductor"], "question": "What are the names of conductors?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0826", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0060", "db_id": "orchestra", "query": "select name from conductor", "query_toks": ["SELECT", "Name", "FROM", "conductor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "conductor"], "question": "Return the names of conductors.", "question_toks": ["Return", "the", "names", "of", "conductors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0827", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0061", "db_id": "orchestra", "query": "select max(share) , min(share) from performance", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance"], "question": "What are the maximum and minimum share of performances.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0832", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0062", "db_id": "orchestra", "query": "select max(share) , min(share) from performance", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance"], "question": "Return the maximum and minimum shares for performances", "question_toks": ["Return", "the", "maximum", "and", "minimum", "shares", "for", "performances"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0833", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0063", "db_id": "network_1", "query": "select grade from highschooler", "query_toks": ["SELECT", "grade", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "grade", "FROM", "Highschooler"], "question": "Return the grade for the high schoolers.", "question_toks": ["Return", "the", "grade", "for", "the", "high", "schoolers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0869", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0064", "db_id": "network_1", "query": "select name from highschooler", "query_toks": ["SELECT", "name", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "name", "FROM", "Highschooler"], "question": "Show the names of all high schoolers.", "question_toks": ["Show", "the", "names", "of", "all", "high", "schoolers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0870", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0065", "db_id": "network_1", "query": "select name from highschooler", "query_toks": ["SELECT", "name", "FROM", "Highschooler"], "query_toks_no_value": ["SELECT", "name", "FROM", "Highschooler"], "question": "What are the names of all high schoolers?", "question_toks": ["What", "are", "the", "names", "of", "all", "high", "schoolers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0871", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0066", "db_id": "network_1", "query": "select count(distinct student_id) from friend", "query_toks": ["SELECT", "count", "(*)", "FROM", "Friend"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Friend"], "question": "Count the number of friends.", "question_toks": ["Count", "the", "number", "of", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0893", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0067", "db_id": "dog_kennels", "query": "select avg(age) from dogs", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "Dogs"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", "FROM", "Dogs"], "question": "Find the average age of the dogs.", "question_toks": ["Find", "the", "average", "age", "of", "the", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0921", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0068", "db_id": "dog_kennels", "query": "select t1.name , t2.date_of_treatment from dogs as t1 join treatments as t2 on t1.dog_id = t2.dog_id", "query_toks": ["SELECT", "T1", ".", "name", ",", "T2", ".", "date_of_treatment", "FROM", "Dogs", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1", ".", "dog_id", "=", "T2", ".", "dog_id"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T2", ".", "date_of_treatment", "FROM", "Dogs", "AS", "T1", "JOIN", "Treatments", "AS", "T2", "ON", "T1", ".", "dog_id", "=", "T2", ".", "dog_id"], "question": "List the names of the dogs and the treatment dates of them.", "question_toks": ["List", "the", "names", "of", "the", "dogs", "and", "the", "treatment", "dates", "of", "them", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 48, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0954", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0069", "db_id": "dog_kennels", "query": "select last_name from owners", "query_toks": ["SELECT", "last_name", "FROM", "Owners"], "query_toks_no_value": ["SELECT", "last_name", "FROM", "Owners"], "question": "List the last name of the owners.", "question_toks": ["List", "the", "last", "name", "of", "the", "owners", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_0960", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0070", "db_id": "singer", "query": "select name from singer", "query_toks": ["SELECT", "Name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "Name", "FROM", "singer"], "question": "What are the names of the singers?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1007", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0071", "db_id": "singer", "query": "select distinct name from singer", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "singer"], "question": "Show distinct names of singers.", "question_toks": ["Show", "distinct", "names", "of", "singers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1020", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0072", "db_id": "singer", "query": "select distinct name from singer ", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "singer"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "singer"], "question": "what are the different names of the singers?", "question_toks": ["what", "are", "the", "different", "names", "of", "the", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "dev_1021", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0073", "db_id": "farm", "query": "select hosts from farm_competition", "query_toks": ["SELECT", "Hosts", "FROM", "farm_competition"], "query_toks_no_value": ["SELECT", "Hosts", "FROM", "farm_competition"], "question": "What are the hosts of competitions?", "question_toks": ["What", "are", "the", "hosts", "of", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0020", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0074", "db_id": "farm", "query": "select hosts from farm_competition", "query_toks": ["SELECT", "Hosts", "FROM", "farm_competition"], "query_toks_no_value": ["SELECT", "Hosts", "FROM", "farm_competition"], "question": "Return the hosts of competitions?", "question_toks": ["Return", "the", "hosts", "of", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0021", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0075", "db_id": "farm", "query": "select avg(working_horses) from farm", "query_toks": ["SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm"], "query_toks_no_value": ["SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm"], "question": "What is the average number of working horses of farms?", "question_toks": ["What", "is", "the", "average", "number", "of", "working", "horses", "of", "farms", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0024", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0076", "db_id": "farm", "query": "select avg(working_horses) from farm", "query_toks": ["SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm"], "query_toks_no_value": ["SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm"], "question": "Give the average number of working horses on farms.", "question_toks": ["Give", "the", "average", "number", "of", "working", "horses", "on", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0025", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0077", "db_id": "farm", "query": "select census_ranking from city", "query_toks": ["SELECT", "Census_Ranking", "FROM", "city"], "query_toks_no_value": ["SELECT", "Census_Ranking", "FROM", "city"], "question": "What are the census rankings of cities?", "question_toks": ["What", "are", "the", "census", "rankings", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0055", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0078", "db_id": "student_assessment", "query": "select student_id from students", "query_toks": ["SELECT", "student_id", "FROM", "students"], "query_toks_no_value": ["SELECT", "student_id", "FROM", "students"], "question": "List the id of students", "question_toks": ["List", "the", "id", "of", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0062", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0079", "db_id": "student_assessment", "query": "select student_id from students", "query_toks": ["SELECT", "student_id", "FROM", "students"], "query_toks_no_value": ["SELECT", "student_id", "FROM", "students"], "question": "What are the ids of every student?", "question_toks": ["What", "are", "the", "ids", "of", "every", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0063", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0080", "db_id": "student_assessment", "query": "select * from student_course_registrations", "query_toks": ["SELECT", "*", "FROM", "student_course_registrations"], "query_toks_no_value": ["SELECT", "*", "FROM", "student_course_registrations"], "question": "What are all info of students who registered courses?", "question_toks": ["What", "are", "all", "info", "of", "students", "who", "registered", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0103", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0081", "db_id": "bike_1", "query": "select date from weather", "query_toks": ["SELECT", "date", "FROM", "weather"], "query_toks_no_value": ["SELECT", "date", "FROM", "weather"], "question": "Give me the dates from weather", "question_toks": ["Give", "me", "the", "dates", "when", "the", "max", "temperature", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0109", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0082", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station", "query_toks": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station"], "query_toks_no_value": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station"], "question": "What is the average latitude and longitude of stations?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "of", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0117", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0083", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station", "query_toks": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station"], "query_toks_no_value": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station"], "question": "What is the average latitude and longitude?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0118", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0084", "db_id": "twitter_1", "query": "select text from tweets", "query_toks": ["SELECT", "text", "FROM", "tweets"], "query_toks_no_value": ["SELECT", "text", "FROM", "tweets"], "question": "Return the text of tweets.", "question_toks": ["Return", "the", "text", "of", "tweets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0283", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0085", "db_id": "twitter_1", "query": "select name , email from user_profiles", "query_toks": ["SELECT", "name", ",", "email", "FROM", "user_profiles"], "query_toks_no_value": ["SELECT", "name", ",", "email", "FROM", "user_profiles"], "question": "Find the name and email of the users.", "question_toks": ["Find", "the", "name", "and", "email", "of", "the", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0284", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0086", "db_id": "twitter_1", "query": "select avg(followers) from user_profiles", "query_toks": ["SELECT", "avg", "(", "followers", ")", "FROM", "user_profiles"], "query_toks_no_value": ["SELECT", "avg", "(", "followers", ")", "FROM", "user_profiles"], "question": "Find the average number of followers for the users.", "question_toks": ["Find", "the", "average", "number", "of", "followers", "for", "the", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0298", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0087", "db_id": "product_catalog", "query": "select catalog_level_name , catalog_level_number from catalog_structure", "query_toks": ["SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure"], "query_toks_no_value": ["SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure"], "question": "Find the name and level of catalog structure.", "question_toks": ["Find", "the", "name", "and", "level", "of", "catalog", "structure", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0307", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0088", "db_id": "product_catalog", "query": "select catalog_level_name , catalog_level_number from catalog_structure", "query_toks": ["SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure"], "query_toks_no_value": ["SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure"], "question": "What are the names and levels of catalog structure?", "question_toks": ["What", "are", "the", "names", "and", "levels", "of", "catalog", "structure", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0308", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0089", "db_id": "flight_1", "query": "select aid from aircraft", "query_toks": ["SELECT", "aid", "FROM", "Aircraft"], "query_toks_no_value": ["SELECT", "aid", "FROM", "Aircraft"], "question": "Show ids for all aircrafts.", "question_toks": ["Show", "ids", "for", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0347", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0090", "db_id": "flight_1", "query": "select aid from aircraft", "query_toks": ["SELECT", "aid", "FROM", "Aircraft"], "query_toks_no_value": ["SELECT", "aid", "FROM", "Aircraft"], "question": "What are the ids of all aircrafts?", "question_toks": ["What", "are", "the", "ids", "of", "all", "aircrafts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0348", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0091", "db_id": "flight_1", "query": "select count(*) from aircraft", "query_toks": ["SELECT", "count", "(*)", "FROM", "Aircraft"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "Aircraft"], "question": "What is the count of aircrafts?", "question_toks": ["What", "is", "the", "count", "of", "aircrafts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0350", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0092", "db_id": "flight_1", "query": "select eid from employee", "query_toks": ["SELECT", "eid", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "eid", "FROM", "Employee"], "question": "Show ids for all employees.", "question_toks": ["Show", "ids", "for", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0365", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0093", "db_id": "flight_1", "query": "select eid , salary from employee", "query_toks": ["SELECT", "eid", ",", "salary", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "eid", ",", "salary", "FROM", "Employee"], "question": "Show the id and salary.", "question_toks": ["Show", "the", "id", "and", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0379", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0094", "db_id": "flight_1", "query": "select eid , salary from employee", "query_toks": ["SELECT", "eid", ",", "salary", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "eid", ",", "salary", "FROM", "Employee"], "question": "What is the id and salary of the employee?", "question_toks": ["What", "is", "the", "id", "and", "salary", "of", "the", "employee", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0380", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0095", "db_id": "allergy_1", "query": "select distinct allergy from allergy_type", "query_toks": ["SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type"], "query_toks_no_value": ["SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type"], "question": "Show all allergies.", "question_toks": ["Show", "all", "allergies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0447", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0096", "db_id": "allergy_1", "query": "select distinct allergy from allergy_type", "query_toks": ["SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type"], "query_toks_no_value": ["SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type"], "question": "What are all the different allergies?", "question_toks": ["What", "are", "all", "the", "different", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0448", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0097", "db_id": "store_1", "query": "select billing_state , count(*) from invoices group by billing_state", "query_toks": ["SELECT", "billing_state", ",", "COUNT", "(*)", "FROM", "invoices", "GROUP", "BY", "billing_state"], "query_toks_no_value": ["SELECT", "billing_state", ",", "COUNT", "(*)", "FROM", "invoices", "GROUP", "BY", "billing_state"], "question": "List the number of invoices grouped by state.", "question_toks": ["List", "the", "number", "of", "invoices", "grouped", "by", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 43, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0563", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0098", "db_id": "store_1", "query": "select title from albums", "query_toks": ["SELECT", "title", "FROM", "albums"], "query_toks_no_value": ["SELECT", "title", "FROM", "albums"], "question": "List albums titles.", "question_toks": ["List", "albums", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0569", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0099", "db_id": "journal_committee", "query": "select name from editor", "query_toks": ["SELECT", "Name", "FROM", "editor"], "query_toks_no_value": ["SELECT", "Name", "FROM", "editor"], "question": "List the names of editors.", "question_toks": ["List", "the", "names", "of", "editors", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0652", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0100", "db_id": "race_track", "query": "select name , seating from track", "query_toks": ["SELECT", "name", ",", "seating", "FROM", "track"], "query_toks_no_value": ["SELECT", "name", ",", "seating", "FROM", "track"], "question": "Show names and seatings, ordered by seating.", "question_toks": ["Show", "names", "and", "seatings", ",", "ordered", "by", "seating", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0751", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0101", "db_id": "race_track", "query": "select name , seating from track order by seating", "query_toks": ["SELECT", "name", ",", "seating", "FROM", "track", "ORDER", "BY", "seating"], "query_toks_no_value": ["SELECT", "name", ",", "seating", "FROM", "track", "ORDER", "BY", "seating"], "question": "What are the names and seatings for all tracks, ordered by seating?", "question_toks": ["What", "are", "the", "names", "and", "seatings", "for", "all", "tracks", ",", "ordered", "by", "seating", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0752", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0102", "db_id": "chinook_1", "query": "select birthdate from employee", "query_toks": ["SELECT", "BirthDate", "FROM", "EMPLOYEE"], "query_toks_no_value": ["SELECT", "BirthDate", "FROM", "EMPLOYEE"], "question": "What are the birth dates of employees?", "question_toks": ["What", "are", "the", "birth", "dates", "of", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0883", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0103", "db_id": "insurance_fnol", "query": "select customer_id from customers", "query_toks": ["SELECT", "customer_id", "FROM", "customers"], "query_toks_no_value": ["SELECT", "customer_id", "FROM", "customers"], "question": "What are the IDs of customers?", "question_toks": ["What", "are", "the", "IDs", "of", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0926", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0104", "db_id": "medicine_enzyme_interaction", "query": "select product , chromosome , porphyria from enzyme", "query_toks": ["SELECT", "product", ",", "chromosome", ",", "porphyria", "FROM", "enzyme"], "query_toks_no_value": ["SELECT", "product", ",", "chromosome", ",", "porphyria", "FROM", "enzyme"], "question": "What is the product, chromosome and porphyria related to the enzymes?", "question_toks": ["What", "is", "the", "product", ",", "chromosome", "and", "porphyria", "related", "to", "the", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_0941", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "where_mono_0105", "db_id": "phone_1", "query": "select model_name from chip_model", "query_toks": ["SELECT", "Model_name", "FROM", "chip_model"], "query_toks_no_value": ["SELECT", "Model_name", "FROM", "chip_model"], "question": "the names of models.", "question_toks": ["the", "names", "of", "models", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": [], "source": "SIMPLIFIED", "parents_id": "train_1023", "is_simplification": true, "simplifications_tags": ["WHERE_MONO"]}, {"id": "dev_0965", "db_id": "dog_kennels", "query": "select date_arrived , date_departed from dogs", "query_toks": ["SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs"], "query_toks_no_value": ["select", "date_arrived", ",", "date_departed", "from", "dogs"], "question": "List the arrival date and the departure date for all the dogs.", "question_toks": ["List", "the", "arrival", "date", "and", "the", "departure", "date", "for", "all", "the", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4803", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "``", "London", "Heathrow", "''"], "query_toks_no_value": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "value"], "question": "What are the number of international and domestic passengers of the airport named London \"Heathrow\"?", "question_toks": ["What", "are", "the", "number", "of", "international", "and", "domestic", "passengers", "of", "the", "airport", "named", "London", "``", "Heathrow", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"London Heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4804", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "``", "London", "Heathrow", "''"], "query_toks_no_value": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "value"], "question": "How many international and domestic passengers are there in the airport London Heathrow?", "question_toks": ["How", "many", "international", "and", "domestic", "passengers", "are", "there", "in", "the", "airport", "London", "Heathrow", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"London Heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HOW_MANY_NOTHING", "HOW_MANY", "COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0134", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip where start_date like \"8/%\" group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "value", "group", "by", "start_station_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the start station's name and id for the one that had the most start trips in August?", "question_toks": ["What", "are", "the", "start", "station", "'s", "name", "and", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "in", "August", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"8/%\"", null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME", "COLUMN_OVERLAPPING", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5667", "db_id": "customers_and_products_contacts", "query": "select product_type_code , product_name from products where product_price > 1000 or product_price < 500", "query_toks": ["SELECT", "product_type_code", ",", "product_name", "FROM", "products", "WHERE", "product_price", ">", "1000", "OR", "product_price", "<", "500"], "query_toks_no_value": ["select", "product_type_code", ",", "product_name", "from", "products", "where", "product_price", ">", "value", "or", "product_price", "<", "value"], "question": "Show the product type and name for the products with price higher than 1000 or lower than 500.", "question_toks": ["Show", "the", "product", "type", "and", "name", "for", "the", "products", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null], "or", [false, 4, [0, [0, 10, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0685", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers except select t1.customer_first_name , t1.customer_last_name from customers as t1 join accounts as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_first_name", ",", "T1.customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id"], "query_toks_no_value": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers", "except", "select", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Show the first names and last names of customers without any account.", "question_toks": ["Show", "the", "first", "names", "and", "last", "names", "of", "customers", "without", "any", "account", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ANY", "NEGATION_WITH_ANY_ALL", "COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0717", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id order by count(*) asc limit 1", "query_toks": ["SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "What is the customer id, first and last name with least number of accounts.", "question_toks": ["What", "is", "the", "customer", "id", ",", "first", "and", "last", "name", "with", "least", "number", "of", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0390", "db_id": "flight_1", "query": "select departure_date , arrival_date from flight where origin = \"los angeles\" and destination = \"honolulu\"", "query_toks": ["SELECT", "departure_date", ",", "arrival_date", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''"], "query_toks_no_value": ["select", "departure_date", ",", "arrival_date", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value"], "question": "What are the departure and arrival dates of all flights from LA to Honolulu?", "question_toks": ["What", "are", "the", "departure", "and", "arrival", "dates", "of", "all", "flights", "from", "LA", "to", "Honolulu", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0931", "db_id": "insurance_fnol", "query": "select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like \"%diana%\"", "query_toks": ["SELECT", "t2.date_opened", ",", "t2.date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "value"], "question": "Retrieve the open and close dates of all the policies associated with the customer whose name contains \"Diana\"", "question_toks": ["Retrieve", "the", "open", "and", "close", "dates", "of", "all", "the", "policies", "associated", "with", "the", "customer", "whose", "name", "contains", "``", "Diana", "''"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0932", "db_id": "insurance_fnol", "query": "select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like \"%diana%\"", "query_toks": ["SELECT", "t2.date_opened", ",", "t2.date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "value"], "question": "What are the open and close dates of all the policies used by the customer who have \"Diana\" in part of their names?", "question_toks": ["What", "are", "the", "open", "and", "close", "dates", "of", "all", "the", "policies", "used", "by", "the", "customer", "who", "have", "``", "Diana", "''", "in", "part", "of", "their", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2045", "db_id": "party_people", "query": "select minister , took_office , left_office from party order by left_office", "query_toks": ["SELECT", "minister", ",", "took_office", ",", "left_office", "FROM", "party", "ORDER", "BY", "left_office"], "query_toks_no_value": ["select", "minister", ",", "took_office", ",", "left_office", "from", "party", "order", "by", "left_office"], "question": "Show the ministers and the time they took and left office, listed by the time they left office.", "question_toks": ["Show", "the", "ministers", "and", "the", "time", "they", "took", "and", "left", "office", ",", "listed", "by", "the", "time", "they", "left", "office", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1293", "db_id": "soccer_1", "query": "select t1.name , t2.name from country as t1 join league as t2 on t1.id = t2.country_id", "query_toks": ["SELECT", "T1.name", ",", "T2.name", "FROM", "Country", "AS", "T1", "JOIN", "League", "AS", "T2", "ON", "T1.id", "=", "T2.country_id"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "name", "from", "country", "as", "t1", "join", "league", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "country_id"], "question": "List all country and league names.", "question_toks": ["List", "all", "country", "and", "league", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 55, false], null], [0, 53, false], null]]}, "select": [false, [[0, [0, [0, 56, false], null]], [0, [0, [0, 54, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0347", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code , template_type_description from ref_template_types", "query_toks": ["SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types"], "query_toks_no_value": ["select", "template_type_code", ",", "template_type_description", "from", "ref_template_types"], "question": "Show all template type codes and descriptions.", "question_toks": ["Show", "all", "template", "type", "codes", "and", "descriptions", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0348", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code , template_type_description from ref_template_types", "query_toks": ["SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types"], "query_toks_no_value": ["select", "template_type_code", ",", "template_type_description", "from", "ref_template_types"], "question": "What are the type codes and descriptions for all template types?", "question_toks": ["What", "are", "the", "type", "codes", "and", "descriptions", "for", "all", "template", "types", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0363", "db_id": "cre_Doc_Template_Mgt", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", "question_toks": ["Show", "all", "paragraph", "ids", "and", "texts", "for", "the", "document", "with", "name", "'Welcome", "to", "NY", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"Welcome to NY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0373", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the document id and name with greatest number of paragraphs?", "question_toks": ["What", "is", "the", "document", "id", "and", "name", "with", "greatest", "number", "of", "paragraphs", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1", "COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0556", "db_id": "student_transcripts_tracking", "query": "select first_name , middle_name , last_name from students order by date_first_registered asc limit 1", "query_toks": ["SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_first_registered", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_first_registered", "asc", "limit", "value"], "question": "What is the first, middle, and last name of the first student to register?", "question_toks": ["What", "is", "the", "first", ",", "middle", ",", "and", "last", "name", "of", "the", "first", "student", "to", "register", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 41, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0455", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "question": "List the first and last name of all players in the order of birth date.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "in", "the", "order", "of", "birth", "date", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1222", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_start_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.apt_type_code = \"duplex\"", "query_toks": ["SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.apt_type_code", "=", "``", "Duplex", "''"], "query_toks_no_value": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "value"], "question": "What are the booking start and end dates of the apartments with type code \"Duplex\"?", "question_toks": ["What", "are", "the", "booking", "start", "and", "end", "dates", "of", "the", "apartments", "with", "type", "code", "``", "Duplex", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Duplex\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1223", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_start_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.apt_type_code = \"duplex\"", "query_toks": ["SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.apt_type_code", "=", "``", "Duplex", "''"], "query_toks_no_value": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "value"], "question": "Return the booking start date and end date for the apartments that have type code \"Duplex\".", "question_toks": ["Return", "the", "booking", "start", "date", "and", "end", "date", "for", "the", "apartments", "that", "have", "type", "code", "``", "Duplex", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Duplex\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3115", "db_id": "behavior_monitoring", "query": "select t1.datetime_detention_start , datetime_detention_end from detention as t1 join teachers as t2 on t1.teacher_id = t2.teacher_id where t2.last_name = \"schultz\"", "query_toks": ["SELECT", "T1.datetime_detention_start", ",", "datetime_detention_end", "FROM", "Detention", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "WHERE", "T2.last_name", "=", "``", "Schultz", "''"], "query_toks_no_value": ["select", "t1", ".", "datetime_detention_start", ",", "datetime_detention_end", "from", "detention", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t2", ".", "last_name", "=", "value"], "question": "Find the start and end dates of detentions of teachers with last name \"Schultz\".", "question_toks": ["Find", "the", "start", "and", "end", "dates", "of", "detentions", "of", "teachers", "with", "last", "name", "``", "Schultz", "''", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 51, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 52, false], null]], [0, [0, [0, 53, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"Schultz\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5806", "db_id": "customer_complaints", "query": "select address_line_1 , address_line_2 from customers where email_address = \"vbogisich@example.org\"", "query_toks": ["SELECT", "address_line_1", ",", "address_line_2", "FROM", "customers", "WHERE", "email_address", "=", "``", "vbogisich", "@", "example.org", "''"], "query_toks_no_value": ["select", "address_line_1", ",", "address_line_2", "from", "customers", "where", "email_address", "=", "value"], "question": "Find the address line 1 and 2 of the customer with email \"vbogisich@example.org\".", "question_toks": ["Find", "the", "address", "line", "1", "and", "2", "of", "the", "customer", "with", "email", "``", "vbogisich", "@", "example.org", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"vbogisich@example.org\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0000", "db_id": "concert_singer", "query": "select song_name , song_release_year from singer order by age limit 1", "query_toks": ["SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1"], "question": "Show the song name and release year by the youngest singer.", "question_toks": ["Show", "the", "song", "name", "and", "release", "year", "by", "the", "youngest", "singer", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0001", "db_id": "concert_singer", "query": "select song_name , song_release_year from singer order by age limit 1", "query_toks": ["SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "song_name", ",", "song_release_year", "FROM", "singer", "ORDER", "BY", "age", "LIMIT", "1"], "question": "What are the song name and release year of the youngest singer?", "question_toks": ["What", "are", "the", "song", "name", "and", "release", "year", "of", "the", "youngest", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0002", "db_id": "cre_Doc_Template_Mgt", "query": "select document_id , document_name , document_description from documents", "query_toks": ["SELECT", "document_id", ",", "document_name", ",", "document_description", "FROM", "Documents"], "query_toks_no_value": ["SELECT", "document_id", ",", "document_name", ",", "document_description", "FROM", "Documents"], "question": "List document IDs, names and descriptions for all documents.", "question_toks": ["List", "document", "IDs", ",", "names", "and", "descriptions", "for", "all", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0003", "db_id": "dog_kennels", "query": "select date_arrived , date_departed from dogs", "query_toks": ["SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs"], "query_toks_no_value": ["SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs"], "question": "What are the arriving and the departing date of all the dogs?", "question_toks": ["What", "are", "the", "arriving", "and", "the", "departing", "date", "of", "all", "the", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0005", "db_id": "dog_kennels", "query": "select first_name , last_name , email_address from owners where state like \"%north%\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners", "WHERE", "state", "LIKE", "\"%", "north", "%\""], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners", "WHERE", "state", "LIKE", "\"%", "north", "%\""], "question": "Return the email, first and last names of the owners living in a state whose name contains the substring 'North'.", "question_toks": ["Return", "the", "email", ",", "first", "and", "last", "names", "of", "the", "owners", "living", "in", "a", "state", "whose", "name", "contains", "the", "substring", "'", "North", "'."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%north%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0008", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_end_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.bedroom_count > 2", "query_toks": ["SELECT", "T1", ".", "booking_start_date", ",", "T1", ".", "booking_end_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T2", ".", "bedroom_count", ">", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "booking_start_date", ",", "T1", ".", "booking_end_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1", ".", "apt_id", "=", "T2", ".", "apt_id", "WHERE", "T2", ".", "bedroom_count", ">", "value"], "question": "What are the booking start and end dates of the apartments with more than two bedrooms?", "question_toks": ["What", "are", "the", "booking", "start", "and", "end", "dates", "of", "the", "apartments", "with", "more", "than", "two", "bedrooms", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 27, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0014", "db_id": "game_injury", "query": "select name , average_attendance , total_attendance from stadium except select t2.name , t2.average_attendance , t2.total_attendance from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id", "query_toks": ["SELECT", "name", ",", "average_attendance", ",", "total_attendance", "FROM", "stadium", "EXCEPT", "SELECT", "T2", ".", "name", ",", "T2", ".", "average_attendance", ",", "T2", ".", "total_attendance", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id"], "query_toks_no_value": ["SELECT", "name", ",", "average_attendance", ",", "total_attendance", "FROM", "stadium", "EXCEPT", "SELECT", "T2", ".", "name", ",", "T2", ".", "average_attendance", ",", "T2", ".", "total_attendance", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id"], "question": "Show the name, average and total attendance for stadiums where no accidents happened.", "question_toks": ["Show", "the", "name", ",", "average", "and", "total", "attendance", "for", "stadiums", "where", "no", "accidents", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0154", "db_id": "bike_1", "query": "select date , zip_code from weather where max_temperature_f >= 80", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">", "=", "80"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">", "=", "value"], "question": "What zip codes have a station with a max temperature greater than or equal to 80 and when did it reach that temperature?", "question_toks": ["What", "zip", "codes", "have", "a", "station", "with", "a", "max", "temperature", "greater", "than", "or", "equal", "to", "80", "and", "when", "did", "it", "reach", "that", "temperature", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1833", "db_id": "browser_web", "query": "select t1.id , t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["SELECT", "T1.id", ",", "T1.Name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and names of the web accelerators that are compatible with two or more browsers?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "web", "accelerators", "that", "are", "compatible", "with", "two", "or", "more", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0870", "db_id": "chinook_1", "query": "select t1.firstname , t1.supportrepid from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) >= 10", "query_toks": ["SELECT", "T1.FirstName", ",", "T1.SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "10"], "query_toks_no_value": ["select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the first names and support rep ids for employees serving 10 or more customers?", "question_toks": ["What", "are", "the", "first", "names", "and", "support", "rep", "ids", "for", "employees", "serving", "10", "or", "more", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_WITH_OR_COMPARE_REMOVED", "NON_STRICT_INEQUALITY", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0876", "db_id": "chinook_1", "query": "select t2.name , t1.artistid from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t1.artistid having count(*) >= 3 order by t2.name", "query_toks": ["SELECT", "T2.Name", ",", "T1.ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistID", "GROUP", "BY", "T1.ArtistId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3", "ORDER", "BY", "T2.Name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(", "*", ")", ">", "=", "value", "order", "by", "t2", ".", "name"], "question": "What are the names and ids of artists with 3 or more albums, listed in alphabetical order?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "artists", "with", "3", "or", "more", "albums", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0024", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "=", "value", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "DEJOIN_TOTAL", "NON_STRICT_INEQUALITY", "AND_WITH_OR_IN_NL", "ORDER_BY_COUNT", "_AND_WITH_OR_COLUMN_REMOVED", "_HOW_MANY_MAX", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1572", "db_id": "customers_and_invoices", "query": "select t2.customer_first_name , t1.customer_id from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T2.customer_first_name", ",", "T1.customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the first names and ids for customers who have two or more accounts?", "question_toks": ["What", "are", "the", "first", "names", "and", "ids", "for", "customers", "who", "have", "two", "or", "more", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_WITH_OR_COMPARE_REMOVED", "NON_STRICT_INEQUALITY", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1594", "db_id": "customers_and_invoices", "query": "select t1.account_id , t2.account_name from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id group by t1.account_id having count(*) >= 4", "query_toks": ["SELECT", "T1.account_id", ",", "T2.account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.account_id", "=", "T2.account_id", "GROUP", "BY", "T1.account_id", "HAVING", "count", "(", "*", ")", ">", "=", "4"], "query_toks_no_value": ["select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and names of accounts with 4 or more transactions?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "accounts", "with", "4", "or", "more", "transactions", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [[false, 5, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0933", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the id, role, and first name of the professionals who have performed two or more treatments?", "question_toks": ["What", "are", "the", "id", ",", "role", ",", "and", "first", "name", "of", "the", "professionals", "who", "have", "performed", "two", "or", "more", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "NON_STRICT_INEQUALITY", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3809", "db_id": "e_learning", "query": "select t1.address_line_1 , t2.author_id from course_authors_and_tutors as t1 join courses as t2 on t1.author_id = t2.author_id group by t2.author_id having count(*) >= 2", "query_toks": ["SELECT", "T1.address_line_1", ",", "T2.author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "GROUP", "BY", "T2.author_id", "HAVING", "Count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "address_line_1", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "group", "by", "t2", ".", "author_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which course authors teach two or more courses? Give me their addresses and author IDs.", "question_toks": ["Which", "course", "authors", "teach", "two", "or", "more", "courses", "?", "Give", "me", "their", "addresses", "and", "author", "IDs", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_WITH_OR_COMPARE_REMOVED", "NON_STRICT_INEQUALITY", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3466", "db_id": "hr_1", "query": "select * from job_history as t1 join employees as t2 on t1.employee_id = t2.employee_id where t2.salary >= 12000", "query_toks": ["SELECT", "*", "FROM", "job_history", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.employee_id", "=", "T2.employee_id", "WHERE", "T2.salary", ">", "=", "12000"], "query_toks_no_value": ["select", "*", "from", "job_history", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "where", "t2", ".", "salary", ">", "=", "value"], "question": "What is all the job history info done by employees earning a salary greater than or equal to 12000?", "question_toks": ["What", "is", "all", "the", "job", "history", "info", "done", "by", "employees", "earning", "a", "salary", "greater", "than", "or", "equal", "to", "12000", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 21, false], null], 12000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5326", "db_id": "manufactory_1", "query": "select name from products where price <= 200", "query_toks": ["SELECT", "name", "FROM", "products", "WHERE", "price", "<", "=", "200"], "query_toks_no_value": ["select", "name", "from", "products", "where", "price", "<", "=", "value"], "question": "Select the name of the products with a price less than or equal to $200.", "question_toks": ["Select", "the", "name", "of", "the", "products", "with", "a", "price", "less", "than", "or", "equal", "to", "$", "200", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 6, [0, [0, 8, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5334", "db_id": "manufactory_1", "query": "select count(*) from products where price >= 180", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "price", ">", "=", "180"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "where", "price", ">", "=", "value"], "question": "Compute the number of products with a price larger than or equal to $180.", "question_toks": ["Compute", "the", "number", "of", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5336", "db_id": "manufactory_1", "query": "select name , price from products where price >= 180 order by price desc , name asc", "query_toks": ["SELECT", "name", ",", "price", "FROM", "products", "WHERE", "price", ">", "=", "180", "ORDER", "BY", "price", "DESC", ",", "name", "ASC"], "query_toks_no_value": ["select", "name", ",", "price", "from", "products", "where", "price", ">", "=", "value", "order", "by", "price", "desc", ",", "name", "asc"], "question": "Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).", "question_toks": ["Select", "the", "name", "and", "price", "of", "all", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", ")", ",", "and", "then", "by", "name", "(", "in", "ascending", "order", ")", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null], [0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5344", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) >= 150", "query_toks": ["SELECT", "avg", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name", "HAVING", "avg", "(", "T1.price", ")", ">", "=", "150"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">", "=", "value"], "question": "Select the names of manufacturer whose products have an average price higher than or equal to $150.", "question_toks": ["Select", "the", "names", "of", "manufacturer", "whose", "products", "have", "an", "average", "price", "higher", "than", "or", "equal", "to", "$", "150", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5345", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) >= 150", "query_toks": ["SELECT", "avg", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name", "HAVING", "avg", "(", "T1.price", ")", ">", "=", "150"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">", "=", "value"], "question": "What are the names and average prices of products for manufacturers whose products cost on average 150 or more?", "question_toks": ["What", "are", "the", "names", "and", "average", "prices", "of", "products", "for", "manufacturers", "whose", "products", "cost", "on", "average", "150", "or", "more", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0949", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["SELECT", "T1.id", ",", "T1.Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and names of the medicine that can interact with two or more enzymes?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "medicine", "that", "can", "interact", "with", "two", "or", "more", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1896", "db_id": "school_finance", "query": "select t2.school_name from endowment as t1 join school as t2 on t1.school_id = t2.school_id group by t1.school_id having sum(t1.amount) <= 10", "query_toks": ["SELECT", "T2.school_name", "FROM", "endowment", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "GROUP", "BY", "T1.school_id", "HAVING", "sum", "(", "T1.amount", ")", "<", "=", "10"], "query_toks_no_value": ["select", "t2", ".", "school_name", "from", "endowment", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "group", "by", "t1", ".", "school_id", "having", "sum", "(", "t1", ".", "amount", ")", "<", "=", "value"], "question": "List all the names of schools with an endowment amount smaller than or equal to 10.", "question_toks": ["List", "all", "the", "names", "of", "schools", "with", "an", "endowment", "amount", "smaller", "than", "or", "equal", "to", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [[false, 6, [0, [4, 19, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2701", "db_id": "storm_record", "query": "select name , dates_active , number_deaths from storm where number_deaths >= 1", "query_toks": ["SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm", "WHERE", "number_deaths", ">", "=", "1"], "query_toks_no_value": ["select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm", "where", "number_deaths", ">", "=", "value"], "question": "What are the names, dates active, and number of deaths for storms that had 1 or more death?", "question_toks": ["What", "are", "the", "names", ",", "dates", "active", ",", "and", "number", "of", "deaths", "for", "storms", "that", "had", "1", "or", "more", "death", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 5, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_non_strict_inequality_0004", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema where openning_year >= 2011", "query_toks": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">=", "2011"], "query_toks_no_value": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">=", "value"], "question": "Show average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_non_strict_inequality_0006", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<=", "value", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "question": "Return title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.", "question_toks": ["Return", "title", "and", "director", "of", "the", "movie", "released", "in", "the", "year", "2000", "or", "earlier", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_non_strict_inequality_0007", "db_id": "customers_and_invoices", "query": "select t2.order_id , t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) >= 2", "query_toks": ["SELECT", "T2", ".", "order_id", ",", "T2", ".", "order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1", ".", "order_id", "=", "T2", ".", "order_id", "GROUP", "BY", "T2", ".", "order_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T2", ".", "order_id", ",", "T2", ".", "order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1", ".", "order_id", "=", "T2", ".", "order_id", "GROUP", "BY", "T2", ".", "order_id", "HAVING", "count", "(*)", ">=", "2"], "question": "Return the order ids and details for the orderes with 2 or more invoices.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "the", "orderes", "with", "2", "or", "more", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_non_strict_inequality_0013", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2", "EXCEPT", "SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2", "EXCEPT", "SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "question": "Give me the the customers details and id for the customers who had two or more policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customers", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "or", "more", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NON_STRICT_INEQUALITY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0850", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format order by count(*) asc", "query_toks": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(", "*", ")", "asc"], "question": "Please show the record formats of orchestras in ascending order of count.", "question_toks": ["Please", "show", "the", "record", "formats", "of", "orchestras", "in", "ascending", "order", "of", "count", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0851", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format order by count(*) asc", "query_toks": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(", "*", ")", "asc"], "question": "What are the major record formats of orchestras, sorted by their frequency?", "question_toks": ["What", "are", "the", "major", "record", "formats", "of", "orchestras", ",", "sorted", "by", "their", "frequency", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_REFORMULATION_SYNONYM", "ORDER_BY_COUNT", "SYNONYMS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1254", "db_id": "apartment_rentals", "query": "select apt_type_code , count(*) from apartments group by apt_type_code order by count(*) asc", "query_toks": ["SELECT", "apt_type_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "apt_type_code", ",", "count", "(", "*", ")", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "asc"], "question": "Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.", "question_toks": ["Show", "the", "apartment", "type", "codes", "and", "the", "corresponding", "number", "of", "apartments", "sorted", "by", "the", "number", "of", "apartments", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1255", "db_id": "apartment_rentals", "query": "select apt_type_code , count(*) from apartments group by apt_type_code order by count(*) asc", "query_toks": ["SELECT", "apt_type_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "apt_type_code", ",", "count", "(", "*", ")", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "asc"], "question": "Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments.", "question_toks": ["Return", "each", "apartment", "type", "code", "with", "the", "number", "of", "apartments", "having", "that", "apartment", "type", ",", "in", "ascending", "order", "of", "the", "number", "of", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1266", "db_id": "apartment_rentals", "query": "select gender_code , count(*) from guests group by gender_code order by count(*) desc", "query_toks": ["SELECT", "gender_code", ",", "COUNT", "(", "*", ")", "FROM", "Guests", "GROUP", "BY", "gender_code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "gender_code", ",", "count", "(", "*", ")", "from", "guests", "group", "by", "gender_code", "order", "by", "count", "(", "*", ")", "desc"], "question": "Show each gender code and the corresponding count of guests sorted by the count in descending order.", "question_toks": ["Show", "each", "gender", "code", "and", "the", "corresponding", "count", "of", "guests", "sorted", "by", "the", "count", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1267", "db_id": "apartment_rentals", "query": "select gender_code , count(*) from guests group by gender_code order by count(*) desc", "query_toks": ["SELECT", "gender_code", ",", "COUNT", "(", "*", ")", "FROM", "Guests", "GROUP", "BY", "gender_code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "gender_code", ",", "count", "(", "*", ")", "from", "guests", "group", "by", "gender_code", "order", "by", "count", "(", "*", ")", "desc"], "question": "Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts.", "question_toks": ["Sort", "the", "gender", "codes", "in", "descending", "order", "of", "their", "corresponding", "number", "of", "guests", ".", "Return", "both", "the", "gender", "codes", "and", "counts", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3647", "db_id": "baseball_1", "query": "select t1.name_first , t1.name_last , t1.player_id from player as t1 join player_award as t2 on t1.player_id = t2.player_id group by t1.player_id order by count(*) desc limit 3;", "query_toks": ["SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", ";"], "query_toks_no_value": ["select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which 3 players won the most player awards? List their full name and id.", "question_toks": ["Which", "3", "players", "won", "the", "most", "player", "awards", "?", "List", "their", "full", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 16], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 182, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [[0, 182, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["_REFORMULATION_SYNONYM", "ORDER_BY_COUNT", "SYNONYMS", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3648", "db_id": "baseball_1", "query": "select t1.name_first , t1.name_last , t1.player_id from player as t1 join player_award as t2 on t1.player_id = t2.player_id group by t1.player_id order by count(*) desc limit 3;", "query_toks": ["SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", ";"], "query_toks_no_value": ["select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the first name, last name and id for the top three players won the most player awards.", "question_toks": ["Find", "the", "first", "name", ",", "last", "name", "and", "id", "for", "the", "top", "three", "players", "won", "the", "most", "player", "awards", "."], "sql": {"from": {"table_units": [["table_unit", 16], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 182, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [[0, 182, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3649", "db_id": "baseball_1", "query": "select birth_country from player group by birth_country order by count(*) asc limit 3;", "query_toks": ["SELECT", "birth_country", "FROM", "player", "GROUP", "BY", "birth_country", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "3", ";"], "query_toks_no_value": ["select", "birth_country", "from", "player", "group", "by", "birth_country", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "List three countries which are the origins of the least players.", "question_toks": ["List", "three", "countries", "which", "are", "the", "origins", "of", "the", "least", "players", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 186, false], null]]]], "where": [], "groupBy": [[0, 186, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3105", "db_id": "behavior_monitoring", "query": "select t1.teacher_id , t2.first_name from assessment_notes as t1 join teachers as t2 on t1.teacher_id = t2.teacher_id group by t1.teacher_id order by count(*) desc limit 3", "query_toks": ["SELECT", "T1.teacher_id", ",", "T2.first_name", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "GROUP", "BY", "T1.teacher_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t1", ".", "teacher_id", ",", "t2", ".", "first_name", "from", "assessment_notes", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t1", ".", "teacher_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the ids and first names of the 3 teachers that have the most number of assessment notes?", "question_toks": ["Find", "the", "ids", "and", "first", "names", "of", "the", "3", "teachers", "that", "have", "the", "most", "number", "of", "assessment", "notes", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]], [0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 37, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3305", "db_id": "college_1", "query": "select t2.dept_name , t2.dept_address , count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.dept_name", ",", "T2.dept_address", ",", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the name, address, number of students in the departments that have the top 3 highest number of students.", "question_toks": ["Find", "the", "name", ",", "address", ",", "number", "of", "students", "in", "the", "departments", "that", "have", "the", "top", "3", "highest", "number", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3306", "db_id": "college_1", "query": "select t2.dept_name , t2.dept_address , count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.dept_name", ",", "T2.dept_address", ",", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name, address, and number of students in the departments that have the 3 most students?", "question_toks": ["What", "is", "the", "name", ",", "address", ",", "and", "number", "of", "students", "in", "the", "departments", "that", "have", "the", "3", "most", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4679", "db_id": "college_3", "query": "select t2.fname , t2.lname from course as t1 join faculty as t2 on t1.instructor = t2.facid group by t1.instructor order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "GROUP", "BY", "T1.Instructor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the first and last names of the instructors who teach the top 3 number of courses?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "the", "instructors", "who", "teach", "the", "top", "3", "number", "of", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4680", "db_id": "college_3", "query": "select t2.fname , t2.lname from course as t1 join faculty as t2 on t1.instructor = t2.facid group by t1.instructor order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "GROUP", "BY", "T1.Instructor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the full names of the 3 instructors who teach the most courses?", "question_toks": ["What", "are", "the", "full", "names", "of", "the", "3", "instructors", "who", "teach", "the", "most", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "SYNONYMS", "_HOW_MANY_AVG", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4571", "db_id": "company_office", "query": "select industry from companies group by industry order by count(*) desc", "query_toks": ["SELECT", "Industry", "FROM", "Companies", "GROUP", "BY", "Industry", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "industry", "from", "companies", "group", "by", "industry", "order", "by", "count", "(", "*", ")", "desc"], "question": "Please show the industries of companies in descending order of the number of companies.", "question_toks": ["Please", "show", "the", "industries", "of", "companies", "in", "descending", "order", "of", "the", "number", "of", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5810", "db_id": "customer_complaints", "query": "select t1.first_name from staff as t1 join complaints as t2 on t1.staff_id = t2.staff_id group by t2.staff_id order by count(*) limit 5", "query_toks": ["SELECT", "t1.first_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "GROUP", "BY", "t2.staff_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "5"], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t2", ".", "staff_id", "order", "by", "count", "(", "*", ")", "limit", "value"], "question": "What is first names of the top 5 staff who have handled the greatest number of complaints?", "question_toks": ["What", "is", "first", "names", "of", "the", "top", "5", "staff", "who", "have", "handled", "the", "greatest", "number", "of", "complaints", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 31, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 5, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5811", "db_id": "customer_complaints", "query": "select t1.first_name from staff as t1 join complaints as t2 on t1.staff_id = t2.staff_id group by t2.staff_id order by count(*) limit 5", "query_toks": ["SELECT", "t1.first_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "GROUP", "BY", "t2.staff_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "5"], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t2", ".", "staff_id", "order", "by", "count", "(", "*", ")", "limit", "value"], "question": "Return the first names of the 5 staff members who have handled the most complaints.", "question_toks": ["Return", "the", "first", "names", "of", "the", "5", "staff", "members", "who", "have", "handled", "the", "most", "complaints", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 31, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 5, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4741", "db_id": "department_store", "query": "select dept_store_chain_id from department_stores group by dept_store_chain_id order by count(*) desc limit 2", "query_toks": ["SELECT", "dept_store_chain_id", "FROM", "department_stores", "GROUP", "BY", "dept_store_chain_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "2"], "query_toks_no_value": ["select", "dept_store_chain_id", "from", "department_stores", "group", "by", "dept_store_chain_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the ids of the two department store chains with the largest number of department stores?", "question_toks": ["What", "are", "the", "ids", "of", "the", "two", "department", "store", "chains", "with", "the", "largest", "number", "of", "department", "stores", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 35, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 2, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4742", "db_id": "department_store", "query": "select dept_store_chain_id from department_stores group by dept_store_chain_id order by count(*) desc limit 2", "query_toks": ["SELECT", "dept_store_chain_id", "FROM", "department_stores", "GROUP", "BY", "dept_store_chain_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "2"], "query_toks_no_value": ["select", "dept_store_chain_id", "from", "department_stores", "group", "by", "dept_store_chain_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the ids of the two department store chains with the most department stores.", "question_toks": ["Return", "the", "ids", "of", "the", "two", "department", "store", "chains", "with", "the", "most", "department", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 35, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 2, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5078", "db_id": "device", "query": "select software_platform from device group by software_platform order by count(*) desc", "query_toks": ["SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(", "*", ")", "desc"], "question": "Please show the software platforms of devices in descending order of the count.", "question_toks": ["Please", "show", "the", "software", "platforms", "of", "devices", "in", "descending", "order", "of", "the", "count", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5079", "db_id": "device", "query": "select software_platform from device group by software_platform order by count(*) desc", "query_toks": ["SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(", "*", ")", "desc"], "question": "What are the different software platforms for devices, ordered by frequency descending?", "question_toks": ["What", "are", "the", "different", "software", "platforms", "for", "devices", ",", "ordered", "by", "frequency", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4513", "db_id": "document_management", "query": "select document_name from documents group by document_type_code order by count(*) desc limit 3 intersect select document_name from documents group by document_structure_code order by count(*) desc limit 3", "query_toks": ["SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", "INTERSECT", "SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "document_name", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", "intersect", "select", "document_name", "from", "documents", "group", "by", "document_structure_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the list of documents that are both in the most three popular type and have the most three popular structure.", "question_toks": ["Find", "the", "list", "of", "documents", "that", "are", "both", "in", "the", "most", "three", "popular", "type", "and", "have", "the", "most", "three", "popular", "structure", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4514", "db_id": "document_management", "query": "select document_name from documents group by document_type_code order by count(*) desc limit 3 intersect select document_name from documents group by document_structure_code order by count(*) desc limit 3", "query_toks": ["SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", "INTERSECT", "SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "document_name", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", "intersect", "select", "document_name", "from", "documents", "group", "by", "document_structure_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the names of documents that have both one of the three most common types and one of three most common structures?", "question_toks": ["What", "are", "the", "names", "of", "documents", "that", "have", "both", "one", "of", "the", "three", "most", "common", "types", "and", "one", "of", "three", "most", "common", "structures", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3800", "db_id": "e_learning", "query": "select test_result , count(*) from student_tests_taken group by test_result order by count(*) desc", "query_toks": ["SELECT", "test_result", ",", "COUNT", "(", "*", ")", "FROM", "Student_Tests_Taken", "GROUP", "BY", "test_result", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "test_result", ",", "count", "(", "*", ")", "from", "student_tests_taken", "group", "by", "test_result", "order", "by", "count", "(", "*", ")", "desc"], "question": "List each test result and its count in descending order of count.", "question_toks": ["List", "each", "test", "result", "and", "its", "count", "in", "descending", "order", "of", "count", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3816", "db_id": "e_learning", "query": "select t1.subject_id , t2.subject_name , count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id order by count(*) asc", "query_toks": ["SELECT", "T1.subject_id", ",", "T2.subject_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "GROUP", "BY", "T1.subject_id", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id", "order", "by", "count", "(", "*", ")", "asc"], "question": "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.", "question_toks": ["Find", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "corresponding", "number", "of", "courses", "for", "each", "subject", ",", "and", "sort", "by", "the", "course", "count", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3817", "db_id": "e_learning", "query": "select t1.subject_id , t2.subject_name , count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id order by count(*) asc", "query_toks": ["SELECT", "T1.subject_id", ",", "T2.subject_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "GROUP", "BY", "T1.subject_id", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id", "order", "by", "count", "(", "*", ")", "asc"], "question": "List the subject ID, name of subject and the number of courses available for each subject in ascending order of the course counts.", "question_toks": ["List", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "number", "of", "courses", "available", "for", "each", "subject", "in", "ascending", "order", "of", "the", "course", "counts", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0044", "db_id": "farm", "query": "select status from city group by status order by count(*) asc", "query_toks": ["SELECT", "Status", "FROM", "city", "GROUP", "BY", "Status", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "status", "from", "city", "group", "by", "status", "order", "by", "count", "(", "*", ")", "asc"], "question": "Please show the different statuses, ordered by the number of cities that have each.", "question_toks": ["Please", "show", "the", "different", "statuses", ",", "ordered", "by", "the", "number", "of", "cities", "that", "have", "each", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0045", "db_id": "farm", "query": "select status from city group by status order by count(*) asc", "query_toks": ["SELECT", "Status", "FROM", "city", "GROUP", "BY", "Status", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "status", "from", "city", "group", "by", "status", "order", "by", "count", "(", "*", ")", "asc"], "question": "Return the different statuses of cities, ascending by frequency.", "question_toks": ["Return", "the", "different", "statuses", "of", "cities", ",", "ascending", "by", "frequency", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0433", "db_id": "flight_1", "query": "select t2.name from certificate as t1 join aircraft as t2 on t2.aid = t1.aid where t2.distance > 5000 group by t1.aid order by count(*) >= 5", "query_toks": ["SELECT", "T2.name", "FROM", "Certificate", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T2.aid", "=", "T1.aid", "WHERE", "T2.distance", ">", "5000", "GROUP", "BY", "T1.aid", "ORDER", "BY", "count", "(", "*", ")", ">", "=", "5"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "distance", ">", "value", "group", "by", "t1", ".", "aid", "order", "by", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.", "question_toks": ["Show", "the", "name", "and", "distance", "of", "the", "aircrafts", "with", "more", "than", "5000", "distance", "and", "which", "at", "least", "5", "people", "have", "its", "certificate", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6845", "db_id": "flight_4", "query": "select country , count(*) from airlines group by country order by count(*) desc", "query_toks": ["SELECT", "country", ",", "count", "(", "*", ")", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "country", ",", "count", "(", "*", ")", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc"], "question": "List all countries and their number of airlines in the descending order of number of airlines.", "question_toks": ["List", "all", "countries", "and", "their", "number", "of", "airlines", "in", "the", "descending", "order", "of", "number", "of", "airlines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6846", "db_id": "flight_4", "query": "select country , count(*) from airlines group by country order by count(*) desc", "query_toks": ["SELECT", "country", ",", "count", "(", "*", ")", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "country", ",", "count", "(", "*", ")", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc"], "question": "How many airlines operate out of each country in descending order?", "question_toks": ["How", "many", "airlines", "operate", "out", "of", "each", "country", "in", "descending", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2017", "db_id": "gas_company", "query": "select location , count(*) from gas_station group by location order by count(*)", "query_toks": ["SELECT", "LOCATION", ",", "count", "(", "*", ")", "FROM", "gas_station", "GROUP", "BY", "LOCATION", "ORDER", "BY", "count", "(", "*", ")"], "query_toks_no_value": ["select", "location", ",", "count", "(", "*", ")", "from", "gas_station", "group", "by", "location", "order", "by", "count", "(", "*", ")"], "question": "Show all locations and the number of gas stations in each location ordered by the count.", "question_toks": ["Show", "all", "locations", "and", "the", "number", "of", "gas", "stations", "in", "each", "location", "ordered", "by", "the", "count", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2018", "db_id": "gas_company", "query": "select location , count(*) from gas_station group by location order by count(*)", "query_toks": ["SELECT", "LOCATION", ",", "count", "(", "*", ")", "FROM", "gas_station", "GROUP", "BY", "LOCATION", "ORDER", "BY", "count", "(", "*", ")"], "query_toks_no_value": ["select", "location", ",", "count", "(", "*", ")", "from", "gas_station", "group", "by", "location", "order", "by", "count", "(", "*", ")"], "question": "For each location, how many gas stations are there in order?", "question_toks": ["For", "each", "location", ",", "how", "many", "gas", "stations", "are", "there", "in", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1098", "db_id": "match_season", "query": "select college from match_season group by college order by count(*) desc limit 3", "query_toks": ["SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "college", "from", "match_season", "group", "by", "college", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Show the top 3 most common colleges of players in match seasons.", "question_toks": ["Show", "the", "top", "3", "most", "common", "colleges", "of", "players", "in", "match", "seasons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0951", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name , t1.fda_approved from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id order by count(*) desc", "query_toks": ["SELECT", "T1.id", ",", "T1.Name", ",", "T1.FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc"], "question": "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "FDA", "approval", "status", "of", "medicines", "in", "descending", "order", "of", "the", "number", "of", "enzymes", "that", "it", "can", "interact", "with", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0952", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name , t1.fda_approved from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id order by count(*) desc", "query_toks": ["SELECT", "T1.id", ",", "T1.Name", ",", "T1.FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc"], "question": "What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?", "question_toks": ["What", "are", "the", "ids", ",", "names", ",", "and", "FDA", "approval", "status", "for", "medicines", "ordered", "by", "descending", "number", "of", "possible", "enzyme", "interactions", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3727", "db_id": "mountain_photos", "query": "select t1.name , count(*) from camera_lens as t1 join photos as t2 on t1.id = t2.camera_lens_id group by t1.id order by count(*)", "query_toks": ["SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "camera_lens", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.camera_lens_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "camera_lens", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "camera_lens_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")"], "question": "What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos.", "question_toks": ["What", "is", "the", "name", "of", "each", "camera", "lens", "and", "the", "number", "of", "photos", "taken", "by", "it", "?", "Order", "the", "result", "by", "the", "count", "of", "photos", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3609", "db_id": "music_1", "query": "select t1.artist_name , count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name order by count(*) desc limit 3", "query_toks": ["SELECT", "T1.artist_name", ",", "count", "(", "*", ")", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "GROUP", "BY", "T2.artist_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "count", "(", "*", ")", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "group", "by", "t2", ".", "artist_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the names and number of works of the three artists who have produced the most songs.", "question_toks": ["Find", "the", "names", "and", "number", "of", "works", "of", "the", "three", "artists", "who", "have", "produced", "the", "most", "songs", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6200", "db_id": "music_4", "query": "select result , count(*) from music_festival group by result order by count(*) desc", "query_toks": ["SELECT", "RESULT", ",", "COUNT", "(", "*", ")", "FROM", "music_festival", "GROUP", "BY", "RESULT", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "result", ",", "count", "(", "*", ")", "from", "music_festival", "group", "by", "result", "order", "by", "count", "(", "*", ")", "desc"], "question": "How many music festivals have had each kind of result, ordered descending by count?", "question_toks": ["How", "many", "music", "festivals", "have", "had", "each", "kind", "of", "result", ",", "ordered", "descending", "by", "count", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0537", "db_id": "store_1", "query": "select billing_country , count(*) from invoices group by billing_country order by count(*) desc limit 5;", "query_toks": ["SELECT", "billing_country", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";"], "query_toks_no_value": ["select", "billing_country", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "A list of the top 5 countries by number of invoices. List country name and number of invoices.", "question_toks": ["A", "list", "of", "the", "top", "5", "countries", "by", "number", "of", "invoices", ".", "List", "country", "name", "and", "number", "of", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 44, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 44, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 5, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6588", "db_id": "wine_1", "query": "select t2.winery from grapes as t1 join wine as t2 on t1.grape = t2.grape where t1.color = \"white\" group by t2.winery order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.Winery", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.GRAPE", "=", "T2.GRAPE", "WHERE", "T1.Color", "=", "``", "White", "''", "GROUP", "BY", "T2.Winery", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "winery", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value", "group", "by", "t2", ".", "winery", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which 3 wineries produce the most wines made from white grapes?", "question_toks": ["Which", "3", "wineries", "produce", "the", "most", "wines", "made", "from", "white", "grapes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"White\"", null]], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0025", "db_id": "concert_singer", "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1", "query_toks": ["select", "t2.name", ",", "t2.capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1.stadium_id", "=", "t2.stadium_id", "where", "t1.year", ">", "2013", "group", "by", "t2.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "value", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name and capacity of the stadium with the most concerts after 2013 ?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "of", "the", "stadium", "with", "the", "most", "concerts", "after", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], 2013.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "DEJOIN_TOTAL", "ORDER_BY_COUNT", "_HOW_MANY_MAX", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0930", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which owner owns the most dogs? List the owner id, first name and last name.", "question_toks": ["Which", "owner", "owns", "the", "most", "dogs", "?", "List", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "DEJOIN_TOTAL", "_JOIN_1", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0931", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the owner id, first name and last name of the owner who has the most dogs.", "question_toks": ["Return", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "of", "the", "owner", "who", "has", "the", "most", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "DEJOIN_TOTAL", "_JOIN_1", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0227", "db_id": "flight_2", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the code of airport that has fewest number of flights?", "question_toks": ["What", "is", "the", "code", "of", "airport", "that", "has", "fewest", "number", "of", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0421", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What are the id and name of the museum visited most times?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "museum", "visited", "most", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "DEJOIN_TOTAL", "_JOIN_1", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5512", "db_id": "voter_2", "query": "select city_code from student group by city_code order by count(*) desc limit 1", "query_toks": ["SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "city_code", "from", "student", "group", "by", "city_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the city_code of the city that the most students live in?", "question_toks": ["What", "is", "the", "city_code", "of", "the", "city", "that", "the", "most", "students", "live", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5513", "db_id": "voter_2", "query": "select city_code from student group by city_code order by count(*) desc limit 1", "query_toks": ["SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "city_code", "from", "student", "group", "by", "city_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the code of the city that has the most students.", "question_toks": ["Return", "the", "code", "of", "the", "city", "that", "has", "the", "most", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6563", "db_id": "wine_1", "query": "select t1.area from appellations as t1 join wine as t2 on t1.appelation = t2.appelation group by t2.appelation having t2.year < 2010 order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "GROUP", "BY", "T2.Appelation", "HAVING", "T2.year", "<", "2010", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "value", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the area of the appelation that produces the highest number of wines before the year of 2010?", "question_toks": ["What", "is", "the", "area", "of", "the", "appelation", "that", "produces", "the", "highest", "number", "of", "wines", "before", "the", "year", "of", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 4, [0, [0, 16, false], null], 2010.0, null]], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6564", "db_id": "wine_1", "query": "select t1.area from appellations as t1 join wine as t2 on t1.appelation = t2.appelation group by t2.appelation having t2.year < 2010 order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "GROUP", "BY", "T2.Appelation", "HAVING", "T2.year", "<", "2010", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "value", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the area for the appelation which produced the most wines prior to 2010?", "question_toks": ["What", "is", "the", "area", "for", "the", "appelation", "which", "produced", "the", "most", "wines", "prior", "to", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 4, [0, [0, 16, false], null], 2010.0, null]], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6597", "db_id": "wine_1", "query": "select t1.county from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t2.score > 90 group by t1.county order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T2.Score", ">", "90", "GROUP", "BY", "T1.County", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "value", "group", "by", "t1", ".", "county", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the county where produces the most number of wines with score higher than 90.", "question_toks": ["Find", "the", "county", "where", "produces", "the", "most", "number", "of", "wines", "with", "score", "higher", "than", "90", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 90.0, null]], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6598", "db_id": "wine_1", "query": "select t1.county from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t2.score > 90 group by t1.county order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T2.Score", ">", "90", "GROUP", "BY", "T1.County", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "value", "group", "by", "t1", ".", "county", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the county that produces the most wines scoring higher than 90?", "question_toks": ["What", "is", "the", "county", "that", "produces", "the", "most", "wines", "scoring", "higher", "than", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 90.0, null]], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5828", "db_id": "workshop_paper", "query": "select college from submission group by college order by count(*) desc limit 1", "query_toks": ["SELECT", "College", "FROM", "submission", "GROUP", "BY", "College", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "college", "from", "submission", "group", "by", "college", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Show the most common college of authors of submissions.", "question_toks": ["Show", "the", "most", "common", "college", "of", "authors", "of", "submissions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1872", "db_id": "wrestler", "query": "select reign from wrestler group by reign order by count(*) desc limit 1", "query_toks": ["SELECT", "Reign", "FROM", "wrestler", "GROUP", "BY", "Reign", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "reign", "from", "wrestler", "group", "by", "reign", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Please show the most common reigns of wrestlers.", "question_toks": ["Please", "show", "the", "most", "common", "reigns", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0698", "db_id": "voter_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the area code in which the most voters voted?", "question_toks": ["What", "is", "the", "area", "code", "in", "which", "the", "most", "voters", "voted", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "DEJOIN_TOTAL", "_JOIN_1", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0605", "db_id": "tvshow", "query": "select language , count(*) from tv_channel group by language order by count(*) asc limit 1;", "query_toks": ["SELECT", "LANGUAGE", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "language", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "language", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "List the language used least number of TV Channel. List language and number of TV Channel.", "question_toks": ["List", "the", "language", "used", "least", "number", "of", "TV", "Channel", ".", "List", "language", "and", "number", "of", "TV", "Channel", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0462", "db_id": "wta_1", "query": "select year from matches group by year order by count(*) desc limit 1", "query_toks": ["SELECT", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "year", "from", "matches", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which year had the most matches?", "question_toks": ["Which", "year", "had", "the", "most", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0463", "db_id": "wta_1", "query": "select winner_name , winner_rank_points from matches group by winner_name order by count(*) desc limit 1", "query_toks": ["SELECT", "winner_name", ",", "winner_rank_points", "FROM", "matches", "GROUP", "BY", "winner_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "winner_name", ",", "winner_rank_points", "from", "matches", "group", "by", "winner_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the name and rank points of the winner who won the most times.", "question_toks": ["Find", "the", "name", "and", "rank", "points", "of", "the", "winner", "who", "won", "the", "most", "times", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]]]], "where": [], "groupBy": [[0, 34, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0475", "db_id": "wta_1", "query": "select country_code from players group by country_code order by count(*) desc limit 1", "query_toks": ["SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "country_code", "from", "players", "group", "by", "country_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "find the code of the country where has the greatest number of players.", "question_toks": ["find", "the", "code", "of", "the", "country", "where", "has", "the", "greatest", "number", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3315", "db_id": "college_1", "query": "select t2.emp_fname , t4.prof_office , t3.crs_description , t5.dept_name from class as t1 join employee as t2 on t1.prof_num = t2.emp_num join course as t3 on t1.crs_code = t3.crs_code join professor as t4 on t2.emp_num = t4.emp_num join department as t5 on t4.dept_code = t5.dept_code", "query_toks": ["SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", ",", "T5.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num", "JOIN", "department", "AS", "T5", "ON", "T4.dept_code", "=", "T5.dept_code"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", ",", "t5", ".", "dept_name", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num", "join", "department", "as", "t5", "on", "t4", ".", "dept_code", "=", "t5", ".", "dept_code"], "question": "Find the first names and offices of all instructors who have taught some course and the course description and the department name.", "question_toks": ["Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course", "description", "and", "the", "department", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 1], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3316", "db_id": "college_1", "query": "select t2.emp_fname , t4.prof_office , t3.crs_description , t5.dept_name from class as t1 join employee as t2 on t1.prof_num = t2.emp_num join course as t3 on t1.crs_code = t3.crs_code join professor as t4 on t2.emp_num = t4.emp_num join department as t5 on t4.dept_code = t5.dept_code", "query_toks": ["SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", ",", "T5.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num", "JOIN", "department", "AS", "T5", "ON", "T4.dept_code", "=", "T5.dept_code"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", ",", "t5", ".", "dept_name", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num", "join", "department", "as", "t5", "on", "t4", ".", "dept_code", "=", "t5", ".", "dept_code"], "question": "What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?", "question_toks": ["What", "are", "the", "first", "names", ",", "office", "locations", ",", "and", "departments", "of", "all", "instructors", ",", "and", "also", "what", "are", "the", "descriptions", "of", "the", "courses", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 1], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0675", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "what kind of papers does Luke Zettlemoyer publish", "question_toks": ["what", "kind", "of", "papers", "does", "Luke", "Zettlemoyer", "publish"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0676", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "Keyphrases used by Luke Zettlemoyer", "question_toks": ["Keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0677", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "What keywords are in papers by Luke Zettlemoyer ?", "question_toks": ["What", "keywords", "are", "in", "papers", "by", "Luke", "Zettlemoyer", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0678", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keywords used by Luke Zettlemoyer", "question_toks": ["keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0679", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "what keywords are used by Luke Zettlemoyer", "question_toks": ["what", "keywords", "are", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0680", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0681", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keyphrases by Luke Zettlemoyer", "question_toks": ["keyphrases", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0682", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "give me the keywords used by Luke Zettlemoyer", "question_toks": ["give", "me", "the", "keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0683", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "What topic does Luke Zettlemoyer write about ?", "question_toks": ["What", "topic", "does", "Luke", "Zettlemoyer", "write", "about", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0684", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "what topics does Luke Zettlemoyer publish in", "question_toks": ["what", "topics", "does", "Luke", "Zettlemoyer", "publish", "in"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0685", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keywords in the papers written by Luke Zettlemoyer", "question_toks": ["keywords", "in", "the", "papers", "written", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0686", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer .", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0687", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "topics used by Luke Zettlemoyer", "question_toks": ["topics", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0744", "db_id": "scholar", "query": "select distinct t1.keyphrasename , t3.year from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"sanjeev arora\" order by t3.year desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "sanjeev", "arora", "''", "ORDER", "BY", "t3.year", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "order", "by", "t3", ".", "year", "desc"], "question": "recent research interests of sanjeev arora", "question_toks": ["recent", "research", "interests", "of", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0745", "db_id": "scholar", "query": "select distinct t1.keyphrasename , t3.year from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"sanjeev arora\" order by t3.year desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "sanjeev", "arora", "''", "ORDER", "BY", "t3.year", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "order", "by", "t3", ".", "year", "desc"], "question": "recent papers by sanjeev arora", "question_toks": ["recent", "papers", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0746", "db_id": "scholar", "query": "select distinct t1.keyphrasename , t3.year from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"sanjeev arora\" order by t3.year desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "sanjeev", "arora", "''", "ORDER", "BY", "t3.year", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "order", "by", "t3", ".", "year", "desc"], "question": "recent papers written by sanjeev arora", "question_toks": ["recent", "papers", "written", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0756", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "brian curless convolution paper", "question_toks": ["brian", "curless", "convolution", "paper"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0757", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "convolution by brian curless", "question_toks": ["convolution", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0758", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "papers by brian curless about convolution", "question_toks": ["papers", "by", "brian", "curless", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0759", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "brian curless 's paper about convolution", "question_toks": ["brian", "curless", "'s", "paper", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0760", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What are the papers of brian curless in convolution ?", "question_toks": ["What", "are", "the", "papers", "of", "brian", "curless", "in", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0761", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "papers brian curless wrote about convolution", "question_toks": ["papers", "brian", "curless", "wrote", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0762", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "brian curless 's papers on convolution", "question_toks": ["brian", "curless", "'s", "papers", "on", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0763", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What is the paper about convolution from brian curless ?", "question_toks": ["What", "is", "the", "paper", "about", "convolution", "from", "brian", "curless", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0764", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "papers by brian curless in convolution topic", "question_toks": ["papers", "by", "brian", "curless", "in", "convolution", "topic"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0765", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "I want the papers on keyphrase0 by brian curless", "question_toks": ["I", "want", "the", "papers", "on", "keyphrase0", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0766", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "convolution papers by brian curless", "question_toks": ["convolution", "papers", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0767", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What papers has brian curless written on convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "on", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0768", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What papers has brian curless written about convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "about", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0769", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "convolution paper by brian curless", "question_toks": ["convolution", "paper", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0770", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "Does brian curless do convolution ?", "question_toks": ["Does", "brian", "curless", "do", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0851", "db_id": "scholar", "query": "select distinct t2.datasetid , t4.year from paperdataset as t3 join dataset as t2 on t3.datasetid = t2.datasetid join paperkeyphrase as t1 on t1.paperid = t3.paperid join paper as t4 on t4.paperid = t3.paperid join keyphrase as t5 on t1.keyphraseid = t5.keyphraseid where t5.keyphrasename = \"deep learning\" order by t4.year asc;", "query_toks": ["SELECT", "DISTINCT", "t2.datasetid", ",", "t4.year", "FROM", "paperdataset", "AS", "t3", "JOIN", "dataset", "AS", "t2", "ON", "t3.datasetid", "=", "t2.datasetid", "JOIN", "paperkeyphrase", "AS", "t1", "ON", "t1.paperid", "=", "t3.paperid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "keyphrase", "AS", "t5", "ON", "t1.keyphraseid", "=", "t5.keyphraseid", "WHERE", "t5.keyphrasename", "=", "``", "deep", "learning", "''", "ORDER", "BY", "t4.year", "ASC", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "datasetid", ",", "t4", ".", "year", "from", "paperdataset", "as", "t3", "join", "dataset", "as", "t2", "on", "t3", ".", "datasetid", "=", "t2", ".", "datasetid", "join", "paperkeyphrase", "as", "t1", "on", "t1", ".", "paperid", "=", "t3", ".", "paperid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "keyphrase", "as", "t5", "on", "t1", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "where", "t5", ".", "keyphrasename", "=", "value", "order", "by", "t4", ".", "year", "asc"], "question": "what was the first deep learning paper ?", "question_toks": ["what", "was", "the", "first", "deep", "learning", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 8], ["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 5, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0852", "db_id": "scholar", "query": "select distinct t2.datasetid , t4.year from paperdataset as t3 join dataset as t2 on t3.datasetid = t2.datasetid join paperkeyphrase as t1 on t1.paperid = t3.paperid join paper as t4 on t4.paperid = t3.paperid join keyphrase as t5 on t1.keyphraseid = t5.keyphraseid where t5.keyphrasename = \"deep learning\" order by t4.year asc;", "query_toks": ["SELECT", "DISTINCT", "t2.datasetid", ",", "t4.year", "FROM", "paperdataset", "AS", "t3", "JOIN", "dataset", "AS", "t2", "ON", "t3.datasetid", "=", "t2.datasetid", "JOIN", "paperkeyphrase", "AS", "t1", "ON", "t1.paperid", "=", "t3.paperid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "keyphrase", "AS", "t5", "ON", "t1.keyphraseid", "=", "t5.keyphraseid", "WHERE", "t5.keyphrasename", "=", "``", "deep", "learning", "''", "ORDER", "BY", "t4.year", "ASC", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "datasetid", ",", "t4", ".", "year", "from", "paperdataset", "as", "t3", "join", "dataset", "as", "t2", "on", "t3", ".", "datasetid", "=", "t2", ".", "datasetid", "join", "paperkeyphrase", "as", "t1", "on", "t1", ".", "paperid", "=", "t3", ".", "paperid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "keyphrase", "as", "t5", "on", "t1", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "where", "t5", ".", "keyphrasename", "=", "value", "order", "by", "t4", ".", "year", "asc"], "question": "what year was the first deep learning paper published ?", "question_toks": ["what", "year", "was", "the", "first", "deep", "learning", "paper", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 8], ["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 5, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0914", "db_id": "scholar", "query": "select distinct count ( t5.citingpaperid ) from paperkeyphrase as t2 join keyphrase as t3 on t2.keyphraseid = t3.keyphraseid join writes as t4 on t4.paperid = t2.paperid join cite as t5 on t4.paperid = t5.citedpaperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"dan makumbi\" and t3.keyphrasename = \"genetic identity\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t5.citingpaperid", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t3", "ON", "t2.keyphraseid", "=", "t3.keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t2.paperid", "JOIN", "cite", "AS", "t5", "ON", "t4.paperid", "=", "t5.citedpaperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Dan", "Makumbi", "''", "AND", "t3.keyphrasename", "=", "``", "Genetic", "Identity", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t5", ".", "citingpaperid", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t3", "on", "t2", ".", "keyphraseid", "=", "t3", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "cite", "as", "t5", "on", "t4", ".", "paperid", "=", "t5", ".", "citedpaperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t3", ".", "keyphrasename", "=", "value"], "question": "How many citations does Dan Makumbi 's Genetic Identity paper have ?", "question_toks": ["How", "many", "citations", "does", "Dan", "Makumbi", "'s", "Genetic", "Identity", "paper", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Dan Makumbi\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Genetic Identity\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0921", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) from paperdataset as t3 join dataset as t2 on t3.datasetid = t2.datasetid join paper as t4 on t4.paperid = t3.paperid join paperkeyphrase as t1 on t4.paperid = t1.paperid join keyphrase as t5 on t1.keyphraseid = t5.keyphraseid where t2.datasetname = \"imagenet\" and t5.keyphrasename = \"deep learning\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", "FROM", "paperdataset", "AS", "t3", "JOIN", "dataset", "AS", "t2", "ON", "t3.datasetid", "=", "t2.datasetid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "paperkeyphrase", "AS", "t1", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "keyphrase", "AS", "t5", "ON", "t1.keyphraseid", "=", "t5.keyphraseid", "WHERE", "t2.datasetname", "=", "``", "ImageNet", "''", "AND", "t5.keyphrasename", "=", "``", "deep", "learning", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", "from", "paperdataset", "as", "t3", "join", "dataset", "as", "t2", "on", "t3", ".", "datasetid", "=", "t2", ".", "datasetid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "paperkeyphrase", "as", "t1", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "keyphrase", "as", "t5", "on", "t1", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "where", "t2", ".", "datasetname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "How many papers related to deep learning cited the dataset ImageNet ?", "question_toks": ["How", "many", "papers", "related", "to", "deep", "learning", "cited", "the", "dataset", "ImageNet", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 9, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"ImageNet\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0988", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname != \"chris dyer\" and t5.keyphrasename = \"syntactic parsing\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "AND", "t5.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "!", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "what are some syntactic parsing papers that chris dyer did not write ?", "question_toks": ["what", "are", "some", "syntactic", "parsing", "papers", "that", "chris", "dyer", "did", "not", "write", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0989", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname != \"chris dyer\" and t5.keyphrasename = \"syntactic parsing\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "AND", "t5.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "!", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "are there any syntactic parsing papers not written by chris dyer ?", "question_toks": ["are", "there", "any", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0990", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname != \"chris dyer\" and t5.keyphrasename = \"syntactic parsing\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "AND", "t5.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "!", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "what are syntactic parsing papers not written by chris dyer", "question_toks": ["what", "are", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0991", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname != \"chris dyer\" and t5.keyphrasename = \"syntactic parsing\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "AND", "t5.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "!", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "syntactic parsing papers not written by chris dyer", "question_toks": ["syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "NEGATION", "_NEGATION_NOT_EQUAL", "DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1032", "db_id": "scholar", "query": "select distinct count ( t5.citingpaperid ) from writes as t3 join author as t2 on t3.authorid = t2.authorid join cite as t5 on t3.paperid = t5.citedpaperid join writes as t4 on t4.paperid = t5.citingpaperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"michael i. jordan\" and t1.authorname = \"dan klein\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t5.citingpaperid", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "cite", "AS", "t5", "ON", "t3.paperid", "=", "t5.citedpaperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t5.citingpaperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "michael", "i.", "jordan", "''", "AND", "t1.authorname", "=", "``", "dan", "klein", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t5", ".", "citingpaperid", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "cite", "as", "t5", "on", "t3", ".", "paperid", "=", "t5", ".", "citedpaperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t5", ".", "citingpaperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "how many papers by dan klein are cited by michael i. jordan", "question_toks": ["how", "many", "papers", "by", "dan", "klein", "are", "cited", "by", "michael", "i.", "jordan"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael i. jordan\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"dan klein\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1033", "db_id": "scholar", "query": "select distinct count ( t5.citingpaperid ) from writes as t3 join author as t2 on t3.authorid = t2.authorid join cite as t5 on t3.paperid = t5.citedpaperid join writes as t4 on t4.paperid = t5.citingpaperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"michael i. jordan\" and t1.authorname = \"dan klein\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t5.citingpaperid", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "cite", "AS", "t5", "ON", "t3.paperid", "=", "t5.citedpaperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t5.citingpaperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "michael", "i.", "jordan", "''", "AND", "t1.authorname", "=", "``", "dan", "klein", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t5", ".", "citingpaperid", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "cite", "as", "t5", "on", "t3", ".", "paperid", "=", "t5", ".", "citedpaperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t5", ".", "citingpaperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "how many of dan klein 's papers cite michael i. jordan", "question_toks": ["how", "many", "of", "dan", "klein", "'s", "papers", "cite", "michael", "i.", "jordan"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael i. jordan\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"dan klein\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1034", "db_id": "scholar", "query": "select distinct t5.authorid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join writes as t5 on t5.paperid = t4.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"ameet soni\" and t1.authorname = \"ras bodik\";", "query_toks": ["SELECT", "DISTINCT", "t5.authorid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "writes", "AS", "t5", "ON", "t5.paperid", "=", "t4.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Ameet", "Soni", "''", "AND", "t1.authorname", "=", "``", "Ras", "Bodik", "''", ";"], "query_toks_no_value": ["select", "distinct", "t5", ".", "authorid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "writes", "as", "t5", "on", "t5", ".", "paperid", "=", "t4", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "who else was on the paper with Ameet Soni and Ras Bodik ?", "question_toks": ["who", "else", "was", "on", "the", "paper", "with", "Ameet", "Soni", "and", "Ras", "Bodik", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ameet Soni\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Ras Bodik\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1039", "db_id": "scholar", "query": "select distinct t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid join author as t5 on t3.authorid = t5.authorid where t2.keyphrasename = \"bacterial wilt\" and t4.year = 2016;", "query_toks": ["SELECT", "DISTINCT", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "JOIN", "author", "AS", "t5", "ON", "t3.authorid", "=", "t5.authorid", "WHERE", "t2.keyphrasename", "=", "``", "Bacterial", "Wilt", "''", "AND", "t4.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "join", "author", "as", "t5", "on", "t3", ".", "authorid", "=", "t5", ".", "authorid", "where", "t2", ".", "keyphrasename", "=", "value", "and", "t4", ".", "year", "=", "value"], "question": "What authors wrote papers about Bacterial Wilt in 2016 ?", "question_toks": ["What", "authors", "wrote", "papers", "about", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Bacterial Wilt\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1040", "db_id": "scholar", "query": "select distinct t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid join author as t5 on t3.authorid = t5.authorid where t2.keyphrasename = \"bacterial wilt\" and t4.year = 2016;", "query_toks": ["SELECT", "DISTINCT", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "JOIN", "author", "AS", "t5", "ON", "t3.authorid", "=", "t5.authorid", "WHERE", "t2.keyphrasename", "=", "``", "Bacterial", "Wilt", "''", "AND", "t4.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "join", "author", "as", "t5", "on", "t3", ".", "authorid", "=", "t5", ".", "authorid", "where", "t2", ".", "keyphrasename", "=", "value", "and", "t4", ".", "year", "=", "value"], "question": "Who wrote on the topic of Bacterial Wilt in 2016 ?", "question_toks": ["Who", "wrote", "on", "the", "topic", "of", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Bacterial Wilt\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1091", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "SUM", "(", "t3.numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Brian", "DeRenzi", "''", "GROUP", "BY", "t1.keyphrasename", "ORDER", "BY", "SUM", "(", "t3.numcitedby", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations ?", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Brian DeRenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1092", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "SUM", "(", "t3.numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Brian", "DeRenzi", "''", "GROUP", "BY", "t1.keyphrasename", "ORDER", "BY", "SUM", "(", "t3.numcitedby", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "question": "main topics of work by Brian DeRenzi", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Brian DeRenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1095", "db_id": "scholar", "query": "select distinct t3.year from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"michael stonebraker\" and t5.keyphrasename = \"gis database\";", "query_toks": ["SELECT", "DISTINCT", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Michael", "Stonebraker", "''", "AND", "t5.keyphrasename", "=", "``", "GIS", "Database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "When was Michael Stonebraker GIS Database published ?", "question_toks": ["When", "was", "Michael", "Stonebraker", "GIS", "Database", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Michael Stonebraker\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"GIS Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1096", "db_id": "scholar", "query": "select distinct t3.year from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"michael stonebraker\" and t5.keyphrasename = \"gis database\";", "query_toks": ["SELECT", "DISTINCT", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Michael", "Stonebraker", "''", "AND", "t5.keyphrasename", "=", "``", "GIS", "Database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "When did Michael Stonebraker publish his GIS Database paper ?", "question_toks": ["When", "did", "Michael", "Stonebraker", "publish", "his", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Michael Stonebraker\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"GIS Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1097", "db_id": "scholar", "query": "select distinct t3.year from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"michael stonebraker\" and t5.keyphrasename = \"gis database\";", "query_toks": ["SELECT", "DISTINCT", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Michael", "Stonebraker", "''", "AND", "t5.keyphrasename", "=", "``", "GIS", "Database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "When does Michael Stonebraker publish the GIS Database paper ?", "question_toks": ["When", "does", "Michael", "Stonebraker", "publish", "the", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Michael Stonebraker\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"GIS Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1105", "db_id": "scholar", "query": "select distinct t2.keyphraseid from paper as t3 join paperkeyphrase as t2 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid join writes as t5 on t5.paperid = t3.paperid join author as t1 on t5.authorid = t1.authorid where t1.authorname = \"dan klein\" and t4.venuename = \"emnlp\";", "query_toks": ["SELECT", "DISTINCT", "t2.keyphraseid", "FROM", "paper", "AS", "t3", "JOIN", "paperkeyphrase", "AS", "t2", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t5", "ON", "t5.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t5.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "dan", "klein", "''", "AND", "t4.venuename", "=", "``", "emnlp", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "keyphraseid", "from", "paper", "as", "t3", "join", "paperkeyphrase", "as", "t2", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t5", "on", "t5", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t5", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "keyphrases used by dan klein in his emnlp papers", "question_toks": ["keyphrases", "used", "by", "dan", "klein", "in", "his", "emnlp", "papers"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 8], ["table_unit", 0], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"dan klein\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"emnlp\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1110", "db_id": "scholar", "query": "select distinct t5.citingpaperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join cite as t5 on t2.paperid = t5.citingpaperid join paper as t3 on t3.paperid = t5.citedpaperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"euclidean distance\" and t4.venuename = \"nips\";", "query_toks": ["SELECT", "DISTINCT", "t5.citingpaperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "cite", "AS", "t5", "ON", "t2.paperid", "=", "t5.citingpaperid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t5.citedpaperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Euclidean", "Distance", "''", "AND", "t4.venuename", "=", "``", "NIPS", "''", ";"], "query_toks_no_value": ["select", "distinct", "t5", ".", "citingpaperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "cite", "as", "t5", "on", "t2", ".", "paperid", "=", "t5", ".", "citingpaperid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t5", ".", "citedpaperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "Euclidean Distance papers citing NIPS papers", "question_toks": ["Euclidean", "Distance", "papers", "citing", "NIPS", "papers"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 6], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Euclidean Distance\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"NIPS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1132", "db_id": "scholar", "query": "select distinct t3.title from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join writes as t4 on t4.paperid = t2.paperid join paper as t3 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname like \"ranjit jhala\" and t5.keyphrasename = \"liquid haskell\";", "query_toks": ["SELECT", "DISTINCT", "t3.title", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t2.paperid", "JOIN", "paper", "AS", "t3", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "LIKE", "``", "Ranjit", "Jhala", "''", "AND", "t5.keyphrasename", "=", "``", "Liquid", "Haskell", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "title", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "paper", "as", "t3", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "like", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What is the name of Ranjit Jhala 's Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "name", "of", "Ranjit", "Jhala", "'s", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"Ranjit Jhala\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Liquid Haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_REFORMULATION_SYNONYM", "SYNONYMS", "LIKE_IN_SQL", "DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1146", "db_id": "yelp", "query": "select t4.text from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join review as t4 on t4.business_id = t1.business_id join user as t5 on t5.user_id = t4.user_id where t2.category_name = \"italian\" and t3.category_name = \"category_category_name1\" and t5.name = \"michelle\";", "query_toks": ["SELECT", "t4.text", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "review", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "JOIN", "USER", "AS", "t5", "ON", "t5.user_id", "=", "t4.user_id", "WHERE", "t2.category_name", "=", "``", "Italian", "''", "AND", "t3.category_name", "=", "``", "category_category_name1", "''", "AND", "t5.name", "=", "``", "Michelle", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "text", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "review", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "join", "user", "as", "t5", "on", "t5", ".", "user_id", "=", "t4", ".", "user_id", "where", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "and", "t5", ".", "name", "=", "value"], "question": "List all the reviews by Michelle for Italian restaurant", "question_toks": ["List", "all", "the", "reviews", "by", "Michelle", "for", "Italian", "restaurant"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Italian\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"category_category_name1\"", null], "and", [false, 2, [0, [0, 17, false], null], "\"Michelle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1288", "db_id": "academic", "query": "select t1.keyword from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\";", "query_toks": ["SELECT", "t1.keyword", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "keyword", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value"], "question": "return me the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1292", "db_id": "academic", "query": "select t5.title from publication_keyword as t3 join keyword as t1 on t3.kid = t1.kid join publication as t5 on t5.pid = t3.pid join writes as t4 on t4.pid = t5.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\" and t1.keyword = \"user study\";", "query_toks": ["SELECT", "t5.title", "FROM", "publication_keyword", "AS", "t3", "JOIN", "keyword", "AS", "t1", "ON", "t3.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t5", "ON", "t5.pid", "=", "t3.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.keyword", "=", "``", "User", "Study", "''", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "publication_keyword", "as", "t3", "join", "keyword", "as", "t1", "on", "t3", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t5", "on", "t5", ".", "pid", "=", "t3", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "keyword", "=", "value"], "question": "return me the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"User Study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1295", "db_id": "academic", "query": "select t2.name from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t1.keyword = \"relational database\";", "query_toks": ["SELECT", "t2.name", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t1.keyword", "=", "``", "Relational", "Database", "''", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "keyword", "=", "value"], "question": "return me the authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Relational Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1302", "db_id": "academic", "query": "select t5.title from organization as t3 join author as t1 on t3.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join conference as t2 on t5.cid = t2.cid where t2.name = \"vldb\" and t3.name = \"university of michigan\";", "query_toks": ["SELECT", "t5.title", "FROM", "organization", "AS", "t3", "JOIN", "author", "AS", "t1", "ON", "t3.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "conference", "AS", "t2", "ON", "t5.cid", "=", "t2.cid", "WHERE", "t2.name", "=", "``", "VLDB", "''", "AND", "t3.name", "=", "``", "University", "of", "Michigan", "''", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "organization", "as", "t3", "join", "author", "as", "t1", "on", "t3", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "conference", "as", "t2", "on", "t5", ".", "cid", "=", "t2", ".", "cid", "where", "t2", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "return me all the papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"VLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1303", "db_id": "academic", "query": "select t5.title from organization as t2 join author as t1 on t2.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join journal as t3 on t5.jid = t3.jid where t3.name = \"pvldb\" and t2.name = \"university of michigan\";", "query_toks": ["SELECT", "t5.title", "FROM", "organization", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "journal", "AS", "t3", "ON", "t5.jid", "=", "t3.jid", "WHERE", "t3.name", "=", "``", "PVLDB", "''", "AND", "t2.name", "=", "``", "University", "of", "Michigan", "''", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "organization", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "journal", "as", "t3", "on", "t5", ".", "jid", "=", "t3", ".", "jid", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "return me all the papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"PVLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1304", "db_id": "academic", "query": "select t5.title from organization as t2 join author as t1 on t2.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join journal as t3 on t5.jid = t3.jid where t3.name = \"pvldb\" and t2.name = \"university of michigan\" and t5.year > 2000;", "query_toks": ["SELECT", "t5.title", "FROM", "organization", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "journal", "AS", "t3", "ON", "t5.jid", "=", "t3.jid", "WHERE", "t3.name", "=", "``", "PVLDB", "''", "AND", "t2.name", "=", "``", "University", "of", "Michigan", "''", "AND", "t5.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "organization", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "journal", "as", "t3", "on", "t5", ".", "jid", "=", "t3", ".", "jid", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value", "and", "t5", ".", "year", ">", "value"], "question": "return me all the papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"PVLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null], "and", [false, 3, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1336", "db_id": "academic", "query": "select count ( distinct t1.keyword ) from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t1.keyword", ")", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1", ".", "keyword", ")", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value"], "question": "return me the number of the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 19, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1340", "db_id": "academic", "query": "select count ( distinct t5.title ) from publication_keyword as t3 join keyword as t1 on t3.kid = t1.kid join publication as t5 on t5.pid = t3.pid join writes as t4 on t4.pid = t5.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\" and t1.keyword = \"user study\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "publication_keyword", "AS", "t3", "JOIN", "keyword", "AS", "t1", "ON", "t3.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t5", "ON", "t5.pid", "=", "t3.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.keyword", "=", "``", "User", "Study", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "publication_keyword", "as", "t3", "join", "keyword", "as", "t1", "on", "t3", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t5", "on", "t5", ".", "pid", "=", "t3", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "keyword", "=", "value"], "question": "return me the number of the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"User Study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1343", "db_id": "academic", "query": "select count ( distinct t2.name ) from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t1.keyword = \"relational database\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t2.name", ")", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t1.keyword", "=", "``", "Relational", "Database", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "name", ")", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "keyword", "=", "value"], "question": "return me the number of authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Relational Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1352", "db_id": "academic", "query": "select count ( distinct t5.title ) from organization as t3 join author as t1 on t3.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join conference as t2 on t5.cid = t2.cid where t2.name = \"vldb\" and t3.name = \"university of michigan\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "organization", "AS", "t3", "JOIN", "author", "AS", "t1", "ON", "t3.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "conference", "AS", "t2", "ON", "t5.cid", "=", "t2.cid", "WHERE", "t2.name", "=", "``", "VLDB", "''", "AND", "t3.name", "=", "``", "University", "of", "Michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "organization", "as", "t3", "join", "author", "as", "t1", "on", "t3", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "conference", "as", "t2", "on", "t5", ".", "cid", "=", "t2", ".", "cid", "where", "t2", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "return me the number of papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"VLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1353", "db_id": "academic", "query": "select count ( distinct t5.title ) from organization as t2 join author as t1 on t2.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join journal as t3 on t5.jid = t3.jid where t3.name = \"pvldb\" and t2.name = \"university of michigan\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "organization", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "journal", "AS", "t3", "ON", "t5.jid", "=", "t3.jid", "WHERE", "t3.name", "=", "``", "PVLDB", "''", "AND", "t2.name", "=", "``", "University", "of", "Michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "organization", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "journal", "as", "t3", "on", "t5", ".", "jid", "=", "t3", ".", "jid", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "return me the number of papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 15, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"PVLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1354", "db_id": "academic", "query": "select count ( distinct t5.title ) from organization as t2 join author as t1 on t2.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join journal as t3 on t5.jid = t3.jid where t3.name = \"pvldb\" and t2.name = \"university of michigan\" and t5.year > 2000;", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "organization", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "journal", "AS", "t3", "ON", "t5.jid", "=", "t3.jid", "WHERE", "t3.name", "=", "``", "PVLDB", "''", "AND", "t2.name", "=", "``", "University", "of", "Michigan", "''", "AND", "t5.year", ">", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "organization", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "journal", "as", "t3", "on", "t5", ".", "jid", "=", "t3", ".", "jid", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value", "and", "t5", ".", "year", ">", "value"], "question": "return me the number of papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 15, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"PVLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null], "and", [false, 3, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1375", "db_id": "academic", "query": "select t2.name from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t1.name = \"h. v. jagadish\" and t5.year > 2000;", "query_toks": ["SELECT", "t2.name", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t1.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t5.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t5", ".", "year", ">", "value"], "question": "return me the authors who have cooperated with \" H. V. Jagadish \" after 2000 .", "question_toks": ["return", "me", "the", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "after", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 3, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1376", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\";", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1377", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"yunyao li\" and t5.year > 2005;", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Yunyao", "Li", "''", "AND", "t5.year", ">", "2005", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "and", "t5", ".", "year", ">", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Yunyao Li \" after 2005 .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Yunyao", "Li", "``", "after", "2005", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Yunyao Li\"", null], "and", [false, 3, [0, [0, 30, false], null], 2005.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1380", "db_id": "academic", "query": "select t2.name from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t1.name = \"h. v. jagadish\";", "query_toks": ["SELECT", "t2.name", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t1.name", "=", "``", "H.", "V.", "Jagadish", "''", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t1", ".", "name", "=", "value"], "question": "return me the authors who have cooperated with \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1381", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\" and t5.year < 2000;", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", "AND", "t5.year", "<", "2000", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "and", "t5", ".", "year", "<", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" before 2000 .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null], "and", [false, 4, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1383", "db_id": "academic", "query": "select count ( distinct t5.title ) from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value"], "question": "return me the number of papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1384", "db_id": "academic", "query": "select count ( distinct t5.title ) from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\" and t5.year < 2000;", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", "AND", "t5.year", "<", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "and", "t5", ".", "year", "<", "value"], "question": "return me the number of papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" before 2000 .", "question_toks": ["return", "me", "the", "number", "of", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null], "and", [false, 4, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1386", "db_id": "academic", "query": "select count ( distinct t2.name ) from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t1.name = \"h. v. jagadish\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t2.name", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t1.name", "=", "``", "H.", "V.", "Jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "name", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t1", ".", "name", "=", "value"], "question": "return me the number of authors who have cooperated with \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1388", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\" and t5.citation_num > 200;", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", "AND", "t5.citation_num", ">", "200", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "and", "t5", ".", "citation_num", ">", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" with more than 200 citations .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "with", "more", "than", "200", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null], "and", [false, 3, [0, [0, 25, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1389", "db_id": "academic", "query": "select t2.name from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t1.keyword = \"relational database\" group by t2.name order by count ( distinct t3.title ) desc limit 1;", "query_toks": ["SELECT", "t2.name", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t1.keyword", "=", "``", "Relational", "Database", "''", "GROUP", "BY", "t2.name", "ORDER", "BY", "COUNT", "(", "DISTINCT", "t3.title", ")", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "keyword", "=", "value", "group", "by", "t2", ".", "name", "order", "by", "count", "(", "distinct", "t3", ".", "title", ")", "desc", "limit", "value"], "question": "return me the author who has the most number of papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "author", "who", "has", "the", "most", "number", "of", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Relational Database\"", null]], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["desc", [[0, [3, 29, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1396", "db_id": "academic", "query": "select t1.keyword from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\" group by t1.keyword order by count ( distinct t3.title ) desc limit 1;", "query_toks": ["SELECT", "t1.keyword", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "GROUP", "BY", "t1.keyword", "ORDER", "BY", "COUNT", "(", "DISTINCT", "t3.title", ")", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t1", ".", "keyword", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value", "group", "by", "t1", ".", "keyword", "order", "by", "count", "(", "distinct", "t3", ".", "title", ")", "desc", "limit", "value"], "question": "return me the keyword, which have been contained by the most number of papers by \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keyword", ",", "which", "have", "been", "contained", "by", "the", "most", "number", "of", "papers", "by", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 29, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1399", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"divesh srivastava\" and t1.name = \"h. v. jagadish\" order by t5.citation_num desc limit 1;", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "Divesh", "Srivastava", "''", "AND", "t1.name", "=", "``", "H.", "V.", "Jagadish", "''", "ORDER", "BY", "t5.citation_num", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "order", "by", "t5", ".", "citation_num", "desc", "limit", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" with the most number of citations .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "with", "the", "most", "number", "of", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 25, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1415", "db_id": "academic", "query": "select t2.name from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t1.keyword = \"relational database\" group by t2.name having count ( distinct t3.title ) > 10;", "query_toks": ["SELECT", "t2.name", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t1.keyword", "=", "``", "Relational", "Database", "''", "GROUP", "BY", "t2.name", "HAVING", "COUNT", "(", "DISTINCT", "t3.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "keyword", "=", "value", "group", "by", "t2", ".", "name", "having", "count", "(", "distinct", "t3", ".", "title", ")", ">", "value"], "question": "return me the authors who have more than 10 papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "more", "than", "10", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Relational Database\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 29, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1420", "db_id": "academic", "query": "select t1.keyword from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\" group by t1.keyword having count ( distinct t3.title ) > 10;", "query_toks": ["SELECT", "t1.keyword", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "GROUP", "BY", "t1.keyword", "HAVING", "COUNT", "(", "DISTINCT", "t3.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t1", ".", "keyword", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value", "group", "by", "t1", ".", "keyword", "having", "count", "(", "distinct", "t3", ".", "title", ")", ">", "value"], "question": "return me the keywords, which have been contained by more than 10 papers of \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", ",", "which", "have", "been", "contained", "by", "more", "than", "10", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [[0, 19, false]], "having": [[false, 3, [0, [3, 29, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1457", "db_id": "imdb", "query": "select t2.title from movie as t2 join made_by as t3 on t2.mid = t3.msid join producer as t1 on t1.pid = t3.pid join written_by as t5 on t5.msid = t2.mid join writer as t4 on t5.wid = t4.wid where t1.name = \"woody allen\" and t4.name = \"woody allen\";", "query_toks": ["SELECT", "t2.title", "FROM", "movie", "AS", "t2", "JOIN", "made_by", "AS", "t3", "ON", "t2.mid", "=", "t3.msid", "JOIN", "producer", "AS", "t1", "ON", "t1.pid", "=", "t3.pid", "JOIN", "written_by", "AS", "t5", "ON", "t5.msid", "=", "t2.mid", "JOIN", "writer", "AS", "t4", "ON", "t5.wid", "=", "t4.wid", "WHERE", "t1.name", "=", "``", "Woody", "Allen", "''", "AND", "t4.name", "=", "``", "Woody", "Allen", "''", ";"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "movie", "as", "t2", "join", "made_by", "as", "t3", "on", "t2", ".", "mid", "=", "t3", ".", "msid", "join", "producer", "as", "t1", "on", "t1", ".", "pid", "=", "t3", ".", "pid", "join", "written_by", "as", "t5", "on", "t5", ".", "msid", "=", "t2", ".", "mid", "join", "writer", "as", "t4", "on", "t5", ".", "wid", "=", "t4", ".", "wid", "where", "t1", ".", "name", "=", "value", "and", "t4", ".", "name", "=", "value"], "question": "Find all movies written and produced by \" Woody Allen \"", "question_toks": ["Find", "all", "movies", "written", "and", "produced", "by", "``", "Woody", "Allen", "``"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 10], ["table_unit", 7], ["table_unit", 15], ["table_unit", 14]], "conds": [[false, 2, [0, [0, 42, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 41, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 42, false], null], "and", [false, 2, [0, [0, 66, false], null], [0, 57, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"Woody Allen\"", null], "and", [false, 2, [0, [0, 59, false], null], "\"Woody Allen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1472", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Taraneh", "Alidoosti", "''", "AND", "t3.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "Find all movies directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \"", "question_toks": ["Find", "all", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Taraneh Alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1473", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Taraneh", "Alidoosti", "''", "AND", "t3.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "What are all the movies directed by \" Asghar Farhadi \" featuring \" Taraneh Alidoosti \" ?", "question_toks": ["What", "are", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Taraneh Alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1474", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Taraneh", "Alidoosti", "''", "AND", "t3.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "How many movies are there that are directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \" ?", "question_toks": ["How", "many", "movies", "are", "there", "that", "are", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Taraneh Alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_HOW_MANY_NOTHING", "HOW_MANY", "DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1475", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Taraneh", "Alidoosti", "''", "AND", "t3.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "List all the movies directed by \" Asghar Farhadi \" in which \" Taraneh Alidoosti \" played", "question_toks": ["List", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "in", "which", "``", "Taraneh", "Alidoosti", "``", "played"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Taraneh Alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1482", "db_id": "imdb", "query": "select t3.name from cast as t4 join actor as t1 on t4.aid = t1.aid join movie as t5 on t5.mid = t4.msid join directed_by as t2 on t5.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"kate winslet\";", "query_toks": ["SELECT", "t3.name", "FROM", "CAST", "AS", "t4", "JOIN", "actor", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t4.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t5.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Kate", "Winslet", "''", ";"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "cast", "as", "t4", "join", "actor", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "directed_by", "as", "t2", "on", "t5", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value"], "question": "Find the directors of all movies featuring \" Kate Winslet \"", "question_toks": ["Find", "the", "directors", "of", "all", "movies", "featuring", "``", "Kate", "Winslet", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Kate Winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1483", "db_id": "imdb", "query": "select t1.name from cast as t3 join actor as t2 on t3.aid = t2.aid join movie as t5 on t5.mid = t3.msid join made_by as t4 on t5.mid = t4.msid join producer as t1 on t1.pid = t4.pid where t2.name = \"kate winslet\";", "query_toks": ["SELECT", "t1.name", "FROM", "CAST", "AS", "t3", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t3.msid", "JOIN", "made_by", "AS", "t4", "ON", "t5.mid", "=", "t4.msid", "JOIN", "producer", "AS", "t1", "ON", "t1.pid", "=", "t4.pid", "WHERE", "t2.name", "=", "``", "Kate", "Winslet", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "cast", "as", "t3", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t3", ".", "msid", "join", "made_by", "as", "t4", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "producer", "as", "t1", "on", "t1", ".", "pid", "=", "t4", ".", "pid", "where", "t2", ".", "name", "=", "value"], "question": "Find the producers of all movies in which \" Kate Winslet \" is an actor", "question_toks": ["Find", "the", "producers", "of", "all", "movies", "in", "which", "``", "Kate", "Winslet", "``", "is", "an", "actor"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 10], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 41, false], null]]}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Kate Winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1495", "db_id": "imdb", "query": "select t3.genre from director as t5 join directed_by as t2 on t5.did = t2.did join movie as t4 on t4.mid = t2.msid join classification as t1 on t4.mid = t1.msid join genre as t3 on t3.gid = t1.gid where t5.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t3.genre", "FROM", "director", "AS", "t5", "JOIN", "directed_by", "AS", "t2", "ON", "t5.did", "=", "t2.did", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t2.msid", "JOIN", "classification", "AS", "t1", "ON", "t4.mid", "=", "t1.msid", "JOIN", "genre", "AS", "t3", "ON", "t3.gid", "=", "t1.gid", "WHERE", "t5.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t3", ".", "genre", "from", "director", "as", "t5", "join", "directed_by", "as", "t2", "on", "t5", ".", "did", "=", "t2", ".", "did", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "classification", "as", "t1", "on", "t4", ".", "mid", "=", "t1", ".", "msid", "join", "genre", "as", "t3", "on", "t3", ".", "gid", "=", "t1", ".", "gid", "where", "t5", ".", "name", "=", "value"], "question": "what are the genres of movies directed by \" Asghar Farhadi \"", "question_toks": ["what", "are", "the", "genres", "of", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1498", "db_id": "imdb", "query": "select t3.name from director as t3 join directed_by as t2 on t3.did = t2.did join movie as t4 on t4.mid = t2.msid join tags as t5 on t5.msid = t4.mid join keyword as t1 on t5.kid = t1.id where t1.keyword = \"nuclear weapons\";", "query_toks": ["SELECT", "t3.name", "FROM", "director", "AS", "t3", "JOIN", "directed_by", "AS", "t2", "ON", "t3.did", "=", "t2.did", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t2.msid", "JOIN", "tags", "AS", "t5", "ON", "t5.msid", "=", "t4.mid", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.id", "WHERE", "t1.keyword", "=", "``", "nuclear", "weapons", "''", ";"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "director", "as", "t3", "join", "directed_by", "as", "t2", "on", "t3", ".", "did", "=", "t2", ".", "did", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "tags", "as", "t5", "on", "t5", ".", "msid", "=", "t4", ".", "mid", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "id", "where", "t1", ".", "keyword", "=", "value"], "question": "List all the directors of movies about nuclear weapons", "question_toks": ["List", "all", "the", "directors", "of", "movies", "about", "nuclear", "weapons"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11], ["table_unit", 12], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 48, false], null], [0, 42, false], null], "and", [false, 2, [0, [0, 49, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"nuclear weapons\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1517", "db_id": "imdb", "query": "select count ( distinct t4.title ) from director as t3 join directed_by as t2 on t3.did = t2.did join movie as t4 on t4.mid = t2.msid join made_by as t5 on t4.mid = t5.msid join producer as t1 on t1.pid = t5.pid where t3.name = \"quentin tarantino\" and t4.release_year < 2010 and t4.release_year > 2002;", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t4.title", ")", "FROM", "director", "AS", "t3", "JOIN", "directed_by", "AS", "t2", "ON", "t3.did", "=", "t2.did", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t2.msid", "JOIN", "made_by", "AS", "t5", "ON", "t4.mid", "=", "t5.msid", "JOIN", "producer", "AS", "t1", "ON", "t1.pid", "=", "t5.pid", "WHERE", "t3.name", "=", "``", "Quentin", "Tarantino", "''", "AND", "t4.release_year", "<", "2010", "AND", "t4.release_year", ">", "2002", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t4", ".", "title", ")", "from", "director", "as", "t3", "join", "directed_by", "as", "t2", "on", "t3", ".", "did", "=", "t2", ".", "did", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "made_by", "as", "t5", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "producer", "as", "t1", "on", "t1", ".", "pid", "=", "t5", ".", "pid", "where", "t3", ".", "name", "=", "value", "and", "t4", ".", "release_year", "<", "value", "and", "t4", ".", "release_year", ">", "value"], "question": "How many movies did \" Quentin Tarantino \" direct before 2002 and after 2010 ?", "question_toks": ["How", "many", "movies", "did", "``", "Quentin", "Tarantino", "``", "direct", "before", "2002", "and", "after", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11], ["table_unit", 10], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 41, false], null]]}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Quentin Tarantino\"", null], "and", [false, 4, [0, [0, 44, false], null], 2010.0, null], "and", [false, 3, [0, [0, 44, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1519", "db_id": "imdb", "query": "select count ( distinct t1.name ) from cast as t4 join actor as t1 on t4.aid = t1.aid join movie as t5 on t5.mid = t4.msid join directed_by as t2 on t5.mid = t2.msid join director as t3 on t3.did = t2.did where t1.nationality = \"iran\" and t3.name = \"jim jarmusch\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t1.name", ")", "FROM", "CAST", "AS", "t4", "JOIN", "actor", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t4.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t5.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.nationality", "=", "``", "Iran", "''", "AND", "t3.name", "=", "``", "Jim", "Jarmusch", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1", ".", "name", ")", "from", "cast", "as", "t4", "join", "actor", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "directed_by", "as", "t2", "on", "t5", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "nationality", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "find the number of actors from Iran who played in \" Jim Jarmusch \" movies", "question_toks": ["find", "the", "number", "of", "actors", "from", "Iran", "who", "played", "in", "``", "Jim", "Jarmusch", "``", "movies"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Iran\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Jim Jarmusch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1521", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join cast as t3 on t4.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t1.name = \"woody strode\" and t2.name = \"jason robards\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "CAST", "AS", "t3", "ON", "t4.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t1.name", "=", "``", "Woody", "Strode", "''", "AND", "t2.name", "=", "``", "Jason", "Robards", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "cast", "as", "t3", "on", "t4", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "Find all movies that star both \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "that", "star", "both", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Woody Strode\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Jason Robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1522", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join cast as t3 on t4.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t1.name = \"woody strode\" and t2.name = \"jason robards\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "CAST", "AS", "t3", "ON", "t4.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t1.name", "=", "``", "Woody", "Strode", "''", "AND", "t2.name", "=", "``", "Jason", "Robards", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "cast", "as", "t3", "on", "t4", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "Find all movies featuring \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "featuring", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Woody Strode\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Jason Robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1523", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join cast as t3 on t4.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t1.name = \"woody strode\" and t2.name = \"jason robards\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "CAST", "AS", "t3", "ON", "t4.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t1.name", "=", "``", "Woody", "Strode", "''", "AND", "t2.name", "=", "``", "Jason", "Robards", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "cast", "as", "t3", "on", "t4", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "Find all movies featuring both \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "featuring", "both", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Woody Strode\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Jason Robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1524", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join cast as t3 on t4.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t1.name = \"woody strode\" and t2.name = \"jason robards\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "CAST", "AS", "t3", "ON", "t4.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t1.name", "=", "``", "Woody", "Strode", "''", "AND", "t2.name", "=", "``", "Jason", "Robards", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "cast", "as", "t3", "on", "t4", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "Find all movies featuring \" Jason Robards \" and \" Woody Strode \"", "question_toks": ["Find", "all", "movies", "featuring", "``", "Jason", "Robards", "``", "and", "``", "Woody", "Strode", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Woody Strode\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Jason Robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1525", "db_id": "imdb", "query": "select t1.name from cast as t4 join actor as t1 on t4.aid = t1.aid join movie as t5 on t5.mid = t4.msid join cast as t3 on t5.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t2.name = \"tom hanks\";", "query_toks": ["SELECT", "t1.name", "FROM", "CAST", "AS", "t4", "JOIN", "actor", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t4.msid", "JOIN", "CAST", "AS", "t3", "ON", "t5.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "Tom", "Hanks", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "cast", "as", "t4", "join", "actor", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "cast", "as", "t3", "on", "t5", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value"], "question": "Find all actors who acted in the same movie as \" Tom Hanks \"", "question_toks": ["Find", "all", "actors", "who", "acted", "in", "the", "same", "movie", "as", "``", "Tom", "Hanks", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Tom Hanks\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1529", "db_id": "imdb", "query": "select t1.name from cast as t4 join actor as t1 on t4.aid = t1.aid join movie as t5 on t5.mid = t4.msid join directed_by as t2 on t5.mid = t2.msid join director as t3 on t3.did = t2.did where t3.name = \"quentin tarantino\" order by t5.release_year desc limit 1;", "query_toks": ["SELECT", "t1.name", "FROM", "CAST", "AS", "t4", "JOIN", "actor", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t4.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t5.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t3.name", "=", "``", "Quentin", "Tarantino", "''", "ORDER", "BY", "t5.release_year", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "cast", "as", "t4", "join", "actor", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "directed_by", "as", "t2", "on", "t5", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t3", ".", "name", "=", "value", "order", "by", "t5", ".", "release_year", "desc", "limit", "value"], "question": "Find the actors who played in the latest movie by \" Quentin Tarantino \"", "question_toks": ["Find", "the", "actors", "who", "played", "in", "the", "latest", "movie", "by", "``", "Quentin", "Tarantino", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Quentin Tarantino\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 44, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1532", "db_id": "imdb", "query": "select t1.name from director as t3 join directed_by as t2 on t3.did = t2.did join movie as t4 on t4.mid = t2.msid join made_by as t5 on t4.mid = t5.msid join producer as t1 on t1.pid = t5.pid group by t1.name order by count ( distinct t3.name ) desc limit 1;", "query_toks": ["SELECT", "t1.name", "FROM", "director", "AS", "t3", "JOIN", "directed_by", "AS", "t2", "ON", "t3.did", "=", "t2.did", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t2.msid", "JOIN", "made_by", "AS", "t5", "ON", "t4.mid", "=", "t5.msid", "JOIN", "producer", "AS", "t1", "ON", "t1.pid", "=", "t5.pid", "GROUP", "BY", "t1.name", "ORDER", "BY", "COUNT", "(", "DISTINCT", "t3.name", ")", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "director", "as", "t3", "join", "directed_by", "as", "t2", "on", "t3", ".", "did", "=", "t2", ".", "did", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "made_by", "as", "t5", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "producer", "as", "t1", "on", "t1", ".", "pid", "=", "t5", ".", "pid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "distinct", "t3", ".", "name", ")", "desc", "limit", "value"], "question": "Which producer has worked with the most number of directors ?", "question_toks": ["Which", "producer", "has", "worked", "with", "the", "most", "number", "of", "directors", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11], ["table_unit", 10], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 41, false], null]]}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [[0, 30, false]], "having": [], "orderBy": ["desc", [[0, [3, 24, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0209", "db_id": "bike_1", "query": "select count(*) from station as t1 join trip as t2 join station as t3 join trip as t4 on t1.id = t2.start_station_id and t2.id = t4.id and t3.id = t4.end_station_id where t1.city = \"mountain view\" and t3.city = \"palo alto\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "JOIN", "station", "AS", "T3", "JOIN", "trip", "AS", "T4", "ON", "T1.id", "=", "T2.start_station_id", "AND", "T2.id", "=", "T4.id", "AND", "T3.id", "=", "T4.end_station_id", "WHERE", "T1.city", "=", "``", "Mountain", "View", "''", "AND", "T3.city", "=", "``", "Palo", "Alto", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "join", "station", "as", "t3", "join", "trip", "as", "t4", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "and", "t2", ".", "id", "=", "t4", ".", "id", "and", "t3", ".", "id", "=", "t4", ".", "end_station_id", "where", "t1", ".", "city", "=", "value", "and", "t3", ".", "city", "=", "value"], "question": "How many trips started from Mountain View city and ended at Palo Alto city?", "question_toks": ["How", "many", "trips", "started", "from", "Mountain", "View", "city", "and", "ended", "at", "Palo", "Alto", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Mountain View\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0210", "db_id": "bike_1", "query": "select count(*) from station as t1 join trip as t2 join station as t3 join trip as t4 on t1.id = t2.start_station_id and t2.id = t4.id and t3.id = t4.end_station_id where t1.city = \"mountain view\" and t3.city = \"palo alto\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "JOIN", "station", "AS", "T3", "JOIN", "trip", "AS", "T4", "ON", "T1.id", "=", "T2.start_station_id", "AND", "T2.id", "=", "T4.id", "AND", "T3.id", "=", "T4.end_station_id", "WHERE", "T1.city", "=", "``", "Mountain", "View", "''", "AND", "T3.city", "=", "``", "Palo", "Alto", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "join", "station", "as", "t3", "join", "trip", "as", "t4", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "and", "t2", ".", "id", "=", "t4", ".", "id", "and", "t3", ".", "id", "=", "t4", ".", "end_station_id", "where", "t1", ".", "city", "=", "value", "and", "t3", ".", "city", "=", "value"], "question": "How many trips stated from a station in Mountain View and ended at one in Palo Alto?", "question_toks": ["How", "many", "trips", "stated", "from", "a", "station", "in", "Mountain", "View", "and", "ended", "at", "one", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Mountain View\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0639", "db_id": "store_1", "query": "select t1.name from tracks as t1 join invoice_lines as t2 on t1.id = t2.track_id join invoices as t3 on t3.id = t2.invoice_id join customers as t4 on t4.id = t3.customer_id where t4.first_name = \"daan\" and t4.last_name = \"peeters\";", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "invoice_lines", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "invoices", "AS", "T3", "ON", "T3.id", "=", "T2.invoice_id", "JOIN", "customers", "AS", "T4", "ON", "T4.id", "=", "T3.customer_id", "WHERE", "T4.first_name", "=", "``", "Daan", "''", "AND", "T4.last_name", "=", "``", "Peeters", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "invoice_lines", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "invoices", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "invoice_id", "join", "customers", "as", "t4", "on", "t4", ".", "id", "=", "t3", ".", "customer_id", "where", "t4", ".", "first_name", "=", "value", "and", "t4", ".", "last_name", "=", "value"], "question": "List all tracks bought by customer Daan Peeters.", "question_toks": ["List", "all", "tracks", "bought", "by", "customer", "Daan", "Peeters", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 60, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 59, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 39, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Daan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"Peeters\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0640", "db_id": "store_1", "query": "select t1.name from tracks as t1 join invoice_lines as t2 on t1.id = t2.track_id join invoices as t3 on t3.id = t2.invoice_id join customers as t4 on t4.id = t3.customer_id where t4.first_name = \"daan\" and t4.last_name = \"peeters\";", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "invoice_lines", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "invoices", "AS", "T3", "ON", "T3.id", "=", "T2.invoice_id", "JOIN", "customers", "AS", "T4", "ON", "T4.id", "=", "T3.customer_id", "WHERE", "T4.first_name", "=", "``", "Daan", "''", "AND", "T4.last_name", "=", "``", "Peeters", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "invoice_lines", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "invoices", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "invoice_id", "join", "customers", "as", "t4", "on", "t4", ".", "id", "=", "t3", ".", "customer_id", "where", "t4", ".", "first_name", "=", "value", "and", "t4", ".", "last_name", "=", "value"], "question": "What are the tracks that Dean Peeters bought?", "question_toks": ["What", "are", "the", "tracks", "that", "Dean", "Peeters", "bought", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 60, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 59, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 39, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Daan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"Peeters\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1646", "db_id": "wedding", "query": "select t4.name from wedding as t1 join people as t2 on t1.male_id = t2.people_id join people as t3 on t1.female_id = t3.people_id join church as t4 on t4.church_id = t1.church_id where t2.age > 30 or t3.age > 30", "query_toks": ["SELECT", "T4.name", "FROM", "wedding", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.male_id", "=", "T2.people_id", "JOIN", "people", "AS", "T3", "ON", "T1.female_id", "=", "T3.people_id", "JOIN", "church", "AS", "T4", "ON", "T4.church_id", "=", "T1.church_id", "WHERE", "T2.age", ">", "30", "OR", "T3.age", ">", "30"], "query_toks_no_value": ["select", "t4", ".", "name", "from", "wedding", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "male_id", "=", "t2", ".", "people_id", "join", "people", "as", "t3", "on", "t1", ".", "female_id", "=", "t3", ".", "people_id", "join", "church", "as", "t4", "on", "t4", ".", "church_id", "=", "t1", ".", "church_id", "where", "t2", ".", "age", ">", "value", "or", "t3", ".", "age", ">", "value"], "question": "Show the church names for the weddings of all people older than 30.", "question_toks": ["Show", "the", "church", "names", "for", "the", "weddings", "of", "all", "people", "older", "than", "30", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 30.0, null], "or", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2147", "db_id": "local_govt_in_alabama", "query": "select t3.service_id , t4.service_type_code from participants as t1 join participants_in_events as t2 on t1.participant_id = t2.participant_id join events as t3 on t2.event_id = t3.event_id join services as t4 on t3.service_id = t4.service_id group by t3.service_id order by count(*) asc limit 1", "query_toks": ["SELECT", "T3.service_id", ",", "T4.Service_Type_Code", "FROM", "participants", "AS", "T1", "JOIN", "Participants_in_Events", "AS", "T2", "ON", "T1.Participant_ID", "=", "T2.Participant_ID", "JOIN", "EVENTS", "AS", "T3", "ON", "T2.Event_ID", "=", "T3.Event_ID", "JOIN", "services", "AS", "T4", "ON", "T3.service_id", "=", "T4.service_id", "GROUP", "BY", "T3.service_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "service_id", ",", "t4", ".", "service_type_code", "from", "participants", "as", "t1", "join", "participants_in_events", "as", "t2", "on", "t1", ".", "participant_id", "=", "t2", ".", "participant_id", "join", "events", "as", "t3", "on", "t2", ".", "event_id", "=", "t3", ".", "event_id", "join", "services", "as", "t4", "on", "t3", ".", "service_id", "=", "t4", ".", "service_id", "group", "by", "t3", ".", "service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "Which service id and type has the least number of participants?", "question_toks": ["Which", "service", "id", "and", "type", "has", "the", "least", "number", "of", "participants", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3251", "db_id": "college_1", "query": "select count(*) from class as t1 join enroll as t2 on t1.class_code = t2.class_code join course as t3 on t1.crs_code = t3.crs_code join department as t4 on t3.dept_code = t4.dept_code where t4.dept_name = 'accounting'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "WHERE", "T4.dept_name", "=", "'Accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value"], "question": "How many students are enrolled in the class taught by some professor from the accounting department?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "the", "class", "taught", "by", "some", "professor", "from", "the", "accounting", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3252", "db_id": "college_1", "query": "select count(*) from class as t1 join enroll as t2 on t1.class_code = t2.class_code join course as t3 on t1.crs_code = t3.crs_code join department as t4 on t3.dept_code = t4.dept_code where t4.dept_name = 'accounting'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "WHERE", "T4.dept_name", "=", "'Accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value"], "question": "How many students are enrolled in some classes that are taught by an accounting professor?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "some", "classes", "that", "are", "taught", "by", "an", "accounting", "professor", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3253", "db_id": "college_1", "query": "select t4.dept_name from class as t1 join enroll as t2 on t1.class_code = t2.class_code join course as t3 on t1.crs_code = t3.crs_code join department as t4 on t3.dept_code = t4.dept_code group by t3.dept_code order by count(*) desc limit 1", "query_toks": ["SELECT", "T4.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "GROUP", "BY", "T3.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t4", ".", "dept_name", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "group", "by", "t3", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department that has the largest number of students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "that", "has", "the", "largest", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3254", "db_id": "college_1", "query": "select t4.dept_name from class as t1 join enroll as t2 on t1.class_code = t2.class_code join course as t3 on t1.crs_code = t3.crs_code join department as t4 on t3.dept_code = t4.dept_code group by t3.dept_code order by count(*) desc limit 1", "query_toks": ["SELECT", "T4.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "GROUP", "BY", "T3.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t4", ".", "dept_name", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "group", "by", "t3", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3313", "db_id": "college_1", "query": "select t2.emp_fname , t4.prof_office , t3.crs_description from class as t1 join employee as t2 on t1.prof_num = t2.emp_num join course as t3 on t1.crs_code = t3.crs_code join professor as t4 on t2.emp_num = t4.emp_num", "query_toks": ["SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num"], "question": "Find the first names and offices of all instructors who have taught some course and also find the course description.", "question_toks": ["Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "also", "find", "the", "course", "description", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 17, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3314", "db_id": "college_1", "query": "select t2.emp_fname , t4.prof_office , t3.crs_description from class as t1 join employee as t2 on t1.prof_num = t2.emp_num join course as t3 on t1.crs_code = t3.crs_code join professor as t4 on t2.emp_num = t4.emp_num", "query_toks": ["SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num"], "question": "What are the first names, office locations of all lecturers who have taught some course?", "question_toks": ["What", "are", "the", "first", "names", ",", "office", "locations", "of", "all", "lecturers", "who", "have", "taught", "some", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 17, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3317", "db_id": "college_1", "query": "select t1.stu_fname , t1.stu_lname , t4.crs_description from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num join class as t3 on t2.class_code = t3.class_code join course as t4 on t3.crs_code = t4.crs_code", "query_toks": ["SELECT", "T1.stu_fname", ",", "T1.stu_lname", ",", "T4.crs_description", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code"], "query_toks_no_value": ["select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", ",", "t4", ".", "crs_description", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code"], "question": "Find names of all students who took some course and the course description.", "question_toks": ["Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "the", "course", "description", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 33, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3318", "db_id": "college_1", "query": "select t1.stu_fname , t1.stu_lname , t4.crs_description from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num join class as t3 on t2.class_code = t3.class_code join course as t4 on t3.crs_code = t4.crs_code", "query_toks": ["SELECT", "T1.stu_fname", ",", "T1.stu_lname", ",", "T4.crs_description", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code"], "query_toks_no_value": ["select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", ",", "t4", ".", "crs_description", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code"], "question": "What are the names of all students who took a class and the corresponding course descriptions?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "took", "a", "class", "and", "the", "corresponding", "course", "descriptions", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 33, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3922", "db_id": "hospital_1", "query": "select t4.name from stay as t1 join patient as t2 on t1.patient = t2.ssn join prescribes as t3 on t3.patient = t2.ssn join medication as t4 on t3.medication = t4.code where room = 111", "query_toks": ["SELECT", "T4.name", "FROM", "stay", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.Patient", "=", "T2.SSN", "JOIN", "Prescribes", "AS", "T3", "ON", "T3.Patient", "=", "T2.SSN", "JOIN", "Medication", "AS", "T4", "ON", "T3.Medication", "=", "T4.Code", "WHERE", "room", "=", "111"], "query_toks_no_value": ["select", "t4", ".", "name", "from", "stay", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "join", "prescribes", "as", "t3", "on", "t3", ".", "patient", "=", "t2", ".", "ssn", "join", "medication", "as", "t4", "on", "t3", ".", "medication", "=", "t4", ".", "code", "where", "room", "=", "value"], "question": "Find the name of medication used on the patient who stays in room 111?", "question_toks": ["Find", "the", "name", "of", "medication", "used", "on", "the", "patient", "who", "stays", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 5], ["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 59, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 41, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 60, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3923", "db_id": "hospital_1", "query": "select t4.name from stay as t1 join patient as t2 on t1.patient = t2.ssn join prescribes as t3 on t3.patient = t2.ssn join medication as t4 on t3.medication = t4.code where room = 111", "query_toks": ["SELECT", "T4.name", "FROM", "stay", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.Patient", "=", "T2.SSN", "JOIN", "Prescribes", "AS", "T3", "ON", "T3.Patient", "=", "T2.SSN", "JOIN", "Medication", "AS", "T4", "ON", "T3.Medication", "=", "T4.Code", "WHERE", "room", "=", "111"], "query_toks_no_value": ["select", "t4", ".", "name", "from", "stay", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "join", "prescribes", "as", "t3", "on", "t3", ".", "patient", "=", "t2", ".", "ssn", "join", "medication", "as", "t4", "on", "t3", ".", "medication", "=", "t4", ".", "code", "where", "room", "=", "value"], "question": "What is the name of the medication used for the patient staying in room 111?", "question_toks": ["What", "is", "the", "name", "of", "the", "medication", "used", "for", "the", "patient", "staying", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 5], ["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 59, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 41, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 60, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4482", "db_id": "network_2", "query": "select distinct t4.name from personfriend as t1 join person as t2 on t1.name = t2.name join personfriend as t3 on t1.friend = t3.name join personfriend as t4 on t3.friend = t4.name where t2.name = 'alice' and t4.name != 'alice'", "query_toks": ["SELECT", "DISTINCT", "T4.name", "FROM", "PersonFriend", "AS", "T1", "JOIN", "Person", "AS", "T2", "ON", "T1.name", "=", "T2.name", "JOIN", "PersonFriend", "AS", "T3", "ON", "T1.friend", "=", "T3.name", "JOIN", "PersonFriend", "AS", "T4", "ON", "T3.friend", "=", "T4.name", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T4.name", "!", "=", "'Alice", "'"], "query_toks_no_value": ["select", "distinct", "t4", ".", "name", "from", "personfriend", "as", "t1", "join", "person", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "join", "personfriend", "as", "t3", "on", "t1", ".", "friend", "=", "t3", ".", "name", "join", "personfriend", "as", "t4", "on", "t3", ".", "friend", "=", "t4", ".", "name", "where", "t2", ".", "name", "=", "value", "and", "t4", ".", "name", "!", "=", "value"], "question": "Find Alice's friends of friends.", "question_toks": ["Find", "Alice", "'s", "friends", "of", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"Alice\"", null], "and", [false, 7, [0, [0, 6, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4483", "db_id": "network_2", "query": "select distinct t4.name from personfriend as t1 join person as t2 on t1.name = t2.name join personfriend as t3 on t1.friend = t3.name join personfriend as t4 on t3.friend = t4.name where t2.name = 'alice' and t4.name != 'alice'", "query_toks": ["SELECT", "DISTINCT", "T4.name", "FROM", "PersonFriend", "AS", "T1", "JOIN", "Person", "AS", "T2", "ON", "T1.name", "=", "T2.name", "JOIN", "PersonFriend", "AS", "T3", "ON", "T1.friend", "=", "T3.name", "JOIN", "PersonFriend", "AS", "T4", "ON", "T3.friend", "=", "T4.name", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T4.name", "!", "=", "'Alice", "'"], "query_toks_no_value": ["select", "distinct", "t4", ".", "name", "from", "personfriend", "as", "t1", "join", "person", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "join", "personfriend", "as", "t3", "on", "t1", ".", "friend", "=", "t3", ".", "name", "join", "personfriend", "as", "t4", "on", "t3", ".", "friend", "=", "t4", ".", "name", "where", "t2", ".", "name", "=", "value", "and", "t4", ".", "name", "!", "=", "value"], "question": "What are the names of all of Alice's friends of friends?", "question_toks": ["What", "are", "the", "names", "of", "all", "of", "Alice", "'s", "friends", "of", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"Alice\"", null], "and", [false, 7, [0, [0, 6, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4777", "db_id": "department_store", "query": "select distinct t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id join products as t4 on t3.product_id = t4.product_id where t4.product_name = \"keyboard\"", "query_toks": ["SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "order_items", "AS", "T3", "ON", "T2.order_id", "=", "T3.order_id", "JOIN", "products", "AS", "T4", "ON", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "keyboard", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value"], "question": "List the names of all the distinct customers who bought a keyboard.", "question_toks": ["List", "the", "names", "of", "all", "the", "distinct", "customers", "who", "bought", "a", "keyboard", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 8], ["table_unit", 11], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 31, false], null], "and", [false, 2, [0, [0, 30, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"keyboard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4778", "db_id": "department_store", "query": "select distinct t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id join products as t4 on t3.product_id = t4.product_id where t4.product_name = \"keyboard\"", "query_toks": ["SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "order_items", "AS", "T3", "ON", "T2.order_id", "=", "T3.order_id", "JOIN", "products", "AS", "T4", "ON", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "keyboard", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value"], "question": "What are the distinct names of customers who have purchased a keyboard?", "question_toks": ["What", "are", "the", "distinct", "names", "of", "customers", "who", "have", "purchased", "a", "keyboard", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 8], ["table_unit", 11], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 31, false], null], "and", [false, 2, [0, [0, 30, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"keyboard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5568", "db_id": "products_gen_characteristics", "query": "select product_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"red\" and t3.characteristic_name = \"fast\"", "query_toks": ["SELECT", "product_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value"], "question": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".", "question_toks": ["Find", "the", "name", "of", "the", "products", "that", "have", "the", "color", "description", "``", "red", "''", "and", "have", "the", "characteristic", "name", "``", "fast", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5569", "db_id": "products_gen_characteristics", "query": "select product_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"red\" and t3.characteristic_name = \"fast\"", "query_toks": ["SELECT", "product_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value"], "question": "What are the names of the products that have a color description of 'red' and the 'fast' characteristic?", "question_toks": ["What", "are", "the", "names", "of", "the", "products", "that", "have", "a", "color", "description", "of", "'red", "'", "and", "the", "'fast", "'", "characteristic", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5574", "db_id": "products_gen_characteristics", "query": "select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"red\" and t3.characteristic_name = \"slow\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value"], "question": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\".", "question_toks": ["Find", "the", "number", "of", "the", "products", "that", "have", "their", "color", "described", "as", "``", "red", "''", "and", "have", "a", "characteristic", "named", "``", "slow", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5575", "db_id": "products_gen_characteristics", "query": "select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"red\" and t3.characteristic_name = \"slow\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value"], "question": "How many products have the color description 'red' and the characteristic name 'slow'?", "question_toks": ["How", "many", "products", "have", "the", "color", "description", "'red", "'", "and", "the", "characteristic", "name", "'slow", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5576", "db_id": "products_gen_characteristics", "query": "select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"white\" or t3.characteristic_name = \"hot\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "white", "''", "OR", "t3.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "or", "t3", ".", "characteristic_name", "=", "value"], "question": "Count the products that have the color description \"white\" or have the characteristic name \"hot\".", "question_toks": ["Count", "the", "products", "that", "have", "the", "color", "description", "``", "white", "''", "or", "have", "the", "characteristic", "name", "``", "hot", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5577", "db_id": "products_gen_characteristics", "query": "select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"white\" or t3.characteristic_name = \"hot\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "white", "''", "OR", "t3.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "or", "t3", ".", "characteristic_name", "=", "value"], "question": "How many products have their color described as 'white' or have a characteristic with the name 'hot'?", "question_toks": ["How", "many", "products", "have", "their", "color", "described", "as", "'white", "'", "or", "have", "a", "characteristic", "with", "the", "name", "'hot", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6941", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 join order_items as t3 join products as t4 on t1.customer_id = t2.customer_id and t2.order_id = t3.order_id and t3.product_id = t4.product_id where t4.product_name = \"food\" group by t1.customer_id having count(*) >= 1", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "JOIN", "order_items", "AS", "T3", "JOIN", "products", "AS", "T4", "ON", "T1.customer_id", "=", "T2.customer_id", "AND", "T2.order_id", "=", "T3.order_id", "AND", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "food", "''", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "join", "order_items", "as", "t3", "join", "products", "as", "t4", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "and", "t2", ".", "order_id", "=", "t3", ".", "order_id", "and", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "List the names of the customers who have once bought product \"food\".", "question_toks": ["List", "the", "names", "of", "the", "customers", "who", "have", "once", "bought", "product", "``", "food", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"food\"", null]], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6942", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 join order_items as t3 join products as t4 on t1.customer_id = t2.customer_id and t2.order_id = t3.order_id and t3.product_id = t4.product_id where t4.product_name = \"food\" group by t1.customer_id having count(*) >= 1", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "JOIN", "order_items", "AS", "T3", "JOIN", "products", "AS", "T4", "ON", "T1.customer_id", "=", "T2.customer_id", "AND", "T2.order_id", "=", "T3.order_id", "AND", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "food", "''", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "join", "order_items", "as", "t3", "join", "products", "as", "t4", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "and", "t2", ".", "order_id", "=", "t3", ".", "order_id", "and", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the customers who bought product \"food\" at least once?", "question_toks": ["What", "are", "the", "names", "of", "the", "customers", "who", "bought", "product", "``", "food", "''", "at", "least", "once", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"food\"", null]], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0564", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers that are coauthored by Peter Mertens and Dina Barbian", "question_toks": ["papers", "that", "are", "coauthored", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0565", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers written by Peter Mertens and Dina Barbian", "question_toks": ["papers", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0566", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "what are the papers that have Peter Mertens and Dina Barbian as co-authors", "question_toks": ["what", "are", "the", "papers", "that", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0567", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers have Peter Mertens and Dina Barbian written ?", "question_toks": ["What", "papers", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0568", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "what paper did Peter Mertens and Dina Barbian write together ?", "question_toks": ["what", "paper", "did", "Peter", "Mertens", "and", "Dina", "Barbian", "write", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0569", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Has Peter Mertens and Dina Barbian written a paper together ?", "question_toks": ["Has", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "a", "paper", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0570", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Papers by Peter Mertens and Dina Barbian", "question_toks": ["Papers", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0571", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers by authors Peter Mertens and Dina Barbian", "question_toks": ["papers", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0572", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers were written by authors Peter Mertens and Dina Barbian", "question_toks": ["What", "papers", "were", "written", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0573", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers by Peter Mertens and Dina Barbian", "question_toks": ["papers", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0574", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers written by authors Peter Mertens and Dina Barbian", "question_toks": ["papers", "written", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "AND_IN_NL", "_JOIN_3", "_AND_TO_COLUMNS"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0575", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "When did Peter Mertens and Dina Barbian collaborate ?", "question_toks": ["When", "did", "Peter", "Mertens", "and", "Dina", "Barbian", "collaborate", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0576", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "what are the collaborations of Peter Mertens and Dina Barbian ?", "question_toks": ["what", "are", "the", "collaborations", "of", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0577", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Have Peter Mertens and Dina Barbian written a paper together ?", "question_toks": ["Have", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "a", "paper", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0578", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Peter Mertens and Dina Barbian as co-authors", "question_toks": ["Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0579", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Does Peter Mertens ever collaborated with Dina Barbian ?", "question_toks": ["Does", "Peter", "Mertens", "ever", "collaborated", "with", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0580", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Which papers have Peter Mertens and Dina Barbian as co-authors ?", "question_toks": ["Which", "papers", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0581", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers coauthored by Peter Mertens and Dina Barbian", "question_toks": ["papers", "coauthored", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0582", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers have been written by Peter Mertens and Dina Barbian ?", "question_toks": ["What", "papers", "have", "been", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0583", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers have been written by both Peter Mertens and Dina Barbian ?", "question_toks": ["What", "papers", "have", "been", "written", "by", "both", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0584", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers have been written by Peter Mertens and Dina Barbian .", "question_toks": ["What", "papers", "have", "been", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0585", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who has written the most syntactic parsing papers ?", "question_toks": ["who", "has", "written", "the", "most", "syntactic", "parsing", "papers", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0586", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who is the most published author in syntactic parsing ?", "question_toks": ["who", "is", "the", "most", "published", "author", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0587", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who has the most publications in syntactic parsing ?", "question_toks": ["who", "has", "the", "most", "publications", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0588", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who has written the most papers on syntactic parsing ?", "question_toks": ["who", "has", "written", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0589", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "List prominent scholars in syntactic parsing ?", "question_toks": ["List", "prominent", "scholars", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0590", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who wrote the most papers on syntactic parsing ?", "question_toks": ["who", "wrote", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0591", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "Who are the authors with the most published papers in syntactic parsing ?", "question_toks": ["Who", "are", "the", "authors", "with", "the", "most", "published", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0592", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "top syntactic parsing author", "question_toks": ["top", "syntactic", "parsing", "author"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0593", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "top author in syntactic parsing", "question_toks": ["top", "author", "in", "syntactic", "parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0594", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who published the most in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0595", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who published the most papers in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0596", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many citation noah a smith has ?", "question_toks": ["How", "many", "citation", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0597", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "noah a smith citation count", "question_toks": ["noah", "a", "smith", "citation", "count"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0598", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "how many citations does noah a smith have ?", "question_toks": ["how", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0599", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many citations does noah a smith have ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0600", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "number of citations of noah a smith", "question_toks": ["number", "of", "citations", "of", "noah", "a", "smith"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0601", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many citations does noah a smith have", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0602", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many times was noah a smith cited ?", "question_toks": ["How", "many", "times", "was", "noah", "a", "smith", "cited", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0603", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many citations does noah a smith has ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0643", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers did David M. Blei publish at AISTATS ?", "question_toks": ["How", "many", "papers", "did", "David", "M.", "Blei", "publish", "at", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0644", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS ?", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0645", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers has David M. Blei published in AISTATS ?", "question_toks": ["How", "many", "papers", "has", "David", "M.", "Blei", "published", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0646", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many papers does David M. Blei have at AISTATS", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "at", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0647", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many papers does David M. Blei have in AISTATS ?", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0648", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many David M. Blei papers are in AISTATS ?", "question_toks": ["how", "many", "David", "M.", "Blei", "papers", "are", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0649", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers David M. Blei has in AISTATS ?", "question_toks": ["How", "many", "papers", "David", "M.", "Blei", "has", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0650", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0657", "db_id": "scholar", "query": "select distinct t3.paperid from paperdataset as t2 join dataset as t1 on t2.datasetid = t1.datasetid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.datasetname = \"rgb-d object dataset\" and t3.title = \"class consistent multi-modal fusion with binary features\" and t3.year = 2016 and t4.venuename = \"cvpr\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperdataset", "AS", "t2", "JOIN", "dataset", "AS", "t1", "ON", "t2.datasetid", "=", "t1.datasetid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.datasetname", "=", "``", "RGB-D", "Object", "Dataset", "''", "AND", "t3.title", "=", "``", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "AND", "t3.year", "=", "2016", "AND", "t4.venuename", "=", "``", "CVPR", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperdataset", "as", "t2", "join", "dataset", "as", "t1", "on", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "datasetname", "=", "value", "and", "t3", ".", "title", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What papers were published at CVPR in 2016 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "in", "2016", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"RGB-D Object Dataset\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"CVPR\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0658", "db_id": "scholar", "query": "select distinct t3.paperid from paperdataset as t2 join dataset as t1 on t2.datasetid = t1.datasetid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.datasetname = \"rgb-d object dataset\" and t3.title = \"class consistent multi-modal fusion with binary features\" and t3.year = 2016 and t4.venuename = \"cvpr\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperdataset", "AS", "t2", "JOIN", "dataset", "AS", "t1", "ON", "t2.datasetid", "=", "t1.datasetid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.datasetname", "=", "``", "RGB-D", "Object", "Dataset", "''", "AND", "t3.title", "=", "``", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "AND", "t3.year", "=", "2016", "AND", "t4.venuename", "=", "``", "CVPR", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperdataset", "as", "t2", "join", "dataset", "as", "t1", "on", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "datasetname", "=", "value", "and", "t3", ".", "title", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What papers were published at CVPR '16 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "'16", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"RGB-D Object Dataset\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"CVPR\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0696", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperkeyphrase as t1 join keyphrase as t4 on t1.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t1.paperid join author as t2 on t3.authorid = t2.authorid where t2.authorname = \"ed desmond\" and t4.keyphrasename = \"semantic parsing\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t4", "ON", "t1.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t1.paperid", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "WHERE", "t2.authorname", "=", "``", "Ed", "Desmond", "''", "AND", "t4.keyphrasename", "=", "``", "Semantic", "Parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t4", "on", "t1", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t1", ".", "paperid", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t4", ".", "keyphrasename", "=", "value"], "question": "How many papers by Ed Desmond contain the keyphrases Semantic Parsing ?", "question_toks": ["How", "many", "papers", "by", "Ed", "Desmond", "contain", "the", "keyphrases", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ed Desmond\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Semantic Parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0697", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperkeyphrase as t1 join keyphrase as t4 on t1.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t1.paperid join author as t2 on t3.authorid = t2.authorid where t2.authorname = \"ed desmond\" and t4.keyphrasename = \"semantic parsing\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t4", "ON", "t1.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t1.paperid", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "WHERE", "t2.authorname", "=", "``", "Ed", "Desmond", "''", "AND", "t4.keyphrasename", "=", "``", "Semantic", "Parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t4", "on", "t1", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t1", ".", "paperid", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t4", ".", "keyphrasename", "=", "value"], "question": "How many papers does Ed Desmond have in Semantic Parsing area ?", "question_toks": ["How", "many", "papers", "does", "Ed", "Desmond", "have", "in", "Semantic", "Parsing", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ed Desmond\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Semantic Parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0698", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperkeyphrase as t1 join keyphrase as t4 on t1.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t1.paperid join author as t2 on t3.authorid = t2.authorid where t2.authorname = \"ed desmond\" and t4.keyphrasename = \"semantic parsing\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t4", "ON", "t1.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t1.paperid", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "WHERE", "t2.authorname", "=", "``", "Ed", "Desmond", "''", "AND", "t4.keyphrasename", "=", "``", "Semantic", "Parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t4", "on", "t1", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t1", ".", "paperid", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t4", ".", "keyphrasename", "=", "value"], "question": "How many Semantic Parsing papers has Ed Desmond written ?", "question_toks": ["How", "many", "Semantic", "Parsing", "papers", "has", "Ed", "Desmond", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ed Desmond\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Semantic Parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0699", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperkeyphrase as t1 join keyphrase as t4 on t1.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t1.paperid join author as t2 on t3.authorid = t2.authorid where t2.authorname = \"ed desmond\" and t4.keyphrasename = \"semantic parsing\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t4", "ON", "t1.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t1.paperid", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "WHERE", "t2.authorname", "=", "``", "Ed", "Desmond", "''", "AND", "t4.keyphrasename", "=", "``", "Semantic", "Parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t4", "on", "t1", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t1", ".", "paperid", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t4", ".", "keyphrasename", "=", "value"], "question": "How many paper has Ed Desmond written about Semantic Parsing ?", "question_toks": ["How", "many", "paper", "has", "Ed", "Desmond", "written", "about", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ed Desmond\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Semantic Parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0704", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "acl papers in 2012 on Parsing", "question_toks": ["acl", "papers", "in", "2012", "on", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0705", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What papers were published in acl in 2012 about Parsing ?", "question_toks": ["What", "papers", "were", "published", "in", "acl", "in", "2012", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0706", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "papers on Parsing appeared at acl last year", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "last", "year"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0707", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "Parsing papers from acl 2012", "question_toks": ["Parsing", "papers", "from", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0708", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "papers about Parsing in acl 2012", "question_toks": ["papers", "about", "Parsing", "in", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0709", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "acl papers in 2012 in Parsing", "question_toks": ["acl", "papers", "in", "2012", "in", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0710", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "acl papers in 2012 about Parsing", "question_toks": ["acl", "papers", "in", "2012", "about", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0711", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What papers were published at acl in 2012 were about Parsing ?", "question_toks": ["What", "papers", "were", "published", "at", "acl", "in", "2012", "were", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0712", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "papers on Parsing appeared at acl in 2012", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "in", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0713", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many Parsing papers did acl 2012 have ?", "question_toks": ["how", "many", "Parsing", "papers", "did", "acl", "2012", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0714", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "who published Parsing papers at acl 2012", "question_toks": ["who", "published", "Parsing", "papers", "at", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0715", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "which papers in acl 2012 had Parsing in them ?", "question_toks": ["which", "papers", "in", "acl", "2012", "had", "Parsing", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0716", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "what were some Parsing based papers in acl 2012 ?", "question_toks": ["what", "were", "some", "Parsing", "based", "papers", "in", "acl", "2012", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0743", "db_id": "scholar", "query": "select distinct t2.keyphraseid , t3.year from paper as t3 join paperkeyphrase as t2 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"luke s zettlemoyer\" order by t3.year , t2.keyphraseid;", "query_toks": ["SELECT", "DISTINCT", "t2.keyphraseid", ",", "t3.year", "FROM", "paper", "AS", "t3", "JOIN", "paperkeyphrase", "AS", "t2", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Luke", "S", "Zettlemoyer", "''", "ORDER", "BY", "t3.year", ",", "t2.keyphraseid", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "keyphraseid", ",", "t3", ".", "year", "from", "paper", "as", "t3", "join", "paperkeyphrase", "as", "t2", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "order", "by", "t3", ".", "year", ",", "t2", ".", "keyphraseid"], "question": "keyphrases used by Luke S Zettlemoyer for each year", "question_toks": ["keyphrases", "used", "by", "Luke", "S", "Zettlemoyer", "for", "each", "year"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 8], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 23, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke S Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null], [0, [0, 23, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0753", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2014 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "parsing", "''", "AND", "t3.year", "=", "2014", "AND", "t4.venuename", "=", "``", "ACL", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many parsing papers in ACL 2014", "question_toks": ["how", "many", "parsing", "papers", "in", "ACL", "2014"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"ACL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0754", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2014 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "parsing", "''", "AND", "t3.year", "=", "2014", "AND", "t4.venuename", "=", "``", "ACL", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many parsing papers appeared in the proceeeding of ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "appeared", "in", "the", "proceeeding", "of", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"ACL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0755", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2014 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "parsing", "''", "AND", "t3.year", "=", "2014", "AND", "t4.venuename", "=", "``", "ACL", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many parsing papers were published at ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "were", "published", "at", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"ACL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0787", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"tail\" and t4.venuename = \"nips\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "TAIL", "''", "AND", "t4.venuename", "=", "``", "NIPS", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What TAIL paper published in NIPS ?", "question_toks": ["What", "TAIL", "paper", "published", "in", "NIPS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"TAIL\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"NIPS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0788", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"tail\" and t4.venuename = \"nips\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "TAIL", "''", "AND", "t4.venuename", "=", "``", "NIPS", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "List the papers on TAIL that were published in NIPS", "question_toks": ["List", "the", "papers", "on", "TAIL", "that", "were", "published", "in", "NIPS"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"TAIL\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"NIPS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0053", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "pettype", "=", "value"], "question": "Find the number of dog pets that are raised by female students (with sex F).", "question_toks": ["Find", "the", "number", "of", "dog", "pets", "that", "are", "raised", "by", "female", "students", "(", "with", "sex", "F", ")", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_IN_SQL_BUT_NOT_IN_NL", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0054", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "pettype", "=", "value"], "question": "How many dog pets are raised by female students?", "question_toks": ["How", "many", "dog", "pets", "are", "raised", "by", "female", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_IN_SQL_BUT_NOT_IN_NL", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0057", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "or", "t3", ".", "pettype", "=", "value"], "question": "Find the first name of students who have cat or dog pet.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "cat", "or", "dog", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL", "OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0058", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "or", "t3", ".", "pettype", "=", "value"], "question": "What are the first names of every student who has a cat or dog as a pet?", "question_toks": ["What", "are", "the", "first", "names", "of", "every", "student", "who", "has", "a", "cat", "or", "dog", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL", "OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0059", "db_id": "pets_1", "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'", "query_toks": ["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\""], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "Find the first name of students who have both cat and dog pets .", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "both", "cat", "and", "dog", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "DEJOIN_TOTAL", "_JOIN_2", "AND_IN_NL", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0060", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "What are the students' first names who have both cats and dogs as pets?", "question_toks": ["What", "are", "the", "students", "'", "first", "names", "who", "have", "both", "cats", "and", "dogs", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "DEJOIN_TOTAL", "_JOIN_2", "AND_IN_NL", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0063", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the id of students who do not have a cat pet.", "question_toks": ["Find", "the", "id", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["DEJOIN_TOTAL", "DEJOIN_MINUS_1", "NEGATION", "_JOIN_2", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0064", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the ids of the students who do not own cats as pets?", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "who", "do", "not", "own", "cats", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["DEJOIN_TOTAL", "DEJOIN_MINUS_1", "NEGATION", "_JOIN_2", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0065", "db_id": "pets_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value", ")"], "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "as", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "NEGATION", "_JOIN_2", "_AND_TO_INTERSECT", "AND_IN_NL", "DEJOIN_MINUS_1", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0066", "db_id": "pets_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value", ")"], "question": "What is the first name of every student who has a dog but does not have a cat?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "but", "does", "not", "have", "a", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "AND_IN_SQL_BUT_NOT_IN_NL", "NEGATION", "_JOIN_2", "DEJOIN_MINUS_1", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0083", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "pettype", "=", "value"], "question": "Find the last name of the student who has a cat that is age 3.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "age", "3", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], 3.0, null], "and", [false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_IN_SQL_BUT_NOT_IN_NL", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0084", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "pettype", "=", "value"], "question": "What is the last name of the student who has a cat that is 3 years old?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "3", "years", "old", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], 3.0, null], "and", [false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_IN_SQL_BUT_NOT_IN_NL", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0103", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", ">", "value"], "question": "Which distinct car models are the produced after 1980?", "question_toks": ["Which", "distinct", "car", "models", "are", "the", "produced", "after", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0104", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", ">", "value"], "question": "What are the different models for the cards produced after 1980?", "question_toks": ["What", "are", "the", "different", "models", "for", "the", "cards", "produced", "after", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0105", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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"], "question": "How many car makers are there in each continents? List the continent name and the count.", "question_toks": ["How", "many", "car", "makers", "are", "there", "in", "each", "continents", "?", "List", "the", "continent", "name", "and", "the", "count", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0106", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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"], "question": "What is the name of each continent and how many car makers are there in each one?", "question_toks": ["What", "is", "the", "name", "of", "each", "continent", "and", "how", "many", "car", "makers", "are", "there", "in", "each", "one", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0115", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "=", "value"], "question": "How many car models are produced in the usa?", "question_toks": ["How", "many", "car", "models", "are", "produced", "in", "the", "usa", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0116", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "=", "value"], "question": "What is the count of the car models produced in the United States?", "question_toks": ["What", "is", "the", "count", "of", "the", "car", "models", "produced", "in", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0129", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "=", "value", "group", "by", "t1", ".", "countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which countries in europe have at least 3 car manufacturers?", "question_toks": ["Which", "countries", "in", "europe", "have", "at", "least", "3", "car", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"europe\"", null]], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0130", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "=", "value", "group", "by", "t1", ".", "countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of all European countries with at least 3 manufacturers?", "question_toks": ["What", "are", "the", "names", "of", "all", "European", "countries", "with", "at", "least", "3", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"europe\"", null]], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0175", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value", "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", "(", "*", ")", ">", "value"], "question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "question_toks": ["Which", "are", "the", "car", "makers", "which", "produce", "at", "least", "2", "models", "and", "more", "than", "3", "car", "makers", "?", "List", "the", "id", "and", "the", "maker", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0176", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value", "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", "(", "*", ")", ">", "value"], "question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", "question_toks": ["What", "are", "the", "ids", "and", "makers", "of", "all", "car", "makers", "that", "produce", "at", "least", "2", "models", "and", "make", "more", "than", "3", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "AND_IN_NL", "_AND_TO_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0177", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value", "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", "=", "value"], "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "DEJOIN_TOTAL", "_AND_TO_COLUMNS", "AND_WITH_OR_IN_NL", "_JOIN_2", "_AND_WITH_OR_COLUMN_REMOVED", "AND_IN_NL", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0178", "db_id": "car_1", "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';", "query_toks": ["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\"", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value", "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", "=", "value"], "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "DEJOIN_TOTAL", "_AND_TO_COLUMNS", "AND_WITH_OR_IN_NL", "_JOIN_2", "_AND_WITH_OR_COLUMN_REMOVED", "AND_IN_NL", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0211", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "city", "=", "value"], "question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "'Aberdeen", "'", "and", "have", "destination", "City", "'Ashley", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Ashley\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0212", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "city", "=", "value"], "question": "How many flights fly from Aberdeen to Ashley?", "question_toks": ["How", "many", "flights", "fly", "from", "Aberdeen", "to", "Ashley", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Ashley\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_IN_SQL_BUT_NOT_IN_NL", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0219", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "airline", "=", "value"], "question": "How many United Airlines flights go to City 'Aberdeen'?", "question_toks": ["How", "many", "United", "Airlines", "flights", "go", "to", "City", "'Aberdeen", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_IN_SQL_BUT_NOT_IN_NL", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0220", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "airline", "=", "value"], "question": "Count the number of United Airlines flights that arrive in Aberdeen.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "that", "arrive", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_IN_SQL_BUT_NOT_IN_NL", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0353", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the distinct template type descriptions for the templates ever used by any document?", "question_toks": ["What", "are", "the", "distinct", "template", "type", "descriptions", "for", "the", "templates", "ever", "used", "by", "any", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0354", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Return the different descriptions for templates that have been used in a document.", "question_toks": ["Return", "the", "different", "descriptions", "for", "templates", "that", "have", "been", "used", "in", "a", "document", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0399", "db_id": "course_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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show names of teachers and the courses they are arranged to teach.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0400", "db_id": "course_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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What is the name of each teacher and what course they teach?", "question_toks": ["What", "is", "the", "name", "of", "each", "teacher", "and", "what", "course", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0401", "db_id": "course_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 order by t3.name", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "in", "ascending", "alphabetical", "order", "of", "the", "teacher", "'s", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0402", "db_id": "course_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 order by t3.name", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "and", "the", "courses", "they", "teach", "in", "ascending", "alphabetical", "order", "by", "the", "name", "of", "the", "teacher", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0426", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "<", "value", "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", ">", "value"], "question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "question_toks": ["What", "is", "the", "name", "of", "the", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "2009", "and", "a", "museum", "opened", "after", "2011", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_2", "_AND_TO_INTERSECT", "AND_IN_NL", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0936", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "AND_WITH_OR_IN_NL", "_JOIN_2", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0937", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "the", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "AND_WITH_OR_IN_NL", "_JOIN_2", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0940", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "question_toks": ["Which", "owner", "has", "paid", "the", "largest", "amount", "of", "money", "in", "total", "for", "their", "dogs", "?", "Show", "the", "owner", "id", "and", "zip", "code", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0941", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "owner", "id", "and", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "AND_WITH_OR_IN_NL", "_JOIN_2", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0081", "db_id": "student_assessment", "query": "select t3.course_name , count(*) from students as t1 join student_course_registrations as t2 on t1.student_id = t2.student_id join courses as t3 on t2.course_id = t3.course_id group by t2.course_id", "query_toks": ["SELECT", "T3.course_name", ",", "count", "(", "*", ")", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "courses", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "GROUP", "BY", "T2.course_id"], "query_toks_no_value": ["select", "t3", ".", "course_name", ",", "count", "(", "*", ")", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "courses", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "group", "by", "t2", ".", "course_id"], "question": "How many registed students do each course have? List course name and the number of their registered students?", "question_toks": ["How", "many", "registed", "students", "do", "each", "course", "have", "?", "List", "course", "name", "and", "the", "number", "of", "their", "registered", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0082", "db_id": "student_assessment", "query": "select t3.course_name , count(*) from students as t1 join student_course_registrations as t2 on t1.student_id = t2.student_id join courses as t3 on t2.course_id = t3.course_id group by t2.course_id", "query_toks": ["SELECT", "T3.course_name", ",", "count", "(", "*", ")", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "courses", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "GROUP", "BY", "T2.course_id"], "query_toks_no_value": ["select", "t3", ".", "course_name", ",", "count", "(", "*", ")", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "courses", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "group", "by", "t2", ".", "course_id"], "question": "For each course id, how many students are registered and what are the course names?", "question_toks": ["For", "each", "course", "id", ",", "how", "many", "students", "are", "registered", "and", "what", "are", "the", "course", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0093", "db_id": "student_assessment", "query": "select distinct t1.city from addresses as t1 join people_addresses as t2 on t1.address_id = t2.address_id join students as t3 on t2.person_id = t3.student_id", "query_toks": ["SELECT", "DISTINCT", "T1.city", "FROM", "addresses", "AS", "T1", "JOIN", "people_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "JOIN", "students", "AS", "T3", "ON", "T2.person_id", "=", "T3.student_id"], "query_toks_no_value": ["select", "distinct", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "people_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "join", "students", "as", "t3", "on", "t2", ".", "person_id", "=", "t3", ".", "student_id"], "question": "Find distinct cities of address of students?", "question_toks": ["Find", "distinct", "cities", "of", "address", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0094", "db_id": "student_assessment", "query": "select distinct t1.city from addresses as t1 join people_addresses as t2 on t1.address_id = t2.address_id join students as t3 on t2.person_id = t3.student_id", "query_toks": ["SELECT", "DISTINCT", "T1.city", "FROM", "addresses", "AS", "T1", "JOIN", "people_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "JOIN", "students", "AS", "T3", "ON", "T2.person_id", "=", "T3.student_id"], "query_toks_no_value": ["select", "distinct", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "people_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "join", "students", "as", "t3", "on", "t2", ".", "person_id", "=", "t3", ".", "student_id"], "question": "What are the different cities where students live?", "question_toks": ["What", "are", "the", "different", "cities", "where", "students", "live", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0437", "db_id": "flight_1", "query": "select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.distance > 5000 group by t1.eid order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.distance", ">", "5000", "GROUP", "BY", "T1.eid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "distance", ">", "value", "group", "by", "t1", ".", "eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?", "question_toks": ["What", "is", "the", "salary", "and", "name", "of", "the", "employee", "who", "has", "the", "most", "number", "of", "certificates", "on", "aircrafts", "with", "distance", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0438", "db_id": "flight_1", "query": "select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.distance > 5000 group by t1.eid order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.distance", ">", "5000", "GROUP", "BY", "T1.eid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "distance", ">", "value", "group", "by", "t1", ".", "eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salaray and name of the employee with the most certificates to fly planes more than 5000?", "question_toks": ["What", "is", "the", "salaray", "and", "name", "of", "the", "employee", "with", "the", "most", "certificates", "to", "fly", "planes", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0635", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t3.id = t2.playlist_id where t3.name = \"movies\";", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T3.id", "=", "T2.playlist_id", "WHERE", "T3.name", "=", "``", "Movies", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "playlist_id", "where", "t3", ".", "name", "=", "value"], "question": "List the name of all tracks in the playlists of Movies.", "question_toks": ["List", "the", "name", "of", "all", "tracks", "in", "the", "playlists", "of", "Movies", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 63, false], null], [0, 65, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0636", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t3.id = t2.playlist_id where t3.name = \"movies\";", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T3.id", "=", "T2.playlist_id", "WHERE", "T3.name", "=", "``", "Movies", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "playlist_id", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of all tracks that are on playlists titled Movies?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "playlists", "titled", "Movies", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 63, false], null], [0, 65, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0643", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'movies' except select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'music'", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "EXCEPT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "except", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "Find the name of tracks which are in Movies playlist but not in music playlist.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "Movies", "playlist", "but", "not", "in", "music", "playlist", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["DEJOIN_TOTAL", "DEJOIN_MINUS_1", "NEGATION", "_JOIN_2", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0644", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'movies' except select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'music'", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "EXCEPT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "except", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of all tracks that are on the Movies playlist but not in the music playlist?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "the", "Movies", "playlist", "but", "not", "in", "the", "music", "playlist", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "DEJOIN_TOTAL", "_JOIN_2", "NEGATION_WITH_ANY_ALL", "DEJOIN_MINUS_1"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0645", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'movies' intersect select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'music'", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "Find the name of tracks which are in both Movies and music playlists.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "both", "Movies", "and", "music", "playlists", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0646", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'movies' intersect select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'music'", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of all the tracks that are in both the Movies and music playlists?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "tracks", "that", "are", "in", "both", "the", "Movies", "and", "music", "playlists", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0658", "db_id": "journal_committee", "query": "select t2.name , t3.theme from journal_committee as t1 join editor as t2 on t1.editor_id = t2.editor_id join journal as t3 on t1.journal_id = t3.journal_id", "query_toks": ["SELECT", "T2.Name", ",", "T3.Theme", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "theme", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id"], "question": "Show the names of editors and the theme of journals for which they serve on committees.", "question_toks": ["Show", "the", "names", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0659", "db_id": "journal_committee", "query": "select t2.name , t3.theme from journal_committee as t1 join editor as t2 on t1.editor_id = t2.editor_id join journal as t3 on t1.journal_id = t3.journal_id", "query_toks": ["SELECT", "T2.Name", ",", "T3.Theme", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "theme", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id"], "question": "For each journal_committee, find the editor name and the journal theme.", "question_toks": ["For", "each", "journal_committee", ",", "find", "the", "editor", "name", "and", "the", "journal", "theme", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0660", "db_id": "journal_committee", "query": "select t2.name , t2.age , t3.theme from journal_committee as t1 join editor as t2 on t1.editor_id = t2.editor_id join journal as t3 on t1.journal_id = t3.journal_id order by t3.theme asc", "query_toks": ["SELECT", "T2.Name", ",", "T2.age", ",", "T3.Theme", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID", "ORDER", "BY", "T3.Theme", "ASC"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "age", ",", "t3", ".", "theme", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id", "order", "by", "t3", ".", "theme", "asc"], "question": "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.", "question_toks": ["Show", "the", "names", "and", "ages", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", ",", "in", "ascending", "alphabetical", "order", "of", "theme", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0661", "db_id": "journal_committee", "query": "select t2.name from journal_committee as t1 join editor as t2 on t1.editor_id = t2.editor_id join journal as t3 on t1.journal_id = t3.journal_id where t3.sales > 3000", "query_toks": ["SELECT", "T2.Name", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID", "WHERE", "T3.Sales", ">", "3000"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id", "where", "t3", ".", "sales", ">", "value"], "question": "Show the names of editors that are on the committee of journals with sales bigger than 3000.", "question_toks": ["Show", "the", "names", "of", "editors", "that", "are", "on", "the", "committee", "of", "journals", "with", "sales", "bigger", "than", "3000", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0889", "db_id": "chinook_1", "query": "select t1.title from album as t1 join track as t2 on t1.albumid = t2.albumid join genre as t3 on t2.genreid = t3.genreid where t3.name = 'reggae' intersect select t1.title from album as t1 join track as t2 on t1.albumid = t2.albumid join genre as t3 on t2.genreid = t3.genreid where t3.name = 'rock'", "query_toks": ["SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Reggae", "'", "INTERSECT", "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Rock", "'"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value"], "question": "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?", "question_toks": ["What", "are", "the", "album", "titles", "for", "albums", "containing", "both", "'Reggae", "'", "and", "'Rock", "'", "genre", "tracks", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null], "and", [false, 2, [0, [0, 60, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null], "and", [false, 2, [0, [0, 60, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0890", "db_id": "chinook_1", "query": "select t1.title from album as t1 join track as t2 on t1.albumid = t2.albumid join genre as t3 on t2.genreid = t3.genreid where t3.name = 'reggae' intersect select t1.title from album as t1 join track as t2 on t1.albumid = t2.albumid join genre as t3 on t2.genreid = t3.genreid where t3.name = 'rock'", "query_toks": ["SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Reggae", "'", "INTERSECT", "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Rock", "'"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value"], "question": "Find the titles of albums that contain tracks of both the Reggae and Rock genres.", "question_toks": ["Find", "the", "titles", "of", "albums", "that", "contain", "tracks", "of", "both", "the", "Reggae", "and", "Rock", "genres", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null], "and", [false, 2, [0, [0, 60, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null], "and", [false, 2, [0, [0, 60, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0913", "db_id": "insurance_fnol", "query": "select distinct t3.policy_type_code from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id join available_policies as t3 on t2.policy_id = t3.policy_id where t1.customer_name = (select t1.customer_name from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_name order by count(*) desc limit 1)", "query_toks": ["SELECT", "DISTINCT", "t3.policy_type_code", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "available_policies", "AS", "t3", "ON", "t2.policy_id", "=", "t3.policy_id", "WHERE", "t1.customer_name", "=", "(", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "distinct", "t3", ".", "policy_type_code", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "available_policies", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id", "where", "t1", ".", "customer_name", "=", "(", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What are all the policy types of the customer that has the most policies listed?", "question_toks": ["What", "are", "all", "the", "policy", "types", "of", "the", "customer", "that", "has", "the", "most", "policies", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0914", "db_id": "insurance_fnol", "query": "select distinct t3.policy_type_code from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id join available_policies as t3 on t2.policy_id = t3.policy_id where t1.customer_name = (select t1.customer_name from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_name order by count(*) desc limit 1)", "query_toks": ["SELECT", "DISTINCT", "t3.policy_type_code", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "available_policies", "AS", "t3", "ON", "t2.policy_id", "=", "t3.policy_id", "WHERE", "t1.customer_name", "=", "(", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "distinct", "t3", ".", "policy_type_code", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "available_policies", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id", "where", "t1", ".", "customer_name", "=", "(", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "List all the policy types used by the customer enrolled in the most policies.", "question_toks": ["List", "all", "the", "policy", "types", "used", "by", "the", "customer", "enrolled", "in", "the", "most", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0923", "db_id": "insurance_fnol", "query": "select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = \"close a policy\" intersect select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = \"new policy application\"", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "Close", "a", "policy", "''", "INTERSECT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "New", "policy", "application", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value"], "question": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\".", "question_toks": ["Find", "the", "names", "of", "customers", "who", "have", "used", "both", "the", "service", "``", "Close", "a", "policy", "''", "and", "the", "service", "``", "New", "policy", "application", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"New policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0924", "db_id": "insurance_fnol", "query": "select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = \"close a policy\" intersect select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = \"new policy application\"", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "Close", "a", "policy", "''", "INTERSECT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "New", "policy", "application", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value"], "question": "Which customers have used both the service named \"Close a policy\" and the service named \"Upgrade a policy\"? Give me the customer names.", "question_toks": ["Which", "customers", "have", "used", "both", "the", "service", "named", "``", "Close", "a", "policy", "''", "and", "the", "service", "named", "``", "Upgrade", "a", "policy", "''", "?", "Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"New policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1282", "db_id": "game_injury", "query": "select t1.id , t1.name from stadium as t1 join game as t2 on t1.id = t2.stadium_id join injury_accident as t3 on t2.id = t3.game_id group by t1.id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.id", ",", "T1.name", "FROM", "stadium", "AS", "T1", "JOIN", "game", "AS", "T2", "ON", "T1.id", "=", "T2.stadium_id", "JOIN", "injury_accident", "AS", "T3", "ON", "T2.id", "=", "T3.game_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "stadium", "as", "t1", "join", "game", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "stadium_id", "join", "injury_accident", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "game_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the id and name of the stadium where the most injury accidents happened?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "most", "injury", "accidents", "happened", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1283", "db_id": "game_injury", "query": "select t1.id , t1.name from stadium as t1 join game as t2 on t1.id = t2.stadium_id join injury_accident as t3 on t2.id = t3.game_id group by t1.id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.id", ",", "T1.name", "FROM", "stadium", "AS", "T1", "JOIN", "game", "AS", "T2", "ON", "T1.id", "=", "T2.stadium_id", "JOIN", "injury_accident", "AS", "T3", "ON", "T2.id", "=", "T3.game_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "stadium", "as", "t1", "join", "game", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "stadium_id", "join", "injury_accident", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "game_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the id and name of the stadium where the largest number of injury accidents occurred.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "largest", "number", "of", "injury", "accidents", "occurred", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1430", "db_id": "college_2", "query": "select t1.name from instructor as t1 join teaches as t2 on t1.id = t2.id join course as t3 on t2.course_id = t3.course_id where t3.title = 'c programming'", "query_toks": ["SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.id", "=", "T2.id", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T3.title", "=", "'C", "Programming", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t3", ".", "title", "=", "value"], "question": "Find the name of the instructors who taught C Programming course before.", "question_toks": ["Find", "the", "name", "of", "the", "instructors", "who", "taught", "C", "Programming", "course", "before", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"C Programming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1431", "db_id": "college_2", "query": "select t1.name from instructor as t1 join teaches as t2 on t1.id = t2.id join course as t3 on t2.course_id = t3.course_id where t3.title = 'c programming'", "query_toks": ["SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.id", "=", "T2.id", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T3.title", "=", "'C", "Programming", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t3", ".", "title", "=", "value"], "question": "What are the names of instructors who have taught C Programming courses?", "question_toks": ["What", "are", "the", "names", "of", "instructors", "who", "have", "taught", "C", "Programming", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"C Programming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1438", "db_id": "college_2", "query": "select t2.name from advisor as t1 join instructor as t2 on t1.i_id = t2.id join student as t3 on t1.s_id = t3.id order by t3.tot_cred desc limit 1", "query_toks": ["SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "ORDER", "BY", "T3.tot_cred", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "order", "by", "t3", ".", "tot_cred", "desc", "limit", "value"], "question": "Find the name of instructor who is the advisor of the student who has the highest number of total credits.", "question_toks": ["Find", "the", "name", "of", "instructor", "who", "is", "the", "advisor", "of", "the", "student", "who", "has", "the", "highest", "number", "of", "total", "credits", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 3], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 30, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1439", "db_id": "college_2", "query": "select t2.name from advisor as t1 join instructor as t2 on t1.i_id = t2.id join student as t3 on t1.s_id = t3.id order by t3.tot_cred desc limit 1", "query_toks": ["SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "ORDER", "BY", "T3.tot_cred", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "order", "by", "t3", ".", "tot_cred", "desc", "limit", "value"], "question": "What is the name of the instructor who advises the student with the greatest number of total credits?", "question_toks": ["What", "is", "the", "name", "of", "the", "instructor", "who", "advises", "the", "student", "with", "the", "greatest", "number", "of", "total", "credits", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 3], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 30, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1454", "db_id": "college_2", "query": "select count(distinct t2.id) , count(distinct t3.id) , t3.dept_name from department as t1 join student as t2 on t1.dept_name = t2.dept_name join instructor as t3 on t1.dept_name = t3.dept_name group by t3.dept_name", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2.id", ")", ",", "count", "(", "DISTINCT", "T3.id", ")", ",", "T3.dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1.dept_name", "=", "T3.dept_name", "GROUP", "BY", "T3.dept_name"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "id", ")", ",", "count", "(", "distinct", "t3", ".", "id", ")", ",", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name"], "question": "Find the total number of students and total number of instructors for each department.", "question_toks": ["Find", "the", "total", "number", "of", "students", "and", "total", "number", "of", "instructors", "for", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 13, false], null]]}, "select": [false, [[3, [0, [0, 27, true], null]], [3, [0, [0, 11, true], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1455", "db_id": "college_2", "query": "select count(distinct t2.id) , count(distinct t3.id) , t3.dept_name from department as t1 join student as t2 on t1.dept_name = t2.dept_name join instructor as t3 on t1.dept_name = t3.dept_name group by t3.dept_name", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2.id", ")", ",", "count", "(", "DISTINCT", "T3.id", ")", ",", "T3.dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1.dept_name", "=", "T3.dept_name", "GROUP", "BY", "T3.dept_name"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "id", ")", ",", "count", "(", "distinct", "t3", ".", "id", ")", ",", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name"], "question": "How many students and instructors are in each department?", "question_toks": ["How", "many", "students", "and", "instructors", "are", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 13, false], null]]}, "select": [false, [[3, [0, [0, 27, true], null]], [3, [0, [0, 11, true], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1501", "db_id": "debate", "query": "select t3.name , t2.date , t2.venue from debate_people as t1 join debate as t2 on t1.debate_id = t2.debate_id join people as t3 on t1.affirmative = t3.people_id", "query_toks": ["SELECT", "T3.Name", ",", "T2.Date", ",", "T2.Venue", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Affirmative", "=", "T3.People_ID"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "date", ",", "t2", ".", "venue", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "affirmative", "=", "t3", ".", "people_id"], "question": "Show the names of people, and dates and venues of debates they are on the affirmative side.", "question_toks": ["Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "affirmative", "side", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1502", "db_id": "debate", "query": "select t3.name , t2.date , t2.venue from debate_people as t1 join debate as t2 on t1.debate_id = t2.debate_id join people as t3 on t1.negative = t3.people_id order by t3.name asc", "query_toks": ["SELECT", "T3.Name", ",", "T2.Date", ",", "T2.Venue", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Negative", "=", "T3.People_ID", "ORDER", "BY", "T3.Name", "ASC"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "date", ",", "t2", ".", "venue", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "negative", "=", "t3", ".", "people_id", "order", "by", "t3", ".", "name", "asc"], "question": "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.", "question_toks": ["Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "negative", "side", ",", "ordered", "in", "ascending", "alphabetical", "order", "of", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1503", "db_id": "debate", "query": "select t3.name from debate_people as t1 join debate as t2 on t1.debate_id = t2.debate_id join people as t3 on t1.affirmative = t3.people_id where t2.num_of_audience > 200", "query_toks": ["SELECT", "T3.Name", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Affirmative", "=", "T3.People_ID", "WHERE", "T2.Num_of_Audience", ">", "200"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "affirmative", "=", "t3", ".", "people_id", "where", "t2", ".", "num_of_audience", ">", "value"], "question": "Show the names of people that are on affirmative side of debates with number of audience bigger than 200.", "question_toks": ["Show", "the", "names", "of", "people", "that", "are", "on", "affirmative", "side", "of", "debates", "with", "number", "of", "audience", "bigger", "than", "200", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1521", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_piad = (select min(amount_piad) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_piad", "=", "(", "SELECT", "min", "(", "amount_piad", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers", ")"], "question": "What is the name of the customer who has made the minimum amount of payment in one claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "minimum", "amount", "of", "payment", "in", "one", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1522", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_piad = (select min(amount_piad) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_piad", "=", "(", "SELECT", "min", "(", "amount_piad", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers", ")"], "question": "Which customer made the smallest amount of claim in one claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "smallest", "amount", "of", "claim", "in", "one", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1621", "db_id": "customers_and_invoices", "query": "select t2.product_name , count(*) from order_items as t1 join products as t2 on t1.product_id = t2.product_id join orders as t3 on t3.order_id = t1.order_id group by t2.product_name", "query_toks": ["SELECT", "T2.product_name", ",", "count", "(", "*", ")", "FROM", "Order_items", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "JOIN", "Orders", "AS", "T3", "ON", "T3.order_id", "=", "T1.order_id", "GROUP", "BY", "T2.product_name"], "query_toks_no_value": ["select", "t2", ".", "product_name", ",", "count", "(", "*", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "orders", "as", "t3", "on", "t3", ".", "order_id", "=", "t1", ".", "order_id", "group", "by", "t2", ".", "product_name"], "question": "Show all product names and the number of customers having an order on each product.", "question_toks": ["Show", "all", "product", "names", "and", "the", "number", "of", "customers", "having", "an", "order", "on", "each", "product", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 44, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1622", "db_id": "customers_and_invoices", "query": "select t2.product_name , count(*) from order_items as t1 join products as t2 on t1.product_id = t2.product_id join orders as t3 on t3.order_id = t1.order_id group by t2.product_name", "query_toks": ["SELECT", "T2.product_name", ",", "count", "(", "*", ")", "FROM", "Order_items", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "JOIN", "Orders", "AS", "T3", "ON", "T3.order_id", "=", "T1.order_id", "GROUP", "BY", "T2.product_name"], "query_toks_no_value": ["select", "t2", ".", "product_name", ",", "count", "(", "*", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "orders", "as", "t3", "on", "t3", ".", "order_id", "=", "t1", ".", "order_id", "group", "by", "t2", ".", "product_name"], "question": "What are teh names of the different products, as well as the number of customers who have ordered each product.", "question_toks": ["What", "are", "teh", "names", "of", "the", "different", "products", ",", "as", "well", "as", "the", "number", "of", "customers", "who", "have", "ordered", "each", "product", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 44, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1687", "db_id": "theme_gallery", "query": "select t3.name from exhibition_record as t1 join exhibition as t2 on t1.exhibition_id = t2.exhibition_id join artist as t3 on t3.artist_id = t2.artist_id group by t3.artist_id having avg(t1.attendance) > 200", "query_toks": ["SELECT", "T3.name", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "JOIN", "artist", "AS", "T3", "ON", "T3.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T3.artist_id", "HAVING", "avg", "(", "T1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "join", "artist", "as", "t3", "on", "t3", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t3", ".", "artist_id", "having", "avg", "(", "t1", ".", "attendance", ")", ">", "value"], "question": "Show all artist names with an average exhibition attendance over 200.", "question_toks": ["Show", "all", "artist", "names", "with", "an", "average", "exhibition", "attendance", "over", "200", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [5, 13, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1688", "db_id": "theme_gallery", "query": "select t3.name from exhibition_record as t1 join exhibition as t2 on t1.exhibition_id = t2.exhibition_id join artist as t3 on t3.artist_id = t2.artist_id group by t3.artist_id having avg(t1.attendance) > 200", "query_toks": ["SELECT", "T3.name", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "JOIN", "artist", "AS", "T3", "ON", "T3.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T3.artist_id", "HAVING", "avg", "(", "T1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "join", "artist", "as", "t3", "on", "t3", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t3", ".", "artist_id", "having", "avg", "(", "t1", ".", "attendance", ")", ">", "value"], "question": "What are the names of artist whose exhibitions draw over 200 attendees on average?", "question_toks": ["What", "are", "the", "names", "of", "artist", "whose", "exhibitions", "draw", "over", "200", "attendees", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [5, 13, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1728", "db_id": "riding_club", "query": "select t3.player_name , t2.coach_name from player_coach as t1 join coach as t2 on t1.coach_id = t2.coach_id join player as t3 on t1.player_id = t3.player_id", "query_toks": ["SELECT", "T3.Player_name", ",", "T2.coach_name", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID"], "query_toks_no_value": ["select", "t3", ".", "player_name", ",", "t2", ".", "coach_name", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id"], "question": "Show the names of players and names of their coaches.", "question_toks": ["Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1729", "db_id": "riding_club", "query": "select t3.player_name from player_coach as t1 join coach as t2 on t1.coach_id = t2.coach_id join player as t3 on t1.player_id = t3.player_id where t2.rank = 1", "query_toks": ["SELECT", "T3.Player_name", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID", "WHERE", "T2.Rank", "=", "1"], "query_toks_no_value": ["select", "t3", ".", "player_name", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id", "where", "t2", ".", "rank", "=", "value"], "question": "Show the names of players coached by the rank 1 coach.", "question_toks": ["Show", "the", "names", "of", "players", "coached", "by", "the", "rank", "1", "coach", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1730", "db_id": "riding_club", "query": "select t3.player_name , t3.gender from player_coach as t1 join coach as t2 on t1.coach_id = t2.coach_id join player as t3 on t1.player_id = t3.player_id where t1.starting_year > 2011", "query_toks": ["SELECT", "T3.Player_name", ",", "T3.gender", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID", "WHERE", "T1.Starting_year", ">", "2011"], "query_toks_no_value": ["select", "t3", ".", "player_name", ",", "t3", ".", "gender", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id", "where", "t1", ".", "starting_year", ">", "value"], "question": "Show the names and genders of players with a coach starting after 2011.", "question_toks": ["Show", "the", "names", "and", "genders", "of", "players", "with", "a", "coach", "starting", "after", "2011", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1731", "db_id": "riding_club", "query": "select t3.player_name , t2.coach_name from player_coach as t1 join coach as t2 on t1.coach_id = t2.coach_id join player as t3 on t1.player_id = t3.player_id order by t3.votes desc", "query_toks": ["SELECT", "T3.Player_name", ",", "T2.coach_name", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID", "ORDER", "BY", "T3.Votes", "DESC"], "query_toks_no_value": ["select", "t3", ".", "player_name", ",", "t2", ".", "coach_name", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id", "order", "by", "t3", ".", "votes", "desc"], "question": "Show the names of players and names of their coaches in descending order of the votes of players.", "question_toks": ["Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "in", "descending", "order", "of", "the", "votes", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1798", "db_id": "small_bank_1", "query": "select t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance + t3.balance limit 1", "query_toks": ["SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "limit", "value"], "question": "Find the name of account that has the lowest total checking and saving balance.", "question_toks": ["Find", "the", "name", "of", "account", "that", "has", "the", "lowest", "total", "checking", "and", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 6, false], [0, 4, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1799", "db_id": "small_bank_1", "query": "select t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance + t3.balance limit 1", "query_toks": ["SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "limit", "value"], "question": "What is the name corresponding to the accoung with the lowest sum of checking and savings balances?", "question_toks": ["What", "is", "the", "name", "corresponding", "to", "the", "accoung", "with", "the", "lowest", "sum", "of", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 6, false], [0, 4, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1800", "db_id": "small_bank_1", "query": "select t1.name , t2.balance + t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance > (select avg(balance) from savings)", "query_toks": ["SELECT", "T1.name", ",", "T2.balance", "+", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "+", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.", "question_toks": ["Find", "the", "names", "and", "total", "checking", "and", "savings", "balances", "of", "accounts", "whose", "savings", "balance", "is", "higher", "than", "the", "average", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [2, [0, 6, false], [0, 4, false]]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1801", "db_id": "small_bank_1", "query": "select t1.name , t2.balance + t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance > (select avg(balance) from savings)", "query_toks": ["SELECT", "T1.name", ",", "T2.balance", "+", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "+", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance?", "question_toks": ["What", "are", "the", "names", "and", "sum", "of", "checking", "and", "savings", "balances", "for", "accounts", "with", "savings", "balances", "higher", "than", "the", "average", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [2, [0, 6, false], [0, 4, false]]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1802", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t3.balance limit 1", "query_toks": ["SELECT", "T1.name", ",", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest savings balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1803", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t3.balance limit 1", "query_toks": ["SELECT", "T1.name", ",", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value"], "question": "What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?", "question_toks": ["What", "are", "the", "names", "and", "balances", "of", "checking", "accounts", "belonging", "to", "the", "customer", "with", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1810", "db_id": "small_bank_1", "query": "select t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance desc limit 1", "query_toks": ["SELECT", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "desc", "limit", "value"], "question": "Find the saving balance of the account with the highest checking balance.", "question_toks": ["Find", "the", "saving", "balance", "of", "the", "account", "with", "the", "highest", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1811", "db_id": "small_bank_1", "query": "select t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance desc limit 1", "query_toks": ["SELECT", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "desc", "limit", "value"], "question": "What is the savings balance of the account belonging to the customer with the highest checking balance?", "question_toks": ["What", "is", "the", "savings", "balance", "of", "the", "account", "belonging", "to", "the", "customer", "with", "the", "highest", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1814", "db_id": "small_bank_1", "query": "select t2.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t3.balance limit 1", "query_toks": ["SELECT", "T2.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest saving balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1815", "db_id": "small_bank_1", "query": "select t2.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t3.balance limit 1", "query_toks": ["SELECT", "T2.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value"], "question": "What is the name and checking balance of the account which has the lowest savings balance?", "question_toks": ["What", "is", "the", "name", "and", "checking", "balance", "of", "the", "account", "which", "has", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1816", "db_id": "small_bank_1", "query": "select t2.balance , t3.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid", "query_toks": ["SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid"], "question": "Find the name, checking balance and saving balance of all accounts in the bank.", "question_toks": ["Find", "the", "name", ",", "checking", "balance", "and", "saving", "balance", "of", "all", "accounts", "in", "the", "bank", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1817", "db_id": "small_bank_1", "query": "select t2.balance , t3.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid", "query_toks": ["SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid"], "question": "What are the names, checking balances, and savings balances for all customers?", "question_toks": ["What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "for", "all", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1818", "db_id": "small_bank_1", "query": "select t2.balance , t3.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance + t3.balance desc", "query_toks": ["SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "DESC"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "desc"], "question": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.", "question_toks": ["Find", "the", "name", ",", "checking", "balance", "and", "savings", "balance", "of", "all", "accounts", "in", "the", "bank", "sorted", "by", "their", "total", "checking", "and", "savings", "balance", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[2, [0, 6, false], [0, 4, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1819", "db_id": "small_bank_1", "query": "select t2.balance , t3.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance + t3.balance desc", "query_toks": ["SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "DESC"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "desc"], "question": "What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending?", "question_toks": ["What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "of", "customers", ",", "ordered", "by", "the", "total", "of", "checking", "and", "savings", "balances", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[2, [0, 6, false], [0, 4, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1820", "db_id": "small_bank_1", "query": "select t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t2.balance > t3.balance", "query_toks": ["SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T2.balance", ">", "T3.balance"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t2", ".", "balance", ">", "t3", ".", "balance"], "question": "Find the name of accounts whose checking balance is higher than corresponding saving balance.", "question_toks": ["Find", "the", "name", "of", "accounts", "whose", "checking", "balance", "is", "higher", "than", "corresponding", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], [0, 4, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1821", "db_id": "small_bank_1", "query": "select t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t2.balance > t3.balance", "query_toks": ["SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T2.balance", ">", "T3.balance"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t2", ".", "balance", ">", "t3", ".", "balance"], "question": "What are the names of customers with a higher checking balance than savings balance?", "question_toks": ["What", "are", "the", "names", "of", "customers", "with", "a", "higher", "checking", "balance", "than", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], [0, 4, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1822", "db_id": "small_bank_1", "query": "select t1.name , t3.balance + t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["SELECT", "T1.name", ",", "T3.balance", "+", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", "<", "T2.balance"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "balance", "+", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance"], "question": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": ["Find", "the", "name", "and", "total", "checking", "and", "savings", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [2, [0, 4, false], [0, 6, false]]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "MATH_PLUS", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1823", "db_id": "small_bank_1", "query": "select t1.name , t3.balance + t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["SELECT", "T1.name", ",", "T3.balance", "+", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", "<", "T2.balance"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "balance", "+", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance"], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "total", "of", "their", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [2, [0, 4, false], [0, 6, false]]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_MINUS_1", "MATH_PLUS", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1838", "db_id": "browser_web", "query": "select distinct t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id join browser as t3 on t2.browser_id = t3.id where t3.market_share > 15;", "query_toks": ["SELECT", "DISTINCT", "T1.name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "JOIN", "browser", "AS", "T3", "ON", "T2.browser_id", "=", "T3.id", "WHERE", "T3.market_share", ">", "15", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "join", "browser", "as", "t3", "on", "t2", ".", "browser_id", "=", "t3", ".", "id", "where", "t3", ".", "market_share", ">", "value"], "question": "What distinct accelerator names are compatible with the browswers that have market share higher than 15?", "question_toks": ["What", "distinct", "accelerator", "names", "are", "compatible", "with", "the", "browswers", "that", "have", "market", "share", "higher", "than", "15", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 15.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0039", "db_id": "concert_singer", "query": "select name , country from singer where song_name like '%hey%'", "query_toks": ["SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "'", "%", "Hey", "%", "'"], "query_toks_no_value": ["select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "value"], "question": "what is the name and nation of the singer who have a song having 'Hey' in its name?", "question_toks": ["what", "is", "the", "name", "and", "nation", "of", "the", "singer", "who", "have", "a", "song", "having", "'Hey", "'", "in", "its", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%Hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_AND_TO_COLUMNS", "_REFORMULATION_SYNONYM", "SYNONYMS", "AND_IN_NL", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0040", "db_id": "concert_singer", "query": "select name , country from singer where song_name like '%hey%'", "query_toks": ["SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "'", "%", "Hey", "%", "'"], "query_toks_no_value": ["select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "value"], "question": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?", "question_toks": ["What", "is", "the", "name", "and", "country", "of", "origin", "of", "every", "singer", "who", "has", "a", "song", "with", "the", "word", "'Hey", "'", "in", "its", "title", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%Hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_COLUMNS", "_REFORMULATION_SYNONYM", "SYNONYMS", "AND_IN_NL", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0301", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name , template_id from documents where document_description like \"%w%\"", "query_toks": ["SELECT", "document_name", ",", "template_id", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "``", "%", "w", "%", "''"], "query_toks_no_value": ["select", "document_name", ",", "template_id", "from", "documents", "where", "document_description", "like", "value"], "question": "What is the document name and template id for document with description with the letter 'w' in it?", "question_toks": ["What", "is", "the", "document", "name", "and", "template", "id", "for", "document", "with", "description", "with", "the", "letter", "'w", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%w%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_COLUMNS", "AND_IN_NL", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0302", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name , template_id from documents where document_description like \"%w%\"", "query_toks": ["SELECT", "document_name", ",", "template_id", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "``", "%", "w", "%", "''"], "query_toks_no_value": ["select", "document_name", ",", "template_id", "from", "documents", "where", "document_description", "like", "value"], "question": "Return the names and template ids for documents that contain the letter w in their description.", "question_toks": ["Return", "the", "names", "and", "template", "ids", "for", "documents", "that", "contain", "the", "letter", "w", "in", "their", "description", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%w%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_COLUMNS", "AND_IN_NL", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0361", "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs where paragraph_text like 'korea'", "query_toks": ["select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "\"korea\""], "query_toks_no_value": ["select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "value"], "question": "Show paragraph details for paragraph with text 'Korea ' .", "question_toks": ["Show", "paragraph", "details", "for", "paragraph", "with", "text", "'Korea", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 16, false], null], "\"korea\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0362", "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs where paragraph_text like 'korea'", "query_toks": ["select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "\"korea\""], "query_toks_no_value": ["select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "value"], "question": "What are the details for the paragraph that includes the text 'Korea ' ?", "question_toks": ["What", "are", "the", "details", "for", "the", "paragraph", "that", "includes", "the", "text", "'Korea", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 16, false], null], "\"korea\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0506", "db_id": "battle_death", "query": "select note from death where note like '%east%'", "query_toks": ["SELECT", "note", "FROM", "death", "WHERE", "note", "LIKE", "'", "%", "East", "%", "'"], "query_toks_no_value": ["select", "note", "from", "death", "where", "note", "like", "value"], "question": "What are the notes of the death events which has substring 'East'?", "question_toks": ["What", "are", "the", "notes", "of", "the", "death", "events", "which", "has", "substring", "'East", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 16, false], null], "\"%East%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0531", "db_id": "student_transcripts_tracking", "query": "select department_description from departments where department_name like '%computer%'", "query_toks": ["SELECT", "department_description", "FROM", "Departments", "WHERE", "department_name", "LIKE", "'", "%", "computer", "%", "'"], "query_toks_no_value": ["select", "department_description", "from", "departments", "where", "department_name", "like", "value"], "question": "What is the description of the department whose name has the substring the computer?", "question_toks": ["What", "is", "the", "description", "of", "the", "department", "whose", "name", "has", "the", "substring", "the", "computer", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%computer%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0532", "db_id": "student_transcripts_tracking", "query": "select department_description from departments where department_name like '%computer%'", "query_toks": ["SELECT", "department_description", "FROM", "Departments", "WHERE", "department_name", "LIKE", "'", "%", "computer", "%", "'"], "query_toks_no_value": ["select", "department_description", "from", "departments", "where", "department_name", "like", "value"], "question": "What is the department description for the one whose name has the word computer?", "question_toks": ["What", "is", "the", "department", "description", "for", "the", "one", "whose", "name", "has", "the", "word", "computer", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%computer%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0701", "db_id": "voter_1", "query": "select contestant_name from contestants where contestant_name like \"%al%\"", "query_toks": ["select", "contestant_name", "from", "contestants", "where", "contestant_name", "like", "\"%al%\""], "query_toks_no_value": ["select", "contestant_name", "from", "contestants", "where", "contestant_name", "like", "value"], "question": "Return the names of the contestants whose names contain the substring 'Al' .", "question_toks": ["Return", "the", "names", "of", "the", "contestants", "whose", "names", "contain", "the", "substring", "'Al'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%al%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0970", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like '%west%'", "query_toks": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "'", "%", "West", "%", "'"], "query_toks_no_value": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "value"], "question": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "containing", "the", "substring", "'West", "'", "?", "List", "his", "or", "her", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%West%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0971", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like '%west%'", "query_toks": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "'", "%", "West", "%", "'"], "query_toks_no_value": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "value"], "question": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.", "question_toks": ["Find", "the", "role", ",", "street", ",", "city", "and", "state", "of", "the", "professionals", "living", "in", "a", "city", "that", "contains", "the", "substring", "'West", "'", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%West%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0973", "db_id": "dog_kennels", "query": "select first_name , last_name , email_address from owners where state like '%north%'", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners", "WHERE", "state", "LIKE", "'", "%", "North", "%", "'"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "email_address", "from", "owners", "where", "state", "like", "value"], "question": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", "question_toks": ["Return", "the", "first", "name", ",", "last", "name", "and", "email", "of", "the", "owners", "living", "in", "a", "state", "whose", "name", "contains", "the", "substring", "'North", "'", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%North%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0123", "db_id": "bike_1", "query": "select zip_code , avg(mean_temperature_f) from weather where date like \"8/%\" group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "WHERE", "date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "where", "date", "like", "value", "group", "by", "zip_code"], "question": "For each zip code, return the average mean temperature of August there.", "question_toks": ["For", "each", "zip", "code", ",", "return", "the", "average", "mean", "temperature", "of", "August", "there", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 25, false], null]]]], "where": [[false, 9, [0, [0, 23, false], null], "\"8/%\"", null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0124", "db_id": "bike_1", "query": "select zip_code , avg(mean_temperature_f) from weather where date like \"8/%\" group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "WHERE", "date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "where", "date", "like", "value", "group", "by", "zip_code"], "question": "For each zip code, what is the average mean temperature for all dates that start with '8'?", "question_toks": ["For", "each", "zip", "code", ",", "what", "is", "the", "average", "mean", "temperature", "for", "all", "dates", "that", "start", "with", "'8", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 25, false], null]]]], "where": [[false, 9, [0, [0, 23, false], null], "\"8/%\"", null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0133", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip where start_date like \"8/%\" group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "value", "group", "by", "start_station_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which start station had the most trips starting from August? Give me the name and id of the station.", "question_toks": ["Which", "start", "station", "had", "the", "most", "trips", "starting", "from", "August", "?", "Give", "me", "the", "name", "and", "id", "of", "the", "station", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"8/%\"", null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0143", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select name , id from station where installation_date like \"12/%\"", "query_toks": ["SELECT", "T1.name", ",", "T1.id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "T2.bikes_available", ")", ">", "14", "UNION", "SELECT", "name", ",", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "``", "12/", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "value", "union", "select", "name", ",", "id", "from", "station", "where", "installation_date", "like", "value"], "question": "What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "stations", "that", "had", "more", "than", "14", "bikes", "available", "on", "average", "or", "were", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0144", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select name , id from station where installation_date like \"12/%\"", "query_toks": ["SELECT", "T1.name", ",", "T1.id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "T2.bikes_available", ")", ">", "14", "UNION", "SELECT", "name", ",", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "``", "12/", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "value", "union", "select", "name", ",", "id", "from", "station", "where", "installation_date", "like", "value"], "question": "What are the names and ids of all stations that have more than 14 bikes available on average or had bikes installed in December?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "or", "had", "bikes", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0281", "db_id": "twitter_1", "query": "select name , email from user_profiles where name like '%swift%'", "query_toks": ["SELECT", "name", ",", "email", "FROM", "user_profiles", "WHERE", "name", "LIKE", "'", "%", "Swift", "%", "'"], "query_toks_no_value": ["select", "name", ",", "email", "from", "user_profiles", "where", "name", "like", "value"], "question": "Find the name and email of the user whose name contains the word \u2018Swift\u2019.", "question_toks": ["Find", "the", "name", "and", "email", "of", "the", "user", "whose", "name", "contains", "the", "word", "\u2018Swift\u2019", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 9, [0, [0, 8, false], null], "\"%Swift%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0282", "db_id": "twitter_1", "query": "select name from user_profiles where email like '%superstar%' or email like '%edu%'", "query_toks": ["SELECT", "name", "FROM", "user_profiles", "WHERE", "email", "LIKE", "'", "%", "superstar", "%", "'", "OR", "email", "LIKE", "'", "%", "edu", "%", "'"], "query_toks_no_value": ["select", "name", "from", "user_profiles", "where", "email", "like", "value", "or", "email", "like", "value"], "question": "Find the names of users whose emails contain \u2018superstar\u2019 or \u2018edu\u2019.", "question_toks": ["Find", "the", "names", "of", "users", "whose", "emails", "contain", "\u2018superstar\u2019", "or", "\u2018edu\u2019", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 9, [0, [0, 9, false], null], "\"%superstar%\"", null], "or", [false, 9, [0, [0, 9, false], null], "\"%edu%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0283", "db_id": "twitter_1", "query": "select text from tweets where text like '%intern%'", "query_toks": ["SELECT", "text", "FROM", "tweets", "WHERE", "text", "LIKE", "'", "%", "intern", "%", "'"], "query_toks_no_value": ["select", "text", "from", "tweets", "where", "text", "like", "value"], "question": "Return the text of tweets about the topic 'intern'.", "question_toks": ["Return", "the", "text", "of", "tweets", "about", "the", "topic", "'intern", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 5, false], null], "\"%intern%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0309", "db_id": "product_catalog", "query": "select distinct(catalog_publisher) from catalogs where catalog_publisher like \"%murray%\"", "query_toks": ["SELECT", "distinct", "(", "catalog_publisher", ")", "FROM", "catalogs", "WHERE", "catalog_publisher", "LIKE", "``", "%", "Murray", "%", "''"], "query_toks_no_value": ["select", "distinct", "(", "catalog_publisher", ")", "from", "catalogs", "where", "catalog_publisher", "like", "value"], "question": "Find all the catalog publishers whose name contains \"Murray\"", "question_toks": ["Find", "all", "the", "catalog", "publishers", "whose", "name", "contains", "``", "Murray", "''"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%Murray%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0327", "db_id": "product_catalog", "query": "select catalog_entry_name from catalog_contents where product_stock_number like \"2%\"", "query_toks": ["SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "product_stock_number", "LIKE", "``", "2", "%", "''"], "query_toks_no_value": ["select", "catalog_entry_name", "from", "catalog_contents", "where", "product_stock_number", "like", "value"], "question": "Find the names of all the products whose stock number starts with \"2\".", "question_toks": ["Find", "the", "names", "of", "all", "the", "products", "whose", "stock", "number", "starts", "with", "``", "2", "''", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 18, false], null], "\"2%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0328", "db_id": "product_catalog", "query": "select catalog_entry_name from catalog_contents where product_stock_number like \"2%\"", "query_toks": ["SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "product_stock_number", "LIKE", "``", "2", "%", "''"], "query_toks_no_value": ["select", "catalog_entry_name", "from", "catalog_contents", "where", "product_stock_number", "like", "value"], "question": "Which catalog contents have a product stock number that starts from \"2\"? Show the catalog entry names.", "question_toks": ["Which", "catalog", "contents", "have", "a", "product", "stock", "number", "that", "starts", "from", "``", "2", "''", "?", "Show", "the", "catalog", "entry", "names", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 18, false], null], "\"2%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0555", "db_id": "store_1", "query": "select title from albums where title like 'a%' order by title;", "query_toks": ["SELECT", "title", "FROM", "albums", "WHERE", "title", "LIKE", "'A", "%", "'", "ORDER", "BY", "title", ";"], "query_toks_no_value": ["select", "title", "from", "albums", "where", "title", "like", "value", "order", "by", "title"], "question": "List every album whose title starts with A in alphabetical order.", "question_toks": ["List", "every", "album", "whose", "title", "starts", "with", "A", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"A%\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0556", "db_id": "store_1", "query": "select title from albums where title like 'a%' order by title;", "query_toks": ["SELECT", "title", "FROM", "albums", "WHERE", "title", "LIKE", "'A", "%", "'", "ORDER", "BY", "title", ";"], "query_toks_no_value": ["select", "title", "from", "albums", "where", "title", "like", "value", "order", "by", "title"], "question": "What are the titles of all albums that start with A in alphabetical order?", "question_toks": ["What", "are", "the", "titles", "of", "all", "albums", "that", "start", "with", "A", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"A%\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0583", "db_id": "store_1", "query": "select t2.title from artists as t1 join albums as t2 on t1.id = t2.artist_id where t1.name like '%led%'", "query_toks": ["SELECT", "T2.title", "FROM", "artists", "AS", "T1", "JOIN", "albums", "AS", "T2", "ON", "T1.id", "=", "T2.artist_id", "WHERE", "T1.name", "LIKE", "'", "%", "Led", "%", "'"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "artists", "as", "t1", "join", "albums", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "artist_id", "where", "t1", ".", "name", "like", "value"], "question": "List the name of albums that are released by aritist whose name has 'Led'", "question_toks": ["List", "the", "name", "of", "albums", "that", "are", "released", "by", "aritist", "whose", "name", "has", "'Led", "'"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Led%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0817", "db_id": "chinook_1", "query": "select name from artist where name like \"%a%\"", "query_toks": ["SELECT", "Name", "FROM", "ARTIST", "WHERE", "Name", "LIKE", "``", "%", "a", "%", "''"], "query_toks_no_value": ["select", "name", "from", "artist", "where", "name", "like", "value"], "question": "Find the names of all artists that have \"a\" in their names.", "question_toks": ["Find", "the", "names", "of", "all", "artists", "that", "have", "``", "a", "''", "in", "their", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 5, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0818", "db_id": "chinook_1", "query": "select name from artist where name like \"%a%\"", "query_toks": ["SELECT", "Name", "FROM", "ARTIST", "WHERE", "Name", "LIKE", "``", "%", "a", "%", "''"], "query_toks_no_value": ["select", "name", "from", "artist", "where", "name", "like", "value"], "question": "What are the names of artist who have the letter 'a' in their names?", "question_toks": ["What", "are", "the", "names", "of", "artist", "who", "have", "the", "letter", "'a", "'", "in", "their", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 5, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0827", "db_id": "chinook_1", "query": "select name from track where name like '%you%'", "query_toks": ["SELECT", "Name", "FROM", "TRACK", "WHERE", "Name", "LIKE", "'", "%", "you", "%", "'"], "query_toks_no_value": ["select", "name", "from", "track", "where", "name", "like", "value"], "question": "Find the names of all the tracks that contain the word \"you\".", "question_toks": ["Find", "the", "names", "of", "all", "the", "tracks", "that", "contain", "the", "word", "``", "you", "''", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [[false, 9, [0, [0, 57, false], null], "\"%you%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0828", "db_id": "chinook_1", "query": "select name from track where name like '%you%'", "query_toks": ["SELECT", "Name", "FROM", "TRACK", "WHERE", "Name", "LIKE", "'", "%", "you", "%", "'"], "query_toks_no_value": ["select", "name", "from", "track", "where", "name", "like", "value"], "question": "What are the names of tracks that contain the the word you in them?", "question_toks": ["What", "are", "the", "names", "of", "tracks", "that", "contain", "the", "the", "word", "you", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [[false, 9, [0, [0, 57, false], null], "\"%you%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0847", "db_id": "chinook_1", "query": "select count(*) from customer where email like \"%gmail.com%\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "CUSTOMER", "WHERE", "Email", "LIKE", "``", "%", "gmail.com", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customer", "where", "email", "like", "value"], "question": "How many customers have email that contains \"gmail.com\"?", "question_toks": ["How", "many", "customers", "have", "email", "that", "contains", "``", "gmail.com", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 17, false], null], "\"%gmail.com%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0848", "db_id": "chinook_1", "query": "select count(*) from customer where email like \"%gmail.com%\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "CUSTOMER", "WHERE", "Email", "LIKE", "``", "%", "gmail.com", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customer", "where", "email", "like", "value"], "question": "Count the number of customers that have an email containing \"gmail.com\".", "question_toks": ["Count", "the", "number", "of", "customers", "that", "have", "an", "email", "containing", "``", "gmail.com", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 17, false], null], "\"%gmail.com%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0925", "db_id": "insurance_fnol", "query": "select customer_id from customers where customer_name like \"%diana%\"", "query_toks": ["SELECT", "customer_id", "FROM", "customers", "WHERE", "customer_name", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "customer_id", "from", "customers", "where", "customer_name", "like", "value"], "question": "Find the IDs of customers whose name contains \"Diana\".", "question_toks": ["Find", "the", "IDs", "of", "customers", "whose", "name", "contains", "``", "Diana", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0926", "db_id": "insurance_fnol", "query": "select customer_id from customers where customer_name like \"%diana%\"", "query_toks": ["SELECT", "customer_id", "FROM", "customers", "WHERE", "customer_name", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "customer_id", "from", "customers", "where", "customer_name", "like", "value"], "question": "What are the IDs of customers who have \"Diana\" in part of their names?", "question_toks": ["What", "are", "the", "IDs", "of", "customers", "who", "have", "``", "Diana", "''", "in", "part", "of", "their", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0973", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme where name like \"%ala%\"", "query_toks": ["SELECT", "name", "FROM", "enzyme", "WHERE", "name", "LIKE", "``", "%", "ALA", "%", "''"], "query_toks_no_value": ["select", "name", "from", "enzyme", "where", "name", "like", "value"], "question": "Which enzyme names have the substring \"ALA\"?", "question_toks": ["Which", "enzyme", "names", "have", "the", "substring", "``", "ALA", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%ALA%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0974", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme where name like \"%ala%\"", "query_toks": ["SELECT", "name", "FROM", "enzyme", "WHERE", "name", "LIKE", "``", "%", "ALA", "%", "''"], "query_toks_no_value": ["select", "name", "from", "enzyme", "where", "name", "like", "value"], "question": "What are the names of enzymes that include the string 'ALA'?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "that", "include", "the", "string", "'ALA", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%ALA%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1009", "db_id": "university_basketball", "query": "select count(*) from university where location like \"%ny%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "university", "WHERE", "LOCATION", "LIKE", "``", "%", "NY", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "university", "where", "location", "like", "value"], "question": "Find how many school locations have the word 'NY'.", "question_toks": ["Find", "how", "many", "school", "locations", "have", "the", "word", "'NY", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%NY%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1010", "db_id": "university_basketball", "query": "select count(*) from university where location like \"%ny%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "university", "WHERE", "LOCATION", "LIKE", "``", "%", "NY", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "university", "where", "location", "like", "value"], "question": "How many universities have a location that contains NY?", "question_toks": ["How", "many", "universities", "have", "a", "location", "that", "contains", "NY", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%NY%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1030", "db_id": "phone_1", "query": "select hardware_model_name , company_name from phone where accreditation_type like 'full';", "query_toks": ["SELECT", "Hardware_Model_name", ",", "Company_name", "FROM", "phone", "WHERE", "Accreditation_type", "LIKE", "'Full", "'", ";"], "query_toks_no_value": ["select", "hardware_model_name", ",", "company_name", "from", "phone", "where", "accreditation_type", "like", "value"], "question": "Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.", "question_toks": ["Find", "all", "phones", "that", "have", "word", "'Full", "'", "in", "their", "accreditation", "types", ".", "List", "the", "Hardware", "Model", "name", "and", "Company", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 9, [0, [0, 17, false], null], "\"Full\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1056", "db_id": "match_season", "query": "select official_native_language from country where official_native_language like \"%english%\"", "query_toks": ["SELECT", "Official_native_language", "FROM", "country", "WHERE", "Official_native_language", "LIKE", "``", "%", "English", "%", "''"], "query_toks_no_value": ["select", "official_native_language", "from", "country", "where", "official_native_language", "like", "value"], "question": "Show all official native languages that contain the word \"English\".", "question_toks": ["Show", "all", "official", "native", "languages", "that", "contain", "the", "word", "``", "English", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%English%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1057", "db_id": "match_season", "query": "select official_native_language from country where official_native_language like \"%english%\"", "query_toks": ["SELECT", "Official_native_language", "FROM", "country", "WHERE", "Official_native_language", "LIKE", "``", "%", "English", "%", "''"], "query_toks_no_value": ["select", "official_native_language", "from", "country", "where", "official_native_language", "like", "value"], "question": "What are the official native languages that contain the string \"English\".", "question_toks": ["What", "are", "the", "official", "native", "languages", "that", "contain", "the", "string", "``", "English", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%English%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1172", "db_id": "body_builder", "query": "select t1.total from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t2.birth_date like \"%january%\";", "query_toks": ["SELECT", "T1.total", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id", "WHERE", "T2.Birth_Date", "LIKE", "``", "%", "January", "%", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "total", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "birth_date", "like", "value"], "question": "What are the total scores of the body builders whose birthday contains the string \"January\" ?", "question_toks": ["What", "are", "the", "total", "scores", "of", "the", "body", "builders", "whose", "birthday", "contains", "the", "string", "``", "January", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%January%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME", "AGGREGATION_IN_COLUMN", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1204", "db_id": "apartment_rentals", "query": "select building_full_name from apartment_buildings where building_full_name like \"%court%\"", "query_toks": ["SELECT", "building_full_name", "FROM", "Apartment_Buildings", "WHERE", "building_full_name", "LIKE", "``", "%", "court", "%", "''"], "query_toks_no_value": ["select", "building_full_name", "from", "apartment_buildings", "where", "building_full_name", "like", "value"], "question": "What are the building full names that contain the word \"court\"?", "question_toks": ["What", "are", "the", "building", "full", "names", "that", "contain", "the", "word", "``", "court", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%court%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1205", "db_id": "apartment_rentals", "query": "select building_full_name from apartment_buildings where building_full_name like \"%court%\"", "query_toks": ["SELECT", "building_full_name", "FROM", "Apartment_Buildings", "WHERE", "building_full_name", "LIKE", "``", "%", "court", "%", "''"], "query_toks_no_value": ["select", "building_full_name", "from", "apartment_buildings", "where", "building_full_name", "like", "value"], "question": "Find all the building full names containing the word \"court\".", "question_toks": ["Find", "all", "the", "building", "full", "names", "containing", "the", "word", "``", "court", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%court%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1354", "db_id": "college_2", "query": "select dept_name from instructor where name like '%soisalon%'", "query_toks": ["SELECT", "dept_name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "Soisalon", "%", "'"], "query_toks_no_value": ["select", "dept_name", "from", "instructor", "where", "name", "like", "value"], "question": "Find the department name of the instructor whose name contains 'Soisalon'.", "question_toks": ["Find", "the", "department", "name", "of", "the", "instructor", "whose", "name", "contains", "'Soisalon", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%Soisalon%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1355", "db_id": "college_2", "query": "select dept_name from instructor where name like '%soisalon%'", "query_toks": ["SELECT", "dept_name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "Soisalon", "%", "'"], "query_toks_no_value": ["select", "dept_name", "from", "instructor", "where", "name", "like", "value"], "question": "What is the name of the department with an instructure who has a name like 'Soisalon'?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "with", "an", "instructure", "who", "has", "a", "name", "like", "'Soisalon", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%Soisalon%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1472", "db_id": "college_2", "query": "select name from instructor where name like '%dar%'", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "dar", "%", "'"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "name", "like", "value"], "question": "Find the names of all instructors whose name includes the substring \u201cdar\u201d.", "question_toks": ["Find", "the", "names", "of", "all", "instructors", "whose", "name", "includes", "the", "substring", "\u201cdar\u201d", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%dar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1473", "db_id": "college_2", "query": "select name from instructor where name like '%dar%'", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "dar", "%", "'"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "name", "like", "value"], "question": "What are the names of all instructors with names that include \"dar\"?", "question_toks": ["What", "are", "the", "names", "of", "all", "instructors", "with", "names", "that", "include", "``", "dar", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%dar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1529", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers where customer_details like \"%diana%\"", "query_toks": ["SELECT", "customer_details", "FROM", "customers", "WHERE", "customer_details", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "where", "customer_details", "like", "value"], "question": "Find the names of customers whose name contains \"Diana\".", "question_toks": ["Find", "the", "names", "of", "customers", "whose", "name", "contains", "``", "Diana", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1788", "db_id": "small_bank_1", "query": "select t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid where t1.name like '%ee%'", "query_toks": ["SELECT", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "LIKE", "'", "%", "ee", "%", "'"], "query_toks_no_value": ["select", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "like", "value"], "question": "What is the checking balance of the account whose owner\u2019s name contains the substring \u2018ee\u2019?", "question_toks": ["What", "is", "the", "checking", "balance", "of", "the", "account", "whose", "owner\u2019s", "name", "contains", "the", "substring", "\u2018ee\u2019", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%ee%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1958", "db_id": "cinema", "query": "select count(*) from film where title like \"%dummy%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "film", "WHERE", "title", "LIKE", "``", "%", "Dummy", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "film", "where", "title", "like", "value"], "question": "How many films have the word 'Dummy' in their titles?", "question_toks": ["How", "many", "films", "have", "the", "word", "'Dummy", "'", "in", "their", "titles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%Dummy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1959", "db_id": "cinema", "query": "select count(*) from film where title like \"%dummy%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "film", "WHERE", "title", "LIKE", "``", "%", "Dummy", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "film", "where", "title", "like", "value"], "question": "Count the number of films whose title contains the word 'Dummy'.", "question_toks": ["Count", "the", "number", "of", "films", "whose", "title", "contains", "the", "word", "'Dummy", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%Dummy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3599", "db_id": "music_1", "query": "select max(t2.resolution) , min(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value"], "question": "What are the maximum and minimum resolution of songs whose duration is 3 minutes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "resolution", "of", "songs", "whose", "duration", "is", "3", "minutes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME", "MULTI_AGGREGATION", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3600", "db_id": "music_1", "query": "select max(t2.resolution) , min(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value"], "question": "What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "resolution", "of", "all", "songs", "that", "are", "approximately", "3", "minutes", "long", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME", "MULTI_AGGREGATION", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3726", "db_id": "mountain_photos", "query": "select name from camera_lens where name like \"%digital%\"", "query_toks": ["SELECT", "name", "FROM", "camera_lens", "WHERE", "name", "LIKE", "``", "%", "Digital", "%", "''"], "query_toks_no_value": ["select", "name", "from", "camera_lens", "where", "name", "like", "value"], "question": "List the camera lens names containing substring \"Digital\".", "question_toks": ["List", "the", "camera", "lens", "names", "containing", "substring", "``", "Digital", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 9, [0, [0, 9, false], null], "\"%Digital%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3793", "db_id": "e_learning", "query": "select count(*) from students where personal_name like \"%son%\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "Students", "WHERE", "personal_name", "LIKE", "``", "%", "son", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "students", "where", "personal_name", "like", "value"], "question": "Find the number of students who have the word \"son\" in their personal names.", "question_toks": ["Find", "the", "number", "of", "students", "who", "have", "the", "word", "``", "son", "''", "in", "their", "personal", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%son%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3946", "db_id": "hospital_1", "query": "select name from physician where position like '%senior%'", "query_toks": ["SELECT", "name", "FROM", "physician", "WHERE", "POSITION", "LIKE", "'", "%", "senior", "%", "'"], "query_toks_no_value": ["select", "name", "from", "physician", "where", "position", "like", "value"], "question": "Find the name of physicians whose position title contains the word 'senior'.", "question_toks": ["Find", "the", "name", "of", "physicians", "whose", "position", "title", "contains", "the", "word", "'senior", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%senior%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3947", "db_id": "hospital_1", "query": "select name from physician where position like '%senior%'", "query_toks": ["SELECT", "name", "FROM", "physician", "WHERE", "POSITION", "LIKE", "'", "%", "senior", "%", "'"], "query_toks_no_value": ["select", "name", "from", "physician", "where", "position", "like", "value"], "question": "What are the names of the physicians who have 'senior' in their titles.", "question_toks": ["What", "are", "the", "names", "of", "the", "physicians", "who", "have", "'senior", "'", "in", "their", "titles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%senior%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4150", "db_id": "film_rank", "query": "select title , studio from film where studio like \"%universal%\"", "query_toks": ["SELECT", "title", ",", "Studio", "FROM", "film", "WHERE", "Studio", "LIKE", "``", "%", "Universal", "%", "''"], "query_toks_no_value": ["select", "title", ",", "studio", "from", "film", "where", "studio", "like", "value"], "question": "Find the titles and studios of the films that are produced by some film studios that contained the word \"Universal\".", "question_toks": ["Find", "the", "titles", "and", "studios", "of", "the", "films", "that", "are", "produced", "by", "some", "film", "studios", "that", "contained", "the", "word", "``", "Universal", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%Universal%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4151", "db_id": "film_rank", "query": "select title , studio from film where studio like \"%universal%\"", "query_toks": ["SELECT", "title", ",", "Studio", "FROM", "film", "WHERE", "Studio", "LIKE", "``", "%", "Universal", "%", "''"], "query_toks_no_value": ["select", "title", ",", "studio", "from", "film", "where", "studio", "like", "value"], "question": "What are the titles and studios of films that have been produced by a studio whose name contains \"Universal\"?", "question_toks": ["What", "are", "the", "titles", "and", "studios", "of", "films", "that", "have", "been", "produced", "by", "a", "studio", "whose", "name", "contains", "``", "Universal", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%Universal%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4348", "db_id": "tracking_grants_for_research", "query": "select t1.project_details from projects as t1 join project_outcomes as t2 on t1.project_id = t2.project_id join research_outcomes as t3 on t2.outcome_code = t3.outcome_code where t3.outcome_description like '%published%'", "query_toks": ["SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Research_outcomes", "AS", "T3", "ON", "T2.outcome_code", "=", "T3.outcome_code", "WHERE", "T3.outcome_description", "LIKE", "'", "%", "Published", "%", "'"], "query_toks_no_value": ["select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "research_outcomes", "as", "t3", "on", "t2", ".", "outcome_code", "=", "t3", ".", "outcome_code", "where", "t3", ".", "outcome_description", "like", "value"], "question": "List the project details of the projects with the research outcome described with the substring 'Published'.", "question_toks": ["List", "the", "project", "details", "of", "the", "projects", "with", "the", "research", "outcome", "described", "with", "the", "substring", "'Published", "'", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 9, [0, [0, 33, false], null], "\"%Published%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4349", "db_id": "tracking_grants_for_research", "query": "select t1.project_details from projects as t1 join project_outcomes as t2 on t1.project_id = t2.project_id join research_outcomes as t3 on t2.outcome_code = t3.outcome_code where t3.outcome_description like '%published%'", "query_toks": ["SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Research_outcomes", "AS", "T3", "ON", "T2.outcome_code", "=", "T3.outcome_code", "WHERE", "T3.outcome_description", "LIKE", "'", "%", "Published", "%", "'"], "query_toks_no_value": ["select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "research_outcomes", "as", "t3", "on", "t2", ".", "outcome_code", "=", "t3", ".", "outcome_code", "where", "t3", ".", "outcome_description", "like", "value"], "question": "What are the details for the project whose research has been published?", "question_toks": ["What", "are", "the", "details", "for", "the", "project", "whose", "research", "has", "been", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 9, [0, [0, 33, false], null], "\"%Published%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4364", "db_id": "tracking_grants_for_research", "query": "select document_type_code from document_types where document_description like 'initial%'", "query_toks": ["SELECT", "document_type_code", "FROM", "Document_Types", "WHERE", "document_description", "LIKE", "'Initial", "%", "'"], "query_toks_no_value": ["select", "document_type_code", "from", "document_types", "where", "document_description", "like", "value"], "question": "Which document type is described with the prefix 'Initial'?", "question_toks": ["Which", "document", "type", "is", "described", "with", "the", "prefix", "'Initial", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"Initial%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4365", "db_id": "tracking_grants_for_research", "query": "select document_type_code from document_types where document_description like 'initial%'", "query_toks": ["SELECT", "document_type_code", "FROM", "Document_Types", "WHERE", "document_description", "LIKE", "'Initial", "%", "'"], "query_toks_no_value": ["select", "document_type_code", "from", "document_types", "where", "document_description", "like", "value"], "question": "What is the type of the document whose description starts with the word 'Initial'?", "question_toks": ["What", "is", "the", "type", "of", "the", "document", "whose", "description", "starts", "with", "the", "word", "'Initial", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"Initial%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4651", "db_id": "college_3", "query": "select distinct fname from student where fname like '%a%'", "query_toks": ["SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "Fname", "LIKE", "'", "%", "a", "%", "'"], "query_toks_no_value": ["select", "distinct", "fname", "from", "student", "where", "fname", "like", "value"], "question": "Find the first names of students whose first names contain letter \"a\".", "question_toks": ["Find", "the", "first", "names", "of", "students", "whose", "first", "names", "contain", "letter", "``", "a", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4652", "db_id": "college_3", "query": "select distinct fname from student where fname like '%a%'", "query_toks": ["SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "Fname", "LIKE", "'", "%", "a", "%", "'"], "query_toks_no_value": ["select", "distinct", "fname", "from", "student", "where", "fname", "like", "value"], "question": "What are the first names for students who have an \"a\" in their first name?", "question_toks": ["What", "are", "the", "first", "names", "for", "students", "who", "have", "an", "``", "a", "''", "in", "their", "first", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5200", "db_id": "music_2", "query": "select title from songs where title like '% the %'", "query_toks": ["SELECT", "title", "FROM", "songs", "WHERE", "title", "LIKE", "'", "%", "the", "%", "'"], "query_toks_no_value": ["select", "title", "from", "songs", "where", "title", "like", "value"], "question": "Find all the songs whose name contains the word \"the\".", "question_toks": ["Find", "all", "the", "songs", "whose", "name", "contains", "the", "word", "``", "the", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"% the %\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5201", "db_id": "music_2", "query": "select title from songs where title like '% the %'", "query_toks": ["SELECT", "title", "FROM", "songs", "WHERE", "title", "LIKE", "'", "%", "the", "%", "'"], "query_toks_no_value": ["select", "title", "from", "songs", "where", "title", "like", "value"], "question": "What are the names of the songs whose title has the word \"the\"?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "whose", "title", "has", "the", "word", "``", "the", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"% the %\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5288", "db_id": "manufactory_1", "query": "select founder from manufacturers where name like 's%'", "query_toks": ["SELECT", "founder", "FROM", "manufacturers", "WHERE", "name", "LIKE", "'S", "%", "'"], "query_toks_no_value": ["select", "founder", "from", "manufacturers", "where", "name", "like", "value"], "question": "Find the founder of the company whose name begins with the letter 'S'.", "question_toks": ["Find", "the", "founder", "of", "the", "company", "whose", "name", "begins", "with", "the", "letter", "'S", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"S%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5289", "db_id": "manufactory_1", "query": "select founder from manufacturers where name like 's%'", "query_toks": ["SELECT", "founder", "FROM", "manufacturers", "WHERE", "name", "LIKE", "'S", "%", "'"], "query_toks_no_value": ["select", "founder", "from", "manufacturers", "where", "name", "like", "value"], "question": "Who is the founders of companies whose first letter is S?", "question_toks": ["Who", "is", "the", "founders", "of", "companies", "whose", "first", "letter", "is", "S", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"S%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5442", "db_id": "shop_membership", "query": "select card_number from member where hometown like \"%kentucky%\"", "query_toks": ["SELECT", "card_number", "FROM", "member", "WHERE", "Hometown", "LIKE", "``", "%", "Kentucky", "%", "''"], "query_toks_no_value": ["select", "card_number", "from", "member", "where", "hometown", "like", "value"], "question": "list the card number of all members whose hometown address includes word \"Kentucky\".", "question_toks": ["list", "the", "card", "number", "of", "all", "members", "whose", "hometown", "address", "includes", "word", "``", "Kentucky", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%Kentucky%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5443", "db_id": "shop_membership", "query": "select card_number from member where hometown like \"%kentucky%\"", "query_toks": ["SELECT", "card_number", "FROM", "member", "WHERE", "Hometown", "LIKE", "``", "%", "Kentucky", "%", "''"], "query_toks_no_value": ["select", "card_number", "from", "member", "where", "hometown", "like", "value"], "question": "What are the card numbers of members from Kentucky?", "question_toks": ["What", "are", "the", "card", "numbers", "of", "members", "from", "Kentucky", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%Kentucky%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5542", "db_id": "products_gen_characteristics", "query": "select t1.product_category_description from ref_product_categories as t1 join products as t2 on t1.product_category_code = t2.product_category_code where t2.product_description like '%t%'", "query_toks": ["SELECT", "T1.product_category_description", "FROM", "ref_product_categories", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1.product_category_code", "=", "T2.product_category_code", "WHERE", "T2.product_description", "LIKE", "'", "%", "t", "%", "'"], "query_toks_no_value": ["select", "t1", ".", "product_category_description", "from", "ref_product_categories", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "where", "t2", ".", "product_description", "like", "value"], "question": "Find the category descriptions of the products whose descriptions include letter 't'.", "question_toks": ["Find", "the", "category", "descriptions", "of", "the", "products", "whose", "descriptions", "include", "letter", "'t", "'", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 19, false], null], "\"%t%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5696", "db_id": "dorm_1", "query": "select student_capacity , gender from dorm where dorm_name like '%donor%'", "query_toks": ["SELECT", "student_capacity", ",", "gender", "FROM", "dorm", "WHERE", "dorm_name", "LIKE", "'", "%", "Donor", "%", "'"], "query_toks_no_value": ["select", "student_capacity", ",", "gender", "from", "dorm", "where", "dorm_name", "like", "value"], "question": "Find the capacity and gender type of the dorm whose name has substring \u2018Donor\u2019.", "question_toks": ["Find", "the", "capacity", "and", "gender", "type", "of", "the", "dorm", "whose", "name", "has", "substring", "\u2018Donor\u2019", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%Donor%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5697", "db_id": "dorm_1", "query": "select student_capacity , gender from dorm where dorm_name like '%donor%'", "query_toks": ["SELECT", "student_capacity", ",", "gender", "FROM", "dorm", "WHERE", "dorm_name", "LIKE", "'", "%", "Donor", "%", "'"], "query_toks_no_value": ["select", "student_capacity", ",", "gender", "from", "dorm", "where", "dorm_name", "like", "value"], "question": "What is the student capacity and type of gender for the dorm whose name as the phrase Donor in it?", "question_toks": ["What", "is", "the", "student", "capacity", "and", "type", "of", "gender", "for", "the", "dorm", "whose", "name", "as", "the", "phrase", "Donor", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%Donor%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6485", "db_id": "scientist_1", "query": "select t2.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t3.name like '%smith%'", "query_toks": ["SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "LIKE", "'", "%", "Smith", "%", "'"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "like", "value"], "question": "Find the name of the project for which a scientist whose name contains \u2018Smith\u2019 is assigned to.", "question_toks": ["Find", "the", "name", "of", "the", "project", "for", "which", "a", "scientist", "whose", "name", "contains", "\u2018Smith\u2019", "is", "assigned", "to", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Smith%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6486", "db_id": "scientist_1", "query": "select t2.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t3.name like '%smith%'", "query_toks": ["SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "LIKE", "'", "%", "Smith", "%", "'"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "like", "value"], "question": "What is the name of the project that has a scientist assigned to it whose name contains 'Smith'?", "question_toks": ["What", "is", "the", "name", "of", "the", "project", "that", "has", "a", "scientist", "assigned", "to", "it", "whose", "name", "contains", "'Smith", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Smith%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6700", "db_id": "driving_school", "query": "select t1.lesson_id from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\" and nickname like \"%s%\";", "query_toks": ["SELECT", "T1.lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", "AND", "nickname", "LIKE", "``", "%", "s", "%", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "nickname", "like", "value"], "question": "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.", "question_toks": ["List", "lesson", "id", "of", "all", "lessons", "taught", "by", "staff", "with", "first", "name", "as", "Janessa", ",", "last", "name", "as", "Sawayn", "and", "nickname", "containing", "letter", "'s", "'", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Sawayn\"", null], "and", [false, 9, [0, [0, 9, false], null], "\"%s%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6701", "db_id": "driving_school", "query": "select t1.lesson_id from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\" and nickname like \"%s%\";", "query_toks": ["SELECT", "T1.lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", "AND", "nickname", "LIKE", "``", "%", "s", "%", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "nickname", "like", "value"], "question": "What are the the lesson ids of all staff taught by Janessa Sawayn whose nickname has the letter s?", "question_toks": ["What", "are", "the", "the", "lesson", "ids", "of", "all", "staff", "taught", "by", "Janessa", "Sawayn", "whose", "nickname", "has", "the", "letter", "s", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Sawayn\"", null], "and", [false, 9, [0, [0, 9, false], null], "\"%s%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6702", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name like \"%a%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "LIKE", "``", "%", "a", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "like", "value"], "question": "How many lessons taught by staff whose first name has letter 'a' in it?", "question_toks": ["How", "many", "lessons", "taught", "by", "staff", "whose", "first", "name", "has", "letter", "'a", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6703", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name like \"%a%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "LIKE", "``", "%", "a", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "like", "value"], "question": "How many lessons were taught by a staff member whose first name has the letter 'a' in it?", "question_toks": ["How", "many", "lessons", "were", "taught", "by", "a", "staff", "member", "whose", "first", "name", "has", "the", "letter", "'a", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6815", "db_id": "flight_4", "query": "select country from airlines where name like 'orbit%'", "query_toks": ["SELECT", "country", "FROM", "airlines", "WHERE", "name", "LIKE", "'Orbit", "%", "'"], "query_toks_no_value": ["select", "country", "from", "airlines", "where", "name", "like", "value"], "question": "Find the country of the airlines whose name starts with 'Orbit'.", "question_toks": ["Find", "the", "country", "of", "the", "airlines", "whose", "name", "starts", "with", "'Orbit", "'", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 9, [0, [0, 19, false], null], "\"Orbit%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6816", "db_id": "flight_4", "query": "select country from airlines where name like 'orbit%'", "query_toks": ["SELECT", "country", "FROM", "airlines", "WHERE", "name", "LIKE", "'Orbit", "%", "'"], "query_toks_no_value": ["select", "country", "from", "airlines", "where", "name", "like", "value"], "question": "What are the countries of all airlines whose names start with Orbit?", "question_toks": ["What", "are", "the", "countries", "of", "all", "airlines", "whose", "names", "start", "with", "Orbit", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 9, [0, [0, 19, false], null], "\"Orbit%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6821", "db_id": "flight_4", "query": "select count(*) from airports where name like '%international%'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "airports", "WHERE", "name", "LIKE", "'", "%", "International", "%", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airports", "where", "name", "like", "value"], "question": "Find the number of airports whose name contain the word 'International'.", "question_toks": ["Find", "the", "number", "of", "airports", "whose", "name", "contain", "the", "word", "'International", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%International%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6822", "db_id": "flight_4", "query": "select count(*) from airports where name like '%international%'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "airports", "WHERE", "name", "LIKE", "'", "%", "International", "%", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airports", "where", "name", "like", "value"], "question": "How many airports' names have the word Interanation in them?", "question_toks": ["How", "many", "airports", "'", "names", "have", "the", "word", "Interanation", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%International%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6957", "db_id": "architecture", "query": "select name from mill where name like '%moulin%'", "query_toks": ["SELECT", "name", "FROM", "mill", "WHERE", "name", "LIKE", "'", "%", "Moulin", "%", "'"], "query_toks_no_value": ["select", "name", "from", "mill", "where", "name", "like", "value"], "question": "Which of the mill names contains the french word 'Moulin'?", "question_toks": ["Which", "of", "the", "mill", "names", "contains", "the", "french", "word", "'Moulin", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"%Moulin%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0818", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperdataset as t2 join dataset as t1 on t2.datasetid = t1.datasetid join paper as t3 on t3.paperid = t2.paperid where t1.datasetname like \"imagenet\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperdataset", "AS", "t2", "JOIN", "dataset", "AS", "t1", "ON", "t2.datasetid", "=", "t1.datasetid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "WHERE", "t1.datasetname", "LIKE", "``", "ImageNet", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperdataset", "as", "t2", "join", "dataset", "as", "t1", "on", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "datasetname", "like", "value"], "question": "how many papers use ImageNet ?", "question_toks": ["how", "many", "papers", "use", "ImageNet", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null]]}, "select": [true, [[3, [0, [0, 11, true], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"ImageNet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1025", "db_id": "scholar", "query": "select distinct t1.paperid from venue as t2 join paper as t1 on t2.venueid = t1.venueid where t1.title like \"neural attention\" and t1.year = 2016 and t2.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t1.paperid", "FROM", "venue", "AS", "t2", "JOIN", "paper", "AS", "t1", "ON", "t2.venueid", "=", "t1.venueid", "WHERE", "t1.title", "LIKE", "``", "neural", "attention", "''", "AND", "t1.year", "=", "2016", "AND", "t2.venuename", "=", "``", "ACL", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "paperid", "from", "venue", "as", "t2", "join", "paper", "as", "t1", "on", "t2", ".", "venueid", "=", "t1", ".", "venueid", "where", "t1", ".", "title", "like", "value", "and", "t1", ".", "year", "=", "value", "and", "t2", ".", "venuename", "=", "value"], "question": "ACL papers in 2016 with neural attention in the title", "question_toks": ["ACL", "papers", "in", "2016", "with", "neural", "attention", "in", "the", "title"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"neural attention\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"ACL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1028", "db_id": "scholar", "query": "select distinct t1.authorname from paperkeyphrase as t2 join keyphrase as t4 on t2.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t2.paperid join author as t1 on t3.authorid = t1.authorid where t4.keyphrasename like \"sensor fusion\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t4", "ON", "t2.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "author", "AS", "t1", "ON", "t3.authorid", "=", "t1.authorid", "WHERE", "t4.keyphrasename", "LIKE", "``", "sensor", "fusion", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t4", "on", "t2", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "author", "as", "t1", "on", "t3", ".", "authorid", "=", "t1", ".", "authorid", "where", "t4", ".", "keyphrasename", "like", "value"], "question": "Authors of papers on sensor fusion", "question_toks": ["Authors", "of", "papers", "on", "sensor", "fusion"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"sensor fusion\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1116", "db_id": "scholar", "query": "select distinct t2.title from paperkeyphrase as t5 join keyphrase as t3 on t5.keyphraseid = t3.keyphraseid join writes as t4 on t4.paperid = t5.paperid join paper as t2 on t4.paperid = t2.paperid join author as t1 on t4.authorid = t1.authorid join venue as t6 on t6.venueid = t2.venueid where t1.authorname like \"eric c. kerrigan\" and t3.keyphrasename = \"liquid\" and t6.venuename = \"automatica\";", "query_toks": ["SELECT", "DISTINCT", "t2.title", "FROM", "paperkeyphrase", "AS", "t5", "JOIN", "keyphrase", "AS", "t3", "ON", "t5.keyphraseid", "=", "t3.keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t5.paperid", "JOIN", "paper", "AS", "t2", "ON", "t4.paperid", "=", "t2.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "JOIN", "venue", "AS", "t6", "ON", "t6.venueid", "=", "t2.venueid", "WHERE", "t1.authorname", "LIKE", "``", "Eric", "C.", "Kerrigan", "''", "AND", "t3.keyphrasename", "=", "``", "Liquid", "''", "AND", "t6.venuename", "=", "``", "Automatica", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "title", "from", "paperkeyphrase", "as", "t5", "join", "keyphrase", "as", "t3", "on", "t5", ".", "keyphraseid", "=", "t3", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t5", ".", "paperid", "join", "paper", "as", "t2", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "join", "venue", "as", "t6", "on", "t6", ".", "venueid", "=", "t2", ".", "venueid", "where", "t1", ".", "authorname", "like", "value", "and", "t3", ".", "keyphrasename", "=", "value", "and", "t6", ".", "venuename", "=", "value"], "question": "What is the name of Eric C. Kerrigan 's Liquid Automatica paper ?", "question_toks": ["What", "is", "the", "name", "of", "Eric", "C.", "Kerrigan", "'s", "Liquid", "Automatica", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"Eric C. Kerrigan\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Liquid\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Automatica\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0485", "db_id": "allergy_1", "query": "select lname from student where age = (select min(age) from student)", "query_toks": ["SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")"], "question": "What is the last name of the youngest student?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "youngest", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0486", "db_id": "allergy_1", "query": "select lname from student where age = (select min(age) from student)", "query_toks": ["SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")"], "question": "Provide the last name of the youngest student.", "question_toks": ["Provide", "the", "last", "name", "of", "the", "youngest", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0169", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37.4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["select", "id", "from", "station", "where", "lat", ">", "value", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of stations that have latitude above 37.4 and never had bike availability below 7?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "have", "latitude", "above", "37.4", "and", "never", "had", "bike", "availability", "below", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_REFORMULATION_SHORT", "SYNONYMS", "_NEGATION_EXCEPT", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0170", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37.4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["select", "id", "from", "station", "where", "lat", ">", "value", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of all stations that have a latitude above 37.4 and have never had less than 7 bikes available?", "question_toks": ["What", "are", "the", "ids", "of", "all", "stations", "that", "have", "a", "latitude", "above", "37.4", "and", "have", "never", "had", "less", "than", "7", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "_REFORMULATION_SHORT", "SYNONYMS", "NEGATION_WITH_ANY_ALL", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0202", "db_id": "bike_1", "query": "select date , max_temperature_f - min_temperature_f from weather order by max_temperature_f - min_temperature_f limit 1", "query_toks": ["SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1"], "query_toks_no_value": ["select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "value"], "question": "What are the days that had the smallest temperature range, and what was that range?", "question_toks": ["What", "are", "the", "days", "that", "had", "the", "smallest", "temperature", "range", ",", "and", "what", "was", "that", "range", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 24, false], [0, 26, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 24, false], [0, 26, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "MATH_MINUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2416", "db_id": "candidate_poll", "query": "select t1.name , t1.sex , min(oppose_rate) from people as t1 join candidate as t2 on t1.people_id = t2.people_id group by t1.sex", "query_toks": ["SELECT", "t1.name", ",", "t1.sex", ",", "min", "(", "oppose_rate", ")", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "GROUP", "BY", "t1.sex"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "sex", ",", "min", "(", "oppose_rate", ")", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "group", "by", "t1", ".", "sex"], "question": "Find the name of the candidates whose oppose percentage is the lowest for each sex.", "question_toks": ["Find", "the", "name", "of", "the", "candidates", "whose", "oppose", "percentage", "is", "the", "lowest", "for", "each", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2426", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "query_toks_no_value": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "question": "find the highest support percentage, lowest consider rate and oppose rate of all candidates.", "question_toks": ["find", "the", "highest", "support", "percentage", ",", "lowest", "consider", "rate", "and", "oppose", "rate", "of", "all", "candidates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0101", "db_id": "car_1", "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);", "query_toks": ["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", ")", ";"], "query_toks_no_value": ["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", ")"], "question": "Find the make and production time of the cars that were produced in the earliest year?", "question_toks": ["Find", "the", "make", "and", "production", "time", "of", "the", "cars", "that", "were", "produced", "in", "the", "earliest", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "HIDDEN_MIN", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0102", "db_id": "car_1", "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);", "query_toks": ["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", ")", ";"], "query_toks_no_value": ["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", ")"], "question": "What is the maker of the carr produced in the earliest year and what year was it?", "question_toks": ["What", "is", "the", "maker", "of", "the", "carr", "produced", "in", "the", "earliest", "year", "and", "what", "year", "was", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0119", "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8", "and", "year", "=", "1974"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value"], "question": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", "question_toks": ["What", "is", "the", "smallest", "weight", "of", "the", "car", "produced", "with", "8", "cylinders", "on", "1974", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "and", [false, 2, [0, [0, 23, false], null], 1974.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL", "HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0167", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "<", "=", "value"], "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "lowest", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_AND_TO_COLUMNS", "NEGATION", "_NEGATION_OTHER_WORDS", "AND_IN_NL", "HIDDEN_MIN", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0831", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "What are the durations of the longest and the shortest tracks in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "longest", "and", "the", "shortest", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0881", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Pop", "''"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "What are the duration of the longest and shortest pop tracks in milliseconds?", "question_toks": ["What", "are", "the", "duration", "of", "the", "longest", "and", "shortest", "pop", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3222", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What is the highest, lowest, and average student GPA for every department?", "question_toks": ["What", "is", "the", "highest", ",", "lowest", ",", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1401", "db_id": "college_2", "query": "select min(salary) , dept_name from instructor group by dept_name having avg(salary) > (select avg(salary) from instructor)", "query_toks": ["SELECT", "min", "(", "salary", ")", ",", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "avg", "(", "salary", ")", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", ")"], "query_toks_no_value": ["select", "min", "(", "salary", ")", ",", "dept_name", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "(", "select", "avg", "(", "salary", ")", "from", "instructor", ")"], "question": "What is the lowest salary in departments with average salary greater than the overall average.", "question_toks": ["What", "is", "the", "lowest", "salary", "in", "departments", "with", "average", "salary", "greater", "than", "the", "overall", "average", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [5, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1488", "db_id": "college_2", "query": "select name from instructor where salary > (select min(salary) from instructor where dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")"], "question": "Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.", "question_toks": ["Find", "names", "of", "instructors", "with", "salary", "greater", "than", "that", "of", "some", "(", "at", "least", "one", ")", "instructor", "in", "the", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1489", "db_id": "college_2", "query": "select name from instructor where salary > (select min(salary) from instructor where dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")"], "question": "What are the names of instructors who earn more than at least one instructor from the Biology department?", "question_toks": ["What", "are", "the", "names", "of", "instructors", "who", "earn", "more", "than", "at", "least", "one", "instructor", "from", "the", "Biology", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0335", "db_id": "cre_Doc_Template_Mgt", "query": "select min(version_number) , template_type_code from templates", "query_toks": ["SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates"], "question": "What the smallest version number and its template type code?", "question_toks": ["What", "the", "smallest", "version", "number", "and", "its", "template", "type", "code", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0336", "db_id": "cre_Doc_Template_Mgt", "query": "select min(version_number) , template_type_code from templates", "query_toks": ["SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates"], "question": "Return the lowest version number, along with its corresponding template type code.", "question_toks": ["Return", "the", "lowest", "version", "number", ",", "along", "with", "its", "corresponding", "template", "type", "code", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4753", "db_id": "department_store", "query": "select distinct customer_id from customer_orders where order_date > (select min(order_date) from customer_orders where order_status_code = \"cancelled\")", "query_toks": ["SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "(", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "``", "Cancelled", "''", ")"], "query_toks_no_value": ["select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "(", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "value", ")"], "question": "Find the ids of all distinct customers who made order after some orders that were Cancelled.", "question_toks": ["Find", "the", "ids", "of", "all", "distinct", "customers", "who", "made", "order", "after", "some", "orders", "that", "were", "Cancelled", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 31, false], null]]]], "where": [[false, 3, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[2, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"Cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4754", "db_id": "department_store", "query": "select distinct customer_id from customer_orders where order_date > (select min(order_date) from customer_orders where order_status_code = \"cancelled\")", "query_toks": ["SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "(", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "``", "Cancelled", "''", ")"], "query_toks_no_value": ["select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "(", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "value", ")"], "question": "What are the distinct ids of customers who made an order after any order that was Cancelled?", "question_toks": ["What", "are", "the", "distinct", "ids", "of", "customers", "who", "made", "an", "order", "after", "any", "order", "that", "was", "Cancelled", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 31, false], null]]]], "where": [[false, 3, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[2, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"Cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4775", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "What is the largest and smallest customer codes?", "question_toks": ["What", "is", "the", "largest", "and", "smallest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4781", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "highest", "and", "lowest", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1694", "db_id": "epinions_1", "query": "select min(rank) from review", "query_toks": ["SELECT", "min", "(", "rank", ")", "FROM", "review"], "query_toks_no_value": ["select", "min", "(", "rank", ")", "from", "review"], "question": "Find the highest rank of all reviews.", "question_toks": ["Find", "the", "highest", "rank", "of", "all", "reviews", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2197", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration > (select min(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "(", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "(", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?", "question_toks": ["Find", "the", "distinct", "driver", "id", "of", "all", "drivers", "that", "have", "a", "longer", "stop", "duration", "than", "some", "drivers", "in", "the", "race", "whose", "id", "is", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 3, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[2, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2198", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration > (select min(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "(", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "(", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "What are the different ids and stop durations of all the drivers whose stop lasted longer than the driver in the race with the id 841?", "question_toks": ["What", "are", "the", "different", "ids", "and", "stop", "durations", "of", "all", "the", "drivers", "whose", "stop", "lasted", "longer", "than", "the", "driver", "in", "the", "race", "with", "the", "id", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 3, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[2, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0030", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "state", ")"], "question": "what state has the smallest population", "question_toks": ["what", "state", "has", "the", "smallest", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0031", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "state", ")"], "question": "what is the least populous state", "question_toks": ["what", "is", "the", "least", "populous", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0032", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "state", ")"], "question": "what is the state with the lowest population", "question_toks": ["what", "is", "the", "state", "with", "the", "lowest", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0145", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city where state_name = \"alaska\" ) and state_name = \"alaska\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "alaska", "''", ")", "AND", "state_name", "=", "``", "alaska", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the smallest city in alaska", "question_toks": ["what", "is", "the", "smallest", "city", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0151", "db_id": "geo", "query": "select density from state where area = ( select min ( area ) from state );", "query_toks": ["SELECT", "density", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "density", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the population density of the state with the smallest area", "question_toks": ["what", "is", "the", "population", "density", "of", "the", "state", "with", "the", "smallest", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0152", "db_id": "geo", "query": "select density from state where area = ( select min ( area ) from state );", "query_toks": ["SELECT", "density", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "density", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the population density of the smallest state", "question_toks": ["what", "is", "the", "population", "density", "of", "the", "smallest", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0173", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city where state_name in ( select state_name from state where area = ( select max ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select max ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the smallest city in the largest state", "question_toks": ["what", "is", "the", "smallest", "city", "in", "the", "largest", "state"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0189", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what is the state with the lowest population density", "question_toks": ["what", "is", "the", "state", "with", "the", "lowest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0190", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the lowest population density", "question_toks": ["what", "state", "has", "the", "lowest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0191", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the lowest population density", "question_toks": ["which", "state", "has", "the", "lowest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0192", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the smallest population density", "question_toks": ["which", "state", "has", "the", "smallest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0193", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the sparsest population density", "question_toks": ["what", "state", "has", "the", "sparsest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0194", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the sparsest population density", "question_toks": ["which", "state", "has", "the", "sparsest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0195", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the least population density", "question_toks": ["what", "state", "has", "the", "least", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0196", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the least population density", "question_toks": ["which", "state", "has", "the", "least", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0197", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the smallest population density", "question_toks": ["what", "state", "has", "the", "smallest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0206", "db_id": "geo", "query": "select area from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "area", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what is the area of the state with the smallest population density", "question_toks": ["what", "is", "the", "area", "of", "the", "state", "with", "the", "smallest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0315", "db_id": "geo", "query": "select capital from state where area = ( select min ( area ) from state );", "query_toks": ["SELECT", "capital", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "capital", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the capital of the smallest state", "question_toks": ["what", "is", "the", "capital", "of", "the", "smallest", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0338", "db_id": "geo", "query": "select highest_point from highlow where state_name in ( select state_name from state where density = ( select min ( density ) from state ) );", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")", ")"], "question": "what is the highest point of the state with the smallest population density", "question_toks": ["what", "is", "the", "highest", "point", "of", "the", "state", "with", "the", "smallest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0339", "db_id": "geo", "query": "select city_name from city where state_name in ( select state_name from state where state_name in ( select traverse from river where river_name = \"mississippi\" ) and area = ( select min ( area ) from state where state_name in ( select traverse from river where river_name = \"mississippi\" ) ) ) order by population desc limit 1;", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "traverse", "FROM", "river", "WHERE", "river_name", "=", "``", "mississippi", "''", ")", "AND", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "traverse", "FROM", "river", "WHERE", "river_name", "=", "``", "mississippi", "''", ")", ")", ")", "ORDER", "BY", "population", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "state_name", "in", "(", "select", "traverse", "from", "river", "where", "river_name", "=", "value", ")", "and", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "traverse", "from", "river", "where", "river_name", "=", "value", ")", ")", ")", "order", "by", "population", "desc", "limit", "value"], "question": "what is the largest city in smallest state through which the mississippi runs", "question_toks": ["what", "is", "the", "largest", "city", "in", "smallest", "state", "through", "which", "the", "mississippi", "runs"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"mississippi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"mississippi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0340", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the largest city in the smallest state in the usa", "question_toks": ["what", "is", "the", "largest", "city", "in", "the", "smallest", "state", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0341", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the biggest city in the smallest state", "question_toks": ["what", "is", "the", "biggest", "city", "in", "the", "smallest", "state"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0356", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow );", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "what is the lowest point in usa", "question_toks": ["what", "is", "the", "lowest", "point", "in", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0357", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow );", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "what is the lowest point in the united states", "question_toks": ["what", "is", "the", "lowest", "point", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0358", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow );", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "where is the lowest point in the us", "question_toks": ["where", "is", "the", "lowest", "point", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0359", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow );", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "what is the lowest point of the us", "question_toks": ["what", "is", "the", "lowest", "point", "of", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0375", "db_id": "geo", "query": "select population from state where area = ( select min ( area ) from state );", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "population", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the population of the smallest state", "question_toks": ["what", "is", "the", "population", "of", "the", "smallest", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0378", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what is the smallest city in the usa", "question_toks": ["what", "is", "the", "smallest", "city", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0379", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what is the smallest city in the us", "question_toks": ["what", "is", "the", "smallest", "city", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0380", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what city has the least population", "question_toks": ["what", "city", "has", "the", "least", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0381", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what is the city with the smallest population", "question_toks": ["what", "is", "the", "city", "with", "the", "smallest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0382", "db_id": "geo", "query": "select state_name from state where area = ( select min ( area ) from state where state_name in ( select border from border_info where state_name = \"texas\" ) ) and state_name in ( select border from border_info where state_name = \"texas\" );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "texas", "''", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "texas", "''", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")", ")", "and", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")"], "question": "what is the smallest state bordering texas", "question_toks": ["what", "is", "the", "smallest", "state", "bordering", "texas"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0460", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river );", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "what is the shortest river in the usa", "question_toks": ["what", "is", "the", "shortest", "river", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0461", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river );", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "what is the shortest river", "question_toks": ["what", "is", "the", "shortest", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0464", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river );", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "which is the shortest river", "question_toks": ["which", "is", "the", "shortest", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0501", "db_id": "geo", "query": "select distinct traverse from river where length = ( select min ( distinct length ) from river );", "query_toks": ["SELECT", "DISTINCT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "DISTINCT", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "distinct", "traverse", "from", "river", "where", "length", "=", "(", "select", "min", "(", "distinct", "length", ")", "from", "river", ")"], "question": "what state has the shortest river", "question_toks": ["what", "state", "has", "the", "shortest", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0504", "db_id": "geo", "query": "select traverse from river where length = ( select min ( length ) from river );", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "what states does the shortest river run through", "question_toks": ["what", "states", "does", "the", "shortest", "river", "run", "through"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3966", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "What are the highest cost, lowest cost and average cost of procedures?", "question_toks": ["What", "are", "the", "highest", "cost", ",", "lowest", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3967", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "Tell me the highest, lowest, and average cost of procedures.", "question_toks": ["Tell", "me", "the", "highest", ",", "lowest", ",", "and", "average", "cost", "of", "procedures", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3471", "db_id": "hr_1", "query": "select min(salary) , department_id from employees group by department_id", "query_toks": ["SELECT", "MIN", "(", "salary", ")", ",", "department_id", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["select", "min", "(", "salary", ")", ",", "department_id", "from", "employees", "group", "by", "department_id"], "question": "return the smallest salary for every departments.", "question_toks": ["return", "the", "smallest", "salary", "for", "every", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3473", "db_id": "hr_1", "query": "select first_name , last_name , department_id from employees where salary in (select min(salary) from employees group by department_id)", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")"], "question": "Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments.", "question_toks": ["Find", "the", "first", "name", "and", "last", "name", "and", "department", "id", "for", "those", "employees", "who", "earn", "such", "amount", "of", "salary", "which", "is", "the", "smallest", "salary", "of", "any", "of", "the", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 8, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3474", "db_id": "hr_1", "query": "select first_name , last_name , department_id from employees where salary in (select min(salary) from employees group by department_id)", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")"], "question": "What are the full names and department ids for the lowest paid employees across all departments.", "question_toks": ["What", "are", "the", "full", "names", "and", "department", "ids", "for", "the", "lowest", "paid", "employees", "across", "all", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 8, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3495", "db_id": "hr_1", "query": "select * from employees where salary between (select min(salary) from employees) and 2500", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", ")", "AND", "2500"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "salary", "between", "(", "select", "min", "(", "salary", ")", "from", "employees", ")", "and", "value"], "question": "display all the information of the employees whose salary if within the range of smallest salary and 2500.", "question_toks": ["display", "all", "the", "information", "of", "the", "employees", "whose", "salary", "if", "within", "the", "range", "of", "smallest", "salary", "and", "2500", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, 2500.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3507", "db_id": "hr_1", "query": "select employee_id , job_id from employees where salary < ( select min(salary) from employees where job_id = 'mk_man' )", "query_toks": ["SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "(", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'MK_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "(", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN.", "question_toks": ["display", "the", "employee", "number", "and", "job", "id", "for", "all", "employees", "whose", "salary", "is", "smaller", "than", "any", "salary", "of", "those", "employees", "whose", "job", "title", "is", "MK_MAN", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"MK_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3508", "db_id": "hr_1", "query": "select employee_id , job_id from employees where salary < ( select min(salary) from employees where job_id = 'mk_man' )", "query_toks": ["SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "(", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'MK_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "(", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN?", "question_toks": ["What", "are", "the", "employee", "ids", "and", "job", "ids", "for", "employees", "who", "make", "less", "than", "the", "lowest", "earning", "employee", "with", "title", "MK_MAN", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"MK_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5302", "db_id": "manufactory_1", "query": "select name from manufacturers where revenue < (select min(revenue) from manufacturers where headquarter = 'austin')", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "where", "revenue", "<", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")"], "question": "Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.", "question_toks": ["Find", "the", "name", "of", "companies", "whose", "revenue", "is", "smaller", "than", "the", "revenue", "of", "all", "companies", "based", "in", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5303", "db_id": "manufactory_1", "query": "select name from manufacturers where revenue < (select min(revenue) from manufacturers where headquarter = 'austin')", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "where", "revenue", "<", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")"], "question": "What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?", "question_toks": ["What", "are", "the", "names", "of", "companies", "with", "revenue", "less", "than", "the", "lowest", "revenue", "of", "any", "manufacturer", "in", "Austin", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5304", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers where revenue > (select min(revenue) from manufacturers where headquarter = 'austin')", "query_toks": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")"], "question": "Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.", "question_toks": ["Find", "the", "total", "revenue", "of", "companies", "whose", "revenue", "is", "larger", "than", "the", "revenue", "of", "some", "companies", "based", "in", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5305", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers where revenue > (select min(revenue) from manufacturers where headquarter = 'austin')", "query_toks": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")"], "question": "What is the total revenue of companies with revenue greater than the lowest revenue of any manufacturer in Austin?", "question_toks": ["What", "is", "the", "total", "revenue", "of", "companies", "with", "revenue", "greater", "than", "the", "lowest", "revenue", "of", "any", "manufacturer", "in", "Austin", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5350", "db_id": "manufactory_1", "query": "select code , name , min(price) from products group by name", "query_toks": ["SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name"], "query_toks_no_value": ["select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name"], "question": "Select the code of the product that is cheapest in each product category.", "question_toks": ["Select", "the", "code", "of", "the", "product", "that", "is", "cheapest", "in", "each", "product", "category", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5351", "db_id": "manufactory_1", "query": "select code , name , min(price) from products group by name", "query_toks": ["SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name"], "query_toks_no_value": ["select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name"], "question": "What are the codes and names of the cheapest products in each category?", "question_toks": ["What", "are", "the", "codes", "and", "names", "of", "the", "cheapest", "products", "in", "each", "category", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2450", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What is the lowest and highest rating star?", "question_toks": ["What", "is", "the", "lowest", "and", "highest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2462", "db_id": "movie_1", "query": "select avg(t1.stars) , t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select min(year) from movie)", "query_toks": ["SELECT", "avg", "(", "T1.stars", ")", ",", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "movie", ")"], "question": "What is the average rating stars and title for the oldest movie?", "question_toks": ["What", "is", "the", "average", "rating", "stars", "and", "title", "for", "the", "oldest", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2463", "db_id": "movie_1", "query": "select avg(t1.stars) , t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select min(year) from movie)", "query_toks": ["SELECT", "avg", "(", "T1.stars", ")", ",", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "movie", ")"], "question": "For the oldest movie listed, what is its average rating and title?", "question_toks": ["For", "the", "oldest", "movie", "listed", ",", "what", "is", "its", "average", "rating", "and", "title", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2504", "db_id": "movie_1", "query": "select t2.title , t1.rid , t1.stars , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t1.rid", "query_toks": ["SELECT", "T2.title", ",", "T1.rID", ",", "T1.stars", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.rID"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid"], "question": "Find the title and star rating of the movie that got the least rating star for each reviewer.", "question_toks": ["Find", "the", "title", "and", "star", "rating", "of", "the", "movie", "that", "got", "the", "least", "rating", "star", "for", "each", "reviewer", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2505", "db_id": "movie_1", "query": "select t2.title , t1.rid , t1.stars , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t1.rid", "query_toks": ["SELECT", "T2.title", ",", "T1.rID", ",", "T1.stars", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.rID"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid"], "question": "For each reviewer id, what is the title and rating for the movie with the smallest rating?", "question_toks": ["For", "each", "reviewer", "id", ",", "what", "is", "the", "title", "and", "rating", "for", "the", "movie", "with", "the", "smallest", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2506", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t2.director", "query_toks": ["SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T2.director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director"], "question": "Find the title and score of the movie with the lowest rating among all movies directed by each director.", "question_toks": ["Find", "the", "title", "and", "score", "of", "the", "movie", "with", "the", "lowest", "rating", "among", "all", "movies", "directed", "by", "each", "director", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2507", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t2.director", "query_toks": ["SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T2.director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director"], "question": "For each director, what is the title and score of their most poorly rated movie?", "question_toks": ["For", "each", "director", ",", "what", "is", "the", "title", "and", "score", "of", "their", "most", "poorly", "rated", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3569", "db_id": "music_1", "query": "select distinct song_name from song where resolution > (select min(resolution) from song where languages = \"english\")", "query_toks": ["SELECT", "DISTINCT", "song_name", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "min", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", ")"], "query_toks_no_value": ["select", "distinct", "song_name", "from", "song", "where", "resolution", ">", "(", "select", "min", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value", ")"], "question": "Find the distinct names of all songs that have a higher resolution than some songs in English.", "question_toks": ["Find", "the", "distinct", "names", "of", "all", "songs", "that", "have", "a", "higher", "resolution", "than", "some", "songs", "in", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3603", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["SELECT", "min", "(", "T1.duration", ")", ",", "min", "(", "T2.rating", ")", ",", "T2.genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.genre_is", "ORDER", "BY", "T2.genre_is"], "query_toks_no_value": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "question": "What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?", "question_toks": ["What", "are", "the", "shortest", "duration", "and", "lowest", "rating", "of", "songs", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3613", "db_id": "music_1", "query": "select song_name from song where rating < (select min(rating) from song where languages = 'english')", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "min", "(", "rating", ")", "FROM", "song", "WHERE", "languages", "=", "'english", "'", ")"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "min", "(", "rating", ")", "from", "song", "where", "languages", "=", "value", ")"], "question": "What are the names of the songs whose rating is below the rating of all songs in English?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "whose", "rating", "is", "below", "the", "rating", "of", "all", "songs", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4412", "db_id": "network_2", "query": "select name from person where gender = 'male' and age = (select min(age) from person where gender = 'male' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "'male", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")"], "question": "Who is the youngest male?", "question_toks": ["Who", "is", "the", "youngest", "male", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4413", "db_id": "network_2", "query": "select name from person where gender = 'male' and age = (select min(age) from person where gender = 'male' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "'male", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")"], "question": "What is the name of the youngest male?", "question_toks": ["What", "is", "the", "name", "of", "the", "youngest", "male", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4427", "db_id": "network_2", "query": "select min(age) , job from person group by job", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job"], "question": "How old is the youngest person for each job?", "question_toks": ["How", "old", "is", "the", "youngest", "person", "for", "each", "job", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4430", "db_id": "network_2", "query": "select name from person where age > (select min(age) from person where job = 'engineer') order by age", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")", "order", "by", "age"], "question": "Find the name of people whose age is greater than any engineer sorted by their age.", "question_toks": ["Find", "the", "name", "of", "people", "whose", "age", "is", "greater", "than", "any", "engineer", "sorted", "by", "their", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4431", "db_id": "network_2", "query": "select name from person where age > (select min(age) from person where job = 'engineer') order by age", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")", "order", "by", "age"], "question": "What is the name of all the people who are older than at least one engineer? Order them by age.", "question_toks": ["What", "is", "the", "name", "of", "all", "the", "people", "who", "are", "older", "than", "at", "least", "one", "engineer", "?", "Order", "them", "by", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4472", "db_id": "network_2", "query": "select name from personfriend where friend = 'alice' and year = (select min(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "Find the name of persons who are friends with Alice for the shortest years.", "question_toks": ["Find", "the", "name", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "shortest", "years", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4473", "db_id": "network_2", "query": "select name from personfriend where friend = 'alice' and year = (select min(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "What are the names of all people who are friends with Alice for the shortest amount of time?", "question_toks": ["What", "are", "the", "names", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "shortest", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6515", "db_id": "scientist_1", "query": "select t2.name , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select min(hours) from projects)", "query_toks": ["SELECT", "T2.name", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "min", "(", "hours", ")", "from", "projects", ")"], "question": "Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.", "question_toks": ["Find", "name", "of", "the", "project", "that", "needs", "the", "least", "amount", "of", "time", "to", "finish", "and", "the", "name", "of", "scientists", "who", "worked", "on", "it", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6516", "db_id": "scientist_1", "query": "select t2.name , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select min(hours) from projects)", "query_toks": ["SELECT", "T2.name", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "min", "(", "hours", ")", "from", "projects", ")"], "question": "What is the name of the project that requires the fewest number of hours, and the names of the scientists assigned to it?", "question_toks": ["What", "is", "the", "name", "of", "the", "project", "that", "requires", "the", "fewest", "number", "of", "hours", ",", "and", "the", "names", "of", "the", "scientists", "assigned", "to", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4992", "db_id": "soccer_2", "query": "select cname , state , min(enr) from college group by state", "query_toks": ["SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state"], "query_toks_no_value": ["select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state"], "question": "What is the name of school that has the smallest enrollment in each state?", "question_toks": ["What", "is", "the", "name", "of", "school", "that", "has", "the", "smallest", "enrollment", "in", "each", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4993", "db_id": "soccer_2", "query": "select cname , state , min(enr) from college group by state", "query_toks": ["SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state"], "query_toks_no_value": ["select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state"], "question": "What is the name of the school with smallest enrollment size per state?", "question_toks": ["What", "is", "the", "name", "of", "the", "school", "with", "smallest", "enrollment", "size", "per", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5040", "db_id": "soccer_2", "query": "select distinct cname from college where enr > (select min(enr) from college where state = 'fl')", "query_toks": ["SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "'FL", "'", ")"], "query_toks_no_value": ["select", "distinct", "cname", "from", "college", "where", "enr", ">", "(", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "value", ")"], "question": "Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.", "question_toks": ["Find", "names", "of", "colleges", "with", "enrollment", "greater", "than", "that", "of", "some", "(", "at", "least", "one", ")", "college", "in", "the", "FL", "state", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"FL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5041", "db_id": "soccer_2", "query": "select distinct cname from college where enr > (select min(enr) from college where state = 'fl')", "query_toks": ["SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "'FL", "'", ")"], "query_toks_no_value": ["select", "distinct", "cname", "from", "college", "where", "enr", ">", "(", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "value", ")"], "question": "What are the names of the colleges that are larger than at least one college in Florida?", "question_toks": ["What", "are", "the", "names", "of", "the", "colleges", "that", "are", "larger", "than", "at", "least", "one", "college", "in", "Florida", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"FL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3171", "db_id": "station_weather", "query": "select min(low_temperature) , max(wind_speed_mph) from weekly_weather", "query_toks": ["SELECT", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "FROM", "weekly_weather"], "query_toks_no_value": ["select", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "from", "weekly_weather"], "question": "show the lowest low temperature and highest wind speed in miles per hour.", "question_toks": ["show", "the", "lowest", "low", "temperature", "and", "highest", "wind", "speed", "in", "miles", "per", "hour", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]], [1, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5388", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where date_problem_reported < ( select min(date_problem_reported) from problems as t3 join staff as t4 on t3.reported_by_staff_id = t4.staff_id where t4.staff_first_name = \"lysanne\" and t4.staff_last_name = \"turcotte\" )", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "date_problem_reported", "<", "(", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3.reported_by_staff_id", "=", "T4.staff_id", "WHERE", "T4.staff_first_name", "=", "``", "Lysanne", "''", "AND", "T4.staff_last_name", "=", "``", "Turcotte", "''", ")"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "(", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")"], "question": "What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "reported", "before", "the", "date", "of", "any", "problem", "reported", "by", "Lysanne", "Turcotte", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[2, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Lysanne\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5389", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where date_problem_reported < ( select min(date_problem_reported) from problems as t3 join staff as t4 on t3.reported_by_staff_id = t4.staff_id where t4.staff_first_name = \"lysanne\" and t4.staff_last_name = \"turcotte\" )", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "date_problem_reported", "<", "(", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3.reported_by_staff_id", "=", "T4.staff_id", "WHERE", "T4.staff_first_name", "=", "``", "Lysanne", "''", "AND", "T4.staff_last_name", "=", "``", "Turcotte", "''", ")"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "(", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")"], "question": "Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.", "question_toks": ["Which", "problems", "were", "reported", "before", "the", "date", "of", "any", "problem", "reported", "by", "the", "staff", "Lysanne", "Turcotte", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[2, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Lysanne\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5461", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "Tell me the ages of the oldest and youngest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "oldest", "and", "youngest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6557", "db_id": "wine_1", "query": "select distinct name from wine where price > (select min(price) from wine where winery = \"john anthony\")", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "``", "John", "Anthony", "''", ")"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "where", "price", ">", "(", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "value", ")"], "question": "Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.", "question_toks": ["Find", "the", "distinct", "names", "of", "all", "wines", "that", "have", "prices", "higher", "than", "some", "wines", "from", "John", "Anthony", "winery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"John Anthony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6558", "db_id": "wine_1", "query": "select distinct name from wine where price > (select min(price) from wine where winery = \"john anthony\")", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "``", "John", "Anthony", "''", ")"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "where", "price", ">", "(", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "value", ")"], "question": "What are the distinct names of wines with prices higher than any wine from John Anthony winery.", "question_toks": ["What", "are", "the", "distinct", "names", "of", "wines", "with", "prices", "higher", "than", "any", "wine", "from", "John", "Anthony", "winery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"John Anthony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6583", "db_id": "wine_1", "query": "select name from wine where year < (select min(year) from wine where winery = \"brander\")", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "Brander", "''", ")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "year", "<", "(", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "value", ")"], "question": "What are the names of wines whose production year are before the year of all wines by Brander winery?", "question_toks": ["What", "are", "the", "names", "of", "wines", "whose", "production", "year", "are", "before", "the", "year", "of", "all", "wines", "by", "Brander", "winery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Brander\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6584", "db_id": "wine_1", "query": "select name from wine where year < (select min(year) from wine where winery = \"brander\")", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "Brander", "''", ")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "year", "<", "(", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "value", ")"], "question": "What are the names of wines produced before any wine from the Brander winery?", "question_toks": ["What", "are", "the", "names", "of", "wines", "produced", "before", "any", "wine", "from", "the", "Brander", "winery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Brander\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0775", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "population", "<", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", ")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")"], "question": "Which African countries have a smaller population than that of any country in Asia?", "question_toks": ["Which", "African", "countries", "have", "a", "smaller", "population", "than", "that", "of", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "HIDDEN_MIN", "AND_IN_SQL_BUT_NOT_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0439", "db_id": "wta_1", "query": "select min(loser_rank) from matches", "query_toks": ["SELECT", "min", "(", "loser_rank", ")", "FROM", "matches"], "query_toks_no_value": ["select", "min", "(", "loser_rank", ")", "from", "matches"], "question": "Find the highest rank of losers in all matches.", "question_toks": ["Find", "the", "highest", "rank", "of", "losers", "in", "all", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0440", "db_id": "wta_1", "query": "select min(loser_rank) from matches", "query_toks": ["SELECT", "min", "(", "loser_rank", ")", "FROM", "matches"], "query_toks_no_value": ["select", "min", "(", "loser_rank", ")", "from", "matches"], "question": "What is the best rank of losers across all matches?", "question_toks": ["What", "is", "the", "best", "rank", "of", "losers", "across", "all", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_min_0087", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["SELECT", "min", "(", "T1", ".", "duration", ")", ",", "min", "(", "T2", ".", "rating", ")", ",", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "query_toks_no_value": ["SELECT", "min", "(", "T1", ".", "duration", ")", ",", "min", "(", "T2", ".", "rating", ")", ",", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "question": "What is the shortest duration and most poorly rating of song for each genre, ordered alphabetically by genre?", "question_toks": ["What", "is", "the", "shortest", "duration", "and", "most", "poorly", "rating", "of", "song", "for", "each", "genre", ",", "ordered", "alphabetically", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1812", "db_id": "small_bank_1", "query": "select t1.balance + t2.balance from checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance", "query_toks": ["SELECT", "T1.balance", "+", "T2.balance", "FROM", "checking", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "ORDER", "BY", "T1.balance", "+", "T2.balance"], "query_toks_no_value": ["select", "t1", ".", "balance", "+", "t2", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t1", ".", "balance", "+", "t2", ".", "balance"], "question": "Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.", "question_toks": ["Find", "the", "total", "checking", "and", "saving", "balance", "of", "all", "accounts", "sorted", "by", "the", "total", "balance", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [false, [[0, [2, [0, 6, false], [0, 4, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 6, false], [0, 4, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1813", "db_id": "small_bank_1", "query": "select t1.balance + t2.balance from checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance", "query_toks": ["SELECT", "T1.balance", "+", "T2.balance", "FROM", "checking", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "ORDER", "BY", "T1.balance", "+", "T2.balance"], "query_toks_no_value": ["select", "t1", ".", "balance", "+", "t2", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t1", ".", "balance", "+", "t2", ".", "balance"], "question": "What is the sum of checking and savings balances for all customers, ordered by the total balance?", "question_toks": ["What", "is", "the", "sum", "of", "checking", "and", "savings", "balances", "for", "all", "customers", ",", "ordered", "by", "the", "total", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [false, [[0, [2, [0, 6, false], [0, 4, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 6, false], [0, 4, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0128", "db_id": "car_1", "query": "select avg(weight) , year from cars_data group by year;", "query_toks": ["SELECT", "avg", "(", "Weight", ")", ",", "YEAR", "FROM", "CARS_DATA", "GROUP", "BY", "YEAR", ";"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", ",", "year", "from", "cars_data", "group", "by", "year"], "question": "What is the average weight and year for each year?", "question_toks": ["What", "is", "the", "average", "weight", "and", "year", "for", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0139", "db_id": "car_1", "query": "select max(accelerate) , cylinders from cars_data group by cylinders;", "query_toks": ["SELECT", "max", "(", "Accelerate", ")", ",", "Cylinders", "FROM", "CARS_DATA", "GROUP", "BY", "Cylinders", ";"], "query_toks_no_value": ["select", "max", "(", "accelerate", ")", ",", "cylinders", "from", "cars_data", "group", "by", "cylinders"], "question": "What is the maximum accelerate for different number of cylinders?", "question_toks": ["What", "is", "the", "maximum", "accelerate", "for", "different", "number", "of", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0140", "db_id": "car_1", "query": "select max(accelerate) , cylinders from cars_data group by cylinders;", "query_toks": ["SELECT", "max", "(", "Accelerate", ")", ",", "Cylinders", "FROM", "CARS_DATA", "GROUP", "BY", "Cylinders", ";"], "query_toks_no_value": ["select", "max", "(", "accelerate", ")", ",", "cylinders", "from", "cars_data", "group", "by", "cylinders"], "question": "What is the maximum accelerate for all the different cylinders?", "question_toks": ["What", "is", "the", "maximum", "accelerate", "for", "all", "the", "different", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0010", "db_id": "concert_singer", "query": "select country , count(*) from singer group by country", "query_toks": ["SELECT", "country", ",", "count", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "country"], "query_toks_no_value": ["select", "country", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "country"], "question": "Show all countries and the number of singers in each country.", "question_toks": ["Show", "all", "countries", "and", "the", "number", "of", "singers", "in", "each", "country", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0011", "db_id": "concert_singer", "query": "select country , count(*) from singer group by country", "query_toks": ["SELECT", "country", ",", "count", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "country"], "query_toks_no_value": ["select", "country", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "country"], "question": "How many singers are from each country?", "question_toks": ["How", "many", "singers", "are", "from", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "GROUP_BY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0022", "db_id": "concert_singer", "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", "query_toks": ["SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "GROUP", "BY", "T1.stadium_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t1", ".", "stadium_id"], "question": "Show the stadium name and the number of concerts in each stadium.", "question_toks": ["Show", "the", "stadium", "name", "and", "the", "number", "of", "concerts", "in", "each", "stadium", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0393", "db_id": "course_teach", "query": "select hometown , count(*) from teacher group by hometown", "query_toks": ["SELECT", "Hometown", ",", "COUNT", "(", "*", ")", "FROM", "teacher", "GROUP", "BY", "Hometown"], "query_toks_no_value": ["select", "hometown", ",", "count", "(", "*", ")", "from", "teacher", "group", "by", "hometown"], "question": "Show different hometown of teachers and the number of teachers from each hometown.", "question_toks": ["Show", "different", "hometown", "of", "teachers", "and", "the", "number", "of", "teachers", "from", "each", "hometown", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0394", "db_id": "course_teach", "query": "select hometown , count(*) from teacher group by hometown", "query_toks": ["SELECT", "Hometown", ",", "COUNT", "(", "*", ")", "FROM", "teacher", "GROUP", "BY", "Hometown"], "query_toks_no_value": ["select", "hometown", ",", "count", "(", "*", ")", "from", "teacher", "group", "by", "hometown"], "question": "For each hometown, how many teachers are there?", "question_toks": ["For", "each", "hometown", ",", "how", "many", "teachers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "GROUP_BY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0405", "db_id": "course_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", "query_toks": ["SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name"], "question": "Show names of teachers and the number of courses they teach.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "number", "of", "courses", "they", "teach", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0406", "db_id": "course_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", "query_toks": ["SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name"], "question": "What are the names of the teachers and how many courses do they teach?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "and", "how", "many", "courses", "do", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "GROUP_BY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0848", "db_id": "orchestra", "query": "select record_company , count(*) from orchestra group by record_company", "query_toks": ["SELECT", "Record_Company", ",", "COUNT", "(", "*", ")", "FROM", "orchestra", "GROUP", "BY", "Record_Company"], "query_toks_no_value": ["select", "record_company", ",", "count", "(", "*", ")", "from", "orchestra", "group", "by", "record_company"], "question": "Please show the different record companies and the corresponding number of orchestras.", "question_toks": ["Please", "show", "the", "different", "record", "companies", "and", "the", "corresponding", "number", "of", "orchestras", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0849", "db_id": "orchestra", "query": "select record_company , count(*) from orchestra group by record_company", "query_toks": ["SELECT", "Record_Company", ",", "COUNT", "(", "*", ")", "FROM", "orchestra", "GROUP", "BY", "Record_Company"], "query_toks_no_value": ["select", "record_company", ",", "count", "(", "*", ")", "from", "orchestra", "group", "by", "record_company"], "question": "How many orchestras does each record company manage?", "question_toks": ["How", "many", "orchestras", "does", "each", "record", "company", "manage", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0049", "db_id": "pets_1", "query": "select max(weight) , pettype from pets group by pettype", "query_toks": ["SELECT", "max", "(", "weight", ")", ",", "petType", "FROM", "pets", "GROUP", "BY", "petType"], "query_toks_no_value": ["select", "max", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "Find the maximum weight for each type of pet. List the maximum weight and pet type.", "question_toks": ["Find", "the", "maximum", "weight", "for", "each", "type", "of", "pet", ".", "List", "the", "maximum", "weight", "and", "pet", "type", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0050", "db_id": "pets_1", "query": "select max(weight) , pettype from pets group by pettype", "query_toks": ["SELECT", "max", "(", "weight", ")", ",", "petType", "FROM", "pets", "GROUP", "BY", "petType"], "query_toks_no_value": ["select", "max", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "List the maximum weight and type for each type of pet.", "question_toks": ["List", "the", "maximum", "weight", "and", "type", "for", "each", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0071", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "Find the average and maximum age for each type of pet.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "for", "each", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY", "MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0072", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "What is the average and maximum age for each pet type?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY", "MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0673", "db_id": "poker_player", "query": "select nationality , count(*) from people group by nationality", "query_toks": ["SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Nationality"], "query_toks_no_value": ["select", "nationality", ",", "count", "(", "*", ")", "from", "people", "group", "by", "nationality"], "question": "What are different nationalities of people and the corresponding number of people from each nation?", "question_toks": ["What", "are", "different", "nationalities", "of", "people", "and", "the", "corresponding", "number", "of", "people", "from", "each", "nation", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1012", "db_id": "singer", "query": "select citizenship , count(*) from singer group by citizenship", "query_toks": ["SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship"], "query_toks_no_value": ["select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship"], "question": "Show different citizenship of singers and the number of singers of each citizenship.", "question_toks": ["Show", "different", "citizenship", "of", "singers", "and", "the", "number", "of", "singers", "of", "each", "citizenship", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1016", "db_id": "singer", "query": "select citizenship , max(net_worth_millions) from singer group by citizenship", "query_toks": ["SELECT", "Citizenship", ",", "max", "(", "Net_Worth_Millions", ")", "FROM", "singer", "GROUP", "BY", "Citizenship"], "query_toks_no_value": ["select", "citizenship", ",", "max", "(", "net_worth_millions", ")", "from", "singer", "group", "by", "citizenship"], "question": "Show different citizenships and the maximum net worth of singers of each citizenship.", "question_toks": ["Show", "different", "citizenships", "and", "the", "maximum", "net", "worth", "of", "singers", "of", "each", "citizenship", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0607", "db_id": "tvshow", "query": "select language , count(*) from tv_channel group by language", "query_toks": ["SELECT", "LANGUAGE", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "LANGUAGE"], "query_toks_no_value": ["select", "language", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "language"], "question": "List each language and the number of TV Channels using it.", "question_toks": ["List", "each", "language", "and", "the", "number", "of", "TV", "Channels", "using", "it", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0627", "db_id": "tvshow", "query": "select count(*) , directed_by from cartoon group by directed_by", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "Directed_by", "FROM", "cartoon", "GROUP", "BY", "Directed_by"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "directed_by", "from", "cartoon", "group", "by", "directed_by"], "question": "Find the number of cartoons directed by each of the listed directors.", "question_toks": ["Find", "the", "number", "of", "cartoons", "directed", "by", "each", "of", "the", "listed", "directors", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0628", "db_id": "tvshow", "query": "select count(*) , directed_by from cartoon group by directed_by", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "Directed_by", "FROM", "cartoon", "GROUP", "BY", "Directed_by"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "directed_by", "from", "cartoon", "group", "by", "directed_by"], "question": "How many cartoons did each director create?", "question_toks": ["How", "many", "cartoons", "did", "each", "director", "create", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0794", "db_id": "world_1", "query": "select count(*) , district from city where population > (select avg(population) from city) group by district", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "District", "FROM", "city", "WHERE", "Population", ">", "(", "SELECT", "avg", "(", "Population", ")", "FROM", "city", ")", "GROUP", "BY", "District"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "district", "from", "city", "where", "population", ">", "(", "select", "avg", "(", "population", ")", "from", "city", ")", "group", "by", "district"], "question": "Find the number of cities in each district whose population is greater than the average population of cities?", "question_toks": ["Find", "the", "number", "of", "cities", "in", "each", "district", "whose", "population", "is", "greater", "than", "the", "average", "population", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0816", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "question": "What is the language spoken by the largest percentage of people in each country?", "question_toks": ["What", "is", "the", "language", "spoken", "by", "the", "largest", "percentage", "of", "people", "in", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0469", "db_id": "wta_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the average ranking for each player and their first name.", "question_toks": ["Find", "the", "average", "ranking", "for", "each", "player", "and", "their", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[5, [0, [0, 40, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0470", "db_id": "wta_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the first names of all players, and their average rankings?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "players", ",", "and", "their", "average", "rankings", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[5, [0, [0, 40, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0473", "db_id": "wta_1", "query": "select count(*) , country_code from players group by country_code", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "country_code", "FROM", "players", "GROUP", "BY", "country_code"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "country_code", "from", "players", "group", "by", "country_code"], "question": "find the number of players for each country.", "question_toks": ["find", "the", "number", "of", "players", "for", "each", "country", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0474", "db_id": "wta_1", "query": "select count(*) , country_code from players group by country_code", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "country_code", "FROM", "players", "GROUP", "BY", "country_code"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "country_code", "from", "players", "group", "by", "country_code"], "question": "How many players are from each country?", "question_toks": ["How", "many", "players", "are", "from", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "GROUP_BY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0479", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "query_toks_no_value": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "question": "Find the total number of tours for each ranking date.", "question_toks": ["Find", "the", "total", "number", "of", "tours", "for", "each", "ranking", "date", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "GROUP_BY", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0480", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "query_toks_no_value": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "question": "How many total tours were there for each ranking date?", "question_toks": ["How", "many", "total", "tours", "were", "there", "for", "each", "ranking", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "HOW_MANY", "_HOW_MANY_SUM", "_HIDDEN_SUM_TOTAL", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0481", "db_id": "wta_1", "query": "select count(*) , year from matches group by year", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "year", "from", "matches", "group", "by", "year"], "question": "Find the number of matches happened in each year.", "question_toks": ["Find", "the", "number", "of", "matches", "happened", "in", "each", "year", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0482", "db_id": "wta_1", "query": "select count(*) , year from matches group by year", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "year", "from", "matches", "group", "by", "year"], "question": "How many matches were played in each year?", "question_toks": ["How", "many", "matches", "were", "played", "in", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "GROUP_BY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0489", "db_id": "wta_1", "query": "select count(*) , hand from players group by hand", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "hand", "FROM", "players", "GROUP", "BY", "hand"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "hand", "from", "players", "group", "by", "hand"], "question": "Find the number of players for each hand type.", "question_toks": ["Find", "the", "number", "of", "players", "for", "each", "hand", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0490", "db_id": "wta_1", "query": "select count(*) , hand from players group by hand", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "hand", "FROM", "players", "GROUP", "BY", "hand"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "hand", "from", "players", "group", "by", "hand"], "question": "How many players are there for each hand type?", "question_toks": ["How", "many", "players", "are", "there", "for", "each", "hand", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0453", "db_id": "allergy_1", "query": "select allergytype , count(*) from allergy_type group by allergytype", "query_toks": ["SELECT", "allergytype", ",", "count", "(", "*", ")", "FROM", "Allergy_type", "GROUP", "BY", "allergytype"], "query_toks_no_value": ["select", "allergytype", ",", "count", "(", "*", ")", "from", "allergy_type", "group", "by", "allergytype"], "question": "Show all allergy types and the number of allergies in each type.", "question_toks": ["Show", "all", "allergy", "types", "and", "the", "number", "of", "allergies", "in", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0454", "db_id": "allergy_1", "query": "select allergytype , count(*) from allergy_type group by allergytype", "query_toks": ["SELECT", "allergytype", ",", "count", "(", "*", ")", "FROM", "Allergy_type", "GROUP", "BY", "allergytype"], "query_toks_no_value": ["select", "allergytype", ",", "count", "(", "*", ")", "from", "allergy_type", "group", "by", "allergytype"], "question": "What are the allergy types and how many allergies correspond to each one?", "question_toks": ["What", "are", "the", "allergy", "types", "and", "how", "many", "allergies", "correspond", "to", "each", "one", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0489", "db_id": "allergy_1", "query": "select major , count(*) from student group by major", "query_toks": ["SELECT", "major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "major"], "query_toks_no_value": ["select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major"], "question": "Show all majors and corresponding number of students.", "question_toks": ["Show", "all", "majors", "and", "corresponding", "number", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0490", "db_id": "allergy_1", "query": "select major , count(*) from student group by major", "query_toks": ["SELECT", "major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "major"], "query_toks_no_value": ["select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major"], "question": "How many students are there for each major?", "question_toks": ["How", "many", "students", "are", "there", "for", "each", "major", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3637", "db_id": "baseball_1", "query": "select yearid , count(*) from hall_of_fame group by yearid;", "query_toks": ["SELECT", "yearid", ",", "count", "(", "*", ")", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", ";"], "query_toks_no_value": ["select", "yearid", ",", "count", "(", "*", ")", "from", "hall_of_fame", "group", "by", "yearid"], "question": "How many players enter hall of fame each year?", "question_toks": ["How", "many", "players", "enter", "hall", "of", "fame", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 145, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 145, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3638", "db_id": "baseball_1", "query": "select yearid , count(*) from hall_of_fame group by yearid;", "query_toks": ["SELECT", "yearid", ",", "count", "(", "*", ")", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", ";"], "query_toks_no_value": ["select", "yearid", ",", "count", "(", "*", ")", "from", "hall_of_fame", "group", "by", "yearid"], "question": "Count the number of players who enter hall of fame for each year.", "question_toks": ["Count", "the", "number", "of", "players", "who", "enter", "hall", "of", "fame", "for", "each", "year", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 145, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 145, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3639", "db_id": "baseball_1", "query": "select year , avg(attendance) from home_game group by year;", "query_toks": ["SELECT", "YEAR", ",", "avg", "(", "attendance", ")", "FROM", "home_game", "GROUP", "BY", "YEAR", ";"], "query_toks_no_value": ["select", "year", ",", "avg", "(", "attendance", ")", "from", "home_game", "group", "by", "year"], "question": "What is the average number of attendance at home games for each year?", "question_toks": ["What", "is", "the", "average", "number", "of", "attendance", "at", "home", "games", "for", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 153, false], null]], [5, [0, [0, 161, false], null]]]], "where": [], "groupBy": [[0, 153, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3640", "db_id": "baseball_1", "query": "select year , avg(attendance) from home_game group by year;", "query_toks": ["SELECT", "YEAR", ",", "avg", "(", "attendance", ")", "FROM", "home_game", "GROUP", "BY", "YEAR", ";"], "query_toks_no_value": ["select", "year", ",", "avg", "(", "attendance", ")", "from", "home_game", "group", "by", "year"], "question": "For each year, return the year and the average number of attendance at home games.", "question_toks": ["For", "each", "year", ",", "return", "the", "year", "and", "the", "average", "number", "of", "attendance", "at", "home", "games", "."], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 153, false], null]], [5, [0, [0, 161, false], null]]]], "where": [], "groupBy": [[0, 153, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3120", "db_id": "behavior_monitoring", "query": "select t1.line_1 , avg(t2.monthly_rental) from addresses as t1 join student_addresses as t2 on t1.address_id = t2.address_id group by t2.address_id", "query_toks": ["SELECT", "T1.line_1", ",", "avg", "(", "T2.monthly_rental", ")", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "GROUP", "BY", "T2.address_id"], "query_toks_no_value": ["select", "t1", ".", "line_1", ",", "avg", "(", "t2", ".", "monthly_rental", ")", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "group", "by", "t2", ".", "address_id"], "question": "What are the line 1 and average monthly rentals of all student addresses?", "question_toks": ["What", "are", "the", "line", "1", "and", "average", "monthly", "rentals", "of", "all", "student", "addresses", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 57, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 60, false], null]]]], "where": [], "groupBy": [[0, 57, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1163", "db_id": "body_builder", "query": "select birth_place , count(*) from people group by birth_place", "query_toks": ["SELECT", "Birth_Place", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Birth_Place"], "query_toks_no_value": ["select", "birth_place", ",", "count", "(", "*", ")", "from", "people", "group", "by", "birth_place"], "question": "List each birth place along with the number of people from there.", "question_toks": ["List", "each", "birth", "place", "along", "with", "the", "number", "of", "people", "from", "there", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2424", "db_id": "candidate_poll", "query": "select count(*) , sex from people where weight > 85 group by sex", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "people", "WHERE", "weight", ">", "85", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "sex", "from", "people", "where", "weight", ">", "value", "group", "by", "sex"], "question": "how many people are there whose weight is higher than 85 for each gender?", "question_toks": ["how", "many", "people", "are", "there", "whose", "weight", "is", "higher", "than", "85", "for", "each", "gender", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 85.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2425", "db_id": "candidate_poll", "query": "select count(*) , sex from people where weight > 85 group by sex", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "people", "WHERE", "weight", ">", "85", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "sex", "from", "people", "where", "weight", ">", "value", "group", "by", "sex"], "question": "Count the number of people of each sex who have a weight higher than 85.", "question_toks": ["Count", "the", "number", "of", "people", "of", "each", "sex", "who", "have", "a", "weight", "higher", "than", "85", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 85.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0833", "db_id": "chinook_1", "query": "select t1.title , t2.albumid , count(*) from album as t1 join track as t2 on t1.albumid = t2.albumid group by t2.albumid", "query_toks": ["SELECT", "T1.Title", ",", "T2.AlbumID", ",", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "GROUP", "BY", "T2.AlbumID"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid"], "question": "Show the album names, ids and the number of tracks for each album.", "question_toks": ["Show", "the", "album", "names", ",", "ids", "and", "the", "number", "of", "tracks", "for", "each", "album", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 58, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0834", "db_id": "chinook_1", "query": "select t1.title , t2.albumid , count(*) from album as t1 join track as t2 on t1.albumid = t2.albumid group by t2.albumid", "query_toks": ["SELECT", "T1.Title", ",", "T2.AlbumID", ",", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "GROUP", "BY", "T2.AlbumID"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid"], "question": "What are the names and ids of the different albums, and how many tracks are on each?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "the", "different", "albums", ",", "and", "how", "many", "tracks", "are", "on", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 58, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "GROUP_BY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1949", "db_id": "cinema", "query": "select directed_by , count(*) from film group by directed_by", "query_toks": ["SELECT", "directed_by", ",", "count", "(", "*", ")", "FROM", "film", "GROUP", "BY", "directed_by"], "query_toks_no_value": ["select", "directed_by", ",", "count", "(", "*", ")", "from", "film", "group", "by", "directed_by"], "question": "List all directors along with the number of films directed by each director.", "question_toks": ["List", "all", "directors", "along", "with", "the", "number", "of", "films", "directed", "by", "each", "director", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1950", "db_id": "cinema", "query": "select t2.name , sum(t1.show_times_per_day) from schedule as t1 join cinema as t2 on t1.cinema_id = t2.cinema_id group by t1.cinema_id", "query_toks": ["SELECT", "T2.name", ",", "sum", "(", "T1.show_times_per_day", ")", "FROM", "schedule", "AS", "T1", "JOIN", "cinema", "AS", "T2", "ON", "T1.cinema_id", "=", "T2.cinema_id", "GROUP", "BY", "T1.cinema_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "sum", "(", "t1", ".", "show_times_per_day", ")", "from", "schedule", "as", "t1", "join", "cinema", "as", "t2", "on", "t1", ".", "cinema_id", "=", "t2", ".", "cinema_id", "group", "by", "t1", ".", "cinema_id"], "question": "What is total number of show times per dat for each cinema?", "question_toks": ["What", "is", "total", "number", "of", "show", "times", "per", "dat", "for", "each", "cinema", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [4, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0201", "db_id": "bike_1", "query": "select date , max_temperature_f - min_temperature_f from weather order by max_temperature_f - min_temperature_f limit 1", "query_toks": ["SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1"], "query_toks_no_value": ["select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "value"], "question": "Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.", "question_toks": ["Find", "the", "day", "in", "which", "the", "difference", "between", "the", "max", "temperature", "and", "min", "temperature", "was", "the", "smallest", ".", "Also", "report", "the", "difference", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 24, false], [0, 26, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 24, false], [0, 26, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["MATH_MINUS", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3443", "db_id": "hr_1", "query": "select job_title , max_salary - min_salary from jobs where max_salary between 12000 and 18000", "query_toks": ["SELECT", "job_title", ",", "max_salary", "-", "min_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000"], "query_toks_no_value": ["select", "job_title", ",", "max_salary", "-", "min_salary", "from", "jobs", "where", "max_salary", "between", "value", "and", "value"], "question": "display job Title, the difference between minimum and maximum salaries for those jobs which max salary within the range 12000 to 18000.", "question_toks": ["display", "job", "Title", ",", "the", "difference", "between", "minimum", "and", "maximum", "salaries", "for", "those", "jobs", "which", "max", "salary", "within", "the", "range", "12000", "to", "18000", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [1, [0, 13, false], [0, 12, false]]]]], "where": [[false, 1, [0, [0, 13, false], null], 12000.0, 18000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MATH_MINUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3444", "db_id": "hr_1", "query": "select job_title , max_salary - min_salary from jobs where max_salary between 12000 and 18000", "query_toks": ["SELECT", "job_title", ",", "max_salary", "-", "min_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000"], "query_toks_no_value": ["select", "job_title", ",", "max_salary", "-", "min_salary", "from", "jobs", "where", "max_salary", "between", "value", "and", "value"], "question": "What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?", "question_toks": ["What", "are", "the", "job", "titles", ",", "and", "range", "of", "salaries", "for", "jobs", "with", "maximum", "salary", "between", "12000", "and", "18000", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [1, [0, 13, false], [0, 12, false]]]]], "where": [[false, 1, [0, [0, 13, false], null], 12000.0, 18000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MATH_MINUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4749", "db_id": "department_store", "query": "select t1.staff_id , t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id order by date_assigned_to - date_assigned_from limit 1", "query_toks": ["SELECT", "T1.staff_id", ",", "T1.staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "value"], "question": "Find the id and name of the staff who has been assigned for the shortest period.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "shortest", "period", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 56, false], [0, 54, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4750", "db_id": "department_store", "query": "select t1.staff_id , t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id order by date_assigned_to - date_assigned_from limit 1", "query_toks": ["SELECT", "T1.staff_id", ",", "T1.staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "value"], "question": "What is the id and name of the staff who has been assigned for the least amount of time?", "question_toks": ["What", "is", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "least", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 56, false], [0, 54, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6101", "db_id": "customers_and_addresses", "query": "select avg(active_to_date - active_from_date) from customer_contact_channels", "query_toks": ["SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels"], "query_toks_no_value": ["select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels"], "question": "What is the average time span of contact channels in the database?", "question_toks": ["What", "is", "the", "average", "time", "span", "of", "contact", "channels", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6102", "db_id": "customers_and_addresses", "query": "select avg(active_to_date - active_from_date) from customer_contact_channels", "query_toks": ["SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels"], "query_toks_no_value": ["select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels"], "question": "Compute the average active time span of contact channels.", "question_toks": ["Compute", "the", "average", "active", "time", "span", "of", "contact", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6103", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels where active_to_date - active_from_date = (select active_to_date - active_from_date from customer_contact_channels order by (active_to_date - active_from_date) desc limit 1)", "query_toks": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "(", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "(", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "value", ")"], "question": "What is the channel code and contact number of the customer contact channel that was active for the longest time?", "question_toks": ["What", "is", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "that", "was", "active", "for", "the", "longest", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [1, [0, 23, false], [0, 22, false]], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[1, [0, 23, false], [0, 22, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6104", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels where active_to_date - active_from_date = (select active_to_date - active_from_date from customer_contact_channels order by (active_to_date - active_from_date) desc limit 1)", "query_toks": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "(", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "(", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "value", ")"], "question": "Return the channel code and contact number of the customer contact channel whose active duration was the longest.", "question_toks": ["Return", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "whose", "active", "duration", "was", "the", "longest", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [1, [0, 23, false], [0, 22, false]], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[1, [0, 23, false], [0, 22, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0240", "db_id": "musical", "query": "select name from actor where age != 20", "query_toks": ["SELECT", "Name", "FROM", "actor", "WHERE", "Age", "!", "=", "20"], "query_toks_no_value": ["select", "name", "from", "actor", "where", "age", "!", "=", "value"], "question": "List the name of actors whose age is not 20.", "question_toks": ["List", "the", "name", "of", "actors", "whose", "age", "is", "not", "20", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0241", "db_id": "musical", "query": "select name from actor where age != 20", "query_toks": ["SELECT", "Name", "FROM", "actor", "WHERE", "Age", "!", "=", "20"], "query_toks_no_value": ["select", "name", "from", "actor", "where", "age", "!", "=", "value"], "question": "What are the names of actors who are not 20 years old?", "question_toks": ["What", "are", "the", "names", "of", "actors", "who", "are", "not", "20", "years", "old", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2522", "db_id": "movie_1", "query": "select rid from rating where stars != 4", "query_toks": ["SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "!", "=", "4"], "query_toks_no_value": ["select", "rid", "from", "rating", "where", "stars", "!", "=", "value"], "question": "Find the ids of reviewers who didn't only give 4 star.", "question_toks": ["Find", "the", "ids", "of", "reviewers", "who", "did", "n't", "only", "give", "4", "star", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0216", "db_id": "book_2", "query": "select title from book where writer != \"elaine lee\"", "query_toks": ["SELECT", "Title", "FROM", "book", "WHERE", "Writer", "!", "=", "``", "Elaine", "Lee", "''"], "query_toks_no_value": ["select", "title", "from", "book", "where", "writer", "!", "=", "value"], "question": "What are the titles of the books whose writer is not \"Elaine Lee\"?", "question_toks": ["What", "are", "the", "titles", "of", "the", "books", "whose", "writer", "is", "not", "``", "Elaine", "Lee", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Elaine Lee\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4600", "db_id": "entertainment_awards", "query": "select name from artwork where type != \"program talent show\"", "query_toks": ["SELECT", "Name", "FROM", "artwork", "WHERE", "TYPE", "!", "=", "``", "Program", "Talent", "Show", "''"], "query_toks_no_value": ["select", "name", "from", "artwork", "where", "type", "!", "=", "value"], "question": "List the name of artworks whose type is not \"Program Talent Show\".", "question_toks": ["List", "the", "name", "of", "artworks", "whose", "type", "is", "not", "``", "Program", "Talent", "Show", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"Program Talent Show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6951", "db_id": "architecture", "query": "select name from mill where location != 'donceel'", "query_toks": ["SELECT", "name", "FROM", "mill", "WHERE", "LOCATION", "!", "=", "'Donceel", "'"], "query_toks_no_value": ["select", "name", "from", "mill", "where", "location", "!", "=", "value"], "question": "What are the names of the mills which are not located in 'Donceel'?", "question_toks": ["What", "are", "the", "names", "of", "the", "mills", "which", "are", "not", "located", "in", "'Donceel", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], "\"Donceel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3728", "db_id": "program_share", "query": "select name from channel where owner != 'cctv'", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "!", "=", "'CCTV", "'"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "!", "=", "value"], "question": "Find the names of channels that are not owned by CCTV.", "question_toks": ["Find", "the", "names", "of", "channels", "that", "are", "not", "owned", "by", "CCTV", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"CCTV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3729", "db_id": "program_share", "query": "select name from channel where owner != 'cctv'", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "!", "=", "'CCTV", "'"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "!", "=", "value"], "question": "Which channels are not owned by CCTV? Give me the channel names.", "question_toks": ["Which", "channels", "are", "not", "owned", "by", "CCTV", "?", "Give", "me", "the", "channel", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"CCTV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0943", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme where product != 'heme'", "query_toks": ["SELECT", "name", "FROM", "enzyme", "WHERE", "product", "!", "=", "'Heme", "'"], "query_toks_no_value": ["select", "name", "from", "enzyme", "where", "product", "!", "=", "value"], "question": "What are the names of enzymes who does not produce 'Heme'?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "who", "does", "not", "produce", "'Heme", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"Heme\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3760", "db_id": "program_share", "query": "select name from program where origin != 'beijing'", "query_toks": ["SELECT", "name", "FROM", "program", "WHERE", "origin", "!", "=", "'Beijing", "'"], "query_toks_no_value": ["select", "name", "from", "program", "where", "origin", "!", "=", "value"], "question": "find the names of programs whose origin is not in Beijing.", "question_toks": ["find", "the", "names", "of", "programs", "whose", "origin", "is", "not", "in", "Beijing", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Beijing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3761", "db_id": "program_share", "query": "select name from program where origin != 'beijing'", "query_toks": ["SELECT", "name", "FROM", "program", "WHERE", "origin", "!", "=", "'Beijing", "'"], "query_toks_no_value": ["select", "name", "from", "program", "where", "origin", "!", "=", "value"], "question": "Which programs' origins are not \"Beijing\"? Give me the program names.", "question_toks": ["Which", "programs", "'", "origins", "are", "not", "``", "Beijing", "''", "?", "Give", "me", "the", "program", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Beijing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1114", "db_id": "climbing", "query": "select name from climber where country != \"switzerland\"", "query_toks": ["SELECT", "Name", "FROM", "climber", "WHERE", "Country", "!", "=", "``", "Switzerland", "''"], "query_toks_no_value": ["select", "name", "from", "climber", "where", "country", "!", "=", "value"], "question": "List the names of climbers whose country is not Switzerland.", "question_toks": ["List", "the", "names", "of", "climbers", "whose", "country", "is", "not", "Switzerland", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Switzerland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1115", "db_id": "climbing", "query": "select name from climber where country != \"switzerland\"", "query_toks": ["SELECT", "Name", "FROM", "climber", "WHERE", "Country", "!", "=", "``", "Switzerland", "''"], "query_toks_no_value": ["select", "name", "from", "climber", "where", "country", "!", "=", "value"], "question": "What are the names of climbers who are not from the country of Switzerland?", "question_toks": ["What", "are", "the", "names", "of", "climbers", "who", "are", "not", "from", "the", "country", "of", "Switzerland", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Switzerland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0005", "db_id": "department_management", "query": "select name from head where born_state != 'california'", "query_toks": ["SELECT", "name", "FROM", "head", "WHERE", "born_state", "!", "=", "'California", "'"], "query_toks_no_value": ["select", "name", "from", "head", "where", "born_state", "!", "=", "value"], "question": "What are the names of the heads who are born outside the California state?", "question_toks": ["What", "are", "the", "names", "of", "the", "heads", "who", "are", "born", "outside", "the", "California", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"California\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6372", "db_id": "flight_company", "query": "select name from airport where country != 'iceland'", "query_toks": ["SELECT", "name", "FROM", "airport", "WHERE", "country", "!", "=", "'Iceland", "'"], "query_toks_no_value": ["select", "name", "from", "airport", "where", "country", "!", "=", "value"], "question": "What are the names of the airports which are not in the country 'Iceland'?", "question_toks": ["What", "are", "the", "names", "of", "the", "airports", "which", "are", "not", "in", "the", "country", "'Iceland", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Iceland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2239", "db_id": "machine_repair", "query": "select name from technician where team != \"nyy\"", "query_toks": ["SELECT", "Name", "FROM", "technician", "WHERE", "Team", "!", "=", "``", "NYY", "''"], "query_toks_no_value": ["select", "name", "from", "technician", "where", "team", "!", "=", "value"], "question": "List the name of technicians whose team is not \"NYY\".", "question_toks": ["List", "the", "name", "of", "technicians", "whose", "team", "is", "not", "``", "NYY", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"NYY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2240", "db_id": "machine_repair", "query": "select name from technician where team != \"nyy\"", "query_toks": ["SELECT", "Name", "FROM", "technician", "WHERE", "Team", "!", "=", "``", "NYY", "''"], "query_toks_no_value": ["select", "name", "from", "technician", "where", "team", "!", "=", "value"], "question": "What is the name of the technician whose team is not 'NYY'?", "question_toks": ["What", "is", "the", "name", "of", "the", "technician", "whose", "team", "is", "not", "'NYY", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"NYY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0387", "db_id": "course_teach", "query": "select name from teacher where hometown != \"little lever urban district\"", "query_toks": ["select", "name", "from", "teacher", "where", "hometown", "!=", "\"little lever urban district\""], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "hometown", "!", "=", "value"], "question": "List the name of teachers whose hometown is not `` Little Lever Urban District '' .", "question_toks": ["List", "the", "name", "of", "teachers", "whose", "hometown", "is", "not", "``", "Little", "Lever", "Urban", "District", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 7, false], null], "\"little lever urban district\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0388", "db_id": "course_teach", "query": "select name from teacher where hometown != \"little lever urban district\"", "query_toks": ["select", "name", "from", "teacher", "where", "hometown", "!=", "\"little lever urban district\""], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "hometown", "!", "=", "value"], "question": "What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "whose", "hometown", "is", "not", "``", "Little", "Lever", "Urban", "District", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 7, false], null], "\"little lever urban district\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4004", "db_id": "ship_mission", "query": "select name from ship where nationality != \"united states\"", "query_toks": ["SELECT", "Name", "FROM", "ship", "WHERE", "Nationality", "!", "=", "``", "United", "States", "''"], "query_toks_no_value": ["select", "name", "from", "ship", "where", "nationality", "!", "=", "value"], "question": "List the name of ships whose nationality is not \"United States\".", "question_toks": ["List", "the", "name", "of", "ships", "whose", "nationality", "is", "not", "``", "United", "States", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4005", "db_id": "ship_mission", "query": "select name from ship where nationality != \"united states\"", "query_toks": ["SELECT", "Name", "FROM", "ship", "WHERE", "Nationality", "!", "=", "``", "United", "States", "''"], "query_toks_no_value": ["select", "name", "from", "ship", "where", "nationality", "!", "=", "value"], "question": "What are the names of the ships that are not from the United States?", "question_toks": ["What", "are", "the", "names", "of", "the", "ships", "that", "are", "not", "from", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6206", "db_id": "roller_coaster", "query": "select name from country where languages != \"german\"", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Languages", "!", "=", "``", "German", "''"], "query_toks_no_value": ["select", "name", "from", "country", "where", "languages", "!", "=", "value"], "question": "List the names of countries whose language is not \"German\".", "question_toks": ["List", "the", "names", "of", "countries", "whose", "language", "is", "not", "``", "German", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"German\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2492", "db_id": "movie_1", "query": "select director from movie where director != \"null\" group by director having count(*) = 1", "query_toks": ["SELECT", "director", "FROM", "Movie", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director", "HAVING", "count", "(", "*", ")", "=", "1"], "query_toks_no_value": ["select", "director", "from", "movie", "where", "director", "!", "=", "value", "group", "by", "director", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the names of the directors who made exactly one movie excluding director NULL?", "question_toks": ["What", "are", "the", "names", "of", "the", "directors", "who", "made", "exactly", "one", "movie", "excluding", "director", "NULL", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0681", "db_id": "poker_player", "query": "select name from people where nationality != \"russia\"", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "Nationality", "!", "=", "``", "Russia", "''"], "query_toks_no_value": ["select", "name", "from", "people", "where", "nationality", "!", "=", "value"], "question": "Show names of people whose nationality is not \"Russia\".", "question_toks": ["Show", "names", "of", "people", "whose", "nationality", "is", "not", "``", "Russia", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"Russia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1006", "db_id": "singer", "query": "select name from singer where citizenship != \"france\"", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Citizenship", "!", "=", "``", "France", "''"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "citizenship", "!", "=", "value"], "question": "List the name of singers whose citizenship is not \"France\".", "question_toks": ["List", "the", "name", "of", "singers", "whose", "citizenship", "is", "not", "``", "France", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1007", "db_id": "singer", "query": "select name from singer where citizenship != \"france\"", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Citizenship", "!", "=", "``", "France", "''"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "citizenship", "!", "=", "value"], "question": "What are the names of the singers who are not French citizens?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "who", "are", "not", "French", "citizens", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4938", "db_id": "store_product", "query": "select product from product where product != (select max_page_size from product group by max_page_size order by count(*) desc limit 1)", "query_toks": ["SELECT", "product", "FROM", "product", "WHERE", "product", "!", "=", "(", "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "product", "from", "product", "where", "product", "!", "=", "(", "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "Find the name of the products that are not using the most frequently-used max page size.", "question_toks": ["Find", "the", "name", "of", "the", "products", "that", "are", "not", "using", "the", "most", "frequently-used", "max", "page", "size", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1179", "db_id": "election_representative", "query": "select name from representative where party != \"republican\"", "query_toks": ["SELECT", "Name", "FROM", "Representative", "WHERE", "Party", "!", "=", "``", "Republican", "''"], "query_toks_no_value": ["select", "name", "from", "representative", "where", "party", "!", "=", "value"], "question": "What are the names of representatives whose party is not \"Republican\"?", "question_toks": ["What", "are", "the", "names", "of", "representatives", "whose", "party", "is", "not", "``", "Republican", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"Republican\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0054", "db_id": "farm", "query": "select census_ranking from city where status != \"village\"", "query_toks": ["SELECT", "Census_Ranking", "FROM", "city", "WHERE", "Status", "!", "=", "``", "Village", "''"], "query_toks_no_value": ["select", "census_ranking", "from", "city", "where", "status", "!", "=", "value"], "question": "Show the census ranking of cities whose status are not \"Village\".", "question_toks": ["Show", "the", "census", "ranking", "of", "cities", "whose", "status", "are", "not", "``", "Village", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Village\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0055", "db_id": "farm", "query": "select census_ranking from city where status != \"village\"", "query_toks": ["SELECT", "Census_Ranking", "FROM", "city", "WHERE", "Status", "!", "=", "``", "Village", "''"], "query_toks_no_value": ["select", "census_ranking", "from", "city", "where", "status", "!", "=", "value"], "question": "What are the census rankings of cities that do not have the status \"Village\"?", "question_toks": ["What", "are", "the", "census", "rankings", "of", "cities", "that", "do", "not", "have", "the", "status", "``", "Village", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Village\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0826", "db_id": "orchestra", "query": "select name from conductor where nationality != 'usa'", "query_toks": ["SELECT", "Name", "FROM", "conductor", "WHERE", "Nationality", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "name", "from", "conductor", "where", "nationality", "!", "=", "value"], "question": "What are the names of conductors whose nationalities are not \"USA\"?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "whose", "nationalities", "are", "not", "``", "USA", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0827", "db_id": "orchestra", "query": "select name from conductor where nationality != 'usa'", "query_toks": ["SELECT", "Name", "FROM", "conductor", "WHERE", "Nationality", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "name", "from", "conductor", "where", "nationality", "!", "=", "value"], "question": "Return the names of conductors that do not have the nationality \"USA\".", "question_toks": ["Return", "the", "names", "of", "conductors", "that", "do", "not", "have", "the", "nationality", "``", "USA", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5635", "db_id": "railway", "query": "select max(level) from manager where country != \"australia\t\"", "query_toks": ["SELECT", "max", "(", "LEVEL", ")", "FROM", "manager", "WHERE", "Country", "!", "=", "``", "Australia", "''"], "query_toks_no_value": ["select", "max", "(", "level", ")", "from", "manager", "where", "country", "!", "=", "value"], "question": "What is the maximum level of managers in countries that are not \"Australia\"?", "question_toks": ["What", "is", "the", "maximum", "level", "of", "managers", "in", "countries", "that", "are", "not", "``", "Australia", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 19, false], null]]]], "where": [[false, 7, [0, [0, 16, false], null], "\"Australia\t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0782", "db_id": "world_1", "query": "select code from country where governmentform != \"republic\" except select countrycode from countrylanguage where language = \"english\"", "query_toks": ["SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "!", "=", "``", "Republic", "''", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''"], "query_toks_no_value": ["select", "code", "from", "country", "where", "governmentform", "!", "=", "value", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value"], "question": "What are the codes of the countries that do not speak English and whose government forms are not Republic?", "question_toks": ["What", "are", "the", "codes", "of", "the", "countries", "that", "do", "not", "speak", "English", "and", "whose", "government", "forms", "are", "not", "Republic", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"Republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0783", "db_id": "world_1", "query": "select code from country where governmentform != \"republic\" except select countrycode from countrylanguage where language = \"english\"", "query_toks": ["SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "!", "=", "``", "Republic", "''", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''"], "query_toks_no_value": ["select", "code", "from", "country", "where", "governmentform", "!", "=", "value", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value"], "question": "Return the codes of countries that do not speak English and do not have Republics for governments.", "question_toks": ["Return", "the", "codes", "of", "countries", "that", "do", "not", "speak", "English", "and", "do", "not", "have", "Republics", "for", "governments", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"Republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1324", "db_id": "college_2", "query": "select count(*) from classroom where building != 'lamberton'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "!", "=", "'Lamberton", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "classroom", "where", "building", "!", "=", "value"], "question": "Count the number of rooms that are not in the Lamberton building.", "question_toks": ["Count", "the", "number", "of", "rooms", "that", "are", "not", "in", "the", "Lamberton", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 7, [0, [0, 1, false], null], "\"Lamberton\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4547", "db_id": "company_office", "query": "select name from companies where headquarters != 'usa'", "query_toks": ["SELECT", "name", "FROM", "Companies", "WHERE", "Headquarters", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "name", "from", "companies", "where", "headquarters", "!", "=", "value"], "question": "What are the names of companies whose headquarters are not \"USA\"?", "question_toks": ["What", "are", "the", "names", "of", "companies", "whose", "headquarters", "are", "not", "``", "USA", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4548", "db_id": "company_office", "query": "select name from companies where headquarters != 'usa'", "query_toks": ["SELECT", "name", "FROM", "Companies", "WHERE", "Headquarters", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "name", "from", "companies", "where", "headquarters", "!", "=", "value"], "question": "Find the names of the companies whose headquarters are not located in \"USA\".", "question_toks": ["Find", "the", "names", "of", "the", "companies", "whose", "headquarters", "are", "not", "located", "in", "``", "USA", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5732", "db_id": "dorm_1", "query": "select fname , lname from student where major != (select major from student group by major order by count(*) desc limit 1)", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "major", "!", "=", "(", "SELECT", "major", "FROM", "student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "major", "!", "=", "(", "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "Find the first and last name of students who are not in the largest major.", "question_toks": ["Find", "the", "first", "and", "last", "name", "of", "students", "who", "are", "not", "in", "the", "largest", "major", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5733", "db_id": "dorm_1", "query": "select fname , lname from student where major != (select major from student group by major order by count(*) desc limit 1)", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "major", "!", "=", "(", "SELECT", "major", "FROM", "student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "major", "!", "=", "(", "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What is the first and last name of the students who are not in the largest major?", "question_toks": ["What", "is", "the", "first", "and", "last", "name", "of", "the", "students", "who", "are", "not", "in", "the", "largest", "major", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0020", "db_id": "farm", "query": "select hosts from farm_competition where theme != 'aliens'", "query_toks": ["SELECT", "Hosts", "FROM", "farm_competition", "WHERE", "Theme", "!", "=", "'Aliens", "'"], "query_toks_no_value": ["select", "hosts", "from", "farm_competition", "where", "theme", "!", "=", "value"], "question": "What are the hosts of competitions whose theme is not \"Aliens\"?", "question_toks": ["What", "are", "the", "hosts", "of", "competitions", "whose", "theme", "is", "not", "``", "Aliens", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"Aliens\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0021", "db_id": "farm", "query": "select hosts from farm_competition where theme != 'aliens'", "query_toks": ["SELECT", "Hosts", "FROM", "farm_competition", "WHERE", "Theme", "!", "=", "'Aliens", "'"], "query_toks_no_value": ["select", "hosts", "from", "farm_competition", "where", "theme", "!", "=", "value"], "question": "Return the hosts of competitions for which the theme is not Aliens?", "question_toks": ["Return", "the", "hosts", "of", "competitions", "for", "which", "the", "theme", "is", "not", "Aliens", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"Aliens\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0248", "db_id": "musical", "query": "select distinct nominee from musical where award != \"tony award\"", "query_toks": ["SELECT", "DISTINCT", "Nominee", "FROM", "musical", "WHERE", "Award", "!", "=", "``", "Tony", "Award", "''"], "query_toks_no_value": ["select", "distinct", "nominee", "from", "musical", "where", "award", "!", "=", "value"], "question": "What are the distinct nominees of the musicals with the award that is not \"Tony Award\"?", "question_toks": ["What", "are", "the", "distinct", "nominees", "of", "the", "musicals", "with", "the", "award", "that", "is", "not", "``", "Tony", "Award", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"Tony Award\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0249", "db_id": "musical", "query": "select distinct nominee from musical where award != \"tony award\"", "query_toks": ["SELECT", "DISTINCT", "Nominee", "FROM", "musical", "WHERE", "Award", "!", "=", "``", "Tony", "Award", "''"], "query_toks_no_value": ["select", "distinct", "nominee", "from", "musical", "where", "award", "!", "=", "value"], "question": "Return the different nominees of musicals that have an award that is not the Tony Award.", "question_toks": ["Return", "the", "different", "nominees", "of", "musicals", "that", "have", "an", "award", "that", "is", "not", "the", "Tony", "Award", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"Tony Award\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4866", "db_id": "school_player", "query": "select enrollment from school where denomination != \"catholic\"", "query_toks": ["SELECT", "Enrollment", "FROM", "school", "WHERE", "Denomination", "!", "=", "``", "Catholic", "''"], "query_toks_no_value": ["select", "enrollment", "from", "school", "where", "denomination", "!", "=", "value"], "question": "What are the enrollments of schools whose denomination is not \"Catholic\"?", "question_toks": ["What", "are", "the", "enrollments", "of", "schools", "whose", "denomination", "is", "not", "``", "Catholic", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Catholic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4867", "db_id": "school_player", "query": "select enrollment from school where denomination != \"catholic\"", "query_toks": ["SELECT", "Enrollment", "FROM", "school", "WHERE", "Denomination", "!", "=", "``", "Catholic", "''"], "query_toks_no_value": ["select", "enrollment", "from", "school", "where", "denomination", "!", "=", "value"], "question": "List the enrollment for each school that does not have \"Catholic\" as denomination.", "question_toks": ["List", "the", "enrollment", "for", "each", "school", "that", "does", "not", "have", "``", "Catholic", "''", "as", "denomination", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Catholic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ALL", "NEGATION_WITH_ANY_ALL", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0983", "db_id": "university_basketball", "query": "select founded from university where affiliation != 'public' order by founded desc limit 1", "query_toks": ["SELECT", "founded", "FROM", "university", "WHERE", "affiliation", "!", "=", "'Public", "'", "ORDER", "BY", "founded", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "founded", "from", "university", "where", "affiliation", "!", "=", "value", "order", "by", "founded", "desc", "limit", "value"], "question": "Find the founded year of the newest non public school.", "question_toks": ["Find", "the", "founded", "year", "of", "the", "newest", "non", "public", "school", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 7, [0, [0, 17, false], null], "\"Public\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 16, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0984", "db_id": "university_basketball", "query": "select founded from university where affiliation != 'public' order by founded desc limit 1", "query_toks": ["SELECT", "founded", "FROM", "university", "WHERE", "affiliation", "!", "=", "'Public", "'", "ORDER", "BY", "founded", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "founded", "from", "university", "where", "affiliation", "!", "=", "value", "order", "by", "founded", "desc", "limit", "value"], "question": "What is the founded year of the non public school that was founded most recently?", "question_toks": ["What", "is", "the", "founded", "year", "of", "the", "non", "public", "school", "that", "was", "founded", "most", "recently", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 7, [0, [0, 17, false], null], "\"Public\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 16, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5054", "db_id": "device", "query": "select carrier from device where software_platform != 'android'", "query_toks": ["SELECT", "Carrier", "FROM", "device", "WHERE", "Software_Platform", "!", "=", "'Android", "'"], "query_toks_no_value": ["select", "carrier", "from", "device", "where", "software_platform", "!", "=", "value"], "question": "What are the carriers of devices whose software platforms are not \"Android\"?", "question_toks": ["What", "are", "the", "carriers", "of", "devices", "whose", "software", "platforms", "are", "not", "``", "Android", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Android\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5055", "db_id": "device", "query": "select carrier from device where software_platform != 'android'", "query_toks": ["SELECT", "Carrier", "FROM", "device", "WHERE", "Software_Platform", "!", "=", "'Android", "'"], "query_toks_no_value": ["select", "carrier", "from", "device", "where", "software_platform", "!", "=", "value"], "question": "Return the device carriers that do not have Android as their software platform.", "question_toks": ["Return", "the", "device", "carriers", "that", "do", "not", "have", "Android", "as", "their", "software", "platform", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Android\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5716", "db_id": "dorm_1", "query": "select fname , lname from student where city_code != 'hkg' order by age", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "city_code", "!", "=", "'HKG", "'", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "city_code", "!", "=", "value", "order", "by", "age"], "question": "List the first and last name of students who are not living in the city with code HKG, and sorted the results by their ages.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "students", "who", "are", "not", "living", "in", "the", "city", "with", "code", "HKG", ",", "and", "sorted", "the", "results", "by", "their", "ages", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"HKG\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4896", "db_id": "school_player", "query": "select nickname from school_details where division != \"division 1\"", "query_toks": ["SELECT", "Nickname", "FROM", "school_details", "WHERE", "Division", "!", "=", "``", "Division", "1", "''"], "query_toks_no_value": ["select", "nickname", "from", "school_details", "where", "division", "!", "=", "value"], "question": "Show the nicknames of schools that are not in division 1.", "question_toks": ["Show", "the", "nicknames", "of", "schools", "that", "are", "not", "in", "division", "1", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 16, false], null], "\"Division 1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4897", "db_id": "school_player", "query": "select nickname from school_details where division != \"division 1\"", "query_toks": ["SELECT", "Nickname", "FROM", "school_details", "WHERE", "Division", "!", "=", "``", "Division", "1", "''"], "query_toks_no_value": ["select", "nickname", "from", "school_details", "where", "division", "!", "=", "value"], "question": "What are the nicknames of schools whose division is not 1?", "question_toks": ["What", "are", "the", "nicknames", "of", "schools", "whose", "division", "is", "not", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 16, false], null], "\"Division 1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1656", "db_id": "theme_gallery", "query": "select name , year_join from artist where country != 'united states'", "query_toks": ["SELECT", "name", ",", "year_join", "FROM", "artist", "WHERE", "country", "!", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "name", ",", "year_join", "from", "artist", "where", "country", "!", "=", "value"], "question": "What are the names and year of joining for artists that do not have the country \"United States\"?", "question_toks": ["What", "are", "the", "names", "and", "year", "of", "joining", "for", "artists", "that", "do", "not", "have", "the", "country", "``", "United", "States", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1850", "db_id": "wrestler", "query": "select distinct reign from wrestler where location != \"tokyo , japan\"", "query_toks": ["SELECT", "DISTINCT", "Reign", "FROM", "wrestler", "WHERE", "LOCATION", "!", "=", "``", "Tokyo", ",", "Japan", "''"], "query_toks_no_value": ["select", "distinct", "reign", "from", "wrestler", "where", "location", "!", "=", "value"], "question": "What are the distinct reigns of wrestlers whose location is not \"Tokyo,Japan\" ?", "question_toks": ["What", "are", "the", "distinct", "reigns", "of", "wrestlers", "whose", "location", "is", "not", "``", "Tokyo", ",", "Japan", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Tokyo , Japan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1851", "db_id": "wrestler", "query": "select distinct reign from wrestler where location != \"tokyo , japan\"", "query_toks": ["SELECT", "DISTINCT", "Reign", "FROM", "wrestler", "WHERE", "LOCATION", "!", "=", "``", "Tokyo", ",", "Japan", "''"], "query_toks_no_value": ["select", "distinct", "reign", "from", "wrestler", "where", "location", "!", "=", "value"], "question": "Give the different reigns of wrestlers who are not located in Tokyo, Japan.", "question_toks": ["Give", "the", "different", "reigns", "of", "wrestlers", "who", "are", "not", "located", "in", "Tokyo", ",", "Japan", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Tokyo , Japan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6135", "db_id": "customers_and_addresses", "query": "select customer_name from customers where payment_method != 'cash'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "!", "=", "'Cash", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "where", "payment_method", "!", "=", "value"], "question": "Find the name of customers who did not pay with Cash.", "question_toks": ["Find", "the", "name", "of", "customers", "who", "did", "not", "pay", "with", "Cash", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"Cash\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6136", "db_id": "customers_and_addresses", "query": "select customer_name from customers where payment_method != 'cash'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "!", "=", "'Cash", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "where", "payment_method", "!", "=", "value"], "question": "What is the name of customers who do not use Cash as payment method.", "question_toks": ["What", "is", "the", "name", "of", "customers", "who", "do", "not", "use", "Cash", "as", "payment", "method", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"Cash\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0560", "db_id": "student_transcripts_tracking", "query": "select first_name from students where current_address_id != permanent_address_id", "query_toks": ["SELECT", "first_name", "FROM", "Students", "WHERE", "current_address_id", "!", "=", "permanent_address_id"], "query_toks_no_value": ["select", "first_name", "from", "students", "where", "current_address_id", "!", "=", "permanent_address_id"], "question": "What is the first name of the student whose permanent address is different from his or her current one?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "student", "whose", "permanent", "address", "is", "different", "from", "his", "or", "her", "current", "one", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 7, [0, [0, 33, false], null], [0, 34, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0497", "db_id": "battle_death", "query": "select name , result from battle where bulgarian_commander != 'boril'", "query_toks": ["SELECT", "name", ",", "RESULT", "FROM", "battle", "WHERE", "bulgarian_commander", "!", "=", "'Boril", "'"], "query_toks_no_value": ["select", "name", ",", "result", "from", "battle", "where", "bulgarian_commander", "!", "=", "value"], "question": "What are the name and results of the battles when the bulgarian commander is not 'Boril'", "question_toks": ["What", "are", "the", "name", "and", "results", "of", "the", "battles", "when", "the", "bulgarian", "commander", "is", "not", "'Boril", "'"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"Boril\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3433", "db_id": "hr_1", "query": "select salary , manager_id from employees where manager_id != \"null\"", "query_toks": ["SELECT", "salary", ",", "manager_id", "FROM", "employees", "WHERE", "manager_id", "!", "=", "``", "null", "''"], "query_toks_no_value": ["select", "salary", ",", "manager_id", "from", "employees", "where", "manager_id", "!", "=", "value"], "question": "Find the salary and manager number for those employees who is working under a manager.", "question_toks": ["Find", "the", "salary", "and", "manager", "number", "for", "those", "employees", "who", "is", "working", "under", "a", "manager", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 23, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3434", "db_id": "hr_1", "query": "select salary , manager_id from employees where manager_id != \"null\"", "query_toks": ["SELECT", "salary", ",", "manager_id", "FROM", "employees", "WHERE", "manager_id", "!", "=", "``", "null", "''"], "query_toks_no_value": ["select", "salary", ",", "manager_id", "from", "employees", "where", "manager_id", "!", "=", "value"], "question": "What are the salaries and manager ids for employees who have managers?", "question_toks": ["What", "are", "the", "salaries", "and", "manager", "ids", "for", "employees", "who", "have", "managers", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 23, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0832", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value"], "question": "What are the maximum and minimum share of performances whose type is not \"Live final\".", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "``", "Live", "final", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"Live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "NEGATION", "_NEGATION_NOT_EQUAL", "MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0833", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value"], "question": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "maximum", "and", "minimum", "shares", "for", "performances", "that", "do", "not", "have", "the", "type", "``", "Live", "final", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"Live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "NEGATION", "_NEGATION_NOT_EQUAL", "MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0167", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107 and events != \"fog\" and events != \"rain\"", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "94107", "AND", "EVENTS", "!", "=", "``", "Fog", "''", "AND", "EVENTS", "!", "=", "``", "Rain", "''"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "zip_code", "=", "value", "and", "events", "!", "=", "value", "and", "events", "!", "=", "value"], "question": "In zip code 94107, on which day neither Fog nor Rain was not observed?", "question_toks": ["In", "zip", "code", "94107", ",", "on", "which", "day", "neither", "Fog", "nor", "Rain", "was", "not", "observed", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null], "and", [false, 7, [0, [0, 44, false], null], "\"Fog\"", null], "and", [false, 7, [0, [0, 44, false], null], "\"Rain\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0168", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107 and events != \"fog\" and events != \"rain\"", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "94107", "AND", "EVENTS", "!", "=", "``", "Fog", "''", "AND", "EVENTS", "!", "=", "``", "Rain", "''"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "zip_code", "=", "value", "and", "events", "!", "=", "value", "and", "events", "!", "=", "value"], "question": "On which day has it neither been foggy nor rained in the zip code of 94107?", "question_toks": ["On", "which", "day", "has", "it", "neither", "been", "foggy", "nor", "rained", "in", "the", "zip", "code", "of", "94107", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null], "and", [false, 7, [0, [0, 44, false], null], "\"Fog\"", null], "and", [false, 7, [0, [0, 44, false], null], "\"Rain\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1722", "db_id": "riding_club", "query": "select player_name , residence from player where occupation != \"researcher\"", "query_toks": ["SELECT", "Player_name", ",", "residence", "FROM", "player", "WHERE", "Occupation", "!", "=", "``", "Researcher", "''"], "query_toks_no_value": ["select", "player_name", ",", "residence", "from", "player", "where", "occupation", "!", "=", "value"], "question": "List the name and residence for players whose occupation is not \"Researcher\".", "question_toks": ["List", "the", "name", "and", "residence", "for", "players", "whose", "occupation", "is", "not", "``", "Researcher", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Researcher\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3345", "db_id": "sports_competition", "query": "select distinct year from competition where competition_type != \"tournament\"", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "competition", "WHERE", "Competition_type", "!", "=", "``", "Tournament", "''"], "query_toks_no_value": ["select", "distinct", "year", "from", "competition", "where", "competition_type", "!", "=", "value"], "question": "What are the distinct years in which the competitions type is not \"Tournament\"?", "question_toks": ["What", "are", "the", "distinct", "years", "in", "which", "the", "competitions", "type", "is", "not", "``", "Tournament", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 21, false], null], "\"Tournament\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3716", "db_id": "mountain_photos", "query": "select name , height , prominence from mountain where range != 'aberdare range'", "query_toks": ["SELECT", "name", ",", "height", ",", "prominence", "FROM", "mountain", "WHERE", "range", "!", "=", "'Aberdare", "Range", "'"], "query_toks_no_value": ["select", "name", ",", "height", ",", "prominence", "from", "mountain", "where", "range", "!", "=", "value"], "question": "What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?", "question_toks": ["What", "are", "the", "name", ",", "height", "and", "prominence", "of", "mountains", "which", "do", "not", "belong", "to", "the", "range", "'Aberdare", "Range", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Aberdare Range\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0780", "db_id": "world_1", "query": "select distinct countrycode from countrylanguage where language != \"english\"", "query_toks": ["SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "!", "=", "``", "English", "''"], "query_toks_no_value": ["select", "distinct", "countrycode", "from", "countrylanguage", "where", "language", "!", "=", "value"], "question": "What are the country codes of countries where people use languages other than English?", "question_toks": ["What", "are", "the", "country", "codes", "of", "countries", "where", "people", "use", "languages", "other", "than", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0781", "db_id": "world_1", "query": "select distinct countrycode from countrylanguage where language != \"english\"", "query_toks": ["SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "!", "=", "``", "English", "''"], "query_toks_no_value": ["select", "distinct", "countrycode", "from", "countrylanguage", "where", "language", "!", "=", "value"], "question": "Give the country codes for countries in which people speak langauges that are not English.", "question_toks": ["Give", "the", "country", "codes", "for", "countries", "in", "which", "people", "speak", "langauges", "that", "are", "not", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2536", "db_id": "county_public_safety", "query": "select distinct police_force from county_public_safety where location != \"east\"", "query_toks": ["SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "!", "=", "``", "East", "''"], "query_toks_no_value": ["select", "distinct", "police_force", "from", "county_public_safety", "where", "location", "!", "=", "value"], "question": "List the distinct police forces of counties whose location is not on east side.", "question_toks": ["List", "the", "distinct", "police", "forces", "of", "counties", "whose", "location", "is", "not", "on", "east", "side", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"East\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2537", "db_id": "county_public_safety", "query": "select distinct police_force from county_public_safety where location != \"east\"", "query_toks": ["SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "!", "=", "``", "East", "''"], "query_toks_no_value": ["select", "distinct", "police_force", "from", "county_public_safety", "where", "location", "!", "=", "value"], "question": "What are the different police forces of counties that are not located in the East?", "question_toks": ["What", "are", "the", "different", "police", "forces", "of", "counties", "that", "are", "not", "located", "in", "the", "East", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"East\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0639", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel where language != 'english'", "query_toks": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel", "WHERE", "LANGUAGE", "!", "=", "'English", "'"], "query_toks_no_value": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel", "where", "language", "!", "=", "value"], "question": "find the pixel aspect ratio and nation of the tv channels that do not use English.", "question_toks": ["find", "the", "pixel", "aspect", "ratio", "and", "nation", "of", "the", "tv", "channels", "that", "do", "not", "use", "English", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "NEGATION", "_NEGATION_NOT_EQUAL", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1831", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator where connection != 'broadband'", "query_toks": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator", "WHERE", "CONNECTION", "!", "=", "'Broadband", "'"], "query_toks_no_value": ["select", "name", ",", "operating_system", "from", "web_client_accelerator", "where", "connection", "!", "=", "value"], "question": "What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?", "question_toks": ["What", "are", "the", "name", "and", "os", "of", "web", "client", "accelerators", "that", "do", "not", "work", "with", "only", "a", "'Broadband", "'", "type", "connection", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Broadband\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4553", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies where industry != \"banking\"", "query_toks": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!", "=", "``", "Banking", "''"], "query_toks_no_value": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!", "=", "value"], "question": "What are the maximum and minimum sales of the companies whose industries are not \"Banking\".", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "whose", "industries", "are", "not", "``", "Banking", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4554", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies where industry != \"banking\"", "query_toks": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!", "=", "``", "Banking", "''"], "query_toks_no_value": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!", "=", "value"], "question": "Find the maximum and minimum sales of the companies that are not in the \"Banking\" industry.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "that", "are", "not", "in", "the", "``", "Banking", "''", "industry", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1279", "db_id": "game_injury", "query": "select player , number_of_matches , source from injury_accident where injury != 'knee problem'", "query_toks": ["SELECT", "player", ",", "number_of_matches", ",", "SOURCE", "FROM", "injury_accident", "WHERE", "injury", "!", "=", "'Knee", "problem", "'"], "query_toks_no_value": ["select", "player", ",", "number_of_matches", ",", "source", "from", "injury_accident", "where", "injury", "!", "=", "value"], "question": "What are the player name, number of matches, and information source for players who do not suffer from injury of 'Knee problem'?", "question_toks": ["What", "are", "the", "player", "name", ",", "number", "of", "matches", ",", "and", "information", "source", "for", "players", "who", "do", "not", "suffer", "from", "injury", "of", "'Knee", "problem", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 18, false], null], "\"Knee problem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0165", "db_id": "bike_1", "query": "select count(*) from trip as t1 join station as t2 on t1.end_station_id = t2.id where t2.city != \"san francisco\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.end_station_id", "=", "T2.id", "WHERE", "T2.city", "!", "=", "``", "San", "Francisco", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id", "where", "t2", ".", "city", "!", "=", "value"], "question": "Count the number of trips that did not end in San Francisco city.", "question_toks": ["Count", "the", "number", "of", "trips", "that", "did", "not", "end", "in", "San", "Francisco", "city", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1777", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid where t1.name != 'brown'", "query_toks": ["SELECT", "sum", "(", "T2.balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "!", "=", "'Brown", "'"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "!", "=", "value"], "question": "What is the total balance of savings accounts not belonging to someone with the name Brown?", "question_toks": ["What", "is", "the", "total", "balance", "of", "savings", "accounts", "not", "belonging", "to", "someone", "with", "the", "name", "Brown", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], "\"Brown\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1748", "db_id": "gymnast", "query": "select t2.name from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t2.hometown != \"santo domingo\"", "query_toks": ["SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T2.Hometown", "!", "=", "``", "Santo", "Domingo", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t2", ".", "hometown", "!", "=", "value"], "question": "What are the names of gymnasts whose hometown is not \"Santo Domingo\"?", "question_toks": ["What", "are", "the", "names", "of", "gymnasts", "whose", "hometown", "is", "not", "``", "Santo", "Domingo", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], "\"Santo Domingo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1749", "db_id": "gymnast", "query": "select t2.name from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t2.hometown != \"santo domingo\"", "query_toks": ["SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T2.Hometown", "!", "=", "``", "Santo", "Domingo", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t2", ".", "hometown", "!", "=", "value"], "question": "Return the names of gymnasts who did not grow up in Santo Domingo.", "question_toks": ["Return", "the", "names", "of", "gymnasts", "who", "did", "not", "grow", "up", "in", "Santo", "Domingo", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], "\"Santo Domingo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2310", "db_id": "perpetrator", "query": "select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id where t2.country != \"china\"", "query_toks": ["SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Country", "!", "=", "``", "China", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "country", "!", "=", "value"], "question": "What are the names of perpetrators whose country is not \"China\"?", "question_toks": ["What", "are", "the", "names", "of", "perpetrators", "whose", "country", "is", "not", "``", "China", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"China\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2275", "db_id": "entrepreneur", "query": "select t2.name from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id where t1.investor != \"rachel elnaugh\"", "query_toks": ["SELECT", "T2.Name", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Investor", "!", "=", "``", "Rachel", "Elnaugh", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "investor", "!", "=", "value"], "question": "What are the names of entrepreneurs whose investor is not \"Rachel Elnaugh\"?", "question_toks": ["What", "are", "the", "names", "of", "entrepreneurs", "whose", "investor", "is", "not", "``", "Rachel", "Elnaugh", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Rachel Elnaugh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2276", "db_id": "entrepreneur", "query": "select t2.name from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id where t1.investor != \"rachel elnaugh\"", "query_toks": ["SELECT", "T2.Name", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Investor", "!", "=", "``", "Rachel", "Elnaugh", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "investor", "!", "=", "value"], "question": "Return the names of entrepreneurs do no not have the investor Rachel Elnaugh.", "question_toks": ["Return", "the", "names", "of", "entrepreneurs", "do", "no", "not", "have", "the", "investor", "Rachel", "Elnaugh", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Rachel Elnaugh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2067", "db_id": "party_people", "query": "select t1.member_name from member as t1 join party as t2 on t1.party_id = t2.party_id where t2.party_name != \"progress party\"", "query_toks": ["SELECT", "T1.member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "WHERE", "T2.Party_name", "!", "=", "``", "Progress", "Party", "''"], "query_toks_no_value": ["select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "where", "t2", ".", "party_name", "!", "=", "value"], "question": "Show member names that are not in the Progress Party.", "question_toks": ["Show", "member", "names", "that", "are", "not", "in", "the", "Progress", "Party", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 7, [0, [0, 12, false], null], "\"Progress Party\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2068", "db_id": "party_people", "query": "select t1.member_name from member as t1 join party as t2 on t1.party_id = t2.party_id where t2.party_name != \"progress party\"", "query_toks": ["SELECT", "T1.member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "WHERE", "T2.Party_name", "!", "=", "``", "Progress", "Party", "''"], "query_toks_no_value": ["select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "where", "t2", ".", "party_name", "!", "=", "value"], "question": "Which member names corresponding to members who are not in the Progress Party?", "question_toks": ["Which", "member", "names", "corresponding", "to", "members", "who", "are", "not", "in", "the", "Progress", "Party", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 7, [0, [0, 12, false], null], "\"Progress Party\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4791", "db_id": "department_store", "query": "select customer_id , customer_name from customers where customer_address like \"%wy%\" and payment_method_code != \"credit card\"", "query_toks": ["SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "``", "%", "WY", "%", "''", "AND", "payment_method_code", "!", "=", "``", "Credit", "Card", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "value", "and", "payment_method_code", "!", "=", "value"], "question": "Find the id and name of customers whose address contains WY state and do not use credit card for payment.", "question_toks": ["Find", "the", "id", "and", "name", "of", "customers", "whose", "address", "contains", "WY", "state", "and", "do", "not", "use", "credit", "card", "for", "payment", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%WY%\"", null], "and", [false, 7, [0, [0, 12, false], null], "\"Credit Card\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4792", "db_id": "department_store", "query": "select customer_id , customer_name from customers where customer_address like \"%wy%\" and payment_method_code != \"credit card\"", "query_toks": ["SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "``", "%", "WY", "%", "''", "AND", "payment_method_code", "!", "=", "``", "Credit", "Card", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "value", "and", "payment_method_code", "!", "=", "value"], "question": "What are the ids and names of customers with addressed that contain WY and who do not use a credit card for payment?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "customers", "with", "addressed", "that", "contain", "WY", "and", "who", "do", "not", "use", "a", "credit", "card", "for", "payment", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%WY%\"", null], "and", [false, 7, [0, [0, 12, false], null], "\"Credit Card\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4619", "db_id": "entertainment_awards", "query": "select year from festival_detail where location = 'united states' intersect select year from festival_detail where location != 'united states'", "query_toks": ["SELECT", "YEAR", "FROM", "festival_detail", "WHERE", "LOCATION", "=", "'United", "States", "'", "INTERSECT", "SELECT", "YEAR", "FROM", "festival_detail", "WHERE", "LOCATION", "!", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "year", "from", "festival_detail", "where", "location", "=", "value", "intersect", "select", "year", "from", "festival_detail", "where", "location", "!", "=", "value"], "question": "In which year are there festivals both inside the 'United States' and outside the 'United States'?", "question_toks": ["In", "which", "year", "are", "there", "festivals", "both", "inside", "the", "'United", "States", "'", "and", "outside", "the", "'United", "States", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0427", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain where state_name != \"alaska\" );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", "WHERE", "state_name", "!", "=", "``", "alaska", "''", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", "where", "state_name", "!", "=", "value", ")"], "question": "which is the highest peak not in alaska", "question_toks": ["which", "is", "the", "highest", "peak", "not", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 25, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4078", "db_id": "student_1", "query": "select distinct t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 3 and t2.firstname != \"covin\" and t2.lastname != \"jerome\"", "query_toks": ["SELECT", "DISTINCT", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "3", "AND", "T2.firstname", "!", "=", "``", "COVIN", "''", "AND", "T2.lastname", "!", "=", "``", "JEROME", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "and", "t2", ".", "firstname", "!", "=", "value", "and", "t2", ".", "lastname", "!", "=", "value"], "question": "Find the last names of the students in third grade that are not taught by COVIN JEROME.", "question_toks": ["Find", "the", "last", "names", "of", "the", "students", "in", "third", "grade", "that", "are", "not", "taught", "by", "COVIN", "JEROME", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 3.0, null], "and", [false, 7, [0, [0, 6, false], null], "\"COVIN\"", null], "and", [false, 7, [0, [0, 5, false], null], "\"JEROME\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4079", "db_id": "student_1", "query": "select distinct t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 3 and t2.firstname != \"covin\" and t2.lastname != \"jerome\"", "query_toks": ["SELECT", "DISTINCT", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "3", "AND", "T2.firstname", "!", "=", "``", "COVIN", "''", "AND", "T2.lastname", "!", "=", "``", "JEROME", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "and", "t2", ".", "firstname", "!", "=", "value", "and", "t2", ".", "lastname", "!", "=", "value"], "question": "Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.", "question_toks": ["Which", "students", "in", "third", "grade", "are", "not", "taught", "by", "teacher", "COVIN", "JEROME", "?", "Give", "me", "the", "last", "names", "of", "the", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 3.0, null], "and", [false, 7, [0, [0, 6, false], null], "\"COVIN\"", null], "and", [false, 7, [0, [0, 5, false], null], "\"JEROME\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3502", "db_id": "hr_1", "query": "select first_name , last_name , hire_date from employees where department_id = ( select department_id from employees where first_name = \"clara\") and first_name != \"clara\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "Clara", "''", ")", "AND", "first_name", "!", "=", "``", "Clara", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", ")", "and", "first_name", "!", "=", "value"], "question": "What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara?", "question_toks": ["What", "are", "the", "full", "names", "and", "hire", "dates", "for", "employees", "in", "the", "same", "department", "as", "someone", "with", "the", "first", "name", "Clara", ",", "not", "including", "Clara", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 7, [0, [0, 15, false], null], "\"Clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1040", "db_id": "phone_1", "query": "select distinct t2.hardware_model_name from screen_mode as t1 join phone as t2 on t1.graphics_mode = t2.screen_mode where t2.company_name = \"nokia corporation\" and t1.type != \"text\";", "query_toks": ["SELECT", "DISTINCT", "T2.Hardware_Model_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Graphics_mode", "=", "T2.screen_mode", "WHERE", "t2.Company_name", "=", "``", "Nokia", "Corporation", "''", "AND", "T1.Type", "!", "=", "``", "Text", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "hardware_model_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "company_name", "=", "value", "and", "t1", ".", "type", "!", "=", "value"], "question": "List the hardware model name for the phons that were produced by \"Nokia Corporation\" but whose screen mode type is not Text.", "question_toks": ["List", "the", "hardware", "model", "name", "for", "the", "phons", "that", "were", "produced", "by", "``", "Nokia", "Corporation", "''", "but", "whose", "screen", "mode", "type", "is", "not", "Text", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 21, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Nokia Corporation\"", null], "and", [false, 7, [0, [0, 14, false], null], "\"Text\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL", "NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3327", "db_id": "college_1", "query": "select t2.emp_fname , t1.prof_office from professor as t1 join employee as t2 on t1.emp_num = t2.emp_num join department as t3 on t1.dept_code = t3.dept_code where t3.dept_name = 'history' and t1.prof_high_degree != 'ph.d.'", "query_toks": ["SELECT", "T2.emp_fname", ",", "T1.prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "AND", "T1.prof_high_degree", "!", "=", "'Ph.D", ".", "'"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "and", "t1", ".", "prof_high_degree", "!", "=", "value"], "question": "Find the first name and office of history professor who did not get a Ph.D. degree.", "question_toks": ["Find", "the", "first", "name", "and", "office", "of", "history", "professor", "who", "did", "not", "get", "a", "Ph.D.", "degree", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"History\"", null], "and", [false, 7, [0, [0, 31, false], null], "\"Ph.D.\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3328", "db_id": "college_1", "query": "select t2.emp_fname , t1.prof_office from professor as t1 join employee as t2 on t1.emp_num = t2.emp_num join department as t3 on t1.dept_code = t3.dept_code where t3.dept_name = 'history' and t1.prof_high_degree != 'ph.d.'", "query_toks": ["SELECT", "T2.emp_fname", ",", "T1.prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "AND", "T1.prof_high_degree", "!", "=", "'Ph.D", ".", "'"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "and", "t1", ".", "prof_high_degree", "!", "=", "value"], "question": "What are the first names and offices of history professors who don't have Ph.D.s?", "question_toks": ["What", "are", "the", "first", "names", "and", "offices", "of", "history", "professors", "who", "do", "n't", "have", "Ph.D.s", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"History\"", null], "and", [false, 7, [0, [0, 31, false], null], "\"Ph.D.\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2520", "db_id": "movie_1", "query": "select rid from rating except select rid from rating where stars = 4", "query_toks": ["SELECT", "rID", "FROM", "Rating", "EXCEPT", "SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "=", "4"], "query_toks_no_value": ["select", "rid", "from", "rating", "except", "select", "rid", "from", "rating", "where", "stars", "=", "value"], "question": "find the ids of reviewers who did not give 4 star.", "question_toks": ["find", "the", "ids", "of", "reviewers", "who", "did", "not", "give", "4", "star", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0773", "db_id": "race_track", "query": "select name from track except select t2.name from race as t1 join track as t2 on t1.track_id = t2.track_id where t1.class = 'gt'", "query_toks": ["SELECT", "name", "FROM", "track", "EXCEPT", "SELECT", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "WHERE", "T1.class", "=", "'GT", "'"], "query_toks_no_value": ["select", "name", "from", "track", "except", "select", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "where", "t1", ".", "class", "=", "value"], "question": "What are the names for tracks without a race in class 'GT'.", "question_toks": ["What", "are", "the", "names", "for", "tracks", "without", "a", "race", "in", "class", "'GT", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"GT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0774", "db_id": "race_track", "query": "select name from track except select t2.name from race as t1 join track as t2 on t1.track_id = t2.track_id where t1.class = 'gt'", "query_toks": ["SELECT", "name", "FROM", "track", "EXCEPT", "SELECT", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "WHERE", "T1.class", "=", "'GT", "'"], "query_toks_no_value": ["select", "name", "from", "track", "except", "select", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "where", "t1", ".", "class", "=", "value"], "question": "Give the names of tracks that do not have a race in the class 'GT'.", "question_toks": ["Give", "the", "names", "of", "tracks", "that", "do", "not", "have", "a", "race", "in", "the", "class", "'GT", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"GT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2723", "db_id": "storm_record", "query": "select name from storm except select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id having count(*) >= 2", "query_toks": ["SELECT", "name", "FROM", "storm", "EXCEPT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "name", "from", "storm", "except", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of storms that did not affect two or more regions?", "question_toks": ["What", "are", "the", "names", "of", "storms", "that", "did", "not", "affect", "two", "or", "more", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4152", "db_id": "film_rank", "query": "select studio from film except select studio from film where director = \"walter hill\"", "query_toks": ["SELECT", "Studio", "FROM", "film", "EXCEPT", "SELECT", "Studio", "FROM", "film", "WHERE", "Director", "=", "``", "Walter", "Hill", "''"], "query_toks_no_value": ["select", "studio", "from", "film", "except", "select", "studio", "from", "film", "where", "director", "=", "value"], "question": "Show the studios that have not produced films with director \"Walter Hill\".", "question_toks": ["Show", "the", "studios", "that", "have", "not", "produced", "films", "with", "director", "``", "Walter", "Hill", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Walter Hill\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4448", "db_id": "network_2", "query": "select name from person except select t2.name from person as t1 join personfriend as t2 on t1.name = t2.friend where t1.job = 'student'", "query_toks": ["SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.job", "=", "'student", "'"], "query_toks_no_value": ["select", "name", "from", "person", "except", "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "job", "=", "value"], "question": "Find the name of the person who has no student friends.", "question_toks": ["Find", "the", "name", "of", "the", "person", "who", "has", "no", "student", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4449", "db_id": "network_2", "query": "select name from person except select t2.name from person as t1 join personfriend as t2 on t1.name = t2.friend where t1.job = 'student'", "query_toks": ["SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.job", "=", "'student", "'"], "query_toks_no_value": ["select", "name", "from", "person", "except", "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "job", "=", "value"], "question": "What are the names of the people who have no friends who are students?", "question_toks": ["What", "are", "the", "names", "of", "the", "people", "who", "have", "no", "friends", "who", "are", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1682", "db_id": "theme_gallery", "query": "select name from artist except select t2.name from exhibition as t1 join artist as t2 on t1.artist_id = t2.artist_id where t1.year = 2004", "query_toks": ["SELECT", "name", "FROM", "artist", "EXCEPT", "SELECT", "T2.name", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "WHERE", "T1.year", "=", "2004"], "query_toks_no_value": ["select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "year", "=", "value"], "question": "What are the names of artists who did not have an exhibition in 2004?", "question_toks": ["What", "are", "the", "names", "of", "artists", "who", "did", "not", "have", "an", "exhibition", "in", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 2004.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3990", "db_id": "hospital_1", "query": "select name from patient except select t1.name from patient as t1 join prescribes as t2 on t2.patient = t1.ssn join medication as t3 on t2.medication = t3.code where t3.name = 'procrastin-x'", "query_toks": ["SELECT", "name", "FROM", "patient", "EXCEPT", "SELECT", "T1.name", "FROM", "patient", "AS", "T1", "JOIN", "Prescribes", "AS", "T2", "ON", "T2.Patient", "=", "T1.SSN", "JOIN", "Medication", "AS", "T3", "ON", "T2.Medication", "=", "T3.Code", "WHERE", "T3.name", "=", "'Procrastin-X", "'"], "query_toks_no_value": ["select", "name", "from", "patient", "except", "select", "t1", ".", "name", "from", "patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t2", ".", "patient", "=", "t1", ".", "ssn", "join", "medication", "as", "t3", "on", "t2", ".", "medication", "=", "t3", ".", "code", "where", "t3", ".", "name", "=", "value"], "question": "Find the names of patients who are not using the medication of Procrastin-X.", "question_toks": ["Find", "the", "names", "of", "patients", "who", "are", "not", "using", "the", "medication", "of", "Procrastin-X", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 37, false], null], "\"Procrastin-X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3991", "db_id": "hospital_1", "query": "select name from patient except select t1.name from patient as t1 join prescribes as t2 on t2.patient = t1.ssn join medication as t3 on t2.medication = t3.code where t3.name = 'procrastin-x'", "query_toks": ["SELECT", "name", "FROM", "patient", "EXCEPT", "SELECT", "T1.name", "FROM", "patient", "AS", "T1", "JOIN", "Prescribes", "AS", "T2", "ON", "T2.Patient", "=", "T1.SSN", "JOIN", "Medication", "AS", "T3", "ON", "T2.Medication", "=", "T3.Code", "WHERE", "T3.name", "=", "'Procrastin-X", "'"], "query_toks_no_value": ["select", "name", "from", "patient", "except", "select", "t1", ".", "name", "from", "patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t2", ".", "patient", "=", "t1", ".", "ssn", "join", "medication", "as", "t3", "on", "t2", ".", "medication", "=", "t3", ".", "code", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of patients who are not taking the medication of Procrastin-X.", "question_toks": ["What", "are", "the", "names", "of", "patients", "who", "are", "not", "taking", "the", "medication", "of", "Procrastin-X", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 37, false], null], "\"Procrastin-X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3752", "db_id": "program_share", "query": "select name from program except select t1.name from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"morning\"", "query_toks": ["SELECT", "name", "FROM", "program", "EXCEPT", "SELECT", "t1.name", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''"], "query_toks_no_value": ["select", "name", "from", "program", "except", "select", "t1", ".", "name", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value"], "question": "Find the names of programs that are never broadcasted in the morning.", "question_toks": ["Find", "the", "names", "of", "programs", "that", "are", "never", "broadcasted", "in", "the", "morning", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Morning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3753", "db_id": "program_share", "query": "select name from program except select t1.name from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"morning\"", "query_toks": ["SELECT", "name", "FROM", "program", "EXCEPT", "SELECT", "t1.name", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''"], "query_toks_no_value": ["select", "name", "from", "program", "except", "select", "t1", ".", "name", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value"], "question": "Which programs are never broadcasted in the morning? Give me the names of the programs.", "question_toks": ["Which", "programs", "are", "never", "broadcasted", "in", "the", "morning", "?", "Give", "me", "the", "names", "of", "the", "programs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Morning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6240", "db_id": "ship_1", "query": "select rank from captain except select rank from captain where class = 'third-rate ship of the line'", "query_toks": ["SELECT", "rank", "FROM", "captain", "EXCEPT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Third-rate", "ship", "of", "the", "line", "'"], "query_toks_no_value": ["select", "rank", "from", "captain", "except", "select", "rank", "from", "captain", "where", "class", "=", "value"], "question": "Find the captain rank that has no captain in Third-rate ship of the line class.", "question_toks": ["Find", "the", "captain", "rank", "that", "has", "no", "captain", "in", "Third-rate", "ship", "of", "the", "line", "class", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Third-rate ship of the line\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6241", "db_id": "ship_1", "query": "select rank from captain except select rank from captain where class = 'third-rate ship of the line'", "query_toks": ["SELECT", "rank", "FROM", "captain", "EXCEPT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Third-rate", "ship", "of", "the", "line", "'"], "query_toks_no_value": ["select", "rank", "from", "captain", "except", "select", "rank", "from", "captain", "where", "class", "=", "value"], "question": "What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?", "question_toks": ["What", "are", "the", "ranks", "of", "captains", "that", "have", "no", "captain", "that", "are", "in", "the", "Third-rate", "ship", "of", "the", "line", "class", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Third-rate ship of the line\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1443", "db_id": "college_2", "query": "select id from instructor except select id from teaches", "query_toks": ["SELECT", "id", "FROM", "instructor", "EXCEPT", "SELECT", "id", "FROM", "teaches"], "query_toks_no_value": ["select", "id", "from", "instructor", "except", "select", "id", "from", "teaches"], "question": "What are the ids of instructors who didnt' teach?", "question_toks": ["What", "are", "the", "ids", "of", "instructors", "who", "didnt", "'", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6035", "db_id": "game_1", "query": "select stuid from student except select stuid from plays_games", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Plays_games"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "plays_games"], "question": "Show ids of students who don't play video game.", "question_toks": ["Show", "ids", "of", "students", "who", "do", "n't", "play", "video", "game", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1921", "db_id": "protein_institute", "query": "select name from building except select t1.name from building as t1 join institution as t2 on t1.building_id = t2.building_id where t2.founded = 2003", "query_toks": ["SELECT", "name", "FROM", "building", "EXCEPT", "SELECT", "T1.name", "FROM", "building", "AS", "T1", "JOIN", "institution", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T2.founded", "=", "2003"], "query_toks_no_value": ["select", "name", "from", "building", "except", "select", "t1", ".", "name", "from", "building", "as", "t1", "join", "institution", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t2", ".", "founded", "=", "value"], "question": "Show the names of buildings except for those having an institution founded in 2003.", "question_toks": ["Show", "the", "names", "of", "buildings", "except", "for", "those", "having", "an", "institution", "founded", "in", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5760", "db_id": "dorm_1", "query": "select dorm_name from dorm except select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'tv lounge'", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value"], "question": "Find the name of dorms that do not have amenity TV Lounge.", "question_toks": ["Find", "the", "name", "of", "dorms", "that", "do", "not", "have", "amenity", "TV", "Lounge", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5761", "db_id": "dorm_1", "query": "select dorm_name from dorm except select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'tv lounge'", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value"], "question": "What are the names of the dorm that does not have a TV Lounge?", "question_toks": ["What", "are", "the", "names", "of", "the", "dorm", "that", "does", "not", "have", "a", "TV", "Lounge", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0895", "db_id": "network_1", "query": "select id from highschooler except select student_id from friend", "query_toks": ["SELECT", "id", "FROM", "Highschooler", "EXCEPT", "SELECT", "student_id", "FROM", "Friend"], "query_toks_no_value": ["select", "id", "from", "highschooler", "except", "select", "student_id", "from", "friend"], "question": "What are the ids of high school students who do not have friends?", "question_toks": ["What", "are", "the", "ids", "of", "high", "school", "students", "who", "do", "not", "have", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6511", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "Find the names of scientists who are not working on the project with the highest hours.", "question_toks": ["Find", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "highest", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["HIDDEN_MAX", "_NEGATION_EXCEPT", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6512", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "What are the names of scientists who are not working on the project with the most hours?", "question_toks": ["What", "are", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "most", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["HIDDEN_MAX", "_NEGATION_EXCEPT", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1419", "db_id": "college_2", "query": "select course_id from course except select course_id from prereq", "query_toks": ["SELECT", "course_id", "FROM", "course", "EXCEPT", "SELECT", "course_id", "FROM", "prereq"], "query_toks_no_value": ["select", "course_id", "from", "course", "except", "select", "course_id", "from", "prereq"], "question": "What are the ids of courses without prerequisites?", "question_toks": ["What", "are", "the", "ids", "of", "courses", "without", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4673", "db_id": "college_3", "query": "select dname from department except select t1.dname from department as t1 join minor_in as t2 on t1.dno = t2.dno", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "EXCEPT", "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MINOR_IN", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO"], "query_toks_no_value": ["select", "dname", "from", "department", "except", "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "minor_in", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno"], "question": "Find the name of the department that has no students minored in?", "question_toks": ["Find", "the", "name", "of", "the", "department", "that", "has", "no", "students", "minored", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4674", "db_id": "college_3", "query": "select dname from department except select t1.dname from department as t1 join minor_in as t2 on t1.dno = t2.dno", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "EXCEPT", "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MINOR_IN", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO"], "query_toks_no_value": ["select", "dname", "from", "department", "except", "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "minor_in", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno"], "question": "What is the name of the department htat has no students minoring in it?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "htat", "has", "no", "students", "minoring", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0858", "db_id": "chinook_1", "query": "select lastname from customer except select t1.lastname from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t2.total > 20", "query_toks": ["SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T2.total", ">", "20"], "query_toks_no_value": ["select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "total", ">", "value"], "question": "What are the last names of customers without invoice totals exceeding 20?", "question_toks": ["What", "are", "the", "last", "names", "of", "customers", "without", "invoice", "totals", "exceeding", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 44, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_EXCEPT", "NEGATION", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0897", "db_id": "network_1", "query": "select name from highschooler except select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", "query_toks": ["SELECT", "name", "FROM", "Highschooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id"], "query_toks_no_value": ["select", "name", "from", "highschooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id"], "question": "What are the names of students who have no friends?", "question_toks": ["What", "are", "the", "names", "of", "students", "who", "have", "no", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3038", "db_id": "loan_1", "query": "select cust_name from customer except select cust_name from customer where acc_type = 'saving'", "query_toks": ["SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'saving", "'"], "query_toks_no_value": ["select", "cust_name", "from", "customer", "except", "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value"], "question": "Find the name of customers who do not have an saving account.", "question_toks": ["Find", "the", "name", "of", "customers", "who", "do", "not", "have", "an", "saving", "account", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"saving\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3039", "db_id": "loan_1", "query": "select cust_name from customer except select cust_name from customer where acc_type = 'saving'", "query_toks": ["SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'saving", "'"], "query_toks_no_value": ["select", "cust_name", "from", "customer", "except", "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value"], "question": "What are the names of customers who do not have saving accounts?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "do", "not", "have", "saving", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"saving\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3040", "db_id": "loan_1", "query": "select cust_name from customer except select t1.cust_name from customer as t1 join loan as t2 on t1.cust_id = t2.cust_id where t2.loan_type = 'mortgages'", "query_toks": ["SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "T2.loan_type", "=", "'Mortgages", "'"], "query_toks_no_value": ["select", "cust_name", "from", "customer", "except", "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "t2", ".", "loan_type", "=", "value"], "question": "Find the name of customers who do not have a loan with a type of Mortgages.", "question_toks": ["Find", "the", "name", "of", "customers", "who", "do", "not", "have", "a", "loan", "with", "a", "type", "of", "Mortgages", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Mortgages\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3041", "db_id": "loan_1", "query": "select cust_name from customer except select t1.cust_name from customer as t1 join loan as t2 on t1.cust_id = t2.cust_id where t2.loan_type = 'mortgages'", "query_toks": ["SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "T2.loan_type", "=", "'Mortgages", "'"], "query_toks_no_value": ["select", "cust_name", "from", "customer", "except", "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "t2", ".", "loan_type", "=", "value"], "question": "What are the names of customers who have not taken a Mortage loan?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "not", "taken", "a", "Mortage", "loan", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Mortgages\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5318", "db_id": "manufactory_1", "query": "select name from manufacturers except select t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code where t1.name = 'dvd drive'", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "EXCEPT", "SELECT", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T1.name", "=", "'DVD", "drive", "'"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "except", "select", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t1", ".", "name", "=", "value"], "question": "Find the name of companies that do not make DVD drive.", "question_toks": ["Find", "the", "name", "of", "companies", "that", "do", "not", "make", "DVD", "drive", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"DVD drive\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5319", "db_id": "manufactory_1", "query": "select name from manufacturers except select t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code where t1.name = 'dvd drive'", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "EXCEPT", "SELECT", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T1.name", "=", "'DVD", "drive", "'"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "except", "select", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t1", ".", "name", "=", "value"], "question": "What are the names of companies that do not make DVD drives?", "question_toks": ["What", "are", "the", "names", "of", "companies", "that", "do", "not", "make", "DVD", "drives", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"DVD drive\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0636", "db_id": "tvshow", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the countries that are not playing cartoons written by Todd Casey?", "question_toks": ["What", "are", "the", "countries", "that", "are", "not", "playing", "cartoons", "written", "by", "Todd", "Casey", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"Todd Casey\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6981", "db_id": "culture_company", "query": "select publisher from book_club except select publisher from book_club where year = 1989", "query_toks": ["SELECT", "publisher", "FROM", "book_club", "EXCEPT", "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1989"], "query_toks_no_value": ["select", "publisher", "from", "book_club", "except", "select", "publisher", "from", "book_club", "where", "year", "=", "value"], "question": "Which publishers did not publish a book in 1989?", "question_toks": ["Which", "publishers", "did", "not", "publish", "a", "book", "in", "1989", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2022", "db_id": "gas_company", "query": "select headquarters from company except select headquarters from company where main_industry = 'banking'", "query_toks": ["SELECT", "headquarters", "FROM", "company", "EXCEPT", "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'"], "query_toks_no_value": ["select", "headquarters", "from", "company", "except", "select", "headquarters", "from", "company", "where", "main_industry", "=", "value"], "question": "What are the headquarters without companies that are in the banking industry?", "question_toks": ["What", "are", "the", "headquarters", "without", "companies", "that", "are", "in", "the", "banking", "industry", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0173", "db_id": "car_1", "query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country;", "query_toks": ["SELECT", "CountryName", "FROM", "countries", "EXCEPT", "SELECT", "T1.CountryName", "FROM", "countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.countryId", "=", "T2.Country", ";"], "query_toks_no_value": ["select", "countryname", "from", "countries", "except", "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country"], "question": "What are the name of the countries where there is not a single car maker?", "question_toks": ["What", "are", "the", "name", "of", "the", "countries", "where", "there", "is", "not", "a", "single", "car", "maker", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0174", "db_id": "car_1", "query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country;", "query_toks": ["SELECT", "CountryName", "FROM", "countries", "EXCEPT", "SELECT", "T1.CountryName", "FROM", "countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.countryId", "=", "T2.Country", ";"], "query_toks_no_value": ["select", "countryname", "from", "countries", "except", "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country"], "question": "What are the names of the countries with no car makers?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "with", "no", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6457", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents except select document_id from documents_with_expenses", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses"], "query_toks_no_value": ["select", "document_id", "from", "documents", "except", "select", "document_id", "from", "documents_with_expenses"], "question": "What are the ids of documents which don't have expense budgets?", "question_toks": ["What", "are", "the", "ids", "of", "documents", "which", "do", "n't", "have", "expense", "budgets", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6458", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents except select document_id from documents_with_expenses", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses"], "query_toks_no_value": ["select", "document_id", "from", "documents", "except", "select", "document_id", "from", "documents_with_expenses"], "question": "Return the ids of documents that do not have expenses.", "question_toks": ["Return", "the", "ids", "of", "documents", "that", "do", "not", "have", "expenses", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1563", "db_id": "customers_and_invoices", "query": "select customer_id from customers except select customer_id from accounts", "query_toks": ["SELECT", "customer_id", "FROM", "Customers", "EXCEPT", "SELECT", "customer_id", "FROM", "Accounts"], "query_toks_no_value": ["select", "customer_id", "from", "customers", "except", "select", "customer_id", "from", "accounts"], "question": "Show customer ids who don't have an account.", "question_toks": ["Show", "customer", "ids", "who", "do", "n't", "have", "an", "account", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1564", "db_id": "customers_and_invoices", "query": "select customer_id from customers except select customer_id from accounts", "query_toks": ["SELECT", "customer_id", "FROM", "Customers", "EXCEPT", "SELECT", "customer_id", "FROM", "Accounts"], "query_toks_no_value": ["select", "customer_id", "from", "customers", "except", "select", "customer_id", "from", "accounts"], "question": "What are the customer ids for customers who do not have an account?", "question_toks": ["What", "are", "the", "customer", "ids", "for", "customers", "who", "do", "not", "have", "an", "account", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1614", "db_id": "customers_and_invoices", "query": "select product_name from products except select t1.product_name from products as t1 join order_items as t2 on t1.product_id = t2.product_id", "query_toks": ["SELECT", "product_name", "FROM", "Products", "EXCEPT", "SELECT", "T1.product_name", "FROM", "Products", "AS", "T1", "JOIN", "Order_items", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id"], "query_toks_no_value": ["select", "product_name", "from", "products", "except", "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id"], "question": "What are the names of products that have never been ordered?", "question_toks": ["What", "are", "the", "names", "of", "products", "that", "have", "never", "been", "ordered", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 28, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6328", "db_id": "e_government", "query": "select service_name from services except select t1.service_name from services as t1 join party_services as t2 on t1.service_id = t2.service_id", "query_toks": ["SELECT", "service_name", "FROM", "services", "EXCEPT", "SELECT", "t1.service_name", "FROM", "services", "AS", "t1", "JOIN", "party_services", "AS", "t2", "ON", "t1.service_id", "=", "t2.service_id"], "query_toks_no_value": ["select", "service_name", "from", "services", "except", "select", "t1", ".", "service_name", "from", "services", "as", "t1", "join", "party_services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id"], "question": "Find name of the services that has never been used.", "question_toks": ["Find", "name", "of", "the", "services", "that", "has", "never", "been", "used", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 48, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6329", "db_id": "e_government", "query": "select service_name from services except select t1.service_name from services as t1 join party_services as t2 on t1.service_id = t2.service_id", "query_toks": ["SELECT", "service_name", "FROM", "services", "EXCEPT", "SELECT", "t1.service_name", "FROM", "services", "AS", "t1", "JOIN", "party_services", "AS", "t2", "ON", "t1.service_id", "=", "t2.service_id"], "query_toks_no_value": ["select", "service_name", "from", "services", "except", "select", "t1", ".", "service_name", "from", "services", "as", "t1", "join", "party_services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id"], "question": "What are the names of the services that have never been used?", "question_toks": ["What", "are", "the", "names", "of", "the", "services", "that", "have", "never", "been", "used", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 48, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2848", "db_id": "customer_deliveries", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_addresses as t2 on t1.customer_id = t2.customer_id join addresses as t3 on t2.address_id = t3.address_id where t3.state_province_county = 'california'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t3.state_province_county", "=", "'California", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t3", ".", "state_province_county", "=", "value"], "question": "Find the names of customers who are not living in the state of California.", "question_toks": ["Find", "the", "names", "of", "customers", "who", "are", "not", "living", "in", "the", "state", "of", "California", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"California\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6137", "db_id": "customers_and_addresses", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id join products as t4 on t3.product_id = t4.product_id where t4.product_details = 'latte'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Latte", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value"], "question": "Find the names of customers who never ordered product Latte.", "question_toks": ["Find", "the", "names", "of", "customers", "who", "never", "ordered", "product", "Latte", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null], "and", [false, 2, [0, [0, 31, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Latte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6138", "db_id": "customers_and_addresses", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id join products as t4 on t3.product_id = t4.product_id where t4.product_details = 'latte'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Latte", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value"], "question": "What are names of customers who never ordered product Latte.", "question_toks": ["What", "are", "names", "of", "customers", "who", "never", "ordered", "product", "Latte", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null], "and", [false, 2, [0, [0, 31, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Latte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6139", "db_id": "customers_and_addresses", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Find the names of customers who never placed an order.", "question_toks": ["Find", "the", "names", "of", "customers", "who", "never", "placed", "an", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6140", "db_id": "customers_and_addresses", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "What are the names of customers who never made an order.", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "never", "made", "an", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0919", "db_id": "insurance_fnol", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Find the names of users who do not have a first notification of loss record.", "question_toks": ["Find", "the", "names", "of", "users", "who", "do", "not", "have", "a", "first", "notification", "of", "loss", "record", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0920", "db_id": "insurance_fnol", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Which customers do not have a first notification of loss record? Give me the customer names.", "question_toks": ["Which", "customers", "do", "not", "have", "a", "first", "notification", "of", "loss", "record", "?", "Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1769", "db_id": "gymnast", "query": "select distinct hometown from people except select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id", "query_toks": ["SELECT", "DISTINCT", "Hometown", "FROM", "people", "EXCEPT", "SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID"], "query_toks_no_value": ["select", "distinct", "hometown", "from", "people", "except", "select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id"], "question": "From which hometowns did no gymnasts come from?", "question_toks": ["From", "which", "hometowns", "did", "no", "gymnasts", "come", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1168", "db_id": "body_builder", "query": "select name , birth_place from people except select t1.name , t1.birth_place from people as t1 join body_builder as t2 on t1.people_id = t2.people_id", "query_toks": ["SELECT", "Name", ",", "birth_place", "FROM", "people", "EXCEPT", "SELECT", "T1.Name", ",", "T1.birth_place", "FROM", "people", "AS", "T1", "JOIN", "body_builder", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id"], "query_toks_no_value": ["select", "name", ",", "birth_place", "from", "people", "except", "select", "t1", ".", "name", ",", "t1", ".", "birth_place", "from", "people", "as", "t1", "join", "body_builder", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "question": "List the names and origins of people who are not body builders.", "question_toks": ["List", "the", "names", "and", "origins", "of", "people", "who", "are", "not", "body", "builders", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1523", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers except select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_details", "FROM", "customers", "EXCEPT", "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "except", "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Find the names of customers who have no policies associated.", "question_toks": ["Find", "the", "names", "of", "customers", "who", "have", "no", "policies", "associated", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0969", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine except select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id join enzyme as t3 on t3.id = t2.enzyme_id where t3.product = 'protoporphyrinogen ix'", "query_toks": ["SELECT", "name", ",", "trade_name", "FROM", "medicine", "EXCEPT", "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "JOIN", "enzyme", "AS", "T3", "ON", "T3.id", "=", "T2.enzyme_id", "WHERE", "T3.product", "=", "'Protoporphyrinogen", "IX", "'"], "query_toks_no_value": ["select", "name", ",", "trade_name", "from", "medicine", "except", "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "join", "enzyme", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "enzyme_id", "where", "t3", ".", "product", "=", "value"], "question": "Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.", "question_toks": ["Show", "the", "medicine", "names", "and", "trade", "names", "that", "can", "not", "interact", "with", "the", "enzyme", "with", "product", "'Heme", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 5, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Protoporphyrinogen IX\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0970", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine except select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id join enzyme as t3 on t3.id = t2.enzyme_id where t3.product = 'protoporphyrinogen ix'", "query_toks": ["SELECT", "name", ",", "trade_name", "FROM", "medicine", "EXCEPT", "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "JOIN", "enzyme", "AS", "T3", "ON", "T3.id", "=", "T2.enzyme_id", "WHERE", "T3.product", "=", "'Protoporphyrinogen", "IX", "'"], "query_toks_no_value": ["select", "name", ",", "trade_name", "from", "medicine", "except", "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "join", "enzyme", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "enzyme_id", "where", "t3", ".", "product", "=", "value"], "question": "What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'?", "question_toks": ["What", "are", "the", "medicine", "and", "trade", "names", "that", "can", "not", "interact", "with", "the", "enzyme", "with", "the", "product", "'Heme", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 5, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Protoporphyrinogen IX\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3725", "db_id": "mountain_photos", "query": "select name , prominence from mountain except select t1.name , t1.prominence from mountain as t1 join photos as t2 on t1.id = t2.mountain_id join camera_lens as t3 on t2.camera_lens_id = t3.id where t3.brand = 'sigma'", "query_toks": ["SELECT", "name", ",", "prominence", "FROM", "mountain", "EXCEPT", "SELECT", "T1.name", ",", "T1.prominence", "FROM", "mountain", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.mountain_id", "JOIN", "camera_lens", "AS", "T3", "ON", "T2.camera_lens_id", "=", "T3.id", "WHERE", "T3.brand", "=", "'Sigma", "'"], "query_toks_no_value": ["select", "name", ",", "prominence", "from", "mountain", "except", "select", "t1", ".", "name", ",", "t1", ".", "prominence", "from", "mountain", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "mountain_id", "join", "camera_lens", "as", "t3", "on", "t2", ".", "camera_lens_id", "=", "t3", ".", "id", "where", "t3", ".", "brand", "=", "value"], "question": "Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.", "question_toks": ["Show", "the", "name", "and", "prominence", "of", "the", "mountains", "whose", "picture", "is", "not", "taken", "by", "a", "lens", "of", "brand", "'Sigma", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Sigma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0778", "db_id": "world_1", "query": "select countrycode from countrylanguage except select countrycode from countrylanguage where language = \"english\"", "query_toks": ["SELECT", "CountryCode", "FROM", "countrylanguage", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''"], "query_toks_no_value": ["select", "countrycode", "from", "countrylanguage", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value"], "question": "What are the country codes for countries that do not speak English?", "question_toks": ["What", "are", "the", "country", "codes", "for", "countries", "that", "do", "not", "speak", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0779", "db_id": "world_1", "query": "select countrycode from countrylanguage except select countrycode from countrylanguage where language = \"english\"", "query_toks": ["SELECT", "CountryCode", "FROM", "countrylanguage", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''"], "query_toks_no_value": ["select", "countrycode", "from", "countrylanguage", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value"], "question": "Return the country codes for countries that do not speak English.", "question_toks": ["Return", "the", "country", "codes", "for", "countries", "that", "do", "not", "speak", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4854", "db_id": "local_govt_and_lot", "query": "select organization_id from organizations except select parent_organization_id from organizations", "query_toks": ["SELECT", "organization_id", "FROM", "organizations", "EXCEPT", "SELECT", "parent_organization_id", "FROM", "organizations"], "query_toks_no_value": ["select", "organization_id", "from", "organizations", "except", "select", "parent_organization_id", "from", "organizations"], "question": "Which organizations are not a parent organization of others? List the organization id.", "question_toks": ["Which", "organizations", "are", "not", "a", "parent", "organization", "of", "others", "?", "List", "the", "organization", "id", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5032", "db_id": "soccer_2", "query": "select cname from tryout where ppos = 'mid' except select cname from tryout where ppos = 'goalie'", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "ppos", "=", "value", "except", "select", "cname", "from", "tryout", "where", "ppos", "=", "value"], "question": "Find the names of schools that have some players in the mid position but not in the goalie position.", "question_toks": ["Find", "the", "names", "of", "schools", "that", "have", "some", "players", "in", "the", "mid", "position", "but", "not", "in", "the", "goalie", "position", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5033", "db_id": "soccer_2", "query": "select cname from tryout where ppos = 'mid' except select cname from tryout where ppos = 'goalie'", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "ppos", "=", "value", "except", "select", "cname", "from", "tryout", "where", "ppos", "=", "value"], "question": "What are the names of the schools with some players in the mid position but no goalies?", "question_toks": ["What", "are", "the", "names", "of", "the", "schools", "with", "some", "players", "in", "the", "mid", "position", "but", "no", "goalies", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3983", "db_id": "hospital_1", "query": "select name from procedures where cost > 1000 except select t3.name from physician as t1 join trained_in as t2 on t1.employeeid = t2.physician join procedures as t3 on t3.code = t2.treatment where t1.name = \"john wen\"", "query_toks": ["SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000", "EXCEPT", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''"], "query_toks_no_value": ["select", "name", "from", "procedures", "where", "cost", ">", "value", "except", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value"], "question": "Among the procedures that cost more than 1000, which were not specialized in by physician John Wen?", "question_toks": ["Among", "the", "procedures", "that", "cost", "more", "than", "1000", ",", "which", "were", "not", "specialized", "in", "by", "physician", "John", "Wen", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"John Wen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6593", "db_id": "wine_1", "query": "select appelation from wine where year > 2008 except select appelation from appellations where area = \"central coast\"", "query_toks": ["SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "2008", "EXCEPT", "SELECT", "Appelation", "FROM", "APPELLATIONS", "WHERE", "Area", "=", "``", "Central", "Coast", "''"], "query_toks_no_value": ["select", "appelation", "from", "wine", "where", "year", ">", "value", "except", "select", "appelation", "from", "appellations", "where", "area", "=", "value"], "question": "Find the appelations that produce wines after the year of 2008 but not in Central Coast area.", "question_toks": ["Find", "the", "appelations", "that", "produce", "wines", "after", "the", "year", "of", "2008", "but", "not", "in", "Central", "Coast", "area", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Central Coast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6594", "db_id": "wine_1", "query": "select appelation from wine where year > 2008 except select appelation from appellations where area = \"central coast\"", "query_toks": ["SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "2008", "EXCEPT", "SELECT", "Appelation", "FROM", "APPELLATIONS", "WHERE", "Area", "=", "``", "Central", "Coast", "''"], "query_toks_no_value": ["select", "appelation", "from", "wine", "where", "year", ">", "value", "except", "select", "appelation", "from", "appellations", "where", "area", "=", "value"], "question": "What are the appelations for wines produced after 2008 but not in the Central Coast area?", "question_toks": ["What", "are", "the", "appelations", "for", "wines", "produced", "after", "2008", "but", "not", "in", "the", "Central", "Coast", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Central Coast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0207", "db_id": "bike_1", "query": "select name from station where city = \"palo alto\" except select end_station_name from trip group by end_station_name having count(*) > 100", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", "EXCEPT", "SELECT", "end_station_name", "FROM", "trip", "GROUP", "BY", "end_station_name", "HAVING", "count", "(", "*", ")", ">", "100"], "query_toks_no_value": ["select", "name", "from", "station", "where", "city", "=", "value", "except", "select", "end_station_name", "from", "trip", "group", "by", "end_station_name", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times?", "question_toks": ["What", "are", "the", "names", "of", "stations", "that", "are", "located", "in", "Palo", "Alto", "city", "but", "have", "never", "been", "the", "ending", "point", "of", "trips", "more", "than", "100", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 100.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0208", "db_id": "bike_1", "query": "select name from station where city = \"palo alto\" except select end_station_name from trip group by end_station_name having count(*) > 100", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", "EXCEPT", "SELECT", "end_station_name", "FROM", "trip", "GROUP", "BY", "end_station_name", "HAVING", "count", "(", "*", ")", ">", "100"], "query_toks_no_value": ["select", "name", "from", "station", "where", "city", "=", "value", "except", "select", "end_station_name", "from", "trip", "group", "by", "end_station_name", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the names of the stations that are located in Palo Alto but have never been the ending point of the trips", "question_toks": ["What", "are", "the", "names", "of", "the", "stations", "that", "are", "located", "in", "Palo", "Alto", "but", "have", "never", "been", "the", "ending", "point", "of", "the", "trips"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 100.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6797", "db_id": "activity_1", "query": "select lname from faculty where rank = 'professor' except select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = 'canoeing' or t3.activity_name = 'kayaking'", "query_toks": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "'Professor", "'", "EXCEPT", "SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'"], "query_toks_no_value": ["select", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value"], "question": "Find the first names of professors who are not playing Canoeing or Kayaking.", "question_toks": ["Find", "the", "first", "names", "of", "professors", "who", "are", "not", "playing", "Canoeing", "or", "Kayaking", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Canoeing\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["OR_IN_NL", "_NEGATION_EXCEPT", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6798", "db_id": "activity_1", "query": "select lname from faculty where rank = 'professor' except select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = 'canoeing' or t3.activity_name = 'kayaking'", "query_toks": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "'Professor", "'", "EXCEPT", "SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'"], "query_toks_no_value": ["select", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value"], "question": "What are the first names of the professors who do not play Canoeing or Kayaking as activities?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "who", "do", "not", "play", "Canoeing", "or", "Kayaking", "as", "activities", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Canoeing\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["OR_IN_NL", "_NEGATION_EXCEPT", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0505", "db_id": "battle_death", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.", "question_toks": ["Show", "names", ",", "results", "and", "bulgarian", "commanders", "of", "the", "battles", "with", "no", "ships", "lost", "in", "the", "'English", "Channel", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"English Channel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0727", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers except select t1.customer_id , t2.customer_first_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id where card_type_code = \"credit\"", "query_toks": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_id", ",", "T2.customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "card_type_code", "=", "``", "Credit", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "value"], "question": "Show the customer ids and firstname without a credit card.", "question_toks": ["Show", "the", "customer", "ids", "and", "firstname", "without", "a", "credit", "card", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Credit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["VALUES_WITHOUT_COLUMNS", "_NEGATION_EXCEPT", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0728", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers except select t1.customer_id , t2.customer_first_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id where card_type_code = \"credit\"", "query_toks": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_id", ",", "T2.customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "card_type_code", "=", "``", "Credit", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "value"], "question": "What are the ids and first names of customers who do not hold a credit card?", "question_toks": ["What", "are", "the", "ids", "and", "first", "names", "of", "customers", "who", "do", "not", "hold", "a", "credit", "card", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Credit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1364", "db_id": "college_2", "query": "select title from course where dept_name = 'statistics' except select title from course where dept_name = 'psychology'", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "EXCEPT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'"], "query_toks_no_value": ["select", "title", "from", "course", "where", "dept_name", "=", "value", "except", "select", "title", "from", "course", "where", "dept_name", "=", "value"], "question": "Find the title of course that is provided by Statistics but not Psychology departments.", "question_toks": ["Find", "the", "title", "of", "course", "that", "is", "provided", "by", "Statistics", "but", "not", "Psychology", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Statistics\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Psychology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1365", "db_id": "college_2", "query": "select title from course where dept_name = 'statistics' except select title from course where dept_name = 'psychology'", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "EXCEPT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'"], "query_toks_no_value": ["select", "title", "from", "course", "where", "dept_name", "=", "value", "except", "select", "title", "from", "course", "where", "dept_name", "=", "value"], "question": "What are the titles of courses that are in the Statistics department but not the Psychology department?", "question_toks": ["What", "are", "the", "titles", "of", "courses", "that", "are", "in", "the", "Statistics", "department", "but", "not", "the", "Psychology", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Statistics\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Psychology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1840", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator except select t1.name , t1.operating_system from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id join browser as t3 on t2.browser_id = t3.id where t3.name = 'opera'", "query_toks": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator", "EXCEPT", "SELECT", "T1.name", ",", "T1.operating_system", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "JOIN", "browser", "AS", "T3", "ON", "T2.browser_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Opera", "'"], "query_toks_no_value": ["select", "name", ",", "operating_system", "from", "web_client_accelerator", "except", "select", "t1", ".", "name", ",", "t1", ".", "operating_system", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "join", "browser", "as", "t3", "on", "t2", ".", "browser_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.", "question_toks": ["Show", "the", "accelerator", "names", "and", "supporting", "operating", "systems", "that", "are", "not", "compatible", "with", "the", "browser", "named", "'Opera", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Opera\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3273", "db_id": "college_1", "query": "select emp_fname from employee where emp_jobcode = 'prof' except select t1.emp_fname from employee as t1 join class as t2 on t1.emp_num = t2.prof_num", "query_toks": ["SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "'PROF", "'", "EXCEPT", "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num"], "query_toks_no_value": ["select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "value", "except", "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num"], "question": "What are the first names of the professors who do not teach a class.", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "who", "do", "not", "teach", "a", "class", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"PROF\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1289", "db_id": "game_injury", "query": "select name , average_attendance , total_attendance from stadium except select t2.name , t2.average_attendance , t2.total_attendance from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id", "query_toks": ["SELECT", "name", ",", "average_attendance", ",", "total_attendance", "FROM", "stadium", "EXCEPT", "SELECT", "T2.name", ",", "T2.average_attendance", ",", "T2.total_attendance", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1.id", "=", "T3.game_id"], "query_toks_no_value": ["select", "name", ",", "average_attendance", ",", "total_attendance", "from", "stadium", "except", "select", "t2", ".", "name", ",", "t2", ".", "average_attendance", ",", "t2", ".", "total_attendance", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id"], "question": "Show the name, average attendance, total attendance for stadiums where no accidents happened.", "question_toks": ["Show", "the", "name", ",", "average", "attendance", ",", "total", "attendance", "for", "stadiums", "where", "no", "accidents", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_EXCEPT", "NEGATION", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6460", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents where document_type_code = \"cv\" except select document_id from documents_with_expenses", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses"], "query_toks_no_value": ["select", "document_id", "from", "documents", "where", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents_with_expenses"], "question": "What are the ids of documents with the type code CV that do not have expenses.", "question_toks": ["What", "are", "the", "ids", "of", "documents", "with", "the", "type", "code", "CV", "that", "do", "not", "have", "expenses", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"CV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3625", "db_id": "music_1", "query": "select distinct artist_name from song where languages = \"english\" except select distinct artist_name from song where rating > 8", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "8"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value"], "question": "Find the names of the artists who have produced English songs but have never received rating higher than 8.", "question_toks": ["Find", "the", "names", "of", "the", "artists", "who", "have", "produced", "English", "songs", "but", "have", "never", "received", "rating", "higher", "than", "8", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3626", "db_id": "music_1", "query": "select distinct artist_name from song where languages = \"english\" except select distinct artist_name from song where rating > 8", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "8"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value"], "question": "What are the names of the different artists that have produced a song in English but have never receieved a rating higher than 8?", "question_toks": ["What", "are", "the", "names", "of", "the", "different", "artists", "that", "have", "produced", "a", "song", "in", "English", "but", "have", "never", "receieved", "a", "rating", "higher", "than", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3627", "db_id": "music_1", "query": "select distinct artist_name from artist where country = \"bangladesh\" except select distinct artist_name from song where rating > 7", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "Bangladesh", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "7"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value"], "question": "Find the names of the artists who are from Bangladesh and have never received rating higher than 7.", "question_toks": ["Find", "the", "names", "of", "the", "artists", "who", "are", "from", "Bangladesh", "and", "have", "never", "received", "rating", "higher", "than", "7", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Bangladesh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 7.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3628", "db_id": "music_1", "query": "select distinct artist_name from artist where country = \"bangladesh\" except select distinct artist_name from song where rating > 7", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "Bangladesh", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "7"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value"], "question": "What are the names of the different artists from Bangladesh who never received a rating higher than a 7?", "question_toks": ["What", "are", "the", "names", "of", "the", "different", "artists", "from", "Bangladesh", "who", "never", "received", "a", "rating", "higher", "than", "a", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Bangladesh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 7.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0926", "db_id": "dog_kennels", "query": "select first_name from professionals union select first_name from owners except select name from dogs", "query_toks": ["SELECT", "first_name", "FROM", "Professionals", "UNION", "SELECT", "first_name", "FROM", "Owners", "EXCEPT", "SELECT", "name", "FROM", "Dogs"], "query_toks_no_value": ["select", "first_name", "from", "professionals", "union", "select", "first_name", "from", "owners", "except", "select", "name", "from", "dogs"], "question": "Which first names are used for professionals or owners but are not used as dog names?", "question_toks": ["Which", "first", "names", "are", "used", "for", "professionals", "or", "owners", "but", "are", "not", "used", "as", "dog", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "except": null}, "tags": ["OR_IN_NL", "_NEGATION_EXCEPT", "NEGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5233", "db_id": "music_2", "query": "select distinct title from vocals as t1 join songs as t2 on t1.songid = t2.songid except select t2.title from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = \"lead\"", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "lead", "''"], "query_toks_no_value": ["select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value"], "question": "What are the names of the songs without a lead vocal?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "without", "a", "lead", "vocal", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"lead\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5264", "db_id": "music_2", "query": "select distinct title from vocals as t1 join songs as t2 on t1.songid = t2.songid except select t2.title from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = \"back\"", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''"], "query_toks_no_value": ["select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value"], "question": "Find the name of songs that does not have a back vocal.", "question_toks": ["Find", "the", "name", "of", "songs", "that", "does", "not", "have", "a", "back", "vocal", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"back\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5265", "db_id": "music_2", "query": "select distinct title from vocals as t1 join songs as t2 on t1.songid = t2.songid except select t2.title from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = \"back\"", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''"], "query_toks_no_value": ["select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value"], "question": "What are the names of the songs that do not have back vocals?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "that", "do", "not", "have", "back", "vocals", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"back\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5159", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.city_town from addresses as t1 join customers as t2 on t1.address_id = t2.address_id except select t1.city_town from addresses as t1 join performers as t2 on t1.address_id = t2.address_id", "query_toks": ["SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "EXCEPT", "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Performers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID"], "query_toks_no_value": ["select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "except", "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "performers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id"], "question": "Which cities have at least one customer but no performer?", "question_toks": ["Which", "cities", "have", "at", "least", "one", "customer", "but", "no", "performer", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5497", "db_id": "voter_2", "query": "select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = president_vote except select distinct lname from student where advisor = \"2192\"", "query_toks": ["SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "LName", "FROM", "STUDENT", "WHERE", "Advisor", "=", "``", "2192", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote", "except", "select", "distinct", "lname", "from", "student", "where", "advisor", "=", "value"], "question": "What are the distinct last names of the students who have president votes but do not have 2192 as the advisor?", "question_toks": ["What", "are", "the", "distinct", "last", "names", "of", "the", "students", "who", "have", "president", "votes", "but", "do", "not", "have", "2192", "as", "the", "advisor", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"2192\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5034", "db_id": "soccer_2", "query": "select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'mid' except select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'goalie'", "query_toks": ["SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value"], "question": "Find the names of states that have some college students playing in the mid position but not in the goalie position.", "question_toks": ["Find", "the", "names", "of", "states", "that", "have", "some", "college", "students", "playing", "in", "the", "mid", "position", "but", "not", "in", "the", "goalie", "position", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2121", "db_id": "cre_Doc_Control_Systems", "query": "select document_id from documents where document_status_code = \"done\" and document_type_code = \"paper\" except select document_id from documents join ref_shipping_agents on documents.shipping_agent_code = ref_shipping_agents.shipping_agent_code where ref_shipping_agents.shipping_agent_name = \"usps\";", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", "AND", "document_type_code", "=", "``", "Paper", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents", "JOIN", "Ref_Shipping_Agents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Ref_Shipping_Agents.shipping_agent_name", "=", "``", "USPS", "''", ";"], "query_toks_no_value": ["select", "document_id", "from", "documents", "where", "document_status_code", "=", "value", "and", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents", "join", "ref_shipping_agents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "ref_shipping_agents.shipping_agent_name", "=", "value"], "question": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.", "question_toks": ["List", "the", "document", "ids", "of", "documents", "with", "the", "status", "done", "and", "type", "Paper", ",", "which", "not", "shipped", "by", "the", "shipping", "agent", "named", "USPS", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"done\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Paper\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"USPS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6292", "db_id": "city_record", "query": "select t1.city from city as t1 join temperature as t2 on t1.city_id = t2.city_id where t2.mar < t2.dec except select t3.city from city as t3 join hosting_city as t4 on t3.city_id = t4.host_city", "query_toks": ["SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Dec", "EXCEPT", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city"], "query_toks_no_value": ["select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "dec", "except", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city"], "question": "Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.", "question_toks": ["Give", "me", "a", "list", "of", "cities", "whose", "temperature", "in", "Mar", "is", "lower", "than", "that", "in", "Dec", "and", "which", "have", "never", "been", "host", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], [0, 24, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6293", "db_id": "city_record", "query": "select t1.city from city as t1 join temperature as t2 on t1.city_id = t2.city_id where t2.mar < t2.dec except select t3.city from city as t3 join hosting_city as t4 on t3.city_id = t4.host_city", "query_toks": ["SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Dec", "EXCEPT", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city"], "query_toks_no_value": ["select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "dec", "except", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city"], "question": "Which cities have lower temperature in March than in Dec and have never served as host cities?", "question_toks": ["Which", "cities", "have", "lower", "temperature", "in", "March", "than", "in", "Dec", "and", "have", "never", "served", "as", "host", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], [0, 24, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5495", "db_id": "voter_2", "query": "select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.vice_president_vote except select distinct fname from student where city_code = \"pit\"", "query_toks": ["SELECT", "DISTINCT", "T1.Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.VICE_PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "city_code", "=", "``", "PIT", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "except", "select", "distinct", "fname", "from", "student", "where", "city_code", "=", "value"], "question": "What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "of", "the", "students", "who", "have", "vice", "president", "votes", "and", "reside", "in", "a", "city", "whose", "city", "code", "is", "not", "PIT", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"PIT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0240", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "except", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"], "question": "Which airlines have departures from CVO but not from APG airports?", "question_toks": ["Which", "airlines", "have", "departures", "from", "CVO", "but", "not", "from", "APG", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"CVO\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_1", "_NEGATION_EXCEPT", "NEGATION", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5037", "db_id": "soccer_2", "query": "select count(*) from (select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'mid' except select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'goalie')", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", ")"], "question": "What is the count of states with college students playing in the mid position but not as goalies?", "question_toks": ["What", "is", "the", "count", "of", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "but", "not", "as", "goalies", "?"], "sql": {"from": {"table_units": [["sql", {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4077", "db_id": "student_1", "query": "select distinct t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 1 except select t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t2.firstname = \"otha\" and t2.lastname = \"moyer\"", "query_toks": ["SELECT", "DISTINCT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "1", "EXCEPT", "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "OTHA", "''", "AND", "T2.lastname", "=", "``", "MOYER", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "except", "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value"], "question": "What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "the", "first-grade", "students", "who", "are", "NOT", "taught", "by", "teacher", "OTHA", "MOYER", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"OTHA\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"MOYER\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0171", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10 except select name from station where city = \"san jose\"", "query_toks": ["SELECT", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value", "except", "select", "name", "from", "station", "where", "city", "=", "value"], "question": "What are names of stations that have average bike availability above 10 and are not located in San Jose city?", "question_toks": ["What", "are", "names", "of", "stations", "that", "have", "average", "bike", "availability", "above", "10", "and", "are", "not", "located", "in", "San", "Jose", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4446", "db_id": "network_2", "query": "select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age > 40) except select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age < 30)", "query_toks": ["SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "EXCEPT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "except", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")"], "question": "Find the name of the person who has friends with age above 40 but not under age 30?", "question_toks": ["Find", "the", "name", "of", "the", "person", "who", "has", "friends", "with", "age", "above", "40", "but", "not", "under", "age", "30", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 4, [0, [0, 2, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4447", "db_id": "network_2", "query": "select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age > 40) except select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age < 30)", "query_toks": ["SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "EXCEPT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "except", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")"], "question": "What are the names of the people who are older 40 but no friends under age 30?", "question_toks": ["What", "are", "the", "names", "of", "the", "people", "who", "are", "older", "40", "but", "no", "friends", "under", "age", "30", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 4, [0, [0, 2, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4790", "db_id": "department_store", "query": "select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.job_title_code = \"sales person\" except select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.job_title_code = \"clerical staff\"", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Sales", "Person", "''", "EXCEPT", "SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Clerical", "Staff", "''"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value", "except", "select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value"], "question": "What are the names and genders of staff who have held the title Sales Person, but never Clerical Staff?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "staff", "who", "have", "held", "the", "title", "Sales", "Person", ",", "but", "never", "Clerical", "Staff", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"Sales Person\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"Clerical Staff\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5704", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'tv lounge' except select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'study room'", "query_toks": ["SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'Study", "Room", "'"], "query_toks_no_value": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value"], "question": "Find the name of dorms which have TV Lounge but no Study Room as amenity.", "question_toks": ["Find", "the", "name", "of", "dorms", "which", "have", "TV", "Lounge", "but", "no", "Study", "Room", "as", "amenity", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Study Room\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5705", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'tv lounge' except select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'study room'", "query_toks": ["SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'Study", "Room", "'"], "query_toks_no_value": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value"], "question": "What is the name of each dorm that has a TV Lounge but no study rooms?", "question_toks": ["What", "is", "the", "name", "of", "each", "dorm", "that", "has", "a", "TV", "Lounge", "but", "no", "study", "rooms", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Study Room\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "_NEGATION_EXCEPT", "NEGATION", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3275", "db_id": "college_1", "query": "select t1.emp_fname from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'history' except select t4.emp_fname from employee as t4 join class as t5 on t4.emp_num = t5.prof_num", "query_toks": ["SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "EXCEPT", "SELECT", "T4.emp_fname", "FROM", "employee", "AS", "T4", "JOIN", "CLASS", "AS", "T5", "ON", "T4.emp_num", "=", "T5.prof_num"], "query_toks_no_value": ["select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "except", "select", "t4", ".", "emp_fname", "from", "employee", "as", "t4", "join", "class", "as", "t5", "on", "t4", ".", "emp_num", "=", "t5", ".", "prof_num"], "question": "What is the first names of the professors from the history department who do not teach a class.", "question_toks": ["What", "is", "the", "first", "names", "of", "the", "professors", "from", "the", "history", "department", "who", "do", "not", "teach", "a", "class", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"History\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2181", "db_id": "formula_1", "query": "select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"australian grand prix\" except select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"chinese grand prix\"", "query_toks": ["SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Australian", "Grand", "Prix", "''", "EXCEPT", "SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Chinese", "Grand", "Prix", "''"], "query_toks_no_value": ["select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "except", "select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value"], "question": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?", "question_toks": ["What", "are", "the", "forenames", "and", "surnames", "of", "drivers", "who", "participated", "in", "the", "races", "named", "Australian", "Grand", "Prix", "but", "not", "the", "races", "named", "Chinese", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Australian Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Chinese Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5396", "db_id": "tracking_software_problems", "query": "select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"rem\" except select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"aut\"", "query_toks": ["SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "rem", "''", "EXCEPT", "SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "aut", "''"], "query_toks_no_value": ["select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value", "except", "select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value"], "question": "Find the first and last name of the staff members who reported problems from the product \"rem\" but not \"aut\"?", "question_toks": ["Find", "the", "first", "and", "last", "name", "of", "the", "staff", "members", "who", "reported", "problems", "from", "the", "product", "``", "rem", "''", "but", "not", "``", "aut", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"rem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"aut\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5397", "db_id": "tracking_software_problems", "query": "select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"rem\" except select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"aut\"", "query_toks": ["SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "rem", "''", "EXCEPT", "SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "aut", "''"], "query_toks_no_value": ["select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value", "except", "select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value"], "question": "Which staff members who reported problems from the product \"rem\" but not \"aut\"? Give me their first and last names.", "question_toks": ["Which", "staff", "members", "who", "reported", "problems", "from", "the", "product", "``", "rem", "''", "but", "not", "``", "aut", "''", "?", "Give", "me", "their", "first", "and", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"rem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"aut\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5965", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\" except select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"rosalind\"", "query_toks": ["SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Alison", "''", "EXCEPT", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Rosalind", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "except", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value"], "question": "What are the names of tourist attraction that Alison visited but Rosalind did not visit?", "question_toks": ["What", "are", "the", "names", "of", "tourist", "attraction", "that", "Alison", "visited", "but", "Rosalind", "did", "not", "visit", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Rosalind\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL", "_NEGATION_EXCEPT", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5966", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\" except select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"rosalind\"", "query_toks": ["SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Alison", "''", "EXCEPT", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Rosalind", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "except", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value"], "question": "Find the the names of the tourist attractions that the tourist named Alison visited but Rosalind did not visit.", "question_toks": ["Find", "the", "the", "names", "of", "the", "tourist", "attractions", "that", "the", "tourist", "named", "Alison", "visited", "but", "Rosalind", "did", "not", "visit", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Rosalind\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL", "_NEGATION_EXCEPT", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5626", "db_id": "swimming", "query": "select name from swimmer where id not in (select swimmer_id from record)", "query_toks": ["SELECT", "name", "FROM", "swimmer", "WHERE", "id", "NOT", "IN", "(", "SELECT", "swimmer_id", "FROM", "record", ")"], "query_toks_no_value": ["select", "name", "from", "swimmer", "where", "id", "not", "in", "(", "select", "swimmer_id", "from", "record", ")"], "question": "Find the names of the swimmers who have no record.", "question_toks": ["Find", "the", "names", "of", "the", "swimmers", "who", "have", "no", "record", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0925", "db_id": "dog_kennels", "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 )", "query_toks": ["select", "name", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", "group", "by", "dog_id", "having", "sum", "(", "cost_of_treatment", ")", ">", "1000", ")"], "query_toks_no_value": ["select", "name", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", "group", "by", "dog_id", "having", "sum", "(", "cost_of_treatment", ")", ">", "value", ")"], "question": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?", "question_toks": ["What", "are", "the", "names", "of", "the", "dogs", "for", "which", "the", "owner", "has", "not", "spend", "more", "than", "1000", "for", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [4, 49, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_NOT_IN", "NEGATION", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0286", "db_id": "employee_hire_evaluation", "query": "select name from shop where shop_id not in (select shop_id from hiring)", "query_toks": ["SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")"], "query_toks_no_value": ["select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")"], "question": "Which shops run with no employees? Find the shop names", "question_toks": ["Which", "shops", "run", "with", "no", "employees", "?", "Find", "the", "shop", "names"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1104", "db_id": "match_season", "query": "select name from team where team_id not in (select team from match_season)", "query_toks": ["SELECT", "Name", "FROM", "team", "WHERE", "Team_id", "NOT", "IN", "(", "SELECT", "Team", "FROM", "match_season", ")"], "query_toks_no_value": ["select", "name", "from", "team", "where", "team_id", "not", "in", "(", "select", "team", "from", "match_season", ")"], "question": "What are the names of teams that do no have match season record?", "question_toks": ["What", "are", "the", "names", "of", "teams", "that", "do", "no", "have", "match", "season", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1105", "db_id": "match_season", "query": "select name from team where team_id not in (select team from match_season)", "query_toks": ["SELECT", "Name", "FROM", "team", "WHERE", "Team_id", "NOT", "IN", "(", "SELECT", "Team", "FROM", "match_season", ")"], "query_toks_no_value": ["select", "name", "from", "team", "where", "team_id", "not", "in", "(", "select", "team", "from", "match_season", ")"], "question": "Return the names of teams that have no match season record.", "question_toks": ["Return", "the", "names", "of", "teams", "that", "have", "no", "match", "season", "record", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0229", "db_id": "book_2", "query": "select title from book where book_id not in (select book_id from publication)", "query_toks": ["SELECT", "Title", "FROM", "book", "WHERE", "Book_ID", "NOT", "IN", "(", "SELECT", "Book_ID", "FROM", "publication", ")"], "query_toks_no_value": ["select", "title", "from", "book", "where", "book_id", "not", "in", "(", "select", "book_id", "from", "publication", ")"], "question": "List the titles of books that are not published.", "question_toks": ["List", "the", "titles", "of", "books", "that", "are", "not", "published", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4147", "db_id": "film_rank", "query": "select title from film where film_id not in (select film_id from film_market_estimation)", "query_toks": ["SELECT", "Title", "FROM", "film", "WHERE", "Film_ID", "NOT", "IN", "(", "SELECT", "Film_ID", "FROM", "film_market_estimation", ")"], "query_toks_no_value": ["select", "title", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", ")"], "question": "What are the titles of films that do not have a film market estimation?", "question_toks": ["What", "are", "the", "titles", "of", "films", "that", "do", "not", "have", "a", "film", "market", "estimation", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6505", "db_id": "scientist_1", "query": "select name from projects where code not in (select project from assignedto)", "query_toks": ["SELECT", "Name", "FROM", "Projects", "WHERE", "Code", "NOT", "IN", "(", "SELECT", "Project", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "name", "from", "projects", "where", "code", "not", "in", "(", "select", "project", "from", "assignedto", ")"], "question": "Select the project names which are not assigned yet.", "question_toks": ["Select", "the", "project", "names", "which", "are", "not", "assigned", "yet", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6506", "db_id": "scientist_1", "query": "select name from projects where code not in (select project from assignedto)", "query_toks": ["SELECT", "Name", "FROM", "Projects", "WHERE", "Code", "NOT", "IN", "(", "SELECT", "Project", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "name", "from", "projects", "where", "code", "not", "in", "(", "select", "project", "from", "assignedto", ")"], "question": "What are the names of projects that have not been assigned?", "question_toks": ["What", "are", "the", "names", "of", "projects", "that", "have", "not", "been", "assigned", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4841", "db_id": "aircraft", "query": "select name from pilot where pilot_id not in (select winning_pilot from match where country = 'australia')", "query_toks": ["SELECT", "name", "FROM", "pilot", "WHERE", "pilot_id", "NOT", "IN", "(", "SELECT", "Winning_Pilot", "FROM", "MATCH", "WHERE", "country", "=", "'Australia", "'", ")"], "query_toks_no_value": ["select", "name", "from", "pilot", "where", "pilot_id", "not", "in", "(", "select", "winning_pilot", "from", "match", "where", "country", "=", "value", ")"], "question": "find the name of pilots who did not win the matches held in the country of Australia.", "question_toks": ["find", "the", "name", "of", "pilots", "who", "did", "not", "win", "the", "matches", "held", "in", "the", "country", "of", "Australia", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Australia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6083", "db_id": "customers_and_addresses", "query": "select city from addresses where city not in ( select distinct t3.city from customers as t1 join customer_addresses as t2 on t1.customer_id = t2.customer_id join addresses as t3 on t2.address_id = t3.address_id)", "query_toks": ["SELECT", "city", "FROM", "addresses", "WHERE", "city", "NOT", "IN", "(", "SELECT", "DISTINCT", "t3.city", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", ")"], "query_toks_no_value": ["select", "city", "from", "addresses", "where", "city", "not", "in", "(", "select", "distinct", "t3", ".", "city", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", ")"], "question": "Find the list of cities that no customer is living in.", "question_toks": ["Find", "the", "list", "of", "cities", "that", "no", "customer", "is", "living", "in", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6084", "db_id": "customers_and_addresses", "query": "select city from addresses where city not in ( select distinct t3.city from customers as t1 join customer_addresses as t2 on t1.customer_id = t2.customer_id join addresses as t3 on t2.address_id = t3.address_id)", "query_toks": ["SELECT", "city", "FROM", "addresses", "WHERE", "city", "NOT", "IN", "(", "SELECT", "DISTINCT", "t3.city", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", ")"], "query_toks_no_value": ["select", "city", "from", "addresses", "where", "city", "not", "in", "(", "select", "distinct", "t3", ".", "city", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", ")"], "question": "What are the cities no customers live in?", "question_toks": ["What", "are", "the", "cities", "no", "customers", "live", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6508", "db_id": "scientist_1", "query": "select name from scientists where ssn not in (select scientist from assignedto)", "query_toks": ["SELECT", "Name", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")"], "question": "What are the names of scientists who have not been assigned a project?", "question_toks": ["What", "are", "the", "names", "of", "scientists", "who", "have", "not", "been", "assigned", "a", "project", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0151", "db_id": "bike_1", "query": "select avg(long) from station where id not in (select station_id from status group by station_id having max(bikes_available) > 10)", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "10", ")"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "value", ")"], "question": "What is the average longitude of stations that never had bike availability more than 10?", "question_toks": ["What", "is", "the", "average", "longitude", "of", "stations", "that", "never", "had", "bike", "availability", "more", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [1, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "_NEGATION_NOT_IN", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2796", "db_id": "election", "query": "select party from party where party_id not in (select party from election)", "query_toks": ["SELECT", "Party", "FROM", "party", "WHERE", "Party_ID", "NOT", "IN", "(", "SELECT", "Party", "FROM", "election", ")"], "query_toks_no_value": ["select", "party", "from", "party", "where", "party_id", "not", "in", "(", "select", "party", "from", "election", ")"], "question": "What are the names of parties that do not have delegates in election?", "question_toks": ["What", "are", "the", "names", "of", "parties", "that", "do", "not", "have", "delegates", "in", "election", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3992", "db_id": "hospital_1", "query": "select count(*) from patient where ssn not in ( select t1.patient from prescribes as t1 join medication as t2 on t1.medication = t2.code where t2.name = 'procrastin-x' )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "patient", "WHERE", "SSN", "NOT", "IN", "(", "SELECT", "T1.patient", "FROM", "Prescribes", "AS", "T1", "JOIN", "Medication", "AS", "T2", "ON", "T1.Medication", "=", "T2.Code", "WHERE", "T2.name", "=", "'Procrastin-X", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "patient", "where", "ssn", "not", "in", "(", "select", "t1", ".", "patient", "from", "prescribes", "as", "t1", "join", "medication", "as", "t2", "on", "t1", ".", "medication", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", ")"], "question": "Find the number of patients who are not using the medication of Procrastin-X.", "question_toks": ["Find", "the", "number", "of", "patients", "who", "are", "not", "using", "the", "medication", "of", "Procrastin-X", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 37, false], null], "\"Procrastin-X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2420", "db_id": "candidate_poll", "query": "select name from people where people_id not in (select people_id from candidate)", "query_toks": ["SELECT", "name", "FROM", "people", "WHERE", "people_id", "NOT", "IN", "(", "SELECT", "people_id", "FROM", "candidate", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "candidate", ")"], "question": "what are the names of people who did not participate in the candidate election.", "question_toks": ["what", "are", "the", "names", "of", "people", "who", "did", "not", "participate", "in", "the", "candidate", "election", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2421", "db_id": "candidate_poll", "query": "select name from people where people_id not in (select people_id from candidate)", "query_toks": ["SELECT", "name", "FROM", "people", "WHERE", "people_id", "NOT", "IN", "(", "SELECT", "people_id", "FROM", "candidate", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "candidate", ")"], "question": "Give the names of people who did not participate in the candidate election.", "question_toks": ["Give", "the", "names", "of", "people", "who", "did", "not", "participate", "in", "the", "candidate", "election", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1506", "db_id": "debate", "query": "select name from people where people_id not in (select affirmative from debate_people)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_id", "NOT", "IN", "(", "SELECT", "Affirmative", "FROM", "debate_people", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "affirmative", "from", "debate_people", ")"], "question": "List the names of people that have not been on the affirmative side of debates.", "question_toks": ["List", "the", "names", "of", "people", "that", "have", "not", "been", "on", "the", "affirmative", "side", "of", "debates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2295", "db_id": "entrepreneur", "query": "select name from people where people_id not in (select people_id from entrepreneur)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "entrepreneur", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "entrepreneur", ")"], "question": "List the names of people that are not entrepreneurs.", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "entrepreneurs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2296", "db_id": "entrepreneur", "query": "select name from people where people_id not in (select people_id from entrepreneur)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "entrepreneur", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "entrepreneur", ")"], "question": "What are the names of people who are not entrepreneurs?", "question_toks": ["What", "are", "the", "names", "of", "people", "who", "are", "not", "entrepreneurs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0422", "db_id": "museum_visit", "query": "select name from museum where museum_id not in (select museum_id from visit)", "query_toks": ["SELECT", "name", "FROM", "museum", "WHERE", "Museum_ID", "NOT", "IN", "(", "SELECT", "museum_id", "FROM", "visit", ")"], "query_toks_no_value": ["select", "name", "from", "museum", "where", "museum_id", "not", "in", "(", "select", "museum_id", "from", "visit", ")"], "question": "What is the name of the museum that had no visitor yet?", "question_toks": ["What", "is", "the", "name", "of", "the", "museum", "that", "had", "no", "visitor", "yet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2319", "db_id": "perpetrator", "query": "select name from people where people_id not in (select people_id from perpetrator)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "perpetrator", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "perpetrator", ")"], "question": "List the names of people that are not perpetrators.", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "perpetrators", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0683", "db_id": "poker_player", "query": "select name from people where people_id not in (select people_id from poker_player)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "poker_player", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "poker_player", ")"], "question": "List the names of people that are not poker players.", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0684", "db_id": "poker_player", "query": "select name from people where people_id not in (select people_id from poker_player)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "poker_player", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "poker_player", ")"], "question": "What are the names of people who do not play poker?", "question_toks": ["What", "are", "the", "names", "of", "people", "who", "do", "not", "play", "poker", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6357", "db_id": "school_bus", "query": "select name from driver where driver_id not in (select driver_id from school_bus)", "query_toks": ["SELECT", "name", "FROM", "driver", "WHERE", "driver_id", "NOT", "IN", "(", "SELECT", "driver_id", "FROM", "school_bus", ")"], "query_toks_no_value": ["select", "name", "from", "driver", "where", "driver_id", "not", "in", "(", "select", "driver_id", "from", "school_bus", ")"], "question": "Show the names of the drivers without a school bus.", "question_toks": ["Show", "the", "names", "of", "the", "drivers", "without", "a", "school", "bus", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1349", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "What are the titles of courses without prerequisites?", "question_toks": ["What", "are", "the", "titles", "of", "courses", "without", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1421", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "What are the names of courses without prerequisites?", "question_toks": ["What", "are", "the", "names", "of", "courses", "without", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5082", "db_id": "device", "query": "select shop_name from shop where shop_id not in (select shop_id from stock)", "query_toks": ["SELECT", "Shop_Name", "FROM", "shop", "WHERE", "Shop_ID", "NOT", "IN", "(", "SELECT", "Shop_ID", "FROM", "stock", ")"], "query_toks_no_value": ["select", "shop_name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "stock", ")"], "question": "List the names of shops that have no devices in stock.", "question_toks": ["List", "the", "names", "of", "shops", "that", "have", "no", "devices", "in", "stock", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0409", "db_id": "course_teach", "query": "select name from teacher where teacher_id not in (select teacher_id from course_arrange)", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Teacher_id", "NOT", "IN", "(", "SELECT", "Teacher_id", "FROM", "course_arrange", ")"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "teacher_id", "not", "in", "(", "select", "teacher_id", "from", "course_arrange", ")"], "question": "List the names of teachers who have not been arranged to teach courses.", "question_toks": ["List", "the", "names", "of", "teachers", "who", "have", "not", "been", "arranged", "to", "teach", "courses", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0410", "db_id": "course_teach", "query": "select name from teacher where teacher_id not in (select teacher_id from course_arrange)", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Teacher_id", "NOT", "IN", "(", "SELECT", "Teacher_id", "FROM", "course_arrange", ")"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "teacher_id", "not", "in", "(", "select", "teacher_id", "from", "course_arrange", ")"], "question": "What are the names of the teachers whose courses have not been arranged?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "whose", "courses", "have", "not", "been", "arranged", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4616", "db_id": "entertainment_awards", "query": "select name from artwork where artwork_id not in (select artwork_id from nomination)", "query_toks": ["SELECT", "Name", "FROM", "Artwork", "WHERE", "Artwork_ID", "NOT", "IN", "(", "SELECT", "Artwork_ID", "FROM", "nomination", ")"], "query_toks_no_value": ["select", "name", "from", "artwork", "where", "artwork_id", "not", "in", "(", "select", "artwork_id", "from", "nomination", ")"], "question": "List the name of artworks that are not nominated.", "question_toks": ["List", "the", "name", "of", "artworks", "that", "are", "not", "nominated", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0268", "db_id": "musical", "query": "select name from musical where musical_id not in (select musical_id from actor)", "query_toks": ["SELECT", "Name", "FROM", "musical", "WHERE", "Musical_ID", "NOT", "IN", "(", "SELECT", "Musical_ID", "FROM", "actor", ")"], "query_toks_no_value": ["select", "name", "from", "musical", "where", "musical_id", "not", "in", "(", "select", "musical_id", "from", "actor", ")"], "question": "List the name of musicals that do not have actors.", "question_toks": ["List", "the", "name", "of", "musicals", "that", "do", "not", "have", "actors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0269", "db_id": "musical", "query": "select name from musical where musical_id not in (select musical_id from actor)", "query_toks": ["SELECT", "Name", "FROM", "musical", "WHERE", "Musical_ID", "NOT", "IN", "(", "SELECT", "Musical_ID", "FROM", "actor", ")"], "query_toks_no_value": ["select", "name", "from", "musical", "where", "musical_id", "not", "in", "(", "select", "musical_id", "from", "actor", ")"], "question": "What are the names of musicals who have no actors?", "question_toks": ["What", "are", "the", "names", "of", "musicals", "who", "have", "no", "actors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0888", "db_id": "chinook_1", "query": "select count(*) from artist where artistid not in(select artistid from album)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "ARTIST", "WHERE", "artistid", "NOT", "IN", "(", "SELECT", "artistid", "FROM", "ALBUM", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "artist", "where", "artistid", "not", "in", "(", "select", "artistid", "from", "album", ")"], "question": "Cound the number of artists who have not released an album.", "question_toks": ["Cound", "the", "number", "of", "artists", "who", "have", "not", "released", "an", "album", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5086", "db_id": "device", "query": "select carrier from device where device_id not in (select device_id from stock)", "query_toks": ["SELECT", "Carrier", "FROM", "device", "WHERE", "Device_ID", "NOT", "IN", "(", "SELECT", "Device_ID", "FROM", "stock", ")"], "query_toks_no_value": ["select", "carrier", "from", "device", "where", "device_id", "not", "in", "(", "select", "device_id", "from", "stock", ")"], "question": "List the carriers of devices that have no devices in stock.", "question_toks": ["List", "the", "carriers", "of", "devices", "that", "have", "no", "devices", "in", "stock", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1143", "db_id": "climbing", "query": "select name from mountain where mountain_id not in (select mountain_id from climber)", "query_toks": ["SELECT", "Name", "FROM", "mountain", "WHERE", "Mountain_ID", "NOT", "IN", "(", "SELECT", "Mountain_ID", "FROM", "climber", ")"], "query_toks_no_value": ["select", "name", "from", "mountain", "where", "mountain_id", "not", "in", "(", "select", "mountain_id", "from", "climber", ")"], "question": "What are the names of countains that no climber has climbed?", "question_toks": ["What", "are", "the", "names", "of", "countains", "that", "no", "climber", "has", "climbed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1347", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "Count the number of courses without prerequisites.", "question_toks": ["Count", "the", "number", "of", "courses", "without", "prerequisites", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_NEGATION_NOT_IN", "NEGATION", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3497", "db_id": "hr_1", "query": "select * from employees where department_id not in (select department_id from departments where manager_id between 100 and 200)", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "department_id", "NOT", "IN", "(", "SELECT", "department_id", "FROM", "departments", "WHERE", "manager_id", "BETWEEN", "100", "AND", "200", ")"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "department_id", "not", "in", "(", "select", "department_id", "from", "departments", "where", "manager_id", "between", "value", "and", "value", ")"], "question": "Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200.", "question_toks": ["Find", "the", "ids", "of", "the", "employees", "who", "does", "not", "work", "in", "those", "departments", "where", "some", "employees", "works", "whose", "manager", "id", "within", "the", "range", "100", "and", "200", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 1, [0, [0, 8, false], null], 100.0, 200.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3498", "db_id": "hr_1", "query": "select * from employees where department_id not in (select department_id from departments where manager_id between 100 and 200)", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "department_id", "NOT", "IN", "(", "SELECT", "department_id", "FROM", "departments", "WHERE", "manager_id", "BETWEEN", "100", "AND", "200", ")"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "department_id", "not", "in", "(", "select", "department_id", "from", "departments", "where", "manager_id", "between", "value", "and", "value", ")"], "question": "What are the ids for employees who do not work in departments with managers that have ids between 100 and 200?", "question_toks": ["What", "are", "the", "ids", "for", "employees", "who", "do", "not", "work", "in", "departments", "with", "managers", "that", "have", "ids", "between", "100", "and", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 1, [0, [0, 8, false], null], 100.0, 200.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2064", "db_id": "party_people", "query": "select party_name from party where party_id not in (select party_id from member)", "query_toks": ["SELECT", "party_name", "FROM", "party", "WHERE", "party_id", "NOT", "IN", "(", "SELECT", "party_id", "FROM", "Member", ")"], "query_toks_no_value": ["select", "party_name", "from", "party", "where", "party_id", "not", "in", "(", "select", "party_id", "from", "member", ")"], "question": "What are the names of parties that have no members?", "question_toks": ["What", "are", "the", "names", "of", "parties", "that", "have", "no", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6265", "db_id": "ship_1", "query": "select name , flag from ship where ship_id not in (select ship_id from captain where rank = 'midshipman')", "query_toks": ["SELECT", "name", ",", "flag", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", "WHERE", "rank", "=", "'Midshipman", "'", ")"], "query_toks_no_value": ["select", "name", ",", "flag", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", "where", "rank", "=", "value", ")"], "question": "What are the names and flags of ships that do not have a captain with the rank of Midshipman?", "question_toks": ["What", "are", "the", "names", "and", "flags", "of", "ships", "that", "do", "not", "have", "a", "captain", "with", "the", "rank", "of", "Midshipman", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Midshipman\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1876", "db_id": "wrestler", "query": "select name from wrestler where wrestler_id not in (select wrestler_id from elimination)", "query_toks": ["SELECT", "Name", "FROM", "wrestler", "WHERE", "Wrestler_ID", "NOT", "IN", "(", "SELECT", "Wrestler_ID", "FROM", "elimination", ")"], "query_toks_no_value": ["select", "name", "from", "wrestler", "where", "wrestler_id", "not", "in", "(", "select", "wrestler_id", "from", "elimination", ")"], "question": "List the names of wrestlers that have not been eliminated.", "question_toks": ["List", "the", "names", "of", "wrestlers", "that", "have", "not", "been", "eliminated", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1877", "db_id": "wrestler", "query": "select name from wrestler where wrestler_id not in (select wrestler_id from elimination)", "query_toks": ["SELECT", "Name", "FROM", "wrestler", "WHERE", "Wrestler_ID", "NOT", "IN", "(", "SELECT", "Wrestler_ID", "FROM", "elimination", ")"], "query_toks_no_value": ["select", "name", "from", "wrestler", "where", "wrestler_id", "not", "in", "(", "select", "wrestler_id", "from", "elimination", ")"], "question": "What are the names of wrestlers who have never been eliminated?", "question_toks": ["What", "are", "the", "names", "of", "wrestlers", "who", "have", "never", "been", "eliminated", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1269", "db_id": "apartment_rentals", "query": "select count(*) from apartments where apt_id not in (select apt_id from apartment_facilities)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")"], "question": "Find the number of apartments that have no facility.", "question_toks": ["Find", "the", "number", "of", "apartments", "that", "have", "no", "facility", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0049", "db_id": "farm", "query": "select official_name from city where city_id not in (select host_city_id from farm_competition)", "query_toks": ["SELECT", "Official_Name", "FROM", "city", "WHERE", "City_ID", "NOT", "IN", "(", "SELECT", "Host_city_ID", "FROM", "farm_competition", ")"], "query_toks_no_value": ["select", "official_name", "from", "city", "where", "city_id", "not", "in", "(", "select", "host_city_id", "from", "farm_competition", ")"], "question": "What are the official names of cities that have not hosted a farm competition?", "question_toks": ["What", "are", "the", "official", "names", "of", "cities", "that", "have", "not", "hosted", "a", "farm", "competition", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0916", "db_id": "network_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "Find the minimum grade of students who have no friends.", "question_toks": ["Find", "the", "minimum", "grade", "of", "students", "who", "have", "no", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0061", "db_id": "pets_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["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", "=", "value", ")"], "question": "Find the major and age of students who do not have a cat pet.", "question_toks": ["Find", "the", "major", "and", "age", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_AND_TO_FILTERS", "NEGATION", "AND_IN_NL", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6261", "db_id": "ship_1", "query": "select name , class from ship where ship_id not in (select ship_id from captain)", "query_toks": ["SELECT", "name", ",", "CLASS", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", ")"], "query_toks_no_value": ["select", "name", ",", "class", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", ")"], "question": "Return the names and classes of ships that do not have a captain?", "question_toks": ["Return", "the", "names", "and", "classes", "of", "ships", "that", "do", "not", "have", "a", "captain", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6595", "db_id": "wine_1", "query": "select avg(price) from wine where appelation not in (select t1.appelation from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t1.county = 'sonoma')", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "wine", "WHERE", "Appelation", "NOT", "IN", "(", "SELECT", "T1.Appelation", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "'Sonoma", "'", ")"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "wine", "where", "appelation", "not", "in", "(", "select", "t1", ".", "appelation", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value", ")"], "question": "Find the average price of wines that are not produced from Sonoma county.", "question_toks": ["Find", "the", "average", "price", "of", "wines", "that", "are", "not", "produced", "from", "Sonoma", "county", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[true, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Sonoma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6596", "db_id": "wine_1", "query": "select avg(price) from wine where appelation not in (select t1.appelation from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t1.county = 'sonoma')", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "wine", "WHERE", "Appelation", "NOT", "IN", "(", "SELECT", "T1.Appelation", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "'Sonoma", "'", ")"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "wine", "where", "appelation", "not", "in", "(", "select", "t1", ".", "appelation", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value", ")"], "question": "What is the average price for wines not produced in Sonoma county?", "question_toks": ["What", "is", "the", "average", "price", "for", "wines", "not", "produced", "in", "Sonoma", "county", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[true, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Sonoma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0204", "db_id": "geo", "query": "select state_name from state where state_name not in ( select state_name from border_info );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "state_name", "NOT", "IN", "(", "SELECT", "state_name", "FROM", "border_info", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "state_name", "not", "in", "(", "select", "state_name", "from", "border_info", ")"], "question": "name the states which have no surrounding states", "question_toks": ["name", "the", "states", "which", "have", "no", "surrounding", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1628", "db_id": "customers_and_invoices", "query": "select count(*) from products where product_id not in ( select product_id from order_items )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "Order_items", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "order_items", ")"], "question": "Count the number of products that were never ordered.", "question_toks": ["Count", "the", "number", "of", "products", "that", "were", "never", "ordered", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1732", "db_id": "riding_club", "query": "select player_name from player where player_id not in (select player_id from player_coach)", "query_toks": ["SELECT", "Player_name", "FROM", "player", "WHERE", "Player_ID", "NOT", "IN", "(", "SELECT", "Player_ID", "FROM", "player_coach", ")"], "query_toks_no_value": ["select", "player_name", "from", "player", "where", "player_id", "not", "in", "(", "select", "player_id", "from", "player_coach", ")"], "question": "List the names of players that do not have coaches.", "question_toks": ["List", "the", "names", "of", "players", "that", "do", "not", "have", "coaches", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2710", "db_id": "storm_record", "query": "select region_name from region where region_id not in (select region_id from affected_region)", "query_toks": ["SELECT", "region_name", "FROM", "region", "WHERE", "region_id", "NOT", "IN", "(", "SELECT", "region_id", "FROM", "affected_region", ")"], "query_toks_no_value": ["select", "region_name", "from", "region", "where", "region_id", "not", "in", "(", "select", "region_id", "from", "affected_region", ")"], "question": "Show the name for regions not affected.", "question_toks": ["Show", "the", "name", "for", "regions", "not", "affected", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2711", "db_id": "storm_record", "query": "select region_name from region where region_id not in (select region_id from affected_region)", "query_toks": ["SELECT", "region_name", "FROM", "region", "WHERE", "region_id", "NOT", "IN", "(", "SELECT", "region_id", "FROM", "affected_region", ")"], "query_toks_no_value": ["select", "region_name", "from", "region", "where", "region_id", "not", "in", "(", "select", "region_id", "from", "affected_region", ")"], "question": "What are the names of regions that were not affected?", "question_toks": ["What", "are", "the", "names", "of", "regions", "that", "were", "not", "affected", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0766", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["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", "=", "value", ")"], "question": "What is the total number of people living in the nations that do not use English?", "question_toks": ["What", "is", "the", "total", "number", "of", "people", "living", "in", "the", "nations", "that", "do", "not", "use", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2259", "db_id": "machine_repair", "query": "select name from technician where technician_id not in (select technician_id from repair_assignment)", "query_toks": ["SELECT", "Name", "FROM", "technician", "WHERE", "technician_id", "NOT", "IN", "(", "SELECT", "technician_id", "FROM", "repair_assignment", ")"], "query_toks_no_value": ["select", "name", "from", "technician", "where", "technician_id", "not", "in", "(", "select", "technician_id", "from", "repair_assignment", ")"], "question": "List the names of technicians who have not been assigned to repair machines.", "question_toks": ["List", "the", "names", "of", "technicians", "who", "have", "not", "been", "assigned", "to", "repair", "machines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[true, 8, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2260", "db_id": "machine_repair", "query": "select name from technician where technician_id not in (select technician_id from repair_assignment)", "query_toks": ["SELECT", "Name", "FROM", "technician", "WHERE", "technician_id", "NOT", "IN", "(", "SELECT", "technician_id", "FROM", "repair_assignment", ")"], "query_toks_no_value": ["select", "name", "from", "technician", "where", "technician_id", "not", "in", "(", "select", "technician_id", "from", "repair_assignment", ")"], "question": "What are the names of the technicians that have not been assigned to repair machines?", "question_toks": ["What", "are", "the", "names", "of", "the", "technicians", "that", "have", "not", "been", "assigned", "to", "repair", "machines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[true, 8, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6464", "db_id": "cre_Docs_and_Epenses", "query": "select count(*) from documents where document_id not in ( select document_id from documents_with_expenses )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_id", "NOT", "IN", "(", "SELECT", "document_id", "FROM", "Documents_with_expenses", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents", "where", "document_id", "not", "in", "(", "select", "document_id", "from", "documents_with_expenses", ")"], "question": "Count the number of documents that do not have expenses.", "question_toks": ["Count", "the", "number", "of", "documents", "that", "do", "not", "have", "expenses", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1560", "db_id": "customers_and_invoices", "query": "select count(*) from customers where customer_id not in (select customer_id from accounts)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Accounts", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "accounts", ")"], "question": "Count the number of customers who do not have an account.", "question_toks": ["Count", "the", "number", "of", "customers", "who", "do", "not", "have", "an", "account", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4158", "db_id": "film_rank", "query": "select title , director from film where film_id not in (select film_id from film_market_estimation as t1 join market as t2 on t1.market_id = t2.market_id where country = 'china')", "query_toks": ["SELECT", "title", ",", "director", "FROM", "film", "WHERE", "film_id", "NOT", "IN", "(", "SELECT", "film_id", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.market_id", "=", "T2.Market_ID", "WHERE", "country", "=", "'China", "'", ")"], "query_toks_no_value": ["select", "title", ",", "director", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "country", "=", "value", ")"], "question": "What are the titles and directors of the films were never presented in China?", "question_toks": ["What", "are", "the", "titles", "and", "directors", "of", "the", "films", "were", "never", "presented", "in", "China", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"China\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4159", "db_id": "film_rank", "query": "select title , director from film where film_id not in (select film_id from film_market_estimation as t1 join market as t2 on t1.market_id = t2.market_id where country = 'china')", "query_toks": ["SELECT", "title", ",", "director", "FROM", "film", "WHERE", "film_id", "NOT", "IN", "(", "SELECT", "film_id", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.market_id", "=", "T2.Market_ID", "WHERE", "country", "=", "'China", "'", ")"], "query_toks_no_value": ["select", "title", ",", "director", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "country", "=", "value", ")"], "question": "Return the titles and directors of films that were never in the market of China.", "question_toks": ["Return", "the", "titles", "and", "directors", "of", "films", "that", "were", "never", "in", "the", "market", "of", "China", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"China\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0062", "db_id": "student_assessment", "query": "select student_id from students where student_id not in (select student_id from student_course_attendance)", "query_toks": ["SELECT", "student_id", "FROM", "students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")"], "query_toks_no_value": ["select", "student_id", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")"], "question": "List the id of students who never attends courses?", "question_toks": ["List", "the", "id", "of", "students", "who", "never", "attends", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[true, 8, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_NEGATION_NOT_IN", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0063", "db_id": "student_assessment", "query": "select student_id from students where student_id not in (select student_id from student_course_attendance)", "query_toks": ["SELECT", "student_id", "FROM", "students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")"], "query_toks_no_value": ["select", "student_id", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")"], "question": "What are the ids of every student who has never attended a course?", "question_toks": ["What", "are", "the", "ids", "of", "every", "student", "who", "has", "never", "attended", "a", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[true, 8, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_NEGATION_NOT_IN", "NEGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3005", "db_id": "sakila_1", "query": "select first_name from customer where customer_id not in( select customer_id from rental where rental_date > '2005-08-23 02:06:01' )", "query_toks": ["SELECT", "first_name", "FROM", "customer", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "rental", "WHERE", "rental_date", ">", "'2005-08-23", "02:06:01", "'", ")"], "query_toks_no_value": ["select", "first_name", "from", "customer", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "rental", "where", "rental_date", ">", "value", ")"], "question": "Return the first names of customers who did not rented a film after the date '2005-08-23 02:06:01'.", "question_toks": ["Return", "the", "first", "names", "of", "customers", "who", "did", "not", "rented", "a", "film", "after", "the", "date", "'2005-08-23", "02:06:01", "'", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[true, 8, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 71, false], null]]]], "where": [[false, 3, [0, [0, 69, false], null], "\"2005-08-23 02:06:01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6361", "db_id": "school_bus", "query": "select school , type from school where school_id not in (select school_id from school_bus)", "query_toks": ["SELECT", "school", ",", "TYPE", "FROM", "school", "WHERE", "school_id", "NOT", "IN", "(", "SELECT", "school_id", "FROM", "school_bus", ")"], "query_toks_no_value": ["select", "school", ",", "type", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "school_bus", ")"], "question": "Show the school name and type for schools without a school bus.", "question_toks": ["Show", "the", "school", "name", "and", "type", "for", "schools", "without", "a", "school", "bus", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0854", "db_id": "orchestra", "query": "select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance)", "query_toks": ["SELECT", "Orchestra", "FROM", "orchestra", "WHERE", "Orchestra_ID", "NOT", "IN", "(", "SELECT", "Orchestra_ID", "FROM", "performance", ")"], "query_toks_no_value": ["select", "orchestra", "from", "orchestra", "where", "orchestra_id", "not", "in", "(", "select", "orchestra_id", "from", "performance", ")"], "question": "List the names of orchestras that have no performance.", "question_toks": ["List", "the", "names", "of", "orchestras", "that", "have", "no", "performance", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0764", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "isofficial", "=", "value", ")"], "question": "What is average life expectancy in the countries where English is not the official language?", "question_toks": ["What", "is", "average", "life", "expectancy", "in", "the", "countries", "where", "English", "is", "not", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0765", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "isofficial", "=", "value", ")"], "question": "Give the mean life expectancy of countries in which English is not the official language.", "question_toks": ["Give", "the", "mean", "life", "expectancy", "of", "countries", "in", "which", "English", "is", "not", "the", "official", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_NOT_IN", "NEGATION", "HIDDEN_AVG"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5790", "db_id": "customer_complaints", "query": "select product_price from products where product_id not in (select product_id from complaints)", "query_toks": ["SELECT", "product_price", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "complaints", ")"], "query_toks_no_value": ["select", "product_price", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "complaints", ")"], "question": "Find the prices of products which has never received a single complaint.", "question_toks": ["Find", "the", "prices", "of", "products", "which", "has", "never", "received", "a", "single", "complaint", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[true, 8, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5791", "db_id": "customer_complaints", "query": "select product_price from products where product_id not in (select product_id from complaints)", "query_toks": ["SELECT", "product_price", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "complaints", ")"], "query_toks_no_value": ["select", "product_price", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "complaints", ")"], "question": "What are the prices of products that have never gotten a complaint?", "question_toks": ["What", "are", "the", "prices", "of", "products", "that", "have", "never", "gotten", "a", "complaint", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[true, 8, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3085", "db_id": "loan_1", "query": "select avg(credit_score) from customer where cust_id not in (select cust_id from loan)", "query_toks": ["SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", "WHERE", "cust_id", "NOT", "IN", "(", "SELECT", "cust_id", "FROM", "loan", ")"], "query_toks_no_value": ["select", "avg", "(", "credit_score", ")", "from", "customer", "where", "cust_id", "not", "in", "(", "select", "cust_id", "from", "loan", ")"], "question": "What is the average credit score for customers who have never taken a loan?", "question_toks": ["What", "is", "the", "average", "credit", "score", "for", "customers", "who", "have", "never", "taken", "a", "loan", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5316", "db_id": "manufactory_1", "query": "select count(distinct name) from products where name not in (select t1.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code where t2.name = 'sony')", "query_toks": ["SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "products", "WHERE", "name", "NOT", "IN", "(", "SELECT", "T1.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T2.name", "=", "'Sony", "'", ")"], "query_toks_no_value": ["select", "count", "(", "distinct", "name", ")", "from", "products", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", ")"], "question": "Find number of products which Sony does not make.", "question_toks": ["Find", "number", "of", "products", "which", "Sony", "does", "not", "make", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 7, true], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Sony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0544", "db_id": "student_transcripts_tracking", "query": "select semester_name from semesters where semester_id not in( select semester_id from student_enrolment )", "query_toks": ["SELECT", "semester_name", "FROM", "Semesters", "WHERE", "semester_id", "NOT", "IN", "(", "SELECT", "semester_id", "FROM", "Student_Enrolment", ")"], "query_toks_no_value": ["select", "semester_name", "from", "semesters", "where", "semester_id", "not", "in", "(", "select", "semester_id", "from", "student_enrolment", ")"], "question": "What is the name of the semester with no students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "semester", "with", "no", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4358", "db_id": "tracking_grants_for_research", "query": "select project_details from projects where project_id not in ( select project_id from project_outcomes )", "query_toks": ["SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_outcomes", ")"], "query_toks_no_value": ["select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_outcomes", ")"], "question": "Which projects have no outcome? List the project details.", "question_toks": ["Which", "projects", "have", "no", "outcome", "?", "List", "the", "project", "details", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[true, 8, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4359", "db_id": "tracking_grants_for_research", "query": "select project_details from projects where project_id not in ( select project_id from project_outcomes )", "query_toks": ["SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_outcomes", ")"], "query_toks_no_value": ["select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_outcomes", ")"], "question": "What are the details of the project with no outcomes?", "question_toks": ["What", "are", "the", "details", "of", "the", "project", "with", "no", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[true, 8, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1191", "db_id": "election_representative", "query": "select name from representative where representative_id not in (select representative_id from election)", "query_toks": ["SELECT", "Name", "FROM", "representative", "WHERE", "Representative_ID", "NOT", "IN", "(", "SELECT", "Representative_ID", "FROM", "election", ")"], "query_toks_no_value": ["select", "name", "from", "representative", "where", "representative_id", "not", "in", "(", "select", "representative_id", "from", "election", ")"], "question": "List the names of representatives that have not participated in elections listed here.", "question_toks": ["List", "the", "names", "of", "representatives", "that", "have", "not", "participated", "in", "elections", "listed", "here", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0149", "db_id": "bike_1", "query": "select avg(bikes_available) from status where station_id not in (select id from station where city = \"palo alto\")", "query_toks": ["SELECT", "avg", "(", "bikes_available", ")", "FROM", "status", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", ")"], "query_toks_no_value": ["select", "avg", "(", "bikes_available", ")", "from", "status", "where", "station_id", "not", "in", "(", "select", "id", "from", "station", "where", "city", "=", "value", ")"], "question": "What is the average bike availability in stations that are not located in Palo Alto?", "question_toks": ["What", "is", "the", "average", "bike", "availability", "in", "stations", "that", "are", "not", "located", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0150", "db_id": "bike_1", "query": "select avg(bikes_available) from status where station_id not in (select id from station where city = \"palo alto\")", "query_toks": ["SELECT", "avg", "(", "bikes_available", ")", "FROM", "status", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", ")"], "query_toks_no_value": ["select", "avg", "(", "bikes_available", ")", "from", "status", "where", "station_id", "not", "in", "(", "select", "id", "from", "station", "where", "city", "=", "value", ")"], "question": "What is the average bike availablility for stations not in Palo Alto?", "question_toks": ["What", "is", "the", "average", "bike", "availablility", "for", "stations", "not", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4480", "db_id": "network_2", "query": "select count(distinct name) from personfriend where friend not in (select name from person where city = 'austin')", "query_toks": ["SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "PersonFriend", "WHERE", "friend", "NOT", "IN", "(", "SELECT", "name", "FROM", "person", "WHERE", "city", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "count", "(", "distinct", "name", ")", "from", "personfriend", "where", "friend", "not", "in", "(", "select", "name", "from", "person", "where", "city", "=", "value", ")"], "question": "What is the total number of people who has no friend living in the city of Austin.", "question_toks": ["What", "is", "the", "total", "number", "of", "people", "who", "has", "no", "friend", "living", "in", "the", "city", "of", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2026", "db_id": "gas_company", "query": "select company , main_industry from company where company_id not in (select company_id from station_company)", "query_toks": ["SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "company_id", "NOT", "IN", "(", "SELECT", "company_id", "FROM", "station_company", ")"], "query_toks_no_value": ["select", "company", ",", "main_industry", "from", "company", "where", "company_id", "not", "in", "(", "select", "company_id", "from", "station_company", ")"], "question": "What are the main industries of the companies without gas stations and what are the companies?", "question_toks": ["What", "are", "the", "main", "industries", "of", "the", "companies", "without", "gas", "stations", "and", "what", "are", "the", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5782", "db_id": "customer_complaints", "query": "select email_address , phone_number from customers where customer_id not in (select customer_id from complaints)", "query_toks": ["SELECT", "email_address", ",", "phone_number", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "complaints", ")"], "query_toks_no_value": ["select", "email_address", ",", "phone_number", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "complaints", ")"], "question": "Find the email and phone number of the customers who have never filed a complaint before.", "question_toks": ["Find", "the", "email", "and", "phone", "number", "of", "the", "customers", "who", "have", "never", "filed", "a", "complaint", "before", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5783", "db_id": "customer_complaints", "query": "select email_address , phone_number from customers where customer_id not in (select customer_id from complaints)", "query_toks": ["SELECT", "email_address", ",", "phone_number", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "complaints", ")"], "query_toks_no_value": ["select", "email_address", ",", "phone_number", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "complaints", ")"], "question": "What are the emails and phone numbers of custoemrs who have never filed a complaint?", "question_toks": ["What", "are", "the", "emails", "and", "phone", "numbers", "of", "custoemrs", "who", "have", "never", "filed", "a", "complaint", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5656", "db_id": "customers_and_products_contacts", "query": "select customer_name , customer_phone from customers where customer_id not in (select customer_id from customer_address_history)", "query_toks": ["SELECT", "customer_name", ",", "customer_phone", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "customer_address_history", ")"], "query_toks_no_value": ["select", "customer_name", ",", "customer_phone", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_address_history", ")"], "question": "Show names and phones of customers who do not have address information.", "question_toks": ["Show", "names", "and", "phones", "of", "customers", "who", "do", "not", "have", "address", "information", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3140", "db_id": "assets_maintenance", "query": "select first_name , last_name from maintenance_engineers where engineer_id not in (select engineer_id from engineer_visits)", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "Maintenance_Engineers", "WHERE", "engineer_id", "NOT", "IN", "(", "SELECT", "engineer_id", "FROM", "Engineer_Visits", ")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "maintenance_engineers", "where", "engineer_id", "not", "in", "(", "select", "engineer_id", "from", "engineer_visits", ")"], "question": "Which engineers have never visited to maintain the assets? List the engineer first name and last name.", "question_toks": ["Which", "engineers", "have", "never", "visited", "to", "maintain", "the", "assets", "?", "List", "the", "engineer", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]]]], "where": [[true, 8, [0, [0, 34, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5764", "db_id": "dorm_1", "query": "select t1.fname , t1.age from student as t1 join lives_in as t2 on t1.stuid = t2.stuid where t2.dormid not in (select t3.dormid from has_amenity as t3 join dorm_amenity as t4 on t3.amenid = t4.amenid where t4.amenity_name = 'tv lounge')", "query_toks": ["SELECT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.dormid", "NOT", "IN", "(", "SELECT", "T3.dormid", "FROM", "has_amenity", "AS", "T3", "JOIN", "dorm_amenity", "AS", "T4", "ON", "T3.amenid", "=", "T4.amenid", "WHERE", "T4.amenity_name", "=", "'TV", "Lounge", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "dormid", "not", "in", "(", "select", "t3", ".", "dormid", "from", "has_amenity", "as", "t3", "join", "dorm_amenity", "as", "t4", "on", "t3", ".", "amenid", "=", "t4", ".", "amenid", "where", "t4", ".", "amenity_name", "=", "value", ")"], "question": "Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "are", "living", "in", "the", "dorms", "that", "do", "not", "have", "amenity", "TV", "Lounge", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0784", "db_id": "world_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "value", "and", "t1", ".", "name", "not", "in", "(", "select", "t3", ".", "name", "from", "country", "as", "t3", "join", "countrylanguage", "as", "t4", "on", "t3", ".", "code", "=", "t4", ".", "countrycode", "where", "t4", ".", "isofficial", "=", "value", "and", "t4", ".", "language", "=", "value", ")"], "question": "Which cities are in European countries where English is not the official language?", "question_toks": ["Which", "cities", "are", "in", "European", "countries", "where", "English", "is", "not", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Europe\"", null], "and", [true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"T\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0785", "db_id": "world_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "value", "and", "t1", ".", "name", "not", "in", "(", "select", "t3", ".", "name", "from", "country", "as", "t3", "join", "countrylanguage", "as", "t4", "on", "t3", ".", "code", "=", "t4", ".", "countrycode", "where", "t4", ".", "isofficial", "=", "value", "and", "t4", ".", "language", "=", "value", ")"], "question": "What are the names of cities in Europe for which English is not the official language?", "question_toks": ["What", "are", "the", "names", "of", "cities", "in", "Europe", "for", "which", "English", "is", "not", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Europe\"", null], "and", [true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"T\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6774", "db_id": "activity_1", "query": "select facid from faculty_participates_in intersect select advisor from student", "query_toks": ["SELECT", "FacID", "FROM", "Faculty_participates_in", "INTERSECT", "SELECT", "advisor", "FROM", "Student"], "query_toks_no_value": ["select", "facid", "from", "faculty_participates_in", "intersect", "select", "advisor", "from", "student"], "question": "What are ids of the faculty members who not only participate in an activity but also advise a student.", "question_toks": ["What", "are", "ids", "of", "the", "faculty", "members", "who", "not", "only", "participate", "in", "an", "activity", "but", "also", "advise", "a", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_REDUNDANT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0153", "db_id": "car_1", "query": "select distinct year from cars_data where weight between 3000 and 4000;", "query_toks": ["select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "3000", "and", "4000", ";"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "value", "and", "value"], "question": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?", "question_toks": ["In", "which", "years", "cars", "were", "produced", "weighing", "no", "less", "than", "3000", "and", "no", "more", "than", "4000", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 3000.0, 4000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_OTHER_WORDS", "AND_IN_NL", "NEGATION", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0871", "db_id": "chinook_1", "query": "select t1.lastname from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) <= 20", "query_toks": ["SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", "<", "=", "20"], "query_toks_no_value": ["select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", "<", "=", "value"], "question": "Please show the employee last names that serves no more than 20 customers.", "question_toks": ["Please", "show", "the", "employee", "last", "names", "that", "serves", "no", "more", "than", "20", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 6, [0, [3, 0, false], null], 20.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5171", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = 'photo' intersect select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = 'film'", "query_toks": ["SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Name", "=", "'photo", "'", "INTERSECT", "SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Name", "=", "'film", "'"], "query_toks_no_value": ["select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value", "intersect", "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value"], "question": "Give me the description of the service type that offers not only the photo product but also the film product.", "question_toks": ["Give", "me", "the", "description", "of", "the", "service", "type", "that", "offers", "not", "only", "the", "photo", "product", "but", "also", "the", "film", "product", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 15]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 85, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 88, false], null], "\"photo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 15]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 85, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 88, false], null], "\"film\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_REDUNDANT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4516", "db_id": "document_management", "query": "select document_type_code from documents group by document_type_code having sum(access_count) > 10000", "query_toks": ["SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code", "HAVING", "sum", "(", "access_count", ")", ">", "10000"], "query_toks_no_value": ["select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "sum", "(", "access_count", ")", ">", "value"], "question": "Return the codes of the document types that do not have a total access count of over 10000.", "question_toks": ["Return", "the", "codes", "of", "the", "document", "types", "that", "do", "not", "have", "a", "total", "access", "count", "of", "over", "10000", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [[false, 3, [0, [4, 21, false], null], 10000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OPPOSITE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3415", "db_id": "hr_1", "query": "select hire_date from employees where first_name not like '%m%'", "query_toks": ["SELECT", "hire_date", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'"], "query_toks_no_value": ["select", "hire_date", "from", "employees", "where", "first_name", "not", "like", "value"], "question": "when is the hire date for those employees whose first name does not containing the letter M?", "question_toks": ["when", "is", "the", "hire", "date", "for", "those", "employees", "whose", "first", "name", "does", "not", "containing", "the", "letter", "M", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3416", "db_id": "hr_1", "query": "select hire_date from employees where first_name not like '%m%'", "query_toks": ["SELECT", "hire_date", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'"], "query_toks_no_value": ["select", "hire_date", "from", "employees", "where", "first_name", "not", "like", "value"], "question": "On what dates were employees without the letter M in their first names hired?", "question_toks": ["On", "what", "dates", "were", "employees", "without", "the", "letter", "M", "in", "their", "first", "names", "hired", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3417", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name not like '%m%'", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value"], "question": "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.", "question_toks": ["display", "the", "full", "name", "(", "first", "and", "last", ")", ",", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employees", "whose", "first", "name", "does", "not", "containing", "the", "letter", "M", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3418", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name not like '%m%'", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value"], "question": "What are the full name, hire date, salary, and department id for employees without the letter M in their first name?", "question_toks": ["What", "are", "the", "full", "name", ",", "hire", "date", ",", "salary", ",", "and", "department", "id", "for", "employees", "without", "the", "letter", "M", "in", "their", "first", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3419", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name not like '%m%' order by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'", "ORDER", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value", "order", "by", "department_id"], "question": "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.", "question_toks": ["display", "the", "full", "name", "(", "first", "and", "last", ")", ",", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employees", "whose", "first", "name", "does", "not", "containing", "the", "letter", "M", "and", "make", "the", "result", "set", "in", "ascending", "order", "by", "department", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3420", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name not like '%m%' order by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'", "ORDER", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value", "order", "by", "department_id"], "question": "What are the full name, hire data, salary and department id for employees without the letter M in their first name, ordered by ascending department id?", "question_toks": ["What", "are", "the", "full", "name", ",", "hire", "data", ",", "salary", "and", "department", "id", "for", "employees", "without", "the", "letter", "M", "in", "their", "first", "name", ",", "ordered", "by", "ascending", "department", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3426", "db_id": "hr_1", "query": "select first_name , last_name , salary from employees where commission_pct = \"null\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "commission_pct", "=", "value"], "question": "Return the full names and salaries of employees with null commissions.", "question_toks": ["Return", "the", "full", "names", "and", "salaries", "of", "employees", "with", "null", "commissions", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3445", "db_id": "hr_1", "query": "select email from employees where commission_pct = \"null\" and salary between 7000 and 12000 and department_id = 50", "query_toks": ["SELECT", "email", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''", "AND", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "50"], "query_toks_no_value": ["select", "email", "from", "employees", "where", "commission_pct", "=", "value", "and", "salary", "between", "value", "and", "value", "and", "department_id", "=", "value"], "question": "display the emails of the employees who have no commission percentage and salary within the range 7000 to 12000 and works in that department which number is 50.", "question_toks": ["display", "the", "emails", "of", "the", "employees", "who", "have", "no", "commission", "percentage", "and", "salary", "within", "the", "range", "7000", "to", "12000", "and", "works", "in", "that", "department", "which", "number", "is", "50", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"null\"", null], "and", [false, 1, [0, [0, 21, false], null], 7000.0, 12000.0], "and", [false, 2, [0, [0, 24, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3446", "db_id": "hr_1", "query": "select email from employees where commission_pct = \"null\" and salary between 7000 and 12000 and department_id = 50", "query_toks": ["SELECT", "email", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''", "AND", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "50"], "query_toks_no_value": ["select", "email", "from", "employees", "where", "commission_pct", "=", "value", "and", "salary", "between", "value", "and", "value", "and", "department_id", "=", "value"], "question": "What are the emails of employees with null commission, salary between 7000 and 12000, and who work in department 50?", "question_toks": ["What", "are", "the", "emails", "of", "employees", "with", "null", "commission", ",", "salary", "between", "7000", "and", "12000", ",", "and", "who", "work", "in", "department", "50", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"null\"", null], "and", [false, 1, [0, [0, 21, false], null], 7000.0, 12000.0], "and", [false, 2, [0, [0, 24, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3863", "db_id": "insurance_policies", "query": "select date_claim_made from claims where amount_settled <= ( select avg(amount_settled) from claims )", "query_toks": ["SELECT", "Date_Claim_Made", "FROM", "Claims", "WHERE", "Amount_Settled", "<", "=", "(", "SELECT", "avg", "(", "Amount_Settled", ")", "FROM", "Claims", ")"], "query_toks_no_value": ["select", "date_claim_made", "from", "claims", "where", "amount_settled", "<", "=", "(", "select", "avg", "(", "amount_settled", ")", "from", "claims", ")"], "question": "Return the claim start date for the claims whose claimed amount is no more than the average", "question_toks": ["Return", "the", "claim", "start", "date", "for", "the", "claims", "whose", "claimed", "amount", "is", "no", "more", "than", "the", "average"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 6, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0413", "db_id": "museum_visit", "query": "select avg(age) from visitor where level_of_membership <= 4", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "visitor", "WHERE", "Level_of_membership", "<", "=", "4"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "visitor", "where", "level_of_membership", "<", "=", "value"], "question": "What is the average age of the visitors whose membership level is not higher than 4?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "visitors", "whose", "membership", "level", "is", "not", "higher", "than", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 8, false], null]]]], "where": [[false, 6, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_OTHER_WORDS", "WHERE_MONO", "NEGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6192", "db_id": "music_4", "query": "select t1.famous_title from artist as t1 join volume as t2 on t1.artist_id = t2.artist_id where t2.weeks_on_top > 2 intersect select t1.famous_title from artist as t1 join volume as t2 on t1.artist_id = t2.artist_id where t2.weeks_on_top < 2", "query_toks": ["SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", ">", "2", "INTERSECT", "SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", "<", "2"], "query_toks_no_value": ["select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", ">", "value", "intersect", "select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", "<", "value"], "question": "What are the famous titles of artists who have not only had volumes that spent more than 2 weeks on top but also volumes that spent less than 2 weeks on top?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "who", "have", "not", "only", "had", "volumes", "that", "spent", "more", "than", "2", "weeks", "on", "top", "but", "also", "volumes", "that", "spent", "less", "than", "2", "weeks", "on", "top", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1047", "db_id": "phone_1", "query": "select count(*) from chip_model where wifi = 'no'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "chip_model", "WHERE", "wifi", "=", "'No", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "chip_model", "where", "wifi", "=", "value"], "question": "Count the number of chip model that do not have wifi.", "question_toks": ["Count", "the", "number", "of", "chip", "model", "that", "do", "not", "have", "wifi", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"No\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0501", "db_id": "battle_death", "query": "select name from battle where bulgarian_commander = 'kaloyan' and latin_commander = 'baldwin i'", "query_toks": ["SELECT", "name", "FROM", "battle", "WHERE", "bulgarian_commander", "=", "'Kaloyan", "'", "AND", "latin_commander", "=", "'Baldwin", "I", "'"], "query_toks_no_value": ["select", "name", "from", "battle", "where", "bulgarian_commander", "=", "value", "and", "latin_commander", "=", "value"], "question": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?", "question_toks": ["What", "are", "the", "distinct", "battle", "names", "which", "are", "between", "bulgarian", "commander", "'Kaloyan", "'", "and", "latin", "commander", "'Baldwin", "I", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Kaloyan\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Baldwin I\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0504", "db_id": "battle_death", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "date", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "date", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "name", "=", "value"], "question": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'", "question_toks": ["List", "the", "name", "and", "date", "the", "battle", "that", "has", "lost", "the", "ship", "named", "'Lettice", "'", "and", "the", "ship", "named", "'HMS", "Atalanta", "'"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Lettice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"HMS Atalanta\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0154", "db_id": "car_1", "query": "select distinct year from cars_data where weight between 3000 and 4000;", "query_toks": ["select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "3000", "and", "4000", ";"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "value", "and", "value"], "question": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?", "question_toks": ["What", "are", "the", "different", "years", "in", "which", "there", "were", "cars", "produced", "that", "weighed", "less", "than", "4000", "and", "also", "cars", "that", "weighted", "more", "than", "3000", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 3000.0, 4000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0168", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "<", "value"], "question": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?", "question_toks": ["Among", "the", "cars", "that", "do", "not", "have", "the", "minimum", "horsepower", ",", "what", "are", "the", "make", "ids", "and", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ALL", "DEJOIN_TOTAL", "_AND_TO_COLUMNS", "AND_IN_NL", "NEGATION_WITH_ANY_ALL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0014", "db_id": "concert_singer", "query": "select location , name from stadium where capacity between 5000 and 10000", "query_toks": ["SELECT", "LOCATION", ",", "name", "FROM", "stadium", "WHERE", "capacity", "BETWEEN", "5000", "AND", "10000"], "query_toks_no_value": ["select", "location", ",", "name", "from", "stadium", "where", "capacity", "between", "value", "and", "value"], "question": "Show location and name for all stadiums with a capacity between 5000 and 10000.", "question_toks": ["Show", "location", "and", "name", "for", "all", "stadiums", "with", "a", "capacity", "between", "5000", "and", "10000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 5000.0, 10000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_AND_TO_COLUMNS", "AND_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0015", "db_id": "concert_singer", "query": "select location , name from stadium where capacity between 5000 and 10000", "query_toks": ["SELECT", "LOCATION", ",", "name", "FROM", "stadium", "WHERE", "capacity", "BETWEEN", "5000", "AND", "10000"], "query_toks_no_value": ["select", "location", ",", "name", "from", "stadium", "where", "capacity", "between", "value", "and", "value"], "question": "What are the locations and names of all stations with capacity between 5000 and 10000?", "question_toks": ["What", "are", "the", "locations", "and", "names", "of", "all", "stations", "with", "capacity", "between", "5000", "and", "10000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 5000.0, 10000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_AND_TO_COLUMNS", "AND_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0030", "db_id": "concert_singer", "query": "select country from singer where age > 40 intersect select country from singer where age < 30", "query_toks": ["SELECT", "country", "FROM", "singer", "WHERE", "age", ">", "40", "INTERSECT", "SELECT", "country", "FROM", "singer", "WHERE", "age", "<", "30"], "query_toks_no_value": ["select", "country", "from", "singer", "where", "age", ">", "value", "intersect", "select", "country", "from", "singer", "where", "age", "<", "value"], "question": "Show countries where a singer above age 40 and a singer below 30 are from.", "question_toks": ["Show", "countries", "where", "a", "singer", "above", "age", "40", "and", "a", "singer", "below", "30", "are", "from", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0041", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value", "intersect", "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value"], "question": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", "question_toks": ["Find", "the", "name", "and", "location", "of", "the", "stadiums", "which", "some", "concerts", "happened", "in", "the", "years", "of", "both", "2014", "and", "2015", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_AND_TO_INTERSECT", "_ANY_REFORMULATION", "AND_IN_NL", "ANY_SOME_IN_NL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0042", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value", "intersect", "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value"], "question": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", "question_toks": ["What", "are", "the", "names", "and", "locations", "of", "the", "stadiums", "that", "had", "concerts", "that", "occurred", "in", "both", "2014", "and", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_AND_TO_INTERSECT", "AND_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0918", "db_id": "dog_kennels", "query": "select state from owners intersect select state from professionals", "query_toks": ["SELECT", "state", "FROM", "Owners", "INTERSECT", "SELECT", "state", "FROM", "Professionals"], "query_toks_no_value": ["select", "state", "from", "owners", "intersect", "select", "state", "from", "professionals"], "question": "Which states have both owners and professionals living there?", "question_toks": ["Which", "states", "have", "both", "owners", "and", "professionals", "living", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0919", "db_id": "dog_kennels", "query": "select state from owners intersect select state from professionals", "query_toks": ["SELECT", "state", "FROM", "Owners", "INTERSECT", "SELECT", "state", "FROM", "Professionals"], "query_toks_no_value": ["select", "state", "from", "owners", "intersect", "select", "state", "from", "professionals"], "question": "Find the states where both owners and professionals live.", "question_toks": ["Find", "the", "states", "where", "both", "owners", "and", "professionals", "live", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0922", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "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", "(", "*", ")", ">", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"Indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_WITH_OR_IN_NL", "HAVING_IN_SQL", "_AND_TO_INTERSECT", "_AND_WITH_OR_COLUMN_REMOVED", "AND_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0293", "db_id": "employee_hire_evaluation", "query": "select district from shop where number_products < 3000 intersect select district from shop where number_products > 10000", "query_toks": ["SELECT", "district", "FROM", "shop", "WHERE", "Number_products", "<", "3000", "INTERSECT", "SELECT", "district", "FROM", "shop", "WHERE", "Number_products", ">", "10000"], "query_toks_no_value": ["select", "district", "from", "shop", "where", "number_products", "<", "value", "intersect", "select", "district", "from", "shop", "where", "number_products", ">", "value"], "question": "Which district has both stores with less than 3000 products and stores with more than 10000 products?", "question_toks": ["Which", "district", "has", "both", "stores", "with", "less", "than", "3000", "products", "and", "stores", "with", "more", "than", "10000", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 10000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0237", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "intersect", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"], "question": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "both", "airports", "'APG", "'", "and", "'CVO", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"CVO\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0898", "db_id": "network_1", "query": "select student_id from friend intersect select liked_id from likes", "query_toks": ["SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes"], "query_toks_no_value": ["select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes"], "question": "Show the ids of high schoolers who have friends and are also liked by someone else.", "question_toks": ["Show", "the", "ids", "of", "high", "schoolers", "who", "have", "friends", "and", "are", "also", "liked", "by", "someone", "else", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_AND_TO_INTERSECT", "ANY_SOME_IN_NL", "_ANY_REFORMULATION", "AND_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0899", "db_id": "network_1", "query": "select student_id from friend intersect select liked_id from likes", "query_toks": ["SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes"], "query_toks_no_value": ["select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes"], "question": "What are the ids of students who both have friends and are liked?", "question_toks": ["What", "are", "the", "ids", "of", "students", "who", "both", "have", "friends", "and", "are", "liked", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0856", "db_id": "orchestra", "query": "select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003", "INTERSECT", "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", ">", "2003"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value", "intersect", "select", "record_company", "from", "orchestra", "where", "year_of_founded", ">", "value"], "question": "Show the record companies shared by orchestras founded before 2003 and after 2003.", "question_toks": ["Show", "the", "record", "companies", "shared", "by", "orchestras", "founded", "before", "2003", "and", "after", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0857", "db_id": "orchestra", "query": "select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003", "INTERSECT", "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", ">", "2003"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value", "intersect", "select", "record_company", "from", "orchestra", "where", "year_of_founded", ">", "value"], "question": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?", "question_toks": ["What", "are", "the", "record", "companies", "that", "are", "used", "by", "both", "orchestras", "founded", "before", "2003", "and", "those", "founded", "after", "2003", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0062", "db_id": "pets_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["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", "=", "value", ")"], "question": "What major is every student who does not own a cat as a pet, and also how old are they?", "question_toks": ["What", "major", "is", "every", "student", "who", "does", "not", "own", "a", "cat", "as", "a", "pet", ",", "and", "also", "how", "old", "are", "they", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "WHERE_MONO", "AND_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1028", "db_id": "singer", "query": "select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955", "query_toks": ["SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945", "INTERSECT", "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955"], "query_toks_no_value": ["select", "citizenship", "from", "singer", "where", "birth_year", "<", "value", "intersect", "select", "citizenship", "from", "singer", "where", "birth_year", ">", "value"], "question": "Show the citizenship shared by singers with birth year before 1945 and after 1955.", "question_toks": ["Show", "the", "citizenship", "shared", "by", "singers", "with", "birth", "year", "before", "1945", "and", "after", "1955", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 1945.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 1955.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1029", "db_id": "singer", "query": "select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955", "query_toks": ["SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945", "INTERSECT", "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955"], "query_toks_no_value": ["select", "citizenship", "from", "singer", "where", "birth_year", "<", "value", "intersect", "select", "citizenship", "from", "singer", "where", "birth_year", ">", "value"], "question": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?", "question_toks": ["What", "are", "the", "citizenships", "that", "are", "shared", "by", "singers", "with", "a", "birth", "year", "before", "1945", "and", "after", "1955", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 1945.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 1955.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0553", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'", "query_toks": ["SELECT", "cell_mobile_number", "FROM", "Students", "WHERE", "first_name", "=", "'Timmothy", "'", "AND", "last_name", "=", "'Ward", "'"], "query_toks_no_value": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the phone number of the man with the first name Timmothy and the last name Ward?", "question_toks": ["What", "is", "the", "phone", "number", "of", "the", "man", "with", "the", "first", "name", "Timmothy", "and", "the", "last", "name", "Ward", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Timmothy\"", null], "and", [false, 2, [0, [0, 37, false], null], "\"Ward\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0575", "db_id": "student_transcripts_tracking", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "Find the semester when both Master students and Bachelor students got enrolled in.", "question_toks": ["Find", "the", "semester", "when", "both", "Master", "students", "and", "Bachelor", "students", "got", "enrolled", "in", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Master\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Bachelor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0576", "db_id": "student_transcripts_tracking", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "What is the id of the semester that had both Masters and Bachelors students enrolled?", "question_toks": ["What", "is", "the", "id", "of", "the", "semester", "that", "had", "both", "Masters", "and", "Bachelors", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Master\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Bachelor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0637", "db_id": "tvshow", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value", "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", "=", "value"], "question": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?", "question_toks": ["Find", "the", "series", "name", "and", "country", "of", "the", "tv", "channel", "that", "is", "playing", "some", "cartoons", "directed", "by", "Ben", "Jones", "and", "Michael", "Chang", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Michael Chang\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0638", "db_id": "tvshow", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value", "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", "=", "value"], "question": "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?", "question_toks": ["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", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Michael Chang\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0700", "db_id": "voter_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.", "question_toks": ["List", "the", "area", "codes", "in", "which", "voters", "voted", "both", "for", "the", "contestant", "'Tabatha", "Gehling", "'", "and", "the", "contestant", "'Kelly", "Clauss", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Tabatha Gehling\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Kelly Clauss\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0748", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What are the names of nations where both English and French are official languages?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "are", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"French\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_AND_TO_INTERSECT", "AND_IN_NL", "BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0749", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "Give the names of countries with English and French as official languages.", "question_toks": ["Give", "the", "names", "of", "countries", "with", "English", "and", "French", "as", "official", "languages", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"French\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_AND_TO_INTERSECT", "AND_IN_NL", "BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0787", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the official language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "official", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"T\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_INTERSECT", "AND_IN_NL", "BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0808", "db_id": "world_1", "query": "select name from country where continent = \"europe\" and population = \"80000\"", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "Europe", "''", "AND", "Population", "=", "``", "80000", "''"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "=", "value"], "question": "What are the names of the countries that are in the continent of Europe and have a population of 80000?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "that", "are", "in", "the", "continent", "of", "Europe", "and", "have", "a", "population", "of", "80000", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Europe\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"80000\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0809", "db_id": "world_1", "query": "select name from country where continent = \"europe\" and population = \"80000\"", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "Europe", "''", "AND", "Population", "=", "``", "80000", "''"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "=", "value"], "question": "Give the names of countries that are in Europe and have a population equal to 80000.", "question_toks": ["Give", "the", "names", "of", "countries", "that", "are", "in", "Europe", "and", "have", "a", "population", "equal", "to", "80000", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Europe\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"80000\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0810", "db_id": "world_1", "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "query_toks": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "\"north america\"", "and", "surfacearea", ">", "3000"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value"], "question": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?", "question_toks": ["What", "is", "the", "total", "population", "and", "average", "area", "of", "countries", "in", "the", "continent", "of", "North", "America", "whose", "area", "is", "bigger", "than", "3000", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [5, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null], "and", [false, 3, [0, [0, 12, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0811", "db_id": "world_1", "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "query_toks": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "\"north america\"", "and", "surfacearea", ">", "3000"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value"], "question": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", "question_toks": ["Give", "the", "total", "population", "and", "average", "surface", "area", "corresponding", "to", "countries", "in", "North", "America", "that", "have", "a", "surface", "area", "greater", "than", "3000", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [5, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null], "and", [false, 3, [0, [0, 12, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "HIDDEN_SUM", "AND_IN_NL", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0812", "db_id": "world_1", "query": "select name from city where population between 160000 and 900000", "query_toks": ["SELECT", "name", "FROM", "city", "WHERE", "Population", "BETWEEN", "160000", "AND", "900000"], "query_toks_no_value": ["select", "name", "from", "city", "where", "population", "between", "value", "and", "value"], "question": "What are the cities whose population is between 160000 and 900000?", "question_toks": ["What", "are", "the", "cities", "whose", "population", "is", "between", "160000", "and", "900000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 1, [0, [0, 5, false], null], 160000.0, 900000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0813", "db_id": "world_1", "query": "select name from city where population between 160000 and 900000", "query_toks": ["select", "name", "from", "city", "where", "population", "between", "160000", "and", "900000"], "query_toks_no_value": ["select", "name", "from", "city", "where", "population", "between", "value", "and", "value"], "question": "Return the names of cities that have a population between 160000 and 900000 .", "question_toks": ["Return", "the", "names", "of", "cities", "that", "have", "a", "population", "between", "160000", "and", "900000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 1, [0, [0, 5, false], null], 160000.0, 900000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0744", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", ")"], "question": "How many countries speak both English and Dutch?", "question_toks": ["How", "many", "countries", "speak", "both", "English", "and", "Dutch", "?"], "sql": {"from": {"table_units": [["sql", {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0747", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "Give the names of nations that speak both English and French.", "question_toks": ["Give", "the", "names", "of", "nations", "that", "speak", "both", "English", "and", "French", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"French\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0485", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = 'wta championships' and winner_hand = 'l'", "query_toks": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "'WTA", "Championships", "'", "AND", "winner_hand", "=", "'L", "'"], "query_toks_no_value": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "and", "winner_hand", "=", "value"], "question": "How many different winners both participated in the WTA Championships and were left handed?", "question_toks": ["How", "many", "different", "winners", "both", "participated", "in", "the", "WTA", "Championships", "and", "were", "left", "handed", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"WTA Championships\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"L\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "_REFORMULATION_SYNONYM", "SYNONYMS", "AND_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0447", "db_id": "wta_1", "query": "select winner_name from matches where year = 2013 intersect select winner_name from matches where year = 2016", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "INTERSECT", "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2016"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "year", "=", "value", "intersect", "select", "winner_name", "from", "matches", "where", "year", "=", "value"], "question": "List the names of all winners who played in both 2013 and 2016.", "question_toks": ["List", "the", "names", "of", "all", "winners", "who", "played", "in", "both", "2013", "and", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0448", "db_id": "wta_1", "query": "select winner_name from matches where year = 2013 intersect select winner_name from matches where year = 2016", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "INTERSECT", "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2016"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "year", "=", "value", "intersect", "select", "winner_name", "from", "matches", "where", "year", "=", "value"], "question": "What are the names of players who won in both 2013 and 2016?", "question_toks": ["What", "are", "the", "names", "of", "players", "who", "won", "in", "both", "2013", "and", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0451", "db_id": "wta_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?", "question_toks": ["What", "are", "the", "country", "code", "and", "first", "name", "of", "the", "players", "who", "won", "in", "both", "tourney", "WTA", "Championships", "and", "Australian", "Open", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"WTA Championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Australian Open\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0452", "db_id": "wta_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open?", "question_toks": ["What", "are", "the", "first", "names", "and", "country", "codes", "for", "players", "who", "won", "both", "the", "WTA", "Championships", "and", "the", "Australian", "Open", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"WTA Championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Australian Open\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0533", "db_id": "allergy_1", "query": "select count(*) from student where age > 18 and stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\" or t2.allergytype = \"animal\")", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")"], "question": "Find the number of students who are older than 18 and do not have allergy to either food or animal.", "question_toks": ["Find", "the", "number", "of", "students", "who", "are", "older", "than", "18", "and", "do", "not", "have", "allergy", "to", "either", "food", "or", "animal", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null], "and", [true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "_AND_WITH_OR_FILTER_REMOVED", "AND_WITH_OR_IN_NL", "AND_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0534", "db_id": "allergy_1", "query": "select count(*) from student where age > 18 and stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\" or t2.allergytype = \"animal\")", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")"], "question": "How many students are over 18 and do not have allergy to food type or animal type?", "question_toks": ["How", "many", "students", "are", "over", "18", "and", "do", "not", "have", "allergy", "to", "food", "type", "or", "animal", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null], "and", [true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "_AND_WITH_OR_FILTER_REMOVED", "AND_WITH_OR_IN_NL", "AND_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0519", "db_id": "allergy_1", "query": "select lname , age from student where stuid in (select stuid from has_allergy where allergy = \"milk\" intersect select stuid from has_allergy where allergy = \"cat\")", "query_toks": ["SELECT", "lname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")"], "query_toks_no_value": ["select", "lname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "intersect", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")"], "question": "Find the last name and age of the student who has allergy to both milk and cat.", "question_toks": ["Find", "the", "last", "name", "and", "age", "of", "the", "student", "who", "has", "allergy", "to", "both", "milk", "and", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Milk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5677", "db_id": "dorm_1", "query": "select fname from student where city_code = 'phl' and age between 20 and 25", "query_toks": ["SELECT", "fname", "FROM", "student", "WHERE", "city_code", "=", "'PHL", "'", "AND", "age", "BETWEEN", "20", "AND", "25"], "query_toks_no_value": ["select", "fname", "from", "student", "where", "city_code", "=", "value", "and", "age", "between", "value", "and", "value"], "question": "What is the first name of the students who are in age 20 to 25 and living in PHL city?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "students", "who", "are", "in", "age", "20", "to", "25", "and", "living", "in", "PHL", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"PHL\"", null], "and", [false, 1, [0, [0, 4, false], null], 20.0, 25.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5706", "db_id": "dorm_1", "query": "select lname from student where sex = 'f' and city_code = 'bal' union select lname from student where sex = 'm' and age < 20", "query_toks": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "city_code", "=", "'BAL", "'", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'M", "'", "AND", "age", "<", "20"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "sex", "=", "value", "and", "city_code", "=", "value", "union", "select", "lname", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.", "question_toks": ["Find", "the", "last", "name", "of", "students", "who", "is", "either", "female", "(", "sex", "is", "F", ")", "and", "living", "in", "the", "city", "of", "code", "BAL", "or", "male", "(", "sex", "is", "M", ")", "and", "in", "age", "of", "below", "20", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"BAL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"M\"", null], "and", [false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_AND_TO_FILTERS", "_AND_WITH_OR_UNION_REMOVED", "AND_WITH_OR_IN_NL", "AND_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6648", "db_id": "driving_school", "query": "select t1.zip_postcode from addresses as t1 join staff as t2 on t1.address_id = t2.staff_address_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\";", "query_toks": ["SELECT", "T1.zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value"], "question": "What is the zip code of staff with first name as Janessa and last name as Sawayn lived?", "question_toks": ["What", "is", "the", "zip", "code", "of", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "lived", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Sawayn\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6668", "db_id": "driving_school", "query": "select date_became_customer from customers where first_name = \"carole\" and last_name = \"bernhard\";", "query_toks": ["SELECT", "date_became_customer", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''", "AND", "last_name", "=", "``", "Bernhard", "''", ";"], "query_toks_no_value": ["select", "date_became_customer", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "When did customer with first name as Carole and last name as Bernhard became a customer?", "question_toks": ["When", "did", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "became", "a", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Carole\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Bernhard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6676", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.first_name = \"rylan\" and t2.last_name = \"goodwin\" and t1.lesson_status_code = \"completed\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Rylan", "''", "AND", "T2.last_name", "=", "``", "Goodwin", "''", "AND", "T1.lesson_status_code", "=", "``", "Completed", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "t1", ".", "lesson_status_code", "=", "value"], "question": "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?", "question_toks": ["How", "many", "lessons", "taken", "by", "customer", "with", "first", "name", "as", "Rylan", "and", "last", "name", "as", "Goodwin", "were", "completed", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 18, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Rylan\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Goodwin\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"Completed\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0050", "db_id": "farm", "query": "select status from city where population > 1500 intersect select status from city where population < 500", "query_toks": ["SELECT", "Status", "FROM", "city", "WHERE", "Population", ">", "1500", "INTERSECT", "SELECT", "Status", "FROM", "city", "WHERE", "Population", "<", "500"], "query_toks_no_value": ["select", "status", "from", "city", "where", "population", ">", "value", "intersect", "select", "status", "from", "city", "where", "population", "<", "value"], "question": "Show the status shared by cities with population bigger than 1500 and smaller than 500.", "question_toks": ["Show", "the", "status", "shared", "by", "cities", "with", "population", "bigger", "than", "1500", "and", "smaller", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 1500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0051", "db_id": "farm", "query": "select status from city where population > 1500 intersect select status from city where population < 500", "query_toks": ["SELECT", "Status", "FROM", "city", "WHERE", "Population", ">", "1500", "INTERSECT", "SELECT", "Status", "FROM", "city", "WHERE", "Population", "<", "500"], "query_toks_no_value": ["select", "status", "from", "city", "where", "population", ">", "value", "intersect", "select", "status", "from", "city", "where", "population", "<", "value"], "question": "Which statuses correspond to both cities that have a population over 1500 and cities that have a population lower than 500?", "question_toks": ["Which", "statuses", "correspond", "to", "both", "cities", "that", "have", "a", "population", "over", "1500", "and", "cities", "that", "have", "a", "population", "lower", "than", "500", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 1500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2215", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "France", "''", "OR", "country", "=", "``", "Belgium", "''"], "query_toks_no_value": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "Find the id and location of circuits that belong to France or Belgium?", "question_toks": ["Find", "the", "id", "and", "location", "of", "circuits", "that", "belong", "to", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"France\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"Belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_WITH_OR_FILTER_REMOVED", "_AND_TO_COLUMNS", "AND_IN_NL", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2216", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "France", "''", "OR", "country", "=", "``", "Belgium", "''"], "query_toks_no_value": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "What are the ids and locations of all circuits in France or Belgium?", "question_toks": ["What", "are", "the", "ids", "and", "locations", "of", "all", "circuits", "in", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"France\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"Belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_COLUMNS", "AND_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6029", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.Fname", "=", "``", "David", "''", "AND", "T2.Lname", "=", "``", "Shieber", "''"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value"], "question": "Show total hours per week and number of games played for student David Shieber.", "question_toks": ["Show", "total", "hours", "per", "week", "and", "number", "of", "games", "played", "for", "student", "David", "Shieber", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"David\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_AND_TO_COLUMNS", "AND_IN_NL", "AGGREGATION_MONO", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_in_nl_0064", "db_id": "dorm_1", "query": "select lname from student where sex = \"f\" and city_code = \"bal\" union select lname from student where sex = \"m\" and age < 20", "query_toks": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "``", "f", "''", "AND", "city_code", "=", "``", "bal", "''", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "``", "m", "''", "AND", "age", "<", "20"], "query_toks_no_value": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "value", "AND", "city_code", "=", "value", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "value", "AND", "age", "<", "value"], "question": "What is the last name of every student who is either female and living in a city with the code BAL or male and under 20?", "question_toks": ["What", "is", "the", "last", "name", "of", "every", "student", "who", "is", "either", "female", "and", "living", "in", "a", "city", "with", "the", "code", "BAL", "or", "male", "and", "under", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"bal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null], "and", [false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0803", "db_id": "coffee_shop", "query": "select t1.address , t1.shop_id from shop as t1 join happy_hour as t2 on t1.shop_id = t2.shop_id where month = 'may'", "query_toks": ["SELECT", "t1.address", ",", "t1.shop_id", "FROM", "shop", "AS", "t1", "JOIN", "happy_hour", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "WHERE", "MONTH", "=", "'May", "'"], "query_toks_no_value": ["select", "t1", ".", "address", ",", "t1", ".", "shop_id", "from", "shop", "as", "t1", "join", "happy_hour", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "where", "month", "=", "value"], "question": "What are the id and address of the shops which have a happy hour in May?", "question_toks": ["What", "are", "the", "id", "and", "address", "of", "the", "shops", "which", "have", "a", "happy", "hour", "in", "May", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"May\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4703", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where credits = 1 and hours = 4", "query_toks": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1", "AND", "Hours", "=", "4"], "query_toks_no_value": ["select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value", "and", "hours", "=", "value"], "question": "Find the names of courses that have either 3 credits or 1 credit but 4 hours.", "question_toks": ["Find", "the", "names", "of", "courses", "that", "have", "either", "3", "credits", "or", "1", "credit", "but", "4", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null], "and", [false, 2, [0, [0, 31, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4704", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where credits = 1 and hours = 4", "query_toks": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1", "AND", "Hours", "=", "4"], "query_toks_no_value": ["select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value", "and", "hours", "=", "value"], "question": "What are the names of courses that give either 3 credits, or 1 credit and 4 hours?", "question_toks": ["What", "are", "the", "names", "of", "courses", "that", "give", "either", "3", "credits", ",", "or", "1", "credit", "and", "4", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null], "and", [false, 2, [0, [0, 31, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6125", "db_id": "customers_and_addresses", "query": "select sum(t2.order_quantity) from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.order_date < \"2018-03-17 07:13:53\"", "query_toks": ["SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_date", "<", "``", "2018-03-17", "07:13:53", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value"], "question": "Find the total amount of products ordered before 2018-03-17 07:13:53.", "question_toks": ["Find", "the", "total", "amount", "of", "products", "ordered", "before", "2018-03-17", "07:13:53", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 4, [0, [0, 28, false], null], "\"2018-03-17 07:13:53\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6126", "db_id": "customers_and_addresses", "query": "select sum(t2.order_quantity) from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.order_date < \"2018-03-17 07:13:53\"", "query_toks": ["SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_date", "<", "``", "2018-03-17", "07:13:53", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value"], "question": "What is the total amount of products purchased before 2018-03-17 07:13:53?", "question_toks": ["What", "is", "the", "total", "amount", "of", "products", "purchased", "before", "2018-03-17", "07:13:53", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 4, [0, [0, 28, false], null], "\"2018-03-17 07:13:53\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4759", "db_id": "department_store", "query": "select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.date_assigned_from like \"2016%\"", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.date_assigned_from", "LIKE", "``", "2016", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "value"], "question": "Return the name and gender of the staff who was assigned in 2016.", "question_toks": ["Return", "the", "name", "and", "gender", "of", "the", "staff", "who", "was", "assigned", "in", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 54, false], null], "\"2016%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4760", "db_id": "department_store", "query": "select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.date_assigned_from like \"2016%\"", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.date_assigned_from", "LIKE", "``", "2016", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "value"], "question": "What are the names and genders of staff who were assigned in 2016?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "staff", "who", "were", "assigned", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 54, false], null], "\"2016%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2205", "db_id": "formula_1", "query": "select name from races where time > \"12:00:00\" or time < \"09:00:00\"", "query_toks": ["SELECT", "name", "FROM", "races", "WHERE", "TIME", ">", "``", "12:00:00", "''", "OR", "TIME", "<", "``", "09:00:00", "''"], "query_toks_no_value": ["select", "name", "from", "races", "where", "time", ">", "value", "or", "time", "<", "value"], "question": "What are the names of races held after 12:00:00 or before 09:00:00?", "question_toks": ["What", "are", "the", "names", "of", "races", "held", "after", "12:00:00", "or", "before", "09:00:00", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], "\"12:00:00\"", null], "or", [false, 4, [0, [0, 16, false], null], "\"09:00:00\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2206", "db_id": "formula_1", "query": "select name from races where time > \"12:00:00\" or time < \"09:00:00\"", "query_toks": ["SELECT", "name", "FROM", "races", "WHERE", "TIME", ">", "``", "12:00:00", "''", "OR", "TIME", "<", "``", "09:00:00", "''"], "query_toks_no_value": ["select", "name", "from", "races", "where", "time", ">", "value", "or", "time", "<", "value"], "question": "What are the names of all races that occurred after 12:00:00 or before 09:00:00?", "question_toks": ["What", "are", "the", "names", "of", "all", "races", "that", "occurred", "after", "12:00:00", "or", "before", "09:00:00", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], "\"12:00:00\"", null], "or", [false, 4, [0, [0, 16, false], null], "\"09:00:00\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3429", "db_id": "hr_1", "query": "select job_id , hire_date from employees where hire_date between '2007-11-05' and '2009-07-05'", "query_toks": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees", "WHERE", "hire_date", "BETWEEN", "'2007-11-05", "'", "AND", "'2009-07-05", "'"], "query_toks_no_value": ["select", "job_id", ",", "hire_date", "from", "employees", "where", "hire_date", "between", "value", "and", "value"], "question": "Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.", "question_toks": ["Find", "job", "id", "and", "date", "of", "hire", "for", "those", "employees", "who", "was", "hired", "between", "November", "5th", ",", "2007", "and", "July", "5th", ",", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 1, [0, [0, 19, false], null], "\"2007-11-05\"", "\"2009-07-05\""]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3430", "db_id": "hr_1", "query": "select job_id , hire_date from employees where hire_date between '2007-11-05' and '2009-07-05'", "query_toks": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees", "WHERE", "hire_date", "BETWEEN", "'2007-11-05", "'", "AND", "'2009-07-05", "'"], "query_toks_no_value": ["select", "job_id", ",", "hire_date", "from", "employees", "where", "hire_date", "between", "value", "and", "value"], "question": "What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?", "question_toks": ["What", "are", "the", "job", "ids", "and", "dates", "of", "hire", "for", "employees", "hired", "after", "November", "5th", ",", "2007", "and", "before", "July", "5th", ",", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 1, [0, [0, 19, false], null], "\"2007-11-05\"", "\"2009-07-05\""]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3435", "db_id": "hr_1", "query": "select * from employees where hire_date < '2002-06-21'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", "<", "'2002-06-21", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", "<", "value"], "question": "display all the details from Employees table for those employees who was hired before 2002-06-21.", "question_toks": ["display", "all", "the", "details", "from", "Employees", "table", "for", "those", "employees", "who", "was", "hired", "before", "2002-06-21", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], "\"2002-06-21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3436", "db_id": "hr_1", "query": "select * from employees where hire_date < '2002-06-21'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", "<", "'2002-06-21", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", "<", "value"], "question": "What is all the information about employees hired before June 21, 2002?", "question_toks": ["What", "is", "all", "the", "information", "about", "employees", "hired", "before", "June", "21", ",", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], "\"2002-06-21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3439", "db_id": "hr_1", "query": "select * from employees where hire_date > '1987-09-07'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", ">", "'1987-09-07", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", ">", "value"], "question": "display those employees who joined after 7th September, 1987.", "question_toks": ["display", "those", "employees", "who", "joined", "after", "7th", "September", ",", "1987", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], "\"1987-09-07\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3440", "db_id": "hr_1", "query": "select * from employees where hire_date > '1987-09-07'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", ">", "'1987-09-07", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", ">", "value"], "question": "Which employees were hired after September 7th, 1987?", "question_toks": ["Which", "employees", "were", "hired", "after", "September", "7th", ",", "1987", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], "\"1987-09-07\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3457", "db_id": "hr_1", "query": "select job_id from job_history where end_date - start_date > 300 group by job_id having count(*) >= 2", "query_toks": ["SELECT", "job_id", "FROM", "job_history", "WHERE", "end_date", "-", "start_date", ">", "300", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "job_id", "from", "job_history", "where", "end_date", "-", "start_date", ">", "value", "group", "by", "job_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "display job ID for those jobs that were done by two or more for more than 300 days.", "question_toks": ["display", "job", "ID", "for", "those", "jobs", "that", "were", "done", "by", "two", "or", "more", "for", "more", "than", "300", "days", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 3, [1, [0, 27, false], [0, 26, false]], 300.0, null]], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3458", "db_id": "hr_1", "query": "select job_id from job_history where end_date - start_date > 300 group by job_id having count(*) >= 2", "query_toks": ["SELECT", "job_id", "FROM", "job_history", "WHERE", "end_date", "-", "start_date", ">", "300", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "job_id", "from", "job_history", "where", "end_date", "-", "start_date", ">", "value", "group", "by", "job_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the job ids for jobs done more than once for a period of more than 300 days?", "question_toks": ["What", "are", "the", "job", "ids", "for", "jobs", "done", "more", "than", "once", "for", "a", "period", "of", "more", "than", "300", "days", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 3, [1, [0, 27, false], [0, 26, false]], 300.0, null]], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2584", "db_id": "inn_1", "query": "select adults from reservations where checkin = \"2010-10-23\" and firstname = \"conrad\" and lastname = \"selbig\";", "query_toks": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-10-23", "''", "AND", "FirstName", "=", "``", "CONRAD", "''", "AND", "LastName", "=", "``", "SELBIG", "''", ";"], "query_toks_no_value": ["select", "adults", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?", "question_toks": ["How", "many", "adults", "stay", "in", "the", "room", "CONRAD", "SELBIG", "checked", "in", "on", "Oct", "23", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-10-23\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"CONRAD\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SELBIG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HOW_MANY_NOTHING", "DATETIME", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2585", "db_id": "inn_1", "query": "select adults from reservations where checkin = \"2010-10-23\" and firstname = \"conrad\" and lastname = \"selbig\";", "query_toks": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-10-23", "''", "AND", "FirstName", "=", "``", "CONRAD", "''", "AND", "LastName", "=", "``", "SELBIG", "''", ";"], "query_toks_no_value": ["select", "adults", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.", "question_toks": ["Find", "the", "number", "of", "adults", "for", "the", "room", "reserved", "and", "checked", "in", "by", "CONRAD", "SELBIG", "on", "Oct", "23", ",", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-10-23\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"CONRAD\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SELBIG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2586", "db_id": "inn_1", "query": "select kids from reservations where checkin = \"2010-09-21\" and firstname = \"damien\" and lastname = \"trachsel\";", "query_toks": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-09-21", "''", "AND", "FirstName", "=", "``", "DAMIEN", "''", "AND", "LastName", "=", "``", "TRACHSEL", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?", "question_toks": ["How", "many", "kids", "stay", "in", "the", "room", "DAMIEN", "TRACHSEL", "checked", "in", "on", "Sep", "21", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-09-21\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"DAMIEN\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"TRACHSEL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HOW_MANY_NOTHING", "DATETIME", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2587", "db_id": "inn_1", "query": "select kids from reservations where checkin = \"2010-09-21\" and firstname = \"damien\" and lastname = \"trachsel\";", "query_toks": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-09-21", "''", "AND", "FirstName", "=", "``", "DAMIEN", "''", "AND", "LastName", "=", "``", "TRACHSEL", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on Sep 21, 2010.", "question_toks": ["Return", "the", "number", "of", "kids", "for", "the", "room", "reserved", "and", "checked", "in", "by", "DAMIEN", "TRACHSEL", "on", "Sep", "21", ",", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-09-21\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"DAMIEN\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"TRACHSEL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4851", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id , t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = 'close' or t1.date_and_date < '2017-06-19 02:59:21'", "query_toks": ["SELECT", "DISTINCT", "T2.thing_id", ",", "T2.Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1.thing_id", "=", "T2.thing_id", "WHERE", "T1.Status_of_Thing_Code", "=", "'Close", "'", "OR", "T1.Date_and_Date", "<", "'2017-06-19", "02:59:21", "'"], "query_toks_no_value": ["select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "value", "or", "t1", ".", "date_and_date", "<", "value"], "question": "What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'", "question_toks": ["What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'Close", "'", "or", "has", "a", "status", "record", "before", "the", "date", "'2017-06-19", "02:59:21", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"Close\"", null], "or", [false, 4, [0, [0, 44, false], null], "\"2017-06-19 02:59:21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3545", "db_id": "music_1", "query": "select count(*) from files where duration like \"4:%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "files", "WHERE", "duration", "LIKE", "``", "4", ":", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "files", "where", "duration", "like", "value"], "question": "How many songs have 4 minute duration?", "question_toks": ["How", "many", "songs", "have", "4", "minute", "duration", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3546", "db_id": "music_1", "query": "select count(*) from files where duration like \"4:%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "files", "WHERE", "duration", "LIKE", "``", "4", ":", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "files", "where", "duration", "like", "value"], "question": "What is the count of the songs that last approximately 4 minutes?", "question_toks": ["What", "is", "the", "count", "of", "the", "songs", "that", "last", "approximately", "4", "minutes", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3575", "db_id": "music_1", "query": "select t1.artist_name , t1.gender from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.releasedate like \"%mar%\"", "query_toks": ["SELECT", "T1.artist_name", ",", "T1.gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.releasedate", "LIKE", "``", "%", "Mar", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "value"], "question": "List the name and gender for all artists who released songs in March.", "question_toks": ["List", "the", "name", "and", "gender", "for", "all", "artists", "who", "released", "songs", "in", "March", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 20, false], null], "\"%Mar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3576", "db_id": "music_1", "query": "select t1.artist_name , t1.gender from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.releasedate like \"%mar%\"", "query_toks": ["SELECT", "T1.artist_name", ",", "T1.gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.releasedate", "LIKE", "``", "%", "Mar", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "value"], "question": "What are the names and genders of all artists who released songs in the month of March?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "all", "artists", "who", "released", "songs", "in", "the", "month", "of", "March", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 20, false], null], "\"%Mar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3583", "db_id": "music_1", "query": "select t2.song_name from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"4:%\" union select song_name from song where languages = \"english\"", "query_toks": ["SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "4", ":", "%", "''", "UNION", "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", "union", "select", "song_name", "from", "song", "where", "languages", "=", "value"], "question": "List the names of all songs that have 4 minute duration or are in English.", "question_toks": ["List", "the", "names", "of", "all", "songs", "that", "have", "4", "minute", "duration", "or", "are", "in", "English", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3584", "db_id": "music_1", "query": "select t2.song_name from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"4:%\" union select song_name from song where languages = \"english\"", "query_toks": ["SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "4", ":", "%", "''", "UNION", "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", "union", "select", "song_name", "from", "song", "where", "languages", "=", "value"], "question": "What are the names of all songs that are approximately 4 minutes long or are in English?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "are", "approximately", "4", "minutes", "long", "or", "are", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4320", "db_id": "tracking_grants_for_research", "query": "select t1.grant_amount from grants as t1 join documents as t2 on t1.grant_id = t2.grant_id where t2.sent_date < '1986-08-26 20:49:27' intersect select grant_amount from grants where grant_end_date > '1989-03-16 18:27:16'", "query_toks": ["SELECT", "T1.grant_amount", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "WHERE", "T2.sent_date", "<", "'1986-08-26", "20:49:27", "'", "INTERSECT", "SELECT", "grant_amount", "FROM", "grants", "WHERE", "grant_end_date", ">", "'1989-03-16", "18:27:16", "'"], "query_toks_no_value": ["select", "t1", ".", "grant_amount", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "where", "t2", ".", "sent_date", "<", "value", "intersect", "select", "grant_amount", "from", "grants", "where", "grant_end_date", ">", "value"], "question": "What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?", "question_toks": ["What", "are", "the", "distinct", "grant", "amount", "for", "the", "grants", "where", "the", "documents", "were", "sent", "before", "'1986-08-26", "20:49:27", "'", "and", "grant", "were", "ended", "after", "'1989-03-16", "18:27:16", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], "\"1986-08-26 20:49:27\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], "\"1989-03-16 18:27:16\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4321", "db_id": "tracking_grants_for_research", "query": "select t1.grant_amount from grants as t1 join documents as t2 on t1.grant_id = t2.grant_id where t2.sent_date < '1986-08-26 20:49:27' intersect select grant_amount from grants where grant_end_date > '1989-03-16 18:27:16'", "query_toks": ["SELECT", "T1.grant_amount", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "WHERE", "T2.sent_date", "<", "'1986-08-26", "20:49:27", "'", "INTERSECT", "SELECT", "grant_amount", "FROM", "grants", "WHERE", "grant_end_date", ">", "'1989-03-16", "18:27:16", "'"], "query_toks_no_value": ["select", "t1", ".", "grant_amount", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "where", "t2", ".", "sent_date", "<", "value", "intersect", "select", "grant_amount", "from", "grants", "where", "grant_end_date", ">", "value"], "question": "What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'?", "question_toks": ["What", "are", "the", "different", "grant", "amounts", "for", "documents", "sent", "before", "'1986-08-26", "20:49:27", "'", "and", "after", "the", "grant", "ended", "on", "'1989-03-16", "18:27:16", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], "\"1986-08-26 20:49:27\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], "\"1989-03-16 18:27:16\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4376", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code = 'leader' or date_from < '1989-04-24 23:51:54'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'", "OR", "date_from", "<", "'1989-04-24", "23:51:54", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "project_staff", "where", "role_code", "=", "value", "or", "date_from", "<", "value"], "question": "How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?", "question_toks": ["How", "many", "project", "staff", "worked", "as", "leaders", "or", "started", "working", "before", "'1989-04-24", "23:51:54", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null], "or", [false, 4, [0, [0, 26, false], null], "\"1989-04-24 23:51:54\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4377", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code = 'leader' or date_from < '1989-04-24 23:51:54'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'", "OR", "date_from", "<", "'1989-04-24", "23:51:54", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "project_staff", "where", "role_code", "=", "value", "or", "date_from", "<", "value"], "question": "How many project members were leaders or started working before '1989-04-24 23:51:54'?", "question_toks": ["How", "many", "project", "members", "were", "leaders", "or", "started", "working", "before", "'1989-04-24", "23:51:54", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null], "or", [false, 4, [0, [0, 26, false], null], "\"1989-04-24 23:51:54\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4392", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff where date_from > '2003-04-19 15:06:20' and date_to < '2016-03-15 00:33:18'", "query_toks": ["SELECT", "role_code", "FROM", "Project_Staff", "WHERE", "date_from", ">", "'2003-04-19", "15:06:20", "'", "AND", "date_to", "<", "'2016-03-15", "00:33:18", "'"], "query_toks_no_value": ["select", "role_code", "from", "project_staff", "where", "date_from", ">", "value", "and", "date_to", "<", "value"], "question": "What are the staff roles of the staff who", "question_toks": ["What", "are", "the", "staff", "roles", "of", "the", "staff", "who"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 3, [0, [0, 26, false], null], "\"2003-04-19 15:06:20\"", null], "and", [false, 4, [0, [0, 27, false], null], "\"2016-03-15 00:33:18\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4393", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff where date_from > '2003-04-19 15:06:20' and date_to < '2016-03-15 00:33:18'", "query_toks": ["SELECT", "role_code", "FROM", "Project_Staff", "WHERE", "date_from", ">", "'2003-04-19", "15:06:20", "'", "AND", "date_to", "<", "'2016-03-15", "00:33:18", "'"], "query_toks_no_value": ["select", "role_code", "from", "project_staff", "where", "date_from", ">", "value", "and", "date_to", "<", "value"], "question": "What roles did staff members play between '2003-04-19 15:06:20' and '2016-03-15 00:33:18'?", "question_toks": ["What", "roles", "did", "staff", "members", "play", "between", "'2003-04-19", "15:06:20", "'", "and", "'2016-03-15", "00:33:18", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 3, [0, [0, 26, false], null], "\"2003-04-19 15:06:20\"", null], "and", [false, 4, [0, [0, 27, false], null], "\"2016-03-15 00:33:18\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6905", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.date_order_placed >= \"2009-01-01\" and t2.date_order_placed <= \"2010-01-01\"", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.date_order_placed", ">", "=", "``", "2009-01-01", "''", "AND", "T2.date_order_placed", "<", "=", "``", "2010-01-01", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "date_order_placed", ">", "=", "value", "and", "t2", ".", "date_order_placed", "<", "=", "value"], "question": "Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.", "question_toks": ["Give", "me", "the", "names", "of", "customers", "who", "have", "placed", "orders", "between", "2009-01-01", "and", "2010-01-01", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"2009-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"2010-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6906", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.date_order_placed >= \"2009-01-01\" and t2.date_order_placed <= \"2010-01-01\"", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.date_order_placed", ">", "=", "``", "2009-01-01", "''", "AND", "T2.date_order_placed", "<", "=", "``", "2010-01-01", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "date_order_placed", ">", "=", "value", "and", "t2", ".", "date_order_placed", "<", "=", "value"], "question": "Which customers made orders between 2009-01-01 and 2010-01-01? Find their names.", "question_toks": ["Which", "customers", "made", "orders", "between", "2009-01-01", "and", "2010-01-01", "?", "Find", "their", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"2009-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"2010-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6907", "db_id": "tracking_orders", "query": "select distinct t2.product_id from orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.date_order_placed >= \"1975-01-01\" and t1.date_order_placed <= \"1976-01-01\"", "query_toks": ["SELECT", "DISTINCT", "T2.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T1.date_order_placed", ">", "=", "``", "1975-01-01", "''", "AND", "T1.date_order_placed", "<", "=", "``", "1976-01-01", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "date_order_placed", ">", "=", "value", "and", "t1", ".", "date_order_placed", "<", "=", "value"], "question": "Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?", "question_toks": ["Give", "me", "a", "list", "of", "distinct", "product", "ids", "from", "orders", "placed", "between", "1975-01-01", "and", "1976-01-01", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"1975-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"1976-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6908", "db_id": "tracking_orders", "query": "select distinct t2.product_id from orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.date_order_placed >= \"1975-01-01\" and t1.date_order_placed <= \"1976-01-01\"", "query_toks": ["SELECT", "DISTINCT", "T2.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T1.date_order_placed", ">", "=", "``", "1975-01-01", "''", "AND", "T1.date_order_placed", "<", "=", "``", "1976-01-01", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "date_order_placed", ">", "=", "value", "and", "t1", ".", "date_order_placed", "<", "=", "value"], "question": "What are the distinct ids of products ordered between 1975-01-01 and 1976-01-01??", "question_toks": ["What", "are", "the", "distinct", "ids", "of", "products", "ordered", "between", "1975-01-01", "and", "1976-01-01", "?", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"1975-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"1976-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6921", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date > \"2000-01-01\"", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", ">", "``", "2000-01-01", "''"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", ">", "value"], "question": "Find the ids of orders which are shipped after 2000-01-01.", "question_toks": ["Find", "the", "ids", "of", "orders", "which", "are", "shipped", "after", "2000-01-01", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], "\"2000-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6922", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date > \"2000-01-01\"", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", ">", "``", "2000-01-01", "''"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", ">", "value"], "question": "Which orders have shipment after 2000-01-01? Give me the order ids.", "question_toks": ["Which", "orders", "have", "shipment", "after", "2000-01-01", "?", "Give", "me", "the", "order", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], "\"2000-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6933", "db_id": "tracking_orders", "query": "select invoice_number from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "invoice_number", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "invoice_number", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.", "question_toks": ["Find", "the", "invoice", "numbers", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6934", "db_id": "tracking_orders", "query": "select invoice_number from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "invoice_number", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "invoice_number", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "What are the invoice numbers created before 1989-09-03 or after 2007-12-25?", "question_toks": ["What", "are", "the", "invoice", "numbers", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6935", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "distinct", "invoice_details", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.", "question_toks": ["Find", "the", "distinct", "details", "of", "invoices", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6936", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "distinct", "invoice_details", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?", "question_toks": ["What", "are", "the", "distinct", "details", "of", "invoices", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5372", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported > \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", ">", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", ">", "value"], "question": "What are the ids of the problems which are reported after 1978-06-26?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "which", "are", "reported", "after", "1978-06-26", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5373", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported > \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", ">", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", ">", "value"], "question": "Find the ids of the problems reported after 1978-06-26.", "question_toks": ["Find", "the", "ids", "of", "the", "problems", "reported", "after", "1978-06-26", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5374", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported < \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", "<", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", "<", "value"], "question": "What are the ids of the problems which are reported before 1978-06-26?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "which", "are", "reported", "before", "1978-06-26", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5375", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported < \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", "<", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", "<", "value"], "question": "Which problems are reported before 1978-06-26? Give me the ids of the problems.", "question_toks": ["Which", "problems", "are", "reported", "before", "1978-06-26", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5378", "db_id": "tracking_software_problems", "query": "select count(*) , t2.product_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t1.date_problem_reported > \"1986-11-13\" group by t2.product_id", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "T2.product_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.date_problem_reported", ">", "``", "1986-11-13", "''", "GROUP", "BY", "T2.product_id"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "t2", ".", "product_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "date_problem_reported", ">", "value", "group", "by", "t2", ".", "product_id"], "question": "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?", "question_toks": ["For", "each", "product", "that", "has", "problems", ",", "find", "the", "number", "of", "problems", "reported", "after", "1986-11-13", "and", "the", "product", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 25, false], null], "\"1986-11-13\"", null]], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5394", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\" and t1.date_problem_reported > \"1995\"", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T2.product_name", "=", "``", "voluptatem", "''", "AND", "T1.date_problem_reported", ">", "``", "1995", "''"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value", "and", "t1", ".", "date_problem_reported", ">", "value"], "question": "List the ids of the problems from the product \"voluptatem\" that are reported after 1995?", "question_toks": ["List", "the", "ids", "of", "the", "problems", "from", "the", "product", "``", "voluptatem", "''", "that", "are", "reported", "after", "1995", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null], "and", [false, 3, [0, [0, 25, false], null], "\"1995\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5395", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\" and t1.date_problem_reported > \"1995\"", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T2.product_name", "=", "``", "voluptatem", "''", "AND", "T1.date_problem_reported", ">", "``", "1995", "''"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value", "and", "t1", ".", "date_problem_reported", ">", "value"], "question": "What are the ids of the problems that are from the product \"voluptatem\" and are reported after 1995?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "that", "are", "from", "the", "product", "``", "voluptatem", "''", "and", "are", "reported", "after", "1995", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null], "and", [false, 3, [0, [0, 25, false], null], "\"1995\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0770", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "DATETIME", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0771", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "For the countries founded before 1930, what is the total number of distinct official languages?", "question_toks": ["For", "the", "countries", "founded", "before", "1930", ",", "what", "is", "the", "total", "number", "of", "distinct", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "DATETIME", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0000", "db_id": "aircraft", "query": "select country from match where date like \"%march%\"", "query_toks": ["SELECT", "Country", "FROM", "match", "WHERE", "Date", "LIKE", "\"%", "march", "%\""], "query_toks_no_value": ["SELECT", "Country", "FROM", "match", "WHERE", "Date", "LIKE", "\"%", "march", "%\""], "question": "In which countries are aircraft matches held in March?", "question_toks": ["In", "which", "countries", "are", "aircraft", "matches", "held", "in", "March", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 13, false], null], "\"%march%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0001", "db_id": "apartment_rentals", "query": "select distinct(apt_booking_id) from view_unit_status where status_date = \"2015-07-15 11:06:29\"", "query_toks": ["SELECT", "DISTINCT", "(", "apt_booking_id", ")", "FROM", "View_Unit_Status", "WHERE", "status_date", "=", "``", "2015", "-", "07", "-", "15", "11", ":", "06", ":", "29", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "apt_booking_id", ")", "FROM", "View_Unit_Status", "WHERE", "status_date", "=", "value", "-", "07", "-", "15", "11", ":", "06", ":", "29"], "question": "List all booking ID that became available at 2015-07-15 11:06:29", "question_toks": ["List", "all", "booking", "ID", "that", "became", "available", "at", "2015", "-", "07", "-", "15", "11", ":", "06", ":", "29"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"2015-07-15 11:06:29\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0002", "db_id": "assets_maintenance", "query": "select distinct(engineer_id), visit_end_datetime from engineer_visits where visit_end_datetime like \"%21:%\" or visit_end_datetime like \"%22:%\" or visit_end_datetime like \"%23:%\" group by visit_end_datetime", "query_toks": ["SELECT", "DISTINCT", "(", "engineer_id", "),", "visit_end_datetime", "FROM", "Engineer_Visits", "WHERE", "visit_end_datetime", "LIKE", "\"%", "21", ":%\"", "OR", "visit_end_datetime", "LIKE", "\"%", "22", ":%\"", "OR", "visit_end_datetime", "LIKE", "\"%", "23", ":%\"", "GROUP", "BY", "visit_end_datetime"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "engineer_id", "),", "visit_end_datetime", "FROM", "Engineer_Visits", "WHERE", "visit_end_datetime", "LIKE", "\"%", "21", ":%\"", "OR", "visit_end_datetime", "LIKE", "\"%", "22", ":%\"", "OR", "visit_end_datetime", "LIKE", "\"%", "23", ":%\"", "GROUP", "BY", "visit_end_datetime"], "question": "Output the start times and id of all engineers who have ever begun their visit after 21:00", "question_toks": ["Output", "the", "start", "times", "and", "id", "of", "all", "engineers", "who", "have", "ever", "begun", "their", "visit", "after", "21", ":", "00"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [true, [[0, [0, [0, 49, false], null]], [0, [0, [0, 53, false], null]]]], "where": [[false, 9, [0, [0, 53, false], null], "\"%21:%\"", null], "or", [false, 9, [0, [0, 53, false], null], "\"%22:%\"", null], "or", [false, 9, [0, [0, 53, false], null], "\"%23:%\"", null]], "groupBy": [[0, 53, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0003", "db_id": "battle_death", "query": "select distinct(latin_commander) from battle where date like \"%april%\" and date like \"%1205%\"", "query_toks": ["SELECT", "DISTINCT", "(", "latin_commander", ")", "FROM", "battle", "WHERE", "Date", "LIKE", "\"%", "april", "%\"", "AND", "Date", "LIKE", "\"%", "1205", "%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "latin_commander", ")", "FROM", "battle", "WHERE", "Date", "LIKE", "\"%", "april", "%\"", "AND", "Date", "LIKE", "\"%", "1205", "%\""], "question": "Which of the Latin commanders participated in the battles in April 1205?", "question_toks": ["Which", "of", "the", "Latin", "commanders", "participated", "in", "the", "battles", "in", "April", "1205", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%april%\"", null], "and", [false, 9, [0, [0, 3, false], null], "\"%1205%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0004", "db_id": "battle_death", "query": "select count(distinct id) from battle where date like \"%1205%\" or date like \"%1206%\" or date like \"%1207%\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "battle", "WHERE", "Date", "LIKE", "\"%", "1205", "%\"", "OR", "Date", "LIKE", "\"%", "1206", "%\"", "OR", "Date", "LIKE", "\"%", "1207", "%\""], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "battle", "WHERE", "Date", "LIKE", "\"%", "1205", "%\"", "OR", "Date", "LIKE", "\"%", "1206", "%\"", "OR", "Date", "LIKE", "\"%", "1207", "%\""], "question": "How many battles were fought between 1205 and 1207 inclusive?", "question_toks": ["How", "many", "battles", "were", "fought", "between", "1205", "and", "1207", "inclusive", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%1205%\"", null], "or", [false, 9, [0, [0, 3, false], null], "\"%1206%\"", null], "or", [false, 9, [0, [0, 3, false], null], "\"%1207%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0005", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes where date_of_notes like \"%2005-06-30%\"", "query_toks": ["SELECT", "notes_id", "FROM", "Assessment_Notes", "WHERE", "date_of_notes", "LIKE", "\"%", "2005", "-", "06", "-", "30", "%\""], "query_toks_no_value": ["SELECT", "notes_id", "FROM", "Assessment_Notes", "WHERE", "date_of_notes", "LIKE", "\"%", "2005", "-", "06", "-", "30", "%\""], "question": "Show the id of the notes made on June 30, 2005", "question_toks": ["Show", "the", "id", "of", "the", "notes", "made", "on", "June", "30", ",", "2005"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 9, [0, [0, 38, false], null], "\"%2005-06-30%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0006", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes where date_of_notes like \"%2005-06-30%\"", "query_toks": ["SELECT", "notes_id", "FROM", "Assessment_Notes", "WHERE", "date_of_notes", "LIKE", "\"%", "2005", "-", "06", "-", "30", "%\""], "query_toks_no_value": ["SELECT", "notes_id", "FROM", "Assessment_Notes", "WHERE", "date_of_notes", "LIKE", "\"%", "2005", "-", "06", "-", "30", "%\""], "question": "ID of the notes made on 30th June, 2005", "question_toks": ["ID", "of", "the", "notes", "made", "on", "30th", "June", ",", "2005"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 9, [0, [0, 38, false], null], "\"%2005-06-30%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0007", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes where date_of_notes like \"%2005-06-30%\"", "query_toks": ["SELECT", "notes_id", "FROM", "Assessment_Notes", "WHERE", "date_of_notes", "LIKE", "\"%", "2005", "-", "06", "-", "30", "%\""], "query_toks_no_value": ["SELECT", "notes_id", "FROM", "Assessment_Notes", "WHERE", "date_of_notes", "LIKE", "\"%", "2005", "-", "06", "-", "30", "%\""], "question": "What the id of the notes made on June the 30th, 2005", "question_toks": ["What", "the", "id", "of", "the", "notes", "made", "on", "June", "the", "30th", ",", "2005"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 9, [0, [0, 38, false], null], "\"%2005-06-30%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0011", "db_id": "cinema", "query": "select title from film where original_air_date = \"september 21\u201325, 1992\"", "query_toks": ["SELECT", "Title", "FROM", "film", "WHERE", "Original_air_date", "=", "``", "september", "21", "\u2013", "25", ",", "1992", "''"], "query_toks_no_value": ["SELECT", "Title", "FROM", "film", "WHERE", "Original_air_date", "=", "value", "21", "\u2013", "25", ",", "1992"], "question": "Title of the film, released from September 21 to September 25, 1992", "question_toks": ["Title", "of", "the", "film", ",", "released", "from", "September", "21", "to", "September", "25", ",", "1992"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"september 21\u201325, 1992\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0012", "db_id": "cinema", "query": "select title from film where original_air_date = \"september 21\u201325, 1992\"", "query_toks": ["SELECT", "Title", "FROM", "film", "WHERE", "Original_air_date", "=", "``", "september", "21", "\u2013", "25", ",", "1992", "''"], "query_toks_no_value": ["SELECT", "Title", "FROM", "film", "WHERE", "Original_air_date", "=", "value", "21", "\u2013", "25", ",", "1992"], "question": "Title of the film with original air date from 21 to 25 of September 1992", "question_toks": ["Title", "of", "the", "film", "with", "original", "air", "date", "from", "21", "to", "25", "of", "September", "1992"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"september 21\u201325, 1992\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0013", "db_id": "cinema", "query": "select distinct(title) from film where original_air_date like \"%october%\"", "query_toks": ["SELECT", "DISTINCT", "(", "Title", ")", "FROM", "film", "WHERE", "Original_air_date", "LIKE", "\"%", "october", "%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Title", ")", "FROM", "film", "WHERE", "Original_air_date", "LIKE", "\"%", "october", "%\""], "question": "What are the titles of the films released in October?", "question_toks": ["What", "are", "the", "titles", "of", "the", "films", "released", "in", "October", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%october%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0014", "db_id": "cinema", "query": "select avg(show_times_per_day) from schedule where date like \"%july%\"", "query_toks": ["SELECT", "AVG", "(", "Show_times_per_day", ")", "FROM", "schedule", "WHERE", "Date", "LIKE", "\"%", "july", "%\""], "query_toks_no_value": ["SELECT", "AVG", "(", "Show_times_per_day", ")", "FROM", "schedule", "WHERE", "Date", "LIKE", "\"%", "july", "%\""], "question": "How many times per day are scheduled movies shown on average in July?", "question_toks": ["How", "many", "times", "per", "day", "are", "scheduled", "movies", "shown", "on", "average", "in", "July", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%july%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0016", "db_id": "coffee_shop", "query": "select distinct(address) from shop join happy_hour on shop.shop_id = happy_hour.shop_id where month = \"april\"", "query_toks": ["SELECT", "DISTINCT", "(", "Address", ")", "FROM", "shop", "JOIN", "happy_hour", "ON", "shop", ".", "Shop_ID", "=", "happy_hour", ".", "Shop_ID", "WHERE", "Month", "=", "``", "april", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Address", ")", "FROM", "shop", "JOIN", "happy_hour", "ON", "shop", ".", "Shop_ID", "=", "happy_hour", ".", "Shop_ID", "WHERE", "Month", "=", "value"], "question": "Addresses of shops where happy hour took place in April", "question_toks": ["Addresses", "of", "shops", "where", "happy", "hour", "took", "place", "in", "April"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"april\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0017", "db_id": "coffee_shop", "query": "select avg(num_of_shaff_in_charge) from happy_hour where month = \"may\"", "query_toks": ["SELECT", "AVG", "(", "Num_of_shaff_in_charge", ")", "FROM", "happy_hour", "WHERE", "Month", "=", "``", "may", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "Num_of_shaff_in_charge", ")", "FROM", "happy_hour", "WHERE", "Month", "=", "value"], "question": "Average number of staff in May", "question_toks": ["Average", "number", "of", "staff", "in", "May"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"may\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0018", "db_id": "college_1", "query": "select distinct(class_code) from class where class_time like \"%mwf%\"", "query_toks": ["SELECT", "DISTINCT", "(", "CLASS_CODE", ")", "FROM", "CLASS", "WHERE", "CLASS_TIME", "LIKE", "\"%", "mwf", "%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "CLASS_CODE", ")", "FROM", "CLASS", "WHERE", "CLASS_TIME", "LIKE", "\"%", "mwf", "%\""], "question": "Class Codes that run on Mondays, Wednesdays, and Fridays", "question_toks": ["Class", "Codes", "that", "run", "on", "Mondays", ",", "Wednesdays", ",", "and", "Fridays"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%mwf%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0019", "db_id": "college_1", "query": "select distinct(class_room) from class where class_time like \"%8:00-8:50 a.m.%\"", "query_toks": ["SELECT", "DISTINCT", "(", "CLASS_ROOM", ")", "FROM", "CLASS", "WHERE", "CLASS_TIME", "LIKE", "\"%", "8", ":", "00", "-", "8", ":", "50", "a", ".", "m", ".%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "CLASS_ROOM", ")", "FROM", "CLASS", "WHERE", "CLASS_TIME", "LIKE", "\"%", "8", ":", "00", "-", "8", ":", "50", "a", ".", "m", ".%\""], "question": "In what classrooms are classes held from 8 am to 9 am?", "question_toks": ["In", "what", "classrooms", "are", "classes", "held", "from", "8", "am", "to", "9", "am", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%8:00-8:50 a.m.%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0020", "db_id": "college_1", "query": "select distinct(stu_fname) from student where stu_dob like \"%1975%\"", "query_toks": ["SELECT", "DISTINCT", "(", "STU_FNAME", ")", "FROM", "STUDENT", "WHERE", "STU_DOB", "LIKE", "\"%", "1975", "%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "STU_FNAME", ")", "FROM", "STUDENT", "WHERE", "STU_DOB", "LIKE", "\"%", "1975", "%\""], "question": "Surnames of students born in 1975", "question_toks": ["Surnames", "of", "students", "born", "in", "1975"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 34, false], null]]]], "where": [[false, 9, [0, [0, 36, false], null], "\"%1975%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0023", "db_id": "course_teach", "query": "select count(distinct course_id) from course where staring_date like \"%may%\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "Course_ID", ")", "FROM", "Course", "WHERE", "Staring_Date", "LIKE", "\"%", "may", "%\""], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "Course_ID", ")", "FROM", "Course", "WHERE", "Staring_Date", "LIKE", "\"%", "may", "%\""], "question": "Amount of courses started in May", "question_toks": ["Amount", "of", "courses", "started", "in", "May"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%may%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0024", "db_id": "course_teach", "query": "select distinct(course) from course where staring_date = \"14 may\"", "query_toks": ["SELECT", "DISTINCT", "(", "Course", ")", "FROM", "Course", "WHERE", "Staring_Date", "=", "``", "14", "may", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Course", ")", "FROM", "Course", "WHERE", "Staring_Date", "=", "value", "may"], "question": "Show me names of the courses started at the 14th of May", "question_toks": ["Show", "me", "names", "of", "the", "courses", "started", "at", "the", "14th", "of", "May"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"14 may\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0025", "db_id": "course_teach", "query": "select min(grade) from course_arrange join course on course_arrange.course_id = course.course_id where staring_date like \"%9 may%\"", "query_toks": ["SELECT", "MIN", "(", "Grade", ")", "FROM", "course_arrange", "JOIN", "Course", "ON", "course_arrange", ".", "Course_ID", "=", "Course", ".", "Course_ID", "WHERE", "Staring_Date", "LIKE", "\"%", "9", "may", "%\""], "query_toks_no_value": ["SELECT", "MIN", "(", "Grade", ")", "FROM", "course_arrange", "JOIN", "Course", "ON", "course_arrange", ".", "Course_ID", "=", "Course", ".", "Course_ID", "WHERE", "Staring_Date", "LIKE", "\"%", "9", "may", "%\""], "question": "What is the minimum grade for the May 9 course?", "question_toks": ["What", "is", "the", "minimum", "grade", "for", "the", "May", "9", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[2, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%9 may%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0026", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents where receipt_date like \"%2008%\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents", "WHERE", "receipt_date", "LIKE", "\"%", "2008", "%\""], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents", "WHERE", "receipt_date", "LIKE", "\"%", "2008", "%\""], "question": "Total number of documents received in 2008", "question_toks": ["Total", "number", "of", "documents", "received", "in", "2008"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [[false, 9, [0, [0, 16, false], null], "\"%2008%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0027", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed where mailing_date like \"%-11-%\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed", "WHERE", "mailing_date", "LIKE", "\"%-", "11", "-%\""], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed", "WHERE", "mailing_date", "LIKE", "\"%-", "11", "-%\""], "question": "Number of documents mailed in November", "question_toks": ["Number", "of", "documents", "mailed", "in", "November"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [[false, 9, [0, [0, 35, false], null], "\"%-11-%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0028", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed where mailing_date like \"%-05-%\" and mailing_date like \"%1993%\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed", "WHERE", "mailing_date", "LIKE", "\"%-", "05", "-%\"", "AND", "mailing_date", "LIKE", "\"%", "1993", "%\""], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed", "WHERE", "mailing_date", "LIKE", "\"%-", "05", "-%\"", "AND", "mailing_date", "LIKE", "\"%", "1993", "%\""], "question": "How many documents were mailed in the fifth month of 1993?", "question_toks": ["How", "many", "documents", "were", "mailed", "in", "the", "fifth", "month", "of", "1993", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [[false, 9, [0, [0, 35, false], null], "\"%-05-%\"", null], "and", [false, 9, [0, [0, 35, false], null], "\"%1993%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0029", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed where mailing_date like \"%05%\" and mailing_date like \"%1993%\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed", "WHERE", "mailing_date", "LIKE", "\"%", "05", "%\"", "AND", "mailing_date", "LIKE", "\"%", "1993", "%\""], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "document_id", ")", "FROM", "Documents_Mailed", "WHERE", "mailing_date", "LIKE", "\"%", "05", "%\"", "AND", "mailing_date", "LIKE", "\"%", "1993", "%\""], "question": "How many documents were sent in May 1993?", "question_toks": ["How", "many", "documents", "were", "sent", "in", "May", "1993", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [[false, 9, [0, [0, 35, false], null], "\"%05%\"", null], "and", [false, 9, [0, [0, 35, false], null], "\"%1993%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0030", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where date_effective_from like \"%2005%\" and date_effective_to like \"%2008%\"", "query_toks": ["SELECT", "Template_ID", "FROM", "Templates", "WHERE", "Date_Effective_From", "LIKE", "\"%", "2005", "%\"", "AND", "Date_Effective_TO", "LIKE", "\"%", "2008", "%\""], "query_toks_no_value": ["SELECT", "Template_ID", "FROM", "Templates", "WHERE", "Date_Effective_From", "LIKE", "\"%", "2005", "%\"", "AND", "Date_Effective_TO", "LIKE", "\"%", "2008", "%\""], "question": "Id of templates effective from 2005 to 2008", "question_toks": ["Id", "of", "templates", "effective", "from", "2005", "to", "2008"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2005%\"", null], "and", [false, 9, [0, [0, 7, false], null], "\"%2008%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0031", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where date_effective_from like \"%2005-11-12%\" and date_effective_to like \"%2008-01-05%\"", "query_toks": ["SELECT", "Template_ID", "FROM", "Templates", "WHERE", "Date_Effective_FROM", "LIKE", "\"%", "2005", "-", "11", "-", "12", "%\"", "AND", "Date_Effective_TO", "LIKE", "\"%", "2008", "-", "01", "-", "05", "%\""], "query_toks_no_value": ["SELECT", "Template_ID", "FROM", "Templates", "WHERE", "Date_Effective_FROM", "LIKE", "\"%", "2005", "-", "11", "-", "12", "%\"", "AND", "Date_Effective_TO", "LIKE", "\"%", "2008", "-", "01", "-", "05", "%\""], "question": "What are the IDs of templates effective from 2005-11-12 to 2008-01-05?", "question_toks": ["What", "are", "the", "IDs", "of", "templates", "effective", "from", "2005", "-", "11", "-", "12", "to", "2008", "-", "01", "-", "05", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2005-11-12%\"", null], "and", [false, 9, [0, [0, 7, false], null], "\"%2008-01-05%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0032", "db_id": "cre_Doc_Template_Mgt", "query": "select count(distinct template_id) from templates where date_effective_from like \"%2010%\" or date_effective_from like \"%2011%\" or date_effective_from like \"%2012%\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Template_ID", ")", "FROM", "Templates", "WHERE", "Date_Effective_From", "LIKE", "\"%", "2010", "%\"", "OR", "Date_Effective_From", "LIKE", "\"%", "2011", "%\"", "OR", "Date_Effective_From", "LIKE", "\"%", "2012", "%\""], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "Template_ID", ")", "FROM", "Templates", "WHERE", "Date_Effective_From", "LIKE", "\"%", "2010", "%\"", "OR", "Date_Effective_From", "LIKE", "\"%", "2011", "%\"", "OR", "Date_Effective_From", "LIKE", "\"%", "2012", "%\""], "question": "Number of templates that became effective between 2010 and 2012", "question_toks": ["Number", "of", "templates", "that", "became", "effective", "between", "2010", "and", "2012"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2010%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%2011%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%2012%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0035", "db_id": "customers_and_addresses", "query": "select sum(t2.order_quantity) from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.order_date < \"2015-03-17 00:00:00.\"", "query_toks": ["SELECT", "sum", "(", "t2", ".", "order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1", ".", "order_id", "=", "t2", ".", "order_id", "WHERE", "t1", ".", "order_date", "<", "``", "2015", "-", "03", "-", "17", "00", ":", "00", ":", "00", ".\""], "query_toks_no_value": ["SELECT", "sum", "(", "t2", ".", "order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1", ".", "order_id", "=", "t2", ".", "order_id", "WHERE", "t1", ".", "order_date", "<", "value", "-", "03", "-", "17", "00", ":", "00", ":", "00", ".\""], "question": "Display amount of products ordered before 2015-03-17 00:00:00.", "question_toks": ["Display", "amount", "of", "products", "ordered", "before", "2015", "-", "03", "-", "17", "00", ":", "00", ":", "00", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 4, [0, [0, 28, false], null], "\"2015-03-17 00:00:00.\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0038", "db_id": "entrepreneur", "query": "select distinct(name) from people where date_of_birth like \"%1975%\"", "query_toks": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "people", "WHERE", "Date_of_Birth", "LIKE", "\"%", "1975", "%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "people", "WHERE", "Date_of_Birth", "LIKE", "\"%", "1975", "%\""], "question": "Surnames of born in 1975", "question_toks": ["Surnames", "of", "born", "in", "1975"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%1975%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0039", "db_id": "entrepreneur", "query": "select distinct(name) from people where date_of_birth like \"%1975-08-27%\"", "query_toks": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "people", "WHERE", "Date_of_Birth", "LIKE", "\"%", "1975", "-", "08", "-", "27", "%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "people", "WHERE", "Date_of_Birth", "LIKE", "\"%", "1975", "-", "08", "-", "27", "%\""], "question": "Who was born on August 28, 1975?", "question_toks": ["Who", "was", "born", "on", "August", "28", ",", "1975", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%1975-08-27%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0054", "db_id": "inn_1", "query": "select lastname, firstname from reservations where checkin like \"%feb%\"", "query_toks": ["SELECT", "LastName", ",", "FirstName", "FROM", "Reservations", "WHERE", "CheckIn", "LIKE", "\"%", "feb", "%\""], "query_toks_no_value": ["SELECT", "LastName", ",", "FirstName", "FROM", "Reservations", "WHERE", "CheckIn", "LIKE", "\"%", "feb", "%\""], "question": "Last and first names of everyone who checked in in February", "question_toks": ["Last", "and", "first", "names", "of", "everyone", "who", "checked", "in", "in", "February"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%feb%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0055", "db_id": "inn_1", "query": "select lastname, firstname from reservations where checkin like \"%feb%\" and checkout like \"%mar%\"", "query_toks": ["SELECT", "LastName", ",", "FirstName", "FROM", "Reservations", "WHERE", "CheckIn", "LIKE", "\"%", "feb", "%\"", "AND", "CheckOut", "LIKE", "\"%", "mar", "%\""], "query_toks_no_value": ["SELECT", "LastName", ",", "FirstName", "FROM", "Reservations", "WHERE", "CheckIn", "LIKE", "\"%", "feb", "%\"", "AND", "CheckOut", "LIKE", "\"%", "mar", "%\""], "question": "Show me the last and first names of everyone who checked in in February and moved out in March", "question_toks": ["Show", "me", "the", "last", "and", "first", "names", "of", "everyone", "who", "checked", "in", "in", "February", "and", "moved", "out", "in", "March"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%feb%\"", null], "and", [false, 9, [0, [0, 11, false], null], "\"%mar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0065", "db_id": "music_1", "query": "select distinct(f_id) from files where duration > \"3:00\"", "query_toks": ["SELECT", "DISTINCT", "(", "f_id", ")", "FROM", "files", "WHERE", "duration", ">", "``", "3", ":", "00", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "f_id", ")", "FROM", "files", "WHERE", "duration", ">", "value", ":", "00"], "question": "Id files with tracks longer than three minutes", "question_toks": ["Id", "files", "with", "tracks", "longer", "than", "three", "minutes"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], "\"3:00\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0066", "db_id": "music_1", "query": "select t1.artist_name , t1.gender from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.releasedate like \"%decr%\"", "query_toks": ["SELECT", "T1", ".", "artist_name", ",", "T1", ".", "gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "artist_name", "=", "T2", ".", "artist_name", "WHERE", "T2", ".", "releasedate", "LIKE", "\"%", "decr", "%\""], "query_toks_no_value": ["SELECT", "T1", ".", "artist_name", ",", "T1", ".", "gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "artist_name", "=", "T2", ".", "artist_name", "WHERE", "T2", ".", "releasedate", "LIKE", "\"%", "decr", "%\""], "question": "What the names of all artists who released songs in December.", "question_toks": ["What", "the", "names", "of", "all", "artists", "who", "released", "songs", "in", "December", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 20, false], null], "\"%decr%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0067", "db_id": "station_weather", "query": "select name from train where time = \"21:49\"", "query_toks": ["SELECT", "name", "FROM", "train", "WHERE", "time", "=", "``", "21", ":", "49", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "train", "WHERE", "time", "=", "value", ":", "49"], "question": "Name of train with departure time 9:49 PM", "question_toks": ["Name", "of", "train", "with", "departure", "time", "9", ":", "49", "PM"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"21:49\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0068", "db_id": "station_weather", "query": "select distinct(train_number) from train where time like \"%10:%\" or time like \"%11:%\" or time like \"%12:%\"", "query_toks": ["SELECT", "DISTINCT", "(", "train_number", ")", "FROM", "train", "WHERE", "time", "LIKE", "\"%", "10", ":%\"", "OR", "time", "LIKE", "\"%", "11", ":%\"", "OR", "time", "LIKE", "\"%", "12", ":%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "train_number", ")", "FROM", "train", "WHERE", "time", "LIKE", "\"%", "10", ":%\"", "OR", "time", "LIKE", "\"%", "11", ":%\"", "OR", "time", "LIKE", "\"%", "12", ":%\""], "question": "Give me all trains numbers with time between 10:00 and 13:00", "question_toks": ["Give", "me", "all", "trains", "numbers", "with", "time", "between", "10", ":", "00", "and", "13", ":", "00"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%10:%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%11:%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%12:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0069", "db_id": "theme_gallery", "query": "select sum(attendance) from exhibition_record where date like \"%december%\"", "query_toks": ["SELECT", "SUM", "(", "Attendance", ")", "FROM", "exhibition_record", "WHERE", "Date", "LIKE", "\"%", "december", "%\""], "query_toks_no_value": ["SELECT", "SUM", "(", "Attendance", ")", "FROM", "exhibition_record", "WHERE", "Date", "LIKE", "\"%", "december", "%\""], "question": "How many people attended the gallery in December?", "question_toks": ["How", "many", "people", "attended", "the", "gallery", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%december%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0093", "db_id": "twitter_1", "query": "select count(distinct id) from tweets where createdate like \"%20:%\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "tweets", "WHERE", "createdate", "LIKE", "\"%", "20", ":%\""], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "id", ")", "FROM", "tweets", "WHERE", "createdate", "LIKE", "\"%", "20", ":%\""], "question": "How many tweets are generated at 8 PM?", "question_toks": ["How", "many", "tweets", "are", "generated", "at", "8", "PM", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%20:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0094", "db_id": "twitter_1", "query": "select text from tweets where createdate like \"%2018-03-12%\"", "query_toks": ["SELECT", "text", "FROM", "tweets", "WHERE", "createdate", "LIKE", "\"%", "2018", "-", "03", "-", "12", "%\""], "query_toks_no_value": ["SELECT", "text", "FROM", "tweets", "WHERE", "createdate", "LIKE", "\"%", "2018", "-", "03", "-", "12", "%\""], "question": "Tweet texts created December 3, 2018", "question_toks": ["Tweet", "texts", "created", "December", "3", ",", "2018"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2018-03-12%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0095", "db_id": "workshop_paper", "query": "select distinct(name) from workshop where date like \"%august%\" and date like \"%2007%\"", "query_toks": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "workshop", "WHERE", "Date", "LIKE", "\"%", "august", "%\"", "AND", "Date", "LIKE", "\"%", "2007", "%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "workshop", "WHERE", "Date", "LIKE", "\"%", "august", "%\"", "AND", "Date", "LIKE", "\"%", "2007", "%\""], "question": "Names of workshops held in August 2007", "question_toks": ["Names", "of", "workshops", "held", "in", "August", "2007"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%august%\"", null], "and", [false, 9, [0, [0, 2, false], null], "\"%2007%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0096", "db_id": "workshop_paper", "query": "select distinct(name) from workshop where date like \"%july%\" and date like \"%2011%\" and date like \"%5%\"", "query_toks": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "workshop", "WHERE", "Date", "LIKE", "\"%", "july", "%\"", "AND", "Date", "LIKE", "\"%", "2011", "%\"", "AND", "Date", "LIKE", "\"%", "5", "%\""], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Name", ")", "FROM", "workshop", "WHERE", "Date", "LIKE", "\"%", "july", "%\"", "AND", "Date", "LIKE", "\"%", "2011", "%\"", "AND", "Date", "LIKE", "\"%", "5", "%\""], "question": "What was the name of the workshop held on 5th of July, 2011", "question_toks": ["What", "was", "the", "name", "of", "the", "workshop", "held", "on", "5th", "of", "July", ",", "2011"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%july%\"", null], "and", [false, 9, [0, [0, 2, false], null], "\"%2011%\"", null], "and", [false, 9, [0, [0, 2, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0004", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = 'france'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "'France", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age of all singers from France?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0005", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = 'france'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "'France", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age for all French singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0017", "db_id": "concert_singer", "query": "select avg(capacity) , max(capacity) from stadium", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "question": "What is the average and maximum capacities for all stadiums ?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0271", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "find the minimum and maximum number of products of all stores.", "question_toks": ["find", "the", "minimum", "and", "maximum", "number", "of", "products", "of", "all", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0272", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "What are the minimum and maximum number of products across all the shops?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0424", "db_id": "museum_visit", "query": "select avg(num_of_ticket) , max(num_of_ticket) from visit", "query_toks": ["SELECT", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "FROM", "visit"], "query_toks_no_value": ["select", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "from", "visit"], "question": "What are the average and maximum number of tickets bought in all visits?", "question_toks": ["What", "are", "the", "average", "and", "maximum", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0494", "db_id": "battle_death", "query": "select max(killed) , min(killed) from death", "query_toks": ["SELECT", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "FROM", "death"], "query_toks_no_value": ["select", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "from", "death"], "question": "What is maximum and minimum death toll caused each time?", "question_toks": ["What", "is", "maximum", "and", "minimum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0617", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series;", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What is minimum and maximum share of TV series?", "question_toks": ["What", "is", "minimum", "and", "maximum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0618", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series;", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What is the maximum and minimum share for the TV series?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0690", "db_id": "voter_1", "query": "select max(area_code) , min(area_code) from area_code_state", "query_toks": ["SELECT", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "FROM", "area_code_state"], "query_toks_no_value": ["select", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "from", "area_code_state"], "question": "What are the maximum and minimum values of area codes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 1, false], null]], [2, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0003", "db_id": "department_management", "query": "select max(budget_in_billions) , min(budget_in_billions) from department", "query_toks": ["SELECT", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "FROM", "department"], "query_toks_no_value": ["select", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "from", "department"], "question": "What are the maximum and minimum budget of the departments?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0026", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "What are the maximum and minimum number of cows across all farms.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0027", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "Return the maximum and minimum number of cows across all farms.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0121", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and maximum duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "maximum", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0122", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and maximum duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "maximum", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0300", "db_id": "twitter_1", "query": "select max(followers) , sum(followers) from user_profiles", "query_toks": ["SELECT", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "FROM", "user_profiles"], "query_toks_no_value": ["select", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "from", "user_profiles"], "question": "Find the maximum and total number of followers of all users.", "question_toks": ["Find", "the", "maximum", "and", "total", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0321", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "What are the average and minimum price (in Euro) of all products?", "question_toks": ["What", "are", "the", "average", "and", "minimum", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0322", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "Give me the average and minimum price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "average", "and", "minimum", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0353", "db_id": "flight_1", "query": "select min(distance) , avg(distance) , max(distance) from aircraft", "query_toks": ["SELECT", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "FROM", "Aircraft"], "query_toks_no_value": ["select", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "from", "aircraft"], "question": "What is the minimum, average, and maximum distance of all aircrafts.", "question_toks": ["What", "is", "the", "minimum", ",", "average", ",", "and", "maximum", "distance", "of", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0354", "db_id": "flight_1", "query": "select min(distance) , avg(distance) , max(distance) from aircraft", "query_toks": ["SELECT", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "FROM", "Aircraft"], "query_toks_no_value": ["select", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "from", "aircraft"], "question": "Return the minimum, average and maximum distances traveled across all aircrafts.", "question_toks": ["Return", "the", "minimum", ",", "average", "and", "maximum", "distances", "traveled", "across", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0371", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "question": "What is average and maximum salary of all employees.", "question_toks": ["What", "is", "average", "and", "maximum", "salary", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0372", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "question": "What is the average and largest salary of all employees?", "question_toks": ["What", "is", "the", "average", "and", "largest", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0483", "db_id": "allergy_1", "query": "select min(age) , avg(age) , max(age) from student", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student"], "question": "Show the minimum, average, and maximum age of all students.", "question_toks": ["Show", "the", "minimum", ",", "average", ",", "and", "maximum", "age", "of", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]], [1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0484", "db_id": "allergy_1", "query": "select min(age) , avg(age) , max(age) from student", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student"], "question": "What is the minimum, mean, and maximum age across all students?", "question_toks": ["What", "is", "the", "minimum", ",", "mean", ",", "and", "maximum", "age", "across", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]], [1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0738", "db_id": "customers_card_transactions", "query": "select avg(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Return the average transaction amount, as well as the total amount of all transactions.", "question_toks": ["Return", "the", "average", "transaction", "amount", ",", "as", "well", "as", "the", "total", "amount", "of", "all", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]], [4, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0755", "db_id": "race_track", "query": "select min(seating) , max(seating) , avg(seating) from track", "query_toks": ["SELECT", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "FROM", "track"], "query_toks_no_value": ["select", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "from", "track"], "question": "What is the minimum, maximum, and average seating for all tracks.", "question_toks": ["What", "is", "the", "minimum", ",", "maximum", ",", "and", "average", "seating", "for", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0756", "db_id": "race_track", "query": "select min(seating) , max(seating) , avg(seating) from track", "query_toks": ["SELECT", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "FROM", "track"], "query_toks_no_value": ["select", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "from", "track"], "question": "Return the minimum, maximum, and average seating across all tracks.", "question_toks": ["Return", "the", "minimum", ",", "maximum", ",", "and", "average", "seating", "across", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0832", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "Find the maximum and minimum durations of tracks in milliseconds.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "durations", "of", "tracks", "in", "milliseconds", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0882", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Pop", "''"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "Find the maximum and minimum millisecond lengths of pop tracks.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "millisecond", "lengths", "of", "pop", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0901", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the total and average amount of settlements.", "question_toks": ["Find", "the", "total", "and", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0902", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Return the sum and average of all settlement amounts.", "question_toks": ["Return", "the", "sum", "and", "average", "of", "all", "settlement", "amounts", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0927", "db_id": "insurance_fnol", "query": "select max(settlement_amount) , min(settlement_amount) from settlements", "query_toks": ["SELECT", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "from", "settlements"], "question": "What are the maximum and minimum settlement amount on record?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "settlement", "amount", "on", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [2, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0928", "db_id": "insurance_fnol", "query": "select max(settlement_amount) , min(settlement_amount) from settlements", "query_toks": ["SELECT", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the maximum and minimum settlement amount.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "settlement", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [2, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0999", "db_id": "university_basketball", "query": "select sum(enrollment) , min(enrollment) from university", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "university"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "university"], "question": "What is the total and minimum enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "and", "minimum", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1000", "db_id": "university_basketball", "query": "select sum(enrollment) , min(enrollment) from university", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "university"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "university"], "question": "Return the total and minimum enrollments across all schools.", "question_toks": ["Return", "the", "total", "and", "minimum", "enrollments", "across", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1027", "db_id": "phone_1", "query": "select max(t1.ram_mib) , min(t1.ram_mib) from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t2.company_name = \"nokia corporation\";", "query_toks": ["SELECT", "max", "(", "T1.RAM_MiB", ")", ",", "min", "(", "T1.RAM_MiB", ")", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "WHERE", "T2.Company_name", "=", "``", "Nokia", "Corporation", "''", ";"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "ram_mib", ")", ",", "min", "(", "t1", ".", "ram_mib", ")", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t2", ".", "company_name", "=", "value"], "question": "What is maximum and minimum RAM size of phone produced by company named \"Nokia Corporation\"?", "question_toks": ["What", "is", "maximum", "and", "minimum", "RAM", "size", "of", "phone", "produced", "by", "company", "named", "``", "Nokia", "Corporation", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Nokia Corporation\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1035", "db_id": "phone_1", "query": "select max(used_kb) , min(used_kb) , avg(used_kb) from screen_mode;", "query_toks": ["SELECT", "max", "(", "used_kb", ")", ",", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "FROM", "screen_mode", ";"], "query_toks_no_value": ["select", "max", "(", "used_kb", ")", ",", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "from", "screen_mode"], "question": "List the maximum, minimum and average number of used kb in screen mode.", "question_toks": ["List", "the", "maximum", ",", "minimum", "and", "average", "number", "of", "used", "kb", "in", "screen", "mode", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]], [2, [0, [0, 12, false], null]], [5, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1177", "db_id": "election_representative", "query": "select min(vote_percent) , max(vote_percent) from election", "query_toks": ["SELECT", "min", "(", "Vote_Percent", ")", ",", "max", "(", "Vote_Percent", ")", "FROM", "election"], "query_toks_no_value": ["select", "min", "(", "vote_percent", ")", ",", "max", "(", "vote_percent", ")", "from", "election"], "question": "What are the minimum and maximum vote percents of elections?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "vote", "percents", "of", "elections", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1206", "db_id": "apartment_rentals", "query": "select min(bathroom_count) , max(bathroom_count) from apartments", "query_toks": ["SELECT", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["select", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "from", "apartments"], "question": "What is the minimum and maximum number of bathrooms of all the apartments?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "number", "of", "bathrooms", "of", "all", "the", "apartments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1207", "db_id": "apartment_rentals", "query": "select min(bathroom_count) , max(bathroom_count) from apartments", "query_toks": ["SELECT", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["select", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "from", "apartments"], "question": "Give me the minimum and maximum bathroom count among all the apartments.", "question_toks": ["Give", "me", "the", "minimum", "and", "maximum", "bathroom", "count", "among", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1264", "db_id": "apartment_rentals", "query": "select apt_type_code , max(room_count) , min(room_count) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "query_toks_no_value": ["select", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "question": "Show each apartment type code, and the maximum and minimum number of rooms for each type.", "question_toks": ["Show", "each", "apartment", "type", "code", ",", "and", "the", "maximum", "and", "minimum", "number", "of", "rooms", "for", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1265", "db_id": "apartment_rentals", "query": "select apt_type_code , max(room_count) , min(room_count) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "query_toks_no_value": ["select", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "question": "Return each apartment type code along with the maximum and minimum number of rooms among each type.", "question_toks": ["Return", "each", "apartment", "type", "code", "along", "with", "the", "maximum", "and", "minimum", "number", "of", "rooms", "among", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1277", "db_id": "game_injury", "query": "select max(home_games) , min(home_games) , avg(home_games) from stadium", "query_toks": ["SELECT", "max", "(", "home_games", ")", ",", "min", "(", "home_games", ")", ",", "avg", "(", "home_games", ")", "FROM", "stadium"], "query_toks_no_value": ["select", "max", "(", "home_games", ")", ",", "min", "(", "home_games", ")", ",", "avg", "(", "home_games", ")", "from", "stadium"], "question": "What are the maximum, minimum and average home games each stadium held?", "question_toks": ["What", "are", "the", "maximum", ",", "minimum", "and", "average", "home", "games", "each", "stadium", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1296", "db_id": "soccer_1", "query": "select max(weight) , min(weight) from player", "query_toks": ["SELECT", "max", "(", "weight", ")", ",", "min", "(", "weight", ")", "FROM", "Player"], "query_toks_no_value": ["select", "max", "(", "weight", ")", ",", "min", "(", "weight", ")", "from", "player"], "question": "What is the maximum and minimum height of all players?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "height", "of", "all", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 51, false], null]], [2, [0, [0, 51, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1394", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "Find the maximum and average capacity among rooms in each building.", "question_toks": ["Find", "the", "maximum", "and", "average", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1395", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "What are the greatest and average capacity for rooms in each building?", "question_toks": ["What", "are", "the", "greatest", "and", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1515", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) , avg(amount_piad) from claim_headers", "query_toks": ["SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "query_toks_no_value": ["select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "question": "Find the total and average amount paid in claim headers.", "question_toks": ["Find", "the", "total", "and", "average", "amount", "paid", "in", "claim", "headers", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]], [5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1516", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) , avg(amount_piad) from claim_headers", "query_toks": ["SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "query_toks_no_value": ["select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "question": "What are the total amount and average amount paid in claim headers?", "question_toks": ["What", "are", "the", "total", "amount", "and", "average", "amount", "paid", "in", "claim", "headers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]], [5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1583", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "What is the average, minimum, maximum, and total transaction amount?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [1, [0, [0, 40, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1638", "db_id": "wedding", "query": "select min(age) , max(age) , avg(age) from people", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "max", "(", "age", ")", ",", "avg", "(", "age", ")", "FROM", "people"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "max", "(", "age", ")", ",", "avg", "(", "age", ")", "from", "people"], "question": "Show the minimum, maximum, and average age for all people.", "question_toks": ["Show", "the", "minimum", ",", "maximum", ",", "and", "average", "age", "for", "all", "people", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1659", "db_id": "theme_gallery", "query": "select avg(age) , min(age) from artist where country = 'united states'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "value"], "question": "What is the average and minimum age of all artists from United States.", "question_toks": ["What", "is", "the", "average", "and", "minimum", "age", "of", "all", "artists", "from", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1660", "db_id": "theme_gallery", "query": "select avg(age) , min(age) from artist where country = 'united states'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "value"], "question": "Return the average and minimum ages across artists from the United States.", "question_toks": ["Return", "the", "average", "and", "minimum", "ages", "across", "artists", "from", "the", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1675", "db_id": "theme_gallery", "query": "select avg(ticket_price) , min(ticket_price) , max(ticket_price) from exhibition where year < 2009", "query_toks": ["SELECT", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009"], "query_toks_no_value": ["select", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value"], "question": "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.", "question_toks": ["Show", "the", "average", ",", "minimum", ",", "and", "maximum", "ticket", "prices", "for", "exhibitions", "for", "all", "years", "before", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]], [2, [0, [0, 10, false], null]], [1, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1676", "db_id": "theme_gallery", "query": "select avg(ticket_price) , min(ticket_price) , max(ticket_price) from exhibition where year < 2009", "query_toks": ["SELECT", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009"], "query_toks_no_value": ["select", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value"], "question": "What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "ticket", "prices", "for", "exhibitions", "that", "happened", "prior", "to", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]], [2, [0, [0, 10, false], null]], [1, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1693", "db_id": "epinions_1", "query": "select avg(rating) , max(rating) from review", "query_toks": ["SELECT", "avg", "(", "rating", ")", ",", "max", "(", "rating", ")", "FROM", "review"], "query_toks_no_value": ["select", "avg", "(", "rating", ")", ",", "max", "(", "rating", ")", "from", "review"], "question": "Find the average and maximum rating of all reviews.", "question_toks": ["Find", "the", "average", "and", "maximum", "rating", "of", "all", "reviews", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]], [1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1829", "db_id": "browser_web", "query": "select max(market_share) , min(market_share) , avg(market_share) from browser", "query_toks": ["SELECT", "max", "(", "market_share", ")", ",", "min", "(", "market_share", ")", ",", "avg", "(", "market_share", ")", "FROM", "browser"], "query_toks_no_value": ["select", "max", "(", "market_share", ")", ",", "min", "(", "market_share", ")", ",", "avg", "(", "market_share", ")", "from", "browser"], "question": "What is the maximum, minimum and average market share of the listed browsers?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "market", "share", "of", "the", "listed", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1888", "db_id": "school_finance", "query": "select sum(enrollment) , avg(enrollment) from school", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "from", "school"], "question": "What are the total and average enrollment of all schools?", "question_toks": ["What", "are", "the", "total", "and", "average", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]], [5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1891", "db_id": "school_finance", "query": "select avg(enrollment) , max(enrollment) , min(enrollment) from school", "query_toks": ["SELECT", "avg", "(", "enrollment", ")", ",", "max", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["select", "avg", "(", "enrollment", ")", ",", "max", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "school"], "question": "Show the average, maximum, minimum enrollment of all schools.", "question_toks": ["Show", "the", "average", ",", "maximum", ",", "minimum", "enrollment", "of", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1913", "db_id": "protein_institute", "query": "select avg(floors) , max(floors) , min(floors) from building", "query_toks": ["SELECT", "avg", "(", "floors", ")", ",", "max", "(", "floors", ")", ",", "min", "(", "floors", ")", "FROM", "building"], "query_toks_no_value": ["select", "avg", "(", "floors", ")", ",", "max", "(", "floors", ")", ",", "min", "(", "floors", ")", "from", "building"], "question": "What are the average, maximum, and minimum number of floors for all buildings?", "question_toks": ["What", "are", "the", "average", ",", "maximum", ",", "and", "minimum", "number", "of", "floors", "for", "all", "buildings", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]], [1, [0, [0, 6, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1940", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema where openning_year >= 2011", "query_toks": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">", "=", "2011"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">", "=", "value"], "question": "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "the", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1971", "db_id": "products_for_hire", "query": "select max(booked_count) , min(booked_count) , avg(booked_count) from products_booked", "query_toks": ["SELECT", "max", "(", "booked_count", ")", ",", "min", "(", "booked_count", ")", ",", "avg", "(", "booked_count", ")", "FROM", "products_booked"], "query_toks_no_value": ["select", "max", "(", "booked_count", ")", ",", "min", "(", "booked_count", ")", ",", "avg", "(", "booked_count", ")", "from", "products_booked"], "question": "What are the maximum, minimum, and average booked count for the products booked?", "question_toks": ["What", "are", "the", "maximum", ",", "minimum", ",", "and", "average", "booked", "count", "for", "the", "products", "booked", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [5, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2001", "db_id": "gas_company", "query": "select min(market_value) , max(market_value) , avg(market_value) from company", "query_toks": ["SELECT", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "FROM", "company"], "query_toks_no_value": ["select", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "from", "company"], "question": "Show minimum, maximum, and average market value for all companies.", "question_toks": ["Show", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "all", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2002", "db_id": "gas_company", "query": "select min(market_value) , max(market_value) , avg(market_value) from company", "query_toks": ["SELECT", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "FROM", "company"], "query_toks_no_value": ["select", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "from", "company"], "question": "What is the minimum, maximum, and average market value for every company?", "question_toks": ["What", "is", "the", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "every", "company", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2412", "db_id": "candidate_poll", "query": "select avg(weight) , min(weight) , sex from people group by sex", "query_toks": ["SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "question": "Find the average and minimum weight for each gender.", "question_toks": ["Find", "the", "average", "and", "minimum", "weight", "for", "each", "gender", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_REFORMULATION_SYNONYM", "SYNONYMS", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2413", "db_id": "candidate_poll", "query": "select avg(weight) , min(weight) , sex from people group by sex", "query_toks": ["SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "question": "What are the average and minimum weights for people of each sex?", "question_toks": ["What", "are", "the", "average", "and", "minimum", "weights", "for", "people", "of", "each", "sex", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2451", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What is the maximum and mininum number of stars a rating can receive?", "question_toks": ["What", "is", "the", "maximum", "and", "mininum", "number", "of", "stars", "a", "rating", "can", "receive", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2538", "db_id": "county_public_safety", "query": "select min(crime_rate) , max(crime_rate) from county_public_safety", "query_toks": ["SELECT", "min", "(", "Crime_rate", ")", ",", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "query_toks_no_value": ["select", "min", "(", "crime_rate", ")", ",", "max", "(", "crime_rate", ")", "from", "county_public_safety"], "question": "What are the minimum and maximum crime rate of counties?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "crime", "rate", "of", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2539", "db_id": "county_public_safety", "query": "select min(crime_rate) , max(crime_rate) from county_public_safety", "query_toks": ["SELECT", "min", "(", "Crime_rate", ")", ",", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "query_toks_no_value": ["select", "min", "(", "crime_rate", ")", ",", "max", "(", "crime_rate", ")", "from", "county_public_safety"], "question": "Return the minimum and maximum crime rates across all counties.", "question_toks": ["Return", "the", "minimum", "and", "maximum", "crime", "rates", "across", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2620", "db_id": "inn_1", "query": "select decor , avg(baseprice) , min(baseprice) from rooms group by decor;", "query_toks": ["SELECT", "decor", ",", "avg", "(", "basePrice", ")", ",", "min", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor", ";"], "query_toks_no_value": ["select", "decor", ",", "avg", "(", "baseprice", ")", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "question": "Find the average and minimum price of the rooms in different decor.", "question_toks": ["Find", "the", "average", "and", "minimum", "price", "of", "the", "rooms", "in", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [5, [0, [0, 6, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2702", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000"], "query_toks_no_value": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value"], "question": "Show the average and maximum damage for all storms with max speed higher than 1000.", "question_toks": ["Show", "the", "average", "and", "maximum", "damage", "for", "all", "storms", "with", "max", "speed", "higher", "than", "1000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2703", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000"], "query_toks_no_value": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value"], "question": "What is the average and maximum damage in millions for storms that had a max speed over 1000?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "damage", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "over", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2740", "db_id": "election", "query": "select max(population) , min(population) from county", "query_toks": ["SELECT", "max", "(", "Population", ")", ",", "min", "(", "Population", ")", "FROM", "county"], "query_toks_no_value": ["select", "max", "(", "population", ")", ",", "min", "(", "population", ")", "from", "county"], "question": "Return the maximum and minimum population among all counties.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "population", "among", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2741", "db_id": "election", "query": "select max(population) , min(population) from county", "query_toks": ["SELECT", "max", "(", "Population", ")", ",", "min", "(", "Population", ")", "FROM", "county"], "query_toks_no_value": ["select", "max", "(", "population", ")", ",", "min", "(", "population", ")", "from", "county"], "question": "What are the maximum and minimum population of the counties?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "population", "of", "the", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2817", "db_id": "news_report", "query": "select avg(event_attendance) , max(event_attendance) from event", "query_toks": ["SELECT", "avg", "(", "Event_Attendance", ")", ",", "max", "(", "Event_Attendance", ")", "FROM", "event"], "query_toks_no_value": ["select", "avg", "(", "event_attendance", ")", ",", "max", "(", "event_attendance", ")", "from", "event"], "question": "what are the average and maximum attendances of all events?", "question_toks": ["what", "are", "the", "average", "and", "maximum", "attendances", "of", "all", "events", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3098", "db_id": "behavior_monitoring", "query": "select max(monthly_rental) , min(monthly_rental) from student_addresses", "query_toks": ["SELECT", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "FROM", "Student_Addresses"], "query_toks_no_value": ["select", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "from", "student_addresses"], "question": "Find the maximum and minimum monthly rental for all student addresses.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "monthly", "rental", "for", "all", "student", "addresses", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[1, [0, [0, 60, false], null]], [2, [0, [0, 60, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3221", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "Find the max, average, and minimum gpa of all students in each department.", "question_toks": ["Find", "the", "max", ",", "average", ",", "and", "minimum", "gpa", "of", "all", "students", "in", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3347", "db_id": "sports_competition", "query": "select max(silver) , min(silver) from club_rank", "query_toks": ["SELECT", "max", "(", "Silver", ")", ",", "min", "(", "Silver", ")", "FROM", "club_rank"], "query_toks_no_value": ["select", "max", "(", "silver", ")", ",", "min", "(", "silver", ")", "from", "club_rank"], "question": "What are the maximum and minimum number of silver medals for clubs.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "silver", "medals", "for", "clubs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3348", "db_id": "sports_competition", "query": "select max(silver) , min(silver) from club_rank", "query_toks": ["SELECT", "max", "(", "Silver", ")", ",", "min", "(", "Silver", ")", "FROM", "club_rank"], "query_toks_no_value": ["select", "max", "(", "silver", ")", ",", "min", "(", "silver", ")", "from", "club_rank"], "question": "What are the maximum and minimum number of silver medals for all the clubs?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "silver", "medals", "for", "all", "the", "clubs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3714", "db_id": "mountain_photos", "query": "select max(height) , avg(height) from mountain", "query_toks": ["SELECT", "max", "(", "height", ")", ",", "avg", "(", "height", ")", "FROM", "mountain"], "query_toks_no_value": ["select", "max", "(", "height", ")", ",", "avg", "(", "height", ")", "from", "mountain"], "question": "What are the maximum and average height of the mountains?", "question_toks": ["What", "are", "the", "maximum", "and", "average", "height", "of", "the", "mountains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4100", "db_id": "company_employee", "query": "select max(market_value_in_billion) , min(market_value_in_billion) from company", "query_toks": ["SELECT", "max", "(", "Market_Value_in_Billion", ")", ",", "min", "(", "Market_Value_in_Billion", ")", "FROM", "company"], "query_toks_no_value": ["select", "max", "(", "market_value_in_billion", ")", ",", "min", "(", "market_value_in_billion", ")", "from", "company"], "question": "What is the maximum and minimum market value of companies?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "market", "value", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4122", "db_id": "film_rank", "query": "select max(number_cities) , min(number_cities) from market", "query_toks": ["SELECT", "max", "(", "Number_cities", ")", ",", "min", "(", "Number_cities", ")", "FROM", "market"], "query_toks_no_value": ["select", "max", "(", "number_cities", ")", ",", "min", "(", "number_cities", ")", "from", "market"], "question": "What are the maximum and minimum number of cities in all markets.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "cities", "in", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4123", "db_id": "film_rank", "query": "select max(number_cities) , min(number_cities) from market", "query_toks": ["SELECT", "max", "(", "Number_cities", ")", ",", "min", "(", "Number_cities", ")", "FROM", "market"], "query_toks_no_value": ["select", "max", "(", "number_cities", ")", ",", "min", "(", "number_cities", ")", "from", "market"], "question": "Return the maximum and minimum number of cities across all markets.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "number", "of", "cities", "across", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4649", "db_id": "college_3", "query": "select max(gradepoint) , min(gradepoint) from gradeconversion", "query_toks": ["SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "Find the max and min grade point for all letter grade.", "question_toks": ["Find", "the", "max", "and", "min", "grade", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4650", "db_id": "college_3", "query": "select max(gradepoint) , min(gradepoint) from gradeconversion", "query_toks": ["SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "What are the maximum and minumum grade points?", "question_toks": ["What", "are", "the", "maximum", "and", "minumum", "grade", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4701", "db_id": "college_3", "query": "select max(t2.gradepoint) , min(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["SELECT", "max", "(", "T2.gradepoint", ")", ",", "min", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.city_code", "=", "``", "NYC", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "gradepoint", ")", ",", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value"], "question": "What is the maximum and minimum grade point of students who live in NYC?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "grade", "point", "of", "students", "who", "live", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"NYC\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4702", "db_id": "college_3", "query": "select max(t2.gradepoint) , min(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["SELECT", "max", "(", "T2.gradepoint", ")", ",", "min", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.city_code", "=", "``", "NYC", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "gradepoint", ")", ",", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value"], "question": "Give the maximum and minimum gradepoints for students living in NYC?", "question_toks": ["Give", "the", "maximum", "and", "minimum", "gradepoints", "for", "students", "living", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"NYC\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4776", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "Return the maximum and minimum customer codes.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "customer", "codes", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4782", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "Give the maximum and minimum product prices for each product type, grouped and ordered by product type.", "question_toks": ["Give", "the", "maximum", "and", "minimum", "product", "prices", "for", "each", "product", "type", ",", "grouped", "and", "ordered", "by", "product", "type", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4807", "db_id": "aircraft", "query": "select max(transit_passengers) , min(transit_passengers) from airport", "query_toks": ["SELECT", "max", "(", "Transit_Passengers", ")", ",", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "query_toks_no_value": ["select", "max", "(", "transit_passengers", ")", ",", "min", "(", "transit_passengers", ")", "from", "airport"], "question": "What are the maximum and minimum number of transit passengers of all aiports.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "transit", "passengers", "of", "all", "aiports", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]], [2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4808", "db_id": "aircraft", "query": "select max(transit_passengers) , min(transit_passengers) from airport", "query_toks": ["SELECT", "max", "(", "Transit_Passengers", ")", ",", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "query_toks_no_value": ["select", "max", "(", "transit_passengers", ")", ",", "min", "(", "transit_passengers", ")", "from", "airport"], "question": "What is the maximum and mininum number of transit passengers for all airports?", "question_toks": ["What", "is", "the", "maximum", "and", "mininum", "number", "of", "transit", "passengers", "for", "all", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]], [2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4966", "db_id": "soccer_2", "query": "select avg(hs) , max(hs) , min(hs) from player", "query_toks": ["SELECT", "avg", "(", "HS", ")", ",", "max", "(", "HS", ")", ",", "min", "(", "HS", ")", "FROM", "Player"], "query_toks_no_value": ["select", "avg", "(", "hs", ")", ",", "max", "(", "hs", ")", ",", "min", "(", "hs", ")", "from", "player"], "question": "Find the max, average and min training hours of all players.", "question_toks": ["Find", "the", "max", ",", "average", "and", "min", "training", "hours", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4967", "db_id": "soccer_2", "query": "select avg(hs) , max(hs) , min(hs) from player", "query_toks": ["SELECT", "avg", "(", "HS", ")", ",", "max", "(", "HS", ")", ",", "min", "(", "HS", ")", "FROM", "Player"], "query_toks_no_value": ["select", "avg", "(", "hs", ")", ",", "max", "(", "hs", ")", ",", "min", "(", "hs", ")", "from", "player"], "question": "What is the average, maximum, and minimum for the number of hours spent training?", "question_toks": ["What", "is", "the", "average", ",", "maximum", ",", "and", "minimum", "for", "the", "number", "of", "hours", "spent", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5010", "db_id": "soccer_2", "query": "select avg(t1.hs) , max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes'", "query_toks": ["SELECT", "avg", "(", "T1.HS", ")", ",", "max", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "Find the average and maximum hours for the students whose tryout decision is yes.", "question_toks": ["Find", "the", "average", "and", "maximum", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "yes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5011", "db_id": "soccer_2", "query": "select avg(t1.hs) , max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes'", "query_toks": ["SELECT", "avg", "(", "T1.HS", ")", ",", "max", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "What is the average and maximum number of hours students who made the team practiced?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "BINARY", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5102", "db_id": "cre_Drama_Workshop_Groups", "query": "select min(order_quantity) , avg(order_quantity) , max(order_quantity) from invoices", "query_toks": ["SELECT", "min", "(", "Order_Quantity", ")", ",", "avg", "(", "Order_Quantity", ")", ",", "max", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "query_toks_no_value": ["select", "min", "(", "order_quantity", ")", ",", "avg", "(", "order_quantity", ")", ",", "max", "(", "order_quantity", ")", "from", "invoices"], "question": "Show the minimum, average, maximum order quantity of all invoices.", "question_toks": ["Show", "the", "minimum", ",", "average", ",", "maximum", "order", "quantity", "of", "all", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[2, [0, [0, 81, false], null]], [5, [0, [0, 81, false], null]], [1, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5103", "db_id": "cre_Drama_Workshop_Groups", "query": "select min(order_quantity) , avg(order_quantity) , max(order_quantity) from invoices", "query_toks": ["SELECT", "min", "(", "Order_Quantity", ")", ",", "avg", "(", "Order_Quantity", ")", ",", "max", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "query_toks_no_value": ["select", "min", "(", "order_quantity", ")", ",", "avg", "(", "order_quantity", ")", ",", "max", "(", "order_quantity", ")", "from", "invoices"], "question": "What are the minimum, average, and maximum quantities ordered? Check all the invoices.", "question_toks": ["What", "are", "the", "minimum", ",", "average", ",", "and", "maximum", "quantities", "ordered", "?", "Check", "all", "the", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[2, [0, [0, 81, false], null]], [5, [0, [0, 81, false], null]], [1, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5278", "db_id": "manufactory_1", "query": "select avg(revenue) , max(revenue) , sum(revenue) from manufacturers", "query_toks": ["SELECT", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "FROM", "manufacturers"], "query_toks_no_value": ["select", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "from", "manufacturers"], "question": "What are the average, maximum and total revenues of all companies?", "question_toks": ["What", "are", "the", "average", ",", "maximum", "and", "total", "revenues", "of", "all", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5279", "db_id": "manufactory_1", "query": "select avg(revenue) , max(revenue) , sum(revenue) from manufacturers", "query_toks": ["SELECT", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "FROM", "manufacturers"], "query_toks_no_value": ["select", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "from", "manufacturers"], "question": "Return the average, maximum, and total revenues across all manufacturers.", "question_toks": ["Return", "the", "average", ",", "maximum", ",", "and", "total", "revenues", "across", "all", "manufacturers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5410", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = 'london'", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "'London", "'"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": ["Show", "minimum", "and", "maximum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5411", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = 'london'", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "'London", "'"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "membership", "amounts", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5460", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "What are the maximum and minimum age of students with major 600?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "age", "of", "students", "with", "major", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5662", "db_id": "customers_and_products_contacts", "query": "select min(product_price) , max(product_price) , avg(product_price) from products", "query_toks": ["SELECT", "min", "(", "product_price", ")", ",", "max", "(", "product_price", ")", ",", "avg", "(", "product_price", ")", "FROM", "products"], "query_toks_no_value": ["select", "min", "(", "product_price", ")", ",", "max", "(", "product_price", ")", ",", "avg", "(", "product_price", ")", "from", "products"], "question": "Show the minimum, maximum, average price for all products.", "question_toks": ["Show", "the", "minimum", ",", "maximum", ",", "average", "price", "for", "all", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 10, false], null]], [1, [0, [0, 10, false], null]], [5, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5688", "db_id": "dorm_1", "query": "select avg(student_capacity) , sum(student_capacity) from dorm where gender = 'x'", "query_toks": ["SELECT", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "'X", "'"], "query_toks_no_value": ["select", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value"], "question": "Find the average and total capacity of dorms for the students with gender X.", "question_toks": ["Find", "the", "average", "and", "total", "capacity", "of", "dorms", "for", "the", "students", "with", "gender", "X", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5689", "db_id": "dorm_1", "query": "select avg(student_capacity) , sum(student_capacity) from dorm where gender = 'x'", "query_toks": ["SELECT", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "'X", "'"], "query_toks_no_value": ["select", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value"], "question": "What is the average and total capacity for all dorms who are of gender X?", "question_toks": ["What", "is", "the", "average", "and", "total", "capacity", "for", "all", "dorms", "who", "are", "of", "gender", "X", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5722", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "question": "Find the average and oldest age for students with different sex.", "question_toks": ["Find", "the", "average", "and", "oldest", "age", "for", "students", "with", "different", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5723", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "question": "What is the average and oldest age for each gender of student?", "question_toks": ["What", "is", "the", "average", "and", "oldest", "age", "for", "each", "gender", "of", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6157", "db_id": "music_4", "query": "select max(weeks_on_top) , min(weeks_on_top) from volume", "query_toks": ["SELECT", "max", "(", "Weeks_on_Top", ")", ",", "min", "(", "Weeks_on_Top", ")", "FROM", "volume"], "query_toks_no_value": ["select", "max", "(", "weeks_on_top", ")", ",", "min", "(", "weeks_on_top", ")", "from", "volume"], "question": "What are the maximum and minimum week on top of all volumes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "week", "on", "top", "of", "all", "volumes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6158", "db_id": "music_4", "query": "select max(weeks_on_top) , min(weeks_on_top) from volume", "query_toks": ["SELECT", "max", "(", "Weeks_on_Top", ")", ",", "min", "(", "Weeks_on_Top", ")", "FROM", "volume"], "query_toks_no_value": ["select", "max", "(", "weeks_on_top", ")", ",", "min", "(", "weeks_on_top", ")", "from", "volume"], "question": "Give the maximum and minimum weeks on top across all volumes.", "question_toks": ["Give", "the", "maximum", "and", "minimum", "weeks", "on", "top", "across", "all", "volumes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6236", "db_id": "ship_1", "query": "select avg(age) , min(age) , class from captain group by class", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "class", "from", "captain", "group", "by", "class"], "question": "What are the average and minimum age of captains in different class?", "question_toks": ["What", "are", "the", "average", "and", "minimum", "age", "of", "captains", "in", "different", "class", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6237", "db_id": "ship_1", "query": "select avg(age) , min(age) , class from captain group by class", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "class", "from", "captain", "group", "by", "class"], "question": "Return the average and minimum age of captains in each class.", "question_toks": ["Return", "the", "average", "and", "minimum", "age", "of", "captains", "in", "each", "class", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6360", "db_id": "school_bus", "query": "select max(years_working) , min(years_working) , avg(years_working) from school_bus", "query_toks": ["SELECT", "max", "(", "years_working", ")", ",", "min", "(", "years_working", ")", ",", "avg", "(", "years_working", ")", "FROM", "school_bus"], "query_toks_no_value": ["select", "max", "(", "years_working", ")", ",", "min", "(", "years_working", ")", ",", "avg", "(", "years_working", ")", "from", "school_bus"], "question": "What is the maximum, minimum and average years spent working on a school bus?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "years", "spent", "working", "on", "a", "school", "bus", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6678", "db_id": "driving_school", "query": "select max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) from customers;", "query_toks": ["SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";"], "query_toks_no_value": ["select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers"], "question": "What is maximum, minimum and average amount of outstanding of customer?", "question_toks": ["What", "is", "maximum", ",", "minimum", "and", "average", "amount", "of", "outstanding", "of", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 25, false], null]], [2, [0, [0, 25, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6679", "db_id": "driving_school", "query": "select max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) from customers;", "query_toks": ["SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";"], "query_toks_no_value": ["select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers"], "question": "What is the maximum, minimum, and average amount of money outsanding for all customers?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", ",", "and", "average", "amount", "of", "money", "outsanding", "for", "all", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 25, false], null]], [2, [0, [0, 25, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6992", "db_id": "culture_company", "query": "select avg(budget_million) , max(budget_million) , min(budget_million) from movie where year < 2000", "query_toks": ["SELECT", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000"], "query_toks_no_value": ["select", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value"], "question": "What is the average, maximum, and minimum budget for all movies before 2000.", "question_toks": ["What", "is", "the", "average", ",", "maximum", ",", "and", "minimum", "budget", "for", "all", "movies", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]], [2, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6993", "db_id": "culture_company", "query": "select avg(budget_million) , max(budget_million) , min(budget_million) from movie where year < 2000", "query_toks": ["SELECT", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000"], "query_toks_no_value": ["select", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value"], "question": "Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.", "question_toks": ["Return", "the", "average", ",", "maximum", ",", "and", "minimum", "budgets", "in", "millions", "for", "movies", "made", "before", "the", "year", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]], [2, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0001", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What is the average, minimum, and maximum age of singers from France?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0002", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What are the average, minimum, and maximum age of all singers from France?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0004", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What is the average, minimum, and maximum age for French singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0005", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "``", "france", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "value"], "question": "What are the average, minimum, and maximum age for all French singers?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0007", "db_id": "concert_singer", "query": "select avg(capacity) , max(capacity) from stadium", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "question": "What are the average and maximum capacities for all stadiums ?", "question_toks": ["What", "are", "the", "average", "and", "maximum", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0009", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "question": "Find the average and maximum age for each type of the pet.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "for", "each", "type", "of", "the", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0011", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "question": "What are the average and maximum age for each pet type?", "question_toks": ["What", "are", "the", "average", "and", "maximum", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0013", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "question": "find the minimum and maximum number of products of all the stores.", "question_toks": ["find", "the", "minimum", "and", "maximum", "number", "of", "products", "of", "all", "the", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0015", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "question": "What is the minimum and maximum number of products across all the shops?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0016", "db_id": "museum_visit", "query": "select avg(num_of_ticket) , max(num_of_ticket) from visit", "query_toks": ["SELECT", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "FROM", "visit"], "query_toks_no_value": ["SELECT", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "FROM", "visit"], "question": "What is the average and maximum number of tickets bought in all visits?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0018", "db_id": "battle_death", "query": "select max(killed) , min(killed) from death", "query_toks": ["SELECT", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "FROM", "death"], "query_toks_no_value": ["SELECT", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "FROM", "death"], "question": "What are maximum and minimum death toll caused each time?", "question_toks": ["What", "are", "maximum", "and", "minimum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0020", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series"], "question": "What are the minimum and maximum share of TV series?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0023", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series"], "question": "What are the maximum and minimum share for the TV series?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0025", "db_id": "voter_1", "query": "select max(area_code) , min(area_code) from area_code_state", "query_toks": ["SELECT", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "FROM", "area_code_state"], "query_toks_no_value": ["SELECT", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "FROM", "area_code_state"], "question": "What is the maximum and minimum values of area codes?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 1, false], null]], [2, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0027", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "value", "final"], "question": "What are the maximum and the minimum share of performances whose type is not \"Live final\".", "question_toks": ["What", "are", "the", "maximum", "and", "the", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0029", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!=", "value", "final"], "question": "Return the maximum and the minimum shares for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "maximum", "and", "the", "minimum", "shares", "for", "performances", "that", "do", "not", "have", "the", "type", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0031", "db_id": "department_management", "query": "select max(budget_in_billions) , min(budget_in_billions) from department", "query_toks": ["SELECT", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "FROM", "department"], "query_toks_no_value": ["SELECT", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "FROM", "department"], "question": "What are the maximum and the minimum budget of the departments?", "question_toks": ["What", "are", "the", "maximum", "and", "the", "minimum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0033", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "question": "What are the maximum and the minimum number of cows across all farms.", "question_toks": ["What", "are", "the", "maximum", "and", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0035", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "question": "Return the maximum and the minimum number of cows across all farms.", "question_toks": ["Return", "the", "maximum", "and", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0037", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "value"], "question": "What is the total and the maximum duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "the", "maximum", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0039", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "value"], "question": "What is the total and the maximum duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "the", "maximum", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0041", "db_id": "twitter_1", "query": "select max(followers) , sum(followers) from user_profiles", "query_toks": ["SELECT", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "FROM", "user_profiles"], "query_toks_no_value": ["SELECT", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "FROM", "user_profiles"], "question": "Find the maximum and the total number of followers of all users.", "question_toks": ["Find", "the", "maximum", "and", "the", "total", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0043", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "question": "What are the average and the minimum price (in Euro) of all products?", "question_toks": ["What", "are", "the", "average", "and", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0045", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "question": "Give me the average and the minimum price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "average", "and", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0050", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "question": "What is the average and the largest salary of all employees?", "question_toks": ["What", "is", "the", "average", "and", "the", "largest", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0054", "db_id": "customers_card_transactions", "query": "select avg(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "question": "Return the mean transaction amount, as well as the total amount of all transactions.", "question_toks": ["Return", "the", "mean", "transaction", "amount", ",", "as", "well", "as", "the", "total", "amount", "of", "all", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]], [4, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0058", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "question": "What are the durations of the longest and the shortest tracks (milliseconds)?", "question_toks": ["What", "are", "the", "durations", "of", "the", "longest", "and", "the", "shortest", "tracks", "(", "milliseconds", ")?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0062", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "question": "Find the total and the average amount of settlements.", "question_toks": ["Find", "the", "total", "and", "the", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0078", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "question": "Find the maximum and the average capacity among rooms in each building.", "question_toks": ["Find", "the", "maximum", "and", "the", "average", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0080", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "question": "What are the greatest and the average capacity for rooms in each building?", "question_toks": ["What", "are", "the", "greatest", "and", "the", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0084", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "question": "What are the average, minimum, maximum, and total transaction amount?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [1, [0, [0, 40, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0085", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "question": "Compute the average active time span of contact channels.", "question_toks": ["Compute", "the", "average", "active", "time", "span", "of", "contact", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [1, [0, [0, 40, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0094", "db_id": "school_finance", "query": "select sum(enrollment) , avg(enrollment) from school", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["SELECT", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "FROM", "school"], "question": "What is the total and average enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "and", "average", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]], [5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0104", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "question": "What are the lowest and highest rating star?", "question_toks": ["What", "are", "the", "lowest", "and", "highest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0109", "db_id": "inn_1", "query": "select decor , avg(baseprice) , min(baseprice) from rooms group by decor", "query_toks": ["SELECT", "decor", ",", "avg", "(", "basePrice", ")", ",", "min", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor"], "query_toks_no_value": ["SELECT", "decor", ",", "avg", "(", "basePrice", ")", ",", "min", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor"], "question": "What is the average and minimum price of the rooms for each different decor.", "question_toks": ["What", "is", "the", "average", "and", "minimum", "price", "of", "the", "rooms", "for", "each", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [5, [0, [0, 6, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0118", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "What are the highest, lowest, and average student GPA for every department?", "question_toks": ["What", "are", "the", "highest", ",", "lowest", ",", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0119", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "question": "What are the lowest, highest and average student GPA for every department?", "question_toks": ["What", "are", "the", "lowest", ",", "highest", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0126", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "question": "What is the highest cost, lowest cost and average cost of procedures?", "question_toks": ["What", "is", "the", "highest", "cost", ",", "lowest", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0127", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "question": "What are the highest cost, the lowest cost and the average cost of procedures?", "question_toks": ["What", "are", "the", "highest", "cost", ",", "the", "lowest", "cost", "and", "the", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0135", "db_id": "college_3", "query": "select max(gradepoint) , min(gradepoint) from gradeconversion", "query_toks": ["SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "question": "Find the max and min grades point for all letter grade.", "question_toks": ["Find", "the", "max", "and", "min", "grades", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0140", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "question": "What are the largest and smallest customer codes?", "question_toks": ["What", "are", "the", "largest", "and", "smallest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0143", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "question": "What are the highest and the lowest prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "highest", "and", "the", "lowest", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0159", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "value"], "question": "Tell me the ages of the oldest and the youngest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "oldest", "and", "the", "youngest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3375", "db_id": "sports_competition", "query": "select sum(points) from player", "query_toks": ["SELECT", "sum", "(", "Points", ")", "FROM", "player"], "query_toks_no_value": ["select", "sum", "(", "points", ")", "from", "player"], "question": "Show total points of all players.", "question_toks": ["Show", "total", "points", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6031", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.age", "<", "20"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "value"], "question": "Show total hours per week and number of games played for students under 20.", "question_toks": ["Show", "total", "hours", "per", "week", "and", "number", "of", "games", "played", "for", "students", "under", "20", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "AGGREGATION_MONO", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0289", "db_id": "employee_hire_evaluation", "query": "select sum(bonus) from evaluation", "query_toks": ["SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation"], "query_toks_no_value": ["select", "sum", "(", "bonus", ")", "from", "evaluation"], "question": "What is total bonus given in all evaluations?", "question_toks": ["What", "is", "total", "bonus", "given", "in", "all", "evaluations", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6471", "db_id": "scientist_1", "query": "select sum(hours) from projects", "query_toks": ["SELECT", "sum", "(", "hours", ")", "FROM", "projects"], "query_toks_no_value": ["select", "sum", "(", "hours", ")", "from", "projects"], "question": "Find the total hours of all projects.", "question_toks": ["Find", "the", "total", "hours", "of", "all", "projects", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3237", "db_id": "college_1", "query": "select sum(t1.crs_credit) , t1.dept_code from course as t1 join class as t2 on t1.crs_code = t2.crs_code group by t1.dept_code", "query_toks": ["SELECT", "sum", "(", "T1.crs_credit", ")", ",", "T1.dept_code", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "GROUP", "BY", "T1.dept_code"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "crs_credit", ")", ",", "t1", ".", "dept_code", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "group", "by", "t1", ".", "dept_code"], "question": "Find the total credits of all classes offered by each department.", "question_toks": ["Find", "the", "total", "credits", "of", "all", "classes", "offered", "by", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5682", "db_id": "dorm_1", "query": "select sum(student_capacity) from dorm", "query_toks": ["SELECT", "sum", "(", "student_capacity", ")", "FROM", "dorm"], "query_toks_no_value": ["select", "sum", "(", "student_capacity", ")", "from", "dorm"], "question": "Find the total capacity of all dorms.", "question_toks": ["Find", "the", "total", "capacity", "of", "all", "dorms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4505", "db_id": "document_management", "query": "select sum(access_count) from documents group by document_type_code order by count(*) desc limit 1", "query_toks": ["SELECT", "sum", "(", "access_count", ")", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "sum", "(", "access_count", ")", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the total access count of all documents in the most popular document type.", "question_toks": ["Find", "the", "total", "access", "count", "of", "all", "documents", "in", "the", "most", "popular", "document", "type", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3896", "db_id": "insurance_policies", "query": "select sum(amount_claimed) from claims", "query_toks": ["SELECT", "sum", "(", "Amount_Claimed", ")", "FROM", "Claims"], "query_toks_no_value": ["select", "sum", "(", "amount_claimed", ")", "from", "claims"], "question": "Find the total claimed amount of all the claims.", "question_toks": ["Find", "the", "total", "claimed", "amount", "of", "all", "the", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1240", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_facilities as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t1.facility_code = \"gym\"", "query_toks": ["SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.facility_code", "=", "``", "Gym", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "value"], "question": "Show the total number of rooms of all apartments with facility code \"Gym\".", "question_toks": ["Show", "the", "total", "number", "of", "rooms", "of", "all", "apartments", "with", "facility", "code", "``", "Gym", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Gym\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1776", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid where t1.name != 'brown'", "query_toks": ["SELECT", "sum", "(", "T2.balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "!", "=", "'Brown", "'"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "!", "=", "value"], "question": "Find the total savings balance of all accounts except the account with name \u2018Brown\u2019.", "question_toks": ["Find", "the", "total", "savings", "balance", "of", "all", "accounts", "except", "the", "account", "with", "name", "\u2018Brown\u2019", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], "\"Brown\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3742", "db_id": "program_share", "query": "select sum(share_in_percent) from channel where owner = 'cctv'", "query_toks": ["SELECT", "sum", "(", "Share_in_percent", ")", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'"], "query_toks_no_value": ["select", "sum", "(", "share_in_percent", ")", "from", "channel", "where", "owner", "=", "value"], "question": "find the total percentage share of all channels owned by CCTV.", "question_toks": ["find", "the", "total", "percentage", "share", "of", "all", "channels", "owned", "by", "CCTV", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"CCTV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0290", "db_id": "employee_hire_evaluation", "query": "select sum(bonus) from evaluation", "query_toks": ["SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation"], "query_toks_no_value": ["select", "sum", "(", "bonus", ")", "from", "evaluation"], "question": "Find the total amount of bonus given in all the evaluations.", "question_toks": ["Find", "the", "total", "amount", "of", "bonus", "given", "in", "all", "the", "evaluations", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3219", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "Find the total number of hours have done for all students in each department.", "question_toks": ["Find", "the", "total", "number", "of", "hours", "have", "done", "for", "all", "students", "in", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2282", "db_id": "entrepreneur", "query": "select sum(t1.money_requested) from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id where t2.height > 1.85", "query_toks": ["SELECT", "sum", "(", "T1.Money_Requested", ")", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Height", ">", "1.85"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "money_requested", ")", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value"], "question": "Give the total money requested by entrepreneurs who are taller than 1.85.", "question_toks": ["Give", "the", "total", "money", "requested", "by", "entrepreneurs", "who", "are", "taller", "than", "1.85", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 1.85, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1399", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "query_toks_no_value": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "question": "How many total credits are offered by each department?", "question_toks": ["How", "many", "total", "credits", "are", "offered", "by", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HOW_MANY_SUM", "HIDDEN_SUM", "HOW_MANY", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0471", "db_id": "wta_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the total ranking points for each player and their first name.", "question_toks": ["Find", "the", "total", "ranking", "points", "for", "each", "player", "and", "their", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[4, [0, [0, 42, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0727", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\" or continent = \"europe\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "OR", "Continent", "=", "``", "Europe", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value"], "question": "Give the total surface area covered by countries in Asia or Europe.", "question_toks": ["Give", "the", "total", "surface", "area", "covered", "by", "countries", "in", "Asia", "or", "Europe", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3391", "db_id": "manufacturer", "query": "select sum(market_rate) from furniture order by market_rate desc limit 2", "query_toks": ["SELECT", "sum", "(", "market_rate", ")", "FROM", "furniture", "ORDER", "BY", "market_rate", "DESC", "LIMIT", "2"], "query_toks_no_value": ["select", "sum", "(", "market_rate", ")", "from", "furniture", "order", "by", "market_rate", "desc", "limit", "value"], "question": "find the total market rate of the furnitures that have the top 2 market shares.", "question_toks": ["find", "the", "total", "market", "rate", "of", "the", "furnitures", "that", "have", "the", "top", "2", "market", "shares", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": 2, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3512", "db_id": "hr_1", "query": "select department_id , sum(salary) from employees group by department_id having count(*) >= 2", "query_toks": ["SELECT", "department_id", ",", "SUM", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "department_id", ",", "sum", "(", "salary", ")", "from", "employees", "group", "by", "department_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are total salaries and department id for each department that has more than 2 employees?", "question_toks": ["What", "are", "total", "salaries", "and", "department", "id", "for", "each", "department", "that", "has", "more", "than", "2", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1189", "db_id": "yelp", "query": "select sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"restaurant\" and t3.category_name = \"moroccan\";", "query_toks": ["SELECT", "SUM", "(", "t4.count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "WHERE", "t1.city", "=", "``", "Los", "Angeles", "''", "AND", "t2.category_name", "=", "``", "restaurant", "''", "AND", "t3.category_name", "=", "``", "Moroccan", "''", ";"], "query_toks_no_value": ["select", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "value", "and", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value"], "question": "find the total checkins in Moroccan restaurant in \" Los Angeles \"", "question_toks": ["find", "the", "total", "checkins", "in", "Moroccan", "restaurant", "in", "``", "Los", "Angeles", "``"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Moroccan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1190", "db_id": "yelp", "query": "select sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"moroccan\" and t3.category_name = \"restaurant\" and t4.day = \"friday\";", "query_toks": ["SELECT", "SUM", "(", "t4.count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "WHERE", "t1.city", "=", "``", "Los", "Angeles", "''", "AND", "t2.category_name", "=", "``", "Moroccan", "''", "AND", "t3.category_name", "=", "``", "restaurant", "''", "AND", "t4.day", "=", "``", "Friday", "''", ";"], "query_toks_no_value": ["select", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "value", "and", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "and", "t4", ".", "day", "=", "value"], "question": "find the total checkins in Moroccan restaurant in \" Los Angeles \" on Friday", "question_toks": ["find", "the", "total", "checkins", "in", "Moroccan", "restaurant", "in", "``", "Los", "Angeles", "``", "on", "Friday"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Moroccan\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"Friday\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1191", "db_id": "yelp", "query": "select t4.day , sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"moroccan\" and t3.category_name = \"restaurant\" group by t4.day;", "query_toks": ["SELECT", "t4.day", ",", "SUM", "(", "t4.count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "WHERE", "t1.city", "=", "``", "Los", "Angeles", "''", "AND", "t2.category_name", "=", "``", "Moroccan", "''", "AND", "t3.category_name", "=", "``", "restaurant", "''", "GROUP", "BY", "t4.day", ";"], "query_toks_no_value": ["select", "t4", ".", "day", ",", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "value", "and", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "group", "by", "t4", ".", "day"], "question": "find the total checkins in Moroccan restaurant in \" Los Angeles \" per day", "question_toks": ["find", "the", "total", "checkins", "in", "Moroccan", "restaurant", "in", "``", "Los", "Angeles", "``", "per", "day"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Moroccan\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null]], "groupBy": [[0, 21, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1192", "db_id": "yelp", "query": "select t1.state , sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t2.category_name = \"italian\" and t3.category_name = \"delis\" and t4.day = \"sunday\" group by t1.state;", "query_toks": ["SELECT", "t1.state", ",", "SUM", "(", "t4.count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "WHERE", "t2.category_name", "=", "``", "Italian", "''", "AND", "t3.category_name", "=", "``", "Delis", "''", "AND", "t4.day", "=", "``", "Sunday", "''", "GROUP", "BY", "t1.state", ";"], "query_toks_no_value": ["select", "t1", ".", "state", ",", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "and", "t4", ".", "day", "=", "value", "group", "by", "t1", ".", "state"], "question": "find the total checkins in Italian Delis in each state on Sunday", "question_toks": ["find", "the", "total", "checkins", "in", "Italian", "Delis", "in", "each", "state", "on", "Sunday"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Italian\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Delis\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"Sunday\"", null]], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1228", "db_id": "yelp", "query": "select sum ( t3.count ) from checkin as t3 join business as t1 on t3.business_id = t1.business_id join neighbourhood as t2 on t2.business_id = t1.business_id where t2.neighbourhood_name = \"brighton heights\";", "query_toks": ["SELECT", "SUM", "(", "t3.count", ")", "FROM", "checkin", "AS", "t3", "JOIN", "business", "AS", "t1", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "neighbourhood", "AS", "t2", "ON", "t2.business_id", "=", "t1.business_id", "WHERE", "t2.neighbourhood_name", "=", "``", "Brighton", "Heights", "''", ";"], "query_toks_no_value": ["select", "sum", "(", "t3", ".", "count", ")", "from", "checkin", "as", "t3", "join", "business", "as", "t1", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "neighbourhood", "as", "t2", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "where", "t2", ".", "neighbourhood_name", "=", "value"], "question": "Find the total checkins in \" Brighton Heights \" neighbourhood", "question_toks": ["Find", "the", "total", "checkins", "in", "``", "Brighton", "Heights", "``", "neighbourhood"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Brighton Heights\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3700", "db_id": "baseball_1", "query": "select sum(t1.games) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year between 1990 and 2000;", "query_toks": ["SELECT", "sum", "(", "T1.games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "1990", "AND", "2000", ";"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value"], "question": "Count the total number of games the team Boston Red Stockings attended from 1990 to 2000.", "question_toks": ["Count", "the", "total", "number", "of", "games", "the", "team", "Boston", "Red", "Stockings", "attended", "from", "1990", "to", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 159, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 1990.0, 2000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6039", "db_id": "game_1", "query": "select gameid , sum(hours_played) from plays_games group by gameid", "query_toks": ["SELECT", "gameid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "gameid"], "query_toks_no_value": ["select", "gameid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "gameid"], "question": "Show all game ids and the number of hours played.", "question_toks": ["Show", "all", "game", "ids", "and", "the", "number", "of", "hours", "played", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6041", "db_id": "game_1", "query": "select stuid , sum(hours_played) from plays_games group by stuid", "query_toks": ["SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid"], "query_toks_no_value": ["select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid"], "question": "Show all student ids and the number of hours played.", "question_toks": ["Show", "all", "student", "ids", "and", "the", "number", "of", "hours", "played", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6045", "db_id": "game_1", "query": "select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid having sum(hours_played) >= 1000", "query_toks": ["SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "GROUP", "BY", "T1.gameid", "HAVING", "sum", "(", "hours_played", ")", ">", "=", "1000"], "query_toks_no_value": ["select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">", "=", "value"], "question": "Show all game names played by at least 1000 hours.", "question_toks": ["Show", "all", "game", "names", "played", "by", "at", "least", "1000", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [4, 14, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4767", "db_id": "department_store", "query": "select product_id from order_items group by product_id having count(*) > 3 union select product_id from product_suppliers group by product_id having sum(total_amount_purchased) > 80000", "query_toks": ["SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(", "*", ")", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "query_toks_no_value": ["select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "value"], "question": "Return the ids of all products that were ordered more than three times or supplied more than 80000.", "question_toks": ["Return", "the", "ids", "of", "all", "products", "that", "were", "ordered", "more", "than", "three", "times", "or", "supplied", "more", "than", "80000", "."], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [4, 50, false], null], 80000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6014", "db_id": "game_1", "query": "select stuid , count(*) , sum(gamesplayed) from sportsinfo group by stuid", "query_toks": ["SELECT", "StuID", ",", "count", "(", "*", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "GROUP", "BY", "StuID"], "query_toks_no_value": ["select", "stuid", ",", "count", "(", "*", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "group", "by", "stuid"], "question": "What are the ids of all students along with how many sports and games did they play?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "along", "with", "how", "many", "sports", "and", "games", "did", "they", "play", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]], [4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "_HOW_MANY_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4768", "db_id": "department_store", "query": "select product_id from order_items group by product_id having count(*) > 3 union select product_id from product_suppliers group by product_id having sum(total_amount_purchased) > 80000", "query_toks": ["SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(", "*", ")", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "query_toks_no_value": ["select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "value"], "question": "What are the ids of all products that were either ordered more than 3 times or have a cumulative amount purchased of above 80000?", "question_toks": ["What", "are", "the", "ids", "of", "all", "products", "that", "were", "either", "ordered", "more", "than", "3", "times", "or", "have", "a", "cumulative", "amount", "purchased", "of", "above", "80000", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [4, 50, false], null], 80000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6042", "db_id": "game_1", "query": "select stuid , sum(hours_played) from plays_games group by stuid", "query_toks": ["SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid"], "query_toks_no_value": ["select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid"], "question": "What are the ids of all students and number of hours played?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "and", "number", "of", "hours", "played", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0321", "db_id": "geo", "query": "select sum ( area ) from state;", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "what is the area of all the states combined", "question_toks": ["what", "is", "the", "area", "of", "all", "the", "states", "combined"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0411", "db_id": "geo", "query": "select state_name from city group by state_name order by sum ( population ) limit 1;", "query_toks": ["SELECT", "state_name", "FROM", "city", "GROUP", "BY", "state_name", "ORDER", "BY", "SUM", "(", "population", ")", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "state_name", "from", "city", "group", "by", "state_name", "order", "by", "sum", "(", "population", ")", "limit", "value"], "question": "what state has the smallest urban population", "question_toks": ["what", "state", "has", "the", "smallest", "urban", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [4, 8, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6046", "db_id": "game_1", "query": "select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid having sum(hours_played) >= 1000", "query_toks": ["SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "GROUP", "BY", "T1.gameid", "HAVING", "sum", "(", "hours_played", ")", ">", "=", "1000"], "query_toks_no_value": ["select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">", "=", "value"], "question": "What are the names of all the games that have been played for at least 1000 hours?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "games", "that", "have", "been", "played", "for", "at", "least", "1000", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [4, 14, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0320", "db_id": "geo", "query": "select sum ( area ) from state;", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "what is the combined area of all 50 states", "question_toks": ["what", "is", "the", "combined", "area", "of", "all", "50", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6007", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo"], "question": "How many games are played for all students?", "question_toks": ["How", "many", "games", "are", "played", "for", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HOW_MANY_SUM", "HIDDEN_SUM", "HOW_MANY", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6009", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = 'y'", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''", "AND", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value"], "question": "How many games are played for all football games by students on scholarship?", "question_toks": ["How", "many", "games", "are", "played", "for", "all", "football", "games", "by", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "HOW_MANY", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY", "_BINARY_POSITIVE_VALUE", "_HOW_MANY_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4329", "db_id": "tracking_grants_for_research", "query": "select t2.organisation_id , t2.organisation_details from grants as t1 join organisations as t2 on t1.organisation_id = t2.organisation_id group by t2.organisation_id having sum(t1.grant_amount) > 6000", "query_toks": ["SELECT", "T2.organisation_id", ",", "T2.organisation_details", "FROM", "Grants", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.organisation_id", "GROUP", "BY", "T2.organisation_id", "HAVING", "sum", "(", "T1.grant_amount", ")", ">", "6000"], "query_toks_no_value": ["select", "t2", ".", "organisation_id", ",", "t2", ".", "organisation_details", "from", "grants", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "organisation_id", "group", "by", "t2", ".", "organisation_id", "having", "sum", "(", "t1", ".", "grant_amount", ")", ">", "value"], "question": "What are the ids and details for all organizations that have grants of more than 6000 dollars?", "question_toks": ["What", "are", "the", "ids", "and", "details", "for", "all", "organizations", "that", "have", "grants", "of", "more", "than", "6000", "dollars", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [[false, 3, [0, [4, 11, false], null], 6000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0240", "db_id": "geo", "query": "select sum ( population ) from state;", "query_toks": ["SELECT", "SUM", "(", "population", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "state"], "question": "what is the combined population of all 50 states", "question_toks": ["what", "is", "the", "combined", "population", "of", "all", "50", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3240", "db_id": "college_1", "query": "select t3.dept_name from course as t1 join class as t2 on t1.crs_code = t2.crs_code join department as t3 on t1.dept_code = t3.dept_code group by t1.dept_code order by sum(t1.crs_credit) desc limit 1", "query_toks": ["SELECT", "T3.dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "sum", "(", "T1.crs_credit", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "value"], "question": "Which department offers the most credits all together?", "question_toks": ["Which", "department", "offers", "the", "most", "credits", "all", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 10, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2348", "db_id": "csu_1", "query": "select campus from degrees group by campus order by sum(degrees) desc limit 1", "query_toks": ["SELECT", "campus", "FROM", "degrees", "GROUP", "BY", "campus", "ORDER", "BY", "sum", "(", "degrees", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "campus", "from", "degrees", "group", "by", "campus", "order", "by", "sum", "(", "degrees", ")", "desc", "limit", "value"], "question": "Which campus has the most degrees conferred in all times?", "question_toks": ["Which", "campus", "has", "the", "most", "degrees", "conferred", "in", "all", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3239", "db_id": "college_1", "query": "select t3.dept_name from course as t1 join class as t2 on t1.crs_code = t2.crs_code join department as t3 on t1.dept_code = t3.dept_code group by t1.dept_code order by sum(t1.crs_credit) desc limit 1", "query_toks": ["SELECT", "T3.dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "sum", "(", "T1.crs_credit", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "value"], "question": "Find the name of the department that offers the largest number of credits of all classes.", "question_toks": ["Find", "the", "name", "of", "the", "department", "that", "offers", "the", "largest", "number", "of", "credits", "of", "all", "classes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 10, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6016", "db_id": "game_1", "query": "select stuid from sportsinfo group by stuid having sum(hoursperweek) > 10", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "GROUP", "BY", "StuID", "HAVING", "sum", "(", "hoursperweek", ")", ">", "10"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "group", "by", "stuid", "having", "sum", "(", "hoursperweek", ")", ">", "value"], "question": "What are the student IDs for everybody who worked for more than 10 hours per week on all sports?", "question_toks": ["What", "are", "the", "student", "IDs", "for", "everybody", "who", "worked", "for", "more", "than", "10", "hours", "per", "week", "on", "all", "sports", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [[false, 3, [0, [4, 17, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0723", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value"], "question": "How many people live in Asia, and what is the largest GNP among them?", "question_toks": ["How", "many", "people", "live", "in", "Asia", ",", "and", "what", "is", "the", "largest", "GNP", "among", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "HIDDEN_MAX", "SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0728", "db_id": "world_1", "query": "select sum(population) from city where district = \"gelderland\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", "FROM", "city", "WHERE", "District", "=", "``", "Gelderland", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "city", "where", "district", "=", "value"], "question": "How many people live in Gelderland district?", "question_toks": ["How", "many", "people", "live", "in", "Gelderland", "district", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Gelderland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0767", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["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", "=", "value", ")"], "question": "How many people live in countries that do not speak English?", "question_toks": ["How", "many", "people", "live", "in", "countries", "that", "do", "not", "speak", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2357", "db_id": "csu_1", "query": "select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus", "query_toks": ["SELECT", "T1.campus", ",", "sum", "(", "T2.degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", ">", "=", "1998", "AND", "T2.year", "<", "=", "2002", "GROUP", "BY", "T1.campus"], "query_toks_no_value": ["select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">", "=", "value", "and", "t2", ".", "year", "<", "=", "value", "group", "by", "t1", ".", "campus"], "question": "how many degrees were conferred between 1998 and 2002?", "question_toks": ["how", "many", "degrees", "were", "conferred", "between", "1998", "and", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 1998.0, null], "and", [false, 6, [0, [0, 9, false], null], 2002.0, null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2384", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["SELECT", "sum", "(", "t1.undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Jose", "State", "University", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value"], "question": "How many undergraduates are there in \"San Jose State University\" in year 2004?", "question_toks": ["How", "many", "undergraduates", "are", "there", "in", "``", "San", "Jose", "State", "University", "''", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"San Jose State University\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "_HOW_MANY_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2385", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["SELECT", "sum", "(", "t1.undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Jose", "State", "University", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value"], "question": "How many undergraduates are there at San Jose State", "question_toks": ["How", "many", "undergraduates", "are", "there", "at", "San", "Jose", "State"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"San Jose State University\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "_HOW_MANY_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2387", "db_id": "csu_1", "query": "select sum(t1.graduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["SELECT", "sum", "(", "t1.graduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Francisco", "State", "University", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "graduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value"], "question": "How many people graduated from San Francisco State University in 2004?", "question_toks": ["How", "many", "people", "graduated", "from", "San", "Francisco", "State", "University", "in", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"San Francisco State University\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "_HOW_MANY_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2588", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = 'king';", "query_toks": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "'King", "'", ";"], "query_toks_no_value": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "value"], "question": "How many king beds are there?", "question_toks": ["How", "many", "king", "beds", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"King\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "_HOW_MANY_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3008", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank", "query_toks": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank"], "query_toks_no_value": ["select", "sum", "(", "no_of_customers", ")", "from", "bank"], "question": "How many customers are there?", "question_toks": ["How", "many", "customers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3202", "db_id": "college_1", "query": "select sum(crs_credit) , dept_code from course group by dept_code", "query_toks": ["SELECT", "sum", "(", "crs_credit", ")", ",", "dept_code", "FROM", "course", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "crs_credit", ")", ",", "dept_code", "from", "course", "group", "by", "dept_code"], "question": "How many credits does the department offer?", "question_toks": ["How", "many", "credits", "does", "the", "department", "offer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "_HOW_MANY_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3220", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "How many hours do the students spend studying in each department?", "question_toks": ["How", "many", "hours", "do", "the", "students", "spend", "studying", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "_HOW_MANY_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4945", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "College"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college"], "question": "How many students are enrolled in college?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "college", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "_HOW_MANY_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0239", "db_id": "geo", "query": "select sum ( population ) from state;", "query_toks": ["SELECT", "SUM", "(", "population", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "state"], "question": "how many people live in the united states", "question_toks": ["how", "many", "people", "live", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0322", "db_id": "geo", "query": "select sum ( area ) from state;", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "how many square kilometers in the us", "question_toks": ["how", "many", "square", "kilometers", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_NUMBER", "HIDDEN_SUM", "_HOW_MANY_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0707", "db_id": "world_1", "query": "select sum(surfacearea) from country where region = \"caribbean\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Region", "=", "``", "Caribbean", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "region", "=", "value"], "question": "How much surface area do the countires in the Carribean cover together?", "question_toks": ["How", "much", "surface", "area", "do", "the", "countires", "in", "the", "Carribean", "cover", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"Caribbean\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1319", "db_id": "academic", "query": "select year , sum ( citation_num ) from publication where title = \"making database systems usable\" group by year;", "query_toks": ["SELECT", "YEAR", ",", "SUM", "(", "citation_num", ")", "FROM", "publication", "WHERE", "title", "=", "``", "Making", "database", "systems", "usable", "''", "GROUP", "BY", "YEAR", ";"], "query_toks_no_value": ["select", "year", ",", "sum", "(", "citation_num", ")", "from", "publication", "where", "title", "=", "value", "group", "by", "year"], "question": "return me the number of citations of \" Making database systems usable \" in each year .", "question_toks": ["return", "me", "the", "number", "of", "citations", "of", "``", "Making", "database", "systems", "usable", "``", "in", "each", "year", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [4, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"Making database systems usable\"", null]], "groupBy": [[0, 30, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1001", "db_id": "university_basketball", "query": "select sum(enrollment) , affiliation from university group by affiliation", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "affiliation", "FROM", "university", "GROUP", "BY", "affiliation"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "group", "by", "affiliation"], "question": "Find the total student enrollment for different affiliation type schools.", "question_toks": ["Find", "the", "total", "student", "enrollment", "for", "different", "affiliation", "type", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1015", "db_id": "university_basketball", "query": "select sum(enrollment) , affiliation from university where founded > 1850 group by affiliation", "query_toks": ["SELECT", "sum", "(", "Enrollment", ")", ",", "affiliation", "FROM", "university", "WHERE", "founded", ">", "1850", "GROUP", "BY", "affiliation"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "where", "founded", ">", "value", "group", "by", "affiliation"], "question": "Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.", "question_toks": ["Find", "the", "total", "number", "of", "students", "enrolled", "in", "the", "colleges", "that", "were", "founded", "after", "the", "year", "of", "1850", "for", "each", "affiliation", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 1850.0, null]], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1241", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_facilities as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t1.facility_code = \"gym\"", "query_toks": ["SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.facility_code", "=", "``", "Gym", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "value"], "question": "Find the total number of rooms in the apartments that have facility code \"Gym\".", "question_toks": ["Find", "the", "total", "number", "of", "rooms", "in", "the", "apartments", "that", "have", "facility", "code", "``", "Gym", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Gym\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1242", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_buildings as t1 join apartments as t2 on t1.building_id = t2.building_id where t1.building_short_name = \"columbus square\"", "query_toks": ["SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T1.building_short_name", "=", "``", "Columbus", "Square", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "value"], "question": "Show the total number of rooms of the apartments in the building with short name \"Columbus Square\".", "question_toks": ["Show", "the", "total", "number", "of", "rooms", "of", "the", "apartments", "in", "the", "building", "with", "short", "name", "``", "Columbus", "Square", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Columbus Square\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1352", "db_id": "college_2", "query": "select sum(budget) from department where dept_name = 'marketing' or dept_name = 'finance'", "query_toks": ["SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "'Marketing", "'", "OR", "dept_name", "=", "'Finance", "'"], "query_toks_no_value": ["select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value"], "question": "Find the total budgets of the Marketing or Finance department.", "question_toks": ["Find", "the", "total", "budgets", "of", "the", "Marketing", "or", "Finance", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Marketing\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Finance\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1398", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "query_toks_no_value": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "question": "Find the total credits of courses provided by different department.", "question_toks": ["Find", "the", "total", "credits", "of", "courses", "provided", "by", "different", "department", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1517", "db_id": "insurance_and_eClaims", "query": "select sum(t1.amount_claimed) from claim_headers as t1 join claims_documents as t2 on t1.claim_header_id = t2.claim_id where t2.created_date = (select created_date from claims_documents order by created_date limit 1)", "query_toks": ["SELECT", "sum", "(", "t1.amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1.claim_header_id", "=", "t2.claim_id", "WHERE", "t2.created_date", "=", "(", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "(", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "value", ")"], "question": "Find the total amount claimed in the most recently created document.", "question_toks": ["Find", "the", "total", "amount", "claimed", "in", "the", "most", "recently", "created", "document", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1588", "db_id": "customers_and_invoices", "query": "select transaction_type , sum(transaction_amount) from financial_transactions group by transaction_type", "query_toks": ["SELECT", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type"], "query_toks_no_value": ["select", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions", "group", "by", "transaction_type"], "question": "What are total transaction amounts for each transaction type?", "question_toks": ["What", "are", "total", "transaction", "amounts", "for", "each", "transaction", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1781", "db_id": "small_bank_1", "query": "select sum(balance) from checking", "query_toks": ["SELECT", "sum", "(", "balance", ")", "FROM", "checking"], "query_toks_no_value": ["select", "sum", "(", "balance", ")", "from", "checking"], "question": "Find the total balance across checking accounts.", "question_toks": ["Find", "the", "total", "balance", "across", "checking", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1806", "db_id": "small_bank_1", "query": "select sum(t2.balance) , t1.name from accounts as t1 join savings as t2 on t1.custid = t2.custid group by t1.name", "query_toks": ["SELECT", "sum", "(", "T2.balance", ")", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "GROUP", "BY", "T1.name"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "group", "by", "t1", ".", "name"], "question": "Find the total saving balance for each account name.", "question_toks": ["Find", "the", "total", "saving", "balance", "for", "each", "account", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2589", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = 'king';", "query_toks": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "'King", "'", ";"], "query_toks_no_value": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "value"], "question": "Find the total number of king beds available.", "question_toks": ["Find", "the", "total", "number", "of", "king", "beds", "available", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"King\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3034", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = 'utah' or state = 'texas'", "query_toks": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "'Utah", "'", "OR", "state", "=", "'Texas", "'"], "query_toks_no_value": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "Find the total account balance of each customer from Utah or Texas.", "question_toks": ["Find", "the", "total", "account", "balance", "of", "each", "customer", "from", "Utah", "or", "Texas", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Utah\"", null], "or", [false, 2, [0, [0, 13, false], null], "\"Texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3060", "db_id": "loan_1", "query": "select sum(amount) , t1.bname from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id group by t1.bname", "query_toks": ["SELECT", "sum", "(", "amount", ")", ",", "T1.bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "GROUP", "BY", "T1.bname"], "query_toks_no_value": ["select", "sum", "(", "amount", ")", ",", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "group", "by", "t1", ".", "bname"], "question": "Find the total amount of loans offered by each bank branch.", "question_toks": ["Find", "the", "total", "amount", "of", "loans", "offered", "by", "each", "bank", "branch", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3080", "db_id": "loan_1", "query": "select sum(t2.amount) from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id where t1.state = 'new york'", "query_toks": ["SELECT", "sum", "(", "T2.amount", ")", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T1.state", "=", "'New", "York", "'"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "amount", ")", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "state", "=", "value"], "question": "Find the total amount of loans provided by bank branches in the state of New York.", "question_toks": ["Find", "the", "total", "amount", "of", "loans", "provided", "by", "bank", "branches", "in", "the", "state", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"New York\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1424", "db_id": "academic", "query": "select t1.name from domain_author as t6 join author as t1 on t6.aid = t1.aid join domain as t3 on t3.did = t6.did join organization as t5 on t5.oid = t1.oid join writes as t2 on t2.aid = t1.aid join publication as t4 on t2.pid = t4.pid where t3.name = \"databases\" and t5.name = \"university of michigan\" group by t1.name having sum ( t4.citation_num ) > 5000;", "query_toks": ["SELECT", "t1.name", "FROM", "domain_author", "AS", "t6", "JOIN", "author", "AS", "t1", "ON", "t6.aid", "=", "t1.aid", "JOIN", "DOMAIN", "AS", "t3", "ON", "t3.did", "=", "t6.did", "JOIN", "organization", "AS", "t5", "ON", "t5.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t2", "ON", "t2.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t4", "ON", "t2.pid", "=", "t4.pid", "WHERE", "t3.name", "=", "``", "Databases", "''", "AND", "t5.name", "=", "``", "University", "of", "Michigan", "''", "GROUP", "BY", "t1.name", "HAVING", "SUM", "(", "t4.citation_num", ")", ">", "5000", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "domain_author", "as", "t6", "join", "author", "as", "t1", "on", "t6", ".", "aid", "=", "t1", ".", "aid", "join", "domain", "as", "t3", "on", "t3", ".", "did", "=", "t6", ".", "did", "join", "organization", "as", "t5", "on", "t5", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t4", "on", "t2", ".", "pid", "=", "t4", ".", "pid", "where", "t3", ".", "name", "=", "value", "and", "t5", ".", "name", "=", "value", "group", "by", "t1", ".", "name", "having", "sum", "(", "t4", ".", "citation_num", ")", ">", "value"], "question": "return me the author in the \" University of Michigan \" in Databases area whose papers have more than 5000 total citations .", "question_toks": ["return", "me", "the", "author", "in", "the", "``", "University", "of", "Michigan", "``", "in", "Databases", "area", "whose", "papers", "have", "more", "than", "5000", "total", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0], ["table_unit", 2], ["table_unit", 11], ["table_unit", 13], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Databases\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [4, 25, false], null], 5000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2840", "db_id": "restaurant_1", "query": "select restaurant.resname , sum(visits_restaurant.spent) from visits_restaurant join restaurant on visits_restaurant.resid = restaurant.resid group by restaurant.resid order by sum(visits_restaurant.spent) asc limit 1;", "query_toks": ["SELECT", "Restaurant.ResName", ",", "sum", "(", "Visits_Restaurant.Spent", ")", "FROM", "Visits_Restaurant", "JOIN", "Restaurant", "ON", "Visits_Restaurant.ResID", "=", "Restaurant.ResID", "GROUP", "BY", "Restaurant.ResID", "ORDER", "BY", "sum", "(", "Visits_Restaurant.Spent", ")", "ASC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "restaurant.resname", ",", "sum", "(", "visits_restaurant.spent", ")", "from", "visits_restaurant", "join", "restaurant", "on", "visits_restaurant.resid", "=", "restaurant.resid", "group", "by", "restaurant.resid", "order", "by", "sum", "(", "visits_restaurant.spent", ")", "asc", "limit", "value"], "question": "At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.", "question_toks": ["At", "which", "restaurant", "did", "the", "students", "spend", "the", "least", "amount", "of", "time", "?", "List", "restaurant", "and", "the", "time", "students", "spent", "on", "in", "total", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["asc", [[0, [4, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3010", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank where city = 'new york city'", "query_toks": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank", "WHERE", "city", "=", "'New", "York", "City", "'"], "query_toks_no_value": ["select", "sum", "(", "no_of_customers", ")", "from", "bank", "where", "city", "=", "value"], "question": "Find the number of customers in the banks at New York City.", "question_toks": ["Find", "the", "number", "of", "customers", "in", "the", "banks", "at", "New", "York", "City", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"New York City\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_sum_0004", "db_id": "cinema", "query": "select t2.name , sum(t1.show_times_per_day) from schedule as t1 join cinema as t2 on t1.cinema_id = t2.cinema_id group by t1.cinema_id", "query_toks": ["SELECT", "T2", ".", "name", ",", "sum", "(", "T1", ".", "show_times_per_day", ")", "FROM", "schedule", "AS", "T1", "JOIN", "cinema", "AS", "T2", "ON", "T1", ".", "cinema_id", "=", "T2", ".", "cinema_id", "GROUP", "BY", "T1", ".", "cinema_id"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "sum", "(", "T1", ".", "show_times_per_day", ")", "FROM", "schedule", "AS", "T1", "JOIN", "cinema", "AS", "T2", "ON", "T1", ".", "cinema_id", "=", "T2", ".", "cinema_id", "GROUP", "BY", "T1", ".", "cinema_id"], "question": "What is total number of show times per day for each cinema?", "question_toks": ["What", "is", "total", "number", "of", "show", "times", "per", "day", "for", "each", "cinema", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [4, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_sum_0064", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc", "query_toks": ["SELECT", "DISTINCT", "t1", ".", "keyphrasename", ",", "SUM", "(", "t3", ".", "numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t5", "ON", "t4", ".", "authorid", "=", "t5", ".", "authorid", "WHERE", "t5", ".", "authorname", "=", "``", "brian", "derenzi", "''", "GROUP", "BY", "t1", ".", "keyphrasename", "ORDER", "BY", "SUM", "(", "t3", ".", "numcitedby", ")", "DESC"], "query_toks_no_value": ["SELECT", "DISTINCT", "t1", ".", "keyphrasename", ",", "SUM", "(", "t3", ".", "numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t5", "ON", "t4", ".", "authorid", "=", "t5", ".", "authorid", "WHERE", "t5", ".", "authorname", "=", "value", "derenzi", "GROUP", "BY", "t1", ".", "keyphrasename", "ORDER", "BY", "SUM", "(", "t3", ".", "numcitedby", ")", "DESC"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations ? Return also the number of citations", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "?", "Return", "also", "the", "number", "of", "citations"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_sum_0065", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc", "query_toks": ["SELECT", "DISTINCT", "t1", ".", "keyphrasename", ",", "SUM", "(", "t3", ".", "numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t5", "ON", "t4", ".", "authorid", "=", "t5", ".", "authorid", "WHERE", "t5", ".", "authorname", "=", "``", "brian", "derenzi", "''", "GROUP", "BY", "t1", ".", "keyphrasename", "ORDER", "BY", "SUM", "(", "t3", ".", "numcitedby", ")", "DESC"], "query_toks_no_value": ["SELECT", "DISTINCT", "t1", ".", "keyphrasename", ",", "SUM", "(", "t3", ".", "numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3", ".", "paperid", "=", "t2", ".", "paperid", "JOIN", "writes", "AS", "t4", "ON", "t4", ".", "paperid", "=", "t3", ".", "paperid", "JOIN", "author", "AS", "t5", "ON", "t4", ".", "authorid", "=", "t5", ".", "authorid", "WHERE", "t5", ".", "authorname", "=", "value", "derenzi", "GROUP", "BY", "t1", ".", "keyphrasename", "ORDER", "BY", "SUM", "(", "t3", ".", "numcitedby", ")", "DESC"], "question": "main topics of work by Brian DeRenzi with the number of citation", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi", "with", "the", "number", "of", "citation"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0487", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")"], "question": "Show the student id of the oldest student.", "question_toks": ["Show", "the", "student", "id", "of", "the", "oldest", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0488", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")"], "question": "What student id corresponds to the oldest student?", "question_toks": ["What", "student", "id", "corresponds", "to", "the", "oldest", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0113", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, return the highest latitude among its stations.", "question_toks": ["For", "each", "city", ",", "return", "the", "highest", "latitude", "among", "its", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0114", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, what is the highest latitude for its stations?", "question_toks": ["For", "each", "city", ",", "what", "is", "the", "highest", "latitude", "for", "its", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0183", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "query_toks_no_value": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "question": "List all the cities in a decreasing order of each city's stations' highest latitude.", "question_toks": ["List", "all", "the", "cities", "in", "a", "decreasing", "order", "of", "each", "city", "'s", "stations", "'", "highest", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0184", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "query_toks_no_value": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "question": "For each city, list their names in decreasing order by their highest station latitude.", "question_toks": ["For", "each", "city", ",", "list", "their", "names", "in", "decreasing", "order", "by", "their", "highest", "station", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1952", "db_id": "cinema", "query": "select t2.title , max(t1.price) from schedule as t1 join film as t2 on t1.film_id = t2.film_id group by t1.film_id", "query_toks": ["SELECT", "T2.title", ",", "max", "(", "T1.price", ")", "FROM", "schedule", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T1.film_id"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "max", "(", "t1", ".", "price", ")", "from", "schedule", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id"], "question": "Give me the title and highest price for each film.", "question_toks": ["Give", "me", "the", "title", "and", "highest", "price", "for", "each", "film", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [1, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1450", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "query_toks_no_value": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "question": "What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?", "question_toks": ["What", "is", "the", "title", "and", "credits", "of", "the", "course", "that", "is", "taught", "in", "the", "largest", "classroom", "(", "with", "the", "highest", "capacity", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1451", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "query_toks_no_value": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "question": "Give the title and credits for the course that is taught in the classroom with the greatest capacity.", "question_toks": ["Give", "the", "title", "and", "credits", "for", "the", "course", "that", "is", "taught", "in", "the", "classroom", "with", "the", "greatest", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1482", "db_id": "college_2", "query": "select distinct salary from instructor where salary < (select max(salary) from instructor)", "query_toks": ["SELECT", "DISTINCT", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", ")"], "query_toks_no_value": ["select", "distinct", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "max", "(", "salary", ")", "from", "instructor", ")"], "question": "Find the salaries of all distinct instructors that are less than the largest salary.", "question_toks": ["Find", "the", "salaries", "of", "all", "distinct", "instructors", "that", "are", "less", "than", "the", "largest", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1490", "db_id": "college_2", "query": "select name from instructor where salary > (select max(salary) from instructor where dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")"], "question": "Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department.", "question_toks": ["Find", "the", "names", "of", "all", "instructors", "whose", "salary", "is", "greater", "than", "the", "salary", "of", "all", "instructors", "in", "the", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6467", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''"], "query_toks_no_value": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value"], "question": "What are the account details with the largest value or with value having char '5' in it?", "question_toks": ["What", "are", "the", "account", "details", "with", "the", "largest", "value", "or", "with", "value", "having", "char", "'5", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6468", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''"], "query_toks_no_value": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value"], "question": "Return the account details with the greatest value, as well as those that include the character 5.", "question_toks": ["Return", "the", "account", "details", "with", "the", "greatest", "value", ",", "as", "well", "as", "those", "that", "include", "the", "character", "5", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2360", "db_id": "csu_1", "query": "select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and faculty > (select max(faculty) from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and t1.county = \"orange\")", "query_toks": ["SELECT", "T1.campus", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "faculty", ">", "(", "SELECT", "max", "(", "faculty", ")", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "T1.county", "=", "``", "Orange", "''", ")"], "query_toks_no_value": ["select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "faculty", ">", "(", "select", "max", "(", "faculty", ")", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "t1", ".", "county", "=", "value", ")"], "question": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county.", "question_toks": ["Find", "the", "names", "of", "the", "campus", "which", "has", "more", "faculties", "in", "2002", "than", "every", "campus", "in", "Orange", "county", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 3, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 2, [0, [0, 4, false], null], "\"Orange\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6099", "db_id": "customers_and_addresses", "query": "select max(t2.active_to_date) from customers as t1 join customer_contact_channels as t2 on t1.customer_id = t2.customer_id where t1.customer_name = \"tillman ernser\"", "query_toks": ["SELECT", "max", "(", "t2.active_to_date", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "=", "``", "Tillman", "Ernser", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "active_to_date", ")", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value"], "question": "What is the \"active to date\" of the latest contact channel used by \"Tillman Ernser\"?", "question_toks": ["What", "is", "the", "``", "active", "to", "date", "''", "of", "the", "latest", "contact", "channel", "used", "by", "``", "Tillman", "Ernser", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Tillman Ernser\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6107", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t3.order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "question": "What is the name of the customer that made the order with the largest quantity?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "that", "made", "the", "order", "with", "the", "largest", "quantity", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6108", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t3.order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "question": "Find the name of the customer who made the order of the largest amount of goods.", "question_toks": ["Find", "the", "name", "of", "the", "customer", "who", "made", "the", "order", "of", "the", "largest", "amount", "of", "goods", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4755", "db_id": "department_store", "query": "select staff_id from staff_department_assignments where date_assigned_to < (select max(date_assigned_to) from staff_department_assignments where job_title_code = 'clerical staff')", "query_toks": ["SELECT", "staff_id", "FROM", "Staff_Department_Assignments", "WHERE", "date_assigned_to", "<", "(", "SELECT", "max", "(", "date_assigned_to", ")", "FROM", "Staff_Department_Assignments", "WHERE", "job_title_code", "=", "'Clerical", "Staff", "'", ")"], "query_toks_no_value": ["select", "staff_id", "from", "staff_department_assignments", "where", "date_assigned_to", "<", "(", "select", "max", "(", "date_assigned_to", ")", "from", "staff_department_assignments", "where", "job_title_code", "=", "value", ")"], "question": "What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?", "question_toks": ["What", "is", "id", "of", "the", "staff", "who", "had", "a", "Staff", "Department", "Assignment", "earlier", "than", "any", "Clerical", "Staff", "?"], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 52, false], null]]]], "where": [[false, 4, [0, [0, 56, false], null], {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[1, [0, [0, 56, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"Clerical Staff\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0988", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "dogs"], "question": "What is the age of the oldest dog?", "question_toks": ["What", "is", "the", "age", "of", "the", "oldest", "dog", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0989", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "dogs"], "question": "Tell me the age of the oldest dog.", "question_toks": ["Tell", "me", "the", "age", "of", "the", "oldest", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0992", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "query_toks_no_value": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "question": "How much does the most expensive charge type costs?", "question_toks": ["How", "much", "does", "the", "most", "expensive", "charge", "type", "costs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HOW_MANY", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0993", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "query_toks_no_value": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "question": "What is the charge amount of the most expensive charge type?", "question_toks": ["What", "is", "the", "charge", "amount", "of", "the", "most", "expensive", "charge", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5744", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["SELECT", "avg", "(", "T1.age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "question": "Find the average age of students who are living in the dorm with the largest capacity.", "question_toks": ["Find", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "largest", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5745", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["SELECT", "avg", "(", "T1.age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "question": "What is the average age of students who are living in the dorm with the largest capacity?", "question_toks": ["What", "is", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "largest", "capacity", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6324", "db_id": "e_government", "query": "select t3.individual_last_name from organizations as t1 join organization_contact_individuals as t2 on t1.organization_id = t2.organization_id join individuals as t3 on t2.individual_id = t3.individual_id where t1.uk_vat_number = (select max(uk_vat_number) from organizations) order by t2.date_contact_to asc limit 1", "query_toks": ["SELECT", "t3.individual_last_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.organization_id", "=", "t2.organization_id", "JOIN", "individuals", "AS", "t3", "ON", "t2.individual_id", "=", "t3.individual_id", "WHERE", "t1.uk_vat_number", "=", "(", "SELECT", "max", "(", "uk_vat_number", ")", "FROM", "organizations", ")", "ORDER", "BY", "t2.date_contact_to", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "individual_last_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "join", "individuals", "as", "t3", "on", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "where", "t1", ".", "uk_vat_number", "=", "(", "select", "max", "(", "uk_vat_number", ")", "from", "organizations", ")", "order", "by", "t2", ".", "date_contact_to", "asc", "limit", "value"], "question": "Find the last name of the first ever contact person of the organization with the highest UK Vat number.", "question_toks": ["Find", "the", "last", "name", "of", "the", "first", "ever", "contact", "person", "of", "the", "organization", "with", "the", "highest", "UK", "Vat", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 32, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 35, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6812", "db_id": "flight_4", "query": "select max(elevation) from airports where country = 'iceland'", "query_toks": ["SELECT", "max", "(", "elevation", ")", "FROM", "airports", "WHERE", "country", "=", "'Iceland", "'"], "query_toks_no_value": ["select", "max", "(", "elevation", ")", "from", "airports", "where", "country", "=", "value"], "question": "What is the highest elevation of an airport in the country of Iceland?", "question_toks": ["What", "is", "the", "highest", "elevation", "of", "an", "airport", "in", "the", "country", "of", "Iceland", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Iceland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2195", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.", "question_toks": ["Find", "the", "distinct", "driver", "id", "and", "the", "stop", "number", "of", "all", "drivers", "that", "have", "a", "shorter", "pit", "stop", "duration", "than", "some", "drivers", "in", "the", "race", "with", "id", "841", "."], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2196", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "What is the id and stop number for each driver that has a shorter pit stop than the driver in the race with id 841?", "question_toks": ["What", "is", "the", "id", "and", "stop", "number", "for", "each", "driver", "that", "has", "a", "shorter", "pit", "stop", "than", "the", "driver", "in", "the", "race", "with", "id", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0000", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the biggest city in wyoming", "question_toks": ["what", "is", "the", "biggest", "city", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0001", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what wyoming city has the largest population", "question_toks": ["what", "wyoming", "city", "has", "the", "largest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0002", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the largest city in wyoming", "question_toks": ["what", "is", "the", "largest", "city", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0003", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "where is the most populated area of wyoming", "question_toks": ["where", "is", "the", "most", "populated", "area", "of", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0004", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "which city in wyoming has the largest population", "question_toks": ["which", "city", "in", "wyoming", "has", "the", "largest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0005", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what cities in wyoming have the highest number of citizens", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "highest", "number", "of", "citizens"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0006", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what cities in wyoming have the highest populations", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "highest", "populations"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0068", "db_id": "geo", "query": "select state_name from state where population = ( select max ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "state", ")"], "question": "which state has the most people", "question_toks": ["which", "state", "has", "the", "most", "people"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0074", "db_id": "geo", "query": "select length from river where length = ( select max ( length ) from river );", "query_toks": ["SELECT", "LENGTH", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "length", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "how long is the longest river in the usa", "question_toks": ["how", "long", "is", "the", "longest", "river", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0075", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\";", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the longest river flowing through texas", "question_toks": ["what", "is", "the", "longest", "river", "flowing", "through", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0076", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\";", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the largest river in texas state", "question_toks": ["what", "is", "the", "largest", "river", "in", "texas", "state"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0077", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\";", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the longest river in texas", "question_toks": ["what", "is", "the", "longest", "river", "in", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0147", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river );", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "which states does the longest river run through", "question_toks": ["which", "states", "does", "the", "longest", "river", "run", "through"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0148", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river );", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "which state has the longest river", "question_toks": ["which", "state", "has", "the", "longest", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0174", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what state is the biggest", "question_toks": ["what", "state", "is", "the", "biggest"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0175", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the state with the largest area", "question_toks": ["what", "is", "the", "state", "with", "the", "largest", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0176", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what state has the largest area", "question_toks": ["what", "state", "has", "the", "largest", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0177", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the biggest state in continental us", "question_toks": ["what", "is", "the", "biggest", "state", "in", "continental", "us"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0211", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow;", "query_toks": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ";"], "query_toks_no_value": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "question": "how high is the highest point in america", "question_toks": ["how", "high", "is", "the", "highest", "point", "in", "america"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0212", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow;", "query_toks": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ";"], "query_toks_no_value": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "question": "what is the highest elevation in the united states", "question_toks": ["what", "is", "the", "highest", "elevation", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0236", "db_id": "geo", "query": "select population from city where population = ( select max ( population ) from city where state_name = \"alaska\" ) and state_name = \"alaska\";", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "alaska", "''", ")", "AND", "state_name", "=", "``", "alaska", "''", ";"], "query_toks_no_value": ["select", "population", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "how large is the largest city in alaska", "question_toks": ["how", "large", "is", "the", "largest", "city", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0303", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", ")"], "question": "what city has the largest population", "question_toks": ["what", "city", "has", "the", "largest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0305", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", ")"], "question": "what is the biggest city in usa", "question_toks": ["what", "is", "the", "biggest", "city", "in", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0309", "db_id": "geo", "query": "select city_name from city where population = ( select max ( t1.population ) from state as t2 join city as t1 on t2.capital = t1.city_name );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "t1.population", ")", "FROM", "state", "AS", "t2", "JOIN", "city", "AS", "t1", "ON", "t2.capital", "=", "t1.city_name", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "t1", ".", "population", ")", "from", "state", "as", "t2", "join", "city", "as", "t1", "on", "t2", ".", "capital", "=", "t1", ".", "city_name", ")"], "question": "what is the largest capital", "question_toks": ["what", "is", "the", "largest", "capital"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 7, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0327", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the highest mountain in the us", "question_toks": ["what", "is", "the", "highest", "mountain", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0328", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the highest mountain in us", "question_toks": ["what", "is", "the", "highest", "mountain", "in", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0329", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the tallest mountain in america", "question_toks": ["what", "is", "the", "tallest", "mountain", "in", "america"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0330", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the tallest mountain in the united states", "question_toks": ["what", "is", "the", "tallest", "mountain", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0333", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "what is the highest point in the usa", "question_toks": ["what", "is", "the", "highest", "point", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0334", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "what is the highest point of the usa", "question_toks": ["what", "is", "the", "highest", "point", "of", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0342", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state where state_name in ( select border from border_info where state_name = \"california\" ) ) and state_name in ( select border from border_info where state_name = \"california\" );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "california", "''", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "california", "''", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")", ")", "and", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")"], "question": "what is the largest state bordering california", "question_toks": ["what", "is", "the", "largest", "state", "bordering", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0362", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "what is the most dense state in the usa", "question_toks": ["what", "is", "the", "most", "dense", "state", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0363", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the highest population density", "question_toks": ["which", "state", "has", "the", "highest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0364", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the greatest density", "question_toks": ["which", "state", "has", "the", "greatest", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0370", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the largest density", "question_toks": ["which", "state", "has", "the", "largest", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0434", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "which state has the highest elevation", "question_toks": ["which", "state", "has", "the", "highest", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0437", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "in which state does the highest point in usa exist", "question_toks": ["in", "which", "state", "does", "the", "highest", "point", "in", "usa", "exist"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0515", "db_id": "geo", "query": "select capital from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "capital", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "capital", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the capital of the largest state", "question_toks": ["what", "is", "the", "capital", "of", "the", "largest", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0522", "db_id": "geo", "query": "select city_name from city where population > 150000 and state_name = ( select state_name from state where area = ( select max ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", ">", "150000", "AND", "state_name", "=", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", ">", "value", "and", "state_name", "=", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")"], "question": "what are the major cities in the largest state", "question_toks": ["what", "are", "the", "major", "cities", "in", "the", "largest", "state"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 150000.0, null], "and", [false, 2, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0532", "db_id": "geo", "query": "select max ( area ) from state;", "query_toks": ["SELECT", "MAX", "(", "area", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "max", "(", "area", ")", "from", "state"], "question": "what is the size of the largest state in the usa", "question_toks": ["what", "is", "the", "size", "of", "the", "largest", "state", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3447", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "query_toks_no_value": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "question": "display the employee ID for each employee and the date on which he ended his previous job.", "question_toks": ["display", "the", "employee", "ID", "for", "each", "employee", "and", "the", "date", "on", "which", "he", "ended", "his", "previous", "job", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3448", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "query_toks_no_value": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "question": "What are the employee ids for each employee and final dates of employment at their last job?", "question_toks": ["What", "are", "the", "employee", "ids", "for", "each", "employee", "and", "final", "dates", "of", "employment", "at", "their", "last", "job", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3509", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = 'pu_man' )", "query_toks": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'PU_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.", "question_toks": ["display", "the", "employee", "number", ",", "name", "(", "first", "name", "and", "last", "name", ")", "and", "job", "title", "for", "all", "employees", "whose", "salary", "is", "more", "than", "any", "salary", "of", "those", "employees", "whose", "job", "title", "is", "PU_MAN", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"PU_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3510", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = 'pu_man' )", "query_toks": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'PU_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?", "question_toks": ["What", "are", "the", "employee", "ids", ",", "full", "names", ",", "and", "job", "ids", "for", "employees", "who", "make", "more", "than", "the", "highest", "earning", "employee", "with", "title", "PU_MAN", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"PU_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3515", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "question": "display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.", "question_toks": ["display", "the", "department", "ID", ",", "full", "name", "(", "first", "and", "last", "name", ")", ",", "salary", "for", "those", "employees", "who", "is", "highest", "salary", "in", "every", "department", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3516", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "question": "What are the department ids, full names, and salaries for employees who make the most in their departments?", "question_toks": ["What", "are", "the", "department", "ids", ",", "full", "names", ",", "and", "salaries", "for", "employees", "who", "make", "the", "most", "in", "their", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2912", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["SELECT", "t2.title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "WHERE", "t1.authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "question": "Retrieve the title of the paper that has the largest number of authors.", "question_toks": ["Retrieve", "the", "title", "of", "the", "paper", "that", "has", "the", "largest", "number", "of", "authors", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2913", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["SELECT", "t2.title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "WHERE", "t1.authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "question": "Which paper has the most authors? Give me the paper title.", "question_toks": ["Which", "paper", "has", "the", "most", "authors", "?", "Give", "me", "the", "paper", "title", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1519", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "question": "What is the name of the customer who has made the largest amount of claim in a single claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1520", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "question": "Which customer made the largest amount of claim in a single claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1545", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "query_toks_no_value": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "question": "Which customer is associated with the latest policy?", "question_toks": ["Which", "customer", "is", "associated", "with", "the", "latest", "policy", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1546", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "query_toks_no_value": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "question": "Find the customer who started a policy most recently.", "question_toks": ["Find", "the", "customer", "who", "started", "a", "policy", "most", "recently", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4855", "db_id": "local_govt_and_lot", "query": "select max(date_moved_in) from residents", "query_toks": ["SELECT", "max", "(", "date_moved_in", ")", "FROM", "Residents"], "query_toks_no_value": ["select", "max", "(", "date_moved_in", ")", "from", "residents"], "question": "When is the last day any resident moved in?", "question_toks": ["When", "is", "the", "last", "day", "any", "resident", "moved", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5308", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "query_toks_no_value": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "question": "Find the name and revenue of the company that earns the highest revenue in each city.", "question_toks": ["Find", "the", "name", "and", "revenue", "of", "the", "company", "that", "earns", "the", "highest", "revenue", "in", "each", "city", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5309", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "query_toks_no_value": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "question": "What are the names and revenues of the companies with the highest revenues in each headquarter city?", "question_toks": ["What", "are", "the", "names", "and", "revenues", "of", "the", "companies", "with", "the", "highest", "revenues", "in", "each", "headquarter", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5348", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["SELECT", "T1.Name", ",", "max", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "question": "Select the name of each manufacturer along with the name and price of its most expensive product.", "question_toks": ["Select", "the", "name", "of", "each", "manufacturer", "along", "with", "the", "name", "and", "price", "of", "its", "most", "expensive", "product", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5349", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["SELECT", "T1.Name", ",", "max", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "question": "For each manufacturer name, what are the names and prices of their most expensive product?", "question_toks": ["For", "each", "manufacturer", "name", ",", "what", "are", "the", "names", "and", "prices", "of", "their", "most", "expensive", "product", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3394", "db_id": "manufacturer", "query": "select t1.name from furniture as t1 join furniture_manufacte as t2 on t1.furniture_id = t2.furniture_id where t2.price_in_dollar < (select max(price_in_dollar) from furniture_manufacte)", "query_toks": ["SELECT", "t1.name", "FROM", "furniture", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1.Furniture_ID", "=", "t2.Furniture_ID", "WHERE", "t2.Price_in_Dollar", "<", "(", "SELECT", "max", "(", "Price_in_Dollar", ")", "FROM", "furniture_manufacte", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "furniture", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "furniture_id", "=", "t2", ".", "furniture_id", "where", "t2", ".", "price_in_dollar", "<", "(", "select", "max", "(", "price_in_dollar", ")", "from", "furniture_manufacte", ")"], "question": "Find the names of furnitures whose prices are lower than the highest price.", "question_toks": ["Find", "the", "names", "of", "furnitures", "whose", "prices", "are", "lower", "than", "the", "highest", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 4, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2464", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the name of the most recent movie?", "question_toks": ["What", "is", "the", "name", "of", "the", "most", "recent", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2465", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the title of the newest movie?", "question_toks": ["What", "is", "the", "title", "of", "the", "newest", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2467", "db_id": "movie_1", "query": "select max(t1.stars) , t2.year from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["SELECT", "max", "(", "T1.stars", ")", ",", "T2.year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is highest rating for the most recent movie and when was it released?", "question_toks": ["What", "is", "highest", "rating", "for", "the", "most", "recent", "movie", "and", "when", "was", "it", "released", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2468", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "Steven", "Spielberg", "''", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", ")"], "question": "What is the names of movies whose created year is after all movies directed by Steven Spielberg?", "question_toks": ["What", "is", "the", "names", "of", "movies", "whose", "created", "year", "is", "after", "all", "movies", "directed", "by", "Steven", "Spielberg", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Steven Spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2469", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "Steven", "Spielberg", "''", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", ")"], "question": "What are the names of all movies that were created after the most recent Steven Spielberg film?", "question_toks": ["What", "are", "the", "names", "of", "all", "movies", "that", "were", "created", "after", "the", "most", "recent", "Steven", "Spielberg", "film", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Steven Spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2502", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid where director != \"null\" group by director", "query_toks": ["SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "max", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "director", "!", "=", "value", "group", "by", "director"], "question": "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.", "question_toks": ["For", "each", "director", ",", "return", "the", "director", "'s", "name", "together", "with", "the", "title", "of", "the", "movie", "they", "directed", "that", "received", "the", "highest", "rating", "among", "all", "of", "their", "movies", ",", "and", "the", "value", "of", "that", "rating", ".", "Ignore", "movies", "whose", "director", "is", "NULL", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3571", "db_id": "music_1", "query": "select song_name from song where rating < (select max(rating) from song where genre_is = \"blues\")", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "max", "(", "rating", ")", "FROM", "song", "WHERE", "genre_is", "=", "``", "blues", "''", ")"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "max", "(", "rating", ")", "from", "song", "where", "genre_is", "=", "value", ")"], "question": "What are the names of all songs that have a lower rating than some song of blues genre?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "have", "a", "lower", "rating", "than", "some", "song", "of", "blues", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"blues\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3615", "db_id": "music_1", "query": "select f_id from song where resolution > (select max(resolution) from song where rating < 8)", "query_toks": ["SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "max", "(", "resolution", ")", "FROM", "song", "WHERE", "rating", "<", "8", ")"], "query_toks_no_value": ["select", "f_id", "from", "song", "where", "resolution", ">", "(", "select", "max", "(", "resolution", ")", "from", "song", "where", "rating", "<", "value", ")"], "question": "What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?", "question_toks": ["What", "is", "ids", "of", "the", "songs", "whose", "resolution", "is", "higher", "than", "the", "resolution", "of", "any", "songs", "with", "rating", "lower", "than", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0917", "db_id": "network_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "What is the lowest grade of students who do not have any friends?", "question_toks": ["What", "is", "the", "lowest", "grade", "of", "students", "who", "do", "not", "have", "any", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4408", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")"], "question": "Who is the oldest person?", "question_toks": ["Who", "is", "the", "oldest", "person", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4409", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")"], "question": "What is the name of the person who is the oldest?", "question_toks": ["What", "is", "the", "name", "of", "the", "person", "who", "is", "the", "oldest", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4410", "db_id": "network_2", "query": "select name from person where job = 'student' and age = (select max(age) from person where job = 'student' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "Who is the oldest person whose job is student?", "question_toks": ["Who", "is", "the", "oldest", "person", "whose", "job", "is", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4411", "db_id": "network_2", "query": "select name from person where job = 'student' and age = (select max(age) from person where job = 'student' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "What is the name of the oldest student?", "question_toks": ["What", "is", "the", "name", "of", "the", "oldest", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4432", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = 'engineer')", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "Find the number of people whose age is greater than all engineers.", "question_toks": ["Find", "the", "number", "of", "people", "whose", "age", "is", "greater", "than", "all", "engineers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4433", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = 'engineer')", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "How many people are older than every engineer?", "question_toks": ["How", "many", "people", "are", "older", "than", "every", "engineer", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4468", "db_id": "network_2", "query": "select friend from personfriend where name = 'zach' and year = (select max(year) from personfriend where name = 'zach')", "query_toks": ["SELECT", "friend", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", "AND", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")"], "query_toks_no_value": ["select", "friend", "from", "personfriend", "where", "name", "=", "value", "and", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")"], "question": "Who is the friend of Zach with longest year relationship?", "question_toks": ["Who", "is", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4470", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'zach' and t2.year = (select max(year) from personfriend where name = 'zach')", "query_toks": ["SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")"], "question": "What is the age of the friend of Zach with longest year relationship?", "question_toks": ["What", "is", "the", "age", "of", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4471", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'zach' and t2.year = (select max(year) from personfriend where name = 'zach')", "query_toks": ["SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")"], "question": "What are the ages of all of Zach's friends who are in the longest relationship?", "question_toks": ["What", "are", "the", "ages", "of", "all", "of", "Zach", "'s", "friends", "who", "are", "in", "the", "longest", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4474", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'alice' and t2.year = (select max(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "Find the name, age, and job title of persons who are friends with Alice for the longest years.", "question_toks": ["Find", "the", "name", ",", "age", ",", "and", "job", "title", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "years", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4475", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'alice' and t2.year = (select max(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?", "question_toks": ["What", "are", "the", "names", ",", "ages", ",", "and", "jobs", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2323", "db_id": "perpetrator", "query": "select max(year) from perpetrator;", "query_toks": ["SELECT", "max", "(", "YEAR", ")", "FROM", "perpetrator", ";"], "query_toks_no_value": ["select", "max", "(", "year", ")", "from", "perpetrator"], "question": "In which year did the most recent crime happen?", "question_toks": ["In", "which", "year", "did", "the", "most", "recent", "crime", "happen", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1541", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" );", "query_toks": ["SELECT", "t2.house_number", ",", "t1.name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", "AND", "t1.rating", "=", "(", "SELECT", "MAX", "(", "t1.rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", ")", ";"], "query_toks_no_value": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the best french restaurant in san francisco ?", "question_toks": ["what", "is", "the", "best", "french", "restaurant", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1542", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" );", "query_toks": ["SELECT", "t2.house_number", ",", "t1.name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", "AND", "t1.rating", "=", "(", "SELECT", "MAX", "(", "t1.rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", ")", ";"], "query_toks_no_value": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "What is the best french in san francisco ?", "question_toks": ["What", "is", "the", "best", "french", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1607", "db_id": "restaurants", "query": "select t3.house_number , t1.name from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name join location as t3 on t1.id = t3.restaurant_id where t2.region = \"bay area\" and t1.food_type = \"american\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name where t2.region = \"bay area\" and t1.food_type = \"american\" );", "query_toks": ["SELECT", "t3.house_number", ",", "t1.name", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1.city_name", "=", "t2.city_name", "JOIN", "LOCATION", "AS", "t3", "ON", "t1.id", "=", "t3.restaurant_id", "WHERE", "t2.region", "=", "``", "bay", "area", "''", "AND", "t1.food_type", "=", "``", "american", "''", "AND", "t1.rating", "=", "(", "SELECT", "MAX", "(", "t1.rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1.city_name", "=", "t2.city_name", "WHERE", "t2.region", "=", "``", "bay", "area", "''", "AND", "t1.food_type", "=", "``", "american", "''", ")", ";"], "query_toks_no_value": ["select", "t3", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "join", "location", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "restaurant_id", "where", "t2", ".", "region", "=", "value", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "where", "t2", ".", "region", "=", "value", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the best american in the bay area ?", "question_toks": ["what", "is", "the", "best", "american", "in", "the", "bay", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0992", "db_id": "scholar", "query": "select distinct paperid from paper where year = ( select max ( year ) from paper );", "query_toks": ["SELECT", "DISTINCT", "paperid", "FROM", "paper", "WHERE", "YEAR", "=", "(", "SELECT", "MAX", "(", "YEAR", ")", "FROM", "paper", ")", ";"], "query_toks_no_value": ["select", "distinct", "paperid", "from", "paper", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "paper", ")"], "question": "papers published in the last year", "question_toks": ["papers", "published", "in", "the", "last", "year"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1119", "db_id": "scholar", "query": "select distinct max ( t3.year ) from writes as t2 join author as t1 on t2.authorid = t1.authorid join paper as t3 on t2.paperid = t3.paperid where t1.authorname = \"mary crainie\";", "query_toks": ["SELECT", "DISTINCT", "MAX", "(", "t3.year", ")", "FROM", "writes", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "JOIN", "paper", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.authorname", "=", "``", "Mary", "Crainie", "''", ";"], "query_toks_no_value": ["select", "distinct", "max", "(", "t3", ".", "year", ")", "from", "writes", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "join", "paper", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "authorname", "=", "value"], "question": "When was the last time Mary Crainie published a paper ?", "question_toks": ["When", "was", "the", "last", "time", "Mary", "Crainie", "published", "a", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Mary Crainie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6501", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "T3.ssn", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "Find the SSN and name of scientists who are assigned to the project with the longest hours.", "question_toks": ["Find", "the", "SSN", "and", "name", "of", "scientists", "who", "are", "assigned", "to", "the", "project", "with", "the", "longest", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6502", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "T3.ssn", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "What are the SSN and names of scientists working on the project with the most hours?", "question_toks": ["What", "are", "the", "SSN", "and", "names", "of", "scientists", "working", "on", "the", "project", "with", "the", "most", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1787", "db_id": "small_bank_1", "query": "select t1.custid , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid where t2.balance < (select max(balance) from checking)", "query_toks": ["SELECT", "T1.custid", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", "<", "(", "SELECT", "max", "(", "balance", ")", "FROM", "checking", ")"], "query_toks_no_value": ["select", "t1", ".", "custid", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "max", "(", "balance", ")", "from", "checking", ")"], "question": "What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?", "question_toks": ["What", "are", "the", "customer", "id", "and", "name", "corresponding", "to", "accounts", "with", "a", "checking", "balance", "less", "than", "the", "largest", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1298", "db_id": "soccer_1", "query": "select distinct t1.player_name from player as t1 join player_attributes as t2 on t1.player_api_id = t2.player_api_id where t2.dribbling = ( select max(overall_rating) from player_attributes)", "query_toks": ["SELECT", "DISTINCT", "T1.player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1.player_api_id", "=", "T2.player_api_id", "WHERE", "T2.dribbling", "=", "(", "SELECT", "max", "(", "overall_rating", ")", "FROM", "Player_Attributes", ")"], "query_toks_no_value": ["select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "where", "t2", ".", "dribbling", "=", "(", "select", "max", "(", "overall_rating", ")", "from", "player_attributes", ")"], "question": "What are the names of players who have the best dribbling?", "question_toks": ["What", "are", "the", "names", "of", "players", "who", "have", "the", "best", "dribbling", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 47, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5038", "db_id": "soccer_2", "query": "select distinct state from college where enr < (select max(enr) from college)", "query_toks": ["SELECT", "DISTINCT", "state", "FROM", "college", "WHERE", "enr", "<", "(", "SELECT", "max", "(", "enr", ")", "FROM", "college", ")"], "query_toks_no_value": ["select", "distinct", "state", "from", "college", "where", "enr", "<", "(", "select", "max", "(", "enr", ")", "from", "college", ")"], "question": "Find the states where have the colleges whose enrollments are less than the largest size.", "question_toks": ["Find", "the", "states", "where", "have", "the", "colleges", "whose", "enrollments", "are", "less", "than", "the", "largest", "size", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6923", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "question": "Find the id of the order which is shipped most recently.", "question_toks": ["Find", "the", "id", "of", "the", "order", "which", "is", "shipped", "most", "recently", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6924", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "question": "Which order has the most recent shipment? Give me the order id.", "question_toks": ["Which", "order", "has", "the", "most", "recent", "shipment", "?", "Give", "me", "the", "order", "id", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0691", "db_id": "voter_1", "query": "select max(created) from votes where state = 'ca'", "query_toks": ["SELECT", "max", "(", "created", ")", "FROM", "votes", "WHERE", "state", "=", "'CA", "'"], "query_toks_no_value": ["select", "max", "(", "created", ")", "from", "votes", "where", "state", "=", "value"], "question": "What is last date created of votes from the state 'CA'?", "question_toks": ["What", "is", "last", "date", "created", "of", "votes", "from", "the", "state", "'CA", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"CA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5451", "db_id": "voter_2", "query": "select max(age) from student", "query_toks": ["SELECT", "max", "(", "Age", ")", "FROM", "STUDENT"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "student"], "question": "What is the oldest age among the students?", "question_toks": ["What", "is", "the", "oldest", "age", "among", "the", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6585", "db_id": "wine_1", "query": "select name from wine where price > (select max(price) from wine where year = 2006)", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "max", "(", "Price", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2006", ")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "price", ">", "(", "select", "max", "(", "price", ")", "from", "wine", "where", "year", "=", "value", ")"], "question": "What are the names of wines that are more expensive then all wines made in the year 2006?", "question_toks": ["What", "are", "the", "names", "of", "wines", "that", "are", "more", "expensive", "then", "all", "wines", "made", "in", "the", "year", "2006", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2006.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0774", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select max(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "population", "<", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", ")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")"], "question": "What are the African countries that have a population less than any country in Asia?", "question_toks": ["What", "are", "the", "African", "countries", "that", "have", "a", "population", "less", "than", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0817", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "question": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?", "question_toks": ["What", "are", "the", "country", "codes", "of", "the", "different", "countries", ",", "and", "what", "are", "the", "languages", "spoken", "by", "the", "greatest", "percentage", "of", "people", "for", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0818", "db_id": "world_1", "query": "select count(*) , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", "question_toks": ["What", "is", "the", "total", "number", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0819", "db_id": "world_1", "query": "select count(*) , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "Count the number of countries for which Spanish is the predominantly spoken language.", "question_toks": ["Count", "the", "number", "of", "countries", "for", "which", "Spanish", "is", "the", "predominantly", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0820", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", "question_toks": ["What", "are", "the", "codes", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0821", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "Return the codes of countries for which Spanish is the predominantly spoken language.", "question_toks": ["Return", "the", "codes", "of", "countries", "for", "which", "Spanish", "is", "the", "predominantly", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0027", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1", ".", "owner_id", "=", "T2", ".", "owner_id", "WHERE", "T2", ".", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "Dogs", ")"], "question": "List the last name of the owner owning the oldest dog.", "question_toks": ["List", "the", "last", "name", "of", "the", "owner", "owning", "the", "oldest", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0028", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "last_name", "FROM", "Owners", "AS", "T1", "JOIN", "Dogs", "AS", "T2", "ON", "T1", ".", "owner_id", "=", "T2", ".", "owner_id", "WHERE", "T2", ".", "age", "=", "value", "SELECT", "max", "(", "age", ")", "FROM", "Dogs", ")"], "question": "Who owns the oldest dog? Give me his or her last name.", "question_toks": ["Who", "owns", "the", "oldest", "dog", "?", "Give", "me", "his", "or", "her", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0146", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "(", "SELECT", "max", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "value", "SELECT", "max", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the countries that have greater surface area than that of any country in Europe?", "question_toks": ["What", "are", "the", "countries", "that", "have", "greater", "surface", "area", "than", "that", "of", "any", "country", "in", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0147", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "(", "SELECT", "max", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "SurfaceArea", ">", "value", "SELECT", "max", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "Which countries have greater area than than any country in Europe?", "question_toks": ["Which", "countries", "have", "greater", "area", "than", "than", "any", "country", "in", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0148", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''", "AND", "population", ">", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", ">", "value", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the Asian countries which have a population larger than any country in Africa?", "question_toks": ["What", "are", "the", "Asian", "countries", "which", "have", "a", "population", "larger", "than", "any", "country", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0499", "db_id": "battle_death", "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", "query_toks": ["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"], "query_toks_no_value": ["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", ")", ">", "value"], "question": "What are the ids and names of the battles that led to more than 10 people killed in total.", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "battles", "that", "led", "to", "more", "than", "10", "people", "killed", "in", "total", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [4, 17, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0123", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the countries having at least one car maker? List name and id.", "question_toks": ["What", "are", "the", "countries", "having", "at", "least", "one", "car", "maker", "?", "List", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0124", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the names and ids of all countries with at least one car maker?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "countries", "with", "at", "least", "one", "car", "maker", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0397", "db_id": "course_teach", "query": "select hometown from teacher group by hometown having count(*) >= 2", "query_toks": ["SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "hometown", "from", "teacher", "group", "by", "hometown", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the hometowns shared by at least two teachers.", "question_toks": ["Show", "the", "hometowns", "shared", "by", "at", "least", "two", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0398", "db_id": "course_teach", "query": "select hometown from teacher group by hometown having count(*) >= 2", "query_toks": ["SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "hometown", "from", "teacher", "group", "by", "hometown", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the towns from which at least two teachers come from?", "question_toks": ["What", "are", "the", "towns", "from", "which", "at", "least", "two", "teachers", "come", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0407", "db_id": "course_teach", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Show names of teachers that teach at least two courses.", "question_toks": ["Show", "names", "of", "teachers", "that", "teach", "at", "least", "two", "courses", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOIN_TOTAL", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0408", "db_id": "course_teach", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the teachers who teach at least two courses?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "who", "teach", "at", "least", "two", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOIN_TOTAL", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0923", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "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", "(", "*", ")", ">", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"Indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0943", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Find the id and cell phone of the professionals who operate two or more types of treatments.", "question_toks": ["Find", "the", "id", "and", "cell", "phone", "of", "the", "professionals", "who", "operate", "two", "or", "more", "types", "of", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "AND_WITH_OR_IN_NL", "HAVING_IN_SQL", "_AND_WITH_OR_COLUMN_REMOVED", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0241", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) > 10", "query_toks": ["SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", ">", "value"], "question": "Find all airlines that have at least 10 flights.", "question_toks": ["Find", "all", "airlines", "that", "have", "at", "least", "10", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOIN_TOTAL", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0419", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "find the id, name and age for visitors who visited some museums more than once.", "question_toks": ["find", "the", "id", ",", "name", "and", "age", "for", "visitors", "who", "visited", "some", "museums", "more", "than", "once", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOIN_TOTAL", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0880", "db_id": "network_1", "query": "select grade from highschooler group by grade having count(*) >= 4", "query_toks": ["SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "HAVING", "count", "(", "*", ")", ">", "=", "4"], "query_toks_no_value": ["select", "grade", "from", "highschooler", "group", "by", "grade", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show me all grades that have at least 4 students.", "question_toks": ["Show", "me", "all", "grades", "that", "have", "at", "least", "4", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0081", "db_id": "pets_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "Find the first name and gender of student who have more than one pet.", "question_toks": ["Find", "the", "first", "name", "and", "gender", "of", "student", "who", "have", "more", "than", "one", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOIN_TOTAL", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0082", "db_id": "pets_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "What is the first name and gender of the all the students who have more than one pet?", "question_toks": ["What", "is", "the", "first", "name", "and", "gender", "of", "the", "all", "the", "students", "who", "have", "more", "than", "one", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOIN_TOTAL", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0677", "db_id": "poker_player", "query": "select nationality from people group by nationality having count(*) >= 2", "query_toks": ["SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "nationality", "from", "people", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the nationalities that are shared by at least two people?", "question_toks": ["What", "are", "the", "nationalities", "that", "are", "shared", "by", "at", "least", "two", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0678", "db_id": "poker_player", "query": "select nationality from people group by nationality having count(*) >= 2", "query_toks": ["SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "nationality", "from", "people", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Return the nationalities for which there are two or more people.", "question_toks": ["Return", "the", "nationalities", "for", "which", "there", "are", "two", "or", "more", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0641", "db_id": "tvshow", "query": "select id from tv_channel group by country having count(*) > 2", "query_toks": ["SELECT", "id", "FROM", "tv_channel", "GROUP", "BY", "country", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "id", "from", "tv_channel", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value"], "question": "find id of the tv channels that from the countries where have more than two tv channels.", "question_toks": ["find", "id", "of", "the", "tv", "channels", "that", "from", "the", "countries", "where", "have", "more", "than", "two", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0642", "db_id": "tvshow", "query": "select id from tv_channel group by country having count(*) > 2", "query_toks": ["SELECT", "id", "FROM", "tv_channel", "GROUP", "BY", "country", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "id", "from", "tv_channel", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the ids of all tv channels that have more than 2 TV channels?", "question_toks": ["What", "are", "the", "ids", "of", "all", "tv", "channels", "that", "have", "more", "than", "2", "TV", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0445", "db_id": "wta_1", "query": "select tourney_name from matches group by tourney_name having count(*) > 10", "query_toks": ["SELECT", "tourney_name", "FROM", "matches", "GROUP", "BY", "tourney_name", "HAVING", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "tourney_name", "from", "matches", "group", "by", "tourney_name", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the name of tourney that has more than 10 matches.", "question_toks": ["Find", "the", "name", "of", "tourney", "that", "has", "more", "than", "10", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 27, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0446", "db_id": "wta_1", "query": "select tourney_name from matches group by tourney_name having count(*) > 10", "query_toks": ["SELECT", "tourney_name", "FROM", "matches", "GROUP", "BY", "tourney_name", "HAVING", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "tourney_name", "from", "matches", "group", "by", "tourney_name", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the names of tournaments that have more than 10 matches?", "question_toks": ["What", "are", "the", "names", "of", "tournaments", "that", "have", "more", "than", "10", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 27, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0477", "db_id": "wta_1", "query": "select country_code from players group by country_code having count(*) > 50", "query_toks": ["SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "HAVING", "count", "(", "*", ")", ">", "50"], "query_toks_no_value": ["select", "country_code", "from", "players", "group", "by", "country_code", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the codes of countries that have more than 50 players.", "question_toks": ["Find", "the", "codes", "of", "countries", "that", "have", "more", "than", "50", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 50.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0478", "db_id": "wta_1", "query": "select country_code from players group by country_code having count(*) > 50", "query_toks": ["SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "HAVING", "count", "(", "*", ")", ">", "50"], "query_toks_no_value": ["select", "country_code", "from", "players", "group", "by", "country_code", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the codes of countries with more than 50 players?", "question_toks": ["What", "are", "the", "codes", "of", "countries", "with", "more", "than", "50", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 50.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4829", "db_id": "aircraft", "query": "select t1.aircraft from aircraft as t1 join match as t2 on t1.aircraft_id = t2.winning_aircraft group by t2.winning_aircraft having count(*) >= 2", "query_toks": ["SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "List the names of aircrafts and that won matches at least twice.", "question_toks": ["List", "the", "names", "of", "aircrafts", "and", "that", "won", "matches", "at", "least", "twice", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4830", "db_id": "aircraft", "query": "select t1.aircraft from aircraft as t1 join match as t2 on t1.aircraft_id = t2.winning_aircraft group by t2.winning_aircraft having count(*) >= 2", "query_toks": ["SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of all aircrafts that have won a match at least twice?", "question_toks": ["What", "are", "the", "names", "of", "all", "aircrafts", "that", "have", "won", "a", "match", "at", "least", "twice", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0505", "db_id": "allergy_1", "query": "select stuid from has_allergy group by stuid having count(*) >= 2", "query_toks": ["SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show all student IDs who have at least two allergies.", "question_toks": ["Show", "all", "student", "IDs", "who", "have", "at", "least", "two", "allergies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0506", "db_id": "allergy_1", "query": "select stuid from has_allergy group by stuid having count(*) >= 2", "query_toks": ["SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the students ids of students who have more than one allergy?", "question_toks": ["What", "are", "the", "students", "ids", "of", "students", "who", "have", "more", "than", "one", "allergy", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6953", "db_id": "architecture", "query": "select t1.id , t1.name from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) >= 3", "query_toks": ["SELECT", "T1.id", ",", "T1.name", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "3"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and names of the architects who built at least 3 bridges ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "architects", "who", "built", "at", "least", "3", "bridges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6955", "db_id": "architecture", "query": "select t1.id , t1.name , t1.gender from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2 union select t1.id , t1.name , t1.gender from architect as t1 join mill as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 1", "query_toks": ["SELECT", "T1.id", ",", "T1.name", ",", "T1.gender", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", "=", "2", "UNION", "SELECT", "T1.id", ",", "T1.name", ",", "T1.gender", "FROM", "architect", "AS", "T1", "JOIN", "mill", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", "=", "value", "union", "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "mill", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the ids, names and genders of the architects who built two bridges or one mill?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "genders", "of", "the", "architects", "who", "built", "two", "bridges", "or", "one", "mill", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED", "AND_WITH_OR_IN_NL", "HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4947", "db_id": "soccer_2", "query": "select avg(enr) from college", "query_toks": ["SELECT", "avg", "(", "enr", ")", "FROM", "College"], "query_toks_no_value": ["select", "avg", "(", "enr", ")", "from", "college"], "question": "How many students, on average, does each college have enrolled?", "question_toks": ["How", "many", "students", ",", "on", "average", ",", "does", "each", "college", "have", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0439", "db_id": "allergy_1", "query": "select count(distinct allergy) from allergy_type", "query_toks": ["SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type"], "query_toks_no_value": ["select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type"], "question": "How many allergies are there?", "question_toks": ["How", "many", "allergies", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0440", "db_id": "allergy_1", "query": "select count(distinct allergy) from allergy_type", "query_toks": ["SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type"], "query_toks_no_value": ["select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type"], "question": "How many allergy entries are there?", "question_toks": ["How", "many", "allergy", "entries", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0502", "db_id": "battle_death", "query": "select count(distinct result) from battle", "query_toks": ["SELECT", "count", "(", "DISTINCT", "RESULT", ")", "FROM", "battle"], "query_toks_no_value": ["select", "count", "(", "distinct", "result", ")", "from", "battle"], "question": "How many different results are there for the battles?", "question_toks": ["How", "many", "different", "results", "are", "there", "for", "the", "battles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1118", "db_id": "climbing", "query": "select count(distinct country) from climber", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "climber"], "query_toks_no_value": ["select", "count", "(", "distinct", "country", ")", "from", "climber"], "question": "How many distinct countries are the climbers from?", "question_toks": ["How", "many", "distinct", "countries", "are", "the", "climbers", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 9, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4298", "db_id": "club_1", "query": "select count(distinct t2.position) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid where t1.clubname = \"bootup baltimore\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "t2.position", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "position", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "where", "t1", ".", "clubname", "=", "value"], "question": "How many different roles are there in the club \"Bootup Baltimore\"?", "question_toks": ["How", "many", "different", "roles", "are", "there", "in", "the", "club", "``", "Bootup", "Baltimore", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 15, true], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Bootup Baltimore\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3227", "db_id": "college_1", "query": "select count(distinct class_code) from class", "query_toks": ["SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS"], "query_toks_no_value": ["select", "count", "(", "distinct", "class_code", ")", "from", "class"], "question": "How many different classes are there?", "question_toks": ["How", "many", "different", "classes", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3228", "db_id": "college_1", "query": "select count(distinct class_code) from class", "query_toks": ["SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS"], "query_toks_no_value": ["select", "count", "(", "distinct", "class_code", ")", "from", "class"], "question": "How many unique classes are offered?", "question_toks": ["How", "many", "unique", "classes", "are", "offered", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3231", "db_id": "college_1", "query": "select count(distinct dept_name) from department", "query_toks": ["SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department"], "query_toks_no_value": ["select", "count", "(", "distinct", "dept_name", ")", "from", "department"], "question": "How many departments does the college has?", "question_toks": ["How", "many", "departments", "does", "the", "college", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3232", "db_id": "college_1", "query": "select count(distinct dept_name) from department", "query_toks": ["SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department"], "query_toks_no_value": ["select", "count", "(", "distinct", "dept_name", ")", "from", "department"], "question": "How many different departments are there?", "question_toks": ["How", "many", "different", "departments", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0305", "db_id": "cre_Doc_Template_Mgt", "query": "select count(distinct template_id) from documents", "query_toks": ["SELECT", "count", "(", "DISTINCT", "template_id", ")", "FROM", "Documents"], "query_toks_no_value": ["select", "count", "(", "distinct", "template_id", ")", "from", "documents"], "question": "How many different templates do all document use?", "question_toks": ["How", "many", "different", "templates", "do", "all", "document", "use", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0966", "db_id": "dog_kennels", "query": "select count(distinct dog_id) from treatments", "query_toks": ["SELECT", "count", "(", "DISTINCT", "dog_id", ")", "FROM", "Treatments"], "query_toks_no_value": ["select", "count", "(", "distinct", "dog_id", ")", "from", "treatments"], "question": "How many dogs went through any treatments?", "question_toks": ["How", "many", "dogs", "went", "through", "any", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[3, [0, [0, 45, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0968", "db_id": "dog_kennels", "query": "select count(distinct professional_id) from treatments", "query_toks": ["SELECT", "count", "(", "DISTINCT", "professional_id", ")", "FROM", "Treatments"], "query_toks_no_value": ["select", "count", "(", "distinct", "professional_id", ")", "from", "treatments"], "question": "How many professionals have performed any treatment to dogs?", "question_toks": ["How", "many", "professionals", "have", "performed", "any", "treatment", "to", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[3, [0, [0, 46, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1501", "db_id": "imdb", "query": "select count ( distinct t1.name ) from cast as t2 join actor as t1 on t2.aid = t1.aid join movie as t3 on t3.mid = t2.msid where t3.title = \"saving private ryan\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t1.name", ")", "FROM", "CAST", "AS", "t2", "JOIN", "actor", "AS", "t1", "ON", "t2.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t3", "ON", "t3.mid", "=", "t2.msid", "WHERE", "t3.title", "=", "``", "Saving", "Private", "Ryan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1", ".", "name", ")", "from", "cast", "as", "t2", "join", "actor", "as", "t1", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t3", "on", "t3", ".", "mid", "=", "t2", ".", "msid", "where", "t3", ".", "title", "=", "value"], "question": "How many actors are in the movie \" Saving Private Ryan \" ?", "question_toks": ["How", "many", "actors", "are", "in", "the", "movie", "``", "Saving", "Private", "Ryan", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 43, false], null], "\"Saving Private Ryan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1502", "db_id": "imdb", "query": "select count ( distinct t3.title ) from director as t2 join directed_by as t1 on t2.did = t1.did join movie as t3 on t3.mid = t1.msid where t2.name = \"steven spielberg\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t3.title", ")", "FROM", "director", "AS", "t2", "JOIN", "directed_by", "AS", "t1", "ON", "t2.did", "=", "t1.did", "JOIN", "movie", "AS", "t3", "ON", "t3.mid", "=", "t1.msid", "WHERE", "t2.name", "=", "``", "Steven", "Spielberg", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3", ".", "title", ")", "from", "director", "as", "t2", "join", "directed_by", "as", "t1", "on", "t2", ".", "did", "=", "t1", ".", "did", "join", "movie", "as", "t3", "on", "t3", ".", "mid", "=", "t1", ".", "msid", "where", "t2", ".", "name", "=", "value"], "question": "How many movies did \" Steven Spielberg \" direct ?", "question_toks": ["How", "many", "movies", "did", "``", "Steven", "Spielberg", "``", "direct", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null]]}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Steven Spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1503", "db_id": "imdb", "query": "select count ( distinct title ) from movie where release_year = 2013;", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "title", ")", "FROM", "movie", "WHERE", "release_year", "=", "2013", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "title", ")", "from", "movie", "where", "release_year", "=", "value"], "question": "How many movies were produced in the year 2013 ?", "question_toks": ["How", "many", "movies", "were", "produced", "in", "the", "year", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 44, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2580", "db_id": "inn_1", "query": "select count(*) from reservations where firstname = \"roy\" and lastname = \"sweazy\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many times does ROY SWEAZY has reserved a room.", "question_toks": ["How", "many", "times", "does", "ROY", "SWEAZY", "has", "reserved", "a", "room", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"ROY\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SWEAZY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2602", "db_id": "inn_1", "query": "select count(*) from reservations as t1 join rooms as t2 on t1.room = t2.roomid where t2.maxoccupancy = t1.adults + t1.kids;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "T2.maxOccupancy", "=", "T1.Adults", "+", "T1.Kids", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "t1", ".", "adults", "+", "t1", ".", "kids"], "question": "List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.", "question_toks": ["List", "how", "many", "times", "the", "number", "of", "people", "in", "the", "room", "reached", "the", "maximum", "occupancy", "of", "the", "room", ".", "The", "number", "of", "people", "include", "adults", "and", "kids", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2603", "db_id": "inn_1", "query": "select count(*) from reservations as t1 join rooms as t2 on t1.room = t2.roomid where t2.maxoccupancy = t1.adults + t1.kids;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "T2.maxOccupancy", "=", "T1.Adults", "+", "T1.Kids", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "t1", ".", "adults", "+", "t1", ".", "kids"], "question": "How many times the number of adults and kids staying in a room reached the maximum capacity of the room?", "question_toks": ["How", "many", "times", "the", "number", "of", "adults", "and", "kids", "staying", "in", "a", "room", "reached", "the", "maximum", "capacity", "of", "the", "room", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2606", "db_id": "inn_1", "query": "select count(*) from rooms;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Rooms", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "rooms"], "question": "How many rooms are there?", "question_toks": ["How", "many", "rooms", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2609", "db_id": "inn_1", "query": "select count(*) from rooms where bedtype = \"king\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "rooms", "where", "bedtype", "=", "value"], "question": "How many rooms have a king bed?", "question_toks": ["How", "many", "rooms", "have", "a", "king", "bed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"King\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2619", "db_id": "inn_1", "query": "select decor , count(*) from rooms where bedtype = \"king\" group by decor;", "query_toks": ["SELECT", "decor", ",", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", "GROUP", "BY", "decor", ";"], "query_toks_no_value": ["select", "decor", ",", "count", "(", "*", ")", "from", "rooms", "where", "bedtype", "=", "value", "group", "by", "decor"], "question": "How many rooms have king beds? Report the number for each decor type.", "question_toks": ["How", "many", "rooms", "have", "king", "beds", "?", "Report", "the", "number", "for", "each", "decor", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"King\"", null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2625", "db_id": "inn_1", "query": "select decor , count(*) from rooms where baseprice > 120 group by decor;", "query_toks": ["SELECT", "decor", ",", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "basePrice", ">", "120", "GROUP", "BY", "decor", ";"], "query_toks_no_value": ["select", "decor", ",", "count", "(", "*", ")", "from", "rooms", "where", "baseprice", ">", "value", "group", "by", "decor"], "question": "How many rooms cost more than 120, for each different decor?", "question_toks": ["How", "many", "rooms", "cost", "more", "than", "120", ",", "for", "each", "different", "decor", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], 120.0, null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1052", "db_id": "match_season", "query": "select count(*) from country", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "country"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country"], "question": "How many countries are there in total?", "question_toks": ["How", "many", "countries", "are", "there", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0411", "db_id": "museum_visit", "query": "select count(*) from visitor where age < 30", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "visitor", "WHERE", "age", "<", "30"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "visitor", "where", "age", "<", "value"], "question": "How many visitors below age 30 are there?", "question_toks": ["How", "many", "visitors", "below", "age", "30", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "WHERE_MONO", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0428", "db_id": "museum_visit", "query": "select count(*) from museum where open_year > 2013 or open_year < 2008", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "museum", "WHERE", "open_year", ">", "2013", "OR", "open_year", "<", "2008"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "museum", "where", "open_year", ">", "value", "or", "open_year", "<", "value"], "question": "How many museums were opened after 2013 or before 2008?", "question_toks": ["How", "many", "museums", "were", "opened", "after", "2013", "or", "before", "2008", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2013.0, null], "or", [false, 4, [0, [0, 4, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0647", "db_id": "poker_player", "query": "select count(*) from poker_player", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "poker_player"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "poker_player"], "question": "How many poker players are there?", "question_toks": ["How", "many", "poker", "players", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0674", "db_id": "poker_player", "query": "select nationality , count(*) from people group by nationality", "query_toks": ["SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Nationality"], "query_toks_no_value": ["select", "nationality", ",", "count", "(", "*", ")", "from", "people", "group", "by", "nationality"], "question": "How many people are there of each nationality?", "question_toks": ["How", "many", "people", "are", "there", "of", "each", "nationality", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2965", "db_id": "sakila_1", "query": "select t2.name , t1.category_id , count(*) from film_category as t1 join category as t2 on t1.category_id = t2.category_id group by t1.category_id", "query_toks": ["SELECT", "T2.name", ",", "T1.category_id", ",", "count", "(", "*", ")", "FROM", "film_category", "AS", "T1", "JOIN", "category", "AS", "T2", "ON", "T1.category_id", "=", "T2.category_id", "GROUP", "BY", "T1.category_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "category_id", ",", "count", "(", "*", ")", "from", "film_category", "as", "t1", "join", "category", "as", "t2", "on", "t1", ".", "category_id", "=", "t2", ".", "category_id", "group", "by", "t1", ".", "category_id"], "question": "What are the names and ids of the different categories, and how many films are in each?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "the", "different", "categories", ",", "and", "how", "many", "films", "are", "in", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 49, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 49, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5413", "db_id": "shop_membership", "query": "select city , count(*) from branch where open_year < 2010 group by city", "query_toks": ["SELECT", "city", ",", "count", "(", "*", ")", "FROM", "branch", "WHERE", "open_year", "<", "2010", "GROUP", "BY", "city"], "query_toks_no_value": ["select", "city", ",", "count", "(", "*", ")", "from", "branch", "where", "open_year", "<", "value", "group", "by", "city"], "question": "For each city, how many branches opened before 2010?", "question_toks": ["For", "each", "city", ",", "how", "many", "branches", "opened", "before", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 2010.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1302", "db_id": "soccer_1", "query": "select preferred_foot , count(*) from player_attributes where overall_rating > 80 group by preferred_foot", "query_toks": ["SELECT", "preferred_foot", ",", "count", "(", "*", ")", "FROM", "Player_Attributes", "WHERE", "overall_rating", ">", "80", "GROUP", "BY", "preferred_foot"], "query_toks_no_value": ["select", "preferred_foot", ",", "count", "(", "*", ")", "from", "player_attributes", "where", "overall_rating", ">", "value", "group", "by", "preferred_foot"], "question": "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?", "question_toks": ["Of", "all", "players", "with", "an", "overall", "rating", "greater", "than", "80", ",", "how", "many", "are", "right-footed", "and", "left-footed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 80.0, null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1212", "db_id": "yelp", "query": "select review_count from business where name = \"acacia cafe\";", "query_toks": ["SELECT", "review_count", "FROM", "business", "WHERE", "name", "=", "``", "Acacia", "Cafe", "''", ";"], "query_toks_no_value": ["select", "review_count", "from", "business", "where", "name", "=", "value"], "question": "How many reviews does \" Acacia Cafe \" have ?", "question_toks": ["How", "many", "reviews", "does", "``", "Acacia", "Cafe", "``", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Acacia Cafe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6715", "db_id": "activity_1", "query": "select count(*) from faculty", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty"], "question": "How many faculty do we have?", "question_toks": ["How", "many", "faculty", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6727", "db_id": "activity_1", "query": "select count(*) from faculty where sex = 'f' and rank = \"professor\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'", "AND", "Rank", "=", "``", "Professor", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "where", "sex", "=", "value", "and", "rank", "=", "value"], "question": "How many female Professors do we have?", "question_toks": ["How", "many", "female", "Professors", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"Professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "AND_IN_SQL_BUT_NOT_IN_NL", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4797", "db_id": "aircraft", "query": "select count(*) from aircraft", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "aircraft"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "aircraft"], "question": "How many aircrafts are there?", "question_toks": ["How", "many", "aircrafts", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0451", "db_id": "allergy_1", "query": "select count(*) from allergy_type where allergytype = \"animal\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "animal", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "allergy_type", "where", "allergytype", "=", "value"], "question": "How many allergies have type animal?", "question_toks": ["How", "many", "allergies", "have", "type", "animal", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0473", "db_id": "allergy_1", "query": "select count(*) from student where age = 18", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", "=", "18"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "age", "=", "value"], "question": "How many students are age 18?", "question_toks": ["How", "many", "students", "are", "age", "18", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 18.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1249", "db_id": "apartment_rentals", "query": "select \tbooking_status_code , count(*) from apartment_bookings group by booking_status_code", "query_toks": ["SELECT", "booking_status_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartment_Bookings", "GROUP", "BY", "booking_status_code"], "query_toks_no_value": ["select", "booking_status_code", ",", "count", "(", "*", ")", "from", "apartment_bookings", "group", "by", "booking_status_code"], "question": "How many bookings does each booking status have? List the booking status code and the number of corresponding bookings.", "question_toks": ["How", "many", "bookings", "does", "each", "booking", "status", "have", "?", "List", "the", "booking", "status", "code", "and", "the", "number", "of", "corresponding", "bookings", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1268", "db_id": "apartment_rentals", "query": "select count(*) from apartments where apt_id not in (select apt_id from apartment_facilities)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")"], "question": "How many apartments do not have any facility?", "question_toks": ["How", "many", "apartments", "do", "not", "have", "any", "facility", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_ANY_REFORMULATION", "NEGATION_WITH_ANY_ALL", "_HOW_MANY_COUNT", "_NEGATION_ANY", "ANY_SOME_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6945", "db_id": "architecture", "query": "select count(*) from architect where gender = 'female'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "architect", "WHERE", "gender", "=", "'female", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "architect", "where", "gender", "=", "value"], "question": "How many architects are female?", "question_toks": ["How", "many", "architects", "are", "female", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"female\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3705", "db_id": "baseball_1", "query": "select count(*) from team_franchise where active = 'y';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "team_franchise", "WHERE", "active", "=", "'Y", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "team_franchise", "where", "active", "=", "value"], "question": "How many team franchises are active, with active value 'Y'?", "question_toks": ["How", "many", "team", "franchises", "are", "active", ",", "with", "active", "value", "'Y", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 24]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 341, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0491", "db_id": "battle_death", "query": "select count(*) from ship where disposition_of_ship = 'captured'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "ship", "WHERE", "disposition_of_ship", "=", "'Captured", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "ship", "where", "disposition_of_ship", "=", "value"], "question": "How many ships ended up being 'Captured'?", "question_toks": ["How", "many", "ships", "ended", "up", "being", "'Captured", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Captured\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "HOW_MANY", "SYNONYMS", "_HOW_MANY_COUNT", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0503", "db_id": "battle_death", "query": "select count(*) from battle where id not in ( select lost_in_battle from ship where tonnage = '225' );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "battle", "WHERE", "id", "NOT", "IN", "(", "SELECT", "lost_in_battle", "FROM", "ship", "WHERE", "tonnage", "=", "'225", "'", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "battle", "where", "id", "not", "in", "(", "select", "lost_in_battle", "from", "ship", "where", "tonnage", "=", "value", ")"], "question": "How many battles did not lose any ship with tonnage '225'?", "question_toks": ["How", "many", "battles", "did", "not", "lose", "any", "ship", "with", "tonnage", "'225", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"225\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL", "_HOW_MANY_COUNT", "_NEGATION_ANY", "ANY_SOME_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0092", "db_id": "car_1", "query": "select count(*) from countries;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "COUNTRIES", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries"], "question": "How many countries exist?", "question_toks": ["How", "many", "countries", "exist", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0093", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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"], "question": "How many models does each car maker produce? List maker full name, id and the number.", "question_toks": ["How", "many", "models", "does", "each", "car", "maker", "produce", "?", "List", "maker", "full", "name", ",", "id", "and", "the", "number", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0094", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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"], "question": "What is the full name of each car maker, along with its id and how many models it produces?", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "car", "maker", ",", "along", "with", "its", "id", "and", "how", "many", "models", "it", "produces", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0109", "db_id": "car_1", "query": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;", "query_toks": ["select", "count", "(", "*", ")", ",", "t2.fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.maker", "=", "t2.id", "group", "by", "t2.id", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "t2", ".", "fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "group", "by", "t2", ".", "id"], "question": "How many car models are produced by each maker ? Only list the count and the maker full name .", "question_toks": ["How", "many", "car", "models", "are", "produced", "by", "each", "maker", "?", "Only", "list", "the", "count", "and", "the", "maker", "full", "name", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0161", "db_id": "car_1", "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "query_toks": ["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value"], "question": "How many countries has more than 2 car makers ?", "question_toks": ["How", "many", "countries", "has", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_JOIN_1", "DEJOIN_TOTAL", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0163", "db_id": "car_1", "query": "select count(*) from cars_data where cylinders > 6;", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "6", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "cars_data", "where", "cylinders", ">", "value"], "question": "How many cars has over 6 cylinders?", "question_toks": ["How", "many", "cars", "has", "over", "6", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 6.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0807", "db_id": "chinook_1", "query": "select count(*) from album", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "ALBUM"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "album"], "question": "How many albums are there?", "question_toks": ["How", "many", "albums", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0841", "db_id": "chinook_1", "query": "select count(*) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"rock\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "How many tracks belong to rock genre?", "question_toks": ["How", "many", "tracks", "belong", "to", "rock", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1110", "db_id": "climbing", "query": "select count(*) from climber", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "climber"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "climber"], "question": "How many climbers are there?", "question_toks": ["How", "many", "climbers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4250", "db_id": "club_1", "query": "select count(*) from club", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club"], "question": "How many clubs are there?", "question_toks": ["How", "many", "clubs", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4254", "db_id": "club_1", "query": "select count(*) from student", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student"], "question": "How many students are there?", "question_toks": ["How", "many", "students", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4269", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\" and t3.lname = \"kim\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Tracy", "''", "AND", "t3.lname", "=", "``", "Kim", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value"], "question": "For how many clubs is \"Tracy Kim\" a member?", "question_toks": ["For", "how", "many", "clubs", "is", "``", "Tracy", "Kim", "''", "a", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Tracy\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Kim\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "AND_IN_SQL_BUT_NOT_IN_NL", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4292", "db_id": "club_1", "query": "select count(*) from club where clublocation = \"hhh\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "WHERE", "clublocation", "=", "``", "HHH", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "where", "clublocation", "=", "value"], "question": "How many clubs are located at \"HHH\"?", "question_toks": ["How", "many", "clubs", "are", "located", "at", "``", "HHH", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"HHH\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3287", "db_id": "college_1", "query": "select count(*) from professor where prof_high_degree = 'ph.d.' or prof_high_degree = 'ma'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'", "OR", "prof_high_degree", "=", "'MA", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "professor", "where", "prof_high_degree", "=", "value", "or", "prof_high_degree", "=", "value"], "question": "How many professors who has a either Ph.D. or MA degree?", "question_toks": ["How", "many", "professors", "who", "has", "a", "either", "Ph.D.", "or", "MA", "degree", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"Ph.D.\"", null], "or", [false, 2, [0, [0, 31, false], null], "\"MA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3288", "db_id": "college_1", "query": "select count(*) from professor where prof_high_degree = 'ph.d.' or prof_high_degree = 'ma'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'", "OR", "prof_high_degree", "=", "'MA", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "professor", "where", "prof_high_degree", "=", "value", "or", "prof_high_degree", "=", "value"], "question": "How many professors attained either Ph.D. or Masters degrees?", "question_toks": ["How", "many", "professors", "attained", "either", "Ph.D.", "or", "Masters", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"Ph.D.\"", null], "or", [false, 2, [0, [0, 31, false], null], "\"MA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0000", "db_id": "concert_singer", "query": "select count(*) from singer", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "singer"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "singer"], "question": "How many singers do we have?", "question_toks": ["How", "many", "singers", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0020", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 or year = 2015", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "concert", "WHERE", "YEAR", "=", "2014", "OR", "YEAR", "=", "2015"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "concert", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "How many concerts are there in year 2014 or 2015?", "question_toks": ["How", "many", "concerts", "are", "there", "in", "year", "2014", "or", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null], "or", [false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0021", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 or year = 2015", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "concert", "WHERE", "YEAR", "=", "2014", "OR", "YEAR", "=", "2015"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "concert", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "How many concerts occurred in 2014 or 2015?", "question_toks": ["How", "many", "concerts", "occurred", "in", "2014", "or", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null], "or", [false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0023", "db_id": "concert_singer", "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", "query_toks": ["SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "GROUP", "BY", "T1.stadium_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t1", ".", "stadium_id"], "question": "For each stadium, how many concerts play there?", "question_toks": ["For", "each", "stadium", ",", "how", "many", "concerts", "play", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0381", "db_id": "course_teach", "query": "select count(*) from teacher", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "teacher"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "teacher"], "question": "How many teachers are there?", "question_toks": ["How", "many", "teachers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0297", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents"], "question": "How many documents do we have?", "question_toks": ["How", "many", "documents", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0307", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'ppt'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.Template_ID", "=", "T2.Template_ID", "WHERE", "T2.Template_Type_Code", "=", "'PPT", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "template_type_code", "=", "value"], "question": "How many documents are using the template with type code 'PPT'?", "question_toks": ["How", "many", "documents", "are", "using", "the", "template", "with", "type", "code", "'PPT", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"PPT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_JOIN_1", "DEJOIN_TOTAL", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0310", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id , count(*) from documents group by template_id", "query_toks": ["SELECT", "template_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "template_id"], "query_toks_no_value": ["select", "template_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "template_id"], "question": "What are all different template ids used for documents, and how many times were each of them used?", "question_toks": ["What", "are", "all", "different", "template", "ids", "used", "for", "documents", ",", "and", "how", "many", "times", "were", "each", "of", "them", "used", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0317", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from templates", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Templates"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "templates"], "question": "How many templates do we have?", "question_toks": ["How", "many", "templates", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0325", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from templates where template_type_code = \"cv\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "CV", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "templates", "where", "template_type_code", "=", "value"], "question": "How many templates have template type code CV?", "question_toks": ["How", "many", "templates", "have", "template", "type", "code", "CV", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"CV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2364", "db_id": "csu_1", "query": "select count(*) from campuses where county = \"los angeles\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "campuses", "where", "county", "=", "value"], "question": "How many campuses are there in Los Angeles county?", "question_toks": ["How", "many", "campuses", "are", "there", "in", "Los", "Angeles", "county", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2365", "db_id": "csu_1", "query": "select count(*) from campuses where county = \"los angeles\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "campuses", "where", "county", "=", "value"], "question": "How many campuses exist are in the county of LA?", "question_toks": ["How", "many", "campuses", "exist", "are", "in", "the", "county", "of", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2392", "db_id": "csu_1", "query": "select count(*) from campuses", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "campuses"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "campuses"], "question": "How many CSU campuses are there?", "question_toks": ["How", "many", "CSU", "campuses", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6962", "db_id": "culture_company", "query": "select count(*) from book_club", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "book_club"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "book_club"], "question": "How many book clubs are there?", "question_toks": ["How", "many", "book", "clubs", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6971", "db_id": "culture_company", "query": "select publisher , count(*) from book_club group by publisher", "query_toks": ["SELECT", "publisher", ",", "count", "(", "*", ")", "FROM", "book_club", "GROUP", "BY", "publisher"], "query_toks_no_value": ["select", "publisher", ",", "count", "(", "*", ")", "from", "book_club", "group", "by", "publisher"], "question": "How many books are there for each publisher?", "question_toks": ["How", "many", "books", "are", "there", "for", "each", "publisher", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5768", "db_id": "customer_complaints", "query": "select count(*) from customers", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "customers"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers"], "question": "How many customers are there?", "question_toks": ["How", "many", "customers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5775", "db_id": "customer_complaints", "query": "select t1.product_name , count(*) from products as t1 join complaints as t2 on t1.product_id = t2.product_id group by t1.product_name", "query_toks": ["SELECT", "t1.product_name", ",", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "GROUP", "BY", "t1.product_name"], "query_toks_no_value": ["select", "t1", ".", "product_name", ",", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name"], "question": "What are all the different product names, and how many complains has each received?", "question_toks": ["What", "are", "all", "the", "different", "product", "names", ",", "and", "how", "many", "complains", "has", "each", "received", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 24, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1576", "db_id": "customers_and_invoices", "query": "select gender , count(*) from customers group by gender", "query_toks": ["SELECT", "gender", ",", "count", "(", "*", ")", "FROM", "Customers", "GROUP", "BY", "gender"], "query_toks_no_value": ["select", "gender", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "gender"], "question": "How many customers are there of each gender?", "question_toks": ["How", "many", "customers", "are", "there", "of", "each", "gender", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4620", "db_id": "customers_campaigns_ecommerce", "query": "select count(*) from premises", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "premises"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "premises"], "question": "How many premises are there?", "question_toks": ["How", "many", "premises", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0667", "db_id": "customers_card_transactions", "query": "select count(*) from accounts", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Accounts"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "accounts"], "question": "How many accounts do we have?", "question_toks": ["How", "many", "accounts", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0675", "db_id": "customers_card_transactions", "query": "select count(*) from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.customer_first_name = \"art\" and t2.customer_last_name = \"turcotte\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Art", "''", "AND", "T2.customer_last_name", "=", "``", "Turcotte", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value"], "question": "How many accounts does the customer with first name Art and last name Turcotte have?", "question_toks": ["How", "many", "accounts", "does", "the", "customer", "with", "first", "name", "Art", "and", "last", "name", "Turcotte", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Art\"", null], "and", [false, 2, [0, [0, 7, false], null], "\"Turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0974", "db_id": "dog_kennels", "query": "select count(*) from dogs where age < ( select avg(age) from dogs )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Dogs", "WHERE", "age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dogs", "where", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "dogs", ")"], "question": "How many dogs have an age below the average?", "question_toks": ["How", "many", "dogs", "have", "an", "age", "below", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0978", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Dogs", "WHERE", "dog_id", "NOT", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "How many dogs have not gone through any treatment?", "question_toks": ["How", "many", "dogs", "have", "not", "gone", "through", "any", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_ANY_REFORMULATION", "NEGATION_WITH_ANY_ALL", "_HOW_MANY_COUNT", "_NEGATION_ANY", "ANY_SOME_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0980", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "question": "How many owners temporarily do not have any dogs?", "question_toks": ["How", "many", "owners", "temporarily", "do", "not", "have", "any", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_ANY_REFORMULATION", "NEGATION_WITH_ANY_ALL", "_HOW_MANY_COUNT", "_NEGATION_ANY", "ANY_SOME_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0982", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "question": "How many professionals did not operate any treatment on dogs?", "question_toks": ["How", "many", "professionals", "did", "not", "operate", "any", "treatment", "on", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_ANY_REFORMULATION", "NEGATION_WITH_ANY_ALL", "_HOW_MANY_COUNT", "_NEGATION_ANY", "ANY_SOME_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5672", "db_id": "dorm_1", "query": "select count(*) from student where sex = 'f' and age < 25", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "age", "<", "25"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "How many female students (sex is F) whose age is below 25?", "question_toks": ["How", "many", "female", "students", "(", "sex", "is", "F", ")", "whose", "age", "is", "below", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 4, [0, [0, 4, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5673", "db_id": "dorm_1", "query": "select count(*) from student where sex = 'f' and age < 25", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "age", "<", "25"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "How many girl students who are younger than 25?", "question_toks": ["How", "many", "girl", "students", "who", "are", "younger", "than", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 4, [0, [0, 4, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5678", "db_id": "dorm_1", "query": "select count(*) from dorm", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "dorm"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dorm"], "question": "How many dorms are there?", "question_toks": ["How", "many", "dorms", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5679", "db_id": "dorm_1", "query": "select count(*) from dorm", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "dorm"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dorm"], "question": "How many dorms are in the database?", "question_toks": ["How", "many", "dorms", "are", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5721", "db_id": "dorm_1", "query": "select count(*) , sum(student_capacity) , gender from dorm group by gender", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "sum", "(", "student_capacity", ")", ",", "gender", "FROM", "dorm", "GROUP", "BY", "gender"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "sum", "(", "student_capacity", ")", ",", "gender", "from", "dorm", "group", "by", "gender"], "question": "How many dorms are there and what is the total capacity for each gender?", "question_toks": ["How", "many", "dorms", "are", "there", "and", "what", "is", "the", "total", "capacity", "for", "each", "gender", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [4, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6693", "db_id": "driving_school", "query": "select count(*) from customers where customer_id not in ( select customer_id from customer_payments );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")"], "question": "How many customers have no payment histories?", "question_toks": ["How", "many", "customers", "have", "no", "payment", "histories", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6697", "db_id": "driving_school", "query": "select payment_method_code , count(*) from customer_payments group by payment_method_code;", "query_toks": ["SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "Customer_Payments", "GROUP", "BY", "payment_method_code", ";"], "query_toks_no_value": ["select", "payment_method_code", ",", "count", "(", "*", ")", "from", "customer_payments", "group", "by", "payment_method_code"], "question": "For each payment method, how many payments were made?", "question_toks": ["For", "each", "payment", "method", ",", "how", "many", "payments", "were", "made", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6698", "db_id": "driving_school", "query": "select count(*) from lessons where lesson_status_code = \"cancelled\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Lessons", "WHERE", "lesson_status_code", "=", "``", "Cancelled", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "lessons", "where", "lesson_status_code", "=", "value"], "question": "How many lessons were in cancelled state?", "question_toks": ["How", "many", "lessons", "were", "in", "cancelled", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2288", "db_id": "entrepreneur", "query": "select investor , count(*) from entrepreneur group by investor", "query_toks": ["SELECT", "Investor", ",", "COUNT", "(", "*", ")", "FROM", "entrepreneur", "GROUP", "BY", "Investor"], "query_toks_no_value": ["select", "investor", ",", "count", "(", "*", ")", "from", "entrepreneur", "group", "by", "investor"], "question": "How many entrepreneurs correspond to each investor?", "question_toks": ["How", "many", "entrepreneurs", "correspond", "to", "each", "investor", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0381", "db_id": "flight_1", "query": "select count(*) from flight", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Flight"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flight"], "question": "How many flights do we have?", "question_toks": ["How", "many", "flights", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0404", "db_id": "flight_1", "query": "select origin , count(*) from flight group by origin", "query_toks": ["SELECT", "origin", ",", "count", "(", "*", ")", "FROM", "Flight", "GROUP", "BY", "origin"], "query_toks_no_value": ["select", "origin", ",", "count", "(", "*", ")", "from", "flight", "group", "by", "origin"], "question": "For each origin, how many flights came from there?", "question_toks": ["For", "each", "origin", ",", "how", "many", "flights", "came", "from", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0416", "db_id": "flight_1", "query": "select t2.name , count(*) from flight as t1 join aircraft as t2 on t1.aid = t2.aid group by t1.aid", "query_toks": ["SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "GROUP", "BY", "T1.aid"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "group", "by", "t1", ".", "aid"], "question": "What is the name of each aircraft and how many flights does each one complete?", "question_toks": ["What", "is", "the", "name", "of", "each", "aircraft", "and", "how", "many", "flights", "does", "each", "one", "complete", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0187", "db_id": "flight_2", "query": "select count(*) from airlines", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines"], "question": "How many airlines do we have?", "question_toks": ["How", "many", "airlines", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0189", "db_id": "flight_2", "query": "select count(*) from airports", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRPORTS"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airports"], "question": "How many airports do we have?", "question_toks": ["How", "many", "airports", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0191", "db_id": "flight_2", "query": "select count(*) from flights", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights"], "question": "How many flights do we have?", "question_toks": ["How", "many", "flights", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0195", "db_id": "flight_2", "query": "select count(*) from airlines where country = \"usa\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value"], "question": "How many airlines are from USA?", "question_toks": ["How", "many", "airlines", "are", "from", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "HOW_MANY", "WHERE_MONO", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0203", "db_id": "flight_2", "query": "select count(*) from flights where sourceairport = \"apg\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "APG", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "where", "sourceairport", "=", "value"], "question": "How many flights depart from 'APG'?", "question_toks": ["How", "many", "flights", "depart", "from", "'APG", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0205", "db_id": "flight_2", "query": "select count(*) from flights where destairport = \"ato\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "``", "ATO", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "where", "destairport", "=", "value"], "question": "How many flights have destination ATO?", "question_toks": ["How", "many", "flights", "have", "destination", "ATO", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"ATO\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0207", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "How many flights depart from City Aberdeen?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "Aberdeen", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_JOIN_1", "DEJOIN_TOTAL", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6012", "db_id": "game_1", "query": "select sportname , count(*) from sportsinfo group by sportname", "query_toks": ["SELECT", "sportname", ",", "count", "(", "*", ")", "FROM", "Sportsinfo", "GROUP", "BY", "sportname"], "query_toks_no_value": ["select", "sportname", ",", "count", "(", "*", ")", "from", "sportsinfo", "group", "by", "sportname"], "question": "How many students play each sport?", "question_toks": ["How", "many", "students", "play", "each", "sport", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0081", "db_id": "geo", "query": "select count ( river_name ) from river where traverse = \"idaho\";", "query_toks": ["SELECT", "COUNT", "(", "river_name", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "idaho", "''", ";"], "query_toks_no_value": ["select", "count", "(", "river_name", ")", "from", "river", "where", "traverse", "=", "value"], "question": "how many rivers are in idaho", "question_toks": ["how", "many", "rivers", "are", "in", "idaho"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"idaho\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0476", "db_id": "geo", "query": "select count ( state_name ) from city where city_name = \"springfield\";", "query_toks": ["SELECT", "COUNT", "(", "state_name", ")", "FROM", "city", "WHERE", "city_name", "=", "``", "springfield", "''", ";"], "query_toks_no_value": ["select", "count", "(", "state_name", ")", "from", "city", "where", "city_name", "=", "value"], "question": "how many states have a city named springfield", "question_toks": ["how", "many", "states", "have", "a", "city", "named", "springfield"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"springfield\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0482", "db_id": "geo", "query": "select count ( city_name ) from city where population > 150000 and state_name = \"texas\";", "query_toks": ["SELECT", "COUNT", "(", "city_name", ")", "FROM", "city", "WHERE", "population", ">", "150000", "AND", "state_name", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "count", "(", "city_name", ")", "from", "city", "where", "population", ">", "value", "and", "state_name", "=", "value"], "question": "how many major cities are in texas", "question_toks": ["how", "many", "major", "cities", "are", "in", "texas"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 150000.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3526", "db_id": "hr_1", "query": "select department_name , count(*) from employees as t1 join departments as t2 on t1.department_id = t2.department_id group by department_name", "query_toks": ["SELECT", "department_name", ",", "COUNT", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "GROUP", "BY", "department_name"], "query_toks_no_value": ["select", "department_name", ",", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "department_name"], "question": "What are the department names and how many employees work in each of them?", "question_toks": ["What", "are", "the", "department", "names", "and", "how", "many", "employees", "work", "in", "each", "of", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2860", "db_id": "icfp_1", "query": "select count(*) from inst", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "inst"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "inst"], "question": "How many institutions are there?", "question_toks": ["How", "many", "institutions", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2862", "db_id": "icfp_1", "query": "select count(*) from papers", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "papers"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "papers"], "question": "How many papers are published in total?", "question_toks": ["How", "many", "papers", "are", "published", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1000", "db_id": "singer", "query": "select count(*) from singer", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "singer"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "singer"], "question": "How many singers are there?", "question_toks": ["How", "many", "singers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1013", "db_id": "singer", "query": "select citizenship , count(*) from singer group by citizenship", "query_toks": ["SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship"], "query_toks_no_value": ["select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship"], "question": "For each citizenship, how many singers are from that country?", "question_toks": ["For", "each", "citizenship", ",", "how", "many", "singers", "are", "from", "that", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2630", "db_id": "inn_1", "query": "select count(distinct bedtype) from rooms;", "query_toks": ["SELECT", "count", "(", "DISTINCT", "bedType", ")", "FROM", "Rooms", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "bedtype", ")", "from", "rooms"], "question": "How many different types of beds are there?", "question_toks": ["How", "many", "different", "types", "of", "beds", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 4, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3027", "db_id": "loan_1", "query": "select count(distinct city) from bank", "query_toks": ["SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "bank"], "query_toks_no_value": ["select", "count", "(", "distinct", "city", ")", "from", "bank"], "question": "In how many different cities are banks located?", "question_toks": ["In", "how", "many", "different", "cities", "are", "banks", "located", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 4, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0685", "db_id": "poker_player", "query": "select count(distinct nationality) from people", "query_toks": ["SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "people"], "query_toks_no_value": ["select", "count", "(", "distinct", "nationality", ")", "from", "people"], "question": "How many distinct nationalities are there?", "question_toks": ["How", "many", "distinct", "nationalities", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 8, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1968", "db_id": "products_for_hire", "query": "select count(distinct product_type_code) from products_for_hire", "query_toks": ["SELECT", "count", "(", "DISTINCT", "product_type_code", ")", "FROM", "products_for_hire"], "query_toks_no_value": ["select", "count", "(", "distinct", "product_type_code", ")", "from", "products_for_hire"], "question": "How many different product types are there?", "question_toks": ["How", "many", "different", "product", "types", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5556", "db_id": "products_gen_characteristics", "query": "select count(distinct t3.characteristic_name) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t1.product_name = \"sesame\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "t3.characteristic_name", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3", ".", "characteristic_name", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value"], "question": "How many distinct characteristic names does the product \"cumin\" have?", "question_toks": ["How", "many", "distinct", "characteristic", "names", "does", "the", "product", "``", "cumin", "''", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null]]}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"sesame\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2924", "db_id": "sakila_1", "query": "select count(distinct last_name) from actor", "query_toks": ["SELECT", "count", "(", "DISTINCT", "last_name", ")", "FROM", "actor"], "query_toks_no_value": ["select", "count", "(", "distinct", "last_name", ")", "from", "actor"], "question": "How many different last names do the actors and actresses have?", "question_toks": ["How", "many", "different", "last", "names", "do", "the", "actors", "and", "actresses", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2970", "db_id": "sakila_1", "query": "select count(distinct language_id) from film", "query_toks": ["SELECT", "count", "(", "DISTINCT", "language_id", ")", "FROM", "film"], "query_toks_no_value": ["select", "count", "(", "distinct", "language_id", ")", "from", "film"], "question": "How many languages are in these films?", "question_toks": ["How", "many", "languages", "are", "in", "these", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 36, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0518", "db_id": "student_transcripts_tracking", "query": "select count(distinct department_id) from degree_programs", "query_toks": ["SELECT", "count", "(", "DISTINCT", "department_id", ")", "FROM", "Degree_Programs"], "query_toks_no_value": ["select", "count", "(", "distinct", "department_id", ")", "from", "degree_programs"], "question": "How many different departments offer degrees?", "question_toks": ["How", "many", "different", "departments", "offer", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 19, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0519", "db_id": "student_transcripts_tracking", "query": "select count(distinct degree_summary_name) from degree_programs", "query_toks": ["SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs"], "query_toks_no_value": ["select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs"], "question": "How many different degree names are offered?", "question_toks": ["How", "many", "different", "degree", "names", "are", "offered", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 20, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0520", "db_id": "student_transcripts_tracking", "query": "select count(distinct degree_summary_name) from degree_programs", "query_toks": ["SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs"], "query_toks_no_value": ["select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs"], "question": "How many different degrees are offered?", "question_toks": ["How", "many", "different", "degrees", "are", "offered", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 20, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5414", "db_id": "shop_membership", "query": "select count(distinct level) from member", "query_toks": ["SELECT", "count", "(", "DISTINCT", "LEVEL", ")", "FROM", "member"], "query_toks_no_value": ["select", "count", "(", "distinct", "level", ")", "from", "member"], "question": "How many different levels do members have?", "question_toks": ["How", "many", "different", "levels", "do", "members", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2637", "db_id": "inn_1", "query": "select count(*) from rooms where roomid not in (select distinct room from reservations)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "rooms", "WHERE", "roomid", "NOT", "IN", "(", "SELECT", "DISTINCT", "room", "FROM", "reservations", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "rooms", "where", "roomid", "not", "in", "(", "select", "distinct", "room", "from", "reservations", ")"], "question": "How many rooms have not had any reservation yet?", "question_toks": ["How", "many", "rooms", "have", "not", "had", "any", "reservation", "yet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "NEGATION_WITH_ANY_ALL", "_HOW_MANY_COUNT_DISTINCT", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2578", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\" and lastname = \"sweazy\";", "query_toks": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many kids stay in the rooms reserved by ROY SWEAZY?", "question_toks": ["How", "many", "kids", "stay", "in", "the", "rooms", "reserved", "by", "ROY", "SWEAZY", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"ROY\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SWEAZY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HOW_MANY_NOTHING", "HOW_MANY", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3682", "db_id": "baseball_1", "query": "select salary from salary where year = 2001 order by salary desc limit 3;", "query_toks": ["SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001", "ORDER", "BY", "salary", "DESC", "LIMIT", "3", ";"], "query_toks_no_value": ["select", "salary", "from", "salary", "where", "year", "=", "value", "order", "by", "salary", "desc", "limit", "value"], "question": "How much salary did the top 3 well-paid players get in 2001?", "question_toks": ["How", "much", "salary", "did", "the", "top", "3", "well-paid", "players", "get", "in", "2001", "?"], "sql": {"from": {"table_units": [["table_unit", 20]], "conds": []}, "select": [false, [[0, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 272, false], null], 2001.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 276, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0112", "db_id": "car_1", "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)';", "query_toks": ["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", ")", "'", ";"], "query_toks_no_value": ["select", "t1", ".", "accelerate", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "make", "=", "value"], "question": "How much does the car accelerate that makes amc hornet sportabout (sw)?", "question_toks": ["How", "much", "does", "the", "car", "accelerate", "that", "makes", "amc", "hornet", "sportabout", "(", "sw", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"amc hornet sportabout (sw)\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HOW_MANY_NOTHING", "HOW_MANY", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0157", "db_id": "car_1", "query": "select t1.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;", "query_toks": ["SELECT", "T1.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", ";"], "query_toks_no_value": ["select", "t1", ".", "cylinders", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "model", "=", "value", "order", "by", "t1", ".", "accelerate", "asc", "limit", "value"], "question": "For model volvo, how many cylinders does the car with the least accelerate have?", "question_toks": ["For", "model", "volvo", ",", "how", "many", "cylinders", "does", "the", "car", "with", "the", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_HOW_MANY_NOTHING", "HOW_MANY", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0158", "db_id": "car_1", "query": "select t1.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;", "query_toks": ["SELECT", "T1.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", ";"], "query_toks_no_value": ["select", "t1", ".", "cylinders", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "model", "=", "value", "order", "by", "t1", ".", "accelerate", "asc", "limit", "value"], "question": "For a volvo model, how many cylinders does the version with least accelerate have?", "question_toks": ["For", "a", "volvo", "model", ",", "how", "many", "cylinders", "does", "the", "version", "with", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_HOW_MANY_NOTHING", "HOW_MANY", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3286", "db_id": "college_1", "query": "select t4.crs_description , t4.crs_credit from class as t1 join enroll as t2 on t1.class_code = t2.class_code join student as t3 on t3.stu_num = t2.stu_num join course as t4 on t4.crs_code = t1.crs_code where t3.stu_lname = 'smithson'", "query_toks": ["SELECT", "T4.crs_description", ",", "T4.crs_credit", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T3.stu_num", "=", "T2.stu_num", "JOIN", "course", "AS", "T4", "ON", "T4.crs_code", "=", "T1.crs_code", "WHERE", "T3.stu_lname", "=", "'Smithson", "'"], "query_toks_no_value": ["select", "t4", ".", "crs_description", ",", "t4", ".", "crs_credit", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t3", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "course", "as", "t4", "on", "t4", ".", "crs_code", "=", "t1", ".", "crs_code", "where", "t3", ".", "stu_lname", "=", "value"], "question": "How many credits is the course that the student with the last name Smithson took, and what is its description?", "question_toks": ["How", "many", "credits", "is", "the", "course", "that", "the", "student", "with", "the", "last", "name", "Smithson", "took", ",", "and", "what", "is", "its", "description", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 32, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"Smithson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2376", "db_id": "csu_1", "query": "select faculty from faculty as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["SELECT", "faculty", "FROM", "faculty", "AS", "T1", "JOIN", "campuses", "AS", "T2", "ON", "T1.campus", "=", "T2.id", "WHERE", "T1.year", "=", "2004", "AND", "T2.campus", "=", "``", "San", "Francisco", "State", "University", "''"], "query_toks_no_value": ["select", "faculty", "from", "faculty", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value"], "question": "How many faculty lines are there in \"San Francisco State University\" in year 2004?", "question_toks": ["How", "many", "faculty", "lines", "are", "there", "in", "``", "San", "Francisco", "State", "University", "''", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"San Francisco State University\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2380", "db_id": "csu_1", "query": "select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1", "query_toks": ["SELECT", "T2.faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "JOIN", "degrees", "AS", "T3", "ON", "T1.id", "=", "t3.campus", "AND", "t2.year", "=", "t3.year", "WHERE", "t2.year", "=", "2002", "ORDER", "BY", "t3.degrees", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "desc", "limit", "value"], "question": "How many faculty lines are there in the university that conferred the most number of degrees in year 2002?", "question_toks": ["How", "many", "faculty", "lines", "are", "there", "in", "the", "university", "that", "conferred", "the", "most", "number", "of", "degrees", "in", "year", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2381", "db_id": "csu_1", "query": "select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1", "query_toks": ["SELECT", "T2.faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "JOIN", "degrees", "AS", "T3", "ON", "T1.id", "=", "t3.campus", "AND", "t2.year", "=", "t3.year", "WHERE", "t2.year", "=", "2002", "ORDER", "BY", "t3.degrees", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "desc", "limit", "value"], "question": "How many faculty members did the university that conferred the most degrees in 2002 have?", "question_toks": ["How", "many", "faculty", "members", "did", "the", "university", "that", "conferred", "the", "most", "degrees", "in", "2002", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0976", "db_id": "dog_kennels", "query": "select cost_of_treatment from treatments order by date_of_treatment desc limit 1", "query_toks": ["SELECT", "cost_of_treatment", "FROM", "Treatments", "ORDER", "BY", "date_of_treatment", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "cost_of_treatment", "from", "treatments", "order", "by", "date_of_treatment", "desc", "limit", "value"], "question": "How much does the most recent treatment cost?", "question_toks": ["How", "much", "does", "the", "most", "recent", "treatment", "cost", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 48, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0990", "db_id": "dog_kennels", "query": "select charge_type , charge_amount from charges", "query_toks": ["SELECT", "charge_type", ",", "charge_amount", "FROM", "Charges"], "query_toks_no_value": ["select", "charge_type", ",", "charge_amount", "from", "charges"], "question": "How much does each charge type costs? List both charge type and amount.", "question_toks": ["How", "much", "does", "each", "charge", "type", "costs", "?", "List", "both", "charge", "type", "and", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0018", "db_id": "geo", "query": "select population from state where state_name = \"california\";", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "``", "california", "''", ";"], "query_toks_no_value": ["select", "population", "from", "state", "where", "state_name", "=", "value"], "question": "how many people live in california", "question_toks": ["how", "many", "people", "live", "in", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1444", "db_id": "imdb", "query": "select budget from movie where title = \"finding nemo\";", "query_toks": ["SELECT", "budget", "FROM", "movie", "WHERE", "title", "=", "``", "Finding", "Nemo", "''", ";"], "query_toks_no_value": ["select", "budget", "from", "movie", "where", "title", "=", "value"], "question": "How much was the budget of \" Finding Nemo \"", "question_toks": ["How", "much", "was", "the", "budget", "of", "``", "Finding", "Nemo", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 43, false], null], "\"Finding Nemo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2599", "db_id": "inn_1", "query": "select sum(maxoccupancy) from rooms where decor = 'modern';", "query_toks": ["SELECT", "sum", "(", "maxOccupancy", ")", "FROM", "Rooms", "WHERE", "decor", "=", "'modern", "'", ";"], "query_toks_no_value": ["select", "sum", "(", "maxoccupancy", ")", "from", "rooms", "where", "decor", "=", "value"], "question": "How many people in total can stay in the modern rooms of this inn?", "question_toks": ["How", "many", "people", "in", "total", "can", "stay", "in", "the", "modern", "rooms", "of", "this", "inn", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"modern\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1518", "db_id": "insurance_and_eClaims", "query": "select sum(t1.amount_claimed) from claim_headers as t1 join claims_documents as t2 on t1.claim_header_id = t2.claim_id where t2.created_date = (select created_date from claims_documents order by created_date limit 1)", "query_toks": ["SELECT", "sum", "(", "t1.amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1.claim_header_id", "=", "t2.claim_id", "WHERE", "t2.created_date", "=", "(", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "(", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "value", ")"], "question": "How much amount in total were claimed in the most recently created document?", "question_toks": ["How", "much", "amount", "in", "total", "were", "claimed", "in", "the", "most", "recently", "created", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3389", "db_id": "manufacturer", "query": "select sum(num_of_component) from furniture", "query_toks": ["SELECT", "sum", "(", "num_of_component", ")", "FROM", "furniture"], "query_toks_no_value": ["select", "sum", "(", "num_of_component", ")", "from", "furniture"], "question": "How many furniture components are there in total?", "question_toks": ["How", "many", "furniture", "components", "are", "there", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1243", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_buildings as t1 join apartments as t2 on t1.building_id = t2.building_id where t1.building_short_name = \"columbus square\"", "query_toks": ["SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T1.building_short_name", "=", "``", "Columbus", "Square", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "value"], "question": "How many rooms in total are there in the apartments in the building with short name \"Columbus Square\"?", "question_toks": ["How", "many", "rooms", "in", "total", "are", "there", "in", "the", "apartments", "in", "the", "building", "with", "short", "name", "``", "Columbus", "Square", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Columbus Square\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3694", "db_id": "baseball_1", "query": "select sum(t1.attendance) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year between 2000 and 2010;", "query_toks": ["SELECT", "sum", "(", "T1.attendance", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "2000", "AND", "2010", ";"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "attendance", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value"], "question": "How many games in total did team Boston Red Stockings attend from 2000 to 2010?", "question_toks": ["How", "many", "games", "in", "total", "did", "team", "Boston", "Red", "Stockings", "attend", "from", "2000", "to", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 161, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 2000.0, 2010.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3695", "db_id": "baseball_1", "query": "select sum(t1.salary) from salary as t1 join player as t2 on t1.player_id = t2.player_id where t2.name_first = 'len' and t2.name_last = 'barker' and t1.year between 1985 and 1990;", "query_toks": ["SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "T2.name_first", "=", "'Len", "'", "AND", "T2.name_last", "=", "'Barker", "'", "AND", "T1.year", "BETWEEN", "1985", "AND", "1990", ";"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "t2", ".", "name_first", "=", "value", "and", "t2", ".", "name_last", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value"], "question": "How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?", "question_toks": ["How", "much", "did", "the", "the", "player", "with", "first", "name", "Len", "and", "last", "name", "Barker", "earn", "between", "1985", "to", "1990", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 20], ["table_unit", 16]], "conds": [[false, 2, [0, [0, 275, false], null], [0, 182, false], null]]}, "select": [false, [[4, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 195, false], null], "\"Len\"", null], "and", [false, 2, [0, [0, 196, false], null], "\"Barker\"", null], "and", [false, 1, [0, [0, 272, false], null], 1985.0, 1990.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3699", "db_id": "baseball_1", "query": "select sum(t1.games) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year between 1990 and 2000;", "query_toks": ["SELECT", "sum", "(", "T1.games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "1990", "AND", "2000", ";"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value"], "question": "How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?", "question_toks": ["How", "many", "home", "games", "did", "the", "team", "Boston", "Red", "Stockings", "play", "from", "1990", "to", "2000", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 159, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 1990.0, 2000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2372", "db_id": "csu_1", "query": "select sum(faculty) from faculty where year = 2002", "query_toks": ["SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "2002"], "query_toks_no_value": ["select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "value"], "question": "How many faculty is there in total in the year of 2002?", "question_toks": ["How", "many", "faculty", "is", "there", "in", "total", "in", "the", "year", "of", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2373", "db_id": "csu_1", "query": "select sum(faculty) from faculty where year = 2002", "query_toks": ["SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "2002"], "query_toks_no_value": ["select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "value"], "question": "How many faculty, in total, are there in the year 2002?", "question_toks": ["How", "many", "faculty", ",", "in", "total", ",", "are", "there", "in", "the", "year", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6690", "db_id": "driving_school", "query": "select sum(t1.amount_payment) from customer_payments as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.first_name = \"carole\" and t2.last_name = \"bernhard\"", "query_toks": ["SELECT", "sum", "(", "T1.amount_payment", ")", "FROM", "Customer_Payments", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Carole", "''", "AND", "T2.last_name", "=", "``", "Bernhard", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "amount_payment", ")", "from", "customer_payments", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value"], "question": "How much in total does customer with first name as Carole and last name as Bernhard paid?", "question_toks": ["How", "much", "in", "total", "does", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "paid", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Carole\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Bernhard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_how_many_0162", "db_id": "csu_1", "query": "select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus", "query_toks": ["SELECT", "T1", ".", "campus", ",", "sum", "(", "T2", ".", "degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", ">=", "1998", "AND", "T2", ".", "year", "<=", "2002", "GROUP", "BY", "T1", ".", "campus"], "query_toks_no_value": ["SELECT", "T1", ".", "campus", ",", "sum", "(", "T2", ".", "degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "campus", "WHERE", "T2", ".", "year", ">=", "value", "AND", "T2", ".", "year", "<=", "value", "GROUP", "BY", "T1", ".", "campus"], "question": "how many degrees were conferred between 1998 and 2002 in different campuses?", "question_toks": ["how", "many", "degrees", "were", "conferred", "between", "1998", "and", "2002", "in", "different", "campuses", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 1998.0, null], "and", [false, 6, [0, [0, 9, false], null], 2002.0, null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0435", "db_id": "wta_1", "query": "select avg(loser_age) , avg(winner_age) from matches", "query_toks": ["SELECT", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "FROM", "matches"], "query_toks_no_value": ["select", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "from", "matches"], "question": "Find the average age of losers and winners of all matches.", "question_toks": ["Find", "the", "average", "age", "of", "losers", "and", "winners", "of", "all", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0436", "db_id": "wta_1", "query": "select avg(loser_age) , avg(winner_age) from matches", "query_toks": ["SELECT", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "FROM", "matches"], "query_toks_no_value": ["select", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "from", "matches"], "question": "What are the average ages of losers and winners across matches?", "question_toks": ["What", "are", "the", "average", "ages", "of", "losers", "and", "winners", "across", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0597", "db_id": "tvshow", "query": "select count(distinct series_name) , count(distinct content) from tv_channel;", "query_toks": ["SELECT", "count", "(", "DISTINCT", "series_name", ")", ",", "count", "(", "DISTINCT", "content", ")", "FROM", "TV_Channel", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "series_name", ")", ",", "count", "(", "distinct", "content", ")", "from", "tv_channel"], "question": "List the number of different series names and contents in the TV Channel table.", "question_toks": ["List", "the", "number", "of", "different", "series", "names", "and", "contents", "in", "the", "TV", "Channel", "table", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]], [3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0598", "db_id": "tvshow", "query": "select count(distinct series_name) , count(distinct content) from tv_channel;", "query_toks": ["SELECT", "count", "(", "DISTINCT", "series_name", ")", ",", "count", "(", "DISTINCT", "content", ")", "FROM", "TV_Channel", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "series_name", ")", ",", "count", "(", "distinct", "content", ")", "from", "tv_channel"], "question": "How many different series and contents are listed in the TV Channel table?", "question_toks": ["How", "many", "different", "series", "and", "contents", "are", "listed", "in", "the", "TV", "Channel", "table", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]], [3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0117", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station where city = \"san jose\"", "query_toks": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''"], "query_toks_no_value": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "value"], "question": "What is the average latitude and longitude of stations located in San Jose city?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "of", "stations", "located", "in", "San", "Jose", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "SYNONYMS", "AGGREGATION_MONO", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0118", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station where city = \"san jose\"", "query_toks": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''"], "query_toks_no_value": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "value"], "question": "What is the average latitude and longitude in San Jose?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "SYNONYMS", "AGGREGATION_MONO", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0211", "db_id": "bike_1", "query": "select avg(t1.lat) , avg(t1.long) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["SELECT", "avg", "(", "T1.lat", ")", ",", "avg", "(", "T1.long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "question": "What is the average latitude and longitude of the starting points of all trips?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "of", "the", "starting", "points", "of", "all", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "AGGREGATION_MONO", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0212", "db_id": "bike_1", "query": "select avg(t1.lat) , avg(t1.long) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["SELECT", "avg", "(", "T1.lat", ")", ",", "avg", "(", "T1.long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "question": "What is the average latitude and longitude of all starting stations for the trips?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "of", "all", "starting", "stations", "for", "the", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "AGGREGATION_MONO", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0402", "db_id": "flight_1", "query": "select avg(distance) , avg(price) from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value"], "question": "What is the average distance and price for all flights from LA?", "question_toks": ["What", "is", "the", "average", "distance", "and", "price", "for", "all", "flights", "from", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "AGGREGATION_MONO", "_REFORMULATION_ABBREVIATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2408", "db_id": "candidate_poll", "query": "select avg(height) , avg(weight) from people where sex = 'm'", "query_toks": ["SELECT", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "FROM", "people", "WHERE", "sex", "=", "'M", "'"], "query_toks_no_value": ["select", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "from", "people", "where", "sex", "=", "value"], "question": "Find the average height and weight for all males (sex is M).", "question_toks": ["Find", "the", "average", "height", "and", "weight", "for", "all", "males", "(", "sex", "is", "M", ")", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [5, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"M\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2409", "db_id": "candidate_poll", "query": "select avg(height) , avg(weight) from people where sex = 'm'", "query_toks": ["SELECT", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "FROM", "people", "WHERE", "sex", "=", "'M", "'"], "query_toks_no_value": ["select", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "from", "people", "where", "sex", "=", "value"], "question": "What are the average height and weight across males (sex is M)?", "question_toks": ["What", "are", "the", "average", "height", "and", "weight", "across", "males", "(", "sex", "is", "M", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [5, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"M\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2704", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "(", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "query_toks_no_value": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "(", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "question": "What is the total number of deaths and damage for all storms with a max speed greater than the average?", "question_toks": ["What", "is", "the", "total", "number", "of", "deaths", "and", "damage", "for", "all", "storms", "with", "a", "max", "speed", "greater", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2818", "db_id": "news_report", "query": "select avg(t1.age) , avg(years_working) , t2.work_type from journalist as t1 join news_report as t2 on t1.journalist_id = t2.journalist_id group by t2.work_type", "query_toks": ["SELECT", "avg", "(", "t1.age", ")", ",", "avg", "(", "Years_working", ")", ",", "t2.work_type", "FROM", "journalist", "AS", "t1", "JOIN", "news_report", "AS", "t2", "ON", "t1.journalist_id", "=", "t2.journalist_id", "GROUP", "BY", "t2.work_type"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", ",", "avg", "(", "years_working", ")", ",", "t2", ".", "work_type", "from", "journalist", "as", "t1", "join", "news_report", "as", "t2", "on", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "group", "by", "t2", ".", "work_type"], "question": "Find the average age and experience working length of journalists working on different role type.", "question_toks": ["Find", "the", "average", "age", "and", "experience", "working", "length", "of", "journalists", "working", "on", "different", "role", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3597", "db_id": "music_1", "query": "select avg(rating) , avg(resolution) from song where languages = \"bangla\"", "query_toks": ["SELECT", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "bangla", "''"], "query_toks_no_value": ["select", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value"], "question": "What are the average rating and resolution of songs that are in Bangla?", "question_toks": ["What", "are", "the", "average", "rating", "and", "resolution", "of", "songs", "that", "are", "in", "Bangla", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 18, false], null]], [5, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"bangla\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3598", "db_id": "music_1", "query": "select avg(rating) , avg(resolution) from song where languages = \"bangla\"", "query_toks": ["SELECT", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "bangla", "''"], "query_toks_no_value": ["select", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value"], "question": "What is the average rating and resolution of all bangla songs?", "question_toks": ["What", "is", "the", "average", "rating", "and", "resolution", "of", "all", "bangla", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 18, false], null]], [5, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"bangla\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3601", "db_id": "music_1", "query": "select max(t1.duration) , max(t2.resolution) , t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages", "query_toks": ["SELECT", "max", "(", "T1.duration", ")", ",", "max", "(", "T2.resolution", ")", ",", "T2.languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.languages", "ORDER", "BY", "T2.languages"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "duration", ")", ",", "max", "(", "t2", ".", "resolution", ")", ",", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages"], "question": "What are the maximum duration and resolution of songs grouped and ordered by languages?", "question_toks": ["What", "are", "the", "maximum", "duration", "and", "resolution", "of", "songs", "grouped", "and", "ordered", "by", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 11, false], null]], [1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3602", "db_id": "music_1", "query": "select max(t1.duration) , max(t2.resolution) , t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages", "query_toks": ["SELECT", "max", "(", "T1.duration", ")", ",", "max", "(", "T2.resolution", ")", ",", "T2.languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.languages", "ORDER", "BY", "T2.languages"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "duration", ")", ",", "max", "(", "t2", ".", "resolution", ")", ",", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages"], "question": "What are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language?", "question_toks": ["What", "are", "the", "maximum", "duration", "and", "resolution", "of", "all", "songs", ",", "for", "each", "language", ",", "ordered", "alphabetically", "by", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 11, false], null]], [1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4773", "db_id": "department_store", "query": "select avg(total_amount_purchased) , avg(total_value_purchased) from product_suppliers where supplier_id = (select supplier_id from product_suppliers group by supplier_id order by count(*) desc limit 1)", "query_toks": ["SELECT", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "(", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "(", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What are the average amount purchased and value purchased for the supplier who supplies the most products.", "question_toks": ["What", "are", "the", "average", "amount", "purchased", "and", "value", "purchased", "for", "the", "supplier", "who", "supplies", "the", "most", "products", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[5, [0, [0, 50, false], null]], [5, [0, [0, 51, false], null]]]], "where": [[false, 2, [0, [0, 47, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]]]], "where": [], "groupBy": [[0, 47, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4774", "db_id": "department_store", "query": "select avg(total_amount_purchased) , avg(total_value_purchased) from product_suppliers where supplier_id = (select supplier_id from product_suppliers group by supplier_id order by count(*) desc limit 1)", "query_toks": ["SELECT", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "(", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "(", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "Return the average total amount purchased and total value purchased for the supplier who supplies the greatest number of products.", "question_toks": ["Return", "the", "average", "total", "amount", "purchased", "and", "total", "value", "purchased", "for", "the", "supplier", "who", "supplies", "the", "greatest", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[5, [0, [0, 50, false], null]], [5, [0, [0, 51, false], null]]]], "where": [[false, 2, [0, [0, 47, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]]]], "where": [], "groupBy": [[0, 47, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5700", "db_id": "dorm_1", "query": "select count(distinct major) , count(distinct city_code) from student", "query_toks": ["SELECT", "count", "(", "DISTINCT", "major", ")", ",", "count", "(", "DISTINCT", "city_code", ")", "FROM", "student"], "query_toks_no_value": ["select", "count", "(", "distinct", "major", ")", ",", "count", "(", "distinct", "city_code", ")", "from", "student"], "question": "Find the numbers of different majors and cities.", "question_toks": ["Find", "the", "numbers", "of", "different", "majors", "and", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]], [3, [0, [0, 8, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6030", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.Fname", "=", "``", "David", "''", "AND", "T2.Lname", "=", "``", "Shieber", "''"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value"], "question": "What is the total number of hours per work and number of games played by David Shieber?", "question_toks": ["What", "is", "the", "total", "number", "of", "hours", "per", "work", "and", "number", "of", "games", "played", "by", "David", "Shieber", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"David\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6032", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.age", "<", "20"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "value"], "question": "What is the total number of hours per week and number of games played by students under 20?", "question_toks": ["What", "is", "the", "total", "number", "of", "hours", "per", "week", "and", "number", "of", "games", "played", "by", "students", "under", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6571", "db_id": "wine_1", "query": "select avg(price) , avg(cases) from wine where year = 2009 and grape = \"zinfandel\"", "query_toks": ["SELECT", "AVG", "(", "Price", ")", ",", "AVG", "(", "Cases", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2009", "AND", "Grape", "=", "``", "Zinfandel", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", ",", "avg", "(", "cases", ")", "from", "wine", "where", "year", "=", "value", "and", "grape", "=", "value"], "question": "What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?", "question_toks": ["What", "are", "the", "average", "prices", "and", "cases", "of", "wines", "produced", "in", "the", "year", "of", "2009", "and", "made", "of", "Zinfandel", "grape", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2009.0, null], "and", [false, 2, [0, [0, 11, false], null], "\"Zinfandel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6572", "db_id": "wine_1", "query": "select avg(price) , avg(cases) from wine where year = 2009 and grape = \"zinfandel\"", "query_toks": ["SELECT", "AVG", "(", "Price", ")", ",", "AVG", "(", "Cases", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2009", "AND", "Grape", "=", "``", "Zinfandel", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", ",", "avg", "(", "cases", ")", "from", "wine", "where", "year", "=", "value", "and", "grape", "=", "value"], "question": "Give the average price and case of wines made from Zinfandel grapes in the year 2009.", "question_toks": ["Give", "the", "average", "price", "and", "case", "of", "wines", "made", "from", "Zinfandel", "grapes", "in", "the", "year", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2009.0, null], "and", [false, 2, [0, [0, 11, false], null], "\"Zinfandel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6573", "db_id": "wine_1", "query": "select max(price) , max(score) from wine where appelation = \"st. helena\"", "query_toks": ["SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "``", "St.", "Helena", "''"], "query_toks_no_value": ["select", "max", "(", "price", ")", ",", "max", "(", "score", ")", "from", "wine", "where", "appelation", "=", "value"], "question": "What are the maximum price and score of wines produced by St. Helena appelation?", "question_toks": ["What", "are", "the", "maximum", "price", "and", "score", "of", "wines", "produced", "by", "St.", "Helena", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"St. Helena\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6574", "db_id": "wine_1", "query": "select max(price) , max(score) from wine where appelation = \"st. helena\"", "query_toks": ["SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "``", "St.", "Helena", "''"], "query_toks_no_value": ["select", "max", "(", "price", ")", ",", "max", "(", "score", ")", "from", "wine", "where", "appelation", "=", "value"], "question": "Give the maximum price and score for wines produced in the appelation St. Helena.", "question_toks": ["Give", "the", "maximum", "price", "and", "score", "for", "wines", "produced", "in", "the", "appelation", "St.", "Helena", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"St. Helena\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6575", "db_id": "wine_1", "query": "select max(price) , max(score) , year from wine group by year", "query_toks": ["SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["select", "max", "(", "price", ")", ",", "max", "(", "score", ")", ",", "year", "from", "wine", "group", "by", "year"], "question": "What are the maximum price and score of wines in each year?", "question_toks": ["What", "are", "the", "maximum", "price", "and", "score", "of", "wines", "in", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [1, [0, [0, 18, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6576", "db_id": "wine_1", "query": "select max(price) , max(score) , year from wine group by year", "query_toks": ["SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["select", "max", "(", "price", ")", ",", "max", "(", "score", ")", ",", "year", "from", "wine", "group", "by", "year"], "question": "What are the maximum price and score of wines for each year?", "question_toks": ["What", "are", "the", "maximum", "price", "and", "score", "of", "wines", "for", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [1, [0, [0, 18, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6577", "db_id": "wine_1", "query": "select avg(price) , avg(score) , appelation from wine group by appelation", "query_toks": ["SELECT", "avg", "(", "Price", ")", ",", "avg", "(", "Score", ")", ",", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation"], "query_toks_no_value": ["select", "avg", "(", "price", ")", ",", "avg", "(", "score", ")", ",", "appelation", "from", "wine", "group", "by", "appelation"], "question": "What are the average price and score of wines grouped by appelation?", "question_toks": ["What", "are", "the", "average", "price", "and", "score", "of", "wines", "grouped", "by", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [5, [0, [0, 18, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6578", "db_id": "wine_1", "query": "select avg(price) , avg(score) , appelation from wine group by appelation", "query_toks": ["SELECT", "avg", "(", "Price", ")", ",", "avg", "(", "Score", ")", ",", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation"], "query_toks_no_value": ["select", "avg", "(", "price", ")", ",", "avg", "(", "score", ")", ",", "appelation", "from", "wine", "group", "by", "appelation"], "question": "What are the average price and score of wines for each appelation?", "question_toks": ["What", "are", "the", "average", "price", "and", "score", "of", "wines", "for", "each", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [5, [0, [0, 18, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6605", "db_id": "train_station", "query": "select location , sum(number_of_platforms) , sum(total_passengers) from station group by location", "query_toks": ["SELECT", "LOCATION", ",", "sum", "(", "number_of_platforms", ")", ",", "sum", "(", "total_passengers", ")", "FROM", "station", "GROUP", "BY", "LOCATION"], "query_toks_no_value": ["select", "location", ",", "sum", "(", "number_of_platforms", ")", ",", "sum", "(", "total_passengers", ")", "from", "station", "group", "by", "location"], "question": "Show all locations and the total number of platforms and passengers for all train stations in each location.", "question_toks": ["Show", "all", "locations", "and", "the", "total", "number", "of", "platforms", "and", "passengers", "for", "all", "train", "stations", "in", "each", "location", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [4, [0, [0, 8, false], null]], [4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2466", "db_id": "movie_1", "query": "select max(t1.stars) , t2.year from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["SELECT", "max", "(", "T1.stars", ")", ",", "T2.year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the maximum stars and year for the most recent movie?", "question_toks": ["What", "is", "the", "maximum", "stars", "and", "year", "for", "the", "most", "recent", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0008", "db_id": "coffee_shop", "query": "select avg(num_of_staff) , avg(score) from shop", "query_toks": ["SELECT", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "FROM", "shop"], "question": "What are the average score and staff number of all shops?", "question_toks": ["What", "are", "the", "average", "score", "and", "staff", "number", "of", "all", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0009", "db_id": "coffee_shop", "query": "select avg(num_of_staff) , avg(score) from shop", "query_toks": ["SELECT", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "FROM", "shop"], "query_toks_no_value": ["SELECT", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "FROM", "shop"], "question": "What are the average score and staff number of all shops?", "question_toks": ["What", "are", "the", "average", "score", "and", "staff", "number", "of", "all", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0010", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "query_toks_no_value": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "question": "Return the maximum support rate, minimum consider rate and oppose rate across all candidates?", "question_toks": ["Return", "the", "maximum", "support", "rate", ",", "minimum", "consider", "rate", "and", "oppose", "rate", "across", "all", "candidates", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0011", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "(", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "query_toks_no_value": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "value", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "question": "Return the total number of deaths and damange in millions for storms that had a max speed greater than the average.", "question_toks": ["Return", "the", "total", "number", "of", "deaths", "and", "damange", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "greater", "than", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0012", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["SELECT", "min", "(", "T1", ".", "duration", ")", ",", "min", "(", "T2", ".", "rating", ")", ",", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "query_toks_no_value": ["SELECT", "min", "(", "T1", ".", "duration", ")", ",", "min", "(", "T2", ".", "rating", ")", ",", "T2", ".", "genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1", ".", "f_id", "=", "T2", ".", "f_id", "GROUP", "BY", "T2", ".", "genre_is", "ORDER", "BY", "T2", ".", "genre_is"], "question": "What are the minimal duration and rating of songs grouped by genre and ordered by genre?", "question_toks": ["What", "are", "the", "minimal", "duration", "and", "rating", "of", "songs", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0020", "db_id": "news_report", "query": "select avg(t1.age) , avg(years_working) , t2.work_type from journalist as t1 join news_report as t2 on t1.journalist_id = t2.journalist_id group by t2.work_type", "query_toks": ["SELECT", "avg", "(", "t1", ".", "age", ")", ",", "avg", "(", "Years_working", ")", ",", "t2", ".", "work_type", "FROM", "journalist", "AS", "t1", "JOIN", "news_report", "AS", "t2", "ON", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "GROUP", "BY", "t2", ".", "work_type"], "query_toks_no_value": ["SELECT", "avg", "(", "t1", ".", "age", ")", ",", "avg", "(", "Years_working", ")", ",", "t2", ".", "work_type", "FROM", "journalist", "AS", "t1", "JOIN", "news_report", "AS", "t2", "ON", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "GROUP", "BY", "t2", ".", "work_type"], "question": "What are the average age and experience working length of journalists working on different role type.", "question_toks": ["What", "are", "the", "average", "age", "and", "experience", "working", "length", "of", "journalists", "working", "on", "different", "role", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2136", "db_id": "company_1", "query": "select count(*) , sex from employee where salary < 50000 group by sex", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "employee", "WHERE", "salary", "<", "50000", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "sex", "from", "employee", "where", "salary", "<", "value", "group", "by", "sex"], "question": "Find the number of employees of each gender whose salary is lower than 50000.", "question_toks": ["Find", "the", "number", "of", "employees", "of", "each", "gender", "whose", "salary", "is", "lower", "than", "50000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 11, false], null], 50000.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2170", "db_id": "formula_1", "query": "select t1.driverid , t1.forename , t1.surname from drivers as t1 join laptimes as t2 on t1.driverid = t2.driverid where position = '1' group by t1.driverid having count(*) >= 2", "query_toks": ["SELECT", "T1.driverid", ",", "T1.forename", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "POSITION", "=", "'1", "'", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "driverid", ",", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "position", "=", "value", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What is the id, first name, and last name of the driver who was in the first position for laptime at least twice?", "question_toks": ["What", "is", "the", "id", ",", "first", "name", ",", "and", "last", "name", "of", "the", "driver", "who", "was", "in", "the", "first", "position", "for", "laptime", "at", "least", "twice", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 90, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 92, false], null], "\"1\"", null]], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2200", "db_id": "formula_1", "query": "select distinct forename from drivers order by forename asc", "query_toks": ["SELECT", "DISTINCT", "forename", "FROM", "drivers", "ORDER", "BY", "forename", "ASC"], "query_toks_no_value": ["select", "distinct", "forename", "from", "drivers", "order", "by", "forename", "asc"], "question": "What are the first names of all the different drivers in alphabetical order?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "the", "different", "drivers", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2950", "db_id": "sakila_1", "query": "select t2.title , t2.film_id , t2.description from film_actor as t1 join film as t2 on t1.film_id = t2.film_id group by t2.film_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2.title", ",", "T2.film_id", ",", "T2.description", "FROM", "film_actor", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T2.film_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t2", ".", "film_id", ",", "t2", ".", "description", "from", "film_actor", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t2", ".", "film_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which film has the most number of actors or actresses? List the film name, film id and description.", "question_toks": ["Which", "film", "has", "the", "most", "number", "of", "actors", "or", "actresses", "?", "List", "the", "film", "name", ",", "film", "id", "and", "description", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 32, false], null]], [0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_REFORMULATION_SYNONYM", "SYNONYMS", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2953", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name , t2.actor_id from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2.first_name", ",", "T2.last_name", ",", "T2.actor_id", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "t2", ".", "actor_id", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the full name and id of the actor or actress who starred in the greatest number of films.", "question_toks": ["Return", "the", "full", "name", "and", "id", "of", "the", "actor", "or", "actress", "who", "starred", "in", "the", "greatest", "number", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_REFORMULATION_SYNONYM", "SYNONYMS", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6805", "db_id": "flight_4", "query": "select name , city , country , elevation from airports where city = 'new york'", "query_toks": ["SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "'New", "York", "'"], "query_toks_no_value": ["select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "value"], "question": "Find the name, city, country, and altitude (or elevation) of the airports in the city of New York.", "question_toks": ["Find", "the", "name", ",", "city", ",", "country", ",", "and", "altitude", "(", "or", "elevation", ")", "of", "the", "airports", "in", "the", "city", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"New York\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_REFORMULATION_SYNONYM", "SYNONYMS", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1209", "db_id": "apartment_rentals", "query": "select avg(bedroom_count) from apartments", "query_toks": ["SELECT", "avg", "(", "bedroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["select", "avg", "(", "bedroom_count", ")", "from", "apartments"], "question": "Find the average number of bedrooms of all the apartments.", "question_toks": ["Find", "the", "average", "number", "of", "bedrooms", "of", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1945", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "film"], "question": "Show the title and director for all films.", "question_toks": ["Show", "the", "title", "and", "director", "for", "all", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1946", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "film"], "question": "What are the title and director of each film?", "question_toks": ["What", "are", "the", "title", "and", "director", "of", "each", "film", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1947", "db_id": "cinema", "query": "select distinct directed_by from film", "query_toks": ["SELECT", "DISTINCT", "directed_by", "FROM", "film"], "query_toks_no_value": ["select", "distinct", "directed_by", "from", "film"], "question": "Show all directors.", "question_toks": ["Show", "all", "directors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0641", "db_id": "store_1", "query": "select unit_price from tracks where name = \"fast as a shark\";", "query_toks": ["SELECT", "unit_price", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";"], "query_toks_no_value": ["select", "unit_price", "from", "tracks", "where", "name", "=", "value"], "question": "How much is the track Fast As a Shark?", "question_toks": ["How", "much", "is", "the", "track", "Fast", "As", "a", "Shark", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [[false, 2, [0, [0, 50, false], null], "\"Fast As a Shark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2184", "db_id": "formula_1", "query": "select distinct t1.forename from drivers as t1 join driverstandings as t2 on t1.driverid = t2.driverid where t2.position = 1 and t2.wins = 1", "query_toks": ["SELECT", "DISTINCT", "T1.forename", "FROM", "drivers", "AS", "T1", "JOIN", "driverstandings", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.position", "=", "1", "AND", "T2.wins", "=", "1"], "query_toks_no_value": ["select", "distinct", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "driverstandings", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "position", "=", "value", "and", "t2", ".", "wins", "=", "value"], "question": "What are all the different first names of the drivers who are in position as standing and won?", "question_toks": ["What", "are", "all", "the", "different", "first", "names", "of", "the", "drivers", "who", "are", "in", "position", "as", "standing", "and", "won", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 63, false], null]]}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 65, false], null], 1.0, null], "and", [false, 2, [0, [0, 67, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0004", "db_id": "department_management", "query": "select avg(num_employees) from department where ranking between 10 and 15", "query_toks": ["SELECT", "avg", "(", "num_employees", ")", "FROM", "department", "WHERE", "ranking", "BETWEEN", "10", "AND", "15"], "query_toks_no_value": ["select", "avg", "(", "num_employees", ")", "from", "department", "where", "ranking", "between", "value", "and", "value"], "question": "What is the average number of employees of the departments whose rank is between 10 and 15?", "question_toks": ["What", "is", "the", "average", "number", "of", "employees", "of", "the", "departments", "whose", "rank", "is", "between", "10", "and", "15", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 10.0, 15.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0111", "db_id": "bike_1", "query": "select name from station where lat < 37.5", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "37.5"], "query_toks_no_value": ["select", "name", "from", "station", "where", "lat", "<", "value"], "question": "What are the names of stations that have latitude lower than 37.5?", "question_toks": ["What", "are", "the", "names", "of", "stations", "that", "have", "latitude", "lower", "than", "37.5", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 37.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0112", "db_id": "bike_1", "query": "select name from station where lat < 37.5", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "37.5"], "query_toks_no_value": ["select", "name", "from", "station", "where", "lat", "<", "value"], "question": "What are the names of all stations with a latitude smaller than 37.5?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "with", "a", "latitude", "smaller", "than", "37.5", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 37.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0365", "db_id": "flight_1", "query": "select eid from employee where salary > 100000", "query_toks": ["SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "100000"], "query_toks_no_value": ["select", "eid", "from", "employee", "where", "salary", ">", "value"], "question": "Show ids for all employees with at least 100000 salary.", "question_toks": ["Show", "ids", "for", "all", "employees", "with", "at", "least", "100000", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 100000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "SYNONYMS", "_REFORMULATION_ABBREVIATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0366", "db_id": "flight_1", "query": "select eid from employee where salary > 100000", "query_toks": ["SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "100000"], "query_toks_no_value": ["select", "eid", "from", "employee", "where", "salary", ">", "value"], "question": "What is the id of every employee who has at least a salary of 100000?", "question_toks": ["What", "is", "the", "id", "of", "every", "employee", "who", "has", "at", "least", "a", "salary", "of", "100000", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 100000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0383", "db_id": "flight_1", "query": "select flno , origin , destination from flight order by origin", "query_toks": ["SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin"], "query_toks_no_value": ["select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin"], "question": "Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.", "question_toks": ["Show", "flight", "number", ",", "origin", ",", "destination", "of", "all", "flights", "in", "the", "alphabetical", "order", "of", "the", "departure", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0384", "db_id": "flight_1", "query": "select flno , origin , destination from flight order by origin", "query_toks": ["SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin"], "query_toks_no_value": ["select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin"], "question": "What is the flight number, origin, and destination for all flights in alphabetical order by departure cities?", "question_toks": ["What", "is", "the", "flight", "number", ",", "origin", ",", "and", "destination", "for", "all", "flights", "in", "alphabetical", "order", "by", "departure", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0385", "db_id": "flight_1", "query": "select flno from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "flno", "from", "flight", "where", "origin", "=", "value"], "question": "Show all flight number from Los Angeles.", "question_toks": ["Show", "all", "flight", "number", "from", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0386", "db_id": "flight_1", "query": "select flno from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "flno", "from", "flight", "where", "origin", "=", "value"], "question": "What are the numbers of all flights coming from Los Angeles?", "question_toks": ["What", "are", "the", "numbers", "of", "all", "flights", "coming", "from", "Los", "Angeles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0391", "db_id": "flight_1", "query": "select flno from flight where distance > 2000", "query_toks": ["SELECT", "flno", "FROM", "Flight", "WHERE", "distance", ">", "2000"], "query_toks_no_value": ["select", "flno", "from", "flight", "where", "distance", ">", "value"], "question": "Show flight number for all flights with more than 2000 distance.", "question_toks": ["Show", "flight", "number", "for", "all", "flights", "with", "more", "than", "2000", "distance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0411", "db_id": "flight_1", "query": "select t2.name from flight as t1 join aircraft as t2 on t1.aid = t2.aid where t1.flno = 99", "query_toks": ["SELECT", "T2.name", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "WHERE", "T1.flno", "=", "99"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "flno", "=", "value"], "question": "What is the aircraft name for the flight with number 99", "question_toks": ["What", "is", "the", "aircraft", "name", "for", "the", "flight", "with", "number", "99"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], 99.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0419", "db_id": "flight_1", "query": "select count(distinct eid) from certificate", "query_toks": ["SELECT", "count", "(", "DISTINCT", "eid", ")", "FROM", "Certificate"], "query_toks_no_value": ["select", "count", "(", "distinct", "eid", ")", "from", "certificate"], "question": "How many employees have certificate.", "question_toks": ["How", "many", "employees", "have", "certificate", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 15, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0461", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "Student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "Show first name and last name for all students.", "question_toks": ["Show", "first", "name", "and", "last", "name", "for", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0462", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "Student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "What are the full names of all students", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0939", "db_id": "medicine_enzyme_interaction", "query": "select max(omim) from enzyme", "query_toks": ["SELECT", "max", "(", "OMIM", ")", "FROM", "enzyme"], "query_toks_no_value": ["select", "max", "(", "omim", ")", "from", "enzyme"], "question": "What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?", "question_toks": ["What", "is", "the", "maximum", "Online", "Mendelian", "Inheritance", "in", "Man", "(", "OMIM", ")", "value", "of", "the", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1342", "db_id": "college_2", "query": "select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2", "query_toks": ["SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", "=", "value"], "question": "Find the title of courses that have two prerequisites?", "question_toks": ["Find", "the", "title", "of", "courses", "that", "have", "two", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1343", "db_id": "college_2", "query": "select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2", "query_toks": ["SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the titles for courses with two prerequisites?", "question_toks": ["What", "are", "the", "titles", "for", "courses", "with", "two", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1344", "db_id": "college_2", "query": "select t1.title , t1.credits , t1.dept_name from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) > 1", "query_toks": ["SELECT", "T1.title", ",", "T1.credits", ",", "T1.dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the title, credit, and department name of courses that have more than one prerequisites?", "question_toks": ["Find", "the", "title", ",", "credit", ",", "and", "department", "name", "of", "courses", "that", "have", "more", "than", "one", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1345", "db_id": "college_2", "query": "select t1.title , t1.credits , t1.dept_name from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) > 1", "query_toks": ["SELECT", "T1.title", ",", "T1.credits", ",", "T1.dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the title, credit value, and department name for courses with more than one prerequisite?", "question_toks": ["What", "is", "the", "title", ",", "credit", "value", ",", "and", "department", "name", "for", "courses", "with", "more", "than", "one", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1346", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "How many courses that do not have prerequisite?", "question_toks": ["How", "many", "courses", "that", "do", "not", "have", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1420", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "Find the name of the courses that do not have any prerequisite?", "question_toks": ["Find", "the", "name", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_REFORMULATION_SYNONYM", "SYNONYMS", "NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1986", "db_id": "phone_market", "query": "select carrier from phone where memory_in_g < 32 intersect select carrier from phone where memory_in_g > 64", "query_toks": ["SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", "<", "32", "INTERSECT", "SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", ">", "64"], "query_toks_no_value": ["select", "carrier", "from", "phone", "where", "memory_in_g", "<", "value", "intersect", "select", "carrier", "from", "phone", "where", "memory_in_g", ">", "value"], "question": "Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.", "question_toks": ["Show", "the", "carriers", "that", "have", "both", "phones", "with", "memory", "smaller", "than", "32", "and", "phones", "with", "memory", "bigger", "than", "64", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 64.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6827", "db_id": "flight_4", "query": "select count(*) from airports as t1 join routes as t2 on t1.apid = t2.dst_apid where country = 'canada'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "country", "=", "'Canada", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "country", "=", "value"], "question": "Find the number of routes whose destination airports are in Canada.", "question_toks": ["Find", "the", "number", "of", "routes", "whose", "destination", "airports", "are", "in", "Canada", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6833", "db_id": "flight_4", "query": "select t1.name , t1.city , t2.dst_apid from airports as t1 join routes as t2 on t1.apid = t2.dst_apid group by t2.dst_apid order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", ",", "T1.city", ",", "T2.dst_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "GROUP", "BY", "T2.dst_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "dst_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "group", "by", "t2", ".", "dst_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the name and city of the airport which is the destination of the most number of routes.", "question_toks": ["Find", "the", "name", "and", "city", "of", "the", "airport", "which", "is", "the", "destination", "of", "the", "most", "number", "of", "routes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0258", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", "query_toks": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")"], "query_toks_no_value": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")"], "question": "Which airports do not have departing or arriving flights?", "question_toks": ["Which", "airports", "do", "not", "have", "departing", "or", "arriving", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "_REFORMULATION_SYNONYM", "SYNONYMS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0275", "db_id": "employee_hire_evaluation", "query": "select name from shop where number_products > (select avg(number_products) from shop)", "query_toks": ["SELECT", "name", "FROM", "shop", "WHERE", "number_products", ">", "(", "SELECT", "avg", "(", "number_products", ")", "FROM", "shop", ")"], "query_toks_no_value": ["select", "name", "from", "shop", "where", "number_products", ">", "(", "select", "avg", "(", "number_products", ")", "from", "shop", ")"], "question": "Find the names of stores whose number products is more than the average number of products.", "question_toks": ["Find", "the", "names", "of", "stores", "whose", "number", "products", "is", "more", "than", "the", "average", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_REFORMULATION_SYNONYM", "SYNONYMS", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0496", "db_id": "battle_death", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["select", "t1", ".", "killed", ",", "t1", ".", "injured", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "where", "t2", ".", "tonnage", "=", "value"], "question": "What are the death and injury situations caused by the ship with tonnage 't'?", "question_toks": ["What", "are", "the", "death", "and", "injury", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'t", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "DEJOIN_TOTAL", "AND_WITH_OR_IN_NL", "_REFORMULATION_SYNONYM", "SYNONYMS", "_AND_WITH_OR_COLUMN_REMOVED", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0712", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "order", "by", "percentage", "desc", "limit", "value"], "question": "Which language is the most popular in Aruba?", "question_toks": ["Which", "language", "is", "the", "most", "popular", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Aruba\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0713", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "order", "by", "percentage", "desc", "limit", "value"], "question": "What language is predominantly spoken in Aruba?", "question_toks": ["What", "language", "is", "predominantly", "spoken", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Aruba\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0742", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which continent has the most diverse languages?", "question_toks": ["Which", "continent", "has", "the", "most", "diverse", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0016", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\";", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''", ";"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value"], "question": "what is the size of new mexico", "question_toks": ["what", "is", "the", "size", "of", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0140", "db_id": "geo", "query": "select population from city where city_name = \"boulder\";", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "city_name", "=", "``", "boulder", "''", ";"], "query_toks_no_value": ["select", "population", "from", "city", "where", "city_name", "=", "value"], "question": "people in boulder", "question_toks": ["people", "in", "boulder"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"boulder\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1431", "db_id": "imdb", "query": "select title from movie where release_year = 2015;", "query_toks": ["SELECT", "title", "FROM", "movie", "WHERE", "release_year", "=", "2015", ";"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "release_year", "=", "value"], "question": "Find all movies produced in 2015", "question_toks": ["Find", "all", "movies", "produced", "in", "2015"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 44, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0012", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\";", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''", ";"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value"], "question": "how big is new mexico", "question_toks": ["how", "big", "is", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0014", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\";", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''", ";"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value"], "question": "how large is new mexico", "question_toks": ["how", "large", "is", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0026", "db_id": "geo", "query": "select population from state where state_name = \"california\";", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "``", "california", "''", ";"], "query_toks_no_value": ["select", "population", "from", "state", "where", "state_name", "=", "value"], "question": "how many people are there in california", "question_toks": ["how", "many", "people", "are", "there", "in", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0027", "db_id": "geo", "query": "select population from state where state_name = \"california\";", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "``", "california", "''", ";"], "query_toks_no_value": ["select", "population", "from", "state", "where", "state_name", "=", "value"], "question": "how many citizens in california", "question_toks": ["how", "many", "citizens", "in", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0067", "db_id": "geo", "query": "select state_name from state where population = ( select max ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "state", ")"], "question": "what state has the most people", "question_toks": ["what", "state", "has", "the", "most", "people"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0392", "db_id": "course_teach", "query": "select hometown from teacher order by age asc limit 1", "query_toks": ["SELECT", "Hometown", "FROM", "teacher", "ORDER", "BY", "Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "hometown", "from", "teacher", "order", "by", "age", "asc", "limit", "value"], "question": "Where is the youngest teacher from?", "question_toks": ["Where", "is", "the", "youngest", "teacher", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0682", "db_id": "poker_player", "query": "select name from people where nationality != \"russia\"", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "Nationality", "!", "=", "``", "Russia", "''"], "query_toks_no_value": ["select", "name", "from", "people", "where", "nationality", "!", "=", "value"], "question": "What are the names of people who are not from Russia?", "question_toks": ["What", "are", "the", "names", "of", "people", "who", "are", "not", "from", "Russia", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"Russia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0750", "db_id": "world_1", "query": "select count( distinct continent) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"chinese\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Continent", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Chinese", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "continent", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "What is the number of distinct continents where Chinese is spoken?", "question_toks": ["What", "is", "the", "number", "of", "distinct", "continents", "where", "Chinese", "is", "spoken", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Chinese\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0401", "db_id": "flight_1", "query": "select avg(distance) , avg(price) from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value"], "question": "What is the average distance and average price for flights from Los Angeles.", "question_toks": ["What", "is", "the", "average", "distance", "and", "average", "price", "for", "flights", "from", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_synonyms_0054", "db_id": "company_1", "query": "select fname , lname from employee where salary > 30000", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "employee", "WHERE", "salary", ">", "30000"], "query_toks_no_value": ["SELECT", "fname", ",", "lname", "FROM", "employee", "WHERE", "salary", ">", "value"], "question": "Return the first names and last names of employees who earn more than 30000.", "question_toks": ["Return", "the", "first", "names", "and", "last", "names", "of", "employees", "who", "earn", "more", "than", "30000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 30000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0151", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "=", "value", "or", "t4", ".", "weight", ">", "value"], "question": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", "question_toks": ["Which", "distinctive", "models", "are", "produced", "by", "maker", "with", "the", "full", "name", "General", "Motors", "or", "weighing", "more", "than", "3500", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"General Motors\"", null], "or", [false, 3, [0, [0, 21, false], null], 3500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0152", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "=", "value", "or", "t4", ".", "weight", ">", "value"], "question": "What are the different models created by either the car maker General Motors or weighed more than 3500?", "question_toks": ["What", "are", "the", "different", "models", "created", "by", "either", "the", "car", "maker", "General", "Motors", "or", "weighed", "more", "than", "3500", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"General Motors\"", null], "or", [false, 3, [0, [0, 21, false], null], 3500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0169", "db_id": "car_1", "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "query_toks": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "8", "or", "year", "<", "1980"], "query_toks_no_value": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value", "or", "year", "<", "value"], "question": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?", "question_toks": ["What", "is", "the", "maximum", "miles", "per", "gallon", "of", "the", "car", "with", "8", "cylinders", "or", "produced", "before", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "or", [false, 4, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0170", "db_id": "car_1", "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "query_toks": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "8", "or", "year", "<", "1980"], "query_toks_no_value": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value", "or", "year", "<", "value"], "question": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?", "question_toks": ["What", "is", "the", "maximum", "mpg", "of", "the", "cars", "that", "had", "8", "cylinders", "or", "that", "were", "produced", "before", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "or", [false, 4, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0389", "db_id": "course_teach", "query": "select name from teacher where age = 32 or age = 33", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "32", "OR", "Age", "=", "33"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "age", "=", "value", "or", "age", "=", "value"], "question": "Show the name of teachers aged either 32 or 33?", "question_toks": ["Show", "the", "name", "of", "teachers", "aged", "either", "32", "or", "33", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 32.0, null], "or", [false, 2, [0, [0, 6, false], null], 33.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0390", "db_id": "course_teach", "query": "select name from teacher where age = 32 or age = 33", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "32", "OR", "Age", "=", "33"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "age", "=", "value", "or", "age", "=", "value"], "question": "What are the names of the teachers who are aged either 32 or 33?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "who", "are", "aged", "either", "32", "or", "33", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 32.0, null], "or", [false, 2, [0, [0, 6, false], null], 33.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0323", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where template_type_code = \"pp\" or template_type_code = \"ppt\"", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "PP", "''", "OR", "template_type_code", "=", "``", "PPT", "''"], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "template_type_code", "=", "value", "or", "template_type_code", "=", "value"], "question": "What are the ids of templates with template type code PP or PPT?", "question_toks": ["What", "are", "the", "ids", "of", "templates", "with", "template", "type", "code", "PP", "or", "PPT", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"PP\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"PPT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0324", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where template_type_code = \"pp\" or template_type_code = \"ppt\"", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "PP", "''", "OR", "template_type_code", "=", "``", "PPT", "''"], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "template_type_code", "=", "value", "or", "template_type_code", "=", "value"], "question": "Return the ids of templates that have the code PP or PPT.", "question_toks": ["Return", "the", "ids", "of", "templates", "that", "have", "the", "code", "PP", "or", "PPT", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"PP\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"PPT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0962", "db_id": "dog_kennels", "query": "select email_address from professionals where state = 'hawaii' or state = 'wisconsin'", "query_toks": ["SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "'Hawaii", "'", "OR", "state", "=", "'Wisconsin", "'"], "query_toks_no_value": ["select", "email_address", "from", "professionals", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", "question_toks": ["List", "the", "emails", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Hawaii", "or", "the", "state", "of", "Wisconsin", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"Hawaii\"", null], "or", [false, 2, [0, [0, 38, false], null], "\"Wisconsin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0963", "db_id": "dog_kennels", "query": "select email_address from professionals where state = 'hawaii' or state = 'wisconsin'", "query_toks": ["SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "'Hawaii", "'", "OR", "state", "=", "'Wisconsin", "'"], "query_toks_no_value": ["select", "email_address", "from", "professionals", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?", "question_toks": ["What", "are", "the", "emails", "of", "the", "professionals", "living", "in", "either", "the", "state", "of", "Hawaii", "or", "the", "state", "of", "Wisconsin", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"Hawaii\"", null], "or", [false, 2, [0, [0, 38, false], null], "\"Wisconsin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0927", "db_id": "dog_kennels", "query": "select first_name from professionals union select first_name from owners except select name from dogs", "query_toks": ["SELECT", "first_name", "FROM", "Professionals", "UNION", "SELECT", "first_name", "FROM", "Owners", "EXCEPT", "SELECT", "name", "FROM", "Dogs"], "query_toks_no_value": ["select", "first_name", "from", "professionals", "union", "select", "first_name", "from", "owners", "except", "select", "name", "from", "dogs"], "question": "Find the first names that are used for professionals or owners but are not used as dog names.", "question_toks": ["Find", "the", "first", "names", "that", "are", "used", "for", "professionals", "or", "owners", "but", "are", "not", "used", "as", "dog", "names", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0255", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\" or t2.city = \"abilene\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.city", "=", "``", "Aberdeen", "''", "OR", "T2.city", "=", "``", "Abilene", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "or", "t2", ".", "city", "=", "value"], "question": "Find the number of flights landing in the city of Aberdeen or Abilene.", "question_toks": ["Find", "the", "number", "of", "flights", "landing", "in", "the", "city", "of", "Aberdeen", "or", "Abilene", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"Abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0256", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\" or t2.city = \"abilene\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.city", "=", "``", "Aberdeen", "''", "OR", "T2.city", "=", "``", "Abilene", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "or", "t2", ".", "city", "=", "value"], "question": "How many flights land in Aberdeen or Abilene?", "question_toks": ["How", "many", "flights", "land", "in", "Aberdeen", "or", "Abilene", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"Abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0874", "db_id": "network_1", "query": "select count(*) from highschooler where grade = 9 or grade = 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Highschooler", "WHERE", "grade", "=", "9", "OR", "grade", "=", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "highschooler", "where", "grade", "=", "value", "or", "grade", "=", "value"], "question": "How many high schoolers are there in grade 9 or 10?", "question_toks": ["How", "many", "high", "schoolers", "are", "there", "in", "grade", "9", "or", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 9.0, null], "or", [false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0875", "db_id": "network_1", "query": "select count(*) from highschooler where grade = 9 or grade = 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Highschooler", "WHERE", "grade", "=", "9", "OR", "grade", "=", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "highschooler", "where", "grade", "=", "value", "or", "grade", "=", "value"], "question": "Count the number of high schoolers in grades 9 or 10.", "question_toks": ["Count", "the", "number", "of", "high", "schoolers", "in", "grades", "9", "or", "10", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 9.0, null], "or", [false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0858", "db_id": "orchestra", "query": "select count(*) from orchestra where major_record_format = \"cd\" or major_record_format = \"dvd\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "CD", "''", "OR", "Major_Record_Format", "=", "``", "DVD", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "orchestra", "where", "major_record_format", "=", "value", "or", "major_record_format", "=", "value"], "question": "Find the number of orchestras whose record format is \"CD\" or \"DVD\".", "question_toks": ["Find", "the", "number", "of", "orchestras", "whose", "record", "format", "is", "``", "CD", "''", "or", "``", "DVD", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"CD\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"DVD\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0859", "db_id": "orchestra", "query": "select count(*) from orchestra where major_record_format = \"cd\" or major_record_format = \"dvd\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "CD", "''", "OR", "Major_Record_Format", "=", "``", "DVD", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "orchestra", "where", "major_record_format", "=", "value", "or", "major_record_format", "=", "value"], "question": "Count the number of orchestras that have CD or DVD as their record format.", "question_toks": ["Count", "the", "number", "of", "orchestras", "that", "have", "CD", "or", "DVD", "as", "their", "record", "format", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"CD\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"DVD\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1033", "db_id": "real_estate_properties", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "union", "select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "and", "room_count", ">", "value"], "question": "What are the names of properties that are either houses or apartments with more than 1 room?", "question_toks": ["What", "are", "the", "names", "of", "properties", "that", "are", "either", "houses", "or", "apartments", "with", "more", "than", "1", "room", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"House\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Apartment\"", null], "and", [false, 3, [0, [0, 15, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1008", "db_id": "singer", "query": "select name from singer where birth_year = 1948 or birth_year = 1949", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value"], "question": "Show the name of singers whose birth year is either 1948 or 1949?", "question_toks": ["Show", "the", "name", "of", "singers", "whose", "birth", "year", "is", "either", "1948", "or", "1949", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1948.0, null], "or", [false, 2, [0, [0, 3, false], null], 1949.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1009", "db_id": "singer", "query": "select name from singer where birth_year = 1948 or birth_year = 1949", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value"], "question": "What are the names of the singers whose birth years are either 1948 or 1949?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "whose", "birth", "years", "are", "either", "1948", "or", "1949", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1948.0, null], "or", [false, 2, [0, [0, 3, false], null], 1949.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0583", "db_id": "student_transcripts_tracking", "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' or t1.cell_mobile_number = '09700166582'", "query_toks": ["select", "t1.first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1.permanent_address_id", "=", "t2.address_id", "where", "t2.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\""], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value", "or", "t1", ".", "cell_mobile_number", "=", "value"], "question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .", "question_toks": ["Find", "the", "first", "name", "of", "the", "students", "who", "permanently", "live", "in", "the", "country", "Haiti", "or", "have", "the", "cell", "phone", "number", "09700166582", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"haiti\"", null], "or", [false, 2, [0, [0, 38, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0584", "db_id": "student_transcripts_tracking", "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' or t1.cell_mobile_number = '09700166582'", "query_toks": ["select", "t1.first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1.permanent_address_id", "=", "t2.address_id", "where", "t2.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\""], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value", "or", "t1", ".", "cell_mobile_number", "=", "value"], "question": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "students", "who", "live", "in", "Haiti", "permanently", "or", "have", "the", "cell", "phone", "number", "09700166582", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"haiti\"", null], "or", [false, 2, [0, [0, 38, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0593", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\" or directed_by = \"brandon vietti\";", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", "OR", "Directed_by", "=", "``", "Brandon", "Vietti", "''", ";"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value", "or", "directed_by", "=", "value"], "question": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\".", "question_toks": ["List", "the", "title", "of", "all", "cartoon", "directed", "by", "``", "Ben", "Jones", "''", "or", "``", "Brandon", "Vietti", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"Brandon Vietti\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0594", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\" or directed_by = \"brandon vietti\";", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", "OR", "Directed_by", "=", "``", "Brandon", "Vietti", "''", ";"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value", "or", "directed_by", "=", "value"], "question": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?", "question_toks": ["What", "are", "the", "titles", "of", "all", "cartoons", "directed", "by", "Ben", "Jones", "or", "Brandon", "Vietti", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"Brandon Vietti\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0696", "db_id": "voter_1", "query": "select count(*) from votes where state = 'ny' or state = 'ca'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "votes", "WHERE", "state", "=", "'NY", "'", "OR", "state", "=", "'CA", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "votes", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "What are the number of votes from state 'NY' or 'CA'?", "question_toks": ["What", "are", "the", "number", "of", "votes", "from", "state", "'NY", "'", "or", "'CA", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"NY\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"CA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0752", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "or", "t2", ".", "language", "=", "value"], "question": "What are the regions that use English or Dutch?", "question_toks": ["What", "are", "the", "regions", "that", "use", "English", "or", "Dutch", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"Dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0753", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "or", "t2", ".", "language", "=", "value"], "question": "Which regions speak Dutch or English?", "question_toks": ["Which", "regions", "speak", "Dutch", "or", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"Dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0754", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", "query_toks": ["select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"english\"", "and", "isofficial", "=", "\"t\"", "union", "select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"dutch\"", "and", "isofficial", "=", "\"t\""], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where either English or Dutch is the official language ?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL", "_BINARY_POSITIVE_VALUE", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0755", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "Which countries have either English or Dutch as an official language?", "question_toks": ["Which", "countries", "have", "either", "English", "or", "Dutch", "as", "an", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL", "_BINARY_POSITIVE_VALUE", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0449", "db_id": "wta_1", "query": "select count(*) from matches where year = 2013 or year = 2016", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "OR", "YEAR", "=", "2016"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "matches", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "List the number of all matches who played in years of 2013 or 2016.", "question_toks": ["List", "the", "number", "of", "all", "matches", "who", "played", "in", "years", "of", "2013", "or", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null], "or", [false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0450", "db_id": "wta_1", "query": "select count(*) from matches where year = 2013 or year = 2016", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "OR", "YEAR", "=", "2016"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "matches", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "How many matches were played in 2013 or 2016?", "question_toks": ["How", "many", "matches", "were", "played", "in", "2013", "or", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null], "or", [false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6795", "db_id": "activity_1", "query": "select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = 'canoeing' or t3.activity_name = 'kayaking'", "query_toks": ["SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value"], "question": "Find the first names of the faculty members who are playing Canoeing or Kayaking.", "question_toks": ["Find", "the", "first", "names", "of", "the", "faculty", "members", "who", "are", "playing", "Canoeing", "or", "Kayaking", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Canoeing\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6796", "db_id": "activity_1", "query": "select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = 'canoeing' or t3.activity_name = 'kayaking'", "query_toks": ["SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value"], "question": "Which faculty members are playing either Canoeing or Kayaking? Tell me their first names.", "question_toks": ["Which", "faculty", "members", "are", "playing", "either", "Canoeing", "or", "Kayaking", "?", "Tell", "me", "their", "first", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Canoeing\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0481", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"hkg\" or city_code = \"chi\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "city_code", "=", "``", "HKG", "''", "OR", "city_code", "=", "``", "CHI", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "city_code", "=", "value", "or", "city_code", "=", "value"], "question": "How many students live in HKG or CHI?", "question_toks": ["How", "many", "students", "live", "in", "HKG", "or", "CHI", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"HKG\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"CHI\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0482", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"hkg\" or city_code = \"chi\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "city_code", "=", "``", "HKG", "''", "OR", "city_code", "=", "``", "CHI", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "city_code", "=", "value", "or", "city_code", "=", "value"], "question": "Give the number of students living in either HKG or CHI.", "question_toks": ["Give", "the", "number", "of", "students", "living", "in", "either", "HKG", "or", "CHI", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"HKG\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"CHI\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0509", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\" and t1.allergy = \"milk\" or t1.allergy = \"eggs\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value"], "question": "How many female students have milk or egg allergies?", "question_toks": ["How", "many", "female", "students", "have", "milk", "or", "egg", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Eggs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0510", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\" and t1.allergy = \"milk\" or t1.allergy = \"eggs\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value"], "question": "How many students who are female are allergic to milk or eggs?", "question_toks": ["How", "many", "students", "who", "are", "female", "are", "allergic", "to", "milk", "or", "eggs", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Eggs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6952", "db_id": "architecture", "query": "select distinct t1.type from mill as t1 join architect as t2 on t1.architect_id = t2.id where t2.nationality = 'american' or t2.nationality = 'canadian'", "query_toks": ["SELECT", "DISTINCT", "T1.type", "FROM", "mill", "AS", "T1", "JOIN", "architect", "AS", "t2", "ON", "T1.architect_id", "=", "T2.id", "WHERE", "T2.nationality", "=", "'American", "'", "OR", "T2.nationality", "=", "'Canadian", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "type", "from", "mill", "as", "t1", "join", "architect", "as", "t2", "on", "t1", ".", "architect_id", "=", "t2", ".", "id", "where", "t2", ".", "nationality", "=", "value", "or", "t2", ".", "nationality", "=", "value"], "question": "What are the distinct types of mills that are built by American or Canadian architects?", "question_toks": ["What", "are", "the", "distinct", "types", "of", "mills", "that", "are", "built", "by", "American", "or", "Canadian", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"American\"", null], "or", [false, 2, [0, [0, 3, false], null], "\"Canadian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6956", "db_id": "architecture", "query": "select location from bridge where name = 'kolob arch' or name = 'rainbow bridge'", "query_toks": ["SELECT", "LOCATION", "FROM", "bridge", "WHERE", "name", "=", "'Kolob", "Arch", "'", "OR", "name", "=", "'Rainbow", "Bridge", "'"], "query_toks_no_value": ["select", "location", "from", "bridge", "where", "name", "=", "value", "or", "name", "=", "value"], "question": "What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?", "question_toks": ["What", "is", "the", "location", "of", "the", "bridge", "named", "'Kolob", "Arch", "'", "or", "'Rainbow", "Bridge", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Kolob Arch\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"Rainbow Bridge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3129", "db_id": "assets_maintenance", "query": "select t1.company_id , t1.company_name from third_party_companies as t1 join maintenance_engineers as t2 on t1.company_id = t2.company_id group by t1.company_id having count(*) >= 2 union select t3.company_id , t3.company_name from third_party_companies as t3 join maintenance_contracts as t4 on t3.company_id = t4.maintenance_contract_company_id group by t3.company_id having count(*) >= 2", "query_toks": ["SELECT", "T1.company_id", ",", "T1.company_name", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Maintenance_Engineers", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "GROUP", "BY", "T1.company_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "UNION", "SELECT", "T3.company_id", ",", "T3.company_name", "FROM", "Third_Party_Companies", "AS", "T3", "JOIN", "Maintenance_Contracts", "AS", "T4", "ON", "T3.company_id", "=", "T4.maintenance_contract_company_id", "GROUP", "BY", "T3.company_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "company_id", ",", "t1", ".", "company_name", "from", "third_party_companies", "as", "t1", "join", "maintenance_engineers", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "company_id", "having", "count", "(", "*", ")", ">", "=", "value", "union", "select", "t3", ".", "company_id", ",", "t3", ".", "company_name", "from", "third_party_companies", "as", "t3", "join", "maintenance_contracts", "as", "t4", "on", "t3", ".", "company_id", "=", "t4", ".", "maintenance_contract_company_id", "group", "by", "t3", ".", "company_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.", "question_toks": ["Which", "third", "party", "companies", "have", "at", "least", "2", "maintenance", "engineers", "or", "have", "at", "least", "2", "maintenance", "contracts", "?", "List", "the", "company", "id", "and", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2334", "db_id": "csu_1", "query": "select campus from campuses where location = \"northridge\" and county = \"los angeles\" union select campus from campuses where location = \"san francisco\" and county = \"san francisco\"", "query_toks": ["SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "Northridge", "''", "AND", "county", "=", "``", "Los", "Angeles", "''", "UNION", "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "San", "Francisco", "''", "AND", "county", "=", "``", "San", "Francisco", "''"], "query_toks_no_value": ["select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value", "union", "select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value"], "question": "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.", "question_toks": ["Find", "the", "name", "of", "the", "campuses", "that", "is", "in", "Northridge", ",", "Los", "Angeles", "or", "in", "San", "Francisco", ",", "San", "Francisco", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Northridge\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"San Francisco\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2335", "db_id": "csu_1", "query": "select campus from campuses where location = \"northridge\" and county = \"los angeles\" union select campus from campuses where location = \"san francisco\" and county = \"san francisco\"", "query_toks": ["SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "Northridge", "''", "AND", "county", "=", "``", "Los", "Angeles", "''", "UNION", "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "San", "Francisco", "''", "AND", "county", "=", "``", "San", "Francisco", "''"], "query_toks_no_value": ["select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value", "union", "select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value"], "question": "What campuses are located in Northridge, Los Angeles or in San Francisco, San Francisco?", "question_toks": ["What", "campuses", "are", "located", "in", "Northridge", ",", "Los", "Angeles", "or", "in", "San", "Francisco", ",", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Northridge\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"San Francisco\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1496", "db_id": "debate", "query": "select name from people where age = 35 or age = 36", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "Age", "=", "35", "OR", "Age", "=", "36"], "query_toks_no_value": ["select", "name", "from", "people", "where", "age", "=", "value", "or", "age", "=", "value"], "question": "Show the names of people aged either 35 or 36.", "question_toks": ["Show", "the", "names", "of", "people", "aged", "either", "35", "or", "36", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], 35.0, null], "or", [false, 2, [0, [0, 5, false], null], 36.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0653", "db_id": "journal_committee", "query": "select name from editor where age = 24 or age = 25", "query_toks": ["SELECT", "Name", "FROM", "editor", "WHERE", "Age", "=", "24", "OR", "Age", "=", "25"], "query_toks_no_value": ["select", "name", "from", "editor", "where", "age", "=", "value", "or", "age", "=", "value"], "question": "Show the names of editors of age either 24 or 25.", "question_toks": ["Show", "the", "names", "of", "editors", "of", "age", "either", "24", "or", "25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 24.0, null], "or", [false, 2, [0, [0, 7, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3035", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = 'utah' or state = 'texas'", "query_toks": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "'Utah", "'", "OR", "state", "=", "'Texas", "'"], "query_toks_no_value": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "What are the total account balances for each customer from Utah or Texas?", "question_toks": ["What", "are", "the", "total", "account", "balances", "for", "each", "customer", "from", "Utah", "or", "Texas", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Utah\"", null], "or", [false, 2, [0, [0, 13, false], null], "\"Texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3591", "db_id": "music_1", "query": "select song_name from song where genre_is = \"modern\" or languages = \"english\"", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''", "OR", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "genre_is", "=", "value", "or", "languages", "=", "value"], "question": "Find the names of songs whose genre is modern or language is English.", "question_toks": ["Find", "the", "names", "of", "songs", "whose", "genre", "is", "modern", "or", "language", "is", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"modern\"", null], "or", [false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3592", "db_id": "music_1", "query": "select song_name from song where genre_is = \"modern\" or languages = \"english\"", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''", "OR", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "genre_is", "=", "value", "or", "languages", "=", "value"], "question": "What are the names of the songs that are modern or sung in English?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "that", "are", "modern", "or", "sung", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"modern\"", null], "or", [false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3581", "db_id": "music_1", "query": "select f_id from files where formats = \"mp4\" union select f_id from song where resolution > 720", "query_toks": ["SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "``", "mp4", "''", "UNION", "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "720"], "query_toks_no_value": ["select", "f_id", "from", "files", "where", "formats", "=", "value", "union", "select", "f_id", "from", "song", "where", "resolution", ">", "value"], "question": "What are the ids of songs that are available in either mp4 format or have resolution above 720?", "question_toks": ["What", "are", "the", "ids", "of", "songs", "that", "are", "available", "in", "either", "mp4", "format", "or", "have", "resolution", "above", "720", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"mp4\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], 720.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3762", "db_id": "program_share", "query": "select name from channel where owner = 'cctv' or owner = 'hbs'", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'", "OR", "OWNER", "=", "'HBS", "'"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "=", "value", "or", "owner", "=", "value"], "question": "What are the names of the channels owned by CCTV or HBS?", "question_toks": ["What", "are", "the", "names", "of", "the", "channels", "owned", "by", "CCTV", "or", "HBS", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"CCTV\"", null], "or", [false, 2, [0, [0, 8, false], null], "\"HBS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3763", "db_id": "program_share", "query": "select name from channel where owner = 'cctv' or owner = 'hbs'", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'", "OR", "OWNER", "=", "'HBS", "'"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "=", "value", "or", "owner", "=", "value"], "question": "List the names of all the channels owned by either CCTV or HBS", "question_toks": ["List", "the", "names", "of", "all", "the", "channels", "owned", "by", "either", "CCTV", "or", "HBS"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"CCTV\"", null], "or", [false, 2, [0, [0, 8, false], null], "\"HBS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1914", "db_id": "protein_institute", "query": "select count(*) from building where height_feet > (select avg(height_feet) from building) or floors > (select avg(floors) from building)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "building", "WHERE", "height_feet", ">", "(", "SELECT", "avg", "(", "height_feet", ")", "FROM", "building", ")", "OR", "floors", ">", "(", "SELECT", "avg", "(", "floors", ")", "FROM", "building", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "building", "where", "height_feet", ">", "(", "select", "avg", "(", "height_feet", ")", "from", "building", ")", "or", "floors", ">", "(", "select", "avg", "(", "floors", ")", "from", "building", ")"], "question": "Show the number of buildings with a height above the average or a number of floors above the average.", "question_toks": ["Show", "the", "number", "of", "buildings", "with", "a", "height", "above", "the", "average", "or", "a", "number", "of", "floors", "above", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "or", [false, 3, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6772", "db_id": "activity_1", "query": "select facid from faculty except select facid from faculty_participates_in", "query_toks": ["SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "FacID", "FROM", "Faculty_participates_in"], "query_toks_no_value": ["select", "facid", "from", "faculty", "except", "select", "facid", "from", "faculty_participates_in"], "question": "Which faculty do not participate in any activity? Find their faculty ids.", "question_toks": ["Which", "faculty", "do", "not", "participate", "in", "any", "activity", "?", "Find", "their", "faculty", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6763", "db_id": "activity_1", "query": "select facid from faculty except select advisor from student", "query_toks": ["SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "advisor", "FROM", "Student"], "query_toks_no_value": ["select", "facid", "from", "faculty", "except", "select", "advisor", "from", "student"], "question": "Show ids for the faculty members who don't advise any student.", "question_toks": ["Show", "ids", "for", "the", "faculty", "members", "who", "do", "n't", "advise", "any", "student", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6771", "db_id": "activity_1", "query": "select facid from faculty except select facid from faculty_participates_in", "query_toks": ["SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "FacID", "FROM", "Faculty_participates_in"], "query_toks_no_value": ["select", "facid", "from", "faculty", "except", "select", "facid", "from", "faculty_participates_in"], "question": "Show the ids of the faculty who don't participate in any activity.", "question_toks": ["Show", "the", "ids", "of", "the", "faculty", "who", "do", "n't", "participate", "in", "any", "activity", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6787", "db_id": "activity_1", "query": "select stuid from student except select stuid from participates_in", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Participates_in"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "participates_in"], "question": "Show the ids of the students who don't participate in any activity.", "question_toks": ["Show", "the", "ids", "of", "the", "students", "who", "do", "n't", "participate", "in", "any", "activity", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6788", "db_id": "activity_1", "query": "select stuid from student except select stuid from participates_in", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Participates_in"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "participates_in"], "question": "What are the ids of the students who are not involved in any activity", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "who", "are", "not", "involved", "in", "any", "activity"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6764", "db_id": "activity_1", "query": "select facid from faculty except select advisor from student", "query_toks": ["SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "advisor", "FROM", "Student"], "query_toks_no_value": ["select", "facid", "from", "faculty", "except", "select", "advisor", "from", "student"], "question": "What are the ids of the faculty members who do not advise any student.", "question_toks": ["What", "are", "the", "ids", "of", "the", "faculty", "members", "who", "do", "not", "advise", "any", "student", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4831", "db_id": "aircraft", "query": "select aircraft from aircraft where aircraft_id not in (select winning_aircraft from match)", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft", "WHERE", "Aircraft_ID", "NOT", "IN", "(", "SELECT", "Winning_Aircraft", "FROM", "MATCH", ")"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft", "where", "aircraft_id", "not", "in", "(", "select", "winning_aircraft", "from", "match", ")"], "question": "List the names of aircrafts and that did not win any match.", "question_toks": ["List", "the", "names", "of", "aircrafts", "and", "that", "did", "not", "win", "any", "match", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4842", "db_id": "aircraft", "query": "select name from pilot where pilot_id not in (select winning_pilot from match where country = 'australia')", "query_toks": ["SELECT", "name", "FROM", "pilot", "WHERE", "pilot_id", "NOT", "IN", "(", "SELECT", "Winning_Pilot", "FROM", "MATCH", "WHERE", "country", "=", "'Australia", "'", ")"], "query_toks_no_value": ["select", "name", "from", "pilot", "where", "pilot_id", "not", "in", "(", "select", "winning_pilot", "from", "match", "where", "country", "=", "value", ")"], "question": "What are the names of the pilots that have not won any matches in Australia?", "question_toks": ["What", "are", "the", "names", "of", "the", "pilots", "that", "have", "not", "won", "any", "matches", "in", "Australia", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Australia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4832", "db_id": "aircraft", "query": "select aircraft from aircraft where aircraft_id not in (select winning_aircraft from match)", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft", "WHERE", "Aircraft_ID", "NOT", "IN", "(", "SELECT", "Winning_Aircraft", "FROM", "MATCH", ")"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft", "where", "aircraft_id", "not", "in", "(", "select", "winning_aircraft", "from", "match", ")"], "question": "What are the names of all aicrafts that have never won any match?", "question_toks": ["What", "are", "the", "names", "of", "all", "aicrafts", "that", "have", "never", "won", "any", "match", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0507", "db_id": "allergy_1", "query": "select stuid from student except select stuid from has_allergy", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "has_allergy"], "question": "What are the student ids of students who don't have any allergies?", "question_toks": ["What", "are", "the", "student", "ids", "of", "students", "who", "do", "n't", "have", "any", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0527", "db_id": "allergy_1", "query": "select fname , lname from student where stuid not in (select t1.stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")"], "question": "List the first and last name of the students who do not have any food type allergy.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "the", "students", "who", "do", "not", "have", "any", "food", "type", "allergy", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0528", "db_id": "allergy_1", "query": "select fname , lname from student where stuid not in (select t1.stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")"], "question": "What is the full name of each student who is not allergic to any type of food.", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "student", "who", "is", "not", "allergic", "to", "any", "type", "of", "food", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3156", "db_id": "assets_maintenance", "query": "select asset_model from assets where asset_id not in (select asset_id from fault_log)", "query_toks": ["SELECT", "asset_model", "FROM", "Assets", "WHERE", "asset_id", "NOT", "IN", "(", "SELECT", "asset_id", "FROM", "Fault_Log", ")"], "query_toks_no_value": ["select", "asset_model", "from", "assets", "where", "asset_id", "not", "in", "(", "select", "asset_id", "from", "fault_log", ")"], "question": "Which assets did not incur any fault log? List the asset model.", "question_toks": ["Which", "assets", "did", "not", "incur", "any", "fault", "log", "?", "List", "the", "asset", "model", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[true, 8, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3130", "db_id": "assets_maintenance", "query": "select t1.staff_name , t1.staff_id from staff as t1 join fault_log as t2 on t1.staff_id = t2.recorded_by_staff_id except select t3.staff_name , t3.staff_id from staff as t3 join engineer_visits as t4 on t3.staff_id = t4.contact_staff_id", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_id", "FROM", "Staff", "AS", "T1", "JOIN", "Fault_Log", "AS", "T2", "ON", "T1.staff_id", "=", "T2.recorded_by_staff_id", "EXCEPT", "SELECT", "T3.staff_name", ",", "T3.staff_id", "FROM", "Staff", "AS", "T3", "JOIN", "Engineer_Visits", "AS", "T4", "ON", "T3.staff_id", "=", "T4.contact_staff_id"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_id", "from", "staff", "as", "t1", "join", "fault_log", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "recorded_by_staff_id", "except", "select", "t3", ".", "staff_name", ",", "t3", ".", "staff_id", "from", "staff", "as", "t3", "join", "engineer_visits", "as", "t4", "on", "t3", ".", "staff_id", "=", "t4", ".", "contact_staff_id"], "question": "What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?", "question_toks": ["What", "is", "the", "name", "and", "id", "of", "the", "staff", "who", "recorded", "the", "fault", "log", "but", "has", "not", "contacted", "any", "visiting", "engineers", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 48, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3123", "db_id": "behavior_monitoring", "query": "select count(*) from students where student_id not in ( select student_id from behavior_incident )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "STUDENTS", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Behavior_Incident", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "behavior_incident", ")"], "question": "How many students are not involved in any behavior incident?", "question_toks": ["How", "many", "students", "are", "not", "involved", "in", "any", "behavior", "incident", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3124", "db_id": "behavior_monitoring", "query": "select last_name from teachers except select t1.last_name from teachers as t1 join detention as t2 on t1.teacher_id = t2.teacher_id", "query_toks": ["SELECT", "last_name", "FROM", "Teachers", "EXCEPT", "SELECT", "T1.last_name", "FROM", "Teachers", "AS", "T1", "JOIN", "Detention", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id"], "query_toks_no_value": ["select", "last_name", "from", "teachers", "except", "select", "t1", ".", "last_name", "from", "teachers", "as", "t1", "join", "detention", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id"], "question": "Find the last names of teachers who are not involved in any detention.", "question_toks": ["Find", "the", "last", "names", "of", "teachers", "who", "are", "not", "involved", "in", "any", "detention", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 26, false], null], [0, 51, false], null]]}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0152", "db_id": "bike_1", "query": "select avg(long) from station where id not in (select station_id from status group by station_id having max(bikes_available) > 10)", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "10", ")"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "value", ")"], "question": "What is the mean longitude for all stations that have never had more than 10 bikes available?", "question_toks": ["What", "is", "the", "mean", "longitude", "for", "all", "stations", "that", "have", "never", "had", "more", "than", "10", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [1, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0172", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10 except select name from station where city = \"san jose\"", "query_toks": ["SELECT", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value", "except", "select", "name", "from", "station", "where", "city", "=", "value"], "question": "What are the names of all stations that have more than 10 bikes available and are not located in San Jose?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "that", "have", "more", "than", "10", "bikes", "available", "and", "are", "not", "located", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["HIDDEN_AVG", "VALUES_WITHOUT_COLUMNS", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0195", "db_id": "bike_1", "query": "select distinct zip_code from weather except select distinct zip_code from weather where max_dew_point_f >= 70", "query_toks": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "max_dew_point_f", ">", "=", "70"], "query_toks_no_value": ["select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "max_dew_point_f", ">", "=", "value"], "question": "Find all the zip codes in which the max dew point have never reached 70.", "question_toks": ["Find", "all", "the", "zip", "codes", "in", "which", "the", "max", "dew", "point", "have", "never", "reached", "70", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 27, false], null], 70.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "NEGATION_WITH_ANY_ALL", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0887", "db_id": "chinook_1", "query": "select count(*) from artist where artistid not in(select artistid from album)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "ARTIST", "WHERE", "artistid", "NOT", "IN", "(", "SELECT", "artistid", "FROM", "ALBUM", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "artist", "where", "artistid", "not", "in", "(", "select", "artistid", "from", "album", ")"], "question": "How many artists do not have any album?", "question_toks": ["How", "many", "artists", "do", "not", "have", "any", "album", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0877", "db_id": "chinook_1", "query": "select name from artist except select t2.name from album as t1 join artist as t2 on t1.artistid = t2.artistid", "query_toks": ["SELECT", "Name", "FROM", "ARTIST", "EXCEPT", "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId"], "query_toks_no_value": ["select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid"], "question": "Find the names of artists that do not have any albums.", "question_toks": ["Find", "the", "names", "of", "artists", "that", "do", "not", "have", "any", "albums", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0878", "db_id": "chinook_1", "query": "select name from artist except select t2.name from album as t1 join artist as t2 on t1.artistid = t2.artistid", "query_toks": ["SELECT", "Name", "FROM", "ARTIST", "EXCEPT", "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId"], "query_toks_no_value": ["select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid"], "question": "What are the names of artists who have not released any albums?", "question_toks": ["What", "are", "the", "names", "of", "artists", "who", "have", "not", "released", "any", "albums", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0857", "db_id": "chinook_1", "query": "select lastname from customer except select t1.lastname from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t2.total > 20", "query_toks": ["SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T2.total", ">", "20"], "query_toks_no_value": ["select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "total", ">", "value"], "question": "Find all the customer last names that do not have invoice totals larger than 20.", "question_toks": ["Find", "all", "the", "customer", "last", "names", "that", "do", "not", "have", "invoice", "totals", "larger", "than", "20", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 44, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "NEGATION_WITH_ANY_ALL", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1954", "db_id": "cinema", "query": "select title , directed_by from film where film_id not in (select film_id from schedule)", "query_toks": ["SELECT", "title", ",", "directed_by", "FROM", "film", "WHERE", "film_id", "NOT", "IN", "(", "SELECT", "film_id", "FROM", "schedule", ")"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "schedule", ")"], "question": "What are the title and director of the films without any schedule?", "question_toks": ["What", "are", "the", "title", "and", "director", "of", "the", "films", "without", "any", "schedule", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1930", "db_id": "cinema", "query": "select location from cinema except select location from cinema where capacity > 800", "query_toks": ["SELECT", "LOCATION", "FROM", "cinema", "EXCEPT", "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "capacity", ">", "800"], "query_toks_no_value": ["select", "location", "from", "cinema", "except", "select", "location", "from", "cinema", "where", "capacity", ">", "value"], "question": "Show all the locations where no cinema has capacity over 800.", "question_toks": ["Show", "all", "the", "locations", "where", "no", "cinema", "has", "capacity", "over", "800", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 800.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1142", "db_id": "climbing", "query": "select name from mountain where mountain_id not in (select mountain_id from climber)", "query_toks": ["SELECT", "Name", "FROM", "mountain", "WHERE", "Mountain_ID", "NOT", "IN", "(", "SELECT", "Mountain_ID", "FROM", "climber", ")"], "query_toks_no_value": ["select", "name", "from", "mountain", "where", "mountain_id", "not", "in", "(", "select", "mountain_id", "from", "climber", ")"], "question": "List the names of mountains that do not have any climber.", "question_toks": ["List", "the", "names", "of", "mountains", "that", "do", "not", "have", "any", "climber", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0798", "db_id": "coffee_shop", "query": "select address from member except select address from member where membership_card = 'black'", "query_toks": ["SELECT", "address", "FROM", "member", "EXCEPT", "SELECT", "address", "FROM", "member", "WHERE", "Membership_card", "=", "'Black", "'"], "query_toks_no_value": ["select", "address", "from", "member", "except", "select", "address", "from", "member", "where", "membership_card", "=", "value"], "question": "Which address do not have any member with the black membership card?", "question_toks": ["Which", "address", "do", "not", "have", "any", "member", "with", "the", "black", "membership", "card", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Black\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0802", "db_id": "coffee_shop", "query": "select address , num_of_staff from shop where shop_id not in (select shop_id from happy_hour)", "query_toks": ["SELECT", "address", ",", "num_of_staff", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "happy_hour", ")"], "query_toks_no_value": ["select", "address", ",", "num_of_staff", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "happy_hour", ")"], "question": "Find the address and staff number of the shops that do not have any happy hour.", "question_toks": ["Find", "the", "address", "and", "staff", "number", "of", "the", "shops", "that", "do", "not", "have", "any", "happy", "hour", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3274", "db_id": "college_1", "query": "select emp_fname from employee where emp_jobcode = 'prof' except select t1.emp_fname from employee as t1 join class as t2 on t1.emp_num = t2.prof_num", "query_toks": ["SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "'PROF", "'", "EXCEPT", "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num"], "query_toks_no_value": ["select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "value", "except", "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num"], "question": "What are the first names of all professors not teaching any classes?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "professors", "not", "teaching", "any", "classes", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"PROF\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3276", "db_id": "college_1", "query": "select t1.emp_fname from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'history' except select t4.emp_fname from employee as t4 join class as t5 on t4.emp_num = t5.prof_num", "query_toks": ["SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "EXCEPT", "SELECT", "T4.emp_fname", "FROM", "employee", "AS", "T4", "JOIN", "CLASS", "AS", "T5", "ON", "T4.emp_num", "=", "T5.prof_num"], "query_toks_no_value": ["select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "except", "select", "t4", ".", "emp_fname", "from", "employee", "as", "t4", "join", "class", "as", "t5", "on", "t4", ".", "emp_num", "=", "t5", ".", "prof_num"], "question": "What are the first names of all history professors who do not teach?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "history", "professors", "who", "do", "not", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"History\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1452", "db_id": "college_2", "query": "select name from student where id not in (select t1.id from takes as t1 join course as t2 on t1.course_id = t2.course_id where t2.dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "student", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.id", "FROM", "takes", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "student", "where", "id", "not", "in", "(", "select", "t1", ".", "id", "from", "takes", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "dept_name", "=", "value", ")"], "question": "Find the name of students who didn't take any course from Biology department.", "question_toks": ["Find", "the", "name", "of", "students", "who", "did", "n't", "take", "any", "course", "from", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[true, 8, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1418", "db_id": "college_2", "query": "select course_id from course except select course_id from prereq", "query_toks": ["SELECT", "course_id", "FROM", "course", "EXCEPT", "SELECT", "course_id", "FROM", "prereq"], "query_toks_no_value": ["select", "course_id", "from", "course", "except", "select", "course_id", "from", "prereq"], "question": "Find the id of the courses that do not have any prerequisite?", "question_toks": ["Find", "the", "id", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1442", "db_id": "college_2", "query": "select id from instructor except select id from teaches", "query_toks": ["SELECT", "id", "FROM", "instructor", "EXCEPT", "SELECT", "id", "FROM", "teaches"], "query_toks_no_value": ["select", "id", "from", "instructor", "except", "select", "id", "from", "teaches"], "question": "Find the id of instructors who didn't teach any courses?", "question_toks": ["Find", "the", "id", "of", "instructors", "who", "did", "n't", "teach", "any", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1440", "db_id": "college_2", "query": "select name from instructor where id not in (select id from teaches)", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", ")"], "question": "Find the name of instructors who didn't teach any courses?", "question_toks": ["Find", "the", "name", "of", "instructors", "who", "did", "n't", "teach", "any", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1444", "db_id": "college_2", "query": "select name from instructor where id not in (select id from teaches where semester = 'spring')", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", "where", "semester", "=", "value", ")"], "question": "Find the names of instructors who didn't each any courses in any Spring semester.", "question_toks": ["Find", "the", "names", "of", "instructors", "who", "did", "n't", "each", "any", "courses", "in", "any", "Spring", "semester", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"Spring\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1453", "db_id": "college_2", "query": "select name from student where id not in (select t1.id from takes as t1 join course as t2 on t1.course_id = t2.course_id where t2.dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "student", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.id", "FROM", "takes", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "student", "where", "id", "not", "in", "(", "select", "t1", ".", "id", "from", "takes", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "dept_name", "=", "value", ")"], "question": "What are the names of students who haven't taken any Biology courses?", "question_toks": ["What", "are", "the", "names", "of", "students", "who", "have", "n't", "taken", "any", "Biology", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[true, 8, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4707", "db_id": "college_3", "query": "select fname from student where stuid not in (select stuid from enrolled_in)", "query_toks": ["SELECT", "Fname", "FROM", "STUDENT", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "ENROLLED_IN", ")"], "query_toks_no_value": ["select", "fname", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "enrolled_in", ")"], "question": "Find the first name of students not enrolled in any course.", "question_toks": ["Find", "the", "first", "name", "of", "students", "not", "enrolled", "in", "any", "course", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4708", "db_id": "college_3", "query": "select fname from student where stuid not in (select stuid from enrolled_in)", "query_toks": ["SELECT", "Fname", "FROM", "STUDENT", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "ENROLLED_IN", ")"], "query_toks_no_value": ["select", "fname", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "enrolled_in", ")"], "question": "What are the first names of all students that are not enrolled in courses?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "students", "that", "are", "not", "enrolled", "in", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4110", "db_id": "company_employee", "query": "select name from people where people_id not in (select people_id from employment)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "employment", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "employment", ")"], "question": "List the names of people that are not employed by any company", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "employed", "by", "any", "company"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4576", "db_id": "company_office", "query": "select name from buildings where id not in (select building_id from office_locations)", "query_toks": ["SELECT", "name", "FROM", "buildings", "WHERE", "id", "NOT", "IN", "(", "SELECT", "building_id", "FROM", "Office_locations", ")"], "query_toks_no_value": ["select", "name", "from", "buildings", "where", "id", "not", "in", "(", "select", "building_id", "from", "office_locations", ")"], "question": "Which buildings do not have any company office? Give me the building names.", "question_toks": ["Which", "buildings", "do", "not", "have", "any", "company", "office", "?", "Give", "me", "the", "building", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0028", "db_id": "concert_singer", "query": "select name from stadium where stadium_id not in (select stadium_id from concert)", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")"], "question": "Show the stadium names without any concert.", "question_toks": ["Show", "the", "stadium", "names", "without", "any", "concert", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0029", "db_id": "concert_singer", "query": "select name from stadium where stadium_id not in (select stadium_id from concert)", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")"], "question": "What are the names of the stadiums without any concerts?", "question_toks": ["What", "are", "the", "names", "of", "the", "stadiums", "without", "any", "concerts", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0031", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "=", "value"], "question": "Show names for all stadiums except for stadiums having a concert in year 2014.", "question_toks": ["Show", "names", "for", "all", "stadiums", "except", "for", "stadiums", "having", "a", "concert", "in", "year", "2014", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "DEJOIN_TOTAL", "_JOIN_1", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0032", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the names of all stadiums that did not have a concert in 2014?", "question_toks": ["What", "are", "the", "names", "of", "all", "stadiums", "that", "did", "not", "have", "a", "concert", "in", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "DEJOIN_TOTAL", "_JOIN_1", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2564", "db_id": "county_public_safety", "query": "select name from county_public_safety where county_id not in (select county_id from city)", "query_toks": ["SELECT", "Name", "FROM", "county_public_safety", "WHERE", "County_ID", "NOT", "IN", "(", "SELECT", "County_ID", "FROM", "city", ")"], "query_toks_no_value": ["select", "name", "from", "county_public_safety", "where", "county_id", "not", "in", "(", "select", "county_id", "from", "city", ")"], "question": "List the names of counties that do not have any cities.", "question_toks": ["List", "the", "names", "of", "counties", "that", "do", "not", "have", "any", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2565", "db_id": "county_public_safety", "query": "select name from county_public_safety where county_id not in (select county_id from city)", "query_toks": ["SELECT", "Name", "FROM", "county_public_safety", "WHERE", "County_ID", "NOT", "IN", "(", "SELECT", "County_ID", "FROM", "city", ")"], "query_toks_no_value": ["select", "name", "from", "county_public_safety", "where", "county_id", "not", "in", "(", "select", "county_id", "from", "city", ")"], "question": "What are the names of counties that do not contain any cities?", "question_toks": ["What", "are", "the", "names", "of", "counties", "that", "do", "not", "contain", "any", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2128", "db_id": "cre_Doc_Control_Systems", "query": "select employee_name from employees except select employees.employee_name from employees join circulation_history on circulation_history.employee_id = employees.employee_id", "query_toks": ["SELECT", "employee_name", "FROM", "Employees", "EXCEPT", "SELECT", "Employees.employee_name", "FROM", "Employees", "JOIN", "Circulation_History", "ON", "Circulation_History.employee_id", "=", "Employees.employee_id"], "query_toks_no_value": ["select", "employee_name", "from", "employees", "except", "select", "employees.employee_name", "from", "employees", "join", "circulation_history", "on", "circulation_history.employee_id", "=", "employees.employee_id"], "question": "List the employees who have not showed up in any circulation history of documents. List the employee's name.", "question_toks": ["List", "the", "employees", "who", "have", "not", "showed", "up", "in", "any", "circulation", "history", "of", "documents", ".", "List", "the", "employee", "'s", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0315", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates except select template_id from documents", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "EXCEPT", "SELECT", "template_id", "FROM", "Documents"], "query_toks_no_value": ["select", "template_id", "from", "templates", "except", "select", "template_id", "from", "documents"], "question": "Show ids for all templates not used by any document.", "question_toks": ["Show", "ids", "for", "all", "templates", "not", "used", "by", "any", "document", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0345", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show all template type codes that are not used by any document.", "question_toks": ["Show", "all", "template", "type", "codes", "that", "are", "not", "used", "by", "any", "document", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0316", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates except select template_id from documents", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "EXCEPT", "SELECT", "template_id", "FROM", "Documents"], "query_toks_no_value": ["select", "template_id", "from", "templates", "except", "select", "template_id", "from", "documents"], "question": "What are the ids for templates that are not used in any documents?", "question_toks": ["What", "are", "the", "ids", "for", "templates", "that", "are", "not", "used", "in", "any", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0346", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the codes of template types that are not used for any document?", "question_toks": ["What", "are", "the", "codes", "of", "template", "types", "that", "are", "not", "used", "for", "any", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4247", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees except select destroyed_by_employee_id from documents_to_be_destroyed", "query_toks": ["SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed"], "query_toks_no_value": ["select", "employee_id", "from", "employees", "except", "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed"], "question": "Which employees do not destroy any document? Find their employee ids.", "question_toks": ["Which", "employees", "do", "not", "destroy", "any", "document", "?", "Find", "their", "employee", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4246", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees except select destroyed_by_employee_id from documents_to_be_destroyed", "query_toks": ["SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed"], "query_toks_no_value": ["select", "employee_id", "from", "employees", "except", "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed"], "question": "Show the ids of all employees who don't destroy any document.", "question_toks": ["Show", "the", "ids", "of", "all", "employees", "who", "do", "n't", "destroy", "any", "document", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4241", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees except select destruction_authorised_by_employee_id from documents_to_be_destroyed", "query_toks": ["SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed"], "query_toks_no_value": ["select", "employee_id", "from", "employees", "except", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed"], "question": "Which employees do not authorize destruction for any document? Give me their employee ids.", "question_toks": ["Which", "employees", "do", "not", "authorize", "destruction", "for", "any", "document", "?", "Give", "me", "their", "employee", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4240", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees except select destruction_authorised_by_employee_id from documents_to_be_destroyed", "query_toks": ["SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed"], "query_toks_no_value": ["select", "employee_id", "from", "employees", "except", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed"], "question": "Show the ids of the employees who don't authorize destruction for any document.", "question_toks": ["Show", "the", "ids", "of", "the", "employees", "who", "do", "n't", "authorize", "destruction", "for", "any", "document", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6463", "db_id": "cre_Docs_and_Epenses", "query": "select count(*) from documents where document_id not in ( select document_id from documents_with_expenses )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_id", "NOT", "IN", "(", "SELECT", "document_id", "FROM", "Documents_with_expenses", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents", "where", "document_id", "not", "in", "(", "select", "document_id", "from", "documents_with_expenses", ")"], "question": "How many documents do not have any expense?", "question_toks": ["How", "many", "documents", "do", "not", "have", "any", "expense", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6459", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents where document_type_code = \"cv\" except select document_id from documents_with_expenses", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses"], "query_toks_no_value": ["select", "document_id", "from", "documents", "where", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents_with_expenses"], "question": "Show ids for all documents in type CV without expense budgets.", "question_toks": ["Show", "ids", "for", "all", "documents", "in", "type", "CV", "without", "expense", "budgets", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"CV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5165", "db_id": "cre_Drama_Workshop_Groups", "query": "select customer_name from clients except select t2.customer_name from bookings as t1 join clients as t2 on t1.customer_id = t2.client_id", "query_toks": ["SELECT", "Customer_Name", "FROM", "Clients", "EXCEPT", "SELECT", "T2.Customer_Name", "FROM", "Bookings", "AS", "T1", "JOIN", "Clients", "AS", "T2", "ON", "T1.Customer_ID", "=", "T2.Client_ID"], "query_toks_no_value": ["select", "customer_name", "from", "clients", "except", "select", "t2", ".", "customer_name", "from", "bookings", "as", "t1", "join", "clients", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "client_id"], "question": "What are the names of the clients who do not have any booking?", "question_toks": ["What", "are", "the", "names", "of", "the", "clients", "who", "do", "not", "have", "any", "booking", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 55, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5158", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.city_town from addresses as t1 join customers as t2 on t1.address_id = t2.address_id except select t1.city_town from addresses as t1 join performers as t2 on t1.address_id = t2.address_id", "query_toks": ["SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "EXCEPT", "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Performers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID"], "query_toks_no_value": ["select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "except", "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "performers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id"], "question": "Show all cities where at least one customer lives in but no performer lives in.", "question_toks": ["Show", "all", "cities", "where", "at", "least", "one", "customer", "lives", "in", "but", "no", "performer", "lives", "in", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5164", "db_id": "cre_Drama_Workshop_Groups", "query": "select customer_name from clients except select t2.customer_name from bookings as t1 join clients as t2 on t1.customer_id = t2.client_id", "query_toks": ["SELECT", "Customer_Name", "FROM", "Clients", "EXCEPT", "SELECT", "T2.Customer_Name", "FROM", "Bookings", "AS", "T1", "JOIN", "Clients", "AS", "T2", "ON", "T1.Customer_ID", "=", "T2.Client_ID"], "query_toks_no_value": ["select", "customer_name", "from", "clients", "except", "select", "t2", ".", "customer_name", "from", "bookings", "as", "t1", "join", "clients", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "client_id"], "question": "Show the names of all the clients with no booking.", "question_toks": ["Show", "the", "names", "of", "all", "the", "clients", "with", "no", "booking", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 55, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5967", "db_id": "cre_Theme_park", "query": "select count(*) from visitors where tourist_id not in ( select tourist_id from visits )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Visitors", "WHERE", "Tourist_ID", "NOT", "IN", "(", "SELECT", "Tourist_ID", "FROM", "Visits", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "visitors", "where", "tourist_id", "not", "in", "(", "select", "tourist_id", "from", "visits", ")"], "question": "How many tourists did not make any visit?", "question_toks": ["How", "many", "tourists", "did", "not", "make", "any", "visit", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5968", "db_id": "cre_Theme_park", "query": "select count(*) from visitors where tourist_id not in ( select tourist_id from visits )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Visitors", "WHERE", "Tourist_ID", "NOT", "IN", "(", "SELECT", "Tourist_ID", "FROM", "Visits", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "visitors", "where", "tourist_id", "not", "in", "(", "select", "tourist_id", "from", "visits", ")"], "question": "Count the number of tourists who did not visit any place.", "question_toks": ["Count", "the", "number", "of", "tourists", "who", "did", "not", "visit", "any", "place", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6980", "db_id": "culture_company", "query": "select publisher from book_club except select publisher from book_club where year = 1989", "query_toks": ["SELECT", "publisher", "FROM", "book_club", "EXCEPT", "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1989"], "query_toks_no_value": ["select", "publisher", "from", "book_club", "except", "select", "publisher", "from", "book_club", "where", "year", "=", "value"], "question": "Show all publishers which do not have a book in 1989.", "question_toks": ["Show", "all", "publishers", "which", "do", "not", "have", "a", "book", "in", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2851", "db_id": "customer_deliveries", "query": "select state_province_county from addresses where address_id not in (select employee_address_id from employees)", "query_toks": ["SELECT", "state_province_county", "FROM", "addresses", "WHERE", "address_id", "NOT", "IN", "(", "SELECT", "employee_address_id", "FROM", "Employees", ")"], "query_toks_no_value": ["select", "state_province_county", "from", "addresses", "where", "address_id", "not", "in", "(", "select", "employee_address_id", "from", "employees", ")"], "question": "Find the states which do not have any employee in their record.", "question_toks": ["Find", "the", "states", "which", "do", "not", "have", "any", "employee", "in", "their", "record", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1627", "db_id": "customers_and_invoices", "query": "select count(*) from products where product_id not in ( select product_id from order_items )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "Order_items", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "order_items", ")"], "question": "How many products were not included in any order?", "question_toks": ["How", "many", "products", "were", "not", "included", "in", "any", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1613", "db_id": "customers_and_invoices", "query": "select product_name from products except select t1.product_name from products as t1 join order_items as t2 on t1.product_id = t2.product_id", "query_toks": ["SELECT", "product_name", "FROM", "Products", "EXCEPT", "SELECT", "T1.product_name", "FROM", "Products", "AS", "T1", "JOIN", "Order_items", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id"], "query_toks_no_value": ["select", "product_name", "from", "products", "except", "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id"], "question": "Show all product names without an order.", "question_toks": ["Show", "all", "product", "names", "without", "an", "order", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 28, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4625", "db_id": "customers_campaigns_ecommerce", "query": "select customer_name , customer_phone from customers where customer_id not in (select customer_id from mailshot_customers)", "query_toks": ["SELECT", "customer_name", ",", "customer_phone", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "mailshot_customers", ")"], "query_toks_no_value": ["select", "customer_name", ",", "customer_phone", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "mailshot_customers", ")"], "question": "Show the name and phone of the customer without any mailshot.", "question_toks": ["Show", "the", "name", "and", "phone", "of", "the", "customer", "without", "any", "mailshot", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0686", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers except select t1.customer_first_name , t1.customer_last_name from customers as t1 join accounts as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_first_name", ",", "T1.customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id"], "query_toks_no_value": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers", "except", "select", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "What are the full names of customers who do not have any accounts?", "question_toks": ["What", "are", "the", "full", "names", "of", "customers", "who", "do", "not", "have", "any", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0683", "db_id": "customers_card_transactions", "query": "select count(*) from customers where customer_id not in (select customer_id from accounts)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Accounts", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "accounts", ")"], "question": "Show the number of all customers without an account.", "question_toks": ["Show", "the", "number", "of", "all", "customers", "without", "an", "account", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4498", "db_id": "decoration_competition", "query": "select name from member where member_id not in (select member_id from round)", "query_toks": ["SELECT", "Name", "FROM", "member", "WHERE", "Member_ID", "NOT", "IN", "(", "SELECT", "Member_ID", "FROM", "round", ")"], "query_toks_no_value": ["select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "round", ")"], "question": "List the names of members who did not participate in any round.", "question_toks": ["List", "the", "names", "of", "members", "who", "did", "not", "participate", "in", "any", "round", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5083", "db_id": "device", "query": "select shop_name from shop where shop_id not in (select shop_id from stock)", "query_toks": ["SELECT", "Shop_Name", "FROM", "shop", "WHERE", "Shop_ID", "NOT", "IN", "(", "SELECT", "Shop_ID", "FROM", "stock", ")"], "query_toks_no_value": ["select", "shop_name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "stock", ")"], "question": "What are the names of shops that do not have any devices in stock?", "question_toks": ["What", "are", "the", "names", "of", "shops", "that", "do", "not", "have", "any", "devices", "in", "stock", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4525", "db_id": "document_management", "query": "select document_name from documents except select t1.document_name from documents as t1 join document_sections as t2 on t1.document_code = t2.document_code join document_sections_images as t3 on t2.section_id = t3.section_id", "query_toks": ["SELECT", "document_name", "FROM", "documents", "EXCEPT", "SELECT", "t1.document_name", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "JOIN", "document_sections_images", "AS", "t3", "ON", "t2.section_id", "=", "t3.section_id"], "query_toks_no_value": ["select", "document_name", "from", "documents", "except", "select", "t1", ".", "document_name", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "join", "document_sections_images", "as", "t3", "on", "t2", ".", "section_id", "=", "t3", ".", "section_id"], "question": "Find names of the document without any images.", "question_toks": ["Find", "names", "of", "the", "document", "without", "any", "images", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4519", "db_id": "document_management", "query": "select document_name from documents where document_code not in (select document_code from document_sections)", "query_toks": ["SELECT", "document_name", "FROM", "documents", "WHERE", "document_code", "NOT", "IN", "(", "SELECT", "document_code", "FROM", "document_sections", ")"], "query_toks_no_value": ["select", "document_name", "from", "documents", "where", "document_code", "not", "in", "(", "select", "document_code", "from", "document_sections", ")"], "question": "Find all the name of documents without any sections.", "question_toks": ["Find", "all", "the", "name", "of", "documents", "without", "any", "sections", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4520", "db_id": "document_management", "query": "select document_name from documents where document_code not in (select document_code from document_sections)", "query_toks": ["SELECT", "document_name", "FROM", "documents", "WHERE", "document_code", "NOT", "IN", "(", "SELECT", "document_code", "FROM", "document_sections", ")"], "query_toks_no_value": ["select", "document_name", "from", "documents", "where", "document_code", "not", "in", "(", "select", "document_code", "from", "document_sections", ")"], "question": "What are the names of documents that do not have any sections?", "question_toks": ["What", "are", "the", "names", "of", "documents", "that", "do", "not", "have", "any", "sections", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4526", "db_id": "document_management", "query": "select document_name from documents except select t1.document_name from documents as t1 join document_sections as t2 on t1.document_code = t2.document_code join document_sections_images as t3 on t2.section_id = t3.section_id", "query_toks": ["SELECT", "document_name", "FROM", "documents", "EXCEPT", "SELECT", "t1.document_name", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "JOIN", "document_sections_images", "AS", "t3", "ON", "t2.section_id", "=", "t3.section_id"], "query_toks_no_value": ["select", "document_name", "from", "documents", "except", "select", "t1", ".", "document_name", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "join", "document_sections_images", "as", "t3", "on", "t2", ".", "section_id", "=", "t3", ".", "section_id"], "question": "What are the names of documents that do not have any images?", "question_toks": ["What", "are", "the", "names", "of", "documents", "that", "do", "not", "have", "any", "images", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0928", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.", "question_toks": ["Which", "professional", "did", "not", "operate", "any", "treatment", "on", "dogs", "?", "List", "the", "professional", "'s", "id", ",", "role", "and", "email", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0981", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "question": "Find the number of owners who do not own any dogs at this moment.", "question_toks": ["Find", "the", "number", "of", "owners", "who", "do", "not", "own", "any", "dogs", "at", "this", "moment", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0979", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "Tell me the number of dogs that have not received any treatment .", "question_toks": ["Tell", "me", "the", "number", "of", "dogs", "that", "have", "not", "received", "any", "treatment", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0983", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "question": "Find the number of professionals who have not treated any dogs.", "question_toks": ["Find", "the", "number", "of", "professionals", "who", "have", "not", "treated", "any", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0929", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.", "question_toks": ["Give", "me", "the", "id", ",", "role", "and", "email", "of", "the", "professionals", "who", "did", "not", "perform", "any", "treatment", "on", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5692", "db_id": "dorm_1", "query": "select dorm_name from dorm where dormid not in (select dormid from has_amenity)", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "WHERE", "dormid", "NOT", "IN", "(", "SELECT", "dormid", "FROM", "has_amenity", ")"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "where", "dormid", "not", "in", "(", "select", "dormid", "from", "has_amenity", ")"], "question": "Find the name of dorms that do not have any amenity", "question_toks": ["Find", "the", "name", "of", "dorms", "that", "do", "not", "have", "any", "amenity"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5693", "db_id": "dorm_1", "query": "select dorm_name from dorm where dormid not in (select dormid from has_amenity)", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "WHERE", "dormid", "NOT", "IN", "(", "SELECT", "dormid", "FROM", "has_amenity", ")"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "where", "dormid", "not", "in", "(", "select", "dormid", "from", "has_amenity", ")"], "question": "What are the names of all the dorms that don't have any amenities?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "dorms", "that", "do", "n't", "have", "any", "amenities", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5717", "db_id": "dorm_1", "query": "select fname , lname from student where city_code != 'hkg' order by age", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "city_code", "!", "=", "'HKG", "'", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "city_code", "!", "=", "value", "order", "by", "age"], "question": "What are the first and last names of all students who are not living in the city HKG and order the results by age?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "all", "students", "who", "are", "not", "living", "in", "the", "city", "HKG", "and", "order", "the", "results", "by", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"HKG\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6692", "db_id": "driving_school", "query": "select count(*) from customers where customer_id not in ( select customer_id from customer_payments );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")"], "question": "List the number of customers that did not have any payment history.", "question_toks": ["List", "the", "number", "of", "customers", "that", "did", "not", "have", "any", "payment", "history", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6712", "db_id": "driving_school", "query": "select first_name from staff except select t2.first_name from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id", "query_toks": ["SELECT", "first_name", "FROM", "Staff", "EXCEPT", "SELECT", "T2.first_name", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id"], "query_toks_no_value": ["select", "first_name", "from", "staff", "except", "select", "t2", ".", "first_name", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id"], "question": "What is the first name of the staff who did not give any lesson?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "staff", "who", "did", "not", "give", "any", "lesson", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6713", "db_id": "driving_school", "query": "select first_name from staff except select t2.first_name from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id", "query_toks": ["SELECT", "first_name", "FROM", "Staff", "EXCEPT", "SELECT", "T2.first_name", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id"], "query_toks_no_value": ["select", "first_name", "from", "staff", "except", "select", "t2", ".", "first_name", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id"], "question": "What is the first name of all employees who do not give any lessons?", "question_toks": ["What", "is", "the", "first", "name", "of", "all", "employees", "who", "do", "not", "give", "any", "lessons", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3844", "db_id": "e_learning", "query": "select count(*) from students where student_id not in (select student_id from student_course_enrolment)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")"], "question": "How many students did not have any course enrollment?", "question_toks": ["How", "many", "students", "did", "not", "have", "any", "course", "enrollment", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3843", "db_id": "e_learning", "query": "select personal_name from students except select t1.personal_name from students as t1 join student_course_enrolment as t2 on t1.student_id = t2.student_id", "query_toks": ["SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1.personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id"], "query_toks_no_value": ["select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id"], "question": "Which students not enrolled in any course? Find their personal names.", "question_toks": ["Which", "students", "not", "enrolled", "in", "any", "course", "?", "Find", "their", "personal", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3845", "db_id": "e_learning", "query": "select count(*) from students where student_id not in (select student_id from student_course_enrolment)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")"], "question": "Count the number of students who did not enroll in any course.", "question_toks": ["Count", "the", "number", "of", "students", "who", "did", "not", "enroll", "in", "any", "course", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3842", "db_id": "e_learning", "query": "select personal_name from students except select t1.personal_name from students as t1 join student_course_enrolment as t2 on t1.student_id = t2.student_id", "query_toks": ["SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1.personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id"], "query_toks_no_value": ["select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id"], "question": "Find the personal names of students not enrolled in any course.", "question_toks": ["Find", "the", "personal", "names", "of", "students", "not", "enrolled", "in", "any", "course", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0281", "db_id": "employee_hire_evaluation", "query": "select name from employee where employee_id not in (select employee_id from evaluation)", "query_toks": ["SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")"], "query_toks_no_value": ["select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")"], "question": "Find the names of employees who never won any award in the evaluation.", "question_toks": ["Find", "the", "names", "of", "employees", "who", "never", "won", "any", "award", "in", "the", "evaluation", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0285", "db_id": "employee_hire_evaluation", "query": "select name from shop where shop_id not in (select shop_id from hiring)", "query_toks": ["SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")"], "query_toks_no_value": ["select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")"], "question": "Find the name of the shops that do not hire any employee.", "question_toks": ["Find", "the", "name", "of", "the", "shops", "that", "do", "not", "hire", "any", "employee", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0282", "db_id": "employee_hire_evaluation", "query": "select name from employee where employee_id not in (select employee_id from evaluation)", "query_toks": ["SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")"], "query_toks_no_value": ["select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")"], "question": "What are the names of the employees who never received any evaluation?", "question_toks": ["What", "are", "the", "names", "of", "the", "employees", "who", "never", "received", "any", "evaluation", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1718", "db_id": "epinions_1", "query": "select count(*) from item where i_id not in (select i_id from review)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "item", "WHERE", "i_id", "NOT", "IN", "(", "SELECT", "i_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "item", "where", "i_id", "not", "in", "(", "select", "i_id", "from", "review", ")"], "question": "Find the number of items without any review.", "question_toks": ["Find", "the", "number", "of", "items", "without", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1716", "db_id": "epinions_1", "query": "select name from useracct where u_id not in (select u_id from review)", "query_toks": ["SELECT", "name", "FROM", "useracct", "WHERE", "u_id", "NOT", "IN", "(", "SELECT", "u_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "name", "from", "useracct", "where", "u_id", "not", "in", "(", "select", "u_id", "from", "review", ")"], "question": "Find the names of users who did not leave any review.", "question_toks": ["Find", "the", "names", "of", "users", "who", "did", "not", "leave", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1717", "db_id": "epinions_1", "query": "select count(*) from useracct where u_id not in (select u_id from review)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "useracct", "WHERE", "u_id", "NOT", "IN", "(", "SELECT", "u_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "useracct", "where", "u_id", "not", "in", "(", "select", "u_id", "from", "review", ")"], "question": "Find the number of users who did not write any review.", "question_toks": ["Find", "the", "number", "of", "users", "who", "did", "not", "write", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1697", "db_id": "epinions_1", "query": "select count(*) from item where i_id not in (select i_id from review)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "item", "WHERE", "i_id", "NOT", "IN", "(", "SELECT", "i_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "item", "where", "i_id", "not", "in", "(", "select", "i_id", "from", "review", ")"], "question": "Find the number of items that did not receive any review.", "question_toks": ["Find", "the", "number", "of", "items", "that", "did", "not", "receive", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1715", "db_id": "epinions_1", "query": "select title from item where i_id not in (select i_id from review)", "query_toks": ["SELECT", "title", "FROM", "item", "WHERE", "i_id", "NOT", "IN", "(", "SELECT", "i_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "title", "from", "item", "where", "i_id", "not", "in", "(", "select", "i_id", "from", "review", ")"], "question": "Find the names of the items that did not receive any review.", "question_toks": ["Find", "the", "names", "of", "the", "items", "that", "did", "not", "receive", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0048", "db_id": "farm", "query": "select official_name from city where city_id not in (select host_city_id from farm_competition)", "query_toks": ["SELECT", "Official_Name", "FROM", "city", "WHERE", "City_ID", "NOT", "IN", "(", "SELECT", "Host_city_ID", "FROM", "farm_competition", ")"], "query_toks_no_value": ["select", "official_name", "from", "city", "where", "city_id", "not", "in", "(", "select", "host_city_id", "from", "farm_competition", ")"], "question": "List the official names of cities that have not held any competition.", "question_toks": ["List", "the", "official", "names", "of", "cities", "that", "have", "not", "held", "any", "competition", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4146", "db_id": "film_rank", "query": "select title from film where film_id not in (select film_id from film_market_estimation)", "query_toks": ["SELECT", "Title", "FROM", "film", "WHERE", "Film_ID", "NOT", "IN", "(", "SELECT", "Film_ID", "FROM", "film_market_estimation", ")"], "query_toks_no_value": ["select", "title", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", ")"], "question": "List the title of films that do not have any market estimation.", "question_toks": ["List", "the", "title", "of", "films", "that", "do", "not", "have", "any", "market", "estimation", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0421", "db_id": "flight_1", "query": "select eid from employee except select eid from certificate", "query_toks": ["SELECT", "eid", "FROM", "Employee", "EXCEPT", "SELECT", "eid", "FROM", "Certificate"], "query_toks_no_value": ["select", "eid", "from", "employee", "except", "select", "eid", "from", "certificate"], "question": "Show ids for all employees who don't have a certificate.", "question_toks": ["Show", "ids", "for", "all", "employees", "who", "do", "n't", "have", "a", "certificate", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0422", "db_id": "flight_1", "query": "select eid from employee except select eid from certificate", "query_toks": ["SELECT", "eid", "FROM", "Employee", "EXCEPT", "SELECT", "eid", "FROM", "Certificate"], "query_toks_no_value": ["select", "eid", "from", "employee", "except", "select", "eid", "from", "certificate"], "question": "What are the ids of all employees that don't have certificates?", "question_toks": ["What", "are", "the", "ids", "of", "all", "employees", "that", "do", "n't", "have", "certificates", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0429", "db_id": "flight_1", "query": "select name from employee except select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.name = \"boeing 737-800\"", "query_toks": ["SELECT", "name", "FROM", "Employee", "EXCEPT", "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''"], "query_toks_no_value": ["select", "name", "from", "employee", "except", "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value"], "question": "Show names for all employees who do not have certificate of Boeing 737-800.", "question_toks": ["Show", "names", "for", "all", "employees", "who", "do", "not", "have", "certificate", "of", "Boeing", "737-800", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Boeing 737-800\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0430", "db_id": "flight_1", "query": "select name from employee except select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.name = \"boeing 737-800\"", "query_toks": ["SELECT", "name", "FROM", "Employee", "EXCEPT", "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''"], "query_toks_no_value": ["select", "name", "from", "employee", "except", "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of all employees who are not certified to fly Boeing 737-800s?", "question_toks": ["What", "are", "the", "names", "of", "all", "employees", "who", "are", "not", "certified", "to", "fly", "Boeing", "737-800s", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Boeing 737-800\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0257", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", "query_toks": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")"], "query_toks_no_value": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")"], "question": "Find the name of airports which do not have any flight in and out.", "question_toks": ["Find", "the", "name", "of", "airports", "which", "do", "not", "have", "any", "flight", "in", "and", "out", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0239", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "except", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"], "question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "airport", "'CVO", "'", "but", "not", "from", "'APG", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"CVO\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "DEJOIN_TOTAL", "_JOIN_1", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2182", "db_id": "formula_1", "query": "select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"australian grand prix\" except select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"chinese grand prix\"", "query_toks": ["SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Australian", "Grand", "Prix", "''", "EXCEPT", "SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Chinese", "Grand", "Prix", "''"], "query_toks_no_value": ["select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "except", "select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value"], "question": "What are the first and last names of all drivers who participated in the Australian Grand Prix but not the Chinese Grand Prix?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "all", "drivers", "who", "participated", "in", "the", "Australian", "Grand", "Prix", "but", "not", "the", "Chinese", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Australian Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Chinese Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6021", "db_id": "game_1", "query": "select stuid from student except select stuid from sportsinfo", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "sportsinfo"], "question": "Show student ids who don't have any sports.", "question_toks": ["Show", "student", "ids", "who", "do", "n't", "have", "any", "sports", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6022", "db_id": "game_1", "query": "select stuid from student except select stuid from sportsinfo", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "sportsinfo"], "question": "What are the ids of all students who don't play sports?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "who", "do", "n't", "play", "sports", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6027", "db_id": "game_1", "query": "select stuid from student where sex = 'm' except select stuid from sportsinfo where sportname = \"football\"", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "'M", "'", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "sex", "=", "value", "except", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value"], "question": "Show all male student ids who don't play football.", "question_toks": ["Show", "all", "male", "student", "ids", "who", "do", "n't", "play", "football", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"M\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6028", "db_id": "game_1", "query": "select stuid from student where sex = 'm' except select stuid from sportsinfo where sportname = \"football\"", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "'M", "'", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "sex", "=", "value", "except", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value"], "question": "What are the ids of all male students who do not play football?", "question_toks": ["What", "are", "the", "ids", "of", "all", "male", "students", "who", "do", "not", "play", "football", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"M\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6036", "db_id": "game_1", "query": "select stuid from student except select stuid from plays_games", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Plays_games"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "plays_games"], "question": "What are the ids of all students who are not video game players?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "who", "are", "not", "video", "game", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1997", "db_id": "gas_company", "query": "select company , main_industry from company where headquarters != 'usa'", "query_toks": ["SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "headquarters", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "company", ",", "main_industry", "from", "company", "where", "headquarters", "!", "=", "value"], "question": "Show the company name and the main industry for all companies whose headquarters are not from USA.", "question_toks": ["Show", "the", "company", "name", "and", "the", "main", "industry", "for", "all", "companies", "whose", "headquarters", "are", "not", "from", "USA", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2021", "db_id": "gas_company", "query": "select headquarters from company except select headquarters from company where main_industry = 'banking'", "query_toks": ["SELECT", "headquarters", "FROM", "company", "EXCEPT", "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'"], "query_toks_no_value": ["select", "headquarters", "from", "company", "except", "select", "headquarters", "from", "company", "where", "main_industry", "=", "value"], "question": "Show all headquarters without a company in banking industry.", "question_toks": ["Show", "all", "headquarters", "without", "a", "company", "in", "banking", "industry", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1998", "db_id": "gas_company", "query": "select company , main_industry from company where headquarters != 'usa'", "query_toks": ["SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "headquarters", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "company", ",", "main_industry", "from", "company", "where", "headquarters", "!", "=", "value"], "question": "What are the companies and main industries of all companies that are not headquartered in the United States?", "question_toks": ["What", "are", "the", "companies", "and", "main", "industries", "of", "all", "companies", "that", "are", "not", "headquartered", "in", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1768", "db_id": "gymnast", "query": "select distinct hometown from people except select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id", "query_toks": ["SELECT", "DISTINCT", "Hometown", "FROM", "people", "EXCEPT", "SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID"], "query_toks_no_value": ["select", "distinct", "hometown", "from", "people", "except", "select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id"], "question": "List the distinct hometowns that are not associated with any gymnast.", "question_toks": ["List", "the", "distinct", "hometowns", "that", "are", "not", "associated", "with", "any", "gymnast", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3913", "db_id": "hospital_1", "query": "select name from physician except select t2.name from appointment as t1 join physician as t2 on t1.physician = t2.employeeid", "query_toks": ["SELECT", "name", "FROM", "physician", "EXCEPT", "SELECT", "T2.name", "FROM", "appointment", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.Physician", "=", "T2.EmployeeID"], "query_toks_no_value": ["select", "name", "from", "physician", "except", "select", "t2", ".", "name", "from", "appointment", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "physician", "=", "t2", ".", "employeeid"], "question": "Which physicians have never taken any appointment? Find their names.", "question_toks": ["Which", "physicians", "have", "never", "taken", "any", "appointment", "?", "Find", "their", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3912", "db_id": "hospital_1", "query": "select name from physician except select t2.name from appointment as t1 join physician as t2 on t1.physician = t2.employeeid", "query_toks": ["SELECT", "name", "FROM", "physician", "EXCEPT", "SELECT", "T2.name", "FROM", "appointment", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.Physician", "=", "T2.EmployeeID"], "query_toks_no_value": ["select", "name", "from", "physician", "except", "select", "t2", ".", "name", "from", "appointment", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "physician", "=", "t2", ".", "employeeid"], "question": "List the name of physicians who never took any appointment.", "question_toks": ["List", "the", "name", "of", "physicians", "who", "never", "took", "any", "appointment", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3982", "db_id": "hospital_1", "query": "select name from procedures where cost > 1000 except select t3.name from physician as t1 join trained_in as t2 on t1.employeeid = t2.physician join procedures as t3 on t3.code = t2.treatment where t1.name = \"john wen\"", "query_toks": ["SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000", "EXCEPT", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''"], "query_toks_no_value": ["select", "name", "from", "procedures", "where", "cost", ">", "value", "except", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value"], "question": "Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in?", "question_toks": ["Find", "the", "names", "of", "all", "procedures", "which", "cost", "more", "than", "1000", "but", "which", "physician", "John", "Wen", "was", "not", "trained", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"John Wen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3411", "db_id": "hr_1", "query": "select * from employees where department_id = \"null\"", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "department_id", "=", "``", "null", "''"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "department_id", "=", "value"], "question": "Return all the information for all employees without any department number.", "question_toks": ["Return", "all", "the", "information", "for", "all", "employees", "without", "any", "department", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3513", "db_id": "hr_1", "query": "select * from employees where employee_id not in (select employee_id from job_history)", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "employee_id", "NOT", "IN", "(", "SELECT", "employee_id", "FROM", "job_history", ")"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "job_history", ")"], "question": "display all the information of those employees who did not have any job in the past.", "question_toks": ["display", "all", "the", "information", "of", "those", "employees", "who", "did", "not", "have", "any", "job", "in", "the", "past", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3425", "db_id": "hr_1", "query": "select first_name , last_name , salary from employees where commission_pct = \"null\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "commission_pct", "=", "value"], "question": "What are the full name (first and last name) and salary for all employees who does not have any value for commission?", "question_toks": ["What", "are", "the", "full", "name", "(", "first", "and", "last", "name", ")", "and", "salary", "for", "all", "employees", "who", "does", "not", "have", "any", "value", "for", "commission", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3412", "db_id": "hr_1", "query": "select * from employees where department_id = \"null\"", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "department_id", "=", "``", "null", "''"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "department_id", "=", "value"], "question": "What are all the employees without a department number?", "question_toks": ["What", "are", "all", "the", "employees", "without", "a", "department", "number", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3501", "db_id": "hr_1", "query": "select first_name , last_name , hire_date from employees where department_id = ( select department_id from employees where first_name = \"clara\") and first_name != \"clara\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "Clara", "''", ")", "AND", "first_name", "!", "=", "``", "Clara", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", ")", "and", "first_name", "!", "=", "value"], "question": "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.", "question_toks": ["display", "the", "employee", "name", "(", "first", "name", "and", "last", "name", ")", "and", "hire", "date", "for", "all", "employees", "in", "the", "same", "department", "as", "Clara", "excluding", "Clara", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 7, [0, [0, 15, false], null], "\"Clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3514", "db_id": "hr_1", "query": "select * from employees where employee_id not in (select employee_id from job_history)", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "employee_id", "NOT", "IN", "(", "SELECT", "employee_id", "FROM", "job_history", ")"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "job_history", ")"], "question": "What is all the information about employees who have never had a job in the past?", "question_toks": ["What", "is", "all", "the", "information", "about", "employees", "who", "have", "never", "had", "a", "job", "in", "the", "past", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2636", "db_id": "inn_1", "query": "select count(*) from rooms where roomid not in (select distinct room from reservations)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "rooms", "WHERE", "roomid", "NOT", "IN", "(", "SELECT", "DISTINCT", "room", "FROM", "reservations", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "rooms", "where", "roomid", "not", "in", "(", "select", "distinct", "room", "from", "reservations", ")"], "question": "Find the number of rooms that do not have any reservation.", "question_toks": ["Find", "the", "number", "of", "rooms", "that", "do", "not", "have", "any", "reservation", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1524", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers except select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_details", "FROM", "customers", "EXCEPT", "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "except", "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "What are the names of customers who do not have any policies?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "do", "not", "have", "any", "policies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3893", "db_id": "insurance_policies", "query": "select customer_details from customers except select t1.customer_details from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_details", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "except", "select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Which customers do not have any policies? Find the details of these customers.", "question_toks": ["Which", "customers", "do", "not", "have", "any", "policies", "?", "Find", "the", "details", "of", "these", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3892", "db_id": "insurance_policies", "query": "select customer_details from customers except select t1.customer_details from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_details", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "except", "select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "List the details of the customers who do not have any policies.", "question_toks": ["List", "the", "details", "of", "the", "customers", "who", "do", "not", "have", "any", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3852", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "EXCEPT", "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2.policy_id", "=", "T3.policy_id"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "question": "Which customer had at least 2 policies but did not file any claims? List the customer details and id.", "question_toks": ["Which", "customer", "had", "at", "least", "2", "policies", "but", "did", "not", "file", "any", "claims", "?", "List", "the", "customer", "details", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3853", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "EXCEPT", "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2.policy_id", "=", "T3.policy_id"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "question": "Give me the the customer details and id for the customers who had two or more policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customer", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "or", "more", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ANY", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0664", "db_id": "journal_committee", "query": "select name from editor where editor_id not in (select editor_id from journal_committee)", "query_toks": ["SELECT", "Name", "FROM", "editor", "WHERE", "editor_id", "NOT", "IN", "(", "SELECT", "editor_id", "FROM", "journal_committee", ")"], "query_toks_no_value": ["select", "name", "from", "editor", "where", "editor_id", "not", "in", "(", "select", "editor_id", "from", "journal_committee", ")"], "question": "List the names of editors that are not on any journal committee.", "question_toks": ["List", "the", "names", "of", "editors", "that", "are", "not", "on", "any", "journal", "committee", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0665", "db_id": "journal_committee", "query": "select date , theme , sales from journal except select t1.date , t1.theme , t1.sales from journal as t1 join journal_committee as t2 on t1.journal_id = t2.journal_id", "query_toks": ["SELECT", "date", ",", "theme", ",", "sales", "FROM", "journal", "EXCEPT", "SELECT", "T1.date", ",", "T1.theme", ",", "T1.sales", "FROM", "journal", "AS", "T1", "JOIN", "journal_committee", "AS", "T2", "ON", "T1.journal_ID", "=", "T2.journal_ID"], "query_toks_no_value": ["select", "date", ",", "theme", ",", "sales", "from", "journal", "except", "select", "t1", ".", "date", ",", "t1", ".", "theme", ",", "t1", ".", "sales", "from", "journal", "as", "t1", "join", "journal_committee", "as", "t2", "on", "t1", ".", "journal_id", "=", "t2", ".", "journal_id"], "question": "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.", "question_toks": ["List", "the", "date", ",", "theme", "and", "sales", "of", "the", "journal", "which", "did", "not", "have", "any", "of", "the", "listed", "editors", "serving", "on", "committee", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3084", "db_id": "loan_1", "query": "select avg(credit_score) from customer where cust_id not in (select cust_id from loan)", "query_toks": ["SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", "WHERE", "cust_id", "NOT", "IN", "(", "SELECT", "cust_id", "FROM", "loan", ")"], "query_toks_no_value": ["select", "avg", "(", "credit_score", ")", "from", "customer", "where", "cust_id", "not", "in", "(", "select", "cust_id", "from", "loan", ")"], "question": "Find the average credit score of the customers who do not have any loan.", "question_toks": ["Find", "the", "average", "credit", "score", "of", "the", "customers", "who", "do", "not", "have", "any", "loan", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4858", "db_id": "local_govt_and_lot", "query": "select count(*) from customers where customer_id not in ( select customer_id from customer_events )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "customer_events", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_events", ")"], "question": "How many customers did not have any event?", "question_toks": ["How", "many", "customers", "did", "not", "have", "any", "event", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2151", "db_id": "local_govt_in_alabama", "query": "select count(*) from events where event_id not in (select event_id from participants_in_events)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "EVENTS", "WHERE", "event_id", "NOT", "IN", "(", "SELECT", "event_id", "FROM", "Participants_in_Events", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "events", "where", "event_id", "not", "in", "(", "select", "event_id", "from", "participants_in_events", ")"], "question": "How many events did not have any participants?", "question_toks": ["How", "many", "events", "did", "not", "have", "any", "participants", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2658", "db_id": "local_govt_mdm", "query": "select cmi_cross_ref_id from cmi_cross_references except select cmi_cross_ref_id from parking_fines", "query_toks": ["SELECT", "cmi_cross_ref_id", "FROM", "cmi_cross_references", "EXCEPT", "SELECT", "cmi_cross_ref_id", "FROM", "parking_fines"], "query_toks_no_value": ["select", "cmi_cross_ref_id", "from", "cmi_cross_references", "except", "select", "cmi_cross_ref_id", "from", "parking_fines"], "question": "Which cmi cross reference id is not related to any parking taxes?", "question_toks": ["Which", "cmi", "cross", "reference", "id", "is", "not", "related", "to", "any", "parking", "taxes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3403", "db_id": "manufacturer", "query": "select market_rate , name from furniture where furniture_id not in (select furniture_id from furniture_manufacte)", "query_toks": ["SELECT", "Market_Rate", ",", "name", "FROM", "furniture", "WHERE", "Furniture_ID", "NOT", "IN", "(", "SELECT", "Furniture_ID", "FROM", "furniture_manufacte", ")"], "query_toks_no_value": ["select", "market_rate", ",", "name", "from", "furniture", "where", "furniture_id", "not", "in", "(", "select", "furniture_id", "from", "furniture_manufacte", ")"], "question": "Find the market shares and names of furnitures which no any company is producing in our records.", "question_toks": ["Find", "the", "market", "shares", "and", "names", "of", "furnitures", "which", "no", "any", "company", "is", "producing", "in", "our", "records", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0961", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from enzyme where id not in ( select enzyme_id from medicine_enzyme_interaction );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "enzyme", "WHERE", "id", "NOT", "IN", "(", "SELECT", "enzyme_id", "FROM", "medicine_enzyme_interaction", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "enzyme", "where", "id", "not", "in", "(", "select", "enzyme_id", "from", "medicine_enzyme_interaction", ")"], "question": "How many enzymes do not have any interactions?", "question_toks": ["How", "many", "enzymes", "do", "not", "have", "any", "interactions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0962", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from enzyme where id not in ( select enzyme_id from medicine_enzyme_interaction );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "enzyme", "WHERE", "id", "NOT", "IN", "(", "SELECT", "enzyme_id", "FROM", "medicine_enzyme_interaction", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "enzyme", "where", "id", "not", "in", "(", "select", "enzyme_id", "from", "medicine_enzyme_interaction", ")"], "question": "What is the count of enzymes without any interactions?", "question_toks": ["What", "is", "the", "count", "of", "enzymes", "without", "any", "interactions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3722", "db_id": "mountain_photos", "query": "select count(*) from camera_lens where id not in ( select camera_lens_id from photos )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "camera_lens", "WHERE", "id", "NOT", "IN", "(", "SELECT", "camera_lens_id", "FROM", "photos", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "camera_lens", "where", "id", "not", "in", "(", "select", "camera_lens_id", "from", "photos", ")"], "question": "How many camera lenses are not used in taking any photos?", "question_toks": ["How", "many", "camera", "lenses", "are", "not", "used", "in", "taking", "any", "photos", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2514", "db_id": "movie_1", "query": "select mid , avg(stars) from rating where mid not in (select t1.mid from rating as t1 join reviewer as t2 on t1.rid = t2.rid where t2.name = \"brittany harris\") group by mid", "query_toks": ["SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''", ")", "GROUP", "BY", "mID"], "query_toks_no_value": ["select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "where", "mid", "not", "in", "(", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value", ")", "group", "by", "mid"], "question": "Find the average rating star for each movie that are not reviewed by Brittany Harris.", "question_toks": ["Find", "the", "average", "rating", "star", "for", "each", "movie", "that", "are", "not", "reviewed", "by", "Brittany", "Harris", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Brittany Harris\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2515", "db_id": "movie_1", "query": "select mid , avg(stars) from rating where mid not in (select t1.mid from rating as t1 join reviewer as t2 on t1.rid = t2.rid where t2.name = \"brittany harris\") group by mid", "query_toks": ["SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''", ")", "GROUP", "BY", "mID"], "query_toks_no_value": ["select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "where", "mid", "not", "in", "(", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value", ")", "group", "by", "mid"], "question": "What is the average rating for each movie that has never been reviewed by Brittany Harris?", "question_toks": ["What", "is", "the", "average", "rating", "for", "each", "movie", "that", "has", "never", "been", "reviewed", "by", "Brittany", "Harris", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Brittany Harris\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2458", "db_id": "movie_1", "query": "select title from movie where mid not in (select mid from rating)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")"], "question": "Find the titles of all movies that have no ratings.", "question_toks": ["Find", "the", "titles", "of", "all", "movies", "that", "have", "no", "ratings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2459", "db_id": "movie_1", "query": "select title from movie where mid not in (select mid from rating)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")"], "question": "What are the titles of all movies that have not been rated?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "have", "not", "been", "rated", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2461", "db_id": "movie_1", "query": "select distinct name from reviewer as t1 join rating as t2 on t1.rid = t2.rid where ratingdate = \"null\"", "query_toks": ["SELECT", "DISTINCT", "name", "FROM", "Reviewer", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "ratingDate", "=", "``", "null", "''"], "query_toks_no_value": ["select", "distinct", "name", "from", "reviewer", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "ratingdate", "=", "value"], "question": "What are the different names of all reviewers whose ratings do not have a date field?", "question_toks": ["What", "are", "the", "different", "names", "of", "all", "reviewers", "whose", "ratings", "do", "not", "have", "a", "date", "field", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2484", "db_id": "movie_1", "query": "select distinct title from movie except select t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid join reviewer as t3 on t1.rid = t3.rid where t3.name = 'chris jackson'", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "Movie", "EXCEPT", "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Chris", "Jackson", "'"], "query_toks_no_value": ["select", "distinct", "title", "from", "movie", "except", "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value"], "question": "Find the titles of all movies not reviewed by Chris Jackson.", "question_toks": ["Find", "the", "titles", "of", "all", "movies", "not", "reviewed", "by", "Chris", "Jackson", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Chris Jackson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2485", "db_id": "movie_1", "query": "select distinct title from movie except select t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid join reviewer as t3 on t1.rid = t3.rid where t3.name = 'chris jackson'", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "Movie", "EXCEPT", "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Chris", "Jackson", "'"], "query_toks_no_value": ["select", "distinct", "title", "from", "movie", "except", "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value"], "question": "What are the titles of all movies that were not reviewed by Chris Jackson?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "were", "not", "reviewed", "by", "Chris", "Jackson", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Chris Jackson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2493", "db_id": "movie_1", "query": "select director from movie where director != \"null\" group by director having count(*) = 1", "query_toks": ["SELECT", "director", "FROM", "Movie", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director", "HAVING", "count", "(", "*", ")", "=", "1"], "query_toks_no_value": ["select", "director", "from", "movie", "where", "director", "!", "=", "value", "group", "by", "director", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the names of all directors who have made one movie except for the director named NULL?", "question_toks": ["What", "are", "the", "names", "of", "all", "directors", "who", "have", "made", "one", "movie", "except", "for", "the", "director", "named", "NULL", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2503", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid where director != \"null\" group by director", "query_toks": ["SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "max", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "director", "!", "=", "value", "group", "by", "director"], "question": "For each director, what are the titles and ratings for all the movies they reviewed?", "question_toks": ["For", "each", "director", ",", "what", "are", "the", "titles", "and", "ratings", "for", "all", "the", "movies", "they", "reviewed", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2517", "db_id": "movie_1", "query": "select mid from rating except select t1.mid from rating as t1 join reviewer as t2 on t1.rid = t2.rid where t2.name = \"brittany harris\"", "query_toks": ["SELECT", "mID", "FROM", "Rating", "EXCEPT", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''"], "query_toks_no_value": ["select", "mid", "from", "rating", "except", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value"], "question": "What are the ids of all moviest hat have not been reviewed by Britanny Harris?", "question_toks": ["What", "are", "the", "ids", "of", "all", "moviest", "hat", "have", "not", "been", "reviewed", "by", "Britanny", "Harris", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Brittany Harris\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2521", "db_id": "movie_1", "query": "select rid from rating except select rid from rating where stars = 4", "query_toks": ["SELECT", "rID", "FROM", "Rating", "EXCEPT", "SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "=", "4"], "query_toks_no_value": ["select", "rid", "from", "rating", "except", "select", "rid", "from", "rating", "where", "stars", "=", "value"], "question": "What are the ids of all reviewers who did not give 4 stars?", "question_toks": ["What", "are", "the", "ids", "of", "all", "reviewers", "who", "did", "not", "give", "4", "stars", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0427", "db_id": "museum_visit", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ">", "value", ")"], "question": "Find the number of visitors who did not visit any museum opened after 2010.", "question_toks": ["Find", "the", "number", "of", "visitors", "who", "did", "not", "visit", "any", "museum", "opened", "after", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5253", "db_id": "music_2", "query": "select distinct title from vocals as t1 join songs as t2 on t1.songid = t2.songid except select t2.title from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = \"back\"", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''"], "query_toks_no_value": ["select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value"], "question": "What are the different names of all songs without back vocals?", "question_toks": ["What", "are", "the", "different", "names", "of", "all", "songs", "without", "back", "vocals", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"back\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6189", "db_id": "music_4", "query": "select famous_title from artist where artist_id not in(select artist_id from volume)", "query_toks": ["SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")"], "query_toks_no_value": ["select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")"], "question": "Find the famous titles of artists that do not have any volume.", "question_toks": ["Find", "the", "famous", "titles", "of", "artists", "that", "do", "not", "have", "any", "volume", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6190", "db_id": "music_4", "query": "select famous_title from artist where artist_id not in(select artist_id from volume)", "query_toks": ["SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")"], "query_toks_no_value": ["select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")"], "question": "What are the famous titles of artists who do not have any volumes?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "who", "do", "not", "have", "any", "volumes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0894", "db_id": "network_1", "query": "select id from highschooler except select student_id from friend", "query_toks": ["SELECT", "id", "FROM", "Highschooler", "EXCEPT", "SELECT", "student_id", "FROM", "Friend"], "query_toks_no_value": ["select", "id", "from", "highschooler", "except", "select", "student_id", "from", "friend"], "question": "Show ids of all students who do not have any friends.", "question_toks": ["Show", "ids", "of", "all", "students", "who", "do", "not", "have", "any", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0896", "db_id": "network_1", "query": "select name from highschooler except select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", "query_toks": ["SELECT", "name", "FROM", "Highschooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id"], "query_toks_no_value": ["select", "name", "from", "highschooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id"], "question": "Show names of all high school students who do not have any friends.", "question_toks": ["Show", "names", "of", "all", "high", "school", "students", "who", "do", "not", "have", "any", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4477", "db_id": "network_2", "query": "select name from person except select name from personfriend", "query_toks": ["SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "name", "FROM", "PersonFriend"], "query_toks_no_value": ["select", "name", "from", "person", "except", "select", "name", "from", "personfriend"], "question": "What are the names of all people who do not have friends?", "question_toks": ["What", "are", "the", "names", "of", "all", "people", "who", "do", "not", "have", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2816", "db_id": "news_report", "query": "select name from journalist where journalist_id not in (select journalist_id from news_report)", "query_toks": ["SELECT", "Name", "FROM", "journalist", "WHERE", "journalist_ID", "NOT", "IN", "(", "SELECT", "journalist_ID", "FROM", "news_report", ")"], "query_toks_no_value": ["select", "name", "from", "journalist", "where", "journalist_id", "not", "in", "(", "select", "journalist_id", "from", "news_report", ")"], "question": "List the names of journalists who have not reported any event.", "question_toks": ["List", "the", "names", "of", "journalists", "who", "have", "not", "reported", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0855", "db_id": "orchestra", "query": "select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance)", "query_toks": ["SELECT", "Orchestra", "FROM", "orchestra", "WHERE", "Orchestra_ID", "NOT", "IN", "(", "SELECT", "Orchestra_ID", "FROM", "performance", ")"], "query_toks_no_value": ["select", "orchestra", "from", "orchestra", "where", "orchestra_id", "not", "in", "(", "select", "orchestra_id", "from", "performance", ")"], "question": "What are the orchestras that do not have any performances?", "question_toks": ["What", "are", "the", "orchestras", "that", "do", "not", "have", "any", "performances", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2689", "db_id": "party_host", "query": "select name from host where host_id not in (select host_id from party_host)", "query_toks": ["SELECT", "Name", "FROM", "HOST", "WHERE", "Host_ID", "NOT", "IN", "(", "SELECT", "Host_ID", "FROM", "party_host", ")"], "query_toks_no_value": ["select", "name", "from", "host", "where", "host_id", "not", "in", "(", "select", "host_id", "from", "party_host", ")"], "question": "What are the names of hosts who did not host any party in our record?", "question_toks": ["What", "are", "the", "names", "of", "hosts", "who", "did", "not", "host", "any", "party", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2688", "db_id": "party_host", "query": "select name from host where host_id not in (select host_id from party_host)", "query_toks": ["SELECT", "Name", "FROM", "HOST", "WHERE", "Host_ID", "NOT", "IN", "(", "SELECT", "Host_ID", "FROM", "party_host", ")"], "query_toks_no_value": ["select", "name", "from", "host", "where", "host_id", "not", "in", "(", "select", "host_id", "from", "party_host", ")"], "question": "List the names of hosts who did not serve as a host of any party in our record.", "question_toks": ["List", "the", "names", "of", "hosts", "who", "did", "not", "serve", "as", "a", "host", "of", "any", "party", "in", "our", "record", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2063", "db_id": "party_people", "query": "select party_name from party where party_id not in (select party_id from member)", "query_toks": ["SELECT", "party_name", "FROM", "party", "WHERE", "party_id", "NOT", "IN", "(", "SELECT", "party_id", "FROM", "Member", ")"], "query_toks_no_value": ["select", "party_name", "from", "party", "where", "party_id", "not", "in", "(", "select", "party_id", "from", "member", ")"], "question": "Show names of parties that does not have any members.", "question_toks": ["Show", "names", "of", "parties", "that", "does", "not", "have", "any", "members", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2073", "db_id": "party_people", "query": "select member_name from member except select t1.member_name from member as t1 join party_events as t2 on t1.member_id = t2.member_in_charge_id", "query_toks": ["SELECT", "member_name", "FROM", "member", "EXCEPT", "SELECT", "T1.member_name", "FROM", "member", "AS", "T1", "JOIN", "party_events", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_in_charge_id"], "query_toks_no_value": ["select", "member_name", "from", "member", "except", "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party_events", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_in_charge_id"], "question": "Show all member names who are not in charge of any event.", "question_toks": ["Show", "all", "member", "names", "who", "are", "not", "in", "charge", "of", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2074", "db_id": "party_people", "query": "select member_name from member except select t1.member_name from member as t1 join party_events as t2 on t1.member_id = t2.member_in_charge_id", "query_toks": ["SELECT", "member_name", "FROM", "member", "EXCEPT", "SELECT", "T1.member_name", "FROM", "member", "AS", "T1", "JOIN", "party_events", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_in_charge_id"], "query_toks_no_value": ["select", "member_name", "from", "member", "except", "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party_events", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_in_charge_id"], "question": "What are the names of members who are not in charge of any events?", "question_toks": ["What", "are", "the", "names", "of", "members", "who", "are", "not", "in", "charge", "of", "any", "events", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2049", "db_id": "party_people", "query": "select minister from party where party_name != 'progress party'", "query_toks": ["SELECT", "minister", "FROM", "party", "WHERE", "party_name", "!", "=", "'Progress", "Party", "'"], "query_toks_no_value": ["select", "minister", "from", "party", "where", "party_name", "!", "=", "value"], "question": "Show all ministers who do not belong to Progress Party.", "question_toks": ["Show", "all", "ministers", "who", "do", "not", "belong", "to", "Progress", "Party", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 12, false], null], "\"Progress Party\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1321", "db_id": "performance_attendance", "query": "select name from member where member_id not in (select member_id from member_attendance)", "query_toks": ["SELECT", "Name", "FROM", "member", "WHERE", "Member_ID", "NOT", "IN", "(", "SELECT", "Member_ID", "FROM", "member_attendance", ")"], "query_toks_no_value": ["select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "member_attendance", ")"], "question": "List the names of members who did not attend any performance.", "question_toks": ["List", "the", "names", "of", "members", "who", "did", "not", "attend", "any", "performance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0085", "db_id": "pets_1", "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", "query_toks": ["select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")"], "question": "Find the average age of students who do not have any pet .", "question_toks": ["Find", "the", "average", "age", "of", "students", "who", "do", "not", "have", "any", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0086", "db_id": "pets_1", "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", "query_toks": ["select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")"], "question": "What is the average age for all students who do not own any pets ?", "question_toks": ["What", "is", "the", "average", "age", "for", "all", "students", "who", "do", "not", "own", "any", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1050", "db_id": "phone_1", "query": "select model_name from chip_model except select chip_model from phone where accreditation_type = 'full'", "query_toks": ["SELECT", "model_name", "FROM", "chip_model", "EXCEPT", "SELECT", "chip_model", "FROM", "phone", "WHERE", "Accreditation_type", "=", "'Full", "'"], "query_toks_no_value": ["select", "model_name", "from", "chip_model", "except", "select", "chip_model", "from", "phone", "where", "accreditation_type", "=", "value"], "question": "Find the names of the chip models that are not used by any phone with full accreditation type.", "question_toks": ["Find", "the", "names", "of", "the", "chip", "models", "that", "are", "not", "used", "by", "any", "phone", "with", "full", "accreditation", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"Full\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1049", "db_id": "phone_1", "query": "select avg(ram_mib) from chip_model where model_name not in (select chip_model from phone)", "query_toks": ["SELECT", "avg", "(", "RAM_MiB", ")", "FROM", "chip_model", "WHERE", "model_name", "NOT", "IN", "(", "SELECT", "chip_model", "FROM", "phone", ")"], "query_toks_no_value": ["select", "avg", "(", "ram_mib", ")", "from", "chip_model", "where", "model_name", "not", "in", "(", "select", "chip_model", "from", "phone", ")"], "question": "Find the average ram mib size of the chip models that are never used by any phone.", "question_toks": ["Find", "the", "average", "ram", "mib", "size", "of", "the", "chip", "models", "that", "are", "never", "used", "by", "any", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1992", "db_id": "phone_market", "query": "select name from phone where phone_id not in (select phone_id from phone_market)", "query_toks": ["SELECT", "Name", "FROM", "phone", "WHERE", "Phone_id", "NOT", "IN", "(", "SELECT", "Phone_ID", "FROM", "phone_market", ")"], "query_toks_no_value": ["select", "name", "from", "phone", "where", "phone_id", "not", "in", "(", "select", "phone_id", "from", "phone_market", ")"], "question": "List the names of phones that are not on any market.", "question_toks": ["List", "the", "names", "of", "phones", "that", "are", "not", "on", "any", "market", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[true, 8, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2097", "db_id": "pilot_record", "query": "select pilot_name from pilot where pilot_id not in (select pilot_id from pilot_record)", "query_toks": ["SELECT", "Pilot_name", "FROM", "pilot", "WHERE", "Pilot_ID", "NOT", "IN", "(", "SELECT", "Pilot_ID", "FROM", "pilot_record", ")"], "query_toks_no_value": ["select", "pilot_name", "from", "pilot", "where", "pilot_id", "not", "in", "(", "select", "pilot_id", "from", "pilot_record", ")"], "question": "List the names of pilots that do not have any record.", "question_toks": ["List", "the", "names", "of", "pilots", "that", "do", "not", "have", "any", "record", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5600", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors where color_code not in ( select color_code from products )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Ref_colors", "WHERE", "color_code", "NOT", "IN", "(", "SELECT", "color_code", "FROM", "products", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "ref_colors", "where", "color_code", "not", "in", "(", "select", "color_code", "from", "products", ")"], "question": "How many colors are never used by any product?", "question_toks": ["How", "many", "colors", "are", "never", "used", "by", "any", "product", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5601", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors where color_code not in ( select color_code from products )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Ref_colors", "WHERE", "color_code", "NOT", "IN", "(", "SELECT", "color_code", "FROM", "products", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "ref_colors", "where", "color_code", "not", "in", "(", "select", "color_code", "from", "products", ")"], "question": "Count the number of colors that are not used in any products.", "question_toks": ["Count", "the", "number", "of", "colors", "that", "are", "not", "used", "in", "any", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5597", "db_id": "products_gen_characteristics", "query": "select characteristic_name , other_characteristic_details , characteristic_data_type from characteristics except select t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type from characteristics as t1 join product_characteristics as t2 on t1.characteristic_id = t2.characteristic_id", "query_toks": ["SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS", "EXCEPT", "SELECT", "t1.characteristic_name", ",", "t1.other_characteristic_details", ",", "t1.characteristic_data_type", "FROM", "CHARACTERISTICS", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.characteristic_id", "=", "t2.characteristic_id"], "query_toks_no_value": ["select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics", "except", "select", "t1", ".", "characteristic_name", ",", "t1", ".", "other_characteristic_details", ",", "t1", ".", "characteristic_data_type", "from", "characteristics", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "characteristic_id", "=", "t2", ".", "characteristic_id"], "question": "Give the names, details, and data types of characteristics that are not found in any product.", "question_toks": ["Give", "the", "names", ",", "details", ",", "and", "data", "types", "of", "characteristics", "that", "are", "not", "found", "in", "any", "product", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 22, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5596", "db_id": "products_gen_characteristics", "query": "select characteristic_name , other_characteristic_details , characteristic_data_type from characteristics except select t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type from characteristics as t1 join product_characteristics as t2 on t1.characteristic_id = t2.characteristic_id", "query_toks": ["SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS", "EXCEPT", "SELECT", "t1.characteristic_name", ",", "t1.other_characteristic_details", ",", "t1.characteristic_data_type", "FROM", "CHARACTERISTICS", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.characteristic_id", "=", "t2.characteristic_id"], "query_toks_no_value": ["select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics", "except", "select", "t1", ".", "characteristic_name", ",", "t1", ".", "other_characteristic_details", ",", "t1", ".", "characteristic_data_type", "from", "characteristics", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "characteristic_id", "=", "t2", ".", "characteristic_id"], "question": "What are the names, details and data types of the characteristics which are never used by any product?", "question_toks": ["What", "are", "the", "names", ",", "details", "and", "data", "types", "of", "the", "characteristics", "which", "are", "never", "used", "by", "any", "product", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 22, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1920", "db_id": "protein_institute", "query": "select name from building where building_id not in (select building_id from institution)", "query_toks": ["SELECT", "name", "FROM", "building", "WHERE", "building_id", "NOT", "IN", "(", "SELECT", "building_id", "FROM", "institution", ")"], "query_toks_no_value": ["select", "name", "from", "building", "where", "building_id", "not", "in", "(", "select", "building_id", "from", "institution", ")"], "question": "Show the name of buildings that do not have any institution.", "question_toks": ["Show", "the", "name", "of", "buildings", "that", "do", "not", "have", "any", "institution", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0776", "db_id": "race_track", "query": "select name from track where track_id not in (select track_id from race)", "query_toks": ["SELECT", "name", "FROM", "track", "WHERE", "track_id", "NOT", "IN", "(", "SELECT", "track_id", "FROM", "race", ")"], "query_toks_no_value": ["select", "name", "from", "track", "where", "track_id", "not", "in", "(", "select", "track_id", "from", "race", ")"], "question": "Return the names of tracks that have no had any races.", "question_toks": ["Return", "the", "names", "of", "tracks", "that", "have", "no", "had", "any", "races", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0775", "db_id": "race_track", "query": "select name from track where track_id not in (select track_id from race)", "query_toks": ["SELECT", "name", "FROM", "track", "WHERE", "track_id", "NOT", "IN", "(", "SELECT", "track_id", "FROM", "race", ")"], "query_toks_no_value": ["select", "name", "from", "track", "where", "track_id", "not", "in", "(", "select", "track_id", "from", "race", ")"], "question": "Show all track names that have had no races.", "question_toks": ["Show", "all", "track", "names", "that", "have", "had", "no", "races", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5648", "db_id": "railway", "query": "select objectnumber from railway where railway_id not in (select railway_id from train)", "query_toks": ["SELECT", "ObjectNumber", "FROM", "railway", "WHERE", "Railway_ID", "NOT", "IN", "(", "SELECT", "Railway_ID", "FROM", "train", ")"], "query_toks_no_value": ["select", "objectnumber", "from", "railway", "where", "railway_id", "not", "in", "(", "select", "railway_id", "from", "train", ")"], "question": "List the object number of railways that do not have any trains.", "question_toks": ["List", "the", "object", "number", "of", "railways", "that", "do", "not", "have", "any", "trains", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2835", "db_id": "restaurant_1", "query": "select fname , lname from student where age > 18 and major != 600 and sex = 'f';", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "Student", "WHERE", "Age", ">", "18", "AND", "Major", "!", "=", "600", "AND", "Sex", "=", "'F", "'", ";"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "age", ">", "value", "and", "major", "!", "=", "value", "and", "sex", "=", "value"], "question": "List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.", "question_toks": ["List", "all", "female", "students", "age", "is", "older", "than", "18", "who", "is", "not", "majoring", "in", "600", ".", "List", "students", "'", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 18.0, null], "and", [false, 7, [0, [0, 6, false], null], 600.0, null], "and", [false, 2, [0, [0, 5, false], null], "\"F\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3004", "db_id": "sakila_1", "query": "select first_name from customer where customer_id not in( select customer_id from rental where rental_date > '2005-08-23 02:06:01' )", "query_toks": ["SELECT", "first_name", "FROM", "customer", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "rental", "WHERE", "rental_date", ">", "'2005-08-23", "02:06:01", "'", ")"], "query_toks_no_value": ["select", "first_name", "from", "customer", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "rental", "where", "rental_date", ">", "value", ")"], "question": "What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?", "question_toks": ["What", "are", "the", "first", "names", "of", "customers", "who", "have", "not", "rented", "any", "films", "after", "'2005-08-23", "02:06:01", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[true, 8, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 71, false], null]]]], "where": [[false, 3, [0, [0, 69, false], null], "\"2005-08-23 02:06:01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2992", "db_id": "sakila_1", "query": "select title from film where length > 100 or rating = 'pg' except select title from film where replacement_cost > 200", "query_toks": ["SELECT", "title", "FROM", "film", "WHERE", "LENGTH", ">", "100", "OR", "rating", "=", "'PG", "'", "EXCEPT", "SELECT", "title", "FROM", "film", "WHERE", "replacement_cost", ">", "200"], "query_toks_no_value": ["select", "title", "from", "film", "where", "length", ">", "value", "or", "rating", "=", "value", "except", "select", "title", "from", "film", "where", "replacement_cost", ">", "value"], "question": "Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.", "question_toks": ["Find", "all", "the", "films", "longer", "than", "100", "minutes", ",", "or", "rated", "PG", ",", "except", "those", "who", "cost", "more", "than", "200", "for", "replacement", ".", "List", "the", "titles", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 3, [0, [0, 40, false], null], 100.0, null], "or", [false, 2, [0, [0, 42, false], null], "\"PG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 3, [0, [0, 41, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6356", "db_id": "school_bus", "query": "select home_city from driver except select home_city from driver where age > 40", "query_toks": ["SELECT", "home_city", "FROM", "driver", "EXCEPT", "SELECT", "home_city", "FROM", "driver", "WHERE", "age", ">", "40"], "query_toks_no_value": ["select", "home_city", "from", "driver", "except", "select", "home_city", "from", "driver", "where", "age", ">", "value"], "question": "Show all home cities except for those having a driver older than 40.", "question_toks": ["Show", "all", "home", "cities", "except", "for", "those", "having", "a", "driver", "older", "than", "40", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1895", "db_id": "school_finance", "query": "select school_name from school where school_id not in (select school_id from endowment)", "query_toks": ["SELECT", "school_name", "FROM", "school", "WHERE", "school_id", "NOT", "IN", "(", "SELECT", "school_id", "FROM", "endowment", ")"], "query_toks_no_value": ["select", "school_name", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "endowment", ")"], "question": "List the names of the schools without any endowment.", "question_toks": ["List", "the", "names", "of", "the", "schools", "without", "any", "endowment", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1898", "db_id": "school_finance", "query": "select donator_name from endowment except select donator_name from endowment where amount < 9", "query_toks": ["SELECT", "donator_name", "FROM", "endowment", "EXCEPT", "SELECT", "donator_name", "FROM", "endowment", "WHERE", "amount", "<", "9"], "query_toks_no_value": ["select", "donator_name", "from", "endowment", "except", "select", "donator_name", "from", "endowment", "where", "amount", "<", "value"], "question": "Show the names of all the donors except those whose donation amount less than 9.", "question_toks": ["Show", "the", "names", "of", "all", "the", "donors", "except", "those", "whose", "donation", "amount", "less", "than", "9", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], 9.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4892", "db_id": "school_player", "query": "select location from school where school_id not in (select school_id from player)", "query_toks": ["SELECT", "LOCATION", "FROM", "school", "WHERE", "School_ID", "NOT", "IN", "(", "SELECT", "School_ID", "FROM", "Player", ")"], "query_toks_no_value": ["select", "location", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "player", ")"], "question": "List the locations of schools that do not have any player.", "question_toks": ["List", "the", "locations", "of", "schools", "that", "do", "not", "have", "any", "player", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6510", "db_id": "scientist_1", "query": "select count(*) from scientists where ssn not in (select scientist from assignedto)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")"], "question": "How many scientists do not have any projects assigned to them?", "question_toks": ["How", "many", "scientists", "do", "not", "have", "any", "projects", "assigned", "to", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6507", "db_id": "scientist_1", "query": "select name from scientists where ssn not in (select scientist from assignedto)", "query_toks": ["SELECT", "Name", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")"], "question": "Find the name of scientists who are not assigned to any project.", "question_toks": ["Find", "the", "name", "of", "scientists", "who", "are", "not", "assigned", "to", "any", "project", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6509", "db_id": "scientist_1", "query": "select count(*) from scientists where ssn not in (select scientist from assignedto)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")"], "question": "Find the number of scientists who are not assigned to any project.", "question_toks": ["Find", "the", "number", "of", "scientists", "who", "are", "not", "assigned", "to", "any", "project", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6264", "db_id": "ship_1", "query": "select name , flag from ship where ship_id not in (select ship_id from captain where rank = 'midshipman')", "query_toks": ["SELECT", "name", ",", "flag", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", "WHERE", "rank", "=", "'Midshipman", "'", ")"], "query_toks_no_value": ["select", "name", ",", "flag", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", "where", "rank", "=", "value", ")"], "question": "Find the name and flag of ships that are not steered by any captain with Midshipman rank.", "question_toks": ["Find", "the", "name", "and", "flag", "of", "ships", "that", "are", "not", "steered", "by", "any", "captain", "with", "Midshipman", "rank", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Midshipman\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6260", "db_id": "ship_1", "query": "select name , class from ship where ship_id not in (select ship_id from captain)", "query_toks": ["SELECT", "name", ",", "CLASS", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", ")"], "query_toks_no_value": ["select", "name", ",", "class", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", ")"], "question": "what are the names and classes of the ships that do not have any captain yet?", "question_toks": ["what", "are", "the", "names", "and", "classes", "of", "the", "ships", "that", "do", "not", "have", "any", "captain", "yet", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4024", "db_id": "ship_mission", "query": "select name from ship where ship_id not in (select ship_id from mission)", "query_toks": ["SELECT", "Name", "FROM", "ship", "WHERE", "Ship_ID", "NOT", "IN", "(", "SELECT", "Ship_ID", "FROM", "mission", ")"], "query_toks_no_value": ["select", "name", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "mission", ")"], "question": "List the name of ships that are not involved in any mission", "question_toks": ["List", "the", "name", "of", "ships", "that", "are", "not", "involved", "in", "any", "mission"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4025", "db_id": "ship_mission", "query": "select name from ship where ship_id not in (select ship_id from mission)", "query_toks": ["SELECT", "Name", "FROM", "ship", "WHERE", "Ship_ID", "NOT", "IN", "(", "SELECT", "Ship_ID", "FROM", "mission", ")"], "query_toks_no_value": ["select", "name", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "mission", ")"], "question": "What are the names of the ships that are not involved in any missions?", "question_toks": ["What", "are", "the", "names", "of", "the", "ships", "that", "are", "not", "involved", "in", "any", "missions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5424", "db_id": "shop_membership", "query": "select name from member where member_id not in (select member_id from membership_register_branch)", "query_toks": ["SELECT", "name", "FROM", "member", "WHERE", "member_id", "NOT", "IN", "(", "SELECT", "member_id", "FROM", "membership_register_branch", ")"], "query_toks_no_value": ["select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "membership_register_branch", ")"], "question": "Show member names without any registered branch.", "question_toks": ["Show", "member", "names", "without", "any", "registered", "branch", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5435", "db_id": "shop_membership", "query": "select city from branch except select city from branch where membership_amount > 100", "query_toks": ["SELECT", "city", "FROM", "branch", "EXCEPT", "SELECT", "city", "FROM", "branch", "WHERE", "membership_amount", ">", "100"], "query_toks_no_value": ["select", "city", "from", "branch", "except", "select", "city", "from", "branch", "where", "membership_amount", ">", "value"], "question": "What are the cities that do not have any branches with more than 100 members?", "question_toks": ["What", "are", "the", "cities", "that", "do", "not", "have", "any", "branches", "with", "more", "than", "100", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5426", "db_id": "shop_membership", "query": "select name , city from branch where branch_id not in (select branch_id from membership_register_branch)", "query_toks": ["SELECT", "name", ",", "city", "FROM", "branch", "WHERE", "branch_id", "NOT", "IN", "(", "SELECT", "branch_id", "FROM", "membership_register_branch", ")"], "query_toks_no_value": ["select", "name", ",", "city", "from", "branch", "where", "branch_id", "not", "in", "(", "select", "branch_id", "from", "membership_register_branch", ")"], "question": "List the branch name and city without any registered members.", "question_toks": ["List", "the", "branch", "name", "and", "city", "without", "any", "registered", "members", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5427", "db_id": "shop_membership", "query": "select name , city from branch where branch_id not in (select branch_id from membership_register_branch)", "query_toks": ["SELECT", "name", ",", "city", "FROM", "branch", "WHERE", "branch_id", "NOT", "IN", "(", "SELECT", "branch_id", "FROM", "membership_register_branch", ")"], "query_toks_no_value": ["select", "name", ",", "city", "from", "branch", "where", "branch_id", "not", "in", "(", "select", "branch_id", "from", "membership_register_branch", ")"], "question": "What are the names and cities of the branches that do not have any registered members?", "question_toks": ["What", "are", "the", "names", "and", "cities", "of", "the", "branches", "that", "do", "not", "have", "any", "registered", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5425", "db_id": "shop_membership", "query": "select name from member where member_id not in (select member_id from membership_register_branch)", "query_toks": ["SELECT", "name", "FROM", "member", "WHERE", "member_id", "NOT", "IN", "(", "SELECT", "member_id", "FROM", "membership_register_branch", ")"], "query_toks_no_value": ["select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "membership_register_branch", ")"], "question": "What are the names of the members that have never registered at any branch?", "question_toks": ["What", "are", "the", "names", "of", "the", "members", "that", "have", "never", "registered", "at", "any", "branch", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5434", "db_id": "shop_membership", "query": "select city from branch except select city from branch where membership_amount > 100", "query_toks": ["SELECT", "city", "FROM", "branch", "EXCEPT", "SELECT", "city", "FROM", "branch", "WHERE", "membership_amount", ">", "100"], "query_toks_no_value": ["select", "city", "from", "branch", "except", "select", "city", "from", "branch", "where", "membership_amount", ">", "value"], "question": "Show all cities without a branch having more than 100 memberships.", "question_toks": ["Show", "all", "cities", "without", "a", "branch", "having", "more", "than", "100", "memberships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1026", "db_id": "singer", "query": "select name from singer where singer_id not in (select singer_id from song)", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Singer_ID", "NOT", "IN", "(", "SELECT", "Singer_ID", "FROM", "song", ")"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "singer_id", "not", "in", "(", "select", "singer_id", "from", "song", ")"], "question": "List the name of singers that do not have any song.", "question_toks": ["List", "the", "name", "of", "singers", "that", "do", "not", "have", "any", "song", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1027", "db_id": "singer", "query": "select name from singer where singer_id not in (select singer_id from song)", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Singer_ID", "NOT", "IN", "(", "SELECT", "Singer_ID", "FROM", "song", ")"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "singer_id", "not", "in", "(", "select", "singer_id", "from", "song", ")"], "question": "What is the sname of every sing that does not have any song?", "question_toks": ["What", "is", "the", "sname", "of", "every", "sing", "that", "does", "not", "have", "any", "song", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5045", "db_id": "soccer_2", "query": "select sum(enr) from college where cname not in (select cname from tryout where ppos = \"goalie\")", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "college", "WHERE", "cName", "NOT", "IN", "(", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "``", "goalie", "''", ")"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college", "where", "cname", "not", "in", "(", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", ")"], "question": "What is the total number of students enrolled in schools without any goalies?", "question_toks": ["What", "is", "the", "total", "number", "of", "students", "enrolled", "in", "schools", "without", "any", "goalies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5044", "db_id": "soccer_2", "query": "select sum(enr) from college where cname not in (select cname from tryout where ppos = \"goalie\")", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "college", "WHERE", "cName", "NOT", "IN", "(", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "``", "goalie", "''", ")"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college", "where", "cname", "not", "in", "(", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", ")"], "question": "What is the total number of enrollment of schools that do not have any goalie player?", "question_toks": ["What", "is", "the", "total", "number", "of", "enrollment", "of", "schools", "that", "do", "not", "have", "any", "goalie", "player", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5035", "db_id": "soccer_2", "query": "select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'mid' except select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'goalie'", "query_toks": ["SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value"], "question": "What are the names of all the states with college students playing in the mid position but no goalies?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "but", "no", "goalies", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4597", "db_id": "solvency_ii", "query": "select product_name from products where product_id not in (select product_id from products_in_events)", "query_toks": ["SELECT", "Product_Name", "FROM", "Products", "WHERE", "Product_ID", "NOT", "IN", "(", "SELECT", "Product_ID", "FROM", "Products_in_Events", ")"], "query_toks_no_value": ["select", "product_name", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "products_in_events", ")"], "question": "List the names of products that are not in any event.", "question_toks": ["List", "the", "names", "of", "products", "that", "are", "not", "in", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3371", "db_id": "sports_competition", "query": "select name from club where club_id not in (select club_id from player)", "query_toks": ["SELECT", "name", "FROM", "CLub", "WHERE", "Club_ID", "NOT", "IN", "(", "SELECT", "Club_ID", "FROM", "player", ")"], "query_toks_no_value": ["select", "name", "from", "club", "where", "club_id", "not", "in", "(", "select", "club_id", "from", "player", ")"], "question": "List the names of clubs that do not have any players.", "question_toks": ["List", "the", "names", "of", "clubs", "that", "do", "not", "have", "any", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3372", "db_id": "sports_competition", "query": "select name from club where club_id not in (select club_id from player)", "query_toks": ["SELECT", "name", "FROM", "CLub", "WHERE", "Club_ID", "NOT", "IN", "(", "SELECT", "Club_ID", "FROM", "player", ")"], "query_toks_no_value": ["select", "name", "from", "club", "where", "club_id", "not", "in", "(", "select", "club_id", "from", "player", ")"], "question": "What are the names of all clubs that do not have any players?", "question_toks": ["What", "are", "the", "names", "of", "all", "clubs", "that", "do", "not", "have", "any", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3387", "db_id": "sports_competition", "query": "select country from competition except select country from competition where competition_type = 'friendly'", "query_toks": ["SELECT", "country", "FROM", "competition", "EXCEPT", "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Friendly", "'"], "query_toks_no_value": ["select", "country", "from", "competition", "except", "select", "country", "from", "competition", "where", "competition_type", "=", "value"], "question": "Find the countries that have never participated in any competition with Friendly type.", "question_toks": ["Find", "the", "countries", "that", "have", "never", "participated", "in", "any", "competition", "with", "Friendly", "type", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Friendly\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3388", "db_id": "sports_competition", "query": "select country from competition except select country from competition where competition_type = 'friendly'", "query_toks": ["SELECT", "country", "FROM", "competition", "EXCEPT", "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Friendly", "'"], "query_toks_no_value": ["select", "country", "from", "competition", "except", "select", "country", "from", "competition", "where", "competition_type", "=", "value"], "question": "What are the countries that have never participated in any friendly-type competitions?", "question_toks": ["What", "are", "the", "countries", "that", "have", "never", "participated", "in", "any", "friendly-type", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Friendly\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3346", "db_id": "sports_competition", "query": "select distinct year from competition where competition_type != \"tournament\"", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "competition", "WHERE", "Competition_type", "!", "=", "``", "Tournament", "''"], "query_toks_no_value": ["select", "distinct", "year", "from", "competition", "where", "competition_type", "!", "=", "value"], "question": "What are the different years for all competitions that are not of type equal to tournament?", "question_toks": ["What", "are", "the", "different", "years", "for", "all", "competitions", "that", "are", "not", "of", "type", "equal", "to", "tournament", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 21, false], null], "\"Tournament\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4939", "db_id": "store_product", "query": "select product from product where product != (select max_page_size from product group by max_page_size order by count(*) desc limit 1)", "query_toks": ["SELECT", "product", "FROM", "product", "WHERE", "product", "!", "=", "(", "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "product", "from", "product", "where", "product", "!", "=", "(", "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What are the names of all products that are not the most frequently-used maximum page size?", "question_toks": ["What", "are", "the", "names", "of", "all", "products", "that", "are", "not", "the", "most", "frequently-used", "maximum", "page", "size", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2719", "db_id": "storm_record", "query": "select name from storm where storm_id not in (select storm_id from affected_region)", "query_toks": ["SELECT", "name", "FROM", "storm", "WHERE", "storm_id", "NOT", "IN", "(", "SELECT", "storm_id", "FROM", "affected_region", ")"], "query_toks_no_value": ["select", "name", "from", "storm", "where", "storm_id", "not", "in", "(", "select", "storm_id", "from", "affected_region", ")"], "question": "What are the names of storms that did not affect any regions?", "question_toks": ["What", "are", "the", "names", "of", "storms", "that", "did", "not", "affect", "any", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REMOVE", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2696", "db_id": "storm_record", "query": "select region_name from region where region_name != 'denmark'", "query_toks": ["SELECT", "region_name", "FROM", "region", "WHERE", "region_name", "!", "=", "'Denmark", "'"], "query_toks_no_value": ["select", "region_name", "from", "region", "where", "region_name", "!", "=", "value"], "question": "Show names for all regions except for Denmark.", "question_toks": ["Show", "names", "for", "all", "regions", "except", "for", "Denmark", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Denmark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2697", "db_id": "storm_record", "query": "select region_name from region where region_name != 'denmark'", "query_toks": ["SELECT", "region_name", "FROM", "region", "WHERE", "region_name", "!", "=", "'Denmark", "'"], "query_toks_no_value": ["select", "region_name", "from", "region", "where", "region_name", "!", "=", "value"], "question": "Return the names of all regions other than Denmark.", "question_toks": ["Return", "the", "names", "of", "all", "regions", "other", "than", "Denmark", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Denmark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2722", "db_id": "storm_record", "query": "select name from storm except select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id having count(*) >= 2", "query_toks": ["SELECT", "name", "FROM", "storm", "EXCEPT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "name", "from", "storm", "except", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show all storm names except for those with at least two affected regions.", "question_toks": ["Show", "all", "storm", "names", "except", "for", "those", "with", "at", "least", "two", "affected", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4076", "db_id": "student_1", "query": "select distinct t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 1 except select t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t2.firstname = \"otha\" and t2.lastname = \"moyer\"", "query_toks": ["SELECT", "DISTINCT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "1", "EXCEPT", "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "OTHA", "''", "AND", "T2.lastname", "=", "``", "MOYER", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "except", "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value"], "question": "Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.", "question_toks": ["Find", "all", "first-grade", "students", "who", "are", "NOT", "taught", "by", "OTHA", "MOYER", ".", "Report", "their", "first", "and", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"OTHA\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"MOYER\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0104", "db_id": "student_assessment", "query": "select * from student_course_registrations where student_id not in (select student_id from student_course_attendance)", "query_toks": ["SELECT", "*", "FROM", "student_course_registrations", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")"], "query_toks_no_value": ["select", "*", "from", "student_course_registrations", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")"], "question": "What are all details of the students who registered but did not attend any course?", "question_toks": ["What", "are", "all", "details", "of", "the", "students", "who", "registered", "but", "did", "not", "attend", "any", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0103", "db_id": "student_assessment", "query": "select * from student_course_registrations where student_id not in (select student_id from student_course_attendance)", "query_toks": ["SELECT", "*", "FROM", "student_course_registrations", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")"], "query_toks_no_value": ["select", "*", "from", "student_course_registrations", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")"], "question": "What are all info of students who registered courses but not attended courses?", "question_toks": ["What", "are", "all", "info", "of", "students", "who", "registered", "courses", "but", "not", "attended", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0543", "db_id": "student_transcripts_tracking", "query": "select semester_name from semesters where semester_id not in( select semester_id from student_enrolment )", "query_toks": ["SELECT", "semester_name", "FROM", "Semesters", "WHERE", "semester_id", "NOT", "IN", "(", "SELECT", "semester_id", "FROM", "Student_Enrolment", ")"], "query_toks_no_value": ["select", "semester_name", "from", "semesters", "where", "semester_id", "not", "in", "(", "select", "semester_id", "from", "student_enrolment", ")"], "question": "Which semesters do not have any student enrolled? List the semester name.", "question_toks": ["Which", "semesters", "do", "not", "have", "any", "student", "enrolled", "?", "List", "the", "semester", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0550", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "=", "value", "except", "select", "distinct", "t3", ".", "last_name", "from", "students", "as", "t3", "join", "student_enrolment", "as", "t4", "on", "t3", ".", "student_id", "=", "t4", ".", "student_id"], "question": "What are the last name of the students who live in North Carolina but have not registered in any degree programs?", "question_toks": ["What", "are", "the", "last", "name", "of", "the", "students", "who", "live", "in", "North", "Carolina", "but", "have", "not", "registered", "in", "any", "degree", "programs", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"NorthCarolina\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [true, [[0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0549", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "=", "value", "except", "select", "distinct", "t3", ".", "last_name", "from", "students", "as", "t3", "join", "student_enrolment", "as", "t4", "on", "t3", ".", "student_id", "=", "t4", ".", "student_id"], "question": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.", "question_toks": ["Find", "the", "last", "name", "of", "the", "students", "who", "currently", "live", "in", "the", "state", "of", "North", "Carolina", "but", "have", "not", "registered", "in", "any", "degree", "program", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"NorthCarolina\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [true, [[0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5622", "db_id": "swimming", "query": "select name from stadium where id not in (select stadium_id from event)", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "event", ")"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "id", "not", "in", "(", "select", "stadium_id", "from", "event", ")"], "question": "Find the names of stadiums which have never had any event.", "question_toks": ["Find", "the", "names", "of", "stadiums", "which", "have", "never", "had", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[true, 8, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1671", "db_id": "theme_gallery", "query": "select name from artist where artist_id not in (select artist_id from exhibition)", "query_toks": ["SELECT", "name", "FROM", "artist", "WHERE", "artist_id", "NOT", "IN", "(", "SELECT", "artist_id", "FROM", "exhibition", ")"], "query_toks_no_value": ["select", "name", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "exhibition", ")"], "question": "Show names for artists without any exhibition.", "question_toks": ["Show", "names", "for", "artists", "without", "any", "exhibition", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1672", "db_id": "theme_gallery", "query": "select name from artist where artist_id not in (select artist_id from exhibition)", "query_toks": ["SELECT", "name", "FROM", "artist", "WHERE", "artist_id", "NOT", "IN", "(", "SELECT", "artist_id", "FROM", "exhibition", ")"], "query_toks_no_value": ["select", "name", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "exhibition", ")"], "question": "What are the names of artists that have not had any exhibitions?", "question_toks": ["What", "are", "the", "names", "of", "artists", "that", "have", "not", "had", "any", "exhibitions", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1655", "db_id": "theme_gallery", "query": "select name , year_join from artist where country != 'united states'", "query_toks": ["SELECT", "name", ",", "year_join", "FROM", "artist", "WHERE", "country", "!", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "name", ",", "year_join", "from", "artist", "where", "country", "!", "=", "value"], "question": "Show all artist names and the year joined who are not from United States.", "question_toks": ["Show", "all", "artist", "names", "and", "the", "year", "joined", "who", "are", "not", "from", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1681", "db_id": "theme_gallery", "query": "select name from artist except select t2.name from exhibition as t1 join artist as t2 on t1.artist_id = t2.artist_id where t1.year = 2004", "query_toks": ["SELECT", "name", "FROM", "artist", "EXCEPT", "SELECT", "T2.name", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "WHERE", "T1.year", "=", "2004"], "query_toks_no_value": ["select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "year", "=", "value"], "question": "Show all artist names who didn't have an exhibition in 2004.", "question_toks": ["Show", "all", "artist", "names", "who", "did", "n't", "have", "an", "exhibition", "in", "2004", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 2004.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4339", "db_id": "tracking_grants_for_research", "query": "select project_details from projects where project_id not in ( select project_id from project_staff where role_code = 'researcher' )", "query_toks": ["SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'researcher", "'", ")"], "query_toks_no_value": ["select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_staff", "where", "role_code", "=", "value", ")"], "question": "What are the details for all projects that did not hire any staff in a research role?", "question_toks": ["What", "are", "the", "details", "for", "all", "projects", "that", "did", "not", "hire", "any", "staff", "in", "a", "research", "role", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[true, 8, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"researcher\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4338", "db_id": "tracking_grants_for_research", "query": "select project_details from projects where project_id not in ( select project_id from project_staff where role_code = 'researcher' )", "query_toks": ["SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'researcher", "'", ")"], "query_toks_no_value": ["select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_staff", "where", "role_code", "=", "value", ")"], "question": "List the project details of the projects which did not hire any staff for a researcher role.", "question_toks": ["List", "the", "project", "details", "of", "the", "projects", "which", "did", "not", "hire", "any", "staff", "for", "a", "researcher", "role", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[true, 8, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"researcher\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5884", "db_id": "tracking_share_transactions", "query": "select lot_details from lots except select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.lot_id", "query_toks": ["SELECT", "lot_details", "FROM", "Lots", "EXCEPT", "SELECT", "T1.lot_details", "FROM", "Lots", "AS", "T1", "JOIN", "transactions_lots", "AS", "T2", "ON", "T1.lot_id", "=", "T2.lot_id"], "query_toks_no_value": ["select", "lot_details", "from", "lots", "except", "select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "lot_id"], "question": "What are the details of the lots which are not used in any transactions?", "question_toks": ["What", "are", "the", "details", "of", "the", "lots", "which", "are", "not", "used", "in", "any", "transactions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6618", "db_id": "train_station", "query": "select name from station where station_id not in (select station_id from train_station)", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "train_station", ")"], "query_toks_no_value": ["select", "name", "from", "station", "where", "station_id", "not", "in", "(", "select", "station_id", "from", "train_station", ")"], "question": "Show station names without any trains.", "question_toks": ["Show", "station", "names", "without", "any", "trains", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6620", "db_id": "train_station", "query": "select t2.name from train_station as t1 join train as t2 on t1.train_id = t2.train_id where t1.station_id not in (select t4.station_id from train_station as t3 join station as t4 on t3.station_id = t4.station_id where t4.location = \"london\")", "query_toks": ["SELECT", "T2.name", "FROM", "train_station", "AS", "T1", "JOIN", "train", "AS", "T2", "ON", "T1.train_id", "=", "T2.train_id", "WHERE", "T1.station_id", "NOT", "IN", "(", "SELECT", "T4.station_id", "FROM", "train_station", "AS", "T3", "JOIN", "station", "AS", "T4", "ON", "T3.station_id", "=", "T4.station_id", "WHERE", "t4.location", "=", "``", "London", "''", ")"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "train_id", "=", "t2", ".", "train_id", "where", "t1", ".", "station_id", "not", "in", "(", "select", "t4", ".", "station_id", "from", "train_station", "as", "t3", "join", "station", "as", "t4", "on", "t3", ".", "station_id", "=", "t4", ".", "station_id", "where", "t4", ".", "location", "=", "value", ")"], "question": "Find the names of the trains that do not pass any station located in London.", "question_toks": ["Find", "the", "names", "of", "the", "trains", "that", "do", "not", "pass", "any", "station", "located", "in", "London", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6602", "db_id": "train_station", "query": "select name , total_passengers from station where location != 'london'", "query_toks": ["SELECT", "name", ",", "total_passengers", "FROM", "station", "WHERE", "LOCATION", "!", "=", "'London", "'"], "query_toks_no_value": ["select", "name", ",", "total_passengers", "from", "station", "where", "location", "!", "=", "value"], "question": "Show the names and total passengers for all train stations not in London.", "question_toks": ["Show", "the", "names", "and", "total", "passengers", "for", "all", "train", "stations", "not", "in", "London", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ALL", "NEGATION_WITH_ANY_ALL", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6607", "db_id": "train_station", "query": "select location from station except select location from station where number_of_platforms >= 15", "query_toks": ["SELECT", "LOCATION", "FROM", "station", "EXCEPT", "SELECT", "LOCATION", "FROM", "station", "WHERE", "number_of_platforms", ">", "=", "15"], "query_toks_no_value": ["select", "location", "from", "station", "except", "select", "location", "from", "station", "where", "number_of_platforms", ">", "=", "value"], "question": "Show all locations which don't have a train station with at least 15 platforms.", "question_toks": ["Show", "all", "locations", "which", "do", "n't", "have", "a", "train", "station", "with", "at", "least", "15", "platforms", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 15.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0643", "db_id": "tvshow", "query": "select id from tv_channel except select channel from cartoon where directed_by = 'ben jones'", "query_toks": ["SELECT", "id", "FROM", "TV_Channel", "EXCEPT", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'"], "query_toks_no_value": ["select", "id", "from", "tv_channel", "except", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value"], "question": "find the id of tv channels that do not play any cartoon directed by Ben Jones.", "question_toks": ["find", "the", "id", "of", "tv", "channels", "that", "do", "not", "play", "any", "cartoon", "directed", "by", "Ben", "Jones", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0635", "db_id": "tvshow", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "which countries' tv channels are not playing any cartoon written by Todd Casey?", "question_toks": ["which", "countries", "'", "tv", "channels", "are", "not", "playing", "any", "cartoon", "written", "by", "Todd", "Casey", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"Todd Casey\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0644", "db_id": "tvshow", "query": "select id from tv_channel except select channel from cartoon where directed_by = 'ben jones'", "query_toks": ["SELECT", "id", "FROM", "TV_Channel", "EXCEPT", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'"], "query_toks_no_value": ["select", "id", "from", "tv_channel", "except", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value"], "question": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?", "question_toks": ["What", "are", "the", "ids", "of", "the", "TV", "channels", "that", "do", "not", "have", "any", "cartoons", "directed", "by", "Ben", "Jones", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0645", "db_id": "tvshow", "query": "select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'ben jones')", "query_toks": ["SELECT", "package_option", "FROM", "TV_Channel", "WHERE", "id", "NOT", "IN", "(", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'", ")"], "query_toks_no_value": ["select", "package_option", "from", "tv_channel", "where", "id", "not", "in", "(", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value", ")"], "question": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.", "question_toks": ["find", "the", "package", "option", "of", "the", "tv", "channel", "that", "do", "not", "have", "any", "cartoon", "directed", "by", "Ben", "Jones", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0646", "db_id": "tvshow", "query": "select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'ben jones')", "query_toks": ["SELECT", "package_option", "FROM", "TV_Channel", "WHERE", "id", "NOT", "IN", "(", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'", ")"], "query_toks_no_value": ["select", "package_option", "from", "tv_channel", "where", "id", "not", "in", "(", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value", ")"], "question": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?", "question_toks": ["What", "are", "the", "package", "options", "of", "all", "tv", "channels", "that", "are", "not", "playing", "any", "cartoons", "directed", "by", "Ben", "Jones", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0640", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel where language != 'english'", "query_toks": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel", "WHERE", "LANGUAGE", "!", "=", "'English", "'"], "query_toks_no_value": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel", "where", "language", "!", "=", "value"], "question": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?", "question_toks": ["What", "is", "the", "pixel", "aspect", "ratio", "and", "country", "of", "origin", "for", "all", "TV", "channels", "that", "do", "not", "use", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0298", "db_id": "twitter_1", "query": "select avg(followers) from user_profiles where uid not in (select uid from tweets)", "query_toks": ["SELECT", "avg", "(", "followers", ")", "FROM", "user_profiles", "WHERE", "UID", "NOT", "IN", "(", "SELECT", "UID", "FROM", "tweets", ")"], "query_toks_no_value": ["select", "avg", "(", "followers", ")", "from", "user_profiles", "where", "uid", "not", "in", "(", "select", "uid", "from", "tweets", ")"], "question": "Find the average number of followers for the users who do not have any tweet.", "question_toks": ["Find", "the", "average", "number", "of", "followers", "for", "the", "users", "who", "do", "not", "have", "any", "tweet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "NEGATION_WITH_ANY_ALL", "WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5494", "db_id": "voter_2", "query": "select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.vice_president_vote except select distinct fname from student where city_code = \"pit\"", "query_toks": ["SELECT", "DISTINCT", "T1.Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.VICE_PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "city_code", "=", "``", "PIT", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "except", "select", "distinct", "fname", "from", "student", "where", "city_code", "=", "value"], "question": "Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.", "question_toks": ["Find", "the", "distinct", "first", "names", "of", "all", "the", "students", "who", "have", "vice", "president", "votes", "and", "whose", "city", "code", "is", "not", "PIT", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"PIT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5496", "db_id": "voter_2", "query": "select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = president_vote except select distinct lname from student where advisor = \"2192\"", "query_toks": ["SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "LName", "FROM", "STUDENT", "WHERE", "Advisor", "=", "``", "2192", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote", "except", "select", "distinct", "lname", "from", "student", "where", "advisor", "=", "value"], "question": "Find the distinct last names of all the students who have president votes and whose advisor is not 2192.", "question_toks": ["Find", "the", "distinct", "last", "names", "of", "all", "the", "students", "who", "have", "president", "votes", "and", "whose", "advisor", "is", "not", "2192", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"2192\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1641", "db_id": "wedding", "query": "select name , age from people where is_male = 't' and people_id not in (select male_id from wedding)", "query_toks": ["SELECT", "name", ",", "age", "FROM", "people", "WHERE", "is_male", "=", "'T", "'", "AND", "people_id", "NOT", "IN", "(", "SELECT", "male_id", "FROM", "wedding", ")"], "query_toks_no_value": ["select", "name", ",", "age", "from", "people", "where", "is_male", "=", "value", "and", "people_id", "not", "in", "(", "select", "male_id", "from", "wedding", ")"], "question": "Show the name and age for all male people who don't have a wedding.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "male", "people", "who", "do", "n't", "have", "a", "wedding", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"T\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_UNORDERED", "_NEGATION_ALL", "BINARY", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1642", "db_id": "wedding", "query": "select name from church except select t1.name from church as t1 join wedding as t2 on t1.church_id = t2.church_id where t2.year = 2015", "query_toks": ["SELECT", "name", "FROM", "church", "EXCEPT", "SELECT", "T1.name", "FROM", "church", "AS", "T1", "JOIN", "wedding", "AS", "T2", "ON", "T1.church_id", "=", "T2.church_id", "WHERE", "T2.year", "=", "2015"], "query_toks_no_value": ["select", "name", "from", "church", "except", "select", "t1", ".", "name", "from", "church", "as", "t1", "join", "wedding", "as", "t2", "on", "t1", ".", "church_id", "=", "t2", ".", "church_id", "where", "t2", ".", "year", "=", "value"], "question": "Show all church names except for those that had a wedding in year 2015.", "question_toks": ["Show", "all", "church", "names", "except", "for", "those", "that", "had", "a", "wedding", "in", "year", "2015", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5843", "db_id": "workshop_paper", "query": "select author from submission where submission_id not in (select submission_id from acceptance)", "query_toks": ["SELECT", "Author", "FROM", "submission", "WHERE", "Submission_ID", "NOT", "IN", "(", "SELECT", "Submission_ID", "FROM", "acceptance", ")"], "query_toks_no_value": ["select", "author", "from", "submission", "where", "submission_id", "not", "in", "(", "select", "submission_id", "from", "acceptance", ")"], "question": "Which authors did not submit to any workshop?", "question_toks": ["Which", "authors", "did", "not", "submit", "to", "any", "workshop", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5842", "db_id": "workshop_paper", "query": "select author from submission where submission_id not in (select submission_id from acceptance)", "query_toks": ["SELECT", "Author", "FROM", "submission", "WHERE", "Submission_ID", "NOT", "IN", "(", "SELECT", "Submission_ID", "FROM", "acceptance", ")"], "query_toks_no_value": ["select", "author", "from", "submission", "where", "submission_id", "not", "in", "(", "select", "submission_id", "from", "acceptance", ")"], "question": "List the authors who do not have submission to any workshop.", "question_toks": ["List", "the", "authors", "who", "do", "not", "have", "submission", "to", "any", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_negation_with_any_all_0038", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "question": "Find names of the courses that do not have any prerequisite?", "question_toks": ["Find", "names", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_negation_with_any_all_0106", "db_id": "epinions_1", "query": "select name from useracct where u_id not in (select u_id from review)", "query_toks": ["SELECT", "name", "FROM", "useracct", "WHERE", "u_id", "NOT", "IN", "(", "SELECT", "u_id", "FROM", "review", ")"], "query_toks_no_value": ["SELECT", "name", "FROM", "useracct", "WHERE", "u_id", "NOT", "IN", "(", "SELECT", "u_id", "FROM", "review", ")"], "question": "Find names of users who did not leave any review.", "question_toks": ["Find", "names", "of", "users", "who", "did", "not", "leave", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3437", "db_id": "hr_1", "query": "select * from employees where first_name like '%d%' or first_name like '%s%' order by salary desc", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "D", "%", "'", "OR", "first_name", "LIKE", "'", "%", "S", "%", "'", "ORDER", "BY", "salary", "DESC"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "first_name", "like", "value", "or", "first_name", "like", "value", "order", "by", "salary", "desc"], "question": "display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary.", "question_toks": ["display", "all", "the", "information", "for", "all", "employees", "who", "have", "the", "letters", "D", "or", "S", "in", "their", "first", "name", "and", "also", "arrange", "the", "result", "in", "descending", "order", "by", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%D%\"", null], "or", [false, 9, [0, [0, 15, false], null], "\"%S%\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3423", "db_id": "hr_1", "query": "select * from employees where salary between 8000 and 12000 and commission_pct != \"null\" or department_id != 40", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000", "AND", "commission_pct", "!", "=", "``", "null", "''", "OR", "department_id", "!", "=", "40"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "salary", "between", "value", "and", "value", "and", "commission_pct", "!", "=", "value", "or", "department_id", "!", "=", "value"], "question": "display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40.", "question_toks": ["display", "all", "the", "information", "of", "employees", "whose", "salary", "is", "in", "the", "range", "of", "8000", "and", "12000", "and", "commission", "is", "not", "null", "or", "department", "number", "does", "not", "equal", "to", "40", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 8000.0, 12000.0], "and", [false, 7, [0, [0, 22, false], null], "\"null\"", null], "or", [false, 7, [0, [0, 24, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2452", "db_id": "movie_1", "query": "select distinct year from movie as t1 join rating as t2 on t1.mid = t2.mid where t2.stars >= 4 order by t1.year", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.stars", ">", "=", "4", "ORDER", "BY", "T1.year"], "query_toks_no_value": ["select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">", "=", "value", "order", "by", "t1", ".", "year"], "question": "Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.", "question_toks": ["Find", "all", "years", "that", "have", "a", "movie", "that", "received", "a", "rating", "of", "4", "or", "5", ",", "and", "sort", "them", "in", "increasing", "order", "of", "year", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3319", "db_id": "college_1", "query": "select t1.stu_fname , t1.stu_lname from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num where t2.enroll_grade = 'c' or t2.enroll_grade = 'a'", "query_toks": ["SELECT", "T1.stu_fname", ",", "T1.stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "T2.enroll_grade", "=", "'C", "'", "OR", "T2.enroll_grade", "=", "'A", "'"], "query_toks_no_value": ["select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value", "or", "t2", ".", "enroll_grade", "=", "value"], "question": "Find names of all students who took some course and got A or C.", "question_toks": ["Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "got", "A", "or", "C", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"C\"", null], "or", [false, 2, [0, [0, 26, false], null], "\"A\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3851", "db_id": "insurance_policies", "query": "select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id having count(*) > 2 union select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id where t1.amount_claimed = ( select max(amount_claimed) from claims )", "query_toks": ["SELECT", "T1.Date_Claim_Made", ",", "T1.Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "GROUP", "BY", "T1.Claim_id", "HAVING", "count", "(", "*", ")", ">", "2", "UNION", "SELECT", "T1.Date_Claim_Made", ",", "T1.Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "WHERE", "T1.Amount_Claimed", "=", "(", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")"], "query_toks_no_value": ["select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")"], "question": "Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made and the id of the claim.", "question_toks": ["Find", "the", "claims", "that", "led", "to", "more", "than", "two", "settlements", "or", "have", "the", "maximum", "claim", "value", ".", "For", "each", "of", "them", ",", "return", "the", "date", "the", "claim", "was", "made", "and", "the", "id", "of", "the", "claim", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0531", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value"], "question": "Find the different first names and cities of the students who have allergy to milk or cat.", "question_toks": ["Find", "the", "different", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "to", "milk", "or", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0792", "db_id": "coffee_shop", "query": "select name , member_id from member where membership_card = 'black' or age < 30", "query_toks": ["SELECT", "name", ",", "member_id", "FROM", "member", "WHERE", "Membership_card", "=", "'Black", "'", "OR", "age", "<", "30"], "query_toks_no_value": ["select", "name", ",", "member_id", "from", "member", "where", "membership_card", "=", "value", "or", "age", "<", "value"], "question": "Find the ids and names of members who are under age 30 or with black membership card.", "question_toks": ["Find", "the", "ids", "and", "names", "of", "members", "who", "are", "under", "age", "30", "or", "with", "black", "membership", "card", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Black\"", null], "or", [false, 4, [0, [0, 9, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6049", "db_id": "game_1", "query": "select t2.lname , t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["SELECT", "T2.lname", ",", "T2.fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.SportName", "=", "``", "Football", "''", "OR", "T1.SportName", "=", "``", "Lacrosse", "''"], "query_toks_no_value": ["select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value", "or", "t1", ".", "sportname", "=", "value"], "question": "Find the last and first name of students who are playing Football or Lacrosse.", "question_toks": ["Find", "the", "last", "and", "first", "name", "of", "students", "who", "are", "playing", "Football", "or", "Lacrosse", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"Lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4442", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'dan' or t2.friend = 'alice'", "query_toks": ["SELECT", "DISTINCT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "OR", "T2.friend", "=", "'Alice", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value"], "question": "Find the name and age of the person who is a friend of Dan or Alice.", "question_toks": ["Find", "the", "name", "and", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "or", "Alice", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5698", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100"], "query_toks_no_value": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value"], "question": "Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.", "question_toks": ["Find", "the", "name", "and", "gender", "type", "of", "the", "dorms", "whose", "capacity", "is", "greater", "than", "300", "or", "less", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5912", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''"], "query_toks_no_value": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value"], "question": "Find the names and opening hours of the tourist attractions that we get to by bus or walk.", "question_toks": ["Find", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "we", "get", "to", "by", "bus", "or", "walk", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4705", "db_id": "college_3", "query": "select dname from department where division = \"as\" union select dname from department where division = \"en\" and building = \"neb\"", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "AS", "''", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "EN", "''", "AND", "Building", "=", "``", "NEB", "''"], "query_toks_no_value": ["select", "dname", "from", "department", "where", "division", "=", "value", "union", "select", "dname", "from", "department", "where", "division", "=", "value", "and", "building", "=", "value"], "question": "Find the names of departments that are either in division AS or in division EN and in Building NEB.", "question_toks": ["Find", "the", "names", "of", "departments", "that", "are", "either", "in", "division", "AS", "or", "in", "division", "EN", "and", "in", "Building", "NEB", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"AS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"EN\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"NEB\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5934", "db_id": "cre_Theme_park", "query": "select t1.name , t3.visit_date from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"vincent\" or t2.tourist_details = \"vivian\"", "query_toks": ["SELECT", "T1.Name", ",", "T3.Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Vincent", "''", "OR", "T2.Tourist_Details", "=", "``", "Vivian", "''"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "or", "t2", ".", "tourist_details", "=", "value"], "question": "For each tourist attraction, return its name and the date when the tourists named Vincent or Vivian visited there.", "question_toks": ["For", "each", "tourist", "attraction", ",", "return", "its", "name", "and", "the", "date", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Vincent\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Vivian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3398", "db_id": "manufacturer", "query": "select name , open_year from manufacturer where num_of_shops > 10 or num_of_factories < 10", "query_toks": ["SELECT", "name", ",", "open_year", "FROM", "manufacturer", "WHERE", "num_of_shops", ">", "10", "OR", "Num_of_Factories", "<", "10"], "query_toks_no_value": ["select", "name", ",", "open_year", "from", "manufacturer", "where", "num_of_shops", ">", "value", "or", "num_of_factories", "<", "value"], "question": "Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.", "question_toks": ["Give", "me", "the", "name", "and", "year", "of", "opening", "of", "the", "manufacturers", "that", "have", "either", "less", "than", "10", "factories", "or", "more", "than", "10", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 10.0, null], "or", [false, 4, [0, [0, 4, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4770", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600 or product_price > 900", "query_toks": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900"], "query_toks_no_value": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value"], "question": "Give the ids and names of products with price lower than 600 or higher than 900.", "question_toks": ["Give", "the", "ids", "and", "names", "of", "products", "with", "price", "lower", "than", "600", "or", "higher", "than", "900", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2453", "db_id": "movie_1", "query": "select distinct year from movie as t1 join rating as t2 on t1.mid = t2.mid where t2.stars >= 4 order by t1.year", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.stars", ">", "=", "4", "ORDER", "BY", "T1.year"], "query_toks_no_value": ["select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">", "=", "value", "order", "by", "t1", ".", "year"], "question": "In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently?", "question_toks": ["In", "what", "years", "did", "a", "movie", "receive", "a", "4", "or", "5", "star", "rating", ",", "and", "list", "the", "years", "from", "oldest", "to", "most", "recently", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1284", "db_id": "game_injury", "query": "select t1.season , t2.name from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id where t3.injury = 'foot injury' or t3.injury = 'knee problem'", "query_toks": ["SELECT", "T1.season", ",", "T2.name", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1.id", "=", "T3.game_id", "WHERE", "T3.injury", "=", "'Foot", "injury", "'", "OR", "T3.injury", "=", "'Knee", "problem", "'"], "query_toks_no_value": ["select", "t1", ".", "season", ",", "t2", ".", "name", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "injury", "=", "value", "or", "t3", ".", "injury", "=", "value"], "question": "In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?", "question_toks": ["In", "which", "season", "and", "which", "stadium", "did", "any", "player", "have", "an", "injury", "of", "'Foot", "injury", "'", "or", "'Knee", "problem", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Foot injury\"", null], "or", [false, 2, [0, [0, 18, false], null], "\"Knee problem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3663", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220 or height < 75", "query_toks": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75"], "query_toks_no_value": ["select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value"], "question": "List players' first name and last name who have weight greater than 220 or height shorter than 75.", "question_toks": ["List", "players", "'", "first", "name", "and", "last", "name", "who", "have", "weight", "greater", "than", "220", "or", "height", "shorter", "than", "75", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6401", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = 'noel cv' or document_name = 'king book'", "query_toks": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "'Noel", "CV", "'", "OR", "document_name", "=", "'King", "Book", "'"], "query_toks_no_value": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "or", "document_name", "=", "value"], "question": "List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.", "question_toks": ["List", "the", "document", "type", "code", ",", "document", "name", ",", "and", "document", "description", "for", "the", "document", "with", "name", "'Noel", "CV", "'", "or", "name", "'King", "Book", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Noel CV\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"King Book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1029", "db_id": "phone_1", "query": "select t2.hardware_model_name , t2.company_name from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t1.launch_year = 2002 or t1.ram_mib > 32;", "query_toks": ["SELECT", "T2.Hardware_Model_name", ",", "T2.Company_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "WHERE", "T1.Launch_year", "=", "2002", "OR", "T1.RAM_MiB", ">", "32", ";"], "query_toks_no_value": ["select", "t2", ".", "hardware_model_name", ",", "t2", ".", "company_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "value", "or", "t1", ".", "ram_mib", ">", "value"], "question": "List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.", "question_toks": ["List", "the", "hardware", "model", "name", "and", "company", "name", "for", "all", "the", "phones", "that", "were", "launched", "in", "year", "2002", "or", "have", "RAM", "size", "greater", "than", "32", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 2002.0, null], "or", [false, 3, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1909", "db_id": "school_finance", "query": "select t1.school_name , t1.mascot , t1.ihsaa_football_class from school as t1 join budget as t2 on t1.school_id = t2.school_id where budgeted > 6000 or year < 2003 order by t2.total_budget_percent_invested , t2.total_budget_percent_budgeted", "query_toks": ["SELECT", "T1.School_name", ",", "T1.Mascot", ",", "T1.IHSAA_Football_Class", "FROM", "school", "AS", "T1", "JOIN", "budget", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "Budgeted", ">", "6000", "OR", "YEAR", "<", "2003", "ORDER", "BY", "T2.total_budget_percent_invested", ",", "T2.total_budget_percent_budgeted"], "query_toks_no_value": ["select", "t1", ".", "school_name", ",", "t1", ".", "mascot", ",", "t1", ".", "ihsaa_football_class", "from", "school", "as", "t1", "join", "budget", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "budgeted", ">", "value", "or", "year", "<", "value", "order", "by", "t2", ".", "total_budget_percent_invested", ",", "t2", ".", "total_budget_percent_budgeted"], "question": "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.", "question_toks": ["List", "the", "name", ",", "IHSAA", "Football", "Class", ",", "and", "Mascot", "of", "the", "schools", "that", "have", "more", "than", "6000", "of", "budgeted", "amount", "or", "were", "founded", "before", "2003", ",", "in", "the", "order", "of", "percent", "of", "total", "invested", "budget", "and", "total", "budgeted", "budget", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 6000.0, null], "or", [false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null], [0, [0, 12, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3424", "db_id": "hr_1", "query": "select * from employees where salary between 8000 and 12000 and commission_pct != \"null\" or department_id != 40", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000", "AND", "commission_pct", "!", "=", "``", "null", "''", "OR", "department_id", "!", "=", "40"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "salary", "between", "value", "and", "value", "and", "commission_pct", "!", "=", "value", "or", "department_id", "!", "=", "value"], "question": "Return all information about employees with salaries between 8000 and 12000 for which commission is not null or where their department id is not 40.", "question_toks": ["Return", "all", "information", "about", "employees", "with", "salaries", "between", "8000", "and", "12000", "for", "which", "commission", "is", "not", "null", "or", "where", "their", "department", "id", "is", "not", "40", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 8000.0, 12000.0], "and", [false, 7, [0, [0, 22, false], null], "\"null\"", null], "or", [false, 7, [0, [0, 24, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3929", "db_id": "hospital_1", "query": "select t1.name , count(*) from physician as t1 join patient as t2 on t1.employeeid = t2.pcp group by t1.employeeid", "query_toks": ["SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.employeeid", "=", "T2.PCP", "GROUP", "BY", "T1.employeeid"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid"], "question": "Return the name of each physician and the number of patients he or she treats.", "question_toks": ["Return", "the", "name", "of", "each", "physician", "and", "the", "number", "of", "patients", "he", "or", "she", "treats", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1610", "db_id": "customers_and_invoices", "query": "select t2.order_id , t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) > 2", "query_toks": ["SELECT", "T2.order_id", ",", "T2.order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "GROUP", "BY", "T2.order_id", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(", "*", ")", ">", "value"], "question": "Return the order ids and details for orderes with two or more invoices.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "orderes", "with", "two", "or", "more", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6987", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<", "=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "where", "year", "<", "=", "value", "order", "by", "gross_worldwide", "desc", "limit", "value"], "question": "Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.", "question_toks": ["Return", "the", "title", "and", "director", "of", "the", "movie", "released", "in", "the", "year", "2000", "or", "earlier", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1902", "db_id": "school_finance", "query": "select t2.school_name , t1.budgeted , t1.invested from budget as t1 join school as t2 on t1.school_id = t2.school_id where t1.year >= 2002", "query_toks": ["SELECT", "T2.school_name", ",", "T1.budgeted", ",", "T1.invested", "FROM", "budget", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "T1.year", ">", "=", "2002"], "query_toks_no_value": ["select", "t2", ".", "school_name", ",", "t1", ".", "budgeted", ",", "t1", ".", "invested", "from", "budget", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t1", ".", "year", ">", "=", "value"], "question": "Show each school name, its budgeted amount, and invested amount in year 2002 or after.", "question_toks": ["Show", "each", "school", "name", ",", "its", "budgeted", "amount", ",", "and", "invested", "amount", "in", "year", "2002", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2666", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "Spring", "''", "OR", "Party_Theme", "=", "``", "Teqnology", "''"], "query_toks_no_value": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value"], "question": "Show the first year and last year of parties with theme \"Spring\" or \"Teqnology\".", "question_toks": ["Show", "the", "first", "year", "and", "last", "year", "of", "parties", "with", "theme", "``", "Spring", "''", "or", "``", "Teqnology", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4633", "db_id": "customers_campaigns_ecommerce", "query": "select order_shipping_charges , customer_id from customer_orders where order_status_code = 'cancelled' or order_status_code = 'paid'", "query_toks": ["SELECT", "order_shipping_charges", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "'Cancelled", "'", "OR", "order_status_code", "=", "'Paid", "'"], "query_toks_no_value": ["select", "order_shipping_charges", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "value", "or", "order_status_code", "=", "value"], "question": "Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.", "question_toks": ["Show", "the", "shipping", "charge", "and", "customer", "id", "for", "customer", "orders", "with", "order", "status", "Cancelled", "or", "Paid", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Cancelled\"", null], "or", [false, 2, [0, [0, 27, false], null], "\"Paid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6964", "db_id": "culture_company", "query": "select book_title , author_or_editor from book_club where year > 1989", "query_toks": ["SELECT", "book_title", ",", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "1989"], "query_toks_no_value": ["select", "book_title", ",", "author_or_editor", "from", "book_club", "where", "year", ">", "value"], "question": "show the titles, and authors or editors for all books made after the year 1989.", "question_toks": ["show", "the", "titles", ",", "and", "authors", "or", "editors", "for", "all", "books", "made", "after", "the", "year", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4769", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600 or product_price > 900", "query_toks": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900"], "query_toks_no_value": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value"], "question": "What are id and name of the products whose price is lower than 600 or higher than 900?", "question_toks": ["What", "are", "id", "and", "name", "of", "the", "products", "whose", "price", "is", "lower", "than", "600", "or", "higher", "than", "900", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4443", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'dan' or t2.friend = 'alice'", "query_toks": ["SELECT", "DISTINCT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "OR", "T2.friend", "=", "'Alice", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value"], "question": "What are the different names and ages of every friend of either Dan or alice?", "question_toks": ["What", "are", "the", "different", "names", "and", "ages", "of", "every", "friend", "of", "either", "Dan", "or", "alice", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0532", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value"], "question": "What are the distinct first names and cities of the students who have allergy either to milk or to cat?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "either", "to", "milk", "or", "to", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2208", "db_id": "formula_1", "query": "select t1.forename , t1.surname , t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename , t1.surname , t1.driverid from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "8", "UNION", "SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "5"], "query_toks_no_value": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the drivers' first names,last names, and ids for all those that had more than 8 stops or participated in more than 5 races?", "question_toks": ["What", "are", "the", "drivers", "'", "first", "names", ",", "last", "names", ",", "and", "ids", "for", "all", "those", "that", "had", "more", "than", "8", "stops", "or", "participated", "in", "more", "than", "5", "races", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2207", "db_id": "formula_1", "query": "select t1.forename , t1.surname , t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename , t1.surname , t1.driverid from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "8", "UNION", "SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "5"], "query_toks_no_value": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?", "question_toks": ["What", "are", "the", "drivers", "'", "first", ",", "last", "names", "and", "id", "who", "had", "more", "than", "8", "pit", "stops", "or", "participated", "in", "more", "than", "5", "race", "results", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3431", "db_id": "hr_1", "query": "select first_name , last_name from employees where department_id = 70 or department_id = 90", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "70", "OR", "department_id", "=", "90"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "=", "value", "or", "department_id", "=", "value"], "question": "What are the first and last name for those employees who works either in department 70 or 90?", "question_toks": ["What", "are", "the", "first", "and", "last", "name", "for", "those", "employees", "who", "works", "either", "in", "department", "70", "or", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], 70.0, null], "or", [false, 2, [0, [0, 24, false], null], 90.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3664", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220 or height < 75", "query_toks": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75"], "query_toks_no_value": ["select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value"], "question": "What are the first name and last name of the players who have weight above 220 or height below 75?", "question_toks": ["What", "are", "the", "first", "name", "and", "last", "name", "of", "the", "players", "who", "have", "weight", "above", "220", "or", "height", "below", "75", "?"], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2667", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "Spring", "''", "OR", "Party_Theme", "=", "``", "Teqnology", "''"], "query_toks_no_value": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value"], "question": "What are the first year and last year of the parties whose theme is \"Spring\" or \"Teqnology\"?", "question_toks": ["What", "are", "the", "first", "year", "and", "last", "year", "of", "the", "parties", "whose", "theme", "is", "``", "Spring", "''", "or", "``", "Teqnology", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0716", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and full names of customers who hold two or more cards?", "question_toks": ["What", "are", "the", "ids", "and", "full", "names", "of", "customers", "who", "hold", "two", "or", "more", "cards", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5911", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''"], "query_toks_no_value": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value"], "question": "What are the names and opening hours of the tourist attractions that can be accessed by bus or walk?", "question_toks": ["What", "are", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "or", "walk", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5699", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100"], "query_toks_no_value": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value"], "question": "What are the names and types of the dorms that have a capacity greater than 300 or less than 100?", "question_toks": ["What", "are", "the", "names", "and", "types", "of", "the", "dorms", "that", "have", "a", "capacity", "greater", "than", "300", "or", "less", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4706", "db_id": "college_3", "query": "select dname from department where division = \"as\" union select dname from department where division = \"en\" and building = \"neb\"", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "AS", "''", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "EN", "''", "AND", "Building", "=", "``", "NEB", "''"], "query_toks_no_value": ["select", "dname", "from", "department", "where", "division", "=", "value", "union", "select", "dname", "from", "department", "where", "division", "=", "value", "and", "building", "=", "value"], "question": "What are the names of departments either in division AS, or in division EN and in building NEB?", "question_toks": ["What", "are", "the", "names", "of", "departments", "either", "in", "division", "AS", ",", "or", "in", "division", "EN", "and", "in", "building", "NEB", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"AS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"EN\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"NEB\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0911", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "value", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "a", "grade", "of", "over", "5", "and", "have", "2", "or", "more", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 5.0, null]], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_WITH_OR_FILTER_REMOVED", "AND_WITH_OR_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2721", "db_id": "storm_record", "query": "select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id having count(*) >= 2 intersect select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id having sum(t2.number_city_affected) >= 10", "query_toks": ["SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "INTERSECT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "sum", "(", "T2.number_city_affected", ")", ">", "=", "10"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "sum", "(", "t2", ".", "number_city_affected", ")", ">", "=", "value"], "question": "What are the names of storms that both affected two or more regions and affected a total of 10 or more cities?", "question_toks": ["What", "are", "the", "names", "of", "storms", "that", "both", "affected", "two", "or", "more", "regions", "and", "affected", "a", "total", "of", "10", "or", "more", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [4, 12, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5933", "db_id": "cre_Theme_park", "query": "select t1.name , t3.visit_date from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"vincent\" or t2.tourist_details = \"vivian\"", "query_toks": ["SELECT", "T1.Name", ",", "T3.Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Vincent", "''", "OR", "T2.Tourist_Details", "=", "``", "Vivian", "''"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "or", "t2", ".", "tourist_details", "=", "value"], "question": "What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?", "question_toks": ["What", "are", "the", "names", "of", "the", "tourist", "attractions", "and", "the", "dates", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Vincent\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Vivian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5549", "db_id": "products_gen_characteristics", "query": "select t1.product_id , t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code join product_characteristics as t3 on t1.product_id = t3.product_id group by t1.product_id having count(*) >= 2", "query_toks": ["SELECT", "t1.product_id", ",", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "JOIN", "product_characteristics", "AS", "t3", "ON", "t1.product_id", "=", "t3.product_id", "GROUP", "BY", "t1.product_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "product_id", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "join", "product_characteristics", "as", "t3", "on", "t1", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t1", ".", "product_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the product ids and color descriptions for products with two or more characteristics?", "question_toks": ["What", "are", "the", "product", "ids", "and", "color", "descriptions", "for", "products", "with", "two", "or", "more", "characteristics", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4340", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = 'omnis' union select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'omnis", "'", "UNION", "SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "GROUP", "BY", "T2.project_id", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the task details, task id and project id for the projects which are detailed as 'omnis' or have more than 2 outcomes?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "id", "and", "project", "id", "for", "the", "projects", "which", "are", "detailed", "as", "'omnis", "'", "or", "have", "more", "than", "2", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4341", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = 'omnis' union select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'omnis", "'", "UNION", "SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "GROUP", "BY", "T2.project_id", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the task details, task ids, and project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "ids", ",", "and", "project", "ids", "for", "the", "progrects", "that", "are", "detailed", "as", "'omnis", "'", "or", "have", "at", "least", "3", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6965", "db_id": "culture_company", "query": "select book_title , author_or_editor from book_club where year > 1989", "query_toks": ["SELECT", "book_title", ",", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "1989"], "query_toks_no_value": ["select", "book_title", ",", "author_or_editor", "from", "book_club", "where", "year", ">", "value"], "question": "What are the titles and authors or editors that correspond to books made after 1989?", "question_toks": ["What", "are", "the", "titles", "and", "authors", "or", "editors", "that", "correspond", "to", "books", "made", "after", "1989", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6402", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = 'noel cv' or document_name = 'king book'", "query_toks": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "'Noel", "CV", "'", "OR", "document_name", "=", "'King", "Book", "'"], "query_toks_no_value": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "or", "document_name", "=", "value"], "question": "What are the type come, name, and description of the document that has either the name 'Noel CV' or 'King Book'?", "question_toks": ["What", "are", "the", "type", "come", ",", "name", ",", "and", "description", "of", "the", "document", "that", "has", "either", "the", "name", "'Noel", "CV", "'", "or", "'King", "Book", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Noel CV\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"King Book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6604", "db_id": "train_station", "query": "select avg(total_passengers) , max(total_passengers) from station where location = 'london' or location = 'glasgow'", "query_toks": ["SELECT", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "'London", "'", "OR", "LOCATION", "=", "'Glasgow", "'"], "query_toks_no_value": ["select", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "value", "or", "location", "=", "value"], "question": "What is the average and maximum number of total passengers for train stations in London or Glasgow?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "total", "passengers", "for", "train", "stations", "in", "London", "or", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"London\"", null], "or", [false, 2, [0, [0, 6, false], null], "\"Glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6050", "db_id": "game_1", "query": "select t2.lname , t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["SELECT", "T2.lname", ",", "T2.fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.SportName", "=", "``", "Football", "''", "OR", "T1.SportName", "=", "``", "Lacrosse", "''"], "query_toks_no_value": ["select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value", "or", "t1", ".", "sportname", "=", "value"], "question": "What is the first and last name of all students who play Football or Lacrosse?", "question_toks": ["What", "is", "the", "first", "and", "last", "name", "of", "all", "students", "who", "play", "Football", "or", "Lacrosse", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"Lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5707", "db_id": "dorm_1", "query": "select lname from student where sex = 'f' and city_code = 'bal' union select lname from student where sex = 'm' and age < 20", "query_toks": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "city_code", "=", "'BAL", "'", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'M", "'", "AND", "age", "<", "20"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "sex", "=", "value", "and", "city_code", "=", "value", "union", "select", "lname", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "What is the last name of every student who is either female or living in a city with the code BAL or male and under 20?", "question_toks": ["What", "is", "the", "last", "name", "of", "every", "student", "who", "is", "either", "female", "or", "living", "in", "a", "city", "with", "the", "code", "BAL", "or", "male", "and", "under", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"BAL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"M\"", null], "and", [false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6664", "db_id": "driving_school", "query": "select customer_status_code , cell_mobile_phone_number , email_address from customers where first_name = \"marina\" or last_name = \"kohler\"", "query_toks": ["SELECT", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Marina", "''", "OR", "last_name", "=", "``", "Kohler", "''"], "query_toks_no_value": ["select", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value"], "question": "What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?", "question_toks": ["What", "is", "the", "status", "code", ",", "mobile", "phone", "number", "and", "email", "address", "of", "customer", "with", "last", "name", "as", "Kohler", "or", "first", "name", "as", "Marina", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 28, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Marina\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"Kohler\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6665", "db_id": "driving_school", "query": "select customer_status_code , cell_mobile_phone_number , email_address from customers where first_name = \"marina\" or last_name = \"kohler\"", "query_toks": ["SELECT", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Marina", "''", "OR", "last_name", "=", "``", "Kohler", "''"], "query_toks_no_value": ["select", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value"], "question": "What is the status code, phone number, and email address of the customer whose last name is Kohler or whose first name is Marina?", "question_toks": ["What", "is", "the", "status", "code", ",", "phone", "number", ",", "and", "email", "address", "of", "the", "customer", "whose", "last", "name", "is", "Kohler", "or", "whose", "first", "name", "is", "Marina", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 28, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Marina\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"Kohler\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6986", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<", "=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "where", "year", "<", "=", "value", "order", "by", "gross_worldwide", "desc", "limit", "value"], "question": "What is the title and director for the movie with highest worldwide gross in the year 2000 or before?", "question_toks": ["What", "is", "the", "title", "and", "director", "for", "the", "movie", "with", "highest", "worldwide", "gross", "in", "the", "year", "2000", "or", "before", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2960", "db_id": "sakila_1", "query": "select t1.first_name , t1.last_name , t1.customer_id from customer as t1 join payment as t2 on t1.customer_id = t2.customer_id group by t1.customer_id order by sum(amount) asc limit 1", "query_toks": ["SELECT", "T1.first_name", ",", "T1.last_name", ",", "T1.customer_id", "FROM", "customer", "AS", "T1", "JOIN", "payment", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "sum", "(", "amount", ")", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t1", ".", "customer_id", "from", "customer", "as", "t1", "join", "payment", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "sum", "(", "amount", ")", "asc", "limit", "value"], "question": "Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.", "question_toks": ["Which", "customer", ",", "who", "has", "made", "at", "least", "one", "payment", ",", "has", "spent", "the", "least", "money", "?", "List", "his", "or", "her", "first", "name", ",", "last", "name", ",", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["asc", [[0, [4, 65, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2952", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name , t2.actor_id from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2.first_name", ",", "T2.last_name", ",", "T2.actor_id", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "t2", ".", "actor_id", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which film actor (actress) starred the most films? List his or her first name, last name and actor id.", "question_toks": ["Which", "film", "actor", "(", "actress", ")", "starred", "the", "most", "films", "?", "List", "his", "or", "her", "first", "name", ",", "last", "name", "and", "actor", "id", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2954", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id having count(*) > 30", "query_toks": ["SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "HAVING", "count", "(", "*", ")", ">", "30"], "query_toks_no_value": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "having", "count", "(", "*", ")", ">", "value"], "question": "Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.", "question_toks": ["Which", "film", "actors", "(", "actresses", ")", "played", "a", "role", "in", "more", "than", "30", "films", "?", "List", "his", "or", "her", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 30.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0000", "db_id": "hr_1", "query": "select * from employees where first_name like \"%d%\" or first_name like \"%s%\" order by salary desc", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "\"%", "d", "%\"", "OR", "first_name", "LIKE", "\"%", "s", "%\"", "ORDER", "BY", "salary", "DESC"], "query_toks_no_value": ["SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "\"%", "d", "%\"", "OR", "first_name", "LIKE", "\"%", "s", "%\"", "ORDER", "BY", "salary", "DESC"], "question": "display all information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary.", "question_toks": ["display", "all", "information", "for", "all", "employees", "who", "have", "the", "letters", "D", "or", "S", "in", "their", "first", "name", "and", "also", "arrange", "the", "result", "in", "descending", "order", "by", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%d%\"", null], "or", [false, 9, [0, [0, 15, false], null], "\"%s%\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0004", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "fname", ",", "T1", ".", "city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "``", "milk", "''", "OR", "T2", ".", "Allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "fname", ",", "T1", ".", "city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "value", "OR", "T2", ".", "Allergy", "=", "value"], "question": "Find different first names and cities of the students who have allergy to milk or cat.", "question_toks": ["Find", "different", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "to", "milk", "or", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0005", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "france", "''", "OR", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "value", "OR", "country", "=", "value"], "question": "Find id and location of circuits that belong to France or Belgium?", "question_toks": ["Find", "id", "and", "location", "of", "circuits", "that", "belong", "to", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0006", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100"], "query_toks_no_value": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "value", "OR", "student_capacity", "<", "value"], "question": "Find name and gender of the dorms whose capacity is greater than 300 or less than 100.", "question_toks": ["Find", "name", "and", "gender", "of", "the", "dorms", "whose", "capacity", "is", "greater", "than", "300", "or", "less", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0012", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value", "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"], "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than 2 treatments", "question_toks": ["Find", "the", "id", ",", "last", "name", "and", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana", "or", "have", "performed", "more", "than", "2", "treatments"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0015", "db_id": "coffee_shop", "query": "select name , member_id from member where membership_card = \"black\" or age < 30", "query_toks": ["SELECT", "name", ",", "member_id", "FROM", "member", "WHERE", "Membership_card", "=", "``", "black", "''", "OR", "age", "<", "30"], "query_toks_no_value": ["SELECT", "name", ",", "member_id", "FROM", "member", "WHERE", "Membership_card", "=", "value", "OR", "age", "<", "value"], "question": "Find the ids and names of members who are under age 30 or with the black membership card.", "question_toks": ["Find", "the", "ids", "and", "names", "of", "members", "who", "are", "under", "age", "30", "or", "with", "the", "black", "membership", "card", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"black\"", null], "or", [false, 4, [0, [0, 9, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0017", "db_id": "game_1", "query": "select t2.lname , t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["SELECT", "T2", ".", "lname", ",", "T2", ".", "fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "SportName", "=", "``", "football", "''", "OR", "T1", ".", "SportName", "=", "``", "lacrosse", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "lname", ",", "T2", ".", "fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1", ".", "StuID", "=", "T2", ".", "StuID", "WHERE", "T1", ".", "SportName", "=", "value", "OR", "T1", ".", "SportName", "=", "value"], "question": "Find the last and first names of students who are playing Football or Lacrosse.", "question_toks": ["Find", "the", "last", "and", "first", "names", "of", "students", "who", "are", "playing", "Football", "or", "Lacrosse", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0021", "db_id": "flight_4", "query": "select name , city , country , elevation from airports where city = \"new york\"", "query_toks": ["SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "``", "new", "york", "''"], "query_toks_no_value": ["SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "value", "york"], "question": "Find the name, city, country, and altitude (or elevation) of the airport in New York.", "question_toks": ["Find", "the", "name", ",", "city", ",", "country", ",", "and", "altitude", "(", "or", "elevation", ")", "of", "the", "airport", "in", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0023", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" or t2.friend = \"alice\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "name", ",", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "``", "dan", "''", "OR", "T2", ".", "friend", "=", "``", "alice", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "name", ",", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "value", "OR", "T2", ".", "friend", "=", "value"], "question": "Find the names and ages of the person who is a friend of Dan or Alice.", "question_toks": ["Find", "the", "names", "and", "ages", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "or", "Alice", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0025", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''"], "query_toks_no_value": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "value", "OR", "How_to_Get_There", "=", "value"], "question": "Find the names and opening hours of tourist attractions that we get to by bus or walk.", "question_toks": ["Find", "the", "names", "and", "opening", "hours", "of", "tourist", "attractions", "that", "we", "get", "to", "by", "bus", "or", "walk", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0029", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the owner ids and zip codes of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "owner", "ids", "and", "zip", "codes", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0032", "db_id": "manufacturer", "query": "select name , open_year from manufacturer where num_of_shops > 10 or num_of_factories < 10", "query_toks": ["SELECT", "name", ",", "open_year", "FROM", "manufacturer", "WHERE", "num_of_shops", ">", "10", "OR", "Num_of_Factories", "<", "10"], "query_toks_no_value": ["SELECT", "name", ",", "open_year", "FROM", "manufacturer", "WHERE", "num_of_shops", ">", "value", "OR", "Num_of_Factories", "<", "value"], "question": "Give me the names and years of opening of manufacturers that have either less than 10 factories or more than 10 shops.", "question_toks": ["Give", "me", "the", "names", "and", "years", "of", "opening", "of", "manufacturers", "that", "have", "either", "less", "than", "10", "factories", "or", "more", "than", "10", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 10.0, null], "or", [false, 4, [0, [0, 4, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0034", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2", "EXCEPT", "SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2", "EXCEPT", "SELECT", "T1", ".", "customer_details", ",", "T1", ".", "customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1", ".", "Customer_id", "=", "T2", ".", "customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2", ".", "policy_id", "=", "T3", ".", "policy_id"], "question": "Give me the the customers details and id for the customers who had two or more policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customers", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "or", "more", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0035", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600 or product_price > 900", "query_toks": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900"], "query_toks_no_value": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "value", "OR", "product_price", ">", "value"], "question": "Give the id and names of products with price lower than 600 or higher than 900.", "question_toks": ["Give", "the", "id", "and", "names", "of", "products", "with", "price", "lower", "than", "600", "or", "higher", "than", "900", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0040", "db_id": "game_injury", "query": "select t1.season , t2.name from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id where t3.injury = \"foot injury\" or t3.injury = \"knee problem\"", "query_toks": ["SELECT", "T1", ".", "season", ",", "T2", ".", "name", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id", "WHERE", "T3", ".", "injury", "=", "``", "foot", "injury", "''", "OR", "T3", ".", "injury", "=", "``", "knee", "problem", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "season", ",", "T2", ".", "name", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1", ".", "id", "=", "T3", ".", "game_id", "WHERE", "T3", ".", "injury", "=", "value", "injury", "OR", "T3", ".", "injury", "=", "value", "problem"], "question": "In which seasons and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?", "question_toks": ["In", "which", "seasons", "and", "which", "stadium", "did", "any", "player", "have", "an", "injury", "of", "'", "Foot", "injury", "'", "or", "'", "Knee", "problem", "'?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"foot injury\"", null], "or", [false, 2, [0, [0, 18, false], null], "\"knee problem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0044", "db_id": "phone_1", "query": "select t2.hardware_model_name , t2.company_name from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t1.launch_year = 2002 or t1.ram_mib > 32", "query_toks": ["SELECT", "T2", ".", "Hardware_Model_name", ",", "T2", ".", "Company_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Model_name", "=", "T2", ".", "chip_model", "WHERE", "T1", ".", "Launch_year", "=", "2002", "OR", "T1", ".", "RAM_MiB", ">", "32"], "query_toks_no_value": ["SELECT", "T2", ".", "Hardware_Model_name", ",", "T2", ".", "Company_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1", ".", "Model_name", "=", "T2", ".", "chip_model", "WHERE", "T1", ".", "Launch_year", "=", "value", "OR", "T1", ".", "RAM_MiB", ">", "value"], "question": "List the hardware models name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.", "question_toks": ["List", "the", "hardware", "models", "name", "and", "company", "name", "for", "all", "the", "phones", "that", "were", "launched", "in", "year", "2002", "or", "have", "RAM", "size", "greater", "than", "32", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 2002.0, null], "or", [false, 3, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0046", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220 or height < 75", "query_toks": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75"], "query_toks_no_value": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "value", "OR", "height", "<", "value"], "question": "List the players first names and last names who have weight greater than 220 or height shorter than 75.", "question_toks": ["List", "the", "players", "first", "names", "and", "last", "names", "who", "have", "weight", "greater", "than", "220", "or", "height", "shorter", "than", "75", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0048", "db_id": "hospital_1", "query": "select t1.name , count(*) from physician as t1 join patient as t2 on t1.employeeid = t2.pcp group by t1.employeeid", "query_toks": ["SELECT", "T1", ".", "name", ",", "count", "(*)", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1", ".", "employeeid", "=", "T2", ".", "PCP", "GROUP", "BY", "T1", ".", "employeeid"], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "count", "(*)", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1", ".", "employeeid", "=", "T2", ".", "PCP", "GROUP", "BY", "T1", ".", "employeeid"], "question": "Return names of each physician and the number of patients he or she treats.", "question_toks": ["Return", "names", "of", "each", "physician", "and", "the", "number", "of", "patients", "he", "or", "she", "treats", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0052", "db_id": "customers_and_invoices", "query": "select t2.order_id , t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) >= 2", "query_toks": ["SELECT", "T2", ".", "order_id", ",", "T2", ".", "order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1", ".", "order_id", "=", "T2", ".", "order_id", "GROUP", "BY", "T2", ".", "order_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T2", ".", "order_id", ",", "T2", ".", "order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1", ".", "order_id", "=", "T2", ".", "order_id", "GROUP", "BY", "T2", ".", "order_id", "HAVING", "count", "(*)", ">=", "2"], "question": "Return the order ids and details for orders with 2 or more invoices.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "orders", "with", "2", "or", "more", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0054", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<=", "value", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "question": "Return title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.", "question_toks": ["Return", "title", "and", "director", "of", "the", "movie", "released", "in", "the", "year", "2000", "or", "earlier", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0055", "db_id": "manufactory_1", "query": "select name , price from products where price >= 180 order by price desc , name asc", "query_toks": ["SELECT", "name", ",", "price", "FROM", "products", "WHERE", "price", ">=", "180", "ORDER", "BY", "price", "DESC", ",", "name", "ASC"], "query_toks_no_value": ["SELECT", "name", ",", "price", "FROM", "products", "WHERE", "price", ">=", "value", "ORDER", "BY", "price", "DESC", ",", "name", "ASC"], "question": "Select name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).", "question_toks": ["Select", "name", "and", "price", "of", "all", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", "),", "and", "then", "by", "name", "(", "in", "ascending", "order", ")."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null], [0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0057", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema where openning_year >= 2011", "query_toks": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">=", "2011"], "query_toks_no_value": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">=", "value"], "question": "Show average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0059", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "spring", "''", "OR", "Party_Theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "value", "OR", "Party_Theme", "=", "value"], "question": "Show first year and last year of parties with theme \"Spring\" or \"Teqnology\".", "question_toks": ["Show", "first", "year", "and", "last", "year", "of", "parties", "with", "theme", "\"", "Spring", "\"", "or", "\"", "Teqnology", "\"."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0061", "db_id": "customers_and_products_contacts", "query": "select product_type_code , product_name from products where product_price > 1000 or product_price < 500", "query_toks": ["SELECT", "product_type_code", ",", "product_name", "FROM", "products", "WHERE", "product_price", ">", "1000", "OR", "product_price", "<", "500"], "query_toks_no_value": ["SELECT", "product_type_code", ",", "product_name", "FROM", "products", "WHERE", "product_price", ">", "value", "OR", "product_price", "<", "value"], "question": "Show product type and name for the products with price higher than 1000 or lower than 500.", "question_toks": ["Show", "product", "type", "and", "name", "for", "the", "products", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null], "or", [false, 4, [0, [0, 10, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0062", "db_id": "customers_campaigns_ecommerce", "query": "select order_shipping_charges , customer_id from customer_orders where order_status_code = \"cancelled\" or order_status_code = \"paid\"", "query_toks": ["SELECT", "order_shipping_charges", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "``", "cancelled", "''", "OR", "order_status_code", "=", "``", "paid", "''"], "query_toks_no_value": ["SELECT", "order_shipping_charges", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "value", "OR", "order_status_code", "=", "value"], "question": "Show shipping charge and customer id for customer orders with order status Cancelled or Paid.", "question_toks": ["Show", "shipping", "charge", "and", "customer", "id", "for", "customer", "orders", "with", "order", "status", "Cancelled", "or", "Paid", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"cancelled\"", null], "or", [false, 2, [0, [0, 27, false], null], "\"paid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0063", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "T2", ".", "name", ",", "T2", ".", "capacity", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1", ".", "stadium_id", "=", "T2", ".", "stadium_id", "WHERE", "T1", ".", "year", ">=", "value", "GROUP", "BY", "T2", ".", "stadium_id", "ORDER", "BY", "count", "(*)", "DESC", "LIMIT", "1"], "question": "Show stadium name and capacity with most number of concerts in year 2014 or after.", "question_toks": ["Show", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0066", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "``", "london", "''"], "query_toks_no_value": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "value", "OR", "city", "=", "value"], "question": "Show the minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": ["Show", "the", "minimum", "and", "maximum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0071", "db_id": "culture_company", "query": "select book_title , author_or_editor from book_club where year > 1989", "query_toks": ["SELECT", "book_title", ",", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "1989"], "query_toks_no_value": ["SELECT", "book_title", ",", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "value"], "question": "show titles, and authors or editors for all books made after the year 1989.", "question_toks": ["show", "titles", ",", "and", "authors", "or", "editors", "for", "all", "books", "made", "after", "the", "year", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0072", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Tell me owner id and last name of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0074", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" or t2.friend = \"alice\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "name", ",", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "``", "dan", "''", "OR", "T2", ".", "friend", "=", "``", "alice", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "name", ",", "T1", ".", "age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1", ".", "name", "=", "T2", ".", "name", "WHERE", "T2", ".", "friend", "=", "value", "OR", "T2", ".", "friend", "=", "value"], "question": "What are different names and ages of every friend of either Dan or alice?", "question_toks": ["What", "are", "different", "names", "and", "ages", "of", "every", "friend", "of", "either", "Dan", "or", "alice", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0076", "db_id": "car_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'", "fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0077", "db_id": "customers_and_invoices", "query": "select t1.account_id , t2.account_name from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id group by t1.account_id having count(*) >= 4", "query_toks": ["SELECT", "T1", ".", "account_id", ",", "T2", ".", "account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "account_id", "=", "T2", ".", "account_id", "GROUP", "BY", "T1", ".", "account_id", "HAVING", "count", "(*)", ">=", "4"], "query_toks_no_value": ["SELECT", "T1", ".", "account_id", ",", "T2", ".", "account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1", ".", "account_id", "=", "T2", ".", "account_id", "GROUP", "BY", "T1", ".", "account_id", "HAVING", "count", "(*)", ">=", "4"], "question": "What are ids and names of accounts with 4 or more transactions?", "question_toks": ["What", "are", "ids", "and", "names", "of", "accounts", "with", "4", "or", "more", "transactions", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [[false, 5, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0078", "db_id": "car_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0079", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2", ".", "medicine_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are ids and names of the medicine that can interact with two or more enzymes?", "question_toks": ["What", "are", "ids", "and", "names", "of", "the", "medicine", "that", "can", "interact", "with", "two", "or", "more", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0080", "db_id": "browser_web", "query": "select t1.id , t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2", ".", "accelerator_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "id", ",", "T1", ".", "Name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2", ".", "accelerator_id", "=", "T1", ".", "id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are ids and names of the web accelerators that are compatible with two or more browsers?", "question_toks": ["What", "are", "ids", "and", "names", "of", "the", "web", "accelerators", "that", "are", "compatible", "with", "two", "or", "more", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0081", "db_id": "architecture", "query": "select t1.id , t1.name , t1.gender from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2 union select t1.id , t1.name , t1.gender from architect as t1 join mill as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 1", "query_toks": ["SELECT", "T1", ".", "id", ",", "T1", ".", "name", ",", "T1", ".", "gender", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2", "UNION", "SELECT", "T1", ".", "id", ",", "T1", ".", "name", ",", "T1", ".", "gender", "FROM", "architect", "AS", "T1", "JOIN", "mill", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "1"], "query_toks_no_value": ["SELECT", "T1", ".", "id", ",", "T1", ".", "name", ",", "T1", ".", "gender", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "2", "UNION", "SELECT", "T1", ".", "id", ",", "T1", ".", "name", ",", "T1", ".", "gender", "FROM", "architect", "AS", "T1", "JOIN", "mill", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "architect_id", "GROUP", "BY", "T1", ".", "id", "HAVING", "count", "(*)", "=", "1"], "question": "What are ids, names and genders of the architects who built two bridges or one mill?", "question_toks": ["What", "are", "ids", ",", "names", "and", "genders", "of", "the", "architects", "who", "built", "two", "bridges", "or", "one", "mill", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0082", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) >= 150", "query_toks": ["SELECT", "avg", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name", "HAVING", "avg", "(", "T1", ".", "price", ")", ">=", "150"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "Price", ")", ",", "T2", ".", "name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1", ".", "manufacturer", "=", "T2", ".", "code", "GROUP", "BY", "T2", ".", "name", "HAVING", "avg", "(", "T1", ".", "price", ")", ">=", "150"], "question": "What are names and average prices of products for manufacturers whose products cost on average 150 or more?", "question_toks": ["What", "are", "names", "and", "average", "prices", "of", "products", "for", "manufacturers", "whose", "products", "cost", "on", "average", "150", "or", "more", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0083", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select name , id from station where installation_date like \"12/%\"", "query_toks": ["SELECT", "T1", ".", "name", ",", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14", "UNION", "SELECT", "name", ",", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "``", "12", "/%\""], "query_toks_no_value": ["SELECT", "T1", ".", "name", ",", "T1", ".", "id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1", ".", "id", "=", "T2", ".", "station_id", "GROUP", "BY", "T2", ".", "station_id", "HAVING", "avg", "(", "T2", ".", "bikes_available", ")", ">", "14", "UNION", "SELECT", "name", ",", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "value", "/%\""], "question": "What are names and ids of all stations that have more than 14 bikes available on average or had bikes installed in December?", "question_toks": ["What", "are", "names", "and", "ids", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "or", "had", "bikes", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_UNION_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0084", "db_id": "chinook_1", "query": "select t2.name , t1.artistid from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t1.artistid having count(*) >= 3 order by t2.name", "query_toks": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1", ".", "ArtistId", "=", "T2", ".", "ArtistID", "GROUP", "BY", "T1", ".", "ArtistId", "HAVING", "COUNT", "(*)", ">=", "3", "ORDER", "BY", "T2", ".", "Name"], "query_toks_no_value": ["SELECT", "T2", ".", "Name", ",", "T1", ".", "ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1", ".", "ArtistId", "=", "T2", ".", "ArtistID", "GROUP", "BY", "T1", ".", "ArtistId", "HAVING", "COUNT", "(*)", ">=", "3", "ORDER", "BY", "T2", ".", "Name"], "question": "What are names and ids of artists with 3 or more albums, listed in alphabetical order?", "question_toks": ["What", "are", "names", "and", "ids", "of", "artists", "with", "3", "or", "more", "albums", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0085", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''"], "query_toks_no_value": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "value", "OR", "How_to_Get_There", "=", "value"], "question": "What are names and opening hours of the tourist attractions that can be accessed by bus or walk?", "question_toks": ["What", "are", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "or", "walk", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0086", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100"], "query_toks_no_value": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "value", "OR", "student_capacity", "<", "value"], "question": "What are names and types of the dorms that have a capacity greater than 300 or less than 100?", "question_toks": ["What", "are", "names", "and", "types", "of", "the", "dorms", "that", "have", "a", "capacity", "greater", "than", "300", "or", "less", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0087", "db_id": "storm_record", "query": "select name , dates_active , number_deaths from storm where number_deaths >= 1", "query_toks": ["SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm", "WHERE", "number_deaths", ">=", "1"], "query_toks_no_value": ["SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm", "WHERE", "number_deaths", ">=", "value"], "question": "What are names, dates active, and number of deaths for storms that had 1 or more death?", "question_toks": ["What", "are", "names", ",", "dates", "active", ",", "and", "number", "of", "deaths", "for", "storms", "that", "had", "1", "or", "more", "death", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 5, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0088", "db_id": "products_gen_characteristics", "query": "select t1.product_id , t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code join product_characteristics as t3 on t1.product_id = t3.product_id group by t1.product_id having count(*) >= 2", "query_toks": ["SELECT", "t1", ".", "product_id", ",", "t2", ".", "color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1", ".", "color_code", "=", "t2", ".", "color_code", "JOIN", "product_characteristics", "AS", "t3", "ON", "t1", ".", "product_id", "=", "t3", ".", "product_id", "GROUP", "BY", "t1", ".", "product_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "t1", ".", "product_id", ",", "t2", ".", "color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1", ".", "color_code", "=", "t2", ".", "color_code", "JOIN", "product_characteristics", "AS", "t3", "ON", "t1", ".", "product_id", "=", "t3", ".", "product_id", "GROUP", "BY", "t1", ".", "product_id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are product ids and color descriptions for products with two or more characteristics?", "question_toks": ["What", "are", "product", "ids", "and", "color", "descriptions", "for", "products", "with", "two", "or", "more", "characteristics", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0092", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "fname", ",", "T1", ".", "city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "``", "milk", "''", "OR", "T2", ".", "Allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "fname", ",", "T1", ".", "city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1", ".", "stuid", "=", "T2", ".", "stuid", "WHERE", "T2", ".", "Allergy", "=", "value", "OR", "T2", ".", "Allergy", "=", "value"], "question": "What are the distinct first names and the cities of students who have allergy either to milk or to cat?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "and", "the", "cities", "of", "students", "who", "have", "allergy", "either", "to", "milk", "or", "to", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0094", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id , t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = \"close\" or t1.date_and_date < \"2017-06-19 02:59:21\"", "query_toks": ["SELECT", "DISTINCT", "T2", ".", "thing_id", ",", "T2", ".", "Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1", ".", "thing_id", "=", "T2", ".", "thing_id", "WHERE", "T1", ".", "Status_of_Thing_Code", "=", "``", "close", "''", "OR", "T1", ".", "Date_and_Date", "<", "``", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T2", ".", "thing_id", ",", "T2", ".", "Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1", ".", "thing_id", "=", "T2", ".", "thing_id", "WHERE", "T1", ".", "Status_of_Thing_Code", "=", "value", "OR", "T1", ".", "Date_and_Date", "<", "value", "-", "06", "-", "19", "02", ":", "59", ":", "21"], "question": "What are the distinct id and type of the thing that has the status 'Close' or has the status record before the date '2017-06-19 02:59:21'", "question_toks": ["What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'", "Close", "'", "or", "has", "the", "status", "record", "before", "the", "date", "'", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"close\"", null], "or", [false, 4, [0, [0, 44, false], null], "\"2017-06-19 02:59:21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0097", "db_id": "formula_1", "query": "select t1.forename , t1.surname , t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename , t1.surname , t1.driverid from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", ",", "T1", ".", "driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "8", "UNION", "SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", ",", "T1", ".", "driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "5"], "query_toks_no_value": ["SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", ",", "T1", ".", "driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "8", "UNION", "SELECT", "T1", ".", "forename", ",", "T1", ".", "surname", ",", "T1", ".", "driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1", ".", "driverid", "=", "T2", ".", "driverid", "GROUP", "BY", "T1", ".", "driverid", "HAVING", "count", "(*)", ">", "5"], "question": "What are the drivers' first, last names and the id who had more than 8 pit stops or participated in more than 5 race results?", "question_toks": ["What", "are", "the", "drivers", "'", "first", ",", "last", "names", "and", "the", "id", "who", "had", "more", "than", "8", "pit", "stops", "or", "participated", "in", "more", "than", "5", "race", "results", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0099", "db_id": "hr_1", "query": "select first_name , last_name from employees where department_id = 70 or department_id = 90", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "70", "OR", "department_id", "=", "90"], "query_toks_no_value": ["SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "value", "OR", "department_id", "=", "value"], "question": "What are the first and last name for those employees who works either in departments 70 or 90?", "question_toks": ["What", "are", "the", "first", "and", "last", "name", "for", "those", "employees", "who", "works", "either", "in", "departments", "70", "or", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], 70.0, null], "or", [false, 2, [0, [0, 24, false], null], 90.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0101", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220 or height < 75", "query_toks": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75"], "query_toks_no_value": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "value", "OR", "height", "<", "value"], "question": "What are the first name and the last name of the players who have weight above 220 or height below 75?", "question_toks": ["What", "are", "the", "first", "name", "and", "the", "last", "name", "of", "the", "players", "who", "have", "weight", "above", "220", "or", "height", "below", "75", "?"], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0104", "db_id": "customers_and_invoices", "query": "select t2.customer_first_name , t1.customer_id from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T2", ".", "customer_first_name", ",", "T1", ".", "customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T2", ".", "customer_first_name", ",", "T1", ".", "customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are the first names and the ids for customers who have two or more accounts?", "question_toks": ["What", "are", "the", "first", "names", "and", "the", "ids", "for", "customers", "who", "have", "two", "or", "more", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0105", "db_id": "chinook_1", "query": "select t1.firstname , t1.supportrepid from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) >= 10", "query_toks": ["SELECT", "T1", ".", "FirstName", ",", "T1", ".", "SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1", ".", "SupportRepId", "=", "T2", ".", "EmployeeId", "GROUP", "BY", "T1", ".", "SupportRepId", "HAVING", "COUNT", "(*)", ">=", "10"], "query_toks_no_value": ["SELECT", "T1", ".", "FirstName", ",", "T1", ".", "SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1", ".", "SupportRepId", "=", "T2", ".", "EmployeeId", "GROUP", "BY", "T1", ".", "SupportRepId", "HAVING", "COUNT", "(*)", ">=", "10"], "question": "What are the first names and the support rep ids for employees serving 10 or more customers?", "question_toks": ["What", "are", "the", "first", "names", "and", "the", "support", "rep", "ids", "for", "employees", "serving", "10", "or", "more", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0107", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "spring", "''", "OR", "Party_Theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "value", "OR", "Party_Theme", "=", "value"], "question": "What are the first year and the last year of the parties whose theme is \"Spring\" or \"Teqnology\"?", "question_toks": ["What", "are", "the", "first", "year", "and", "the", "last", "year", "of", "the", "parties", "whose", "theme", "is", "\"", "Spring", "\"", "or", "\"", "Teqnology", "\"?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0108", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600 or product_price > 900", "query_toks": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900"], "query_toks_no_value": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "value", "OR", "product_price", ">", "value"], "question": "What are the id and name of the products whose price is lower than 600 or higher than 900?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "products", "whose", "price", "is", "lower", "than", "600", "or", "higher", "than", "900", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0111", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the id, the role, and the first name of the professionals who have performed two or more treatments?", "question_toks": ["What", "are", "the", "id", ",", "the", "role", ",", "and", "the", "first", "name", "of", "the", "professionals", "who", "have", "performed", "two", "or", "more", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0118", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", ",", "T2", ".", "customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "customer_id", ",", "T2", ".", "customer_first_name", ",", "T2", ".", "customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1", ".", "customer_id", "=", "T2", ".", "customer_id", "GROUP", "BY", "T1", ".", "customer_id", "HAVING", "count", "(*)", ">=", "2"], "question": "What are the ids and the full names of customers who hold two or more cards?", "question_toks": ["What", "are", "the", "ids", "and", "the", "full", "names", "of", "customers", "who", "hold", "two", "or", "more", "cards", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0119", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "france", "''", "OR", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "value", "OR", "country", "=", "value"], "question": "What are the ids and the locations of all circuits in France or Belgium?", "question_toks": ["What", "are", "the", "ids", "and", "the", "locations", "of", "all", "circuits", "in", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0121", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "``", "london", "''"], "query_toks_no_value": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "value", "OR", "city", "=", "value"], "question": "What are the minimum and maximum membership amounts for all branches that are located in London?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "membership", "amounts", "for", "all", "branches", "that", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0136", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\" union select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "``", "omnis", "''", "UNION", "SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2", ".", "project_id", "=", "T3", ".", "project_id", "GROUP", "BY", "T2", ".", "project_id", "HAVING", "count", "(*)", ">", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "value", "UNION", "SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2", ".", "project_id", "=", "T3", ".", "project_id", "GROUP", "BY", "T2", ".", "project_id", "HAVING", "count", "(*)", ">", "2"], "question": "What are the task details, task id and project id for projects which are detailed as 'omnis' or have more than 2 outcomes?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "id", "and", "project", "id", "for", "projects", "which", "are", "detailed", "as", "'", "omnis", "'", "or", "have", "more", "than", "2", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0139", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\" union select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "``", "omnis", "''", "UNION", "SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2", ".", "project_id", "=", "T3", ".", "project_id", "GROUP", "BY", "T2", ".", "project_id", "HAVING", "count", "(*)", ">", "2"], "query_toks_no_value": ["SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "WHERE", "T2", ".", "project_details", "=", "value", "UNION", "SELECT", "T1", ".", "task_details", ",", "T1", ".", "task_id", ",", "T2", ".", "project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1", ".", "project_id", "=", "T2", ".", "project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2", ".", "project_id", "=", "T3", ".", "project_id", "GROUP", "BY", "T2", ".", "project_id", "HAVING", "count", "(*)", ">", "2"], "question": "What are the task details, the task ids, and project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?", "question_toks": ["What", "are", "the", "task", "details", ",", "the", "task", "ids", ",", "and", "project", "ids", "for", "the", "progrects", "that", "are", "detailed", "as", "'", "omnis", "'", "or", "have", "at", "least", "3", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0141", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = \"noel cv\" or document_name = \"king book\"", "query_toks": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "``", "noel", "cv", "''", "OR", "document_name", "=", "``", "king", "book", "''"], "query_toks_no_value": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "value", "cv", "OR", "document_name", "=", "value", "book"], "question": "What are the type come, name, and description of the document that has either name 'Noel CV' or 'King Book'?", "question_toks": ["What", "are", "the", "type", "come", ",", "name", ",", "and", "description", "of", "the", "document", "that", "has", "either", "name", "'", "Noel", "CV", "'", "or", "'", "King", "Book", "'?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"noel cv\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"king book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0143", "db_id": "train_station", "query": "select avg(total_passengers) , max(total_passengers) from station where location = \"london\" or location = \"glasgow\"", "query_toks": ["SELECT", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "``", "london", "''", "OR", "LOCATION", "=", "``", "glasgow", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "value", "OR", "LOCATION", "=", "value"], "question": "What is average and maximum number of total passengers for train stations in London or Glasgow?", "question_toks": ["What", "is", "average", "and", "maximum", "number", "of", "total", "passengers", "for", "train", "stations", "in", "London", "or", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"london\"", null], "or", [false, 2, [0, [0, 6, false], null], "\"glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0150", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<=", "value", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "question": "What is title and director for the movie with highest worldwide gross in the year 2000 or before?", "question_toks": ["What", "is", "title", "and", "director", "for", "the", "movie", "with", "highest", "worldwide", "gross", "in", "the", "year", "2000", "or", "before", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0152", "db_id": "bike_1", "query": "select date , zip_code from weather where max_temperature_f >= 80", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">=", "80"], "query_toks_no_value": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">=", "value"], "question": "What zip codes have the station with a max temperature greater than or equal to 80 and when did it reach that temperature?", "question_toks": ["What", "zip", "codes", "have", "the", "station", "with", "a", "max", "temperature", "greater", "than", "or", "equal", "to", "80", "and", "when", "did", "it", "reach", "that", "temperature", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0153", "db_id": "insurance_policies", "query": "select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id having count(*) > 2 union select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id where t1.amount_claimed = ( select max(amount_claimed) from claims )", "query_toks": ["SELECT", "T1", ".", "Date_Claim_Made", ",", "T1", ".", "Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "GROUP", "BY", "T1", ".", "Claim_id", "HAVING", "count", "(*)", ">", "2", "UNION", "SELECT", "T1", ".", "Date_Claim_Made", ",", "T1", ".", "Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "WHERE", "T1", ".", "Amount_Claimed", "=", "(", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")"], "query_toks_no_value": ["SELECT", "T1", ".", "Date_Claim_Made", ",", "T1", ".", "Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "GROUP", "BY", "T1", ".", "Claim_id", "HAVING", "count", "(*)", ">", "2", "UNION", "SELECT", "T1", ".", "Date_Claim_Made", ",", "T1", ".", "Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1", ".", "Claim_id", "=", "T2", ".", "Claim_id", "WHERE", "T1", ".", "Amount_Claimed", "=", "value", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")"], "question": "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made.", "question_toks": ["Which", "claims", "caused", "more", "than", "2", "settlements", "or", "have", "the", "maximum", "claim", "value", "?", "List", "the", "date", "the", "claim", "was", "made", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0160", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and the last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "and", "the", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0162", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like \"%west%\"", "query_toks": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "\"%", "west", "%\""], "query_toks_no_value": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "\"%", "west", "%\""], "question": "Which professionals live in the city containing the substring 'West'? List his or her role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "the", "city", "containing", "the", "substring", "'", "West", "'?", "List", "his", "or", "her", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%west%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0164", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["SELECT", "professional_id", ",", "last_name", ",", "cell_number", "FROM", "Professionals", "WHERE", "state", "=", "value", "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"], "question": "Which professionals live in the state of Indiana or have done treatment on more than two treatments? List his or her id, last name and cell phone.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "or", "have", "done", "treatment", "on", "more", "than", "two", "treatments", "?", "List", "his", "or", "her", "id", ",", "last", "name", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0920", "db_id": "dog_kennels", "query": "select avg(age) from dogs where dog_id in ( select dog_id from treatments )", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "Dogs", "WHERE", "dog_id", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "dogs", "where", "dog_id", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "What is the average age of the dogs who have gone through any treatments?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "dogs", "who", "have", "gone", "through", "any", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0900", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show name of all students who have some friends and also are liked by someone else.", "question_toks": ["Show", "name", "of", "all", "students", "who", "have", "some", "friends", "and", "also", "are", "liked", "by", "someone", "else", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0914", "db_id": "network_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "Find the average grade of all students who have some friends.", "question_toks": ["Find", "the", "average", "grade", "of", "all", "students", "who", "have", "some", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3754", "db_id": "program_share", "query": "select t1.owner from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"morning\" intersect select t1.owner from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"night\"", "query_toks": ["SELECT", "t1.owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''", "INTERSECT", "SELECT", "t1.owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Night", "''"], "query_toks_no_value": ["select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value", "intersect", "select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value"], "question": "find the program owners that have some programs in both morning and night time.", "question_toks": ["find", "the", "program", "owners", "that", "have", "some", "programs", "in", "both", "morning", "and", "night", "time", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Morning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Night\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6238", "db_id": "ship_1", "query": "select rank from captain where class = 'cutter' intersect select rank from captain where class = 'armed schooner'", "query_toks": ["SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Cutter", "'", "INTERSECT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Armed", "schooner", "'"], "query_toks_no_value": ["select", "rank", "from", "captain", "where", "class", "=", "value", "intersect", "select", "rank", "from", "captain", "where", "class", "=", "value"], "question": "Find the captain rank that has some captains in both Cutter and Armed schooner classes.", "question_toks": ["Find", "the", "captain", "rank", "that", "has", "some", "captains", "in", "both", "Cutter", "and", "Armed", "schooner", "classes", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Cutter\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Armed schooner\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0776", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "AND", "population", ">", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", ")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")"], "question": "Which Asian countries have a population that is larger than any country in Africa?", "question_toks": ["Which", "Asian", "countries", "have", "a", "population", "that", "is", "larger", "than", "any", "country", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1883", "db_id": "wrestler", "query": "select time from elimination where eliminated_by = \"punk\" or eliminated_by = \"orton\"", "query_toks": ["SELECT", "TIME", "FROM", "elimination", "WHERE", "Eliminated_By", "=", "``", "Punk", "''", "OR", "Eliminated_By", "=", "``", "Orton", "''"], "query_toks_no_value": ["select", "time", "from", "elimination", "where", "eliminated_by", "=", "value", "or", "eliminated_by", "=", "value"], "question": "What are the times of elimination for any instances in which the elimination was done by Punk or Orton?", "question_toks": ["What", "are", "the", "times", "of", "elimination", "for", "any", "instances", "in", "which", "the", "elimination", "was", "done", "by", "Punk", "or", "Orton", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Punk\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Orton\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0529", "db_id": "allergy_1", "query": "select count(*) from student where sex = \"m\" and stuid in (select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")"], "question": "Find the number of male (sex is 'M') students who have some food type allery.", "question_toks": ["Find", "the", "number", "of", "male", "(", "sex", "is", "'M", "'", ")", "students", "who", "have", "some", "food", "type", "allery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"M\"", null], "and", [false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0530", "db_id": "allergy_1", "query": "select count(*) from student where sex = \"m\" and stuid in (select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")"], "question": "How many male students (sex is 'M') are allergic to any type of food?", "question_toks": ["How", "many", "male", "students", "(", "sex", "is", "'M", "'", ")", "are", "allergic", "to", "any", "type", "of", "food", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"M\"", null], "and", [false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_any_some_in_nl_0045", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "''", "AND", "population", "<", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", "<", "value", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the African countries that have population less than any country in Asia?", "question_toks": ["What", "are", "the", "African", "countries", "that", "have", "population", "less", "than", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_any_some_in_nl_0048", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "asia", "''", "AND", "population", ">", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "value", "AND", "population", ">", "value", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "value", "\")"], "question": "What are the Asian countries which have population larger than that of any country in Africa?", "question_toks": ["What", "are", "the", "Asian", "countries", "which", "have", "population", "larger", "than", "that", "of", "any", "country", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0118", "db_id": "geo", "query": "select state_name from city where city_name = \"springfield\";", "query_toks": ["SELECT", "state_name", "FROM", "city", "WHERE", "city_name", "=", "``", "springfield", "''", ";"], "query_toks_no_value": ["select", "state_name", "from", "city", "where", "city_name", "=", "value"], "question": "where is springfield", "question_toks": ["where", "is", "springfield"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"springfield\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0132", "db_id": "geo", "query": "select population from city where city_name = \"boulder\";", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "city_name", "=", "``", "boulder", "''", ";"], "query_toks_no_value": ["select", "population", "from", "city", "where", "city_name", "=", "value"], "question": "how many people live in boulder", "question_toks": ["how", "many", "people", "live", "in", "boulder"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"boulder\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0180", "db_id": "flight_2", "query": "select country from airlines where airline = \"jetblue airways\"", "query_toks": ["SELECT", "Country", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "JetBlue", "Airways", "''"], "query_toks_no_value": ["select", "country", "from", "airlines", "where", "airline", "=", "value"], "question": "What country is Jetblue Airways affiliated with?", "question_toks": ["What", "country", "is", "Jetblue", "Airways", "affiliated", "with", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"JetBlue Airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0434", "db_id": "wta_1", "query": "select first_name , birth_date from players where country_code = 'usa'", "query_toks": ["SELECT", "first_name", ",", "birth_date", "FROM", "players", "WHERE", "country_code", "=", "'USA", "'"], "query_toks_no_value": ["select", "first_name", ",", "birth_date", "from", "players", "where", "country_code", "=", "value"], "question": "What are the first names and birth dates of players from the USA?", "question_toks": ["What", "are", "the", "first", "names", "and", "birth", "dates", "of", "players", "from", "the", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0514", "db_id": "student_transcripts_tracking", "query": "select zip_postcode from addresses where city = 'port chelsea'", "query_toks": ["SELECT", "zip_postcode", "FROM", "Addresses", "WHERE", "city", "=", "'Port", "Chelsea", "'"], "query_toks_no_value": ["select", "zip_postcode", "from", "addresses", "where", "city", "=", "value"], "question": "What is the zip code for Port Chelsea?", "question_toks": ["What", "is", "the", "zip", "code", "for", "Port", "Chelsea", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Port Chelsea\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0554", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'", "query_toks": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "\"timmothy\"", "and", "last_name", "=", "\"ward\""], "query_toks_no_value": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the mobile phone number of the student named Timmothy Ward ?", "question_toks": ["What", "is", "the", "mobile", "phone", "number", "of", "the", "student", "named", "Timmothy", "Ward", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"timmothy\"", null], "and", [false, 2, [0, [0, 37, false], null], "\"ward\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0720", "db_id": "world_1", "query": "select name from country where continent = \"asia\" order by lifeexpectancy limit 1", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "order", "by", "lifeexpectancy", "limit", "value"], "question": "What is the name of country that has the shortest life expectancy in Asia?", "question_toks": ["What", "is", "the", "name", "of", "country", "that", "has", "the", "shortest", "life", "expectancy", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0721", "db_id": "world_1", "query": "select name from country where continent = \"asia\" order by lifeexpectancy limit 1", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "order", "by", "lifeexpectancy", "limit", "value"], "question": "Give the name of the country in Asia with the lowest life expectancy.", "question_toks": ["Give", "the", "name", "of", "the", "country", "in", "Asia", "with", "the", "lowest", "life", "expectancy", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0722", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value"], "question": "What is the total population and maximum GNP in Asia?", "question_toks": ["What", "is", "the", "total", "population", "and", "maximum", "GNP", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0731", "db_id": "world_1", "query": "select avg(gnp) , sum(population) from country where governmentform = \"us territory\"", "query_toks": ["SELECT", "avg", "(", "GNP", ")", ",", "sum", "(", "population", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "US", "Territory", "''"], "query_toks_no_value": ["select", "avg", "(", "gnp", ")", ",", "sum", "(", "population", ")", "from", "country", "where", "governmentform", "=", "value"], "question": "Give the mean GNP and total population of nations which are considered US territory.", "question_toks": ["Give", "the", "mean", "GNP", "and", "total", "population", "of", "nations", "which", "are", "considered", "US", "territory", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]], [4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"US Territory\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "HIDDEN_AVG"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0736", "db_id": "world_1", "query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"aruba\"", "query_toks": ["SELECT", "COUNT", "(", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''"], "query_toks_no_value": ["select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value"], "question": "What is the total number of languages used in Aruba?", "question_toks": ["What", "is", "the", "total", "number", "of", "languages", "used", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Aruba\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0737", "db_id": "world_1", "query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"aruba\"", "query_toks": ["SELECT", "COUNT", "(", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''"], "query_toks_no_value": ["select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value"], "question": "How many languages are spoken in Aruba?", "question_toks": ["How", "many", "languages", "are", "spoken", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Aruba\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0738", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Afghanistan", "''", "AND", "IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many official languages does Afghanistan have?", "question_toks": ["How", "many", "official", "languages", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "VALUES_WITHOUT_COLUMNS", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0739", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Afghanistan", "''", "AND", "IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many official languages are spoken in Afghanistan?", "question_toks": ["How", "many", "official", "languages", "are", "spoken", "in", "Afghanistan", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "VALUES_WITHOUT_COLUMNS", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0806", "db_id": "world_1", "query": "select count(*) from country where continent = \"asia\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "continent", "=", "``", "Asia", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country", "where", "continent", "=", "value"], "question": "how many countries are in Asia?", "question_toks": ["how", "many", "countries", "are", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0873", "db_id": "network_1", "query": "select id from highschooler where name = \"kyle\"", "query_toks": ["SELECT", "ID", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "id", "from", "highschooler", "where", "name", "=", "value"], "question": "What is Kyle's id?", "question_toks": ["What", "is", "Kyle", "'s", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0166", "db_id": "bike_1", "query": "select count(*) from trip as t1 join station as t2 on t1.end_station_id = t2.id where t2.city != \"san francisco\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.end_station_id", "=", "T2.id", "WHERE", "T2.city", "!", "=", "``", "San", "Francisco", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id", "where", "t2", ".", "city", "!", "=", "value"], "question": "How many trips did not end in San Francisco?", "question_toks": ["How", "many", "trips", "did", "not", "end", "in", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0379", "db_id": "flight_1", "query": "select eid , salary from employee where name = 'mark young'", "query_toks": ["SELECT", "eid", ",", "salary", "FROM", "Employee", "WHERE", "name", "=", "'Mark", "Young", "'"], "query_toks_no_value": ["select", "eid", ",", "salary", "from", "employee", "where", "name", "=", "value"], "question": "Show the id and salary of Mark Young.", "question_toks": ["Show", "the", "id", "and", "salary", "of", "Mark", "Young", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Mark Young\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0424", "db_id": "flight_1", "query": "select t3.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t1.name = \"john williams\"", "query_toks": ["SELECT", "T3.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T1.name", "=", "``", "John", "Williams", "''"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value"], "question": "What are the names of all aircrafts that John Williams have certificates to be able to fly?", "question_toks": ["What", "are", "the", "names", "of", "all", "aircrafts", "that", "John", "Williams", "have", "certificates", "to", "be", "able", "to", "fly", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"John Williams\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0576", "db_id": "store_1", "query": "select email , phone from customers where first_name = \"astrid\" and last_name = \"gruber\";", "query_toks": ["SELECT", "email", ",", "phone", "FROM", "customers", "WHERE", "first_name", "=", "``", "Astrid", "''", "AND", "last_name", "=", "``", "Gruber", "''", ";"], "query_toks_no_value": ["select", "email", ",", "phone", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the email and phone number of Astrid Gruber the customer?", "question_toks": ["What", "is", "the", "email", "and", "phone", "number", "of", "Astrid", "Gruber", "the", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 32, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Astrid\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"Gruber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0598", "db_id": "store_1", "query": "select phone from employees where first_name = \"nancy\" and last_name = \"edwards\";", "query_toks": ["SELECT", "phone", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";"], "query_toks_no_value": ["select", "phone", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the the phone number of Nancy Edwards?", "question_toks": ["What", "is", "the", "the", "phone", "number", "of", "Nancy", "Edwards", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Nancy\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"Edwards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0607", "db_id": "store_1", "query": "select count(*) from customers as t1 join invoices as t2 on t1.id = t2.customer_id where t1.first_name = \"lucas\" and t1.last_name = \"mancini\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T1.id", "=", "T2.customer_id", "WHERE", "T1.first_name", "=", "``", "Lucas", "''", "AND", "T1.last_name", "=", "``", "Mancini", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "customer_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value"], "question": "How many orders does Lucas Mancini has?", "question_toks": ["How", "many", "orders", "does", "Lucas", "Mancini", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 39, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Lucas\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"Mancini\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0620", "db_id": "store_1", "query": "select milliseconds from tracks where name = \"fast as a shark\";", "query_toks": ["SELECT", "milliseconds", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";"], "query_toks_no_value": ["select", "milliseconds", "from", "tracks", "where", "name", "=", "value"], "question": "How many milliseconds long is Fast As a Shark?", "question_toks": ["How", "many", "milliseconds", "long", "is", "Fast", "As", "a", "Shark", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]]]], "where": [[false, 2, [0, [0, 50, false], null], "\"Fast As a Shark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0707", "db_id": "customers_card_transactions", "query": "select count(*) from customers_cards where card_type_code = \"debit\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers_cards", "WHERE", "card_type_code", "=", "``", "Debit", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers_cards", "where", "card_type_code", "=", "value"], "question": "How many debit cards do we have?", "question_toks": ["How", "many", "debit", "cards", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Debit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6996", "db_id": "culture_company", "query": "select t1.title , t3.book_title from movie as t1 join culture_company as t2 on t1.movie_id = t2.movie_id join book_club as t3 on t3.book_club_id = t2.book_club_id where t2.incorporated_in = 'china'", "query_toks": ["SELECT", "T1.title", ",", "T3.book_title", "FROM", "movie", "AS", "T1", "JOIN", "culture_company", "AS", "T2", "ON", "T1.movie_id", "=", "T2.movie_id", "JOIN", "book_club", "AS", "T3", "ON", "T3.book_club_id", "=", "T2.book_club_id", "WHERE", "T2.incorporated_in", "=", "'China", "'"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t3", ".", "book_title", "from", "movie", "as", "t1", "join", "culture_company", "as", "t2", "on", "t1", ".", "movie_id", "=", "t2", ".", "movie_id", "join", "book_club", "as", "t3", "on", "t3", ".", "book_club_id", "=", "t2", ".", "book_club_id", "where", "t2", ".", "incorporated_in", "=", "value"], "question": "Show the movie titles and book titles for all companies in China.", "question_toks": ["Show", "the", "movie", "titles", "and", "book", "titles", "for", "all", "companies", "in", "China", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"China\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0012", "db_id": "department_management", "query": "select distinct t1.age from management as t2 join head as t1 on t1.head_id = t2.head_id where t2.temporary_acting = 'yes'", "query_toks": ["SELECT", "DISTINCT", "T1.age", "FROM", "management", "AS", "T2", "JOIN", "head", "AS", "T1", "ON", "T1.head_id", "=", "T2.head_id", "WHERE", "T2.temporary_acting", "=", "'Yes", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "age", "from", "management", "as", "t2", "join", "head", "as", "t1", "on", "t1", ".", "head_id", "=", "t2", ".", "head_id", "where", "t2", ".", "temporary_acting", "=", "value"], "question": "What are the distinct ages of the heads who are acting?", "question_toks": ["What", "are", "the", "distinct", "ages", "of", "the", "heads", "who", "are", "acting", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0984", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "been", "abandoned", "?", "1", "stands", "for", "yes", ",", "and", "0", "stands", "for", "no", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0985", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6003", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = 'y'", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "List ids for all student who are on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "are", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6004", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = 'y'", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "What are the ids for all sporty students who are on scholarship?", "question_toks": ["What", "are", "the", "ids", "for", "all", "sporty", "students", "who", "are", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6005", "db_id": "game_1", "query": "select t2.lname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.onscholarship = 'y'", "query_toks": ["SELECT", "T2.Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "value"], "question": "Show last names for all student who are on scholarship.", "question_toks": ["Show", "last", "names", "for", "all", "student", "who", "are", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6006", "db_id": "game_1", "query": "select t2.lname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.onscholarship = 'y'", "query_toks": ["SELECT", "T2.Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "value"], "question": "What are the last names for all scholarship students?", "question_toks": ["What", "are", "the", "last", "names", "for", "all", "scholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6010", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = 'y'", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''", "AND", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value"], "question": "What is the total number of all football games played by scholarship students?", "question_toks": ["What", "is", "the", "total", "number", "of", "all", "football", "games", "played", "by", "scholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6019", "db_id": "game_1", "query": "select sportname from sportsinfo where onscholarship = 'y' group by sportname order by count(*) desc limit 1", "query_toks": ["SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "value", "group", "by", "sportname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which sport has most number of students on scholarship?", "question_toks": ["Which", "sport", "has", "most", "number", "of", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6020", "db_id": "game_1", "query": "select sportname from sportsinfo where onscholarship = 'y' group by sportname order by count(*) desc limit 1", "query_toks": ["SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "value", "group", "by", "sportname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the sport with the most scholarship students?", "question_toks": ["What", "is", "the", "sport", "with", "the", "most", "scholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6023", "db_id": "game_1", "query": "select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = 'y'", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "600", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "major", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "Show student ids who are on scholarship and have major 600.", "question_toks": ["Show", "student", "ids", "who", "are", "on", "scholarship", "and", "have", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6024", "db_id": "game_1", "query": "select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = 'y'", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "600", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "major", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "What are the student ids for those on scholarship in major number 600?", "question_toks": ["What", "are", "the", "student", "ids", "for", "those", "on", "scholarship", "in", "major", "number", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3914", "db_id": "hospital_1", "query": "select t1.name , t3.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t2.primaryaffiliation = 1", "query_toks": ["SELECT", "T1.name", ",", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T2.PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "value"], "question": "Find the names of all physicians and their primary affiliated departments' names.", "question_toks": ["Find", "the", "names", "of", "all", "physicians", "and", "their", "primary", "affiliated", "departments", "'", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3915", "db_id": "hospital_1", "query": "select t1.name , t3.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t2.primaryaffiliation = 1", "query_toks": ["SELECT", "T1.name", ",", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T2.PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "value"], "question": "What are the name and primarily affiliated department name of each physician?", "question_toks": ["What", "are", "the", "name", "and", "primarily", "affiliated", "department", "name", "of", "each", "physician", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3960", "db_id": "hospital_1", "query": "select physician , department from affiliated_with where primaryaffiliation = 1", "query_toks": ["SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "value"], "question": "List the physicians' employee ids together with their primary affiliation departments' ids.", "question_toks": ["List", "the", "physicians", "'", "employee", "ids", "together", "with", "their", "primary", "affiliation", "departments", "'", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3961", "db_id": "hospital_1", "query": "select physician , department from affiliated_with where primaryaffiliation = 1", "query_toks": ["SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "value"], "question": "What are each physician's employee id and department id primarily affiliated.", "question_toks": ["What", "are", "each", "physician", "'s", "employee", "id", "and", "department", "id", "primarily", "affiliated", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3962", "db_id": "hospital_1", "query": "select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation = 1", "query_toks": ["SELECT", "DISTINCT", "T2.name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.department", "=", "T2.departmentid", "WHERE", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "value"], "question": "List the names of departments where some physicians are primarily affiliated with.", "question_toks": ["List", "the", "names", "of", "departments", "where", "some", "physicians", "are", "primarily", "affiliated", "with", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3963", "db_id": "hospital_1", "query": "select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation = 1", "query_toks": ["SELECT", "DISTINCT", "T2.name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.department", "=", "T2.departmentid", "WHERE", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "value"], "question": "What are the names of departments that have primarily affiliated physicians.", "question_toks": ["What", "are", "the", "names", "of", "departments", "that", "have", "primarily", "affiliated", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0960", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from medicine where fda_approved = 'no'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "medicine", "WHERE", "FDA_approved", "=", "'No", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "medicine", "where", "fda_approved", "=", "value"], "question": "How many medicines were not approved by the FDA?", "question_toks": ["How", "many", "medicines", "were", "not", "approved", "by", "the", "FDA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"No\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0946", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine where fda_approved = 'yes'", "query_toks": ["SELECT", "name", ",", "trade_name", "FROM", "medicine", "WHERE", "FDA_approved", "=", "'Yes", "'"], "query_toks_no_value": ["select", "name", ",", "trade_name", "from", "medicine", "where", "fda_approved", "=", "value"], "question": "What are the names and trade names of the medcines that are FDA approved?", "question_toks": ["What", "are", "the", "names", "and", "trade", "names", "of", "the", "medcines", "that", "are", "FDA", "approved", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2947", "db_id": "sakila_1", "query": "select count(*) from customer where active = '1'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "customer", "WHERE", "active", "=", "'1", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customer", "where", "active", "=", "value"], "question": "Count the number of customers who are active.", "question_toks": ["Count", "the", "number", "of", "customers", "who", "are", "active", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4962", "db_id": "soccer_2", "query": "select count(*) from tryout where decision = 'yes'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "tryout", "where", "decision", "=", "value"], "question": "How many students got accepted after the tryout?", "question_toks": ["How", "many", "students", "got", "accepted", "after", "the", "tryout", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4981", "db_id": "soccer_2", "query": "select pname from player where ycard = 'yes' order by hs desc", "query_toks": ["SELECT", "pName", "FROM", "Player", "WHERE", "yCard", "=", "'yes", "'", "ORDER", "BY", "HS", "DESC"], "query_toks_no_value": ["select", "pname", "from", "player", "where", "ycard", "=", "value", "order", "by", "hs", "desc"], "question": "What are the name of the players who received a card in descending order of the hours of training?", "question_toks": ["What", "are", "the", "name", "of", "the", "players", "who", "received", "a", "card", "in", "descending", "order", "of", "the", "hours", "of", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4997", "db_id": "soccer_2", "query": "select distinct t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = 'yes'", "query_toks": ["SELECT", "DISTINCT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value"], "question": "What are the different states that had students successfully try out?", "question_toks": ["What", "are", "the", "different", "states", "that", "had", "students", "successfully", "try", "out", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5007", "db_id": "soccer_2", "query": "select t1.pname from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes' and t2.ppos = 'striker'", "query_toks": ["SELECT", "T1.pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'", "AND", "T2.pPos", "=", "'striker", "'"], "query_toks_no_value": ["select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value", "and", "t2", ".", "ppos", "=", "value"], "question": "What are the names of all students who successfully tried out for the position of striker?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "successfully", "tried", "out", "for", "the", "position", "of", "striker", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"striker\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5018", "db_id": "soccer_2", "query": "select cname from tryout where decision = 'yes' and ppos = 'goalie'", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'", "AND", "pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "decision", "=", "value", "and", "ppos", "=", "value"], "question": "Which college has any student who is a goalie and succeeded in the tryout.", "question_toks": ["Which", "college", "has", "any", "student", "who", "is", "a", "goalie", "and", "succeeded", "in", "the", "tryout", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5019", "db_id": "soccer_2", "query": "select cname from tryout where decision = 'yes' and ppos = 'goalie'", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'", "AND", "pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "decision", "=", "value", "and", "ppos", "=", "value"], "question": "What college has a student who successfully made the team in the role of a goalie?", "question_toks": ["What", "college", "has", "a", "student", "who", "successfully", "made", "the", "team", "in", "the", "role", "of", "a", "goalie", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5022", "db_id": "soccer_2", "query": "select distinct t1.state , t1.enr from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = 'yes'", "query_toks": ["SELECT", "DISTINCT", "T1.state", ",", "T1.enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value"], "question": "What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.", "question_toks": ["What", "is", "the", "state", "and", "enrollment", "of", "the", "colleges", "where", "have", "any", "students", "who", "got", "accepted", "in", "the", "tryout", "decision", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5023", "db_id": "soccer_2", "query": "select distinct t1.state , t1.enr from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = 'yes'", "query_toks": ["SELECT", "DISTINCT", "T1.state", ",", "T1.enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value"], "question": "How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "colleges", "that", "have", "student", "accepted", "during", "tryouts", ",", "and", "in", "which", "states", "are", "those", "colleges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0631", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "Find the package choice and series name of the TV channel that has high definition TV.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "high", "definition", "TV", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0632", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "What are the package options and the name of the series for the TV Channel that supports high definition TV?", "question_toks": ["What", "are", "the", "package", "options", "and", "the", "name", "of", "the", "series", "for", "the", "TV", "Channel", "that", "supports", "high", "definition", "TV", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1636", "db_id": "wedding", "query": "select count(*) from people where is_male = 'f' and age > 30", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "people", "WHERE", "is_male", "=", "'F", "'", "AND", "age", ">", "30"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "people", "where", "is_male", "=", "value", "and", "age", ">", "value"], "question": "How many female people are older than 30 in our record?", "question_toks": ["How", "many", "female", "people", "are", "older", "than", "30", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"F\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1644", "db_id": "wedding", "query": "select t2.name from wedding as t1 join people as t2 on t1.female_id = t2.people_id where t1.year = 2016 and t2.is_male = 'f' and t2.country = 'canada'", "query_toks": ["SELECT", "T2.name", "FROM", "wedding", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.female_id", "=", "T2.people_id", "WHERE", "T1.year", "=", "2016", "AND", "T2.is_male", "=", "'F", "'", "AND", "T2.country", "=", "'Canada", "'"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "wedding", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "female_id", "=", "t2", ".", "people_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "is_male", "=", "value", "and", "t2", ".", "country", "=", "value"], "question": "Show the names for all females from Canada having a wedding in year 2016.", "question_toks": ["Show", "the", "names", "for", "all", "females", "from", "Canada", "having", "a", "wedding", "in", "year", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 4, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0768", "db_id": "world_1", "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\"", "query_toks": ["SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.HeadOfState", "=", "``", "Beatrix", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the official language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "official", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0769", "db_id": "world_1", "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\"", "query_toks": ["SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.HeadOfState", "=", "``", "Beatrix", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the official language used in the country the name of whose head of state is Beatrix.", "question_toks": ["What", "is", "the", "official", "language", "used", "in", "the", "country", "the", "name", "of", "whose", "head", "of", "state", "is", "Beatrix", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0786", "db_id": "world_1", "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\"", "query_toks": ["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\""], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the official language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0000", "db_id": "baseball_1", "query": "select min(yearid) from hall_of_fame where inducted = \"y\"", "query_toks": ["SELECT", "MIN", "(", "yearid", ")", "FROM", "hall_of_fame", "WHERE", "inducted", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "MIN", "(", "yearid", ")", "FROM", "hall_of_fame", "WHERE", "inducted", "=", "value"], "question": "What is the earliest year when someone was inducted?", "question_toks": ["What", "is", "the", "earliest", "year", "when", "someone", "was", "inducted", "?"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[2, [0, [0, 145, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0001", "db_id": "baseball_1", "query": "select player_id from hall_of_fame where inducted = \"y\" and yearid = 1936 and category = \"player\"", "query_toks": ["SELECT", "player_id", "FROM", "hall_of_fame", "WHERE", "inducted", "=", "``", "y", "''", "AND", "yearid", "=", "1936", "and", "category", "=", "``", "player", "''"], "query_toks_no_value": ["SELECT", "player_id", "FROM", "hall_of_fame", "WHERE", "inducted", "=", "value", "AND", "yearid", "=", "value", "and", "category", "=", "value"], "question": "List the id of players who were inducted into the hall of fame in 1936", "question_toks": ["List", "the", "id", "of", "players", "who", "were", "inducted", "into", "the", "hall", "of", "fame", "in", "1936"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 144, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 145, false], null], 1936.0, null], "and", [false, 2, [0, [0, 151, false], null], "\"player\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0002", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "value"], "question": "Amount of debates with negative win", "question_toks": ["Amount", "of", "debates", "with", "negative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0003", "db_id": "debate", "query": "select debate_id from debate_people where if_affirmative_win = \"t\"", "query_toks": ["SELECT", "Debate_ID", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "Debate_ID", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "value"], "question": "Show ids of all debates with affirmative win", "question_toks": ["Show", "ids", "of", "all", "debates", "with", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0004", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "debate_people", "WHERE", "If_Affirmative_Win", "=", "value"], "question": "Amount of debates without affirmative win", "question_toks": ["Amount", "of", "debates", "without", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0005", "db_id": "department_management", "query": "select distinct t1.age from management as t2 join head as t1 on t1.head_id = t2.head_id where t2.temporary_acting = \"no\"", "query_toks": ["SELECT", "DISTINCT", "T1", ".", "age", "FROM", "management", "AS", "T2", "JOIN", "head", "AS", "T1", "ON", "T1", ".", "head_id", "=", "T2", ".", "head_id", "WHERE", "T2", ".", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "T1", ".", "age", "FROM", "management", "AS", "T2", "JOIN", "head", "AS", "T1", "ON", "T1", ".", "head_id", "=", "T2", ".", "head_id", "WHERE", "T2", ".", "temporary_acting", "=", "value"], "question": "Amount of debates without affirmative win", "question_toks": ["Amount", "of", "debates", "without", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0006", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "value"], "question": "Amount of not temporary acting managements", "question_toks": ["Amount", "of", "not", "temporary", "acting", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0007", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "value"], "question": "Amount of regular managements", "question_toks": ["Amount", "of", "regular", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0009", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "value"], "question": "How many temporary acting managements are there?", "question_toks": ["How", "many", "temporary", "acting", "managements", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0010", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "management", "WHERE", "temporary_acting", "=", "value"], "question": "Amount of temporary acting managements", "question_toks": ["Amount", "of", "temporary", "acting", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0011", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 0", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "0"], "query_toks_no_value": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have not been abandoned? 1 stands for yes, and 0 stands for no.", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "not", "been", "abandoned", "?", "1", "stands", "for", "yes", ",", "and", "0", "stands", "for", "no", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 0.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0014", "db_id": "dog_kennels", "query": "select name from dogs where gender = \"1\"", "query_toks": ["SELECT", "name", "FROM", "Dogs", "WHERE", "Gender", "=", "``", "1", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "Dogs", "WHERE", "Gender", "=", "value"], "question": "Please, list all female dog names in kennels?", "question_toks": ["Please", ",", "list", "all", "female", "dog", "names", "in", "kennels", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0015", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"f\"", "query_toks": ["SELECT", "DISTINCT", "(", "Shop_ID", ")", "FROM", "hiring", "WHERE", "Is_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Shop_ID", ")", "FROM", "hiring", "WHERE", "Is_full_time", "=", "value"], "question": "Show ids of all shops with part time vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "part", "time", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0016", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"t\"", "query_toks": ["SELECT", "DISTINCT", "(", "Shop_ID", ")", "FROM", "hiring", "WHERE", "Is_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Shop_ID", ")", "FROM", "hiring", "WHERE", "Is_full_time", "=", "value"], "question": "Show ids of all shops with full time vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "full", "time", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0017", "db_id": "flight_4", "query": "select callsign from airlines where active = \"n\"", "query_toks": ["SELECT", "callsign", "FROM", "airlines", "WHERE", "active", "=", "``", "n", "''"], "query_toks_no_value": ["SELECT", "callsign", "FROM", "airlines", "WHERE", "active", "=", "value"], "question": "What are callsigns of inactive airlines?", "question_toks": ["What", "are", "callsigns", "of", "inactive", "airlines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0018", "db_id": "flight_4", "query": "select name from airlines where active = \"y\"", "query_toks": ["SELECT", "name", "FROM", "airlines", "WHERE", "active", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "name", "FROM", "airlines", "WHERE", "active", "=", "value"], "question": "Names of active airlines", "question_toks": ["Names", "of", "active", "airlines"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0019", "db_id": "flight_4", "query": "select count(*) from airlines where active = \"y\" and country = \"canada\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "airlines", "WHERE", "active", "=", "``", "y", "''", "AND", "country", "=", "``", "canada", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "airlines", "WHERE", "active", "=", "value", "AND", "country", "=", "value"], "question": "How many active airlines are in Canada?", "question_toks": ["How", "many", "active", "airlines", "are", "in", "Canada", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0020", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = \"n\"", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "``", "n", "''"], "query_toks_no_value": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "value"], "question": "List ids for all student who are not on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "are", "not", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0021", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where onscholarship = \"n\"", "query_toks": ["SELECT", "SUM", "(", "GamesPlayed", ")", "FROM", "SportsInfo", "WHERE", "OnScholarship", "=", "``", "n", "''"], "query_toks_no_value": ["SELECT", "SUM", "(", "GamesPlayed", ")", "FROM", "SportsInfo", "WHERE", "OnScholarship", "=", "value"], "question": "What the total amount of games played not on scholarship?", "question_toks": ["What", "the", "total", "amount", "of", "games", "played", "not", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0032", "db_id": "game_1", "query": "select avg(hoursperweek) from sportsinfo where onscholarship = \"y\"", "query_toks": ["SELECT", "AVG", "(", "HoursPerWeek", ")", "FROM", "SportsInfo", "WHERE", "OnScholarship", "=", "``", "y", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "HoursPerWeek", ")", "FROM", "SportsInfo", "WHERE", "OnScholarship", "=", "value"], "question": "How many hours per week students on scholarship are playing in average?", "question_toks": ["How", "many", "hours", "per", "week", "students", "on", "scholarship", "are", "playing", "in", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0039", "db_id": "hospital_1", "query": "select name from physician join affiliated_with on physician.employeeid = affiliated_with.physician where affiliated_with.primaryaffiliation = 1", "query_toks": ["SELECT", "Name", "FROM", "Physician", "JOIN", "Affiliated_With", "ON", "Physician", ".", "EmployeeID", "=", "Affiliated_With", ".", "Physician", "WHERE", "Affiliated_With", ".", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["SELECT", "Name", "FROM", "Physician", "JOIN", "Affiliated_With", "ON", "Physician", ".", "EmployeeID", "=", "Affiliated_With", ".", "Physician", "WHERE", "Affiliated_With", ".", "PrimaryAffiliation", "=", "value"], "question": "Show the names of the physicians with the primary affiliation", "question_toks": ["Show", "the", "names", "of", "the", "physicians", "with", "the", "primary", "affiliation"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0040", "db_id": "hospital_1", "query": "select distinct name from nurse where registered = 1", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "Nurse", "WHERE", "Registered", "=", "1"], "query_toks_no_value": ["SELECT", "DISTINCT", "Name", "FROM", "Nurse", "WHERE", "Registered", "=", "value"], "question": "What are the names of the registered nurses?", "question_toks": ["What", "are", "the", "names", "of", "the", "registered", "nurses", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0043", "db_id": "orchestra", "query": "select min(attendance) from show where result = \"t\"", "query_toks": ["SELECT", "MIN", "(", "Attendance", ")", "FROM", "show", "WHERE", "Result", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "MIN", "(", "Attendance", ")", "FROM", "show", "WHERE", "Result", "=", "value"], "question": "Minimum attendance of shows with results", "question_toks": ["Minimum", "attendance", "of", "shows", "with", "results"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0044", "db_id": "product_catalog", "query": "select max(catalog_level_number) from catalog_contents_additional_attributes where attribute_value = 1", "query_toks": ["SELECT", "MAX", "(", "catalog_level_number", ")", "FROM", "Catalog_Contents_Additional_Attributes", "WHERE", "attribute_value", "=", "1"], "query_toks_no_value": ["SELECT", "MAX", "(", "catalog_level_number", ")", "FROM", "Catalog_Contents_Additional_Attributes", "WHERE", "attribute_value", "=", "value"], "question": "What is the maximum level number of catalogs with attribute values?", "question_toks": ["What", "is", "the", "maximum", "level", "number", "of", "catalogs", "with", "attribute", "values", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0045", "db_id": "products_for_hire", "query": "select avg(booked_count) from products_booked where returned_late_yn = 1", "query_toks": ["SELECT", "AVG", "(", "booked_count", ")", "FROM", "Products_Booked", "WHERE", "returned_late_yn", "=", "1"], "query_toks_no_value": ["SELECT", "AVG", "(", "booked_count", ")", "FROM", "Products_Booked", "WHERE", "returned_late_yn", "=", "value"], "question": "What is the average amount of booked counts that were returned late?", "question_toks": ["What", "is", "the", "average", "amount", "of", "booked", "counts", "that", "were", "returned", "late", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]]]], "where": [[false, 2, [0, [0, 39, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0047", "db_id": "sakila_1", "query": "select first_name from customer where active = 1", "query_toks": ["SELECT", "first_name", "FROM", "customer", "WHERE", "active", "=", "1"], "query_toks_no_value": ["SELECT", "first_name", "FROM", "customer", "WHERE", "active", "=", "value"], "question": "Show me the first names of active customers", "question_toks": ["Show", "me", "the", "first", "names", "of", "active", "customers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0048", "db_id": "school_bus", "query": "select count(distinct school_id) from school_bus where if_full_time = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "School_ID", ")", "FROM", "school_bus", "WHERE", "If_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "School_ID", ")", "FROM", "school_bus", "WHERE", "If_full_time", "=", "value"], "question": "How many schools have buses working full time?", "question_toks": ["How", "many", "schools", "have", "buses", "working", "full", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0049", "db_id": "school_bus", "query": "select count(distinct school_id) from school_bus where if_full_time = \"f\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "School_ID", ")", "FROM", "school_bus", "WHERE", "If_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "School_ID", ")", "FROM", "school_bus", "WHERE", "If_full_time", "=", "value"], "question": "How many schools don't have full time buses?", "question_toks": ["How", "many", "schools", "don", "'", "t", "have", "full", "time", "buses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0050", "db_id": "soccer_2", "query": "select avg(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"no\"", "query_toks": ["SELECT", "avg", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "T1", ".", "HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "value"], "question": "Find the average hours for the students whose tryout decision is negative.", "question_toks": ["Find", "the", "average", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "negative", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0054", "db_id": "soccer_2", "query": "select t1.pname , t1.hs from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["SELECT", "T1", ".", "pName", ",", "T1", ".", "HS", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "pName", ",", "T1", ".", "HS", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1", ".", "pID", "=", "T2", ".", "pID", "WHERE", "T2", ".", "decision", "=", "value"], "question": "Find the name and hours of the students who got positive dicision.", "question_toks": ["Find", "the", "name", "and", "hours", "of", "the", "students", "who", "got", "positive", "dicision", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0061", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"no\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "value"], "question": "Find the package choice and series name of the TV channel that has low definition TV.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "low", "definition", "TV", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0062", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"no\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "TV_Channel", "WHERE", "Pay_per_view_PPV", "=", "``", "no", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "TV_Channel", "WHERE", "Pay_per_view_PPV", "=", "value"], "question": "Amount of TV channels without paying per view", "question_toks": ["Amount", "of", "TV", "channels", "without", "paying", "per", "view"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0065", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"yes\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "TV_Channel", "WHERE", "Pay_per_view_PPV", "=", "``", "yes", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "TV_Channel", "WHERE", "Pay_per_view_PPV", "=", "value"], "question": "Amount of TV channels with paying per view", "question_toks": ["Amount", "of", "TV", "channels", "with", "paying", "per", "view"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0068", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"f\"", "query_toks": ["SELECT", "AVG", "(", "age", ")", "FROM", "people", "WHERE", "Is_Male", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "age", ")", "FROM", "people", "WHERE", "Is_Male", "=", "value"], "question": "Average age of women", "question_toks": ["Average", "age", "of", "women"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0069", "db_id": "wedding", "query": "select count(*) from people where is_male = \"t\" and age > 30", "query_toks": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "is_male", "=", "``", "t", "''", "AND", "age", ">", "30"], "query_toks_no_value": ["SELECT", "count", "(*)", "FROM", "people", "WHERE", "is_male", "=", "value", "AND", "age", ">", "value"], "question": "How many males are older than 30 in our record?", "question_toks": ["How", "many", "males", "are", "older", "than", "30", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0071", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"t\"", "query_toks": ["SELECT", "AVG", "(", "age", ")", "FROM", "people", "WHERE", "Is_Male", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "age", ")", "FROM", "people", "WHERE", "Is_Male", "=", "value"], "question": "Show me the average age of men", "question_toks": ["Show", "me", "the", "average", "age", "of", "men"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0072", "db_id": "wedding", "query": "select count(distinct country) from people where is_male = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "people", "WHERE", "Is_Male", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "people", "WHERE", "Is_Male", "=", "value"], "question": "How many countries are the men from?", "question_toks": ["How", "many", "countries", "are", "the", "men", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0073", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"f\"", "query_toks": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "``", "afghanistan", "''", "AND", "IsOfficial", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "COUNT", "(*)", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "Name", "=", "value", "AND", "IsOfficial", "=", "value"], "question": "How many not official languages does Afghanistan have?", "question_toks": ["How", "many", "not", "official", "languages", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0074", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and t2.isofficial = \"f\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"french\" and t2.isofficial = \"f\"", "query_toks": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "english", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "f", "''", "INTERSECT", "SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "``", "french", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value", "INTERSECT", "SELECT", "T1", ".", "Name", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T2", ".", "Language", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What are the names of nations where both English and French are inofficial languages?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "are", "inofficial", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0075", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"f\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"f\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "isofficial", "=", "``", "f", "''", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''", "and", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where neither English nor Dutch is the official language ?", "question_toks": ["What", "are", "the", "countries", "where", "neither", "English", "nor", "Dutch", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0076", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"beatrix\" and t2.isofficial = \"f\"", "query_toks": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "``", "beatrix", "''", "AND", "T2", ".", "IsOfficial", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "T2", ".", "Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "T1", ".", "HeadOfState", "=", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What is the inofficial language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "inofficial", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0077", "db_id": "world_1", "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 = \"f\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "IndepYear", "<", "1930", "AND", "T2", ".", "IsOfficial", "=", "``", "f", "''"], "query_toks_no_value": ["SELECT", "count", "(", "DISTINCT", "T2", ".", "Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1", ".", "Code", "=", "T2", ".", "CountryCode", "WHERE", "IndepYear", "<", "value", "AND", "T2", ".", "IsOfficial", "=", "value"], "question": "What is the total number of unique inofficial languages spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "inofficial", "languages", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0078", "db_id": "world_1", "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 = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["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", "=", "``", "f", "''", "and", "t2", ".", "language", "=", "``", "chinese", "''", "and", "t1", ".", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the unofficial language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "unofficial", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0079", "db_id": "world_1", "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 = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["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", "=", "``", "f", "''", "AND", "T2", ".", "Language", "=", "``", "chinese", "''", "AND", "T1", ".", "Continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "=", "value", "AND", "T2", ".", "Language", "=", "value", "AND", "T1", ".", "Continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the inofficial language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "inofficial", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0080", "db_id": "world_1", "query": "select distinct(countrycode) from countrylanguage where isofficial = \"f\" and percentage > 10", "query_toks": ["SELECT", "DISTINCT", "(", "CountryCode", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "``", "f", "''", "AND", "Percentage", ">", "10"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "CountryCode", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "value", "AND", "Percentage", ">", "value"], "question": "Print me different codes of countries in which there are more then 10 percent of people speaking not official languages", "question_toks": ["Print", "me", "different", "codes", "of", "countries", "in", "which", "there", "are", "more", "then", "10", "percent", "of", "people", "speaking", "not", "official", "languages"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 3, [0, [0, 26, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0093", "db_id": "world_1", "query": "select avg(percentage) from countrylanguage where isofficial = \"t\"", "query_toks": ["SELECT", "AVG", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "``", "t", "''"], "query_toks_no_value": ["SELECT", "AVG", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "value"], "question": "What is the average percentage of people in countries speaking offical language?", "question_toks": ["What", "is", "the", "average", "percentage", "of", "people", "in", "countries", "speaking", "offical", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0094", "db_id": "world_1", "query": "select percentage from countrylanguage where isofficial = \"t\" and countrycode = \"kaz\"", "query_toks": ["SELECT", "Percentage", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "``", "t", "''", "AND", "CountryCode", "=", "``", "kaz", "''"], "query_toks_no_value": ["SELECT", "Percentage", "FROM", "countrylanguage", "WHERE", "IsOfficial", "=", "value", "AND", "CountryCode", "=", "value"], "question": "What is the percentage of people speaking offical language in KAZ?", "question_toks": ["What", "is", "the", "percentage", "of", "people", "speaking", "offical", "language", "in", "KAZ", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"kaz\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0492", "db_id": "battle_death", "query": "select name , tonnage from ship order by name desc", "query_toks": ["SELECT", "name", ",", "tonnage", "FROM", "ship", "ORDER", "BY", "name", "DESC"], "query_toks_no_value": ["select", "name", ",", "tonnage", "from", "ship", "order", "by", "name", "desc"], "question": "List the name and tonnage ordered by in descending alphaetical order for the names.", "question_toks": ["List", "the", "name", "and", "tonnage", "ordered", "by", "in", "descending", "alphaetical", "order", "for", "the", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0002", "db_id": "concert_singer", "query": "select name , country , age from singer order by age desc", "query_toks": ["SELECT", "name", ",", "country", ",", "age", "FROM", "singer", "ORDER", "BY", "age", "DESC"], "query_toks_no_value": ["select", "name", ",", "country", ",", "age", "from", "singer", "order", "by", "age", "desc"], "question": "Show name, country, age for all singers ordered by age from the oldest to the youngest.", "question_toks": ["Show", "name", ",", "country", ",", "age", "for", "all", "singers", "ordered", "by", "age", "from", "the", "oldest", "to", "the", "youngest", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0003", "db_id": "concert_singer", "query": "select name , country , age from singer order by age desc", "query_toks": ["SELECT", "name", ",", "country", ",", "age", "FROM", "singer", "ORDER", "BY", "age", "DESC"], "query_toks_no_value": ["select", "name", ",", "country", ",", "age", "from", "singer", "order", "by", "age", "desc"], "question": "What are the names, countries, and ages for every singer in descending order of age?", "question_toks": ["What", "are", "the", "names", ",", "countries", ",", "and", "ages", "for", "every", "singer", "in", "descending", "order", "of", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0383", "db_id": "course_teach", "query": "select name from teacher order by age asc", "query_toks": ["SELECT", "Name", "FROM", "teacher", "ORDER", "BY", "Age", "ASC"], "query_toks_no_value": ["select", "name", "from", "teacher", "order", "by", "age", "asc"], "question": "List the names of teachers in ascending order of age.", "question_toks": ["List", "the", "names", "of", "teachers", "in", "ascending", "order", "of", "age", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0384", "db_id": "course_teach", "query": "select name from teacher order by age asc", "query_toks": ["SELECT", "Name", "FROM", "teacher", "ORDER", "BY", "Age", "ASC"], "query_toks_no_value": ["select", "name", "from", "teacher", "order", "by", "age", "asc"], "question": "What are the names of the teachers ordered by ascending age?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "ordered", "by", "ascending", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0261", "db_id": "employee_hire_evaluation", "query": "select name from employee order by age", "query_toks": ["SELECT", "name", "FROM", "employee", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "name", "from", "employee", "order", "by", "age"], "question": "Sort employee names by their age in ascending order.", "question_toks": ["Sort", "employee", "names", "by", "their", "age", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0262", "db_id": "employee_hire_evaluation", "query": "select name from employee order by age", "query_toks": ["SELECT", "name", "FROM", "employee", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "name", "from", "employee", "order", "by", "age"], "question": "List the names of employees and sort in ascending order of age.", "question_toks": ["List", "the", "names", "of", "employees", "and", "sort", "in", "ascending", "order", "of", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0273", "db_id": "employee_hire_evaluation", "query": "select name , location , district from shop order by number_products desc", "query_toks": ["SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC"], "query_toks_no_value": ["select", "name", ",", "location", ",", "district", "from", "shop", "order", "by", "number_products", "desc"], "question": "Return the name, location and district of all shops in descending order of number of products.", "question_toks": ["Return", "the", "name", ",", "location", "and", "district", "of", "all", "shops", "in", "descending", "order", "of", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0274", "db_id": "employee_hire_evaluation", "query": "select name , location , district from shop order by number_products desc", "query_toks": ["SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC"], "query_toks_no_value": ["select", "name", ",", "location", ",", "district", "from", "shop", "order", "by", "number_products", "desc"], "question": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.", "question_toks": ["Sort", "all", "the", "shops", "by", "number", "products", "in", "descending", "order", ",", "and", "return", "the", "name", ",", "location", "and", "district", "of", "each", "shop", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0412", "db_id": "museum_visit", "query": "select name from visitor where level_of_membership > 4 order by level_of_membership desc", "query_toks": ["SELECT", "name", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4", "ORDER", "BY", "Level_of_membership", "DESC"], "query_toks_no_value": ["select", "name", "from", "visitor", "where", "level_of_membership", ">", "value", "order", "by", "level_of_membership", "desc"], "question": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.", "question_toks": ["Find", "the", "names", "of", "the", "visitors", "whose", "membership", "level", "is", "higher", "than", "4", ",", "and", "order", "the", "results", "by", "the", "level", "from", "high", "to", "low", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0414", "db_id": "museum_visit", "query": "select name , level_of_membership from visitor where level_of_membership > 4 order by age desc", "query_toks": ["SELECT", "name", ",", "Level_of_membership", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4", "ORDER", "BY", "age", "DESC"], "query_toks_no_value": ["select", "name", ",", "level_of_membership", "from", "visitor", "where", "level_of_membership", ">", "value", "order", "by", "age", "desc"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0824", "db_id": "orchestra", "query": "select name from conductor order by age asc", "query_toks": ["SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Age", "ASC"], "query_toks_no_value": ["select", "name", "from", "conductor", "order", "by", "age", "asc"], "question": "List the names of conductors in ascending order of age.", "question_toks": ["List", "the", "names", "of", "conductors", "in", "ascending", "order", "of", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0825", "db_id": "orchestra", "query": "select name from conductor order by age asc", "query_toks": ["SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Age", "ASC"], "query_toks_no_value": ["select", "name", "from", "conductor", "order", "by", "age", "asc"], "question": "What are the names of conductors, ordered by age?", "question_toks": ["What", "are", "the", "names", "of", "conductors", ",", "ordered", "by", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0828", "db_id": "orchestra", "query": "select record_company from orchestra order by year_of_founded desc", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc"], "question": "What are the record companies of orchestras in descending order of years in which they were founded?", "question_toks": ["What", "are", "the", "record", "companies", "of", "orchestras", "in", "descending", "order", "of", "years", "in", "which", "they", "were", "founded", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0829", "db_id": "orchestra", "query": "select record_company from orchestra order by year_of_founded desc", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc"], "question": "Return the record companies of orchestras, sorted descending by the years in which they were founded.", "question_toks": ["Return", "the", "record", "companies", "of", "orchestras", ",", "sorted", "descending", "by", "the", "years", "in", "which", "they", "were", "founded", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0836", "db_id": "orchestra", "query": "select name from conductor order by year_of_work desc", "query_toks": ["SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC"], "query_toks_no_value": ["select", "name", "from", "conductor", "order", "by", "year_of_work", "desc"], "question": "List names of conductors in descending order of years of work.", "question_toks": ["List", "names", "of", "conductors", "in", "descending", "order", "of", "years", "of", "work", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0837", "db_id": "orchestra", "query": "select name from conductor order by year_of_work desc", "query_toks": ["SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC"], "query_toks_no_value": ["select", "name", "from", "conductor", "order", "by", "year_of_work", "desc"], "question": "What are the names of conductors, sorted descending by the number of years they have worked?", "question_toks": ["What", "are", "the", "names", "of", "conductors", ",", "sorted", "descending", "by", "the", "number", "of", "years", "they", "have", "worked", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0649", "db_id": "poker_player", "query": "select earnings from poker_player order by earnings desc", "query_toks": ["SELECT", "Earnings", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC"], "query_toks_no_value": ["select", "earnings", "from", "poker_player", "order", "by", "earnings", "desc"], "question": "List the earnings of poker players in descending order.", "question_toks": ["List", "the", "earnings", "of", "poker", "players", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0650", "db_id": "poker_player", "query": "select earnings from poker_player order by earnings desc", "query_toks": ["SELECT", "Earnings", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC"], "query_toks_no_value": ["select", "earnings", "from", "poker_player", "order", "by", "earnings", "desc"], "question": "What are the earnings of poker players, ordered descending by value?", "question_toks": ["What", "are", "the", "earnings", "of", "poker", "players", ",", "ordered", "descending", "by", "value", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0663", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "List the names of poker players ordered by the final tables made in ascending order.", "question_toks": ["List", "the", "names", "of", "poker", "players", "ordered", "by", "the", "final", "tables", "made", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0664", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the names of poker players, ordered ascending by the number of final tables they have made?", "question_toks": ["What", "are", "the", "names", "of", "poker", "players", ",", "ordered", "ascending", "by", "the", "number", "of", "final", "tables", "they", "have", "made", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0671", "db_id": "poker_player", "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", "query_toks": ["SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "DESC"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "desc"], "question": "What are the names of poker players in descending order of earnings?", "question_toks": ["What", "are", "the", "names", "of", "poker", "players", "in", "descending", "order", "of", "earnings", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0672", "db_id": "poker_player", "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", "query_toks": ["SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "DESC"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "desc"], "question": "Return the names of poker players sorted by their earnings descending.", "question_toks": ["Return", "the", "names", "of", "poker", "players", "sorted", "by", "their", "earnings", "descending", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0679", "db_id": "poker_player", "query": "select name , birth_date from people order by name asc", "query_toks": ["SELECT", "Name", ",", "Birth_Date", "FROM", "people", "ORDER", "BY", "Name", "ASC"], "query_toks_no_value": ["select", "name", ",", "birth_date", "from", "people", "order", "by", "name", "asc"], "question": "List the names and birth dates of people in ascending alphabetical order of name.", "question_toks": ["List", "the", "names", "and", "birth", "dates", "of", "people", "in", "ascending", "alphabetical", "order", "of", "name", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0680", "db_id": "poker_player", "query": "select name , birth_date from people order by name asc", "query_toks": ["SELECT", "Name", ",", "Birth_Date", "FROM", "people", "ORDER", "BY", "Name", "ASC"], "query_toks_no_value": ["select", "name", ",", "birth_date", "from", "people", "order", "by", "name", "asc"], "question": "What are the names and birth dates of people, ordered by their names in alphabetical order?", "question_toks": ["What", "are", "the", "names", "and", "birth", "dates", "of", "people", ",", "ordered", "by", "their", "names", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1002", "db_id": "singer", "query": "select name from singer order by net_worth_millions asc", "query_toks": ["SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "ASC"], "query_toks_no_value": ["select", "name", "from", "singer", "order", "by", "net_worth_millions", "asc"], "question": "List the name of singers in ascending order of net worth.", "question_toks": ["List", "the", "name", "of", "singers", "in", "ascending", "order", "of", "net", "worth", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1003", "db_id": "singer", "query": "select name from singer order by net_worth_millions asc", "query_toks": ["SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "ASC"], "query_toks_no_value": ["select", "name", "from", "singer", "order", "by", "net_worth_millions", "asc"], "question": "What are the names of singers ordered by ascending net worth?", "question_toks": ["What", "are", "the", "names", "of", "singers", "ordered", "by", "ascending", "net", "worth", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0527", "db_id": "student_transcripts_tracking", "query": "select section_name from sections order by section_name desc", "query_toks": ["SELECT", "section_name", "FROM", "Sections", "ORDER", "BY", "section_name", "DESC"], "query_toks_no_value": ["select", "section_name", "from", "sections", "order", "by", "section_name", "desc"], "question": "List the section_name in reversed lexicographical order.", "question_toks": ["List", "the", "section_name", "in", "reversed", "lexicographical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 25, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0528", "db_id": "student_transcripts_tracking", "query": "select section_name from sections order by section_name desc", "query_toks": ["SELECT", "section_name", "FROM", "Sections", "ORDER", "BY", "section_name", "DESC"], "query_toks_no_value": ["select", "section_name", "from", "sections", "order", "by", "section_name", "desc"], "question": "What are the names of the sections in reverse alphabetical order?", "question_toks": ["What", "are", "the", "names", "of", "the", "sections", "in", "reverse", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 25, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0579", "db_id": "student_transcripts_tracking", "query": "select other_student_details from students order by other_student_details desc", "query_toks": ["SELECT", "other_student_details", "FROM", "Students", "ORDER", "BY", "other_student_details", "DESC"], "query_toks_no_value": ["select", "other_student_details", "from", "students", "order", "by", "other_student_details", "desc"], "question": "List all the student details in reversed lexicographical order.", "question_toks": ["List", "all", "the", "student", "details", "in", "reversed", "lexicographical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 43, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0580", "db_id": "student_transcripts_tracking", "query": "select other_student_details from students order by other_student_details desc", "query_toks": ["SELECT", "other_student_details", "FROM", "Students", "ORDER", "BY", "other_student_details", "DESC"], "query_toks_no_value": ["select", "other_student_details", "from", "students", "order", "by", "other_student_details", "desc"], "question": "What other details can you tell me about students in reverse alphabetical order?", "question_toks": ["What", "other", "details", "can", "you", "tell", "me", "about", "students", "in", "reverse", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 43, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0585", "db_id": "tvshow", "query": "select title from cartoon order by title", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "ORDER", "BY", "title"], "query_toks_no_value": ["select", "title", "from", "cartoon", "order", "by", "title"], "question": "List the title of all cartoons in alphabetical order.", "question_toks": ["List", "the", "title", "of", "all", "cartoons", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0586", "db_id": "tvshow", "query": "select title from cartoon order by title", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "ORDER", "BY", "title"], "query_toks_no_value": ["select", "title", "from", "cartoon", "order", "by", "title"], "question": "What are the titles of the cartoons sorted alphabetically?", "question_toks": ["What", "are", "the", "titles", "of", "the", "cartoons", "sorted", "alphabetically", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0591", "db_id": "tvshow", "query": "select title , directed_by from cartoon order by original_air_date", "query_toks": ["SELECT", "title", ",", "Directed_by", "FROM", "Cartoon", "ORDER", "BY", "Original_air_date"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "cartoon", "order", "by", "original_air_date"], "question": "list all cartoon titles and their directors ordered by their air date", "question_toks": ["list", "all", "cartoon", "titles", "and", "their", "directors", "ordered", "by", "their", "air", "date"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 23, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0592", "db_id": "tvshow", "query": "select title , directed_by from cartoon order by original_air_date", "query_toks": ["SELECT", "title", ",", "Directed_by", "FROM", "Cartoon", "ORDER", "BY", "Original_air_date"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "cartoon", "order", "by", "original_air_date"], "question": "What is the name and directors of all the cartoons that are ordered by air date?", "question_toks": ["What", "is", "the", "name", "and", "directors", "of", "all", "the", "cartoons", "that", "are", "ordered", "by", "air", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 23, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0613", "db_id": "tvshow", "query": "select episode from tv_series order by rating", "query_toks": ["SELECT", "Episode", "FROM", "TV_series", "ORDER", "BY", "rating"], "query_toks_no_value": ["select", "episode", "from", "tv_series", "order", "by", "rating"], "question": "List the Episode of all TV series sorted by rating.", "question_toks": ["List", "the", "Episode", "of", "all", "TV", "series", "sorted", "by", "rating", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0614", "db_id": "tvshow", "query": "select episode from tv_series order by rating", "query_toks": ["SELECT", "Episode", "FROM", "TV_series", "ORDER", "BY", "rating"], "query_toks_no_value": ["select", "episode", "from", "tv_series", "order", "by", "rating"], "question": "What are all of the episodes ordered by ratings?", "question_toks": ["What", "are", "all", "of", "the", "episodes", "ordered", "by", "ratings", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0688", "db_id": "voter_1", "query": "select contestant_number , contestant_name from contestants order by contestant_name desc", "query_toks": ["SELECT", "contestant_number", ",", "contestant_name", "FROM", "contestants", "ORDER", "BY", "contestant_name", "DESC"], "query_toks_no_value": ["select", "contestant_number", ",", "contestant_name", "from", "contestants", "order", "by", "contestant_name", "desc"], "question": "List the contestant numbers and names, ordered by contestant name descending.", "question_toks": ["List", "the", "contestant", "numbers", "and", "names", ",", "ordered", "by", "contestant", "name", "descending", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0456", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "question": "What are the full names of all players, sorted by birth date?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "players", ",", "sorted", "by", "birth", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0457", "db_id": "wta_1", "query": "select first_name , last_name from players where hand = 'l' order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "'L", "'", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value", "order", "by", "birth_date"], "question": "List the first and last name of all players who are left / L hand in the order of birth date.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "who", "are", "left", "/", "L", "hand", "in", "the", "order", "of", "birth", "date", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"L\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0458", "db_id": "wta_1", "query": "select first_name , last_name from players where hand = 'l' order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "'L", "'", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value", "order", "by", "birth_date"], "question": "What are the full names of all left handed players, in order of birth date?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "left", "handed", "players", ",", "in", "order", "of", "birth", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"L\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1151", "db_id": "body_builder", "query": "select total from body_builder order by total asc", "query_toks": ["SELECT", "Total", "FROM", "body_builder", "ORDER", "BY", "Total", "ASC"], "query_toks_no_value": ["select", "total", "from", "body_builder", "order", "by", "total", "asc"], "question": "List the total scores of body builders in ascending order.", "question_toks": ["List", "the", "total", "scores", "of", "body", "builders", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1152", "db_id": "body_builder", "query": "select snatch , clean_jerk from body_builder order by snatch asc", "query_toks": ["SELECT", "Snatch", ",", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Snatch", "ASC"], "query_toks_no_value": ["select", "snatch", ",", "clean_jerk", "from", "body_builder", "order", "by", "snatch", "asc"], "question": "List the snatch score and clean jerk score of body builders in ascending order of snatch score.", "question_toks": ["List", "the", "snatch", "score", "and", "clean", "jerk", "score", "of", "body", "builders", "in", "ascending", "order", "of", "snatch", "score", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1155", "db_id": "body_builder", "query": "select birth_date from people order by height asc", "query_toks": ["SELECT", "Birth_Date", "FROM", "People", "ORDER", "BY", "Height", "ASC"], "query_toks_no_value": ["select", "birth_date", "from", "people", "order", "by", "height", "asc"], "question": "What are the birthdays of people in ascending order of height?", "question_toks": ["What", "are", "the", "birthdays", "of", "people", "in", "ascending", "order", "of", "height", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1162", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id order by t1.total desc", "query_toks": ["SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total", "DESC"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total", "desc"], "question": "What are the names of body builders in descending order of total scores?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "in", "descending", "order", "of", "total", "scores", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1166", "db_id": "body_builder", "query": "select height , weight from people order by height desc", "query_toks": ["SELECT", "Height", ",", "Weight", "FROM", "people", "ORDER", "BY", "Height", "DESC"], "query_toks_no_value": ["select", "height", ",", "weight", "from", "people", "order", "by", "height", "desc"], "question": "List the height and weight of people in descending order of height.", "question_toks": ["List", "the", "height", "and", "weight", "of", "people", "in", "descending", "order", "of", "height", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0214", "db_id": "book_2", "query": "select writer from book order by writer asc", "query_toks": ["SELECT", "Writer", "FROM", "book", "ORDER", "BY", "Writer", "ASC"], "query_toks_no_value": ["select", "writer", "from", "book", "order", "by", "writer", "asc"], "question": "List the writers of the books in ascending alphabetical order.", "question_toks": ["List", "the", "writers", "of", "the", "books", "in", "ascending", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0215", "db_id": "book_2", "query": "select title from book order by issues asc", "query_toks": ["SELECT", "Title", "FROM", "book", "ORDER", "BY", "Issues", "ASC"], "query_toks_no_value": ["select", "title", "from", "book", "order", "by", "issues", "asc"], "question": "List the titles of the books in ascending order of issues.", "question_toks": ["List", "the", "titles", "of", "the", "books", "in", "ascending", "order", "of", "issues", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0218", "db_id": "book_2", "query": "select publication_date from publication order by price desc", "query_toks": ["SELECT", "Publication_Date", "FROM", "publication", "ORDER", "BY", "Price", "DESC"], "query_toks_no_value": ["select", "publication_date", "from", "publication", "order", "by", "price", "desc"], "question": "What are the dates of publications in descending order of price?", "question_toks": ["What", "are", "the", "dates", "of", "publications", "in", "descending", "order", "of", "price", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0224", "db_id": "book_2", "query": "select t1.title from book as t1 join publication as t2 on t1.book_id = t2.book_id order by t2.price desc", "query_toks": ["SELECT", "T1.Title", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1.Book_ID", "=", "T2.Book_ID", "ORDER", "BY", "T2.Price", "DESC"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id", "order", "by", "t2", ".", "price", "desc"], "question": "Show the titles of books in descending order of publication price.", "question_toks": ["Show", "the", "titles", "of", "books", "in", "descending", "order", "of", "publication", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3757", "db_id": "program_share", "query": "select origin from program order by origin", "query_toks": ["SELECT", "origin", "FROM", "program", "ORDER", "BY", "origin"], "query_toks_no_value": ["select", "origin", "from", "program", "order", "by", "origin"], "question": "What is the list of program origins ordered alphabetically?", "question_toks": ["What", "is", "the", "list", "of", "program", "origins", "ordered", "alphabetically", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1911", "db_id": "protein_institute", "query": "select name , street_address , floors from building order by floors", "query_toks": ["SELECT", "name", ",", "street_address", ",", "floors", "FROM", "building", "ORDER", "BY", "floors"], "query_toks_no_value": ["select", "name", ",", "street_address", ",", "floors", "from", "building", "order", "by", "floors"], "question": "Show the name, street address, and number of floors for all buildings ordered by the number of floors.", "question_toks": ["Show", "the", "name", ",", "street", "address", ",", "and", "number", "of", "floors", "for", "all", "buildings", "ordered", "by", "the", "number", "of", "floors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0751", "db_id": "race_track", "query": "select name , seating from track where year_opened > 2000 order by seating", "query_toks": ["SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "2000", "ORDER", "BY", "seating"], "query_toks_no_value": ["select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "value", "order", "by", "seating"], "question": "Show names and seatings, ordered by seating for all tracks opened after 2000.", "question_toks": ["Show", "names", "and", "seatings", ",", "ordered", "by", "seating", "for", "all", "tracks", "opened", "after", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0752", "db_id": "race_track", "query": "select name , seating from track where year_opened > 2000 order by seating", "query_toks": ["SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "2000", "ORDER", "BY", "seating"], "query_toks_no_value": ["select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "value", "order", "by", "seating"], "question": "What are the names and seatings for all tracks opened after 2000, ordered by seating?", "question_toks": ["What", "are", "the", "names", "and", "seatings", "for", "all", "tracks", "opened", "after", "2000", ",", "ordered", "by", "seating", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5633", "db_id": "railway", "query": "select builder from railway order by builder asc", "query_toks": ["SELECT", "Builder", "FROM", "railway", "ORDER", "BY", "Builder", "ASC"], "query_toks_no_value": ["select", "builder", "from", "railway", "order", "by", "builder", "asc"], "question": "List the builders of railways in ascending alphabetical order.", "question_toks": ["List", "the", "builders", "of", "railways", "in", "ascending", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5637", "db_id": "railway", "query": "select name from manager order by level asc", "query_toks": ["SELECT", "Name", "FROM", "manager", "ORDER", "BY", "LEVEL", "ASC"], "query_toks_no_value": ["select", "name", "from", "manager", "order", "by", "level", "asc"], "question": "What are the names of managers in ascending order of level?", "question_toks": ["What", "are", "the", "names", "of", "managers", "in", "ascending", "order", "of", "level", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5651", "db_id": "railway", "query": "select working_year_starts from manager order by level desc", "query_toks": ["SELECT", "Working_year_starts", "FROM", "manager", "ORDER", "BY", "LEVEL", "DESC"], "query_toks_no_value": ["select", "working_year_starts", "from", "manager", "order", "by", "level", "desc"], "question": "Show the working years of managers in descending order of their level.", "question_toks": ["Show", "the", "working", "years", "of", "managers", "in", "descending", "order", "of", "their", "level", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4000", "db_id": "ship_mission", "query": "select name from ship order by tonnage asc", "query_toks": ["SELECT", "Name", "FROM", "ship", "ORDER", "BY", "Tonnage", "ASC"], "query_toks_no_value": ["select", "name", "from", "ship", "order", "by", "tonnage", "asc"], "question": "List the name of ships in ascending order of tonnage.", "question_toks": ["List", "the", "name", "of", "ships", "in", "ascending", "order", "of", "tonnage", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 12, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4001", "db_id": "ship_mission", "query": "select name from ship order by tonnage asc", "query_toks": ["SELECT", "Name", "FROM", "ship", "ORDER", "BY", "Tonnage", "ASC"], "query_toks_no_value": ["select", "name", "from", "ship", "order", "by", "tonnage", "asc"], "question": "what are the names of the ships ordered by ascending tonnage?", "question_toks": ["what", "are", "the", "names", "of", "the", "ships", "ordered", "by", "ascending", "tonnage", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 12, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5402", "db_id": "shop_membership", "query": "select name , address_road , city from branch order by open_year", "query_toks": ["SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch", "ORDER", "BY", "open_year"], "query_toks_no_value": ["select", "name", ",", "address_road", ",", "city", "from", "branch", "order", "by", "open_year"], "question": "Show name, address road, and city for all branches sorted by open year.", "question_toks": ["Show", "name", ",", "address", "road", ",", "and", "city", "for", "all", "branches", "sorted", "by", "open", "year", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5403", "db_id": "shop_membership", "query": "select name , address_road , city from branch order by open_year", "query_toks": ["SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch", "ORDER", "BY", "open_year"], "query_toks_no_value": ["select", "name", ",", "address_road", ",", "city", "from", "branch", "order", "by", "open_year"], "question": "What are the names, address roads, and cities of the branches ordered by opening year?", "question_toks": ["What", "are", "the", "names", ",", "address", "roads", ",", "and", "cities", "of", "the", "branches", "ordered", "by", "opening", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5416", "db_id": "shop_membership", "query": "select card_number , name , hometown from member order by level desc", "query_toks": ["SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member", "ORDER", "BY", "LEVEL", "DESC"], "query_toks_no_value": ["select", "card_number", ",", "name", ",", "hometown", "from", "member", "order", "by", "level", "desc"], "question": "Show card number, name, and hometown for all members in a descending order of level.", "question_toks": ["Show", "card", "number", ",", "name", ",", "and", "hometown", "for", "all", "members", "in", "a", "descending", "order", "of", "level", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5417", "db_id": "shop_membership", "query": "select card_number , name , hometown from member order by level desc", "query_toks": ["SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member", "ORDER", "BY", "LEVEL", "DESC"], "query_toks_no_value": ["select", "card_number", ",", "name", ",", "hometown", "from", "member", "order", "by", "level", "desc"], "question": "What are the card numbers, names, and hometowns of every member ordered by descending level?", "question_toks": ["What", "are", "the", "card", "numbers", ",", "names", ",", "and", "hometowns", "of", "every", "member", "ordered", "by", "descending", "level", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5420", "db_id": "shop_membership", "query": "select t3.name , t2.name from membership_register_branch as t1 join branch as t2 on t1.branch_id = t2.branch_id join member as t3 on t1.member_id = t3.member_id order by t1.register_year", "query_toks": ["SELECT", "T3.name", ",", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "ORDER", "BY", "T1.register_year"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "order", "by", "t1", ".", "register_year"], "question": "Show all member names and registered branch names sorted by register year.", "question_toks": ["Show", "all", "member", "names", "and", "registered", "branch", "names", "sorted", "by", "register", "year", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5421", "db_id": "shop_membership", "query": "select t3.name , t2.name from membership_register_branch as t1 join branch as t2 on t1.branch_id = t2.branch_id join member as t3 on t1.member_id = t3.member_id order by t1.register_year", "query_toks": ["SELECT", "T3.name", ",", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "ORDER", "BY", "T1.register_year"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "order", "by", "t1", ".", "register_year"], "question": "What are the names of the members and branches at which they are registered sorted by year of registration?", "question_toks": ["What", "are", "the", "names", "of", "the", "members", "and", "branches", "at", "which", "they", "are", "registered", "sorted", "by", "year", "of", "registration", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4584", "db_id": "solvency_ii", "query": "select product_name from products order by product_price asc", "query_toks": ["SELECT", "Product_Name", "FROM", "Products", "ORDER", "BY", "Product_Price", "ASC"], "query_toks_no_value": ["select", "product_name", "from", "products", "order", "by", "product_price", "asc"], "question": "List the name of products in ascending order of price.", "question_toks": ["List", "the", "name", "of", "products", "in", "ascending", "order", "of", "price", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0097", "db_id": "student_assessment", "query": "select first_name from people order by first_name", "query_toks": ["SELECT", "first_name", "FROM", "people", "ORDER", "BY", "first_name"], "query_toks_no_value": ["select", "first_name", "from", "people", "order", "by", "first_name"], "question": "List the first names of people in alphabetical order?", "question_toks": ["List", "the", "first", "names", "of", "people", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0098", "db_id": "student_assessment", "query": "select first_name from people order by first_name", "query_toks": ["SELECT", "first_name", "FROM", "people", "ORDER", "BY", "first_name"], "query_toks_no_value": ["select", "first_name", "from", "people", "order", "by", "first_name"], "question": "What are the first names of the people in alphabetical order?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "people", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5603", "db_id": "swimming", "query": "select name from event order by year desc", "query_toks": ["SELECT", "name", "FROM", "event", "ORDER", "BY", "YEAR", "DESC"], "query_toks_no_value": ["select", "name", "from", "event", "order", "by", "year", "desc"], "question": "List all the event names by year from the most recent to the oldest.", "question_toks": ["List", "all", "the", "event", "names", "by", "year", "from", "the", "most", "recent", "to", "the", "oldest", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5615", "db_id": "swimming", "query": "select name from swimmer order by meter_100", "query_toks": ["SELECT", "name", "FROM", "swimmer", "ORDER", "BY", "meter_100"], "query_toks_no_value": ["select", "name", "from", "swimmer", "order", "by", "meter_100"], "question": "Find the names of all swimmers, sorted by their 100 meter scores in ascending order.", "question_toks": ["Find", "the", "names", "of", "all", "swimmers", ",", "sorted", "by", "their", "100", "meter", "scores", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1651", "db_id": "theme_gallery", "query": "select name , age , country from artist order by year_join", "query_toks": ["SELECT", "name", ",", "age", ",", "country", "FROM", "artist", "ORDER", "BY", "Year_Join"], "query_toks_no_value": ["select", "name", ",", "age", ",", "country", "from", "artist", "order", "by", "year_join"], "question": "Show all artist name, age, and country ordered by the yeared they joined.", "question_toks": ["Show", "all", "artist", "name", ",", "age", ",", "and", "country", "ordered", "by", "the", "yeared", "they", "joined", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1652", "db_id": "theme_gallery", "query": "select name , age , country from artist order by year_join", "query_toks": ["SELECT", "name", ",", "age", ",", "country", "FROM", "artist", "ORDER", "BY", "Year_Join"], "query_toks_no_value": ["select", "name", ",", "age", ",", "country", "from", "artist", "order", "by", "year_join"], "question": "What are the names, ages, and countries of artists, sorted by the year they joined?", "question_toks": ["What", "are", "the", "names", ",", "ages", ",", "and", "countries", "of", "artists", ",", "sorted", "by", "the", "year", "they", "joined", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1677", "db_id": "theme_gallery", "query": "select theme , year from exhibition order by ticket_price desc", "query_toks": ["SELECT", "theme", ",", "YEAR", "FROM", "exhibition", "ORDER", "BY", "ticket_price", "DESC"], "query_toks_no_value": ["select", "theme", ",", "year", "from", "exhibition", "order", "by", "ticket_price", "desc"], "question": "Show theme and year for all exhibitions in an descending order of ticket price.", "question_toks": ["Show", "theme", "and", "year", "for", "all", "exhibitions", "in", "an", "descending", "order", "of", "ticket", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1678", "db_id": "theme_gallery", "query": "select theme , year from exhibition order by ticket_price desc", "query_toks": ["SELECT", "theme", ",", "YEAR", "FROM", "exhibition", "ORDER", "BY", "ticket_price", "DESC"], "query_toks_no_value": ["select", "theme", ",", "year", "from", "exhibition", "order", "by", "ticket_price", "desc"], "question": "What are the themes and years for exhibitions, sorted by ticket price descending?", "question_toks": ["What", "are", "the", "themes", "and", "years", "for", "exhibitions", ",", "sorted", "by", "ticket", "price", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6926", "db_id": "tracking_orders", "query": "select distinct product_name from products order by product_name", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "products", "ORDER", "BY", "product_name"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "products", "order", "by", "product_name"], "question": "Sort all the distinct products in alphabetical order.", "question_toks": ["Sort", "all", "the", "distinct", "products", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6927", "db_id": "tracking_orders", "query": "select distinct order_id from orders order by date_order_placed", "query_toks": ["SELECT", "DISTINCT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed"], "query_toks_no_value": ["select", "distinct", "order_id", "from", "orders", "order", "by", "date_order_placed"], "question": "List the ids of all distinct orders ordered by placed date.", "question_toks": ["List", "the", "ids", "of", "all", "distinct", "orders", "ordered", "by", "placed", "date", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6928", "db_id": "tracking_orders", "query": "select distinct order_id from orders order by date_order_placed", "query_toks": ["SELECT", "DISTINCT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed"], "query_toks_no_value": ["select", "distinct", "order_id", "from", "orders", "order", "by", "date_order_placed"], "question": "What are ids of the all distinct orders, sorted by placement date?", "question_toks": ["What", "are", "ids", "of", "the", "all", "distinct", "orders", ",", "sorted", "by", "placement", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5380", "db_id": "tracking_software_problems", "query": "select distinct product_name from product order by product_name", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_name"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product", "order", "by", "product_name"], "question": "List the names of all the distinct product names in alphabetical order?", "question_toks": ["List", "the", "names", "of", "all", "the", "distinct", "product", "names", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5381", "db_id": "tracking_software_problems", "query": "select distinct product_name from product order by product_name", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_name"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product", "order", "by", "product_name"], "question": "Sort all the distinct product names in alphabetical order.", "question_toks": ["Sort", "all", "the", "distinct", "product", "names", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5382", "db_id": "tracking_software_problems", "query": "select distinct product_name from product order by product_id", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_id"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product", "order", "by", "product_id"], "question": "List all the distinct product names ordered by product id?", "question_toks": ["List", "all", "the", "distinct", "product", "names", "ordered", "by", "product", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5383", "db_id": "tracking_software_problems", "query": "select distinct product_name from product order by product_id", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_id"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product", "order", "by", "product_id"], "question": "What is the list of distinct product names sorted by product id?", "question_toks": ["What", "is", "the", "list", "of", "distinct", "product", "names", "sorted", "by", "product", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6611", "db_id": "train_station", "query": "select name , service from train order by time", "query_toks": ["SELECT", "name", ",", "service", "FROM", "train", "ORDER", "BY", "TIME"], "query_toks_no_value": ["select", "name", ",", "service", "from", "train", "order", "by", "time"], "question": "Show the name and service for all trains in order by time.", "question_toks": ["Show", "the", "name", "and", "service", "for", "all", "trains", "in", "order", "by", "time", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6614", "db_id": "train_station", "query": "select t3.name , t3.time from train_station as t1 join station as t2 on t1.station_id = t2.station_id join train as t3 on t3.train_id = t1.train_id where t2.location = 'london' order by t3.time desc", "query_toks": ["SELECT", "T3.name", ",", "T3.time", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.station_id", "=", "T2.station_id", "JOIN", "train", "AS", "T3", "ON", "T3.train_id", "=", "T1.train_id", "WHERE", "T2.location", "=", "'London", "'", "ORDER", "BY", "T3.time", "DESC"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t3", ".", "time", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t3", ".", "train_id", "=", "t1", ".", "train_id", "where", "t2", ".", "location", "=", "value", "order", "by", "t3", ".", "time", "desc"], "question": "Show all train names and times in stations in London in descending order by train time.", "question_toks": ["Show", "all", "train", "names", "and", "times", "in", "stations", "in", "London", "in", "descending", "order", "by", "train", "time", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6621", "db_id": "train_station", "query": "select name , location from station order by annual_entry_exit , annual_interchanges", "query_toks": ["SELECT", "name", ",", "LOCATION", "FROM", "station", "ORDER", "BY", "Annual_entry_exit", ",", "Annual_interchanges"], "query_toks_no_value": ["select", "name", ",", "location", "from", "station", "order", "by", "annual_entry_exit", ",", "annual_interchanges"], "question": "List the names and locations of all stations ordered by their yearly entry exit and interchange amounts.", "question_toks": ["List", "the", "names", "and", "locations", "of", "all", "stations", "ordered", "by", "their", "yearly", "entry", "exit", "and", "interchange", "amounts", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null], [0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0292", "db_id": "twitter_1", "query": "select name , followers from user_profiles order by followers desc", "query_toks": ["SELECT", "name", ",", "followers", "FROM", "user_profiles", "ORDER", "BY", "followers", "DESC"], "query_toks_no_value": ["select", "name", ",", "followers", "from", "user_profiles", "order", "by", "followers", "desc"], "question": "List the name and number of followers for each user, and sort the results by the number of followers in descending order.", "question_toks": ["List", "the", "name", "and", "number", "of", "followers", "for", "each", "user", ",", "and", "sort", "the", "results", "by", "the", "number", "of", "followers", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0294", "db_id": "twitter_1", "query": "select text from tweets order by createdate", "query_toks": ["SELECT", "text", "FROM", "tweets", "ORDER", "BY", "createdate"], "query_toks_no_value": ["select", "text", "from", "tweets", "order", "by", "createdate"], "question": "List the text of all tweets in the order of date.", "question_toks": ["List", "the", "text", "of", "all", "tweets", "in", "the", "order", "of", "date", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1631", "db_id": "wedding", "query": "select name from church order by open_date desc", "query_toks": ["SELECT", "name", "FROM", "church", "ORDER", "BY", "open_date", "DESC"], "query_toks_no_value": ["select", "name", "from", "church", "order", "by", "open_date", "desc"], "question": "List all church names in descending order of opening date.", "question_toks": ["List", "all", "church", "names", "in", "descending", "order", "of", "opening", "date", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6559", "db_id": "wine_1", "query": "select distinct name from wine order by name", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "Name"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "order", "by", "name"], "question": "List the names of all distinct wines in alphabetical order.", "question_toks": ["List", "the", "names", "of", "all", "distinct", "wines", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6560", "db_id": "wine_1", "query": "select distinct name from wine order by name", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "Name"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "order", "by", "name"], "question": "What are the names of wines, sorted in alphabetical order?", "question_toks": ["What", "are", "the", "names", "of", "wines", ",", "sorted", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6561", "db_id": "wine_1", "query": "select distinct name from wine order by price", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "price"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "order", "by", "price"], "question": "List the names of all distinct wines ordered by price.", "question_toks": ["List", "the", "names", "of", "all", "distinct", "wines", "ordered", "by", "price", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6562", "db_id": "wine_1", "query": "select distinct name from wine order by price", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "price"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "order", "by", "price"], "question": "What are the names of wines, sorted by price ascending?", "question_toks": ["What", "are", "the", "names", "of", "wines", ",", "sorted", "by", "price", "ascending", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6589", "db_id": "wine_1", "query": "select grape , winery , year from wine where price > 100 order by year", "query_toks": ["SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "100", "ORDER", "BY", "YEAR"], "query_toks_no_value": ["select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "value", "order", "by", "year"], "question": "List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.", "question_toks": ["List", "the", "grape", ",", "winery", "and", "year", "of", "the", "wines", "whose", "price", "is", "bigger", "than", "100", "ordered", "by", "year", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6590", "db_id": "wine_1", "query": "select grape , winery , year from wine where price > 100 order by year", "query_toks": ["SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "100", "ORDER", "BY", "YEAR"], "query_toks_no_value": ["select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "value", "order", "by", "year"], "question": "What are the grapes, wineries and years for wines with price higher than 100, sorted by year?", "question_toks": ["What", "are", "the", "grapes", ",", "wineries", "and", "years", "for", "wines", "with", "price", "higher", "than", "100", ",", "sorted", "by", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6591", "db_id": "wine_1", "query": "select grape , appelation , name from wine where score > 93 order by name", "query_toks": ["SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "93", "ORDER", "BY", "Name"], "query_toks_no_value": ["select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "value", "order", "by", "name"], "question": "List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.", "question_toks": ["List", "the", "grape", ",", "appelation", "and", "name", "of", "wines", "whose", "score", "is", "higher", "than", "93", "ordered", "by", "Name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 93.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6592", "db_id": "wine_1", "query": "select grape , appelation , name from wine where score > 93 order by name", "query_toks": ["SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "93", "ORDER", "BY", "Name"], "query_toks_no_value": ["select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "value", "order", "by", "name"], "question": "What are the grapes, appelations, and wines with scores above 93, sorted by Name?", "question_toks": ["What", "are", "the", "grapes", ",", "appelations", ",", "and", "wines", "with", "scores", "above", "93", ",", "sorted", "by", "Name", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 93.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5816", "db_id": "workshop_paper", "query": "select author from submission order by scores asc", "query_toks": ["SELECT", "Author", "FROM", "submission", "ORDER", "BY", "Scores", "ASC"], "query_toks_no_value": ["select", "author", "from", "submission", "order", "by", "scores", "asc"], "question": "List the authors of submissions in ascending order of scores.", "question_toks": ["List", "the", "authors", "of", "submissions", "in", "ascending", "order", "of", "scores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5817", "db_id": "workshop_paper", "query": "select author from submission order by scores asc", "query_toks": ["SELECT", "Author", "FROM", "submission", "ORDER", "BY", "Scores", "ASC"], "query_toks_no_value": ["select", "author", "from", "submission", "order", "by", "scores", "asc"], "question": "Find the author for each submission and list them in ascending order of submission score.", "question_toks": ["Find", "the", "author", "for", "each", "submission", "and", "list", "them", "in", "ascending", "order", "of", "submission", "score", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5840", "db_id": "workshop_paper", "query": "select date , venue from workshop order by venue", "query_toks": ["SELECT", "Date", ",", "Venue", "FROM", "workshop", "ORDER", "BY", "Venue"], "query_toks_no_value": ["select", "date", ",", "venue", "from", "workshop", "order", "by", "venue"], "question": "Show the date and venue of each workshop in ascending alphabetical order of the venue.", "question_toks": ["Show", "the", "date", "and", "venue", "of", "each", "workshop", "in", "ascending", "alphabetical", "order", "of", "the", "venue", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5841", "db_id": "workshop_paper", "query": "select date , venue from workshop order by venue", "query_toks": ["SELECT", "Date", ",", "Venue", "FROM", "workshop", "ORDER", "BY", "Venue"], "query_toks_no_value": ["select", "date", ",", "venue", "from", "workshop", "order", "by", "venue"], "question": "Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop.", "question_toks": ["Sort", "the", "each", "workshop", "in", "alphabetical", "order", "of", "the", "venue", ".", "Return", "the", "date", "and", "venue", "of", "each", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1846", "db_id": "wrestler", "query": "select name from wrestler order by days_held desc", "query_toks": ["SELECT", "Name", "FROM", "wrestler", "ORDER", "BY", "Days_held", "DESC"], "query_toks_no_value": ["select", "name", "from", "wrestler", "order", "by", "days_held", "desc"], "question": "List the names of wrestlers in descending order of days held.", "question_toks": ["List", "the", "names", "of", "wrestlers", "in", "descending", "order", "of", "days", "held", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1847", "db_id": "wrestler", "query": "select name from wrestler order by days_held desc", "query_toks": ["SELECT", "Name", "FROM", "wrestler", "ORDER", "BY", "Days_held", "DESC"], "query_toks_no_value": ["select", "name", "from", "wrestler", "order", "by", "days_held", "desc"], "question": "What are the names of the wrestlers, ordered descending by days held?", "question_toks": ["What", "are", "the", "names", "of", "the", "wrestlers", ",", "ordered", "descending", "by", "days", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1858", "db_id": "wrestler", "query": "select t2.name , t1.team from elimination as t1 join wrestler as t2 on t1.wrestler_id = t2.wrestler_id order by t2.days_held desc", "query_toks": ["SELECT", "T2.Name", ",", "T1.Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "ORDER", "BY", "T2.Days_held", "DESC"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "order", "by", "t2", ".", "days_held", "desc"], "question": "List the names of wrestlers and the teams in elimination in descending order of days held.", "question_toks": ["List", "the", "names", "of", "wrestlers", "and", "the", "teams", "in", "elimination", "in", "descending", "order", "of", "days", "held", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1859", "db_id": "wrestler", "query": "select t2.name , t1.team from elimination as t1 join wrestler as t2 on t1.wrestler_id = t2.wrestler_id order by t2.days_held desc", "query_toks": ["SELECT", "T2.Name", ",", "T1.Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "ORDER", "BY", "T2.Days_held", "DESC"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "order", "by", "t2", ".", "days_held", "desc"], "question": "What are the names of wrestlers and their teams in elimination, ordered descending by days held?", "question_toks": ["What", "are", "the", "names", "of", "wrestlers", "and", "their", "teams", "in", "elimination", ",", "ordered", "descending", "by", "days", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_order_by_0000", "db_id": "department_store", "query": "select order_id , customer_id from customer_orders where order_status_code = \"\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0438\u043b\u0438\u0430\u043b\" order by order_date", "query_toks": ["SELECT", "order_id", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "``", "\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d", "\u0432", "\u0434\u0440\u0443\u0433\u043e\u0439", "\u0444\u0438\u043b\u0438\u0430\u043b", "''", "ORDER", "BY", "order_date"], "query_toks_no_value": ["SELECT", "order_id", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "value", "\u0432", "\u0434\u0440\u0443\u0433\u043e\u0439", "\u0444\u0438\u043b\u0438\u0430\u043b", "ORDER", "BY", "order_date"], "question": "Show, please, the order id, customer id for orders that was rescheduled, ordered by their order dates.", "question_toks": ["Show", ",", "please", ",", "the", "order", "id", ",", "customer", "id", "for", "orders", "that", "was", "rescheduled", ",", "ordered", "by", "their", "order", "dates", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0438\u043b\u0438\u0430\u043b\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 33, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_order_by_0001", "db_id": "riding_club", "query": "select distinct(rank) from player where gender = \"m\" order by rank", "query_toks": ["SELECT", "DISTINCT", "(", "Rank", ")", "FROM", "player", "WHERE", "Gender", "=", "``", "m", "''", "ORDER", "BY", "Rank"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Rank", ")", "FROM", "player", "WHERE", "Gender", "=", "value", "ORDER", "BY", "Rank"], "question": "Sort out the ranks of the men. Bring each one out once.", "question_toks": ["Sort", "out", "the", "ranks", "of", "the", "men", ".", "Bring", "each", "one", "out", "once", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_order_by_0002", "db_id": "riding_club", "query": "select distinct(rank) from player where gender = \"m\" order by rank", "query_toks": ["SELECT", "DISTINCT", "(", "Rank", ")", "FROM", "player", "WHERE", "Gender", "=", "``", "m", "''", "ORDER", "BY", "Rank"], "query_toks_no_value": ["SELECT", "DISTINCT", "(", "Rank", ")", "FROM", "player", "WHERE", "Gender", "=", "value", "ORDER", "BY", "Rank"], "question": "Sort out the distinct ranks of the men.", "question_toks": ["Sort", "out", "the", "distinct", "ranks", "of", "the", "men", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0120", "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8", "and", "year", "=", "1974"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value"], "question": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?", "question_toks": ["What", "is", "the", "minimum", "weight", "of", "the", "car", "with", "8", "cylinders", "produced", "in", "1974", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "and", [false, 2, [0, [0, 23, false], null], 1974.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0171", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "<", "value", "and", "t4", ".", "fullname", "!", "=", "value"], "question": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", "question_toks": ["Which", "models", "are", "lighter", "than", "3500", "but", "not", "built", "by", "the", "'Ford", "Motor", "Company", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 3500.0, null], "and", [false, 7, [0, [0, 8, false], null], "\"Ford Motor Company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0172", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "<", "value", "and", "t4", ".", "fullname", "!", "=", "value"], "question": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?", "question_toks": ["What", "are", "the", "different", "models", "wthat", "are", "lighter", "than", "3500", "but", "were", "not", "built", "by", "the", "Ford", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 3500.0, null], "and", [false, 7, [0, [0, 8, false], null], "\"Ford Motor Company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0215", "db_id": "flight_2", "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\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.DestAirport", "=", "``", "ASY", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "destairport", "=", "value"], "question": "How many 'United Airlines' flights go to Airport 'ASY'?", "question_toks": ["How", "many", "'United", "Airlines", "'", "flights", "go", "to", "Airport", "'ASY", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"ASY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0216", "db_id": "flight_2", "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\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.DestAirport", "=", "``", "ASY", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "destairport", "=", "value"], "question": "Count the number of United Airlines flights arriving in ASY Airport.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "arriving", "in", "ASY", "Airport", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"ASY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0217", "db_id": "flight_2", "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\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.SourceAirport", "=", "``", "AHD", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "sourceairport", "=", "value"], "question": "How many 'United Airlines' flights depart from Airport 'AHD'?", "question_toks": ["How", "many", "'United", "Airlines", "'", "flights", "depart", "from", "Airport", "'AHD", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"AHD\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0218", "db_id": "flight_2", "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\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.SourceAirport", "=", "``", "AHD", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "sourceairport", "=", "value"], "question": "Return the number of United Airlines flights leaving from AHD Airport.", "question_toks": ["Return", "the", "number", "of", "United", "Airlines", "flights", "leaving", "from", "AHD", "Airport", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"AHD\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0724", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country where continent = \"africa\" and governmentform = \"republic\"", "query_toks": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "GovernmentForm", "=", "``", "Republic", "''"], "query_toks_no_value": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "value", "and", "governmentform", "=", "value"], "question": "What is the average life expectancy in African countries that are republics?", "question_toks": ["What", "is", "the", "average", "life", "expectancy", "in", "African", "countries", "that", "are", "republics", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0725", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country where continent = \"africa\" and governmentform = \"republic\"", "query_toks": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "GovernmentForm", "=", "``", "Republic", "''"], "query_toks_no_value": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "value", "and", "governmentform", "=", "value"], "question": "Give the average life expectancy for countries in Africa which are republics?", "question_toks": ["Give", "the", "average", "life", "expectancy", "for", "countries", "in", "Africa", "which", "are", "republics", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0486", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = 'wta championships' and winner_hand = 'l'", "query_toks": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "'WTA", "Championships", "'", "AND", "winner_hand", "=", "'L", "'"], "query_toks_no_value": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "and", "winner_hand", "=", "value"], "question": "Find the number of left handed winners who participated in the WTA Championships.", "question_toks": ["Find", "the", "number", "of", "left", "handed", "winners", "who", "participated", "in", "the", "WTA", "Championships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"WTA Championships\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"L\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6728", "db_id": "activity_1", "query": "select count(*) from faculty where sex = 'f' and rank = \"professor\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'", "AND", "Rank", "=", "``", "Professor", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "where", "sex", "=", "value", "and", "rank", "=", "value"], "question": "Count the number of female Professors we have.", "question_toks": ["Count", "the", "number", "of", "female", "Professors", "we", "have", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"Professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6731", "db_id": "activity_1", "query": "select count(*) from faculty where rank = \"professor\" and building = \"neb\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Professor", "''", "AND", "building", "=", "``", "NEB", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "and", "building", "=", "value"], "question": "How many Professors are in building NEB?", "question_toks": ["How", "many", "Professors", "are", "in", "building", "NEB", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Professor\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"NEB\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6775", "db_id": "activity_1", "query": "select count(*) from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid where t1.fname = \"mark\" and t1.lname = \"giuliano\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value"], "question": "How many activities does Mark Giuliano participate in?", "question_toks": ["How", "many", "activities", "does", "Mark", "Giuliano", "participate", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"Mark\"", null], "and", [false, 2, [0, [0, 16, false], null], "\"Giuliano\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6776", "db_id": "activity_1", "query": "select count(*) from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid where t1.fname = \"mark\" and t1.lname = \"giuliano\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value"], "question": "Find the number of activities Mark Giuliano is involved in.", "question_toks": ["Find", "the", "number", "of", "activities", "Mark", "Giuliano", "is", "involved", "in", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"Mark\"", null], "and", [false, 2, [0, [0, 16, false], null], "\"Giuliano\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6777", "db_id": "activity_1", "query": "select t3.activity_name from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t3.actid = t2.actid where t1.fname = \"mark\" and t1.lname = \"giuliano\"", "query_toks": ["SELECT", "T3.activity_name", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "Activity", "AS", "T3", "ON", "T3.actid", "=", "T2.actid", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''"], "query_toks_no_value": ["select", "t3", ".", "activity_name", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t3", ".", "actid", "=", "t2", ".", "actid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value"], "question": "Show the names of all the activities Mark Giuliano participates in.", "question_toks": ["Show", "the", "names", "of", "all", "the", "activities", "Mark", "Giuliano", "participates", "in", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"Mark\"", null], "and", [false, 2, [0, [0, 16, false], null], "\"Giuliano\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3653", "db_id": "baseball_1", "query": "select count(*) from player where birth_country = 'usa' and bats = 'r';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "player", "WHERE", "birth_country", "=", "'USA", "'", "AND", "bats", "=", "'R", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "player", "where", "birth_country", "=", "value", "and", "bats", "=", "value"], "question": "How many players born in USA are right-handed batters? That is, have the batter value 'R'.", "question_toks": ["How", "many", "players", "born", "in", "USA", "are", "right-handed", "batters", "?", "That", "is", ",", "have", "the", "batter", "value", "'R", "'", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 186, false], null], "\"USA\"", null], "and", [false, 2, [0, [0, 200, false], null], "\"R\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3667", "db_id": "baseball_1", "query": "select count(*) from postseason as t1 join team as t2 on t1.team_id_loser = t2.team_id_br where t2.name = 'boston red stockings' and t1.year = 2009;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2009", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value"], "question": "How many times did Boston Red Stockings lose in 2009 postseason?", "question_toks": ["How", "many", "times", "did", "Boston", "Red", "Stockings", "lose", "in", "2009", "postseason", "?"], "sql": {"from": {"table_units": [["table_unit", 22], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 286, false], null], [0, 336, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 2, [0, [0, 282, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3668", "db_id": "baseball_1", "query": "select count(*) from postseason as t1 join team as t2 on t1.team_id_loser = t2.team_id_br where t2.name = 'boston red stockings' and t1.year = 2009;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2009", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value"], "question": "Count the number of times the team \"Boston Red Stockings\" lost in 2009 postseason.", "question_toks": ["Count", "the", "number", "of", "times", "the", "team", "``", "Boston", "Red", "Stockings", "''", "lost", "in", "2009", "postseason", "."], "sql": {"from": {"table_units": [["table_unit", 22], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 286, false], null], [0, 336, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 2, [0, [0, 282, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3677", "db_id": "baseball_1", "query": "select sum(t1.salary) from salary as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year = 2010", "query_toks": ["SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2010"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value"], "question": "What is the total salary paid by team Boston Red Stockings in 2010?", "question_toks": ["What", "is", "the", "total", "salary", "paid", "by", "team", "Boston", "Red", "Stockings", "in", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 20], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 273, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 2, [0, [0, 272, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4266", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"linda\" and t3.lname = \"smith\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Linda", "''", "AND", "t3.lname", "=", "``", "Smith", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value"], "question": "How many clubs does \"Linda Smith\" belong to?", "question_toks": ["How", "many", "clubs", "does", "``", "Linda", "Smith", "''", "belong", "to", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Linda\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4267", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"linda\" and t3.lname = \"smith\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Linda", "''", "AND", "t3.lname", "=", "``", "Smith", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value"], "question": "How many clubs does \"Linda Smith\" have membership for?", "question_toks": ["How", "many", "clubs", "does", "``", "Linda", "Smith", "''", "have", "membership", "for", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Linda\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4268", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\" and t3.lname = \"kim\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Tracy", "''", "AND", "t3.lname", "=", "``", "Kim", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value"], "question": "Find the number of clubs where \"Tracy Kim\" is a member.", "question_toks": ["Find", "the", "number", "of", "clubs", "where", "``", "Tracy", "Kim", "''", "is", "a", "member", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Tracy\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Kim\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3325", "db_id": "college_1", "query": "select t1.stu_lname from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num where t2.enroll_grade = 'a' and t2.class_code = 10018", "query_toks": ["SELECT", "T1.stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "T2.enroll_grade", "=", "'A", "'", "AND", "T2.class_code", "=", "10018"], "query_toks_no_value": ["select", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value", "and", "t2", ".", "class_code", "=", "value"], "question": "What is the last name of the student who got a grade A in the class with code 10018.", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "got", "a", "grade", "A", "in", "the", "class", "with", "code", "10018", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"A\"", null], "and", [false, 2, [0, [0, 24, false], null], 10018.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5898", "db_id": "cre_Theme_park", "query": "select avg(price_range) from hotels where star_rating_code = \"5\" and pets_allowed_yn = 1", "query_toks": ["SELECT", "avg", "(", "price_range", ")", "FROM", "HOTELS", "WHERE", "star_rating_code", "=", "``", "5", "''", "AND", "pets_allowed_yn", "=", "1"], "query_toks_no_value": ["select", "avg", "(", "price_range", ")", "from", "hotels", "where", "star_rating_code", "=", "value", "and", "pets_allowed_yn", "=", "value"], "question": "What is the average price range of five star hotels that allow pets?", "question_toks": ["What", "is", "the", "average", "price", "range", "of", "five", "star", "hotels", "that", "allow", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"5\"", null], "and", [false, 2, [0, [0, 15, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6133", "db_id": "customers_and_addresses", "query": "select address_content from addresses where city = \"east julianaside\" and state_province_county = \"texas\" union select address_content from addresses where city = \"gleasonmouth\" and state_province_county = \"arizona\"", "query_toks": ["SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "East", "Julianaside", "''", "AND", "state_province_county", "=", "``", "Texas", "''", "UNION", "SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "Gleasonmouth", "''", "AND", "state_province_county", "=", "``", "Arizona", "''"], "query_toks_no_value": ["select", "address_content", "from", "addresses", "where", "city", "=", "value", "and", "state_province_county", "=", "value", "union", "select", "address_content", "from", "addresses", "where", "city", "=", "value", "and", "state_province_county", "=", "value"], "question": "Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.", "question_toks": ["Find", "all", "the", "addresses", "in", "East", "Julianaside", ",", "Texas", "or", "in", "Gleasonmouth", ",", "Arizona", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"East Julianaside\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Gleasonmouth\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Arizona\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6635", "db_id": "driving_school", "query": "select date_left_staff from staff where first_name = \"janessa\" and last_name = \"sawayn\";", "query_toks": ["SELECT", "date_left_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";"], "query_toks_no_value": ["select", "date_left_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "When did the staff member Janessa Sawayn leave the company?", "question_toks": ["When", "did", "the", "staff", "member", "Janessa", "Sawayn", "leave", "the", "company", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Sawayn\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0393", "db_id": "flight_1", "query": "select avg(price) from flight where origin = \"los angeles\" and destination = \"honolulu\"", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value"], "question": "What is the average price for flights from Los Angeles to Honolulu.", "question_toks": ["What", "is", "the", "average", "price", "for", "flights", "from", "Los", "Angeles", "to", "Honolulu", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0394", "db_id": "flight_1", "query": "select avg(price) from flight where origin = \"los angeles\" and destination = \"honolulu\"", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value"], "question": "What is the average price for flights from LA to Honolulu?", "question_toks": ["What", "is", "the", "average", "price", "for", "flights", "from", "LA", "to", "Honolulu", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6871", "db_id": "flight_4", "query": "select count(*) from routes as t1 join airports as t2 on t1.dst_apid = t2.apid join airlines as t3 on t1.alid = t3.alid where t2.country = 'italy' and t3.name = 'american airlines'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "JOIN", "airlines", "AS", "T3", "ON", "T1.alid", "=", "T3.alid", "WHERE", "T2.country", "=", "'Italy", "'", "AND", "T3.name", "=", "'American", "Airlines", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "join", "airlines", "as", "t3", "on", "t1", ".", "alid", "=", "t3", ".", "alid", "where", "t2", ".", "country", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.", "question_toks": ["Return", "the", "number", "of", "routes", "with", "destination", "airport", "in", "Italy", "operated", "by", "the", "airline", "with", "name", "'American", "Airlines", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 18, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Italy\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"American Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2222", "db_id": "formula_1", "query": "select max(t2.fastestlapspeed) from races as t1 join results as t2 on t1.raceid = t2.raceid where t1.year = 2008 and t1.name = \"monaco grand prix\"", "query_toks": ["SELECT", "max", "(", "T2.fastestlapspeed", ")", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", "=", "2008", "AND", "T1.name", "=", "``", "Monaco", "Grand", "Prix", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "fastestlapspeed", ")", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", "=", "value", "and", "t1", ".", "name", "=", "value"], "question": "What is the maximum fastest lap speed in the Monaco Grand Prix in 2008?", "question_toks": ["What", "is", "the", "maximum", "fastest", "lap", "speed", "in", "the", "Monaco", "Grand", "Prix", "in", "2008", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null]]}, "select": [false, [[1, [0, [0, 59, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 2008.0, null], "and", [false, 2, [0, [0, 14, false], null], "\"Monaco Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2579", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\" and lastname = \"sweazy\";", "query_toks": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.", "question_toks": ["Find", "the", "number", "of", "kids", "staying", "in", "the", "rooms", "reserved", "by", "a", "person", "called", "ROY", "SWEAZ", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"ROY\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SWEAZY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0947", "db_id": "medicine_enzyme_interaction", "query": "select t1.name from enzyme as t1 join medicine_enzyme_interaction as t2 on t1.id = t2.enzyme_id join medicine as t3 on t2.medicine_id = t3.id where t3.name = 'amisulpride' and t2.interaction_type = 'inhibitor'", "query_toks": ["SELECT", "T1.name", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T1.id", "=", "T2.enzyme_id", "JOIN", "medicine", "AS", "T3", "ON", "T2.medicine_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Amisulpride", "'", "AND", "T2.interaction_type", "=", "'inhibitor", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "enzyme_id", "join", "medicine", "as", "t3", "on", "t2", ".", "medicine_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "interaction_type", "=", "value"], "question": "What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "in", "the", "medicine", "named", "'Amisulpride", "'", "that", "can", "serve", "as", "an", "'inhibitor", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Amisulpride\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"inhibitor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2437", "db_id": "movie_1", "query": "select title from movie where director = 'james cameron' and year > 2000", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "'James", "Cameron", "'", "AND", "YEAR", ">", "2000"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "director", "=", "value", "and", "year", ">", "value"], "question": "What are the titles of all movies that James Cameron directed after 2000?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "James", "Cameron", "directed", "after", "2000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"James Cameron\"", null], "and", [false, 3, [0, [0, 3, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5204", "db_id": "music_2", "query": "select t4.instrument from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid join instruments as t4 on t4.songid = t3.songid and t4.bandmateid = t2.id where t2.lastname = \"heilo\" and t3.title = \"le pop\"", "query_toks": ["SELECT", "T4.instrument", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "JOIN", "Instruments", "AS", "T4", "ON", "T4.songid", "=", "T3.songid", "AND", "T4.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''", "AND", "T3.title", "=", "``", "Le", "Pop", "''"], "query_toks_no_value": ["select", "t4", ".", "instrument", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "join", "instruments", "as", "t4", "on", "t4", ".", "songid", "=", "t3", ".", "songid", "and", "t4", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value", "and", "t3", ".", "title", "=", "value"], "question": "What instrument did the musician with last name \"Heilo\" use in the song \"Le Pop\"?", "question_toks": ["What", "instrument", "did", "the", "musician", "with", "last", "name", "``", "Heilo", "''", "use", "in", "the", "song", "``", "Le", "Pop", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Heilo\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Le Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4458", "db_id": "network_2", "query": "select t2.friend from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'alice' and t1.gender = 'female'", "query_toks": ["SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'female", "'"], "query_toks_no_value": ["select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value"], "question": "Find the female friends of Alice.", "question_toks": ["Find", "the", "female", "friends", "of", "Alice", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"female\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5562", "db_id": "products_gen_characteristics", "query": "select t3.characteristic_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t1.product_name = \"sesame\" and t3.characteristic_type_code = \"grade\"", "query_toks": ["SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''", "AND", "t3.characteristic_type_code", "=", "``", "Grade", "''"], "query_toks_no_value": ["select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value", "and", "t3", ".", "characteristic_type_code", "=", "value"], "question": "List all characteristics of product named \"sesame\" with type code \"Grade\".", "question_toks": ["List", "all", "characteristics", "of", "product", "named", "``", "sesame", "''", "with", "type", "code", "``", "Grade", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"sesame\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"Grade\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0559", "db_id": "store_1", "query": "select sum(total) from invoices where billing_city = \"chicago\" and billing_state = \"il\";", "query_toks": ["SELECT", "sum", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";"], "query_toks_no_value": ["select", "sum", "(", "total", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value"], "question": "List total amount of invoice from Chicago, IL.", "question_toks": ["List", "total", "amount", "of", "invoice", "from", "Chicago", ",", "IL", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 42, false], null], "\"Chicago\"", null], "and", [false, 2, [0, [0, 43, false], null], "\"IL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_in_sql_but_not_in_nl_0069", "db_id": "car_1", "query": "select 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", "query_toks": ["SELECT", "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"], "query_toks_no_value": ["SELECT", "T2", ".", "Make", "FROM", "CARS_DATA", "AS", "T1", "JOIN", "CAR_NAMES", "AS", "T2", "ON", "T1", ".", "Id", "=", "T2", ".", "MakeId", "WHERE", "T1", ".", "Horsepower", ">", "value", "SELECT", "min", "(", "Horsepower", ")", "FROM", "CARS_DATA", ")", "AND", "T1", ".", "Cylinders", "<=", "value"], "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "lowest", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_in_sql_but_not_in_nl_0070", "db_id": "car_1", "query": "select 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", "query_toks": ["select", "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"], "query_toks_no_value": ["select", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "value", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<", "value"], "question": "Among the cars that do not have the minimum horsepower , what are the names of all those with less than 4 cylinders ?", "question_toks": ["Among", "the", "cars", "that", "do", "not", "have", "the", "minimum", "horsepower", ",", "what", "are", "the", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0196", "db_id": "bike_1", "query": "select distinct zip_code from weather except select distinct zip_code from weather where max_dew_point_f >= 70", "query_toks": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "max_dew_point_f", ">", "=", "70"], "query_toks_no_value": ["select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "max_dew_point_f", ">", "=", "value"], "question": "What are all the different zip codes that have a maximum dew point that was always below 70?", "question_toks": ["What", "are", "all", "the", "different", "zip", "codes", "that", "have", "a", "maximum", "dew", "point", "that", "was", "always", "below", "70", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 27, false], null], 70.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0200", "db_id": "bike_1", "query": "select date from weather where mean_sea_level_pressure_inches between 30.3 and 31", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "mean_sea_level_pressure_inches", "BETWEEN", "30.3", "AND", "31"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "mean_sea_level_pressure_inches", "between", "value", "and", "value"], "question": "What are the dates that have an average sea level pressure between 30.3 and 31?", "question_toks": ["What", "are", "the", "dates", "that", "have", "an", "average", "sea", "level", "pressure", "between", "30.3", "and", "31", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 34, false], null], 30.3, 31.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0016", "db_id": "concert_singer", "query": "select max(capacity), average from stadium", "query_toks": ["select", "max", "(", "capacity", ")", ",", "average", "from", "stadium"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "average", "from", "stadium"], "question": "What is the maximum capacity and the average of all stadiums ?", "question_toks": ["What", "is", "the", "maximum", "capacity", "and", "the", "average", "of", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0018", "db_id": "concert_singer", "query": "select name , capacity from stadium order by average desc limit 1", "query_toks": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "average", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "name", ",", "capacity", "from", "stadium", "order", "by", "average", "desc", "limit", "value"], "question": "What is the name and capacity for the stadium with highest average attendance?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "highest", "average", "attendance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0019", "db_id": "concert_singer", "query": "select name , capacity from stadium order by average desc limit 1", "query_toks": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "average", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "name", ",", "capacity", "from", "stadium", "order", "by", "average", "desc", "limit", "value"], "question": "What is the name and capacity for the stadium with the highest average attendance?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "the", "highest", "average", "attendance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1278", "db_id": "game_injury", "query": "select average_attendance from stadium where capacity_percentage > 100", "query_toks": ["SELECT", "average_attendance", "FROM", "stadium", "WHERE", "capacity_percentage", ">", "100"], "query_toks_no_value": ["select", "average_attendance", "from", "stadium", "where", "capacity_percentage", ">", "value"], "question": "What is the average attendance of stadiums with capacity percentage higher than 100%?", "question_toks": ["What", "is", "the", "average", "attendance", "of", "stadiums", "with", "capacity", "percentage", "higher", "than", "100", "%", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3712", "db_id": "mountain_photos", "query": "select brand , name from camera_lens order by max_aperture desc", "query_toks": ["SELECT", "brand", ",", "name", "FROM", "camera_lens", "ORDER", "BY", "max_aperture", "DESC"], "query_toks_no_value": ["select", "brand", ",", "name", "from", "camera_lens", "order", "by", "max_aperture", "desc"], "question": "Find the brand and name for each camera lens, and sort in descending order of maximum aperture.", "question_toks": ["Find", "the", "brand", "and", "name", "for", "each", "camera", "lens", ",", "and", "sort", "in", "descending", "order", "of", "maximum", "aperture", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3349", "db_id": "sports_competition", "query": "select count(*) from club_rank where total < 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club_rank", "WHERE", "Total", "<", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club_rank", "where", "total", "<", "value"], "question": "How many clubs have total medals less than 10?", "question_toks": ["How", "many", "clubs", "have", "total", "medals", "less", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3350", "db_id": "sports_competition", "query": "select count(*) from club_rank where total < 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club_rank", "WHERE", "Total", "<", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club_rank", "where", "total", "<", "value"], "question": "What is the total number of clubs that have less than 10 medals in total?", "question_toks": ["What", "is", "the", "total", "number", "of", "clubs", "that", "have", "less", "than", "10", "medals", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2705", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "(", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "query_toks_no_value": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "(", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "question": "Return the total number of deaths and total damange in millions for storms that had a max speed greater than the average.", "question_toks": ["Return", "the", "total", "number", "of", "deaths", "and", "total", "damange", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "greater", "than", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2706", "db_id": "storm_record", "query": "select name , damage_millions_usd from storm order by max_speed desc", "query_toks": ["SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "max_speed", "DESC"], "query_toks_no_value": ["select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "max_speed", "desc"], "question": "List name and damage for all storms in a descending order of max speed.", "question_toks": ["List", "name", "and", "damage", "for", "all", "storms", "in", "a", "descending", "order", "of", "max", "speed", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2707", "db_id": "storm_record", "query": "select name , damage_millions_usd from storm order by max_speed desc", "query_toks": ["SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "max_speed", "DESC"], "query_toks_no_value": ["select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "max_speed", "desc"], "question": "What are the names and damage in millions for storms, ordered by their max speeds descending?", "question_toks": ["What", "are", "the", "names", "and", "damage", "in", "millions", "for", "storms", ",", "ordered", "by", "their", "max", "speeds", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2716", "db_id": "storm_record", "query": "select t1.name , t1.max_speed from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", ",", "T1.max_speed", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "max_speed", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the storm name and max speed which affected the greatest number of regions?", "question_toks": ["What", "is", "the", "storm", "name", "and", "max", "speed", "which", "affected", "the", "greatest", "number", "of", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2717", "db_id": "storm_record", "query": "select t1.name , t1.max_speed from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", ",", "T1.max_speed", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "max_speed", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the name and max speed of the storm that affected the most regions.", "question_toks": ["Return", "the", "name", "and", "max", "speed", "of", "the", "storm", "that", "affected", "the", "most", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5855", "db_id": "tracking_share_transactions", "query": "select max(share_count) from transactions where amount_of_transaction < 10000", "query_toks": ["SELECT", "max", "(", "share_count", ")", "FROM", "TRANSACTIONS", "WHERE", "amount_of_transaction", "<", "10000"], "query_toks_no_value": ["select", "max", "(", "share_count", ")", "from", "transactions", "where", "amount_of_transaction", "<", "value"], "question": "Show the maximum share count of transactions where the amount is smaller than 10000", "question_toks": ["Show", "the", "maximum", "share", "count", "of", "transactions", "where", "the", "amount", "is", "smaller", "than", "10000"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 12, false], null], 10000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5856", "db_id": "tracking_share_transactions", "query": "select date_of_transaction from transactions where share_count > 100 or amount_of_transaction > 1000", "query_toks": ["SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "share_count", ">", "100", "OR", "amount_of_transaction", ">", "1000"], "query_toks_no_value": ["select", "date_of_transaction", "from", "transactions", "where", "share_count", ">", "value", "or", "amount_of_transaction", ">", "value"], "question": "Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.", "question_toks": ["Show", "the", "dates", "of", "transactions", "if", "the", "share", "count", "is", "bigger", "than", "100", "or", "the", "amount", "is", "bigger", "than", "1000", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 100.0, null], "or", [false, 3, [0, [0, 12, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5857", "db_id": "tracking_share_transactions", "query": "select t1.transaction_type_description , t2.date_of_transaction from ref_transaction_types as t1 join transactions as t2 on t1.transaction_type_code = t2.transaction_type_code where t2.share_count < 10", "query_toks": ["SELECT", "T1.transaction_type_description", ",", "T2.date_of_transaction", "FROM", "Ref_Transaction_Types", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.transaction_type_code", "=", "T2.transaction_type_code", "WHERE", "T2.share_count", "<", "10"], "query_toks_no_value": ["select", "t1", ".", "transaction_type_description", ",", "t2", ".", "date_of_transaction", "from", "ref_transaction_types", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "transaction_type_code", "=", "t2", ".", "transaction_type_code", "where", "t2", ".", "share_count", "<", "value"], "question": "Show the transaction type descriptions and dates if the share count is smaller than 10.", "question_toks": ["Show", "the", "transaction", "type", "descriptions", "and", "dates", "if", "the", "share", "count", "is", "smaller", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5858", "db_id": "tracking_share_transactions", "query": "select t1.investor_details from investors as t1 join transactions as t2 on t1.investor_id = t2.investor_id where t2.share_count > 100", "query_toks": ["SELECT", "T1.Investor_details", "FROM", "INVESTORS", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.investor_id", "=", "T2.investor_id", "WHERE", "T2.share_count", ">", "100"], "query_toks_no_value": ["select", "t1", ".", "investor_details", "from", "investors", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "where", "t2", ".", "share_count", ">", "value"], "question": "Show details of all investors if they make any transaction with share count greater than 100.", "question_toks": ["Show", "details", "of", "all", "investors", "if", "they", "make", "any", "transaction", "with", "share", "count", "greater", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5864", "db_id": "tracking_share_transactions", "query": "select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.transaction_id join transactions as t3 on t2.transaction_id = t3.transaction_id where t3.share_count < 50", "query_toks": ["SELECT", "T1.lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1.lot_id", "=", "T2.transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2.transaction_id", "=", "T3.transaction_id", "WHERE", "T3.share_count", "<", "50"], "query_toks_no_value": ["select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "share_count", "<", "value"], "question": "What are the lot details of lots associated with transactions with share count smaller than 50?", "question_toks": ["What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "with", "share", "count", "smaller", "than", "50", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5865", "db_id": "tracking_share_transactions", "query": "select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.transaction_id join transactions as t3 on t2.transaction_id = t3.transaction_id where t3.share_count > 100 and t3.transaction_type_code = \"pur\"", "query_toks": ["SELECT", "T1.lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1.lot_id", "=", "T2.transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2.transaction_id", "=", "T3.transaction_id", "WHERE", "T3.share_count", ">", "100", "AND", "T3.transaction_type_code", "=", "``", "PUR", "''"], "query_toks_no_value": ["select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "share_count", ">", "value", "and", "t3", ".", "transaction_type_code", "=", "value"], "question": "What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is \"PUR\"?", "question_toks": ["What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "whose", "share", "count", "is", "bigger", "than", "100", "and", "whose", "type", "code", "is", "``", "PUR", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 100.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"PUR\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5867", "db_id": "tracking_share_transactions", "query": "select transaction_type_code , max(share_count) , min(share_count) from transactions group by transaction_type_code", "query_toks": ["SELECT", "transaction_type_code", ",", "max", "(", "share_count", ")", ",", "min", "(", "share_count", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "transaction_type_code"], "query_toks_no_value": ["select", "transaction_type_code", ",", "max", "(", "share_count", ")", ",", "min", "(", "share_count", ")", "from", "transactions", "group", "by", "transaction_type_code"], "question": "Show the maximum and minimum share count of different transaction types.", "question_toks": ["Show", "the", "maximum", "and", "minimum", "share", "count", "of", "different", "transaction", "types", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5868", "db_id": "tracking_share_transactions", "query": "select investor_id , avg(share_count) from transactions group by investor_id", "query_toks": ["SELECT", "investor_id", ",", "avg", "(", "share_count", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id"], "query_toks_no_value": ["select", "investor_id", ",", "avg", "(", "share_count", ")", "from", "transactions", "group", "by", "investor_id"], "question": "Show the average share count of transactions for different investors.", "question_toks": ["Show", "the", "average", "share", "count", "of", "transactions", "for", "different", "investors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5869", "db_id": "tracking_share_transactions", "query": "select investor_id , avg(share_count) from transactions group by investor_id order by avg(share_count)", "query_toks": ["SELECT", "investor_id", ",", "avg", "(", "share_count", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id", "ORDER", "BY", "avg", "(", "share_count", ")"], "query_toks_no_value": ["select", "investor_id", ",", "avg", "(", "share_count", ")", "from", "transactions", "group", "by", "investor_id", "order", "by", "avg", "(", "share_count", ")"], "question": "Show the average share count of transactions each each investor, ordered by average share count.", "question_toks": ["Show", "the", "average", "share", "count", "of", "transactions", "each", "each", "investor", ",", "ordered", "by", "average", "share", "count", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["asc", [[0, [5, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5882", "db_id": "tracking_share_transactions", "query": "select date_of_transaction from transactions where share_count >= 100 or amount_of_transaction >= 100", "query_toks": ["SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "share_count", ">", "=", "100", "OR", "amount_of_transaction", ">", "=", "100"], "query_toks_no_value": ["select", "date_of_transaction", "from", "transactions", "where", "share_count", ">", "=", "value", "or", "amount_of_transaction", ">", "=", "value"], "question": "What are the dates of transactions with at least 100 share count or amount bigger than 100?", "question_toks": ["What", "are", "the", "dates", "of", "transactions", "with", "at", "least", "100", "share", "count", "or", "amount", "bigger", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 13, false], null], 100.0, null], "or", [false, 5, [0, [0, 12, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4817", "db_id": "aircraft", "query": "select t1.aircraft , t1.description from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.total_passengers > 10000000", "query_toks": ["SELECT", "T1.Aircraft", ",", "T1.Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Total_Passengers", ">", "10000000"], "query_toks_no_value": ["select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "total_passengers", ">", "value"], "question": "Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.", "question_toks": ["Please", "show", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "airports", "that", "have", "a", "total", "number", "of", "passengers", "bigger", "than", "10000000", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], 10000000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4818", "db_id": "aircraft", "query": "select t1.aircraft , t1.description from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.total_passengers > 10000000", "query_toks": ["SELECT", "T1.Aircraft", ",", "T1.Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Total_Passengers", ">", "10000000"], "query_toks_no_value": ["select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "total_passengers", ">", "value"], "question": "What are the names and descriptions of aircrafts associated with an airport that has more total passengers than 10000000?", "question_toks": ["What", "are", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "an", "airport", "that", "has", "more", "total", "passengers", "than", "10000000", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], 10000000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4819", "db_id": "aircraft", "query": "select avg(t3.total_passengers) from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t1.aircraft = \"robinson r-22\"", "query_toks": ["SELECT", "avg", "(", "T3.Total_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T1.Aircraft", "=", "``", "Robinson", "R-22", "''"], "query_toks_no_value": ["select", "avg", "(", "t3", ".", "total_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "value"], "question": "What is the average total number of passengers of airports that are associated with aircraft \"Robinson R-22\"?", "question_toks": ["What", "is", "the", "average", "total", "number", "of", "passengers", "of", "airports", "that", "are", "associated", "with", "aircraft", "``", "Robinson", "R-22", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Robinson R-22\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4820", "db_id": "aircraft", "query": "select avg(t3.total_passengers) from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t1.aircraft = \"robinson r-22\"", "query_toks": ["SELECT", "avg", "(", "T3.Total_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T1.Aircraft", "=", "``", "Robinson", "R-22", "''"], "query_toks_no_value": ["select", "avg", "(", "t3", ".", "total_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "value"], "question": "What is the average total number of passengers for all airports that the aircraft \"Robinson R-22\" visits?", "question_toks": ["What", "is", "the", "average", "total", "number", "of", "passengers", "for", "all", "airports", "that", "the", "aircraft", "``", "Robinson", "R-22", "''", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Robinson R-22\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1738", "db_id": "gymnast", "query": "select total_points from gymnast order by total_points desc", "query_toks": ["SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC"], "query_toks_no_value": ["select", "total_points", "from", "gymnast", "order", "by", "total_points", "desc"], "question": "List the total points of gymnasts in descending order.", "question_toks": ["List", "the", "total", "points", "of", "gymnasts", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1739", "db_id": "gymnast", "query": "select total_points from gymnast order by total_points desc", "query_toks": ["SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC"], "query_toks_no_value": ["select", "total_points", "from", "gymnast", "order", "by", "total_points", "desc"], "question": "What are the total points for all gymnasts, ordered by total points descending?", "question_toks": ["What", "are", "the", "total", "points", "for", "all", "gymnasts", ",", "ordered", "by", "total", "points", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1740", "db_id": "gymnast", "query": "select total_points from gymnast order by floor_exercise_points desc", "query_toks": ["SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC"], "query_toks_no_value": ["select", "total_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc"], "question": "List the total points of gymnasts in descending order of floor exercise points.", "question_toks": ["List", "the", "total", "points", "of", "gymnasts", "in", "descending", "order", "of", "floor", "exercise", "points", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1741", "db_id": "gymnast", "query": "select total_points from gymnast order by floor_exercise_points desc", "query_toks": ["SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC"], "query_toks_no_value": ["select", "total_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc"], "question": "What are the total points of gymnasts, ordered by their floor exercise points descending?", "question_toks": ["What", "are", "the", "total", "points", "of", "gymnasts", ",", "ordered", "by", "their", "floor", "exercise", "points", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1754", "db_id": "gymnast", "query": "select t1.total_points from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t2.age asc limit 1", "query_toks": ["SELECT", "T1.Total_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "total_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "value"], "question": "What is the total point count of the youngest gymnast?", "question_toks": ["What", "is", "the", "total", "point", "count", "of", "the", "youngest", "gymnast", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1755", "db_id": "gymnast", "query": "select t1.total_points from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t2.age asc limit 1", "query_toks": ["SELECT", "T1.Total_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "total_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "value"], "question": "Return the total points of the gymnast with the lowest age.", "question_toks": ["Return", "the", "total", "points", "of", "the", "gymnast", "with", "the", "lowest", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1758", "db_id": "gymnast", "query": "select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t1.total_points > 57.5", "query_toks": ["SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T1.Total_Points", ">", "57.5"], "query_toks_no_value": ["select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total_points", ">", "value"], "question": "What are the distinct hometowns of gymnasts with total points more than 57.5?", "question_toks": ["What", "are", "the", "distinct", "hometowns", "of", "gymnasts", "with", "total", "points", "more", "than", "57.5", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 57.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1759", "db_id": "gymnast", "query": "select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t1.total_points > 57.5", "query_toks": ["SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T1.Total_Points", ">", "57.5"], "query_toks_no_value": ["select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total_points", ">", "value"], "question": "Give the different hometowns of gymnasts that have a total point score of above 57.5.", "question_toks": ["Give", "the", "different", "hometowns", "of", "gymnasts", "that", "have", "a", "total", "point", "score", "of", "above", "57.5", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 57.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1774", "db_id": "gymnast", "query": "select t2.age from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t1.total_points desc", "query_toks": ["SELECT", "T2.Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total_Points", "DESC"], "query_toks_no_value": ["select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total_points", "desc"], "question": "Show the ages of gymnasts in descending order of total points.", "question_toks": ["Show", "the", "ages", "of", "gymnasts", "in", "descending", "order", "of", "total", "points", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1775", "db_id": "gymnast", "query": "select t2.age from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t1.total_points desc", "query_toks": ["SELECT", "T2.Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total_Points", "DESC"], "query_toks_no_value": ["select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total_points", "desc"], "question": "What are the ages of the gymnasts, ordered descending by their total points?", "question_toks": ["What", "are", "the", "ages", "of", "the", "gymnasts", ",", "ordered", "descending", "by", "their", "total", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4902", "db_id": "store_product", "query": "select max_page_size from product group by max_page_size having count(*) > 3", "query_toks": ["SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "HAVING", "count", "(", "*", ")", ">", "3"], "query_toks_no_value": ["select", "max_page_size", "from", "product", "group", "by", "max_page_size", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the list of page size which have more than 3 product listed", "question_toks": ["Find", "the", "list", "of", "page", "size", "which", "have", "more", "than", "3", "product", "listed"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4903", "db_id": "store_product", "query": "select max_page_size from product group by max_page_size having count(*) > 3", "query_toks": ["SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "HAVING", "count", "(", "*", ")", ">", "3"], "query_toks_no_value": ["select", "max_page_size", "from", "product", "group", "by", "max_page_size", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the maximum page size for everything that has more than 3 products listed?", "question_toks": ["What", "is", "the", "maximum", "page", "size", "for", "everything", "that", "has", "more", "than", "3", "products", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4936", "db_id": "store_product", "query": "select max_page_size from product group by max_page_size order by count(*) desc limit 1", "query_toks": ["SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the most prominent max page size among all the products.", "question_toks": ["Find", "the", "most", "prominent", "max", "page", "size", "among", "all", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4937", "db_id": "store_product", "query": "select max_page_size from product group by max_page_size order by count(*) desc limit 1", "query_toks": ["SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the most common maximum page size?", "question_toks": ["What", "is", "the", "most", "common", "maximum", "page", "size", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6603", "db_id": "train_station", "query": "select name , main_services from station order by total_passengers desc limit 3", "query_toks": ["SELECT", "name", ",", "main_services", "FROM", "station", "ORDER", "BY", "total_passengers", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "name", ",", "main_services", "from", "station", "order", "by", "total_passengers", "desc", "limit", "value"], "question": "Show the names and main services for train stations that have the top three total number of passengers.", "question_toks": ["Show", "the", "names", "and", "main", "services", "for", "train", "stations", "that", "have", "the", "top", "three", "total", "number", "of", "passengers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5848", "db_id": "tracking_share_transactions", "query": "select date_of_transaction , share_count from transactions", "query_toks": ["SELECT", "date_of_transaction", ",", "share_count", "FROM", "TRANSACTIONS"], "query_toks_no_value": ["select", "date_of_transaction", ",", "share_count", "from", "transactions"], "question": "Show all date and share count of transactions.", "question_toks": ["Show", "all", "date", "and", "share", "count", "of", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5854", "db_id": "tracking_share_transactions", "query": "select min(amount_of_transaction) from transactions where transaction_type_code = \"pur\" and share_count > 50", "query_toks": ["SELECT", "min", "(", "amount_of_transaction", ")", "FROM", "TRANSACTIONS", "WHERE", "transaction_type_code", "=", "``", "PUR", "''", "AND", "share_count", ">", "50"], "query_toks_no_value": ["select", "min", "(", "amount_of_transaction", ")", "from", "transactions", "where", "transaction_type_code", "=", "value", "and", "share_count", ">", "value"], "question": "Show the minimum amount of transactions whose type code is \"PUR\" and whose share count is bigger than 50.", "question_toks": ["Show", "the", "minimum", "amount", "of", "transactions", "whose", "type", "code", "is", "``", "PUR", "''", "and", "whose", "share", "count", "is", "bigger", "than", "50", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"PUR\"", null], "and", [false, 3, [0, [0, 13, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0109", "db_id": "bike_1", "query": "select date from weather where max_temperature_f > 85", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "max_temperature_f", ">", "85"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "max_temperature_f", ">", "value"], "question": "Give me the dates when the max temperature was higher than 85.", "question_toks": ["Give", "me", "the", "dates", "when", "the", "max", "temperature", "was", "higher", "than", "85", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], 85.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0110", "db_id": "bike_1", "query": "select date from weather where max_temperature_f > 85", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "max_temperature_f", ">", "85"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "max_temperature_f", ">", "value"], "question": "What are the dates with a maximum temperature higher than 85?", "question_toks": ["What", "are", "the", "dates", "with", "a", "maximum", "temperature", "higher", "than", "85", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], 85.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0137", "db_id": "bike_1", "query": "select count(*) from weather where mean_humidity > 50 and mean_visibility_miles > 8", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "weather", "WHERE", "mean_humidity", ">", "50", "AND", "mean_visibility_miles", ">", "8"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "weather", "where", "mean_humidity", ">", "value", "and", "mean_visibility_miles", ">", "value"], "question": "How many days had both mean humidity above 50 and mean visibility above 8?", "question_toks": ["How", "many", "days", "had", "both", "mean", "humidity", "above", "50", "and", "mean", "visibility", "above", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 31, false], null], 50.0, null], "and", [false, 3, [0, [0, 37, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0138", "db_id": "bike_1", "query": "select count(*) from weather where mean_humidity > 50 and mean_visibility_miles > 8", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "weather", "WHERE", "mean_humidity", ">", "50", "AND", "mean_visibility_miles", ">", "8"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "weather", "where", "mean_humidity", ">", "value", "and", "mean_visibility_miles", ">", "value"], "question": "What is the number of days that had an average humity above 50 and an average visibility above 8?", "question_toks": ["What", "is", "the", "number", "of", "days", "that", "had", "an", "average", "humity", "above", "50", "and", "an", "average", "visibility", "above", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 31, false], null], 50.0, null], "and", [false, 3, [0, [0, 37, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0147", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code order by avg(mean_sea_level_pressure_inches) limit 1", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "mean_sea_level_pressure_inches", ")", "LIMIT", "1"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "mean_sea_level_pressure_inches", ")", "limit", "value"], "question": "What is the zip code in which the average mean sea level pressure is the lowest?", "question_toks": ["What", "is", "the", "zip", "code", "in", "which", "the", "average", "mean", "sea", "level", "pressure", "is", "the", "lowest", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["asc", [[0, [5, 34, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0148", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code order by avg(mean_sea_level_pressure_inches) limit 1", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "mean_sea_level_pressure_inches", ")", "LIMIT", "1"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "mean_sea_level_pressure_inches", ")", "limit", "value"], "question": "What is the zip code that has the lowest average mean sea level pressure?", "question_toks": ["What", "is", "the", "zip", "code", "that", "has", "the", "lowest", "average", "mean", "sea", "level", "pressure", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["asc", [[0, [5, 34, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0153", "db_id": "bike_1", "query": "select date , zip_code from weather where max_temperature_f >= 80", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">", "=", "80"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">", "=", "value"], "question": "When and in what zip code did max temperature reach 80?", "question_toks": ["When", "and", "in", "what", "zip", "code", "did", "max", "temperature", "reach", "80", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0155", "db_id": "bike_1", "query": "select t1.id from trip as t1 join weather as t2 on t1.zip_code = t2.zip_code group by t2.zip_code having avg(t2.mean_temperature_f) > 60", "query_toks": ["SELECT", "T1.id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1.zip_code", "=", "T2.zip_code", "GROUP", "BY", "T2.zip_code", "HAVING", "avg", "(", "T2.mean_temperature_f", ")", ">", "60"], "query_toks_no_value": ["select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "mean_temperature_f", ")", ">", "value"], "question": "Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.", "question_toks": ["Give", "me", "ids", "for", "all", "the", "trip", "that", "took", "place", "in", "a", "zip", "code", "area", "with", "average", "mean", "temperature", "above", "60", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [5, 25, false], null], 60.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0156", "db_id": "bike_1", "query": "select t1.id from trip as t1 join weather as t2 on t1.zip_code = t2.zip_code group by t2.zip_code having avg(t2.mean_temperature_f) > 60", "query_toks": ["SELECT", "T1.id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1.zip_code", "=", "T2.zip_code", "GROUP", "BY", "T2.zip_code", "HAVING", "avg", "(", "T2.mean_temperature_f", ")", ">", "60"], "query_toks_no_value": ["select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "mean_temperature_f", ")", ">", "value"], "question": "For each zip code, find the ids of all trips that have a higher average mean temperature above 60?", "question_toks": ["For", "each", "zip", "code", ",", "find", "the", "ids", "of", "all", "trips", "that", "have", "a", "higher", "average", "mean", "temperature", "above", "60", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [5, 25, false], null], 60.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0157", "db_id": "bike_1", "query": "select zip_code , count(*) from weather where max_wind_speed_mph >= 25 group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "count", "(", "*", ")", "FROM", "weather", "WHERE", "max_wind_Speed_mph", ">", "=", "25", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "count", "(", "*", ")", "from", "weather", "where", "max_wind_speed_mph", ">", "=", "value", "group", "by", "zip_code"], "question": "For each zip code, return how many times max wind speed reached 25?", "question_toks": ["For", "each", "zip", "code", ",", "return", "how", "many", "times", "max", "wind", "speed", "reached", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 39, false], null], 25.0, null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0158", "db_id": "bike_1", "query": "select zip_code , count(*) from weather where max_wind_speed_mph >= 25 group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "count", "(", "*", ")", "FROM", "weather", "WHERE", "max_wind_Speed_mph", ">", "=", "25", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "count", "(", "*", ")", "from", "weather", "where", "max_wind_speed_mph", ">", "=", "value", "group", "by", "zip_code"], "question": "For each zip code, how many times has the maximum wind speed reached 25 mph?", "question_toks": ["For", "each", "zip", "code", ",", "how", "many", "times", "has", "the", "maximum", "wind", "speed", "reached", "25", "mph", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 39, false], null], 25.0, null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0159", "db_id": "bike_1", "query": "select date , zip_code from weather where min_dew_point_f < (select min(min_dew_point_f) from weather where zip_code = 94107)", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "min_dew_point_f", "<", "(", "SELECT", "min", "(", "min_dew_point_f", ")", "FROM", "weather", "WHERE", "zip_code", "=", "94107", ")"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "min_dew_point_f", "<", "(", "select", "min", "(", "min_dew_point_f", ")", "from", "weather", "where", "zip_code", "=", "value", ")"], "question": "On which day and in which zip code was the min dew point lower than any day in zip code 94107?", "question_toks": ["On", "which", "day", "and", "in", "which", "zip", "code", "was", "the", "min", "dew", "point", "lower", "than", "any", "day", "in", "zip", "code", "94107", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 4, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0160", "db_id": "bike_1", "query": "select date , zip_code from weather where min_dew_point_f < (select min(min_dew_point_f) from weather where zip_code = 94107)", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "min_dew_point_f", "<", "(", "SELECT", "min", "(", "min_dew_point_f", ")", "FROM", "weather", "WHERE", "zip_code", "=", "94107", ")"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "min_dew_point_f", "<", "(", "select", "min", "(", "min_dew_point_f", ")", "from", "weather", "where", "zip_code", "=", "value", ")"], "question": "Which days had a minimum dew point smaller than any day in zip code 94107, and in which zip codes were those measurements taken?", "question_toks": ["Which", "days", "had", "a", "minimum", "dew", "point", "smaller", "than", "any", "day", "in", "zip", "code", "94107", ",", "and", "in", "which", "zip", "codes", "were", "those", "measurements", "taken", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 4, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0175", "db_id": "bike_1", "query": "select date , mean_temperature_f , mean_humidity from weather order by max_gust_speed_mph desc limit 3", "query_toks": ["SELECT", "date", ",", "mean_temperature_f", ",", "mean_humidity", "FROM", "weather", "ORDER", "BY", "max_gust_speed_mph", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "date", ",", "mean_temperature_f", ",", "mean_humidity", "from", "weather", "order", "by", "max_gust_speed_mph", "desc", "limit", "value"], "question": "What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?", "question_toks": ["What", "are", "the", "date", ",", "mean", "temperature", "and", "mean", "humidity", "for", "the", "top", "3", "days", "with", "the", "largest", "max", "gust", "speeds", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 25, false], null]], [0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 41, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0176", "db_id": "bike_1", "query": "select date , mean_temperature_f , mean_humidity from weather order by max_gust_speed_mph desc limit 3", "query_toks": ["SELECT", "date", ",", "mean_temperature_f", ",", "mean_humidity", "FROM", "weather", "ORDER", "BY", "max_gust_speed_mph", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "date", ",", "mean_temperature_f", ",", "mean_humidity", "from", "weather", "order", "by", "max_gust_speed_mph", "desc", "limit", "value"], "question": "What is the date, average temperature and mean humidity for the days with the 3 largest maximum gust speeds?", "question_toks": ["What", "is", "the", "date", ",", "average", "temperature", "and", "mean", "humidity", "for", "the", "days", "with", "the", "3", "largest", "maximum", "gust", "speeds", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 25, false], null]], [0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 41, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0181", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(mean_visibility_miles) < 10", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_visibility_miles", ")", "<", "10"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_visibility_miles", ")", "<", "value"], "question": "Find the zip code in which the average mean visibility is lower than 10.", "question_toks": ["Find", "the", "zip", "code", "in", "which", "the", "average", "mean", "visibility", "is", "lower", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 37, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0182", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(mean_visibility_miles) < 10", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_visibility_miles", ")", "<", "10"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_visibility_miles", ")", "<", "value"], "question": "For each zip code, select all those that have an average mean visiblity below 10.", "question_toks": ["For", "each", "zip", "code", ",", "select", "all", "those", "that", "have", "an", "average", "mean", "visiblity", "below", "10", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 37, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0199", "db_id": "bike_1", "query": "select date from weather where mean_sea_level_pressure_inches between 30.3 and 31", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "mean_sea_level_pressure_inches", "BETWEEN", "30.3", "AND", "31"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "mean_sea_level_pressure_inches", "between", "value", "and", "value"], "question": "What are the dates in which the mean sea level pressure was between 30.3 and 31?", "question_toks": ["What", "are", "the", "dates", "in", "which", "the", "mean", "sea", "level", "pressure", "was", "between", "30.3", "and", "31", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 34, false], null], 30.3, 31.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1154", "db_id": "body_builder", "query": "select clean_jerk from body_builder order by total desc limit 1", "query_toks": ["SELECT", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Total", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "clean_jerk", "from", "body_builder", "order", "by", "total", "desc", "limit", "value"], "question": "What are the clean and jerk score of the body builder with the highest total score?", "question_toks": ["What", "are", "the", "clean", "and", "jerk", "score", "of", "the", "body", "builder", "with", "the", "highest", "total", "score", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1157", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t1.total > 300", "query_toks": ["SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Total", ">", "300"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total", ">", "value"], "question": "What are the names of body builders whose total score is higher than 300?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "whose", "total", "score", "is", "higher", "than", "300", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 300.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1159", "db_id": "body_builder", "query": "select t2.birth_date , t2.birth_place from body_builder as t1 join people as t2 on t1.people_id = t2.people_id order by t1.total desc limit 1", "query_toks": ["SELECT", "T2.Birth_Date", ",", "T2.Birth_Place", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "birth_date", ",", "t2", ".", "birth_place", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total", "desc", "limit", "value"], "question": "What are the birth date and birth place of the body builder with the highest total points?", "question_toks": ["What", "are", "the", "birth", "date", "and", "birth", "place", "of", "the", "body", "builder", "with", "the", "highest", "total", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1160", "db_id": "body_builder", "query": "select t2.height from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t1.total < 315", "query_toks": ["SELECT", "T2.Height", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Total", "<", "315"], "query_toks_no_value": ["select", "t2", ".", "height", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total", "<", "value"], "question": "What are the heights of body builders with total score smaller than 315?", "question_toks": ["What", "are", "the", "heights", "of", "body", "builders", "with", "total", "score", "smaller", "than", "315", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 315.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1161", "db_id": "body_builder", "query": "select avg(t1.total) from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t2.height > 200", "query_toks": ["SELECT", "avg", "(", "T1.Total", ")", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "total", ")", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value"], "question": "What is the average total score of body builders with height bigger than 200?", "question_toks": ["What", "is", "the", "average", "total", "score", "of", "body", "builders", "with", "height", "bigger", "than", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0018", "db_id": "farm", "query": "select total_horses from farm order by total_horses asc", "query_toks": ["SELECT", "Total_Horses", "FROM", "farm", "ORDER", "BY", "Total_Horses", "ASC"], "query_toks_no_value": ["select", "total_horses", "from", "farm", "order", "by", "total_horses", "asc"], "question": "List the total number of horses on farms in ascending order.", "question_toks": ["List", "the", "total", "number", "of", "horses", "on", "farms", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0019", "db_id": "farm", "query": "select total_horses from farm order by total_horses asc", "query_toks": ["SELECT", "Total_Horses", "FROM", "farm", "ORDER", "BY", "Total_Horses", "ASC"], "query_toks_no_value": ["select", "total_horses", "from", "farm", "order", "by", "total_horses", "asc"], "question": "What is the total horses record for each farm, sorted ascending?", "question_toks": ["What", "is", "the", "total", "horses", "record", "for", "each", "farm", ",", "sorted", "ascending", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0420", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?", "question_toks": ["What", "are", "the", "id", ",", "name", "and", "membership", "level", "of", "visitors", "who", "have", "spent", "the", "largest", "amount", "of", "money", "in", "total", "in", "all", "museum", "tickets", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 12, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0425", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "total_spent", ")", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "where", "t1", ".", "level_of_membership", "=", "value"], "question": "What is the total ticket expense of the visitors whose membership level is 1?", "question_toks": ["What", "is", "the", "total", "ticket", "expense", "of", "the", "visitors", "whose", "membership", "level", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_1", "DEJOIN_TOTAL", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_in_column_0077", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(mean_humidity) < 70 intersect select zip_code from trip group by zip_code having count(*) >= 10", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_humidity", ")", "<", "70", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(*)", ">=", "10"], "query_toks_no_value": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_humidity", ")", "<", "70", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(*)", ">=", "10"], "question": "Give me the zip code where the average mean humidity is below 70 and at least 10 trips took place.", "question_toks": ["Give", "me", "the", "zip", "code", "where", "the", "average", "mean", "humidity", "is", "below", "70", "and", "at", "least", "10", "trips", "took", "place", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 31, false], null], 70.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_in_column_0078", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(mean_humidity) < 70 intersect select zip_code from trip group by zip_code having count(*) >= 10", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_humidity", ")", "<", "70", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(*)", ">=", "10"], "query_toks_no_value": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_humidity", ")", "<", "70", "INTERSECT", "SELECT", "zip_code", "FROM", "trip", "GROUP", "BY", "zip_code", "HAVING", "count", "(*)", ">=", "10"], "question": "What are the zip codes that have an average mean humidity below 70 and had at least 10 trips come through there?", "question_toks": ["What", "are", "the", "zip", "codes", "that", "have", "an", "average", "mean", "humidity", "below", "70", "and", "had", "at", "least", "10", "trips", "come", "through", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 31, false], null], 70.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0726", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\" or continent = \"europe\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "OR", "Continent", "=", "``", "Europe", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value"], "question": "What is the total surface area of the continents Asia and Europe?", "question_toks": ["What", "is", "the", "total", "surface", "area", "of", "the", "continents", "Asia", "and", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0868", "db_id": "chinook_1", "query": "select avg(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"latin\" or t1.name = \"pop\"", "query_toks": ["SELECT", "AVG", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Latin", "''", "OR", "T1.Name", "=", "``", "Pop", "''"], "query_toks_no_value": ["select", "avg", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value"], "question": "Find the average millisecond length of Latin and Pop tracks.", "question_toks": ["Find", "the", "average", "millisecond", "length", "of", "Latin", "and", "Pop", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[5, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Latin\"", null], "or", [false, 2, [0, [0, 35, false], null], "\"Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1353", "db_id": "college_2", "query": "select sum(budget) from department where dept_name = 'marketing' or dept_name = 'finance'", "query_toks": ["SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "'Marketing", "'", "OR", "dept_name", "=", "'Finance", "'"], "query_toks_no_value": ["select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value"], "question": "What is the sum of budgets of the Marketing and Finance departments?", "question_toks": ["What", "is", "the", "sum", "of", "budgets", "of", "the", "Marketing", "and", "Finance", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Marketing\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Finance\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1368", "db_id": "college_2", "query": "select distinct t1.name from student as t1 join takes as t2 on t1.id = t2.id where year = 2009 or year = 2010", "query_toks": ["SELECT", "DISTINCT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "YEAR", "=", "2009", "OR", "YEAR", "=", "2010"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "Find the name of students who took any class in the years of 2009 and 2010.", "question_toks": ["Find", "the", "name", "of", "students", "who", "took", "any", "class", "in", "the", "years", "of", "2009", "and", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 31, false], null]]}, "select": [true, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], 2009.0, null], "or", [false, 2, [0, [0, 35, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_changed_logical_connectives_0004", "db_id": "world_1", "query": "select sum(population) from country where name = \"brunei\" or name = \"bhutan\"", "query_toks": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "``", "brunei", "''", "OR", "name", "=", "``", "bhutan", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "value", "OR", "name", "=", "value"], "question": "What is the total population of Brunei and Bhutan?", "question_toks": ["What", "is", "the", "total", "population", "of", "Brunei", "and", "Bhutan", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"brunei\"", null], "or", [false, 2, [0, [0, 9, false], null], "\"bhutan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_changed_logical_connectives_0005", "db_id": "world_1", "query": "select sum(population) from city where name = \"amsterdam\" or name = \"roterdam\"", "query_toks": ["SELECT", "sum", "(", "population", ")", "FROM", "city", "WHERE", "name", "=", "``", "amsterdam", "''", "or", "name", "=", "``", "roterdam", "''"], "query_toks_no_value": ["SELECT", "sum", "(", "population", ")", "FROM", "city", "WHERE", "name", "=", "value", "or", "name", "=", "value"], "question": "How many people live in Amsterdam and Rotterdam in total?", "question_toks": ["How", "many", "people", "live", "in", "Amsterdam", "and", "Rotterdam", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"amsterdam\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"roterdam\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_changed_logical_connectives_0006", "db_id": "pets_1", "query": "select sum(weight) from pets where petid = 2001 or petid = 2003 ", "query_toks": ["SELECT", "sum", "(", "weight", ")", "FROM", "pets", "WHERE", "petid", "=", "2001", "or", "petid", "=", "2003"], "query_toks_no_value": ["SELECT", "sum", "(", "weight", ")", "FROM", "pets", "WHERE", "petid", "=", "value", "or", "petid", "=", "value"], "question": "Find the total weight for pets with id 2001 and 2003.", "question_toks": ["Find", "the", "total", "weight", "for", "pets", "with", "id", "2001", "and", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 2001.0, null], "or", [false, 2, [0, [0, 11, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0033", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show the name and theme for all concerts and the number of singers in each concert.", "question_toks": ["Show", "the", "name", "and", "theme", "for", "all", "concerts", "and", "the", "number", "of", "singers", "in", "each", "concert", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 17, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0034", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the names , themes , and number of singers for every concert ?", "question_toks": ["What", "are", "the", "names", ",", "themes", ",", "and", "number", "of", "singers", "for", "every", "concert", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 17, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0051", "db_id": "pets_1", "query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.age > 20", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.age", ">", "20"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "age", ">", "value"], "question": "Find number of pets owned by students who are older than 20.", "question_toks": ["Find", "number", "of", "pets", "owned", "by", "students", "who", "are", "older", "than", "20", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0052", "db_id": "pets_1", "query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.age > 20", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.age", ">", "20"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "age", ">", "value"], "question": "How many pets are owned by students that have an age greater than 20?", "question_toks": ["How", "many", "pets", "are", "owned", "by", "students", "that", "have", "an", "age", "greater", "than", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0089", "db_id": "car_1", "query": "select t1.contid , t1.continent , count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent group by t1.contid;", "query_toks": ["SELECT", "T1.ContId", ",", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.Continent", "GROUP", "BY", "T1.ContId", ";"], "query_toks_no_value": ["select", "t1", ".", "contid", ",", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "group", "by", "t1", ".", "contid"], "question": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "question_toks": ["How", "many", "countries", "does", "each", "continent", "have", "?", "List", "the", "continent", "id", ",", "continent", "name", "and", "the", "number", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0090", "db_id": "car_1", "query": "select t1.contid , t1.continent , count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent group by t1.contid;", "query_toks": ["SELECT", "T1.ContId", ",", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.Continent", "GROUP", "BY", "T1.ContId", ";"], "query_toks_no_value": ["select", "t1", ".", "contid", ",", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "group", "by", "t1", ".", "contid"], "question": "For each continent, list its id, name, and how many countries it has?", "question_toks": ["For", "each", "continent", ",", "list", "its", "id", ",", "name", ",", "and", "how", "many", "countries", "it", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0095", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "horsepower", "asc", "limit", "value"], "question": "Which model of the car has the minimum horsepower?", "question_toks": ["Which", "model", "of", "the", "car", "has", "the", "minimum", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0096", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "horsepower", "asc", "limit", "value"], "question": "What is the model of the car with the smallest amount of horsepower?", "question_toks": ["What", "is", "the", "model", "of", "the", "car", "with", "the", "smallest", "amount", "of", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0097", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "Find the model of the car whose weight is below the average weight.", "question_toks": ["Find", "the", "model", "of", "the", "car", "whose", "weight", "is", "below", "the", "average", "weight", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0098", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "What is the model for the car with a weight smaller than the average?", "question_toks": ["What", "is", "the", "model", "for", "the", "car", "with", "a", "weight", "smaller", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0107", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "value"], "question": "Which of the countries has the most car makers? List the country name.", "question_toks": ["Which", "of", "the", "countries", "has", "the", "most", "car", "makers", "?", "List", "the", "country", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0108", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the country with the most car makers?", "question_toks": ["What", "is", "the", "name", "of", "the", "country", "with", "the", "most", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0111", "db_id": "car_1", "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)';", "query_toks": ["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", ")", "'", ";"], "query_toks_no_value": ["select", "t1", ".", "accelerate", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "make", "=", "value"], "question": "What is the accelerate of the car make amc hornet sportabout (sw)?", "question_toks": ["What", "is", "the", "accelerate", "of", "the", "car", "make", "amc", "hornet", "sportabout", "(", "sw", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"amc hornet sportabout (sw)\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0113", "db_id": "car_1", "query": "select count(*) from car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'france';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "WHERE", "T2.CountryName", "=", "'france", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "where", "t2", ".", "countryname", "=", "value"], "question": "How many car makers are there in france?", "question_toks": ["How", "many", "car", "makers", "are", "there", "in", "france", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0114", "db_id": "car_1", "query": "select count(*) from car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'france';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "WHERE", "T2.CountryName", "=", "'france", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "where", "t2", ".", "countryname", "=", "value"], "question": "What is the number of makers of care in France?", "question_toks": ["What", "is", "the", "number", "of", "makers", "of", "care", "in", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0131", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t2", ".", "horsepower", ",", "t1", ".", "make", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value"], "question": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "question_toks": ["What", "is", "the", "maximum", "horsepower", "and", "the", "make", "of", "the", "car", "models", "with", "3", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0132", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t2", ".", "horsepower", ",", "t1", ".", "make", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value"], "question": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", "question_toks": ["What", "is", "the", "largest", "amount", "of", "horsepower", "for", "the", "models", "with", "3", "cylinders", "and", "what", "make", "is", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0133", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "mpg", "desc", "limit", "value"], "question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "question_toks": ["Which", "model", "saves", "the", "most", "gasoline", "?", "That", "is", "to", "say", ",", "have", "the", "maximum", "miles", "per", "gallon", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 17, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0134", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "mpg", "desc", "limit", "value"], "question": "What is the car model with the highest mpg ?", "question_toks": ["What", "is", "the", "car", "model", "with", "the", "highest", "mpg", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 17, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0137", "db_id": "car_1", "query": "select avg(t2.edispl) from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t1.model = 'volvo';", "query_toks": ["SELECT", "avg", "(", "T2.edispl", ")", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T1.Model", "=", "'volvo", "'", ";"], "query_toks_no_value": ["select", "avg", "(", "t2", ".", "edispl", ")", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t1", ".", "model", "=", "value"], "question": "What is the average edispl of the cars of model volvo?", "question_toks": ["What", "is", "the", "average", "edispl", "of", "the", "cars", "of", "model", "volvo", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0138", "db_id": "car_1", "query": "select avg(t2.edispl) from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t1.model = 'volvo';", "query_toks": ["SELECT", "avg", "(", "T2.edispl", ")", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T1.Model", "=", "'volvo", "'", ";"], "query_toks_no_value": ["select", "avg", "(", "t2", ".", "edispl", ")", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t1", ".", "model", "=", "value"], "question": "What is the average edispl for all volvos?", "question_toks": ["What", "is", "the", "average", "edispl", "for", "all", "volvos", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0147", "db_id": "car_1", "query": "select count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker where t1.fullname = 'american motor company';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "WHERE", "T1.FullName", "=", "'American", "Motor", "Company", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "where", "t1", ".", "fullname", "=", "value"], "question": "How many car models were produced by the maker with full name American Motor Company?", "question_toks": ["How", "many", "car", "models", "were", "produced", "by", "the", "maker", "with", "full", "name", "American", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"American Motor Company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0148", "db_id": "car_1", "query": "select count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker where t1.fullname = 'american motor company';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "WHERE", "T1.FullName", "=", "'American", "Motor", "Company", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "where", "t1", ".", "fullname", "=", "value"], "question": "What is the number of car models created by the car maker American Motor Company?", "question_toks": ["What", "is", "the", "number", "of", "car", "models", "created", "by", "the", "car", "maker", "American", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"American Motor Company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0149", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "Which makers designed more than 3 car models? List full name and the id.", "question_toks": ["Which", "makers", "designed", "more", "than", "3", "car", "models", "?", "List", "full", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0150", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "What are the names and ids of all makers with more than 3 models?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "makers", "with", "more", "than", "3", "models", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0162", "db_id": "car_1", "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "query_toks": ["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the number of countries with more than 2 car makers ?", "question_toks": ["What", "is", "the", "number", "of", "countries", "with", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0165", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value"], "question": "For the cars with 4 cylinders, which model has the largest horsepower?", "question_toks": ["For", "the", "cars", "with", "4", "cylinders", ",", "which", "model", "has", "the", "largest", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0166", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value"], "question": "For all of the 4 cylinder cars, which model has the most horsepower?", "question_toks": ["For", "all", "of", "the", "4", "cylinder", "cars", ",", "which", "model", "has", "the", "most", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0208", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "Return the number of flights departing from Aberdeen.", "question_toks": ["Return", "the", "number", "of", "flights", "departing", "from", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0209", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "How many flights arriving in Aberdeen city?", "question_toks": ["How", "many", "flights", "arriving", "in", "Aberdeen", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0210", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "Return the number of flights arriving in Aberdeen.", "question_toks": ["Return", "the", "number", "of", "flights", "arriving", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0213", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airlines as t2 on t1.airline = t2.uid where t2.airline = \"jetblue airways\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T1.Airline", "=", "T2.uid", "WHERE", "T2.Airline", "=", "``", "JetBlue", "Airways", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t1", ".", "airline", "=", "t2", ".", "uid", "where", "t2", ".", "airline", "=", "value"], "question": "How many flights does airline 'JetBlue Airways' have?", "question_toks": ["How", "many", "flights", "does", "airline", "'JetBlue", "Airways", "'", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"JetBlue Airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0214", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airlines as t2 on t1.airline = t2.uid where t2.airline = \"jetblue airways\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T1.Airline", "=", "T2.uid", "WHERE", "T2.Airline", "=", "``", "JetBlue", "Airways", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t1", ".", "airline", "=", "t2", ".", "uid", "where", "t2", ".", "airline", "=", "value"], "question": "Give the number of Jetblue Airways flights.", "question_toks": ["Give", "the", "number", "of", "Jetblue", "Airways", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"JetBlue Airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0229", "db_id": "flight_2", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which airline has most number of flights?", "question_toks": ["Which", "airline", "has", "most", "number", "of", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0230", "db_id": "flight_2", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What airline serves the most flights?", "question_toks": ["What", "airline", "serves", "the", "most", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0242", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) > 10", "query_toks": ["SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", ">", "value"], "question": "Which airlines have at least 10 flights?", "question_toks": ["Which", "airlines", "have", "at", "least", "10", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0245", "db_id": "flight_2", "query": "select t1.flightno from flights as t1 join airlines as t2 on t2.uid = t1.airline where t2.airline = \"united airlines\"", "query_toks": ["SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T2.uid", "=", "T1.Airline", "WHERE", "T2.Airline", "=", "``", "United", "Airlines", "''"], "query_toks_no_value": ["select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t2", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "airline", "=", "value"], "question": "What are flight numbers of Airline \"United Airlines\"?", "question_toks": ["What", "are", "flight", "numbers", "of", "Airline", "``", "United", "Airlines", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0246", "db_id": "flight_2", "query": "select t1.flightno from flights as t1 join airlines as t2 on t2.uid = t1.airline where t2.airline = \"united airlines\"", "query_toks": ["SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T2.uid", "=", "T1.Airline", "WHERE", "T2.Airline", "=", "``", "United", "Airlines", "''"], "query_toks_no_value": ["select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t2", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "airline", "=", "value"], "question": "Which flight numbers correspond to United Airlines flights?", "question_toks": ["Which", "flight", "numbers", "correspond", "to", "United", "Airlines", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0277", "db_id": "employee_hire_evaluation", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "find the name of employee who was awarded the most times in the evaluation.", "question_toks": ["find", "the", "name", "of", "employee", "who", "was", "awarded", "the", "most", "times", "in", "the", "evaluation", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0278", "db_id": "employee_hire_evaluation", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which employee received the most awards in evaluations? Give me the employee name.", "question_toks": ["Which", "employee", "received", "the", "most", "awards", "in", "evaluations", "?", "Give", "me", "the", "employee", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0283", "db_id": "employee_hire_evaluation", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the shop that is hiring the largest number of employees?", "question_toks": ["What", "is", "the", "name", "of", "the", "shop", "that", "is", "hiring", "the", "largest", "number", "of", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0284", "db_id": "employee_hire_evaluation", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which shop has the most employees? Give me the shop name.", "question_toks": ["Which", "shop", "has", "the", "most", "employees", "?", "Give", "me", "the", "shop", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0308", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'ppt'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.Template_ID", "=", "T2.Template_ID", "WHERE", "T2.Template_Type_Code", "=", "'PPT", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "template_type_code", "=", "value"], "question": "Count the number of documents that use the PPT template type.", "question_toks": ["Count", "the", "number", "of", "documents", "that", "use", "the", "PPT", "template", "type", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"PPT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0311", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the id and type code for the template used by the most documents?", "question_toks": ["What", "is", "the", "id", "and", "type", "code", "for", "the", "template", "used", "by", "the", "most", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0312", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the id and type code of the template that is used for the greatest number of documents.", "question_toks": ["Return", "the", "id", "and", "type", "code", "of", "the", "template", "that", "is", "used", "for", "the", "greatest", "number", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0359", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'summer show'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_ID", "=", "T2.document_ID", "WHERE", "T2.document_name", "=", "'Summer", "Show", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value"], "question": "How many paragraphs for the document with name 'Summer Show'?", "question_toks": ["How", "many", "paragraphs", "for", "the", "document", "with", "name", "'Summer", "Show", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"Summer Show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0360", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'summer show'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_ID", "=", "T2.document_ID", "WHERE", "T2.document_name", "=", "'Summer", "Show", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value"], "question": "Count the number of paragraphs in the document named 'Summer Show'.", "question_toks": ["Count", "the", "number", "of", "paragraphs", "in", "the", "document", "named", "'Summer", "Show", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"Summer Show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0374", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the id and name of the document with the most paragraphs.", "question_toks": ["Return", "the", "id", "and", "name", "of", "the", "document", "with", "the", "most", "paragraphs", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0500", "db_id": "battle_death", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the ship id and name that caused most total injuries?", "question_toks": ["What", "is", "the", "ship", "id", "and", "name", "that", "caused", "most", "total", "injuries", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0515", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which department offers the most number of degrees? List department name and id.", "question_toks": ["Which", "department", "offers", "the", "most", "number", "of", "degrees", "?", "List", "department", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0516", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name and id of the department with the most number of degrees ?", "question_toks": ["What", "is", "the", "name", "and", "id", "of", "the", "department", "with", "the", "most", "number", "of", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0521", "db_id": "student_transcripts_tracking", "query": "select count(*) from departments as t1 join degree_programs as t2 on t1.department_id = t2.department_id where t1.department_name = 'engineer'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Departments", "AS", "T1", "JOIN", "Degree_Programs", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T1.department_name", "=", "'engineer", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "departments", "as", "t1", "join", "degree_programs", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t1", ".", "department_name", "=", "value"], "question": "How many degrees does the engineering department offer?", "question_toks": ["How", "many", "degrees", "does", "the", "engineering", "department", "offer", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0522", "db_id": "student_transcripts_tracking", "query": "select count(*) from departments as t1 join degree_programs as t2 on t1.department_id = t2.department_id where t1.department_name = 'engineer'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Departments", "AS", "T1", "JOIN", "Degree_Programs", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T1.department_name", "=", "'engineer", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "departments", "as", "t1", "join", "degree_programs", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t1", ".", "department_name", "=", "value"], "question": "How many degrees does the engineering department have?", "question_toks": ["How", "many", "degrees", "does", "the", "engineering", "department", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0529", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the semester which most student registered in? Show both the name and the id.", "question_toks": ["What", "is", "the", "semester", "which", "most", "student", "registered", "in", "?", "Show", "both", "the", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 28, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]], [0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0530", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "For each semester, what is the name and id of the one with the most students registered?", "question_toks": ["For", "each", "semester", ",", "what", "is", "the", "name", "and", "id", "of", "the", "one", "with", "the", "most", "students", "registered", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 28, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]], [0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0533", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", "=", "value"], "question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", "question_toks": ["Who", "are", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?", "List", "the", "first", "name", ",", "middle", "name", "and", "last", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0534", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", "=", "value"], "question": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?", "question_toks": ["What", "are", "the", "first", ",", "middle", ",", "and", "last", "names", ",", "along", "with", "the", "ids", ",", "of", "all", "students", "who", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0537", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Find the kind of program which most number of students are enrolled in?", "question_toks": ["Find", "the", "kind", "of", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0538", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the degree summary name that has the most number of students enrolled?", "question_toks": ["What", "is", "the", "degree", "summary", "name", "that", "has", "the", "most", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0539", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Find the program which most number of students are enrolled in. List both the id and the summary.", "question_toks": ["Find", "the", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", ".", "List", "both", "the", "id", "and", "the", "summary", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0540", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the program id and the summary of the degree that has the most students enrolled?", "question_toks": ["What", "is", "the", "program", "id", "and", "the", "summary", "of", "the", "degree", "that", "has", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0541", "db_id": "student_transcripts_tracking", "query": "select t1.student_id , 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", "query_toks": ["SELECT", "T1.student_id", ",", "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"], "query_toks_no_value": ["select", "t1", ".", "student_id", ",", "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", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [3, [0, [0, 0, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0542", "db_id": "student_transcripts_tracking", "query": "select t1.student_id , 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", "query_toks": ["SELECT", "T1.student_id", ",", "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"], "query_toks_no_value": ["select", "t1", ".", "student_id", ",", "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", "value"], "question": "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?", "question_toks": ["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", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [3, [0, [0, 0, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0547", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What's the name of the course with most number of enrollments?", "question_toks": ["What", "'s", "the", "name", "of", "the", "course", "with", "most", "number", "of", "enrollments", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 50, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0548", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the course with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "course", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 50, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0551", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Show the date and id of the transcript with at least 2 course results.", "question_toks": ["Show", "the", "date", "and", "id", "of", "the", "transcript", "with", "at", "least", "2", "course", "results", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 56, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 53, false], null]], [0, [0, [0, 56, false], null]]]], "where": [], "groupBy": [[0, 56, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0552", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What is the date and id of the transcript with at least 2 courses listed?", "question_toks": ["What", "is", "the", "date", "and", "id", "of", "the", "transcript", "with", "at", "least", "2", "courses", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 56, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 53, false], null]], [0, [0, [0, 56, false], null]]]], "where": [], "groupBy": [[0, 56, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0561", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which address holds the most number of students currently? List the address id and all lines.", "question_toks": ["Which", "address", "holds", "the", "most", "number", "of", "students", "currently", "?", "List", "the", "address", "id", "and", "all", "lines", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0562", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the id, line 1, and line 2 of the address with the most students?", "question_toks": ["What", "is", "the", "id", ",", "line", "1", ",", "and", "line", "2", "of", "the", "address", "with", "the", "most", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0665", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the birth date of the poker player with the lowest earnings?", "question_toks": ["What", "is", "the", "birth", "date", "of", "the", "poker", "player", "with", "the", "lowest", "earnings", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0666", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the birth date of the poker player with the lowest earnings.", "question_toks": ["Return", "the", "birth", "date", "of", "the", "poker", "player", "with", "the", "lowest", "earnings", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0667", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the money rank of the tallest poker player?", "question_toks": ["What", "is", "the", "money", "rank", "of", "the", "tallest", "poker", "player", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0668", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the money rank of the poker player with the greatest height.", "question_toks": ["Return", "the", "money", "rank", "of", "the", "poker", "player", "with", "the", "greatest", "height", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0669", "db_id": "poker_player", "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", "query_toks": ["SELECT", "avg", "(", "T2.Earnings", ")", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t2", ".", "earnings", ")", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "height", ">", "value"], "question": "What is the average earnings of poker players with height higher than 200?", "question_toks": ["What", "is", "the", "average", "earnings", "of", "poker", "players", "with", "height", "higher", "than", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0670", "db_id": "poker_player", "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", "query_toks": ["SELECT", "avg", "(", "T2.Earnings", ")", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t2", ".", "earnings", ")", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "height", ">", "value"], "question": "Give average earnings of poker players who are taller than 200.", "question_toks": ["Give", "average", "earnings", "of", "poker", "players", "who", "are", "taller", "than", "200", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0694", "db_id": "voter_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the contestant numbers and names of the contestants who had at least two votes?", "question_toks": ["What", "are", "the", "contestant", "numbers", "and", "names", "of", "the", "contestants", "who", "had", "at", "least", "two", "votes", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0886", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the high schooler who has the greatest number of friends?", "question_toks": ["What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0887", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the name of the high school student with the most friends.", "question_toks": ["Return", "the", "name", "of", "the", "high", "school", "student", "with", "the", "most", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0888", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of high schoolers who have at least 3 friends.", "question_toks": ["Show", "the", "names", "of", "high", "schoolers", "who", "have", "at", "least", "3", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0889", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of high schoolers who have 3 or more friends?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "3", "or", "more", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0892", "db_id": "network_1", "query": "select count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"kyle\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "How many friends does the high school student Kyle have?", "question_toks": ["How", "many", "friends", "does", "the", "high", "school", "student", "Kyle", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0893", "db_id": "network_1", "query": "select count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"kyle\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "Count the number of friends Kyle has.", "question_toks": ["Count", "the", "number", "of", "friends", "Kyle", "has", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_JOIN_1", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0906", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the high schooler who has the greatest number of likes?", "question_toks": ["What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "likes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0907", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Give the name of the student with the most likes.", "question_toks": ["Give", "the", "name", "of", "the", "student", "with", "the", "most", "likes", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0908", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of students who have at least 2 likes.", "question_toks": ["Show", "the", "names", "of", "students", "who", "have", "at", "least", "2", "likes", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0909", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of students who have 2 or more likes?", "question_toks": ["What", "are", "the", "names", "of", "students", "who", "have", "2", "or", "more", "likes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0910", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "value", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", "question_toks": ["Show", "the", "names", "of", "students", "who", "have", "a", "grade", "higher", "than", "5", "and", "have", "at", "least", "2", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 5.0, null]], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0912", "db_id": "network_1", "query": "select count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"kyle\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "How many likes does Kyle have?", "question_toks": ["How", "many", "likes", "does", "Kyle", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0913", "db_id": "network_1", "query": "select count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"kyle\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "Return the number of likes that the high schooler named Kyle has.", "question_toks": ["Return", "the", "number", "of", "likes", "that", "the", "high", "schooler", "named", "Kyle", "has", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0932", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "question_toks": ["Which", "professionals", "have", "done", "at", "least", "two", "treatments", "?", "List", "the", "professional", "'s", "id", ",", "role", ",", "and", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0934", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the breed with the most dogs?", "question_toks": ["What", "is", "the", "name", "of", "the", "breed", "with", "the", "most", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0935", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which breed do the most dogs have? Give me the breed name.", "question_toks": ["Which", "breed", "do", "the", "most", "dogs", "have", "?", "Give", "me", "the", "breed", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0938", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the description of the treatment type that costs the least money in total?", "question_toks": ["What", "is", "the", "description", "of", "the", "treatment", "type", "that", "costs", "the", "least", "money", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["asc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0939", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Give me the description of the treatment type whose total cost is the lowest.", "question_toks": ["Give", "me", "the", "description", "of", "the", "treatment", "type", "whose", "total", "cost", "is", "the", "lowest", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["asc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0942", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", "question_toks": ["Which", "professionals", "have", "done", "at", "least", "two", "types", "of", "treatments", "?", "List", "the", "professional", "id", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0948", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "List the cost of each treatment and the corresponding treatment type description.", "question_toks": ["List", "the", "cost", "of", "each", "treatment", "and", "the", "corresponding", "treatment", "type", "description", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 47, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0949", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the cost and treatment type description of each treatment?", "question_toks": ["What", "are", "the", "cost", "and", "treatment", "type", "description", "of", "each", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 47, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1032", "db_id": "real_estate_properties", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show the property type descriptions of properties belonging to that code.", "question_toks": ["Show", "the", "property", "type", "descriptions", "of", "properties", "belonging", "to", "that", "code", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0142", "db_id": "bike_1", "query": "select id from station where city = \"san francisco\" intersect select station_id from status group by station_id having avg(bikes_available) > 10", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "San", "Francisco", "''", "INTERSECT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10"], "query_toks_no_value": ["select", "id", "from", "station", "where", "city", "=", "value", "intersect", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value"], "question": "What are the ids of the stations in San Francisco that normally have more than 10 bikes available?", "question_toks": ["What", "are", "the", "ids", "of", "the", "stations", "in", "San", "Francisco", "that", "normally", "have", "more", "than", "10", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["HIDDEN_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3977", "db_id": "hospital_1", "query": "select avg(t3.cost) from physician as t1 join trained_in as t2 on t1.employeeid = t2.physician join procedures as t3 on t3.code = t2.treatment where t1.name = \"john wen\"", "query_toks": ["SELECT", "avg", "(", "T3.cost", ")", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''"], "query_toks_no_value": ["select", "avg", "(", "t3", ".", "cost", ")", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value"], "question": "Compute the mean price of procedures physician John Wen was trained in.", "question_toks": ["Compute", "the", "mean", "price", "of", "procedures", "physician", "John", "Wen", "was", "trained", "in", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 15, false], null]]}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"John Wen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_avg_0007", "db_id": "flight_company", "query": "select avg(velocity) from flight where pilot = \"thompson\"", "query_toks": ["SELECT", "avg", "(", "velocity", ")", "FROM", "flight", "WHERE", "pilot", "=", "``", "thompson", "''"], "query_toks_no_value": ["SELECT", "avg", "(", "velocity", ")", "FROM", "flight", "WHERE", "pilot", "=", "value"], "question": "What is the mean velocity of the pilot named 'Thompson'?", "question_toks": ["What", "is", "the", "mean", "velocity", "of", "the", "pilot", "named", "'", "Thompson", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"thompson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0008", "db_id": "concert_singer", "query": "select distinct country from singer where age > 20", "query_toks": ["SELECT", "DISTINCT", "country", "FROM", "singer", "WHERE", "age", ">", "20"], "query_toks_no_value": ["select", "distinct", "country", "from", "singer", "where", "age", ">", "value"], "question": "What are all distinct countries where singers above age 20 are from?", "question_toks": ["What", "are", "all", "distinct", "countries", "where", "singers", "above", "age", "20", "are", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0009", "db_id": "concert_singer", "query": "select distinct country from singer where age > 20", "query_toks": ["SELECT", "DISTINCT", "country", "FROM", "singer", "WHERE", "age", ">", "20"], "query_toks_no_value": ["select", "distinct", "country", "from", "singer", "where", "age", ">", "value"], "question": "What are the different countries with singers above age 20?", "question_toks": ["What", "are", "the", "different", "countries", "with", "singers", "above", "age", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0012", "db_id": "concert_singer", "query": "select song_name from singer where age > (select avg(age) from singer)", "query_toks": ["SELECT", "song_name", "FROM", "singer", "WHERE", "age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "singer", ")"], "query_toks_no_value": ["select", "song_name", "from", "singer", "where", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "singer", ")"], "question": "List all song names by singers above the average age.", "question_toks": ["List", "all", "song", "names", "by", "singers", "above", "the", "average", "age", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0013", "db_id": "concert_singer", "query": "select song_name from singer where age > (select avg(age) from singer)", "query_toks": ["SELECT", "song_name", "FROM", "singer", "WHERE", "age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "singer", ")"], "query_toks_no_value": ["select", "song_name", "from", "singer", "where", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "singer", ")"], "question": "What are all the song names by singers who are older than average?", "question_toks": ["What", "are", "all", "the", "song", "names", "by", "singers", "who", "are", "older", "than", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0045", "db_id": "pets_1", "query": "select count(*) from pets where weight > 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "pets", "WHERE", "weight", ">", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "pets", "where", "weight", ">", "value"], "question": "Find the number of pets whose weight is heavier than 10.", "question_toks": ["Find", "the", "number", "of", "pets", "whose", "weight", "is", "heavier", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0046", "db_id": "pets_1", "query": "select count(*) from pets where weight > 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "pets", "WHERE", "weight", ">", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "pets", "where", "weight", ">", "value"], "question": "How many pets have a greater weight than 10?", "question_toks": ["How", "many", "pets", "have", "a", "greater", "weight", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0069", "db_id": "pets_1", "query": "select petid , weight from pets where pet_age > 1", "query_toks": ["SELECT", "petid", ",", "weight", "FROM", "pets", "WHERE", "pet_age", ">", "1"], "query_toks_no_value": ["select", "petid", ",", "weight", "from", "pets", "where", "pet_age", ">", "value"], "question": "Find the id and weight of all pets whose age is older than 1.", "question_toks": ["Find", "the", "id", "and", "weight", "of", "all", "pets", "whose", "age", "is", "older", "than", "1", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0145", "db_id": "car_1", "query": "select count(*) from cars_data where year = 1980;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "YEAR", "=", "1980", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "cars_data", "where", "year", "=", "value"], "question": "how many cars were produced in 1980?", "question_toks": ["how", "many", "cars", "were", "produced", "in", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0196", "db_id": "flight_2", "query": "select count(*) from airlines where country = \"usa\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value"], "question": "Return the number of airlines in the USA.", "question_toks": ["Return", "the", "number", "of", "airlines", "in", "the", "USA", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0253", "db_id": "flight_2", "query": "select t1.flightno from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "What are flight numbers of flights arriving at City \"Aberdeen\"?", "question_toks": ["What", "are", "flight", "numbers", "of", "flights", "arriving", "at", "City", "``", "Aberdeen", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0327", "db_id": "cre_Doc_Template_Mgt", "query": "select version_number , template_type_code from templates where version_number > 5", "query_toks": ["SELECT", "version_number", ",", "template_type_code", "FROM", "Templates", "WHERE", "version_number", ">", "5"], "query_toks_no_value": ["select", "version_number", ",", "template_type_code", "from", "templates", "where", "version_number", ">", "value"], "question": "What is the version number and template type code for the template with version number later than 5?", "question_toks": ["What", "is", "the", "version", "number", "and", "template", "type", "code", "for", "the", "template", "with", "version", "number", "later", "than", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 5.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0328", "db_id": "cre_Doc_Template_Mgt", "query": "select version_number , template_type_code from templates where version_number > 5", "query_toks": ["SELECT", "version_number", ",", "template_type_code", "FROM", "Templates", "WHERE", "version_number", ">", "5"], "query_toks_no_value": ["select", "version_number", ",", "template_type_code", "from", "templates", "where", "version_number", ">", "value"], "question": "Return the version numbers and template type codes of templates with a version number greater than 5.", "question_toks": ["Return", "the", "version", "numbers", "and", "template", "type", "codes", "of", "templates", "with", "a", "version", "number", "greater", "than", "5", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 5.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0416", "db_id": "museum_visit", "query": "select avg(num_of_staff) from museum where open_year < 2009", "query_toks": ["SELECT", "avg", "(", "num_of_staff", ")", "FROM", "museum", "WHERE", "open_year", "<", "2009"], "query_toks_no_value": ["select", "avg", "(", "num_of_staff", ")", "from", "museum", "where", "open_year", "<", "value"], "question": "Find the average number of staff working for the museums that were open before 2009.", "question_toks": ["Find", "the", "average", "number", "of", "staff", "working", "for", "the", "museums", "that", "were", "open", "before", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0433", "db_id": "wta_1", "query": "select first_name , birth_date from players where country_code = 'usa'", "query_toks": ["SELECT", "first_name", ",", "birth_date", "FROM", "players", "WHERE", "country_code", "=", "'USA", "'"], "query_toks_no_value": ["select", "first_name", ",", "birth_date", "from", "players", "where", "country_code", "=", "value"], "question": "List the first name and birth date of all players from the country with code USA.", "question_toks": ["List", "the", "first", "name", "and", "birth", "date", "of", "all", "players", "from", "the", "country", "with", "code", "USA", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0465", "db_id": "wta_1", "query": "select winner_name from matches where tourney_name = 'australian open' order by winner_rank_points desc limit 1", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "tourney_name", "=", "'Australian", "Open", "'", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "tourney_name", "=", "value", "order", "by", "winner_rank_points", "desc", "limit", "value"], "question": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.", "question_toks": ["Find", "the", "name", "of", "the", "winner", "who", "has", "the", "highest", "rank", "points", "and", "participated", "in", "the", "Australian", "Open", "tourney", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Australian Open\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 36, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0466", "db_id": "wta_1", "query": "select winner_name from matches where tourney_name = 'australian open' order by winner_rank_points desc limit 1", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "tourney_name", "=", "'Australian", "Open", "'", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "tourney_name", "=", "value", "order", "by", "winner_rank_points", "desc", "limit", "value"], "question": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?", "question_toks": ["What", "is", "the", "name", "of", "the", "winner", "with", "the", "most", "rank", "points", "who", "participated", "in", "the", "Australian", "Open", "tournament", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Australian Open\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 36, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0511", "db_id": "student_transcripts_tracking", "query": "select course_description from courses where course_name = 'math'", "query_toks": ["SELECT", "course_description", "FROM", "Courses", "WHERE", "course_name", "=", "'math", "'"], "query_toks_no_value": ["select", "course_description", "from", "courses", "where", "course_name", "=", "value"], "question": "How is the math course described?", "question_toks": ["How", "is", "the", "math", "course", "described", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"math\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0512", "db_id": "student_transcripts_tracking", "query": "select course_description from courses where course_name = 'math'", "query_toks": ["SELECT", "course_description", "FROM", "Courses", "WHERE", "course_name", "=", "'math", "'"], "query_toks_no_value": ["select", "course_description", "from", "courses", "where", "course_name", "=", "value"], "question": "What are the descriptions for all the math courses?", "question_toks": ["What", "are", "the", "descriptions", "for", "all", "the", "math", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"math\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0587", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\";", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", ";"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value"], "question": "List all cartoon directed by \"Ben Jones\".", "question_toks": ["List", "all", "cartoon", "directed", "by", "``", "Ben", "Jones", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0588", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\";", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", ";"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value"], "question": "What are the names of all cartoons directed by Ben Jones?", "question_toks": ["What", "are", "the", "names", "of", "all", "cartoons", "directed", "by", "Ben", "Jones", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0589", "db_id": "tvshow", "query": "select count(*) from cartoon where written_by = \"joseph kuhr\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Cartoon", "WHERE", "Written_by", "=", "``", "Joseph", "Kuhr", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "cartoon", "where", "written_by", "=", "value"], "question": "How many cartoons were written by \"Joseph Kuhr\"?", "question_toks": ["How", "many", "cartoons", "were", "written", "by", "``", "Joseph", "Kuhr", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"Joseph Kuhr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0657", "db_id": "poker_player", "query": "select max(final_table_made) from poker_player where earnings < 200000", "query_toks": ["SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player", "WHERE", "Earnings", "<", "200000"], "query_toks_no_value": ["select", "max", "(", "final_table_made", ")", "from", "poker_player", "where", "earnings", "<", "value"], "question": "What is the maximum number of final tables made among poker players with earnings less than 200000?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "final", "tables", "made", "among", "poker", "players", "with", "earnings", "less", "than", "200000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], 200000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0658", "db_id": "poker_player", "query": "select max(final_table_made) from poker_player where earnings < 200000", "query_toks": ["SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player", "WHERE", "Earnings", "<", "200000"], "query_toks_no_value": ["select", "max", "(", "final_table_made", ")", "from", "poker_player", "where", "earnings", "<", "value"], "question": "Return the maximum final tables made across all poker players who have earnings below 200000.", "question_toks": ["Return", "the", "maximum", "final", "tables", "made", "across", "all", "poker", "players", "who", "have", "earnings", "below", "200000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], 200000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0692", "db_id": "voter_1", "query": "select contestant_name from contestants where contestant_name != 'jessie alloway'", "query_toks": ["SELECT", "contestant_name", "FROM", "contestants", "WHERE", "contestant_name", "!", "=", "'Jessie", "Alloway", "'"], "query_toks_no_value": ["select", "contestant_name", "from", "contestants", "where", "contestant_name", "!", "=", "value"], "question": "What are the names of the contestants whose names are not 'Jessie Alloway'", "question_toks": ["What", "are", "the", "names", "of", "the", "contestants", "whose", "names", "are", "not", "'Jessie", "Alloway", "'"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"Jessie Alloway\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0697", "db_id": "voter_1", "query": "select count(*) from contestants where contestant_number not in ( select contestant_number from votes )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "contestants", "WHERE", "contestant_number", "NOT", "IN", "(", "SELECT", "contestant_number", "FROM", "votes", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "contestants", "where", "contestant_number", "not", "in", "(", "select", "contestant_number", "from", "votes", ")"], "question": "How many contestants did not get voted?", "question_toks": ["How", "many", "contestants", "did", "not", "get", "voted", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0715", "db_id": "world_1", "query": "select population , lifeexpectancy from country where name = \"brazil\"", "query_toks": ["SELECT", "Population", ",", "LifeExpectancy", "FROM", "country", "WHERE", "Name", "=", "``", "Brazil", "''"], "query_toks_no_value": ["select", "population", ",", "lifeexpectancy", "from", "country", "where", "name", "=", "value"], "question": "Give me Brazil\u2019s population and life expectancies.", "question_toks": ["Give", "me", "Brazil\u2019s", "population", "and", "life", "expectancies", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Brazil\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0869", "db_id": "network_1", "query": "select grade from highschooler where name = \"kyle\"", "query_toks": ["SELECT", "grade", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "grade", "from", "highschooler", "where", "name", "=", "value"], "question": "Return the grade for the high schooler named Kyle.", "question_toks": ["Return", "the", "grade", "for", "the", "high", "schooler", "named", "Kyle", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0870", "db_id": "network_1", "query": "select name from highschooler where grade = 10", "query_toks": ["SELECT", "name", "FROM", "Highschooler", "WHERE", "grade", "=", "10"], "query_toks_no_value": ["select", "name", "from", "highschooler", "where", "grade", "=", "value"], "question": "Show the names of all high schoolers in grade 10.", "question_toks": ["Show", "the", "names", "of", "all", "high", "schoolers", "in", "grade", "10", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0871", "db_id": "network_1", "query": "select name from highschooler where grade = 10", "query_toks": ["SELECT", "name", "FROM", "Highschooler", "WHERE", "grade", "=", "10"], "query_toks_no_value": ["select", "name", "from", "highschooler", "where", "grade", "=", "value"], "question": "What are the names of all high schoolers in grade 10?", "question_toks": ["What", "are", "the", "names", "of", "all", "high", "schoolers", "in", "grade", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0921", "db_id": "dog_kennels", "query": "select avg(age) from dogs where dog_id in ( select dog_id from treatments )", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "Dogs", "WHERE", "dog_id", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "dogs", "where", "dog_id", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "Find the average age of the dogs who went through treatments.", "question_toks": ["Find", "the", "average", "age", "of", "the", "dogs", "who", "went", "through", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0954", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["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", "value", ")"], "question": "List the names of the dogs of the rarest breed and the treatment dates of them.", "question_toks": ["List", "the", "names", "of", "the", "dogs", "of", "the", "rarest", "breed", "and", "the", "treatment", "dates", "of", "them", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 48, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0960", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "List the last name of the owner owning the youngest dog.", "question_toks": ["List", "the", "last", "name", "of", "the", "owner", "owning", "the", "youngest", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1020", "db_id": "singer", "query": "select distinct t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id where t2.sales > 300000", "query_toks": ["SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value"], "question": "Show distinct names of singers that have songs with sales more than 300000.", "question_toks": ["Show", "distinct", "names", "of", "singers", "that", "have", "songs", "with", "sales", "more", "than", "300000", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 300000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1021", "db_id": "singer", "query": "select distinct t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id where t2.sales > 300000", "query_toks": ["SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value"], "question": "what are the different names of the singers that have sales more than 300000?", "question_toks": ["what", "are", "the", "different", "names", "of", "the", "singers", "that", "have", "sales", "more", "than", "300000", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 300000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0024", "db_id": "farm", "query": "select avg(working_horses) from farm where total_horses > 5000", "query_toks": ["SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm", "WHERE", "Total_Horses", ">", "5000"], "query_toks_no_value": ["select", "avg", "(", "working_horses", ")", "from", "farm", "where", "total_horses", ">", "value"], "question": "What is the average number of working horses of farms with more than 5000 total number of horses?", "question_toks": ["What", "is", "the", "average", "number", "of", "working", "horses", "of", "farms", "with", "more", "than", "5000", "total", "number", "of", "horses", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 5000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0025", "db_id": "farm", "query": "select avg(working_horses) from farm where total_horses > 5000", "query_toks": ["SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm", "WHERE", "Total_Horses", ">", "5000"], "query_toks_no_value": ["select", "avg", "(", "working_horses", ")", "from", "farm", "where", "total_horses", ">", "value"], "question": "Give the average number of working horses on farms with more than 5000 total horses.", "question_toks": ["Give", "the", "average", "number", "of", "working", "horses", "on", "farms", "with", "more", "than", "5000", "total", "horses", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 5000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0284", "db_id": "twitter_1", "query": "select name , email from user_profiles where followers > 1000", "query_toks": ["SELECT", "name", ",", "email", "FROM", "user_profiles", "WHERE", "followers", ">", "1000"], "query_toks_no_value": ["select", "name", ",", "email", "from", "user_profiles", "where", "followers", ">", "value"], "question": "Find the name and email of the users who have more than 1000 followers.", "question_toks": ["Find", "the", "name", "and", "email", "of", "the", "users", "who", "have", "more", "than", "1000", "followers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0307", "db_id": "product_catalog", "query": "select catalog_level_name , catalog_level_number from catalog_structure where catalog_level_number between 5 and 10", "query_toks": ["SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure", "WHERE", "catalog_level_number", "BETWEEN", "5", "AND", "10"], "query_toks_no_value": ["select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure", "where", "catalog_level_number", "between", "value", "and", "value"], "question": "Find the name and level of catalog structure with level between 5 and 10.", "question_toks": ["Find", "the", "name", "and", "level", "of", "catalog", "structure", "with", "level", "between", "5", "and", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 1, [0, [0, 9, false], null], 5.0, 10.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0308", "db_id": "product_catalog", "query": "select catalog_level_name , catalog_level_number from catalog_structure where catalog_level_number between 5 and 10", "query_toks": ["SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure", "WHERE", "catalog_level_number", "BETWEEN", "5", "AND", "10"], "query_toks_no_value": ["select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure", "where", "catalog_level_number", "between", "value", "and", "value"], "question": "What are the name and level of catalog structure with level number between 5 and 10", "question_toks": ["What", "are", "the", "name", "and", "level", "of", "catalog", "structure", "with", "level", "number", "between", "5", "and", "10"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 1, [0, [0, 9, false], null], 5.0, 10.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0347", "db_id": "flight_1", "query": "select aid from aircraft where distance > 1000", "query_toks": ["SELECT", "aid", "FROM", "Aircraft", "WHERE", "distance", ">", "1000"], "query_toks_no_value": ["select", "aid", "from", "aircraft", "where", "distance", ">", "value"], "question": "Show ids for all aircrafts with more than 1000 distance.", "question_toks": ["Show", "ids", "for", "all", "aircrafts", "with", "more", "than", "1000", "distance", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0348", "db_id": "flight_1", "query": "select aid from aircraft where distance > 1000", "query_toks": ["SELECT", "aid", "FROM", "Aircraft", "WHERE", "distance", ">", "1000"], "query_toks_no_value": ["select", "aid", "from", "aircraft", "where", "distance", ">", "value"], "question": "What are the ids of all aircrafts that can cover a distance of more than 1000?", "question_toks": ["What", "are", "the", "ids", "of", "all", "aircrafts", "that", "can", "cover", "a", "distance", "of", "more", "than", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0350", "db_id": "flight_1", "query": "select count(*) from aircraft where distance between 1000 and 5000", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Aircraft", "WHERE", "distance", "BETWEEN", "1000", "AND", "5000"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "aircraft", "where", "distance", "between", "value", "and", "value"], "question": "What is the count of aircrafts that have a distance between 1000 and 5000?", "question_toks": ["What", "is", "the", "count", "of", "aircrafts", "that", "have", "a", "distance", "between", "1000", "and", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 11, false], null], 1000.0, 5000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0380", "db_id": "flight_1", "query": "select eid , salary from employee where name = 'mark young'", "query_toks": ["SELECT", "eid", ",", "salary", "FROM", "Employee", "WHERE", "name", "=", "'Mark", "Young", "'"], "query_toks_no_value": ["select", "eid", ",", "salary", "from", "employee", "where", "name", "=", "value"], "question": "What is the id and salary of the employee named Mark Young?", "question_toks": ["What", "is", "the", "id", "and", "salary", "of", "the", "employee", "named", "Mark", "Young", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Mark Young\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0447", "db_id": "allergy_1", "query": "select distinct allergy from allergy_type where allergytype = \"food\"", "query_toks": ["SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "food", "''"], "query_toks_no_value": ["select", "distinct", "allergy", "from", "allergy_type", "where", "allergytype", "=", "value"], "question": "Show all allergies with type food.", "question_toks": ["Show", "all", "allergies", "with", "type", "food", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0448", "db_id": "allergy_1", "query": "select distinct allergy from allergy_type where allergytype = \"food\"", "query_toks": ["SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "food", "''"], "query_toks_no_value": ["select", "distinct", "allergy", "from", "allergy_type", "where", "allergytype", "=", "value"], "question": "What are all the different food allergies?", "question_toks": ["What", "are", "all", "the", "different", "food", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0563", "db_id": "store_1", "query": "select billing_state , count(*) from invoices where billing_country = \"usa\" group by billing_state;", "query_toks": ["SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", ";"], "query_toks_no_value": ["select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state"], "question": "List the number of invoices from the US, grouped by state.", "question_toks": ["List", "the", "number", "of", "invoices", "from", "the", "US", ",", "grouped", "by", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 44, false], null], "\"USA\"", null]], "groupBy": [[0, 43, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0569", "db_id": "store_1", "query": "select t1.title from albums as t1 join artists as t2 on t1.artist_id = t2.id where t2.name = \"aerosmith\";", "query_toks": ["SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Aerosmith", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "List Aerosmith's albums.", "question_toks": ["List", "Aerosmith", "'s", "albums", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Aerosmith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0652", "db_id": "journal_committee", "query": "select name from editor where age > 25", "query_toks": ["SELECT", "Name", "FROM", "editor", "WHERE", "Age", ">", "25"], "query_toks_no_value": ["select", "name", "from", "editor", "where", "age", ">", "value"], "question": "List the names of editors who are older than 25.", "question_toks": ["List", "the", "names", "of", "editors", "who", "are", "older", "than", "25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0883", "db_id": "chinook_1", "query": "select birthdate from employee where city = \"edmonton\"", "query_toks": ["SELECT", "BirthDate", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Edmonton", "''"], "query_toks_no_value": ["select", "birthdate", "from", "employee", "where", "city", "=", "value"], "question": "What are the birth dates of employees living in Edmonton?", "question_toks": ["What", "are", "the", "birth", "dates", "of", "employees", "living", "in", "Edmonton", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Edmonton\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0941", "db_id": "medicine_enzyme_interaction", "query": "select product , chromosome , porphyria from enzyme where location = 'cytosol'", "query_toks": ["SELECT", "product", ",", "chromosome", ",", "porphyria", "FROM", "enzyme", "WHERE", "LOCATION", "=", "'Cytosol", "'"], "query_toks_no_value": ["select", "product", ",", "chromosome", ",", "porphyria", "from", "enzyme", "where", "location", "=", "value"], "question": "What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?", "question_toks": ["What", "is", "the", "product", ",", "chromosome", "and", "porphyria", "related", "to", "the", "enzymes", "which", "take", "effect", "at", "the", "location", "'Cytosol", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Cytosol\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1023", "db_id": "phone_1", "query": "select model_name from chip_model where launch_year between 2002 and 2004;", "query_toks": ["SELECT", "Model_name", "FROM", "chip_model", "WHERE", "Launch_year", "BETWEEN", "2002", "AND", "2004", ";"], "query_toks_no_value": ["select", "model_name", "from", "chip_model", "where", "launch_year", "between", "value", "and", "value"], "question": "the names of models that launched between 2002 and 2004.", "question_toks": ["the", "names", "of", "models", "that", "launched", "between", "2002", "and", "2004", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 1, [0, [0, 2, false], null], 2002.0, 2004.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}] \ No newline at end of file diff --git a/all/tables_all.json b/all/tables_all.json new file mode 100644 index 0000000000000000000000000000000000000000..caab54b53696e7786f48f383ade417a29987d1eb --- /dev/null +++ b/all/tables_all.json @@ -0,0 +1 @@ +[{"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "home games"], [0, "average attendance"], [0, "total attendance"], [0, "capacity percentage"], [1, "stadium id"], [1, "id"], [1, "season"], [1, "date"], [1, "home team"], [1, "away team"], [1, "score"], [1, "competition"], [2, "game id"], [2, "id"], [2, "player"], [2, "injury"], [2, "number of matches"], [2, "source"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "home_games"], [0, "average_attendance"], [0, "total_attendance"], [0, "capacity_percentage"], [1, "stadium_id"], [1, "id"], [1, "season"], [1, "date"], [1, "home_team"], [1, "away_team"], [1, "score"], [1, "competition"], [2, "game_id"], [2, "id"], [2, "player"], [2, "injury"], [2, "number_of_matches"], [2, "source"]], "column_types": ["text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text"], "db_id": "game_injury", "foreign_keys": [[7, 1], [15, 8]], "primary_keys": [1, 8, 16], "table_names": ["stadium", "game", "injury accident"], "table_names_original": ["stadium", "game", "injury_accident"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "latitude"], [0, "longitude"], [0, "dock count"], [0, "city"], [0, "installation date"], [1, "station id"], [1, "bikes available"], [1, "docks available"], [1, "time"], [2, "id"], [2, "duration"], [2, "start date"], [2, "start station name"], [2, "start station id"], [2, "end date"], [2, "end station name"], [2, "end station id"], [2, "bike id"], [2, "subscription type"], [2, "zip code"], [3, "date"], [3, "max temperature f"], [3, "mean temperature f"], [3, "min temperature f"], [3, "max dew point f"], [3, "mean dew point f"], [3, "min dew point f"], [3, "max humidity"], [3, "mean humidity"], [3, "min humidity"], [3, "max sea level pressure inches"], [3, "mean sea level pressure inches"], [3, "min sea level pressure inches"], [3, "max visibility miles"], [3, "mean visibility miles"], [3, "min visibility miles"], [3, "max wind speed mph"], [3, "mean wind speed mph"], [3, "max gust speed mph"], [3, "precipitation inches"], [3, "cloud cover"], [3, "events"], [3, "wind dir degrees"], [3, "zip code"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "lat"], [0, "long"], [0, "dock_count"], [0, "city"], [0, "installation_date"], [1, "station_id"], [1, "bikes_available"], [1, "docks_available"], [1, "time"], [2, "id"], [2, "duration"], [2, "start_date"], [2, "start_station_name"], [2, "start_station_id"], [2, "end_date"], [2, "end_station_name"], [2, "end_station_id"], [2, "bike_id"], [2, "subscription_type"], [2, "zip_code"], [3, "date"], [3, "max_temperature_f"], [3, "mean_temperature_f"], [3, "min_temperature_f"], [3, "max_dew_point_f"], [3, "mean_dew_point_f"], [3, "min_dew_point_f"], [3, "max_humidity"], [3, "mean_humidity"], [3, "min_humidity"], [3, "max_sea_level_pressure_inches"], [3, "mean_sea_level_pressure_inches"], [3, "min_sea_level_pressure_inches"], [3, "max_visibility_miles"], [3, "mean_visibility_miles"], [3, "min_visibility_miles"], [3, "max_wind_speed_mph"], [3, "mean_wind_speed_mph"], [3, "max_gust_speed_mph"], [3, "precipitation_inches"], [3, "cloud_cover"], [3, "events"], [3, "wind_dir_degrees"], [3, "zip_code"]], "column_types": ["text", "number", "text", "number", "number", "number", "text", "text", "number", "number", "number", "text", "number", "number", "text", "text", "number", "text", "text", "number", "number", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number"], "db_id": "bike_1", "foreign_keys": [[8, 1]], "primary_keys": [1, 12], "table_names": ["station", "status", "trip", "weather"], "table_names_original": ["station", "status", "trip", "weather"]}, {"column_names": [[-1, "*"], [0, "address type code"], [0, "address type description"], [1, "detention type code"], [1, "detention type description"], [2, "incident type code"], [2, "incident type description"], [3, "address id"], [3, "line 1"], [3, "line 2"], [3, "line 3"], [3, "city"], [3, "zip postcode"], [3, "state province county"], [3, "country"], [3, "other address details"], [4, "student id"], [4, "address id"], [4, "first name"], [4, "middle name"], [4, "last name"], [4, "cell mobile number"], [4, "email address"], [4, "date first rental"], [4, "date left university"], [4, "other student details"], [5, "teacher id"], [5, "address id"], [5, "first name"], [5, "middle name"], [5, "last name"], [5, "gender"], [5, "cell mobile number"], [5, "email address"], [5, "other details"], [6, "notes id"], [6, "student id"], [6, "teacher id"], [6, "date of notes"], [6, "text of notes"], [6, "other details"], [7, "incident id"], [7, "incident type code"], [7, "student id"], [7, "date incident start"], [7, "date incident end"], [7, "incident summary"], [7, "recommendations"], [7, "other details"], [8, "detention id"], [8, "detention type code"], [8, "teacher id"], [8, "datetime detention start"], [8, "datetime detention end"], [8, "detention summary"], [8, "other details"], [9, "student id"], [9, "address id"], [9, "date address from"], [9, "date address to"], [9, "monthly rental"], [9, "other details"], [10, "student id"], [10, "detention id"], [10, "incident id"]], "column_names_original": [[-1, "*"], [0, "address_type_code"], [0, "address_type_description"], [1, "detention_type_code"], [1, "detention_type_description"], [2, "incident_type_code"], [2, "incident_type_description"], [3, "address_id"], [3, "line_1"], [3, "line_2"], [3, "line_3"], [3, "city"], [3, "zip_postcode"], [3, "state_province_county"], [3, "country"], [3, "other_address_details"], [4, "student_id"], [4, "address_id"], [4, "first_name"], [4, "middle_name"], [4, "last_name"], [4, "cell_mobile_number"], [4, "email_address"], [4, "date_first_rental"], [4, "date_left_university"], [4, "other_student_details"], [5, "teacher_id"], [5, "address_id"], [5, "first_name"], [5, "middle_name"], [5, "last_name"], [5, "gender"], [5, "cell_mobile_number"], [5, "email_address"], [5, "other_details"], [6, "notes_id"], [6, "student_id"], [6, "teacher_id"], [6, "date_of_notes"], [6, "text_of_notes"], [6, "other_details"], [7, "incident_id"], [7, "incident_type_code"], [7, "student_id"], [7, "date_incident_start"], [7, "date_incident_end"], [7, "incident_summary"], [7, "recommendations"], [7, "other_details"], [8, "detention_id"], [8, "detention_type_code"], [8, "teacher_id"], [8, "datetime_detention_start"], [8, "datetime_detention_end"], [8, "detention_summary"], [8, "other_details"], [9, "student_id"], [9, "address_id"], [9, "date_address_from"], [9, "date_address_to"], [9, "monthly_rental"], [9, "other_details"], [10, "student_id"], [10, "detention_id"], [10, "incident_id"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "text", "text", "text", "text", "text", "text", "text", "number", "number", "number", "time", "text", "text", "number", "text", "number", "time", "time", "text", "text", "text", "number", "text", "number", "time", "time", "text", "text", "number", "number", "time", "time", "number", "text", "number", "number", "number"], "db_id": "behavior_monitoring", "foreign_keys": [[17, 7], [27, 7], [37, 26], [36, 16], [43, 16], [42, 5], [51, 26], [50, 3], [56, 16], [57, 7], [62, 16], [63, 49], [64, 41]], "primary_keys": [1, 3, 5, 7, 16, 26, 41, 49], "table_names": ["reference address types", "reference detention type", "reference incident type", "addresses", "students", "teachers", "assessment notes", "behavior incident", "detention", "student addresses", "students in detention"], "table_names_original": ["ref_address_types", "ref_detention_type", "ref_incident_type", "addresses", "students", "teachers", "assessment_notes", "behavior_incident", "detention", "student_addresses", "students_in_detention"]}, {"column_names": [[-1, "*"], [0, "player id"], [0, "first name"], [0, "last name"], [0, "hand"], [0, "birth date"], [0, "country code"], [1, "best of"], [1, "draw size"], [1, "loser age"], [1, "loser entry"], [1, "loser hand"], [1, "loser ht"], [1, "loser id"], [1, "loser ioc"], [1, "loser name"], [1, "loser rank"], [1, "loser rank points"], [1, "loser seed"], [1, "match num"], [1, "minutes"], [1, "round"], [1, "score"], [1, "surface"], [1, "tourney date"], [1, "tourney id"], [1, "tourney level"], [1, "tourney name"], [1, "winner age"], [1, "winner entry"], [1, "winner hand"], [1, "winner ht"], [1, "winner id"], [1, "winner ioc"], [1, "winner name"], [1, "winner rank"], [1, "winner rank points"], [1, "winner seed"], [1, "year"], [2, "ranking date"], [2, "ranking"], [2, "player id"], [2, "ranking points"], [2, "tours"]], "column_names_original": [[-1, "*"], [0, "player_id"], [0, "first_name"], [0, "last_name"], [0, "hand"], [0, "birth_date"], [0, "country_code"], [1, "best_of"], [1, "draw_size"], [1, "loser_age"], [1, "loser_entry"], [1, "loser_hand"], [1, "loser_ht"], [1, "loser_id"], [1, "loser_ioc"], [1, "loser_name"], [1, "loser_rank"], [1, "loser_rank_points"], [1, "loser_seed"], [1, "match_num"], [1, "minutes"], [1, "round"], [1, "score"], [1, "surface"], [1, "tourney_date"], [1, "tourney_id"], [1, "tourney_level"], [1, "tourney_name"], [1, "winner_age"], [1, "winner_entry"], [1, "winner_hand"], [1, "winner_ht"], [1, "winner_id"], [1, "winner_ioc"], [1, "winner_name"], [1, "winner_rank"], [1, "winner_rank_points"], [1, "winner_seed"], [1, "year"], [2, "ranking_date"], [2, "ranking"], [2, "player_id"], [2, "ranking_points"], [2, "tours"]], "column_types": ["text", "number", "text", "text", "text", "time", "text", "number", "number", "number", "text", "text", "number", "number", "text", "text", "number", "number", "number", "number", "number", "text", "text", "text", "time", "text", "text", "text", "number", "text", "text", "number", "number", "text", "text", "number", "number", "number", "number", "time", "number", "number", "number", "number"], "db_id": "wta_1", "foreign_keys": [[32, 1], [13, 1], [41, 1]], "primary_keys": [1], "table_names": ["players", "matches", "rankings"], "table_names_original": ["players", "matches", "rankings"]}, {"column_names": [[-1, "*"], [0, "region id"], [0, "region name"], [0, "date"], [0, "label"], [0, "format"], [0, "catalogue"], [1, "party id"], [1, "minister"], [1, "took office"], [1, "left office"], [1, "region id"], [1, "party name"], [2, "member id"], [2, "member name"], [2, "party id"], [2, "in office"], [3, "event id"], [3, "event name"], [3, "party id"], [3, "member in charge id"]], "column_names_original": [[-1, "*"], [0, "region_id"], [0, "region_name"], [0, "date"], [0, "label"], [0, "format"], [0, "catalogue"], [1, "party_id"], [1, "minister"], [1, "took_office"], [1, "left_office"], [1, "region_id"], [1, "party_name"], [2, "member_id"], [2, "member_name"], [2, "party_id"], [2, "in_office"], [3, "event_id"], [3, "event_name"], [3, "party_id"], [3, "member_in_charge_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "number", "text", "text", "text", "number", "text", "number", "number"], "db_id": "party_people", "foreign_keys": [[11, 1], [15, 7], [20, 13], [19, 7]], "primary_keys": [1, 7, 13, 17], "table_names": ["region", "party", "member", "party events"], "table_names_original": ["region", "party", "member", "party_events"]}, {"column_names": [[-1, "*"], [0, "stadium id"], [0, "location"], [0, "name"], [0, "capacity"], [0, "highest"], [0, "lowest"], [0, "average"], [1, "singer id"], [1, "name"], [1, "country"], [1, "song name"], [1, "song release year"], [1, "age"], [1, "is male"], [2, "concert id"], [2, "concert name"], [2, "theme"], [2, "stadium id"], [2, "year"], [3, "concert id"], [3, "singer id"]], "column_names_original": [[-1, "*"], [0, "stadium_id"], [0, "location"], [0, "name"], [0, "capacity"], [0, "highest"], [0, "lowest"], [0, "average"], [1, "singer_id"], [1, "name"], [1, "country"], [1, "song_name"], [1, "song_release_year"], [1, "age"], [1, "is_male"], [2, "concert_id"], [2, "concert_name"], [2, "theme"], [2, "stadium_id"], [2, "year"], [3, "concert_id"], [3, "singer_id"]], "column_types": ["text", "number", "text", "text", "number", "number", "number", "number", "number", "text", "text", "text", "text", "number", "others", "number", "text", "text", "text", "text", "number", "text"], "db_id": "concert_singer", "foreign_keys": [[18, 1], [21, 8], [20, 15]], "primary_keys": [1, 8, 15, 20], "table_names": ["stadium", "singer", "concert", "singer in concert"], "table_names_original": ["stadium", "singer", "concert", "singer_in_concert"]}, {"column_names": [[-1, "*"], [0, "building id"], [0, "building short name"], [0, "building full name"], [0, "building description"], [0, "building address"], [0, "building manager"], [0, "building phone"], [1, "apartment id"], [1, "building id"], [1, "apartment type code"], [1, "apartment number"], [1, "bathroom count"], [1, "bedroom count"], [1, "room count"], [2, "apartment id"], [2, "facility code"], [3, "guest id"], [3, "gender code"], [3, "guest first name"], [3, "guest last name"], [3, "date of birth"], [4, "apartment booking id"], [4, "apartment id"], [4, "guest id"], [4, "booking status code"], [4, "booking start date"], [4, "booking end date"], [5, "apartment id"], [5, "apartment booking id"], [5, "status date"], [5, "available yes or no"]], "column_names_original": [[-1, "*"], [0, "building_id"], [0, "building_short_name"], [0, "building_full_name"], [0, "building_description"], [0, "building_address"], [0, "building_manager"], [0, "building_phone"], [1, "apt_id"], [1, "building_id"], [1, "apt_type_code"], [1, "apt_number"], [1, "bathroom_count"], [1, "bedroom_count"], [1, "room_count"], [2, "apt_id"], [2, "facility_code"], [3, "guest_id"], [3, "gender_code"], [3, "guest_first_name"], [3, "guest_last_name"], [3, "date_of_birth"], [4, "apt_booking_id"], [4, "apt_id"], [4, "guest_id"], [4, "booking_status_code"], [4, "booking_start_date"], [4, "booking_end_date"], [5, "apt_id"], [5, "apt_booking_id"], [5, "status_date"], [5, "available_yn"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "number", "number", "text", "number", "text", "number", "text", "text", "text", "time", "number", "number", "number", "text", "time", "time", "number", "number", "time", "others"], "db_id": "apartment_rentals", "foreign_keys": [[9, 1], [15, 8], [24, 17], [23, 8], [29, 22], [28, 8]], "primary_keys": [1, 8, 15, 17, 22, 30], "table_names": ["apartment buildings", "apartments", "apartment facilities", "guests", "apartment bookings", "view unit status"], "table_names_original": ["apartment_buildings", "apartments", "apartment_facilities", "guests", "apartment_bookings", "view_unit_status"]}, {"column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "line 3"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [0, "other address details"], [1, "course id"], [1, "course name"], [1, "course description"], [1, "other details"], [2, "department id"], [2, "department name"], [2, "department description"], [2, "other details"], [3, "degree program id"], [3, "department id"], [3, "degree summary name"], [3, "degree summary description"], [3, "other details"], [4, "section id"], [4, "course id"], [4, "section name"], [4, "section description"], [4, "other details"], [5, "semester id"], [5, "semester name"], [5, "semester description"], [5, "other details"], [6, "student id"], [6, "current address id"], [6, "permanent address id"], [6, "first name"], [6, "middle name"], [6, "last name"], [6, "cell mobile number"], [6, "email address"], [6, "ssn"], [6, "date first registered"], [6, "date left"], [6, "other student details"], [7, "student enrolment id"], [7, "degree program id"], [7, "semester id"], [7, "student id"], [7, "other details"], [8, "student course id"], [8, "course id"], [8, "student enrolment id"], [9, "transcript id"], [9, "transcript date"], [9, "other details"], [10, "student course id"], [10, "transcript id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "line_3"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [0, "other_address_details"], [1, "course_id"], [1, "course_name"], [1, "course_description"], [1, "other_details"], [2, "department_id"], [2, "department_name"], [2, "department_description"], [2, "other_details"], [3, "degree_program_id"], [3, "department_id"], [3, "degree_summary_name"], [3, "degree_summary_description"], [3, "other_details"], [4, "section_id"], [4, "course_id"], [4, "section_name"], [4, "section_description"], [4, "other_details"], [5, "semester_id"], [5, "semester_name"], [5, "semester_description"], [5, "other_details"], [6, "student_id"], [6, "current_address_id"], [6, "permanent_address_id"], [6, "first_name"], [6, "middle_name"], [6, "last_name"], [6, "cell_mobile_number"], [6, "email_address"], [6, "ssn"], [6, "date_first_registered"], [6, "date_left"], [6, "other_student_details"], [7, "student_enrolment_id"], [7, "degree_program_id"], [7, "semester_id"], [7, "student_id"], [7, "other_details"], [8, "student_course_id"], [8, "course_id"], [8, "student_enrolment_id"], [9, "transcript_id"], [9, "transcript_date"], [9, "other_details"], [10, "student_course_id"], [10, "transcript_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "number", "text", "number", "number", "number", "number", "time", "text", "number", "number"], "db_id": "student_transcripts_tracking", "foreign_keys": [[19, 14], [24, 10], [34, 1], [33, 1], [47, 32], [46, 28], [45, 18], [51, 44], [50, 10], [56, 52], [55, 49]], "primary_keys": [1, 10, 14, 18, 23, 28, 32, 44, 49, 52], "table_names": ["addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents"], "table_names_original": ["addresses", "courses", "departments", "degree_programs", "sections", "semesters", "students", "student_enrolment", "student_enrolment_courses", "transcripts", "transcript_contents"]}, {"column_names": [[-1, "*"], [0, "flight number"], [0, "origin"], [0, "destination"], [0, "distance"], [0, "departure date"], [0, "arrival date"], [0, "price"], [0, "airline id"], [1, "airline id"], [1, "name"], [1, "distance"], [2, "employee id"], [2, "name"], [2, "salary"], [3, "employee id"], [3, "airline id"]], "column_names_original": [[-1, "*"], [0, "flno"], [0, "origin"], [0, "destination"], [0, "distance"], [0, "departure_date"], [0, "arrival_date"], [0, "price"], [0, "aid"], [1, "aid"], [1, "name"], [1, "distance"], [2, "eid"], [2, "name"], [2, "salary"], [3, "eid"], [3, "aid"]], "column_types": ["text", "number", "text", "text", "number", "time", "time", "number", "number", "number", "text", "number", "number", "text", "number", "number", "number"], "db_id": "flight_1", "foreign_keys": [[8, 9], [16, 9], [15, 12]], "primary_keys": [1, 9, 12, 15], "table_names": ["flight", "aircraft", "employee", "certificate"], "table_names_original": ["flight", "aircraft", "employee", "certificate"]}, {"column_names": [[-1, "*"], [0, "address id"], [0, "line 1 number building"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [1, "product id"], [1, "product type code"], [1, "product name"], [1, "product price"], [2, "customer id"], [2, "payment method code"], [2, "customer number"], [2, "customer name"], [2, "customer address"], [2, "customer phone"], [2, "customer email"], [3, "contact id"], [3, "customer id"], [3, "gender"], [3, "first name"], [3, "last name"], [3, "contact phone"], [4, "customer id"], [4, "address id"], [4, "date from"], [4, "date to"], [5, "order id"], [5, "customer id"], [5, "order date"], [5, "order status code"], [6, "order item id"], [6, "order id"], [6, "product id"], [6, "order quantity"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1_number_building"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [1, "product_id"], [1, "product_type_code"], [1, "product_name"], [1, "product_price"], [2, "customer_id"], [2, "payment_method_code"], [2, "customer_number"], [2, "customer_name"], [2, "customer_address"], [2, "customer_phone"], [2, "customer_email"], [3, "contact_id"], [3, "customer_id"], [3, "gender"], [3, "first_name"], [3, "last_name"], [3, "contact_phone"], [4, "customer_id"], [4, "address_id"], [4, "date_from"], [4, "date_to"], [5, "order_id"], [5, "customer_id"], [5, "order_date"], [5, "order_status_code"], [6, "order_item_id"], [6, "order_id"], [6, "product_id"], [6, "order_quantity"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "number", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "time", "time", "number", "number", "time", "text", "number", "number", "number", "text"], "db_id": "customers_and_products_contacts", "foreign_keys": [[25, 1], [24, 11], [29, 11], [33, 28], [34, 7]], "primary_keys": [1, 7, 11, 18, 28], "table_names": ["addresses", "products", "customers", "contacts", "customer address history", "customer orders", "order items"], "table_names_original": ["addresses", "products", "customers", "contacts", "customer_address_history", "customer_orders", "order_items"]}, {"column_names": [[-1, "*"], [0, "staff id"], [0, "gender"], [0, "first name"], [0, "last name"], [0, "email address"], [0, "phone number"], [1, "customer id"], [1, "customer type code"], [1, "address line 1"], [1, "address line 2"], [1, "town city"], [1, "state"], [1, "email address"], [1, "phone number"], [2, "product id"], [2, "parent product id"], [2, "product category code"], [2, "date product first available"], [2, "date product discontinued"], [2, "product name"], [2, "product description"], [2, "product price"], [3, "complaint id"], [3, "product id"], [3, "customer id"], [3, "complaint outcome code"], [3, "complaint status code"], [3, "complaint type code"], [3, "date complaint raised"], [3, "date complaint closed"], [3, "staff id"]], "column_names_original": [[-1, "*"], [0, "staff_id"], [0, "gender"], [0, "first_name"], [0, "last_name"], [0, "email_address"], [0, "phone_number"], [1, "customer_id"], [1, "customer_type_code"], [1, "address_line_1"], [1, "address_line_2"], [1, "town_city"], [1, "state"], [1, "email_address"], [1, "phone_number"], [2, "product_id"], [2, "parent_product_id"], [2, "product_category_code"], [2, "date_product_first_available"], [2, "date_product_discontinued"], [2, "product_name"], [2, "product_description"], [2, "product_price"], [3, "complaint_id"], [3, "product_id"], [3, "customer_id"], [3, "complaint_outcome_code"], [3, "complaint_status_code"], [3, "complaint_type_code"], [3, "date_complaint_raised"], [3, "date_complaint_closed"], [3, "staff_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "time", "time", "text", "text", "number", "number", "number", "number", "text", "text", "text", "time", "time", "number"], "db_id": "customer_complaints", "foreign_keys": [[25, 7], [24, 15], [31, 1]], "primary_keys": [1, 7, 15], "table_names": ["staff", "customers", "products", "complaints"], "table_names_original": ["staff", "customers", "products", "complaints"]}, {"column_names": [[-1, "*"], [0, "pilot id"], [0, "name"], [0, "age"], [1, "aircraft id"], [1, "aircraft"], [1, "description"], [1, "max gross weight"], [1, "total disk area"], [1, "max disk loading"], [2, "round"], [2, "location"], [2, "country"], [2, "date"], [2, "fastest qualifying"], [2, "winning pilot"], [2, "winning aircraft"], [3, "airport id"], [3, "airport name"], [3, "total passengers"], [3, "% change 2007"], [3, "international passengers"], [3, "domestic passengers"], [3, "transit passengers"], [3, "aircraft movements"], [3, "freight metric tonnes"], [4, "id"], [4, "airport id"], [4, "aircraft id"]], "column_names_original": [[-1, "*"], [0, "pilot_id"], [0, "name"], [0, "age"], [1, "aircraft_id"], [1, "aircraft"], [1, "description"], [1, "max_gross_weight"], [1, "total_disk_area"], [1, "max_disk_loading"], [2, "round"], [2, "location"], [2, "country"], [2, "date"], [2, "fastest_qualifying"], [2, "winning_pilot"], [2, "winning_aircraft"], [3, "airport_id"], [3, "airport_name"], [3, "total_passengers"], [3, "%_change_2007"], [3, "international_passengers"], [3, "domestic_passengers"], [3, "transit_passengers"], [3, "aircraft_movements"], [3, "freight_metric_tonnes"], [4, "id"], [4, "airport_id"], [4, "aircraft_id"]], "column_types": ["text", "number", "text", "number", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number"], "db_id": "aircraft", "foreign_keys": [[15, 1], [16, 4], [28, 4], [27, 17]], "primary_keys": [1, 4, 10, 17, 27], "table_names": ["pilot", "aircraft", "match", "airport", "airport aircraft"], "table_names_original": ["pilot", "aircraft", "match", "airport", "airport_aircraft"]}, {"column_names": [[-1, "*"], [0, "breed code"], [0, "breed name"], [1, "charge id"], [1, "charge type"], [1, "charge amount"], [2, "size code"], [2, "size description"], [3, "treatment type code"], [3, "treatment type description"], [4, "owner id"], [4, "first name"], [4, "last name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip code"], [4, "email address"], [4, "home phone"], [4, "cell number"], [5, "dog id"], [5, "owner id"], [5, "abandoned yes or no"], [5, "breed code"], [5, "size code"], [5, "name"], [5, "age"], [5, "date of birth"], [5, "gender"], [5, "weight"], [5, "date arrived"], [5, "date adopted"], [5, "date departed"], [6, "professional id"], [6, "role code"], [6, "first name"], [6, "street"], [6, "city"], [6, "state"], [6, "zip code"], [6, "last name"], [6, "email address"], [6, "home phone"], [6, "cell number"], [7, "treatment id"], [7, "dog id"], [7, "professional id"], [7, "treatment type code"], [7, "date of treatment"], [7, "cost of treatment"]], "column_names_original": [[-1, "*"], [0, "breed_code"], [0, "breed_name"], [1, "charge_id"], [1, "charge_type"], [1, "charge_amount"], [2, "size_code"], [2, "size_description"], [3, "treatment_type_code"], [3, "treatment_type_description"], [4, "owner_id"], [4, "first_name"], [4, "last_name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip_code"], [4, "email_address"], [4, "home_phone"], [4, "cell_number"], [5, "dog_id"], [5, "owner_id"], [5, "abandoned_yn"], [5, "breed_code"], [5, "size_code"], [5, "name"], [5, "age"], [5, "date_of_birth"], [5, "gender"], [5, "weight"], [5, "date_arrived"], [5, "date_adopted"], [5, "date_departed"], [6, "professional_id"], [6, "role_code"], [6, "first_name"], [6, "street"], [6, "city"], [6, "state"], [6, "zip_code"], [6, "last_name"], [6, "email_address"], [6, "home_phone"], [6, "cell_number"], [7, "treatment_id"], [7, "dog_id"], [7, "professional_id"], [7, "treatment_type_code"], [7, "date_of_treatment"], [7, "cost_of_treatment"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "time", "text", "text", "time", "time", "time", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "number", "text", "time", "number"], "db_id": "dog_kennels", "foreign_keys": [[21, 10], [21, 10], [24, 6], [23, 1], [45, 20], [46, 33], [47, 8]], "primary_keys": [1, 3, 6, 8, 10, 20, 33, 44], "table_names": ["breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals", "treatments"], "table_names_original": ["breeds", "charges", "sizes", "treatment_types", "owners", "dogs", "professionals", "treatments"]}, {"column_names": [[-1, "*"], [0, "customer id"], [0, "customer name"], [1, "service id"], [1, "service name"], [2, "policy id"], [2, "policy type code"], [2, "customer phone"], [3, "customer id"], [3, "policy id"], [3, "date opened"], [3, "date closed"], [4, "fnol id"], [4, "customer id"], [4, "policy id"], [4, "service id"], [5, "claim id"], [5, "fnol id"], [5, "effective date"], [6, "settlement id"], [6, "claim id"], [6, "effective date"], [6, "settlement amount"]], "column_names_original": [[-1, "*"], [0, "customer_id"], [0, "customer_name"], [1, "service_id"], [1, "service_name"], [2, "policy_id"], [2, "policy_type_code"], [2, "customer_phone"], [3, "customer_id"], [3, "policy_id"], [3, "date_opened"], [3, "date_closed"], [4, "fnol_id"], [4, "customer_id"], [4, "policy_id"], [4, "service_id"], [5, "claim_id"], [5, "fnol_id"], [5, "effective_date"], [6, "settlement_id"], [6, "claim_id"], [6, "effective_date"], [6, "settlement_amount"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "text", "number", "number", "time", "time", "number", "number", "number", "number", "number", "number", "time", "number", "number", "time", "number"], "db_id": "insurance_fnol", "foreign_keys": [[9, 5], [8, 1], [13, 8], [14, 9], [15, 3], [17, 12], [20, 16]], "primary_keys": [1, 3, 5, 8, 12, 16, 19], "table_names": ["customers", "services", "available policies", "customers policies", "first notification of loss", "claims", "settlements"], "table_names_original": ["customers", "services", "available_policies", "customers_policies", "first_notification_of_loss", "claims", "settlements"]}, {"column_names": [[-1, "*"], [0, "template type code"], [0, "template type description"], [1, "template id"], [1, "version number"], [1, "template type code"], [1, "date effective from"], [1, "date effective to"], [1, "template details"], [2, "document id"], [2, "template id"], [2, "document name"], [2, "document description"], [2, "other details"], [3, "paragraph id"], [3, "document id"], [3, "paragraph text"], [3, "other details"]], "column_names_original": [[-1, "*"], [0, "template_type_code"], [0, "template_type_description"], [1, "template_id"], [1, "version_number"], [1, "template_type_code"], [1, "date_effective_from"], [1, "date_effective_to"], [1, "template_details"], [2, "document_id"], [2, "template_id"], [2, "document_name"], [2, "document_description"], [2, "other_details"], [3, "paragraph_id"], [3, "document_id"], [3, "paragraph_text"], [3, "other_details"]], "column_types": ["text", "text", "text", "number", "number", "text", "time", "time", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text"], "db_id": "cre_Doc_Template_Mgt", "foreign_keys": [[5, 1], [10, 3], [15, 9]], "primary_keys": [1, 3, 9, 14], "table_names": ["reference template types", "templates", "documents", "paragraphs"], "table_names_original": ["ref_template_types", "templates", "documents", "paragraphs"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "player fifa api id"], [0, "player api id"], [0, "date"], [0, "overall rating"], [0, "potential"], [0, "preferred foot"], [0, "attacking work rate"], [0, "defensive work rate"], [0, "crossing"], [0, "finishing"], [0, "heading accuracy"], [0, "short passing"], [0, "volleys"], [0, "dribbling"], [0, "curve"], [0, "free kick accuracy"], [0, "long passing"], [0, "ball control"], [0, "acceleration"], [0, "sprint speed"], [0, "agility"], [0, "reactions"], [0, "balance"], [0, "shot power"], [0, "jumping"], [0, "stamina"], [0, "strength"], [0, "long shots"], [0, "aggression"], [0, "interceptions"], [0, "positioning"], [0, "vision"], [0, "penalties"], [0, "marking"], [0, "standing tackle"], [0, "sliding tackle"], [0, "gk diving"], [0, "gk handling"], [0, "gk kicking"], [0, "gk positioning"], [0, "gk reflexes"], [1, "name"], [1, "seq"], [2, "id"], [2, "player api id"], [2, "player name"], [2, "player fifa api id"], [2, "birthday"], [2, "height"], [2, "weight"], [3, "id"], [3, "country id"], [3, "name"], [4, "id"], [4, "name"], [5, "id"], [5, "team api id"], [5, "team fifa api id"], [5, "team long name"], [5, "team short name"], [6, "id"], [6, "team fifa api id"], [6, "team api id"], [6, "date"], [6, "buildup play speed"], [6, "buildup play speed class"], [6, "buildup play dribbling"], [6, "buildup play dribbling class"], [6, "buildup play passing"], [6, "buildup play passing class"], [6, "buildup play positioning class"], [6, "chance creation passing"], [6, "chance creation passing class"], [6, "chance creation crossing"], [6, "chance creation crossing class"], [6, "chance creation shooting"], [6, "chance creation shooting class"], [6, "chance creation positioning class"], [6, "defence pressure"], [6, "defence pressure class"], [6, "defence aggression"], [6, "defence aggression class"], [6, "defence team width"], [6, "defence team width class"], [6, "defence defender line class"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "player_fifa_api_id"], [0, "player_api_id"], [0, "date"], [0, "overall_rating"], [0, "potential"], [0, "preferred_foot"], [0, "attacking_work_rate"], [0, "defensive_work_rate"], [0, "crossing"], [0, "finishing"], [0, "heading_accuracy"], [0, "short_passing"], [0, "volleys"], [0, "dribbling"], [0, "curve"], [0, "free_kick_accuracy"], [0, "long_passing"], [0, "ball_control"], [0, "acceleration"], [0, "sprint_speed"], [0, "agility"], [0, "reactions"], [0, "balance"], [0, "shot_power"], [0, "jumping"], [0, "stamina"], [0, "strength"], [0, "long_shots"], [0, "aggression"], [0, "interceptions"], [0, "positioning"], [0, "vision"], [0, "penalties"], [0, "marking"], [0, "standing_tackle"], [0, "sliding_tackle"], [0, "gk_diving"], [0, "gk_handling"], [0, "gk_kicking"], [0, "gk_positioning"], [0, "gk_reflexes"], [1, "name"], [1, "seq"], [2, "id"], [2, "player_api_id"], [2, "player_name"], [2, "player_fifa_api_id"], [2, "birthday"], [2, "height"], [2, "weight"], [3, "id"], [3, "country_id"], [3, "name"], [4, "id"], [4, "name"], [5, "id"], [5, "team_api_id"], [5, "team_fifa_api_id"], [5, "team_long_name"], [5, "team_short_name"], [6, "id"], [6, "team_fifa_api_id"], [6, "team_api_id"], [6, "date"], [6, "buildupplayspeed"], [6, "buildupplayspeedclass"], [6, "buildupplaydribbling"], [6, "buildupplaydribblingclass"], [6, "buildupplaypassing"], [6, "buildupplaypassingclass"], [6, "buildupplaypositioningclass"], [6, "chancecreationpassing"], [6, "chancecreationpassingclass"], [6, "chancecreationcrossing"], [6, "chancecreationcrossingclass"], [6, "chancecreationshooting"], [6, "chancecreationshootingclass"], [6, "chancecreationpositioningclass"], [6, "defencepressure"], [6, "defencepressureclass"], [6, "defenceaggression"], [6, "defenceaggressionclass"], [6, "defenceteamwidth"], [6, "defenceteamwidthclass"], [6, "defencedefenderlineclass"]], "column_types": ["text", "number", "number", "number", "text", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "text", "number", "number", "text", "number", "text", "number", "number", "number", "number", "text", "number", "text", "number", "number", "number", "text", "text", "number", "number", "number", "text", "number", "text", "number", "text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "text"], "db_id": "soccer_1", "foreign_keys": [[3, 46], [2, 48], [53, 55], [64, 58], [63, 59]], "primary_keys": [1, 45, 52, 55, 57, 62], "table_names": ["player attributes", "sqlite sequence", "player", "league", "country", "team", "team attributes"], "table_names_original": ["player_attributes", "something_sequence", "player", "league", "country", "team", "team_attributes"]}, {"column_names": [[-1, "*"], [0, "account id"], [0, "customer id"], [0, "account name"], [0, "other account details"], [1, "customer id"], [1, "customer first name"], [1, "customer last name"], [1, "customer address"], [1, "customer phone"], [1, "customer email"], [1, "other customer details"], [2, "card id"], [2, "customer id"], [2, "card type code"], [2, "card number"], [2, "date valid from"], [2, "date valid to"], [2, "other card details"], [3, "transaction id"], [3, "previous transaction id"], [3, "account id"], [3, "card id"], [3, "transaction type"], [3, "transaction date"], [3, "transaction amount"], [3, "transaction comment"], [3, "other transaction details"]], "column_names_original": [[-1, "*"], [0, "account_id"], [0, "customer_id"], [0, "account_name"], [0, "other_account_details"], [1, "customer_id"], [1, "customer_first_name"], [1, "customer_last_name"], [1, "customer_address"], [1, "customer_phone"], [1, "customer_email"], [1, "other_customer_details"], [2, "card_id"], [2, "customer_id"], [2, "card_type_code"], [2, "card_number"], [2, "date_valid_from"], [2, "date_valid_to"], [2, "other_card_details"], [3, "transaction_id"], [3, "previous_transaction_id"], [3, "account_id"], [3, "card_id"], [3, "transaction_type"], [3, "transaction_date"], [3, "transaction_amount"], [3, "transaction_comment"], [3, "other_transaction_details"]], "column_types": ["text", "number", "number", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "time", "time", "text", "number", "number", "number", "number", "text", "time", "number", "text", "text"], "db_id": "customers_card_transactions", "foreign_keys": [[21, 1], [22, 12]], "primary_keys": [1, 5, 12], "table_names": ["accounts", "customers", "customers cards", "financial transactions"], "table_names_original": ["accounts", "customers", "customers_cards", "financial_transactions"]}, {"column_names": [[-1, "*"], [0, "author id"], [0, "author tutor atb"], [0, "login name"], [0, "password"], [0, "personal name"], [0, "middle name"], [0, "family name"], [0, "gender mf"], [0, "address line 1"], [1, "student id"], [1, "date of registration"], [1, "date of latest logon"], [1, "login name"], [1, "password"], [1, "personal name"], [1, "middle name"], [1, "family name"], [2, "subject id"], [2, "subject name"], [3, "course id"], [3, "author id"], [3, "subject id"], [3, "course name"], [3, "course description"], [4, "registration id"], [4, "student id"], [4, "course id"], [4, "date of enrolment"], [4, "date of completion"], [5, "registration id"], [5, "date test taken"], [5, "test result"]], "column_names_original": [[-1, "*"], [0, "author_id"], [0, "author_tutor_atb"], [0, "login_name"], [0, "password"], [0, "personal_name"], [0, "middle_name"], [0, "family_name"], [0, "gender_mf"], [0, "address_line_1"], [1, "student_id"], [1, "date_of_registration"], [1, "date_of_latest_logon"], [1, "login_name"], [1, "password"], [1, "personal_name"], [1, "middle_name"], [1, "family_name"], [2, "subject_id"], [2, "subject_name"], [3, "course_id"], [3, "author_id"], [3, "subject_id"], [3, "course_name"], [3, "course_description"], [4, "registration_id"], [4, "student_id"], [4, "course_id"], [4, "date_of_enrolment"], [4, "date_of_completion"], [5, "registration_id"], [5, "date_test_taken"], [5, "test_result"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "time", "time", "text", "text", "text", "text", "text", "number", "text", "number", "number", "number", "text", "text", "number", "number", "number", "time", "time", "number", "time", "text"], "db_id": "e_learning", "foreign_keys": [[22, 18], [21, 1], [26, 10], [27, 20], [30, 25]], "primary_keys": [1, 10, 18, 20, 25], "table_names": ["course authors and tutors", "students", "subjects", "courses", "student course enrolment", "student tests taken"], "table_names_original": ["course_authors_and_tutors", "students", "subjects", "courses", "student_course_enrolment", "student_tests_taken"]}, {"column_names": [[-1, "*"], [0, "customer id"], [0, "customer details"], [1, "policy id"], [1, "customer id"], [1, "policy type code"], [1, "start date"], [1, "end date"], [2, "claim id"], [2, "policy id"], [2, "date claim made"], [2, "date claim settled"], [2, "amount claimed"], [2, "amount settled"], [3, "settlement id"], [3, "claim id"], [3, "date claim made"], [3, "date claim settled"], [3, "amount claimed"], [3, "amount settled"], [3, "customer policy id"], [4, "payment id"], [4, "settlement id"], [4, "payment method code"], [4, "date payment made"], [4, "amount payment"]], "column_names_original": [[-1, "*"], [0, "customer_id"], [0, "customer_details"], [1, "policy_id"], [1, "customer_id"], [1, "policy_type_code"], [1, "start_date"], [1, "end_date"], [2, "claim_id"], [2, "policy_id"], [2, "date_claim_made"], [2, "date_claim_settled"], [2, "amount_claimed"], [2, "amount_settled"], [3, "settlement_id"], [3, "claim_id"], [3, "date_claim_made"], [3, "date_claim_settled"], [3, "amount_claimed"], [3, "amount_settled"], [3, "customer_policy_id"], [4, "payment_id"], [4, "settlement_id"], [4, "payment_method_code"], [4, "date_payment_made"], [4, "amount_payment"]], "column_types": ["text", "number", "text", "number", "number", "text", "time", "time", "number", "number", "time", "time", "number", "number", "number", "number", "time", "time", "number", "number", "number", "number", "number", "text", "time", "number"], "db_id": "insurance_policies", "foreign_keys": [[4, 1], [9, 3], [15, 8], [22, 14]], "primary_keys": [1, 3, 8, 14, 21], "table_names": ["customers", "customer policies", "claims", "settlements", "payments"], "table_names_original": ["customers", "customer_policies", "claims", "settlements", "payments"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "trade name"], [0, "fda approved"], [1, "id"], [1, "name"], [1, "location"], [1, "product"], [1, "chromosome"], [1, "omim"], [1, "porphyria"], [2, "enzyme id"], [2, "medicine id"], [2, "interaction type"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "trade_name"], [0, "fda_approved"], [1, "id"], [1, "name"], [1, "location"], [1, "product"], [1, "chromosome"], [1, "omim"], [1, "porphyria"], [2, "enzyme_id"], [2, "medicine_id"], [2, "interaction_type"]], "column_types": ["text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "number", "text", "number", "number", "text"], "db_id": "medicine_enzyme_interaction", "foreign_keys": [[13, 1], [12, 5]], "primary_keys": [1, 5, 12], "table_names": ["medicine", "enzyme", "medicine enzyme interaction"], "table_names_original": ["medicine", "enzyme", "medicine_enzyme_interaction"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "operating system"], [0, "client"], [0, "connection"], [1, "id"], [1, "name"], [1, "market share"], [2, "accelerator id"], [2, "browser id"], [2, "compatible since year"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "operating_system"], [0, "client"], [0, "connection"], [1, "id"], [1, "name"], [1, "market_share"], [2, "accelerator_id"], [2, "browser_id"], [2, "compatible_since_year"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "text", "number", "number", "number", "number"], "db_id": "browser_web", "foreign_keys": [[10, 6], [9, 1]], "primary_keys": [1, 6, 9], "table_names": ["web client accelerator", "browser", "accelerator compatible browser"], "table_names_original": ["web_client_accelerator", "browser", "accelerator_compatible_browser"]}, {"column_names": [[-1, "*"], [0, "customer id"], [0, "customer first name"], [0, "customer middle initial"], [0, "customer last name"], [0, "gender"], [0, "email address"], [0, "login name"], [0, "login password"], [0, "phone number"], [0, "town city"], [0, "state county province"], [0, "country"], [1, "order id"], [1, "customer id"], [1, "date order placed"], [1, "order details"], [2, "invoice number"], [2, "order id"], [2, "invoice date"], [3, "account id"], [3, "customer id"], [3, "date account opened"], [3, "account name"], [3, "other account details"], [4, "production type code"], [4, "product type description"], [4, "vat rating"], [5, "product id"], [5, "parent product id"], [5, "production type code"], [5, "unit price"], [5, "product name"], [5, "product color"], [5, "product size"], [6, "transaction id"], [6, "account id"], [6, "invoice number"], [6, "transaction type"], [6, "transaction date"], [6, "transaction amount"], [6, "transaction comment"], [6, "other transaction details"], [7, "order item id"], [7, "order id"], [7, "product id"], [7, "product quantity"], [7, "other order item details"], [8, "order item id"], [8, "invoice number"], [8, "product id"], [8, "product title"], [8, "product quantity"], [8, "product price"], [8, "derived product cost"], [8, "derived vat payable"], [8, "derived total cost"]], "column_names_original": [[-1, "*"], [0, "customer_id"], [0, "customer_first_name"], [0, "customer_middle_initial"], [0, "customer_last_name"], [0, "gender"], [0, "email_address"], [0, "login_name"], [0, "login_password"], [0, "phone_number"], [0, "town_city"], [0, "state_county_province"], [0, "country"], [1, "order_id"], [1, "customer_id"], [1, "date_order_placed"], [1, "order_details"], [2, "invoice_number"], [2, "order_id"], [2, "invoice_date"], [3, "account_id"], [3, "customer_id"], [3, "date_account_opened"], [3, "account_name"], [3, "other_account_details"], [4, "production_type_code"], [4, "product_type_description"], [4, "vat_rating"], [5, "product_id"], [5, "parent_product_id"], [5, "production_type_code"], [5, "unit_price"], [5, "product_name"], [5, "product_color"], [5, "product_size"], [6, "transaction_id"], [6, "account_id"], [6, "invoice_number"], [6, "transaction_type"], [6, "transaction_date"], [6, "transaction_amount"], [6, "transaction_comment"], [6, "other_transaction_details"], [7, "order_item_id"], [7, "order_id"], [7, "product_id"], [7, "product_quantity"], [7, "other_order_item_details"], [8, "order_item_id"], [8, "invoice_number"], [8, "product_id"], [8, "product_title"], [8, "product_quantity"], [8, "product_price"], [8, "derived_product_cost"], [8, "derived_vat_payable"], [8, "derived_total_cost"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "time", "text", "number", "number", "time", "number", "number", "time", "text", "text", "text", "text", "number", "number", "number", "text", "number", "text", "text", "text", "number", "number", "number", "text", "time", "number", "text", "text", "number", "number", "number", "text", "text", "number", "number", "number", "text", "text", "number", "number", "number", "number"], "db_id": "customers_and_invoices", "foreign_keys": [[14, 1], [18, 13], [21, 1], [30, 25], [36, 20], [37, 17], [44, 13], [45, 28], [50, 28], [49, 17], [48, 43]], "primary_keys": [1, 13, 17, 20, 25, 28, 43], "table_names": ["customers", "orders", "invoices", "accounts", "product categories", "products", "financial transactions", "order items", "invoice line items"], "table_names_original": ["customers", "orders", "invoices", "accounts", "product_categories", "products", "financial_transactions", "order_items", "invoice_line_items"]}, {"column_names": [[-1, "*"], [0, "storm id"], [0, "name"], [0, "dates active"], [0, "max speed"], [0, "damage millions usd"], [0, "number deaths"], [1, "region id"], [1, "region code"], [1, "region name"], [2, "region id"], [2, "storm id"], [2, "number city affected"]], "column_names_original": [[-1, "*"], [0, "storm_id"], [0, "name"], [0, "dates_active"], [0, "max_speed"], [0, "damage_millions_usd"], [0, "number_deaths"], [1, "region_id"], [1, "region_code"], [1, "region_name"], [2, "region_id"], [2, "storm_id"], [2, "number_city_affected"]], "column_types": ["text", "number", "text", "text", "number", "number", "number", "number", "text", "text", "number", "number", "number"], "db_id": "storm_record", "foreign_keys": [[11, 1], [10, 7]], "primary_keys": [1, 7, 10], "table_names": ["storm", "region", "affected region"], "table_names_original": ["storm", "region", "affected_region"]}, {"column_names": [[-1, "*"], [0, "book club id"], [0, "year"], [0, "author or editor"], [0, "book title"], [0, "publisher"], [0, "category"], [0, "result"], [1, "movie id"], [1, "title"], [1, "year"], [1, "director"], [1, "budget million"], [1, "gross worldwide"], [2, "company name"], [2, "type"], [2, "incorporated in"], [2, "group equity shareholding"], [2, "book club id"], [2, "movie id"]], "column_names_original": [[-1, "*"], [0, "book_club_id"], [0, "year"], [0, "author_or_editor"], [0, "book_title"], [0, "publisher"], [0, "category"], [0, "result"], [1, "movie_id"], [1, "title"], [1, "year"], [1, "director"], [1, "budget_million"], [1, "gross_worldwide"], [2, "company_name"], [2, "type"], [2, "incorporated_in"], [2, "group_equity_shareholding"], [2, "book_club_id"], [2, "movie_id"]], "column_types": ["text", "number", "number", "text", "text", "text", "text", "text", "number", "text", "number", "text", "number", "number", "text", "text", "text", "number", "text", "text"], "db_id": "culture_company", "foreign_keys": [[19, 8], [18, 1]], "primary_keys": [1, 8, 14], "table_names": ["book club", "movie", "culture company"], "table_names_original": ["book_club", "movie", "culture_company"]}, {"column_names": [[-1, "*"], [0, "album id"], [0, "title"], [0, "artist id"], [1, "artist id"], [1, "name"], [2, "customer id"], [2, "first name"], [2, "last name"], [2, "company"], [2, "address"], [2, "city"], [2, "state"], [2, "country"], [2, "postal code"], [2, "phone"], [2, "fax"], [2, "email"], [2, "support representative id"], [3, "employee id"], [3, "last name"], [3, "first name"], [3, "title"], [3, "reports to"], [3, "birth date"], [3, "hire date"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postal code"], [3, "phone"], [3, "fax"], [3, "email"], [4, "genre id"], [4, "name"], [5, "invoice id"], [5, "customer id"], [5, "invoice date"], [5, "billing address"], [5, "billing city"], [5, "billing state"], [5, "billing country"], [5, "billing postal code"], [5, "total"], [6, "invoice line id"], [6, "invoice id"], [6, "track id"], [6, "unit price"], [6, "quantity"], [7, "media type id"], [7, "name"], [8, "play list id"], [8, "name"], [9, "play list id"], [9, "track id"], [10, "track id"], [10, "name"], [10, "album id"], [10, "media type id"], [10, "genre id"], [10, "composer"], [10, "milliseconds"], [10, "bytes"], [10, "unit price"]], "column_names_original": [[-1, "*"], [0, "albumid"], [0, "title"], [0, "artistid"], [1, "artistid"], [1, "name"], [2, "customerid"], [2, "firstname"], [2, "lastname"], [2, "company"], [2, "address"], [2, "city"], [2, "state"], [2, "country"], [2, "postalcode"], [2, "phone"], [2, "fax"], [2, "email"], [2, "supportrepid"], [3, "employeeid"], [3, "lastname"], [3, "firstname"], [3, "title"], [3, "reportsto"], [3, "birthdate"], [3, "hiredate"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postalcode"], [3, "phone"], [3, "fax"], [3, "email"], [4, "genreid"], [4, "name"], [5, "invoiceid"], [5, "customerid"], [5, "invoicedate"], [5, "billingaddress"], [5, "billingcity"], [5, "billingstate"], [5, "billingcountry"], [5, "billingpostalcode"], [5, "total"], [6, "invoicelineid"], [6, "invoiceid"], [6, "trackid"], [6, "unitprice"], [6, "quantity"], [7, "mediatypeid"], [7, "name"], [8, "playlistid"], [8, "name"], [9, "playlistid"], [9, "trackid"], [10, "trackid"], [10, "name"], [10, "albumid"], [10, "mediatypeid"], [10, "genreid"], [10, "composer"], [10, "milliseconds"], [10, "bytes"], [10, "unitprice"]], "column_types": ["text", "number", "text", "number", "number", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "number", "time", "time", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "number", "number", "time", "text", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "text", "number", "number", "number"], "db_id": "chinook_1", "foreign_keys": [[3, 4], [18, 19], [23, 19], [37, 6], [47, 56], [46, 36], [55, 56], [54, 52], [59, 50], [60, 34], [58, 1]], "primary_keys": [1, 4, 6, 19, 34, 36, 45, 50, 52, 54, 56], "table_names": ["album", "artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "track"], "table_names_original": ["album", "artist", "customer", "employee", "genre", "invoice", "invoiceline", "mediatype", "playlist", "playlisttrack", "track"]}, {"column_names": [[-1, "*"], [0, "region id"], [0, "region name"], [1, "country id"], [1, "country name"], [1, "region id"], [2, "department id"], [2, "department name"], [2, "manager id"], [2, "location id"], [3, "job id"], [3, "job title"], [3, "min salary"], [3, "max salary"], [4, "employee id"], [4, "first name"], [4, "last name"], [4, "email"], [4, "phone number"], [4, "hire date"], [4, "job id"], [4, "salary"], [4, "commission pct"], [4, "manager id"], [4, "department id"], [5, "employee id"], [5, "start date"], [5, "end date"], [5, "job id"], [5, "department id"], [6, "location id"], [6, "street address"], [6, "postal code"], [6, "city"], [6, "state province"], [6, "country id"]], "column_names_original": [[-1, "*"], [0, "region_id"], [0, "region_name"], [1, "country_id"], [1, "country_name"], [1, "region_id"], [2, "department_id"], [2, "department_name"], [2, "manager_id"], [2, "location_id"], [3, "job_id"], [3, "job_title"], [3, "min_salary"], [3, "max_salary"], [4, "employee_id"], [4, "first_name"], [4, "last_name"], [4, "email"], [4, "phone_number"], [4, "hire_date"], [4, "job_id"], [4, "salary"], [4, "commission_pct"], [4, "manager_id"], [4, "department_id"], [5, "employee_id"], [5, "start_date"], [5, "end_date"], [5, "job_id"], [5, "department_id"], [6, "location_id"], [6, "street_address"], [6, "postal_code"], [6, "city"], [6, "state_province"], [6, "country_id"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "number", "number", "text", "text", "number", "number", "number", "text", "text", "text", "text", "time", "text", "number", "number", "number", "number", "number", "time", "time", "text", "number", "number", "text", "text", "text", "text", "text"], "db_id": "hr_1", "foreign_keys": [[5, 1], [20, 10], [24, 6], [28, 10], [29, 6], [25, 14], [35, 3]], "primary_keys": [1, 3, 6, 10, 14, 25, 30], "table_names": ["regions", "countries", "departments", "jobs", "employees", "job history", "locations"], "table_names_original": ["regions", "countries", "departments", "jobs", "employees", "job_history", "locations"]}, {"column_names": [[-1, "*"], [0, "code"], [0, "name"], [0, "headquarter"], [0, "founder"], [0, "revenue"], [1, "code"], [1, "name"], [1, "price"], [1, "manufacturer"]], "column_names_original": [[-1, "*"], [0, "code"], [0, "name"], [0, "headquarter"], [0, "founder"], [0, "revenue"], [1, "code"], [1, "name"], [1, "price"], [1, "manufacturer"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "number", "number"], "db_id": "manufactory_1", "foreign_keys": [[9, 1]], "primary_keys": [1, 6], "table_names": ["manufacturers", "products"], "table_names_original": ["manufacturers", "products"]}, {"column_names": [[-1, "*"], [0, "school id"], [0, "school name"], [0, "location"], [0, "mascot"], [0, "enrollment"], [0, "ihsaa class"], [0, "ihsaa football class"], [0, "county"], [1, "school id"], [1, "year"], [1, "budgeted"], [1, "total budget percent budgeted"], [1, "invested"], [1, "total budget percent invested"], [1, "budget invested percent"], [2, "endowment id"], [2, "school id"], [2, "donator name"], [2, "amount"]], "column_names_original": [[-1, "*"], [0, "school_id"], [0, "school_name"], [0, "location"], [0, "mascot"], [0, "enrollment"], [0, "ihsaa_class"], [0, "ihsaa_football_class"], [0, "county"], [1, "school_id"], [1, "year"], [1, "budgeted"], [1, "total_budget_percent_budgeted"], [1, "invested"], [1, "total_budget_percent_invested"], [1, "budget_invested_percent"], [2, "endowment_id"], [2, "school_id"], [2, "donator_name"], [2, "amount"]], "column_types": ["text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "text", "number", "number", "text", "number"], "db_id": "school_finance", "foreign_keys": [[9, 1], [17, 1]], "primary_keys": [1, 9, 16], "table_names": ["school", "budget", "endowment"], "table_names_original": ["school", "budget", "endowment"]}, {"column_names": [[-1, "*"], [0, "film id"], [0, "rank in series"], [0, "number in season"], [0, "title"], [0, "directed by"], [0, "original air date"], [0, "production code"], [1, "cinema id"], [1, "name"], [1, "openning year"], [1, "capacity"], [1, "location"], [2, "cinema id"], [2, "film id"], [2, "date"], [2, "show times per day"], [2, "price"]], "column_names_original": [[-1, "*"], [0, "film_id"], [0, "rank_in_series"], [0, "number_in_season"], [0, "title"], [0, "directed_by"], [0, "original_air_date"], [0, "production_code"], [1, "cinema_id"], [1, "name"], [1, "openning_year"], [1, "capacity"], [1, "location"], [2, "cinema_id"], [2, "film_id"], [2, "date"], [2, "show_times_per_day"], [2, "price"]], "column_types": ["text", "number", "number", "number", "text", "text", "text", "text", "number", "text", "number", "number", "text", "number", "number", "text", "number", "number"], "db_id": "cinema", "foreign_keys": [[13, 8], [14, 1]], "primary_keys": [1, 8, 13], "table_names": ["film", "cinema", "schedule"], "table_names_original": ["film", "cinema", "schedule"]}, {"column_names": [[-1, "*"], [0, "workshop id"], [0, "date"], [0, "venue"], [0, "name"], [1, "submission id"], [1, "scores"], [1, "author"], [1, "college"], [2, "submission id"], [2, "workshop id"], [2, "result"]], "column_names_original": [[-1, "*"], [0, "workshop_id"], [0, "date"], [0, "venue"], [0, "name"], [1, "submission_id"], [1, "scores"], [1, "author"], [1, "college"], [2, "submission_id"], [2, "workshop_id"], [2, "result"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "text", "number", "number", "text"], "db_id": "workshop_paper", "foreign_keys": [[10, 1], [9, 5]], "primary_keys": [1, 5, 9], "table_names": ["workshop", "submission", "acceptance"], "table_names_original": ["workshop", "submission", "acceptance"]}, {"column_names": [[-1, "*"], [0, "area code"], [0, "state"], [1, "contestant number"], [1, "contestant name"], [2, "vote id"], [2, "phone number"], [2, "state"], [2, "contestant number"], [2, "created"]], "column_names_original": [[-1, "*"], [0, "area_code"], [0, "state"], [1, "contestant_number"], [1, "contestant_name"], [2, "vote_id"], [2, "phone_number"], [2, "state"], [2, "contestant_number"], [2, "created"]], "column_types": ["text", "number", "text", "number", "text", "number", "number", "text", "number", "time"], "db_id": "voter_1", "foreign_keys": [[8, 3], [7, 2]], "primary_keys": [1, 3, 5], "table_names": ["area code state", "contestants", "votes"], "table_names_original": ["area_code_state", "contestants", "votes"]}, {"column_names": [[-1, "*"], [0, "airline id"], [0, "airline name"], [0, "abbreviation"], [0, "country"], [1, "city"], [1, "airport code"], [1, "airport name"], [1, "country"], [1, "country abbrev"], [2, "airline"], [2, "flight number"], [2, "source airport"], [2, "destination airport"]], "column_names_original": [[-1, "*"], [0, "uid"], [0, "airline"], [0, "abbreviation"], [0, "country"], [1, "city"], [1, "airportcode"], [1, "airportname"], [1, "country"], [1, "countryabbrev"], [2, "airline"], [2, "flightno"], [2, "sourceairport"], [2, "destairport"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text"], "db_id": "flight_2", "foreign_keys": [[13, 6], [12, 6]], "primary_keys": [1, 6, 10], "table_names": ["airlines", "airports", "flights"], "table_names_original": ["airlines", "airports", "flights"]}, {"column_names": [[-1, "*"], [0, "student id"], [0, "last name"], [0, "first name"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city code"], [1, "faculty id"], [1, "last name"], [1, "first name"], [1, "rank"], [1, "sex"], [1, "phone"], [1, "room"], [1, "building"], [2, "department number"], [2, "division"], [2, "department name"], [2, "room"], [2, "building"], [2, "department phone"], [3, "faculty id"], [3, "department number"], [3, "appt type"], [4, "course id"], [4, "course name"], [4, "credits"], [4, "instructor"], [4, "days"], [4, "hours"], [4, "department number"], [5, "student id"], [5, "department number"], [6, "student id"], [6, "course id"], [6, "grade"], [7, "letter grade"], [7, "grade point"]], "column_names_original": [[-1, "*"], [0, "stuid"], [0, "lname"], [0, "fname"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city_code"], [1, "facid"], [1, "lname"], [1, "fname"], [1, "rank"], [1, "sex"], [1, "phone"], [1, "room"], [1, "building"], [2, "dno"], [2, "division"], [2, "dname"], [2, "room"], [2, "building"], [2, "dphone"], [3, "facid"], [3, "dno"], [3, "appt_type"], [4, "cid"], [4, "cname"], [4, "credits"], [4, "instructor"], [4, "days"], [4, "hours"], [4, "dno"], [5, "stuid"], [5, "dno"], [6, "stuid"], [6, "cid"], [6, "grade"], [7, "lettergrade"], [7, "gradepoint"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "text", "text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "text", "number", "number", "number", "text", "text", "text", "number", "number", "text", "text", "number", "number", "number", "number", "text", "text", "text", "number"], "db_id": "college_3", "foreign_keys": [[24, 17], [23, 9], [32, 17], [29, 9], [34, 17], [33, 1], [37, 38], [36, 26], [35, 1]], "primary_keys": [1, 9, 17, 26, 38], "table_names": ["student", "faculty", "department", "member of", "course", "minor in", "enrolled in", "grade conversion"], "table_names_original": ["student", "faculty", "department", "member_of", "course", "minor_in", "enrolled_in", "gradeconversion"]}, {"column_names": [[-1, "*"], [0, "museum id"], [0, "name"], [0, "num of staff"], [0, "open year"], [1, "customer id"], [1, "name"], [1, "level of membership"], [1, "age"], [2, "museum id"], [2, "customer id"], [2, "num of ticket"], [2, "total spent"]], "column_names_original": [[-1, "*"], [0, "museum_id"], [0, "name"], [0, "num_of_staff"], [0, "open_year"], [1, "id"], [1, "name"], [1, "level_of_membership"], [1, "age"], [2, "museum_id"], [2, "visitor_id"], [2, "num_of_ticket"], [2, "total_spent"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "number", "number", "number", "text", "number", "number"], "db_id": "museum_visit", "foreign_keys": [[10, 5], [9, 1]], "primary_keys": [1, 5, 9], "table_names": ["museum", "customer", "visit"], "table_names_original": ["museum", "visitor", "visit"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "city"], [0, "height"], [0, "stories"], [0, "status"], [1, "id"], [1, "name"], [1, "headquarters"], [1, "industry"], [1, "sales billion"], [1, "profits billion"], [1, "assets billion"], [1, "market value billion"], [2, "building id"], [2, "company id"], [2, "move in year"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "city"], [0, "height"], [0, "stories"], [0, "status"], [1, "id"], [1, "name"], [1, "headquarters"], [1, "industry"], [1, "sales_billion"], [1, "profits_billion"], [1, "assets_billion"], [1, "market_value_billion"], [2, "building_id"], [2, "company_id"], [2, "move_in_year"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "number", "text", "text", "text", "number", "number", "number", "text", "number", "number", "number"], "db_id": "company_office", "foreign_keys": [[16, 7], [15, 1]], "primary_keys": [1, 7, 15], "table_names": ["buildings", "companies", "office locations"], "table_names_original": ["buildings", "companies", "office_locations"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "height"], [0, "prominence"], [0, "range"], [0, "country"], [1, "id"], [1, "brand"], [1, "name"], [1, "focal length mm"], [1, "max aperture"], [2, "id"], [2, "camera lens id"], [2, "mountain id"], [2, "color"], [2, "name"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "height"], [0, "prominence"], [0, "range"], [0, "country"], [1, "id"], [1, "brand"], [1, "name"], [1, "focal_length_mm"], [1, "max_aperture"], [2, "id"], [2, "camera_lens_id"], [2, "mountain_id"], [2, "color"], [2, "name"]], "column_types": ["text", "number", "text", "number", "number", "text", "text", "number", "text", "text", "number", "number", "number", "number", "number", "text", "text"], "db_id": "mountain_photos", "foreign_keys": [[14, 1], [13, 7]], "primary_keys": [1, 7, 12], "table_names": ["mountain", "camera lens", "photos"], "table_names_original": ["mountain", "camera_lens", "photos"]}, {"column_names": [[-1, "*"], [0, "city id"], [0, "official name"], [0, "status"], [0, "area km 2"], [0, "population"], [0, "census ranking"], [1, "farm id"], [1, "year"], [1, "total horses"], [1, "working horses"], [1, "total cattle"], [1, "oxen"], [1, "bulls"], [1, "cows"], [1, "pigs"], [1, "sheep and goats"], [2, "competition id"], [2, "year"], [2, "theme"], [2, "host city id"], [2, "hosts"], [3, "competition id"], [3, "farm id"], [3, "rank"]], "column_names_original": [[-1, "*"], [0, "city_id"], [0, "official_name"], [0, "status"], [0, "area_km_2"], [0, "population"], [0, "census_ranking"], [1, "farm_id"], [1, "year"], [1, "total_horses"], [1, "working_horses"], [1, "total_cattle"], [1, "oxen"], [1, "bulls"], [1, "cows"], [1, "pigs"], [1, "sheep_and_goats"], [2, "competition_id"], [2, "year"], [2, "theme"], [2, "host_city_id"], [2, "hosts"], [3, "competition_id"], [3, "farm_id"], [3, "rank"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "text", "number", "number", "number"], "db_id": "farm", "foreign_keys": [[20, 1], [23, 7], [22, 17]], "primary_keys": [1, 7, 17, 22], "table_names": ["city", "farm", "farm competition", "competition record"], "table_names_original": ["city", "farm", "farm_competition", "competition_record"]}, {"column_names": [[-1, "*"], [0, "student id"], [0, "last name"], [0, "first name"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city code"], [1, "student id"], [1, "registration date"], [1, "election cycle"], [1, "president vote"], [1, "vice president vote"], [1, "secretary vote"], [1, "treasurer vote"], [1, "class president vote"], [1, "class senator vote"]], "column_names_original": [[-1, "*"], [0, "stuid"], [0, "lname"], [0, "fname"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city_code"], [1, "stuid"], [1, "registration_date"], [1, "election_cycle"], [1, "president_vote"], [1, "vice_president_vote"], [1, "secretary_vote"], [1, "treasurer_vote"], [1, "class_president_vote"], [1, "class_senator_vote"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number"], "db_id": "voter_2", "foreign_keys": [[17, 1], [16, 1], [15, 1], [14, 1], [13, 1], [12, 1], [9, 1]], "primary_keys": [1], "table_names": ["student", "voting record"], "table_names_original": ["student", "voting_record"]}, {"column_names": [[-1, "*"], [0, "class code"], [0, "course code"], [0, "class section"], [0, "class time"], [0, "class room"], [0, "professor employee number"], [1, "course code"], [1, "department code"], [1, "course description"], [1, "course credit"], [2, "department code"], [2, "department name"], [2, "school code"], [2, "employee number"], [2, "department address"], [2, "department extension"], [3, "employee number"], [3, "employee last name"], [3, "employee first name"], [3, "employee initial"], [3, "employee job code"], [3, "employee hire date"], [3, "employee date of birth"], [4, "class code"], [4, "student number"], [4, "enroll grade"], [5, "employee number"], [5, "department code"], [5, "professor office"], [5, "professor extension"], [5, "professor high degree"], [6, "student num"], [6, "student last name"], [6, "student first name"], [6, "student init"], [6, "student date of birth"], [6, "student class hours took"], [6, "student class"], [6, "student gpa"], [6, "student transfer"], [6, "department code"], [6, "student phone"], [6, "professor number"]], "column_names_original": [[-1, "*"], [0, "class_code"], [0, "crs_code"], [0, "class_section"], [0, "class_time"], [0, "class_room"], [0, "prof_num"], [1, "crs_code"], [1, "dept_code"], [1, "crs_description"], [1, "crs_credit"], [2, "dept_code"], [2, "dept_name"], [2, "school_code"], [2, "emp_num"], [2, "dept_address"], [2, "dept_extension"], [3, "emp_num"], [3, "emp_lname"], [3, "emp_fname"], [3, "emp_initial"], [3, "emp_jobcode"], [3, "emp_hiredate"], [3, "emp_dob"], [4, "class_code"], [4, "stu_num"], [4, "enroll_grade"], [5, "emp_num"], [5, "dept_code"], [5, "prof_office"], [5, "prof_extension"], [5, "prof_high_degree"], [6, "stu_num"], [6, "stu_lname"], [6, "stu_fname"], [6, "stu_init"], [6, "stu_dob"], [6, "stu_hrs"], [6, "stu_class"], [6, "stu_gpa"], [6, "stu_transfer"], [6, "dept_code"], [6, "stu_phone"], [6, "prof_num"]], "column_types": ["text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "text", "time", "time", "text", "number", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "time", "number", "text", "number", "number", "text", "text", "number"], "db_id": "college_1", "foreign_keys": [[6, 17], [2, 7], [8, 11], [14, 17], [25, 32], [24, 1], [28, 11], [27, 17], [41, 11]], "primary_keys": [1, 7, 11, 17, 32], "table_names": ["class", "course", "department", "employee", "enroll", "professor", "student"], "table_names_original": ["class", "course", "department", "employee", "enroll", "professor", "student"]}, {"column_names": [[-1, "*"], [0, "name"], [0, "seq"], [1, "id"], [1, "name"], [2, "id"], [2, "title"], [2, "artist id"], [3, "id"], [3, "last name"], [3, "first name"], [3, "title"], [3, "reports to"], [3, "birth date"], [3, "hire date"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postal code"], [3, "phone"], [3, "fax"], [3, "email"], [4, "id"], [4, "first name"], [4, "last name"], [4, "company"], [4, "address"], [4, "city"], [4, "state"], [4, "country"], [4, "postal code"], [4, "phone"], [4, "fax"], [4, "email"], [4, "support rep id"], [5, "id"], [5, "name"], [6, "id"], [6, "customer id"], [6, "invoice date"], [6, "billing address"], [6, "billing city"], [6, "billing state"], [6, "billing country"], [6, "billing postal code"], [6, "total"], [7, "id"], [7, "name"], [8, "id"], [8, "name"], [8, "album id"], [8, "media type id"], [8, "genre id"], [8, "composer"], [8, "milliseconds"], [8, "bytes"], [8, "unit price"], [9, "id"], [9, "invoice id"], [9, "track id"], [9, "unit price"], [9, "quantity"], [10, "id"], [10, "name"], [11, "playlist id"], [11, "track id"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [1, "name"], [1, "seq"], [2, "id"], [2, "title"], [2, "artist_id"], [3, "id"], [3, "last_name"], [3, "first_name"], [3, "title"], [3, "reports_to"], [3, "birth_date"], [3, "hire_date"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postal_code"], [3, "phone"], [3, "fax"], [3, "email"], [4, "id"], [4, "first_name"], [4, "last_name"], [4, "company"], [4, "address"], [4, "city"], [4, "state"], [4, "country"], [4, "postal_code"], [4, "phone"], [4, "fax"], [4, "email"], [4, "support_rep_id"], [5, "id"], [5, "name"], [6, "id"], [6, "customer_id"], [6, "invoice_date"], [6, "billing_address"], [6, "billing_city"], [6, "billing_state"], [6, "billing_country"], [6, "billing_postal_code"], [6, "total"], [7, "id"], [7, "name"], [8, "id"], [8, "name"], [8, "album_id"], [8, "media_type_id"], [8, "genre_id"], [8, "composer"], [8, "milliseconds"], [8, "bytes"], [8, "unit_price"], [9, "id"], [9, "invoice_id"], [9, "track_id"], [9, "unit_price"], [9, "quantity"], [10, "id"], [10, "name"], [11, "playlist_id"], [11, "track_id"]], "column_types": ["text", "number", "text", "text", "text", "number", "text", "number", "number", "text", "text", "text", "number", "time", "time", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "number", "number", "time", "text", "text", "text", "text", "text", "number", "number", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number"], "db_id": "store_1", "foreign_keys": [[7, 1], [12, 8], [35, 8], [39, 23], [52, 47], [53, 36], [51, 5], [60, 49], [59, 38], [66, 49], [65, 63]], "primary_keys": [1, 5, 8, 23, 36, 38, 47, 49, 58, 63, 65], "table_names": ["sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "tracks", "invoice lines", "playlists", "playlist tracks"], "table_names_original": ["artists", "something_sequence", "albums", "employees", "customers", "genres", "invoices", "media_types", "tracks", "invoice_lines", "playlists", "playlist_tracks"]}, {"column_names": [[-1, "*"], [0, "artist id"], [0, "artist"], [0, "age"], [0, "famous title"], [0, "famous release date"], [1, "volume id"], [1, "volume issue"], [1, "issue date"], [1, "weeks on top"], [1, "song"], [1, "artist id"], [2, "id"], [2, "music festival"], [2, "date of ceremony"], [2, "category"], [2, "volume"], [2, "result"]], "column_names_original": [[-1, "*"], [0, "artist_id"], [0, "artist"], [0, "age"], [0, "famous_title"], [0, "famous_release_date"], [1, "volume_id"], [1, "volume_issue"], [1, "issue_date"], [1, "weeks_on_top"], [1, "song"], [1, "artist_id"], [2, "id"], [2, "music_festival"], [2, "date_of_ceremony"], [2, "category"], [2, "volume"], [2, "result"]], "column_types": ["text", "number", "text", "number", "text", "text", "number", "text", "text", "number", "text", "number", "number", "text", "text", "text", "number", "text"], "db_id": "music_4", "foreign_keys": [[11, 1], [16, 6]], "primary_keys": [1, 6, 12], "table_names": ["artist", "volume", "music festival"], "table_names_original": ["artist", "volume", "music_festival"]}, {"column_names": [[-1, "*"], [0, "device id"], [0, "device"], [0, "carrier"], [0, "package version"], [0, "applications"], [0, "software platform"], [1, "shop id"], [1, "shop name"], [1, "location"], [1, "open date"], [1, "open year"], [2, "shop id"], [2, "device id"], [2, "quantity"]], "column_names_original": [[-1, "*"], [0, "device_id"], [0, "device"], [0, "carrier"], [0, "package_version"], [0, "applications"], [0, "software_platform"], [1, "shop_id"], [1, "shop_name"], [1, "location"], [1, "open_date"], [1, "open_year"], [2, "shop_id"], [2, "device_id"], [2, "quantity"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "number"], "db_id": "device", "foreign_keys": [[13, 1], [12, 7]], "primary_keys": [1, 7, 12], "table_names": ["device", "shop", "stock"], "table_names_original": ["device", "shop", "stock"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "grape"], [0, "color"], [1, "no"], [1, "appelation"], [1, "county"], [1, "state"], [1, "area"], [1, "isava"], [2, "no"], [2, "grape"], [2, "winery"], [2, "appelation"], [2, "state"], [2, "name"], [2, "year"], [2, "price"], [2, "score"], [2, "cases"], [2, "drink"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "grape"], [0, "color"], [1, "no"], [1, "appelation"], [1, "county"], [1, "state"], [1, "area"], [1, "isava"], [2, "no"], [2, "grape"], [2, "winery"], [2, "appelation"], [2, "state"], [2, "name"], [2, "year"], [2, "price"], [2, "score"], [2, "cases"], [2, "drink"]], "column_types": ["text", "number", "text", "text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "number", "number", "number", "text"], "db_id": "wine_1", "foreign_keys": [[13, 5], [11, 2]], "primary_keys": [1, 4], "table_names": ["grapes", "appellations", "wine"], "table_names_original": ["grapes", "appellations", "wine"]}, {"column_names": [[-1, "*"], [0, "route id"], [0, "destination airport id"], [0, "destination airport"], [0, "source airport id"], [0, "source airport"], [0, "airline id"], [0, "airline"], [0, "code share"], [1, "airport id"], [1, "name"], [1, "city"], [1, "country"], [1, "x"], [1, "y"], [1, "elevation"], [1, "iata"], [1, "icao"], [2, "airline id"], [2, "name"], [2, "iata"], [2, "icao"], [2, "call sign"], [2, "country"], [2, "active"]], "column_names_original": [[-1, "*"], [0, "rid"], [0, "dst_apid"], [0, "dst_ap"], [0, "src_apid"], [0, "src_ap"], [0, "alid"], [0, "airline"], [0, "codeshare"], [1, "apid"], [1, "name"], [1, "city"], [1, "country"], [1, "x"], [1, "y"], [1, "elevation"], [1, "iata"], [1, "icao"], [2, "alid"], [2, "name"], [2, "iata"], [2, "icao"], [2, "callsign"], [2, "country"], [2, "active"]], "column_types": ["text", "number", "number", "text", "number", "text", "number", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "number", "text", "text", "text", "text", "text", "text"], "db_id": "flight_4", "foreign_keys": [[6, 18], [4, 9], [2, 9]], "primary_keys": [1, 9, 18], "table_names": ["routes", "airports", "airlines"], "table_names_original": ["routes", "airports", "airlines"]}, {"column_names": [[-1, "*"], [0, "genre name"], [0, "rating"], [0, "most popular in"], [1, "artist name"], [1, "country"], [1, "gender"], [1, "preferred genre"], [2, "song id"], [2, "artist name"], [2, "file size"], [2, "duration"], [2, "formats"], [3, "song name"], [3, "artist name"], [3, "country"], [3, "song id"], [3, "genre is"], [3, "rating"], [3, "languages"], [3, "releasedate"], [3, "resolution"]], "column_names_original": [[-1, "*"], [0, "g_name"], [0, "rating"], [0, "most_popular_in"], [1, "artist_name"], [1, "country"], [1, "gender"], [1, "preferred_genre"], [2, "f_id"], [2, "artist_name"], [2, "file_size"], [2, "duration"], [2, "formats"], [3, "song_name"], [3, "artist_name"], [3, "country"], [3, "f_id"], [3, "genre_is"], [3, "rating"], [3, "languages"], [3, "releasedate"], [3, "resolution"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "number", "text", "time", "number"], "db_id": "music_1", "foreign_keys": [[7, 1], [9, 4], [17, 1], [16, 8], [14, 4]], "primary_keys": [1, 4, 8, 13], "table_names": ["genre", "artist", "files", "song"], "table_names_original": ["genre", "artist", "files", "song"]}, {"column_names": [[-1, "*"], [0, "company id"], [0, "rank"], [0, "company"], [0, "headquarters"], [0, "main industry"], [0, "sales billion"], [0, "profits billion"], [0, "assets billion"], [0, "market value"], [1, "station id"], [1, "open year"], [1, "location"], [1, "manager name"], [1, "vice manager name"], [1, "representative name"], [2, "station id"], [2, "company id"], [2, "rank of the year"]], "column_names_original": [[-1, "*"], [0, "company_id"], [0, "rank"], [0, "company"], [0, "headquarters"], [0, "main_industry"], [0, "sales_billion"], [0, "profits_billion"], [0, "assets_billion"], [0, "market_value"], [1, "station_id"], [1, "open_year"], [1, "location"], [1, "manager_name"], [1, "vice_manager_name"], [1, "representative_name"], [2, "station_id"], [2, "company_id"], [2, "rank_of_the_year"]], "column_types": ["text", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "text", "text", "text", "text", "number", "number", "number"], "db_id": "gas_company", "foreign_keys": [[17, 1], [16, 10]], "primary_keys": [1, 10, 16], "table_names": ["company", "gas station", "station company"], "table_names_original": ["company", "gas_station", "station_company"]}, {"column_names": [[-1, "*"], [0, "wrestler id"], [0, "name"], [0, "reign"], [0, "days held"], [0, "location"], [0, "event"], [1, "elimination id"], [1, "wrestler id"], [1, "team"], [1, "eliminated by"], [1, "elimination move"], [1, "time"]], "column_names_original": [[-1, "*"], [0, "wrestler_id"], [0, "name"], [0, "reign"], [0, "days_held"], [0, "location"], [0, "event"], [1, "elimination_id"], [1, "wrestler_id"], [1, "team"], [1, "eliminated_by"], [1, "elimination_move"], [1, "time"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "db_id": "wrestler", "foreign_keys": [[8, 1]], "primary_keys": [1, 7], "table_names": ["wrestler", "elimination"], "table_names_original": ["wrestler", "elimination"]}, {"column_names": [[-1, "*"], [0, "player id"], [0, "year"], [0, "game num"], [0, "game id"], [0, "team id"], [0, "league id"], [0, "gp"], [0, "starting pos"], [1, "year"], [1, "team id"], [1, "league id"], [1, "player id"], [1, "g all"], [1, "gs"], [1, "g batting"], [1, "g defense"], [1, "g p"], [1, "g c"], [1, "g 1b"], [1, "g 2b"], [1, "g 3b"], [1, "g ss"], [1, "g lf"], [1, "g cf"], [1, "g rf"], [1, "g of"], [1, "g dh"], [1, "g ph"], [1, "g pr"], [2, "player id"], [2, "award id"], [2, "year"], [2, "league id"], [2, "tie"], [2, "notes"], [3, "player id"], [3, "award id"], [3, "year"], [3, "league id"], [3, "tie"], [3, "notes"], [4, "award id"], [4, "year"], [4, "league id"], [4, "player id"], [4, "points won"], [4, "points max"], [4, "votes first"], [5, "award id"], [5, "year"], [5, "league id"], [5, "player id"], [5, "points won"], [5, "points max"], [5, "votes first"], [6, "player id"], [6, "year"], [6, "stint"], [6, "team id"], [6, "league id"], [6, "g"], [6, "ab"], [6, "r"], [6, "h"], [6, "double"], [6, "triple"], [6, "hr"], [6, "rbi"], [6, "sb"], [6, "cs"], [6, "bb"], [6, "so"], [6, "ibb"], [6, "hbp"], [6, "sh"], [6, "sf"], [6, "g idp"], [7, "year"], [7, "round"], [7, "player id"], [7, "team id"], [7, "league id"], [7, "g"], [7, "ab"], [7, "r"], [7, "h"], [7, "double"], [7, "triple"], [7, "hr"], [7, "rbi"], [7, "sb"], [7, "cs"], [7, "bb"], [7, "so"], [7, "ibb"], [7, "hbp"], [7, "sh"], [7, "sf"], [7, "g idp"], [8, "player id"], [8, "college id"], [8, "year"], [9, "player id"], [9, "year"], [9, "stint"], [9, "team id"], [9, "league id"], [9, "pos"], [9, "g"], [9, "gs"], [9, "inn outs"], [9, "po"], [9, "a"], [9, "e"], [9, "dp"], [9, "pb"], [9, "wp"], [9, "sb"], [9, "cs"], [9, "zr"], [10, "player id"], [10, "year"], [10, "stint"], [10, "glf"], [10, "gcf"], [10, "grf"], [11, "player id"], [11, "year"], [11, "team id"], [11, "league id"], [11, "round"], [11, "pos"], [11, "g"], [11, "gs"], [11, "inn outs"], [11, "po"], [11, "a"], [11, "e"], [11, "dp"], [11, "tp"], [11, "pb"], [11, "sb"], [11, "cs"], [12, "player id"], [12, "yearid"], [12, "votedby"], [12, "ballots"], [12, "needed"], [12, "votes"], [12, "inducted"], [12, "category"], [12, "needed note"], [13, "year"], [13, "league id"], [13, "team id"], [13, "park id"], [13, "span first"], [13, "span last"], [13, "games"], [13, "openings"], [13, "attendance"], [14, "player id"], [14, "year"], [14, "team id"], [14, "league id"], [14, "inseason"], [14, "g"], [14, "w"], [14, "l"], [14, "rank"], [14, "plyr mgr"], [15, "player id"], [15, "year"], [15, "team id"], [15, "league id"], [15, "inseason"], [15, "half"], [15, "g"], [15, "w"], [15, "l"], [15, "rank"], [16, "player id"], [16, "birth year"], [16, "birth month"], [16, "birth day"], [16, "birth country"], [16, "birth state"], [16, "birth city"], [16, "death year"], [16, "death month"], [16, "death day"], [16, "death country"], [16, "death state"], [16, "death city"], [16, "name first"], [16, "name last"], [16, "name given"], [16, "weight"], [16, "height"], [16, "bats"], [16, "throws"], [16, "debut"], [16, "final game"], [16, "retro id"], [16, "bbref id"], [17, "park id"], [17, "park name"], [17, "park alias"], [17, "city"], [17, "state"], [17, "country"], [18, "player id"], [18, "year"], [18, "stint"], [18, "team id"], [18, "league id"], [18, "w"], [18, "l"], [18, "g"], [18, "gs"], [18, "cg"], [18, "sho"], [18, "sv"], [18, "ipouts"], [18, "h"], [18, "er"], [18, "hr"], [18, "bb"], [18, "so"], [18, "baopp"], [18, "era"], [18, "ibb"], [18, "wp"], [18, "hbp"], [18, "bk"], [18, "bfp"], [18, "gf"], [18, "r"], [18, "sh"], [18, "sf"], [18, "g idp"], [19, "player id"], [19, "year"], [19, "round"], [19, "team id"], [19, "league id"], [19, "w"], [19, "l"], [19, "g"], [19, "gs"], [19, "cg"], [19, "sho"], [19, "sv"], [19, "ipouts"], [19, "h"], [19, "er"], [19, "hr"], [19, "bb"], [19, "so"], [19, "baopp"], [19, "era"], [19, "ibb"], [19, "wp"], [19, "hbp"], [19, "bk"], [19, "bfp"], [19, "gf"], [19, "r"], [19, "sh"], [19, "sf"], [19, "g idp"], [20, "year"], [20, "team id"], [20, "league id"], [20, "player id"], [20, "salary"], [21, "college id"], [21, "name full"], [21, "city"], [21, "state"], [21, "country"], [22, "year"], [22, "round"], [22, "team id winner"], [22, "league id winner"], [22, "team id loser"], [22, "league id loser"], [22, "wins"], [22, "losses"], [22, "ties"], [23, "year"], [23, "league id"], [23, "team id"], [23, "franchise id"], [23, "div id"], [23, "rank"], [23, "g"], [23, "ghome"], [23, "w"], [23, "l"], [23, "div win"], [23, "wc win"], [23, "lg win"], [23, "ws win"], [23, "r"], [23, "ab"], [23, "h"], [23, "double"], [23, "triple"], [23, "hr"], [23, "bb"], [23, "so"], [23, "sb"], [23, "cs"], [23, "hbp"], [23, "sf"], [23, "ra"], [23, "er"], [23, "era"], [23, "cg"], [23, "sho"], [23, "sv"], [23, "ipouts"], [23, "ha"], [23, "hra"], [23, "bba"], [23, "soa"], [23, "e"], [23, "dp"], [23, "fp"], [23, "name"], [23, "park"], [23, "attendance"], [23, "bpf"], [23, "ppf"], [23, "team id br"], [23, "team id lahman45"], [23, "team id retro"], [24, "franchise id"], [24, "franchise name"], [24, "active"], [24, "na assoc"], [25, "year"], [25, "league id"], [25, "team id"], [25, "half"], [25, "div id"], [25, "div win"], [25, "rank"], [25, "g"], [25, "w"], [25, "l"]], "column_names_original": [[-1, "*"], [0, "player_id"], [0, "year"], [0, "game_num"], [0, "game_id"], [0, "team_id"], [0, "league_id"], [0, "gp"], [0, "starting_pos"], [1, "year"], [1, "team_id"], [1, "league_id"], [1, "player_id"], [1, "g_all"], [1, "gs"], [1, "g_batting"], [1, "g_defense"], [1, "g_p"], [1, "g_c"], [1, "g_1b"], [1, "g_2b"], [1, "g_3b"], [1, "g_ss"], [1, "g_lf"], [1, "g_cf"], [1, "g_rf"], [1, "g_of"], [1, "g_dh"], [1, "g_ph"], [1, "g_pr"], [2, "player_id"], [2, "award_id"], [2, "year"], [2, "league_id"], [2, "tie"], [2, "notes"], [3, "player_id"], [3, "award_id"], [3, "year"], [3, "league_id"], [3, "tie"], [3, "notes"], [4, "award_id"], [4, "year"], [4, "league_id"], [4, "player_id"], [4, "points_won"], [4, "points_max"], [4, "votes_first"], [5, "award_id"], [5, "year"], [5, "league_id"], [5, "player_id"], [5, "points_won"], [5, "points_max"], [5, "votes_first"], [6, "player_id"], [6, "year"], [6, "stint"], [6, "team_id"], [6, "league_id"], [6, "g"], [6, "ab"], [6, "r"], [6, "h"], [6, "double"], [6, "triple"], [6, "hr"], [6, "rbi"], [6, "sb"], [6, "cs"], [6, "bb"], [6, "so"], [6, "ibb"], [6, "hbp"], [6, "sh"], [6, "sf"], [6, "g_idp"], [7, "year"], [7, "round"], [7, "player_id"], [7, "team_id"], [7, "league_id"], [7, "g"], [7, "ab"], [7, "r"], [7, "h"], [7, "double"], [7, "triple"], [7, "hr"], [7, "rbi"], [7, "sb"], [7, "cs"], [7, "bb"], [7, "so"], [7, "ibb"], [7, "hbp"], [7, "sh"], [7, "sf"], [7, "g_idp"], [8, "player_id"], [8, "college_id"], [8, "year"], [9, "player_id"], [9, "year"], [9, "stint"], [9, "team_id"], [9, "league_id"], [9, "pos"], [9, "g"], [9, "gs"], [9, "inn_outs"], [9, "po"], [9, "a"], [9, "e"], [9, "dp"], [9, "pb"], [9, "wp"], [9, "sb"], [9, "cs"], [9, "zr"], [10, "player_id"], [10, "year"], [10, "stint"], [10, "glf"], [10, "gcf"], [10, "grf"], [11, "player_id"], [11, "year"], [11, "team_id"], [11, "league_id"], [11, "round"], [11, "pos"], [11, "g"], [11, "gs"], [11, "inn_outs"], [11, "po"], [11, "a"], [11, "e"], [11, "dp"], [11, "tp"], [11, "pb"], [11, "sb"], [11, "cs"], [12, "player_id"], [12, "yearid"], [12, "votedby"], [12, "ballots"], [12, "needed"], [12, "votes"], [12, "inducted"], [12, "category"], [12, "needed_note"], [13, "year"], [13, "league_id"], [13, "team_id"], [13, "park_id"], [13, "span_first"], [13, "span_last"], [13, "games"], [13, "openings"], [13, "attendance"], [14, "player_id"], [14, "year"], [14, "team_id"], [14, "league_id"], [14, "inseason"], [14, "g"], [14, "w"], [14, "l"], [14, "rank"], [14, "plyr_mgr"], [15, "player_id"], [15, "year"], [15, "team_id"], [15, "league_id"], [15, "inseason"], [15, "half"], [15, "g"], [15, "w"], [15, "l"], [15, "rank"], [16, "player_id"], [16, "birth_year"], [16, "birth_month"], [16, "birth_day"], [16, "birth_country"], [16, "birth_state"], [16, "birth_city"], [16, "death_year"], [16, "death_month"], [16, "death_day"], [16, "death_country"], [16, "death_state"], [16, "death_city"], [16, "name_first"], [16, "name_last"], [16, "name_given"], [16, "weight"], [16, "height"], [16, "bats"], [16, "throws"], [16, "debut"], [16, "final_game"], [16, "retro_id"], [16, "bbref_id"], [17, "park_id"], [17, "park_name"], [17, "park_alias"], [17, "city"], [17, "state"], [17, "country"], [18, "player_id"], [18, "year"], [18, "stint"], [18, "team_id"], [18, "league_id"], [18, "w"], [18, "l"], [18, "g"], [18, "gs"], [18, "cg"], [18, "sho"], [18, "sv"], [18, "ipouts"], [18, "h"], [18, "er"], [18, "hr"], [18, "bb"], [18, "so"], [18, "baopp"], [18, "era"], [18, "ibb"], [18, "wp"], [18, "hbp"], [18, "bk"], [18, "bfp"], [18, "gf"], [18, "r"], [18, "sh"], [18, "sf"], [18, "g_idp"], [19, "player_id"], [19, "year"], [19, "round"], [19, "team_id"], [19, "league_id"], [19, "w"], [19, "l"], [19, "g"], [19, "gs"], [19, "cg"], [19, "sho"], [19, "sv"], [19, "ipouts"], [19, "h"], [19, "er"], [19, "hr"], [19, "bb"], [19, "so"], [19, "baopp"], [19, "era"], [19, "ibb"], [19, "wp"], [19, "hbp"], [19, "bk"], [19, "bfp"], [19, "gf"], [19, "r"], [19, "sh"], [19, "sf"], [19, "g_idp"], [20, "year"], [20, "team_id"], [20, "league_id"], [20, "player_id"], [20, "salary"], [21, "college_id"], [21, "name_full"], [21, "city"], [21, "state"], [21, "country"], [22, "year"], [22, "round"], [22, "team_id_winner"], [22, "league_id_winner"], [22, "team_id_loser"], [22, "league_id_loser"], [22, "wins"], [22, "losses"], [22, "ties"], [23, "year"], [23, "league_id"], [23, "team_id"], [23, "franchise_id"], [23, "div_id"], [23, "rank"], [23, "g"], [23, "ghome"], [23, "w"], [23, "l"], [23, "div_win"], [23, "wc_win"], [23, "lg_win"], [23, "ws_win"], [23, "r"], [23, "ab"], [23, "h"], [23, "double"], [23, "triple"], [23, "hr"], [23, "bb"], [23, "so"], [23, "sb"], [23, "cs"], [23, "hbp"], [23, "sf"], [23, "ra"], [23, "er"], [23, "era"], [23, "cg"], [23, "sho"], [23, "sv"], [23, "ipouts"], [23, "ha"], [23, "hra"], [23, "bba"], [23, "soa"], [23, "e"], [23, "dp"], [23, "fp"], [23, "name"], [23, "park"], [23, "attendance"], [23, "bpf"], [23, "ppf"], [23, "team_id_br"], [23, "team_id_lahman45"], [23, "team_id_retro"], [24, "franchise_id"], [24, "franchise_name"], [24, "active"], [24, "na_assoc"], [25, "year"], [25, "league_id"], [25, "team_id"], [25, "half"], [25, "div_id"], [25, "div_win"], [25, "rank"], [25, "g"], [25, "w"], [25, "l"]], "column_types": ["text", "text", "number", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "text", "number", "text", "text", "number", "text", "text", "number", "text", "text", "text", "text", "number", "text", "text", "number", "number", "number", "text", "number", "text", "text", "number", "number", "number", "text", "number", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "text", "number", "text", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "number", "text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "text", "number", "number", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "text", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "number", "number", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "number", "text", "text", "number", "number", "number", "number"], "db_id": "baseball_1", "foreign_keys": [[1, 182], [12, 182], [10, 293], [30, 182], [36, 182], [52, 182], [56, 182], [81, 293], [80, 182], [101, 277], [100, 182], [103, 182], [121, 182], [127, 182], [144, 182], [156, 206], [155, 293], [164, 293], [174, 293]], "primary_keys": [], "table_names": ["all star", "appearances", "manager award", "player award", "manager award vote", "player award vote", "batting", "batting postseason", "player college", "fielding", "fielding outfield", "fielding postseason", "hall of fame", "home game", "manager", "manager half", "player", "park", "pitching", "pitching postseason", "salary", "college", "postseason", "team", "team franchise", "team half"], "table_names_original": ["all_star", "appearances", "manager_award", "player_award", "manager_award_vote", "player_award_vote", "batting", "batting_postseason", "player_college", "fielding", "fielding_outfield", "fielding_postseason", "hall_of_fame", "home_game", "manager", "manager_half", "player", "park", "pitching", "pitching_postseason", "salary", "college", "postseason", "team", "team_franchise", "team_half"]}, {"column_names": [[-1, "*"], [0, "address id"], [0, "address details"], [1, "staff id"], [1, "staff gender"], [1, "staff name"], [2, "supplier id"], [2, "supplier name"], [2, "supplier phone"], [3, "department store chain id"], [3, "department store chain name"], [4, "customer id"], [4, "payment method code"], [4, "customer code"], [4, "customer name"], [4, "customer address"], [4, "customer phone"], [4, "customer email"], [5, "product id"], [5, "product type code"], [5, "product name"], [5, "product price"], [6, "supplier id"], [6, "address id"], [6, "date from"], [6, "date to"], [7, "customer id"], [7, "address id"], [7, "date from"], [7, "date to"], [8, "order id"], [8, "customer id"], [8, "order status code"], [8, "order date"], [9, "department store id"], [9, "department store chain id"], [9, "store name"], [9, "store address"], [9, "store phone"], [9, "store email"], [10, "department id"], [10, "department store id"], [10, "department name"], [11, "order item id"], [11, "order id"], [11, "product id"], [12, "product id"], [12, "supplier id"], [12, "date supplied from"], [12, "date supplied to"], [12, "total amount purchased"], [12, "total value purchased"], [13, "staff id"], [13, "department id"], [13, "date assigned from"], [13, "job title code"], [13, "date assigned to"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "address_details"], [1, "staff_id"], [1, "staff_gender"], [1, "staff_name"], [2, "supplier_id"], [2, "supplier_name"], [2, "supplier_phone"], [3, "dept_store_chain_id"], [3, "dept_store_chain_name"], [4, "customer_id"], [4, "payment_method_code"], [4, "customer_code"], [4, "customer_name"], [4, "customer_address"], [4, "customer_phone"], [4, "customer_email"], [5, "product_id"], [5, "product_type_code"], [5, "product_name"], [5, "product_price"], [6, "supplier_id"], [6, "address_id"], [6, "date_from"], [6, "date_to"], [7, "customer_id"], [7, "address_id"], [7, "date_from"], [7, "date_to"], [8, "order_id"], [8, "customer_id"], [8, "order_status_code"], [8, "order_date"], [9, "dept_store_id"], [9, "dept_store_chain_id"], [9, "store_name"], [9, "store_address"], [9, "store_phone"], [9, "store_email"], [10, "department_id"], [10, "dept_store_id"], [10, "department_name"], [11, "order_item_id"], [11, "order_id"], [11, "product_id"], [12, "product_id"], [12, "supplier_id"], [12, "date_supplied_from"], [12, "date_supplied_to"], [12, "total_amount_purchased"], [12, "total_value_purchased"], [13, "staff_id"], [13, "department_id"], [13, "date_assigned_from"], [13, "job_title_code"], [13, "date_assigned_to"]], "column_types": ["text", "number", "text", "number", "text", "text", "number", "text", "text", "number", "text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "number", "number", "number", "time", "time", "number", "number", "time", "time", "number", "number", "text", "time", "number", "number", "text", "text", "text", "text", "number", "number", "text", "number", "number", "number", "number", "number", "time", "time", "text", "number", "number", "number", "time", "text", "time"], "db_id": "department_store", "foreign_keys": [[22, 6], [23, 1], [26, 11], [27, 1], [31, 11], [35, 9], [41, 34], [45, 18], [44, 30], [46, 18], [47, 6], [52, 3], [53, 40]], "primary_keys": [1, 3, 6, 9, 11, 18, 22, 26, 30, 34, 40, 43, 46, 52], "table_names": ["addresses", "staff", "suppliers", "department store chain", "customers", "products", "supplier addresses", "customer addresses", "customer orders", "department stores", "departments", "order items", "product suppliers", "staff department assignments"], "table_names_original": ["addresses", "staff", "suppliers", "department_store_chain", "customers", "products", "supplier_addresses", "customer_addresses", "customer_orders", "department_stores", "departments", "order_items", "product_suppliers", "staff_department_assignments"]}, {"column_names": [[-1, "*"], [0, "role code"], [0, "role description"], [1, "user id"], [1, "role code"], [1, "user name"], [1, "user login"], [1, "password"], [2, "document structure code"], [2, "parent document structure code"], [2, "document structure description"], [3, "functional area code"], [3, "parent functional area code"], [3, "functional area description"], [4, "image id"], [4, "image alt text"], [4, "image name"], [4, "image url"], [5, "document code"], [5, "document structure code"], [5, "document type code"], [5, "access count"], [5, "document name"], [6, "document code"], [6, "functional area code"], [7, "section id"], [7, "document code"], [7, "section sequence"], [7, "section code"], [7, "section title"], [8, "section id"], [8, "image id"]], "column_names_original": [[-1, "*"], [0, "role_code"], [0, "role_description"], [1, "user_id"], [1, "role_code"], [1, "user_name"], [1, "user_login"], [1, "password"], [2, "document_structure_code"], [2, "parent_document_structure_code"], [2, "document_structure_description"], [3, "functional_area_code"], [3, "parent_functional_area_code"], [3, "functional_area_description"], [4, "image_id"], [4, "image_alt_text"], [4, "image_name"], [4, "image_url"], [5, "document_code"], [5, "document_structure_code"], [5, "document_type_code"], [5, "access_count"], [5, "document_name"], [6, "document_code"], [6, "functional_area_code"], [7, "section_id"], [7, "document_code"], [7, "section_sequence"], [7, "section_code"], [7, "section_title"], [8, "section_id"], [8, "image_id"]], "column_types": ["text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "number", "text", "text", "number", "number"], "db_id": "document_management", "foreign_keys": [[4, 1], [19, 8], [24, 11], [23, 18], [26, 18], [31, 14], [30, 25]], "primary_keys": [1, 3, 8, 11, 14, 18, 25, 30], "table_names": ["roles", "users", "document structures", "functional areas", "images", "documents", "document functional areas", "document sections", "document sections images"], "table_names_original": ["roles", "users", "document_structures", "functional_areas", "images", "documents", "document_functional_areas", "document_sections", "document_sections_images"]}, {"column_names": [[-1, "*"], [0, "conductor id"], [0, "name"], [0, "age"], [0, "nationality"], [0, "year of work"], [1, "orchestra id"], [1, "orchestra"], [1, "conductor id"], [1, "record company"], [1, "year of founded"], [1, "major record format"], [2, "performance id"], [2, "orchestra id"], [2, "type"], [2, "date"], [2, "official ratings (millions)"], [2, "weekly rank"], [2, "share"], [3, "show id"], [3, "performance id"], [3, "if first show"], [3, "result"], [3, "attendance"]], "column_names_original": [[-1, "*"], [0, "conductor_id"], [0, "name"], [0, "age"], [0, "nationality"], [0, "year_of_work"], [1, "orchestra_id"], [1, "orchestra"], [1, "conductor_id"], [1, "record_company"], [1, "year_of_founded"], [1, "major_record_format"], [2, "performance_id"], [2, "orchestra_id"], [2, "type"], [2, "date"], [2, "official_ratings_(millions)"], [2, "weekly_rank"], [2, "share"], [3, "show_id"], [3, "performance_id"], [3, "if_first_show"], [3, "result"], [3, "attendance"]], "column_types": ["text", "number", "text", "number", "text", "number", "number", "text", "number", "text", "number", "text", "number", "number", "text", "text", "number", "text", "text", "number", "number", "others", "text", "number"], "db_id": "orchestra", "foreign_keys": [[8, 1], [13, 6], [20, 12]], "primary_keys": [1, 6, 12], "table_names": ["conductor", "orchestra", "performance", "show"], "table_names_original": ["conductor", "orchestra", "performance", "show"]}, {"column_names": [[-1, "*"], [0, "country id"], [0, "country name"], [0, "capital"], [0, "official native language"], [1, "team id"], [1, "name"], [2, "season"], [2, "player"], [2, "position"], [2, "country"], [2, "team"], [2, "draft pick number"], [2, "draft class"], [2, "college"], [3, "player id"], [3, "player"], [3, "years played"], [3, "total wl"], [3, "singles wl"], [3, "doubles wl"], [3, "team"]], "column_names_original": [[-1, "*"], [0, "country_id"], [0, "country_name"], [0, "capital"], [0, "official_native_language"], [1, "team_id"], [1, "name"], [2, "season"], [2, "player"], [2, "position"], [2, "country"], [2, "team"], [2, "draft_pick_number"], [2, "draft_class"], [2, "college"], [3, "player_id"], [3, "player"], [3, "years_played"], [3, "total_wl"], [3, "singles_wl"], [3, "doubles_wl"], [3, "team"]], "column_types": ["text", "number", "text", "text", "text", "number", "text", "number", "text", "text", "number", "number", "number", "text", "text", "number", "text", "text", "text", "text", "text", "number"], "db_id": "match_season", "foreign_keys": [[11, 5], [10, 1], [21, 5]], "primary_keys": [1, 5, 7, 15], "table_names": ["country", "team", "match season", "player"], "table_names_original": ["country", "team", "match_season", "player"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "series name"], [0, "country"], [0, "language"], [0, "content"], [0, "pixel aspect ratio par"], [0, "hight definition tv"], [0, "pay per view ppv"], [0, "package option"], [1, "id"], [1, "episode"], [1, "air date"], [1, "rating"], [1, "share"], [1, "18 49 rating share"], [1, "viewers m"], [1, "weekly rank"], [1, "channel"], [2, "id"], [2, "title"], [2, "directed by"], [2, "written by"], [2, "original air date"], [2, "production code"], [2, "channel"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "series_name"], [0, "country"], [0, "language"], [0, "content"], [0, "pixel_aspect_ratio_par"], [0, "hight_definition_tv"], [0, "pay_per_view_ppv"], [0, "package_option"], [1, "id"], [1, "episode"], [1, "air_date"], [1, "rating"], [1, "share"], [1, "18_49_rating_share"], [1, "viewers_m"], [1, "weekly_rank"], [1, "channel"], [2, "id"], [2, "title"], [2, "directed_by"], [2, "written_by"], [2, "original_air_date"], [2, "production_code"], [2, "channel"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "number", "text", "number", "text", "text", "text", "text", "number", "text"], "db_id": "tvshow", "foreign_keys": [[18, 1], [25, 1]], "primary_keys": [1, 10, 19], "table_names": ["tv channel", "tv series", "cartoon"], "table_names_original": ["tv_channel", "tv_series", "cartoon"]}, {"column_names": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth city"], [0, "birth year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country code"], [6, "did"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth city"], [6, "birth year"], [7, "pid"], [7, "gender"], [7, "name"], [7, "nationality"], [7, "birth city"], [7, "birth year"], [8, "id"], [8, "msid"], [8, "did"], [9, "id"], [9, "keyword"], [10, "id"], [10, "msid"], [10, "pid"], [11, "mid"], [11, "title"], [11, "release year"], [11, "title aka"], [11, "budget"], [12, "id"], [12, "msid"], [12, "kid"], [13, "sid"], [13, "title"], [13, "release year"], [13, "num of seasons"], [13, "num of episodes"], [13, "title aka"], [13, "budget"], [14, "wid"], [14, "gender"], [14, "name"], [14, "nationality"], [14, "num of episodes"], [14, "birth city"], [14, "birth year"], [15, "id"], [15, "msid"], [15, "wid"]], "column_names_original": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth_city"], [0, "birth_year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country_code"], [6, "did"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth_city"], [6, "birth_year"], [7, "pid"], [7, "gender"], [7, "name"], [7, "nationality"], [7, "birth_city"], [7, "birth_year"], [8, "id"], [8, "msid"], [8, "did"], [9, "id"], [9, "keyword"], [10, "id"], [10, "msid"], [10, "pid"], [11, "mid"], [11, "title"], [11, "release_year"], [11, "title_aka"], [11, "budget"], [12, "id"], [12, "msid"], [12, "kid"], [13, "sid"], [13, "title"], [13, "release_year"], [13, "num_of_seasons"], [13, "num_of_episodes"], [13, "title_aka"], [13, "budget"], [14, "wid"], [14, "gender"], [14, "name"], [14, "nationality"], [14, "num_of_episodes"], [14, "birth_city"], [14, "birth_year"], [15, "id"], [15, "msid"], [15, "wid"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "number", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number"], "db_id": "imdb", "foreign_keys": [[11, 8], [12, 1], [17, 8], [18, 14], [36, 22], [35, 8], [41, 28], [40, 8], [48, 8], [66, 57], [65, 8]], "primary_keys": [1, 7, 10, 14, 16, 19, 22, 28, 34, 37, 39, 42, 47, 50, 57], "table_names": ["actor", "copyright", "cast", "genre", "classification", "company", "director", "producer", "directed by", "keyword", "made by", "movie", "tags", "tv series", "writer", "written by"], "table_names_original": ["actor", "copyright", "cast", "genre", "classification", "company", "director", "producer", "directed_by", "keyword", "made_by", "movie", "tags", "tv_series", "writer", "written_by"]}, {"column_names": [[-1, "*"], [0, "cont id"], [0, "continent"], [1, "country id"], [1, "country name"], [1, "continent"], [2, "id"], [2, "maker"], [2, "full name"], [2, "country"], [3, "model id"], [3, "maker"], [3, "model"], [4, "make id"], [4, "model"], [4, "make"], [5, "id"], [5, "mpg"], [5, "cylinders"], [5, "edispl"], [5, "horsepower"], [5, "weight"], [5, "accelerate"], [5, "year"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [2, "id"], [2, "maker"], [2, "fullname"], [2, "country"], [3, "modelid"], [3, "maker"], [3, "model"], [4, "makeid"], [4, "model"], [4, "make"], [5, "id"], [5, "mpg"], [5, "cylinders"], [5, "edispl"], [5, "horsepower"], [5, "weight"], [5, "accelerate"], [5, "year"]], "column_types": ["text", "number", "text", "number", "text", "number", "number", "text", "text", "text", "number", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number"], "db_id": "car_1", "foreign_keys": [[5, 1], [9, 3], [11, 6], [14, 12], [16, 13]], "primary_keys": [1, 3, 6, 10, 13, 16], "table_names": ["continents", "countries", "car makers", "model list", "car names", "cars data"], "table_names_original": ["continents", "countries", "car_makers", "model_list", "car_names", "cars_data"]}, {"column_names": [[-1, "*"], [0, "student id"], [0, "last name"], [0, "first name"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city code"], [1, "student id"], [1, "pet id"], [2, "pet id"], [2, "pet type"], [2, "pet age"], [2, "weight"]], "column_names_original": [[-1, "*"], [0, "stuid"], [0, "lname"], [0, "fname"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city_code"], [1, "stuid"], [1, "petid"], [2, "petid"], [2, "pettype"], [2, "pet_age"], [2, "weight"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "text", "number", "number"], "db_id": "pets_1", "foreign_keys": [[9, 1], [10, 11]], "primary_keys": [1, 11], "table_names": ["student", "has pet", "pets"], "table_names_original": ["student", "has_pet", "pets"]}, {"column_names": [[-1, "*"], [0, "venue id"], [0, "venue name"], [1, "author id"], [1, "author name"], [2, "dataset id"], [2, "dataset name"], [3, "journal id"], [3, "journal name"], [4, "key phrase id"], [4, "key phrase name"], [5, "paper id"], [5, "title"], [5, "venue id"], [5, "year"], [5, "number citing"], [5, "number cited by"], [5, "journal id"], [6, "citing paper id"], [6, "cited paper id"], [7, "paper id"], [7, "dataset id"], [8, "paper id"], [8, "key phrase id"], [9, "paper id"], [9, "author id"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [2, "datasetid"], [2, "datasetname"], [3, "journalid"], [3, "journalname"], [4, "keyphraseid"], [4, "keyphrasename"], [5, "paperid"], [5, "title"], [5, "venueid"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [6, "citingpaperid"], [6, "citedpaperid"], [7, "paperid"], [7, "datasetid"], [8, "paperid"], [8, "keyphraseid"], [9, "paperid"], [9, "authorid"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "db_id": "scholar", "foreign_keys": [[13, 1], [17, 7], [18, 11], [19, 11], [23, 9], [22, 11], [25, 3], [24, 11]], "primary_keys": [1, 3, 5, 7, 9, 11, 18, 21, 23, 24], "table_names": ["venue", "author", "dataset", "journal", "key phrase", "paper", "cite", "paper dataset", "paper key phrase", "writes"], "table_names_original": ["venue", "author", "dataset", "journal", "keyphrase", "paper", "cite", "paperdataset", "paperkeyphrase", "writes"]}, {"column_names": [[-1, "*"], [0, "customer id"], [0, "name"], [1, "customer id"], [1, "balance"], [2, "customer id"], [2, "balance"]], "column_names_original": [[-1, "*"], [0, "custid"], [0, "name"], [1, "custid"], [1, "balance"], [2, "custid"], [2, "balance"]], "column_types": ["text", "number", "text", "number", "number", "number", "number"], "db_id": "small_bank_1", "foreign_keys": [[3, 1], [5, 1]], "primary_keys": [1, 3, 5], "table_names": ["accounts", "savings", "checking"], "table_names_original": ["accounts", "savings", "checking"]}, {"column_names": [[-1, "*"], [0, "aid"], [0, "homepage"], [0, "name"], [0, "oid"], [1, "cid"], [1, "homepage"], [1, "name"], [2, "did"], [2, "name"], [3, "aid"], [3, "did"], [4, "cid"], [4, "did"], [5, "homepage"], [5, "jid"], [5, "name"], [6, "did"], [6, "jid"], [7, "keyword"], [7, "kid"], [8, "did"], [8, "kid"], [9, "abstract"], [9, "cid"], [9, "citation num"], [9, "jid"], [9, "pid"], [9, "reference num"], [9, "title"], [9, "year"], [10, "did"], [10, "pid"], [11, "continent"], [11, "homepage"], [11, "name"], [11, "oid"], [12, "pid"], [12, "kid"], [13, "aid"], [13, "pid"], [14, "cited"], [14, "citing"]], "column_names_original": [[-1, "*"], [0, "aid"], [0, "homepage"], [0, "name"], [0, "oid"], [1, "cid"], [1, "homepage"], [1, "name"], [2, "did"], [2, "name"], [3, "aid"], [3, "did"], [4, "cid"], [4, "did"], [5, "homepage"], [5, "jid"], [5, "name"], [6, "did"], [6, "jid"], [7, "keyword"], [7, "kid"], [8, "did"], [8, "kid"], [9, "abstract"], [9, "cid"], [9, "citation_num"], [9, "jid"], [9, "pid"], [9, "reference_num"], [9, "title"], [9, "year"], [10, "did"], [10, "pid"], [11, "continent"], [11, "homepage"], [11, "name"], [11, "oid"], [12, "pid"], [12, "kid"], [13, "aid"], [13, "pid"], [14, "cited"], [14, "citing"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "text", "number", "text", "number", "number", "number", "number", "text", "number", "text", "number", "number", "text", "number", "number", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number"], "db_id": "academic", "foreign_keys": [[11, 8], [10, 1], [13, 8], [12, 5], [17, 8], [18, 15], [21, 8], [22, 20], [24, 5], [26, 15], [31, 8], [32, 27], [38, 20], [37, 27], [39, 1], [40, 27], [42, 27], [41, 27]], "primary_keys": [1, 5, 8, 11, 13, 15, 17, 20, 21, 27, 31, 36, 38, 39], "table_names": ["author", "conference", "domain", "domain author", "domain conference", "journal", "domain journal", "keyword", "domain keyword", "publication", "domain publication", "organization", "publication keyword", "writes", "cite"], "table_names_original": ["author", "conference", "domain", "domain_author", "domain_conference", "journal", "domain_journal", "keyword", "domain_keyword", "publication", "domain_publication", "organization", "publication_keyword", "writes", "cite"]}, {"column_names": [[-1, "*"], [0, "employee id"], [0, "name"], [0, "position"], [0, "ssn"], [1, "departmentid"], [1, "name"], [1, "head"], [2, "physician"], [2, "department"], [2, "primary affiliation"], [3, "code"], [3, "name"], [3, "cost"], [4, "physician"], [4, "treatment"], [4, "certification date"], [4, "certification expires"], [5, "ssn"], [5, "name"], [5, "address"], [5, "phone"], [5, "insurance id"], [5, "pcp"], [6, "employee id"], [6, "name"], [6, "position"], [6, "registered"], [6, "ssn"], [7, "appointment id"], [7, "patient"], [7, "prep nurse"], [7, "physician"], [7, "start"], [7, "end"], [7, "examination room"], [8, "code"], [8, "name"], [8, "brand"], [8, "description"], [9, "physician"], [9, "patient"], [9, "medication"], [9, "date"], [9, "appointment"], [9, "dose"], [10, "block floor"], [10, "block code"], [11, "roomnumber"], [11, "room type"], [11, "block floor"], [11, "block code"], [11, "unavailable"], [12, "nurse"], [12, "block floor"], [12, "block code"], [12, "oncall start"], [12, "oncall end"], [13, "stay id"], [13, "patient"], [13, "room"], [13, "stay start"], [13, "stay end"], [14, "patient"], [14, "procedures"], [14, "stay"], [14, "date undergoes"], [14, "physician"], [14, "assisting nurse"]], "column_names_original": [[-1, "*"], [0, "employeeid"], [0, "name"], [0, "position"], [0, "ssn"], [1, "departmentid"], [1, "name"], [1, "head"], [2, "physician"], [2, "department"], [2, "primaryaffiliation"], [3, "code"], [3, "name"], [3, "cost"], [4, "physician"], [4, "treatment"], [4, "certificationdate"], [4, "certificationexpires"], [5, "ssn"], [5, "name"], [5, "address"], [5, "phone"], [5, "insuranceid"], [5, "pcp"], [6, "employeeid"], [6, "name"], [6, "position"], [6, "registered"], [6, "ssn"], [7, "appointmentid"], [7, "patient"], [7, "prepnurse"], [7, "physician"], [7, "start"], [7, "end"], [7, "examinationroom"], [8, "code"], [8, "name"], [8, "brand"], [8, "description"], [9, "physician"], [9, "patient"], [9, "medication"], [9, "date"], [9, "appointment"], [9, "dose"], [10, "blockfloor"], [10, "blockcode"], [11, "roomnumber"], [11, "roomtype"], [11, "blockfloor"], [11, "blockcode"], [11, "unavailable"], [12, "nurse"], [12, "blockfloor"], [12, "blockcode"], [12, "oncallstart"], [12, "oncallend"], [13, "stayid"], [13, "patient"], [13, "room"], [13, "staystart"], [13, "stayend"], [14, "patient"], [14, "procedures"], [14, "stay"], [14, "dateundergoes"], [14, "physician"], [14, "assistingnurse"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "number", "number", "number", "boolean", "number", "text", "number", "number", "number", "time", "time", "number", "text", "text", "text", "number", "number", "number", "text", "text", "boolean", "number", "number", "number", "number", "number", "time", "time", "text", "number", "text", "text", "text", "number", "number", "number", "time", "number", "text", "number", "number", "number", "text", "number", "number", "boolean", "number", "number", "number", "time", "time", "number", "number", "number", "time", "time", "number", "number", "number", "time", "number", "number"], "db_id": "hospital_1", "foreign_keys": [[7, 1], [9, 5], [8, 1], [15, 11], [14, 1], [23, 1], [32, 1], [31, 24], [30, 18], [44, 29], [42, 36], [41, 18], [40, 1], [50, 46], [51, 47], [54, 46], [55, 47], [53, 24], [60, 48], [59, 18], [68, 24], [67, 1], [65, 58], [64, 11], [63, 18]], "primary_keys": [1, 5, 8, 11, 14, 18, 24, 29, 36, 40, 46, 48, 53, 58, 63], "table_names": ["physician", "department", "affiliated with", "procedures", "trained in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "stay", "undergoes"], "table_names_original": ["physician", "department", "affiliated_with", "procedures", "trained_in", "patient", "nurse", "appointment", "medication", "prescribes", "block", "room", "on_call", "stay", "undergoes"]}, {"column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [1, "person id"], [1, "first name"], [1, "middle name"], [1, "last name"], [1, "cell mobile number"], [1, "email address"], [1, "login name"], [1, "password"], [2, "student id"], [2, "student details"], [3, "course id"], [3, "course name"], [3, "course description"], [3, "other details"], [4, "person address id"], [4, "person id"], [4, "address id"], [4, "date from"], [4, "date to"], [5, "student id"], [5, "course id"], [5, "registration date"], [6, "student id"], [6, "course id"], [6, "date of attendance"], [7, "candidate id"], [7, "candidate details"], [8, "candidate id"], [8, "qualification"], [8, "assessment date"], [8, "asessment outcome code"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [1, "person_id"], [1, "first_name"], [1, "middle_name"], [1, "last_name"], [1, "cell_mobile_number"], [1, "email_address"], [1, "login_name"], [1, "password"], [2, "student_id"], [2, "student_details"], [3, "course_id"], [3, "course_name"], [3, "course_description"], [3, "other_details"], [4, "person_address_id"], [4, "person_id"], [4, "address_id"], [4, "date_from"], [4, "date_to"], [5, "student_id"], [5, "course_id"], [5, "registration_date"], [6, "student_id"], [6, "course_id"], [6, "date_of_attendance"], [7, "candidate_id"], [7, "candidate_details"], [8, "candidate_id"], [8, "qualification"], [8, "assessment_date"], [8, "asessment_outcome_code"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "number", "number", "time", "time", "number", "number", "time", "number", "number", "time", "number", "text", "number", "text", "time", "text"], "db_id": "student_assessment", "foreign_keys": [[16, 8], [24, 1], [23, 8], [28, 18], [27, 16], [30, 27], [31, 28], [33, 8], [35, 33]], "primary_keys": [1, 8, 16, 18, 22, 27, 30, 33, 35], "table_names": ["addresses", "people", "students", "courses", "people addresses", "student course registrations", "student course attendance", "candidates", "candidate assessments"], "table_names_original": ["addresses", "people", "students", "courses", "people_addresses", "student_course_registrations", "student_course_attendance", "candidates", "candidate_assessments"]}, {"column_names": [[-1, "*"], [0, "player id"], [0, "sponsor name"], [0, "player name"], [0, "gender"], [0, "residence"], [0, "occupation"], [0, "votes"], [0, "rank"], [1, "club id"], [1, "club name"], [1, "region"], [1, "start year"], [2, "coach id"], [2, "player name"], [2, "gender"], [2, "club id"], [2, "rank"], [3, "player id"], [3, "coach id"], [3, "starting year"], [4, "rank"], [4, "club id"], [4, "gold"], [4, "big silver"], [4, "small silver"], [4, "bronze"], [4, "points"]], "column_names_original": [[-1, "*"], [0, "player_id"], [0, "sponsor_name"], [0, "player_name"], [0, "gender"], [0, "residence"], [0, "occupation"], [0, "votes"], [0, "rank"], [1, "club_id"], [1, "club_name"], [1, "region"], [1, "start_year"], [2, "coach_id"], [2, "coach_name"], [2, "gender"], [2, "club_id"], [2, "rank"], [3, "player_id"], [3, "coach_id"], [3, "starting_year"], [4, "rank"], [4, "club_id"], [4, "gold"], [4, "big_silver"], [4, "small_silver"], [4, "bronze"], [4, "points"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "text", "number", "text", "text", "number", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "db_id": "riding_club", "foreign_keys": [[16, 9], [19, 13], [18, 1], [22, 9]], "primary_keys": [1, 9, 13, 18, 21], "table_names": ["player", "club", "coach", "player coach", "match result"], "table_names_original": ["player", "club", "coach", "player_coach", "match_result"]}, {"column_names": [[-1, "*"], [0, "characteristic type code"], [0, "characteristic type description"], [1, "color code"], [1, "color description"], [2, "product category code"], [2, "product category description"], [2, "unit of measure"], [3, "characteristic id"], [3, "characteristic type code"], [3, "characteristic data type"], [3, "characteristic name"], [3, "other characteristic details"], [4, "product id"], [4, "color code"], [4, "product category code"], [4, "product name"], [4, "typical buying price"], [4, "typical selling price"], [4, "product description"], [4, "other product details"], [5, "product id"], [5, "characteristic id"], [5, "product characteristic value"]], "column_names_original": [[-1, "*"], [0, "characteristic_type_code"], [0, "characteristic_type_description"], [1, "color_code"], [1, "color_description"], [2, "product_category_code"], [2, "product_category_description"], [2, "unit_of_measure"], [3, "characteristic_id"], [3, "characteristic_type_code"], [3, "characteristic_data_type"], [3, "characteristic_name"], [3, "other_characteristic_details"], [4, "product_id"], [4, "color_code"], [4, "product_category_code"], [4, "product_name"], [4, "typical_buying_price"], [4, "typical_selling_price"], [4, "product_description"], [4, "other_product_details"], [5, "product_id"], [5, "characteristic_id"], [5, "product_characteristic_value"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text"], "db_id": "products_gen_characteristics", "foreign_keys": [[9, 1], [14, 3], [15, 5], [21, 13], [22, 8]], "primary_keys": [1, 3, 5, 8, 13], "table_names": ["reference characteristic types", "reference colors", "reference product categories", "characteristics", "products", "product characteristics"], "table_names_original": ["ref_characteristic_types", "ref_colors", "ref_product_categories", "characteristics", "products", "product_characteristics"]}, {"column_names": [[-1, "*"], [0, "artist id"], [0, "name"], [0, "country"], [0, "year join"], [0, "age"], [1, "exhibition id"], [1, "year"], [1, "theme"], [1, "artist id"], [1, "ticket price"], [2, "exhibition id"], [2, "date"], [2, "attendance"]], "column_names_original": [[-1, "*"], [0, "artist_id"], [0, "name"], [0, "country"], [0, "year_join"], [0, "age"], [1, "exhibition_id"], [1, "year"], [1, "theme"], [1, "artist_id"], [1, "ticket_price"], [2, "exhibition_id"], [2, "date"], [2, "attendance"]], "column_types": ["text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "number"], "db_id": "theme_gallery", "foreign_keys": [[9, 1], [11, 6]], "primary_keys": [1, 6, 11], "table_names": ["artist", "exhibition", "exhibition record"], "table_names_original": ["artist", "exhibition", "exhibition_record"]}, {"column_names": [[-1, "*"], [0, "building"], [0, "room number"], [0, "capacity"], [1, "department name"], [1, "building"], [1, "budget"], [2, "course id"], [2, "title"], [2, "department name"], [2, "credits"], [3, "id"], [3, "name"], [3, "department name"], [3, "salary"], [4, "course id"], [4, "section id"], [4, "semester"], [4, "year"], [4, "building"], [4, "room number"], [4, "time slot id"], [5, "id"], [5, "course id"], [5, "section id"], [5, "semester"], [5, "year"], [6, "id"], [6, "name"], [6, "department name"], [6, "total credits"], [7, "id"], [7, "course id"], [7, "section id"], [7, "semester"], [7, "year"], [7, "grade"], [8, "student id"], [8, "instructor id"], [9, "time slot id"], [9, "day"], [9, "start hour"], [9, "start minute"], [9, "end hour"], [9, "end minute"], [10, "course id"], [10, "prerequisite id"]], "column_names_original": [[-1, "*"], [0, "building"], [0, "room_number"], [0, "capacity"], [1, "dept_name"], [1, "building"], [1, "budget"], [2, "course_id"], [2, "title"], [2, "dept_name"], [2, "credits"], [3, "id"], [3, "name"], [3, "dept_name"], [3, "salary"], [4, "course_id"], [4, "sec_id"], [4, "semester"], [4, "year"], [4, "building"], [4, "room_number"], [4, "time_slot_id"], [5, "id"], [5, "course_id"], [5, "sec_id"], [5, "semester"], [5, "year"], [6, "id"], [6, "name"], [6, "dept_name"], [6, "tot_cred"], [7, "id"], [7, "course_id"], [7, "sec_id"], [7, "semester"], [7, "year"], [7, "grade"], [8, "s_id"], [8, "i_id"], [9, "time_slot_id"], [9, "day"], [9, "start_hr"], [9, "start_min"], [9, "end_hr"], [9, "end_min"], [10, "course_id"], [10, "prereq_id"]], "column_types": ["text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "number", "number", "number", "text", "text"], "db_id": "college_2", "foreign_keys": [[9, 4], [13, 4], [19, 1], [20, 2], [15, 7], [22, 11], [23, 15], [24, 16], [25, 17], [26, 18], [29, 4], [31, 27], [32, 15], [33, 16], [34, 17], [35, 18], [37, 27], [38, 11], [46, 7], [45, 7]], "primary_keys": [1, 4, 7, 11, 15, 22, 27, 31, 37, 39, 45], "table_names": ["classroom", "department", "course", "instructor", "section", "teaches", "student", "takes classes", "advisor", "time slot", "prerequisite"], "table_names_original": ["classroom", "department", "course", "instructor", "section", "teaches", "student", "takes", "advisor", "time_slot", "prereq"]}, {"column_names": [[-1, "*"], [0, "name"], [0, "age"], [0, "city"], [0, "gender"], [0, "job"], [1, "name"], [1, "friend"], [1, "year"]], "column_names_original": [[-1, "*"], [0, "name"], [0, "age"], [0, "city"], [0, "gender"], [0, "job"], [1, "name"], [1, "friend"], [1, "year"]], "column_types": ["text", "text", "number", "text", "text", "text", "text", "text", "number"], "db_id": "network_2", "foreign_keys": [[7, 1], [6, 1]], "primary_keys": [1], "table_names": ["person", "person friend"], "table_names_original": ["person", "personfriend"]}, {"column_names": [[-1, "*"], [0, "journal id"], [0, "date"], [0, "theme"], [0, "sales"], [1, "editor id"], [1, "name"], [1, "age"], [2, "editor id"], [2, "journal id"], [2, "work type"]], "column_names_original": [[-1, "*"], [0, "journal_id"], [0, "date"], [0, "theme"], [0, "sales"], [1, "editor_id"], [1, "name"], [1, "age"], [2, "editor_id"], [2, "journal_id"], [2, "work_type"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "number", "number", "number", "text"], "db_id": "journal_committee", "foreign_keys": [[9, 1], [8, 5]], "primary_keys": [1, 5, 8], "table_names": ["journal", "editor", "journal committee"], "table_names_original": ["journal", "editor", "journal_committee"]}, {"column_names": [[-1, "*"], [0, "people id"], [0, "name"], [0, "country"], [0, "is male"], [0, "age"], [1, "church id"], [1, "name"], [1, "organized by"], [1, "open date"], [1, "continuation of"], [2, "church id"], [2, "male id"], [2, "female id"], [2, "year"]], "column_names_original": [[-1, "*"], [0, "people_id"], [0, "name"], [0, "country"], [0, "is_male"], [0, "age"], [1, "church_id"], [1, "name"], [1, "organized_by"], [1, "open_date"], [1, "continuation_of"], [2, "church_id"], [2, "male_id"], [2, "female_id"], [2, "year"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "text", "number", "text", "number", "number", "number", "number"], "db_id": "wedding", "foreign_keys": [[13, 1], [12, 1], [11, 6]], "primary_keys": [1, 6, 11], "table_names": ["people", "church", "wedding"], "table_names_original": ["people", "church", "wedding"]}, {"column_names": [[-1, "*"], [0, "people id"], [0, "district"], [0, "name"], [0, "party"], [0, "age"], [1, "debate id"], [1, "date"], [1, "venue"], [1, "num of audience"], [2, "debate id"], [2, "affirmative"], [2, "negative"], [2, "if affirmative win"]], "column_names_original": [[-1, "*"], [0, "people_id"], [0, "district"], [0, "name"], [0, "party"], [0, "age"], [1, "debate_id"], [1, "date"], [1, "venue"], [1, "num_of_audience"], [2, "debate_id"], [2, "affirmative"], [2, "negative"], [2, "if_affirmative_win"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "text", "number", "number", "number", "number", "others"], "db_id": "debate", "foreign_keys": [[12, 1], [11, 1], [10, 6]], "primary_keys": [1, 6, 10], "table_names": ["people", "debate", "debate people"], "table_names_original": ["people", "debate", "debate_people"]}, {"column_names": [[-1, "*"], [0, "service id"], [0, "service type code"], [1, "participant id"], [1, "participant type code"], [1, "participant details"], [2, "event id"], [2, "service id"], [2, "event details"], [3, "event id"], [3, "participant id"]], "column_names_original": [[-1, "*"], [0, "service_id"], [0, "service_type_code"], [1, "participant_id"], [1, "participant_type_code"], [1, "participant_details"], [2, "event_id"], [2, "service_id"], [2, "event_details"], [3, "event_id"], [3, "participant_id"]], "column_types": ["text", "number", "text", "number", "text", "text", "number", "number", "text", "number", "number"], "db_id": "local_govt_in_alabama", "foreign_keys": [[7, 1], [9, 6], [10, 3]], "primary_keys": [1, 3, 6, 9], "table_names": ["services", "participants", "events", "participants in events"], "table_names_original": ["services", "participants", "events", "participants_in_events"]}, {"column_names": [[-1, "*"], [0, "course id"], [0, "staring date"], [0, "course"], [1, "teacher id"], [1, "name"], [1, "age"], [1, "hometown"], [2, "course id"], [2, "teacher id"], [2, "grade"]], "column_names_original": [[-1, "*"], [0, "course_id"], [0, "staring_date"], [0, "course"], [1, "teacher_id"], [1, "name"], [1, "age"], [1, "hometown"], [2, "course_id"], [2, "teacher_id"], [2, "grade"]], "column_types": ["text", "number", "text", "text", "number", "text", "text", "text", "number", "number", "number"], "db_id": "course_teach", "foreign_keys": [[9, 4], [8, 1]], "primary_keys": [1, 4, 8], "table_names": ["course", "teacher", "course arrange"], "table_names_original": ["course", "teacher", "course_arrange"]}, {"column_names": [[-1, "*"], [0, "customer id"], [0, "customer name"], [0, "customer details"], [1, "invoice number"], [1, "invoice date"], [1, "invoice details"], [2, "order id"], [2, "customer id"], [2, "order status"], [2, "date order placed"], [2, "order details"], [3, "product id"], [3, "product name"], [3, "product details"], [4, "order item id"], [4, "product id"], [4, "order id"], [4, "order item status"], [4, "order item details"], [5, "shipment id"], [5, "order id"], [5, "invoice number"], [5, "shipment tracking number"], [5, "shipment date"], [5, "other shipment details"], [6, "shipment id"], [6, "order item id"]], "column_names_original": [[-1, "*"], [0, "customer_id"], [0, "customer_name"], [0, "customer_details"], [1, "invoice_number"], [1, "invoice_date"], [1, "invoice_details"], [2, "order_id"], [2, "customer_id"], [2, "order_status"], [2, "date_order_placed"], [2, "order_details"], [3, "product_id"], [3, "product_name"], [3, "product_details"], [4, "order_item_id"], [4, "product_id"], [4, "order_id"], [4, "order_item_status"], [4, "order_item_details"], [5, "shipment_id"], [5, "order_id"], [5, "invoice_number"], [5, "shipment_tracking_number"], [5, "shipment_date"], [5, "other_shipment_details"], [6, "shipment_id"], [6, "order_item_id"]], "column_types": ["text", "number", "text", "text", "number", "time", "text", "number", "number", "text", "time", "text", "number", "text", "text", "number", "number", "number", "text", "text", "number", "number", "number", "text", "time", "text", "number", "number"], "db_id": "tracking_orders", "foreign_keys": [[8, 1], [16, 12], [17, 7], [22, 4], [21, 7], [26, 20], [27, 15]], "primary_keys": [1, 4, 7, 12, 15, 20], "table_names": ["customers", "invoices", "orders", "products", "order items", "shipments", "shipment items"], "table_names_original": ["customers", "invoices", "orders", "products", "order_items", "shipments", "shipment_items"]}, {"column_names": [[-1, "*"], [0, "customer id"], [0, "customer details"], [1, "staff id"], [1, "staff details"], [2, "policy id"], [2, "customer id"], [2, "policy type code"], [2, "start date"], [2, "end date"], [3, "claim header id"], [3, "claim status code"], [3, "claim type code"], [3, "policy id"], [3, "date of claim"], [3, "date of settlement"], [3, "amount claimed"], [3, "amount piad"], [4, "claim id"], [4, "document type code"], [4, "created by staff id"], [4, "created date"], [5, "claim stage id"], [5, "next claim stage id"], [5, "claim status name"], [5, "claim status description"], [6, "claim processing id"], [6, "claim id"], [6, "claim outcome code"], [6, "claim stage id"], [6, "staff id"]], "column_names_original": [[-1, "*"], [0, "customer_id"], [0, "customer_details"], [1, "staff_id"], [1, "staff_details"], [2, "policy_id"], [2, "customer_id"], [2, "policy_type_code"], [2, "start_date"], [2, "end_date"], [3, "claim_header_id"], [3, "claim_status_code"], [3, "claim_type_code"], [3, "policy_id"], [3, "date_of_claim"], [3, "date_of_settlement"], [3, "amount_claimed"], [3, "amount_piad"], [4, "claim_id"], [4, "document_type_code"], [4, "created_by_staff_id"], [4, "created_date"], [5, "claim_stage_id"], [5, "next_claim_stage_id"], [5, "claim_status_name"], [5, "claim_status_description"], [6, "claim_processing_id"], [6, "claim_id"], [6, "claim_outcome_code"], [6, "claim_stage_id"], [6, "staff_id"]], "column_types": ["text", "number", "text", "number", "text", "number", "number", "text", "time", "time", "number", "text", "text", "number", "time", "time", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "number", "number", "text", "number", "number"], "db_id": "insurance_and_eClaims", "foreign_keys": [[6, 1], [13, 5], [20, 3], [18, 10], [30, 3], [27, 10]], "primary_keys": [1, 3, 5, 10, 18, 22, 26], "table_names": ["customers", "staff", "policies", "claim headers", "claims documents", "claims processing stages", "claims processing"], "table_names_original": ["customers", "staff", "policies", "claim_headers", "claims_documents", "claims_processing_stages", "claims_processing"]}, {"column_names": [[-1, "*"], [0, "bid"], [0, "business id"], [0, "name"], [0, "full address"], [0, "city"], [0, "latitude"], [0, "longitude"], [0, "review count"], [0, "is open"], [0, "rating"], [0, "state"], [1, "id"], [1, "business id"], [1, "category name"], [2, "uid"], [2, "user id"], [2, "name"], [3, "cid"], [3, "business id"], [3, "count"], [3, "day"], [4, "id"], [4, "business id"], [4, "neighbourhood name"], [5, "rid"], [5, "business id"], [5, "user id"], [5, "rating"], [5, "text"], [5, "year"], [5, "month"], [6, "tip id"], [6, "business id"], [6, "text"], [6, "user id"], [6, "likes"], [6, "year"], [6, "month"]], "column_names_original": [[-1, "*"], [0, "bid"], [0, "business_id"], [0, "name"], [0, "full_address"], [0, "city"], [0, "latitude"], [0, "longitude"], [0, "review_count"], [0, "is_open"], [0, "rating"], [0, "state"], [1, "id"], [1, "business_id"], [1, "category_name"], [2, "uid"], [2, "user_id"], [2, "name"], [3, "cid"], [3, "business_id"], [3, "count"], [3, "day"], [4, "id"], [4, "business_id"], [4, "neighbourhood_name"], [5, "rid"], [5, "business_id"], [5, "user_id"], [5, "rating"], [5, "text"], [5, "year"], [5, "month"], [6, "tip_id"], [6, "business_id"], [6, "text"], [6, "user_id"], [6, "likes"], [6, "year"], [6, "month"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "number", "number", "number", "text", "number", "text", "text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "text", "text", "number", "number", "text"], "db_id": "yelp", "foreign_keys": [[13, 2], [19, 2], [23, 2], [27, 16], [26, 2], [35, 16], [33, 2]], "primary_keys": [1, 12, 15, 18, 22, 25, 32], "table_names": ["business", "category", "user", "checkin", "neighbourhood", "review", "tip"], "table_names_original": ["business", "category", "user", "checkin", "neighbourhood", "review", "tip"]}, {"db_id": "college_1_minus_1_0", "table_names": ["course", "department", "enroll", "professor", "student", "class_employee"], "table_names_original": ["course", "department", "enroll", "professor", "student", "class_employee"], "column_names": [[-1, "*"], [5, "class code"], [5, "crs code"], [5, "class section"], [5, "class time"], [5, "class room"], [0, "crs code"], [0, "dept code"], [0, "crs description"], [0, "crs credit"], [1, "dept code"], [1, "dept name"], [1, "school code"], [1, "emp num"], [1, "dept address"], [1, "dept extension"], [5, "emp lname"], [5, "emp fname"], [5, "emp initial"], [5, "emp jobcode"], [5, "emp hiredate"], [5, "emp dob"], [2, "class code"], [2, "stu num"], [2, "enroll grade"], [3, "emp num"], [3, "dept code"], [3, "prof office"], [3, "prof extension"], [3, "prof high degree"], [4, "stu num"], [4, "stu lname"], [4, "stu fname"], [4, "stu init"], [4, "stu dob"], [4, "stu hrs"], [4, "stu class"], [4, "stu gpa"], [4, "stu transfer"], [4, "dept code"], [4, "stu phone"], [4, "prof num"], [5, "prof_num"]], "column_names_original": [[-1, "*"], [5, "class_code"], [5, "crs_code"], [5, "class_section"], [5, "class_time"], [5, "class_room"], [0, "crs_code"], [0, "dept_code"], [0, "crs_description"], [0, "crs_credit"], [1, "dept_code"], [1, "dept_name"], [1, "school_code"], [1, "emp_num"], [1, "dept_address"], [1, "dept_extension"], [5, "emp_lname"], [5, "emp_fname"], [5, "emp_initial"], [5, "emp_jobcode"], [5, "emp_hiredate"], [5, "emp_dob"], [2, "class_code"], [2, "stu_num"], [2, "enroll_grade"], [3, "emp_num"], [3, "dept_code"], [3, "prof_office"], [3, "prof_extension"], [3, "prof_high_degree"], [4, "stu_num"], [4, "stu_lname"], [4, "stu_fname"], [4, "stu_init"], [4, "stu_dob"], [4, "stu_hrs"], [4, "stu_class"], [4, "stu_gpa"], [4, "stu_transfer"], [4, "dept_code"], [4, "stu_phone"], [4, "prof_num"], [5, "prof_num"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "time", "number", "text", "number", "number", "text", "text", "number", "number"], "primary_keys": [1, 6, 10, 30, 42], "foreign_keys": [[2, 6], [7, 10], [13, 42], [23, 30], [22, 1], [26, 10], [25, 42], [39, 10]]}, {"db_id": "scholar_minus_1_0", "table_names": ["venue", "author", "dataset", "journal", "paper", "cite", "paper dataset", "writes", "paperkeyphrase_keyphrase"], "table_names_original": ["venue", "author", "dataset", "journal", "paper", "cite", "paperdataset", "writes", "paperkeyphrase_keyphrase"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [2, "datasetid"], [2, "datasetname"], [3, "journalid"], [3, "journalname"], [8, "keyphrasename"], [4, "paperid"], [4, "title"], [4, "venueid"], [4, "year"], [4, "numciting"], [4, "numcitedby"], [4, "journalid"], [5, "citingpaperid"], [5, "citedpaperid"], [6, "paperid"], [6, "datasetid"], [8, "paperid"], [7, "paperid"], [7, "authorid"], [8, "keyphraseid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [2, "datasetid"], [2, "datasetname"], [3, "journalid"], [3, "journalname"], [8, "keyphrasename"], [4, "paperid"], [4, "title"], [4, "venueid"], [4, "year"], [4, "numciting"], [4, "numcitedby"], [4, "journalid"], [5, "citingpaperid"], [5, "citedpaperid"], [6, "paperid"], [6, "datasetid"], [8, "paperid"], [7, "paperid"], [7, "authorid"], [8, "keyphraseid"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "number", "text", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 3, 5, 7, 10, 17, 20, 24, 24], "foreign_keys": [[12, 1], [16, 7], [17, 10], [18, 10], [21, 10], [23, 3], [24, 10]]}, {"db_id": "scholar_minus_1_1", "table_names": ["venue", "author", "journal", "key phrase", "paper", "cite", "paper key phrase", "writes", "paperdataset_dataset"], "table_names_original": ["venue", "author", "journal", "keyphrase", "paper", "cite", "paperkeyphrase", "writes", "paperdataset_dataset"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [8, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [4, "paperid"], [4, "title"], [4, "venueid"], [4, "year"], [4, "numciting"], [4, "numcitedby"], [4, "journalid"], [5, "citingpaperid"], [5, "citedpaperid"], [8, "paperid"], [6, "paperid"], [6, "keyphraseid"], [7, "paperid"], [7, "authorid"], [8, "datasetid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [8, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [4, "paperid"], [4, "title"], [4, "venueid"], [4, "year"], [4, "numciting"], [4, "numcitedby"], [4, "journalid"], [5, "citingpaperid"], [5, "citedpaperid"], [8, "paperid"], [6, "paperid"], [6, "keyphraseid"], [7, "paperid"], [7, "authorid"], [8, "datasetid"]], "column_types": ["text", "number", "text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 3, 6, 8, 10, 17, 21, 24, 24], "foreign_keys": [[12, 1], [16, 6], [17, 10], [18, 10], [21, 8], [20, 10], [23, 3], [24, 10]]}, {"db_id": "scholar_minus_1_3", "table_names": ["venue", "dataset", "journal", "key phrase", "paper", "cite", "paper dataset", "paper key phrase", "writes_author"], "table_names_original": ["venue", "dataset", "journal", "keyphrase", "paper", "cite", "paperdataset", "paperkeyphrase", "writes_author"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [8, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [4, "paperid"], [4, "title"], [4, "venueid"], [4, "year"], [4, "numciting"], [4, "numcitedby"], [4, "journalid"], [5, "citingpaperid"], [5, "citedpaperid"], [6, "paperid"], [6, "datasetid"], [7, "paperid"], [7, "keyphraseid"], [8, "paperid"], [8, "authorid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [8, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [4, "paperid"], [4, "title"], [4, "venueid"], [4, "year"], [4, "numciting"], [4, "numcitedby"], [4, "journalid"], [5, "citingpaperid"], [5, "citedpaperid"], [6, "paperid"], [6, "datasetid"], [7, "paperid"], [7, "keyphraseid"], [8, "paperid"], [8, "authorid"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 4, 6, 8, 10, 17, 20, 22, 24, 24], "foreign_keys": [[12, 1], [16, 6], [17, 10], [18, 10], [22, 8], [21, 10], [24, 10]]}, {"db_id": "scholar_minus_1_5", "table_names": ["venue", "author", "dataset", "journal", "key phrase", "cite", "paper dataset", "writes", "paper_paperkeyphrase"], "table_names_original": ["venue", "author", "dataset", "journal", "keyphrase", "cite", "paperdataset", "writes", "paper_paperkeyphrase"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [2, "datasetid"], [2, "datasetname"], [3, "journalid"], [3, "journalname"], [4, "keyphraseid"], [4, "keyphrasename"], [8, "title"], [8, "venueid"], [8, "year"], [8, "numciting"], [8, "numcitedby"], [8, "journalid"], [5, "citingpaperid"], [5, "citedpaperid"], [6, "paperid"], [6, "datasetid"], [8, "keyphraseid"], [7, "paperid"], [7, "authorid"], [8, "paperid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [2, "datasetid"], [2, "datasetname"], [3, "journalid"], [3, "journalname"], [4, "keyphraseid"], [4, "keyphrasename"], [8, "title"], [8, "venueid"], [8, "year"], [8, "numciting"], [8, "numcitedby"], [8, "journalid"], [5, "citingpaperid"], [5, "citedpaperid"], [6, "paperid"], [6, "datasetid"], [8, "keyphraseid"], [7, "paperid"], [7, "authorid"], [8, "paperid"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 3, 5, 7, 9, 17, 20, 21, 24, 24], "foreign_keys": [[12, 1], [16, 7], [17, 24], [18, 24], [21, 9], [23, 3], [24, 24]]}, {"db_id": "yelp_minus_1_0", "table_names": ["user", "checkin", "neighbourhood", "review", "tip", "category_business"], "table_names_original": ["user", "checkin", "neighbourhood", "review", "tip", "category_business"], "column_names": [[-1, "*"], [5, "bid"], [5, "name"], [5, "full address"], [5, "city"], [5, "latitude"], [5, "longitude"], [5, "review count"], [5, "is open"], [5, "rating"], [5, "state"], [5, "id"], [5, "category name"], [0, "uid"], [0, "user id"], [0, "name"], [1, "cid"], [1, "business id"], [1, "count"], [1, "day"], [2, "id"], [2, "business id"], [2, "neighbourhood name"], [3, "rid"], [3, "business id"], [3, "user id"], [3, "rating"], [3, "text"], [3, "year"], [3, "month"], [4, "tip id"], [4, "business id"], [4, "text"], [4, "user id"], [4, "likes"], [4, "year"], [4, "month"], [5, "business_id"]], "column_names_original": [[-1, "*"], [5, "bid"], [5, "name"], [5, "full_address"], [5, "city"], [5, "latitude"], [5, "longitude"], [5, "review_count"], [5, "is_open"], [5, "rating"], [5, "state"], [5, "id"], [5, "category_name"], [0, "uid"], [0, "user_id"], [0, "name"], [1, "cid"], [1, "business_id"], [1, "count"], [1, "day"], [2, "id"], [2, "business_id"], [2, "neighbourhood_name"], [3, "rid"], [3, "business_id"], [3, "user_id"], [3, "rating"], [3, "text"], [3, "year"], [3, "month"], [4, "tip_id"], [4, "business_id"], [4, "text"], [4, "user_id"], [4, "likes"], [4, "year"], [4, "month"], [5, "business_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "number", "number", "text", "number", "text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "text", "text", "number", "number", "text", "text"], "primary_keys": [1, 11, 13, 16, 20, 23, 30], "foreign_keys": [[17, 37], [21, 37], [25, 14], [24, 37], [33, 14], [31, 37]]}, {"db_id": "academic_minus_1_0", "table_names": ["author", "conference", "domain", "domain author", "domain conference", "journal", "domain journal", "domain keyword", "publication", "domain publication", "organization", "writes", "cite", "publication_keyword_keyword"], "table_names_original": ["author", "conference", "domain", "domain_author", "domain_conference", "journal", "domain_journal", "domain_keyword", "publication", "domain_publication", "organization", "writes", "cite", "publication_keyword_keyword"], "column_names": [[-1, "*"], [0, "aid"], [0, "homepage"], [0, "name"], [0, "oid"], [1, "cid"], [1, "homepage"], [1, "name"], [2, "did"], [2, "name"], [3, "aid"], [3, "did"], [4, "cid"], [4, "did"], [5, "homepage"], [5, "jid"], [5, "name"], [6, "did"], [6, "jid"], [13, "keyword"], [7, "did"], [7, "kid"], [8, "abstract"], [8, "cid"], [8, "citation num"], [8, "jid"], [8, "pid"], [8, "reference num"], [8, "title"], [8, "year"], [9, "did"], [9, "pid"], [10, "continent"], [10, "homepage"], [10, "name"], [10, "oid"], [13, "pid"], [11, "aid"], [11, "pid"], [12, "cited"], [12, "citing"], [13, "kid"]], "column_names_original": [[-1, "*"], [0, "aid"], [0, "homepage"], [0, "name"], [0, "oid"], [1, "cid"], [1, "homepage"], [1, "name"], [2, "did"], [2, "name"], [3, "aid"], [3, "did"], [4, "cid"], [4, "did"], [5, "homepage"], [5, "jid"], [5, "name"], [6, "did"], [6, "jid"], [13, "keyword"], [7, "did"], [7, "kid"], [8, "abstract"], [8, "cid"], [8, "citation_num"], [8, "jid"], [8, "pid"], [8, "reference_num"], [8, "title"], [8, "year"], [9, "did"], [9, "pid"], [10, "continent"], [10, "homepage"], [10, "name"], [10, "oid"], [13, "pid"], [11, "aid"], [11, "pid"], [12, "cited"], [12, "citing"], [13, "kid"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "text", "number", "text", "number", "number", "number", "number", "text", "number", "text", "number", "number", "text", "number", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 5, 8, 11, 13, 15, 17, 20, 26, 30, 35, 37, 41], "foreign_keys": [[11, 8], [10, 1], [13, 8], [12, 5], [17, 8], [18, 15], [20, 8], [21, 41], [23, 5], [25, 15], [30, 8], [31, 26], [36, 26], [37, 1], [38, 26], [40, 26], [41, 26]]}, {"db_id": "academic_minus_1_2", "table_names": ["conference", "domain", "domain author", "domain conference", "journal", "domain journal", "keyword", "domain keyword", "publication", "domain publication", "publication keyword", "writes", "cite", "organization_author"], "table_names_original": ["conference", "domain", "domain_author", "domain_conference", "journal", "domain_journal", "keyword", "domain_keyword", "publication", "domain_publication", "publication_keyword", "writes", "cite", "organization_author"], "column_names": [[-1, "*"], [13, "aid"], [13, "homepage author"], [13, "name author"], [0, "cid"], [0, "homepage"], [0, "name"], [1, "did"], [1, "name"], [2, "aid"], [2, "did"], [3, "cid"], [3, "did"], [4, "homepage"], [4, "jid"], [4, "name"], [5, "did"], [5, "jid"], [6, "keyword"], [6, "kid"], [7, "did"], [7, "kid"], [8, "abstract"], [8, "cid"], [8, "citation num"], [8, "jid"], [8, "pid"], [8, "reference num"], [8, "title"], [8, "year"], [9, "did"], [9, "pid"], [13, "continent"], [13, "homepage organization"], [13, "name organization"], [10, "pid"], [10, "kid"], [11, "aid"], [11, "pid"], [12, "cited"], [12, "citing"], [13, "oid"]], "column_names_original": [[-1, "*"], [13, "aid"], [13, "homepage_author"], [13, "name_author"], [0, "cid"], [0, "homepage"], [0, "name"], [1, "did"], [1, "name"], [2, "aid"], [2, "did"], [3, "cid"], [3, "did"], [4, "homepage"], [4, "jid"], [4, "name"], [5, "did"], [5, "jid"], [6, "keyword"], [6, "kid"], [7, "did"], [7, "kid"], [8, "abstract"], [8, "cid"], [8, "citation_num"], [8, "jid"], [8, "pid"], [8, "reference_num"], [8, "title"], [8, "year"], [9, "did"], [9, "pid"], [13, "continent"], [13, "homepage_organization"], [13, "name_organization"], [10, "pid"], [10, "kid"], [11, "aid"], [11, "pid"], [12, "cited"], [12, "citing"], [13, "oid"]], "column_types": ["text", "number", "text", "text", "number", "text", "text", "number", "text", "number", "number", "number", "number", "text", "number", "text", "number", "number", "text", "number", "number", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 4, 7, 10, 12, 14, 16, 19, 20, 26, 30, 36, 37, 41], "foreign_keys": [[10, 7], [9, 1], [12, 7], [11, 4], [16, 7], [17, 14], [20, 7], [21, 19], [23, 4], [25, 14], [30, 7], [31, 26], [36, 19], [35, 26], [37, 1], [38, 26], [40, 26], [41, 26]]}, {"db_id": "academic_minus_1_1", "table_names": ["conference", "domain", "domain author", "domain conference", "journal", "domain journal", "keyword", "domain keyword", "publication", "domain publication", "organization", "publication keyword", "cite", "writes_author"], "table_names_original": ["conference", "domain", "domain_author", "domain_conference", "journal", "domain_journal", "keyword", "domain_keyword", "publication", "domain_publication", "organization", "publication_keyword", "cite", "writes_author"], "column_names": [[-1, "*"], [13, "homepage"], [13, "name"], [13, "oid"], [0, "cid"], [0, "homepage"], [0, "name"], [1, "did"], [1, "name"], [2, "aid"], [2, "did"], [3, "cid"], [3, "did"], [4, "homepage"], [4, "jid"], [4, "name"], [5, "did"], [5, "jid"], [6, "keyword"], [6, "kid"], [7, "did"], [7, "kid"], [8, "abstract"], [8, "cid"], [8, "citation num"], [8, "jid"], [8, "pid"], [8, "reference num"], [8, "title"], [8, "year"], [9, "did"], [9, "pid"], [10, "continent"], [10, "homepage"], [10, "name"], [10, "oid"], [11, "pid"], [11, "kid"], [13, "pid"], [12, "cited"], [12, "citing"], [13, "aid"]], "column_names_original": [[-1, "*"], [13, "homepage"], [13, "name"], [13, "oid"], [0, "cid"], [0, "homepage"], [0, "name"], [1, "did"], [1, "name"], [2, "aid"], [2, "did"], [3, "cid"], [3, "did"], [4, "homepage"], [4, "jid"], [4, "name"], [5, "did"], [5, "jid"], [6, "keyword"], [6, "kid"], [7, "did"], [7, "kid"], [8, "abstract"], [8, "cid"], [8, "citation_num"], [8, "jid"], [8, "pid"], [8, "reference_num"], [8, "title"], [8, "year"], [9, "did"], [9, "pid"], [10, "continent"], [10, "homepage"], [10, "name"], [10, "oid"], [11, "pid"], [11, "kid"], [13, "pid"], [12, "cited"], [12, "citing"], [13, "aid"]], "column_types": ["text", "text", "text", "number", "number", "text", "text", "number", "text", "number", "number", "number", "number", "text", "number", "text", "number", "number", "text", "number", "number", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [4, 7, 10, 12, 14, 16, 19, 20, 26, 30, 35, 37, 41], "foreign_keys": [[10, 7], [9, 41], [12, 7], [11, 4], [16, 7], [17, 14], [20, 7], [21, 19], [23, 4], [25, 14], [30, 7], [31, 26], [37, 19], [36, 26], [38, 26], [40, 26], [41, 26]]}, {"db_id": "imdb_minus_1_2", "table_names": ["actor", "copyright", "cast", "genre", "classification", "company", "director", "producer", "directed by", "keyword", "tags", "tv series", "writer", "written by", "movie_made_by"], "table_names_original": ["actor", "copyright", "cast", "genre", "classification", "company", "director", "producer", "directed_by", "keyword", "tags", "tv_series", "writer", "written_by", "movie_made_by"], "column_names": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth city"], [0, "birth year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country code"], [6, "did"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth city"], [6, "birth year"], [7, "pid"], [7, "gender"], [7, "name"], [7, "nationality"], [7, "birth city"], [7, "birth year"], [8, "id"], [8, "msid"], [8, "did"], [9, "id"], [9, "keyword"], [14, "id"], [14, "pid"], [14, "title"], [14, "release year"], [14, "title aka"], [14, "budget"], [10, "id"], [10, "msid"], [10, "kid"], [11, "sid"], [11, "title"], [11, "release year"], [11, "num of seasons"], [11, "num of episodes"], [11, "title aka"], [11, "budget"], [12, "wid"], [12, "gender"], [12, "name"], [12, "nationality"], [12, "num of episodes"], [12, "birth city"], [12, "birth year"], [13, "id"], [13, "msid"], [13, "wid"], [14, "mid"]], "column_names_original": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth_city"], [0, "birth_year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country_code"], [6, "did"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth_city"], [6, "birth_year"], [7, "pid"], [7, "gender"], [7, "name"], [7, "nationality"], [7, "birth_city"], [7, "birth_year"], [8, "id"], [8, "msid"], [8, "did"], [9, "id"], [9, "keyword"], [14, "id"], [14, "pid"], [14, "title"], [14, "release_year"], [14, "title_aka"], [14, "budget"], [10, "id"], [10, "msid"], [10, "kid"], [11, "sid"], [11, "title"], [11, "release_year"], [11, "num_of_seasons"], [11, "num_of_episodes"], [11, "title_aka"], [11, "budget"], [12, "wid"], [12, "gender"], [12, "name"], [12, "nationality"], [12, "num_of_episodes"], [12, "birth_city"], [12, "birth_year"], [13, "id"], [13, "msid"], [13, "wid"], [14, "mid"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "number", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "text", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number"], "primary_keys": [1, 7, 10, 14, 16, 19, 22, 28, 34, 37, 39, 45, 48, 55, 65], "foreign_keys": [[11, 8], [12, 1], [17, 8], [18, 14], [36, 22], [35, 8], [40, 28], [65, 8], [46, 8], [64, 55], [65, 8]]}, {"db_id": "imdb_minus_1_1", "table_names": ["copyright", "genre", "classification", "company", "director", "producer", "directed by", "keyword", "made by", "movie", "tags", "tv series", "writer", "written by", "cast_actor"], "table_names_original": ["copyright", "genre", "classification", "company", "director", "producer", "directed_by", "keyword", "made_by", "movie", "tags", "tv_series", "writer", "written_by", "cast_actor"], "column_names": [[-1, "*"], [14, "gender"], [14, "name"], [14, "nationality"], [14, "birth city"], [14, "birth year"], [0, "id"], [0, "msid"], [0, "cid"], [14, "id"], [14, "msid"], [14, "role"], [1, "gid"], [1, "genre"], [2, "id"], [2, "msid"], [2, "gid"], [3, "id"], [3, "name"], [3, "country code"], [4, "did"], [4, "gender"], [4, "name"], [4, "nationality"], [4, "birth city"], [4, "birth year"], [5, "pid"], [5, "gender"], [5, "name"], [5, "nationality"], [5, "birth city"], [5, "birth year"], [6, "id"], [6, "msid"], [6, "did"], [7, "id"], [7, "keyword"], [8, "id"], [8, "msid"], [8, "pid"], [9, "mid"], [9, "title"], [9, "release year"], [9, "title aka"], [9, "budget"], [10, "id"], [10, "msid"], [10, "kid"], [11, "sid"], [11, "title"], [11, "release year"], [11, "num of seasons"], [11, "num of episodes"], [11, "title aka"], [11, "budget"], [12, "wid"], [12, "gender"], [12, "name"], [12, "nationality"], [12, "num of episodes"], [12, "birth city"], [12, "birth year"], [13, "id"], [13, "msid"], [13, "wid"], [14, "aid"]], "column_names_original": [[-1, "*"], [14, "gender"], [14, "name"], [14, "nationality"], [14, "birth_city"], [14, "birth_year"], [0, "id"], [0, "msid"], [0, "cid"], [14, "id"], [14, "msid"], [14, "role"], [1, "gid"], [1, "genre"], [2, "id"], [2, "msid"], [2, "gid"], [3, "id"], [3, "name"], [3, "country_code"], [4, "did"], [4, "gender"], [4, "name"], [4, "nationality"], [4, "birth_city"], [4, "birth_year"], [5, "pid"], [5, "gender"], [5, "name"], [5, "nationality"], [5, "birth_city"], [5, "birth_year"], [6, "id"], [6, "msid"], [6, "did"], [7, "id"], [7, "keyword"], [8, "id"], [8, "msid"], [8, "pid"], [9, "mid"], [9, "title"], [9, "release_year"], [9, "title_aka"], [9, "budget"], [10, "id"], [10, "msid"], [10, "kid"], [11, "sid"], [11, "title"], [11, "release_year"], [11, "num_of_seasons"], [11, "num_of_episodes"], [11, "title_aka"], [11, "budget"], [12, "wid"], [12, "gender"], [12, "name"], [12, "nationality"], [12, "num_of_episodes"], [12, "birth_city"], [12, "birth_year"], [13, "id"], [13, "msid"], [13, "wid"], [14, "aid"]], "column_types": ["text", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "number", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number"], "primary_keys": [6, 9, 12, 14, 17, 20, 26, 32, 35, 37, 40, 45, 48, 55, 65], "foreign_keys": [[10, 7], [15, 7], [16, 12], [34, 20], [33, 7], [39, 26], [38, 7], [46, 7], [64, 55], [65, 7]]}, {"db_id": "imdb_minus_1_0", "table_names": ["actor", "copyright", "cast", "genre", "classification", "company", "producer", "keyword", "made by", "movie", "tags", "tv series", "writer", "written by", "director_directed_by"], "table_names_original": ["actor", "copyright", "cast", "genre", "classification", "company", "producer", "keyword", "made_by", "movie", "tags", "tv_series", "writer", "written_by", "director_directed_by"], "column_names": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth city"], [0, "birth year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country code"], [14, "gender"], [14, "name"], [14, "nationality"], [14, "birth city"], [14, "birth year"], [6, "pid"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth city"], [6, "birth year"], [14, "id"], [14, "msid"], [7, "id"], [7, "keyword"], [8, "id"], [8, "msid"], [8, "pid"], [9, "mid"], [9, "title"], [9, "release year"], [9, "title aka"], [9, "budget"], [10, "id"], [10, "msid"], [10, "kid"], [11, "sid"], [11, "title"], [11, "release year"], [11, "num of seasons"], [11, "num of episodes"], [11, "title aka"], [11, "budget"], [12, "wid"], [12, "gender"], [12, "name"], [12, "nationality"], [12, "num of episodes"], [12, "birth city"], [12, "birth year"], [13, "id"], [13, "msid"], [13, "wid"], [14, "did"]], "column_names_original": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth_city"], [0, "birth_year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country_code"], [14, "gender"], [14, "name"], [14, "nationality"], [14, "birth_city"], [14, "birth_year"], [6, "pid"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth_city"], [6, "birth_year"], [14, "id"], [14, "msid"], [7, "id"], [7, "keyword"], [8, "id"], [8, "msid"], [8, "pid"], [9, "mid"], [9, "title"], [9, "release_year"], [9, "title_aka"], [9, "budget"], [10, "id"], [10, "msid"], [10, "kid"], [11, "sid"], [11, "title"], [11, "release_year"], [11, "num_of_seasons"], [11, "num_of_episodes"], [11, "title_aka"], [11, "budget"], [12, "wid"], [12, "gender"], [12, "name"], [12, "nationality"], [12, "num_of_episodes"], [12, "birth_city"], [12, "birth_year"], [13, "id"], [13, "msid"], [13, "wid"], [14, "did"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number"], "primary_keys": [1, 7, 10, 14, 16, 19, 27, 33, 35, 37, 40, 45, 48, 55, 65], "foreign_keys": [[11, 8], [12, 1], [17, 8], [18, 14], [34, 8], [39, 27], [38, 8], [46, 8], [64, 55], [65, 8]]}, {"db_id": "bike_1_minus_1_0", "table_names": ["status", "weather", "station_trip"], "table_names_original": ["status", "weather", "station_trip"], "column_names": [[-1, "*"], [2, "name"], [2, "lat"], [2, "long"], [2, "dock count"], [2, "city"], [2, "installation date"], [0, "station id"], [0, "bikes available"], [0, "docks available"], [0, "time"], [2, "id trip"], [2, "duration"], [2, "start date"], [2, "start station name"], [2, "end date"], [2, "end station name"], [2, "end station id"], [2, "bike id"], [2, "subscription type"], [2, "zip code"], [1, "date"], [1, "max temperature f"], [1, "mean temperature f"], [1, "min temperature f"], [1, "max dew point f"], [1, "mean dew point f"], [1, "min dew point f"], [1, "max humidity"], [1, "mean humidity"], [1, "min humidity"], [1, "max sea level pressure inches"], [1, "mean sea level pressure inches"], [1, "min sea level pressure inches"], [1, "max visibility miles"], [1, "mean visibility miles"], [1, "min visibility miles"], [1, "max wind speed mph"], [1, "mean wind speed mph"], [1, "max gust speed mph"], [1, "precipitation inches"], [1, "cloud cover"], [1, "events"], [1, "wind dir degrees"], [1, "zip code"], [2, "id"]], "column_names_original": [[-1, "*"], [2, "name"], [2, "lat"], [2, "long"], [2, "dock_count"], [2, "city"], [2, "installation_date"], [0, "station_id"], [0, "bikes_available"], [0, "docks_available"], [0, "time"], [2, "id_trip"], [2, "duration"], [2, "start_date"], [2, "start_station_name"], [2, "end_date"], [2, "end_station_name"], [2, "end_station_id"], [2, "bike_id"], [2, "subscription_type"], [2, "zip_code"], [1, "date"], [1, "max_temperature_f"], [1, "mean_temperature_f"], [1, "min_temperature_f"], [1, "max_dew_point_f"], [1, "mean_dew_point_f"], [1, "min_dew_point_f"], [1, "max_humidity"], [1, "mean_humidity"], [1, "min_humidity"], [1, "max_sea_level_pressure_inches"], [1, "mean_sea_level_pressure_inches"], [1, "min_sea_level_pressure_inches"], [1, "max_visibility_miles"], [1, "mean_visibility_miles"], [1, "min_visibility_miles"], [1, "max_wind_speed_mph"], [1, "mean_wind_speed_mph"], [1, "max_gust_speed_mph"], [1, "precipitation_inches"], [1, "cloud_cover"], [1, "events"], [1, "wind_dir_degrees"], [1, "zip_code"], [2, "id"]], "column_types": ["text", "text", "number", "number", "number", "text", "text", "number", "number", "number", "text", "number", "number", "text", "text", "text", "text", "number", "number", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number"], "primary_keys": [11, 45], "foreign_keys": [[7, 45]]}, {"db_id": "store_1_minus_1_1", "table_names": ["sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "playlists", "playlist tracks", "tracks_invoice_lines"], "table_names_original": ["artists", "something_sequence", "albums", "employees", "customers", "genres", "invoices", "media_types", "playlists", "playlist_tracks", "tracks_invoice_lines"], "column_names": [[-1, "*"], [0, "id"], [0, "name"], [1, "name"], [1, "seq"], [2, "id"], [2, "title"], [2, "artist id"], [3, "id"], [3, "last name"], [3, "first name"], [3, "title"], [3, "reports to"], [3, "birth date"], [3, "hire date"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postal code"], [3, "phone"], [3, "fax"], [3, "email"], [4, "id"], [4, "first name"], [4, "last name"], [4, "company"], [4, "address"], [4, "city"], [4, "state"], [4, "country"], [4, "postal code"], [4, "phone"], [4, "fax"], [4, "email"], [4, "support rep id"], [5, "id"], [5, "name"], [6, "id"], [6, "customer id"], [6, "invoice date"], [6, "billing address"], [6, "billing city"], [6, "billing state"], [6, "billing country"], [6, "billing postal code"], [6, "total"], [7, "id"], [7, "name"], [10, "name"], [10, "album id"], [10, "media type id"], [10, "genre id"], [10, "composer"], [10, "milliseconds"], [10, "bytes"], [10, "unit price tracks"], [10, "id invoice lines"], [10, "invoice id"], [10, "unit price invoice lines"], [10, "quantity"], [8, "id"], [8, "name"], [9, "playlist id"], [9, "track id"], [10, "id"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [1, "name"], [1, "seq"], [2, "id"], [2, "title"], [2, "artist_id"], [3, "id"], [3, "last_name"], [3, "first_name"], [3, "title"], [3, "reports_to"], [3, "birth_date"], [3, "hire_date"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postal_code"], [3, "phone"], [3, "fax"], [3, "email"], [4, "id"], [4, "first_name"], [4, "last_name"], [4, "company"], [4, "address"], [4, "city"], [4, "state"], [4, "country"], [4, "postal_code"], [4, "phone"], [4, "fax"], [4, "email"], [4, "support_rep_id"], [5, "id"], [5, "name"], [6, "id"], [6, "customer_id"], [6, "invoice_date"], [6, "billing_address"], [6, "billing_city"], [6, "billing_state"], [6, "billing_country"], [6, "billing_postal_code"], [6, "total"], [7, "id"], [7, "name"], [10, "name"], [10, "album_id"], [10, "media_type_id"], [10, "genre_id"], [10, "composer"], [10, "milliseconds"], [10, "bytes"], [10, "unit_price_tracks"], [10, "id_invoice_lines"], [10, "invoice_id"], [10, "unit_price_invoice_lines"], [10, "quantity"], [8, "id"], [8, "name"], [9, "playlist_id"], [9, "track_id"], [10, "id"]], "column_types": ["text", "number", "text", "text", "text", "number", "text", "number", "number", "text", "text", "text", "number", "time", "time", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "number", "number", "time", "text", "text", "text", "text", "text", "number", "number", "text", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number"], "primary_keys": [1, 5, 8, 23, 36, 38, 47, 57, 61, 65, 65], "foreign_keys": [[7, 1], [12, 8], [35, 8], [39, 23], [51, 47], [52, 36], [50, 5], [58, 38], [64, 65], [65, 61]]}, {"db_id": "wedding_minus_1_0", "table_names": ["church", "wedding_people"], "table_names_original": ["church", "wedding_people"], "column_names": [[-1, "*"], [1, "name"], [1, "country"], [1, "is male"], [1, "age"], [0, "church id"], [0, "name"], [0, "organized by"], [0, "open date"], [0, "continuation of"], [1, "church id"], [1, "female id"], [1, "year"], [1, "male_id"]], "column_names_original": [[-1, "*"], [1, "name"], [1, "country"], [1, "is_male"], [1, "age"], [0, "church_id"], [0, "name"], [0, "organized_by"], [0, "open_date"], [0, "continuation_of"], [1, "church_id"], [1, "female_id"], [1, "year"], [1, "male_id"]], "column_types": ["text", "text", "text", "text", "number", "number", "text", "text", "number", "text", "number", "number", "number", "number"], "primary_keys": [5, 10, 13], "foreign_keys": [[13, 13], [10, 5]]}, {"db_id": "local_govt_in_alabama_minus_1_0", "table_names": ["services", "events", "participants_participants_in_events"], "table_names_original": ["services", "events", "participants_participants_in_events"], "column_names": [[-1, "*"], [0, "service id"], [0, "service type code"], [2, "participant type code"], [2, "participant details"], [1, "event id"], [1, "service id"], [1, "event details"], [2, "event id"], [2, "participant_id"]], "column_names_original": [[-1, "*"], [0, "service_id"], [0, "service_type_code"], [2, "participant_type_code"], [2, "participant_details"], [1, "event_id"], [1, "service_id"], [1, "event_details"], [2, "event_id"], [2, "participant_id"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "number", "number"], "primary_keys": [1, 5, 9, 9], "foreign_keys": [[6, 1], [9, 5]]}, {"db_id": "college_1_minus_1_1", "table_names": ["course", "department", "employee", "professor", "student", "class_enroll"], "table_names_original": ["course", "department", "employee", "professor", "student", "class_enroll"], "column_names": [[-1, "*"], [5, "crs code"], [5, "class section"], [5, "class time"], [5, "class room"], [5, "prof num"], [0, "crs code"], [0, "dept code"], [0, "crs description"], [0, "crs credit"], [1, "dept code"], [1, "dept name"], [1, "school code"], [1, "emp num"], [1, "dept address"], [1, "dept extension"], [2, "emp num"], [2, "emp lname"], [2, "emp fname"], [2, "emp initial"], [2, "emp jobcode"], [2, "emp hiredate"], [2, "emp dob"], [5, "stu num"], [5, "enroll grade"], [3, "emp num"], [3, "dept code"], [3, "prof office"], [3, "prof extension"], [3, "prof high degree"], [4, "stu num"], [4, "stu lname"], [4, "stu fname"], [4, "stu init"], [4, "stu dob"], [4, "stu hrs"], [4, "stu class"], [4, "stu gpa"], [4, "stu transfer"], [4, "dept code"], [4, "stu phone"], [4, "prof num"], [5, "class_code"]], "column_names_original": [[-1, "*"], [5, "crs_code"], [5, "class_section"], [5, "class_time"], [5, "class_room"], [5, "prof_num"], [0, "crs_code"], [0, "dept_code"], [0, "crs_description"], [0, "crs_credit"], [1, "dept_code"], [1, "dept_name"], [1, "school_code"], [1, "emp_num"], [1, "dept_address"], [1, "dept_extension"], [2, "emp_num"], [2, "emp_lname"], [2, "emp_fname"], [2, "emp_initial"], [2, "emp_jobcode"], [2, "emp_hiredate"], [2, "emp_dob"], [5, "stu_num"], [5, "enroll_grade"], [3, "emp_num"], [3, "dept_code"], [3, "prof_office"], [3, "prof_extension"], [3, "prof_high_degree"], [4, "stu_num"], [4, "stu_lname"], [4, "stu_fname"], [4, "stu_init"], [4, "stu_dob"], [4, "stu_hrs"], [4, "stu_class"], [4, "stu_gpa"], [4, "stu_transfer"], [4, "dept_code"], [4, "stu_phone"], [4, "prof_num"], [5, "class_code"]], "column_types": ["text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "text", "time", "time", "number", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "time", "number", "text", "number", "number", "text", "text", "number", "text"], "primary_keys": [6, 10, 16, 30, 42], "foreign_keys": [[5, 16], [1, 6], [7, 10], [13, 16], [23, 30], [26, 10], [25, 16], [39, 10]]}, {"db_id": "college_1_minus_1_2", "table_names": ["class", "course", "department", "employee", "professor", "student_enroll"], "table_names_original": ["class", "course", "department", "employee", "professor", "student_enroll"], "column_names": [[-1, "*"], [0, "class code"], [0, "crs code"], [0, "class section"], [0, "class time"], [0, "class room"], [0, "prof num"], [1, "crs code"], [1, "dept code"], [1, "crs description"], [1, "crs credit"], [2, "dept code"], [2, "dept name"], [2, "school code"], [2, "emp num"], [2, "dept address"], [2, "dept extension"], [3, "emp num"], [3, "emp lname"], [3, "emp fname"], [3, "emp initial"], [3, "emp jobcode"], [3, "emp hiredate"], [3, "emp dob"], [5, "class code"], [5, "enroll grade"], [4, "emp num"], [4, "dept code"], [4, "prof office"], [4, "prof extension"], [4, "prof high degree"], [5, "stu lname"], [5, "stu fname"], [5, "stu init"], [5, "stu dob"], [5, "stu hrs"], [5, "stu class"], [5, "stu gpa"], [5, "stu transfer"], [5, "dept code"], [5, "stu phone"], [5, "prof num"], [5, "stu_num"]], "column_names_original": [[-1, "*"], [0, "class_code"], [0, "crs_code"], [0, "class_section"], [0, "class_time"], [0, "class_room"], [0, "prof_num"], [1, "crs_code"], [1, "dept_code"], [1, "crs_description"], [1, "crs_credit"], [2, "dept_code"], [2, "dept_name"], [2, "school_code"], [2, "emp_num"], [2, "dept_address"], [2, "dept_extension"], [3, "emp_num"], [3, "emp_lname"], [3, "emp_fname"], [3, "emp_initial"], [3, "emp_jobcode"], [3, "emp_hiredate"], [3, "emp_dob"], [5, "class_code"], [5, "enroll_grade"], [4, "emp_num"], [4, "dept_code"], [4, "prof_office"], [4, "prof_extension"], [4, "prof_high_degree"], [5, "stu_lname"], [5, "stu_fname"], [5, "stu_init"], [5, "stu_dob"], [5, "stu_hrs"], [5, "stu_class"], [5, "stu_gpa"], [5, "stu_transfer"], [5, "dept_code"], [5, "stu_phone"], [5, "prof_num"], [5, "stu_num"]], "column_types": ["text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "text", "time", "time", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "time", "number", "text", "number", "number", "text", "text", "number", "number"], "primary_keys": [1, 7, 11, 17, 42], "foreign_keys": [[6, 17], [2, 7], [8, 11], [14, 17], [24, 1], [27, 11], [26, 17], [39, 11]]}, {"db_id": "hospital_1_minus_1_0", "table_names": ["physician", "department", "affiliated with", "procedures", "trained in", "nurse", "appointment", "medication", "prescribes", "block", "room", "on call", "undergoes", "stay_patient"], "table_names_original": ["physician", "department", "affiliated_with", "procedures", "trained_in", "nurse", "appointment", "medication", "prescribes", "block", "room", "on_call", "undergoes", "stay_patient"], "column_names": [[-1, "*"], [0, "employeeid"], [0, "name"], [0, "position"], [0, "ssn"], [1, "departmentid"], [1, "name"], [1, "head"], [2, "physician"], [2, "department"], [2, "primaryaffiliation"], [3, "code"], [3, "name"], [3, "cost"], [4, "physician"], [4, "treatment"], [4, "certificationdate"], [4, "certificationexpires"], [13, "name"], [13, "address"], [13, "phone"], [13, "insuranceid"], [13, "pcp"], [5, "employeeid"], [5, "name"], [5, "position"], [5, "registered"], [5, "ssn"], [6, "appointmentid"], [6, "patient"], [6, "prepnurse"], [6, "physician"], [6, "start"], [6, "end"], [6, "examinationroom"], [7, "code"], [7, "name"], [7, "brand"], [7, "description"], [8, "physician"], [8, "patient"], [8, "medication"], [8, "date"], [8, "appointment"], [8, "dose"], [9, "blockfloor"], [9, "blockcode"], [10, "roomnumber"], [10, "roomtype"], [10, "blockfloor"], [10, "blockcode"], [10, "unavailable"], [11, "nurse"], [11, "blockfloor"], [11, "blockcode"], [11, "oncallstart"], [11, "oncallend"], [13, "stayid"], [13, "room"], [13, "staystart"], [13, "stayend"], [12, "patient"], [12, "procedures"], [12, "stay"], [12, "dateundergoes"], [12, "physician"], [12, "assistingnurse"], [13, "patient"]], "column_names_original": [[-1, "*"], [0, "employeeid"], [0, "name"], [0, "position"], [0, "ssn"], [1, "departmentid"], [1, "name"], [1, "head"], [2, "physician"], [2, "department"], [2, "primaryaffiliation"], [3, "code"], [3, "name"], [3, "cost"], [4, "physician"], [4, "treatment"], [4, "certificationdate"], [4, "certificationexpires"], [13, "name"], [13, "address"], [13, "phone"], [13, "insuranceid"], [13, "pcp"], [5, "employeeid"], [5, "name"], [5, "position"], [5, "registered"], [5, "ssn"], [6, "appointmentid"], [6, "patient"], [6, "prepnurse"], [6, "physician"], [6, "start"], [6, "end"], [6, "examinationroom"], [7, "code"], [7, "name"], [7, "brand"], [7, "description"], [8, "physician"], [8, "patient"], [8, "medication"], [8, "date"], [8, "appointment"], [8, "dose"], [9, "blockfloor"], [9, "blockcode"], [10, "roomnumber"], [10, "roomtype"], [10, "blockfloor"], [10, "blockcode"], [10, "unavailable"], [11, "nurse"], [11, "blockfloor"], [11, "blockcode"], [11, "oncallstart"], [11, "oncallend"], [13, "stayid"], [13, "room"], [13, "staystart"], [13, "stayend"], [12, "patient"], [12, "procedures"], [12, "stay"], [12, "dateundergoes"], [12, "physician"], [12, "assistingnurse"], [13, "patient"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "number", "number", "number", "boolean", "number", "text", "number", "number", "number", "time", "time", "text", "text", "text", "number", "number", "number", "text", "text", "boolean", "number", "number", "number", "number", "number", "time", "time", "text", "number", "text", "text", "text", "number", "number", "number", "time", "number", "text", "number", "number", "number", "text", "number", "number", "boolean", "number", "number", "number", "time", "time", "number", "number", "time", "time", "number", "number", "number", "time", "number", "number", "number"], "primary_keys": [1, 5, 8, 11, 14, 23, 28, 35, 39, 45, 47, 52, 57, 61, 67], "foreign_keys": [[7, 1], [9, 5], [8, 1], [15, 11], [14, 1], [22, 1], [31, 1], [30, 23], [29, 67], [43, 28], [41, 35], [40, 67], [39, 1], [49, 45], [50, 46], [53, 45], [54, 46], [52, 23], [58, 47], [66, 23], [67, 1], [63, 57], [62, 11], [61, 67]]}, {"db_id": "network_2_minus_1_0", "table_names": ["personfriend_person"], "table_names_original": ["personfriend_person"], "column_names": [[-1, "*"], [0, "age"], [0, "city"], [0, "gender"], [0, "job"], [0, "friend"], [0, "year"], [0, "name"]], "column_names_original": [[-1, "*"], [0, "age"], [0, "city"], [0, "gender"], [0, "job"], [0, "friend"], [0, "year"], [0, "name"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "text"], "primary_keys": [7], "foreign_keys": [[7, 7]]}, {"db_id": "department_store_minus_1_0", "table_names": ["addresses", "staff", "suppliers", "department store chain", "products", "supplier addresses", "customer addresses", "department stores", "departments", "order items", "product suppliers", "staff department assignments", "customers_customer_orders"], "table_names_original": ["addresses", "staff", "suppliers", "department_store_chain", "products", "supplier_addresses", "customer_addresses", "department_stores", "departments", "order_items", "product_suppliers", "staff_department_assignments", "customers_customer_orders"], "column_names": [[-1, "*"], [0, "address id"], [0, "address details"], [1, "staff id"], [1, "staff gender"], [1, "staff name"], [2, "supplier id"], [2, "supplier name"], [2, "supplier phone"], [3, "dept store chain id"], [3, "dept store chain name"], [12, "payment method code"], [12, "customer code"], [12, "customer name"], [12, "customer address"], [12, "customer phone"], [12, "customer email"], [4, "product id"], [4, "product type code"], [4, "product name"], [4, "product price"], [5, "supplier id"], [5, "address id"], [5, "date from"], [5, "date to"], [6, "customer id"], [6, "address id"], [6, "date from"], [6, "date to"], [12, "order id"], [12, "order status code"], [12, "order date"], [7, "dept store id"], [7, "dept store chain id"], [7, "store name"], [7, "store address"], [7, "store phone"], [7, "store email"], [8, "department id"], [8, "dept store id"], [8, "department name"], [9, "order item id"], [9, "order id"], [9, "product id"], [10, "product id"], [10, "supplier id"], [10, "date supplied from"], [10, "date supplied to"], [10, "total amount purchased"], [10, "total value purchased"], [11, "staff id"], [11, "department id"], [11, "date assigned from"], [11, "job title code"], [11, "date assigned to"], [12, "customer_id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "address_details"], [1, "staff_id"], [1, "staff_gender"], [1, "staff_name"], [2, "supplier_id"], [2, "supplier_name"], [2, "supplier_phone"], [3, "dept_store_chain_id"], [3, "dept_store_chain_name"], [12, "payment_method_code"], [12, "customer_code"], [12, "customer_name"], [12, "customer_address"], [12, "customer_phone"], [12, "customer_email"], [4, "product_id"], [4, "product_type_code"], [4, "product_name"], [4, "product_price"], [5, "supplier_id"], [5, "address_id"], [5, "date_from"], [5, "date_to"], [6, "customer_id"], [6, "address_id"], [6, "date_from"], [6, "date_to"], [12, "order_id"], [12, "order_status_code"], [12, "order_date"], [7, "dept_store_id"], [7, "dept_store_chain_id"], [7, "store_name"], [7, "store_address"], [7, "store_phone"], [7, "store_email"], [8, "department_id"], [8, "dept_store_id"], [8, "department_name"], [9, "order_item_id"], [9, "order_id"], [9, "product_id"], [10, "product_id"], [10, "supplier_id"], [10, "date_supplied_from"], [10, "date_supplied_to"], [10, "total_amount_purchased"], [10, "total_value_purchased"], [11, "staff_id"], [11, "department_id"], [11, "date_assigned_from"], [11, "job_title_code"], [11, "date_assigned_to"], [12, "customer_id"]], "column_types": ["text", "number", "text", "number", "text", "text", "number", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "number", "number", "number", "time", "time", "number", "number", "time", "time", "number", "text", "time", "number", "number", "text", "text", "text", "text", "number", "number", "text", "number", "number", "number", "number", "number", "time", "time", "text", "number", "number", "number", "time", "text", "time", "number"], "primary_keys": [1, 3, 6, 9, 17, 21, 25, 29, 32, 38, 41, 44, 50, 55], "foreign_keys": [[21, 6], [22, 1], [25, 55], [26, 1], [33, 9], [39, 32], [43, 17], [42, 29], [44, 17], [45, 6], [50, 3], [51, 38]]}, {"db_id": "products_gen_characteristics_minus_1_0", "table_names": ["reference characteristic types", "reference colors", "reference product categories", "characteristics", "products_product_characteristics"], "table_names_original": ["ref_characteristic_types", "ref_colors", "ref_product_categories", "characteristics", "products_product_characteristics"], "column_names": [[-1, "*"], [0, "characteristic type code"], [0, "characteristic type description"], [1, "color code"], [1, "color description"], [2, "product category code"], [2, "product category description"], [2, "unit of measure"], [3, "characteristic id"], [3, "characteristic type code"], [3, "characteristic data type"], [3, "characteristic name"], [3, "other characteristic details"], [4, "color code"], [4, "product category code"], [4, "product name"], [4, "typical buying price"], [4, "typical selling price"], [4, "product description"], [4, "other product details"], [4, "characteristic id"], [4, "product characteristic value"], [4, "product_id"]], "column_names_original": [[-1, "*"], [0, "characteristic_type_code"], [0, "characteristic_type_description"], [1, "color_code"], [1, "color_description"], [2, "product_category_code"], [2, "product_category_description"], [2, "unit_of_measure"], [3, "characteristic_id"], [3, "characteristic_type_code"], [3, "characteristic_data_type"], [3, "characteristic_name"], [3, "other_characteristic_details"], [4, "color_code"], [4, "product_category_code"], [4, "product_name"], [4, "typical_buying_price"], [4, "typical_selling_price"], [4, "product_description"], [4, "other_product_details"], [4, "characteristic_id"], [4, "product_characteristic_value"], [4, "product_id"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "number"], "primary_keys": [1, 3, 5, 8, 22], "foreign_keys": [[9, 1], [13, 3], [14, 5], [22, 8]]}, {"db_id": "tracking_orders_minus_1_0", "table_names": ["invoices", "products", "order items", "shipments", "shipment items", "customers_orders"], "table_names_original": ["invoices", "products", "order_items", "shipments", "shipment_items", "customers_orders"], "column_names": [[-1, "*"], [5, "customer name"], [5, "customer details"], [0, "invoice number"], [0, "invoice date"], [0, "invoice details"], [5, "order id"], [5, "order status"], [5, "date order placed"], [5, "order details"], [1, "product id"], [1, "product name"], [1, "product details"], [2, "order item id"], [2, "product id"], [2, "order id"], [2, "order item status"], [2, "order item details"], [3, "shipment id"], [3, "order id"], [3, "invoice number"], [3, "shipment tracking number"], [3, "shipment date"], [3, "other shipment details"], [4, "shipment id"], [4, "order item id"], [5, "customer_id"]], "column_names_original": [[-1, "*"], [5, "customer_name"], [5, "customer_details"], [0, "invoice_number"], [0, "invoice_date"], [0, "invoice_details"], [5, "order_id"], [5, "order_status"], [5, "date_order_placed"], [5, "order_details"], [1, "product_id"], [1, "product_name"], [1, "product_details"], [2, "order_item_id"], [2, "product_id"], [2, "order_id"], [2, "order_item_status"], [2, "order_item_details"], [3, "shipment_id"], [3, "order_id"], [3, "invoice_number"], [3, "shipment_tracking_number"], [3, "shipment_date"], [3, "other_shipment_details"], [4, "shipment_id"], [4, "order_item_id"], [5, "customer_id"]], "column_types": ["text", "text", "text", "number", "time", "text", "number", "text", "time", "text", "number", "text", "text", "number", "number", "number", "text", "text", "number", "number", "number", "text", "time", "text", "number", "number", "number"], "primary_keys": [3, 6, 10, 13, 18, 26], "foreign_keys": [[14, 10], [15, 6], [20, 3], [19, 6], [26, 18], [25, 13]]}, {"db_id": "scholar_minus_1_2", "table_names": ["venue", "author", "dataset", "journal", "key phrase", "paper dataset", "paper key phrase", "writes", "paper_cite"], "table_names_original": ["venue", "author", "dataset", "journal", "keyphrase", "paperdataset", "paperkeyphrase", "writes", "paper_cite"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [2, "datasetid"], [2, "datasetname"], [3, "journalid"], [3, "journalname"], [4, "keyphraseid"], [4, "keyphrasename"], [8, "title"], [8, "venueid"], [8, "year"], [8, "numciting"], [8, "numcitedby"], [8, "journalid"], [8, "citingpaperid"], [5, "paperid"], [5, "datasetid"], [6, "paperid"], [6, "keyphraseid"], [7, "paperid"], [7, "authorid"], [8, "paperid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [2, "datasetid"], [2, "datasetname"], [3, "journalid"], [3, "journalname"], [4, "keyphraseid"], [4, "keyphrasename"], [8, "title"], [8, "venueid"], [8, "year"], [8, "numciting"], [8, "numcitedby"], [8, "journalid"], [8, "citingpaperid"], [5, "paperid"], [5, "datasetid"], [6, "paperid"], [6, "keyphraseid"], [7, "paperid"], [7, "authorid"], [8, "paperid"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 3, 5, 7, 9, 17, 19, 21, 24, 24], "foreign_keys": [[12, 1], [16, 7], [17, 24], [21, 9], [20, 24], [23, 3], [24, 24]]}, {"db_id": "scholar_minus_1_4", "table_names": ["author", "dataset", "journal", "key phrase", "cite", "paper dataset", "paper key phrase", "writes", "venue_paper"], "table_names_original": ["author", "dataset", "journal", "keyphrase", "cite", "paperdataset", "paperkeyphrase", "writes", "venue_paper"], "column_names": [[-1, "*"], [8, "venuename"], [0, "authorid"], [0, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [8, "paperid"], [8, "title"], [8, "year"], [8, "numciting"], [8, "numcitedby"], [8, "journalid"], [4, "citingpaperid"], [4, "citedpaperid"], [5, "paperid"], [5, "datasetid"], [6, "paperid"], [6, "keyphraseid"], [7, "paperid"], [7, "authorid"], [8, "venueid"]], "column_names_original": [[-1, "*"], [8, "venuename"], [0, "authorid"], [0, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [8, "paperid"], [8, "title"], [8, "year"], [8, "numciting"], [8, "numcitedby"], [8, "journalid"], [4, "citingpaperid"], [4, "citedpaperid"], [5, "paperid"], [5, "datasetid"], [6, "paperid"], [6, "keyphraseid"], [7, "paperid"], [7, "authorid"], [8, "venueid"]], "column_types": ["text", "text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [2, 4, 6, 8, 10, 16, 19, 21, 24, 24], "foreign_keys": [[15, 6], [16, 10], [17, 10], [21, 8], [20, 10], [23, 2], [24, 10]]}, {"db_id": "pets_1_minus_1_0", "table_names": ["pets", "student_has_pet"], "table_names_original": ["pets", "student_has_pet"], "column_names": [[-1, "*"], [1, "lname"], [1, "fname"], [1, "age"], [1, "sex"], [1, "major"], [1, "advisor"], [1, "city code"], [1, "petid"], [0, "petid"], [0, "pettype"], [0, "pet age"], [0, "weight"], [1, "stuid"]], "column_names_original": [[-1, "*"], [1, "lname"], [1, "fname"], [1, "age"], [1, "sex"], [1, "major"], [1, "advisor"], [1, "city_code"], [1, "petid"], [0, "petid"], [0, "pettype"], [0, "pet_age"], [0, "weight"], [1, "stuid"]], "column_types": ["text", "text", "text", "number", "text", "number", "number", "text", "number", "number", "text", "number", "number", "number"], "primary_keys": [9, 13], "foreign_keys": [[8, 9]]}, {"db_id": "car_1_minus_1_5", "table_names": ["continents", "countries", "car makers", "cars data", "model_list_car_names"], "table_names_original": ["continents", "countries", "car_makers", "cars_data", "model_list_car_names"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [2, "id"], [2, "maker"], [2, "fullname"], [2, "country"], [4, "modelid"], [4, "maker"], [4, "makeid"], [4, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "model"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [2, "id"], [2, "maker"], [2, "fullname"], [2, "country"], [4, "modelid"], [4, "maker"], [4, "makeid"], [4, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "model"]], "column_types": ["text", "number", "text", "number", "text", "number", "number", "text", "text", "text", "number", "number", "number", "text", "number", "text", "number", "number", "text", "number", "number", "number", "text"], "primary_keys": [1, 3, 6, 10, 12, 14], "foreign_keys": [[5, 1], [9, 3], [11, 6], [14, 12]]}, {"db_id": "car_1_minus_1_2", "table_names": ["car makers", "model list", "car names", "cars data", "continents_countries"], "table_names_original": ["car_makers", "model_list", "car_names", "cars_data", "continents_countries"], "column_names": [[-1, "*"], [4, "continent continents"], [4, "countryid"], [4, "countryname"], [0, "id"], [0, "maker"], [0, "fullname"], [0, "country"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "contid"]], "column_names_original": [[-1, "*"], [4, "continent_continents"], [4, "countryid"], [4, "countryname"], [0, "id"], [0, "maker"], [0, "fullname"], [0, "country"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "contid"]], "column_types": ["text", "text", "number", "text", "number", "text", "text", "text", "number", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [2, 4, 8, 11, 14, 22], "foreign_keys": [[7, 2], [9, 4], [12, 10], [14, 11]]}, {"db_id": "car_1_minus_1_1", "table_names": ["continents", "countries", "car names", "cars data", "model_list_car_makers"], "table_names_original": ["continents", "countries", "car_names", "cars_data", "model_list_car_makers"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [4, "maker car makers"], [4, "fullname"], [4, "country"], [4, "modelid"], [4, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "maker"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [4, "maker_car_makers"], [4, "fullname"], [4, "country"], [4, "modelid"], [4, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "maker"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "text", "text", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [1, 3, 9, 11, 14, 22], "foreign_keys": [[5, 1], [8, 3], [12, 10], [14, 11]]}, {"db_id": "car_1_minus_1_0", "table_names": ["car makers", "model list", "car names", "cars data", "countries_continents"], "table_names_original": ["car_makers", "model_list", "car_names", "cars_data", "countries_continents"], "column_names": [[-1, "*"], [4, "continent continents"], [4, "countryid"], [4, "countryname"], [0, "id"], [0, "maker"], [0, "fullname"], [0, "country"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "continent"]], "column_names_original": [[-1, "*"], [4, "continent_continents"], [4, "countryid"], [4, "countryname"], [0, "id"], [0, "maker"], [0, "fullname"], [0, "country"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "continent"]], "column_types": ["text", "text", "number", "text", "number", "text", "text", "text", "number", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [2, 4, 8, 11, 14, 22], "foreign_keys": [[7, 2], [9, 4], [12, 10], [14, 11]]}, {"db_id": "car_1_minus_1_4", "table_names": ["continents", "countries", "car names", "cars data", "car_makers_model_list"], "table_names_original": ["continents", "countries", "car_names", "cars_data", "car_makers_model_list"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [4, "maker car makers"], [4, "fullname"], [4, "country"], [4, "modelid"], [4, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "id"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [4, "maker_car_makers"], [4, "fullname"], [4, "country"], [4, "modelid"], [4, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "id"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "text", "text", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [1, 3, 9, 11, 14, 22], "foreign_keys": [[5, 1], [8, 3], [12, 10], [14, 11]]}, {"db_id": "car_1_minus_1_3", "table_names": ["continents", "model list", "car names", "cars data", "countries_car_makers"], "table_names_original": ["continents", "model_list", "car_names", "cars_data", "countries_car_makers"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [4, "countryname"], [4, "continent"], [4, "id"], [4, "maker"], [4, "fullname"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "countryid"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [4, "countryname"], [4, "continent"], [4, "id"], [4, "maker"], [4, "fullname"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "countryid"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "text", "number", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [1, 5, 8, 11, 14, 22], "foreign_keys": [[4, 1], [9, 5], [12, 10], [14, 11]]}, {"db_id": "flight_2_minus_1_0", "table_names": ["airlines", "flights_airports"], "table_names_original": ["airlines", "flights_airports"], "column_names": [[-1, "*"], [0, "uid"], [0, "airline"], [0, "abbreviation"], [0, "country"], [1, "city"], [1, "airportname"], [1, "country"], [1, "countryabbrev"], [1, "airline"], [1, "flightno"], [1, "sourceairport"], [1, "destairport"]], "column_names_original": [[-1, "*"], [0, "uid"], [0, "airline"], [0, "abbreviation"], [0, "country"], [1, "city"], [1, "airportname"], [1, "country"], [1, "countryabbrev"], [1, "airline"], [1, "flightno"], [1, "sourceairport"], [1, "destairport"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text"], "primary_keys": [1, 9, 12], "foreign_keys": [[12, 12]]}, {"db_id": "cre_Doc_Template_Mgt_minus_1_0", "table_names": ["documents", "paragraphs", "ref_template_types_templates"], "table_names_original": ["documents", "paragraphs", "ref_template_types_templates"], "column_names": [[-1, "*"], [2, "template type description"], [2, "template id"], [2, "version number"], [2, "date effective from"], [2, "date effective to"], [2, "template details"], [0, "document id"], [0, "template id"], [0, "document name"], [0, "document description"], [0, "other details"], [1, "paragraph id"], [1, "document id"], [1, "paragraph text"], [1, "other details"], [2, "template_type_code"]], "column_names_original": [[-1, "*"], [2, "template_type_description"], [2, "template_id"], [2, "version_number"], [2, "date_effective_from"], [2, "date_effective_to"], [2, "template_details"], [0, "document_id"], [0, "template_id"], [0, "document_name"], [0, "document_description"], [0, "other_details"], [1, "paragraph_id"], [1, "document_id"], [1, "paragraph_text"], [1, "other_details"], [2, "template_type_code"]], "column_types": ["text", "text", "number", "number", "time", "time", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text"], "primary_keys": [2, 7, 12, 16], "foreign_keys": [[8, 2], [13, 7]]}, {"db_id": "course_teach_minus_1_0", "table_names": ["teacher", "course_arrange_course"], "table_names_original": ["teacher", "course_arrange_course"], "column_names": [[-1, "*"], [1, "staring date"], [1, "course"], [0, "teacher id"], [0, "name"], [0, "age"], [0, "hometown"], [1, "teacher id"], [1, "grade"], [1, "course_id"]], "column_names_original": [[-1, "*"], [1, "staring_date"], [1, "course"], [0, "teacher_id"], [0, "name"], [0, "age"], [0, "hometown"], [1, "teacher_id"], [1, "grade"], [1, "course_id"]], "column_types": ["text", "text", "text", "number", "text", "text", "text", "number", "number", "number"], "primary_keys": [3, 9], "foreign_keys": [[9, 3]]}, {"db_id": "museum_visit_minus_1_0", "table_names": ["museum", "visitor_visit"], "table_names_original": ["museum", "visitor_visit"], "column_names": [[-1, "*"], [0, "museum id"], [0, "name"], [0, "num of staff"], [0, "open year"], [1, "name"], [1, "level of membership"], [1, "age"], [1, "museum id"], [1, "num of ticket"], [1, "total spent"], [1, "id"]], "column_names_original": [[-1, "*"], [0, "museum_id"], [0, "name"], [0, "num_of_staff"], [0, "open_year"], [1, "name"], [1, "level_of_membership"], [1, "age"], [1, "museum_id"], [1, "num_of_ticket"], [1, "total_spent"], [1, "id"]], "column_types": ["text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 8, 11], "foreign_keys": [[8, 1]]}, {"db_id": "dog_kennels_minus_1_0", "table_names": ["breeds", "charges", "sizes", "treatment types", "professionals", "treatments", "owners_dogs"], "table_names_original": ["breeds", "charges", "sizes", "treatment_types", "professionals", "treatments", "owners_dogs"], "column_names": [[-1, "*"], [0, "breed code"], [0, "breed name"], [1, "charge id"], [1, "charge type"], [1, "charge amount"], [2, "size code"], [2, "size description"], [3, "treatment type code"], [3, "treatment type description"], [6, "first name"], [6, "last name"], [6, "street"], [6, "city"], [6, "state"], [6, "zip code"], [6, "email address"], [6, "home phone"], [6, "cell number"], [6, "dog id"], [6, "abandoned yn"], [6, "breed code"], [6, "size code"], [6, "name"], [6, "age"], [6, "date of birth"], [6, "gender"], [6, "weight"], [6, "date arrived"], [6, "date adopted"], [6, "date departed"], [4, "professional id"], [4, "role code"], [4, "first name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip code"], [4, "last name"], [4, "email address"], [4, "home phone"], [4, "cell number"], [5, "treatment id"], [5, "dog id"], [5, "professional id"], [5, "treatment type code"], [5, "date of treatment"], [5, "cost of treatment"], [6, "owner_id"]], "column_names_original": [[-1, "*"], [0, "breed_code"], [0, "breed_name"], [1, "charge_id"], [1, "charge_type"], [1, "charge_amount"], [2, "size_code"], [2, "size_description"], [3, "treatment_type_code"], [3, "treatment_type_description"], [6, "first_name"], [6, "last_name"], [6, "street"], [6, "city"], [6, "state"], [6, "zip_code"], [6, "email_address"], [6, "home_phone"], [6, "cell_number"], [6, "dog_id"], [6, "abandoned_yn"], [6, "breed_code"], [6, "size_code"], [6, "name"], [6, "age"], [6, "date_of_birth"], [6, "gender"], [6, "weight"], [6, "date_arrived"], [6, "date_adopted"], [6, "date_departed"], [4, "professional_id"], [4, "role_code"], [4, "first_name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip_code"], [4, "last_name"], [4, "email_address"], [4, "home_phone"], [4, "cell_number"], [5, "treatment_id"], [5, "dog_id"], [5, "professional_id"], [5, "treatment_type_code"], [5, "date_of_treatment"], [5, "cost_of_treatment"], [6, "owner_id"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "time", "text", "text", "time", "time", "time", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "number", "text", "time", "number", "number"], "primary_keys": [1, 3, 6, 8, 19, 31, 42, 48], "foreign_keys": [[22, 6], [21, 1], [43, 19], [44, 31], [45, 8]]}, {"db_id": "student_assessment_minus_1_0", "table_names": ["addresses", "people", "courses", "people addresses", "student course attendance", "candidates", "candidate assessments", "students_student_course_registrations"], "table_names_original": ["addresses", "people", "courses", "people_addresses", "student_course_attendance", "candidates", "candidate_assessments", "students_student_course_registrations"], "column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [1, "person id"], [1, "first name"], [1, "middle name"], [1, "last name"], [1, "cell mobile number"], [1, "email address"], [1, "login name"], [1, "password"], [7, "student details"], [2, "course id"], [2, "course name"], [2, "course description"], [2, "other details"], [3, "person address id"], [3, "person id"], [3, "address id"], [3, "date from"], [3, "date to"], [7, "course id"], [7, "registration date"], [4, "student id"], [4, "course id"], [4, "date of attendance"], [5, "candidate id"], [5, "candidate details"], [6, "candidate id"], [6, "qualification"], [6, "assessment date"], [6, "asessment outcome code"], [7, "student_id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [1, "person_id"], [1, "first_name"], [1, "middle_name"], [1, "last_name"], [1, "cell_mobile_number"], [1, "email_address"], [1, "login_name"], [1, "password"], [7, "student_details"], [2, "course_id"], [2, "course_name"], [2, "course_description"], [2, "other_details"], [3, "person_address_id"], [3, "person_id"], [3, "address_id"], [3, "date_from"], [3, "date_to"], [7, "course_id"], [7, "registration_date"], [4, "student_id"], [4, "course_id"], [4, "date_of_attendance"], [5, "candidate_id"], [5, "candidate_details"], [6, "candidate_id"], [6, "qualification"], [6, "assessment_date"], [6, "asessment_outcome_code"], [7, "student_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "number", "time", "time", "number", "time", "number", "number", "time", "number", "text", "number", "text", "time", "text", "number"], "primary_keys": [1, 8, 17, 21, 28, 31, 33, 37], "foreign_keys": [[37, 8], [23, 1], [22, 8], [26, 17], [28, 37], [29, 26], [31, 8], [33, 31]]}, {"db_id": "student_assessment_minus_1_1", "table_names": ["people", "students", "courses", "student course registrations", "student course attendance", "candidates", "candidate assessments", "addresses_people_addresses"], "table_names_original": ["people", "students", "courses", "student_course_registrations", "student_course_attendance", "candidates", "candidate_assessments", "addresses_people_addresses"], "column_names": [[-1, "*"], [7, "line 1"], [7, "line 2"], [7, "city"], [7, "zip postcode"], [7, "state province county"], [7, "country"], [0, "person id"], [0, "first name"], [0, "middle name"], [0, "last name"], [0, "cell mobile number"], [0, "email address"], [0, "login name"], [0, "password"], [1, "student id"], [1, "student details"], [2, "course id"], [2, "course name"], [2, "course description"], [2, "other details"], [7, "person address id"], [7, "person id"], [7, "date from"], [7, "date to"], [3, "student id"], [3, "course id"], [3, "registration date"], [4, "student id"], [4, "course id"], [4, "date of attendance"], [5, "candidate id"], [5, "candidate details"], [6, "candidate id"], [6, "qualification"], [6, "assessment date"], [6, "asessment outcome code"], [7, "address_id"]], "column_names_original": [[-1, "*"], [7, "line_1"], [7, "line_2"], [7, "city"], [7, "zip_postcode"], [7, "state_province_county"], [7, "country"], [0, "person_id"], [0, "first_name"], [0, "middle_name"], [0, "last_name"], [0, "cell_mobile_number"], [0, "email_address"], [0, "login_name"], [0, "password"], [1, "student_id"], [1, "student_details"], [2, "course_id"], [2, "course_name"], [2, "course_description"], [2, "other_details"], [7, "person_address_id"], [7, "person_id"], [7, "date_from"], [7, "date_to"], [3, "student_id"], [3, "course_id"], [3, "registration_date"], [4, "student_id"], [4, "course_id"], [4, "date_of_attendance"], [5, "candidate_id"], [5, "candidate_details"], [6, "candidate_id"], [6, "qualification"], [6, "assessment_date"], [6, "asessment_outcome_code"], [7, "address_id"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "number", "time", "time", "number", "number", "time", "number", "number", "time", "number", "text", "number", "text", "time", "text", "number"], "primary_keys": [7, 15, 17, 21, 25, 28, 31, 33, 37], "foreign_keys": [[15, 7], [22, 7], [26, 17], [25, 15], [28, 25], [29, 26], [31, 7], [33, 31]]}, {"db_id": "flight_1_minus_1_0", "table_names": ["flight", "aircraft", "employee_certificate"], "table_names_original": ["flight", "aircraft", "employee_certificate"], "column_names": [[-1, "*"], [0, "flno"], [0, "origin"], [0, "destination"], [0, "distance"], [0, "departure date"], [0, "arrival date"], [0, "price"], [0, "aid"], [1, "aid"], [1, "name"], [1, "distance"], [2, "name"], [2, "salary"], [2, "aid"], [2, "eid"]], "column_names_original": [[-1, "*"], [0, "flno"], [0, "origin"], [0, "destination"], [0, "distance"], [0, "departure_date"], [0, "arrival_date"], [0, "price"], [0, "aid"], [1, "aid"], [1, "name"], [1, "distance"], [2, "name"], [2, "salary"], [2, "aid"], [2, "eid"]], "column_types": ["text", "number", "text", "text", "number", "time", "time", "number", "number", "number", "text", "number", "text", "number", "number", "number"], "primary_keys": [1, 9, 15], "foreign_keys": [[8, 9], [14, 9]]}, {"db_id": "store_1_minus_1_0", "table_names": ["sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "invoice lines", "playlists", "tracks_playlist_tracks"], "table_names_original": ["artists", "something_sequence", "albums", "employees", "customers", "genres", "invoices", "media_types", "invoice_lines", "playlists", "tracks_playlist_tracks"], "column_names": [[-1, "*"], [0, "id"], [0, "name"], [1, "name"], [1, "seq"], [2, "id"], [2, "title"], [2, "artist id"], [3, "id"], [3, "last name"], [3, "first name"], [3, "title"], [3, "reports to"], [3, "birth date"], [3, "hire date"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postal code"], [3, "phone"], [3, "fax"], [3, "email"], [4, "id"], [4, "first name"], [4, "last name"], [4, "company"], [4, "address"], [4, "city"], [4, "state"], [4, "country"], [4, "postal code"], [4, "phone"], [4, "fax"], [4, "email"], [4, "support rep id"], [5, "id"], [5, "name"], [6, "id"], [6, "customer id"], [6, "invoice date"], [6, "billing address"], [6, "billing city"], [6, "billing state"], [6, "billing country"], [6, "billing postal code"], [6, "total"], [7, "id"], [7, "name"], [10, "name"], [10, "album id"], [10, "media type id"], [10, "genre id"], [10, "composer"], [10, "milliseconds"], [10, "bytes"], [10, "unit price"], [8, "id"], [8, "invoice id"], [8, "track id"], [8, "unit price"], [8, "quantity"], [9, "id"], [9, "name"], [10, "playlist id"], [10, "id"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [1, "name"], [1, "seq"], [2, "id"], [2, "title"], [2, "artist_id"], [3, "id"], [3, "last_name"], [3, "first_name"], [3, "title"], [3, "reports_to"], [3, "birth_date"], [3, "hire_date"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postal_code"], [3, "phone"], [3, "fax"], [3, "email"], [4, "id"], [4, "first_name"], [4, "last_name"], [4, "company"], [4, "address"], [4, "city"], [4, "state"], [4, "country"], [4, "postal_code"], [4, "phone"], [4, "fax"], [4, "email"], [4, "support_rep_id"], [5, "id"], [5, "name"], [6, "id"], [6, "customer_id"], [6, "invoice_date"], [6, "billing_address"], [6, "billing_city"], [6, "billing_state"], [6, "billing_country"], [6, "billing_postal_code"], [6, "total"], [7, "id"], [7, "name"], [10, "name"], [10, "album_id"], [10, "media_type_id"], [10, "genre_id"], [10, "composer"], [10, "milliseconds"], [10, "bytes"], [10, "unit_price"], [8, "id"], [8, "invoice_id"], [8, "track_id"], [8, "unit_price"], [8, "quantity"], [9, "id"], [9, "name"], [10, "playlist_id"], [10, "id"]], "column_types": ["text", "number", "text", "text", "text", "number", "text", "number", "number", "text", "text", "text", "number", "time", "time", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "number", "number", "time", "text", "text", "text", "text", "text", "number", "number", "text", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number"], "primary_keys": [1, 5, 8, 23, 36, 38, 47, 57, 62, 65, 65], "foreign_keys": [[7, 1], [12, 8], [35, 8], [39, 23], [51, 47], [52, 36], [50, 5], [59, 65], [58, 38], [65, 62]]}, {"db_id": "journal_committee_minus_1_0", "table_names": ["journal", "journal_committee_editor"], "table_names_original": ["journal", "journal_committee_editor"], "column_names": [[-1, "*"], [0, "journal id"], [0, "date"], [0, "theme"], [0, "sales"], [1, "name"], [1, "age"], [1, "journal id"], [1, "work type"], [1, "editor_id"]], "column_names_original": [[-1, "*"], [0, "journal_id"], [0, "date"], [0, "theme"], [0, "sales"], [1, "name"], [1, "age"], [1, "journal_id"], [1, "work_type"], [1, "editor_id"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "number", "text", "number"], "primary_keys": [1, 9], "foreign_keys": [[9, 1]]}, {"db_id": "chinook_1_minus_1_0", "table_names": ["artist", "customer", "employee", "genre", "invoice", "invoice line", "media type", "playlist", "playlist track", "album_track"], "table_names_original": ["artist", "customer", "employee", "genre", "invoice", "invoiceline", "mediatype", "playlist", "playlisttrack", "album_track"], "column_names": [[-1, "*"], [9, "title"], [9, "artistid"], [0, "artistid"], [0, "name"], [1, "customerid"], [1, "firstname"], [1, "lastname"], [1, "company"], [1, "address"], [1, "city"], [1, "state"], [1, "country"], [1, "postalcode"], [1, "phone"], [1, "fax"], [1, "email"], [1, "supportrepid"], [2, "employeeid"], [2, "lastname"], [2, "firstname"], [2, "title"], [2, "reportsto"], [2, "birthdate"], [2, "hiredate"], [2, "address"], [2, "city"], [2, "state"], [2, "country"], [2, "postalcode"], [2, "phone"], [2, "fax"], [2, "email"], [3, "genreid"], [3, "name"], [4, "invoiceid"], [4, "customerid"], [4, "invoicedate"], [4, "billingaddress"], [4, "billingcity"], [4, "billingstate"], [4, "billingcountry"], [4, "billingpostalcode"], [4, "total"], [5, "invoicelineid"], [5, "invoiceid"], [5, "trackid"], [5, "unitprice"], [5, "quantity"], [6, "mediatypeid"], [6, "name"], [7, "playlistid"], [7, "name"], [8, "playlistid"], [8, "trackid"], [9, "trackid"], [9, "name"], [9, "mediatypeid"], [9, "genreid"], [9, "composer"], [9, "milliseconds"], [9, "bytes"], [9, "unitprice"], [9, "albumid"]], "column_names_original": [[-1, "*"], [9, "title"], [9, "artistid"], [0, "artistid"], [0, "name"], [1, "customerid"], [1, "firstname"], [1, "lastname"], [1, "company"], [1, "address"], [1, "city"], [1, "state"], [1, "country"], [1, "postalcode"], [1, "phone"], [1, "fax"], [1, "email"], [1, "supportrepid"], [2, "employeeid"], [2, "lastname"], [2, "firstname"], [2, "title"], [2, "reportsto"], [2, "birthdate"], [2, "hiredate"], [2, "address"], [2, "city"], [2, "state"], [2, "country"], [2, "postalcode"], [2, "phone"], [2, "fax"], [2, "email"], [3, "genreid"], [3, "name"], [4, "invoiceid"], [4, "customerid"], [4, "invoicedate"], [4, "billingaddress"], [4, "billingcity"], [4, "billingstate"], [4, "billingcountry"], [4, "billingpostalcode"], [4, "total"], [5, "invoicelineid"], [5, "invoiceid"], [5, "trackid"], [5, "unitprice"], [5, "quantity"], [6, "mediatypeid"], [6, "name"], [7, "playlistid"], [7, "name"], [8, "playlistid"], [8, "trackid"], [9, "trackid"], [9, "name"], [9, "mediatypeid"], [9, "genreid"], [9, "composer"], [9, "milliseconds"], [9, "bytes"], [9, "unitprice"], [9, "albumid"]], "column_types": ["text", "text", "number", "number", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "number", "time", "time", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "number", "number", "time", "text", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "text", "number", "text", "number", "number", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [3, 5, 18, 33, 35, 44, 49, 51, 53, 55, 63], "foreign_keys": [[2, 3], [17, 18], [22, 18], [36, 5], [46, 55], [45, 35], [54, 55], [53, 51], [57, 49], [58, 33]]}, {"db_id": "insurance_fnol_minus_1_1", "table_names": ["services", "available policies", "first notification of loss", "claims", "settlements", "customers_customers_policies"], "table_names_original": ["services", "available_policies", "first_notification_of_loss", "claims", "settlements", "customers_customers_policies"], "column_names": [[-1, "*"], [5, "customer name"], [0, "service id"], [0, "service name"], [1, "policy id"], [1, "policy type code"], [1, "customer phone"], [5, "policy id"], [5, "date opened"], [5, "date closed"], [2, "fnol id"], [2, "customer id"], [2, "policy id"], [2, "service id"], [3, "claim id"], [3, "fnol id"], [3, "effective date"], [4, "settlement id"], [4, "claim id"], [4, "effective date"], [4, "settlement amount"], [5, "customer_id"]], "column_names_original": [[-1, "*"], [5, "customer_name"], [0, "service_id"], [0, "service_name"], [1, "policy_id"], [1, "policy_type_code"], [1, "customer_phone"], [5, "policy_id"], [5, "date_opened"], [5, "date_closed"], [2, "fnol_id"], [2, "customer_id"], [2, "policy_id"], [2, "service_id"], [3, "claim_id"], [3, "fnol_id"], [3, "effective_date"], [4, "settlement_id"], [4, "claim_id"], [4, "effective_date"], [4, "settlement_amount"], [5, "customer_id"]], "column_types": ["text", "text", "number", "text", "number", "text", "text", "number", "time", "time", "number", "number", "number", "number", "number", "number", "time", "number", "number", "time", "number", "number"], "primary_keys": [2, 4, 10, 14, 17, 21], "foreign_keys": [[7, 4], [11, 21], [12, 7], [13, 2], [15, 10], [18, 14]]}, {"db_id": "insurance_fnol_minus_1_0", "table_names": ["services", "available policies", "customers policies", "claims", "settlements", "customers_first_notification_of_loss"], "table_names_original": ["services", "available_policies", "customers_policies", "claims", "settlements", "customers_first_notification_of_loss"], "column_names": [[-1, "*"], [5, "customer name"], [0, "service id"], [0, "service name"], [1, "policy id"], [1, "policy type code"], [1, "customer phone"], [2, "customer id"], [2, "policy id"], [2, "date opened"], [2, "date closed"], [5, "fnol id"], [5, "policy id"], [5, "service id"], [3, "claim id"], [3, "fnol id"], [3, "effective date"], [4, "settlement id"], [4, "claim id"], [4, "effective date"], [4, "settlement amount"], [5, "customer_id"]], "column_names_original": [[-1, "*"], [5, "customer_name"], [0, "service_id"], [0, "service_name"], [1, "policy_id"], [1, "policy_type_code"], [1, "customer_phone"], [2, "customer_id"], [2, "policy_id"], [2, "date_opened"], [2, "date_closed"], [5, "fnol_id"], [5, "policy_id"], [5, "service_id"], [3, "claim_id"], [3, "fnol_id"], [3, "effective_date"], [4, "settlement_id"], [4, "claim_id"], [4, "effective_date"], [4, "settlement_amount"], [5, "customer_id"]], "column_types": ["text", "text", "number", "text", "number", "text", "text", "number", "number", "time", "time", "number", "number", "number", "number", "number", "time", "number", "number", "time", "number", "number"], "primary_keys": [2, 4, 7, 11, 14, 17, 21], "foreign_keys": [[8, 4], [7, 21], [21, 7], [12, 8], [13, 2], [15, 11], [18, 14]]}, {"db_id": "game_injury_minus_1_0", "table_names": ["injury accident", "stadium_game"], "table_names_original": ["injury_accident", "stadium_game"], "column_names": [[-1, "*"], [1, "name"], [1, "home games"], [1, "average attendance"], [1, "total attendance"], [1, "capacity percentage"], [1, "id game"], [1, "season"], [1, "date"], [1, "home team"], [1, "away team"], [1, "score"], [1, "competition"], [0, "game id"], [0, "id"], [0, "player"], [0, "injury"], [0, "number of matches"], [0, "source"], [1, "id"]], "column_names_original": [[-1, "*"], [1, "name"], [1, "home_games"], [1, "average_attendance"], [1, "total_attendance"], [1, "capacity_percentage"], [1, "id_game"], [1, "season"], [1, "date"], [1, "home_team"], [1, "away_team"], [1, "score"], [1, "competition"], [0, "game_id"], [0, "id"], [0, "player"], [0, "injury"], [0, "number_of_matches"], [0, "source"], [1, "id"]], "column_types": ["text", "text", "number", "number", "number", "number", "number", "number", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number"], "primary_keys": [6, 14, 19], "foreign_keys": [[13, 6]]}, {"db_id": "college_2_minus_1_0", "table_names": ["classroom", "department", "course", "section", "student", "takes classes", "advisor", "time slot", "prerequisite", "instructor_teaches"], "table_names_original": ["classroom", "department", "course", "section", "student", "takes", "advisor", "time_slot", "prereq", "instructor_teaches"], "column_names": [[-1, "*"], [0, "building"], [0, "room number"], [0, "capacity"], [1, "dept name"], [1, "building"], [1, "budget"], [2, "course id"], [2, "title"], [2, "dept name"], [2, "credits"], [9, "name"], [9, "dept name"], [9, "salary"], [3, "course id"], [3, "sec id"], [3, "semester"], [3, "year"], [3, "building"], [3, "room number"], [3, "time slot id"], [9, "course id"], [9, "sec id"], [9, "semester"], [9, "year"], [4, "id"], [4, "name"], [4, "dept name"], [4, "tot cred"], [5, "id"], [5, "course id"], [5, "sec id"], [5, "semester"], [5, "year"], [5, "grade"], [6, "s id"], [6, "i id"], [7, "time slot id"], [7, "day"], [7, "start hr"], [7, "start min"], [7, "end hr"], [7, "end min"], [8, "course id"], [8, "prereq id"], [9, "id"]], "column_names_original": [[-1, "*"], [0, "building"], [0, "room_number"], [0, "capacity"], [1, "dept_name"], [1, "building"], [1, "budget"], [2, "course_id"], [2, "title"], [2, "dept_name"], [2, "credits"], [9, "name"], [9, "dept_name"], [9, "salary"], [3, "course_id"], [3, "sec_id"], [3, "semester"], [3, "year"], [3, "building"], [3, "room_number"], [3, "time_slot_id"], [9, "course_id"], [9, "sec_id"], [9, "semester"], [9, "year"], [4, "id"], [4, "name"], [4, "dept_name"], [4, "tot_cred"], [5, "id"], [5, "course_id"], [5, "sec_id"], [5, "semester"], [5, "year"], [5, "grade"], [6, "s_id"], [6, "i_id"], [7, "time_slot_id"], [7, "day"], [7, "start_hr"], [7, "start_min"], [7, "end_hr"], [7, "end_min"], [8, "course_id"], [8, "prereq_id"], [9, "id"]], "column_types": ["text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "number", "number", "number", "text", "text", "text"], "primary_keys": [1, 4, 7, 14, 25, 29, 35, 37, 45, 45], "foreign_keys": [[9, 4], [12, 4], [18, 1], [19, 2], [14, 7], [21, 14], [22, 15], [23, 16], [24, 17], [27, 4], [29, 25], [30, 14], [31, 15], [32, 16], [33, 17], [35, 25], [36, 45], [44, 7], [45, 7]]}, {"db_id": "college_2_minus_1_2", "table_names": ["classroom", "department", "course", "section", "teaches", "student", "takes classes", "time slot", "prerequisite", "advisor_instructor"], "table_names_original": ["classroom", "department", "course", "section", "teaches", "student", "takes", "time_slot", "prereq", "advisor_instructor"], "column_names": [[-1, "*"], [0, "building"], [0, "room number"], [0, "capacity"], [1, "dept name"], [1, "building"], [1, "budget"], [2, "course id"], [2, "title"], [2, "dept name"], [2, "credits"], [9, "name"], [9, "dept name"], [9, "salary"], [3, "course id"], [3, "sec id"], [3, "semester"], [3, "year"], [3, "building"], [3, "room number"], [3, "time slot id"], [4, "id"], [4, "course id"], [4, "sec id"], [4, "semester"], [4, "year"], [5, "id"], [5, "name"], [5, "dept name"], [5, "tot cred"], [6, "id"], [6, "course id"], [6, "sec id"], [6, "semester"], [6, "year"], [6, "grade"], [9, "s id"], [7, "time slot id"], [7, "day"], [7, "start hr"], [7, "start min"], [7, "end hr"], [7, "end min"], [8, "course id"], [8, "prereq id"], [9, "i_id"]], "column_names_original": [[-1, "*"], [0, "building"], [0, "room_number"], [0, "capacity"], [1, "dept_name"], [1, "building"], [1, "budget"], [2, "course_id"], [2, "title"], [2, "dept_name"], [2, "credits"], [9, "name"], [9, "dept_name"], [9, "salary"], [3, "course_id"], [3, "sec_id"], [3, "semester"], [3, "year"], [3, "building"], [3, "room_number"], [3, "time_slot_id"], [4, "id"], [4, "course_id"], [4, "sec_id"], [4, "semester"], [4, "year"], [5, "id"], [5, "name"], [5, "dept_name"], [5, "tot_cred"], [6, "id"], [6, "course_id"], [6, "sec_id"], [6, "semester"], [6, "year"], [6, "grade"], [9, "s_id"], [7, "time_slot_id"], [7, "day"], [7, "start_hr"], [7, "start_min"], [7, "end_hr"], [7, "end_min"], [8, "course_id"], [8, "prereq_id"], [9, "i_id"]], "column_types": ["text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "text", "text", "text"], "primary_keys": [1, 4, 7, 14, 21, 26, 30, 36, 37, 45, 45], "foreign_keys": [[9, 4], [12, 4], [18, 1], [19, 2], [14, 7], [21, 45], [22, 14], [23, 15], [24, 16], [25, 17], [28, 4], [30, 26], [31, 14], [32, 15], [33, 16], [34, 17], [36, 26], [44, 7], [45, 7]]}, {"db_id": "college_2_minus_1_1", "table_names": ["classroom", "course", "instructor", "section", "teaches", "takes classes", "advisor", "time slot", "prerequisite", "department_student"], "table_names_original": ["classroom", "course", "instructor", "section", "teaches", "takes", "advisor", "time_slot", "prereq", "department_student"], "column_names": [[-1, "*"], [0, "building"], [0, "room number"], [0, "capacity"], [9, "building"], [9, "budget"], [1, "course id"], [1, "title"], [1, "dept name"], [1, "credits"], [2, "id"], [2, "name"], [2, "dept name"], [2, "salary"], [3, "course id"], [3, "sec id"], [3, "semester"], [3, "year"], [3, "building"], [3, "room number"], [3, "time slot id"], [4, "id"], [4, "course id"], [4, "sec id"], [4, "semester"], [4, "year"], [9, "id"], [9, "name"], [9, "tot cred"], [5, "id"], [5, "course id"], [5, "sec id"], [5, "semester"], [5, "year"], [5, "grade"], [6, "s id"], [6, "i id"], [7, "time slot id"], [7, "day"], [7, "start hr"], [7, "start min"], [7, "end hr"], [7, "end min"], [8, "course id"], [8, "prereq id"], [9, "dept_name"]], "column_names_original": [[-1, "*"], [0, "building"], [0, "room_number"], [0, "capacity"], [9, "building"], [9, "budget"], [1, "course_id"], [1, "title"], [1, "dept_name"], [1, "credits"], [2, "id"], [2, "name"], [2, "dept_name"], [2, "salary"], [3, "course_id"], [3, "sec_id"], [3, "semester"], [3, "year"], [3, "building"], [3, "room_number"], [3, "time_slot_id"], [4, "id"], [4, "course_id"], [4, "sec_id"], [4, "semester"], [4, "year"], [9, "id"], [9, "name"], [9, "tot_cred"], [5, "id"], [5, "course_id"], [5, "sec_id"], [5, "semester"], [5, "year"], [5, "grade"], [6, "s_id"], [6, "i_id"], [7, "time_slot_id"], [7, "day"], [7, "start_hr"], [7, "start_min"], [7, "end_hr"], [7, "end_min"], [8, "course_id"], [8, "prereq_id"], [9, "dept_name"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "number", "number", "number", "text", "text", "text"], "primary_keys": [1, 6, 10, 14, 21, 26, 29, 35, 37, 45, 45], "foreign_keys": [[8, 45], [12, 45], [18, 1], [19, 2], [14, 6], [21, 10], [22, 14], [23, 15], [24, 16], [25, 17], [29, 26], [30, 14], [31, 15], [32, 16], [33, 17], [35, 26], [36, 10], [44, 6], [45, 6]]}, {"db_id": "debate_minus_1_0", "table_names": ["people", "debate_people_debate"], "table_names_original": ["people", "debate_people_debate"], "column_names": [[-1, "*"], [0, "people id"], [0, "district"], [0, "name"], [0, "party"], [0, "age"], [1, "date"], [1, "venue"], [1, "num of audience"], [1, "affirmative"], [1, "negative"], [1, "if affirmative win"], [1, "debate_id"]], "column_names_original": [[-1, "*"], [0, "people_id"], [0, "district"], [0, "name"], [0, "party"], [0, "age"], [1, "date"], [1, "venue"], [1, "num_of_audience"], [1, "affirmative"], [1, "negative"], [1, "if_affirmative_win"], [1, "debate_id"]], "column_types": ["text", "number", "text", "text", "text", "number", "text", "text", "number", "number", "number", "others", "number"], "primary_keys": [1, 12], "foreign_keys": [[12, 1], [9, 1]]}, {"db_id": "insurance_and_eClaims_minus_1_0", "table_names": ["customers", "staff", "claims documents", "claims processing stages", "claims processing", "claim_headers_policies"], "table_names_original": ["customers", "staff", "claims_documents", "claims_processing_stages", "claims_processing", "claim_headers_policies"], "column_names": [[-1, "*"], [0, "customer id"], [0, "customer details"], [1, "staff id"], [1, "staff details"], [5, "customer id"], [5, "policy type code"], [5, "start date"], [5, "end date"], [5, "claim header id"], [5, "claim status code"], [5, "claim type code"], [5, "date of claim"], [5, "date of settlement"], [5, "amount claimed"], [5, "amount piad"], [2, "claim id"], [2, "document type code"], [2, "created by staff id"], [2, "created date"], [3, "claim stage id"], [3, "next claim stage id"], [3, "claim status name"], [3, "claim status description"], [4, "claim processing id"], [4, "claim id"], [4, "claim outcome code"], [4, "claim stage id"], [4, "staff id"], [5, "policy_id"]], "column_names_original": [[-1, "*"], [0, "customer_id"], [0, "customer_details"], [1, "staff_id"], [1, "staff_details"], [5, "customer_id"], [5, "policy_type_code"], [5, "start_date"], [5, "end_date"], [5, "claim_header_id"], [5, "claim_status_code"], [5, "claim_type_code"], [5, "date_of_claim"], [5, "date_of_settlement"], [5, "amount_claimed"], [5, "amount_piad"], [2, "claim_id"], [2, "document_type_code"], [2, "created_by_staff_id"], [2, "created_date"], [3, "claim_stage_id"], [3, "next_claim_stage_id"], [3, "claim_status_name"], [3, "claim_status_description"], [4, "claim_processing_id"], [4, "claim_id"], [4, "claim_outcome_code"], [4, "claim_stage_id"], [4, "staff_id"], [5, "policy_id"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "time", "time", "number", "text", "text", "time", "time", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "number", "number", "text", "number", "number", "number"], "primary_keys": [1, 3, 9, 16, 20, 24, 29], "foreign_keys": [[5, 1], [18, 3], [16, 9], [28, 3], [25, 9]]}, {"db_id": "customers_and_invoices_minus_1_0", "table_names": ["customers", "orders", "invoices", "accounts", "product categories", "financial transactions", "invoice line items", "order_items_products"], "table_names_original": ["customers", "orders", "invoices", "accounts", "product_categories", "financial_transactions", "invoice_line_items", "order_items_products"], "column_names": [[-1, "*"], [0, "customer id"], [0, "customer first name"], [0, "customer middle initial"], [0, "customer last name"], [0, "gender"], [0, "email address"], [0, "login name"], [0, "login password"], [0, "phone number"], [0, "town city"], [0, "state county province"], [0, "country"], [1, "order id"], [1, "customer id"], [1, "date order placed"], [1, "order details"], [2, "invoice number"], [2, "order id"], [2, "invoice date"], [3, "account id"], [3, "customer id"], [3, "date account opened"], [3, "account name"], [3, "other account details"], [4, "production type code"], [4, "product type description"], [4, "vat rating"], [7, "parent product id"], [7, "production type code"], [7, "unit price"], [7, "product name"], [7, "product color"], [7, "product size"], [5, "transaction id"], [5, "account id"], [5, "invoice number"], [5, "transaction type"], [5, "transaction date"], [5, "transaction amount"], [5, "transaction comment"], [5, "other transaction details"], [7, "order item id"], [7, "order id"], [7, "product quantity"], [7, "other order item details"], [6, "order item id"], [6, "invoice number"], [6, "product id"], [6, "product title"], [6, "product quantity"], [6, "product price"], [6, "derived product cost"], [6, "derived vat payable"], [6, "derived total cost"], [7, "product_id"]], "column_names_original": [[-1, "*"], [0, "customer_id"], [0, "customer_first_name"], [0, "customer_middle_initial"], [0, "customer_last_name"], [0, "gender"], [0, "email_address"], [0, "login_name"], [0, "login_password"], [0, "phone_number"], [0, "town_city"], [0, "state_county_province"], [0, "country"], [1, "order_id"], [1, "customer_id"], [1, "date_order_placed"], [1, "order_details"], [2, "invoice_number"], [2, "order_id"], [2, "invoice_date"], [3, "account_id"], [3, "customer_id"], [3, "date_account_opened"], [3, "account_name"], [3, "other_account_details"], [4, "production_type_code"], [4, "product_type_description"], [4, "vat_rating"], [7, "parent_product_id"], [7, "production_type_code"], [7, "unit_price"], [7, "product_name"], [7, "product_color"], [7, "product_size"], [5, "transaction_id"], [5, "account_id"], [5, "invoice_number"], [5, "transaction_type"], [5, "transaction_date"], [5, "transaction_amount"], [5, "transaction_comment"], [5, "other_transaction_details"], [7, "order_item_id"], [7, "order_id"], [7, "product_quantity"], [7, "other_order_item_details"], [6, "order_item_id"], [6, "invoice_number"], [6, "product_id"], [6, "product_title"], [6, "product_quantity"], [6, "product_price"], [6, "derived_product_cost"], [6, "derived_vat_payable"], [6, "derived_total_cost"], [7, "product_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "time", "text", "number", "number", "time", "number", "number", "time", "text", "text", "text", "text", "number", "number", "text", "number", "text", "text", "text", "number", "number", "number", "text", "time", "number", "text", "text", "number", "number", "text", "text", "number", "number", "number", "text", "text", "number", "number", "number", "number", "number"], "primary_keys": [1, 13, 17, 20, 25, 42, 55], "foreign_keys": [[14, 1], [18, 13], [21, 1], [29, 25], [35, 20], [36, 17], [43, 13], [48, 55], [47, 17], [46, 42]]}, {"db_id": "theme_gallery_minus_1_0", "table_names": ["artist", "exhibition_record_exhibition"], "table_names_original": ["artist", "exhibition_record_exhibition"], "column_names": [[-1, "*"], [0, "artist id"], [0, "name"], [0, "country"], [0, "year join"], [0, "age"], [1, "year"], [1, "theme"], [1, "artist id"], [1, "ticket price"], [1, "date"], [1, "attendance"], [1, "exhibition_id"]], "column_names_original": [[-1, "*"], [0, "artist_id"], [0, "name"], [0, "country"], [0, "year_join"], [0, "age"], [1, "year"], [1, "theme"], [1, "artist_id"], [1, "ticket_price"], [1, "date"], [1, "attendance"], [1, "exhibition_id"]], "column_types": ["text", "number", "text", "text", "number", "number", "number", "text", "number", "number", "text", "number", "number"], "primary_keys": [1, 12], "foreign_keys": [[8, 1]]}, {"db_id": "riding_club_minus_1_0", "table_names": ["player", "club", "match result", "player_coach_coach"], "table_names_original": ["player", "club", "match_result", "player_coach_coach"], "column_names": [[-1, "*"], [0, "player id"], [0, "sponsor name"], [0, "player name"], [0, "gender"], [0, "residence"], [0, "occupation"], [0, "votes"], [0, "rank"], [1, "club id"], [1, "club name"], [1, "region"], [1, "start year"], [3, "coach name"], [3, "gender"], [3, "club id"], [3, "rank"], [3, "player id"], [3, "starting year"], [2, "rank"], [2, "club id"], [2, "gold"], [2, "big silver"], [2, "small silver"], [2, "bronze"], [2, "points"], [3, "coach_id"]], "column_names_original": [[-1, "*"], [0, "player_id"], [0, "sponsor_name"], [0, "player_name"], [0, "gender"], [0, "residence"], [0, "occupation"], [0, "votes"], [0, "rank"], [1, "club_id"], [1, "club_name"], [1, "region"], [1, "start_year"], [3, "coach_name"], [3, "gender"], [3, "club_id"], [3, "rank"], [3, "player_id"], [3, "starting_year"], [2, "rank"], [2, "club_id"], [2, "gold"], [2, "big_silver"], [2, "small_silver"], [2, "bronze"], [2, "points"], [3, "coach_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "text", "number", "text", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 9, 17, 19, 26], "foreign_keys": [[15, 9], [17, 1], [20, 9]]}, {"db_id": "small_bank_1_minus_1_0", "table_names": ["savings", "accounts_checking"], "table_names_original": ["savings", "accounts_checking"], "column_names": [[-1, "*"], [1, "name"], [0, "custid"], [0, "balance"], [1, "balance"], [1, "custid"]], "column_names_original": [[-1, "*"], [1, "name"], [0, "custid"], [0, "balance"], [1, "balance"], [1, "custid"]], "column_types": ["text", "text", "number", "number", "number", "number"], "primary_keys": [2, 5], "foreign_keys": [[2, 5]]}, {"db_id": "browser_web_minus_1_0", "table_names": ["browser", "web_client_accelerator_accelerator_compatible_browser"], "table_names_original": ["browser", "web_client_accelerator_accelerator_compatible_browser"], "column_names": [[-1, "*"], [1, "name"], [1, "operating system"], [1, "client"], [1, "connection"], [0, "id"], [0, "name"], [0, "market share"], [1, "browser id"], [1, "compatible since year"], [1, "id"]], "column_names_original": [[-1, "*"], [1, "name"], [1, "operating_system"], [1, "client"], [1, "connection"], [0, "id"], [0, "name"], [0, "market_share"], [1, "browser_id"], [1, "compatible_since_year"], [1, "id"]], "column_types": ["text", "text", "text", "text", "text", "number", "text", "number", "number", "number", "number"], "primary_keys": [5, 10], "foreign_keys": [[10, 5]]}, {"column_names": [[-1, "*"], [0, "film id"], [0, "title"], [0, "studio"], [0, "director"], [0, "gross in dollar"], [1, "market id"], [1, "country"], [1, "number cities"], [2, "estimation id"], [2, "low estimate"], [2, "high estimate"], [2, "film id"], [2, "type"], [2, "market id"], [2, "year"]], "column_names_original": [[-1, "*"], [0, "film_id"], [0, "title"], [0, "studio"], [0, "director"], [0, "gross_in_dollar"], [1, "market_id"], [1, "country"], [1, "number_cities"], [2, "estimation_id"], [2, "low_estimate"], [2, "high_estimate"], [2, "film_id"], [2, "type"], [2, "market_id"], [2, "year"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "number", "number", "number", "number", "number", "text", "number", "number"], "db_id": "film_rank", "foreign_keys": [[14, 6], [12, 1]], "primary_keys": [1, 6, 9], "table_names": ["film", "market", "film market estimation"], "table_names_original": ["film", "market", "film_market_estimation"]}, {"column_names": [[-1, "*"], [0, "body builder id"], [0, "people id"], [0, "snatch"], [0, "clean jerk"], [0, "total"], [1, "people id"], [1, "name"], [1, "height"], [1, "weight"], [1, "birth date"], [1, "birth place"]], "column_names_original": [[-1, "*"], [0, "body_builder_id"], [0, "people_id"], [0, "snatch"], [0, "clean_jerk"], [0, "total"], [1, "people_id"], [1, "name"], [1, "height"], [1, "weight"], [1, "birth_date"], [1, "birth_place"]], "column_types": ["text", "number", "number", "number", "number", "number", "number", "text", "number", "number", "text", "text"], "db_id": "body_builder", "foreign_keys": [[2, 6]], "primary_keys": [1, 6], "table_names": ["body builder", "people"], "table_names_original": ["body_builder", "people"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "nationality"], [0, "gender"], [1, "architect id"], [1, "id"], [1, "name"], [1, "location"], [1, "length meters"], [1, "length feet"], [2, "architect id"], [2, "id"], [2, "location"], [2, "name"], [2, "type"], [2, "built year"], [2, "notes"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "nationality"], [0, "gender"], [1, "architect_id"], [1, "id"], [1, "name"], [1, "location"], [1, "length_meters"], [1, "length_feet"], [2, "architect_id"], [2, "id"], [2, "location"], [2, "name"], [2, "type"], [2, "built_year"], [2, "notes"]], "column_types": ["text", "text", "text", "text", "text", "number", "number", "text", "text", "number", "number", "number", "number", "text", "text", "text", "number", "text"], "db_id": "architecture", "foreign_keys": [[5, 1], [11, 1]], "primary_keys": [1, 6, 12], "table_names": ["architect", "bridge", "mill"], "table_names_original": ["architect", "bridge", "mill"]}, {"column_names": [[-1, "*"], [0, "song id"], [0, "title"], [1, "aid"], [1, "title"], [1, "year"], [1, "label"], [1, "type"], [2, "id"], [2, "first name"], [2, "last name"], [3, "song id"], [3, "bandmate id"], [3, "instrument"], [4, "song id"], [4, "bandmate"], [4, "stage position"], [5, "album id"], [5, "position"], [5, "song id"], [6, "song id"], [6, "bandmate"], [6, "type"]], "column_names_original": [[-1, "*"], [0, "songid"], [0, "title"], [1, "aid"], [1, "title"], [1, "year"], [1, "label"], [1, "type"], [2, "id"], [2, "firstname"], [2, "lastname"], [3, "songid"], [3, "bandmateid"], [3, "instrument"], [4, "songid"], [4, "bandmate"], [4, "stageposition"], [5, "albumid"], [5, "position"], [5, "songid"], [6, "songid"], [6, "bandmate"], [6, "type"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "text", "number", "text", "text", "number", "number", "text", "number", "number", "text", "number", "number", "number", "number", "number", "text"], "db_id": "music_2", "foreign_keys": [[12, 8], [11, 1], [15, 8], [14, 1], [17, 3], [19, 1], [21, 8], [20, 1]], "primary_keys": [1, 3, 8, 11, 14, 17, 20], "table_names": ["songs", "albums", "band", "instruments", "performance", "track lists", "vocals"], "table_names_original": ["songs", "albums", "band", "instruments", "performance", "tracklists", "vocals"]}, {"column_names": [[-1, "*"], [0, "team id"], [0, "school id"], [0, "team name"], [0, "acc regular season"], [0, "acc percent"], [0, "acc home"], [0, "acc road"], [0, "all games"], [0, "all games percent"], [0, "all home"], [0, "all road"], [0, "all neutral"], [1, "school id"], [1, "school"], [1, "location"], [1, "founded"], [1, "affiliation"], [1, "enrollment"], [1, "nickname"], [1, "primary conference"]], "column_names_original": [[-1, "*"], [0, "team_id"], [0, "school_id"], [0, "team_name"], [0, "acc_regular_season"], [0, "acc_percent"], [0, "acc_home"], [0, "acc_road"], [0, "all_games"], [0, "all_games_percent"], [0, "all_home"], [0, "all_road"], [0, "all_neutral"], [1, "school_id"], [1, "school"], [1, "location"], [1, "founded"], [1, "affiliation"], [1, "enrollment"], [1, "nickname"], [1, "primary_conference"]], "column_types": ["text", "number", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "number", "text", "number", "text", "text"], "db_id": "university_basketball", "foreign_keys": [[2, 13]], "primary_keys": [1, 13], "table_names": ["basketball match", "university"], "table_names_original": ["basketball_match", "university"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "date"], [0, "bulgarian commander"], [0, "latin commander"], [0, "result"], [1, "lost in battle"], [1, "id"], [1, "name"], [1, "tonnage"], [1, "ship type"], [1, "location"], [1, "disposition of ship"], [2, "caused by ship id"], [2, "id"], [2, "note"], [2, "killed"], [2, "injured"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "date"], [0, "bulgarian_commander"], [0, "latin_commander"], [0, "result"], [1, "lost_in_battle"], [1, "id"], [1, "name"], [1, "tonnage"], [1, "ship_type"], [1, "location"], [1, "disposition_of_ship"], [2, "caused_by_ship_id"], [2, "id"], [2, "note"], [2, "killed"], [2, "injured"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "number", "number", "text", "number", "number"], "db_id": "battle_death", "foreign_keys": [[7, 1], [14, 8]], "primary_keys": [1, 8, 15], "table_names": ["battle", "ship", "death"], "table_names_original": ["battle", "ship", "death"]}, {"column_names": [[-1, "*"], [0, "model name"], [0, "launch year"], [0, "ram mib"], [0, "rom mib"], [0, "slots"], [0, "wifi"], [0, "bluetooth"], [1, "graphics mode"], [1, "char cells"], [1, "pixels"], [1, "hardware colours"], [1, "used kb"], [1, "map"], [1, "type"], [2, "company name"], [2, "hardware model name"], [2, "accreditation type"], [2, "accreditation level"], [2, "date"], [2, "chip model"], [2, "screen mode"]], "column_names_original": [[-1, "*"], [0, "model_name"], [0, "launch_year"], [0, "ram_mib"], [0, "rom_mib"], [0, "slots"], [0, "wifi"], [0, "bluetooth"], [1, "graphics_mode"], [1, "char_cells"], [1, "pixels"], [1, "hardware_colours"], [1, "used_kb"], [1, "map"], [1, "type"], [2, "company_name"], [2, "hardware_model_name"], [2, "accreditation_type"], [2, "accreditation_level"], [2, "date"], [2, "chip_model"], [2, "screen_mode"]], "column_types": ["text", "text", "number", "number", "number", "text", "text", "text", "number", "text", "text", "number", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text"], "db_id": "phone_1", "foreign_keys": [[20, 1], [21, 8]], "primary_keys": [1, 8, 16], "table_names": ["chip model", "screen mode", "phone"], "table_names_original": ["chip_model", "screen_mode", "phone"]}, {"column_names": [[-1, "*"], [0, "document type code"], [0, "document description"], [1, "document id"], [1, "document type code"], [1, "grant id"], [1, "sent date"], [1, "response received date"], [1, "other details"], [2, "grant id"], [2, "organisation id"], [2, "grant amount"], [2, "grant start date"], [2, "grant end date"], [2, "other details"], [3, "organisation type"], [3, "organisation type description"], [4, "organisation id"], [4, "organisation type"], [4, "organisation details"], [5, "project id"], [5, "outcome code"], [5, "outcome details"], [6, "staff id"], [6, "project id"], [6, "role code"], [6, "date from"], [6, "date to"], [6, "other details"], [7, "project id"], [7, "organisation id"], [7, "project details"], [8, "outcome code"], [8, "outcome description"], [9, "staff id"], [9, "employer organisation id"], [9, "staff details"], [10, "role code"], [10, "role description"], [11, "task id"], [11, "project id"], [11, "task details"], [11, "eg_agree_objectives"]], "column_names_original": [[-1, "*"], [0, "document_type_code"], [0, "document_description"], [1, "document_id"], [1, "document_type_code"], [1, "grant_id"], [1, "sent_date"], [1, "response_received_date"], [1, "other_details"], [2, "grant_id"], [2, "organisation_id"], [2, "grant_amount"], [2, "grant_start_date"], [2, "grant_end_date"], [2, "other_details"], [3, "organisation_type"], [3, "organisation_type_description"], [4, "organisation_id"], [4, "organisation_type"], [4, "organisation_details"], [5, "project_id"], [5, "outcome_code"], [5, "outcome_details"], [6, "staff_id"], [6, "project_id"], [6, "role_code"], [6, "date_from"], [6, "date_to"], [6, "other_details"], [7, "project_id"], [7, "organisation_id"], [7, "project_details"], [8, "outcome_code"], [8, "outcome_description"], [9, "staff_id"], [9, "employer_organisation_id"], [9, "staff_details"], [10, "role_code"], [10, "role_description"], [11, "task_id"], [11, "project_id"], [11, "task_details"], [11, "eg_agree_objectives"]], "column_types": ["text", "text", "text", "number", "text", "number", "time", "time", "text", "number", "number", "number", "time", "time", "text", "text", "text", "number", "text", "text", "number", "text", "text", "number", "number", "text", "time", "time", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text"], "db_id": "tracking_grants_for_research", "foreign_keys": [[5, 9], [4, 1], [10, 17], [18, 15], [21, 32], [20, 29], [25, 37], [24, 29], [30, 17], [35, 17], [40, 29]], "primary_keys": [1, 3, 9, 15, 17, 23, 29, 32, 34, 37, 39], "table_names": ["document types", "documents", "grants", "organisation types", "organisations", "project outcomes", "project staff", "projects", "research outcomes", "research staff", "staff roles", "tasks"], "table_names_original": ["document_types", "documents", "grants", "organisation_types", "organisations", "project_outcomes", "project_staff", "projects", "research_outcomes", "research_staff", "staff_roles", "tasks"]}, {"column_names": [[-1, "*"], [0, "student id"], [0, "last name"], [0, "first name"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city code"], [1, "dorm id"], [1, "dorm name"], [1, "student capacity"], [1, "gender"], [2, "amenity id"], [2, "amenity name"], [3, "dorm id"], [3, "amenity id"], [4, "student id"], [4, "dorm id"], [4, "room number"]], "column_names_original": [[-1, "*"], [0, "stuid"], [0, "lname"], [0, "fname"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city_code"], [1, "dormid"], [1, "dorm_name"], [1, "student_capacity"], [1, "gender"], [2, "amenid"], [2, "amenity_name"], [3, "dormid"], [3, "amenid"], [4, "stuid"], [4, "dormid"], [4, "room_number"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "text", "number", "text", "number", "text", "number", "number", "number", "number", "number"], "db_id": "dorm_1", "foreign_keys": [[16, 13], [15, 9], [18, 9], [17, 1]], "primary_keys": [1], "table_names": ["student", "dorm", "dorm amenity", "has amenity", "lives in"], "table_names_original": ["student", "dorm", "dorm_amenity", "has_amenity", "lives_in"]}, {"column_names": [[-1, "*"], [0, "ssn"], [0, "name"], [1, "code"], [1, "name"], [1, "hours"], [2, "scientist"], [2, "project"]], "column_names_original": [[-1, "*"], [0, "ssn"], [0, "name"], [1, "code"], [1, "name"], [1, "hours"], [2, "scientist"], [2, "project"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text"], "db_id": "scientist_1", "foreign_keys": [[7, 3], [6, 1]], "primary_keys": [1, 3, 6], "table_names": ["scientists", "projects", "assigned to"], "table_names_original": ["scientists", "projects", "assignedto"]}, {"column_names": [[-1, "*"], [0, "attribute id"], [0, "attribute name"], [0, "attribute data type"], [1, "catalog id"], [1, "catalog name"], [1, "catalog publisher"], [1, "date of publication"], [1, "date of latest revision"], [2, "catalog level number"], [2, "catalog id"], [2, "catalog level name"], [3, "catalog entry id"], [3, "catalog level number"], [3, "parent entry id"], [3, "previous entry id"], [3, "next entry id"], [3, "catalog entry name"], [3, "product stock number"], [3, "price in dollars"], [3, "price in euros"], [3, "price in pounds"], [3, "capacity"], [3, "length"], [3, "height"], [3, "width"], [4, "catalog entry id"], [4, "catalog level number"], [4, "attribute id"], [4, "attribute value"]], "column_names_original": [[-1, "*"], [0, "attribute_id"], [0, "attribute_name"], [0, "attribute_data_type"], [1, "catalog_id"], [1, "catalog_name"], [1, "catalog_publisher"], [1, "date_of_publication"], [1, "date_of_latest_revision"], [2, "catalog_level_number"], [2, "catalog_id"], [2, "catalog_level_name"], [3, "catalog_entry_id"], [3, "catalog_level_number"], [3, "parent_entry_id"], [3, "previous_entry_id"], [3, "next_entry_id"], [3, "catalog_entry_name"], [3, "product_stock_number"], [3, "price_in_dollars"], [3, "price_in_euros"], [3, "price_in_pounds"], [3, "capacity"], [3, "length"], [3, "height"], [3, "width"], [4, "catalog_entry_id"], [4, "catalog_level_number"], [4, "attribute_id"], [4, "attribute_value"]], "column_types": ["text", "number", "text", "text", "number", "text", "text", "time", "time", "number", "number", "text", "number", "number", "number", "number", "number", "text", "text", "number", "number", "number", "text", "text", "text", "text", "number", "number", "number", "text"], "db_id": "product_catalog", "foreign_keys": [[10, 4], [13, 9], [27, 9], [26, 12]], "primary_keys": [1, 4, 9, 12], "table_names": ["attribute definitions", "catalogs", "catalog structure", "catalog contents", "catalog contents additional attributes"], "table_names_original": ["attribute_definitions", "catalogs", "catalog_structure", "catalog_contents", "catalog_contents_additional_attributes"]}, {"column_names": [[-1, "*"], [0, "user id"], [0, "follower id"], [1, "id"], [1, "user id"], [1, "text"], [1, "create date"], [2, "uid"], [2, "name"], [2, "email"], [2, "partition id"], [2, "followers"]], "column_names_original": [[-1, "*"], [0, "f1"], [0, "f2"], [1, "id"], [1, "uid"], [1, "text"], [1, "createdate"], [2, "uid"], [2, "name"], [2, "email"], [2, "partitionid"], [2, "followers"]], "column_types": ["text", "number", "number", "number", "number", "text", "time", "number", "text", "text", "number", "number"], "db_id": "twitter_1", "foreign_keys": [[2, 7], [1, 7], [4, 7]], "primary_keys": [1, 3, 7], "table_names": ["follows", "tweets", "user profiles"], "table_names_original": ["follows", "tweets", "user_profiles"]}, {"column_names": [[-1, "*"], [0, "member id"], [0, "card number"], [0, "name"], [0, "hometown"], [0, "level"], [1, "branch id"], [1, "name"], [1, "open year"], [1, "address road"], [1, "city"], [1, "membership amount"], [2, "member id"], [2, "branch id"], [2, "register year"], [3, "member id"], [3, "branch id"], [3, "year"], [3, "total pounds"]], "column_names_original": [[-1, "*"], [0, "member_id"], [0, "card_number"], [0, "name"], [0, "hometown"], [0, "level"], [1, "branch_id"], [1, "name"], [1, "open_year"], [1, "address_road"], [1, "city"], [1, "membership_amount"], [2, "member_id"], [2, "branch_id"], [2, "register_year"], [3, "member_id"], [3, "branch_id"], [3, "year"], [3, "total_pounds"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "number", "text", "text", "number", "text", "text", "number"], "db_id": "shop_membership", "foreign_keys": [[13, 6], [12, 1], [16, 6], [15, 1]], "primary_keys": [1, 6, 12, 15], "table_names": ["member", "branch", "membership register branch", "purchase"], "table_names_original": ["member", "branch", "membership_register_branch", "purchase"]}, {"column_names": [[-1, "*"], [0, "address id"], [0, "line 1 number building"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [1, "staff id"], [1, "staff address id"], [1, "nickname"], [1, "first name"], [1, "middle name"], [1, "last name"], [1, "date of birth"], [1, "date joined staff"], [1, "date left staff"], [2, "vehicle id"], [2, "vehicle details"], [3, "customer id"], [3, "customer address id"], [3, "customer status code"], [3, "date became customer"], [3, "date of birth"], [3, "first name"], [3, "last name"], [3, "amount outstanding"], [3, "email address"], [3, "phone number"], [3, "cell mobile phone number"], [4, "customer id"], [4, "datetime payment"], [4, "payment method code"], [4, "amount payment"], [5, "lesson id"], [5, "customer id"], [5, "lesson status code"], [5, "staff id"], [5, "vehicle id"], [5, "lesson date"], [5, "lesson time"], [5, "price"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1_number_building"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [1, "staff_id"], [1, "staff_address_id"], [1, "nickname"], [1, "first_name"], [1, "middle_name"], [1, "last_name"], [1, "date_of_birth"], [1, "date_joined_staff"], [1, "date_left_staff"], [2, "vehicle_id"], [2, "vehicle_details"], [3, "customer_id"], [3, "customer_address_id"], [3, "customer_status_code"], [3, "date_became_customer"], [3, "date_of_birth"], [3, "first_name"], [3, "last_name"], [3, "amount_outstanding"], [3, "email_address"], [3, "phone_number"], [3, "cell_mobile_phone_number"], [4, "customer_id"], [4, "datetime_payment"], [4, "payment_method_code"], [4, "amount_payment"], [5, "lesson_id"], [5, "customer_id"], [5, "lesson_status_code"], [5, "staff_id"], [5, "vehicle_id"], [5, "lesson_date"], [5, "lesson_time"], [5, "price"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "time", "time", "time", "number", "text", "number", "number", "text", "time", "time", "text", "text", "number", "text", "text", "text", "number", "time", "text", "number", "number", "number", "text", "number", "number", "time", "text", "number"], "db_id": "driving_school", "foreign_keys": [[8, 1], [19, 1], [29, 18], [34, 18], [36, 7], [37, 16]], "primary_keys": [1, 7, 16, 18, 29, 33], "table_names": ["addresses", "staff", "vehicles", "customers", "customer payments", "lessons"], "table_names_original": ["addresses", "staff", "vehicles", "customers", "customer_payments", "lessons"]}, {"column_names": [[-1, "*"], [0, "problem category code"], [0, "problem category description"], [1, "problem log id"], [1, "assigned to staff id"], [1, "problem id"], [1, "problem category code"], [1, "problem status code"], [1, "log entry date"], [1, "log entry description"], [1, "log entry fix"], [1, "other log details"], [2, "problem status code"], [2, "problem status description"], [3, "product id"], [3, "product name"], [3, "product details"], [4, "staff id"], [4, "staff first name"], [4, "staff last name"], [4, "other staff details"], [5, "problem id"], [5, "product id"], [5, "closure authorised by staff id"], [5, "reported by staff id"], [5, "date problem reported"], [5, "date problem closed"], [5, "problem description"], [5, "other problem details"]], "column_names_original": [[-1, "*"], [0, "problem_category_code"], [0, "problem_category_description"], [1, "problem_log_id"], [1, "assigned_to_staff_id"], [1, "problem_id"], [1, "problem_category_code"], [1, "problem_status_code"], [1, "log_entry_date"], [1, "log_entry_description"], [1, "log_entry_fix"], [1, "other_log_details"], [2, "problem_status_code"], [2, "problem_status_description"], [3, "product_id"], [3, "product_name"], [3, "product_details"], [4, "staff_id"], [4, "staff_first_name"], [4, "staff_last_name"], [4, "other_staff_details"], [5, "problem_id"], [5, "product_id"], [5, "closure_authorised_by_staff_id"], [5, "reported_by_staff_id"], [5, "date_problem_reported"], [5, "date_problem_closed"], [5, "problem_description"], [5, "other_problem_details"]], "column_types": ["text", "text", "text", "number", "number", "number", "text", "text", "time", "text", "text", "text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "number", "number", "number", "number", "time", "time", "text", "text"], "db_id": "tracking_software_problems", "foreign_keys": [[7, 12], [5, 21], [4, 17], [6, 1], [24, 17], [22, 14], [23, 17]], "primary_keys": [1, 3, 12, 14, 17, 21], "table_names": ["problem category codes", "problem log", "problem status codes", "product", "staff", "problems"], "table_names_original": ["problem_category_codes", "problem_log", "problem_status_codes", "product", "staff", "problems"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "country code"], [0, "district"], [0, "population"], [1, "name"], [1, "seq"], [2, "code"], [2, "name"], [2, "continent"], [2, "region"], [2, "surface area"], [2, "indepdent year"], [2, "population"], [2, "life expectancy"], [2, "gnp"], [2, "gnp old"], [2, "local name"], [2, "government form"], [2, "head of state"], [2, "capital"], [2, "code2"], [3, "countrycode"], [3, "language"], [3, "is official"], [3, "percentage"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "countrycode"], [0, "district"], [0, "population"], [1, "name"], [1, "seq"], [2, "code"], [2, "name"], [2, "continent"], [2, "region"], [2, "surfacearea"], [2, "indepyear"], [2, "population"], [2, "lifeexpectancy"], [2, "gnp"], [2, "gnpold"], [2, "localname"], [2, "governmentform"], [2, "headofstate"], [2, "capital"], [2, "code2"], [3, "countrycode"], [3, "language"], [3, "isofficial"], [3, "percentage"]], "column_types": ["text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "text", "text", "text", "number", "text", "text", "text", "text", "number"], "db_id": "world_1", "foreign_keys": [[3, 8], [23, 8]], "primary_keys": [1, 8, 23], "table_names": ["city", "sqlite sequence", "country", "countrylanguage"], "table_names_original": ["city", "something_sequence", "country", "countrylanguage"]}, {"column_names": [[-1, "*"], [0, "allergy name"], [0, "allergy type"], [1, "stuid"], [1, "allergy"], [2, "stuid"], [2, "last name"], [2, "first name"], [2, "age"], [2, "sex"], [2, "major"], [2, "advisor"], [2, "city code"]], "column_names_original": [[-1, "*"], [0, "allergy"], [0, "allergytype"], [1, "stuid"], [1, "allergy"], [2, "stuid"], [2, "lname"], [2, "fname"], [2, "age"], [2, "sex"], [2, "major"], [2, "advisor"], [2, "city_code"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text"], "db_id": "allergy_1", "foreign_keys": [[4, 1], [3, 5]], "primary_keys": [1, 5], "table_names": ["allergy type", "has allergy", "student"], "table_names_original": ["allergy_type", "has_allergy", "student"]}, {"column_names": [[-1, "*"], [0, "item id"], [0, "title"], [1, "a id"], [1, "user id"], [1, "item id"], [1, "rating"], [1, "rank"], [2, "user id"], [2, "name"], [3, "source user id"], [3, "target user id"], [3, "trust"]], "column_names_original": [[-1, "*"], [0, "i_id"], [0, "title"], [1, "a_id"], [1, "u_id"], [1, "i_id"], [1, "rating"], [1, "rank"], [2, "u_id"], [2, "name"], [3, "source_u_id"], [3, "target_u_id"], [3, "trust"]], "column_types": ["text", "number", "text", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number"], "db_id": "epinions_1", "foreign_keys": [[5, 1], [4, 8], [11, 8], [10, 8]], "primary_keys": [1, 3, 8], "table_names": ["item", "review", "useracct", "trust"], "table_names_original": ["item", "review", "useracct", "trust"]}, {"column_names": [[-1, "*"], [0, "state name"], [0, "population"], [0, "area"], [0, "country name"], [0, "capital"], [0, "density"], [1, "city name"], [1, "population"], [1, "country name"], [1, "state name"], [2, "state name"], [2, "border"], [3, "state name"], [3, "highest elevation"], [3, "lowest point"], [3, "highest point"], [3, "lowest elevation"], [4, "lake name"], [4, "area"], [4, "country name"], [4, "state name"], [5, "mountain name"], [5, "mountain altitude"], [5, "country name"], [5, "state name"], [6, "river name"], [6, "length"], [6, "country name"], [6, "traverse"]], "column_names_original": [[-1, "*"], [0, "state_name"], [0, "population"], [0, "area"], [0, "country_name"], [0, "capital"], [0, "density"], [1, "city_name"], [1, "population"], [1, "country_name"], [1, "state_name"], [2, "state_name"], [2, "border"], [3, "state_name"], [3, "highest_elevation"], [3, "lowest_point"], [3, "highest_point"], [3, "lowest_elevation"], [4, "lake_name"], [4, "area"], [4, "country_name"], [4, "state_name"], [5, "mountain_name"], [5, "mountain_altitude"], [5, "country_name"], [5, "state_name"], [6, "river_name"], [6, "length"], [6, "country_name"], [6, "traverse"]], "column_types": ["text", "text", "number", "number", "text", "text", "number", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text"], "db_id": "geo", "foreign_keys": [[10, 1], [12, 1], [11, 1], [13, 1], [25, 1], [29, 1]], "primary_keys": [1, 7, 12, 13, 22, 26], "table_names": ["state", "city", "border info", "highlow", "lake", "mountain", "river"], "table_names_original": ["state", "city", "border_info", "highlow", "lake", "mountain", "river"]}, {"column_names": [[-1, "*"], [0, "candidate id"], [0, "people id"], [0, "poll source"], [0, "date"], [0, "support rate"], [0, "consider rate"], [0, "oppose rate"], [0, "unsure rate"], [1, "people id"], [1, "sex"], [1, "name"], [1, "date of birth"], [1, "height"], [1, "weight"]], "column_names_original": [[-1, "*"], [0, "candidate_id"], [0, "people_id"], [0, "poll_source"], [0, "date"], [0, "support_rate"], [0, "consider_rate"], [0, "oppose_rate"], [0, "unsure_rate"], [1, "people_id"], [1, "sex"], [1, "name"], [1, "date_of_birth"], [1, "height"], [1, "weight"]], "column_types": ["text", "number", "number", "text", "text", "number", "number", "number", "number", "number", "text", "text", "text", "number", "number"], "db_id": "candidate_poll", "foreign_keys": [[2, 9]], "primary_keys": [1, 9], "table_names": ["candidate", "people"], "table_names_original": ["candidate", "people"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "train number"], [0, "name"], [0, "origin"], [0, "destination"], [0, "time"], [0, "interval"], [1, "id"], [1, "network name"], [1, "services"], [1, "local authority"], [2, "train id"], [2, "station id"], [3, "station id"], [3, "day of week"], [3, "high temperature"], [3, "low temperature"], [3, "precipitation"], [3, "wind speed mph"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "train_number"], [0, "name"], [0, "origin"], [0, "destination"], [0, "time"], [0, "interval"], [1, "id"], [1, "network_name"], [1, "services"], [1, "local_authority"], [2, "train_id"], [2, "station_id"], [3, "station_id"], [3, "day_of_week"], [3, "high_temperature"], [3, "low_temperature"], [3, "precipitation"], [3, "wind_speed_mph"]], "column_types": ["text", "number", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "number", "number", "number", "number"], "db_id": "station_weather", "foreign_keys": [[13, 8], [12, 1], [14, 8]], "primary_keys": [1, 8, 12, 14], "table_names": ["train", "station", "route", "weekly weather"], "table_names_original": ["train", "station", "route", "weekly_weather"]}, {"column_names": [[-1, "*"], [0, "college name"], [0, "state"], [0, "enrollment"], [1, "player id"], [1, "player name"], [1, "yes card"], [1, "training hours"], [2, "player id"], [2, "college name"], [2, "player position"], [2, "decision"]], "column_names_original": [[-1, "*"], [0, "cname"], [0, "state"], [0, "enr"], [1, "pid"], [1, "pname"], [1, "ycard"], [1, "hs"], [2, "pid"], [2, "cname"], [2, "ppos"], [2, "decision"]], "column_types": ["text", "text", "text", "number", "number", "text", "text", "number", "number", "text", "text", "text"], "db_id": "soccer_2", "foreign_keys": [[9, 1], [8, 4]], "primary_keys": [1, 4, 8], "table_names": ["college", "player", "tryout"], "table_names_original": ["college", "player", "tryout"]}, {"column_names": [[-1, "*"], [0, "circuit id"], [0, "circuit reference"], [0, "name"], [0, "location"], [0, "country"], [0, "latitude"], [0, "longitude"], [0, "altitude"], [0, "url"], [1, "race id"], [1, "year"], [1, "round"], [1, "circuit id"], [1, "name"], [1, "date"], [1, "time"], [1, "url"], [2, "driver id"], [2, "driver reference"], [2, "number"], [2, "code"], [2, "forename"], [2, "surname"], [2, "dob"], [2, "nationality"], [2, "url"], [3, "status id"], [3, "status"], [4, "year"], [4, "url"], [5, "constructor id"], [5, "constructor reference"], [5, "name"], [5, "nationality"], [5, "url"], [6, "constructor standings id"], [6, "race id"], [6, "constructor id"], [6, "points"], [6, "position"], [6, "position text"], [6, "wins"], [7, "result id"], [7, "race id"], [7, "driver id"], [7, "constructor id"], [7, "number"], [7, "grid"], [7, "position"], [7, "position text"], [7, "position order"], [7, "points"], [7, "laps"], [7, "time"], [7, "milliseconds"], [7, "fastest lap"], [7, "rank"], [7, "fastest lap time"], [7, "fastest lap speed"], [7, "status id"], [8, "driver standings id"], [8, "race id"], [8, "driver id"], [8, "points"], [8, "position"], [8, "position text"], [8, "wins"], [9, "constructor results id"], [9, "race id"], [9, "constructor id"], [9, "points"], [9, "status"], [10, "qualify id"], [10, "race id"], [10, "driver id"], [10, "constructor id"], [10, "number"], [10, "position"], [10, "q1"], [10, "q2"], [10, "q3"], [11, "race id"], [11, "driver id"], [11, "stop"], [11, "lap"], [11, "time"], [11, "duration"], [11, "milliseconds"], [12, "race id"], [12, "driver id"], [12, "lap"], [12, "position"], [12, "time"], [12, "milliseconds"]], "column_names_original": [[-1, "*"], [0, "circuitid"], [0, "circuitref"], [0, "name"], [0, "location"], [0, "country"], [0, "lat"], [0, "lng"], [0, "alt"], [0, "url"], [1, "raceid"], [1, "year"], [1, "round"], [1, "circuitid"], [1, "name"], [1, "date"], [1, "time"], [1, "url"], [2, "driverid"], [2, "driverref"], [2, "number"], [2, "code"], [2, "forename"], [2, "surname"], [2, "dob"], [2, "nationality"], [2, "url"], [3, "statusid"], [3, "status"], [4, "year"], [4, "url"], [5, "constructorid"], [5, "constructorref"], [5, "name"], [5, "nationality"], [5, "url"], [6, "constructorstandingsid"], [6, "raceid"], [6, "constructorid"], [6, "points"], [6, "position"], [6, "positiontext"], [6, "wins"], [7, "resultid"], [7, "raceid"], [7, "driverid"], [7, "constructorid"], [7, "number"], [7, "grid"], [7, "position"], [7, "positiontext"], [7, "positionorder"], [7, "points"], [7, "laps"], [7, "time"], [7, "milliseconds"], [7, "fastestlap"], [7, "rank"], [7, "fastestlaptime"], [7, "fastestlapspeed"], [7, "statusid"], [8, "driverstandingsid"], [8, "raceid"], [8, "driverid"], [8, "points"], [8, "position"], [8, "positiontext"], [8, "wins"], [9, "constructorresultsid"], [9, "raceid"], [9, "constructorid"], [9, "points"], [9, "status"], [10, "qualifyid"], [10, "raceid"], [10, "driverid"], [10, "constructorid"], [10, "number"], [10, "position"], [10, "q1"], [10, "q2"], [10, "q3"], [11, "raceid"], [11, "driverid"], [11, "stop"], [11, "lap"], [11, "time"], [11, "duration"], [11, "milliseconds"], [12, "raceid"], [12, "driverid"], [12, "lap"], [12, "position"], [12, "time"], [12, "milliseconds"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "text", "text", "number", "text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "number", "text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "text", "text", "number", "number", "number", "number", "number", "text", "number"], "db_id": "formula_1", "foreign_keys": [[13, 1], [37, 10], [38, 31], [45, 18], [44, 10], [46, 31], [63, 18], [62, 10], [69, 10], [70, 31], [75, 18], [74, 10], [76, 31], [83, 18], [82, 10], [90, 18], [89, 10]], "primary_keys": [1, 10, 18, 27, 29, 31, 36, 43, 61, 68, 73, 82, 89], "table_names": ["circuits", "races", "drivers", "status", "seasons", "constructors", "constructor standings", "results", "driver standings", "constructor results", "qualifying", "pit stops", "lap times"], "table_names_original": ["circuits", "races", "drivers", "status", "seasons", "constructors", "constructorstandings", "results", "driverstandings", "constructorresults", "qualifying", "pitstops", "laptimes"]}, {"column_names": [[-1, "*"], [0, "movie id"], [0, "title"], [0, "year"], [0, "director"], [1, "reviewer id"], [1, "name"], [2, "reviewer id"], [2, "movie id"], [2, "rating stars"], [2, "rating date"]], "column_names_original": [[-1, "*"], [0, "mid"], [0, "title"], [0, "year"], [0, "director"], [1, "rid"], [1, "name"], [2, "rid"], [2, "mid"], [2, "stars"], [2, "ratingdate"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "number", "number", "number", "time"], "db_id": "movie_1", "foreign_keys": [[7, 5], [8, 1]], "primary_keys": [1, 5], "table_names": ["movie", "reviewer", "rating"], "table_names_original": ["movie", "reviewer", "rating"]}, {"column_names": [[-1, "*"], [0, "poker player id"], [0, "people id"], [0, "final table made"], [0, "best finish"], [0, "money rank"], [0, "earnings"], [1, "people id"], [1, "nationality"], [1, "name"], [1, "birth date"], [1, "height"]], "column_names_original": [[-1, "*"], [0, "poker_player_id"], [0, "people_id"], [0, "final_table_made"], [0, "best_finish"], [0, "money_rank"], [0, "earnings"], [1, "people_id"], [1, "nationality"], [1, "name"], [1, "birth_date"], [1, "height"]], "column_types": ["text", "number", "number", "number", "number", "number", "number", "number", "text", "text", "text", "number"], "db_id": "poker_player", "foreign_keys": [[2, 7]], "primary_keys": [1, 7], "table_names": ["poker player", "people"], "table_names_original": ["poker_player", "people"]}, {"column_names": [[-1, "*"], [0, "singer id"], [0, "name"], [0, "birth year"], [0, "net worth millions"], [0, "citizenship"], [1, "song id"], [1, "title"], [1, "singer id"], [1, "sales"], [1, "highest position"]], "column_names_original": [[-1, "*"], [0, "singer_id"], [0, "name"], [0, "birth_year"], [0, "net_worth_millions"], [0, "citizenship"], [1, "song_id"], [1, "title"], [1, "singer_id"], [1, "sales"], [1, "highest_position"]], "column_types": ["text", "number", "text", "number", "number", "text", "number", "text", "number", "number", "number"], "db_id": "singer", "foreign_keys": [[8, 1]], "primary_keys": [1, 6], "table_names": ["singer", "song"], "table_names_original": ["singer", "song"]}, {"column_names": [[-1, "*"], [0, "address id"], [0, "address content"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [0, "other address details"], [1, "product id"], [1, "product details"], [2, "customer id"], [2, "payment method"], [2, "customer name"], [2, "date became customer"], [2, "other customer details"], [3, "customer id"], [3, "address id"], [3, "date address from"], [3, "address type"], [3, "date address to"], [4, "customer id"], [4, "channel code"], [4, "active from date"], [4, "active to date"], [4, "contact number"], [5, "order id"], [5, "customer id"], [5, "order status"], [5, "order date"], [5, "order details"], [6, "order id"], [6, "product id"], [6, "order quantity"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "address_content"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [0, "other_address_details"], [1, "product_id"], [1, "product_details"], [2, "customer_id"], [2, "payment_method"], [2, "customer_name"], [2, "date_became_customer"], [2, "other_customer_details"], [3, "customer_id"], [3, "address_id"], [3, "date_address_from"], [3, "address_type"], [3, "date_address_to"], [4, "customer_id"], [4, "channel_code"], [4, "active_from_date"], [4, "active_to_date"], [4, "contact_number"], [5, "order_id"], [5, "customer_id"], [5, "order_status"], [5, "order_date"], [5, "order_details"], [6, "order_id"], [6, "product_id"], [6, "order_quantity"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "number", "text", "text", "time", "text", "number", "number", "time", "text", "time", "number", "text", "time", "time", "text", "number", "number", "text", "time", "text", "number", "number", "text"], "db_id": "customers_and_addresses", "foreign_keys": [[15, 10], [16, 1], [20, 10], [26, 10], [30, 25], [31, 8]], "primary_keys": [1, 8, 10, 25], "table_names": ["addresses", "products", "customers", "customer addresses", "customer contact channels", "customer orders", "order items"], "table_names_original": ["addresses", "products", "customers", "customer_addresses", "customer_contact_channels", "customer_orders", "order_items"]}, {"column_names": [[-1, "*"], [0, "county id"], [0, "county name"], [0, "population"], [0, "zip code"], [1, "party id"], [1, "year"], [1, "party"], [1, "governor"], [1, "lieutenant governor"], [1, "comptroller"], [1, "attorney general"], [1, "us senate"], [2, "election id"], [2, "counties represented"], [2, "district"], [2, "delegate"], [2, "party"], [2, "first elected"], [2, "committee"]], "column_names_original": [[-1, "*"], [0, "county_id"], [0, "county_name"], [0, "population"], [0, "zip_code"], [1, "party_id"], [1, "year"], [1, "party"], [1, "governor"], [1, "lieutenant_governor"], [1, "comptroller"], [1, "attorney_general"], [1, "us_senate"], [2, "election_id"], [2, "counties_represented"], [2, "district"], [2, "delegate"], [2, "party"], [2, "first_elected"], [2, "committee"]], "column_types": ["text", "number", "text", "number", "text", "number", "number", "text", "text", "text", "text", "text", "text", "number", "text", "number", "text", "number", "number", "text"], "db_id": "election", "foreign_keys": [[15, 1], [17, 5]], "primary_keys": [1, 5, 13], "table_names": ["county", "party", "election"], "table_names_original": ["county", "party", "election"]}, {"column_names": [[-1, "*"], [0, "program id"], [0, "name"], [0, "origin"], [0, "launch"], [0, "owner"], [1, "channel id"], [1, "name"], [1, "owner"], [1, "share in percent"], [1, "rating in percent"], [2, "channel id"], [2, "program id"], [2, "time of day"], [3, "channel id"], [3, "program id"], [3, "date"], [3, "share in percent"]], "column_names_original": [[-1, "*"], [0, "program_id"], [0, "name"], [0, "origin"], [0, "launch"], [0, "owner"], [1, "channel_id"], [1, "name"], [1, "owner"], [1, "share_in_percent"], [1, "rating_in_percent"], [2, "channel_id"], [2, "program_id"], [2, "time_of_day"], [3, "channel_id"], [3, "program_id"], [3, "date"], [3, "share_in_percent"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "text", "number"], "db_id": "program_share", "foreign_keys": [[12, 1], [11, 6], [15, 1], [14, 6]], "primary_keys": [1, 6, 11, 14], "table_names": ["program", "channel", "broadcast", "broadcast share"], "table_names_original": ["program", "channel", "broadcast", "broadcast_share"]}, {"column_names": [[-1, "*"], [0, "document type code"], [0, "document type description"], [1, "role code"], [1, "role description"], [2, "address id"], [2, "address details"], [3, "document status code"], [3, "document status description"], [4, "shipping agent code"], [4, "shipping agent name"], [4, "shipping agent description"], [5, "document id"], [5, "document status code"], [5, "document type code"], [5, "shipping agent code"], [5, "receipt date"], [5, "receipt number"], [5, "other details"], [6, "employee id"], [6, "role code"], [6, "employee name"], [6, "other details"], [7, "document id"], [7, "draft number"], [7, "draft details"], [8, "document id"], [8, "draft number"], [8, "copy number"], [9, "document id"], [9, "draft number"], [9, "copy number"], [9, "employee id"], [10, "document id"], [10, "mailed to address id"], [10, "mailing date"]], "column_names_original": [[-1, "*"], [0, "document_type_code"], [0, "document_type_description"], [1, "role_code"], [1, "role_description"], [2, "address_id"], [2, "address_details"], [3, "document_status_code"], [3, "document_status_description"], [4, "shipping_agent_code"], [4, "shipping_agent_name"], [4, "shipping_agent_description"], [5, "document_id"], [5, "document_status_code"], [5, "document_type_code"], [5, "shipping_agent_code"], [5, "receipt_date"], [5, "receipt_number"], [5, "other_details"], [6, "employee_id"], [6, "role_code"], [6, "employee_name"], [6, "other_details"], [7, "document_id"], [7, "draft_number"], [7, "draft_details"], [8, "document_id"], [8, "draft_number"], [8, "copy_number"], [9, "document_id"], [9, "draft_number"], [9, "copy_number"], [9, "employee_id"], [10, "document_id"], [10, "mailed_to_address_id"], [10, "mailing_date"]], "column_types": ["text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "time", "text", "text", "number", "text", "text", "text", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "time"], "db_id": "cre_Doc_Control_Systems", "foreign_keys": [[15, 9], [13, 7], [14, 1], [20, 3], [23, 12], [26, 23], [27, 24], [32, 19], [29, 26], [30, 27], [31, 28], [34, 5], [33, 12]], "primary_keys": [1, 3, 5, 7, 9, 12, 19, 23, 26, 29, 33], "table_names": ["reference document types", "roles", "addresses", "reference document status", "reference shipping agents", "documents", "employees", "document drafts", "draft copies", "circulation history", "documents mailed"], "table_names_original": ["ref_document_types", "roles", "addresses", "ref_document_status", "ref_shipping_agents", "documents", "employees", "document_drafts", "draft_copies", "circulation_history", "documents_mailed"]}, {"column_names": [[-1, "*"], [0, "document type code"], [0, "document type name"], [0, "document type description"], [1, "budget type code"], [1, "budget type description"], [2, "project id"], [2, "project details"], [3, "document id"], [3, "document type code"], [3, "project id"], [3, "document date"], [3, "document name"], [3, "document description"], [3, "other details"], [4, "statement id"], [4, "statement details"], [5, "document id"], [5, "budget type code"], [5, "document details"], [6, "account id"], [6, "statement id"], [6, "account details"]], "column_names_original": [[-1, "*"], [0, "document_type_code"], [0, "document_type_name"], [0, "document_type_description"], [1, "budget_type_code"], [1, "budget_type_description"], [2, "project_id"], [2, "project_details"], [3, "document_id"], [3, "document_type_code"], [3, "project_id"], [3, "document_date"], [3, "document_name"], [3, "document_description"], [3, "other_details"], [4, "statement_id"], [4, "statement_details"], [5, "document_id"], [5, "budget_type_code"], [5, "document_details"], [6, "account_id"], [6, "statement_id"], [6, "account_details"]], "column_types": ["text", "text", "text", "text", "text", "text", "number", "text", "number", "text", "number", "time", "text", "text", "text", "number", "text", "number", "text", "text", "number", "number", "text"], "db_id": "cre_Docs_and_Epenses", "foreign_keys": [[10, 6], [9, 1], [15, 8], [17, 8], [18, 4], [21, 15]], "primary_keys": [1, 4, 6, 8, 15, 17, 20], "table_names": ["reference document types", "reference budget codes", "projects", "documents", "statements", "documents with expenses", "accounts"], "table_names_original": ["ref_document_types", "ref_budget_codes", "projects", "documents", "statements", "documents_with_expenses", "accounts"]}, {"column_names": [[-1, "*"], [0, "company id"], [0, "company type"], [0, "company name"], [0, "company address"], [0, "other company details"], [1, "maintenance contract id"], [1, "maintenance contract company id"], [1, "contract start date"], [1, "contract end date"], [1, "other contract details"], [2, "part id"], [2, "part name"], [2, "chargeable yn"], [2, "chargeable amount"], [2, "other part details"], [3, "skill id"], [3, "skill code"], [3, "skill description"], [4, "staff id"], [4, "staff name"], [4, "gender"], [4, "other staff details"], [5, "asset id"], [5, "maintenance contract id"], [5, "supplier company id"], [5, "asset details"], [5, "asset make"], [5, "asset model"], [5, "asset acquired date"], [5, "asset disposed date"], [5, "other asset details"], [6, "asset id"], [6, "part id"], [7, "engineer id"], [7, "company id"], [7, "first name"], [7, "last name"], [7, "other details"], [8, "engineer id"], [8, "skill id"], [9, "fault log entry id"], [9, "asset id"], [9, "recorded by staff id"], [9, "fault log entry datetime"], [9, "fault description"], [9, "other fault details"], [10, "engineer visit id"], [10, "contact staff id"], [10, "engineer id"], [10, "fault log entry id"], [10, "fault status"], [10, "visit start datetime"], [10, "visit end datetime"], [10, "other visit details"], [11, "part fault id"], [11, "part id"], [11, "fault short name"], [11, "fault description"], [11, "other fault details"], [12, "fault log entry id"], [12, "part fault id"], [12, "fault status"], [13, "part fault id"], [13, "skill id"]], "column_names_original": [[-1, "*"], [0, "company_id"], [0, "company_type"], [0, "company_name"], [0, "company_address"], [0, "other_company_details"], [1, "maintenance_contract_id"], [1, "maintenance_contract_company_id"], [1, "contract_start_date"], [1, "contract_end_date"], [1, "other_contract_details"], [2, "part_id"], [2, "part_name"], [2, "chargeable_yn"], [2, "chargeable_amount"], [2, "other_part_details"], [3, "skill_id"], [3, "skill_code"], [3, "skill_description"], [4, "staff_id"], [4, "staff_name"], [4, "gender"], [4, "other_staff_details"], [5, "asset_id"], [5, "maintenance_contract_id"], [5, "supplier_company_id"], [5, "asset_details"], [5, "asset_make"], [5, "asset_model"], [5, "asset_acquired_date"], [5, "asset_disposed_date"], [5, "other_asset_details"], [6, "asset_id"], [6, "part_id"], [7, "engineer_id"], [7, "company_id"], [7, "first_name"], [7, "last_name"], [7, "other_details"], [8, "engineer_id"], [8, "skill_id"], [9, "fault_log_entry_id"], [9, "asset_id"], [9, "recorded_by_staff_id"], [9, "fault_log_entry_datetime"], [9, "fault_description"], [9, "other_fault_details"], [10, "engineer_visit_id"], [10, "contact_staff_id"], [10, "engineer_id"], [10, "fault_log_entry_id"], [10, "fault_status"], [10, "visit_start_datetime"], [10, "visit_end_datetime"], [10, "other_visit_details"], [11, "part_fault_id"], [11, "part_id"], [11, "fault_short_name"], [11, "fault_description"], [11, "other_fault_details"], [12, "fault_log_entry_id"], [12, "part_fault_id"], [12, "fault_status"], [13, "part_fault_id"], [13, "skill_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "time", "time", "text", "number", "text", "text", "text", "text", "number", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "time", "time", "text", "number", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "time", "text", "text", "number", "number", "number", "number", "text", "time", "time", "text", "number", "number", "text", "text", "text", "number", "number", "text", "number", "number"], "db_id": "assets_maintenance", "foreign_keys": [[7, 1], [25, 1], [24, 6], [32, 23], [33, 11], [35, 1], [40, 16], [39, 34], [43, 19], [42, 23], [48, 19], [49, 34], [50, 41], [56, 11], [60, 41], [61, 55], [64, 16], [63, 55]], "primary_keys": [1, 6, 11, 16, 19, 23, 34, 41, 47, 55], "table_names": ["third party companies", "maintenance contracts", "parts", "skills", "staff", "assets", "asset parts", "maintenance engineers", "engineer skills", "fault log", "engineer visits", "part faults", "fault log parts", "skills required to fix"], "table_names_original": ["third_party_companies", "maintenance_contracts", "parts", "skills", "staff", "assets", "asset_parts", "maintenance_engineers", "engineer_skills", "fault_log", "engineer_visits", "part_faults", "fault_log_parts", "skills_required_to_fix"]}, {"column_names": [[-1, "*"], [0, "election id"], [0, "representative id"], [0, "date"], [0, "votes"], [0, "vote percent"], [0, "seats"], [0, "place"], [1, "representative id"], [1, "name"], [1, "state"], [1, "party"], [1, "lifespan"]], "column_names_original": [[-1, "*"], [0, "election_id"], [0, "representative_id"], [0, "date"], [0, "votes"], [0, "vote_percent"], [0, "seats"], [0, "place"], [1, "representative_id"], [1, "name"], [1, "state"], [1, "party"], [1, "lifespan"]], "column_types": ["text", "number", "number", "text", "number", "number", "number", "number", "number", "text", "text", "text", "text"], "db_id": "election_representative", "foreign_keys": [[2, 8]], "primary_keys": [1, 8], "table_names": ["election", "representative"], "table_names_original": ["election", "representative"]}, {"column_names": [[-1, "*"], [0, "branch id"], [0, "bname"], [0, "no of customers"], [0, "city"], [0, "state"], [1, "customer id"], [1, "customer name"], [1, "account type"], [1, "account balance"], [1, "number of loans"], [1, "credit score"], [1, "branch id"], [1, "state"], [2, "loan id"], [2, "loan type"], [2, "customer id"], [2, "branch id"], [2, "amount"]], "column_names_original": [[-1, "*"], [0, "branch_id"], [0, "bname"], [0, "no_of_customers"], [0, "city"], [0, "state"], [1, "cust_id"], [1, "cust_name"], [1, "acc_type"], [1, "acc_bal"], [1, "no_of_loans"], [1, "credit_score"], [1, "branch_id"], [1, "state"], [2, "loan_id"], [2, "loan_type"], [2, "cust_id"], [2, "branch_id"], [2, "amount"]], "column_types": ["text", "number", "text", "number", "text", "text", "text", "text", "text", "number", "number", "number", "number", "text", "text", "text", "text", "text", "number"], "db_id": "loan_1", "foreign_keys": [[12, 1], [17, 1]], "primary_keys": [1, 6, 14], "table_names": ["bank", "customer", "loan"], "table_names_original": ["bank", "customer", "loan"]}, {"column_names": [[-1, "*"], [0, "musical id"], [0, "name"], [0, "year"], [0, "award"], [0, "category"], [0, "nominee"], [0, "result"], [1, "actor id"], [1, "name"], [1, "musical id"], [1, "character"], [1, "duration"], [1, "age"]], "column_names_original": [[-1, "*"], [0, "musical_id"], [0, "name"], [0, "year"], [0, "award"], [0, "category"], [0, "nominee"], [0, "result"], [1, "actor_id"], [1, "name"], [1, "musical_id"], [1, "character"], [1, "duration"], [1, "age"]], "column_types": ["text", "number", "text", "number", "text", "text", "text", "text", "number", "text", "number", "text", "text", "number"], "db_id": "musical", "foreign_keys": [[10, 8]], "primary_keys": [1, 8], "table_names": ["musical", "actor"], "table_names_original": ["musical", "actor"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "city"], [0, "country"], [0, "iata"], [0, "icao"], [0, "name"], [1, "id"], [1, "name"], [1, "type"], [1, "principal activities"], [1, "incorporated in"], [1, "group equity shareholding"], [2, "id"], [2, "vehicle flight number"], [2, "date"], [2, "pilot"], [2, "velocity"], [2, "altitude"], [2, "airport id"], [2, "company id"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "city"], [0, "country"], [0, "iata"], [0, "icao"], [0, "name"], [1, "id"], [1, "name"], [1, "type"], [1, "principal_activities"], [1, "incorporated_in"], [1, "group_equity_shareholding"], [2, "id"], [2, "vehicle_flight_number"], [2, "date"], [2, "pilot"], [2, "velocity"], [2, "altitude"], [2, "airport_id"], [2, "company_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "number", "number"], "db_id": "flight_company", "foreign_keys": [[20, 7], [19, 1]], "primary_keys": [1, 7, 13], "table_names": ["airport", "operate company", "flight"], "table_names_original": ["airport", "operate_company", "flight"]}, {"column_names": [[-1, "*"], [0, "perpetrator id"], [0, "people id"], [0, "date"], [0, "year"], [0, "location"], [0, "country"], [0, "killed"], [0, "injured"], [1, "people id"], [1, "name"], [1, "height"], [1, "weight"], [1, "home town"]], "column_names_original": [[-1, "*"], [0, "perpetrator_id"], [0, "people_id"], [0, "date"], [0, "year"], [0, "location"], [0, "country"], [0, "killed"], [0, "injured"], [1, "people_id"], [1, "name"], [1, "height"], [1, "weight"], [1, "home_town"]], "column_types": ["text", "number", "number", "text", "number", "text", "text", "number", "number", "number", "text", "number", "number", "text"], "db_id": "perpetrator", "foreign_keys": [[2, 9]], "primary_keys": [1, 9], "table_names": ["perpetrator", "people"], "table_names_original": ["perpetrator", "people"]}, {"column_names": [[-1, "*"], [0, "star rating code"], [0, "star rating description"], [1, "location id"], [1, "location name"], [1, "address"], [1, "other details"], [2, "attraction type code"], [2, "attraction type description"], [3, "tourist id"], [3, "tourist details"], [4, "feature id"], [4, "feature details"], [5, "hotel id"], [5, "star rating code"], [5, "pets allowed yn"], [5, "price range"], [5, "other hotel details"], [6, "tourist attraction id"], [6, "attraction type code"], [6, "location id"], [6, "how to get there"], [6, "name"], [6, "description"], [6, "opening hours"], [6, "other details"], [7, "market id"], [7, "market details"], [8, "shop id"], [8, "shop details"], [9, "museum id"], [9, "museum details"], [10, "royal family id"], [10, "royal family details"], [11, "theme park id"], [11, "theme park details"], [12, "visit id"], [12, "tourist attraction id"], [12, "tourist id"], [12, "visit date"], [12, "visit details"], [13, "photo id"], [13, "tourist attraction id"], [13, "name"], [13, "description"], [13, "filename"], [13, "other details"], [14, "staff id"], [14, "tourist attraction id"], [14, "name"], [14, "other details"], [15, "tourist attraction id"], [15, "feature id"]], "column_names_original": [[-1, "*"], [0, "star_rating_code"], [0, "star_rating_description"], [1, "location_id"], [1, "location_name"], [1, "address"], [1, "other_details"], [2, "attraction_type_code"], [2, "attraction_type_description"], [3, "tourist_id"], [3, "tourist_details"], [4, "feature_id"], [4, "feature_details"], [5, "hotel_id"], [5, "star_rating_code"], [5, "pets_allowed_yn"], [5, "price_range"], [5, "other_hotel_details"], [6, "tourist_attraction_id"], [6, "attraction_type_code"], [6, "location_id"], [6, "how_to_get_there"], [6, "name"], [6, "description"], [6, "opening_hours"], [6, "other_details"], [7, "market_id"], [7, "market_details"], [8, "shop_id"], [8, "shop_details"], [9, "museum_id"], [9, "museum_details"], [10, "royal_family_id"], [10, "royal_family_details"], [11, "theme_park_id"], [11, "theme_park_details"], [12, "visit_id"], [12, "tourist_attraction_id"], [12, "tourist_id"], [12, "visit_date"], [12, "visit_details"], [13, "photo_id"], [13, "tourist_attraction_id"], [13, "name"], [13, "description"], [13, "filename"], [13, "other_details"], [14, "staff_id"], [14, "tourist_attraction_id"], [14, "name"], [14, "other_details"], [15, "tourist_attraction_id"], [15, "feature_id"]], "column_types": ["text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "text", "number", "text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "text", "text", "text", "text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "text", "number", "number", "number", "time", "text", "number", "number", "text", "text", "text", "text", "number", "number", "text", "text", "number", "number"], "db_id": "cre_Theme_park", "foreign_keys": [[14, 1], [19, 7], [20, 3], [26, 18], [28, 18], [30, 18], [32, 18], [34, 18], [38, 9], [37, 18], [42, 18], [48, 18], [52, 11], [51, 18]], "primary_keys": [1, 3, 7, 9, 11, 13, 18, 26, 28, 30, 32, 34, 36, 41, 47, 51], "table_names": ["ref hotel star ratings", "locations", "ref attraction types", "visitors", "features", "hotels", "tourist attractions", "street markets", "shops", "museums", "royal family", "theme parks", "visits", "photos", "staff", "tourist attraction features"], "table_names_original": ["ref_hotel_star_ratings", "locations", "ref_attraction_types", "visitors", "features", "hotels", "tourist_attractions", "street_markets", "shops", "museums", "royal_family", "theme_parks", "visits", "photos", "staff", "tourist_attraction_features"]}, {"column_names": [[-1, "*"], [0, "entrepreneur id"], [0, "people id"], [0, "company"], [0, "money requested"], [0, "investor"], [1, "people id"], [1, "name"], [1, "height"], [1, "weight"], [1, "date of birth"]], "column_names_original": [[-1, "*"], [0, "entrepreneur_id"], [0, "people_id"], [0, "company"], [0, "money_requested"], [0, "investor"], [1, "people_id"], [1, "name"], [1, "height"], [1, "weight"], [1, "date_of_birth"]], "column_types": ["text", "number", "number", "text", "number", "text", "number", "text", "number", "number", "text"], "db_id": "entrepreneur", "foreign_keys": [[2, 6]], "primary_keys": [1, 6], "table_names": ["entrepreneur", "people"], "table_names_original": ["entrepreneur", "people"]}, {"column_names": [[-1, "*"], [0, "city id"], [0, "city"], [0, "hanzi"], [0, "hanyu pinyin"], [0, "regional population"], [0, "gdp"], [1, "match id"], [1, "date"], [1, "venue"], [1, "score"], [1, "result"], [1, "competition"], [2, "city id"], [2, "jan"], [2, "feb"], [2, "mar"], [2, "apr"], [2, "jun"], [2, "jul"], [2, "aug"], [2, "sep"], [2, "oct"], [2, "nov"], [2, "dec"], [3, "year"], [3, "match id"], [3, "host city"]], "column_names_original": [[-1, "*"], [0, "city_id"], [0, "city"], [0, "hanzi"], [0, "hanyu_pinyin"], [0, "regional_population"], [0, "gdp"], [1, "match_id"], [1, "date"], [1, "venue"], [1, "score"], [1, "result"], [1, "competition"], [2, "city_id"], [2, "jan"], [2, "feb"], [2, "mar"], [2, "apr"], [2, "jun"], [2, "jul"], [2, "aug"], [2, "sep"], [2, "oct"], [2, "nov"], [2, "dec"], [3, "year"], [3, "match_id"], [3, "host_city"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text"], "db_id": "city_record", "foreign_keys": [[13, 1], [26, 7], [27, 1]], "primary_keys": [1, 7, 13, 25], "table_names": ["city", "match", "temperature", "hosting city"], "table_names_original": ["city", "match", "temperature", "hosting_city"]}, {"column_names": [[-1, "*"], [0, "driver id"], [0, "name"], [0, "party"], [0, "home city"], [0, "age"], [1, "school id"], [1, "grade"], [1, "school"], [1, "location"], [1, "type"], [2, "school id"], [2, "driver id"], [2, "years working"], [2, "if full time"]], "column_names_original": [[-1, "*"], [0, "driver_id"], [0, "name"], [0, "party"], [0, "home_city"], [0, "age"], [1, "school_id"], [1, "grade"], [1, "school"], [1, "location"], [1, "type"], [2, "school_id"], [2, "driver_id"], [2, "years_working"], [2, "if_full_time"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "number", "others"], "db_id": "school_bus", "foreign_keys": [[12, 1], [11, 6]], "primary_keys": [1, 6, 11], "table_names": ["driver", "school", "school bus"], "table_names_original": ["driver", "school", "school_bus"]}, {"column_names": [[-1, "*"], [0, "roller coaster id"], [0, "name"], [0, "park"], [0, "country id"], [0, "length"], [0, "height"], [0, "speed"], [0, "opened"], [0, "status"], [1, "country id"], [1, "name"], [1, "population"], [1, "area"], [1, "languages"]], "column_names_original": [[-1, "*"], [0, "roller_coaster_id"], [0, "name"], [0, "park"], [0, "country_id"], [0, "length"], [0, "height"], [0, "speed"], [0, "opened"], [0, "status"], [1, "country_id"], [1, "name"], [1, "population"], [1, "area"], [1, "languages"]], "column_types": ["text", "number", "text", "text", "number", "number", "number", "text", "text", "text", "number", "text", "number", "number", "text"], "db_id": "roller_coaster", "foreign_keys": [[4, 10]], "primary_keys": [1, 10], "table_names": ["roller coaster", "country"], "table_names_original": ["roller_coaster", "country"]}, {"column_names": [[-1, "*"], [0, "building id"], [0, "name"], [0, "street address"], [0, "years as tallest"], [0, "height feet"], [0, "floors"], [1, "institution id"], [1, "institution"], [1, "location"], [1, "founded"], [1, "type"], [1, "enrollment"], [1, "team"], [1, "primary conference"], [1, "building id"], [2, "common name"], [2, "protein name"], [2, "divergence from human lineage"], [2, "accession number"], [2, "sequence length"], [2, "sequence identity to human protein"], [2, "institution id"]], "column_names_original": [[-1, "*"], [0, "building_id"], [0, "name"], [0, "street_address"], [0, "years_as_tallest"], [0, "height_feet"], [0, "floors"], [1, "institution_id"], [1, "institution"], [1, "location"], [1, "founded"], [1, "type"], [1, "enrollment"], [1, "team"], [1, "primary_conference"], [1, "building_id"], [2, "common_name"], [2, "protein_name"], [2, "divergence_from_human_lineage"], [2, "accession_number"], [2, "sequence_length"], [2, "sequence_identity_to_human_protein"], [2, "institution_id"]], "column_types": ["text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "number", "text", "text", "text", "text", "text", "number", "text", "number", "text", "text"], "db_id": "protein_institute", "foreign_keys": [[15, 1], [22, 7]], "primary_keys": [1, 7, 16], "table_names": ["building", "institution", "protein"], "table_names_original": ["building", "institution", "protein"]}, {"column_names": [[-1, "*"], [0, "last name"], [0, "first name"], [0, "grade"], [0, "class room"], [1, "last name"], [1, "first name"], [1, "class room"]], "column_names_original": [[-1, "*"], [0, "lastname"], [0, "firstname"], [0, "grade"], [0, "classroom"], [1, "lastname"], [1, "firstname"], [1, "classroom"]], "column_types": ["text", "text", "text", "number", "number", "text", "text", "number"], "db_id": "student_1", "foreign_keys": [], "primary_keys": [1, 5], "table_names": ["list", "teachers"], "table_names_original": ["list", "teachers"]}, {"column_names": [[-1, "*"], [0, "student id"], [0, "last name"], [0, "first name"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city code"], [1, "game id"], [1, "game name"], [1, "game type"], [2, "student id"], [2, "game id"], [2, "hours played"], [3, "student id"], [3, "sport name"], [3, "hours per week"], [3, "games played"], [3, "on scholarship"]], "column_names_original": [[-1, "*"], [0, "stuid"], [0, "lname"], [0, "fname"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city_code"], [1, "gameid"], [1, "gname"], [1, "gtype"], [2, "stuid"], [2, "gameid"], [2, "hours_played"], [3, "stuid"], [3, "sportname"], [3, "hoursperweek"], [3, "gamesplayed"], [3, "onscholarship"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "text"], "db_id": "game_1", "foreign_keys": [[12, 1], [13, 9], [15, 1]], "primary_keys": [1, 9], "table_names": ["student", "video games", "plays games", "sports info"], "table_names_original": ["student", "video_games", "plays_games", "sportsinfo"]}, {"column_names": [[-1, "*"], [0, "festival id"], [0, "festival name"], [0, "chair name"], [0, "location"], [0, "year"], [0, "num of audience"], [1, "artwork id"], [1, "type"], [1, "name"], [2, "artwork id"], [2, "festival id"], [2, "result"]], "column_names_original": [[-1, "*"], [0, "festival_id"], [0, "festival_name"], [0, "chair_name"], [0, "location"], [0, "year"], [0, "num_of_audience"], [1, "artwork_id"], [1, "type"], [1, "name"], [2, "artwork_id"], [2, "festival_id"], [2, "result"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "number", "number", "text"], "db_id": "entertainment_awards", "foreign_keys": [[11, 1], [10, 7]], "primary_keys": [1, 7, 10], "table_names": ["festival detail", "artwork", "nomination"], "table_names_original": ["festival_detail", "artwork", "nomination"]}, {"column_names": [[-1, "*"], [0, "race id"], [0, "name"], [0, "class"], [0, "date"], [0, "track id"], [1, "track id"], [1, "name"], [1, "location"], [1, "seating"], [1, "year opened"]], "column_names_original": [[-1, "*"], [0, "race_id"], [0, "name"], [0, "class"], [0, "date"], [0, "track_id"], [1, "track_id"], [1, "name"], [1, "location"], [1, "seating"], [1, "year_opened"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "text", "text", "number", "number"], "db_id": "race_track", "foreign_keys": [[5, 6]], "primary_keys": [1, 6], "table_names": ["race", "track"], "table_names_original": ["race", "track"]}, {"column_names": [[-1, "*"], [0, "actor id"], [0, "first name"], [0, "last name"], [0, "last update"], [1, "address id"], [1, "address"], [1, "address2"], [1, "district"], [1, "city id"], [1, "postal code"], [1, "phone"], [1, "last update"], [2, "category id"], [2, "name"], [2, "last update"], [3, "city id"], [3, "city"], [3, "country id"], [3, "last update"], [4, "country id"], [4, "country"], [4, "last update"], [5, "customer id"], [5, "store id"], [5, "first name"], [5, "last name"], [5, "email"], [5, "address id"], [5, "active"], [5, "create date"], [5, "last update"], [6, "film id"], [6, "title"], [6, "description"], [6, "release year"], [6, "language id"], [6, "original language id"], [6, "rental duration"], [6, "rental rate"], [6, "length"], [6, "replacement cost"], [6, "rating"], [6, "special features"], [6, "last update"], [7, "actor id"], [7, "film id"], [7, "last update"], [8, "film id"], [8, "category id"], [8, "last update"], [9, "film id"], [9, "title"], [9, "description"], [10, "inventory id"], [10, "film id"], [10, "store id"], [10, "last update"], [11, "language id"], [11, "name"], [11, "last update"], [12, "payment id"], [12, "customer id"], [12, "staff id"], [12, "rental id"], [12, "amount"], [12, "payment date"], [12, "last update"], [13, "rental id"], [13, "rental date"], [13, "inventory id"], [13, "customer id"], [13, "return date"], [13, "staff id"], [13, "last update"], [14, "staff id"], [14, "first name"], [14, "last name"], [14, "address id"], [14, "picture"], [14, "email"], [14, "store id"], [14, "active"], [14, "username"], [14, "password"], [14, "last update"], [15, "store id"], [15, "manager staff id"], [15, "address id"], [15, "last update"]], "column_names_original": [[-1, "*"], [0, "actor_id"], [0, "first_name"], [0, "last_name"], [0, "last_update"], [1, "address_id"], [1, "address"], [1, "address2"], [1, "district"], [1, "city_id"], [1, "postal_code"], [1, "phone"], [1, "last_update"], [2, "category_id"], [2, "name"], [2, "last_update"], [3, "city_id"], [3, "city"], [3, "country_id"], [3, "last_update"], [4, "country_id"], [4, "country"], [4, "last_update"], [5, "customer_id"], [5, "store_id"], [5, "first_name"], [5, "last_name"], [5, "email"], [5, "address_id"], [5, "active"], [5, "create_date"], [5, "last_update"], [6, "film_id"], [6, "title"], [6, "description"], [6, "release_year"], [6, "language_id"], [6, "original_language_id"], [6, "rental_duration"], [6, "rental_rate"], [6, "length"], [6, "replacement_cost"], [6, "rating"], [6, "special_features"], [6, "last_update"], [7, "actor_id"], [7, "film_id"], [7, "last_update"], [8, "film_id"], [8, "category_id"], [8, "last_update"], [9, "film_id"], [9, "title"], [9, "description"], [10, "inventory_id"], [10, "film_id"], [10, "store_id"], [10, "last_update"], [11, "language_id"], [11, "name"], [11, "last_update"], [12, "payment_id"], [12, "customer_id"], [12, "staff_id"], [12, "rental_id"], [12, "amount"], [12, "payment_date"], [12, "last_update"], [13, "rental_id"], [13, "rental_date"], [13, "inventory_id"], [13, "customer_id"], [13, "return_date"], [13, "staff_id"], [13, "last_update"], [14, "staff_id"], [14, "first_name"], [14, "last_name"], [14, "address_id"], [14, "picture"], [14, "email"], [14, "store_id"], [14, "active"], [14, "username"], [14, "password"], [14, "last_update"], [15, "store_id"], [15, "manager_staff_id"], [15, "address_id"], [15, "last_update"]], "column_types": ["text", "number", "text", "text", "time", "number", "text", "text", "text", "number", "text", "text", "time", "number", "text", "time", "number", "text", "number", "time", "number", "text", "time", "number", "number", "text", "text", "text", "number", "boolean", "time", "time", "number", "text", "text", "time", "number", "number", "number", "number", "number", "number", "text", "text", "time", "number", "number", "time", "number", "number", "time", "number", "text", "text", "number", "number", "number", "time", "number", "text", "time", "number", "number", "number", "number", "number", "time", "time", "number", "time", "number", "number", "time", "number", "time", "number", "text", "text", "number", "others", "text", "number", "boolean", "text", "text", "time", "number", "number", "number", "time"], "db_id": "sakila_1", "foreign_keys": [[9, 16], [18, 20], [24, 86], [28, 5], [37, 58], [36, 58], [46, 32], [45, 1], [49, 13], [48, 32], [55, 32], [56, 86], [63, 75], [62, 23], [64, 68], [71, 23], [70, 54], [73, 75], [78, 5], [88, 5], [87, 75]], "primary_keys": [1, 5, 13, 16, 20, 23, 32, 45, 48, 51, 54, 58, 61, 68, 75, 86], "table_names": ["actor", "address", "category", "city", "country", "customer", "film", "film actor", "film category", "film text", "inventory", "language", "payment", "rental", "staff", "store"], "table_names_original": ["actor", "address", "category", "city", "country", "customer", "film", "film_actor", "film_category", "film_text", "inventory", "language", "payment", "rental", "staff", "store"]}, {"column_names": [[-1, "*"], [0, "railway id"], [0, "railway"], [0, "builder"], [0, "built"], [0, "wheels"], [0, "location"], [0, "objectnumber"], [1, "train id"], [1, "train num"], [1, "name"], [1, "from"], [1, "arrival"], [1, "railway id"], [2, "manager id"], [2, "name"], [2, "country"], [2, "working year starts"], [2, "age"], [2, "level"], [3, "railway id"], [3, "manager id"], [3, "from year"]], "column_names_original": [[-1, "*"], [0, "railway_id"], [0, "railway"], [0, "builder"], [0, "built"], [0, "wheels"], [0, "location"], [0, "objectnumber"], [1, "train_id"], [1, "train_num"], [1, "name"], [1, "from"], [1, "arrival"], [1, "railway_id"], [2, "manager_id"], [2, "name"], [2, "country"], [2, "working_year_starts"], [2, "age"], [2, "level"], [3, "railway_id"], [3, "manager_id"], [3, "from_year"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "number", "number", "text"], "db_id": "railway", "foreign_keys": [[13, 1], [20, 1], [21, 14]], "primary_keys": [1, 8, 14, 20], "table_names": ["railway", "train", "manager", "railway manage"], "table_names_original": ["railway", "train", "manager", "railway_manage"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "nationality"], [0, "meter 100"], [0, "meter 200"], [0, "meter 300"], [0, "meter 400"], [0, "meter 500"], [0, "meter 600"], [0, "meter 700"], [0, "time"], [1, "id"], [1, "name"], [1, "capacity"], [1, "city"], [1, "country"], [1, "opening year"], [2, "id"], [2, "name"], [2, "stadium id"], [2, "year"], [3, "id"], [3, "result"], [3, "swimmer id"], [3, "event id"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "nationality"], [0, "meter_100"], [0, "meter_200"], [0, "meter_300"], [0, "meter_400"], [0, "meter_500"], [0, "meter_600"], [0, "meter_700"], [0, "time"], [1, "id"], [1, "name"], [1, "capacity"], [1, "city"], [1, "country"], [1, "opening_year"], [2, "id"], [2, "name"], [2, "stadium_id"], [2, "year"], [3, "id"], [3, "result"], [3, "swimmer_id"], [3, "event_id"]], "column_types": ["text", "number", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "number", "text", "text", "number", "number", "text", "number", "text", "number", "text", "number", "number"], "db_id": "swimming", "foreign_keys": [[20, 12], [24, 1], [25, 18]], "primary_keys": [1, 12, 18, 24], "table_names": ["swimmer", "stadium", "event", "record"], "table_names_original": ["swimmer", "stadium", "event", "record"]}, {"column_names": [[-1, "*"], [0, "county id"], [0, "name"], [0, "population"], [0, "police officers"], [0, "residents per officer"], [0, "case burden"], [0, "crime rate"], [0, "police force"], [0, "location"], [1, "city id"], [1, "county id"], [1, "name"], [1, "white"], [1, "black"], [1, "amerindian"], [1, "asian"], [1, "multiracial"], [1, "hispanic"]], "column_names_original": [[-1, "*"], [0, "county_id"], [0, "name"], [0, "population"], [0, "police_officers"], [0, "residents_per_officer"], [0, "case_burden"], [0, "crime_rate"], [0, "police_force"], [0, "location"], [1, "city_id"], [1, "county_id"], [1, "name"], [1, "white"], [1, "black"], [1, "amerindian"], [1, "asian"], [1, "multiracial"], [1, "hispanic"]], "column_types": ["text", "number", "text", "number", "number", "number", "number", "number", "text", "text", "number", "number", "text", "number", "number", "number", "number", "number", "number"], "db_id": "county_public_safety", "foreign_keys": [[11, 1]], "primary_keys": [1, 10], "table_names": ["county public safety", "city"], "table_names_original": ["county_public_safety", "city"]}, {"column_names": [[-1, "*"], [0, "activity id"], [0, "activity name"], [1, "student id"], [1, "activity id"], [2, "faculty id"], [2, "activity id"], [3, "student id"], [3, "last name"], [3, "first name"], [3, "age"], [3, "sex"], [3, "major"], [3, "advisor"], [3, "city code"], [4, "faculty id"], [4, "last name"], [4, "first name"], [4, "rank"], [4, "sex"], [4, "phone"], [4, "room"], [4, "building"]], "column_names_original": [[-1, "*"], [0, "actid"], [0, "activity_name"], [1, "stuid"], [1, "actid"], [2, "facid"], [2, "actid"], [3, "stuid"], [3, "lname"], [3, "fname"], [3, "age"], [3, "sex"], [3, "major"], [3, "advisor"], [3, "city_code"], [4, "facid"], [4, "lname"], [4, "fname"], [4, "rank"], [4, "sex"], [4, "phone"], [4, "room"], [4, "building"]], "column_types": ["text", "number", "text", "number", "number", "number", "number", "number", "text", "text", "number", "text", "number", "number", "text", "number", "text", "text", "text", "text", "number", "text", "text"], "db_id": "activity_1", "foreign_keys": [[4, 1], [3, 7], [6, 1], [5, 15]], "primary_keys": [1, 7, 15], "table_names": ["activity", "participates in", "faculty participates in", "student", "faculty"], "table_names_original": ["activity", "participates_in", "faculty_participates_in", "student", "faculty"]}, {"column_names": [[-1, "*"], [0, "gymnast id"], [0, "floor exercise points"], [0, "pommel horse points"], [0, "rings points"], [0, "vault points"], [0, "parallel bars points"], [0, "horizontal bar points"], [0, "total points"], [1, "people id"], [1, "name"], [1, "age"], [1, "height"], [1, "hometown"]], "column_names_original": [[-1, "*"], [0, "gymnast_id"], [0, "floor_exercise_points"], [0, "pommel_horse_points"], [0, "rings_points"], [0, "vault_points"], [0, "parallel_bars_points"], [0, "horizontal_bar_points"], [0, "total_points"], [1, "people_id"], [1, "name"], [1, "age"], [1, "height"], [1, "hometown"]], "column_types": ["text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "text"], "db_id": "gymnast", "foreign_keys": [[1, 9]], "primary_keys": [1, 9], "table_names": ["gymnast", "people"], "table_names_original": ["gymnast", "people"]}, {"column_names": [[-1, "*"], [0, "customer id"], [0, "customer details"], [1, "property id"], [1, "property type code"], [1, "property address"], [1, "other details"], [2, "resident id"], [2, "property id"], [2, "date moved in"], [2, "date moved out"], [2, "other details"], [3, "organization id"], [3, "parent organization id"], [3, "organization details"], [4, "service id"], [4, "organization id"], [4, "service type code"], [4, "service details"], [5, "resident id"], [5, "service id"], [5, "date moved in"], [5, "property id"], [5, "date requested"], [5, "date provided"], [5, "other details"], [6, "thing id"], [6, "organization id"], [6, "type of thing code"], [6, "service type code"], [6, "service details"], [7, "customer event id"], [7, "customer id"], [7, "date moved in"], [7, "property id"], [7, "resident id"], [7, "thing id"], [8, "customer event note id"], [8, "customer event id"], [8, "service type code"], [8, "resident id"], [8, "property id"], [8, "date moved in"], [9, "thing id"], [9, "date and date"], [9, "status of thing code"], [10, "thing id"], [10, "date and time"], [10, "location code"]], "column_names_original": [[-1, "*"], [0, "customer_id"], [0, "customer_details"], [1, "property_id"], [1, "property_type_code"], [1, "property_address"], [1, "other_details"], [2, "resident_id"], [2, "property_id"], [2, "date_moved_in"], [2, "date_moved_out"], [2, "other_details"], [3, "organization_id"], [3, "parent_organization_id"], [3, "organization_details"], [4, "service_id"], [4, "organization_id"], [4, "service_type_code"], [4, "service_details"], [5, "resident_id"], [5, "service_id"], [5, "date_moved_in"], [5, "property_id"], [5, "date_requested"], [5, "date_provided"], [5, "other_details"], [6, "thing_id"], [6, "organization_id"], [6, "type_of_thing_code"], [6, "service_type_code"], [6, "service_details"], [7, "customer_event_id"], [7, "customer_id"], [7, "date_moved_in"], [7, "property_id"], [7, "resident_id"], [7, "thing_id"], [8, "customer_event_note_id"], [8, "customer_event_id"], [8, "service_type_code"], [8, "resident_id"], [8, "property_id"], [8, "date_moved_in"], [9, "thing_id"], [9, "date_and_date"], [9, "status_of_thing_code"], [10, "thing_id"], [10, "date_and_time"], [10, "location_code"]], "column_types": ["text", "number", "text", "number", "text", "text", "text", "number", "number", "time", "time", "text", "number", "number", "text", "number", "number", "text", "text", "number", "number", "time", "number", "time", "time", "text", "number", "number", "text", "text", "text", "number", "number", "time", "number", "number", "number", "number", "number", "text", "number", "number", "time", "number", "time", "text", "number", "time", "text"], "db_id": "local_govt_and_lot", "foreign_keys": [[8, 3], [16, 12], [19, 7], [22, 8], [21, 9], [20, 15], [27, 12], [35, 7], [34, 8], [33, 9], [32, 1], [36, 26], [38, 31], [43, 26], [46, 26]], "primary_keys": [1, 3, 7, 12, 15, 19, 26, 31, 37, 43, 46], "table_names": ["customers", "properties", "residents", "organizations", "services", "residents services", "things", "customer events", "customer event notes", "timed status of things", "timed locations of things"], "table_names_original": ["customers", "properties", "residents", "organizations", "services", "residents_services", "things", "customer_events", "customer_event_notes", "timed_status_of_things", "timed_locations_of_things"]}, {"column_names": [[-1, "*"], [0, "mountain id"], [0, "name"], [0, "height"], [0, "prominence"], [0, "range"], [0, "country"], [1, "climber id"], [1, "name"], [1, "country"], [1, "time"], [1, "points"], [1, "mountain id"]], "column_names_original": [[-1, "*"], [0, "mountain_id"], [0, "name"], [0, "height"], [0, "prominence"], [0, "range"], [0, "country"], [1, "climber_id"], [1, "name"], [1, "country"], [1, "time"], [1, "points"], [1, "mountain_id"]], "column_types": ["text", "number", "text", "number", "number", "text", "text", "number", "text", "text", "text", "number", "number"], "db_id": "climbing", "foreign_keys": [[12, 1]], "primary_keys": [1, 7], "table_names": ["mountain", "climber"], "table_names_original": ["mountain", "climber"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "grade"], [1, "student id"], [1, "friend id"], [2, "student id"], [2, "liked id"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "grade"], [1, "student_id"], [1, "friend_id"], [2, "student_id"], [2, "liked_id"]], "column_types": ["text", "number", "text", "number", "number", "number", "number", "number"], "db_id": "network_1", "foreign_keys": [[5, 1], [4, 1], [6, 1], [7, 1]], "primary_keys": [1, 4, 6], "table_names": ["high schooler", "friend", "likes"], "table_names_original": ["highschooler", "friend", "likes"]}, {"column_names": [[-1, "*"], [0, "payment method code"], [0, "payment method description"], [1, "service type code"], [1, "parent service type code"], [1, "service type description"], [2, "address id"], [2, "line 1"], [2, "line 2"], [2, "city town"], [2, "state county"], [2, "other details"], [3, "product id"], [3, "product name"], [3, "product price"], [3, "product description"], [3, "other product service details"], [4, "marketing region code"], [4, "marketing region name"], [4, "marketing region descriptrion"], [4, "other details"], [5, "client id"], [5, "address id"], [5, "customer email address"], [5, "customer name"], [5, "customer phone"], [5, "other details"], [6, "workshop group id"], [6, "address id"], [6, "currency code"], [6, "marketing region code"], [6, "store name"], [6, "store phone"], [6, "store email address"], [6, "other details"], [7, "performer id"], [7, "address id"], [7, "customer name"], [7, "customer phone"], [7, "customer email address"], [7, "other details"], [8, "customer id"], [8, "address id"], [8, "customer name"], [8, "customer phone"], [8, "customer email address"], [8, "other details"], [9, "store id"], [9, "address id"], [9, "marketing region code"], [9, "store name"], [9, "store phone"], [9, "store email address"], [9, "other details"], [10, "booking id"], [10, "customer id"], [10, "workshop group id"], [10, "status code"], [10, "store id"], [10, "order date"], [10, "planned delivery date"], [10, "actual delivery date"], [10, "other order details"], [11, "order id"], [11, "performer id"], [12, "order id"], [12, "customer id"], [12, "store id"], [12, "order date"], [12, "planned delivery date"], [12, "actual delivery date"], [12, "other order details"], [13, "order item id"], [13, "order id"], [13, "product id"], [13, "order quantity"], [13, "other item details"], [14, "invoice id"], [14, "order id"], [14, "payment method code"], [14, "product id"], [14, "order quantity"], [14, "other item details"], [14, "order item id"], [15, "service id"], [15, "service type code"], [15, "workshop group id"], [15, "product description"], [15, "product name"], [15, "product price"], [15, "other product service details"], [16, "order id"], [16, "product id"], [17, "invoice item id"], [17, "invoice id"], [17, "order id"], [17, "order item id"], [17, "product id"], [17, "order quantity"], [17, "other item details"]], "column_names_original": [[-1, "*"], [0, "payment_method_code"], [0, "payment_method_description"], [1, "service_type_code"], [1, "parent_service_type_code"], [1, "service_type_description"], [2, "address_id"], [2, "line_1"], [2, "line_2"], [2, "city_town"], [2, "state_county"], [2, "other_details"], [3, "product_id"], [3, "product_name"], [3, "product_price"], [3, "product_description"], [3, "other_product_service_details"], [4, "marketing_region_code"], [4, "marketing_region_name"], [4, "marketing_region_descriptrion"], [4, "other_details"], [5, "client_id"], [5, "address_id"], [5, "customer_email_address"], [5, "customer_name"], [5, "customer_phone"], [5, "other_details"], [6, "workshop_group_id"], [6, "address_id"], [6, "currency_code"], [6, "marketing_region_code"], [6, "store_name"], [6, "store_phone"], [6, "store_email_address"], [6, "other_details"], [7, "performer_id"], [7, "address_id"], [7, "customer_name"], [7, "customer_phone"], [7, "customer_email_address"], [7, "other_details"], [8, "customer_id"], [8, "address_id"], [8, "customer_name"], [8, "customer_phone"], [8, "customer_email_address"], [8, "other_details"], [9, "store_id"], [9, "address_id"], [9, "marketing_region_code"], [9, "store_name"], [9, "store_phone"], [9, "store_email_address"], [9, "other_details"], [10, "booking_id"], [10, "customer_id"], [10, "workshop_group_id"], [10, "status_code"], [10, "store_id"], [10, "order_date"], [10, "planned_delivery_date"], [10, "actual_delivery_date"], [10, "other_order_details"], [11, "order_id"], [11, "performer_id"], [12, "order_id"], [12, "customer_id"], [12, "store_id"], [12, "order_date"], [12, "planned_delivery_date"], [12, "actual_delivery_date"], [12, "other_order_details"], [13, "order_item_id"], [13, "order_id"], [13, "product_id"], [13, "order_quantity"], [13, "other_item_details"], [14, "invoice_id"], [14, "order_id"], [14, "payment_method_code"], [14, "product_id"], [14, "order_quantity"], [14, "other_item_details"], [14, "order_item_id"], [15, "service_id"], [15, "service_type_code"], [15, "workshop_group_id"], [15, "product_description"], [15, "product_name"], [15, "product_price"], [15, "other_product_service_details"], [16, "order_id"], [16, "product_id"], [17, "invoice_item_id"], [17, "invoice_id"], [17, "order_id"], [17, "order_item_id"], [17, "product_id"], [17, "order_quantity"], [17, "other_item_details"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "number", "text", "text", "number", "time", "time", "time", "text", "number", "number", "number", "number", "number", "time", "time", "time", "text", "number", "number", "number", "text", "text", "number", "number", "text", "number", "text", "text", "number", "number", "text", "number", "text", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "text"], "db_id": "cre_Drama_Workshop_Groups", "foreign_keys": [[22, 6], [28, 6], [36, 6], [42, 6], [49, 17], [48, 6], [56, 27], [55, 21], [63, 54], [64, 35], [67, 47], [66, 41], [74, 12], [73, 65], [79, 1], [78, 54], [78, 65], [85, 3], [86, 27], [92, 84], [91, 54], [95, 91], [97, 92], [94, 77], [96, 72]], "primary_keys": [1, 3, 6, 12, 17, 21, 27, 35, 41, 47, 54, 63, 65, 72, 77, 84, 91, 93], "table_names": ["reference payment methods", "reference service types", "addresses", "products", "marketing regions", "clients", "drama workshop groups", "performers", "customers", "stores", "bookings", "performers in bookings", "customer orders", "order items", "invoices", "services", "bookings services", "invoice items"], "table_names_original": ["ref_payment_methods", "ref_service_types", "addresses", "products", "marketing_regions", "clients", "drama_workshop_groups", "performers", "customers", "stores", "bookings", "performers_in_bookings", "customer_orders", "order_items", "invoices", "services", "bookings_services", "invoice_items"]}, {"column_names": [[-1, "*"], [0, "repair id"], [0, "name"], [0, "launch date"], [0, "notes"], [1, "machine id"], [1, "making year"], [1, "class"], [1, "team"], [1, "machine series"], [1, "value points"], [1, "quality rank"], [2, "technician id"], [2, "name"], [2, "team"], [2, "starting year"], [2, "age"], [3, "technician id"], [3, "repair id"], [3, "machine id"]], "column_names_original": [[-1, "*"], [0, "repair_id"], [0, "name"], [0, "launch_date"], [0, "notes"], [1, "machine_id"], [1, "making_year"], [1, "class"], [1, "team"], [1, "machine_series"], [1, "value_points"], [1, "quality_rank"], [2, "technician_id"], [2, "name"], [2, "team"], [2, "starting_year"], [2, "age"], [3, "technician_id"], [3, "repair_id"], [3, "machine_id"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "number", "text", "text", "number", "number", "number", "number", "number"], "db_id": "machine_repair", "foreign_keys": [[19, 5], [18, 1], [17, 12]], "primary_keys": [1, 5, 12, 17], "table_names": ["repair", "machine", "technician", "repair assignment"], "table_names_original": ["repair", "machine", "technician", "repair_assignment"]}, {"column_names": [[-1, "*"], [0, "employee id"], [0, "name"], [0, "age"], [0, "city"], [1, "shop id"], [1, "name"], [1, "location"], [1, "district"], [1, "number products"], [1, "manager name"], [2, "shop id"], [2, "employee id"], [2, "start from"], [2, "is full time"], [3, "employee id"], [3, "year awarded"], [3, "bonus"]], "column_names_original": [[-1, "*"], [0, "employee_id"], [0, "name"], [0, "age"], [0, "city"], [1, "shop_id"], [1, "name"], [1, "location"], [1, "district"], [1, "number_products"], [1, "manager_name"], [2, "shop_id"], [2, "employee_id"], [2, "start_from"], [2, "is_full_time"], [3, "employee_id"], [3, "year_awarded"], [3, "bonus"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "text", "text", "number", "text", "number", "number", "text", "others", "text", "text", "number"], "db_id": "employee_hire_evaluation", "foreign_keys": [[12, 1], [11, 5], [15, 1]], "primary_keys": [1, 5, 12, 15], "table_names": ["employee", "shop", "hiring", "evaluation"], "table_names_original": ["employee", "shop", "hiring", "evaluation"]}, {"column_names": [[-1, "*"], [0, "mission id"], [0, "ship id"], [0, "code"], [0, "launched year"], [0, "location"], [0, "speed knots"], [0, "fate"], [1, "ship id"], [1, "name"], [1, "type"], [1, "nationality"], [1, "tonnage"]], "column_names_original": [[-1, "*"], [0, "mission_id"], [0, "ship_id"], [0, "code"], [0, "launched_year"], [0, "location"], [0, "speed_knots"], [0, "fate"], [1, "ship_id"], [1, "name"], [1, "type"], [1, "nationality"], [1, "tonnage"]], "column_types": ["text", "number", "number", "text", "number", "text", "number", "text", "number", "text", "text", "text", "number"], "db_id": "ship_mission", "foreign_keys": [[2, 8]], "primary_keys": [1, 8], "table_names": ["mission", "ship"], "table_names_original": ["mission", "ship"]}, {"column_names": [[-1, "*"], [0, "product id"], [0, "product name"], [0, "product price"], [0, "product description"], [1, "address id"], [1, "address details"], [1, "city"], [1, "zip postcode"], [1, "state province county"], [1, "country"], [2, "customer id"], [2, "payment method"], [2, "customer name"], [2, "customer phone"], [2, "customer email"], [2, "date became customer"], [3, "regular order id"], [3, "distributer id"], [4, "regular order id"], [4, "product id"], [5, "actual order id"], [5, "order status code"], [5, "regular order id"], [5, "actual order date"], [6, "actual order id"], [6, "product id"], [7, "customer id"], [7, "address id"], [7, "date from"], [7, "address type"], [7, "date to"], [8, "route id"], [8, "route name"], [8, "other route details"], [9, "location code"], [9, "route id"], [9, "location address id"], [9, "location name"], [10, "truck id"], [10, "truck licence number"], [10, "truck details"], [11, "employee id"], [11, "employee address id"], [11, "employee name"], [11, "employee phone"], [12, "location code"], [12, "actual order id"], [12, "delivery status code"], [12, "driver employee id"], [12, "truck id"], [12, "delivery date"]], "column_names_original": [[-1, "*"], [0, "product_id"], [0, "product_name"], [0, "product_price"], [0, "product_description"], [1, "address_id"], [1, "address_details"], [1, "city"], [1, "zip_postcode"], [1, "state_province_county"], [1, "country"], [2, "customer_id"], [2, "payment_method"], [2, "customer_name"], [2, "customer_phone"], [2, "customer_email"], [2, "date_became_customer"], [3, "regular_order_id"], [3, "distributer_id"], [4, "regular_order_id"], [4, "product_id"], [5, "actual_order_id"], [5, "order_status_code"], [5, "regular_order_id"], [5, "actual_order_date"], [6, "actual_order_id"], [6, "product_id"], [7, "customer_id"], [7, "address_id"], [7, "date_from"], [7, "address_type"], [7, "date_to"], [8, "route_id"], [8, "route_name"], [8, "other_route_details"], [9, "location_code"], [9, "route_id"], [9, "location_address_id"], [9, "location_name"], [10, "truck_id"], [10, "truck_licence_number"], [10, "truck_details"], [11, "employee_id"], [11, "employee_address_id"], [11, "employee_name"], [11, "employee_phone"], [12, "location_code"], [12, "actual_order_id"], [12, "delivery_status_code"], [12, "driver_employee_id"], [12, "truck_id"], [12, "delivery_date"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "time", "number", "number", "number", "number", "number", "text", "number", "time", "number", "number", "number", "number", "time", "text", "time", "number", "text", "text", "text", "number", "number", "text", "number", "text", "text", "number", "number", "text", "text", "text", "number", "text", "number", "number", "time"], "db_id": "customer_deliveries", "foreign_keys": [[18, 11], [19, 17], [20, 1], [23, 17], [25, 21], [26, 1], [28, 5], [27, 11], [36, 32], [37, 5], [43, 5], [49, 42], [46, 35], [47, 21], [50, 39]], "primary_keys": [1, 5, 11, 17, 21, 32, 35, 39, 42], "table_names": ["products", "addresses", "customers", "regular orders", "regular order products", "actual orders", "actual order products", "customer addresses", "delivery routes", "delivery route locations", "trucks", "employees", "order deliveries"], "table_names_original": ["products", "addresses", "customers", "regular_orders", "regular_order_products", "actual_orders", "actual_order_products", "customer_addresses", "delivery_routes", "delivery_route_locations", "trucks", "employees", "order_deliveries"]}, {"column_names": [[-1, "*"], [0, "school id"], [0, "school"], [0, "location"], [0, "enrollment"], [0, "founded"], [0, "denomination"], [0, "boys or girls"], [0, "day or boarding"], [0, "year entered competition"], [0, "school colors"], [1, "school id"], [1, "nickname"], [1, "colors"], [1, "league"], [1, "class"], [1, "division"], [2, "school id"], [2, "school year"], [2, "class a"], [2, "class aa"], [3, "player id"], [3, "player"], [3, "team"], [3, "age"], [3, "position"], [3, "school id"]], "column_names_original": [[-1, "*"], [0, "school_id"], [0, "school"], [0, "location"], [0, "enrollment"], [0, "founded"], [0, "denomination"], [0, "boys_or_girls"], [0, "day_or_boarding"], [0, "year_entered_competition"], [0, "school_colors"], [1, "school_id"], [1, "nickname"], [1, "colors"], [1, "league"], [1, "class"], [1, "division"], [2, "school_id"], [2, "school_year"], [2, "class_a"], [2, "class_aa"], [3, "player_id"], [3, "player"], [3, "team"], [3, "age"], [3, "position"], [3, "school_id"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "text", "text", "number", "text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "number", "text", "number"], "db_id": "school_player", "foreign_keys": [[11, 1], [17, 1], [26, 1]], "primary_keys": [1, 11, 17, 21], "table_names": ["school", "school details", "school performance", "player"], "table_names_original": ["school", "school_details", "school_performance", "player"]}, {"column_names": [[-1, "*"], [0, "product id"], [0, "product"], [0, "dimensions"], [0, "dpi"], [0, "pages per minute color"], [0, "max page size"], [0, "interface"], [1, "store id"], [1, "store name"], [1, "type"], [1, "area size"], [1, "number of product category"], [1, "ranking"], [2, "district id"], [2, "district name"], [2, "headquartered city"], [2, "city population"], [2, "city area"], [3, "store id"], [3, "product id"], [4, "store id"], [4, "district id"]], "column_names_original": [[-1, "*"], [0, "product_id"], [0, "product"], [0, "dimensions"], [0, "dpi"], [0, "pages_per_minute_color"], [0, "max_page_size"], [0, "interface"], [1, "store_id"], [1, "store_name"], [1, "type"], [1, "area_size"], [1, "number_of_product_category"], [1, "ranking"], [2, "district_id"], [2, "district_name"], [2, "headquartered_city"], [2, "city_population"], [2, "city_area"], [3, "store_id"], [3, "product_id"], [4, "store_id"], [4, "district_id"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "text", "number", "text", "text", "number", "number", "number", "number", "text", "text", "number", "number", "number", "number", "number", "number"], "db_id": "store_product", "foreign_keys": [[19, 8], [22, 14], [21, 8]], "primary_keys": [1, 8, 14, 19, 21], "table_names": ["product", "store", "district", "store product", "store district"], "table_names_original": ["product", "store", "district", "store_product", "store_district"]}, {"column_names": [[-1, "*"], [0, "department id"], [0, "name"], [0, "creation"], [0, "ranking"], [0, "budget in billions"], [0, "num employees"], [1, "head id"], [1, "name"], [1, "born state"], [1, "age"], [2, "department id"], [2, "head id"], [2, "temporary acting"]], "column_names_original": [[-1, "*"], [0, "department_id"], [0, "name"], [0, "creation"], [0, "ranking"], [0, "budget_in_billions"], [0, "num_employees"], [1, "head_id"], [1, "name"], [1, "born_state"], [1, "age"], [2, "department_id"], [2, "head_id"], [2, "temporary_acting"]], "column_types": ["text", "number", "text", "text", "number", "number", "number", "number", "text", "text", "number", "number", "number", "text"], "db_id": "department_management", "foreign_keys": [[12, 7], [11, 1]], "primary_keys": [1, 7, 11], "table_names": ["department", "head", "management"], "table_names_original": ["department", "head", "management"]}, {"column_names": [[-1, "*"], [0, "address id"], [0, "line 1 number building"], [0, "town city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [1, "service id"], [1, "service type code"], [1, "service name"], [1, "service descriptio"], [2, "form id"], [2, "form type code"], [2, "service id"], [2, "form number"], [2, "form name"], [2, "form description"], [3, "individual id"], [3, "individual first name"], [3, "individual middle name"], [3, "inidividual phone"], [3, "individual email"], [3, "individual address"], [3, "individual last name"], [4, "organization id"], [4, "date formed"], [4, "organization name"], [4, "uk vat number"], [5, "party id"], [5, "payment method code"], [5, "party phone"], [5, "party email"], [6, "individual id"], [6, "organization id"], [6, "date contact from"], [6, "date contact to"], [7, "party id"], [7, "address id"], [7, "date address from"], [7, "address type code"], [7, "date address to"], [8, "party id"], [8, "form id"], [8, "date completion started"], [8, "form status code"], [8, "date fully completed"], [9, "booking id"], [9, "customer id"], [9, "service id"], [9, "service datetime"], [9, "booking made date"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1_number_building"], [0, "town_city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [1, "service_id"], [1, "service_type_code"], [1, "service_name"], [1, "service_descriptio"], [2, "form_id"], [2, "form_type_code"], [2, "service_id"], [2, "form_number"], [2, "form_name"], [2, "form_description"], [3, "individual_id"], [3, "individual_first_name"], [3, "individual_middle_name"], [3, "inidividual_phone"], [3, "individual_email"], [3, "individual_address"], [3, "individual_last_name"], [4, "organization_id"], [4, "date_formed"], [4, "organization_name"], [4, "uk_vat_number"], [5, "party_id"], [5, "payment_method_code"], [5, "party_phone"], [5, "party_email"], [6, "individual_id"], [6, "organization_id"], [6, "date_contact_from"], [6, "date_contact_to"], [7, "party_id"], [7, "address_id"], [7, "date_address_from"], [7, "address_type_code"], [7, "date_address_to"], [8, "party_id"], [8, "form_id"], [8, "date_completion_started"], [8, "form_status_code"], [8, "date_fully_completed"], [9, "booking_id"], [9, "customer_id"], [9, "service_id"], [9, "service_datetime"], [9, "booking_made_date"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "time", "text", "text", "number", "text", "text", "text", "number", "number", "time", "time", "number", "number", "time", "text", "time", "number", "number", "time", "text", "time", "number", "number", "number", "time", "time"], "db_id": "e_government", "foreign_keys": [[13, 7], [32, 17], [33, 24], [36, 28], [37, 1], [42, 11], [41, 28], [47, 28], [48, 7]], "primary_keys": [1, 7, 11, 17, 24, 28, 32, 36, 41], "table_names": ["addresses", "services", "forms", "individuals", "organizations", "parties", "organization contact individuals", "party addresses", "party forms", "party services"], "table_names_original": ["addresses", "services", "forms", "individuals", "organizations", "parties", "organization_contact_individuals", "party_addresses", "party_forms", "party_services"]}, {"column_names": [[-1, "*"], [0, "club id"], [0, "name"], [0, "region"], [0, "start year"], [1, "rank"], [1, "club id"], [1, "gold"], [1, "silver"], [1, "bronze"], [1, "total"], [2, "player id"], [2, "name"], [2, "position"], [2, "club id"], [2, "apps"], [2, "tries"], [2, "goals"], [2, "points"], [3, "competition id"], [3, "year"], [3, "competition type"], [3, "country"], [4, "competition id"], [4, "club id 1"], [4, "club id 2"], [4, "score"]], "column_names_original": [[-1, "*"], [0, "club_id"], [0, "name"], [0, "region"], [0, "start_year"], [1, "rank"], [1, "club_id"], [1, "gold"], [1, "silver"], [1, "bronze"], [1, "total"], [2, "player_id"], [2, "name"], [2, "position"], [2, "club_id"], [2, "apps"], [2, "tries"], [2, "goals"], [2, "points"], [3, "competition_id"], [3, "year"], [3, "competition_type"], [3, "country"], [4, "competition_id"], [4, "club_id_1"], [4, "club_id_2"], [4, "score"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "text", "text", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "number", "number", "text"], "db_id": "sports_competition", "foreign_keys": [[6, 1], [14, 1], [23, 19], [25, 1], [24, 1]], "primary_keys": [1, 5, 11, 19, 23], "table_names": ["club", "club rank", "player", "competition", "competition result"], "table_names_original": ["club", "club_rank", "player", "competition", "competition_result"]}, {"column_names": [[-1, "*"], [0, "captain id"], [0, "name"], [0, "ship id"], [0, "age"], [0, "class"], [0, "rank"], [1, "ship id"], [1, "name"], [1, "type"], [1, "built year"], [1, "class"], [1, "flag"]], "column_names_original": [[-1, "*"], [0, "captain_id"], [0, "name"], [0, "ship_id"], [0, "age"], [0, "class"], [0, "rank"], [1, "ship_id"], [1, "name"], [1, "type"], [1, "built_year"], [1, "class"], [1, "flag"]], "column_types": ["text", "number", "text", "number", "text", "text", "text", "number", "text", "text", "number", "text", "text"], "db_id": "ship_1", "foreign_keys": [[3, 7]], "primary_keys": [1, 7], "table_names": ["captain", "ship"], "table_names_original": ["captain", "ship"]}, {"column_names": [[-1, "*"], [0, "publication id"], [0, "book id"], [0, "publisher"], [0, "publication date"], [0, "price"], [1, "book id"], [1, "title"], [1, "issues"], [1, "writer"]], "column_names_original": [[-1, "*"], [0, "publication_id"], [0, "book_id"], [0, "publisher"], [0, "publication_date"], [0, "price"], [1, "book_id"], [1, "title"], [1, "issues"], [1, "writer"]], "column_types": ["text", "number", "number", "text", "text", "number", "number", "text", "number", "text"], "db_id": "book_2", "foreign_keys": [[2, 6]], "primary_keys": [1, 6], "table_names": ["publication", "book"], "table_names_original": ["publication", "book"]}, {"column_names": [[-1, "*"], [0, "shop id"], [0, "address"], [0, "num of staff"], [0, "score"], [0, "open year"], [1, "member id"], [1, "name"], [1, "membership card"], [1, "age"], [1, "time of purchase"], [1, "level of membership"], [1, "address"], [2, "hh id"], [2, "shop id"], [2, "month"], [2, "num of shaff in charge"], [3, "hh id"], [3, "member id"], [3, "total amount"]], "column_names_original": [[-1, "*"], [0, "shop_id"], [0, "address"], [0, "num_of_staff"], [0, "score"], [0, "open_year"], [1, "member_id"], [1, "name"], [1, "membership_card"], [1, "age"], [1, "time_of_purchase"], [1, "level_of_membership"], [1, "address"], [2, "hh_id"], [2, "shop_id"], [2, "month"], [2, "num_of_shaff_in_charge"], [3, "hh_id"], [3, "member_id"], [3, "total_amount"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "text", "text", "number", "number", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "db_id": "coffee_shop", "foreign_keys": [[14, 1], [18, 6]], "primary_keys": [1, 6, 13, 17], "table_names": ["shop", "member", "happy hour", "happy hour member"], "table_names_original": ["shop", "member", "happy_hour", "happy_hour_member"]}, {"column_names": [[-1, "*"], [0, "room id"], [0, "room name"], [0, "beds"], [0, "bed type"], [0, "max occupancy"], [0, "base price"], [0, "decor"], [1, "code"], [1, "room"], [1, "check in"], [1, "check out"], [1, "rate"], [1, "last name"], [1, "first name"], [1, "adults"], [1, "kids"]], "column_names_original": [[-1, "*"], [0, "roomid"], [0, "roomname"], [0, "beds"], [0, "bedtype"], [0, "maxoccupancy"], [0, "baseprice"], [0, "decor"], [1, "code"], [1, "room"], [1, "checkin"], [1, "checkout"], [1, "rate"], [1, "lastname"], [1, "firstname"], [1, "adults"], [1, "kids"]], "column_types": ["text", "text", "text", "number", "text", "number", "number", "text", "number", "text", "text", "text", "number", "text", "text", "number", "number"], "db_id": "inn_1", "foreign_keys": [[9, 1]], "primary_keys": [1, 8], "table_names": ["rooms", "reservations"], "table_names_original": ["rooms", "reservations"]}, {"column_names": [[-1, "*"], [0, "event id"], [0, "date"], [0, "venue"], [0, "name"], [0, "event attendance"], [1, "journalist id"], [1, "name"], [1, "nationality"], [1, "age"], [1, "years working"], [2, "journalist id"], [2, "event id"], [2, "work type"]], "column_names_original": [[-1, "*"], [0, "event_id"], [0, "date"], [0, "venue"], [0, "name"], [0, "event_attendance"], [1, "journalist_id"], [1, "name"], [1, "nationality"], [1, "age"], [1, "years_working"], [2, "journalist_id"], [2, "event_id"], [2, "work_type"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "number", "text"], "db_id": "news_report", "foreign_keys": [[12, 1], [11, 6]], "primary_keys": [1, 6, 11], "table_names": ["event", "journalist", "news report"], "table_names_original": ["event", "journalist", "news_report"]}, {"column_names": [[-1, "*"], [0, "coupon id"], [0, "date issued"], [0, "coupon amount"], [1, "customer id"], [1, "coupon id"], [1, "good or bad customer"], [1, "first name"], [1, "last name"], [1, "gender"], [1, "date became customer"], [1, "date last hire"], [2, "booking id"], [2, "customer id"], [2, "booking status code"], [2, "returned damaged yes or no"], [2, "booking start date"], [2, "booking end date"], [2, "count hired"], [2, "amount payable"], [2, "amount of discount"], [2, "amount outstanding"], [2, "amount of refund"], [3, "product id"], [3, "product type code"], [3, "daily hire cost"], [3, "product name"], [3, "product description"], [4, "payment id"], [4, "booking id"], [4, "customer id"], [4, "payment type code"], [4, "amount paid in full yn"], [4, "payment date"], [4, "amount due"], [4, "amount paid"], [5, "booking id"], [5, "product id"], [5, "returned yes or no"], [5, "returned late yes or no"], [5, "booked count"], [5, "booked amount"], [6, "product id"], [6, "booking id"], [6, "status date"], [6, "available yes or no"]], "column_names_original": [[-1, "*"], [0, "coupon_id"], [0, "date_issued"], [0, "coupon_amount"], [1, "customer_id"], [1, "coupon_id"], [1, "good_or_bad_customer"], [1, "first_name"], [1, "last_name"], [1, "gender_mf"], [1, "date_became_customer"], [1, "date_last_hire"], [2, "booking_id"], [2, "customer_id"], [2, "booking_status_code"], [2, "returned_damaged_yn"], [2, "booking_start_date"], [2, "booking_end_date"], [2, "count_hired"], [2, "amount_payable"], [2, "amount_of_discount"], [2, "amount_outstanding"], [2, "amount_of_refund"], [3, "product_id"], [3, "product_type_code"], [3, "daily_hire_cost"], [3, "product_name"], [3, "product_description"], [4, "payment_id"], [4, "booking_id"], [4, "customer_id"], [4, "payment_type_code"], [4, "amount_paid_in_full_yn"], [4, "payment_date"], [4, "amount_due"], [4, "amount_paid"], [5, "booking_id"], [5, "product_id"], [5, "returned_yn"], [5, "returned_late_yn"], [5, "booked_count"], [5, "booked_amount"], [6, "product_id"], [6, "booking_id"], [6, "status_date"], [6, "available_yn"]], "column_types": ["text", "number", "time", "number", "number", "number", "text", "text", "text", "text", "time", "time", "number", "number", "text", "text", "time", "time", "text", "number", "number", "number", "number", "number", "text", "number", "text", "text", "number", "number", "number", "text", "text", "time", "number", "number", "number", "number", "text", "text", "number", "number", "number", "number", "time", "text"], "db_id": "products_for_hire", "foreign_keys": [[5, 1], [13, 4], [30, 4], [29, 12], [37, 23], [36, 12], [42, 23], [43, 12]], "primary_keys": [1, 4, 12, 23, 28, 36, 44], "table_names": ["discount coupons", "customers", "bookings", "products for hire", "payments", "products booked", "view product availability"], "table_names_original": ["discount_coupons", "customers", "bookings", "products_for_hire", "payments", "products_booked", "view_product_availability"]}, {"column_names": [[-1, "*"], [0, "people id"], [0, "age"], [0, "name"], [0, "nationality"], [0, "graduation college"], [1, "company id"], [1, "name"], [1, "headquarters"], [1, "industry"], [1, "sales in billion"], [1, "profits in billion"], [1, "assets in billion"], [1, "market value in billion"], [2, "company id"], [2, "people id"], [2, "year working"]], "column_names_original": [[-1, "*"], [0, "people_id"], [0, "age"], [0, "name"], [0, "nationality"], [0, "graduation_college"], [1, "company_id"], [1, "name"], [1, "headquarters"], [1, "industry"], [1, "sales_in_billion"], [1, "profits_in_billion"], [1, "assets_in_billion"], [1, "market_value_in_billion"], [2, "company_id"], [2, "people_id"], [2, "year_working"]], "column_types": ["text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number"], "db_id": "company_employee", "foreign_keys": [[15, 1], [14, 6]], "primary_keys": [1, 6, 14], "table_names": ["people", "company", "employment"], "table_names_original": ["people", "company", "employment"]}, {"column_names": [[-1, "*"], [0, "manufacturer id"], [0, "open year"], [0, "name"], [0, "num of factories"], [0, "num of shops"], [1, "furniture id"], [1, "name"], [1, "num of component"], [1, "market rate"], [2, "manufacturer id"], [2, "furniture id"], [2, "price in dollar"]], "column_names_original": [[-1, "*"], [0, "manufacturer_id"], [0, "open_year"], [0, "name"], [0, "num_of_factories"], [0, "num_of_shops"], [1, "furniture_id"], [1, "name"], [1, "num_of_component"], [1, "market_rate"], [2, "manufacturer_id"], [2, "furniture_id"], [2, "price_in_dollar"]], "column_types": ["text", "number", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number"], "db_id": "manufacturer", "foreign_keys": [[11, 6], [10, 1]], "primary_keys": [1, 6, 10], "table_names": ["manufacturer", "furniture", "furniture manufacte"], "table_names_original": ["manufacturer", "furniture", "furniture_manufacte"]}, {"column_names": [[-1, "*"], [0, "student id"], [0, "last name"], [0, "first name"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city code"], [1, "restaurant id"], [1, "restaurant name"], [1, "address"], [1, "rating"], [2, "restaurant id"], [2, "restaurant type id"], [3, "restaurant type id"], [3, "restaurant type name"], [3, "restaurant type description"], [4, "student id"], [4, "restaurant id"], [4, "time"], [4, "spent"]], "column_names_original": [[-1, "*"], [0, "stuid"], [0, "lname"], [0, "fname"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city_code"], [1, "resid"], [1, "resname"], [1, "address"], [1, "rating"], [2, "resid"], [2, "restypeid"], [3, "restypeid"], [3, "restypename"], [3, "restypedescription"], [4, "stuid"], [4, "resid"], [4, "time"], [4, "spent"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "text", "number", "number", "time", "number"], "db_id": "restaurant_1", "foreign_keys": [[14, 15], [13, 9], [19, 9], [18, 1]], "primary_keys": [1, 9, 15], "table_names": ["student", "restaurant", "type of restaurant", "restaurant type", "visits restaurant"], "table_names_original": ["student", "restaurant", "type_of_restaurant", "restaurant_type", "visits_restaurant"]}, {"column_names": [[-1, "*"], [0, "id"], [0, "campus"], [0, "location"], [0, "county"], [0, "year"], [1, "campus"], [1, "year"], [1, "campus fee"], [2, "year"], [2, "campus"], [2, "degrees"], [3, "campus"], [3, "discipline"], [3, "year"], [3, "undergraduate"], [3, "graduate"], [4, "campus"], [4, "year"], [4, "totalenrollment ay"], [4, "fte ay"], [5, "campus"], [5, "year"], [5, "faculty"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "campus"], [0, "location"], [0, "county"], [0, "year"], [1, "campus"], [1, "year"], [1, "campusfee"], [2, "year"], [2, "campus"], [2, "degrees"], [3, "campus"], [3, "discipline"], [3, "year"], [3, "undergraduate"], [3, "graduate"], [4, "campus"], [4, "year"], [4, "totalenrollment_ay"], [4, "fte_ay"], [5, "campus"], [5, "year"], [5, "faculty"]], "column_types": ["text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "db_id": "csu_1", "foreign_keys": [[6, 1], [10, 1], [12, 1], [17, 1], [21, 1]], "primary_keys": [1, 6, 9, 12, 17], "table_names": ["campuses", "csu fees", "degrees", "discipline enrollments", "enrollments", "faculty"], "table_names_original": ["campuses", "csu_fees", "degrees", "discipline_enrollments", "enrollments", "faculty"]}, {"column_names": [[-1, "*"], [0, "institution id"], [0, "name"], [0, "country"], [1, "author id"], [1, "last name"], [1, "first name"], [2, "paper id"], [2, "title"], [3, "author id"], [3, "institution id"], [3, "paper id"], [3, "author count"]], "column_names_original": [[-1, "*"], [0, "instid"], [0, "name"], [0, "country"], [1, "authid"], [1, "lname"], [1, "fname"], [2, "paperid"], [2, "title"], [3, "authid"], [3, "instid"], [3, "paperid"], [3, "authorder"]], "column_types": ["text", "number", "text", "text", "number", "text", "text", "number", "text", "number", "number", "number", "number"], "db_id": "icfp_1", "foreign_keys": [[11, 7], [10, 1], [9, 4]], "primary_keys": [1, 4, 7, 9], "table_names": ["institution", "authors", "papers", "authorship count"], "table_names_original": ["inst", "authors", "papers", "authorship"]}, {"column_names": [[-1, "*"], [0, "city name"], [0, "county"], [0, "region"], [1, "id"], [1, "name"], [1, "food type"], [1, "city name"], [1, "rating"], [2, "restaurant id"], [2, "house number"], [2, "street name"], [2, "city name"]], "column_names_original": [[-1, "*"], [0, "city_name"], [0, "county"], [0, "region"], [1, "id"], [1, "name"], [1, "food_type"], [1, "city_name"], [1, "rating"], [2, "restaurant_id"], [2, "house_number"], [2, "street_name"], [2, "city_name"]], "column_types": ["text", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "text"], "db_id": "restaurants", "foreign_keys": [[7, 1], [12, 1]], "primary_keys": [1, 4, 9], "table_names": ["geographic", "restaurant", "location"], "table_names_original": ["geographic", "restaurant", "location"]}, {"column_names": [[-1, "*"], [0, "student id"], [0, "last name"], [0, "first name"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city code"], [1, "club id"], [1, "club name"], [1, "club description"], [1, "club location"], [2, "student id"], [2, "club id"], [2, "position"]], "column_names_original": [[-1, "*"], [0, "stuid"], [0, "lname"], [0, "fname"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city_code"], [1, "clubid"], [1, "clubname"], [1, "clubdesc"], [1, "clublocation"], [2, "stuid"], [2, "clubid"], [2, "position"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "text", "text", "text", "number", "number", "text"], "db_id": "club_1", "foreign_keys": [[14, 9], [13, 1]], "primary_keys": [1, 9], "table_names": ["student", "club", "member of club"], "table_names_original": ["student", "club", "member_of_club"]}, {"column_names": [[-1, "*"], [0, "premise id"], [0, "premises type"], [0, "premise details"], [1, "product id"], [1, "product category"], [1, "product name"], [2, "customer id"], [2, "payment method"], [2, "customer name"], [2, "customer phone"], [2, "customer email"], [2, "customer address"], [2, "customer login"], [2, "customer password"], [3, "mailshot id"], [3, "product category"], [3, "mailshot name"], [3, "mailshot start date"], [3, "mailshot end date"], [4, "customer id"], [4, "premise id"], [4, "date address from"], [4, "address type code"], [4, "date address to"], [5, "order id"], [5, "customer id"], [5, "order status code"], [5, "shipping method code"], [5, "order placed datetime"], [5, "order delivered datetime"], [5, "order shipping charges"], [6, "mailshot id"], [6, "customer id"], [6, "outcome code"], [6, "mailshot customer date"], [7, "item id"], [7, "order item status code"], [7, "order id"], [7, "product id"], [7, "item status code"], [7, "item delivered datetime"], [7, "item order quantity"]], "column_names_original": [[-1, "*"], [0, "premise_id"], [0, "premises_type"], [0, "premise_details"], [1, "product_id"], [1, "product_category"], [1, "product_name"], [2, "customer_id"], [2, "payment_method"], [2, "customer_name"], [2, "customer_phone"], [2, "customer_email"], [2, "customer_address"], [2, "customer_login"], [2, "customer_password"], [3, "mailshot_id"], [3, "product_category"], [3, "mailshot_name"], [3, "mailshot_start_date"], [3, "mailshot_end_date"], [4, "customer_id"], [4, "premise_id"], [4, "date_address_from"], [4, "address_type_code"], [4, "date_address_to"], [5, "order_id"], [5, "customer_id"], [5, "order_status_code"], [5, "shipping_method_code"], [5, "order_placed_datetime"], [5, "order_delivered_datetime"], [5, "order_shipping_charges"], [6, "mailshot_id"], [6, "customer_id"], [6, "outcome_code"], [6, "mailshot_customer_date"], [7, "item_id"], [7, "order_item_status_code"], [7, "order_id"], [7, "product_id"], [7, "item_status_code"], [7, "item_delivered_datetime"], [7, "item_order_quantity"]], "column_types": ["text", "number", "text", "text", "number", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "time", "time", "number", "number", "time", "text", "time", "number", "number", "text", "text", "time", "time", "text", "number", "number", "text", "time", "number", "text", "number", "number", "text", "time", "text"], "db_id": "customers_campaigns_ecommerce", "foreign_keys": [[20, 7], [21, 1], [26, 7], [32, 15], [33, 7], [38, 25], [39, 4]], "primary_keys": [1, 4, 7, 15, 25], "table_names": ["premises", "products", "customers", "mailshot campaigns", "customer addresses", "customer orders", "mailshot customers", "order items"], "table_names_original": ["premises", "products", "customers", "mailshot_campaigns", "customer_addresses", "customer_orders", "mailshot_customers", "order_items"]}, {"column_names": [[-1, "*"], [0, "station id"], [0, "name"], [0, "annual entry exit"], [0, "annual interchanges"], [0, "total passengers"], [0, "location"], [0, "main services"], [0, "number of platforms"], [1, "train id"], [1, "name"], [1, "time"], [1, "service"], [2, "train id"], [2, "station id"]], "column_names_original": [[-1, "*"], [0, "station_id"], [0, "name"], [0, "annual_entry_exit"], [0, "annual_interchanges"], [0, "total_passengers"], [0, "location"], [0, "main_services"], [0, "number_of_platforms"], [1, "train_id"], [1, "name"], [1, "time"], [1, "service"], [2, "train_id"], [2, "station_id"]], "column_types": ["text", "number", "text", "number", "number", "number", "text", "text", "number", "number", "text", "text", "text", "number", "number"], "db_id": "train_station", "foreign_keys": [[14, 1], [13, 9]], "primary_keys": [1, 9, 13], "table_names": ["station", "train", "train station"], "table_names_original": ["station", "train", "train_station"]}, {"column_names": [[-1, "*"], [0, "employee ssn"], [0, "project number"], [0, "hours"], [1, "first name"], [1, "minit"], [1, "last name"], [1, "ssn"], [1, "birth date"], [1, "address"], [1, "sex"], [1, "salary"], [1, "super ssn"], [1, "department no"], [2, "department name"], [2, "department number"], [2, "manager ssn"], [2, "manager start date"], [3, "dependent name"], [3, "dependent number"], [3, "dependent location"], [3, "department number"], [4, "employee ssn"], [4, "dependent name"], [4, "sex"], [4, "birth date"], [4, "relationship"], [5, "department number"], [5, "department location"]], "column_names_original": [[-1, "*"], [0, "essn"], [0, "pno"], [0, "hours"], [1, "fname"], [1, "minit"], [1, "lname"], [1, "ssn"], [1, "bdate"], [1, "address"], [1, "sex"], [1, "salary"], [1, "super_ssn"], [1, "dno"], [2, "dname"], [2, "dnumber"], [2, "mgr_ssn"], [2, "mgr_start_date"], [3, "pname"], [3, "pnumber"], [3, "plocation"], [3, "dnum"], [4, "essn"], [4, "dependent_name"], [4, "sex"], [4, "bdate"], [4, "relationship"], [5, "dnumber"], [5, "dlocation"]], "column_types": ["text", "number", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "number", "number", "text", "text", "number", "text", "number", "number", "text", "text", "text", "text", "number", "text"], "db_id": "company_1", "foreign_keys": [], "primary_keys": [1, 7, 15, 19, 22, 27], "table_names": ["works on", "employee", "department", "project", "dependent", "department locations"], "table_names_original": ["works_on", "employee", "department", "project", "dependent", "dept_locations"]}, {"column_names": [[-1, "*"], [0, "name"], [0, "phone id"], [0, "memory in g"], [0, "carrier"], [0, "price"], [1, "market id"], [1, "district"], [1, "num of employees"], [1, "num of shops"], [1, "ranking"], [2, "market id"], [2, "phone id"], [2, "num of stock"]], "column_names_original": [[-1, "*"], [0, "name"], [0, "phone_id"], [0, "memory_in_g"], [0, "carrier"], [0, "price"], [1, "market_id"], [1, "district"], [1, "num_of_employees"], [1, "num_of_shops"], [1, "ranking"], [2, "market_id"], [2, "phone_id"], [2, "num_of_stock"]], "column_types": ["text", "text", "number", "number", "text", "number", "number", "text", "number", "number", "number", "number", "text", "number"], "db_id": "phone_market", "foreign_keys": [[12, 2], [11, 6]], "primary_keys": [2, 6, 11], "table_names": ["phone", "market", "phone market"], "table_names_original": ["phone", "market", "phone_market"]}, {"column_names": [[-1, "*"], [0, "feature type code"], [0, "feature type name"], [1, "property type code"], [1, "property type description"], [2, "feature id"], [2, "feature type code"], [2, "feature name"], [2, "feature description"], [3, "property id"], [3, "property type code"], [3, "date on market"], [3, "date sold"], [3, "property name"], [3, "property address"], [3, "room count"], [3, "vendor requested price"], [3, "buyer offered price"], [3, "agreed selling price"], [3, "apt feature 1"], [3, "apt feature 2"], [3, "apt feature 3"], [3, "fld feature 1"], [3, "fld feature 2"], [3, "fld feature 3"], [3, "hse feature 1"], [3, "hse feature 2"], [3, "hse feature 3"], [3, "oth feature 1"], [3, "oth feature 2"], [3, "oth feature 3"], [3, "shp feature 1"], [3, "shp feature 2"], [3, "shp feature 3"], [3, "other property details"], [4, "property id"], [4, "feature id"], [4, "property feature description"]], "column_names_original": [[-1, "*"], [0, "feature_type_code"], [0, "feature_type_name"], [1, "property_type_code"], [1, "property_type_description"], [2, "feature_id"], [2, "feature_type_code"], [2, "feature_name"], [2, "feature_description"], [3, "property_id"], [3, "property_type_code"], [3, "date_on_market"], [3, "date_sold"], [3, "property_name"], [3, "property_address"], [3, "room_count"], [3, "vendor_requested_price"], [3, "buyer_offered_price"], [3, "agreed_selling_price"], [3, "apt_feature_1"], [3, "apt_feature_2"], [3, "apt_feature_3"], [3, "fld_feature_1"], [3, "fld_feature_2"], [3, "fld_feature_3"], [3, "hse_feature_1"], [3, "hse_feature_2"], [3, "hse_feature_3"], [3, "oth_feature_1"], [3, "oth_feature_2"], [3, "oth_feature_3"], [3, "shp_feature_1"], [3, "shp_feature_2"], [3, "shp_feature_3"], [3, "other_property_details"], [4, "property_id"], [4, "feature_id"], [4, "property_feature_description"]], "column_types": ["text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "time", "time", "text", "text", "number", "number", "number", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text"], "db_id": "real_estate_properties", "foreign_keys": [[6, 1], [10, 3], [35, 9], [36, 5]], "primary_keys": [1, 3, 5, 9], "table_names": ["reference feature types", "reference property types", "other available features", "properties", "other property features"], "table_names_original": ["ref_feature_types", "ref_property_types", "other_available_features", "properties", "other_property_features"]}, {"column_names": [[-1, "*"], [0, "party id"], [0, "party theme"], [0, "location"], [0, "first year"], [0, "last year"], [0, "number of hosts"], [1, "host id"], [1, "name"], [1, "nationality"], [1, "age"], [2, "party id"], [2, "host id"], [2, "is main in charge"]], "column_names_original": [[-1, "*"], [0, "party_id"], [0, "party_theme"], [0, "location"], [0, "first_year"], [0, "last_year"], [0, "number_of_hosts"], [1, "host_id"], [1, "name"], [1, "nationality"], [1, "age"], [2, "party_id"], [2, "host_id"], [2, "is_main_in_charge"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "others"], "db_id": "party_host", "foreign_keys": [[11, 1], [12, 7]], "primary_keys": [1, 7, 11], "table_names": ["party", "host", "party host"], "table_names_original": ["party", "host", "party_host"]}, {"column_names": [[-1, "*"], [0, "member id"], [0, "name"], [0, "nationality"], [0, "role"], [1, "performance id"], [1, "date"], [1, "host"], [1, "location"], [1, "attendance"], [2, "member id"], [2, "performance id"], [2, "num of pieces"]], "column_names_original": [[-1, "*"], [0, "member_id"], [0, "name"], [0, "nationality"], [0, "role"], [1, "performance_id"], [1, "date"], [1, "host"], [1, "location"], [1, "attendance"], [2, "member_id"], [2, "performance_id"], [2, "num_of_pieces"]], "column_types": ["text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "number"], "db_id": "performance_attendance", "foreign_keys": [[11, 5], [10, 1]], "primary_keys": [1, 5, 10], "table_names": ["member", "performance", "member attendance"], "table_names_original": ["member", "performance", "member_attendance"]}, {"column_names": [[-1, "*"], [0, "document type code"], [0, "document type name"], [0, "document type description"], [1, "calendar date"], [1, "day number"], [2, "location code"], [2, "location name"], [2, "location description"], [3, "role code"], [3, "role name"], [3, "role description"], [4, "document id"], [4, "date stored"], [4, "document type code"], [4, "document name"], [4, "document description"], [4, "other details"], [5, "employee id"], [5, "role code"], [5, "employee name"], [5, "gender mfu"], [5, "date of birth"], [5, "other details"], [6, "document id"], [6, "location code"], [6, "date in location from"], [6, "date in locaton to"], [7, "document id"], [7, "destruction authorised by employee id"], [7, "destroyed by employee id"], [7, "planned destruction date"], [7, "actual destruction date"], [7, "other details"]], "column_names_original": [[-1, "*"], [0, "document_type_code"], [0, "document_type_name"], [0, "document_type_description"], [1, "calendar_date"], [1, "day_number"], [2, "location_code"], [2, "location_name"], [2, "location_description"], [3, "role_code"], [3, "role_name"], [3, "role_description"], [4, "document_id"], [4, "date_stored"], [4, "document_type_code"], [4, "document_name"], [4, "document_description"], [4, "other_details"], [5, "employee_id"], [5, "role_code"], [5, "employee_name"], [5, "gender_mfu"], [5, "date_of_birth"], [5, "other_details"], [6, "document_id"], [6, "location_code"], [6, "date_in_location_from"], [6, "date_in_locaton_to"], [7, "document_id"], [7, "destruction_authorised_by_employee_id"], [7, "destroyed_by_employee_id"], [7, "planned_destruction_date"], [7, "actual_destruction_date"], [7, "other_details"]], "column_types": ["text", "text", "text", "text", "time", "number", "text", "text", "text", "text", "text", "text", "number", "time", "text", "text", "text", "text", "number", "text", "text", "text", "time", "text", "number", "text", "time", "time", "number", "number", "number", "time", "time", "text"], "db_id": "cre_Doc_Tracking_DB", "foreign_keys": [[13, 4], [14, 1], [19, 9], [24, 12], [27, 4], [26, 4], [25, 6], [28, 12], [32, 4], [31, 4], [29, 18], [30, 18]], "primary_keys": [1, 4, 6, 9, 12, 18, 24, 28], "table_names": ["reference document types", "reference calendar", "reference locations", "roles", "all documents", "employees", "document locations", "documents to be destroyed"], "table_names_original": ["ref_document_types", "ref_calendar", "ref_locations", "roles", "all_documents", "employees", "document_locations", "documents_to_be_destroyed"]}, {"column_names": [[-1, "*"], [0, "master customer id"], [0, "cmi details"], [1, "cmi cross reference id"], [1, "master customer id"], [1, "source system code"], [2, "council tax id"], [2, "cmi cross reference id"], [3, "business rates id"], [3, "cmi cross reference id"], [4, "council tax id"], [4, "cmi cross ref id"], [5, "council tax id"], [5, "cmi cross reference id"], [6, "council tax id"], [6, "cmi cross reference id"], [7, "electoral register id"], [7, "cmi cross reference id"]], "column_names_original": [[-1, "*"], [0, "master_customer_id"], [0, "cmi_details"], [1, "cmi_cross_ref_id"], [1, "master_customer_id"], [1, "source_system_code"], [2, "council_tax_id"], [2, "cmi_cross_ref_id"], [3, "business_rates_id"], [3, "cmi_cross_ref_id"], [4, "council_tax_id"], [4, "cmi_cross_ref_id"], [5, "council_tax_id"], [5, "cmi_cross_ref_id"], [6, "council_tax_id"], [6, "cmi_cross_ref_id"], [7, "electoral_register_id"], [7, "cmi_cross_ref_id"]], "column_types": ["text", "number", "text", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "db_id": "local_govt_mdm", "foreign_keys": [[4, 1], [7, 3], [9, 3], [11, 3], [13, 3], [15, 3], [17, 3]], "primary_keys": [1, 3, 6, 8, 10, 12, 14, 16], "table_names": ["customer master index", "cmi cross references", "council tax", "business rates", "benefits overpayments", "parking fines", "rent arrears", "electoral register"], "table_names_original": ["customer_master_index", "cmi_cross_references", "council_tax", "business_rates", "benefits_overpayments", "parking_fines", "rent_arrears", "electoral_register"]}, {"column_names": [[-1, "*"], [0, "aircraft id"], [0, "order year"], [0, "manufacturer"], [0, "model"], [0, "fleet series"], [0, "powertrain"], [0, "fuel propulsion"], [1, "pilot id"], [1, "pilot name"], [1, "rank"], [1, "age"], [1, "nationality"], [1, "position"], [1, "join year"], [1, "team"], [2, "record id"], [2, "pilot id"], [2, "aircraft id"], [2, "date"]], "column_names_original": [[-1, "*"], [0, "aircraft_id"], [0, "order_year"], [0, "manufacturer"], [0, "model"], [0, "fleet_series"], [0, "powertrain"], [0, "fuel_propulsion"], [1, "pilot_id"], [1, "pilot_name"], [1, "rank"], [1, "age"], [1, "nationality"], [1, "position"], [1, "join_year"], [1, "team"], [2, "record_id"], [2, "pilot_id"], [2, "aircraft_id"], [2, "date"]], "column_types": ["text", "number", "number", "text", "text", "text", "text", "text", "number", "text", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text"], "db_id": "pilot_record", "foreign_keys": [[18, 1], [17, 8]], "primary_keys": [1, 8, 17], "table_names": ["aircraft", "pilot", "pilot record"], "table_names_original": ["aircraft", "pilot", "pilot_record"]}, {"column_names": [[-1, "*"], [0, "investor id"], [0, "investor details"], [1, "lot id"], [1, "investor id"], [1, "lot details"], [2, "transaction type code"], [2, "transaction type description"], [3, "transaction id"], [3, "investor id"], [3, "transaction type code"], [3, "date of transaction"], [3, "amount of transaction"], [3, "share count"], [3, "other details"], [4, "sales transaction id"], [4, "sales details"], [5, "purchase transaction id"], [5, "purchase details"], [6, "transaction id"], [6, "lot id"]], "column_names_original": [[-1, "*"], [0, "investor_id"], [0, "investor_details"], [1, "lot_id"], [1, "investor_id"], [1, "lot_details"], [2, "transaction_type_code"], [2, "transaction_type_description"], [3, "transaction_id"], [3, "investor_id"], [3, "transaction_type_code"], [3, "date_of_transaction"], [3, "amount_of_transaction"], [3, "share_count"], [3, "other_details"], [4, "sales_transaction_id"], [4, "sales_details"], [5, "purchase_transaction_id"], [5, "purchase_details"], [6, "transaction_id"], [6, "lot_id"]], "column_types": ["text", "number", "text", "number", "number", "text", "text", "text", "number", "number", "text", "time", "number", "text", "text", "number", "text", "number", "text", "number", "number"], "db_id": "tracking_share_transactions", "foreign_keys": [[4, 1], [10, 6], [9, 1], [15, 8], [17, 8], [19, 8], [20, 3]], "primary_keys": [1, 3, 6, 8, 15], "table_names": ["investors", "lots", "reference transaction types", "transactions", "sales", "purchases", "transactions lots"], "table_names_original": ["investors", "lots", "ref_transaction_types", "transactions", "sales", "purchases", "transactions_lots"]}, {"column_names": [[-1, "*"], [0, "college id"], [0, "name"], [0, "leader name"], [0, "college location"], [1, "member id"], [1, "name"], [1, "country"], [1, "college id"], [2, "round id"], [2, "member id"], [2, "decoration theme"], [2, "rank in round"]], "column_names_original": [[-1, "*"], [0, "college_id"], [0, "name"], [0, "leader_name"], [0, "college_location"], [1, "member_id"], [1, "name"], [1, "country"], [1, "college_id"], [2, "round_id"], [2, "member_id"], [2, "decoration_theme"], [2, "rank_in_round"]], "column_types": ["text", "number", "text", "text", "text", "number", "text", "text", "number", "number", "number", "text", "number"], "db_id": "decoration_competition", "foreign_keys": [[8, 1], [10, 5]], "primary_keys": [1, 5, 10], "table_names": ["college", "member", "round"], "table_names_original": ["college", "member", "round"]}, {"column_names": [[-1, "*"], [0, "address id"], [0, "address details"], [1, "location id"], [1, "other details"], [2, "product id"], [2, "product type code"], [2, "product name"], [2, "product price"], [3, "party id"], [3, "party details"], [4, "asset id"], [4, "other details"], [5, "channel id"], [5, "other details"], [6, "finance id"], [6, "other details"], [7, "event id"], [7, "address id"], [7, "channel id"], [7, "event type code"], [7, "finance id"], [7, "location id"], [8, "product in event id"], [8, "event id"], [8, "product id"], [9, "party id"], [9, "event id"], [9, "role code"], [10, "document id"], [10, "event id"], [11, "asset id"], [11, "event id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "address_details"], [1, "location_id"], [1, "other_details"], [2, "product_id"], [2, "product_type_code"], [2, "product_name"], [2, "product_price"], [3, "party_id"], [3, "party_details"], [4, "asset_id"], [4, "other_details"], [5, "channel_id"], [5, "other_details"], [6, "finance_id"], [6, "other_details"], [7, "event_id"], [7, "address_id"], [7, "channel_id"], [7, "event_type_code"], [7, "finance_id"], [7, "location_id"], [8, "product_in_event_id"], [8, "event_id"], [8, "product_id"], [9, "party_id"], [9, "event_id"], [9, "role_code"], [10, "document_id"], [10, "event_id"], [11, "asset_id"], [11, "event_id"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "text", "number", "number", "text", "number", "text", "number", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number"], "db_id": "solvency_ii", "foreign_keys": [[21, 15], [18, 1], [22, 3], [25, 5], [24, 17], [27, 17], [26, 9], [30, 17], [32, 17], [32, 17]], "primary_keys": [1, 3, 5, 9, 11, 13, 15, 17, 23, 26, 29, 31], "table_names": ["addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products in events", "parties in events", "agreements", "assets in events"], "table_names_original": ["addresses", "locations", "products", "parties", "assets", "channels", "finances", "events", "products_in_events", "parties_in_events", "agreements", "assets_in_events"]}, {"db_id": "scholar_total_3", "table_names": ["venue", "dataset", "journal", "cite", "paper dataset", "paperkeyphrase_keyphrase_paper_writes_author"], "table_names_original": ["venue", "dataset", "journal", "cite", "paperdataset", "paperkeyphrase_keyphrase_paper_writes_author"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [5, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "venueid"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "keyphraseid"], [5, "paperid"], [5, "authorid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [5, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "venueid"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "keyphraseid"], [5, "paperid"], [5, "authorid"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 4, 6, 15, 18, 20, 20, 20, 21], "foreign_keys": [[10, 1], [14, 6], [15, 20], [16, 20], [20, 21], [20, 20]]}, {"db_id": "scholar_total_7", "table_names": ["venue", "author", "journal", "cite", "writes", "paperdataset_dataset_paperkeyphrase_paper_keyphrase"], "table_names_original": ["venue", "author", "journal", "cite", "writes", "paperdataset_dataset_paperkeyphrase_paper_keyphrase"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [5, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "venueid"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "authorid"], [5, "datasetid"], [5, "paperid"], [5, "keyphraseid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [5, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "venueid"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "authorid"], [5, "datasetid"], [5, "paperid"], [5, "keyphraseid"]], "column_types": ["text", "number", "text", "number", "text", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 3, 6, 15, 20, 20, 20, 21], "foreign_keys": [[10, 1], [14, 6], [15, 20], [16, 20], [20, 3], [20, 20]]}, {"db_id": "scholar_total_6", "table_names": ["venue", "dataset", "journal", "paper", "paper dataset", "paperkeyphrase_keyphrase_writes_cite_author"], "table_names_original": ["venue", "dataset", "journal", "paper", "paperdataset", "paperkeyphrase_keyphrase_writes_cite_author"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [5, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [3, "paperid"], [3, "title"], [3, "venueid"], [3, "year"], [3, "numciting"], [3, "numcitedby"], [3, "journalid"], [5, "citingpaperid"], [4, "paperid"], [4, "datasetid"], [5, "keyphraseid"], [5, "paperid"], [5, "authorid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [5, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [3, "paperid"], [3, "title"], [3, "venueid"], [3, "year"], [3, "numciting"], [3, "numcitedby"], [3, "journalid"], [5, "citingpaperid"], [4, "paperid"], [4, "datasetid"], [5, "keyphraseid"], [5, "paperid"], [5, "authorid"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "text", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 4, 6, 9, 16, 18, 20, 20, 21], "foreign_keys": [[11, 1], [15, 6], [16, 9], [20, 9], [20, 9], [20, 21], [20, 9]]}, {"db_id": "scholar_total_13", "table_names": ["venue", "author", "journal", "cite", "writes", "paperdataset_dataset_paper_paperkeyphrase_keyphrase"], "table_names_original": ["venue", "author", "journal", "cite", "writes", "paperdataset_dataset_paper_paperkeyphrase_keyphrase"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [5, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "venueid"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "authorid"], [5, "datasetid"], [5, "paperid"], [5, "keyphraseid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [5, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "venueid"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "authorid"], [5, "datasetid"], [5, "paperid"], [5, "keyphraseid"]], "column_types": ["text", "number", "text", "number", "text", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 3, 6, 15, 20, 20, 20, 21], "foreign_keys": [[10, 1], [14, 6], [15, 20], [16, 20], [20, 3], [20, 20]]}, {"db_id": "scholar_total_11", "table_names": ["dataset", "journal", "key phrase", "cite", "paper dataset", "paper_paperkeyphrase_venue_writes_author"], "table_names_original": ["dataset", "journal", "keyphrase", "cite", "paperdataset", "paper_paperkeyphrase_venue_writes_author"], "column_names": [[-1, "*"], [5, "venuename"], [5, "authorname"], [0, "datasetid"], [0, "datasetname"], [1, "journalid"], [1, "journalname"], [2, "keyphraseid"], [2, "keyphrasename"], [5, "title"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "keyphraseid"], [5, "venueid"], [5, "paperid"], [5, "authorid"]], "column_names_original": [[-1, "*"], [5, "venuename"], [5, "authorname"], [0, "datasetid"], [0, "datasetname"], [1, "journalid"], [1, "journalname"], [2, "keyphraseid"], [2, "keyphrasename"], [5, "title"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "keyphraseid"], [5, "venueid"], [5, "paperid"], [5, "authorid"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [3, 5, 7, 14, 17, 18, 20, 21, 21], "foreign_keys": [[13, 5], [14, 20], [15, 20], [18, 7], [21, 21]]}, {"db_id": "scholar_total_8", "table_names": ["author", "dataset", "journal", "paper dataset", "writes", "paperkeyphrase_keyphrase_cite_paper_venue"], "table_names_original": ["author", "dataset", "journal", "paperdataset", "writes", "paperkeyphrase_keyphrase_cite_paper_venue"], "column_names": [[-1, "*"], [5, "venuename"], [0, "authorid"], [0, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "paperid"], [3, "datasetid"], [4, "paperid"], [4, "authorid"], [5, "keyphraseid"], [5, "paperid paperkeyphrase keyphrase cite"], [5, "citedpaperid"], [5, "venueid"]], "column_names_original": [[-1, "*"], [5, "venuename"], [0, "authorid"], [0, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "paperid"], [3, "datasetid"], [4, "paperid"], [4, "authorid"], [5, "keyphraseid"], [5, "paperid_paperkeyphrase_keyphrase_cite"], [5, "citedpaperid"], [5, "venueid"]], "column_types": ["text", "text", "number", "text", "number", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [2, 4, 6, 15, 20, 20, 20, 21, 21], "foreign_keys": [[13, 6], [21, 20], [21, 20], [21, 2], [20, 20]]}, {"db_id": "scholar_total_9", "table_names": ["venue", "dataset", "journal", "cite", "paper dataset", "paperkeyphrase_keyphrase_writes_paper_author"], "table_names_original": ["venue", "dataset", "journal", "cite", "paperdataset", "paperkeyphrase_keyphrase_writes_paper_author"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [5, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "venueid"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "keyphraseid"], [5, "paperid"], [5, "authorid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [5, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [5, "keyphrasename"], [5, "title"], [5, "venueid"], [5, "year"], [5, "numciting"], [5, "numcitedby"], [5, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "keyphraseid"], [5, "paperid"], [5, "authorid"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 4, 6, 15, 18, 20, 20, 20, 21], "foreign_keys": [[10, 1], [14, 6], [15, 20], [16, 20], [20, 21], [20, 20]]}, {"db_id": "academic_total_0", "table_names": ["conference", "domain", "domain author", "domain conference", "journal", "domain journal", "domain keyword", "domain publication", "organization", "cite", "publication_keyword_keyword_publication_writes_author"], "table_names_original": ["conference", "domain", "domain_author", "domain_conference", "journal", "domain_journal", "domain_keyword", "domain_publication", "organization", "cite", "publication_keyword_keyword_publication_writes_author"], "column_names": [[-1, "*"], [10, "homepage"], [10, "name"], [10, "oid"], [0, "cid"], [0, "homepage"], [0, "name"], [1, "did"], [1, "name"], [2, "aid"], [2, "did"], [3, "cid"], [3, "did"], [4, "homepage"], [4, "jid"], [4, "name"], [5, "did"], [5, "jid"], [10, "keyword"], [6, "did"], [6, "kid"], [10, "abstract"], [10, "cid"], [10, "citation num"], [10, "jid"], [10, "reference num"], [10, "title"], [10, "year"], [7, "did"], [7, "pid"], [8, "continent"], [8, "homepage"], [8, "name"], [8, "oid"], [9, "cited"], [9, "citing"], [10, "kid"], [10, "pid"], [10, "aid"]], "column_names_original": [[-1, "*"], [10, "homepage"], [10, "name"], [10, "oid"], [0, "cid"], [0, "homepage"], [0, "name"], [1, "did"], [1, "name"], [2, "aid"], [2, "did"], [3, "cid"], [3, "did"], [4, "homepage"], [4, "jid"], [4, "name"], [5, "did"], [5, "jid"], [10, "keyword"], [6, "did"], [6, "kid"], [10, "abstract"], [10, "cid"], [10, "citation_num"], [10, "jid"], [10, "reference_num"], [10, "title"], [10, "year"], [7, "did"], [7, "pid"], [8, "continent"], [8, "homepage"], [8, "name"], [8, "oid"], [9, "cited"], [9, "citing"], [10, "kid"], [10, "pid"], [10, "aid"]], "column_types": ["text", "text", "text", "number", "number", "text", "text", "number", "text", "number", "number", "number", "number", "text", "number", "text", "number", "number", "text", "number", "number", "text", "text", "number", "number", "number", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number"], "primary_keys": [4, 7, 10, 12, 14, 16, 19, 28, 33, 37, 37, 38], "foreign_keys": [[10, 7], [9, 38], [12, 7], [11, 4], [16, 7], [17, 14], [19, 7], [20, 37], [22, 4], [24, 14], [28, 7], [29, 37], [37, 37]]}, {"db_id": "academic_total_2", "table_names": ["domain", "domain author", "domain conference", "journal", "domain journal", "keyword", "domain keyword", "domain publication", "publication keyword", "cite", "organization_author_writes_publication_conference"], "table_names_original": ["domain", "domain_author", "domain_conference", "journal", "domain_journal", "keyword", "domain_keyword", "domain_publication", "publication_keyword", "cite", "organization_author_writes_publication_conference"], "column_names": [[-1, "*"], [10, "homepage author"], [10, "name author"], [10, "homepage"], [10, "name"], [0, "did"], [0, "name"], [1, "aid"], [1, "did"], [2, "cid"], [2, "did"], [3, "homepage"], [3, "jid"], [3, "name"], [4, "did"], [4, "jid"], [5, "keyword"], [5, "kid"], [6, "did"], [6, "kid"], [10, "abstract"], [10, "citation num"], [10, "jid"], [10, "reference num"], [10, "title"], [10, "year"], [7, "did"], [7, "pid"], [10, "continent"], [10, "homepage organization"], [10, "name organization"], [8, "pid"], [8, "kid"], [9, "cited"], [9, "citing"], [10, "oid"], [10, "aid"], [10, "pid"], [10, "cid"]], "column_names_original": [[-1, "*"], [10, "homepage_author"], [10, "name_author"], [10, "homepage"], [10, "name"], [0, "did"], [0, "name"], [1, "aid"], [1, "did"], [2, "cid"], [2, "did"], [3, "homepage"], [3, "jid"], [3, "name"], [4, "did"], [4, "jid"], [5, "keyword"], [5, "kid"], [6, "did"], [6, "kid"], [10, "abstract"], [10, "citation_num"], [10, "jid"], [10, "reference_num"], [10, "title"], [10, "year"], [7, "did"], [7, "pid"], [10, "continent"], [10, "homepage_organization"], [10, "name_organization"], [8, "pid"], [8, "kid"], [9, "cited"], [9, "citing"], [10, "oid"], [10, "aid"], [10, "pid"], [10, "cid"]], "column_types": ["text", "text", "text", "text", "text", "number", "text", "number", "number", "number", "number", "text", "number", "text", "number", "number", "text", "number", "number", "number", "text", "number", "number", "number", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "text"], "primary_keys": [5, 8, 10, 12, 14, 17, 18, 26, 32, 37, 37, 38, 38], "foreign_keys": [[8, 5], [7, 38], [10, 5], [9, 38], [14, 5], [15, 12], [18, 5], [19, 17], [22, 12], [26, 5], [27, 37], [32, 17], [31, 37], [38, 37], [37, 37]]}, {"db_id": "academic_total_1", "table_names": ["conference", "domain", "domain author", "domain conference", "domain journal", "keyword", "domain keyword", "domain publication", "publication keyword", "cite", "organization_author_writes_publication_journal"], "table_names_original": ["conference", "domain", "domain_author", "domain_conference", "domain_journal", "keyword", "domain_keyword", "domain_publication", "publication_keyword", "cite", "organization_author_writes_publication_journal"], "column_names": [[-1, "*"], [10, "homepage author"], [10, "name author"], [0, "cid"], [0, "homepage"], [0, "name"], [1, "did"], [1, "name"], [2, "aid"], [2, "did"], [3, "cid"], [3, "did"], [10, "homepage"], [10, "name"], [4, "did"], [4, "jid"], [5, "keyword"], [5, "kid"], [6, "did"], [6, "kid"], [10, "abstract"], [10, "cid"], [10, "citation num"], [10, "reference num"], [10, "title"], [10, "year"], [7, "did"], [7, "pid"], [10, "continent"], [10, "homepage organization"], [10, "name organization"], [8, "pid"], [8, "kid"], [9, "cited"], [9, "citing"], [10, "oid"], [10, "aid"], [10, "pid"], [10, "jid"]], "column_names_original": [[-1, "*"], [10, "homepage_author"], [10, "name_author"], [0, "cid"], [0, "homepage"], [0, "name"], [1, "did"], [1, "name"], [2, "aid"], [2, "did"], [3, "cid"], [3, "did"], [10, "homepage"], [10, "name"], [4, "did"], [4, "jid"], [5, "keyword"], [5, "kid"], [6, "did"], [6, "kid"], [10, "abstract"], [10, "cid"], [10, "citation_num"], [10, "reference_num"], [10, "title"], [10, "year"], [7, "did"], [7, "pid"], [10, "continent"], [10, "homepage_organization"], [10, "name_organization"], [8, "pid"], [8, "kid"], [9, "cited"], [9, "citing"], [10, "oid"], [10, "aid"], [10, "pid"], [10, "jid"]], "column_types": ["text", "text", "text", "number", "text", "text", "number", "text", "number", "number", "number", "number", "text", "text", "number", "number", "text", "number", "number", "number", "text", "text", "number", "number", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [3, 6, 9, 11, 14, 17, 18, 26, 32, 37, 37, 38, 38], "foreign_keys": [[9, 6], [8, 38], [11, 6], [10, 3], [14, 6], [15, 38], [18, 6], [19, 17], [21, 3], [26, 6], [27, 37], [32, 17], [31, 37], [38, 37], [37, 37]]}, {"db_id": "imdb_total_1", "table_names": ["actor", "copyright", "cast", "genre", "classification", "company", "director", "directed by", "keyword", "tags", "tv series", "movie_made_by_producer_written_by_writer"], "table_names_original": ["actor", "copyright", "cast", "genre", "classification", "company", "director", "directed_by", "keyword", "tags", "tv_series", "movie_made_by_producer_written_by_writer"], "column_names": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth city"], [0, "birth year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country code"], [6, "did"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth city"], [6, "birth year"], [11, "gender movie made by producer written by"], [11, "name movie made by producer written by"], [11, "nationality movie made by producer written by"], [11, "birth city movie made by producer written by"], [11, "birth year movie made by producer written by"], [7, "id"], [7, "msid"], [7, "did"], [8, "id"], [8, "keyword"], [11, "id movie made by producer"], [11, "title"], [11, "release year"], [11, "title aka"], [11, "budget"], [9, "id"], [9, "msid"], [9, "kid"], [10, "sid"], [10, "title"], [10, "release year"], [10, "num of seasons"], [10, "num of episodes"], [10, "title aka"], [10, "budget"], [11, "gender writer"], [11, "name writer"], [11, "nationality writer"], [11, "num of episodes"], [11, "birth city writer"], [11, "birth year writer"], [11, "id written by"], [11, "pid"], [11, "mid"], [11, "wid"]], "column_names_original": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth_city"], [0, "birth_year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country_code"], [6, "did"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth_city"], [6, "birth_year"], [11, "gender_movie_made_by_producer_written_by"], [11, "name_movie_made_by_producer_written_by"], [11, "nationality_movie_made_by_producer_written_by"], [11, "birth_city_movie_made_by_producer_written_by"], [11, "birth_year_movie_made_by_producer_written_by"], [7, "id"], [7, "msid"], [7, "did"], [8, "id"], [8, "keyword"], [11, "id_movie_made_by_producer"], [11, "title"], [11, "release_year"], [11, "title_aka"], [11, "budget"], [9, "id"], [9, "msid"], [9, "kid"], [10, "sid"], [10, "title"], [10, "release_year"], [10, "num_of_seasons"], [10, "num_of_episodes"], [10, "title_aka"], [10, "budget"], [11, "gender_writer"], [11, "name_writer"], [11, "nationality_writer"], [11, "num_of_episodes"], [11, "birth_city_writer"], [11, "birth_year_writer"], [11, "id_written_by"], [11, "pid"], [11, "mid"], [11, "wid"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number"], "primary_keys": [1, 7, 10, 14, 16, 19, 22, 33, 36, 38, 43, 46, 61, 62, 62], "foreign_keys": [[11, 8], [12, 1], [17, 8], [18, 14], [35, 22], [34, 8], [61, 8], [44, 8], [62, 62], [61, 8]]}, {"db_id": "imdb_total_0", "table_names": ["copyright", "genre", "classification", "company", "producer", "keyword", "made by", "tags", "tv series", "writer", "written by", "cast_actor_movie_directed_by_director"], "table_names_original": ["copyright", "genre", "classification", "company", "producer", "keyword", "made_by", "tags", "tv_series", "writer", "written_by", "cast_actor_movie_directed_by_director"], "column_names": [[-1, "*"], [11, "gender cast actor movie directed by"], [11, "name cast actor movie directed by"], [11, "nationality cast actor movie directed by"], [11, "birth city cast actor movie directed by"], [11, "birth year cast actor movie directed by"], [0, "id"], [0, "msid"], [0, "cid"], [11, "id cast actor movie"], [11, "role"], [1, "gid"], [1, "genre"], [2, "id"], [2, "msid"], [2, "gid"], [3, "id"], [3, "name"], [3, "country code"], [11, "gender director"], [11, "name director"], [11, "nationality director"], [11, "birth city director"], [11, "birth year director"], [4, "pid"], [4, "gender"], [4, "name"], [4, "nationality"], [4, "birth city"], [4, "birth year"], [11, "id directed by"], [5, "id"], [5, "keyword"], [6, "id"], [6, "msid"], [6, "pid"], [11, "title"], [11, "release year"], [11, "title aka"], [11, "budget"], [7, "id"], [7, "msid"], [7, "kid"], [8, "sid"], [8, "title"], [8, "release year"], [8, "num of seasons"], [8, "num of episodes"], [8, "title aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num of episodes"], [9, "birth city"], [9, "birth year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "aid"], [11, "msid"], [11, "did"]], "column_names_original": [[-1, "*"], [11, "gender_cast_actor_movie_directed_by"], [11, "name_cast_actor_movie_directed_by"], [11, "nationality_cast_actor_movie_directed_by"], [11, "birth_city_cast_actor_movie_directed_by"], [11, "birth_year_cast_actor_movie_directed_by"], [0, "id"], [0, "msid"], [0, "cid"], [11, "id_cast_actor_movie"], [11, "role"], [1, "gid"], [1, "genre"], [2, "id"], [2, "msid"], [2, "gid"], [3, "id"], [3, "name"], [3, "country_code"], [11, "gender_director"], [11, "name_director"], [11, "nationality_director"], [11, "birth_city_director"], [11, "birth_year_director"], [4, "pid"], [4, "gender"], [4, "name"], [4, "nationality"], [4, "birth_city"], [4, "birth_year"], [11, "id_directed_by"], [5, "id"], [5, "keyword"], [6, "id"], [6, "msid"], [6, "pid"], [11, "title"], [11, "release_year"], [11, "title_aka"], [11, "budget"], [7, "id"], [7, "msid"], [7, "kid"], [8, "sid"], [8, "title"], [8, "release_year"], [8, "num_of_seasons"], [8, "num_of_episodes"], [8, "title_aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num_of_episodes"], [9, "birth_city"], [9, "birth_year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "aid"], [11, "msid"], [11, "did"]], "column_types": ["text", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "number", "text", "number", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [6, 9, 11, 13, 16, 24, 30, 31, 33, 40, 43, 50, 61, 61, 62], "foreign_keys": [[61, 7], [14, 7], [15, 11], [61, 7], [35, 24], [34, 7], [41, 7], [61, 50], [61, 7]]}, {"db_id": "imdb_total_4", "table_names": ["copyright", "genre", "classification", "company", "director", "directed by", "keyword", "tags", "tv series", "writer", "written by", "cast_actor_movie_made_by_producer"], "table_names_original": ["copyright", "genre", "classification", "company", "director", "directed_by", "keyword", "tags", "tv_series", "writer", "written_by", "cast_actor_movie_made_by_producer"], "column_names": [[-1, "*"], [11, "gender cast actor movie made by"], [11, "name cast actor movie made by"], [11, "nationality cast actor movie made by"], [11, "birth city cast actor movie made by"], [11, "birth year cast actor movie made by"], [0, "id"], [0, "msid"], [0, "cid"], [11, "id cast actor movie"], [11, "role"], [1, "gid"], [1, "genre"], [2, "id"], [2, "msid"], [2, "gid"], [3, "id"], [3, "name"], [3, "country code"], [4, "did"], [4, "gender"], [4, "name"], [4, "nationality"], [4, "birth city"], [4, "birth year"], [11, "gender producer"], [11, "name producer"], [11, "nationality producer"], [11, "birth city producer"], [11, "birth year producer"], [5, "id"], [5, "msid"], [5, "did"], [6, "id"], [6, "keyword"], [11, "id made by"], [11, "title"], [11, "release year"], [11, "title aka"], [11, "budget"], [7, "id"], [7, "msid"], [7, "kid"], [8, "sid"], [8, "title"], [8, "release year"], [8, "num of seasons"], [8, "num of episodes"], [8, "title aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num of episodes"], [9, "birth city"], [9, "birth year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "aid"], [11, "msid"], [11, "pid"]], "column_names_original": [[-1, "*"], [11, "gender_cast_actor_movie_made_by"], [11, "name_cast_actor_movie_made_by"], [11, "nationality_cast_actor_movie_made_by"], [11, "birth_city_cast_actor_movie_made_by"], [11, "birth_year_cast_actor_movie_made_by"], [0, "id"], [0, "msid"], [0, "cid"], [11, "id_cast_actor_movie"], [11, "role"], [1, "gid"], [1, "genre"], [2, "id"], [2, "msid"], [2, "gid"], [3, "id"], [3, "name"], [3, "country_code"], [4, "did"], [4, "gender"], [4, "name"], [4, "nationality"], [4, "birth_city"], [4, "birth_year"], [11, "gender_producer"], [11, "name_producer"], [11, "nationality_producer"], [11, "birth_city_producer"], [11, "birth_year_producer"], [5, "id"], [5, "msid"], [5, "did"], [6, "id"], [6, "keyword"], [11, "id_made_by"], [11, "title"], [11, "release_year"], [11, "title_aka"], [11, "budget"], [7, "id"], [7, "msid"], [7, "kid"], [8, "sid"], [8, "title"], [8, "release_year"], [8, "num_of_seasons"], [8, "num_of_episodes"], [8, "title_aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num_of_episodes"], [9, "birth_city"], [9, "birth_year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "aid"], [11, "msid"], [11, "pid"]], "column_types": ["text", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [6, 9, 11, 13, 16, 19, 30, 33, 35, 40, 43, 50, 61, 61, 62], "foreign_keys": [[61, 7], [14, 7], [15, 11], [32, 19], [31, 7], [61, 7], [41, 7], [61, 50], [61, 7]]}, {"db_id": "imdb_total_5", "table_names": ["actor", "copyright", "cast", "company", "producer", "keyword", "made by", "tags", "tv series", "writer", "written by", "director_directed_by_movie_classification_genre"], "table_names_original": ["actor", "copyright", "cast", "company", "producer", "keyword", "made_by", "tags", "tv_series", "writer", "written_by", "director_directed_by_movie_classification_genre"], "column_names": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth city"], [0, "birth year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [11, "genre"], [11, "id classification"], [3, "id"], [3, "name"], [3, "country code"], [11, "gender"], [11, "name"], [11, "nationality"], [11, "birth city"], [11, "birth year"], [4, "pid"], [4, "gender"], [4, "name"], [4, "nationality"], [4, "birth city"], [4, "birth year"], [11, "id director directed by movie"], [5, "id"], [5, "keyword"], [6, "id"], [6, "msid"], [6, "pid"], [11, "title"], [11, "release year"], [11, "title aka"], [11, "budget"], [7, "id"], [7, "msid"], [7, "kid"], [8, "sid"], [8, "title"], [8, "release year"], [8, "num of seasons"], [8, "num of episodes"], [8, "title aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num of episodes"], [9, "birth city"], [9, "birth year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "did"], [11, "msid"], [11, "gid"]], "column_names_original": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth_city"], [0, "birth_year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [11, "genre"], [11, "id_classification"], [3, "id"], [3, "name"], [3, "country_code"], [11, "gender"], [11, "name"], [11, "nationality"], [11, "birth_city"], [11, "birth_year"], [4, "pid"], [4, "gender"], [4, "name"], [4, "nationality"], [4, "birth_city"], [4, "birth_year"], [11, "id_director_directed_by_movie"], [5, "id"], [5, "keyword"], [6, "id"], [6, "msid"], [6, "pid"], [11, "title"], [11, "release_year"], [11, "title_aka"], [11, "budget"], [7, "id"], [7, "msid"], [7, "kid"], [8, "sid"], [8, "title"], [8, "release_year"], [8, "num_of_seasons"], [8, "num_of_episodes"], [8, "title_aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num_of_episodes"], [9, "birth_city"], [9, "birth_year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "did"], [11, "msid"], [11, "gid"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "number", "text", "number", "number", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 7, 10, 15, 16, 24, 30, 31, 33, 40, 43, 50, 61, 61, 62], "foreign_keys": [[11, 8], [12, 1], [61, 8], [61, 8], [35, 24], [34, 8], [41, 8], [61, 50], [61, 8]]}, {"db_id": "imdb_total_2", "table_names": ["actor", "copyright", "cast", "genre", "classification", "company", "producer", "made by", "tv series", "writer", "written by", "director_directed_by_movie_tags_keyword"], "table_names_original": ["actor", "copyright", "cast", "genre", "classification", "company", "producer", "made_by", "tv_series", "writer", "written_by", "director_directed_by_movie_tags_keyword"], "column_names": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth city"], [0, "birth year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country code"], [11, "gender"], [11, "name"], [11, "nationality"], [11, "birth city"], [11, "birth year"], [6, "pid"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth city"], [6, "birth year"], [11, "id director directed by movie"], [11, "keyword"], [7, "id"], [7, "msid"], [7, "pid"], [11, "title"], [11, "release year"], [11, "title aka"], [11, "budget"], [11, "id tags"], [8, "sid"], [8, "title"], [8, "release year"], [8, "num of seasons"], [8, "num of episodes"], [8, "title aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num of episodes"], [9, "birth city"], [9, "birth year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "did"], [11, "msid"], [11, "kid"]], "column_names_original": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth_city"], [0, "birth_year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country_code"], [11, "gender"], [11, "name"], [11, "nationality"], [11, "birth_city"], [11, "birth_year"], [6, "pid"], [6, "gender"], [6, "name"], [6, "nationality"], [6, "birth_city"], [6, "birth_year"], [11, "id_director_directed_by_movie"], [11, "keyword"], [7, "id"], [7, "msid"], [7, "pid"], [11, "title"], [11, "release_year"], [11, "title_aka"], [11, "budget"], [11, "id_tags"], [8, "sid"], [8, "title"], [8, "release_year"], [8, "num_of_seasons"], [8, "num_of_episodes"], [8, "title_aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num_of_episodes"], [9, "birth_city"], [9, "birth_year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "did"], [11, "msid"], [11, "kid"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "text", "number", "number", "number", "text", "number", "text", "text", "number", "number", "text", "number", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 7, 10, 14, 16, 19, 27, 33, 35, 42, 43, 50, 61, 61, 62], "foreign_keys": [[11, 8], [12, 1], [17, 8], [18, 14], [61, 8], [37, 27], [36, 8], [61, 8], [61, 50], [61, 8]]}, {"db_id": "imdb_total_3", "table_names": ["actor", "copyright", "cast", "genre", "classification", "company", "keyword", "tags", "tv series", "writer", "written by", "director_directed_by_movie_made_by_producer"], "table_names_original": ["actor", "copyright", "cast", "genre", "classification", "company", "keyword", "tags", "tv_series", "writer", "written_by", "director_directed_by_movie_made_by_producer"], "column_names": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth city"], [0, "birth year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country code"], [11, "gender director directed by movie made by"], [11, "name director directed by movie made by"], [11, "nationality director directed by movie made by"], [11, "birth city director directed by movie made by"], [11, "birth year director directed by movie made by"], [11, "gender producer"], [11, "name producer"], [11, "nationality producer"], [11, "birth city producer"], [11, "birth year producer"], [11, "id director directed by movie"], [6, "id"], [6, "keyword"], [11, "id made by"], [11, "title"], [11, "release year"], [11, "title aka"], [11, "budget"], [7, "id"], [7, "msid"], [7, "kid"], [8, "sid"], [8, "title"], [8, "release year"], [8, "num of seasons"], [8, "num of episodes"], [8, "title aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num of episodes"], [9, "birth city"], [9, "birth year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "did"], [11, "msid"], [11, "pid"]], "column_names_original": [[-1, "*"], [0, "aid"], [0, "gender"], [0, "name"], [0, "nationality"], [0, "birth_city"], [0, "birth_year"], [1, "id"], [1, "msid"], [1, "cid"], [2, "id"], [2, "msid"], [2, "aid"], [2, "role"], [3, "gid"], [3, "genre"], [4, "id"], [4, "msid"], [4, "gid"], [5, "id"], [5, "name"], [5, "country_code"], [11, "gender_director_directed_by_movie_made_by"], [11, "name_director_directed_by_movie_made_by"], [11, "nationality_director_directed_by_movie_made_by"], [11, "birth_city_director_directed_by_movie_made_by"], [11, "birth_year_director_directed_by_movie_made_by"], [11, "gender_producer"], [11, "name_producer"], [11, "nationality_producer"], [11, "birth_city_producer"], [11, "birth_year_producer"], [11, "id_director_directed_by_movie"], [6, "id"], [6, "keyword"], [11, "id_made_by"], [11, "title"], [11, "release_year"], [11, "title_aka"], [11, "budget"], [7, "id"], [7, "msid"], [7, "kid"], [8, "sid"], [8, "title"], [8, "release_year"], [8, "num_of_seasons"], [8, "num_of_episodes"], [8, "title_aka"], [8, "budget"], [9, "wid"], [9, "gender"], [9, "name"], [9, "nationality"], [9, "num_of_episodes"], [9, "birth_city"], [9, "birth_year"], [10, "id"], [10, "msid"], [10, "wid"], [11, "did"], [11, "msid"], [11, "pid"]], "column_types": ["text", "number", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "number", "number", "number", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "text", "number", "number", "number", "text", "text", "number", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 7, 10, 14, 16, 19, 32, 33, 35, 40, 43, 50, 61, 61, 62], "foreign_keys": [[11, 8], [12, 1], [17, 8], [18, 14], [61, 8], [61, 8], [41, 8], [61, 50], [61, 8]]}, {"db_id": "local_govt_in_alabama_total_0", "table_names": ["participants_participants_in_events_events_services"], "table_names_original": ["participants_participants_in_events_events_services"], "column_names": [[-1, "*"], [0, "service type code"], [0, "participant type code"], [0, "participant details"], [0, "event details"], [0, "participant id"], [0, "event id"], [0, "service_id"]], "column_names_original": [[-1, "*"], [0, "service_type_code"], [0, "participant_type_code"], [0, "participant_details"], [0, "event_details"], [0, "participant_id"], [0, "event_id"], [0, "service_id"]], "column_types": ["text", "text", "text", "text", "text", "number", "number", "number"], "primary_keys": [6, 7, 7, 7], "foreign_keys": [[7, 6]]}, {"db_id": "college_1_total_0", "table_names": ["employee", "professor", "student", "class_enroll_course_department"], "table_names_original": ["employee", "professor", "student", "class_enroll_course_department"], "column_names": [[-1, "*"], [3, "class section"], [3, "class time"], [3, "class room"], [3, "prof num"], [3, "crs description"], [3, "crs credit"], [3, "dept name"], [3, "school code"], [3, "emp num"], [3, "dept address"], [3, "dept extension"], [0, "emp num"], [0, "emp lname"], [0, "emp fname"], [0, "emp initial"], [0, "emp jobcode"], [0, "emp hiredate"], [0, "emp dob"], [3, "stu num"], [3, "enroll grade"], [1, "emp num"], [1, "dept code"], [1, "prof office"], [1, "prof extension"], [1, "prof high degree"], [2, "stu num"], [2, "stu lname"], [2, "stu fname"], [2, "stu init"], [2, "stu dob"], [2, "stu hrs"], [2, "stu class"], [2, "stu gpa"], [2, "stu transfer"], [2, "dept code"], [2, "stu phone"], [2, "prof num"], [3, "class code"], [3, "crs code"], [3, "dept_code"]], "column_names_original": [[-1, "*"], [3, "class_section"], [3, "class_time"], [3, "class_room"], [3, "prof_num"], [3, "crs_description"], [3, "crs_credit"], [3, "dept_name"], [3, "school_code"], [3, "emp_num"], [3, "dept_address"], [3, "dept_extension"], [0, "emp_num"], [0, "emp_lname"], [0, "emp_fname"], [0, "emp_initial"], [0, "emp_jobcode"], [0, "emp_hiredate"], [0, "emp_dob"], [3, "stu_num"], [3, "enroll_grade"], [1, "emp_num"], [1, "dept_code"], [1, "prof_office"], [1, "prof_extension"], [1, "prof_high_degree"], [2, "stu_num"], [2, "stu_lname"], [2, "stu_fname"], [2, "stu_init"], [2, "stu_dob"], [2, "stu_hrs"], [2, "stu_class"], [2, "stu_gpa"], [2, "stu_transfer"], [2, "dept_code"], [2, "stu_phone"], [2, "prof_num"], [3, "class_code"], [3, "crs_code"], [3, "dept_code"]], "column_types": ["text", "text", "text", "text", "number", "text", "number", "text", "text", "number", "text", "text", "number", "text", "text", "text", "text", "time", "time", "number", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "time", "number", "text", "number", "number", "text", "text", "number", "text", "text", "text"], "primary_keys": [12, 26, 39, 40, 40], "foreign_keys": [[4, 12], [9, 12], [19, 26], [22, 40], [21, 12], [35, 40]]}, {"db_id": "hospital_1_total_0", "table_names": ["physician", "department", "affiliated with", "procedures", "trained in", "nurse", "appointment", "block", "room", "on call", "undergoes", "stay_patient_prescribes_medication"], "table_names_original": ["physician", "department", "affiliated_with", "procedures", "trained_in", "nurse", "appointment", "block", "room", "on_call", "undergoes", "stay_patient_prescribes_medication"], "column_names": [[-1, "*"], [0, "employeeid"], [0, "name"], [0, "position"], [0, "ssn"], [1, "departmentid"], [1, "name"], [1, "head"], [2, "physician"], [2, "department"], [2, "primaryaffiliation"], [3, "code"], [3, "name"], [3, "cost"], [4, "physician"], [4, "treatment"], [4, "certificationdate"], [4, "certificationexpires"], [11, "name stay patient prescribes"], [11, "address"], [11, "phone"], [11, "insuranceid"], [11, "pcp"], [5, "employeeid"], [5, "name"], [5, "position"], [5, "registered"], [5, "ssn"], [6, "appointmentid"], [6, "patient"], [6, "prepnurse"], [6, "physician"], [6, "start"], [6, "end"], [6, "examinationroom"], [11, "name medication"], [11, "brand"], [11, "description"], [11, "physician"], [11, "date"], [11, "appointment"], [11, "dose"], [7, "blockfloor"], [7, "blockcode"], [8, "roomnumber"], [8, "roomtype"], [8, "blockfloor"], [8, "blockcode"], [8, "unavailable"], [9, "nurse"], [9, "blockfloor"], [9, "blockcode"], [9, "oncallstart"], [9, "oncallend"], [11, "stayid"], [11, "room"], [11, "staystart"], [11, "stayend"], [10, "patient"], [10, "procedures"], [10, "stay"], [10, "dateundergoes"], [10, "physician"], [10, "assistingnurse"], [11, "patient"], [11, "medication"]], "column_names_original": [[-1, "*"], [0, "employeeid"], [0, "name"], [0, "position"], [0, "ssn"], [1, "departmentid"], [1, "name"], [1, "head"], [2, "physician"], [2, "department"], [2, "primaryaffiliation"], [3, "code"], [3, "name"], [3, "cost"], [4, "physician"], [4, "treatment"], [4, "certificationdate"], [4, "certificationexpires"], [11, "name_stay_patient_prescribes"], [11, "address"], [11, "phone"], [11, "insuranceid"], [11, "pcp"], [5, "employeeid"], [5, "name"], [5, "position"], [5, "registered"], [5, "ssn"], [6, "appointmentid"], [6, "patient"], [6, "prepnurse"], [6, "physician"], [6, "start"], [6, "end"], [6, "examinationroom"], [11, "name_medication"], [11, "brand"], [11, "description"], [11, "physician"], [11, "date"], [11, "appointment"], [11, "dose"], [7, "blockfloor"], [7, "blockcode"], [8, "roomnumber"], [8, "roomtype"], [8, "blockfloor"], [8, "blockcode"], [8, "unavailable"], [9, "nurse"], [9, "blockfloor"], [9, "blockcode"], [9, "oncallstart"], [9, "oncallend"], [11, "stayid"], [11, "room"], [11, "staystart"], [11, "stayend"], [10, "patient"], [10, "procedures"], [10, "stay"], [10, "dateundergoes"], [10, "physician"], [10, "assistingnurse"], [11, "patient"], [11, "medication"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "number", "number", "number", "boolean", "number", "text", "number", "number", "number", "time", "time", "text", "text", "text", "number", "number", "number", "text", "text", "boolean", "number", "number", "number", "number", "number", "time", "time", "text", "text", "text", "text", "number", "time", "number", "text", "number", "number", "number", "text", "number", "number", "boolean", "number", "number", "number", "time", "time", "number", "number", "time", "time", "number", "number", "number", "time", "number", "number", "number", "number"], "primary_keys": [1, 5, 8, 11, 14, 23, 28, 38, 42, 44, 49, 54, 58, 64, 65], "foreign_keys": [[7, 1], [9, 5], [8, 1], [15, 11], [14, 1], [22, 1], [31, 1], [30, 23], [29, 64], [40, 28], [38, 1], [46, 42], [47, 43], [50, 42], [51, 43], [49, 23], [55, 44], [64, 23], [64, 1], [60, 54], [59, 11], [58, 64]]}, {"db_id": "products_gen_characteristics_total_0", "table_names": ["reference characteristic types", "reference product categories", "products_product_characteristics_characteristics_ref_colors"], "table_names_original": ["ref_characteristic_types", "ref_product_categories", "products_product_characteristics_characteristics_ref_colors"], "column_names": [[-1, "*"], [0, "characteristic type code"], [0, "characteristic type description"], [2, "color description"], [1, "product category code"], [1, "product category description"], [1, "unit of measure"], [2, "characteristic type code"], [2, "characteristic data type"], [2, "characteristic name"], [2, "other characteristic details"], [2, "product category code"], [2, "product name"], [2, "typical buying price"], [2, "typical selling price"], [2, "product description"], [2, "other product details"], [2, "product characteristic value"], [2, "product id"], [2, "characteristic id"], [2, "color_code"]], "column_names_original": [[-1, "*"], [0, "characteristic_type_code"], [0, "characteristic_type_description"], [2, "color_description"], [1, "product_category_code"], [1, "product_category_description"], [1, "unit_of_measure"], [2, "characteristic_type_code"], [2, "characteristic_data_type"], [2, "characteristic_name"], [2, "other_characteristic_details"], [2, "product_category_code"], [2, "product_name"], [2, "typical_buying_price"], [2, "typical_selling_price"], [2, "product_description"], [2, "other_product_details"], [2, "product_characteristic_value"], [2, "product_id"], [2, "characteristic_id"], [2, "color_code"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text"], "primary_keys": [1, 4, 19, 20, 20], "foreign_keys": [[7, 1], [11, 4], [20, 19]]}, {"db_id": "tracking_orders_total_0", "table_names": ["invoices", "shipments", "shipment items", "customers_orders_order_items_products"], "table_names_original": ["invoices", "shipments", "shipment_items", "customers_orders_order_items_products"], "column_names": [[-1, "*"], [3, "customer name"], [3, "customer details"], [0, "invoice number"], [0, "invoice date"], [0, "invoice details"], [3, "order status"], [3, "date order placed"], [3, "order details"], [3, "product name"], [3, "product details"], [3, "order item id"], [3, "order item status"], [3, "order item details"], [1, "shipment id"], [1, "order id"], [1, "invoice number"], [1, "shipment tracking number"], [1, "shipment date"], [1, "other shipment details"], [2, "shipment id"], [2, "order item id"], [3, "customer id"], [3, "order id"], [3, "product_id"]], "column_names_original": [[-1, "*"], [3, "customer_name"], [3, "customer_details"], [0, "invoice_number"], [0, "invoice_date"], [0, "invoice_details"], [3, "order_status"], [3, "date_order_placed"], [3, "order_details"], [3, "product_name"], [3, "product_details"], [3, "order_item_id"], [3, "order_item_status"], [3, "order_item_details"], [1, "shipment_id"], [1, "order_id"], [1, "invoice_number"], [1, "shipment_tracking_number"], [1, "shipment_date"], [1, "other_shipment_details"], [2, "shipment_id"], [2, "order_item_id"], [3, "customer_id"], [3, "order_id"], [3, "product_id"]], "column_types": ["text", "text", "text", "number", "time", "text", "text", "time", "text", "text", "text", "number", "text", "text", "number", "number", "number", "text", "time", "text", "number", "number", "number", "number", "number"], "primary_keys": [3, 11, 14, 23, 24, 24], "foreign_keys": [[16, 3], [15, 23], [24, 14], [23, 11]]}, {"db_id": "scholar_total_5", "table_names": ["venue", "author", "dataset", "journal", "cite", "paper dataset", "paperkeyphrase_keyphrase_paper_writes"], "table_names_original": ["venue", "author", "dataset", "journal", "cite", "paperdataset", "paperkeyphrase_keyphrase_paper_writes"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [2, "datasetid"], [2, "datasetname"], [3, "journalid"], [3, "journalname"], [6, "keyphrasename"], [6, "title"], [6, "venueid"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [4, "citingpaperid"], [4, "citedpaperid"], [5, "paperid"], [5, "datasetid"], [6, "authorid"], [6, "keyphraseid"], [6, "paperid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [1, "authorid"], [1, "authorname"], [2, "datasetid"], [2, "datasetname"], [3, "journalid"], [3, "journalname"], [6, "keyphrasename"], [6, "title"], [6, "venueid"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [4, "citingpaperid"], [4, "citedpaperid"], [5, "paperid"], [5, "datasetid"], [6, "authorid"], [6, "keyphraseid"], [6, "paperid"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 3, 5, 7, 16, 19, 22, 22, 22], "foreign_keys": [[11, 1], [15, 7], [16, 22], [17, 22], [22, 3], [22, 22]]}, {"db_id": "scholar_total_2", "table_names": ["venue", "dataset", "journal", "key phrase", "paper dataset", "paper key phrase", "paper_cite_writes_author"], "table_names_original": ["venue", "dataset", "journal", "keyphrase", "paperdataset", "paperkeyphrase", "paper_cite_writes_author"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [6, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [6, "title"], [6, "venueid"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [6, "citingpaperid"], [4, "paperid"], [4, "datasetid"], [5, "paperid"], [5, "keyphraseid"], [6, "paperid"], [6, "authorid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [6, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [6, "title"], [6, "venueid"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [6, "citingpaperid"], [4, "paperid"], [4, "datasetid"], [5, "paperid"], [5, "keyphraseid"], [6, "paperid"], [6, "authorid"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 4, 6, 8, 16, 18, 20, 21, 22], "foreign_keys": [[11, 1], [15, 6], [16, 21], [20, 8], [19, 21], [21, 22]]}, {"db_id": "scholar_total_0", "table_names": ["dataset", "journal", "key phrase", "cite", "paper dataset", "paper key phrase", "venue_paper_writes_author"], "table_names_original": ["dataset", "journal", "keyphrase", "cite", "paperdataset", "paperkeyphrase", "venue_paper_writes_author"], "column_names": [[-1, "*"], [6, "venuename"], [6, "authorname"], [0, "datasetid"], [0, "datasetname"], [1, "journalid"], [1, "journalname"], [2, "keyphraseid"], [2, "keyphrasename"], [6, "title"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "paperid"], [5, "keyphraseid"], [6, "venueid"], [6, "paperid"], [6, "authorid"]], "column_names_original": [[-1, "*"], [6, "venuename"], [6, "authorname"], [0, "datasetid"], [0, "datasetname"], [1, "journalid"], [1, "journalname"], [2, "keyphraseid"], [2, "keyphrasename"], [6, "title"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "paperid"], [5, "keyphraseid"], [6, "venueid"], [6, "paperid"], [6, "authorid"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [3, 5, 7, 14, 17, 19, 21, 22, 22, 22], "foreign_keys": [[13, 5], [14, 21], [15, 21], [19, 7], [18, 21], [21, 22], [22, 21]]}, {"db_id": "scholar_total_10", "table_names": ["author", "journal", "key phrase", "cite", "paper key phrase", "writes", "paperdataset_dataset_paper_venue"], "table_names_original": ["author", "journal", "keyphrase", "cite", "paperkeyphrase", "writes", "paperdataset_dataset_paper_venue"], "column_names": [[-1, "*"], [6, "venuename"], [0, "authorid"], [0, "authorname"], [6, "datasetname"], [1, "journalid"], [1, "journalname"], [2, "keyphraseid"], [2, "keyphrasename"], [6, "title"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "keyphraseid"], [5, "paperid"], [5, "authorid"], [6, "datasetid"], [6, "paperid"], [6, "venueid"]], "column_names_original": [[-1, "*"], [6, "venuename"], [0, "authorid"], [0, "authorname"], [6, "datasetname"], [1, "journalid"], [1, "journalname"], [2, "keyphraseid"], [2, "keyphrasename"], [6, "title"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "keyphraseid"], [5, "paperid"], [5, "authorid"], [6, "datasetid"], [6, "paperid"], [6, "venueid"]], "column_types": ["text", "text", "number", "text", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [2, 5, 7, 14, 17, 21, 22, 22, 22], "foreign_keys": [[13, 5], [14, 21], [15, 21], [17, 7], [16, 21], [21, 2], [22, 21]]}, {"db_id": "scholar_total_1", "table_names": ["venue", "dataset", "journal", "paper", "cite", "paper dataset", "paperkeyphrase_keyphrase_writes_author"], "table_names_original": ["venue", "dataset", "journal", "paper", "cite", "paperdataset", "paperkeyphrase_keyphrase_writes_author"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [6, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [6, "keyphrasename"], [3, "paperid"], [3, "title"], [3, "venueid"], [3, "year"], [3, "numciting"], [3, "numcitedby"], [3, "journalid"], [4, "citingpaperid"], [4, "citedpaperid"], [5, "paperid"], [5, "datasetid"], [6, "keyphraseid"], [6, "paperid"], [6, "authorid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [6, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [6, "keyphrasename"], [3, "paperid"], [3, "title"], [3, "venueid"], [3, "year"], [3, "numciting"], [3, "numcitedby"], [3, "journalid"], [4, "citingpaperid"], [4, "citedpaperid"], [5, "paperid"], [5, "datasetid"], [6, "keyphraseid"], [6, "paperid"], [6, "authorid"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "text", "text", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 4, 6, 9, 16, 19, 22, 22, 22], "foreign_keys": [[11, 1], [15, 6], [16, 9], [17, 9], [21, 9], [21, 22], [22, 9]]}, {"db_id": "scholar_total_4", "table_names": ["author", "dataset", "journal", "cite", "paper dataset", "writes", "paperkeyphrase_keyphrase_paper_venue"], "table_names_original": ["author", "dataset", "journal", "cite", "paperdataset", "writes", "paperkeyphrase_keyphrase_paper_venue"], "column_names": [[-1, "*"], [6, "venuename"], [0, "authorid"], [0, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [6, "keyphrasename"], [6, "title"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "paperid"], [5, "authorid"], [6, "keyphraseid"], [6, "paperid"], [6, "venueid"]], "column_names_original": [[-1, "*"], [6, "venuename"], [0, "authorid"], [0, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [6, "keyphrasename"], [6, "title"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [3, "citingpaperid"], [3, "citedpaperid"], [4, "paperid"], [4, "datasetid"], [5, "paperid"], [5, "authorid"], [6, "keyphraseid"], [6, "paperid"], [6, "venueid"]], "column_types": ["text", "text", "number", "text", "number", "text", "number", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [2, 4, 6, 14, 17, 21, 22, 22, 22], "foreign_keys": [[13, 6], [14, 21], [15, 21], [21, 2], [22, 21]]}, {"db_id": "scholar_total_12", "table_names": ["venue", "dataset", "journal", "key phrase", "cite", "paper dataset", "paper_paperkeyphrase_writes_author"], "table_names_original": ["venue", "dataset", "journal", "keyphrase", "cite", "paperdataset", "paper_paperkeyphrase_writes_author"], "column_names": [[-1, "*"], [0, "venueid"], [0, "venuename"], [6, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [6, "title"], [6, "venueid"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [4, "citingpaperid"], [4, "citedpaperid"], [5, "paperid"], [5, "datasetid"], [6, "keyphraseid"], [6, "paperid"], [6, "authorid"]], "column_names_original": [[-1, "*"], [0, "venueid"], [0, "venuename"], [6, "authorname"], [1, "datasetid"], [1, "datasetname"], [2, "journalid"], [2, "journalname"], [3, "keyphraseid"], [3, "keyphrasename"], [6, "title"], [6, "venueid"], [6, "year"], [6, "numciting"], [6, "numcitedby"], [6, "journalid"], [4, "citingpaperid"], [4, "citedpaperid"], [5, "paperid"], [5, "datasetid"], [6, "keyphraseid"], [6, "paperid"], [6, "authorid"]], "column_types": ["text", "number", "text", "text", "number", "text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 4, 6, 8, 16, 19, 20, 21, 22], "foreign_keys": [[11, 1], [15, 6], [16, 21], [17, 21], [20, 8], [21, 22]]}, {"db_id": "pets_1_total_0", "table_names": ["student_has_pet_pets"], "table_names_original": ["student_has_pet_pets"], "column_names": [[-1, "*"], [0, "lname"], [0, "fname"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city code"], [0, "pettype"], [0, "pet age"], [0, "weight"], [0, "stuid"], [0, "petid"]], "column_names_original": [[-1, "*"], [0, "lname"], [0, "fname"], [0, "age"], [0, "sex"], [0, "major"], [0, "advisor"], [0, "city_code"], [0, "pettype"], [0, "pet_age"], [0, "weight"], [0, "stuid"], [0, "petid"]], "column_types": ["text", "text", "text", "number", "text", "number", "number", "text", "text", "number", "number", "number", "number"], "primary_keys": [11, 12], "foreign_keys": []}, {"db_id": "car_1_total_0", "table_names": ["continents", "car names", "cars data", "model_list_car_makers_countries"], "table_names_original": ["continents", "car_names", "cars_data", "model_list_car_makers_countries"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [3, "countryname"], [3, "continent"], [3, "maker car makers"], [3, "fullname"], [3, "modelid"], [3, "model"], [1, "makeid"], [1, "model"], [1, "make"], [2, "id"], [2, "mpg"], [2, "cylinders"], [2, "edispl"], [2, "horsepower"], [2, "weight"], [2, "accelerate"], [2, "year"], [3, "maker"], [3, "country"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [3, "countryname"], [3, "continent"], [3, "maker_car_makers"], [3, "fullname"], [3, "modelid"], [3, "model"], [1, "makeid"], [1, "model"], [1, "make"], [2, "id"], [2, "mpg"], [2, "cylinders"], [2, "edispl"], [2, "horsepower"], [2, "weight"], [2, "accelerate"], [2, "year"], [3, "maker"], [3, "country"]], "column_types": ["text", "number", "text", "text", "number", "text", "text", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number", "text"], "primary_keys": [1, 7, 9, 12, 20, 21], "foreign_keys": [[4, 1], [10, 8], [12, 9]]}, {"db_id": "car_1_total_2", "table_names": ["model list", "car names", "cars data", "countries_continents_car_makers"], "table_names_original": ["model_list", "car_names", "cars_data", "countries_continents_car_makers"], "column_names": [[-1, "*"], [3, "continent continents"], [3, "countryname"], [3, "id"], [3, "maker"], [3, "fullname"], [0, "modelid"], [0, "maker"], [0, "model"], [1, "makeid"], [1, "model"], [1, "make"], [2, "id"], [2, "mpg"], [2, "cylinders"], [2, "edispl"], [2, "horsepower"], [2, "weight"], [2, "accelerate"], [2, "year"], [3, "continent"], [3, "countryid"]], "column_names_original": [[-1, "*"], [3, "continent_continents"], [3, "countryname"], [3, "id"], [3, "maker"], [3, "fullname"], [0, "modelid"], [0, "maker"], [0, "model"], [1, "makeid"], [1, "model"], [1, "make"], [2, "id"], [2, "mpg"], [2, "cylinders"], [2, "edispl"], [2, "horsepower"], [2, "weight"], [2, "accelerate"], [2, "year"], [3, "continent"], [3, "countryid"]], "column_types": ["text", "text", "text", "number", "text", "text", "number", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number", "number"], "primary_keys": [3, 6, 9, 12, 20, 21], "foreign_keys": [[7, 3], [10, 8], [12, 9]]}, {"db_id": "car_1_total_5", "table_names": ["continents", "car names", "cars data", "countries_car_makers_model_list"], "table_names_original": ["continents", "car_names", "cars_data", "countries_car_makers_model_list"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [3, "countryname"], [3, "continent"], [3, "maker countries car makers"], [3, "fullname"], [3, "modelid"], [3, "model"], [1, "makeid"], [1, "model"], [1, "make"], [2, "id"], [2, "mpg"], [2, "cylinders"], [2, "edispl"], [2, "horsepower"], [2, "weight"], [2, "accelerate"], [2, "year"], [3, "countryid"], [3, "id"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [3, "countryname"], [3, "continent"], [3, "maker_countries_car_makers"], [3, "fullname"], [3, "modelid"], [3, "model"], [1, "makeid"], [1, "model"], [1, "make"], [2, "id"], [2, "mpg"], [2, "cylinders"], [2, "edispl"], [2, "horsepower"], [2, "weight"], [2, "accelerate"], [2, "year"], [3, "countryid"], [3, "id"]], "column_types": ["text", "number", "text", "text", "number", "text", "text", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number", "number"], "primary_keys": [1, 7, 9, 12, 20, 21], "foreign_keys": [[4, 1], [10, 8], [12, 9]]}, {"db_id": "flight_2_total_2", "table_names": ["flights_airports_airlines"], "table_names_original": ["flights_airports_airlines"], "column_names": [[-1, "*"], [0, "airline airlines"], [0, "abbreviation"], [0, "country airlines"], [0, "city"], [0, "airportname"], [0, "country flights airports"], [0, "countryabbrev"], [0, "flightno"], [0, "sourceairport"], [0, "destairport"], [0, "airline"]], "column_names_original": [[-1, "*"], [0, "airline_airlines"], [0, "abbreviation"], [0, "country_airlines"], [0, "city"], [0, "airportname"], [0, "country_flights_airports"], [0, "countryabbrev"], [0, "flightno"], [0, "sourceairport"], [0, "destairport"], [0, "airline"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "number"], "primary_keys": [10, 11], "foreign_keys": [[10, 10]]}, {"db_id": "museum_visit_total_2", "table_names": ["visitor_visit_museum"], "table_names_original": ["visitor_visit_museum"], "column_names": [[-1, "*"], [0, "name museum"], [0, "num of staff"], [0, "open year"], [0, "name visitor visit"], [0, "level of membership"], [0, "age"], [0, "num of ticket"], [0, "total spent"], [0, "id"], [0, "museum_id"]], "column_names_original": [[-1, "*"], [0, "name_museum"], [0, "num_of_staff"], [0, "open_year"], [0, "name_visitor_visit"], [0, "level_of_membership"], [0, "age"], [0, "num_of_ticket"], [0, "total_spent"], [0, "id"], [0, "museum_id"]], "column_types": ["text", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number"], "primary_keys": [9, 10], "foreign_keys": []}, {"db_id": "dog_kennels_total_2", "table_names": ["breeds", "charges", "sizes", "treatment types", "professionals", "owners_dogs_treatments"], "table_names_original": ["breeds", "charges", "sizes", "treatment_types", "professionals", "owners_dogs_treatments"], "column_names": [[-1, "*"], [0, "breed code"], [0, "breed name"], [1, "charge id"], [1, "charge type"], [1, "charge amount"], [2, "size code"], [2, "size description"], [3, "treatment type code"], [3, "treatment type description"], [5, "first name"], [5, "last name"], [5, "street"], [5, "city"], [5, "state"], [5, "zip code"], [5, "email address"], [5, "home phone"], [5, "cell number"], [5, "abandoned yn"], [5, "breed code"], [5, "size code"], [5, "name"], [5, "age"], [5, "date of birth"], [5, "gender"], [5, "weight"], [5, "date arrived"], [5, "date adopted"], [5, "date departed"], [4, "professional id"], [4, "role code"], [4, "first name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip code"], [4, "last name"], [4, "email address"], [4, "home phone"], [4, "cell number"], [5, "treatment id"], [5, "professional id"], [5, "treatment type code"], [5, "date of treatment"], [5, "cost of treatment"], [5, "owner id"], [5, "dog_id"]], "column_names_original": [[-1, "*"], [0, "breed_code"], [0, "breed_name"], [1, "charge_id"], [1, "charge_type"], [1, "charge_amount"], [2, "size_code"], [2, "size_description"], [3, "treatment_type_code"], [3, "treatment_type_description"], [5, "first_name"], [5, "last_name"], [5, "street"], [5, "city"], [5, "state"], [5, "zip_code"], [5, "email_address"], [5, "home_phone"], [5, "cell_number"], [5, "abandoned_yn"], [5, "breed_code"], [5, "size_code"], [5, "name"], [5, "age"], [5, "date_of_birth"], [5, "gender"], [5, "weight"], [5, "date_arrived"], [5, "date_adopted"], [5, "date_departed"], [4, "professional_id"], [4, "role_code"], [4, "first_name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip_code"], [4, "last_name"], [4, "email_address"], [4, "home_phone"], [4, "cell_number"], [5, "treatment_id"], [5, "professional_id"], [5, "treatment_type_code"], [5, "date_of_treatment"], [5, "cost_of_treatment"], [5, "owner_id"], [5, "dog_id"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "time", "text", "text", "time", "time", "time", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "time", "number", "number", "number"], "primary_keys": [1, 3, 6, 8, 30, 41, 46, 47], "foreign_keys": [[21, 6], [20, 1], [42, 30], [43, 8]]}, {"db_id": "flight_1_total_0", "table_names": ["flight", "employee_certificate_aircraft"], "table_names_original": ["flight", "employee_certificate_aircraft"], "column_names": [[-1, "*"], [0, "flno"], [0, "origin"], [0, "destination"], [0, "distance"], [0, "departure date"], [0, "arrival date"], [0, "price"], [0, "aid"], [1, "name aircraft"], [1, "distance"], [1, "name employee certificate"], [1, "salary"], [1, "eid"], [1, "aid"]], "column_names_original": [[-1, "*"], [0, "flno"], [0, "origin"], [0, "destination"], [0, "distance"], [0, "departure_date"], [0, "arrival_date"], [0, "price"], [0, "aid"], [1, "name_aircraft"], [1, "distance"], [1, "name_employee_certificate"], [1, "salary"], [1, "eid"], [1, "aid"]], "column_types": ["text", "number", "text", "text", "number", "time", "time", "number", "number", "text", "number", "text", "number", "number", "number"], "primary_keys": [1, 13, 14], "foreign_keys": [[8, 14]]}, {"db_id": "store_1_total_0", "table_names": ["sqlite sequence", "artists", "albums", "employees", "customers", "genres", "invoices", "media types", "invoice lines", "tracks_playlist_tracks_playlists"], "table_names_original": ["artists", "something_sequence", "albums", "employees", "customers", "genres", "invoices", "media_types", "invoice_lines", "tracks_playlist_tracks_playlists"], "column_names": [[-1, "*"], [0, "id"], [0, "name"], [1, "name"], [1, "seq"], [2, "id"], [2, "title"], [2, "artist id"], [3, "id"], [3, "last name"], [3, "first name"], [3, "title"], [3, "reports to"], [3, "birth date"], [3, "hire date"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postal code"], [3, "phone"], [3, "fax"], [3, "email"], [4, "id"], [4, "first name"], [4, "last name"], [4, "company"], [4, "address"], [4, "city"], [4, "state"], [4, "country"], [4, "postal code"], [4, "phone"], [4, "fax"], [4, "email"], [4, "support rep id"], [5, "id"], [5, "name"], [6, "id"], [6, "customer id"], [6, "invoice date"], [6, "billing address"], [6, "billing city"], [6, "billing state"], [6, "billing country"], [6, "billing postal code"], [6, "total"], [7, "id"], [7, "name"], [9, "name tracks playlist tracks"], [9, "album id"], [9, "media type id"], [9, "genre id"], [9, "composer"], [9, "milliseconds"], [9, "bytes"], [9, "unit price"], [8, "id"], [8, "invoice id"], [8, "track id"], [8, "unit price"], [8, "quantity"], [9, "name playlists"], [9, "id tracks playlist tracks"], [9, "playlist_id"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [1, "name"], [1, "seq"], [2, "id"], [2, "title"], [2, "artist_id"], [3, "id"], [3, "last_name"], [3, "first_name"], [3, "title"], [3, "reports_to"], [3, "birth_date"], [3, "hire_date"], [3, "address"], [3, "city"], [3, "state"], [3, "country"], [3, "postal_code"], [3, "phone"], [3, "fax"], [3, "email"], [4, "id"], [4, "first_name"], [4, "last_name"], [4, "company"], [4, "address"], [4, "city"], [4, "state"], [4, "country"], [4, "postal_code"], [4, "phone"], [4, "fax"], [4, "email"], [4, "support_rep_id"], [5, "id"], [5, "name"], [6, "id"], [6, "customer_id"], [6, "invoice_date"], [6, "billing_address"], [6, "billing_city"], [6, "billing_state"], [6, "billing_country"], [6, "billing_postal_code"], [6, "total"], [7, "id"], [7, "name"], [9, "name_tracks_playlist_tracks"], [9, "album_id"], [9, "media_type_id"], [9, "genre_id"], [9, "composer"], [9, "milliseconds"], [9, "bytes"], [9, "unit_price"], [8, "id"], [8, "invoice_id"], [8, "track_id"], [8, "unit_price"], [8, "quantity"], [9, "name_playlists"], [9, "id_tracks_playlist_tracks"], [9, "playlist_id"]], "column_types": ["text", "number", "text", "text", "text", "number", "text", "number", "number", "text", "text", "text", "number", "time", "time", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "number", "number", "time", "text", "text", "text", "text", "text", "number", "number", "text", "text", "number", "number", "number", "text", "number", "number", "number", "number", "number", "number", "number", "number", "text", "number", "number"], "primary_keys": [1, 5, 8, 23, 36, 38, 47, 57, 63, 63, 64], "foreign_keys": [[7, 1], [12, 8], [35, 8], [39, 23], [51, 47], [52, 36], [50, 5], [59, 63], [58, 38], [63, 64]]}, {"db_id": "chinook_1_total_0", "table_names": ["artist", "customer", "employee", "invoice", "invoice line", "media type", "playlist", "playlist track", "album_track_genre"], "table_names_original": ["artist", "customer", "employee", "invoice", "invoiceline", "mediatype", "playlist", "playlisttrack", "album_track_genre"], "column_names": [[-1, "*"], [8, "title"], [8, "artistid"], [0, "artistid"], [0, "name"], [1, "customerid"], [1, "firstname"], [1, "lastname"], [1, "company"], [1, "address"], [1, "city"], [1, "state"], [1, "country"], [1, "postalcode"], [1, "phone"], [1, "fax"], [1, "email"], [1, "supportrepid"], [2, "employeeid"], [2, "lastname"], [2, "firstname"], [2, "title"], [2, "reportsto"], [2, "birthdate"], [2, "hiredate"], [2, "address"], [2, "city"], [2, "state"], [2, "country"], [2, "postalcode"], [2, "phone"], [2, "fax"], [2, "email"], [8, "name genre"], [3, "invoiceid"], [3, "customerid"], [3, "invoicedate"], [3, "billingaddress"], [3, "billingcity"], [3, "billingstate"], [3, "billingcountry"], [3, "billingpostalcode"], [3, "total"], [4, "invoicelineid"], [4, "invoiceid"], [4, "trackid"], [4, "unitprice"], [4, "quantity"], [5, "mediatypeid"], [5, "name"], [6, "playlistid"], [6, "name"], [7, "playlistid"], [7, "trackid"], [8, "trackid"], [8, "name album track"], [8, "mediatypeid"], [8, "composer"], [8, "milliseconds"], [8, "bytes"], [8, "unitprice"], [8, "albumid"], [8, "genreid"]], "column_names_original": [[-1, "*"], [8, "title"], [8, "artistid"], [0, "artistid"], [0, "name"], [1, "customerid"], [1, "firstname"], [1, "lastname"], [1, "company"], [1, "address"], [1, "city"], [1, "state"], [1, "country"], [1, "postalcode"], [1, "phone"], [1, "fax"], [1, "email"], [1, "supportrepid"], [2, "employeeid"], [2, "lastname"], [2, "firstname"], [2, "title"], [2, "reportsto"], [2, "birthdate"], [2, "hiredate"], [2, "address"], [2, "city"], [2, "state"], [2, "country"], [2, "postalcode"], [2, "phone"], [2, "fax"], [2, "email"], [8, "name_genre"], [3, "invoiceid"], [3, "customerid"], [3, "invoicedate"], [3, "billingaddress"], [3, "billingcity"], [3, "billingstate"], [3, "billingcountry"], [3, "billingpostalcode"], [3, "total"], [4, "invoicelineid"], [4, "invoiceid"], [4, "trackid"], [4, "unitprice"], [4, "quantity"], [5, "mediatypeid"], [5, "name"], [6, "playlistid"], [6, "name"], [7, "playlistid"], [7, "trackid"], [8, "trackid"], [8, "name_album_track"], [8, "mediatypeid"], [8, "composer"], [8, "milliseconds"], [8, "bytes"], [8, "unitprice"], [8, "albumid"], [8, "genreid"]], "column_types": ["text", "text", "number", "number", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "number", "time", "time", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "time", "text", "text", "text", "text", "text", "number", "number", "number", "number", "number", "number", "number", "text", "number", "text", "number", "number", "number", "text", "number", "text", "number", "number", "number", "number", "number"], "primary_keys": [3, 5, 18, 34, 43, 48, 50, 52, 54, 61, 62], "foreign_keys": [[2, 3], [17, 18], [22, 18], [35, 5], [45, 54], [44, 34], [53, 54], [52, 50], [56, 48]]}, {"db_id": "insurance_fnol_total_0", "table_names": ["available policies", "customers policies", "claims", "settlements", "customers_first_notification_of_loss_services"], "table_names_original": ["available_policies", "customers_policies", "claims", "settlements", "customers_first_notification_of_loss_services"], "column_names": [[-1, "*"], [4, "customer name"], [4, "service name"], [0, "policy id"], [0, "policy type code"], [0, "customer phone"], [1, "customer id"], [1, "policy id"], [1, "date opened"], [1, "date closed"], [4, "fnol id"], [4, "policy id"], [2, "claim id"], [2, "fnol id"], [2, "effective date"], [3, "settlement id"], [3, "claim id"], [3, "effective date"], [3, "settlement amount"], [4, "customer id"], [4, "service_id"]], "column_names_original": [[-1, "*"], [4, "customer_name"], [4, "service_name"], [0, "policy_id"], [0, "policy_type_code"], [0, "customer_phone"], [1, "customer_id"], [1, "policy_id"], [1, "date_opened"], [1, "date_closed"], [4, "fnol_id"], [4, "policy_id"], [2, "claim_id"], [2, "fnol_id"], [2, "effective_date"], [3, "settlement_id"], [3, "claim_id"], [3, "effective_date"], [3, "settlement_amount"], [4, "customer_id"], [4, "service_id"]], "column_types": ["text", "text", "text", "number", "text", "text", "number", "number", "time", "time", "number", "number", "number", "number", "time", "number", "number", "time", "number", "number", "number"], "primary_keys": [3, 6, 10, 12, 15, 19, 20], "foreign_keys": [[7, 3], [6, 19], [19, 6], [11, 7], [13, 10], [16, 12]]}, {"db_id": "game_injury_total_0", "table_names": ["stadium_game_injury_accident"], "table_names_original": ["stadium_game_injury_accident"], "column_names": [[-1, "*"], [0, "name"], [0, "home games"], [0, "average attendance"], [0, "total attendance"], [0, "capacity percentage"], [0, "id game"], [0, "season"], [0, "date"], [0, "home team"], [0, "away team"], [0, "score"], [0, "competition"], [0, "id injury accident"], [0, "player"], [0, "injury"], [0, "number of matches"], [0, "source"], [0, "id"]], "column_names_original": [[-1, "*"], [0, "name"], [0, "home_games"], [0, "average_attendance"], [0, "total_attendance"], [0, "capacity_percentage"], [0, "id_game"], [0, "season"], [0, "date"], [0, "home_team"], [0, "away_team"], [0, "score"], [0, "competition"], [0, "id_injury_accident"], [0, "player"], [0, "injury"], [0, "number_of_matches"], [0, "source"], [0, "id"]], "column_types": ["text", "text", "number", "number", "number", "number", "number", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "number"], "primary_keys": [6, 13, 18], "foreign_keys": [[18, 6]]}, {"db_id": "insurance_and_eClaims_total_0", "table_names": ["staff", "claims documents", "claims processing stages", "claims processing", "claim_headers_policies_customers"], "table_names_original": ["staff", "claims_documents", "claims_processing_stages", "claims_processing", "claim_headers_policies_customers"], "column_names": [[-1, "*"], [4, "customer details"], [0, "staff id"], [0, "staff details"], [4, "policy type code"], [4, "start date"], [4, "end date"], [4, "claim header id"], [4, "claim status code"], [4, "claim type code"], [4, "date of claim"], [4, "date of settlement"], [4, "amount claimed"], [4, "amount piad"], [1, "claim id"], [1, "document type code"], [1, "created by staff id"], [1, "created date"], [2, "claim stage id"], [2, "next claim stage id"], [2, "claim status name"], [2, "claim status description"], [3, "claim processing id"], [3, "claim id"], [3, "claim outcome code"], [3, "claim stage id"], [3, "staff id"], [4, "policy id"], [4, "customer_id"]], "column_names_original": [[-1, "*"], [4, "customer_details"], [0, "staff_id"], [0, "staff_details"], [4, "policy_type_code"], [4, "start_date"], [4, "end_date"], [4, "claim_header_id"], [4, "claim_status_code"], [4, "claim_type_code"], [4, "date_of_claim"], [4, "date_of_settlement"], [4, "amount_claimed"], [4, "amount_piad"], [1, "claim_id"], [1, "document_type_code"], [1, "created_by_staff_id"], [1, "created_date"], [2, "claim_stage_id"], [2, "next_claim_stage_id"], [2, "claim_status_name"], [2, "claim_status_description"], [3, "claim_processing_id"], [3, "claim_id"], [3, "claim_outcome_code"], [3, "claim_stage_id"], [3, "staff_id"], [4, "policy_id"], [4, "customer_id"]], "column_types": ["text", "text", "number", "text", "text", "time", "time", "number", "text", "text", "time", "time", "number", "number", "number", "text", "number", "number", "number", "number", "text", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [2, 7, 14, 18, 22, 27, 28], "foreign_keys": [[16, 2], [14, 7], [28, 2], [23, 7]]}, {"db_id": "theme_gallery_total_0", "table_names": ["exhibition_record_exhibition_artist"], "table_names_original": ["exhibition_record_exhibition_artist"], "column_names": [[-1, "*"], [0, "name"], [0, "country"], [0, "year join"], [0, "age"], [0, "year"], [0, "theme"], [0, "ticket price"], [0, "date"], [0, "attendance"], [0, "exhibition id"], [0, "artist_id"]], "column_names_original": [[-1, "*"], [0, "name"], [0, "country"], [0, "year_join"], [0, "age"], [0, "year"], [0, "theme"], [0, "ticket_price"], [0, "date"], [0, "attendance"], [0, "exhibition_id"], [0, "artist_id"]], "column_types": ["text", "text", "text", "number", "number", "number", "text", "number", "text", "number", "number", "number"], "primary_keys": [10, 11], "foreign_keys": []}, {"db_id": "riding_club_total_0", "table_names": ["club", "match result", "player_coach_coach_player"], "table_names_original": ["club", "match_result", "player_coach_coach_player"], "column_names": [[-1, "*"], [2, "sponsor name"], [2, "player name"], [2, "gender player"], [2, "residence"], [2, "occupation"], [2, "votes"], [2, "rank player"], [0, "club id"], [0, "club name"], [0, "region"], [0, "start year"], [2, "coach name"], [2, "gender player coach coach"], [2, "club id"], [2, "rank player coach coach"], [2, "starting year"], [1, "rank"], [1, "club id"], [1, "gold"], [1, "big silver"], [1, "small silver"], [1, "bronze"], [1, "points"], [2, "coach id"], [2, "player_id"]], "column_names_original": [[-1, "*"], [2, "sponsor_name"], [2, "player_name"], [2, "gender_player"], [2, "residence"], [2, "occupation"], [2, "votes"], [2, "rank_player"], [0, "club_id"], [0, "club_name"], [0, "region"], [0, "start_year"], [2, "coach_name"], [2, "gender_player_coach_coach"], [2, "club_id"], [2, "rank_player_coach_coach"], [2, "starting_year"], [1, "rank"], [1, "club_id"], [1, "gold"], [1, "big_silver"], [1, "small_silver"], [1, "bronze"], [1, "points"], [2, "coach_id"], [2, "player_id"]], "column_types": ["text", "text", "text", "text", "text", "text", "number", "text", "number", "text", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number", "number"], "primary_keys": [8, 17, 24, 25], "foreign_keys": [[14, 8], [18, 8]]}, {"db_id": "small_bank_1_total_0", "table_names": ["accounts_checking_savings"], "table_names_original": ["accounts_checking_savings"], "column_names": [[-1, "*"], [0, "name"], [0, "balance savings"], [0, "balance accounts checking"], [0, "custid"]], "column_names_original": [[-1, "*"], [0, "name"], [0, "balance_savings"], [0, "balance_accounts_checking"], [0, "custid"]], "column_types": ["text", "text", "number", "number", "number"], "primary_keys": [4], "foreign_keys": []}, {"db_id": "concert_singer_total_0", "table_names": ["singer", "singer in concert", "concert_stadium"], "table_names_original": ["singer", "singer_in_concert", "concert_stadium"], "column_names": [[-1, "*"], [2, "location"], [2, "name"], [2, "capacity"], [2, "highest"], [2, "lowest"], [2, "average"], [0, "singer id"], [0, "name"], [0, "country"], [0, "song name"], [0, "song release year"], [0, "age"], [0, "is male"], [2, "concert id"], [2, "concert name"], [2, "theme"], [2, "year"], [1, "concert id"], [1, "singer id"], [2, "stadium_id"]], "column_names_original": [[-1, "*"], [2, "location"], [2, "name"], [2, "capacity"], [2, "highest"], [2, "lowest"], [2, "average"], [0, "singer_id"], [0, "name"], [0, "country"], [0, "song_name"], [0, "song_release_year"], [0, "age"], [0, "is_male"], [2, "concert_id"], [2, "concert_name"], [2, "theme"], [2, "year"], [1, "concert_id"], [1, "singer_id"], [2, "stadium_id"]], "column_types": ["text", "text", "text", "number", "number", "number", "number", "number", "text", "text", "text", "text", "number", "others", "number", "text", "text", "text", "number", "text", "text"], "primary_keys": [7, 14, 20, 20], "foreign_keys": [[19, 7], [20, 14]]}, {"db_id": "concert_singer_total_1", "table_names": ["stadium", "singer", "singer_in_concert_concert"], "table_names_original": ["stadium", "singer", "singer_in_concert_concert"], "column_names": [[-1, "*"], [0, "stadium id"], [0, "location"], [0, "name"], [0, "capacity"], [0, "highest"], [0, "lowest"], [0, "average"], [1, "singer id"], [1, "name"], [1, "country"], [1, "song name"], [1, "song release year"], [1, "age"], [1, "is male"], [2, "concert name"], [2, "theme"], [2, "stadium id"], [2, "year"], [2, "singer id"], [2, "concert_id"]], "column_names_original": [[-1, "*"], [0, "stadium_id"], [0, "location"], [0, "name"], [0, "capacity"], [0, "highest"], [0, "lowest"], [0, "average"], [1, "singer_id"], [1, "name"], [1, "country"], [1, "song_name"], [1, "song_release_year"], [1, "age"], [1, "is_male"], [2, "concert_name"], [2, "theme"], [2, "stadium_id"], [2, "year"], [2, "singer_id"], [2, "concert_id"]], "column_types": ["text", "number", "text", "text", "number", "number", "number", "number", "number", "text", "text", "text", "text", "number", "others", "text", "text", "text", "text", "text", "number"], "primary_keys": [1, 8, 20], "foreign_keys": [[17, 1], [19, 8]]}, {"db_id": "pets_1_total_1", "table_names": ["pets", "student_has_pet"], "table_names_original": ["pets", "student_has_pet"], "column_names": [[-1, "*"], [1, "lname"], [1, "fname"], [1, "age"], [1, "sex"], [1, "major"], [1, "advisor"], [1, "city code"], [1, "petid"], [0, "petid"], [0, "pettype"], [0, "pet age"], [0, "weight"], [1, "stuid"]], "column_names_original": [[-1, "*"], [1, "lname"], [1, "fname"], [1, "age"], [1, "sex"], [1, "major"], [1, "advisor"], [1, "city_code"], [1, "petid"], [0, "petid"], [0, "pettype"], [0, "pet_age"], [0, "weight"], [1, "stuid"]], "column_types": ["text", "text", "text", "number", "text", "number", "number", "text", "number", "number", "text", "number", "number", "number"], "primary_keys": [9, 13], "foreign_keys": [[8, 9]]}, {"db_id": "car_1_total_4", "table_names": ["car makers", "model list", "car names", "cars data", "continents_countries"], "table_names_original": ["car_makers", "model_list", "car_names", "cars_data", "continents_countries"], "column_names": [[-1, "*"], [4, "continent continents"], [4, "countryid"], [4, "countryname"], [0, "id"], [0, "maker"], [0, "fullname"], [0, "country"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "contid"]], "column_names_original": [[-1, "*"], [4, "continent_continents"], [4, "countryid"], [4, "countryname"], [0, "id"], [0, "maker"], [0, "fullname"], [0, "country"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "contid"]], "column_types": ["text", "text", "number", "text", "number", "text", "text", "text", "number", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [2, 4, 8, 11, 14, 22], "foreign_keys": [[7, 2], [9, 4], [12, 10], [14, 11]]}, {"db_id": "car_1_total_3", "table_names": ["continents", "countries", "car makers", "model list", "car_names_cars_data"], "table_names_original": ["continents", "countries", "car_makers", "model_list", "car_names_cars_data"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [2, "id"], [2, "maker"], [2, "fullname"], [2, "country"], [3, "modelid"], [3, "maker"], [3, "model"], [4, "model"], [4, "make"], [4, "mpg"], [4, "cylinders"], [4, "edispl"], [4, "horsepower"], [4, "weight"], [4, "accelerate"], [4, "year"], [4, "makeid"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [2, "id"], [2, "maker"], [2, "fullname"], [2, "country"], [3, "modelid"], [3, "maker"], [3, "model"], [4, "model"], [4, "make"], [4, "mpg"], [4, "cylinders"], [4, "edispl"], [4, "horsepower"], [4, "weight"], [4, "accelerate"], [4, "year"], [4, "makeid"]], "column_types": ["text", "number", "text", "number", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [1, 3, 6, 10, 22], "foreign_keys": [[5, 1], [9, 3], [11, 6], [13, 12]]}, {"db_id": "car_1_total_1", "table_names": ["continents", "countries", "car makers", "model list", "cars_data_car_names"], "table_names_original": ["continents", "countries", "car_makers", "model_list", "cars_data_car_names"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [2, "id"], [2, "maker"], [2, "fullname"], [2, "country"], [3, "modelid"], [3, "maker"], [3, "model"], [4, "model"], [4, "make"], [4, "mpg"], [4, "cylinders"], [4, "edispl"], [4, "horsepower"], [4, "weight"], [4, "accelerate"], [4, "year"], [4, "id"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [2, "id"], [2, "maker"], [2, "fullname"], [2, "country"], [3, "modelid"], [3, "maker"], [3, "model"], [4, "model"], [4, "make"], [4, "mpg"], [4, "cylinders"], [4, "edispl"], [4, "horsepower"], [4, "weight"], [4, "accelerate"], [4, "year"], [4, "id"]], "column_types": ["text", "number", "text", "number", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [1, 3, 6, 10, 22], "foreign_keys": [[5, 1], [9, 3], [11, 6], [13, 12]]}, {"db_id": "car_1_total_6", "table_names": ["continents", "model list", "car names", "cars data", "car_makers_countries"], "table_names_original": ["continents", "model_list", "car_names", "cars_data", "car_makers_countries"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [4, "countryname"], [4, "continent"], [4, "id"], [4, "maker"], [4, "fullname"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "country"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [4, "countryname"], [4, "continent"], [4, "id"], [4, "maker"], [4, "fullname"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "country"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "text", "number", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "text"], "primary_keys": [1, 5, 8, 11, 14, 22], "foreign_keys": [[4, 1], [9, 5], [12, 10], [14, 11]]}, {"db_id": "car_1_total_7", "table_names": ["continents", "countries", "car names", "cars data", "car_makers_model_list"], "table_names_original": ["continents", "countries", "car_names", "cars_data", "car_makers_model_list"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [4, "maker car makers"], [4, "fullname"], [4, "country"], [4, "modelid"], [4, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "id"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [1, "countryid"], [1, "countryname"], [1, "continent"], [4, "maker_car_makers"], [4, "fullname"], [4, "country"], [4, "modelid"], [4, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "id"]], "column_types": ["text", "number", "text", "number", "text", "number", "text", "text", "text", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [1, 3, 9, 11, 14, 22], "foreign_keys": [[5, 1], [8, 3], [12, 10], [14, 11]]}, {"db_id": "car_1_total_8", "table_names": ["continents", "model list", "car names", "cars data", "countries_car_makers"], "table_names_original": ["continents", "model_list", "car_names", "cars_data", "countries_car_makers"], "column_names": [[-1, "*"], [0, "contid"], [0, "continent"], [4, "countryname"], [4, "continent"], [4, "id"], [4, "maker"], [4, "fullname"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "countryid"]], "column_names_original": [[-1, "*"], [0, "contid"], [0, "continent"], [4, "countryname"], [4, "continent"], [4, "id"], [4, "maker"], [4, "fullname"], [1, "modelid"], [1, "maker"], [1, "model"], [2, "makeid"], [2, "model"], [2, "make"], [3, "id"], [3, "mpg"], [3, "cylinders"], [3, "edispl"], [3, "horsepower"], [3, "weight"], [3, "accelerate"], [3, "year"], [4, "countryid"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "text", "number", "number", "text", "number", "text", "text", "number", "text", "number", "number", "text", "number", "number", "number", "number"], "primary_keys": [1, 5, 8, 11, 14, 22], "foreign_keys": [[4, 1], [9, 5], [12, 10], [14, 11]]}, {"db_id": "flight_2_total_1", "table_names": ["airlines", "flights_airports"], "table_names_original": ["airlines", "flights_airports"], "column_names": [[-1, "*"], [0, "uid"], [0, "airline"], [0, "abbreviation"], [0, "country"], [1, "city"], [1, "airportname"], [1, "country"], [1, "countryabbrev"], [1, "airline"], [1, "flightno"], [1, "destairport"], [1, "sourceairport"]], "column_names_original": [[-1, "*"], [0, "uid"], [0, "airline"], [0, "abbreviation"], [0, "country"], [1, "city"], [1, "airportname"], [1, "country"], [1, "countryabbrev"], [1, "airline"], [1, "flightno"], [1, "destairport"], [1, "sourceairport"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text"], "primary_keys": [1, 9, 12], "foreign_keys": [[11, 12]]}, {"db_id": "flight_2_total_3", "table_names": ["airports", "flights_airlines"], "table_names_original": ["airports", "flights_airlines"], "column_names": [[-1, "*"], [1, "airline airlines"], [1, "abbreviation"], [1, "country"], [0, "city"], [0, "airportcode"], [0, "airportname"], [0, "country"], [0, "countryabbrev"], [1, "flightno"], [1, "sourceairport"], [1, "destairport"], [1, "airline"]], "column_names_original": [[-1, "*"], [1, "airline_airlines"], [1, "abbreviation"], [1, "country"], [0, "city"], [0, "airportcode"], [0, "airportname"], [0, "country"], [0, "countryabbrev"], [1, "flightno"], [1, "sourceairport"], [1, "destairport"], [1, "airline"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "number"], "primary_keys": [5, 12], "foreign_keys": [[11, 5], [12, 5]]}, {"db_id": "flight_2_total_0", "table_names": ["airports", "airlines_flights"], "table_names_original": ["airports", "airlines_flights"], "column_names": [[-1, "*"], [1, "airline airlines"], [1, "abbreviation"], [1, "country"], [0, "city"], [0, "airportcode"], [0, "airportname"], [0, "country"], [0, "countryabbrev"], [1, "flightno"], [1, "sourceairport"], [1, "destairport"], [1, "uid"]], "column_names_original": [[-1, "*"], [1, "airline_airlines"], [1, "abbreviation"], [1, "country"], [0, "city"], [0, "airportcode"], [0, "airportname"], [0, "country"], [0, "countryabbrev"], [1, "flightno"], [1, "sourceairport"], [1, "destairport"], [1, "uid"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "number"], "primary_keys": [5, 12], "foreign_keys": [[11, 5], [12, 5]]}, {"db_id": "employee_hire_evaluation_total_0", "table_names": ["shop", "hiring", "employee_evaluation"], "table_names_original": ["shop", "hiring", "employee_evaluation"], "column_names": [[-1, "*"], [2, "name"], [2, "age"], [2, "city"], [0, "shop id"], [0, "name"], [0, "location"], [0, "district"], [0, "number products"], [0, "manager name"], [1, "shop id"], [1, "employee id"], [1, "start from"], [1, "is full time"], [2, "year awarded"], [2, "bonus"], [2, "employee_id"]], "column_names_original": [[-1, "*"], [2, "name"], [2, "age"], [2, "city"], [0, "shop_id"], [0, "name"], [0, "location"], [0, "district"], [0, "number_products"], [0, "manager_name"], [1, "shop_id"], [1, "employee_id"], [1, "start_from"], [1, "is_full_time"], [2, "year_awarded"], [2, "bonus"], [2, "employee_id"]], "column_types": ["text", "text", "number", "text", "number", "text", "text", "text", "number", "text", "number", "number", "text", "others", "text", "number", "number"], "primary_keys": [4, 11, 16], "foreign_keys": [[11, 16], [10, 4]]}, {"db_id": "employee_hire_evaluation_total_1", "table_names": ["employee", "evaluation", "hiring_shop"], "table_names_original": ["employee", "evaluation", "hiring_shop"], "column_names": [[-1, "*"], [0, "employee id"], [0, "name"], [0, "age"], [0, "city"], [2, "name"], [2, "location"], [2, "district"], [2, "number products"], [2, "manager name"], [2, "employee id"], [2, "start from"], [2, "is full time"], [1, "employee id"], [1, "year awarded"], [1, "bonus"], [2, "shop_id"]], "column_names_original": [[-1, "*"], [0, "employee_id"], [0, "name"], [0, "age"], [0, "city"], [2, "name"], [2, "location"], [2, "district"], [2, "number_products"], [2, "manager_name"], [2, "employee_id"], [2, "start_from"], [2, "is_full_time"], [1, "employee_id"], [1, "year_awarded"], [1, "bonus"], [2, "shop_id"]], "column_types": ["text", "number", "text", "number", "text", "text", "text", "text", "number", "text", "number", "text", "others", "text", "text", "number", "number"], "primary_keys": [1, 10, 13, 16], "foreign_keys": [[10, 1], [13, 1]]}, {"db_id": "cre_Doc_Template_Mgt_total_0", "table_names": ["reference template types", "paragraphs", "documents_templates"], "table_names_original": ["ref_template_types", "paragraphs", "documents_templates"], "column_names": [[-1, "*"], [0, "template type code"], [0, "template type description"], [2, "version number"], [2, "template type code"], [2, "date effective from"], [2, "date effective to"], [2, "template details"], [2, "document id"], [2, "document name"], [2, "document description"], [2, "other details"], [1, "paragraph id"], [1, "document id"], [1, "paragraph text"], [1, "other details"], [2, "template_id"]], "column_names_original": [[-1, "*"], [0, "template_type_code"], [0, "template_type_description"], [2, "version_number"], [2, "template_type_code"], [2, "date_effective_from"], [2, "date_effective_to"], [2, "template_details"], [2, "document_id"], [2, "document_name"], [2, "document_description"], [2, "other_details"], [1, "paragraph_id"], [1, "document_id"], [1, "paragraph_text"], [1, "other_details"], [2, "template_id"]], "column_types": ["text", "text", "text", "number", "text", "time", "time", "text", "number", "text", "text", "text", "number", "number", "text", "text", "number"], "primary_keys": [1, 8, 12, 16], "foreign_keys": [[4, 1], [13, 8]]}, {"db_id": "cre_Doc_Template_Mgt_total_1", "table_names": ["reference template types", "templates", "paragraphs_documents"], "table_names_original": ["ref_template_types", "templates", "paragraphs_documents"], "column_names": [[-1, "*"], [0, "template type code"], [0, "template type description"], [1, "template id"], [1, "version number"], [1, "template type code"], [1, "date effective from"], [1, "date effective to"], [1, "template details"], [2, "template id"], [2, "document name"], [2, "document description"], [2, "other details documents"], [2, "paragraph id"], [2, "paragraph text"], [2, "other details paragraphs"], [2, "document_id"]], "column_names_original": [[-1, "*"], [0, "template_type_code"], [0, "template_type_description"], [1, "template_id"], [1, "version_number"], [1, "template_type_code"], [1, "date_effective_from"], [1, "date_effective_to"], [1, "template_details"], [2, "template_id"], [2, "document_name"], [2, "document_description"], [2, "other_details_documents"], [2, "paragraph_id"], [2, "paragraph_text"], [2, "other_details_paragraphs"], [2, "document_id"]], "column_types": ["text", "text", "text", "number", "number", "text", "time", "time", "text", "number", "text", "text", "text", "number", "text", "text", "number"], "primary_keys": [1, 3, 13, 16], "foreign_keys": [[5, 1], [9, 3]]}, {"db_id": "course_teach_total_0", "table_names": ["course", "course_arrange_teacher"], "table_names_original": ["course", "course_arrange_teacher"], "column_names": [[-1, "*"], [0, "course id"], [0, "staring date"], [0, "course"], [1, "name"], [1, "age"], [1, "hometown"], [1, "course id"], [1, "grade"], [1, "teacher_id"]], "column_names_original": [[-1, "*"], [0, "course_id"], [0, "staring_date"], [0, "course"], [1, "name"], [1, "age"], [1, "hometown"], [1, "course_id"], [1, "grade"], [1, "teacher_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "number", "number"], "primary_keys": [1, 7, 9], "foreign_keys": [[7, 1]]}, {"db_id": "museum_visit_total_0", "table_names": ["museum", "visitor_visit"], "table_names_original": ["museum", "visitor_visit"], "column_names": [[-1, "*"], [0, "museum id"], [0, "name"], [0, "num of staff"], [0, "open year"], [1, "name"], [1, "level of membership"], [1, "age"], [1, "museum id"], [1, "num of ticket"], [1, "total spent"], [1, "id"]], "column_names_original": [[-1, "*"], [0, "museum_id"], [0, "name"], [0, "num_of_staff"], [0, "open_year"], [1, "name"], [1, "level_of_membership"], [1, "age"], [1, "museum_id"], [1, "num_of_ticket"], [1, "total_spent"], [1, "id"]], "column_types": ["text", "number", "text", "number", "text", "text", "number", "number", "number", "number", "number", "number"], "primary_keys": [1, 8, 11], "foreign_keys": [[8, 1]]}, {"db_id": "museum_visit_total_1", "table_names": ["customer", "museum_visit"], "table_names_original": ["visitor", "museum_visit"], "column_names": [[-1, "*"], [1, "name"], [1, "num of staff"], [1, "open year"], [0, "id"], [0, "name"], [0, "level of membership"], [0, "age"], [1, "visitor id"], [1, "num of ticket"], [1, "total spent"], [1, "museum_id"]], "column_names_original": [[-1, "*"], [1, "name"], [1, "num_of_staff"], [1, "open_year"], [0, "id"], [0, "name"], [0, "level_of_membership"], [0, "age"], [1, "visitor_id"], [1, "num_of_ticket"], [1, "total_spent"], [1, "museum_id"]], "column_types": ["text", "text", "number", "text", "number", "text", "number", "number", "text", "number", "number", "number"], "primary_keys": [4, 11], "foreign_keys": [[8, 4]]}, {"db_id": "battle_death_total_0", "table_names": ["battle", "death_ship"], "table_names_original": ["battle", "death_ship"], "column_names": [[-1, "*"], [0, "id"], [0, "name"], [0, "date"], [0, "bulgarian commander"], [0, "latin commander"], [0, "result"], [1, "lost in battle"], [1, "name"], [1, "tonnage"], [1, "ship type"], [1, "location"], [1, "disposition of ship"], [1, "id death"], [1, "note"], [1, "killed"], [1, "injured"], [1, "caused_by_ship_id"]], "column_names_original": [[-1, "*"], [0, "id"], [0, "name"], [0, "date"], [0, "bulgarian_commander"], [0, "latin_commander"], [0, "result"], [1, "lost_in_battle"], [1, "name"], [1, "tonnage"], [1, "ship_type"], [1, "location"], [1, "disposition_of_ship"], [1, "id_death"], [1, "note"], [1, "killed"], [1, "injured"], [1, "caused_by_ship_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "number", "text", "number", "number", "number"], "primary_keys": [1, 13, 17], "foreign_keys": [[7, 1]]}, {"db_id": "student_transcripts_tracking_total_7", "table_names": ["addresses", "courses", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents", "degree_programs_departments"], "table_names_original": ["addresses", "courses", "sections", "semesters", "students", "student_enrolment", "student_enrolment_courses", "transcripts", "transcript_contents", "degree_programs_departments"], "column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "line 3"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [0, "other address details"], [1, "course id"], [1, "course name"], [1, "course description"], [1, "other details"], [9, "department name"], [9, "department description"], [9, "other details departments"], [9, "degree program id"], [9, "degree summary name"], [9, "degree summary description"], [9, "other details degree programs"], [2, "section id"], [2, "course id"], [2, "section name"], [2, "section description"], [2, "other details"], [3, "semester id"], [3, "semester name"], [3, "semester description"], [3, "other details"], [4, "student id"], [4, "current address id"], [4, "permanent address id"], [4, "first name"], [4, "middle name"], [4, "last name"], [4, "cell mobile number"], [4, "email address"], [4, "ssn"], [4, "date first registered"], [4, "date left"], [4, "other student details"], [5, "student enrolment id"], [5, "degree program id"], [5, "semester id"], [5, "student id"], [5, "other details"], [6, "student course id"], [6, "course id"], [6, "student enrolment id"], [7, "transcript id"], [7, "transcript date"], [7, "other details"], [8, "student course id"], [8, "transcript id"], [9, "department_id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "line_3"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [0, "other_address_details"], [1, "course_id"], [1, "course_name"], [1, "course_description"], [1, "other_details"], [9, "department_name"], [9, "department_description"], [9, "other_details_departments"], [9, "degree_program_id"], [9, "degree_summary_name"], [9, "degree_summary_description"], [9, "other_details_degree_programs"], [2, "section_id"], [2, "course_id"], [2, "section_name"], [2, "section_description"], [2, "other_details"], [3, "semester_id"], [3, "semester_name"], [3, "semester_description"], [3, "other_details"], [4, "student_id"], [4, "current_address_id"], [4, "permanent_address_id"], [4, "first_name"], [4, "middle_name"], [4, "last_name"], [4, "cell_mobile_number"], [4, "email_address"], [4, "ssn"], [4, "date_first_registered"], [4, "date_left"], [4, "other_student_details"], [5, "student_enrolment_id"], [5, "degree_program_id"], [5, "semester_id"], [5, "student_id"], [5, "other_details"], [6, "student_course_id"], [6, "course_id"], [6, "student_enrolment_id"], [7, "transcript_id"], [7, "transcript_date"], [7, "other_details"], [8, "student_course_id"], [8, "transcript_id"], [9, "department_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "number", "text", "number", "number", "number", "number", "time", "text", "number", "number", "number"], "primary_keys": [1, 10, 17, 21, 26, 30, 42, 47, 50, 55], "foreign_keys": [[22, 10], [32, 1], [31, 1], [45, 30], [44, 26], [43, 17], [49, 42], [48, 10], [54, 50], [55, 47]]}, {"db_id": "student_transcripts_tracking_total_2", "table_names": ["addresses", "courses", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcripts", "transcript contents", "departments_degree_programs"], "table_names_original": ["addresses", "courses", "sections", "semesters", "students", "student_enrolment", "student_enrolment_courses", "transcripts", "transcript_contents", "departments_degree_programs"], "column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "line 3"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [0, "other address details"], [1, "course id"], [1, "course name"], [1, "course description"], [1, "other details"], [9, "department name"], [9, "department description"], [9, "other details departments"], [9, "degree program id"], [9, "degree summary name"], [9, "degree summary description"], [9, "other details degree programs"], [2, "section id"], [2, "course id"], [2, "section name"], [2, "section description"], [2, "other details"], [3, "semester id"], [3, "semester name"], [3, "semester description"], [3, "other details"], [4, "student id"], [4, "current address id"], [4, "permanent address id"], [4, "first name"], [4, "middle name"], [4, "last name"], [4, "cell mobile number"], [4, "email address"], [4, "ssn"], [4, "date first registered"], [4, "date left"], [4, "other student details"], [5, "student enrolment id"], [5, "degree program id"], [5, "semester id"], [5, "student id"], [5, "other details"], [6, "student course id"], [6, "course id"], [6, "student enrolment id"], [7, "transcript id"], [7, "transcript date"], [7, "other details"], [8, "student course id"], [8, "transcript id"], [9, "department_id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "line_3"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [0, "other_address_details"], [1, "course_id"], [1, "course_name"], [1, "course_description"], [1, "other_details"], [9, "department_name"], [9, "department_description"], [9, "other_details_departments"], [9, "degree_program_id"], [9, "degree_summary_name"], [9, "degree_summary_description"], [9, "other_details_degree_programs"], [2, "section_id"], [2, "course_id"], [2, "section_name"], [2, "section_description"], [2, "other_details"], [3, "semester_id"], [3, "semester_name"], [3, "semester_description"], [3, "other_details"], [4, "student_id"], [4, "current_address_id"], [4, "permanent_address_id"], [4, "first_name"], [4, "middle_name"], [4, "last_name"], [4, "cell_mobile_number"], [4, "email_address"], [4, "ssn"], [4, "date_first_registered"], [4, "date_left"], [4, "other_student_details"], [5, "student_enrolment_id"], [5, "degree_program_id"], [5, "semester_id"], [5, "student_id"], [5, "other_details"], [6, "student_course_id"], [6, "course_id"], [6, "student_enrolment_id"], [7, "transcript_id"], [7, "transcript_date"], [7, "other_details"], [8, "student_course_id"], [8, "transcript_id"], [9, "department_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "number", "text", "number", "number", "number", "number", "time", "text", "number", "number", "number"], "primary_keys": [1, 10, 17, 21, 26, 30, 42, 47, 50, 55], "foreign_keys": [[22, 10], [32, 1], [31, 1], [45, 30], [44, 26], [43, 17], [49, 42], [48, 10], [54, 50], [55, 47]]}, {"db_id": "student_transcripts_tracking_total_6", "table_names": ["addresses", "courses", "departments", "degree programs", "sections", "students", "student enrolment courses", "transcripts", "transcript contents", "semesters_student_enrolment"], "table_names_original": ["addresses", "courses", "departments", "degree_programs", "sections", "students", "student_enrolment_courses", "transcripts", "transcript_contents", "semesters_student_enrolment"], "column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "line 3"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [0, "other address details"], [1, "course id"], [1, "course name"], [1, "course description"], [1, "other details"], [2, "department id"], [2, "department name"], [2, "department description"], [2, "other details"], [3, "degree program id"], [3, "department id"], [3, "degree summary name"], [3, "degree summary description"], [3, "other details"], [4, "section id"], [4, "course id"], [4, "section name"], [4, "section description"], [4, "other details"], [9, "semester name"], [9, "semester description"], [9, "other details semesters"], [5, "student id"], [5, "current address id"], [5, "permanent address id"], [5, "first name"], [5, "middle name"], [5, "last name"], [5, "cell mobile number"], [5, "email address"], [5, "ssn"], [5, "date first registered"], [5, "date left"], [5, "other student details"], [9, "student enrolment id"], [9, "degree program id"], [9, "student id"], [9, "other details student enrolment"], [6, "student course id"], [6, "course id"], [6, "student enrolment id"], [7, "transcript id"], [7, "transcript date"], [7, "other details"], [8, "student course id"], [8, "transcript id"], [9, "semester_id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "line_3"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [0, "other_address_details"], [1, "course_id"], [1, "course_name"], [1, "course_description"], [1, "other_details"], [2, "department_id"], [2, "department_name"], [2, "department_description"], [2, "other_details"], [3, "degree_program_id"], [3, "department_id"], [3, "degree_summary_name"], [3, "degree_summary_description"], [3, "other_details"], [4, "section_id"], [4, "course_id"], [4, "section_name"], [4, "section_description"], [4, "other_details"], [9, "semester_name"], [9, "semester_description"], [9, "other_details_semesters"], [5, "student_id"], [5, "current_address_id"], [5, "permanent_address_id"], [5, "first_name"], [5, "middle_name"], [5, "last_name"], [5, "cell_mobile_number"], [5, "email_address"], [5, "ssn"], [5, "date_first_registered"], [5, "date_left"], [5, "other_student_details"], [9, "student_enrolment_id"], [9, "degree_program_id"], [9, "student_id"], [9, "other_details_student_enrolment"], [6, "student_course_id"], [6, "course_id"], [6, "student_enrolment_id"], [7, "transcript_id"], [7, "transcript_date"], [7, "other_details"], [8, "student_course_id"], [8, "transcript_id"], [9, "semester_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "text", "number", "number", "number", "number", "time", "text", "number", "number", "number"], "primary_keys": [1, 10, 14, 18, 23, 31, 43, 47, 50, 55], "foreign_keys": [[19, 14], [24, 10], [33, 1], [32, 1], [45, 31], [44, 18], [49, 43], [48, 10], [54, 50], [55, 47]]}, {"db_id": "student_transcripts_tracking_total_5", "table_names": ["addresses", "courses", "departments", "degree programs", "sections", "semesters", "student enrolment courses", "transcripts", "transcript contents", "students_student_enrolment"], "table_names_original": ["addresses", "courses", "departments", "degree_programs", "sections", "semesters", "student_enrolment_courses", "transcripts", "transcript_contents", "students_student_enrolment"], "column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "line 3"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [0, "other address details"], [1, "course id"], [1, "course name"], [1, "course description"], [1, "other details"], [2, "department id"], [2, "department name"], [2, "department description"], [2, "other details"], [3, "degree program id"], [3, "department id"], [3, "degree summary name"], [3, "degree summary description"], [3, "other details"], [4, "section id"], [4, "course id"], [4, "section name"], [4, "section description"], [4, "other details"], [5, "semester id"], [5, "semester name"], [5, "semester description"], [5, "other details"], [9, "current address id"], [9, "permanent address id"], [9, "first name"], [9, "middle name"], [9, "last name"], [9, "cell mobile number"], [9, "email address"], [9, "ssn"], [9, "date first registered"], [9, "date left"], [9, "other student details"], [9, "student enrolment id"], [9, "degree program id"], [9, "semester id"], [9, "other details"], [6, "student course id"], [6, "course id"], [6, "student enrolment id"], [7, "transcript id"], [7, "transcript date"], [7, "other details"], [8, "student course id"], [8, "transcript id"], [9, "student_id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "line_3"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [0, "other_address_details"], [1, "course_id"], [1, "course_name"], [1, "course_description"], [1, "other_details"], [2, "department_id"], [2, "department_name"], [2, "department_description"], [2, "other_details"], [3, "degree_program_id"], [3, "department_id"], [3, "degree_summary_name"], [3, "degree_summary_description"], [3, "other_details"], [4, "section_id"], [4, "course_id"], [4, "section_name"], [4, "section_description"], [4, "other_details"], [5, "semester_id"], [5, "semester_name"], [5, "semester_description"], [5, "other_details"], [9, "current_address_id"], [9, "permanent_address_id"], [9, "first_name"], [9, "middle_name"], [9, "last_name"], [9, "cell_mobile_number"], [9, "email_address"], [9, "ssn"], [9, "date_first_registered"], [9, "date_left"], [9, "other_student_details"], [9, "student_enrolment_id"], [9, "degree_program_id"], [9, "semester_id"], [9, "other_details"], [6, "student_course_id"], [6, "course_id"], [6, "student_enrolment_id"], [7, "transcript_id"], [7, "transcript_date"], [7, "other_details"], [8, "student_course_id"], [8, "transcript_id"], [9, "student_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "text", "number", "number", "number", "number", "time", "text", "number", "number", "number"], "primary_keys": [1, 10, 14, 18, 23, 28, 43, 47, 50, 55], "foreign_keys": [[19, 14], [24, 10], [33, 1], [32, 1], [45, 28], [44, 18], [49, 43], [48, 10], [54, 50], [55, 47]]}, {"db_id": "student_transcripts_tracking_total_1", "table_names": ["addresses", "courses", "departments", "sections", "semesters", "students", "student enrolment courses", "transcripts", "transcript contents", "degree_programs_student_enrolment"], "table_names_original": ["addresses", "courses", "departments", "sections", "semesters", "students", "student_enrolment_courses", "transcripts", "transcript_contents", "degree_programs_student_enrolment"], "column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "line 3"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [0, "other address details"], [1, "course id"], [1, "course name"], [1, "course description"], [1, "other details"], [2, "department id"], [2, "department name"], [2, "department description"], [2, "other details"], [9, "department id"], [9, "degree summary name"], [9, "degree summary description"], [9, "other details degree programs"], [3, "section id"], [3, "course id"], [3, "section name"], [3, "section description"], [3, "other details"], [4, "semester id"], [4, "semester name"], [4, "semester description"], [4, "other details"], [5, "student id"], [5, "current address id"], [5, "permanent address id"], [5, "first name"], [5, "middle name"], [5, "last name"], [5, "cell mobile number"], [5, "email address"], [5, "ssn"], [5, "date first registered"], [5, "date left"], [5, "other student details"], [9, "student enrolment id"], [9, "semester id"], [9, "student id"], [9, "other details student enrolment"], [6, "student course id"], [6, "course id"], [6, "student enrolment id"], [7, "transcript id"], [7, "transcript date"], [7, "other details"], [8, "student course id"], [8, "transcript id"], [9, "degree_program_id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "line_3"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [0, "other_address_details"], [1, "course_id"], [1, "course_name"], [1, "course_description"], [1, "other_details"], [2, "department_id"], [2, "department_name"], [2, "department_description"], [2, "other_details"], [9, "department_id"], [9, "degree_summary_name"], [9, "degree_summary_description"], [9, "other_details_degree_programs"], [3, "section_id"], [3, "course_id"], [3, "section_name"], [3, "section_description"], [3, "other_details"], [4, "semester_id"], [4, "semester_name"], [4, "semester_description"], [4, "other_details"], [5, "student_id"], [5, "current_address_id"], [5, "permanent_address_id"], [5, "first_name"], [5, "middle_name"], [5, "last_name"], [5, "cell_mobile_number"], [5, "email_address"], [5, "ssn"], [5, "date_first_registered"], [5, "date_left"], [5, "other_student_details"], [9, "student_enrolment_id"], [9, "semester_id"], [9, "student_id"], [9, "other_details_student_enrolment"], [6, "student_course_id"], [6, "course_id"], [6, "student_enrolment_id"], [7, "transcript_id"], [7, "transcript_date"], [7, "other_details"], [8, "student_course_id"], [8, "transcript_id"], [9, "degree_program_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "text", "number", "number", "number", "number", "time", "text", "number", "number", "number"], "primary_keys": [1, 10, 14, 22, 27, 31, 43, 47, 50, 55], "foreign_keys": [[18, 14], [23, 10], [33, 1], [32, 1], [45, 31], [44, 27], [49, 43], [48, 10], [54, 50], [55, 47]]}, {"db_id": "student_transcripts_tracking_total_3", "table_names": ["addresses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "transcripts", "transcript contents", "courses_student_enrolment_courses"], "table_names_original": ["addresses", "departments", "degree_programs", "sections", "semesters", "students", "student_enrolment", "transcripts", "transcript_contents", "courses_student_enrolment_courses"], "column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "line 3"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [0, "other address details"], [9, "course name"], [9, "course description"], [9, "other details"], [1, "department id"], [1, "department name"], [1, "department description"], [1, "other details"], [2, "degree program id"], [2, "department id"], [2, "degree summary name"], [2, "degree summary description"], [2, "other details"], [3, "section id"], [3, "course id"], [3, "section name"], [3, "section description"], [3, "other details"], [4, "semester id"], [4, "semester name"], [4, "semester description"], [4, "other details"], [5, "student id"], [5, "current address id"], [5, "permanent address id"], [5, "first name"], [5, "middle name"], [5, "last name"], [5, "cell mobile number"], [5, "email address"], [5, "ssn"], [5, "date first registered"], [5, "date left"], [5, "other student details"], [6, "student enrolment id"], [6, "degree program id"], [6, "semester id"], [6, "student id"], [6, "other details"], [9, "student course id"], [9, "student enrolment id"], [7, "transcript id"], [7, "transcript date"], [7, "other details"], [8, "student course id"], [8, "transcript id"], [9, "course_id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "line_3"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [0, "other_address_details"], [9, "course_name"], [9, "course_description"], [9, "other_details"], [1, "department_id"], [1, "department_name"], [1, "department_description"], [1, "other_details"], [2, "degree_program_id"], [2, "department_id"], [2, "degree_summary_name"], [2, "degree_summary_description"], [2, "other_details"], [3, "section_id"], [3, "course_id"], [3, "section_name"], [3, "section_description"], [3, "other_details"], [4, "semester_id"], [4, "semester_name"], [4, "semester_description"], [4, "other_details"], [5, "student_id"], [5, "current_address_id"], [5, "permanent_address_id"], [5, "first_name"], [5, "middle_name"], [5, "last_name"], [5, "cell_mobile_number"], [5, "email_address"], [5, "ssn"], [5, "date_first_registered"], [5, "date_left"], [5, "other_student_details"], [6, "student_enrolment_id"], [6, "degree_program_id"], [6, "semester_id"], [6, "student_id"], [6, "other_details"], [9, "student_course_id"], [9, "student_enrolment_id"], [7, "transcript_id"], [7, "transcript_date"], [7, "other_details"], [8, "student_course_id"], [8, "transcript_id"], [9, "course_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "number", "text", "number", "number", "number", "time", "text", "number", "number", "number"], "primary_keys": [1, 13, 17, 22, 27, 31, 43, 48, 50, 55], "foreign_keys": [[18, 13], [23, 55], [33, 1], [32, 1], [46, 31], [45, 27], [44, 17], [49, 43], [54, 50], [55, 48]]}, {"db_id": "student_transcripts_tracking_total_8", "table_names": ["addresses", "courses", "departments", "degree programs", "sections", "semesters", "students", "student enrolment", "student enrolment courses", "transcript_contents_transcripts"], "table_names_original": ["addresses", "courses", "departments", "degree_programs", "sections", "semesters", "students", "student_enrolment", "student_enrolment_courses", "transcript_contents_transcripts"], "column_names": [[-1, "*"], [0, "address id"], [0, "line 1"], [0, "line 2"], [0, "line 3"], [0, "city"], [0, "zip postcode"], [0, "state province county"], [0, "country"], [0, "other address details"], [1, "course id"], [1, "course name"], [1, "course description"], [1, "other details"], [2, "department id"], [2, "department name"], [2, "department description"], [2, "other details"], [3, "degree program id"], [3, "department id"], [3, "degree summary name"], [3, "degree summary description"], [3, "other details"], [4, "section id"], [4, "course id"], [4, "section name"], [4, "section description"], [4, "other details"], [5, "semester id"], [5, "semester name"], [5, "semester description"], [5, "other details"], [6, "student id"], [6, "current address id"], [6, "permanent address id"], [6, "first name"], [6, "middle name"], [6, "last name"], [6, "cell mobile number"], [6, "email address"], [6, "ssn"], [6, "date first registered"], [6, "date left"], [6, "other student details"], [7, "student enrolment id"], [7, "degree program id"], [7, "semester id"], [7, "student id"], [7, "other details"], [8, "student course id"], [8, "course id"], [8, "student enrolment id"], [9, "transcript date"], [9, "other details"], [9, "student course id"], [9, "transcript_id"]], "column_names_original": [[-1, "*"], [0, "address_id"], [0, "line_1"], [0, "line_2"], [0, "line_3"], [0, "city"], [0, "zip_postcode"], [0, "state_province_county"], [0, "country"], [0, "other_address_details"], [1, "course_id"], [1, "course_name"], [1, "course_description"], [1, "other_details"], [2, "department_id"], [2, "department_name"], [2, "department_description"], [2, "other_details"], [3, "degree_program_id"], [3, "department_id"], [3, "degree_summary_name"], [3, "degree_summary_description"], [3, "other_details"], [4, "section_id"], [4, "course_id"], [4, "section_name"], [4, "section_description"], [4, "other_details"], [5, "semester_id"], [5, "semester_name"], [5, "semester_description"], [5, "other_details"], [6, "student_id"], [6, "current_address_id"], [6, "permanent_address_id"], [6, "first_name"], [6, "middle_name"], [6, "last_name"], [6, "cell_mobile_number"], [6, "email_address"], [6, "ssn"], [6, "date_first_registered"], [6, "date_left"], [6, "other_student_details"], [7, "student_enrolment_id"], [7, "degree_program_id"], [7, "semester_id"], [7, "student_id"], [7, "other_details"], [8, "student_course_id"], [8, "course_id"], [8, "student_enrolment_id"], [9, "transcript_date"], [9, "other_details"], [9, "student_course_id"], [9, "transcript_id"]], "column_types": ["text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "number", "text", "number", "number", "number", "time", "text", "number", "number"], "primary_keys": [1, 10, 14, 18, 23, 28, 32, 44, 49, 55], "foreign_keys": [[19, 14], [24, 10], [34, 1], [33, 1], [47, 32], [46, 28], [45, 18], [51, 44], [50, 10], [55, 49]]}, {"db_id": "student_transcripts_tracking_total_0", "table_names": ["courses", "departments", "degree programs", "sections", "semesters", "student enrolment", "student enrolment courses", "transcripts", "transcript contents", "addresses_students"], "table_names_original": ["courses", "departments", "degree_programs", "sections", "semesters", "student_enrolment", "student_enrolment_courses", "transcripts", "transcript_contents", "addresses_students"], "column_names": [[-1, "*"], [9, "line 1"], [9, "line 2"], [9, "line 3"], [9, "city"], [9, "zip postcode"], [9, "state province county"], [9, "country"], [9, "other address details"], [0, "course id"], [0, "course name"], [0, "course description"], [0, "other details"], [1, "department id"], [1, "department name"], [1, "department description"], [1, "other details"], [2, "degree program id"], [2, "department id"], [2, "degree summary name"], [2, "degree summary description"], [2, "other details"], [3, "section id"], [3, "course id"], [3, "section name"], [3, "section description"], [3, "other details"], [4, "semester id"], [4, "semester name"], [4, "semester description"], [4, "other details"], [9, "student id"], [9, "permanent address id"], [9, "first name"], [9, "middle name"], [9, "last name"], [9, "cell mobile number"], [9, "email address"], [9, "ssn"], [9, "date first registered"], [9, "date left"], [9, "other student details"], [5, "student enrolment id"], [5, "degree program id"], [5, "semester id"], [5, "student id"], [5, "other details"], [6, "student course id"], [6, "course id"], [6, "student enrolment id"], [7, "transcript id"], [7, "transcript date"], [7, "other details"], [8, "student course id"], [8, "transcript id"], [9, "address_id"]], "column_names_original": [[-1, "*"], [9, "line_1"], [9, "line_2"], [9, "line_3"], [9, "city"], [9, "zip_postcode"], [9, "state_province_county"], [9, "country"], [9, "other_address_details"], [0, "course_id"], [0, "course_name"], [0, "course_description"], [0, "other_details"], [1, "department_id"], [1, "department_name"], [1, "department_description"], [1, "other_details"], [2, "degree_program_id"], [2, "department_id"], [2, "degree_summary_name"], [2, "degree_summary_description"], [2, "other_details"], [3, "section_id"], [3, "course_id"], [3, "section_name"], [3, "section_description"], [3, "other_details"], [4, "semester_id"], [4, "semester_name"], [4, "semester_description"], [4, "other_details"], [9, "student_id"], [9, "permanent_address_id"], [9, "first_name"], [9, "middle_name"], [9, "last_name"], [9, "cell_mobile_number"], [9, "email_address"], [9, "ssn"], [9, "date_first_registered"], [9, "date_left"], [9, "other_student_details"], [5, "student_enrolment_id"], [5, "degree_program_id"], [5, "semester_id"], [5, "student_id"], [5, "other_details"], [6, "student_course_id"], [6, "course_id"], [6, "student_enrolment_id"], [7, "transcript_id"], [7, "transcript_date"], [7, "other_details"], [8, "student_course_id"], [8, "transcript_id"], [9, "address_id"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "number", "text", "number", "number", "number", "number", "time", "text", "number", "number", "number"], "primary_keys": [9, 13, 17, 22, 27, 31, 42, 47, 50, 55], "foreign_keys": [[18, 13], [23, 9], [32, 55], [45, 31], [44, 27], [43, 17], [49, 42], [48, 9], [54, 50], [55, 47]]}, {"db_id": "student_transcripts_tracking_total_4", "table_names": ["courses", "departments", "degree programs", "sections", "semesters", "student enrolment", "student enrolment courses", "transcripts", "transcript contents", "students_addresses"], "table_names_original": ["courses", "departments", "degree_programs", "sections", "semesters", "student_enrolment", "student_enrolment_courses", "transcripts", "transcript_contents", "students_addresses"], "column_names": [[-1, "*"], [9, "line 1"], [9, "line 2"], [9, "line 3"], [9, "city"], [9, "zip postcode"], [9, "state province county"], [9, "country"], [9, "other address details"], [0, "course id"], [0, "course name"], [0, "course description"], [0, "other details"], [1, "department id"], [1, "department name"], [1, "department description"], [1, "other details"], [2, "degree program id"], [2, "department id"], [2, "degree summary name"], [2, "degree summary description"], [2, "other details"], [3, "section id"], [3, "course id"], [3, "section name"], [3, "section description"], [3, "other details"], [4, "semester id"], [4, "semester name"], [4, "semester description"], [4, "other details"], [9, "student id"], [9, "current address id"], [9, "first name"], [9, "middle name"], [9, "last name"], [9, "cell mobile number"], [9, "email address"], [9, "ssn"], [9, "date first registered"], [9, "date left"], [9, "other student details"], [5, "student enrolment id"], [5, "degree program id"], [5, "semester id"], [5, "student id"], [5, "other details"], [6, "student course id"], [6, "course id"], [6, "student enrolment id"], [7, "transcript id"], [7, "transcript date"], [7, "other details"], [8, "student course id"], [8, "transcript id"], [9, "permanent_address_id"]], "column_names_original": [[-1, "*"], [9, "line_1"], [9, "line_2"], [9, "line_3"], [9, "city"], [9, "zip_postcode"], [9, "state_province_county"], [9, "country"], [9, "other_address_details"], [0, "course_id"], [0, "course_name"], [0, "course_description"], [0, "other_details"], [1, "department_id"], [1, "department_name"], [1, "department_description"], [1, "other_details"], [2, "degree_program_id"], [2, "department_id"], [2, "degree_summary_name"], [2, "degree_summary_description"], [2, "other_details"], [3, "section_id"], [3, "course_id"], [3, "section_name"], [3, "section_description"], [3, "other_details"], [4, "semester_id"], [4, "semester_name"], [4, "semester_description"], [4, "other_details"], [9, "student_id"], [9, "current_address_id"], [9, "first_name"], [9, "middle_name"], [9, "last_name"], [9, "cell_mobile_number"], [9, "email_address"], [9, "ssn"], [9, "date_first_registered"], [9, "date_left"], [9, "other_student_details"], [5, "student_enrolment_id"], [5, "degree_program_id"], [5, "semester_id"], [5, "student_id"], [5, "other_details"], [6, "student_course_id"], [6, "course_id"], [6, "student_enrolment_id"], [7, "transcript_id"], [7, "transcript_date"], [7, "other_details"], [8, "student_course_id"], [8, "transcript_id"], [9, "permanent_address_id"]], "column_types": ["text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "number", "text", "text", "text", "number", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "text", "time", "time", "text", "number", "number", "number", "number", "text", "number", "number", "number", "number", "time", "text", "number", "number", "number"], "primary_keys": [9, 13, 17, 22, 27, 31, 42, 47, 50, 55], "foreign_keys": [[18, 13], [23, 9], [32, 55], [45, 31], [44, 27], [43, 17], [49, 42], [48, 9], [54, 50], [55, 47]]}, {"db_id": "poker_player_total_0", "table_names": ["people_poker_player"], "table_names_original": ["people_poker_player"], "column_names": [[-1, "*"], [0, "poker player id"], [0, "final table made"], [0, "best finish"], [0, "money rank"], [0, "earnings"], [0, "nationality"], [0, "name"], [0, "birth date"], [0, "height"], [0, "people_id"]], "column_names_original": [[-1, "*"], [0, "poker_player_id"], [0, "final_table_made"], [0, "best_finish"], [0, "money_rank"], [0, "earnings"], [0, "nationality"], [0, "name"], [0, "birth_date"], [0, "height"], [0, "people_id"]], "column_types": ["text", "number", "number", "number", "number", "number", "text", "text", "text", "number", "number"], "primary_keys": [1, 10], "foreign_keys": []}, {"db_id": "voter_1_total_1", "table_names": ["area code state", "contestants_votes"], "table_names_original": ["area_code_state", "contestants_votes"], "column_names": [[-1, "*"], [0, "area code"], [0, "state"], [1, "contestant name"], [1, "vote id"], [1, "phone number"], [1, "state"], [1, "created"], [1, "contestant_number"]], "column_names_original": [[-1, "*"], [0, "area_code"], [0, "state"], [1, "contestant_name"], [1, "vote_id"], [1, "phone_number"], [1, "state"], [1, "created"], [1, "contestant_number"]], "column_types": ["text", "number", "text", "text", "number", "number", "text", "time", "number"], "primary_keys": [1, 4, 8], "foreign_keys": [[6, 2]]}, {"db_id": "voter_1_total_0", "table_names": ["contestants", "area_code_state_votes"], "table_names_original": ["contestants", "area_code_state_votes"], "column_names": [[-1, "*"], [1, "area code"], [0, "contestant number"], [0, "contestant name"], [1, "vote id"], [1, "phone number"], [1, "contestant number"], [1, "created"], [1, "state"]], "column_names_original": [[-1, "*"], [1, "area_code"], [0, "contestant_number"], [0, "contestant_name"], [1, "vote_id"], [1, "phone_number"], [1, "contestant_number"], [1, "created"], [1, "state"]], "column_types": ["text", "number", "number", "text", "number", "number", "number", "time", "text"], "primary_keys": [1, 2, 4], "foreign_keys": [[8, 2]]}, {"db_id": "network_1_total_1", "table_names": ["likes", "friend_highschooler"], "table_names_original": ["likes", "friend_highschooler"], "column_names": [[-1, "*"], [1, "name"], [1, "grade"], [1, "friend id"], [0, "student id"], [0, "liked id"], [1, "student_id"]], "column_names_original": [[-1, "*"], [1, "name"], [1, "grade"], [1, "friend_id"], [0, "student_id"], [0, "liked_id"], [1, "student_id"]], "column_types": ["text", "text", "number", "number", "number", "number", "number"], "primary_keys": [6, 6], "foreign_keys": [[3, 6], [6, 6], [5, 6]]}, {"db_id": "network_1_total_0", "table_names": ["friend", "likes_highschooler"], "table_names_original": ["friend", "likes_highschooler"], "column_names": [[-1, "*"], [1, "name"], [1, "grade"], [0, "student id"], [0, "friend id"], [1, "liked id"], [1, "student_id"]], "column_names_original": [[-1, "*"], [1, "name"], [1, "grade"], [0, "student_id"], [0, "friend_id"], [1, "liked_id"], [1, "student_id"]], "column_types": ["text", "text", "number", "number", "number", "number", "number"], "primary_keys": [3, 6], "foreign_keys": [[4, 6], [3, 6], [5, 6]]}, {"db_id": "dog_kennels_total_4", "table_names": ["breeds", "charges", "sizes", "treatment types", "professionals", "treatments", "dogs_owners"], "table_names_original": ["breeds", "charges", "sizes", "treatment_types", "professionals", "treatments", "dogs_owners"], "column_names": [[-1, "*"], [0, "breed code"], [0, "breed name"], [1, "charge id"], [1, "charge type"], [1, "charge amount"], [2, "size code"], [2, "size description"], [3, "treatment type code"], [3, "treatment type description"], [6, "first name"], [6, "last name"], [6, "street"], [6, "city"], [6, "state"], [6, "zip code"], [6, "email address"], [6, "home phone"], [6, "cell number"], [6, "dog id"], [6, "abandoned yn"], [6, "breed code"], [6, "size code"], [6, "name"], [6, "age"], [6, "date of birth"], [6, "gender"], [6, "weight"], [6, "date arrived"], [6, "date adopted"], [6, "date departed"], [4, "professional id"], [4, "role code"], [4, "first name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip code"], [4, "last name"], [4, "email address"], [4, "home phone"], [4, "cell number"], [5, "treatment id"], [5, "dog id"], [5, "professional id"], [5, "treatment type code"], [5, "date of treatment"], [5, "cost of treatment"], [6, "owner_id"]], "column_names_original": [[-1, "*"], [0, "breed_code"], [0, "breed_name"], [1, "charge_id"], [1, "charge_type"], [1, "charge_amount"], [2, "size_code"], [2, "size_description"], [3, "treatment_type_code"], [3, "treatment_type_description"], [6, "first_name"], [6, "last_name"], [6, "street"], [6, "city"], [6, "state"], [6, "zip_code"], [6, "email_address"], [6, "home_phone"], [6, "cell_number"], [6, "dog_id"], [6, "abandoned_yn"], [6, "breed_code"], [6, "size_code"], [6, "name"], [6, "age"], [6, "date_of_birth"], [6, "gender"], [6, "weight"], [6, "date_arrived"], [6, "date_adopted"], [6, "date_departed"], [4, "professional_id"], [4, "role_code"], [4, "first_name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip_code"], [4, "last_name"], [4, "email_address"], [4, "home_phone"], [4, "cell_number"], [5, "treatment_id"], [5, "dog_id"], [5, "professional_id"], [5, "treatment_type_code"], [5, "date_of_treatment"], [5, "cost_of_treatment"], [6, "owner_id"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "time", "text", "text", "time", "time", "time", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "number", "text", "time", "number", "number"], "primary_keys": [1, 3, 6, 8, 19, 31, 42, 48], "foreign_keys": [[22, 6], [21, 1], [43, 19], [44, 31], [45, 8]]}, {"db_id": "dog_kennels_total_1", "table_names": ["breeds", "charges", "sizes", "treatment types", "owners", "dogs", "professionals_treatments"], "table_names_original": ["breeds", "charges", "sizes", "treatment_types", "owners", "dogs", "professionals_treatments"], "column_names": [[-1, "*"], [0, "breed code"], [0, "breed name"], [1, "charge id"], [1, "charge type"], [1, "charge amount"], [2, "size code"], [2, "size description"], [3, "treatment type code"], [3, "treatment type description"], [4, "owner id"], [4, "first name"], [4, "last name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip code"], [4, "email address"], [4, "home phone"], [4, "cell number"], [5, "dog id"], [5, "owner id"], [5, "abandoned yn"], [5, "breed code"], [5, "size code"], [5, "name"], [5, "age"], [5, "date of birth"], [5, "gender"], [5, "weight"], [5, "date arrived"], [5, "date adopted"], [5, "date departed"], [6, "role code"], [6, "first name"], [6, "street"], [6, "city"], [6, "state"], [6, "zip code"], [6, "last name"], [6, "email address"], [6, "home phone"], [6, "cell number"], [6, "treatment id"], [6, "dog id"], [6, "treatment type code"], [6, "date of treatment"], [6, "cost of treatment"], [6, "professional_id"]], "column_names_original": [[-1, "*"], [0, "breed_code"], [0, "breed_name"], [1, "charge_id"], [1, "charge_type"], [1, "charge_amount"], [2, "size_code"], [2, "size_description"], [3, "treatment_type_code"], [3, "treatment_type_description"], [4, "owner_id"], [4, "first_name"], [4, "last_name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip_code"], [4, "email_address"], [4, "home_phone"], [4, "cell_number"], [5, "dog_id"], [5, "owner_id"], [5, "abandoned_yn"], [5, "breed_code"], [5, "size_code"], [5, "name"], [5, "age"], [5, "date_of_birth"], [5, "gender"], [5, "weight"], [5, "date_arrived"], [5, "date_adopted"], [5, "date_departed"], [6, "role_code"], [6, "first_name"], [6, "street"], [6, "city"], [6, "state"], [6, "zip_code"], [6, "last_name"], [6, "email_address"], [6, "home_phone"], [6, "cell_number"], [6, "treatment_id"], [6, "dog_id"], [6, "treatment_type_code"], [6, "date_of_treatment"], [6, "cost_of_treatment"], [6, "professional_id"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "time", "text", "text", "time", "time", "time", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "time", "number", "number"], "primary_keys": [1, 3, 6, 8, 10, 20, 43, 48], "foreign_keys": [[21, 10], [21, 10], [24, 6], [23, 1], [44, 20], [45, 8]]}, {"db_id": "dog_kennels_total_5", "table_names": ["charges", "sizes", "treatment types", "owners", "professionals", "treatments", "breeds_dogs"], "table_names_original": ["charges", "sizes", "treatment_types", "owners", "professionals", "treatments", "breeds_dogs"], "column_names": [[-1, "*"], [6, "breed name"], [0, "charge id"], [0, "charge type"], [0, "charge amount"], [1, "size code"], [1, "size description"], [2, "treatment type code"], [2, "treatment type description"], [3, "owner id"], [3, "first name"], [3, "last name"], [3, "street"], [3, "city"], [3, "state"], [3, "zip code"], [3, "email address"], [3, "home phone"], [3, "cell number"], [6, "dog id"], [6, "owner id"], [6, "abandoned yn"], [6, "size code"], [6, "name"], [6, "age"], [6, "date of birth"], [6, "gender"], [6, "weight"], [6, "date arrived"], [6, "date adopted"], [6, "date departed"], [4, "professional id"], [4, "role code"], [4, "first name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip code"], [4, "last name"], [4, "email address"], [4, "home phone"], [4, "cell number"], [5, "treatment id"], [5, "dog id"], [5, "professional id"], [5, "treatment type code"], [5, "date of treatment"], [5, "cost of treatment"], [6, "breed_code"]], "column_names_original": [[-1, "*"], [6, "breed_name"], [0, "charge_id"], [0, "charge_type"], [0, "charge_amount"], [1, "size_code"], [1, "size_description"], [2, "treatment_type_code"], [2, "treatment_type_description"], [3, "owner_id"], [3, "first_name"], [3, "last_name"], [3, "street"], [3, "city"], [3, "state"], [3, "zip_code"], [3, "email_address"], [3, "home_phone"], [3, "cell_number"], [6, "dog_id"], [6, "owner_id"], [6, "abandoned_yn"], [6, "size_code"], [6, "name"], [6, "age"], [6, "date_of_birth"], [6, "gender"], [6, "weight"], [6, "date_arrived"], [6, "date_adopted"], [6, "date_departed"], [4, "professional_id"], [4, "role_code"], [4, "first_name"], [4, "street"], [4, "city"], [4, "state"], [4, "zip_code"], [4, "last_name"], [4, "email_address"], [4, "home_phone"], [4, "cell_number"], [5, "treatment_id"], [5, "dog_id"], [5, "professional_id"], [5, "treatment_type_code"], [5, "date_of_treatment"], [5, "cost_of_treatment"], [6, "breed_code"]], "column_types": ["text", "text", "number", "text", "number", "text", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "time", "text", "text", "time", "time", "time", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "number", "text", "time", "number", "text"], "primary_keys": [2, 5, 7, 9, 19, 31, 42, 48], "foreign_keys": [[20, 9], [20, 9], [22, 5], [43, 19], [44, 31], [45, 7]]}, {"db_id": "dog_kennels_total_3", "table_names": ["breeds", "charges", "sizes", "owners", "dogs", "professionals", "treatment_types_treatments"], "table_names_original": ["breeds", "charges", "sizes", "owners", "dogs", "professionals", "treatment_types_treatments"], "column_names": [[-1, "*"], [0, "breed code"], [0, "breed name"], [1, "charge id"], [1, "charge type"], [1, "charge amount"], [2, "size code"], [2, "size description"], [6, "treatment type description"], [3, "owner id"], [3, "first name"], [3, "last name"], [3, "street"], [3, "city"], [3, "state"], [3, "zip code"], [3, "email address"], [3, "home phone"], [3, "cell number"], [4, "dog id"], [4, "owner id"], [4, "abandoned yn"], [4, "breed code"], [4, "size code"], [4, "name"], [4, "age"], [4, "date of birth"], [4, "gender"], [4, "weight"], [4, "date arrived"], [4, "date adopted"], [4, "date departed"], [5, "professional id"], [5, "role code"], [5, "first name"], [5, "street"], [5, "city"], [5, "state"], [5, "zip code"], [5, "last name"], [5, "email address"], [5, "home phone"], [5, "cell number"], [6, "treatment id"], [6, "dog id"], [6, "professional id"], [6, "date of treatment"], [6, "cost of treatment"], [6, "treatment_type_code"]], "column_names_original": [[-1, "*"], [0, "breed_code"], [0, "breed_name"], [1, "charge_id"], [1, "charge_type"], [1, "charge_amount"], [2, "size_code"], [2, "size_description"], [6, "treatment_type_description"], [3, "owner_id"], [3, "first_name"], [3, "last_name"], [3, "street"], [3, "city"], [3, "state"], [3, "zip_code"], [3, "email_address"], [3, "home_phone"], [3, "cell_number"], [4, "dog_id"], [4, "owner_id"], [4, "abandoned_yn"], [4, "breed_code"], [4, "size_code"], [4, "name"], [4, "age"], [4, "date_of_birth"], [4, "gender"], [4, "weight"], [4, "date_arrived"], [4, "date_adopted"], [4, "date_departed"], [5, "professional_id"], [5, "role_code"], [5, "first_name"], [5, "street"], [5, "city"], [5, "state"], [5, "zip_code"], [5, "last_name"], [5, "email_address"], [5, "home_phone"], [5, "cell_number"], [6, "treatment_id"], [6, "dog_id"], [6, "professional_id"], [6, "date_of_treatment"], [6, "cost_of_treatment"], [6, "treatment_type_code"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "time", "text", "text", "time", "time", "time", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "number", "time", "number", "text"], "primary_keys": [1, 3, 6, 9, 19, 32, 43, 48], "foreign_keys": [[20, 9], [20, 9], [23, 6], [22, 1], [44, 19], [45, 32]]}, {"db_id": "dog_kennels_total_0", "table_names": ["breeds", "charges", "sizes", "owners", "dogs", "professionals", "treatments_treatment_types"], "table_names_original": ["breeds", "charges", "sizes", "owners", "dogs", "professionals", "treatments_treatment_types"], "column_names": [[-1, "*"], [0, "breed code"], [0, "breed name"], [1, "charge id"], [1, "charge type"], [1, "charge amount"], [2, "size code"], [2, "size description"], [6, "treatment type description"], [3, "owner id"], [3, "first name"], [3, "last name"], [3, "street"], [3, "city"], [3, "state"], [3, "zip code"], [3, "email address"], [3, "home phone"], [3, "cell number"], [4, "dog id"], [4, "owner id"], [4, "abandoned yn"], [4, "breed code"], [4, "size code"], [4, "name"], [4, "age"], [4, "date of birth"], [4, "gender"], [4, "weight"], [4, "date arrived"], [4, "date adopted"], [4, "date departed"], [5, "professional id"], [5, "role code"], [5, "first name"], [5, "street"], [5, "city"], [5, "state"], [5, "zip code"], [5, "last name"], [5, "email address"], [5, "home phone"], [5, "cell number"], [6, "treatment id"], [6, "dog id"], [6, "professional id"], [6, "date of treatment"], [6, "cost of treatment"], [6, "treatment_type_code"]], "column_names_original": [[-1, "*"], [0, "breed_code"], [0, "breed_name"], [1, "charge_id"], [1, "charge_type"], [1, "charge_amount"], [2, "size_code"], [2, "size_description"], [6, "treatment_type_description"], [3, "owner_id"], [3, "first_name"], [3, "last_name"], [3, "street"], [3, "city"], [3, "state"], [3, "zip_code"], [3, "email_address"], [3, "home_phone"], [3, "cell_number"], [4, "dog_id"], [4, "owner_id"], [4, "abandoned_yn"], [4, "breed_code"], [4, "size_code"], [4, "name"], [4, "age"], [4, "date_of_birth"], [4, "gender"], [4, "weight"], [4, "date_arrived"], [4, "date_adopted"], [4, "date_departed"], [5, "professional_id"], [5, "role_code"], [5, "first_name"], [5, "street"], [5, "city"], [5, "state"], [5, "zip_code"], [5, "last_name"], [5, "email_address"], [5, "home_phone"], [5, "cell_number"], [6, "treatment_id"], [6, "dog_id"], [6, "professional_id"], [6, "date_of_treatment"], [6, "cost_of_treatment"], [6, "treatment_type_code"]], "column_types": ["text", "text", "text", "number", "text", "number", "text", "text", "text", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text", "text", "text", "text", "time", "text", "text", "time", "time", "time", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "number", "time", "number", "text"], "primary_keys": [1, 3, 6, 9, 19, 32, 43, 48], "foreign_keys": [[20, 9], [20, 9], [23, 6], [22, 1], [44, 19], [45, 32]]}, {"db_id": "real_estate_properties_total_0", "table_names": ["reference feature types", "other available features", "other property features", "properties_ref_property_types"], "table_names_original": ["ref_feature_types", "other_available_features", "other_property_features", "properties_ref_property_types"], "column_names": [[-1, "*"], [0, "feature type code"], [0, "feature type name"], [3, "property type description"], [1, "feature id"], [1, "feature type code"], [1, "feature name"], [1, "feature description"], [3, "property id"], [3, "date on market"], [3, "date sold"], [3, "property name"], [3, "property address"], [3, "room count"], [3, "vendor requested price"], [3, "buyer offered price"], [3, "agreed selling price"], [3, "apt feature 1"], [3, "apt feature 2"], [3, "apt feature 3"], [3, "fld feature 1"], [3, "fld feature 2"], [3, "fld feature 3"], [3, "hse feature 1"], [3, "hse feature 2"], [3, "hse feature 3"], [3, "oth feature 1"], [3, "oth feature 2"], [3, "oth feature 3"], [3, "shp feature 1"], [3, "shp feature 2"], [3, "shp feature 3"], [3, "other property details"], [2, "property id"], [2, "feature id"], [2, "property feature description"], [3, "property_type_code"]], "column_names_original": [[-1, "*"], [0, "feature_type_code"], [0, "feature_type_name"], [3, "property_type_description"], [1, "feature_id"], [1, "feature_type_code"], [1, "feature_name"], [1, "feature_description"], [3, "property_id"], [3, "date_on_market"], [3, "date_sold"], [3, "property_name"], [3, "property_address"], [3, "room_count"], [3, "vendor_requested_price"], [3, "buyer_offered_price"], [3, "agreed_selling_price"], [3, "apt_feature_1"], [3, "apt_feature_2"], [3, "apt_feature_3"], [3, "fld_feature_1"], [3, "fld_feature_2"], [3, "fld_feature_3"], [3, "hse_feature_1"], [3, "hse_feature_2"], [3, "hse_feature_3"], [3, "oth_feature_1"], [3, "oth_feature_2"], [3, "oth_feature_3"], [3, "shp_feature_1"], [3, "shp_feature_2"], [3, "shp_feature_3"], [3, "other_property_details"], [2, "property_id"], [2, "feature_id"], [2, "property_feature_description"], [3, "property_type_code"]], "column_types": ["text", "text", "text", "text", "number", "text", "text", "text", "number", "time", "time", "text", "text", "number", "number", "number", "number", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "text", "number", "number", "text", "text"], "primary_keys": [1, 4, 8, 36], "foreign_keys": [[5, 1], [33, 8], [36, 4]]}] \ No newline at end of file diff --git a/all/testset_all.json b/all/testset_all.json new file mode 100644 index 0000000000000000000000000000000000000000..da19632823d77d345d7d55ae5fb25b0ff89b400a --- /dev/null +++ b/all/testset_all.json @@ -0,0 +1 @@ +[{"id": "dev_0965", "db_id": "dog_kennels", "query": "select date_arrived , date_departed from dogs", "query_toks": ["SELECT", "date_arrived", ",", "date_departed", "FROM", "Dogs"], "query_toks_no_value": ["select", "date_arrived", ",", "date_departed", "from", "dogs"], "question": "List the arrival date and the departure date for all the dogs.", "question_toks": ["List", "the", "arrival", "date", "and", "the", "departure", "date", "for", "all", "the", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4803", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "``", "London", "Heathrow", "''"], "query_toks_no_value": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "value"], "question": "What are the number of international and domestic passengers of the airport named London \"Heathrow\"?", "question_toks": ["What", "are", "the", "number", "of", "international", "and", "domestic", "passengers", "of", "the", "airport", "named", "London", "``", "Heathrow", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"London Heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4804", "db_id": "aircraft", "query": "select international_passengers , domestic_passengers from airport where airport_name = \"london heathrow\"", "query_toks": ["SELECT", "International_Passengers", ",", "Domestic_Passengers", "FROM", "airport", "WHERE", "Airport_Name", "=", "``", "London", "Heathrow", "''"], "query_toks_no_value": ["select", "international_passengers", ",", "domestic_passengers", "from", "airport", "where", "airport_name", "=", "value"], "question": "How many international and domestic passengers are there in the airport London Heathrow?", "question_toks": ["How", "many", "international", "and", "domestic", "passengers", "are", "there", "in", "the", "airport", "London", "Heathrow", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"London Heathrow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "COLUMN_OVERLAPPING", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0134", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip where start_date like \"8/%\" group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "value", "group", "by", "start_station_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the start station's name and id for the one that had the most start trips in August?", "question_toks": ["What", "are", "the", "start", "station", "'s", "name", "and", "id", "for", "the", "one", "that", "had", "the", "most", "start", "trips", "in", "August", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"8/%\"", null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING", "LIKE_IN_SQL", "DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5667", "db_id": "customers_and_products_contacts", "query": "select product_type_code , product_name from products where product_price > 1000 or product_price < 500", "query_toks": ["SELECT", "product_type_code", ",", "product_name", "FROM", "products", "WHERE", "product_price", ">", "1000", "OR", "product_price", "<", "500"], "query_toks_no_value": ["select", "product_type_code", ",", "product_name", "from", "products", "where", "product_price", ">", "value", "or", "product_price", "<", "value"], "question": "Show the product type and name for the products with price higher than 1000 or lower than 500.", "question_toks": ["Show", "the", "product", "type", "and", "name", "for", "the", "products", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null], "or", [false, 4, [0, [0, 10, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0685", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers except select t1.customer_first_name , t1.customer_last_name from customers as t1 join accounts as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_first_name", ",", "T1.customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id"], "query_toks_no_value": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers", "except", "select", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Show the first names and last names of customers without any account.", "question_toks": ["Show", "the", "first", "names", "and", "last", "names", "of", "customers", "without", "any", "account", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["COLUMN_OVERLAPPING", "_NEGATION_ANY", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0717", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id order by count(*) asc limit 1", "query_toks": ["SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "What is the customer id, first and last name with least number of accounts.", "question_toks": ["What", "is", "the", "customer", "id", ",", "first", "and", "last", "name", "with", "least", "number", "of", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0390", "db_id": "flight_1", "query": "select departure_date , arrival_date from flight where origin = \"los angeles\" and destination = \"honolulu\"", "query_toks": ["SELECT", "departure_date", ",", "arrival_date", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''"], "query_toks_no_value": ["select", "departure_date", ",", "arrival_date", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value"], "question": "What are the departure and arrival dates of all flights from LA to Honolulu?", "question_toks": ["What", "are", "the", "departure", "and", "arrival", "dates", "of", "all", "flights", "from", "LA", "to", "Honolulu", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0931", "db_id": "insurance_fnol", "query": "select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like \"%diana%\"", "query_toks": ["SELECT", "t2.date_opened", ",", "t2.date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "value"], "question": "Retrieve the open and close dates of all the policies associated with the customer whose name contains \"Diana\"", "question_toks": ["Retrieve", "the", "open", "and", "close", "dates", "of", "all", "the", "policies", "associated", "with", "the", "customer", "whose", "name", "contains", "``", "Diana", "''"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0932", "db_id": "insurance_fnol", "query": "select t2.date_opened , t2.date_closed from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id where t1.customer_name like \"%diana%\"", "query_toks": ["SELECT", "t2.date_opened", ",", "t2.date_closed", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "t2", ".", "date_opened", ",", "t2", ".", "date_closed", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "like", "value"], "question": "What are the open and close dates of all the policies used by the customer who have \"Diana\" in part of their names?", "question_toks": ["What", "are", "the", "open", "and", "close", "dates", "of", "all", "the", "policies", "used", "by", "the", "customer", "who", "have", "``", "Diana", "''", "in", "part", "of", "their", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2045", "db_id": "party_people", "query": "select minister , took_office , left_office from party order by left_office", "query_toks": ["SELECT", "minister", ",", "took_office", ",", "left_office", "FROM", "party", "ORDER", "BY", "left_office"], "query_toks_no_value": ["select", "minister", ",", "took_office", ",", "left_office", "from", "party", "order", "by", "left_office"], "question": "Show the ministers and the time they took and left office, listed by the time they left office.", "question_toks": ["Show", "the", "ministers", "and", "the", "time", "they", "took", "and", "left", "office", ",", "listed", "by", "the", "time", "they", "left", "office", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1293", "db_id": "soccer_1", "query": "select t1.name , t2.name from country as t1 join league as t2 on t1.id = t2.country_id", "query_toks": ["SELECT", "T1.name", ",", "T2.name", "FROM", "Country", "AS", "T1", "JOIN", "League", "AS", "T2", "ON", "T1.id", "=", "T2.country_id"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "name", "from", "country", "as", "t1", "join", "league", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "country_id"], "question": "List all country and league names.", "question_toks": ["List", "all", "country", "and", "league", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 55, false], null], [0, 53, false], null]]}, "select": [false, [[0, [0, [0, 56, false], null]], [0, [0, [0, 54, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0347", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code , template_type_description from ref_template_types", "query_toks": ["SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types"], "query_toks_no_value": ["select", "template_type_code", ",", "template_type_description", "from", "ref_template_types"], "question": "Show all template type codes and descriptions.", "question_toks": ["Show", "all", "template", "type", "codes", "and", "descriptions", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0348", "db_id": "cre_Doc_Template_Mgt", "query": "select template_type_code , template_type_description from ref_template_types", "query_toks": ["SELECT", "template_type_code", ",", "template_type_description", "FROM", "Ref_template_types"], "query_toks_no_value": ["select", "template_type_code", ",", "template_type_description", "from", "ref_template_types"], "question": "What are the type codes and descriptions for all template types?", "question_toks": ["What", "are", "the", "type", "codes", "and", "descriptions", "for", "all", "template", "types", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0363", "db_id": "cre_Doc_Template_Mgt", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "Show all paragraph ids and texts for the document with name 'Welcome to NY'.", "question_toks": ["Show", "all", "paragraph", "ids", "and", "texts", "for", "the", "document", "with", "name", "'Welcome", "to", "NY", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"Welcome to NY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0373", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the document id and name with greatest number of paragraphs?", "question_toks": ["What", "is", "the", "document", "id", "and", "name", "with", "greatest", "number", "of", "paragraphs", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "COLUMN_OVERLAPPING", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0556", "db_id": "student_transcripts_tracking", "query": "select first_name , middle_name , last_name from students order by date_first_registered asc limit 1", "query_toks": ["SELECT", "first_name", ",", "middle_name", ",", "last_name", "FROM", "Students", "ORDER", "BY", "date_first_registered", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "first_name", ",", "middle_name", ",", "last_name", "from", "students", "order", "by", "date_first_registered", "asc", "limit", "value"], "question": "What is the first, middle, and last name of the first student to register?", "question_toks": ["What", "is", "the", "first", ",", "middle", ",", "and", "last", "name", "of", "the", "first", "student", "to", "register", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 41, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0455", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "question": "List the first and last name of all players in the order of birth date.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "in", "the", "order", "of", "birth", "date", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1222", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_start_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.apt_type_code = \"duplex\"", "query_toks": ["SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.apt_type_code", "=", "``", "Duplex", "''"], "query_toks_no_value": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "value"], "question": "What are the booking start and end dates of the apartments with type code \"Duplex\"?", "question_toks": ["What", "are", "the", "booking", "start", "and", "end", "dates", "of", "the", "apartments", "with", "type", "code", "``", "Duplex", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Duplex\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1223", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_start_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.apt_type_code = \"duplex\"", "query_toks": ["SELECT", "T1.booking_start_date", ",", "T1.booking_start_date", "FROM", "Apartment_Bookings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T2.apt_type_code", "=", "``", "Duplex", "''"], "query_toks_no_value": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_start_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "apt_type_code", "=", "value"], "question": "Return the booking start date and end date for the apartments that have type code \"Duplex\".", "question_toks": ["Return", "the", "booking", "start", "date", "and", "end", "date", "for", "the", "apartments", "that", "have", "type", "code", "``", "Duplex", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Duplex\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3115", "db_id": "behavior_monitoring", "query": "select t1.datetime_detention_start , datetime_detention_end from detention as t1 join teachers as t2 on t1.teacher_id = t2.teacher_id where t2.last_name = \"schultz\"", "query_toks": ["SELECT", "T1.datetime_detention_start", ",", "datetime_detention_end", "FROM", "Detention", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "WHERE", "T2.last_name", "=", "``", "Schultz", "''"], "query_toks_no_value": ["select", "t1", ".", "datetime_detention_start", ",", "datetime_detention_end", "from", "detention", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "where", "t2", ".", "last_name", "=", "value"], "question": "Find the start and end dates of detentions of teachers with last name \"Schultz\".", "question_toks": ["Find", "the", "start", "and", "end", "dates", "of", "detentions", "of", "teachers", "with", "last", "name", "``", "Schultz", "''", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 51, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 52, false], null]], [0, [0, [0, 53, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"Schultz\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5806", "db_id": "customer_complaints", "query": "select address_line_1 , address_line_2 from customers where email_address = \"vbogisich@example.org\"", "query_toks": ["SELECT", "address_line_1", ",", "address_line_2", "FROM", "customers", "WHERE", "email_address", "=", "``", "vbogisich", "@", "example.org", "''"], "query_toks_no_value": ["select", "address_line_1", ",", "address_line_2", "from", "customers", "where", "email_address", "=", "value"], "question": "Find the address line 1 and 2 of the customer with email \"vbogisich@example.org\".", "question_toks": ["Find", "the", "address", "line", "1", "and", "2", "of", "the", "customer", "with", "email", "``", "vbogisich", "@", "example.org", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"vbogisich@example.org\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0000", "db_id": "concert_singer", "query": "select song_name , song_release_year from singer order by age limit 1", "query_toks": ["select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "1"], "query_toks_no_value": ["select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "1"], "question": "Show the song name and release year by the youngest singer.", "question_toks": ["Show", "the", "song", "name", "and", "release", "year", "by", "the", "youngest", "singer", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0001", "db_id": "concert_singer", "query": "select song_name , song_release_year from singer order by age limit 1", "query_toks": ["select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "1"], "query_toks_no_value": ["select", "song_name", ",", "song_release_year", "from", "singer", "order", "by", "age", "limit", "1"], "question": "What are the song name and release year of the youngest singer?", "question_toks": ["What", "are", "the", "song", "name", "and", "release", "year", "of", "the", "youngest", "singer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0002", "db_id": "cre_Doc_Template_Mgt", "query": "select document_id , document_name , document_description from documents", "query_toks": ["select", "document_id", ",", "document_name", ",", "document_description", "from", "documents"], "query_toks_no_value": ["select", "document_id", ",", "document_name", ",", "document_description", "from", "documents"], "question": "List document IDs, names and descriptions for all documents.", "question_toks": ["List", "document", "IDs", ",", "names", "and", "descriptions", "for", "all", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0003", "db_id": "dog_kennels", "query": "select date_arrived , date_departed from dogs", "query_toks": ["select", "date_arrived", ",", "date_departed", "from", "dogs"], "query_toks_no_value": ["select", "date_arrived", ",", "date_departed", "from", "dogs"], "question": "What are the arriving and the departing date of all the dogs?", "question_toks": ["What", "are", "the", "arriving", "and", "the", "departing", "date", "of", "all", "the", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0005", "db_id": "dog_kennels", "query": "select first_name , last_name , email_address from owners where state like \"%north%\"", "query_toks": ["select", "first_name", ",", "last_name", ",", "email_address", "from", "owners", "where", "state", "like", "\"%", "north", "%\""], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "email_address", "from", "owners", "where", "state", "like", "\"%", "north", "%\""], "question": "Return the email, first and last names of the owners living in a state whose name contains the substring 'North'.", "question_toks": ["Return", "the", "email", ",", "first", "and", "last", "names", "of", "the", "owners", "living", "in", "a", "state", "whose", "name", "contains", "the", "substring", "'", "North", "'."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%north%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0008", "db_id": "apartment_rentals", "query": "select t1.booking_start_date , t1.booking_end_date from apartment_bookings as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t2.bedroom_count > 2", "query_toks": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_end_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "bedroom_count", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "booking_start_date", ",", "t1", ".", "booking_end_date", "from", "apartment_bookings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t2", ".", "bedroom_count", ">", "value"], "question": "What are the booking start and end dates of the apartments with more than two bedrooms?", "question_toks": ["What", "are", "the", "booking", "start", "and", "end", "dates", "of", "the", "apartments", "with", "more", "than", "two", "bedrooms", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 26, false], null]], [0, [0, [0, 27, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_column_overlapping_0014", "db_id": "game_injury", "query": "select name , average_attendance , total_attendance from stadium except select t2.name , t2.average_attendance , t2.total_attendance from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id", "query_toks": ["select", "name", ",", "average_attendance", ",", "total_attendance", "from", "stadium", "except", "select", "t2", ".", "name", ",", "t2", ".", "average_attendance", ",", "t2", ".", "total_attendance", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id"], "query_toks_no_value": ["select", "name", ",", "average_attendance", ",", "total_attendance", "from", "stadium", "except", "select", "t2", ".", "name", ",", "t2", ".", "average_attendance", ",", "t2", ".", "total_attendance", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id"], "question": "Show the name, average and total attendance for stadiums where no accidents happened.", "question_toks": ["Show", "the", "name", ",", "average", "and", "total", "attendance", "for", "stadiums", "where", "no", "accidents", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["COLUMN_OVERLAPPING"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0154", "db_id": "bike_1", "query": "select date , zip_code from weather where max_temperature_f >= 80", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">", "=", "80"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">", "=", "value"], "question": "What zip codes have a station with a max temperature greater than or equal to 80 and when did it reach that temperature?", "question_toks": ["What", "zip", "codes", "have", "a", "station", "with", "a", "max", "temperature", "greater", "than", "or", "equal", "to", "80", "and", "when", "did", "it", "reach", "that", "temperature", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AGGREGATION_IN_COLUMN", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1833", "db_id": "browser_web", "query": "select t1.id , t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["SELECT", "T1.id", ",", "T1.Name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and names of the web accelerators that are compatible with two or more browsers?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "web", "accelerators", "that", "are", "compatible", "with", "two", "or", "more", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0870", "db_id": "chinook_1", "query": "select t1.firstname , t1.supportrepid from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) >= 10", "query_toks": ["SELECT", "T1.FirstName", ",", "T1.SupportRepId", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "10"], "query_toks_no_value": ["select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the first names and support rep ids for employees serving 10 or more customers?", "question_toks": ["What", "are", "the", "first", "names", "and", "support", "rep", "ids", "for", "employees", "serving", "10", "or", "more", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COMPARE_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0876", "db_id": "chinook_1", "query": "select t2.name , t1.artistid from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t1.artistid having count(*) >= 3 order by t2.name", "query_toks": ["SELECT", "T2.Name", ",", "T1.ArtistId", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistID", "GROUP", "BY", "T1.ArtistId", "HAVING", "COUNT", "(", "*", ")", ">", "=", "3", "ORDER", "BY", "T2.Name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(", "*", ")", ">", "=", "value", "order", "by", "t2", ".", "name"], "question": "What are the names and ids of artists with 3 or more albums, listed in alphabetical order?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "artists", "with", "3", "or", "more", "albums", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0024", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "=", "value", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Show the stadium name and capacity with most number of concerts in year 2014 or after.", "question_toks": ["Show", "the", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "WHERE_MONO", "NON_STRICT_INEQUALITY", "_JOIN_1", "ORDER_BY_COUNT", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_TOTAL", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1572", "db_id": "customers_and_invoices", "query": "select t2.customer_first_name , t1.customer_id from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T2.customer_first_name", ",", "T1.customer_id", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the first names and ids for customers who have two or more accounts?", "question_toks": ["What", "are", "the", "first", "names", "and", "ids", "for", "customers", "who", "have", "two", "or", "more", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COMPARE_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1594", "db_id": "customers_and_invoices", "query": "select t1.account_id , t2.account_name from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id group by t1.account_id having count(*) >= 4", "query_toks": ["SELECT", "T1.account_id", ",", "T2.account_name", "FROM", "Financial_transactions", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.account_id", "=", "T2.account_id", "GROUP", "BY", "T1.account_id", "HAVING", "count", "(", "*", ")", ">", "=", "4"], "query_toks_no_value": ["select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and names of accounts with 4 or more transactions?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "accounts", "with", "4", "or", "more", "transactions", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [[false, 5, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0933", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the id, role, and first name of the professionals who have performed two or more treatments?", "question_toks": ["What", "are", "the", "id", ",", "role", ",", "and", "first", "name", "of", "the", "professionals", "who", "have", "performed", "two", "or", "more", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "DEJOIN_TOTAL", "_JOIN_1", "_AND_WITH_OR_COLUMN_REMOVED", "NON_STRICT_INEQUALITY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3809", "db_id": "e_learning", "query": "select t1.address_line_1 , t2.author_id from course_authors_and_tutors as t1 join courses as t2 on t1.author_id = t2.author_id group by t2.author_id having count(*) >= 2", "query_toks": ["SELECT", "T1.address_line_1", ",", "T2.author_id", "FROM", "Course_Authors_and_Tutors", "AS", "T1", "JOIN", "Courses", "AS", "T2", "ON", "T1.author_id", "=", "T2.author_id", "GROUP", "BY", "T2.author_id", "HAVING", "Count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "address_line_1", ",", "t2", ".", "author_id", "from", "course_authors_and_tutors", "as", "t1", "join", "courses", "as", "t2", "on", "t1", ".", "author_id", "=", "t2", ".", "author_id", "group", "by", "t2", ".", "author_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which course authors teach two or more courses? Give me their addresses and author IDs.", "question_toks": ["Which", "course", "authors", "teach", "two", "or", "more", "courses", "?", "Give", "me", "their", "addresses", "and", "author", "IDs", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COMPARE_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3466", "db_id": "hr_1", "query": "select * from job_history as t1 join employees as t2 on t1.employee_id = t2.employee_id where t2.salary >= 12000", "query_toks": ["SELECT", "*", "FROM", "job_history", "AS", "T1", "JOIN", "employees", "AS", "T2", "ON", "T1.employee_id", "=", "T2.employee_id", "WHERE", "T2.salary", ">", "=", "12000"], "query_toks_no_value": ["select", "*", "from", "job_history", "as", "t1", "join", "employees", "as", "t2", "on", "t1", ".", "employee_id", "=", "t2", ".", "employee_id", "where", "t2", ".", "salary", ">", "=", "value"], "question": "What is all the job history info done by employees earning a salary greater than or equal to 12000?", "question_toks": ["What", "is", "all", "the", "job", "history", "info", "done", "by", "employees", "earning", "a", "salary", "greater", "than", "or", "equal", "to", "12000", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 21, false], null], 12000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5326", "db_id": "manufactory_1", "query": "select name from products where price <= 200", "query_toks": ["SELECT", "name", "FROM", "products", "WHERE", "price", "<", "=", "200"], "query_toks_no_value": ["select", "name", "from", "products", "where", "price", "<", "=", "value"], "question": "Select the name of the products with a price less than or equal to $200.", "question_toks": ["Select", "the", "name", "of", "the", "products", "with", "a", "price", "less", "than", "or", "equal", "to", "$", "200", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 6, [0, [0, 8, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5334", "db_id": "manufactory_1", "query": "select count(*) from products where price >= 180", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "price", ">", "=", "180"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "where", "price", ">", "=", "value"], "question": "Compute the number of products with a price larger than or equal to $180.", "question_toks": ["Compute", "the", "number", "of", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5336", "db_id": "manufactory_1", "query": "select name , price from products where price >= 180 order by price desc , name asc", "query_toks": ["SELECT", "name", ",", "price", "FROM", "products", "WHERE", "price", ">", "=", "180", "ORDER", "BY", "price", "DESC", ",", "name", "ASC"], "query_toks_no_value": ["select", "name", ",", "price", "from", "products", "where", "price", ">", "=", "value", "order", "by", "price", "desc", ",", "name", "asc"], "question": "Select the name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).", "question_toks": ["Select", "the", "name", "and", "price", "of", "all", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", ")", ",", "and", "then", "by", "name", "(", "in", "ascending", "order", ")", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null], [0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5344", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) >= 150", "query_toks": ["SELECT", "avg", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name", "HAVING", "avg", "(", "T1.price", ")", ">", "=", "150"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">", "=", "value"], "question": "Select the names of manufacturer whose products have an average price higher than or equal to $150.", "question_toks": ["Select", "the", "names", "of", "manufacturer", "whose", "products", "have", "an", "average", "price", "higher", "than", "or", "equal", "to", "$", "150", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5345", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) >= 150", "query_toks": ["SELECT", "avg", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name", "HAVING", "avg", "(", "T1.price", ")", ">", "=", "150"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">", "=", "value"], "question": "What are the names and average prices of products for manufacturers whose products cost on average 150 or more?", "question_toks": ["What", "are", "the", "names", "and", "average", "prices", "of", "products", "for", "manufacturers", "whose", "products", "cost", "on", "average", "150", "or", "more", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0949", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["SELECT", "T1.id", ",", "T1.Name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and names of the medicine that can interact with two or more enzymes?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "medicine", "that", "can", "interact", "with", "two", "or", "more", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1896", "db_id": "school_finance", "query": "select t2.school_name from endowment as t1 join school as t2 on t1.school_id = t2.school_id group by t1.school_id having sum(t1.amount) <= 10", "query_toks": ["SELECT", "T2.school_name", "FROM", "endowment", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "GROUP", "BY", "T1.school_id", "HAVING", "sum", "(", "T1.amount", ")", "<", "=", "10"], "query_toks_no_value": ["select", "t2", ".", "school_name", "from", "endowment", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "group", "by", "t1", ".", "school_id", "having", "sum", "(", "t1", ".", "amount", ")", "<", "=", "value"], "question": "List all the names of schools with an endowment amount smaller than or equal to 10.", "question_toks": ["List", "all", "the", "names", "of", "schools", "with", "an", "endowment", "amount", "smaller", "than", "or", "equal", "to", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [[false, 6, [0, [4, 19, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2701", "db_id": "storm_record", "query": "select name , dates_active , number_deaths from storm where number_deaths >= 1", "query_toks": ["SELECT", "name", ",", "dates_active", ",", "number_deaths", "FROM", "storm", "WHERE", "number_deaths", ">", "=", "1"], "query_toks_no_value": ["select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm", "where", "number_deaths", ">", "=", "value"], "question": "What are the names, dates active, and number of deaths for storms that had 1 or more death?", "question_toks": ["What", "are", "the", "names", ",", "dates", "active", ",", "and", "number", "of", "deaths", "for", "storms", "that", "had", "1", "or", "more", "death", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 5, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_non_strict_inequality_0004", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema where openning_year >= 2011", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">=", "2011"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">=", "value"], "question": "Show average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_non_strict_inequality_0006", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["select", "title", ",", "director", "from", "movie", "where", "year", "<=", "2000", "order", "by", "gross_worldwide", "desc", "limit", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "where", "year", "<=", "value", "order", "by", "gross_worldwide", "desc", "limit", "1"], "question": "Return title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.", "question_toks": ["Return", "title", "and", "director", "of", "the", "movie", "released", "in", "the", "year", "2000", "or", "earlier", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_non_strict_inequality_0007", "db_id": "customers_and_invoices", "query": "select t2.order_id , t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) >= 2", "query_toks": ["select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(*)", ">=", "2"], "question": "Return the order ids and details for the orderes with 2 or more invoices.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "the", "orderes", "with", "2", "or", "more", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NON_STRICT_INEQUALITY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_non_strict_inequality_0013", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "question": "Give me the the customers details and id for the customers who had two or more policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customers", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "or", "more", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NON_STRICT_INEQUALITY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0850", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format order by count(*) asc", "query_toks": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(", "*", ")", "asc"], "question": "Please show the record formats of orchestras in ascending order of count.", "question_toks": ["Please", "show", "the", "record", "formats", "of", "orchestras", "in", "ascending", "order", "of", "count", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0851", "db_id": "orchestra", "query": "select major_record_format from orchestra group by major_record_format order by count(*) asc", "query_toks": ["SELECT", "Major_Record_Format", "FROM", "orchestra", "GROUP", "BY", "Major_Record_Format", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "major_record_format", "from", "orchestra", "group", "by", "major_record_format", "order", "by", "count", "(", "*", ")", "asc"], "question": "What are the major record formats of orchestras, sorted by their frequency?", "question_toks": ["What", "are", "the", "major", "record", "formats", "of", "orchestras", ",", "sorted", "by", "their", "frequency", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "ORDER_BY_COUNT", "_REFORMULATION_SYNONYM"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1254", "db_id": "apartment_rentals", "query": "select apt_type_code , count(*) from apartments group by apt_type_code order by count(*) asc", "query_toks": ["SELECT", "apt_type_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "apt_type_code", ",", "count", "(", "*", ")", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "asc"], "question": "Show the apartment type codes and the corresponding number of apartments sorted by the number of apartments in ascending order.", "question_toks": ["Show", "the", "apartment", "type", "codes", "and", "the", "corresponding", "number", "of", "apartments", "sorted", "by", "the", "number", "of", "apartments", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1255", "db_id": "apartment_rentals", "query": "select apt_type_code , count(*) from apartments group by apt_type_code order by count(*) asc", "query_toks": ["SELECT", "apt_type_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "apt_type_code", ",", "count", "(", "*", ")", "from", "apartments", "group", "by", "apt_type_code", "order", "by", "count", "(", "*", ")", "asc"], "question": "Return each apartment type code with the number of apartments having that apartment type, in ascending order of the number of apartments.", "question_toks": ["Return", "each", "apartment", "type", "code", "with", "the", "number", "of", "apartments", "having", "that", "apartment", "type", ",", "in", "ascending", "order", "of", "the", "number", "of", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1266", "db_id": "apartment_rentals", "query": "select gender_code , count(*) from guests group by gender_code order by count(*) desc", "query_toks": ["SELECT", "gender_code", ",", "COUNT", "(", "*", ")", "FROM", "Guests", "GROUP", "BY", "gender_code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "gender_code", ",", "count", "(", "*", ")", "from", "guests", "group", "by", "gender_code", "order", "by", "count", "(", "*", ")", "desc"], "question": "Show each gender code and the corresponding count of guests sorted by the count in descending order.", "question_toks": ["Show", "each", "gender", "code", "and", "the", "corresponding", "count", "of", "guests", "sorted", "by", "the", "count", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1267", "db_id": "apartment_rentals", "query": "select gender_code , count(*) from guests group by gender_code order by count(*) desc", "query_toks": ["SELECT", "gender_code", ",", "COUNT", "(", "*", ")", "FROM", "Guests", "GROUP", "BY", "gender_code", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "gender_code", ",", "count", "(", "*", ")", "from", "guests", "group", "by", "gender_code", "order", "by", "count", "(", "*", ")", "desc"], "question": "Sort the gender codes in descending order of their corresponding number of guests. Return both the gender codes and counts.", "question_toks": ["Sort", "the", "gender", "codes", "in", "descending", "order", "of", "their", "corresponding", "number", "of", "guests", ".", "Return", "both", "the", "gender", "codes", "and", "counts", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3647", "db_id": "baseball_1", "query": "select t1.name_first , t1.name_last , t1.player_id from player as t1 join player_award as t2 on t1.player_id = t2.player_id group by t1.player_id order by count(*) desc limit 3;", "query_toks": ["SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", ";"], "query_toks_no_value": ["select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which 3 players won the most player awards? List their full name and id.", "question_toks": ["Which", "3", "players", "won", "the", "most", "player", "awards", "?", "List", "their", "full", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 16], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 182, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [[0, 182, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "ORDER_BY_COUNT", "_HOW_MANY_AVG", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3648", "db_id": "baseball_1", "query": "select t1.name_first , t1.name_last , t1.player_id from player as t1 join player_award as t2 on t1.player_id = t2.player_id group by t1.player_id order by count(*) desc limit 3;", "query_toks": ["SELECT", "T1.name_first", ",", "T1.name_last", ",", "T1.player_id", "FROM", "player", "AS", "T1", "JOIN", "player_award", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "GROUP", "BY", "T1.player_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", ";"], "query_toks_no_value": ["select", "t1", ".", "name_first", ",", "t1", ".", "name_last", ",", "t1", ".", "player_id", "from", "player", "as", "t1", "join", "player_award", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "group", "by", "t1", ".", "player_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the first name, last name and id for the top three players won the most player awards.", "question_toks": ["Find", "the", "first", "name", ",", "last", "name", "and", "id", "for", "the", "top", "three", "players", "won", "the", "most", "player", "awards", "."], "sql": {"from": {"table_units": [["table_unit", 16], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 182, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]], [0, [0, [0, 182, false], null]]]], "where": [], "groupBy": [[0, 182, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3649", "db_id": "baseball_1", "query": "select birth_country from player group by birth_country order by count(*) asc limit 3;", "query_toks": ["SELECT", "birth_country", "FROM", "player", "GROUP", "BY", "birth_country", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "3", ";"], "query_toks_no_value": ["select", "birth_country", "from", "player", "group", "by", "birth_country", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "List three countries which are the origins of the least players.", "question_toks": ["List", "three", "countries", "which", "are", "the", "origins", "of", "the", "least", "players", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 186, false], null]]]], "where": [], "groupBy": [[0, 186, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3105", "db_id": "behavior_monitoring", "query": "select t1.teacher_id , t2.first_name from assessment_notes as t1 join teachers as t2 on t1.teacher_id = t2.teacher_id group by t1.teacher_id order by count(*) desc limit 3", "query_toks": ["SELECT", "T1.teacher_id", ",", "T2.first_name", "FROM", "Assessment_Notes", "AS", "T1", "JOIN", "Teachers", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id", "GROUP", "BY", "T1.teacher_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t1", ".", "teacher_id", ",", "t2", ".", "first_name", "from", "assessment_notes", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t1", ".", "teacher_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the ids and first names of the 3 teachers that have the most number of assessment notes?", "question_toks": ["Find", "the", "ids", "and", "first", "names", "of", "the", "3", "teachers", "that", "have", "the", "most", "number", "of", "assessment", "notes", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]], [0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 37, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3305", "db_id": "college_1", "query": "select t2.dept_name , t2.dept_address , count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.dept_name", ",", "T2.dept_address", ",", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the name, address, number of students in the departments that have the top 3 highest number of students.", "question_toks": ["Find", "the", "name", ",", "address", ",", "number", "of", "students", "in", "the", "departments", "that", "have", "the", "top", "3", "highest", "number", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3306", "db_id": "college_1", "query": "select t2.dept_name , t2.dept_address , count(*) from student as t1 join department as t2 on t1.dept_code = t2.dept_code group by t1.dept_code order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.dept_name", ",", "T2.dept_address", ",", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.dept_code", "=", "T2.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "dept_name", ",", "t2", ".", "dept_address", ",", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "dept_code", "=", "t2", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name, address, and number of students in the departments that have the 3 most students?", "question_toks": ["What", "is", "the", "name", ",", "address", ",", "and", "number", "of", "students", "in", "the", "departments", "that", "have", "the", "3", "most", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4679", "db_id": "college_3", "query": "select t2.fname , t2.lname from course as t1 join faculty as t2 on t1.instructor = t2.facid group by t1.instructor order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "GROUP", "BY", "T1.Instructor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the first and last names of the instructors who teach the top 3 number of courses?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "the", "instructors", "who", "teach", "the", "top", "3", "number", "of", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4680", "db_id": "college_3", "query": "select t2.fname , t2.lname from course as t1 join faculty as t2 on t1.instructor = t2.facid group by t1.instructor order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.Fname", ",", "T2.Lname", "FROM", "COURSE", "AS", "T1", "JOIN", "FACULTY", "AS", "T2", "ON", "T1.Instructor", "=", "T2.FacID", "GROUP", "BY", "T1.Instructor", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "fname", ",", "t2", ".", "lname", "from", "course", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "instructor", "=", "t2", ".", "facid", "group", "by", "t1", ".", "instructor", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the full names of the 3 instructors who teach the most courses?", "question_toks": ["What", "are", "the", "full", "names", "of", "the", "3", "instructors", "who", "teach", "the", "most", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "ORDER_BY_COUNT", "_HOW_MANY_AVG", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4571", "db_id": "company_office", "query": "select industry from companies group by industry order by count(*) desc", "query_toks": ["SELECT", "Industry", "FROM", "Companies", "GROUP", "BY", "Industry", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "industry", "from", "companies", "group", "by", "industry", "order", "by", "count", "(", "*", ")", "desc"], "question": "Please show the industries of companies in descending order of the number of companies.", "question_toks": ["Please", "show", "the", "industries", "of", "companies", "in", "descending", "order", "of", "the", "number", "of", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5810", "db_id": "customer_complaints", "query": "select t1.first_name from staff as t1 join complaints as t2 on t1.staff_id = t2.staff_id group by t2.staff_id order by count(*) limit 5", "query_toks": ["SELECT", "t1.first_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "GROUP", "BY", "t2.staff_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "5"], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t2", ".", "staff_id", "order", "by", "count", "(", "*", ")", "limit", "value"], "question": "What is first names of the top 5 staff who have handled the greatest number of complaints?", "question_toks": ["What", "is", "first", "names", "of", "the", "top", "5", "staff", "who", "have", "handled", "the", "greatest", "number", "of", "complaints", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 31, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 5, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5811", "db_id": "customer_complaints", "query": "select t1.first_name from staff as t1 join complaints as t2 on t1.staff_id = t2.staff_id group by t2.staff_id order by count(*) limit 5", "query_toks": ["SELECT", "t1.first_name", "FROM", "staff", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.staff_id", "=", "t2.staff_id", "GROUP", "BY", "t2.staff_id", "ORDER", "BY", "count", "(", "*", ")", "LIMIT", "5"], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "staff", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "group", "by", "t2", ".", "staff_id", "order", "by", "count", "(", "*", ")", "limit", "value"], "question": "Return the first names of the 5 staff members who have handled the most complaints.", "question_toks": ["Return", "the", "first", "names", "of", "the", "5", "staff", "members", "who", "have", "handled", "the", "most", "complaints", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 31, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 5, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4741", "db_id": "department_store", "query": "select dept_store_chain_id from department_stores group by dept_store_chain_id order by count(*) desc limit 2", "query_toks": ["SELECT", "dept_store_chain_id", "FROM", "department_stores", "GROUP", "BY", "dept_store_chain_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "2"], "query_toks_no_value": ["select", "dept_store_chain_id", "from", "department_stores", "group", "by", "dept_store_chain_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the ids of the two department store chains with the largest number of department stores?", "question_toks": ["What", "are", "the", "ids", "of", "the", "two", "department", "store", "chains", "with", "the", "largest", "number", "of", "department", "stores", "?"], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 35, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 2, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4742", "db_id": "department_store", "query": "select dept_store_chain_id from department_stores group by dept_store_chain_id order by count(*) desc limit 2", "query_toks": ["SELECT", "dept_store_chain_id", "FROM", "department_stores", "GROUP", "BY", "dept_store_chain_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "2"], "query_toks_no_value": ["select", "dept_store_chain_id", "from", "department_stores", "group", "by", "dept_store_chain_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the ids of the two department store chains with the most department stores.", "question_toks": ["Return", "the", "ids", "of", "the", "two", "department", "store", "chains", "with", "the", "most", "department", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 35, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 2, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5078", "db_id": "device", "query": "select software_platform from device group by software_platform order by count(*) desc", "query_toks": ["SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(", "*", ")", "desc"], "question": "Please show the software platforms of devices in descending order of the count.", "question_toks": ["Please", "show", "the", "software", "platforms", "of", "devices", "in", "descending", "order", "of", "the", "count", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5079", "db_id": "device", "query": "select software_platform from device group by software_platform order by count(*) desc", "query_toks": ["SELECT", "Software_Platform", "FROM", "device", "GROUP", "BY", "Software_Platform", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "software_platform", "from", "device", "group", "by", "software_platform", "order", "by", "count", "(", "*", ")", "desc"], "question": "What are the different software platforms for devices, ordered by frequency descending?", "question_toks": ["What", "are", "the", "different", "software", "platforms", "for", "devices", ",", "ordered", "by", "frequency", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4513", "db_id": "document_management", "query": "select * from (select document_name from documents group by document_type_code order by count(*) desc limit 3) intersect select * from (select document_name from documents group by document_structure_code order by count(*) desc limit 3)", "query_toks": ["SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", "INTERSECT", "SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "document_name", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", "intersect", "select", "document_name", "from", "documents", "group", "by", "document_structure_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the list of documents that are both in the most three popular type and have the most three popular structure.", "question_toks": ["Find", "the", "list", "of", "documents", "that", "are", "both", "in", "the", "most", "three", "popular", "type", "and", "have", "the", "most", "three", "popular", "structure", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4514", "db_id": "document_management", "query": "select * from (select document_name from documents group by document_type_code order by count(*) desc limit 3) intersect select * from (select document_name from documents group by document_structure_code order by count(*) desc limit 3)", "query_toks": ["SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3", "INTERSECT", "SELECT", "document_name", "FROM", "documents", "GROUP", "BY", "document_structure_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "document_name", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", "intersect", "select", "document_name", "from", "documents", "group", "by", "document_structure_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the names of documents that have both one of the three most common types and one of three most common structures?", "question_toks": ["What", "are", "the", "names", "of", "documents", "that", "have", "both", "one", "of", "the", "three", "most", "common", "types", "and", "one", "of", "three", "most", "common", "structures", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3800", "db_id": "e_learning", "query": "select test_result , count(*) from student_tests_taken group by test_result order by count(*) desc", "query_toks": ["SELECT", "test_result", ",", "COUNT", "(", "*", ")", "FROM", "Student_Tests_Taken", "GROUP", "BY", "test_result", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "test_result", ",", "count", "(", "*", ")", "from", "student_tests_taken", "group", "by", "test_result", "order", "by", "count", "(", "*", ")", "desc"], "question": "List each test result and its count in descending order of count.", "question_toks": ["List", "each", "test", "result", "and", "its", "count", "in", "descending", "order", "of", "count", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3816", "db_id": "e_learning", "query": "select t1.subject_id , t2.subject_name , count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id order by count(*) asc", "query_toks": ["SELECT", "T1.subject_id", ",", "T2.subject_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "GROUP", "BY", "T1.subject_id", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id", "order", "by", "count", "(", "*", ")", "asc"], "question": "Find the subject ID, name of subject and the corresponding number of courses for each subject, and sort by the course count in ascending order.", "question_toks": ["Find", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "corresponding", "number", "of", "courses", "for", "each", "subject", ",", "and", "sort", "by", "the", "course", "count", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3817", "db_id": "e_learning", "query": "select t1.subject_id , t2.subject_name , count(*) from courses as t1 join subjects as t2 on t1.subject_id = t2.subject_id group by t1.subject_id order by count(*) asc", "query_toks": ["SELECT", "T1.subject_id", ",", "T2.subject_name", ",", "COUNT", "(", "*", ")", "FROM", "Courses", "AS", "T1", "JOIN", "Subjects", "AS", "T2", "ON", "T1.subject_id", "=", "T2.subject_id", "GROUP", "BY", "T1.subject_id", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "t1", ".", "subject_id", ",", "t2", ".", "subject_name", ",", "count", "(", "*", ")", "from", "courses", "as", "t1", "join", "subjects", "as", "t2", "on", "t1", ".", "subject_id", "=", "t2", ".", "subject_id", "group", "by", "t1", ".", "subject_id", "order", "by", "count", "(", "*", ")", "asc"], "question": "List the subject ID, name of subject and the number of courses available for each subject in ascending order of the course counts.", "question_toks": ["List", "the", "subject", "ID", ",", "name", "of", "subject", "and", "the", "number", "of", "courses", "available", "for", "each", "subject", "in", "ascending", "order", "of", "the", "course", "counts", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0044", "db_id": "farm", "query": "select status from city group by status order by count(*) asc", "query_toks": ["SELECT", "Status", "FROM", "city", "GROUP", "BY", "Status", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "status", "from", "city", "group", "by", "status", "order", "by", "count", "(", "*", ")", "asc"], "question": "Please show the different statuses, ordered by the number of cities that have each.", "question_toks": ["Please", "show", "the", "different", "statuses", ",", "ordered", "by", "the", "number", "of", "cities", "that", "have", "each", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0045", "db_id": "farm", "query": "select status from city group by status order by count(*) asc", "query_toks": ["SELECT", "Status", "FROM", "city", "GROUP", "BY", "Status", "ORDER", "BY", "COUNT", "(", "*", ")", "ASC"], "query_toks_no_value": ["select", "status", "from", "city", "group", "by", "status", "order", "by", "count", "(", "*", ")", "asc"], "question": "Return the different statuses of cities, ascending by frequency.", "question_toks": ["Return", "the", "different", "statuses", "of", "cities", ",", "ascending", "by", "frequency", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0433", "db_id": "flight_1", "query": "select t2.name from certificate as t1 join aircraft as t2 on t2.aid = t1.aid where t2.distance > 5000 group by t1.aid order by count(*) >= 5", "query_toks": ["SELECT", "T2.name", "FROM", "Certificate", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T2.aid", "=", "T1.aid", "WHERE", "T2.distance", ">", "5000", "GROUP", "BY", "T1.aid", "ORDER", "BY", "count", "(", "*", ")", ">", "=", "5"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "certificate", "as", "t1", "join", "aircraft", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "distance", ">", "value", "group", "by", "t1", ".", "aid", "order", "by", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the name and distance of the aircrafts with more than 5000 distance and which at least 5 people have its certificate.", "question_toks": ["Show", "the", "name", "and", "distance", "of", "the", "aircrafts", "with", "more", "than", "5000", "distance", "and", "which", "at", "least", "5", "people", "have", "its", "certificate", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6845", "db_id": "flight_4", "query": "select country , count(*) from airlines group by country order by count(*) desc", "query_toks": ["SELECT", "country", ",", "count", "(", "*", ")", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "country", ",", "count", "(", "*", ")", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc"], "question": "List all countries and their number of airlines in the descending order of number of airlines.", "question_toks": ["List", "all", "countries", "and", "their", "number", "of", "airlines", "in", "the", "descending", "order", "of", "number", "of", "airlines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6846", "db_id": "flight_4", "query": "select country , count(*) from airlines group by country order by count(*) desc", "query_toks": ["SELECT", "country", ",", "count", "(", "*", ")", "FROM", "airlines", "GROUP", "BY", "country", "ORDER", "BY", "count", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "country", ",", "count", "(", "*", ")", "from", "airlines", "group", "by", "country", "order", "by", "count", "(", "*", ")", "desc"], "question": "How many airlines operate out of each country in descending order?", "question_toks": ["How", "many", "airlines", "operate", "out", "of", "each", "country", "in", "descending", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2017", "db_id": "gas_company", "query": "select location , count(*) from gas_station group by location order by count(*)", "query_toks": ["SELECT", "LOCATION", ",", "count", "(", "*", ")", "FROM", "gas_station", "GROUP", "BY", "LOCATION", "ORDER", "BY", "count", "(", "*", ")"], "query_toks_no_value": ["select", "location", ",", "count", "(", "*", ")", "from", "gas_station", "group", "by", "location", "order", "by", "count", "(", "*", ")"], "question": "Show all locations and the number of gas stations in each location ordered by the count.", "question_toks": ["Show", "all", "locations", "and", "the", "number", "of", "gas", "stations", "in", "each", "location", "ordered", "by", "the", "count", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2018", "db_id": "gas_company", "query": "select location , count(*) from gas_station group by location order by count(*)", "query_toks": ["SELECT", "LOCATION", ",", "count", "(", "*", ")", "FROM", "gas_station", "GROUP", "BY", "LOCATION", "ORDER", "BY", "count", "(", "*", ")"], "query_toks_no_value": ["select", "location", ",", "count", "(", "*", ")", "from", "gas_station", "group", "by", "location", "order", "by", "count", "(", "*", ")"], "question": "For each location, how many gas stations are there in order?", "question_toks": ["For", "each", "location", ",", "how", "many", "gas", "stations", "are", "there", "in", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1098", "db_id": "match_season", "query": "select college from match_season group by college order by count(*) desc limit 3", "query_toks": ["SELECT", "College", "FROM", "match_season", "GROUP", "BY", "College", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "college", "from", "match_season", "group", "by", "college", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Show the top 3 most common colleges of players in match seasons.", "question_toks": ["Show", "the", "top", "3", "most", "common", "colleges", "of", "players", "in", "match", "seasons", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0951", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name , t1.fda_approved from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id order by count(*) desc", "query_toks": ["SELECT", "T1.id", ",", "T1.Name", ",", "T1.FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc"], "question": "What are the ids, names and FDA approval status of medicines in descending order of the number of enzymes that it can interact with.", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "FDA", "approval", "status", "of", "medicines", "in", "descending", "order", "of", "the", "number", "of", "enzymes", "that", "it", "can", "interact", "with", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0952", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name , t1.fda_approved from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id order by count(*) desc", "query_toks": ["SELECT", "T1.id", ",", "T1.Name", ",", "T1.FDA_approved", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "fda_approved", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc"], "question": "What are the ids, names, and FDA approval status for medicines ordered by descending number of possible enzyme interactions?", "question_toks": ["What", "are", "the", "ids", ",", "names", ",", "and", "FDA", "approval", "status", "for", "medicines", "ordered", "by", "descending", "number", "of", "possible", "enzyme", "interactions", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3727", "db_id": "mountain_photos", "query": "select t1.name , count(*) from camera_lens as t1 join photos as t2 on t1.id = t2.camera_lens_id group by t1.id order by count(*)", "query_toks": ["SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "camera_lens", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.camera_lens_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "camera_lens", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "camera_lens_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")"], "question": "What is the name of each camera lens and the number of photos taken by it? Order the result by the count of photos.", "question_toks": ["What", "is", "the", "name", "of", "each", "camera", "lens", "and", "the", "number", "of", "photos", "taken", "by", "it", "?", "Order", "the", "result", "by", "the", "count", "of", "photos", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3609", "db_id": "music_1", "query": "select t1.artist_name , count(*) from artist as t1 join song as t2 on t1.artist_name = t2.artist_name group by t2.artist_name order by count(*) desc limit 3", "query_toks": ["SELECT", "T1.artist_name", ",", "count", "(", "*", ")", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "GROUP", "BY", "T2.artist_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "count", "(", "*", ")", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "group", "by", "t2", ".", "artist_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the names and number of works of the three artists who have produced the most songs.", "question_toks": ["Find", "the", "names", "and", "number", "of", "works", "of", "the", "three", "artists", "who", "have", "produced", "the", "most", "songs", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6200", "db_id": "music_4", "query": "select result , count(*) from music_festival group by result order by count(*) desc", "query_toks": ["SELECT", "RESULT", ",", "COUNT", "(", "*", ")", "FROM", "music_festival", "GROUP", "BY", "RESULT", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC"], "query_toks_no_value": ["select", "result", ",", "count", "(", "*", ")", "from", "music_festival", "group", "by", "result", "order", "by", "count", "(", "*", ")", "desc"], "question": "How many music festivals have had each kind of result, ordered descending by count?", "question_toks": ["How", "many", "music", "festivals", "have", "had", "each", "kind", "of", "result", ",", "ordered", "descending", "by", "count", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0537", "db_id": "store_1", "query": "select billing_country , count(*) from invoices group by billing_country order by count(*) desc limit 5;", "query_toks": ["SELECT", "billing_country", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "GROUP", "BY", "billing_country", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "5", ";"], "query_toks_no_value": ["select", "billing_country", ",", "count", "(", "*", ")", "from", "invoices", "group", "by", "billing_country", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "A list of the top 5 countries by number of invoices. List country name and number of invoices.", "question_toks": ["A", "list", "of", "the", "top", "5", "countries", "by", "number", "of", "invoices", ".", "List", "country", "name", "and", "number", "of", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 44, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 44, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 5, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6588", "db_id": "wine_1", "query": "select t2.winery from grapes as t1 join wine as t2 on t1.grape = t2.grape where t1.color = \"white\" group by t2.winery order by count(*) desc limit 3", "query_toks": ["SELECT", "T2.Winery", "FROM", "GRAPES", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.GRAPE", "=", "T2.GRAPE", "WHERE", "T1.Color", "=", "``", "White", "''", "GROUP", "BY", "T2.Winery", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "t2", ".", "winery", "from", "grapes", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "grape", "=", "t2", ".", "grape", "where", "t1", ".", "color", "=", "value", "group", "by", "t2", ".", "winery", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which 3 wineries produce the most wines made from white grapes?", "question_toks": ["Which", "3", "wineries", "produce", "the", "most", "wines", "made", "from", "white", "grapes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"White\"", null]], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0025", "db_id": "concert_singer", "query": "select t2.name , t2.capacity from concert as t1 join stadium as t2 on t1.stadium_id = t2.stadium_id where t1.year > 2013 group by t2.stadium_id order by count(*) desc limit 1", "query_toks": ["select", "t2.name", ",", "t2.capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1.stadium_id", "=", "t2.stadium_id", "where", "t1.year", ">", "2013", "group", "by", "t2.stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "1"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">", "value", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name and capacity of the stadium with the most concerts after 2013 ?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "of", "the", "stadium", "with", "the", "most", "concerts", "after", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], 2013.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_JOIN_1", "ORDER_BY_COUNT", "DEJOIN_TOTAL", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0930", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which owner owns the most dogs? List the owner id, first name and last name.", "question_toks": ["Which", "owner", "owns", "the", "most", "dogs", "?", "List", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "ORDER_BY_COUNT", "_HOW_MANY_MAX", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0931", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the owner id, first name and last name of the owner who has the most dogs.", "question_toks": ["Return", "the", "owner", "id", ",", "first", "name", "and", "last", "name", "of", "the", "owner", "who", "has", "the", "most", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "ORDER_BY_COUNT", "_HOW_MANY_MAX", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0227", "db_id": "flight_2", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the code of airport that has fewest number of flights?", "question_toks": ["What", "is", "the", "code", "of", "airport", "that", "has", "fewest", "number", "of", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0421", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What are the id and name of the museum visited most times?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "museum", "visited", "most", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "ORDER_BY_COUNT", "_HOW_MANY_MAX", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5512", "db_id": "voter_2", "query": "select city_code from student group by city_code order by count(*) desc limit 1", "query_toks": ["SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "city_code", "from", "student", "group", "by", "city_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the city_code of the city that the most students live in?", "question_toks": ["What", "is", "the", "city_code", "of", "the", "city", "that", "the", "most", "students", "live", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5513", "db_id": "voter_2", "query": "select city_code from student group by city_code order by count(*) desc limit 1", "query_toks": ["SELECT", "city_code", "FROM", "STUDENT", "GROUP", "BY", "city_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "city_code", "from", "student", "group", "by", "city_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the code of the city that has the most students.", "question_toks": ["Return", "the", "code", "of", "the", "city", "that", "has", "the", "most", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6563", "db_id": "wine_1", "query": "select t1.area from appellations as t1 join wine as t2 on t1.appelation = t2.appelation group by t2.appelation having t2.year < 2010 order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "GROUP", "BY", "T2.Appelation", "HAVING", "T2.year", "<", "2010", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "value", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the area of the appelation that produces the highest number of wines before the year of 2010?", "question_toks": ["What", "is", "the", "area", "of", "the", "appelation", "that", "produces", "the", "highest", "number", "of", "wines", "before", "the", "year", "of", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 4, [0, [0, 16, false], null], 2010.0, null]], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6564", "db_id": "wine_1", "query": "select t1.area from appellations as t1 join wine as t2 on t1.appelation = t2.appelation group by t2.appelation having t2.year < 2010 order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.Area", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "GROUP", "BY", "T2.Appelation", "HAVING", "T2.year", "<", "2010", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "area", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "group", "by", "t2", ".", "appelation", "having", "t2", ".", "year", "<", "value", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the area for the appelation which produced the most wines prior to 2010?", "question_toks": ["What", "is", "the", "area", "for", "the", "appelation", "which", "produced", "the", "most", "wines", "prior", "to", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 4, [0, [0, 16, false], null], 2010.0, null]], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6597", "db_id": "wine_1", "query": "select t1.county from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t2.score > 90 group by t1.county order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T2.Score", ">", "90", "GROUP", "BY", "T1.County", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "value", "group", "by", "t1", ".", "county", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the county where produces the most number of wines with score higher than 90.", "question_toks": ["Find", "the", "county", "where", "produces", "the", "most", "number", "of", "wines", "with", "score", "higher", "than", "90", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 90.0, null]], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6598", "db_id": "wine_1", "query": "select t1.county from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t2.score > 90 group by t1.county order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.County", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T2.Score", ">", "90", "GROUP", "BY", "T1.County", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "county", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t2", ".", "score", ">", "value", "group", "by", "t1", ".", "county", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the county that produces the most wines scoring higher than 90?", "question_toks": ["What", "is", "the", "county", "that", "produces", "the", "most", "wines", "scoring", "higher", "than", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 90.0, null]], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5828", "db_id": "workshop_paper", "query": "select college from submission group by college order by count(*) desc limit 1", "query_toks": ["SELECT", "College", "FROM", "submission", "GROUP", "BY", "College", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "college", "from", "submission", "group", "by", "college", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Show the most common college of authors of submissions.", "question_toks": ["Show", "the", "most", "common", "college", "of", "authors", "of", "submissions", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1872", "db_id": "wrestler", "query": "select reign from wrestler group by reign order by count(*) desc limit 1", "query_toks": ["SELECT", "Reign", "FROM", "wrestler", "GROUP", "BY", "Reign", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "reign", "from", "wrestler", "group", "by", "reign", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Please show the most common reigns of wrestlers.", "question_toks": ["Please", "show", "the", "most", "common", "reigns", "of", "wrestlers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0698", "db_id": "voter_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the area code in which the most voters voted?", "question_toks": ["What", "is", "the", "area", "code", "in", "which", "the", "most", "voters", "voted", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "ORDER_BY_COUNT", "_HOW_MANY_MAX", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0605", "db_id": "tvshow", "query": "select language , count(*) from tv_channel group by language order by count(*) asc limit 1;", "query_toks": ["SELECT", "LANGUAGE", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "LANGUAGE", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "language", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "language", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "List the language used least number of TV Channel. List language and number of TV Channel.", "question_toks": ["List", "the", "language", "used", "least", "number", "of", "TV", "Channel", ".", "List", "language", "and", "number", "of", "TV", "Channel", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0462", "db_id": "wta_1", "query": "select year from matches group by year order by count(*) desc limit 1", "query_toks": ["SELECT", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "year", "from", "matches", "group", "by", "year", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which year had the most matches?", "question_toks": ["Which", "year", "had", "the", "most", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0463", "db_id": "wta_1", "query": "select winner_name , winner_rank_points from matches group by winner_name order by count(*) desc limit 1", "query_toks": ["SELECT", "winner_name", ",", "winner_rank_points", "FROM", "matches", "GROUP", "BY", "winner_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "winner_name", ",", "winner_rank_points", "from", "matches", "group", "by", "winner_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the name and rank points of the winner who won the most times.", "question_toks": ["Find", "the", "name", "and", "rank", "points", "of", "the", "winner", "who", "won", "the", "most", "times", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]]]], "where": [], "groupBy": [[0, 34, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0475", "db_id": "wta_1", "query": "select country_code from players group by country_code order by count(*) desc limit 1", "query_toks": ["SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "country_code", "from", "players", "group", "by", "country_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "find the code of the country where has the greatest number of players.", "question_toks": ["find", "the", "code", "of", "the", "country", "where", "has", "the", "greatest", "number", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY_COUNT", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3315", "db_id": "college_1", "query": "select t2.emp_fname , t4.prof_office , t3.crs_description , t5.dept_name from class as t1 join employee as t2 on t1.prof_num = t2.emp_num join course as t3 on t1.crs_code = t3.crs_code join professor as t4 on t2.emp_num = t4.emp_num join department as t5 on t4.dept_code = t5.dept_code", "query_toks": ["SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", ",", "T5.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num", "JOIN", "department", "AS", "T5", "ON", "T4.dept_code", "=", "T5.dept_code"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", ",", "t5", ".", "dept_name", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num", "join", "department", "as", "t5", "on", "t4", ".", "dept_code", "=", "t5", ".", "dept_code"], "question": "Find the first names and offices of all instructors who have taught some course and the course description and the department name.", "question_toks": ["Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "the", "course", "description", "and", "the", "department", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 1], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3316", "db_id": "college_1", "query": "select t2.emp_fname , t4.prof_office , t3.crs_description , t5.dept_name from class as t1 join employee as t2 on t1.prof_num = t2.emp_num join course as t3 on t1.crs_code = t3.crs_code join professor as t4 on t2.emp_num = t4.emp_num join department as t5 on t4.dept_code = t5.dept_code", "query_toks": ["SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", ",", "T5.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num", "JOIN", "department", "AS", "T5", "ON", "T4.dept_code", "=", "T5.dept_code"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", ",", "t5", ".", "dept_name", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num", "join", "department", "as", "t5", "on", "t4", ".", "dept_code", "=", "t5", ".", "dept_code"], "question": "What are the first names, office locations, and departments of all instructors, and also what are the descriptions of the courses they teach?", "question_toks": ["What", "are", "the", "first", "names", ",", "office", "locations", ",", "and", "departments", "of", "all", "instructors", ",", "and", "also", "what", "are", "the", "descriptions", "of", "the", "courses", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 1], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0675", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "what kind of papers does Luke Zettlemoyer publish", "question_toks": ["what", "kind", "of", "papers", "does", "Luke", "Zettlemoyer", "publish"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0676", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "Keyphrases used by Luke Zettlemoyer", "question_toks": ["Keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0677", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "What keywords are in papers by Luke Zettlemoyer ?", "question_toks": ["What", "keywords", "are", "in", "papers", "by", "Luke", "Zettlemoyer", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0678", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keywords used by Luke Zettlemoyer", "question_toks": ["keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0679", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "what keywords are used by Luke Zettlemoyer", "question_toks": ["what", "keywords", "are", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0680", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0681", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keyphrases by Luke Zettlemoyer", "question_toks": ["keyphrases", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0682", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "give me the keywords used by Luke Zettlemoyer", "question_toks": ["give", "me", "the", "keywords", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0683", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "What topic does Luke Zettlemoyer write about ?", "question_toks": ["What", "topic", "does", "Luke", "Zettlemoyer", "write", "about", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0684", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "what topics does Luke Zettlemoyer publish in", "question_toks": ["what", "topics", "does", "Luke", "Zettlemoyer", "publish", "in"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0685", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keywords in the papers written by Luke Zettlemoyer", "question_toks": ["keywords", "in", "the", "papers", "written", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0686", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "keyphrases used by Luke Zettlemoyer .", "question_toks": ["keyphrases", "used", "by", "Luke", "Zettlemoyer", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0687", "db_id": "scholar", "query": "select distinct t1.keyphraseid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"luke zettlemoyer\";", "query_toks": ["SELECT", "DISTINCT", "t1.keyphraseid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Luke", "Zettlemoyer", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphraseid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value"], "question": "topics used by Luke Zettlemoyer", "question_toks": ["topics", "used", "by", "Luke", "Zettlemoyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0744", "db_id": "scholar", "query": "select distinct t1.keyphrasename , t3.year from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"sanjeev arora\" order by t3.year desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "sanjeev", "arora", "''", "ORDER", "BY", "t3.year", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "order", "by", "t3", ".", "year", "desc"], "question": "recent research interests of sanjeev arora", "question_toks": ["recent", "research", "interests", "of", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0745", "db_id": "scholar", "query": "select distinct t1.keyphrasename , t3.year from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"sanjeev arora\" order by t3.year desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "sanjeev", "arora", "''", "ORDER", "BY", "t3.year", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "order", "by", "t3", ".", "year", "desc"], "question": "recent papers by sanjeev arora", "question_toks": ["recent", "papers", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0746", "db_id": "scholar", "query": "select distinct t1.keyphrasename , t3.year from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"sanjeev arora\" order by t3.year desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "sanjeev", "arora", "''", "ORDER", "BY", "t3.year", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "order", "by", "t3", ".", "year", "desc"], "question": "recent papers written by sanjeev arora", "question_toks": ["recent", "papers", "written", "by", "sanjeev", "arora"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"sanjeev arora\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0756", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "brian curless convolution paper", "question_toks": ["brian", "curless", "convolution", "paper"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0757", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "convolution by brian curless", "question_toks": ["convolution", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0758", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "papers by brian curless about convolution", "question_toks": ["papers", "by", "brian", "curless", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0759", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "brian curless 's paper about convolution", "question_toks": ["brian", "curless", "'s", "paper", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0760", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What are the papers of brian curless in convolution ?", "question_toks": ["What", "are", "the", "papers", "of", "brian", "curless", "in", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0761", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "papers brian curless wrote about convolution", "question_toks": ["papers", "brian", "curless", "wrote", "about", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0762", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "brian curless 's papers on convolution", "question_toks": ["brian", "curless", "'s", "papers", "on", "convolution"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0763", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What is the paper about convolution from brian curless ?", "question_toks": ["What", "is", "the", "paper", "about", "convolution", "from", "brian", "curless", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0764", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "papers by brian curless in convolution topic", "question_toks": ["papers", "by", "brian", "curless", "in", "convolution", "topic"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0765", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "I want the papers on keyphrase0 by brian curless", "question_toks": ["I", "want", "the", "papers", "on", "keyphrase0", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0766", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "convolution papers by brian curless", "question_toks": ["convolution", "papers", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0767", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What papers has brian curless written on convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "on", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0768", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What papers has brian curless written about convolution ?", "question_toks": ["What", "papers", "has", "brian", "curless", "written", "about", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0769", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "convolution paper by brian curless", "question_toks": ["convolution", "paper", "by", "brian", "curless"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0770", "db_id": "scholar", "query": "select distinct t1.authorid , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"brian curless\" and t5.keyphrasename = \"convolution\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorid", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "brian", "curless", "''", "AND", "t5.keyphrasename", "=", "``", "convolution", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorid", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "Does brian curless do convolution ?", "question_toks": ["Does", "brian", "curless", "do", "convolution", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian curless\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"convolution\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0851", "db_id": "scholar", "query": "select distinct t2.datasetid , t4.year from paperdataset as t3 join dataset as t2 on t3.datasetid = t2.datasetid join paperkeyphrase as t1 on t1.paperid = t3.paperid join paper as t4 on t4.paperid = t3.paperid join keyphrase as t5 on t1.keyphraseid = t5.keyphraseid where t5.keyphrasename = \"deep learning\" order by t4.year asc;", "query_toks": ["SELECT", "DISTINCT", "t2.datasetid", ",", "t4.year", "FROM", "paperdataset", "AS", "t3", "JOIN", "dataset", "AS", "t2", "ON", "t3.datasetid", "=", "t2.datasetid", "JOIN", "paperkeyphrase", "AS", "t1", "ON", "t1.paperid", "=", "t3.paperid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "keyphrase", "AS", "t5", "ON", "t1.keyphraseid", "=", "t5.keyphraseid", "WHERE", "t5.keyphrasename", "=", "``", "deep", "learning", "''", "ORDER", "BY", "t4.year", "ASC", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "datasetid", ",", "t4", ".", "year", "from", "paperdataset", "as", "t3", "join", "dataset", "as", "t2", "on", "t3", ".", "datasetid", "=", "t2", ".", "datasetid", "join", "paperkeyphrase", "as", "t1", "on", "t1", ".", "paperid", "=", "t3", ".", "paperid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "keyphrase", "as", "t5", "on", "t1", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "where", "t5", ".", "keyphrasename", "=", "value", "order", "by", "t4", ".", "year", "asc"], "question": "what was the first deep learning paper ?", "question_toks": ["what", "was", "the", "first", "deep", "learning", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 8], ["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 5, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0852", "db_id": "scholar", "query": "select distinct t2.datasetid , t4.year from paperdataset as t3 join dataset as t2 on t3.datasetid = t2.datasetid join paperkeyphrase as t1 on t1.paperid = t3.paperid join paper as t4 on t4.paperid = t3.paperid join keyphrase as t5 on t1.keyphraseid = t5.keyphraseid where t5.keyphrasename = \"deep learning\" order by t4.year asc;", "query_toks": ["SELECT", "DISTINCT", "t2.datasetid", ",", "t4.year", "FROM", "paperdataset", "AS", "t3", "JOIN", "dataset", "AS", "t2", "ON", "t3.datasetid", "=", "t2.datasetid", "JOIN", "paperkeyphrase", "AS", "t1", "ON", "t1.paperid", "=", "t3.paperid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "keyphrase", "AS", "t5", "ON", "t1.keyphraseid", "=", "t5.keyphraseid", "WHERE", "t5.keyphrasename", "=", "``", "deep", "learning", "''", "ORDER", "BY", "t4.year", "ASC", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "datasetid", ",", "t4", ".", "year", "from", "paperdataset", "as", "t3", "join", "dataset", "as", "t2", "on", "t3", ".", "datasetid", "=", "t2", ".", "datasetid", "join", "paperkeyphrase", "as", "t1", "on", "t1", ".", "paperid", "=", "t3", ".", "paperid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "keyphrase", "as", "t5", "on", "t1", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "where", "t5", ".", "keyphrasename", "=", "value", "order", "by", "t4", ".", "year", "asc"], "question": "what year was the first deep learning paper published ?", "question_toks": ["what", "year", "was", "the", "first", "deep", "learning", "paper", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 8], ["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 5, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0914", "db_id": "scholar", "query": "select distinct count ( t5.citingpaperid ) from paperkeyphrase as t2 join keyphrase as t3 on t2.keyphraseid = t3.keyphraseid join writes as t4 on t4.paperid = t2.paperid join cite as t5 on t4.paperid = t5.citedpaperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"dan makumbi\" and t3.keyphrasename = \"genetic identity\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t5.citingpaperid", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t3", "ON", "t2.keyphraseid", "=", "t3.keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t2.paperid", "JOIN", "cite", "AS", "t5", "ON", "t4.paperid", "=", "t5.citedpaperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Dan", "Makumbi", "''", "AND", "t3.keyphrasename", "=", "``", "Genetic", "Identity", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t5", ".", "citingpaperid", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t3", "on", "t2", ".", "keyphraseid", "=", "t3", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "cite", "as", "t5", "on", "t4", ".", "paperid", "=", "t5", ".", "citedpaperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t3", ".", "keyphrasename", "=", "value"], "question": "How many citations does Dan Makumbi 's Genetic Identity paper have ?", "question_toks": ["How", "many", "citations", "does", "Dan", "Makumbi", "'s", "Genetic", "Identity", "paper", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Dan Makumbi\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Genetic Identity\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0921", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) from paperdataset as t3 join dataset as t2 on t3.datasetid = t2.datasetid join paper as t4 on t4.paperid = t3.paperid join paperkeyphrase as t1 on t4.paperid = t1.paperid join keyphrase as t5 on t1.keyphraseid = t5.keyphraseid where t2.datasetname = \"imagenet\" and t5.keyphrasename = \"deep learning\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", "FROM", "paperdataset", "AS", "t3", "JOIN", "dataset", "AS", "t2", "ON", "t3.datasetid", "=", "t2.datasetid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "paperkeyphrase", "AS", "t1", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "keyphrase", "AS", "t5", "ON", "t1.keyphraseid", "=", "t5.keyphraseid", "WHERE", "t2.datasetname", "=", "``", "ImageNet", "''", "AND", "t5.keyphrasename", "=", "``", "deep", "learning", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", "from", "paperdataset", "as", "t3", "join", "dataset", "as", "t2", "on", "t3", ".", "datasetid", "=", "t2", ".", "datasetid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "paperkeyphrase", "as", "t1", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "keyphrase", "as", "t5", "on", "t1", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "where", "t2", ".", "datasetname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "How many papers related to deep learning cited the dataset ImageNet ?", "question_toks": ["How", "many", "papers", "related", "to", "deep", "learning", "cited", "the", "dataset", "ImageNet", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5], ["table_unit", 8], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 9, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"ImageNet\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"deep learning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0988", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname != \"chris dyer\" and t5.keyphrasename = \"syntactic parsing\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "AND", "t5.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "!", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "what are some syntactic parsing papers that chris dyer did not write ?", "question_toks": ["what", "are", "some", "syntactic", "parsing", "papers", "that", "chris", "dyer", "did", "not", "write", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0989", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname != \"chris dyer\" and t5.keyphrasename = \"syntactic parsing\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "AND", "t5.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "!", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "are there any syntactic parsing papers not written by chris dyer ?", "question_toks": ["are", "there", "any", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0990", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname != \"chris dyer\" and t5.keyphrasename = \"syntactic parsing\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "AND", "t5.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "!", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "what are syntactic parsing papers not written by chris dyer", "question_toks": ["what", "are", "syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0991", "db_id": "scholar", "query": "select distinct t1.authorname , t3.paperid from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname != \"chris dyer\" and t5.keyphrasename = \"syntactic parsing\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", ",", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "!", "=", "``", "chris", "dyer", "''", "AND", "t5.keyphrasename", "=", "``", "syntactic", "parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", ",", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "!", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "syntactic parsing papers not written by chris dyer", "question_toks": ["syntactic", "parsing", "papers", "not", "written", "by", "chris", "dyer"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"chris dyer\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "NEGATION", "_NEGATION_NOT_EQUAL", "DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1032", "db_id": "scholar", "query": "select distinct count ( t5.citingpaperid ) from writes as t3 join author as t2 on t3.authorid = t2.authorid join cite as t5 on t3.paperid = t5.citedpaperid join writes as t4 on t4.paperid = t5.citingpaperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"michael i. jordan\" and t1.authorname = \"dan klein\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t5.citingpaperid", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "cite", "AS", "t5", "ON", "t3.paperid", "=", "t5.citedpaperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t5.citingpaperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "michael", "i.", "jordan", "''", "AND", "t1.authorname", "=", "``", "dan", "klein", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t5", ".", "citingpaperid", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "cite", "as", "t5", "on", "t3", ".", "paperid", "=", "t5", ".", "citedpaperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t5", ".", "citingpaperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "how many papers by dan klein are cited by michael i. jordan", "question_toks": ["how", "many", "papers", "by", "dan", "klein", "are", "cited", "by", "michael", "i.", "jordan"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael i. jordan\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"dan klein\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1033", "db_id": "scholar", "query": "select distinct count ( t5.citingpaperid ) from writes as t3 join author as t2 on t3.authorid = t2.authorid join cite as t5 on t3.paperid = t5.citedpaperid join writes as t4 on t4.paperid = t5.citingpaperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"michael i. jordan\" and t1.authorname = \"dan klein\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t5.citingpaperid", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "cite", "AS", "t5", "ON", "t3.paperid", "=", "t5.citedpaperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t5.citingpaperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "michael", "i.", "jordan", "''", "AND", "t1.authorname", "=", "``", "dan", "klein", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t5", ".", "citingpaperid", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "cite", "as", "t5", "on", "t3", ".", "paperid", "=", "t5", ".", "citedpaperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t5", ".", "citingpaperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "how many of dan klein 's papers cite michael i. jordan", "question_toks": ["how", "many", "of", "dan", "klein", "'s", "papers", "cite", "michael", "i.", "jordan"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"michael i. jordan\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"dan klein\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1034", "db_id": "scholar", "query": "select distinct t5.authorid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join writes as t5 on t5.paperid = t4.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"ameet soni\" and t1.authorname = \"ras bodik\";", "query_toks": ["SELECT", "DISTINCT", "t5.authorid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "writes", "AS", "t5", "ON", "t5.paperid", "=", "t4.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Ameet", "Soni", "''", "AND", "t1.authorname", "=", "``", "Ras", "Bodik", "''", ";"], "query_toks_no_value": ["select", "distinct", "t5", ".", "authorid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "writes", "as", "t5", "on", "t5", ".", "paperid", "=", "t4", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "who else was on the paper with Ameet Soni and Ras Bodik ?", "question_toks": ["who", "else", "was", "on", "the", "paper", "with", "Ameet", "Soni", "and", "Ras", "Bodik", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ameet Soni\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Ras Bodik\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1039", "db_id": "scholar", "query": "select distinct t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid join author as t5 on t3.authorid = t5.authorid where t2.keyphrasename = \"bacterial wilt\" and t4.year = 2016;", "query_toks": ["SELECT", "DISTINCT", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "JOIN", "author", "AS", "t5", "ON", "t3.authorid", "=", "t5.authorid", "WHERE", "t2.keyphrasename", "=", "``", "Bacterial", "Wilt", "''", "AND", "t4.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "join", "author", "as", "t5", "on", "t3", ".", "authorid", "=", "t5", ".", "authorid", "where", "t2", ".", "keyphrasename", "=", "value", "and", "t4", ".", "year", "=", "value"], "question": "What authors wrote papers about Bacterial Wilt in 2016 ?", "question_toks": ["What", "authors", "wrote", "papers", "about", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Bacterial Wilt\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1040", "db_id": "scholar", "query": "select distinct t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid join author as t5 on t3.authorid = t5.authorid where t2.keyphrasename = \"bacterial wilt\" and t4.year = 2016;", "query_toks": ["SELECT", "DISTINCT", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "JOIN", "author", "AS", "t5", "ON", "t3.authorid", "=", "t5.authorid", "WHERE", "t2.keyphrasename", "=", "``", "Bacterial", "Wilt", "''", "AND", "t4.year", "=", "2016", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "join", "author", "as", "t5", "on", "t3", ".", "authorid", "=", "t5", ".", "authorid", "where", "t2", ".", "keyphrasename", "=", "value", "and", "t4", ".", "year", "=", "value"], "question": "Who wrote on the topic of Bacterial Wilt in 2016 ?", "question_toks": ["Who", "wrote", "on", "the", "topic", "of", "Bacterial", "Wilt", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Bacterial Wilt\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1091", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "SUM", "(", "t3.numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Brian", "DeRenzi", "''", "GROUP", "BY", "t1.keyphrasename", "ORDER", "BY", "SUM", "(", "t3.numcitedby", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations ?", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Brian DeRenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1092", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc;", "query_toks": ["SELECT", "DISTINCT", "t1.keyphrasename", ",", "SUM", "(", "t3.numcitedby", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t5", "ON", "t4.authorid", "=", "t5.authorid", "WHERE", "t5.authorname", "=", "``", "Brian", "DeRenzi", "''", "GROUP", "BY", "t1.keyphrasename", "ORDER", "BY", "SUM", "(", "t3.numcitedby", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "question": "main topics of work by Brian DeRenzi", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Brian DeRenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1095", "db_id": "scholar", "query": "select distinct t3.year from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"michael stonebraker\" and t5.keyphrasename = \"gis database\";", "query_toks": ["SELECT", "DISTINCT", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Michael", "Stonebraker", "''", "AND", "t5.keyphrasename", "=", "``", "GIS", "Database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "When was Michael Stonebraker GIS Database published ?", "question_toks": ["When", "was", "Michael", "Stonebraker", "GIS", "Database", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Michael Stonebraker\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"GIS Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1096", "db_id": "scholar", "query": "select distinct t3.year from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"michael stonebraker\" and t5.keyphrasename = \"gis database\";", "query_toks": ["SELECT", "DISTINCT", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Michael", "Stonebraker", "''", "AND", "t5.keyphrasename", "=", "``", "GIS", "Database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "When did Michael Stonebraker publish his GIS Database paper ?", "question_toks": ["When", "did", "Michael", "Stonebraker", "publish", "his", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Michael Stonebraker\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"GIS Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1097", "db_id": "scholar", "query": "select distinct t3.year from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"michael stonebraker\" and t5.keyphrasename = \"gis database\";", "query_toks": ["SELECT", "DISTINCT", "t3.year", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Michael", "Stonebraker", "''", "AND", "t5.keyphrasename", "=", "``", "GIS", "Database", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "year", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "When does Michael Stonebraker publish the GIS Database paper ?", "question_toks": ["When", "does", "Michael", "Stonebraker", "publish", "the", "GIS", "Database", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Michael Stonebraker\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"GIS Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1105", "db_id": "scholar", "query": "select distinct t2.keyphraseid from paper as t3 join paperkeyphrase as t2 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid join writes as t5 on t5.paperid = t3.paperid join author as t1 on t5.authorid = t1.authorid where t1.authorname = \"dan klein\" and t4.venuename = \"emnlp\";", "query_toks": ["SELECT", "DISTINCT", "t2.keyphraseid", "FROM", "paper", "AS", "t3", "JOIN", "paperkeyphrase", "AS", "t2", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t5", "ON", "t5.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t5.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "dan", "klein", "''", "AND", "t4.venuename", "=", "``", "emnlp", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "keyphraseid", "from", "paper", "as", "t3", "join", "paperkeyphrase", "as", "t2", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t5", "on", "t5", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t5", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "keyphrases used by dan klein in his emnlp papers", "question_toks": ["keyphrases", "used", "by", "dan", "klein", "in", "his", "emnlp", "papers"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 8], ["table_unit", 0], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"dan klein\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"emnlp\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1110", "db_id": "scholar", "query": "select distinct t5.citingpaperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join cite as t5 on t2.paperid = t5.citingpaperid join paper as t3 on t3.paperid = t5.citedpaperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"euclidean distance\" and t4.venuename = \"nips\";", "query_toks": ["SELECT", "DISTINCT", "t5.citingpaperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "cite", "AS", "t5", "ON", "t2.paperid", "=", "t5.citingpaperid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t5.citedpaperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Euclidean", "Distance", "''", "AND", "t4.venuename", "=", "``", "NIPS", "''", ";"], "query_toks_no_value": ["select", "distinct", "t5", ".", "citingpaperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "cite", "as", "t5", "on", "t2", ".", "paperid", "=", "t5", ".", "citingpaperid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t5", ".", "citedpaperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "Euclidean Distance papers citing NIPS papers", "question_toks": ["Euclidean", "Distance", "papers", "citing", "NIPS", "papers"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 6], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Euclidean Distance\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"NIPS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1132", "db_id": "scholar", "query": "select distinct t3.title from paperkeyphrase as t2 join keyphrase as t5 on t2.keyphraseid = t5.keyphraseid join writes as t4 on t4.paperid = t2.paperid join paper as t3 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname like \"ranjit jhala\" and t5.keyphrasename = \"liquid haskell\";", "query_toks": ["SELECT", "DISTINCT", "t3.title", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t5", "ON", "t2.keyphraseid", "=", "t5.keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t2.paperid", "JOIN", "paper", "AS", "t3", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "LIKE", "``", "Ranjit", "Jhala", "''", "AND", "t5.keyphrasename", "=", "``", "Liquid", "Haskell", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "title", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t5", "on", "t2", ".", "keyphraseid", "=", "t5", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "paper", "as", "t3", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "like", "value", "and", "t5", ".", "keyphrasename", "=", "value"], "question": "What is the name of Ranjit Jhala 's Liquid Haskell paper ?", "question_toks": ["What", "is", "the", "name", "of", "Ranjit", "Jhala", "'s", "Liquid", "Haskell", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"Ranjit Jhala\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Liquid Haskell\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "DEJOIN_TOTAL", "_REFORMULATION_SYNONYM", "LIKE_IN_SQL", "DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1146", "db_id": "yelp", "query": "select t4.text from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join review as t4 on t4.business_id = t1.business_id join user as t5 on t5.user_id = t4.user_id where t2.category_name = \"italian\" and t3.category_name = \"category_category_name1\" and t5.name = \"michelle\";", "query_toks": ["SELECT", "t4.text", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "review", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "JOIN", "USER", "AS", "t5", "ON", "t5.user_id", "=", "t4.user_id", "WHERE", "t2.category_name", "=", "``", "Italian", "''", "AND", "t3.category_name", "=", "``", "category_category_name1", "''", "AND", "t5.name", "=", "``", "Michelle", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "text", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "review", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "join", "user", "as", "t5", "on", "t5", ".", "user_id", "=", "t4", ".", "user_id", "where", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "and", "t5", ".", "name", "=", "value"], "question": "List all the reviews by Michelle for Italian restaurant", "question_toks": ["List", "all", "the", "reviews", "by", "Michelle", "for", "Italian", "restaurant"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Italian\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"category_category_name1\"", null], "and", [false, 2, [0, [0, 17, false], null], "\"Michelle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1288", "db_id": "academic", "query": "select t1.keyword from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\";", "query_toks": ["SELECT", "t1.keyword", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "keyword", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value"], "question": "return me the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1292", "db_id": "academic", "query": "select t5.title from publication_keyword as t3 join keyword as t1 on t3.kid = t1.kid join publication as t5 on t5.pid = t3.pid join writes as t4 on t4.pid = t5.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\" and t1.keyword = \"user study\";", "query_toks": ["SELECT", "t5.title", "FROM", "publication_keyword", "AS", "t3", "JOIN", "keyword", "AS", "t1", "ON", "t3.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t5", "ON", "t5.pid", "=", "t3.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.keyword", "=", "``", "User", "Study", "''", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "publication_keyword", "as", "t3", "join", "keyword", "as", "t1", "on", "t3", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t5", "on", "t5", ".", "pid", "=", "t3", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "keyword", "=", "value"], "question": "return me the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"User Study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1295", "db_id": "academic", "query": "select t2.name from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t1.keyword = \"relational database\";", "query_toks": ["SELECT", "t2.name", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t1.keyword", "=", "``", "Relational", "Database", "''", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "keyword", "=", "value"], "question": "return me the authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Relational Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1302", "db_id": "academic", "query": "select t5.title from organization as t3 join author as t1 on t3.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join conference as t2 on t5.cid = t2.cid where t2.name = \"vldb\" and t3.name = \"university of michigan\";", "query_toks": ["SELECT", "t5.title", "FROM", "organization", "AS", "t3", "JOIN", "author", "AS", "t1", "ON", "t3.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "conference", "AS", "t2", "ON", "t5.cid", "=", "t2.cid", "WHERE", "t2.name", "=", "``", "VLDB", "''", "AND", "t3.name", "=", "``", "University", "of", "Michigan", "''", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "organization", "as", "t3", "join", "author", "as", "t1", "on", "t3", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "conference", "as", "t2", "on", "t5", ".", "cid", "=", "t2", ".", "cid", "where", "t2", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "return me all the papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"VLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1303", "db_id": "academic", "query": "select t5.title from organization as t2 join author as t1 on t2.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join journal as t3 on t5.jid = t3.jid where t3.name = \"pvldb\" and t2.name = \"university of michigan\";", "query_toks": ["SELECT", "t5.title", "FROM", "organization", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "journal", "AS", "t3", "ON", "t5.jid", "=", "t3.jid", "WHERE", "t3.name", "=", "``", "PVLDB", "''", "AND", "t2.name", "=", "``", "University", "of", "Michigan", "''", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "organization", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "journal", "as", "t3", "on", "t5", ".", "jid", "=", "t3", ".", "jid", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "return me all the papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"PVLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1304", "db_id": "academic", "query": "select t5.title from organization as t2 join author as t1 on t2.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join journal as t3 on t5.jid = t3.jid where t3.name = \"pvldb\" and t2.name = \"university of michigan\" and t5.year > 2000;", "query_toks": ["SELECT", "t5.title", "FROM", "organization", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "journal", "AS", "t3", "ON", "t5.jid", "=", "t3.jid", "WHERE", "t3.name", "=", "``", "PVLDB", "''", "AND", "t2.name", "=", "``", "University", "of", "Michigan", "''", "AND", "t5.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "organization", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "journal", "as", "t3", "on", "t5", ".", "jid", "=", "t3", ".", "jid", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value", "and", "t5", ".", "year", ">", "value"], "question": "return me all the papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "all", "the", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"PVLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null], "and", [false, 3, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1336", "db_id": "academic", "query": "select count ( distinct t1.keyword ) from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t1.keyword", ")", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1", ".", "keyword", ")", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value"], "question": "return me the number of the keywords related to \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "keywords", "related", "to", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 19, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1340", "db_id": "academic", "query": "select count ( distinct t5.title ) from publication_keyword as t3 join keyword as t1 on t3.kid = t1.kid join publication as t5 on t5.pid = t3.pid join writes as t4 on t4.pid = t5.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\" and t1.keyword = \"user study\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "publication_keyword", "AS", "t3", "JOIN", "keyword", "AS", "t1", "ON", "t3.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t5", "ON", "t5.pid", "=", "t3.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.keyword", "=", "``", "User", "Study", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "publication_keyword", "as", "t3", "join", "keyword", "as", "t1", "on", "t3", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t5", "on", "t5", ".", "pid", "=", "t3", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "keyword", "=", "value"], "question": "return me the number of the papers of \" H. V. Jagadish \" containing keyword \" User Study \" .", "question_toks": ["return", "me", "the", "number", "of", "the", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "containing", "keyword", "``", "User", "Study", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"User Study\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1343", "db_id": "academic", "query": "select count ( distinct t2.name ) from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t1.keyword = \"relational database\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t2.name", ")", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t1.keyword", "=", "``", "Relational", "Database", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "name", ")", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "keyword", "=", "value"], "question": "return me the number of authors who have papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Relational Database\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1352", "db_id": "academic", "query": "select count ( distinct t5.title ) from organization as t3 join author as t1 on t3.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join conference as t2 on t5.cid = t2.cid where t2.name = \"vldb\" and t3.name = \"university of michigan\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "organization", "AS", "t3", "JOIN", "author", "AS", "t1", "ON", "t3.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "conference", "AS", "t2", "ON", "t5.cid", "=", "t2.cid", "WHERE", "t2.name", "=", "``", "VLDB", "''", "AND", "t3.name", "=", "``", "University", "of", "Michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "organization", "as", "t3", "join", "author", "as", "t1", "on", "t3", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "conference", "as", "t2", "on", "t5", ".", "cid", "=", "t2", ".", "cid", "where", "t2", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "return me the number of papers in VLDB conference in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "VLDB", "conference", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"VLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1353", "db_id": "academic", "query": "select count ( distinct t5.title ) from organization as t2 join author as t1 on t2.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join journal as t3 on t5.jid = t3.jid where t3.name = \"pvldb\" and t2.name = \"university of michigan\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "organization", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "journal", "AS", "t3", "ON", "t5.jid", "=", "t3.jid", "WHERE", "t3.name", "=", "``", "PVLDB", "''", "AND", "t2.name", "=", "``", "University", "of", "Michigan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "organization", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "journal", "as", "t3", "on", "t5", ".", "jid", "=", "t3", ".", "jid", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "return me the number of papers in PVLDB in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 15, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"PVLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1354", "db_id": "academic", "query": "select count ( distinct t5.title ) from organization as t2 join author as t1 on t2.oid = t1.oid join writes as t4 on t4.aid = t1.aid join publication as t5 on t4.pid = t5.pid join journal as t3 on t5.jid = t3.jid where t3.name = \"pvldb\" and t2.name = \"university of michigan\" and t5.year > 2000;", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "organization", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t4", "ON", "t4.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t5", "ON", "t4.pid", "=", "t5.pid", "JOIN", "journal", "AS", "t3", "ON", "t5.jid", "=", "t3.jid", "WHERE", "t3.name", "=", "``", "PVLDB", "''", "AND", "t2.name", "=", "``", "University", "of", "Michigan", "''", "AND", "t5.year", ">", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "organization", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t4", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t5", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "journal", "as", "t3", "on", "t5", ".", "jid", "=", "t3", ".", "jid", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value", "and", "t5", ".", "year", ">", "value"], "question": "return me the number of papers in PVLDB after 2000 in \" University of Michigan \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "in", "PVLDB", "after", "2000", "in", "``", "University", "of", "Michigan", "``", "."], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 0], ["table_unit", 13], ["table_unit", 9], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 26, false], null], [0, 15, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"PVLDB\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null], "and", [false, 3, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1375", "db_id": "academic", "query": "select t2.name from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t1.name = \"h. v. jagadish\" and t5.year > 2000;", "query_toks": ["SELECT", "t2.name", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t1.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t5.year", ">", "2000", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t5", ".", "year", ">", "value"], "question": "return me the authors who have cooperated with \" H. V. Jagadish \" after 2000 .", "question_toks": ["return", "me", "the", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "after", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 3, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1376", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\";", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1377", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"yunyao li\" and t5.year > 2005;", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Yunyao", "Li", "''", "AND", "t5.year", ">", "2005", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "and", "t5", ".", "year", ">", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Yunyao Li \" after 2005 .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Yunyao", "Li", "``", "after", "2005", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Yunyao Li\"", null], "and", [false, 3, [0, [0, 30, false], null], 2005.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1380", "db_id": "academic", "query": "select t2.name from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t1.name = \"h. v. jagadish\";", "query_toks": ["SELECT", "t2.name", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t1.name", "=", "``", "H.", "V.", "Jagadish", "''", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t1", ".", "name", "=", "value"], "question": "return me the authors who have cooperated with \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1381", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\" and t5.year < 2000;", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", "AND", "t5.year", "<", "2000", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "and", "t5", ".", "year", "<", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" before 2000 .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null], "and", [false, 4, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1383", "db_id": "academic", "query": "select count ( distinct t5.title ) from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value"], "question": "return me the number of papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" .", "question_toks": ["return", "me", "the", "number", "of", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1384", "db_id": "academic", "query": "select count ( distinct t5.title ) from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\" and t5.year < 2000;", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t5.title", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", "AND", "t5.year", "<", "2000", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t5", ".", "title", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "and", "t5", ".", "year", "<", "value"], "question": "return me the number of papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" before 2000 .", "question_toks": ["return", "me", "the", "number", "of", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 29, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null], "and", [false, 4, [0, [0, 30, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1386", "db_id": "academic", "query": "select count ( distinct t2.name ) from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t1.name = \"h. v. jagadish\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t2.name", ")", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t1.name", "=", "``", "H.", "V.", "Jagadish", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "name", ")", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t1", ".", "name", "=", "value"], "question": "return me the number of authors who have cooperated with \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "number", "of", "authors", "who", "have", "cooperated", "with", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1388", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"h. v. jagadish\" and t1.name = \"divesh srivastava\" and t5.citation_num > 200;", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "AND", "t1.name", "=", "``", "Divesh", "Srivastava", "''", "AND", "t5.citation_num", ">", "200", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "and", "t5", ".", "citation_num", ">", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" with more than 200 citations .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "with", "more", "than", "200", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null], "and", [false, 3, [0, [0, 25, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1389", "db_id": "academic", "query": "select t2.name from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t1.keyword = \"relational database\" group by t2.name order by count ( distinct t3.title ) desc limit 1;", "query_toks": ["SELECT", "t2.name", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t1.keyword", "=", "``", "Relational", "Database", "''", "GROUP", "BY", "t2.name", "ORDER", "BY", "COUNT", "(", "DISTINCT", "t3.title", ")", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "keyword", "=", "value", "group", "by", "t2", ".", "name", "order", "by", "count", "(", "distinct", "t3", ".", "title", ")", "desc", "limit", "value"], "question": "return me the author who has the most number of papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "author", "who", "has", "the", "most", "number", "of", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Relational Database\"", null]], "groupBy": [[0, 3, false]], "having": [], "orderBy": ["desc", [[0, [3, 29, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1396", "db_id": "academic", "query": "select t1.keyword from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\" group by t1.keyword order by count ( distinct t3.title ) desc limit 1;", "query_toks": ["SELECT", "t1.keyword", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "GROUP", "BY", "t1.keyword", "ORDER", "BY", "COUNT", "(", "DISTINCT", "t3.title", ")", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t1", ".", "keyword", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value", "group", "by", "t1", ".", "keyword", "order", "by", "count", "(", "distinct", "t3", ".", "title", ")", "desc", "limit", "value"], "question": "return me the keyword, which have been contained by the most number of papers by \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keyword", ",", "which", "have", "been", "contained", "by", "the", "most", "number", "of", "papers", "by", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 29, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1399", "db_id": "academic", "query": "select t5.title from writes as t3 join author as t2 on t3.aid = t2.aid join publication as t5 on t3.pid = t5.pid join writes as t4 on t4.pid = t5.pid join author as t1 on t4.aid = t1.aid where t2.name = \"divesh srivastava\" and t1.name = \"h. v. jagadish\" order by t5.citation_num desc limit 1;", "query_toks": ["SELECT", "t5.title", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "publication", "AS", "t5", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t5.pid", "JOIN", "author", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "WHERE", "t2.name", "=", "``", "Divesh", "Srivastava", "''", "AND", "t1.name", "=", "``", "H.", "V.", "Jagadish", "''", "ORDER", "BY", "t5.citation_num", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t5", ".", "title", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "publication", "as", "t5", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t5", ".", "pid", "join", "author", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "name", "=", "value", "order", "by", "t5", ".", "citation_num", "desc", "limit", "value"], "question": "return me the papers written by \" H. V. Jagadish \" and \" Divesh Srivastava \" with the most number of citations .", "question_toks": ["return", "me", "the", "papers", "written", "by", "``", "H.", "V.", "Jagadish", "``", "and", "``", "Divesh", "Srivastava", "``", "with", "the", "most", "number", "of", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 0], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Divesh Srivastava\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 25, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1415", "db_id": "academic", "query": "select t2.name from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t1.keyword = \"relational database\" group by t2.name having count ( distinct t3.title ) > 10;", "query_toks": ["SELECT", "t2.name", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t1.keyword", "=", "``", "Relational", "Database", "''", "GROUP", "BY", "t2.name", "HAVING", "COUNT", "(", "DISTINCT", "t3.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "keyword", "=", "value", "group", "by", "t2", ".", "name", "having", "count", "(", "distinct", "t3", ".", "title", ")", ">", "value"], "question": "return me the authors who have more than 10 papers containing keyword \" Relational Database \" .", "question_toks": ["return", "me", "the", "authors", "who", "have", "more", "than", "10", "papers", "containing", "keyword", "``", "Relational", "Database", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Relational Database\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 29, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1420", "db_id": "academic", "query": "select t1.keyword from publication_keyword as t5 join keyword as t1 on t5.kid = t1.kid join publication as t3 on t3.pid = t5.pid join writes as t4 on t4.pid = t3.pid join author as t2 on t4.aid = t2.aid where t2.name = \"h. v. jagadish\" group by t1.keyword having count ( distinct t3.title ) > 10;", "query_toks": ["SELECT", "t1.keyword", "FROM", "publication_keyword", "AS", "t5", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.kid", "JOIN", "publication", "AS", "t3", "ON", "t3.pid", "=", "t5.pid", "JOIN", "writes", "AS", "t4", "ON", "t4.pid", "=", "t3.pid", "JOIN", "author", "AS", "t2", "ON", "t4.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "H.", "V.", "Jagadish", "''", "GROUP", "BY", "t1.keyword", "HAVING", "COUNT", "(", "DISTINCT", "t3.title", ")", ">", "10", ";"], "query_toks_no_value": ["select", "t1", ".", "keyword", "from", "publication_keyword", "as", "t5", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "kid", "join", "publication", "as", "t3", "on", "t3", ".", "pid", "=", "t5", ".", "pid", "join", "writes", "as", "t4", "on", "t4", ".", "pid", "=", "t3", ".", "pid", "join", "author", "as", "t2", "on", "t4", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value", "group", "by", "t1", ".", "keyword", "having", "count", "(", "distinct", "t3", ".", "title", ")", ">", "value"], "question": "return me the keywords, which have been contained by more than 10 papers of \" H. V. Jagadish \" .", "question_toks": ["return", "me", "the", "keywords", ",", "which", "have", "been", "contained", "by", "more", "than", "10", "papers", "of", "``", "H.", "V.", "Jagadish", "``", "."], "sql": {"from": {"table_units": [["table_unit", 12], ["table_unit", 7], ["table_unit", 9], ["table_unit", 13], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"H. V. Jagadish\"", null]], "groupBy": [[0, 19, false]], "having": [[false, 3, [0, [3, 29, true], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1457", "db_id": "imdb", "query": "select t2.title from movie as t2 join made_by as t3 on t2.mid = t3.msid join producer as t1 on t1.pid = t3.pid join written_by as t5 on t5.msid = t2.mid join writer as t4 on t5.wid = t4.wid where t1.name = \"woody allen\" and t4.name = \"woody allen\";", "query_toks": ["SELECT", "t2.title", "FROM", "movie", "AS", "t2", "JOIN", "made_by", "AS", "t3", "ON", "t2.mid", "=", "t3.msid", "JOIN", "producer", "AS", "t1", "ON", "t1.pid", "=", "t3.pid", "JOIN", "written_by", "AS", "t5", "ON", "t5.msid", "=", "t2.mid", "JOIN", "writer", "AS", "t4", "ON", "t5.wid", "=", "t4.wid", "WHERE", "t1.name", "=", "``", "Woody", "Allen", "''", "AND", "t4.name", "=", "``", "Woody", "Allen", "''", ";"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "movie", "as", "t2", "join", "made_by", "as", "t3", "on", "t2", ".", "mid", "=", "t3", ".", "msid", "join", "producer", "as", "t1", "on", "t1", ".", "pid", "=", "t3", ".", "pid", "join", "written_by", "as", "t5", "on", "t5", ".", "msid", "=", "t2", ".", "mid", "join", "writer", "as", "t4", "on", "t5", ".", "wid", "=", "t4", ".", "wid", "where", "t1", ".", "name", "=", "value", "and", "t4", ".", "name", "=", "value"], "question": "Find all movies written and produced by \" Woody Allen \"", "question_toks": ["Find", "all", "movies", "written", "and", "produced", "by", "``", "Woody", "Allen", "``"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 10], ["table_unit", 7], ["table_unit", 15], ["table_unit", 14]], "conds": [[false, 2, [0, [0, 42, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 41, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 42, false], null], "and", [false, 2, [0, [0, 66, false], null], [0, 57, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"Woody Allen\"", null], "and", [false, 2, [0, [0, 59, false], null], "\"Woody Allen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1472", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Taraneh", "Alidoosti", "''", "AND", "t3.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "Find all movies directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \"", "question_toks": ["Find", "all", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Taraneh Alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1473", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Taraneh", "Alidoosti", "''", "AND", "t3.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "What are all the movies directed by \" Asghar Farhadi \" featuring \" Taraneh Alidoosti \" ?", "question_toks": ["What", "are", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Taraneh Alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1474", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Taraneh", "Alidoosti", "''", "AND", "t3.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "How many movies are there that are directed by \" Asghar Farhadi \" and featuring \" Taraneh Alidoosti \" ?", "question_toks": ["How", "many", "movies", "are", "there", "that", "are", "directed", "by", "``", "Asghar", "Farhadi", "``", "and", "featuring", "``", "Taraneh", "Alidoosti", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Taraneh Alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "DEJOIN_TOTAL", "_HOW_MANY_NOTHING", "DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1475", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join directed_by as t2 on t4.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"taraneh alidoosti\" and t3.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t4.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Taraneh", "Alidoosti", "''", "AND", "t3.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "directed_by", "as", "t2", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "List all the movies directed by \" Asghar Farhadi \" in which \" Taraneh Alidoosti \" played", "question_toks": ["List", "all", "the", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``", "in", "which", "``", "Taraneh", "Alidoosti", "``", "played"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Taraneh Alidoosti\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1482", "db_id": "imdb", "query": "select t3.name from cast as t4 join actor as t1 on t4.aid = t1.aid join movie as t5 on t5.mid = t4.msid join directed_by as t2 on t5.mid = t2.msid join director as t3 on t3.did = t2.did where t1.name = \"kate winslet\";", "query_toks": ["SELECT", "t3.name", "FROM", "CAST", "AS", "t4", "JOIN", "actor", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t4.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t5.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.name", "=", "``", "Kate", "Winslet", "''", ";"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "cast", "as", "t4", "join", "actor", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "directed_by", "as", "t2", "on", "t5", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "name", "=", "value"], "question": "Find the directors of all movies featuring \" Kate Winslet \"", "question_toks": ["Find", "the", "directors", "of", "all", "movies", "featuring", "``", "Kate", "Winslet", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Kate Winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1483", "db_id": "imdb", "query": "select t1.name from cast as t3 join actor as t2 on t3.aid = t2.aid join movie as t5 on t5.mid = t3.msid join made_by as t4 on t5.mid = t4.msid join producer as t1 on t1.pid = t4.pid where t2.name = \"kate winslet\";", "query_toks": ["SELECT", "t1.name", "FROM", "CAST", "AS", "t3", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t3.msid", "JOIN", "made_by", "AS", "t4", "ON", "t5.mid", "=", "t4.msid", "JOIN", "producer", "AS", "t1", "ON", "t1.pid", "=", "t4.pid", "WHERE", "t2.name", "=", "``", "Kate", "Winslet", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "cast", "as", "t3", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t3", ".", "msid", "join", "made_by", "as", "t4", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "producer", "as", "t1", "on", "t1", ".", "pid", "=", "t4", ".", "pid", "where", "t2", ".", "name", "=", "value"], "question": "Find the producers of all movies in which \" Kate Winslet \" is an actor", "question_toks": ["Find", "the", "producers", "of", "all", "movies", "in", "which", "``", "Kate", "Winslet", "``", "is", "an", "actor"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 10], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 41, false], null]]}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Kate Winslet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1495", "db_id": "imdb", "query": "select t3.genre from director as t5 join directed_by as t2 on t5.did = t2.did join movie as t4 on t4.mid = t2.msid join classification as t1 on t4.mid = t1.msid join genre as t3 on t3.gid = t1.gid where t5.name = \"asghar farhadi\";", "query_toks": ["SELECT", "t3.genre", "FROM", "director", "AS", "t5", "JOIN", "directed_by", "AS", "t2", "ON", "t5.did", "=", "t2.did", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t2.msid", "JOIN", "classification", "AS", "t1", "ON", "t4.mid", "=", "t1.msid", "JOIN", "genre", "AS", "t3", "ON", "t3.gid", "=", "t1.gid", "WHERE", "t5.name", "=", "``", "Asghar", "Farhadi", "''", ";"], "query_toks_no_value": ["select", "t3", ".", "genre", "from", "director", "as", "t5", "join", "directed_by", "as", "t2", "on", "t5", ".", "did", "=", "t2", ".", "did", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "classification", "as", "t1", "on", "t4", ".", "mid", "=", "t1", ".", "msid", "join", "genre", "as", "t3", "on", "t3", ".", "gid", "=", "t1", ".", "gid", "where", "t5", ".", "name", "=", "value"], "question": "what are the genres of movies directed by \" Asghar Farhadi \"", "question_toks": ["what", "are", "the", "genres", "of", "movies", "directed", "by", "``", "Asghar", "Farhadi", "``"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Asghar Farhadi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1498", "db_id": "imdb", "query": "select t3.name from director as t3 join directed_by as t2 on t3.did = t2.did join movie as t4 on t4.mid = t2.msid join tags as t5 on t5.msid = t4.mid join keyword as t1 on t5.kid = t1.id where t1.keyword = \"nuclear weapons\";", "query_toks": ["SELECT", "t3.name", "FROM", "director", "AS", "t3", "JOIN", "directed_by", "AS", "t2", "ON", "t3.did", "=", "t2.did", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t2.msid", "JOIN", "tags", "AS", "t5", "ON", "t5.msid", "=", "t4.mid", "JOIN", "keyword", "AS", "t1", "ON", "t5.kid", "=", "t1.id", "WHERE", "t1.keyword", "=", "``", "nuclear", "weapons", "''", ";"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "director", "as", "t3", "join", "directed_by", "as", "t2", "on", "t3", ".", "did", "=", "t2", ".", "did", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "tags", "as", "t5", "on", "t5", ".", "msid", "=", "t4", ".", "mid", "join", "keyword", "as", "t1", "on", "t5", ".", "kid", "=", "t1", ".", "id", "where", "t1", ".", "keyword", "=", "value"], "question": "List all the directors of movies about nuclear weapons", "question_toks": ["List", "all", "the", "directors", "of", "movies", "about", "nuclear", "weapons"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11], ["table_unit", 12], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 48, false], null], [0, 42, false], null], "and", [false, 2, [0, [0, 49, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"nuclear weapons\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1517", "db_id": "imdb", "query": "select count ( distinct t4.title ) from director as t3 join directed_by as t2 on t3.did = t2.did join movie as t4 on t4.mid = t2.msid join made_by as t5 on t4.mid = t5.msid join producer as t1 on t1.pid = t5.pid where t3.name = \"quentin tarantino\" and t4.release_year < 2010 and t4.release_year > 2002;", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t4.title", ")", "FROM", "director", "AS", "t3", "JOIN", "directed_by", "AS", "t2", "ON", "t3.did", "=", "t2.did", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t2.msid", "JOIN", "made_by", "AS", "t5", "ON", "t4.mid", "=", "t5.msid", "JOIN", "producer", "AS", "t1", "ON", "t1.pid", "=", "t5.pid", "WHERE", "t3.name", "=", "``", "Quentin", "Tarantino", "''", "AND", "t4.release_year", "<", "2010", "AND", "t4.release_year", ">", "2002", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t4", ".", "title", ")", "from", "director", "as", "t3", "join", "directed_by", "as", "t2", "on", "t3", ".", "did", "=", "t2", ".", "did", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "made_by", "as", "t5", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "producer", "as", "t1", "on", "t1", ".", "pid", "=", "t5", ".", "pid", "where", "t3", ".", "name", "=", "value", "and", "t4", ".", "release_year", "<", "value", "and", "t4", ".", "release_year", ">", "value"], "question": "How many movies did \" Quentin Tarantino \" direct before 2002 and after 2010 ?", "question_toks": ["How", "many", "movies", "did", "``", "Quentin", "Tarantino", "``", "direct", "before", "2002", "and", "after", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11], ["table_unit", 10], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 41, false], null]]}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Quentin Tarantino\"", null], "and", [false, 4, [0, [0, 44, false], null], 2010.0, null], "and", [false, 3, [0, [0, 44, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1519", "db_id": "imdb", "query": "select count ( distinct t1.name ) from cast as t4 join actor as t1 on t4.aid = t1.aid join movie as t5 on t5.mid = t4.msid join directed_by as t2 on t5.mid = t2.msid join director as t3 on t3.did = t2.did where t1.nationality = \"iran\" and t3.name = \"jim jarmusch\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t1.name", ")", "FROM", "CAST", "AS", "t4", "JOIN", "actor", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t4.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t5.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t1.nationality", "=", "``", "Iran", "''", "AND", "t3.name", "=", "``", "Jim", "Jarmusch", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1", ".", "name", ")", "from", "cast", "as", "t4", "join", "actor", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "directed_by", "as", "t2", "on", "t5", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t1", ".", "nationality", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "find the number of actors from Iran who played in \" Jim Jarmusch \" movies", "question_toks": ["find", "the", "number", "of", "actors", "from", "Iran", "who", "played", "in", "``", "Jim", "Jarmusch", "``", "movies"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Iran\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Jim Jarmusch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1521", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join cast as t3 on t4.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t1.name = \"woody strode\" and t2.name = \"jason robards\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "CAST", "AS", "t3", "ON", "t4.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t1.name", "=", "``", "Woody", "Strode", "''", "AND", "t2.name", "=", "``", "Jason", "Robards", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "cast", "as", "t3", "on", "t4", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "Find all movies that star both \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "that", "star", "both", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Woody Strode\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Jason Robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1522", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join cast as t3 on t4.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t1.name = \"woody strode\" and t2.name = \"jason robards\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "CAST", "AS", "t3", "ON", "t4.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t1.name", "=", "``", "Woody", "Strode", "''", "AND", "t2.name", "=", "``", "Jason", "Robards", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "cast", "as", "t3", "on", "t4", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "Find all movies featuring \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "featuring", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Woody Strode\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Jason Robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1523", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join cast as t3 on t4.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t1.name = \"woody strode\" and t2.name = \"jason robards\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "CAST", "AS", "t3", "ON", "t4.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t1.name", "=", "``", "Woody", "Strode", "''", "AND", "t2.name", "=", "``", "Jason", "Robards", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "cast", "as", "t3", "on", "t4", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "Find all movies featuring both \" Woody Strode \" and \" Jason Robards \"", "question_toks": ["Find", "all", "movies", "featuring", "both", "``", "Woody", "Strode", "``", "and", "``", "Jason", "Robards", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Woody Strode\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Jason Robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1524", "db_id": "imdb", "query": "select t4.title from cast as t5 join actor as t1 on t5.aid = t1.aid join movie as t4 on t4.mid = t5.msid join cast as t3 on t4.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t1.name = \"woody strode\" and t2.name = \"jason robards\";", "query_toks": ["SELECT", "t4.title", "FROM", "CAST", "AS", "t5", "JOIN", "actor", "AS", "t1", "ON", "t5.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t5.msid", "JOIN", "CAST", "AS", "t3", "ON", "t4.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t1.name", "=", "``", "Woody", "Strode", "''", "AND", "t2.name", "=", "``", "Jason", "Robards", "''", ";"], "query_toks_no_value": ["select", "t4", ".", "title", "from", "cast", "as", "t5", "join", "actor", "as", "t1", "on", "t5", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "cast", "as", "t3", "on", "t4", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value", "and", "t2", ".", "name", "=", "value"], "question": "Find all movies featuring \" Jason Robards \" and \" Woody Strode \"", "question_toks": ["Find", "all", "movies", "featuring", "``", "Jason", "Robards", "``", "and", "``", "Woody", "Strode", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Woody Strode\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Jason Robards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1525", "db_id": "imdb", "query": "select t1.name from cast as t4 join actor as t1 on t4.aid = t1.aid join movie as t5 on t5.mid = t4.msid join cast as t3 on t5.mid = t3.msid join actor as t2 on t3.aid = t2.aid where t2.name = \"tom hanks\";", "query_toks": ["SELECT", "t1.name", "FROM", "CAST", "AS", "t4", "JOIN", "actor", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t4.msid", "JOIN", "CAST", "AS", "t3", "ON", "t5.mid", "=", "t3.msid", "JOIN", "actor", "AS", "t2", "ON", "t3.aid", "=", "t2.aid", "WHERE", "t2.name", "=", "``", "Tom", "Hanks", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "cast", "as", "t4", "join", "actor", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "cast", "as", "t3", "on", "t5", ".", "mid", "=", "t3", ".", "msid", "join", "actor", "as", "t2", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t2", ".", "name", "=", "value"], "question": "Find all actors who acted in the same movie as \" Tom Hanks \"", "question_toks": ["Find", "all", "actors", "who", "acted", "in", "the", "same", "movie", "as", "``", "Tom", "Hanks", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Tom Hanks\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1529", "db_id": "imdb", "query": "select t1.name from cast as t4 join actor as t1 on t4.aid = t1.aid join movie as t5 on t5.mid = t4.msid join directed_by as t2 on t5.mid = t2.msid join director as t3 on t3.did = t2.did where t3.name = \"quentin tarantino\" order by t5.release_year desc limit 1;", "query_toks": ["SELECT", "t1.name", "FROM", "CAST", "AS", "t4", "JOIN", "actor", "AS", "t1", "ON", "t4.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t5", "ON", "t5.mid", "=", "t4.msid", "JOIN", "directed_by", "AS", "t2", "ON", "t5.mid", "=", "t2.msid", "JOIN", "director", "AS", "t3", "ON", "t3.did", "=", "t2.did", "WHERE", "t3.name", "=", "``", "Quentin", "Tarantino", "''", "ORDER", "BY", "t5.release_year", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "cast", "as", "t4", "join", "actor", "as", "t1", "on", "t4", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t5", "on", "t5", ".", "mid", "=", "t4", ".", "msid", "join", "directed_by", "as", "t2", "on", "t5", ".", "mid", "=", "t2", ".", "msid", "join", "director", "as", "t3", "on", "t3", ".", "did", "=", "t2", ".", "did", "where", "t3", ".", "name", "=", "value", "order", "by", "t5", ".", "release_year", "desc", "limit", "value"], "question": "Find the actors who played in the latest movie by \" Quentin Tarantino \"", "question_toks": ["Find", "the", "actors", "who", "played", "in", "the", "latest", "movie", "by", "``", "Quentin", "Tarantino", "``"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11], ["table_unit", 8], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Quentin Tarantino\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 44, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1532", "db_id": "imdb", "query": "select t1.name from director as t3 join directed_by as t2 on t3.did = t2.did join movie as t4 on t4.mid = t2.msid join made_by as t5 on t4.mid = t5.msid join producer as t1 on t1.pid = t5.pid group by t1.name order by count ( distinct t3.name ) desc limit 1;", "query_toks": ["SELECT", "t1.name", "FROM", "director", "AS", "t3", "JOIN", "directed_by", "AS", "t2", "ON", "t3.did", "=", "t2.did", "JOIN", "movie", "AS", "t4", "ON", "t4.mid", "=", "t2.msid", "JOIN", "made_by", "AS", "t5", "ON", "t4.mid", "=", "t5.msid", "JOIN", "producer", "AS", "t1", "ON", "t1.pid", "=", "t5.pid", "GROUP", "BY", "t1.name", "ORDER", "BY", "COUNT", "(", "DISTINCT", "t3.name", ")", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "director", "as", "t3", "join", "directed_by", "as", "t2", "on", "t3", ".", "did", "=", "t2", ".", "did", "join", "movie", "as", "t4", "on", "t4", ".", "mid", "=", "t2", ".", "msid", "join", "made_by", "as", "t5", "on", "t4", ".", "mid", "=", "t5", ".", "msid", "join", "producer", "as", "t1", "on", "t1", ".", "pid", "=", "t5", ".", "pid", "group", "by", "t1", ".", "name", "order", "by", "count", "(", "distinct", "t3", ".", "name", ")", "desc", "limit", "value"], "question": "Which producer has worked with the most number of directors ?", "question_toks": ["Which", "producer", "has", "worked", "with", "the", "most", "number", "of", "directors", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11], ["table_unit", 10], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 40, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 41, false], null]]}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [[0, 30, false]], "having": [], "orderBy": ["desc", [[0, [3, 24, true], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_4"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0209", "db_id": "bike_1", "query": "select count(*) from station as t1 join trip as t2 join station as t3 join trip as t4 on t1.id = t2.start_station_id and t2.id = t4.id and t3.id = t4.end_station_id where t1.city = \"mountain view\" and t3.city = \"palo alto\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "JOIN", "station", "AS", "T3", "JOIN", "trip", "AS", "T4", "ON", "T1.id", "=", "T2.start_station_id", "AND", "T2.id", "=", "T4.id", "AND", "T3.id", "=", "T4.end_station_id", "WHERE", "T1.city", "=", "``", "Mountain", "View", "''", "AND", "T3.city", "=", "``", "Palo", "Alto", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "join", "station", "as", "t3", "join", "trip", "as", "t4", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "and", "t2", ".", "id", "=", "t4", ".", "id", "and", "t3", ".", "id", "=", "t4", ".", "end_station_id", "where", "t1", ".", "city", "=", "value", "and", "t3", ".", "city", "=", "value"], "question": "How many trips started from Mountain View city and ended at Palo Alto city?", "question_toks": ["How", "many", "trips", "started", "from", "Mountain", "View", "city", "and", "ended", "at", "Palo", "Alto", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Mountain View\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "VALUES_WITHOUT_COLUMNS", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0210", "db_id": "bike_1", "query": "select count(*) from station as t1 join trip as t2 join station as t3 join trip as t4 on t1.id = t2.start_station_id and t2.id = t4.id and t3.id = t4.end_station_id where t1.city = \"mountain view\" and t3.city = \"palo alto\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "JOIN", "station", "AS", "T3", "JOIN", "trip", "AS", "T4", "ON", "T1.id", "=", "T2.start_station_id", "AND", "T2.id", "=", "T4.id", "AND", "T3.id", "=", "T4.end_station_id", "WHERE", "T1.city", "=", "``", "Mountain", "View", "''", "AND", "T3.city", "=", "``", "Palo", "Alto", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "join", "station", "as", "t3", "join", "trip", "as", "t4", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id", "and", "t2", ".", "id", "=", "t4", ".", "id", "and", "t3", ".", "id", "=", "t4", ".", "end_station_id", "where", "t1", ".", "city", "=", "value", "and", "t3", ".", "city", "=", "value"], "question": "How many trips stated from a station in Mountain View and ended at one in Palo Alto?", "question_toks": ["How", "many", "trips", "stated", "from", "a", "station", "in", "Mountain", "View", "and", "ended", "at", "one", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Mountain View\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0639", "db_id": "store_1", "query": "select t1.name from tracks as t1 join invoice_lines as t2 on t1.id = t2.track_id join invoices as t3 on t3.id = t2.invoice_id join customers as t4 on t4.id = t3.customer_id where t4.first_name = \"daan\" and t4.last_name = \"peeters\";", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "invoice_lines", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "invoices", "AS", "T3", "ON", "T3.id", "=", "T2.invoice_id", "JOIN", "customers", "AS", "T4", "ON", "T4.id", "=", "T3.customer_id", "WHERE", "T4.first_name", "=", "``", "Daan", "''", "AND", "T4.last_name", "=", "``", "Peeters", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "invoice_lines", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "invoices", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "invoice_id", "join", "customers", "as", "t4", "on", "t4", ".", "id", "=", "t3", ".", "customer_id", "where", "t4", ".", "first_name", "=", "value", "and", "t4", ".", "last_name", "=", "value"], "question": "List all tracks bought by customer Daan Peeters.", "question_toks": ["List", "all", "tracks", "bought", "by", "customer", "Daan", "Peeters", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 60, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 59, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 39, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Daan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"Peeters\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0640", "db_id": "store_1", "query": "select t1.name from tracks as t1 join invoice_lines as t2 on t1.id = t2.track_id join invoices as t3 on t3.id = t2.invoice_id join customers as t4 on t4.id = t3.customer_id where t4.first_name = \"daan\" and t4.last_name = \"peeters\";", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "invoice_lines", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "invoices", "AS", "T3", "ON", "T3.id", "=", "T2.invoice_id", "JOIN", "customers", "AS", "T4", "ON", "T4.id", "=", "T3.customer_id", "WHERE", "T4.first_name", "=", "``", "Daan", "''", "AND", "T4.last_name", "=", "``", "Peeters", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "invoice_lines", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "invoices", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "invoice_id", "join", "customers", "as", "t4", "on", "t4", ".", "id", "=", "t3", ".", "customer_id", "where", "t4", ".", "first_name", "=", "value", "and", "t4", ".", "last_name", "=", "value"], "question": "What are the tracks that Dean Peeters bought?", "question_toks": ["What", "are", "the", "tracks", "that", "Dean", "Peeters", "bought", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 9], ["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 60, false], null], "and", [false, 2, [0, [0, 38, false], null], [0, 59, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 39, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Daan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"Peeters\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1646", "db_id": "wedding", "query": "select t4.name from wedding as t1 join people as t2 on t1.male_id = t2.people_id join people as t3 on t1.female_id = t3.people_id join church as t4 on t4.church_id = t1.church_id where t2.age > 30 or t3.age > 30", "query_toks": ["SELECT", "T4.name", "FROM", "wedding", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.male_id", "=", "T2.people_id", "JOIN", "people", "AS", "T3", "ON", "T1.female_id", "=", "T3.people_id", "JOIN", "church", "AS", "T4", "ON", "T4.church_id", "=", "T1.church_id", "WHERE", "T2.age", ">", "30", "OR", "T3.age", ">", "30"], "query_toks_no_value": ["select", "t4", ".", "name", "from", "wedding", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "male_id", "=", "t2", ".", "people_id", "join", "people", "as", "t3", "on", "t1", ".", "female_id", "=", "t3", ".", "people_id", "join", "church", "as", "t4", "on", "t4", ".", "church_id", "=", "t1", ".", "church_id", "where", "t2", ".", "age", ">", "value", "or", "t3", ".", "age", ">", "value"], "question": "Show the church names for the weddings of all people older than 30.", "question_toks": ["Show", "the", "church", "names", "for", "the", "weddings", "of", "all", "people", "older", "than", "30", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 30.0, null], "or", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2147", "db_id": "local_govt_in_alabama", "query": "select t3.service_id , t4.service_type_code from participants as t1 join participants_in_events as t2 on t1.participant_id = t2.participant_id join events as t3 on t2.event_id = t3.event_id join services as t4 on t3.service_id = t4.service_id group by t3.service_id order by count(*) asc limit 1", "query_toks": ["SELECT", "T3.service_id", ",", "T4.Service_Type_Code", "FROM", "participants", "AS", "T1", "JOIN", "Participants_in_Events", "AS", "T2", "ON", "T1.Participant_ID", "=", "T2.Participant_ID", "JOIN", "EVENTS", "AS", "T3", "ON", "T2.Event_ID", "=", "T3.Event_ID", "JOIN", "services", "AS", "T4", "ON", "T3.service_id", "=", "T4.service_id", "GROUP", "BY", "T3.service_id", "ORDER", "BY", "count", "(", "*", ")", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "service_id", ",", "t4", ".", "service_type_code", "from", "participants", "as", "t1", "join", "participants_in_events", "as", "t2", "on", "t1", ".", "participant_id", "=", "t2", ".", "participant_id", "join", "events", "as", "t3", "on", "t2", ".", "event_id", "=", "t3", ".", "event_id", "join", "services", "as", "t4", "on", "t3", ".", "service_id", "=", "t4", ".", "service_id", "group", "by", "t3", ".", "service_id", "order", "by", "count", "(", "*", ")", "asc", "limit", "value"], "question": "Which service id and type has the least number of participants?", "question_toks": ["Which", "service", "id", "and", "type", "has", "the", "least", "number", "of", "participants", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3251", "db_id": "college_1", "query": "select count(*) from class as t1 join enroll as t2 on t1.class_code = t2.class_code join course as t3 on t1.crs_code = t3.crs_code join department as t4 on t3.dept_code = t4.dept_code where t4.dept_name = 'accounting'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "WHERE", "T4.dept_name", "=", "'Accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value"], "question": "How many students are enrolled in the class taught by some professor from the accounting department?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "the", "class", "taught", "by", "some", "professor", "from", "the", "accounting", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3252", "db_id": "college_1", "query": "select count(*) from class as t1 join enroll as t2 on t1.class_code = t2.class_code join course as t3 on t1.crs_code = t3.crs_code join department as t4 on t3.dept_code = t4.dept_code where t4.dept_name = 'accounting'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "WHERE", "T4.dept_name", "=", "'Accounting", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "where", "t4", ".", "dept_name", "=", "value"], "question": "How many students are enrolled in some classes that are taught by an accounting professor?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "some", "classes", "that", "are", "taught", "by", "an", "accounting", "professor", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Accounting\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3253", "db_id": "college_1", "query": "select t4.dept_name from class as t1 join enroll as t2 on t1.class_code = t2.class_code join course as t3 on t1.crs_code = t3.crs_code join department as t4 on t3.dept_code = t4.dept_code group by t3.dept_code order by count(*) desc limit 1", "query_toks": ["SELECT", "T4.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "GROUP", "BY", "T3.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t4", ".", "dept_name", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "group", "by", "t3", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department that has the largest number of students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "that", "has", "the", "largest", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3254", "db_id": "college_1", "query": "select t4.dept_name from class as t1 join enroll as t2 on t1.class_code = t2.class_code join course as t3 on t1.crs_code = t3.crs_code join department as t4 on t3.dept_code = t4.dept_code group by t3.dept_code order by count(*) desc limit 1", "query_toks": ["SELECT", "T4.dept_name", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "department", "AS", "T4", "ON", "T3.dept_code", "=", "T4.dept_code", "GROUP", "BY", "T3.dept_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t4", ".", "dept_name", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "department", "as", "t4", "on", "t3", ".", "dept_code", "=", "t4", ".", "dept_code", "group", "by", "t3", ".", "dept_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the name of the department with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3313", "db_id": "college_1", "query": "select t2.emp_fname , t4.prof_office , t3.crs_description from class as t1 join employee as t2 on t1.prof_num = t2.emp_num join course as t3 on t1.crs_code = t3.crs_code join professor as t4 on t2.emp_num = t4.emp_num", "query_toks": ["SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num"], "question": "Find the first names and offices of all instructors who have taught some course and also find the course description.", "question_toks": ["Find", "the", "first", "names", "and", "offices", "of", "all", "instructors", "who", "have", "taught", "some", "course", "and", "also", "find", "the", "course", "description", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 17, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3314", "db_id": "college_1", "query": "select t2.emp_fname , t4.prof_office , t3.crs_description from class as t1 join employee as t2 on t1.prof_num = t2.emp_num join course as t3 on t1.crs_code = t3.crs_code join professor as t4 on t2.emp_num = t4.emp_num", "query_toks": ["SELECT", "T2.emp_fname", ",", "T4.prof_office", ",", "T3.crs_description", "FROM", "CLASS", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.prof_num", "=", "T2.emp_num", "JOIN", "course", "AS", "T3", "ON", "T1.crs_code", "=", "T3.crs_code", "JOIN", "professor", "AS", "T4", "ON", "T2.emp_num", "=", "T4.emp_num"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t4", ".", "prof_office", ",", "t3", ".", "crs_description", "from", "class", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "prof_num", "=", "t2", ".", "emp_num", "join", "course", "as", "t3", "on", "t1", ".", "crs_code", "=", "t3", ".", "crs_code", "join", "professor", "as", "t4", "on", "t2", ".", "emp_num", "=", "t4", ".", "emp_num"], "question": "What are the first names, office locations of all lecturers who have taught some course?", "question_toks": ["What", "are", "the", "first", "names", ",", "office", "locations", "of", "all", "lecturers", "who", "have", "taught", "some", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 17, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3317", "db_id": "college_1", "query": "select t1.stu_fname , t1.stu_lname , t4.crs_description from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num join class as t3 on t2.class_code = t3.class_code join course as t4 on t3.crs_code = t4.crs_code", "query_toks": ["SELECT", "T1.stu_fname", ",", "T1.stu_lname", ",", "T4.crs_description", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code"], "query_toks_no_value": ["select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", ",", "t4", ".", "crs_description", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code"], "question": "Find names of all students who took some course and the course description.", "question_toks": ["Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "the", "course", "description", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 33, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3318", "db_id": "college_1", "query": "select t1.stu_fname , t1.stu_lname , t4.crs_description from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num join class as t3 on t2.class_code = t3.class_code join course as t4 on t3.crs_code = t4.crs_code", "query_toks": ["SELECT", "T1.stu_fname", ",", "T1.stu_lname", ",", "T4.crs_description", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "JOIN", "CLASS", "AS", "T3", "ON", "T2.class_code", "=", "T3.class_code", "JOIN", "course", "AS", "T4", "ON", "T3.crs_code", "=", "T4.crs_code"], "query_toks_no_value": ["select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", ",", "t4", ".", "crs_description", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "class", "as", "t3", "on", "t2", ".", "class_code", "=", "t3", ".", "class_code", "join", "course", "as", "t4", "on", "t3", ".", "crs_code", "=", "t4", ".", "crs_code"], "question": "What are the names of all students who took a class and the corresponding course descriptions?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "took", "a", "class", "and", "the", "corresponding", "course", "descriptions", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 33, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3922", "db_id": "hospital_1", "query": "select t4.name from stay as t1 join patient as t2 on t1.patient = t2.ssn join prescribes as t3 on t3.patient = t2.ssn join medication as t4 on t3.medication = t4.code where room = 111", "query_toks": ["SELECT", "T4.name", "FROM", "stay", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.Patient", "=", "T2.SSN", "JOIN", "Prescribes", "AS", "T3", "ON", "T3.Patient", "=", "T2.SSN", "JOIN", "Medication", "AS", "T4", "ON", "T3.Medication", "=", "T4.Code", "WHERE", "room", "=", "111"], "query_toks_no_value": ["select", "t4", ".", "name", "from", "stay", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "join", "prescribes", "as", "t3", "on", "t3", ".", "patient", "=", "t2", ".", "ssn", "join", "medication", "as", "t4", "on", "t3", ".", "medication", "=", "t4", ".", "code", "where", "room", "=", "value"], "question": "Find the name of medication used on the patient who stays in room 111?", "question_toks": ["Find", "the", "name", "of", "medication", "used", "on", "the", "patient", "who", "stays", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 5], ["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 59, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 41, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 60, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3923", "db_id": "hospital_1", "query": "select t4.name from stay as t1 join patient as t2 on t1.patient = t2.ssn join prescribes as t3 on t3.patient = t2.ssn join medication as t4 on t3.medication = t4.code where room = 111", "query_toks": ["SELECT", "T4.name", "FROM", "stay", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.Patient", "=", "T2.SSN", "JOIN", "Prescribes", "AS", "T3", "ON", "T3.Patient", "=", "T2.SSN", "JOIN", "Medication", "AS", "T4", "ON", "T3.Medication", "=", "T4.Code", "WHERE", "room", "=", "111"], "query_toks_no_value": ["select", "t4", ".", "name", "from", "stay", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "patient", "=", "t2", ".", "ssn", "join", "prescribes", "as", "t3", "on", "t3", ".", "patient", "=", "t2", ".", "ssn", "join", "medication", "as", "t4", "on", "t3", ".", "medication", "=", "t4", ".", "code", "where", "room", "=", "value"], "question": "What is the name of the medication used for the patient staying in room 111?", "question_toks": ["What", "is", "the", "name", "of", "the", "medication", "used", "for", "the", "patient", "staying", "in", "room", "111", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 5], ["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 59, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 41, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 60, false], null], 111.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4482", "db_id": "network_2", "query": "select distinct t4.name from personfriend as t1 join person as t2 on t1.name = t2.name join personfriend as t3 on t1.friend = t3.name join personfriend as t4 on t3.friend = t4.name where t2.name = 'alice' and t4.name != 'alice'", "query_toks": ["SELECT", "DISTINCT", "T4.name", "FROM", "PersonFriend", "AS", "T1", "JOIN", "Person", "AS", "T2", "ON", "T1.name", "=", "T2.name", "JOIN", "PersonFriend", "AS", "T3", "ON", "T1.friend", "=", "T3.name", "JOIN", "PersonFriend", "AS", "T4", "ON", "T3.friend", "=", "T4.name", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T4.name", "!", "=", "'Alice", "'"], "query_toks_no_value": ["select", "distinct", "t4", ".", "name", "from", "personfriend", "as", "t1", "join", "person", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "join", "personfriend", "as", "t3", "on", "t1", ".", "friend", "=", "t3", ".", "name", "join", "personfriend", "as", "t4", "on", "t3", ".", "friend", "=", "t4", ".", "name", "where", "t2", ".", "name", "=", "value", "and", "t4", ".", "name", "!", "=", "value"], "question": "Find Alice's friends of friends.", "question_toks": ["Find", "Alice", "'s", "friends", "of", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"Alice\"", null], "and", [false, 7, [0, [0, 6, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4483", "db_id": "network_2", "query": "select distinct t4.name from personfriend as t1 join person as t2 on t1.name = t2.name join personfriend as t3 on t1.friend = t3.name join personfriend as t4 on t3.friend = t4.name where t2.name = 'alice' and t4.name != 'alice'", "query_toks": ["SELECT", "DISTINCT", "T4.name", "FROM", "PersonFriend", "AS", "T1", "JOIN", "Person", "AS", "T2", "ON", "T1.name", "=", "T2.name", "JOIN", "PersonFriend", "AS", "T3", "ON", "T1.friend", "=", "T3.name", "JOIN", "PersonFriend", "AS", "T4", "ON", "T3.friend", "=", "T4.name", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T4.name", "!", "=", "'Alice", "'"], "query_toks_no_value": ["select", "distinct", "t4", ".", "name", "from", "personfriend", "as", "t1", "join", "person", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "join", "personfriend", "as", "t3", "on", "t1", ".", "friend", "=", "t3", ".", "name", "join", "personfriend", "as", "t4", "on", "t3", ".", "friend", "=", "t4", ".", "name", "where", "t2", ".", "name", "=", "value", "and", "t4", ".", "name", "!", "=", "value"], "question": "What are the names of all of Alice's friends of friends?", "question_toks": ["What", "are", "the", "names", "of", "all", "of", "Alice", "'s", "friends", "of", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"Alice\"", null], "and", [false, 7, [0, [0, 6, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4777", "db_id": "department_store", "query": "select distinct t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id join products as t4 on t3.product_id = t4.product_id where t4.product_name = \"keyboard\"", "query_toks": ["SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "order_items", "AS", "T3", "ON", "T2.order_id", "=", "T3.order_id", "JOIN", "products", "AS", "T4", "ON", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "keyboard", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value"], "question": "List the names of all the distinct customers who bought a keyboard.", "question_toks": ["List", "the", "names", "of", "all", "the", "distinct", "customers", "who", "bought", "a", "keyboard", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 8], ["table_unit", 11], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 31, false], null], "and", [false, 2, [0, [0, 30, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"keyboard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4778", "db_id": "department_store", "query": "select distinct t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id join products as t4 on t3.product_id = t4.product_id where t4.product_name = \"keyboard\"", "query_toks": ["SELECT", "DISTINCT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "customer_orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "JOIN", "order_items", "AS", "T3", "ON", "T2.order_id", "=", "T3.order_id", "JOIN", "products", "AS", "T4", "ON", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "keyboard", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value"], "question": "What are the distinct names of customers who have purchased a keyboard?", "question_toks": ["What", "are", "the", "distinct", "names", "of", "customers", "who", "have", "purchased", "a", "keyboard", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 8], ["table_unit", 11], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 31, false], null], "and", [false, 2, [0, [0, 30, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"keyboard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5568", "db_id": "products_gen_characteristics", "query": "select product_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"red\" and t3.characteristic_name = \"fast\"", "query_toks": ["SELECT", "product_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value"], "question": "Find the name of the products that have the color description \"red\" and have the characteristic name \"fast\".", "question_toks": ["Find", "the", "name", "of", "the", "products", "that", "have", "the", "color", "description", "``", "red", "''", "and", "have", "the", "characteristic", "name", "``", "fast", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5569", "db_id": "products_gen_characteristics", "query": "select product_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"red\" and t3.characteristic_name = \"fast\"", "query_toks": ["SELECT", "product_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "fast", "''"], "query_toks_no_value": ["select", "product_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value"], "question": "What are the names of the products that have a color description of 'red' and the 'fast' characteristic?", "question_toks": ["What", "are", "the", "names", "of", "the", "products", "that", "have", "a", "color", "description", "of", "'red", "'", "and", "the", "'fast", "'", "characteristic", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"fast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5574", "db_id": "products_gen_characteristics", "query": "select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"red\" and t3.characteristic_name = \"slow\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value"], "question": "Find the number of the products that have their color described as \"red\" and have a characteristic named \"slow\".", "question_toks": ["Find", "the", "number", "of", "the", "products", "that", "have", "their", "color", "described", "as", "``", "red", "''", "and", "have", "a", "characteristic", "named", "``", "slow", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5575", "db_id": "products_gen_characteristics", "query": "select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"red\" and t3.characteristic_name = \"slow\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "red", "''", "AND", "t3.characteristic_name", "=", "``", "slow", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "and", "t3", ".", "characteristic_name", "=", "value"], "question": "How many products have the color description 'red' and the characteristic name 'slow'?", "question_toks": ["How", "many", "products", "have", "the", "color", "description", "'red", "'", "and", "the", "characteristic", "name", "'slow", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"red\"", null], "and", [false, 2, [0, [0, 11, false], null], "\"slow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5576", "db_id": "products_gen_characteristics", "query": "select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"white\" or t3.characteristic_name = \"hot\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "white", "''", "OR", "t3.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "or", "t3", ".", "characteristic_name", "=", "value"], "question": "Count the products that have the color description \"white\" or have the characteristic name \"hot\".", "question_toks": ["Count", "the", "products", "that", "have", "the", "color", "description", "``", "white", "''", "or", "have", "the", "characteristic", "name", "``", "hot", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5577", "db_id": "products_gen_characteristics", "query": "select count(*) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id join ref_colors as t4 on t1.color_code = t4.color_code where t4.color_description = \"white\" or t3.characteristic_name = \"hot\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "JOIN", "ref_colors", "AS", "t4", "ON", "t1.color_code", "=", "t4.color_code", "WHERE", "t4.color_description", "=", "``", "white", "''", "OR", "t3.characteristic_name", "=", "``", "hot", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "join", "ref_colors", "as", "t4", "on", "t1", ".", "color_code", "=", "t4", ".", "color_code", "where", "t4", ".", "color_description", "=", "value", "or", "t3", ".", "characteristic_name", "=", "value"], "question": "How many products have their color described as 'white' or have a characteristic with the name 'hot'?", "question_toks": ["How", "many", "products", "have", "their", "color", "described", "as", "'white", "'", "or", "have", "a", "characteristic", "with", "the", "name", "'hot", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 14, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"white\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"hot\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6941", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 join order_items as t3 join products as t4 on t1.customer_id = t2.customer_id and t2.order_id = t3.order_id and t3.product_id = t4.product_id where t4.product_name = \"food\" group by t1.customer_id having count(*) >= 1", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "JOIN", "order_items", "AS", "T3", "JOIN", "products", "AS", "T4", "ON", "T1.customer_id", "=", "T2.customer_id", "AND", "T2.order_id", "=", "T3.order_id", "AND", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "food", "''", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "join", "order_items", "as", "t3", "join", "products", "as", "t4", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "and", "t2", ".", "order_id", "=", "t3", ".", "order_id", "and", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "List the names of the customers who have once bought product \"food\".", "question_toks": ["List", "the", "names", "of", "the", "customers", "who", "have", "once", "bought", "product", "``", "food", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"food\"", null]], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6942", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 join order_items as t3 join products as t4 on t1.customer_id = t2.customer_id and t2.order_id = t3.order_id and t3.product_id = t4.product_id where t4.product_name = \"food\" group by t1.customer_id having count(*) >= 1", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "JOIN", "order_items", "AS", "T3", "JOIN", "products", "AS", "T4", "ON", "T1.customer_id", "=", "T2.customer_id", "AND", "T2.order_id", "=", "T3.order_id", "AND", "T3.product_id", "=", "T4.product_id", "WHERE", "T4.product_name", "=", "``", "food", "''", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "join", "order_items", "as", "t3", "join", "products", "as", "t4", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "and", "t2", ".", "order_id", "=", "t3", ".", "order_id", "and", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_name", "=", "value", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the customers who bought product \"food\" at least once?", "question_toks": ["What", "are", "the", "names", "of", "the", "customers", "who", "bought", "product", "``", "food", "''", "at", "least", "once", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"food\"", null]], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0564", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers that are coauthored by Peter Mertens and Dina Barbian", "question_toks": ["papers", "that", "are", "coauthored", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0565", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers written by Peter Mertens and Dina Barbian", "question_toks": ["papers", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0566", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "what are the papers that have Peter Mertens and Dina Barbian as co-authors", "question_toks": ["what", "are", "the", "papers", "that", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0567", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers have Peter Mertens and Dina Barbian written ?", "question_toks": ["What", "papers", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0568", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "what paper did Peter Mertens and Dina Barbian write together ?", "question_toks": ["what", "paper", "did", "Peter", "Mertens", "and", "Dina", "Barbian", "write", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0569", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Has Peter Mertens and Dina Barbian written a paper together ?", "question_toks": ["Has", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "a", "paper", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0570", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Papers by Peter Mertens and Dina Barbian", "question_toks": ["Papers", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0571", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers by authors Peter Mertens and Dina Barbian", "question_toks": ["papers", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0572", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers were written by authors Peter Mertens and Dina Barbian", "question_toks": ["What", "papers", "were", "written", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0573", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers by Peter Mertens and Dina Barbian", "question_toks": ["papers", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0574", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers written by authors Peter Mertens and Dina Barbian", "question_toks": ["papers", "written", "by", "authors", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_AND_TO_COLUMNS", "AND_IN_NL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0575", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "When did Peter Mertens and Dina Barbian collaborate ?", "question_toks": ["When", "did", "Peter", "Mertens", "and", "Dina", "Barbian", "collaborate", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0576", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "what are the collaborations of Peter Mertens and Dina Barbian ?", "question_toks": ["what", "are", "the", "collaborations", "of", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0577", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Have Peter Mertens and Dina Barbian written a paper together ?", "question_toks": ["Have", "Peter", "Mertens", "and", "Dina", "Barbian", "written", "a", "paper", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0578", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Peter Mertens and Dina Barbian as co-authors", "question_toks": ["Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0579", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Does Peter Mertens ever collaborated with Dina Barbian ?", "question_toks": ["Does", "Peter", "Mertens", "ever", "collaborated", "with", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0580", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "Which papers have Peter Mertens and Dina Barbian as co-authors ?", "question_toks": ["Which", "papers", "have", "Peter", "Mertens", "and", "Dina", "Barbian", "as", "co-authors", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0581", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "papers coauthored by Peter Mertens and Dina Barbian", "question_toks": ["papers", "coauthored", "by", "Peter", "Mertens", "and", "Dina", "Barbian"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0582", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers have been written by Peter Mertens and Dina Barbian ?", "question_toks": ["What", "papers", "have", "been", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0583", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers have been written by both Peter Mertens and Dina Barbian ?", "question_toks": ["What", "papers", "have", "been", "written", "by", "both", "Peter", "Mertens", "and", "Dina", "Barbian", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0584", "db_id": "scholar", "query": "select distinct t3.paperid from writes as t3 join author as t2 on t3.authorid = t2.authorid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t2.authorname = \"peter mertens\" and t1.authorname = \"dina barbian\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "writes", "AS", "t3", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t2.authorname", "=", "``", "Peter", "Mertens", "''", "AND", "t1.authorname", "=", "``", "Dina", "Barbian", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "writes", "as", "t3", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t1", ".", "authorname", "=", "value"], "question": "What papers have been written by Peter Mertens and Dina Barbian .", "question_toks": ["What", "papers", "have", "been", "written", "by", "Peter", "Mertens", "and", "Dina", "Barbian", "."], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Peter Mertens\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Dina Barbian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0585", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who has written the most syntactic parsing papers ?", "question_toks": ["who", "has", "written", "the", "most", "syntactic", "parsing", "papers", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0586", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who is the most published author in syntactic parsing ?", "question_toks": ["who", "is", "the", "most", "published", "author", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0587", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who has the most publications in syntactic parsing ?", "question_toks": ["who", "has", "the", "most", "publications", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0588", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who has written the most papers on syntactic parsing ?", "question_toks": ["who", "has", "written", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0589", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "List prominent scholars in syntactic parsing ?", "question_toks": ["List", "prominent", "scholars", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0590", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who wrote the most papers on syntactic parsing ?", "question_toks": ["who", "wrote", "the", "most", "papers", "on", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0591", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "Who are the authors with the most published papers in syntactic parsing ?", "question_toks": ["Who", "are", "the", "authors", "with", "the", "most", "published", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0592", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "top syntactic parsing author", "question_toks": ["top", "syntactic", "parsing", "author"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0593", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "top author in syntactic parsing", "question_toks": ["top", "author", "in", "syntactic", "parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0594", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who published the most in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0595", "db_id": "scholar", "query": "select distinct count ( t4.paperid ) , t3.authorid from paperkeyphrase as t1 join keyphrase as t2 on t1.keyphraseid = t2.keyphraseid join paper as t4 on t4.paperid = t1.paperid join writes as t3 on t3.paperid = t4.paperid where t2.keyphrasename = \"syntactic parsing\" group by t3.authorid order by count ( t4.paperid ) desc;", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.paperid", ")", ",", "t3.authorid", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t2", "ON", "t1.keyphraseid", "=", "t2.keyphraseid", "JOIN", "paper", "AS", "t4", "ON", "t4.paperid", "=", "t1.paperid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t4.paperid", "WHERE", "t2.keyphrasename", "=", "``", "syntactic", "parsing", "''", "GROUP", "BY", "t3.authorid", "ORDER", "BY", "COUNT", "(", "t4.paperid", ")", "DESC", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "paperid", ")", ",", "t3", ".", "authorid", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t2", "on", "t1", ".", "keyphraseid", "=", "t2", ".", "keyphraseid", "join", "paper", "as", "t4", "on", "t4", ".", "paperid", "=", "t1", ".", "paperid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t4", ".", "paperid", "where", "t2", ".", "keyphrasename", "=", "value", "group", "by", "t3", ".", "authorid", "order", "by", "count", "(", "t4", ".", "paperid", ")", "desc"], "question": "who published the most papers in syntactic parsing ?", "question_toks": ["who", "published", "the", "most", "papers", "in", "syntactic", "parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]], [0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"syntactic parsing\"", null]], "groupBy": [[0, 25, false]], "having": [], "orderBy": ["desc", [[0, [3, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0596", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many citation noah a smith has ?", "question_toks": ["How", "many", "citation", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0597", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "noah a smith citation count", "question_toks": ["noah", "a", "smith", "citation", "count"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0598", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "how many citations does noah a smith have ?", "question_toks": ["how", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0599", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many citations does noah a smith have ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0600", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "number of citations of noah a smith", "question_toks": ["number", "of", "citations", "of", "noah", "a", "smith"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0601", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many citations does noah a smith have", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "have"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0602", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many times was noah a smith cited ?", "question_toks": ["How", "many", "times", "was", "noah", "a", "smith", "cited", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0603", "db_id": "scholar", "query": "select distinct count ( t4.citedpaperid ) from paper as t3 join cite as t4 on t3.paperid = t4.citedpaperid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"noah a smith\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t4.citedpaperid", ")", "FROM", "paper", "AS", "t3", "JOIN", "cite", "AS", "t4", "ON", "t3.paperid", "=", "t4.citedpaperid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "noah", "a", "smith", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t4", ".", "citedpaperid", ")", "from", "paper", "as", "t3", "join", "cite", "as", "t4", "on", "t3", ".", "paperid", "=", "t4", ".", "citedpaperid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value"], "question": "How many citations does noah a smith has ?", "question_toks": ["How", "many", "citations", "does", "noah", "a", "smith", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"noah a smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0643", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers did David M. Blei publish at AISTATS ?", "question_toks": ["How", "many", "papers", "did", "David", "M.", "Blei", "publish", "at", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0644", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS ?", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0645", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers has David M. Blei published in AISTATS ?", "question_toks": ["How", "many", "papers", "has", "David", "M.", "Blei", "published", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0646", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many papers does David M. Blei have at AISTATS", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "at", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0647", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many papers does David M. Blei have in AISTATS ?", "question_toks": ["how", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0648", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many David M. Blei papers are in AISTATS ?", "question_toks": ["how", "many", "David", "M.", "Blei", "papers", "are", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0649", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers David M. Blei has in AISTATS ?", "question_toks": ["How", "many", "papers", "David", "M.", "Blei", "has", "in", "AISTATS", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0650", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from venue as t4 join paper as t3 on t4.venueid = t3.venueid join writes as t2 on t2.paperid = t3.paperid join author as t1 on t2.authorid = t1.authorid where t1.authorname = \"david m. blei\" and t4.venuename = \"aistats\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "venue", "AS", "t4", "JOIN", "paper", "AS", "t3", "ON", "t4.venueid", "=", "t3.venueid", "JOIN", "writes", "AS", "t2", "ON", "t2.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "David", "M.", "Blei", "''", "AND", "t4.venuename", "=", "``", "AISTATS", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "venue", "as", "t4", "join", "paper", "as", "t3", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "join", "writes", "as", "t2", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "How many papers does David M. Blei have in AISTATS", "question_toks": ["How", "many", "papers", "does", "David", "M.", "Blei", "have", "in", "AISTATS"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"David M. Blei\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"AISTATS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0657", "db_id": "scholar", "query": "select distinct t3.paperid from paperdataset as t2 join dataset as t1 on t2.datasetid = t1.datasetid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.datasetname = \"rgb-d object dataset\" and t3.title = \"class consistent multi-modal fusion with binary features\" and t3.year = 2016 and t4.venuename = \"cvpr\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperdataset", "AS", "t2", "JOIN", "dataset", "AS", "t1", "ON", "t2.datasetid", "=", "t1.datasetid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.datasetname", "=", "``", "RGB-D", "Object", "Dataset", "''", "AND", "t3.title", "=", "``", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "AND", "t3.year", "=", "2016", "AND", "t4.venuename", "=", "``", "CVPR", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperdataset", "as", "t2", "join", "dataset", "as", "t1", "on", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "datasetname", "=", "value", "and", "t3", ".", "title", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What papers were published at CVPR in 2016 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "in", "2016", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"RGB-D Object Dataset\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"CVPR\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0658", "db_id": "scholar", "query": "select distinct t3.paperid from paperdataset as t2 join dataset as t1 on t2.datasetid = t1.datasetid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.datasetname = \"rgb-d object dataset\" and t3.title = \"class consistent multi-modal fusion with binary features\" and t3.year = 2016 and t4.venuename = \"cvpr\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperdataset", "AS", "t2", "JOIN", "dataset", "AS", "t1", "ON", "t2.datasetid", "=", "t1.datasetid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.datasetname", "=", "``", "RGB-D", "Object", "Dataset", "''", "AND", "t3.title", "=", "``", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "''", "AND", "t3.year", "=", "2016", "AND", "t4.venuename", "=", "``", "CVPR", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperdataset", "as", "t2", "join", "dataset", "as", "t1", "on", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "datasetname", "=", "value", "and", "t3", ".", "title", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What papers were published at CVPR '16 about Class consistent multi-modal fusion with binary features applied to RGB-D Object Dataset ?", "question_toks": ["What", "papers", "were", "published", "at", "CVPR", "'16", "about", "Class", "consistent", "multi-modal", "fusion", "with", "binary", "features", "applied", "to", "RGB-D", "Object", "Dataset", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"RGB-D Object Dataset\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Class consistent multi-modal fusion with binary features\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"CVPR\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0696", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperkeyphrase as t1 join keyphrase as t4 on t1.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t1.paperid join author as t2 on t3.authorid = t2.authorid where t2.authorname = \"ed desmond\" and t4.keyphrasename = \"semantic parsing\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t4", "ON", "t1.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t1.paperid", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "WHERE", "t2.authorname", "=", "``", "Ed", "Desmond", "''", "AND", "t4.keyphrasename", "=", "``", "Semantic", "Parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t4", "on", "t1", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t1", ".", "paperid", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t4", ".", "keyphrasename", "=", "value"], "question": "How many papers by Ed Desmond contain the keyphrases Semantic Parsing ?", "question_toks": ["How", "many", "papers", "by", "Ed", "Desmond", "contain", "the", "keyphrases", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ed Desmond\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Semantic Parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0697", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperkeyphrase as t1 join keyphrase as t4 on t1.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t1.paperid join author as t2 on t3.authorid = t2.authorid where t2.authorname = \"ed desmond\" and t4.keyphrasename = \"semantic parsing\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t4", "ON", "t1.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t1.paperid", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "WHERE", "t2.authorname", "=", "``", "Ed", "Desmond", "''", "AND", "t4.keyphrasename", "=", "``", "Semantic", "Parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t4", "on", "t1", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t1", ".", "paperid", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t4", ".", "keyphrasename", "=", "value"], "question": "How many papers does Ed Desmond have in Semantic Parsing area ?", "question_toks": ["How", "many", "papers", "does", "Ed", "Desmond", "have", "in", "Semantic", "Parsing", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ed Desmond\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Semantic Parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0698", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperkeyphrase as t1 join keyphrase as t4 on t1.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t1.paperid join author as t2 on t3.authorid = t2.authorid where t2.authorname = \"ed desmond\" and t4.keyphrasename = \"semantic parsing\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t4", "ON", "t1.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t1.paperid", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "WHERE", "t2.authorname", "=", "``", "Ed", "Desmond", "''", "AND", "t4.keyphrasename", "=", "``", "Semantic", "Parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t4", "on", "t1", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t1", ".", "paperid", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t4", ".", "keyphrasename", "=", "value"], "question": "How many Semantic Parsing papers has Ed Desmond written ?", "question_toks": ["How", "many", "Semantic", "Parsing", "papers", "has", "Ed", "Desmond", "written", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ed Desmond\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Semantic Parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0699", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperkeyphrase as t1 join keyphrase as t4 on t1.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t1.paperid join author as t2 on t3.authorid = t2.authorid where t2.authorname = \"ed desmond\" and t4.keyphrasename = \"semantic parsing\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t1", "JOIN", "keyphrase", "AS", "t4", "ON", "t1.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t1.paperid", "JOIN", "author", "AS", "t2", "ON", "t3.authorid", "=", "t2.authorid", "WHERE", "t2.authorname", "=", "``", "Ed", "Desmond", "''", "AND", "t4.keyphrasename", "=", "``", "Semantic", "Parsing", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t1", "join", "keyphrase", "as", "t4", "on", "t1", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t1", ".", "paperid", "join", "author", "as", "t2", "on", "t3", ".", "authorid", "=", "t2", ".", "authorid", "where", "t2", ".", "authorname", "=", "value", "and", "t4", ".", "keyphrasename", "=", "value"], "question": "How many paper has Ed Desmond written about Semantic Parsing ?", "question_toks": ["How", "many", "paper", "has", "Ed", "Desmond", "written", "about", "Semantic", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[3, [0, [0, 24, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Ed Desmond\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Semantic Parsing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0704", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "acl papers in 2012 on Parsing", "question_toks": ["acl", "papers", "in", "2012", "on", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0705", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What papers were published in acl in 2012 about Parsing ?", "question_toks": ["What", "papers", "were", "published", "in", "acl", "in", "2012", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0706", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "papers on Parsing appeared at acl last year", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "last", "year"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0707", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "Parsing papers from acl 2012", "question_toks": ["Parsing", "papers", "from", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0708", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "papers about Parsing in acl 2012", "question_toks": ["papers", "about", "Parsing", "in", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0709", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "acl papers in 2012 in Parsing", "question_toks": ["acl", "papers", "in", "2012", "in", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0710", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "acl papers in 2012 about Parsing", "question_toks": ["acl", "papers", "in", "2012", "about", "Parsing"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0711", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What papers were published at acl in 2012 were about Parsing ?", "question_toks": ["What", "papers", "were", "published", "at", "acl", "in", "2012", "were", "about", "Parsing", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0712", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "papers on Parsing appeared at acl in 2012", "question_toks": ["papers", "on", "Parsing", "appeared", "at", "acl", "in", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0713", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many Parsing papers did acl 2012 have ?", "question_toks": ["how", "many", "Parsing", "papers", "did", "acl", "2012", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0714", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "who published Parsing papers at acl 2012", "question_toks": ["who", "published", "Parsing", "papers", "at", "acl", "2012"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0715", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "which papers in acl 2012 had Parsing in them ?", "question_toks": ["which", "papers", "in", "acl", "2012", "had", "Parsing", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0716", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2012 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "Parsing", "''", "AND", "t3.year", "=", "2012", "AND", "t4.venuename", "=", "``", "acl", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "what were some Parsing based papers in acl 2012 ?", "question_toks": ["what", "were", "some", "Parsing", "based", "papers", "in", "acl", "2012", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2012.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"acl\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0743", "db_id": "scholar", "query": "select distinct t2.keyphraseid , t3.year from paper as t3 join paperkeyphrase as t2 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t1 on t4.authorid = t1.authorid where t1.authorname = \"luke s zettlemoyer\" order by t3.year , t2.keyphraseid;", "query_toks": ["SELECT", "DISTINCT", "t2.keyphraseid", ",", "t3.year", "FROM", "paper", "AS", "t3", "JOIN", "paperkeyphrase", "AS", "t2", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t3.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "WHERE", "t1.authorname", "=", "``", "Luke", "S", "Zettlemoyer", "''", "ORDER", "BY", "t3.year", ",", "t2.keyphraseid", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "keyphraseid", ",", "t3", ".", "year", "from", "paper", "as", "t3", "join", "paperkeyphrase", "as", "t2", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "where", "t1", ".", "authorname", "=", "value", "order", "by", "t3", ".", "year", ",", "t2", ".", "keyphraseid"], "question": "keyphrases used by Luke S Zettlemoyer for each year", "question_toks": ["keyphrases", "used", "by", "Luke", "S", "Zettlemoyer", "for", "each", "year"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 8], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 23, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Luke S Zettlemoyer\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null], [0, [0, 23, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0753", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2014 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "parsing", "''", "AND", "t3.year", "=", "2014", "AND", "t4.venuename", "=", "``", "ACL", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many parsing papers in ACL 2014", "question_toks": ["how", "many", "parsing", "papers", "in", "ACL", "2014"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"ACL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0754", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2014 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "parsing", "''", "AND", "t3.year", "=", "2014", "AND", "t4.venuename", "=", "``", "ACL", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many parsing papers appeared in the proceeeding of ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "appeared", "in", "the", "proceeeding", "of", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"ACL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0755", "db_id": "scholar", "query": "select distinct count ( t3.paperid ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"parsing\" and t3.year = 2014 and t4.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "t3.paperid", ")", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "parsing", "''", "AND", "t3.year", "=", "2014", "AND", "t4.venuename", "=", "``", "ACL", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "t3", ".", "paperid", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t3", ".", "year", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "how many parsing papers were published at ACL 2014 ?", "question_toks": ["how", "many", "parsing", "papers", "were", "published", "at", "ACL", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[3, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"parsing\"", null], "and", [false, 2, [0, [0, 14, false], null], 2014.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"ACL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0787", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"tail\" and t4.venuename = \"nips\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "TAIL", "''", "AND", "t4.venuename", "=", "``", "NIPS", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "What TAIL paper published in NIPS ?", "question_toks": ["What", "TAIL", "paper", "published", "in", "NIPS", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"TAIL\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"NIPS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0788", "db_id": "scholar", "query": "select distinct t3.paperid from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join venue as t4 on t4.venueid = t3.venueid where t1.keyphrasename = \"tail\" and t4.venuename = \"nips\";", "query_toks": ["SELECT", "DISTINCT", "t3.paperid", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t1", "ON", "t2.keyphraseid", "=", "t1.keyphraseid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "venue", "AS", "t4", "ON", "t4.venueid", "=", "t3.venueid", "WHERE", "t1.keyphrasename", "=", "``", "TAIL", "''", "AND", "t4.venuename", "=", "``", "NIPS", "''", ";"], "query_toks_no_value": ["select", "distinct", "t3", ".", "paperid", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "venue", "as", "t4", "on", "t4", ".", "venueid", "=", "t3", ".", "venueid", "where", "t1", ".", "keyphrasename", "=", "value", "and", "t4", ".", "venuename", "=", "value"], "question": "List the papers on TAIL that were published in NIPS", "question_toks": ["List", "the", "papers", "on", "TAIL", "that", "were", "published", "in", "NIPS"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"TAIL\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"NIPS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_3"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0053", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "pettype", "=", "value"], "question": "Find the number of dog pets that are raised by female students (with sex F).", "question_toks": ["Find", "the", "number", "of", "dog", "pets", "that", "are", "raised", "by", "female", "students", "(", "with", "sex", "F", ")", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0054", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "pettype", "=", "value"], "question": "How many dog pets are raised by female students?", "question_toks": ["How", "many", "dog", "pets", "are", "raised", "by", "female", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0057", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "or", "t3", ".", "pettype", "=", "value"], "question": "Find the first name of students who have cat or dog pet.", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "cat", "or", "dog", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL", "OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0058", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "or", "t3", ".", "pettype", "=", "value"], "question": "What are the first names of every student who has a cat or dog as a pet?", "question_toks": ["What", "are", "the", "first", "names", "of", "every", "student", "who", "has", "a", "cat", "or", "dog", "as", "a", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL", "OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0059", "db_id": "pets_1", "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'", "query_toks": ["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\""], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "Find the first name of students who have both cat and dog pets .", "question_toks": ["Find", "the", "first", "name", "of", "students", "who", "have", "both", "cat", "and", "dog", "pets", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_TOTAL", "AND_IN_NL", "_AND_TO_FILTERS", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0060", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "What are the students' first names who have both cats and dogs as pets?", "question_toks": ["What", "are", "the", "students", "'", "first", "names", "who", "have", "both", "cats", "and", "dogs", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_TOTAL", "AND_IN_NL", "_AND_TO_FILTERS", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0063", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "Find the id of students who do not have a cat pet.", "question_toks": ["Find", "the", "id", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_2", "DEJOIN_TOTAL", "NEGATION", "DEJOIN_MINUS_1", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0064", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the ids of the students who do not own cats as pets?", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "who", "do", "not", "own", "cats", "as", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_2", "DEJOIN_TOTAL", "NEGATION", "DEJOIN_MINUS_1", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0065", "db_id": "pets_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value", ")"], "question": "Find the first name and age of students who have a dog but do not have a cat as a pet.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "have", "a", "dog", "but", "do", "not", "have", "a", "cat", "as", "a", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_NEGATION_NOT_IN", "DEJOIN_TOTAL", "AND_IN_NL", "NEGATION", "_AND_TO_INTERSECT", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0066", "db_id": "pets_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value", ")"], "question": "What is the first name of every student who has a dog but does not have a cat?", "question_toks": ["What", "is", "the", "first", "name", "of", "every", "student", "who", "has", "a", "dog", "but", "does", "not", "have", "a", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"dog\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "_NEGATION_NOT_IN", "DEJOIN_TOTAL", "AND_IN_SQL_BUT_NOT_IN_NL", "NEGATION", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0083", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "pettype", "=", "value"], "question": "Find the last name of the student who has a cat that is age 3.", "question_toks": ["Find", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "age", "3", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], 3.0, null], "and", [false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0084", "db_id": "pets_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "pettype", "=", "value"], "question": "What is the last name of the student who has a cat that is 3 years old?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "has", "a", "cat", "that", "is", "3", "years", "old", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], 3.0, null], "and", [false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0103", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", ">", "value"], "question": "Which distinct car models are the produced after 1980?", "question_toks": ["Which", "distinct", "car", "models", "are", "the", "produced", "after", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0104", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", ">", "value"], "question": "What are the different models for the cards produced after 1980?", "question_toks": ["What", "are", "the", "different", "models", "for", "the", "cards", "produced", "after", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0105", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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"], "question": "How many car makers are there in each continents? List the continent name and the count.", "question_toks": ["How", "many", "car", "makers", "are", "there", "in", "each", "continents", "?", "List", "the", "continent", "name", "and", "the", "count", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0106", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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"], "question": "What is the name of each continent and how many car makers are there in each one?", "question_toks": ["What", "is", "the", "name", "of", "each", "continent", "and", "how", "many", "car", "makers", "are", "there", "in", "each", "one", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0115", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "=", "value"], "question": "How many car models are produced in the usa?", "question_toks": ["How", "many", "car", "models", "are", "produced", "in", "the", "usa", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0116", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "=", "value"], "question": "What is the count of the car models produced in the United States?", "question_toks": ["What", "is", "the", "count", "of", "the", "car", "models", "produced", "in", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"usa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0129", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "=", "value", "group", "by", "t1", ".", "countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which countries in europe have at least 3 car manufacturers?", "question_toks": ["Which", "countries", "in", "europe", "have", "at", "least", "3", "car", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"europe\"", null]], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0130", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "=", "value", "group", "by", "t1", ".", "countryname", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of all European countries with at least 3 manufacturers?", "question_toks": ["What", "are", "the", "names", "of", "all", "European", "countries", "with", "at", "least", "3", "manufacturers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"europe\"", null]], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0175", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value", "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", "(", "*", ")", ">", "value"], "question": "Which are the car makers which produce at least 2 models and more than 3 car makers ? List the id and the maker .", "question_toks": ["Which", "are", "the", "car", "makers", "which", "produce", "at", "least", "2", "models", "and", "more", "than", "3", "car", "makers", "?", "List", "the", "id", "and", "the", "maker", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0176", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value", "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", "(", "*", ")", ">", "value"], "question": "What are the ids and makers of all car makers that produce at least 2 models and make more than 3 cars?", "question_toks": ["What", "are", "the", "ids", "and", "makers", "of", "all", "car", "makers", "that", "produce", "at", "least", "2", "models", "and", "make", "more", "than", "3", "cars", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_AND_TO_COLUMNS", "_JOIN_2", "AND_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0177", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value", "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", "=", "value"], "question": "What are the id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "the", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_2", "OR_IN_NL", "AND_WITH_OR_IN_NL", "DEJOIN_TOTAL", "AND_IN_NL", "_AND_TO_COLUMNS", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0178", "db_id": "car_1", "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';", "query_toks": ["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\"", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value", "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", "=", "value"], "question": "What are the ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_JOIN_2", "OR_IN_NL", "AND_WITH_OR_IN_NL", "DEJOIN_TOTAL", "AND_IN_NL", "_AND_TO_COLUMNS", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0211", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "city", "=", "value"], "question": "How many flights depart from City 'Aberdeen' and have destination City 'Ashley'?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "'Aberdeen", "'", "and", "have", "destination", "City", "'Ashley", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Ashley\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0212", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "city", "=", "value"], "question": "How many flights fly from Aberdeen to Ashley?", "question_toks": ["How", "many", "flights", "fly", "from", "Aberdeen", "to", "Ashley", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Ashley\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0219", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "airline", "=", "value"], "question": "How many United Airlines flights go to City 'Aberdeen'?", "question_toks": ["How", "many", "United", "Airlines", "flights", "go", "to", "City", "'Aberdeen", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0220", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t3", ".", "airline", "=", "value"], "question": "Count the number of United Airlines flights that arrive in Aberdeen.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "that", "arrive", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0353", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the distinct template type descriptions for the templates ever used by any document?", "question_toks": ["What", "are", "the", "distinct", "template", "type", "descriptions", "for", "the", "templates", "ever", "used", "by", "any", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0354", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Return the different descriptions for templates that have been used in a document.", "question_toks": ["Return", "the", "different", "descriptions", "for", "templates", "that", "have", "been", "used", "in", "a", "document", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 10, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0399", "db_id": "course_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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show names of teachers and the courses they are arranged to teach.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0400", "db_id": "course_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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What is the name of each teacher and what course they teach?", "question_toks": ["What", "is", "the", "name", "of", "each", "teacher", "and", "what", "course", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0401", "db_id": "course_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 order by t3.name", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show names of teachers and the courses they are arranged to teach in ascending alphabetical order of the teacher's name.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "courses", "they", "are", "arranged", "to", "teach", "in", "ascending", "alphabetical", "order", "of", "the", "teacher", "'s", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0402", "db_id": "course_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 order by t3.name", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the names of the teachers and the courses they teach in ascending alphabetical order by the name of the teacher?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "and", "the", "courses", "they", "teach", "in", "ascending", "alphabetical", "order", "by", "the", "name", "of", "the", "teacher", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0426", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "<", "value", "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", ">", "value"], "question": "What is the name of the visitor who visited both a museum opened before 2009 and a museum opened after 2011?", "question_toks": ["What", "is", "the", "name", "of", "the", "visitor", "who", "visited", "both", "a", "museum", "opened", "before", "2009", "and", "a", "museum", "opened", "after", "2011", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_JOIN_2", "DEJOIN_TOTAL", "AND_IN_NL", "_AND_TO_INTERSECT", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0936", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_WITH_OR_IN_NL", "DEJOIN_TOTAL", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0937", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Tell me the owner id and last name of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "the", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_WITH_OR_IN_NL", "DEJOIN_TOTAL", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0940", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which owner has paid the largest amount of money in total for their dogs? Show the owner id and zip code.", "question_toks": ["Which", "owner", "has", "paid", "the", "largest", "amount", "of", "money", "in", "total", "for", "their", "dogs", "?", "Show", "the", "owner", "id", "and", "zip", "code", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0941", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Find the owner id and zip code of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "owner", "id", "and", "zip", "code", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["_JOIN_2", "AND_WITH_OR_IN_NL", "DEJOIN_TOTAL", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_MINUS_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0081", "db_id": "student_assessment", "query": "select t3.course_name , count(*) from students as t1 join student_course_registrations as t2 on t1.student_id = t2.student_id join courses as t3 on t2.course_id = t3.course_id group by t2.course_id", "query_toks": ["SELECT", "T3.course_name", ",", "count", "(", "*", ")", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "courses", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "GROUP", "BY", "T2.course_id"], "query_toks_no_value": ["select", "t3", ".", "course_name", ",", "count", "(", "*", ")", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "courses", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "group", "by", "t2", ".", "course_id"], "question": "How many registed students do each course have? List course name and the number of their registered students?", "question_toks": ["How", "many", "registed", "students", "do", "each", "course", "have", "?", "List", "course", "name", "and", "the", "number", "of", "their", "registered", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0082", "db_id": "student_assessment", "query": "select t3.course_name , count(*) from students as t1 join student_course_registrations as t2 on t1.student_id = t2.student_id join courses as t3 on t2.course_id = t3.course_id group by t2.course_id", "query_toks": ["SELECT", "T3.course_name", ",", "count", "(", "*", ")", "FROM", "students", "AS", "T1", "JOIN", "student_course_registrations", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id", "JOIN", "courses", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "GROUP", "BY", "T2.course_id"], "query_toks_no_value": ["select", "t3", ".", "course_name", ",", "count", "(", "*", ")", "from", "students", "as", "t1", "join", "student_course_registrations", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id", "join", "courses", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "group", "by", "t2", ".", "course_id"], "question": "For each course id, how many students are registered and what are the course names?", "question_toks": ["For", "each", "course", "id", ",", "how", "many", "students", "are", "registered", "and", "what", "are", "the", "course", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0093", "db_id": "student_assessment", "query": "select distinct t1.city from addresses as t1 join people_addresses as t2 on t1.address_id = t2.address_id join students as t3 on t2.person_id = t3.student_id", "query_toks": ["SELECT", "DISTINCT", "T1.city", "FROM", "addresses", "AS", "T1", "JOIN", "people_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "JOIN", "students", "AS", "T3", "ON", "T2.person_id", "=", "T3.student_id"], "query_toks_no_value": ["select", "distinct", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "people_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "join", "students", "as", "t3", "on", "t2", ".", "person_id", "=", "t3", ".", "student_id"], "question": "Find distinct cities of address of students?", "question_toks": ["Find", "distinct", "cities", "of", "address", "of", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0094", "db_id": "student_assessment", "query": "select distinct t1.city from addresses as t1 join people_addresses as t2 on t1.address_id = t2.address_id join students as t3 on t2.person_id = t3.student_id", "query_toks": ["SELECT", "DISTINCT", "T1.city", "FROM", "addresses", "AS", "T1", "JOIN", "people_addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "JOIN", "students", "AS", "T3", "ON", "T2.person_id", "=", "T3.student_id"], "query_toks_no_value": ["select", "distinct", "t1", ".", "city", "from", "addresses", "as", "t1", "join", "people_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "join", "students", "as", "t3", "on", "t2", ".", "person_id", "=", "t3", ".", "student_id"], "question": "What are the different cities where students live?", "question_toks": ["What", "are", "the", "different", "cities", "where", "students", "live", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0437", "db_id": "flight_1", "query": "select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.distance > 5000 group by t1.eid order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.distance", ">", "5000", "GROUP", "BY", "T1.eid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "distance", ">", "value", "group", "by", "t1", ".", "eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salary and name of the employee who has the most number of certificates on aircrafts with distance more than 5000?", "question_toks": ["What", "is", "the", "salary", "and", "name", "of", "the", "employee", "who", "has", "the", "most", "number", "of", "certificates", "on", "aircrafts", "with", "distance", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0438", "db_id": "flight_1", "query": "select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.distance > 5000 group by t1.eid order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.distance", ">", "5000", "GROUP", "BY", "T1.eid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "distance", ">", "value", "group", "by", "t1", ".", "eid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the salaray and name of the employee with the most certificates to fly planes more than 5000?", "question_toks": ["What", "is", "the", "salaray", "and", "name", "of", "the", "employee", "with", "the", "most", "certificates", "to", "fly", "planes", "more", "than", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 5000.0, null]], "groupBy": [[0, 12, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0635", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t3.id = t2.playlist_id where t3.name = \"movies\";", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T3.id", "=", "T2.playlist_id", "WHERE", "T3.name", "=", "``", "Movies", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "playlist_id", "where", "t3", ".", "name", "=", "value"], "question": "List the name of all tracks in the playlists of Movies.", "question_toks": ["List", "the", "name", "of", "all", "tracks", "in", "the", "playlists", "of", "Movies", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 63, false], null], [0, 65, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0636", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t3.id = t2.playlist_id where t3.name = \"movies\";", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T3.id", "=", "T2.playlist_id", "WHERE", "T3.name", "=", "``", "Movies", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "playlist_id", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of all tracks that are on playlists titled Movies?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "playlists", "titled", "Movies", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 63, false], null], [0, 65, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0643", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'movies' except select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'music'", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "EXCEPT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "except", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "Find the name of tracks which are in Movies playlist but not in music playlist.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "Movies", "playlist", "but", "not", "in", "music", "playlist", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_2", "DEJOIN_TOTAL", "NEGATION", "DEJOIN_MINUS_1", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0644", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'movies' except select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'music'", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "EXCEPT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "except", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of all tracks that are on the Movies playlist but not in the music playlist?", "question_toks": ["What", "are", "the", "names", "of", "all", "tracks", "that", "are", "on", "the", "Movies", "playlist", "but", "not", "in", "the", "music", "playlist", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_JOIN_2", "DEJOIN_TOTAL", "_NEGATION_ALL", "DEJOIN_MINUS_1", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0645", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'movies' intersect select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'music'", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "Find the name of tracks which are in both Movies and music playlists.", "question_toks": ["Find", "the", "name", "of", "tracks", "which", "are", "in", "both", "Movies", "and", "music", "playlists", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0646", "db_id": "store_1", "query": "select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'movies' intersect select t1.name from tracks as t1 join playlist_tracks as t2 on t1.id = t2.track_id join playlists as t3 on t2.playlist_id = t3.id where t3.name = 'music'", "query_toks": ["SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Movies", "'", "INTERSECT", "SELECT", "T1.name", "FROM", "tracks", "AS", "T1", "JOIN", "playlist_tracks", "AS", "T2", "ON", "T1.id", "=", "T2.track_id", "JOIN", "playlists", "AS", "T3", "ON", "T2.playlist_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Music", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", "from", "tracks", "as", "t1", "join", "playlist_tracks", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "track_id", "join", "playlists", "as", "t3", "on", "t2", ".", "playlist_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of all the tracks that are in both the Movies and music playlists?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "tracks", "that", "are", "in", "both", "the", "Movies", "and", "music", "playlists", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Movies\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 8], ["table_unit", 11], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 66, false], null], "and", [false, 2, [0, [0, 65, false], null], [0, 63, false], null]]}, "select": [false, [[0, [0, [0, 50, false], null]]]], "where": [[false, 2, [0, [0, 64, false], null], "\"Music\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0658", "db_id": "journal_committee", "query": "select t2.name , t3.theme from journal_committee as t1 join editor as t2 on t1.editor_id = t2.editor_id join journal as t3 on t1.journal_id = t3.journal_id", "query_toks": ["SELECT", "T2.Name", ",", "T3.Theme", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "theme", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id"], "question": "Show the names of editors and the theme of journals for which they serve on committees.", "question_toks": ["Show", "the", "names", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0659", "db_id": "journal_committee", "query": "select t2.name , t3.theme from journal_committee as t1 join editor as t2 on t1.editor_id = t2.editor_id join journal as t3 on t1.journal_id = t3.journal_id", "query_toks": ["SELECT", "T2.Name", ",", "T3.Theme", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "theme", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id"], "question": "For each journal_committee, find the editor name and the journal theme.", "question_toks": ["For", "each", "journal_committee", ",", "find", "the", "editor", "name", "and", "the", "journal", "theme", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0660", "db_id": "journal_committee", "query": "select t2.name , t2.age , t3.theme from journal_committee as t1 join editor as t2 on t1.editor_id = t2.editor_id join journal as t3 on t1.journal_id = t3.journal_id order by t3.theme asc", "query_toks": ["SELECT", "T2.Name", ",", "T2.age", ",", "T3.Theme", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID", "ORDER", "BY", "T3.Theme", "ASC"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "age", ",", "t3", ".", "theme", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id", "order", "by", "t3", ".", "theme", "asc"], "question": "Show the names and ages of editors and the theme of journals for which they serve on committees, in ascending alphabetical order of theme.", "question_toks": ["Show", "the", "names", "and", "ages", "of", "editors", "and", "the", "theme", "of", "journals", "for", "which", "they", "serve", "on", "committees", ",", "in", "ascending", "alphabetical", "order", "of", "theme", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0661", "db_id": "journal_committee", "query": "select t2.name from journal_committee as t1 join editor as t2 on t1.editor_id = t2.editor_id join journal as t3 on t1.journal_id = t3.journal_id where t3.sales > 3000", "query_toks": ["SELECT", "T2.Name", "FROM", "journal_committee", "AS", "T1", "JOIN", "editor", "AS", "T2", "ON", "T1.Editor_ID", "=", "T2.Editor_ID", "JOIN", "journal", "AS", "T3", "ON", "T1.Journal_ID", "=", "T3.Journal_ID", "WHERE", "T3.Sales", ">", "3000"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "journal_committee", "as", "t1", "join", "editor", "as", "t2", "on", "t1", ".", "editor_id", "=", "t2", ".", "editor_id", "join", "journal", "as", "t3", "on", "t1", ".", "journal_id", "=", "t3", ".", "journal_id", "where", "t3", ".", "sales", ">", "value"], "question": "Show the names of editors that are on the committee of journals with sales bigger than 3000.", "question_toks": ["Show", "the", "names", "of", "editors", "that", "are", "on", "the", "committee", "of", "journals", "with", "sales", "bigger", "than", "3000", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0889", "db_id": "chinook_1", "query": "select t1.title from album as t1 join track as t2 on t1.albumid = t2.albumid join genre as t3 on t2.genreid = t3.genreid where t3.name = 'reggae' intersect select t1.title from album as t1 join track as t2 on t1.albumid = t2.albumid join genre as t3 on t2.genreid = t3.genreid where t3.name = 'rock'", "query_toks": ["SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Reggae", "'", "INTERSECT", "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Rock", "'"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value"], "question": "What are the album titles for albums containing both 'Reggae' and 'Rock' genre tracks?", "question_toks": ["What", "are", "the", "album", "titles", "for", "albums", "containing", "both", "'Reggae", "'", "and", "'Rock", "'", "genre", "tracks", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null], "and", [false, 2, [0, [0, 60, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null], "and", [false, 2, [0, [0, 60, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0890", "db_id": "chinook_1", "query": "select t1.title from album as t1 join track as t2 on t1.albumid = t2.albumid join genre as t3 on t2.genreid = t3.genreid where t3.name = 'reggae' intersect select t1.title from album as t1 join track as t2 on t1.albumid = t2.albumid join genre as t3 on t2.genreid = t3.genreid where t3.name = 'rock'", "query_toks": ["SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Reggae", "'", "INTERSECT", "SELECT", "T1.Title", "FROM", "Album", "AS", "T1", "JOIN", "Track", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "JOIN", "Genre", "AS", "T3", "ON", "T2.GenreID", "=", "T3.GenreID", "WHERE", "T3.Name", "=", "'Rock", "'"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value", "intersect", "select", "t1", ".", "title", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "join", "genre", "as", "t3", "on", "t2", ".", "genreid", "=", "t3", ".", "genreid", "where", "t3", ".", "name", "=", "value"], "question": "Find the titles of albums that contain tracks of both the Reggae and Rock genres.", "question_toks": ["Find", "the", "titles", "of", "albums", "that", "contain", "tracks", "of", "both", "the", "Reggae", "and", "Rock", "genres", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null], "and", [false, 2, [0, [0, 60, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Reggae\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null], "and", [false, 2, [0, [0, 60, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0913", "db_id": "insurance_fnol", "query": "select distinct t3.policy_type_code from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id join available_policies as t3 on t2.policy_id = t3.policy_id where t1.customer_name = (select t1.customer_name from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_name order by count(*) desc limit 1)", "query_toks": ["SELECT", "DISTINCT", "t3.policy_type_code", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "available_policies", "AS", "t3", "ON", "t2.policy_id", "=", "t3.policy_id", "WHERE", "t1.customer_name", "=", "(", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "distinct", "t3", ".", "policy_type_code", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "available_policies", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id", "where", "t1", ".", "customer_name", "=", "(", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What are all the policy types of the customer that has the most policies listed?", "question_toks": ["What", "are", "all", "the", "policy", "types", "of", "the", "customer", "that", "has", "the", "most", "policies", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0914", "db_id": "insurance_fnol", "query": "select distinct t3.policy_type_code from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id join available_policies as t3 on t2.policy_id = t3.policy_id where t1.customer_name = (select t1.customer_name from customers as t1 join customers_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_name order by count(*) desc limit 1)", "query_toks": ["SELECT", "DISTINCT", "t3.policy_type_code", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "available_policies", "AS", "t3", "ON", "t2.policy_id", "=", "t3.policy_id", "WHERE", "t1.customer_name", "=", "(", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customers_policies", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "GROUP", "BY", "t1.customer_name", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "distinct", "t3", ".", "policy_type_code", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "available_policies", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id", "where", "t1", ".", "customer_name", "=", "(", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customers_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "List all the policy types used by the customer enrolled in the most policies.", "question_toks": ["List", "all", "the", "policy", "types", "used", "by", "the", "customer", "enrolled", "in", "the", "most", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0923", "db_id": "insurance_fnol", "query": "select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = \"close a policy\" intersect select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = \"new policy application\"", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "Close", "a", "policy", "''", "INTERSECT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "New", "policy", "application", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value"], "question": "Find the names of customers who have used both the service \"Close a policy\" and the service \"New policy application\".", "question_toks": ["Find", "the", "names", "of", "customers", "who", "have", "used", "both", "the", "service", "``", "Close", "a", "policy", "''", "and", "the", "service", "``", "New", "policy", "application", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"New policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0924", "db_id": "insurance_fnol", "query": "select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = \"close a policy\" intersect select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id join services as t3 on t2.service_id = t3.service_id where t3.service_name = \"new policy application\"", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "Close", "a", "policy", "''", "INTERSECT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "services", "AS", "t3", "ON", "t2.service_id", "=", "t3.service_id", "WHERE", "t3.service_name", "=", "``", "New", "policy", "application", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value", "intersect", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "services", "as", "t3", "on", "t2", ".", "service_id", "=", "t3", ".", "service_id", "where", "t3", ".", "service_name", "=", "value"], "question": "Which customers have used both the service named \"Close a policy\" and the service named \"Upgrade a policy\"? Give me the customer names.", "question_toks": ["Which", "customers", "have", "used", "both", "the", "service", "named", "``", "Close", "a", "policy", "''", "and", "the", "service", "named", "``", "Upgrade", "a", "policy", "''", "?", "Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Close a policy\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"New policy application\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1282", "db_id": "game_injury", "query": "select t1.id , t1.name from stadium as t1 join game as t2 on t1.id = t2.stadium_id join injury_accident as t3 on t2.id = t3.game_id group by t1.id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.id", ",", "T1.name", "FROM", "stadium", "AS", "T1", "JOIN", "game", "AS", "T2", "ON", "T1.id", "=", "T2.stadium_id", "JOIN", "injury_accident", "AS", "T3", "ON", "T2.id", "=", "T3.game_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "stadium", "as", "t1", "join", "game", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "stadium_id", "join", "injury_accident", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "game_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What are the id and name of the stadium where the most injury accidents happened?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "most", "injury", "accidents", "happened", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1283", "db_id": "game_injury", "query": "select t1.id , t1.name from stadium as t1 join game as t2 on t1.id = t2.stadium_id join injury_accident as t3 on t2.id = t3.game_id group by t1.id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.id", ",", "T1.name", "FROM", "stadium", "AS", "T1", "JOIN", "game", "AS", "T2", "ON", "T1.id", "=", "T2.stadium_id", "JOIN", "injury_accident", "AS", "T3", "ON", "T2.id", "=", "T3.game_id", "GROUP", "BY", "T1.id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "stadium", "as", "t1", "join", "game", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "stadium_id", "join", "injury_accident", "as", "t3", "on", "t2", ".", "id", "=", "t3", ".", "game_id", "group", "by", "t1", ".", "id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the id and name of the stadium where the largest number of injury accidents occurred.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "stadium", "where", "the", "largest", "number", "of", "injury", "accidents", "occurred", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1430", "db_id": "college_2", "query": "select t1.name from instructor as t1 join teaches as t2 on t1.id = t2.id join course as t3 on t2.course_id = t3.course_id where t3.title = 'c programming'", "query_toks": ["SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.id", "=", "T2.id", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T3.title", "=", "'C", "Programming", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t3", ".", "title", "=", "value"], "question": "Find the name of the instructors who taught C Programming course before.", "question_toks": ["Find", "the", "name", "of", "the", "instructors", "who", "taught", "C", "Programming", "course", "before", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"C Programming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1431", "db_id": "college_2", "query": "select t1.name from instructor as t1 join teaches as t2 on t1.id = t2.id join course as t3 on t2.course_id = t3.course_id where t3.title = 'c programming'", "query_toks": ["SELECT", "T1.name", "FROM", "instructor", "AS", "T1", "JOIN", "teaches", "AS", "T2", "ON", "T1.id", "=", "T2.id", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T3.title", "=", "'C", "Programming", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "instructor", "as", "t1", "join", "teaches", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t3", ".", "title", "=", "value"], "question": "What are the names of instructors who have taught C Programming courses?", "question_toks": ["What", "are", "the", "names", "of", "instructors", "who", "have", "taught", "C", "Programming", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"C Programming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1438", "db_id": "college_2", "query": "select t2.name from advisor as t1 join instructor as t2 on t1.i_id = t2.id join student as t3 on t1.s_id = t3.id order by t3.tot_cred desc limit 1", "query_toks": ["SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "ORDER", "BY", "T3.tot_cred", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "order", "by", "t3", ".", "tot_cred", "desc", "limit", "value"], "question": "Find the name of instructor who is the advisor of the student who has the highest number of total credits.", "question_toks": ["Find", "the", "name", "of", "instructor", "who", "is", "the", "advisor", "of", "the", "student", "who", "has", "the", "highest", "number", "of", "total", "credits", "."], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 3], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 30, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1439", "db_id": "college_2", "query": "select t2.name from advisor as t1 join instructor as t2 on t1.i_id = t2.id join student as t3 on t1.s_id = t3.id order by t3.tot_cred desc limit 1", "query_toks": ["SELECT", "T2.name", "FROM", "advisor", "AS", "T1", "JOIN", "instructor", "AS", "T2", "ON", "T1.i_id", "=", "T2.id", "JOIN", "student", "AS", "T3", "ON", "T1.s_id", "=", "T3.id", "ORDER", "BY", "T3.tot_cred", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "advisor", "as", "t1", "join", "instructor", "as", "t2", "on", "t1", ".", "i_id", "=", "t2", ".", "id", "join", "student", "as", "t3", "on", "t1", ".", "s_id", "=", "t3", ".", "id", "order", "by", "t3", ".", "tot_cred", "desc", "limit", "value"], "question": "What is the name of the instructor who advises the student with the greatest number of total credits?", "question_toks": ["What", "is", "the", "name", "of", "the", "instructor", "who", "advises", "the", "student", "with", "the", "greatest", "number", "of", "total", "credits", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 3], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 38, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 37, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 30, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1454", "db_id": "college_2", "query": "select count(distinct t2.id) , count(distinct t3.id) , t3.dept_name from department as t1 join student as t2 on t1.dept_name = t2.dept_name join instructor as t3 on t1.dept_name = t3.dept_name group by t3.dept_name", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2.id", ")", ",", "count", "(", "DISTINCT", "T3.id", ")", ",", "T3.dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1.dept_name", "=", "T3.dept_name", "GROUP", "BY", "T3.dept_name"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "id", ")", ",", "count", "(", "distinct", "t3", ".", "id", ")", ",", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name"], "question": "Find the total number of students and total number of instructors for each department.", "question_toks": ["Find", "the", "total", "number", "of", "students", "and", "total", "number", "of", "instructors", "for", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 13, false], null]]}, "select": [false, [[3, [0, [0, 27, true], null]], [3, [0, [0, 11, true], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1455", "db_id": "college_2", "query": "select count(distinct t2.id) , count(distinct t3.id) , t3.dept_name from department as t1 join student as t2 on t1.dept_name = t2.dept_name join instructor as t3 on t1.dept_name = t3.dept_name group by t3.dept_name", "query_toks": ["SELECT", "count", "(", "DISTINCT", "T2.id", ")", ",", "count", "(", "DISTINCT", "T3.id", ")", ",", "T3.dept_name", "FROM", "department", "AS", "T1", "JOIN", "student", "AS", "T2", "ON", "T1.dept_name", "=", "T2.dept_name", "JOIN", "instructor", "AS", "T3", "ON", "T1.dept_name", "=", "T3.dept_name", "GROUP", "BY", "T3.dept_name"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "id", ")", ",", "count", "(", "distinct", "t3", ".", "id", ")", ",", "t3", ".", "dept_name", "from", "department", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "dept_name", "=", "t2", ".", "dept_name", "join", "instructor", "as", "t3", "on", "t1", ".", "dept_name", "=", "t3", ".", "dept_name", "group", "by", "t3", ".", "dept_name"], "question": "How many students and instructors are in each department?", "question_toks": ["How", "many", "students", "and", "instructors", "are", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 13, false], null]]}, "select": [false, [[3, [0, [0, 27, true], null]], [3, [0, [0, 11, true], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1501", "db_id": "debate", "query": "select t3.name , t2.date , t2.venue from debate_people as t1 join debate as t2 on t1.debate_id = t2.debate_id join people as t3 on t1.affirmative = t3.people_id", "query_toks": ["SELECT", "T3.Name", ",", "T2.Date", ",", "T2.Venue", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Affirmative", "=", "T3.People_ID"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "date", ",", "t2", ".", "venue", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "affirmative", "=", "t3", ".", "people_id"], "question": "Show the names of people, and dates and venues of debates they are on the affirmative side.", "question_toks": ["Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "affirmative", "side", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1502", "db_id": "debate", "query": "select t3.name , t2.date , t2.venue from debate_people as t1 join debate as t2 on t1.debate_id = t2.debate_id join people as t3 on t1.negative = t3.people_id order by t3.name asc", "query_toks": ["SELECT", "T3.Name", ",", "T2.Date", ",", "T2.Venue", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Negative", "=", "T3.People_ID", "ORDER", "BY", "T3.Name", "ASC"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "date", ",", "t2", ".", "venue", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "negative", "=", "t3", ".", "people_id", "order", "by", "t3", ".", "name", "asc"], "question": "Show the names of people, and dates and venues of debates they are on the negative side, ordered in ascending alphabetical order of name.", "question_toks": ["Show", "the", "names", "of", "people", ",", "and", "dates", "and", "venues", "of", "debates", "they", "are", "on", "the", "negative", "side", ",", "ordered", "in", "ascending", "alphabetical", "order", "of", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1503", "db_id": "debate", "query": "select t3.name from debate_people as t1 join debate as t2 on t1.debate_id = t2.debate_id join people as t3 on t1.affirmative = t3.people_id where t2.num_of_audience > 200", "query_toks": ["SELECT", "T3.Name", "FROM", "debate_people", "AS", "T1", "JOIN", "debate", "AS", "T2", "ON", "T1.Debate_ID", "=", "T2.Debate_ID", "JOIN", "people", "AS", "T3", "ON", "T1.Affirmative", "=", "T3.People_ID", "WHERE", "T2.Num_of_Audience", ">", "200"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "debate_people", "as", "t1", "join", "debate", "as", "t2", "on", "t1", ".", "debate_id", "=", "t2", ".", "debate_id", "join", "people", "as", "t3", "on", "t1", ".", "affirmative", "=", "t3", ".", "people_id", "where", "t2", ".", "num_of_audience", ">", "value"], "question": "Show the names of people that are on affirmative side of debates with number of audience bigger than 200.", "question_toks": ["Show", "the", "names", "of", "people", "that", "are", "on", "affirmative", "side", "of", "debates", "with", "number", "of", "audience", "bigger", "than", "200", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1521", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_piad = (select min(amount_piad) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_piad", "=", "(", "SELECT", "min", "(", "amount_piad", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers", ")"], "question": "What is the name of the customer who has made the minimum amount of payment in one claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "minimum", "amount", "of", "payment", "in", "one", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1522", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_piad = (select min(amount_piad) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_piad", "=", "(", "SELECT", "min", "(", "amount_piad", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_piad", "=", "(", "select", "min", "(", "amount_piad", ")", "from", "claim_headers", ")"], "question": "Which customer made the smallest amount of claim in one claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "smallest", "amount", "of", "claim", "in", "one", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1621", "db_id": "customers_and_invoices", "query": "select t2.product_name , count(*) from order_items as t1 join products as t2 on t1.product_id = t2.product_id join orders as t3 on t3.order_id = t1.order_id group by t2.product_name", "query_toks": ["SELECT", "T2.product_name", ",", "count", "(", "*", ")", "FROM", "Order_items", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "JOIN", "Orders", "AS", "T3", "ON", "T3.order_id", "=", "T1.order_id", "GROUP", "BY", "T2.product_name"], "query_toks_no_value": ["select", "t2", ".", "product_name", ",", "count", "(", "*", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "orders", "as", "t3", "on", "t3", ".", "order_id", "=", "t1", ".", "order_id", "group", "by", "t2", ".", "product_name"], "question": "Show all product names and the number of customers having an order on each product.", "question_toks": ["Show", "all", "product", "names", "and", "the", "number", "of", "customers", "having", "an", "order", "on", "each", "product", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 44, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1622", "db_id": "customers_and_invoices", "query": "select t2.product_name , count(*) from order_items as t1 join products as t2 on t1.product_id = t2.product_id join orders as t3 on t3.order_id = t1.order_id group by t2.product_name", "query_toks": ["SELECT", "T2.product_name", ",", "count", "(", "*", ")", "FROM", "Order_items", "AS", "T1", "JOIN", "Products", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "JOIN", "Orders", "AS", "T3", "ON", "T3.order_id", "=", "T1.order_id", "GROUP", "BY", "T2.product_name"], "query_toks_no_value": ["select", "t2", ".", "product_name", ",", "count", "(", "*", ")", "from", "order_items", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "orders", "as", "t3", "on", "t3", ".", "order_id", "=", "t1", ".", "order_id", "group", "by", "t2", ".", "product_name"], "question": "What are teh names of the different products, as well as the number of customers who have ordered each product.", "question_toks": ["What", "are", "teh", "names", "of", "the", "different", "products", ",", "as", "well", "as", "the", "number", "of", "customers", "who", "have", "ordered", "each", "product", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 44, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1687", "db_id": "theme_gallery", "query": "select t3.name from exhibition_record as t1 join exhibition as t2 on t1.exhibition_id = t2.exhibition_id join artist as t3 on t3.artist_id = t2.artist_id group by t3.artist_id having avg(t1.attendance) > 200", "query_toks": ["SELECT", "T3.name", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "JOIN", "artist", "AS", "T3", "ON", "T3.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T3.artist_id", "HAVING", "avg", "(", "T1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "join", "artist", "as", "t3", "on", "t3", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t3", ".", "artist_id", "having", "avg", "(", "t1", ".", "attendance", ")", ">", "value"], "question": "Show all artist names with an average exhibition attendance over 200.", "question_toks": ["Show", "all", "artist", "names", "with", "an", "average", "exhibition", "attendance", "over", "200", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [5, 13, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1688", "db_id": "theme_gallery", "query": "select t3.name from exhibition_record as t1 join exhibition as t2 on t1.exhibition_id = t2.exhibition_id join artist as t3 on t3.artist_id = t2.artist_id group by t3.artist_id having avg(t1.attendance) > 200", "query_toks": ["SELECT", "T3.name", "FROM", "exhibition_record", "AS", "T1", "JOIN", "exhibition", "AS", "T2", "ON", "T1.exhibition_id", "=", "T2.exhibition_id", "JOIN", "artist", "AS", "T3", "ON", "T3.artist_id", "=", "T2.artist_id", "GROUP", "BY", "T3.artist_id", "HAVING", "avg", "(", "T1.attendance", ")", ">", "200"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "exhibition_record", "as", "t1", "join", "exhibition", "as", "t2", "on", "t1", ".", "exhibition_id", "=", "t2", ".", "exhibition_id", "join", "artist", "as", "t3", "on", "t3", ".", "artist_id", "=", "t2", ".", "artist_id", "group", "by", "t3", ".", "artist_id", "having", "avg", "(", "t1", ".", "attendance", ")", ">", "value"], "question": "What are the names of artist whose exhibitions draw over 200 attendees on average?", "question_toks": ["What", "are", "the", "names", "of", "artist", "whose", "exhibitions", "draw", "over", "200", "attendees", "on", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [5, 13, false], null], 200.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1728", "db_id": "riding_club", "query": "select t3.player_name , t2.coach_name from player_coach as t1 join coach as t2 on t1.coach_id = t2.coach_id join player as t3 on t1.player_id = t3.player_id", "query_toks": ["SELECT", "T3.Player_name", ",", "T2.coach_name", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID"], "query_toks_no_value": ["select", "t3", ".", "player_name", ",", "t2", ".", "coach_name", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id"], "question": "Show the names of players and names of their coaches.", "question_toks": ["Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1729", "db_id": "riding_club", "query": "select t3.player_name from player_coach as t1 join coach as t2 on t1.coach_id = t2.coach_id join player as t3 on t1.player_id = t3.player_id where t2.rank = 1", "query_toks": ["SELECT", "T3.Player_name", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID", "WHERE", "T2.Rank", "=", "1"], "query_toks_no_value": ["select", "t3", ".", "player_name", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id", "where", "t2", ".", "rank", "=", "value"], "question": "Show the names of players coached by the rank 1 coach.", "question_toks": ["Show", "the", "names", "of", "players", "coached", "by", "the", "rank", "1", "coach", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1730", "db_id": "riding_club", "query": "select t3.player_name , t3.gender from player_coach as t1 join coach as t2 on t1.coach_id = t2.coach_id join player as t3 on t1.player_id = t3.player_id where t1.starting_year > 2011", "query_toks": ["SELECT", "T3.Player_name", ",", "T3.gender", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID", "WHERE", "T1.Starting_year", ">", "2011"], "query_toks_no_value": ["select", "t3", ".", "player_name", ",", "t3", ".", "gender", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id", "where", "t1", ".", "starting_year", ">", "value"], "question": "Show the names and genders of players with a coach starting after 2011.", "question_toks": ["Show", "the", "names", "and", "genders", "of", "players", "with", "a", "coach", "starting", "after", "2011", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1731", "db_id": "riding_club", "query": "select t3.player_name , t2.coach_name from player_coach as t1 join coach as t2 on t1.coach_id = t2.coach_id join player as t3 on t1.player_id = t3.player_id order by t3.votes desc", "query_toks": ["SELECT", "T3.Player_name", ",", "T2.coach_name", "FROM", "player_coach", "AS", "T1", "JOIN", "coach", "AS", "T2", "ON", "T1.Coach_ID", "=", "T2.Coach_ID", "JOIN", "player", "AS", "T3", "ON", "T1.Player_ID", "=", "T3.Player_ID", "ORDER", "BY", "T3.Votes", "DESC"], "query_toks_no_value": ["select", "t3", ".", "player_name", ",", "t2", ".", "coach_name", "from", "player_coach", "as", "t1", "join", "coach", "as", "t2", "on", "t1", ".", "coach_id", "=", "t2", ".", "coach_id", "join", "player", "as", "t3", "on", "t1", ".", "player_id", "=", "t3", ".", "player_id", "order", "by", "t3", ".", "votes", "desc"], "question": "Show the names of players and names of their coaches in descending order of the votes of players.", "question_toks": ["Show", "the", "names", "of", "players", "and", "names", "of", "their", "coaches", "in", "descending", "order", "of", "the", "votes", "of", "players", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 13, false], null], "and", [false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1798", "db_id": "small_bank_1", "query": "select t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance + t3.balance limit 1", "query_toks": ["SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "limit", "value"], "question": "Find the name of account that has the lowest total checking and saving balance.", "question_toks": ["Find", "the", "name", "of", "account", "that", "has", "the", "lowest", "total", "checking", "and", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 6, false], [0, 4, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1799", "db_id": "small_bank_1", "query": "select t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance + t3.balance limit 1", "query_toks": ["SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "limit", "value"], "question": "What is the name corresponding to the accoung with the lowest sum of checking and savings balances?", "question_toks": ["What", "is", "the", "name", "corresponding", "to", "the", "accoung", "with", "the", "lowest", "sum", "of", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 6, false], [0, 4, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1800", "db_id": "small_bank_1", "query": "select t1.name , t2.balance + t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance > (select avg(balance) from savings)", "query_toks": ["SELECT", "T1.name", ",", "T2.balance", "+", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "+", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "Find the names and total checking and savings balances of accounts whose savings balance is higher than the average savings balance.", "question_toks": ["Find", "the", "names", "and", "total", "checking", "and", "savings", "balances", "of", "accounts", "whose", "savings", "balance", "is", "higher", "than", "the", "average", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [2, [0, 6, false], [0, 4, false]]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1801", "db_id": "small_bank_1", "query": "select t1.name , t2.balance + t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance > (select avg(balance) from savings)", "query_toks": ["SELECT", "T1.name", ",", "T2.balance", "+", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", ">", "(", "SELECT", "avg", "(", "balance", ")", "FROM", "savings", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "+", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", ">", "(", "select", "avg", "(", "balance", ")", "from", "savings", ")"], "question": "What are the names and sum of checking and savings balances for accounts with savings balances higher than the average savings balance?", "question_toks": ["What", "are", "the", "names", "and", "sum", "of", "checking", "and", "savings", "balances", "for", "accounts", "with", "savings", "balances", "higher", "than", "the", "average", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [2, [0, 6, false], [0, 4, false]]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1802", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t3.balance limit 1", "query_toks": ["SELECT", "T1.name", ",", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest savings balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "savings", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1803", "db_id": "small_bank_1", "query": "select t1.name , t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t3.balance limit 1", "query_toks": ["SELECT", "T1.name", ",", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value"], "question": "What are the names and balances of checking accounts belonging to the customer with the lowest savings balance?", "question_toks": ["What", "are", "the", "names", "and", "balances", "of", "checking", "accounts", "belonging", "to", "the", "customer", "with", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1810", "db_id": "small_bank_1", "query": "select t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance desc limit 1", "query_toks": ["SELECT", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "desc", "limit", "value"], "question": "Find the saving balance of the account with the highest checking balance.", "question_toks": ["Find", "the", "saving", "balance", "of", "the", "account", "with", "the", "highest", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1811", "db_id": "small_bank_1", "query": "select t3.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance desc limit 1", "query_toks": ["SELECT", "T3.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "desc", "limit", "value"], "question": "What is the savings balance of the account belonging to the customer with the highest checking balance?", "question_toks": ["What", "is", "the", "savings", "balance", "of", "the", "account", "belonging", "to", "the", "customer", "with", "the", "highest", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1814", "db_id": "small_bank_1", "query": "select t2.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t3.balance limit 1", "query_toks": ["SELECT", "T2.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value"], "question": "Find the name and checking balance of the account with the lowest saving balance.", "question_toks": ["Find", "the", "name", "and", "checking", "balance", "of", "the", "account", "with", "the", "lowest", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1815", "db_id": "small_bank_1", "query": "select t2.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t3.balance limit 1", "query_toks": ["SELECT", "T2.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T3.balance", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t3", ".", "balance", "limit", "value"], "question": "What is the name and checking balance of the account which has the lowest savings balance?", "question_toks": ["What", "is", "the", "name", "and", "checking", "balance", "of", "the", "account", "which", "has", "the", "lowest", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1816", "db_id": "small_bank_1", "query": "select t2.balance , t3.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid", "query_toks": ["SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid"], "question": "Find the name, checking balance and saving balance of all accounts in the bank.", "question_toks": ["Find", "the", "name", ",", "checking", "balance", "and", "saving", "balance", "of", "all", "accounts", "in", "the", "bank", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1817", "db_id": "small_bank_1", "query": "select t2.balance , t3.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid", "query_toks": ["SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid"], "question": "What are the names, checking balances, and savings balances for all customers?", "question_toks": ["What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "for", "all", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1818", "db_id": "small_bank_1", "query": "select t2.balance , t3.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance + t3.balance desc", "query_toks": ["SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "DESC"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "desc"], "question": "Find the name, checking balance and savings balance of all accounts in the bank sorted by their total checking and savings balance in descending order.", "question_toks": ["Find", "the", "name", ",", "checking", "balance", "and", "savings", "balance", "of", "all", "accounts", "in", "the", "bank", "sorted", "by", "their", "total", "checking", "and", "savings", "balance", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[2, [0, 6, false], [0, 4, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1819", "db_id": "small_bank_1", "query": "select t2.balance , t3.balance , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid order by t2.balance + t3.balance desc", "query_toks": ["SELECT", "T2.balance", ",", "T3.balance", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "ORDER", "BY", "T2.balance", "+", "T3.balance", "DESC"], "query_toks_no_value": ["select", "t2", ".", "balance", ",", "t3", ".", "balance", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "order", "by", "t2", ".", "balance", "+", "t3", ".", "balance", "desc"], "question": "What are the names, checking balances, and savings balances of customers, ordered by the total of checking and savings balances descending?", "question_toks": ["What", "are", "the", "names", ",", "checking", "balances", ",", "and", "savings", "balances", "of", "customers", ",", "ordered", "by", "the", "total", "of", "checking", "and", "savings", "balances", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[2, [0, 6, false], [0, 4, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1820", "db_id": "small_bank_1", "query": "select t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t2.balance > t3.balance", "query_toks": ["SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T2.balance", ">", "T3.balance"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t2", ".", "balance", ">", "t3", ".", "balance"], "question": "Find the name of accounts whose checking balance is higher than corresponding saving balance.", "question_toks": ["Find", "the", "name", "of", "accounts", "whose", "checking", "balance", "is", "higher", "than", "corresponding", "saving", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], [0, 4, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1821", "db_id": "small_bank_1", "query": "select t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t2.balance > t3.balance", "query_toks": ["SELECT", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T2.balance", ">", "T3.balance"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t2", ".", "balance", ">", "t3", ".", "balance"], "question": "What are the names of customers with a higher checking balance than savings balance?", "question_toks": ["What", "are", "the", "names", "of", "customers", "with", "a", "higher", "checking", "balance", "than", "savings", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], [0, 4, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2", "DEJOIN_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1822", "db_id": "small_bank_1", "query": "select t1.name , t3.balance + t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["SELECT", "T1.name", ",", "T3.balance", "+", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", "<", "T2.balance"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "balance", "+", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance"], "question": "Find the name and total checking and savings balance of the accounts whose savings balance is lower than corresponding checking balance.", "question_toks": ["Find", "the", "name", "and", "total", "checking", "and", "savings", "balance", "of", "the", "accounts", "whose", "savings", "balance", "is", "lower", "than", "corresponding", "checking", "balance", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [2, [0, 4, false], [0, 6, false]]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_2", "MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1823", "db_id": "small_bank_1", "query": "select t1.name , t3.balance + t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid join savings as t3 on t1.custid = t3.custid where t3.balance < t2.balance", "query_toks": ["SELECT", "T1.name", ",", "T3.balance", "+", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "JOIN", "savings", "AS", "T3", "ON", "T1.custid", "=", "T3.custid", "WHERE", "T3.balance", "<", "T2.balance"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "balance", "+", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "join", "savings", "as", "t3", "on", "t1", ".", "custid", "=", "t3", ".", "custid", "where", "t3", ".", "balance", "<", "t2", ".", "balance"], "question": "What are the names of customers who have a savings balance lower than their checking balance, and what is the total of their checking and savings balances?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "a", "savings", "balance", "lower", "than", "their", "checking", "balance", ",", "and", "what", "is", "the", "total", "of", "their", "checking", "and", "savings", "balances", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [2, [0, 4, false], [0, 6, false]]]]], "where": [[false, 4, [0, [0, 4, false], null], [0, 6, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "DEJOIN_TOTAL", "_JOIN_2", "MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1838", "db_id": "browser_web", "query": "select distinct t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id join browser as t3 on t2.browser_id = t3.id where t3.market_share > 15;", "query_toks": ["SELECT", "DISTINCT", "T1.name", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "JOIN", "browser", "AS", "T3", "ON", "T2.browser_id", "=", "T3.id", "WHERE", "T3.market_share", ">", "15", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "join", "browser", "as", "t3", "on", "t2", ".", "browser_id", "=", "t3", ".", "id", "where", "t3", ".", "market_share", ">", "value"], "question": "What distinct accelerator names are compatible with the browswers that have market share higher than 15?", "question_toks": ["What", "distinct", "accelerator", "names", "are", "compatible", "with", "the", "browswers", "that", "have", "market", "share", "higher", "than", "15", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 15.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_MINUS_1", "_JOIN_2"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0039", "db_id": "concert_singer", "query": "select name , country from singer where song_name like '%hey%'", "query_toks": ["SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "'", "%", "Hey", "%", "'"], "query_toks_no_value": ["select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "value"], "question": "what is the name and nation of the singer who have a song having 'Hey' in its name?", "question_toks": ["what", "is", "the", "name", "and", "nation", "of", "the", "singer", "who", "have", "a", "song", "having", "'Hey", "'", "in", "its", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%Hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM", "WHERE_MONO", "AND_IN_NL", "_AND_TO_COLUMNS", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0040", "db_id": "concert_singer", "query": "select name , country from singer where song_name like '%hey%'", "query_toks": ["SELECT", "name", ",", "country", "FROM", "singer", "WHERE", "song_name", "LIKE", "'", "%", "Hey", "%", "'"], "query_toks_no_value": ["select", "name", ",", "country", "from", "singer", "where", "song_name", "like", "value"], "question": "What is the name and country of origin of every singer who has a song with the word 'Hey' in its title?", "question_toks": ["What", "is", "the", "name", "and", "country", "of", "origin", "of", "every", "singer", "who", "has", "a", "song", "with", "the", "word", "'Hey", "'", "in", "its", "title", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"%Hey%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM", "AND_IN_NL", "_AND_TO_COLUMNS", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0301", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name , template_id from documents where document_description like \"%w%\"", "query_toks": ["SELECT", "document_name", ",", "template_id", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "``", "%", "w", "%", "''"], "query_toks_no_value": ["select", "document_name", ",", "template_id", "from", "documents", "where", "document_description", "like", "value"], "question": "What is the document name and template id for document with description with the letter 'w' in it?", "question_toks": ["What", "is", "the", "document", "name", "and", "template", "id", "for", "document", "with", "description", "with", "the", "letter", "'w", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%w%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_COLUMNS", "AND_IN_NL", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0302", "db_id": "cre_Doc_Template_Mgt", "query": "select document_name , template_id from documents where document_description like \"%w%\"", "query_toks": ["SELECT", "document_name", ",", "template_id", "FROM", "Documents", "WHERE", "Document_Description", "LIKE", "``", "%", "w", "%", "''"], "query_toks_no_value": ["select", "document_name", ",", "template_id", "from", "documents", "where", "document_description", "like", "value"], "question": "Return the names and template ids for documents that contain the letter w in their description.", "question_toks": ["Return", "the", "names", "and", "template", "ids", "for", "documents", "that", "contain", "the", "letter", "w", "in", "their", "description", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%w%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_COLUMNS", "AND_IN_NL", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0361", "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs where paragraph_text like 'korea'", "query_toks": ["select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "\"korea\""], "query_toks_no_value": ["select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "value"], "question": "Show paragraph details for paragraph with text 'Korea ' .", "question_toks": ["Show", "paragraph", "details", "for", "paragraph", "with", "text", "'Korea", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 16, false], null], "\"korea\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0362", "db_id": "cre_Doc_Template_Mgt", "query": "select other_details from paragraphs where paragraph_text like 'korea'", "query_toks": ["select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "\"korea\""], "query_toks_no_value": ["select", "other_details", "from", "paragraphs", "where", "paragraph_text", "like", "value"], "question": "What are the details for the paragraph that includes the text 'Korea ' ?", "question_toks": ["What", "are", "the", "details", "for", "the", "paragraph", "that", "includes", "the", "text", "'Korea", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 16, false], null], "\"korea\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0506", "db_id": "battle_death", "query": "select note from death where note like '%east%'", "query_toks": ["SELECT", "note", "FROM", "death", "WHERE", "note", "LIKE", "'", "%", "East", "%", "'"], "query_toks_no_value": ["select", "note", "from", "death", "where", "note", "like", "value"], "question": "What are the notes of the death events which has substring 'East'?", "question_toks": ["What", "are", "the", "notes", "of", "the", "death", "events", "which", "has", "substring", "'East", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 16, false], null], "\"%East%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0531", "db_id": "student_transcripts_tracking", "query": "select department_description from departments where department_name like '%computer%'", "query_toks": ["SELECT", "department_description", "FROM", "Departments", "WHERE", "department_name", "LIKE", "'", "%", "computer", "%", "'"], "query_toks_no_value": ["select", "department_description", "from", "departments", "where", "department_name", "like", "value"], "question": "What is the description of the department whose name has the substring the computer?", "question_toks": ["What", "is", "the", "description", "of", "the", "department", "whose", "name", "has", "the", "substring", "the", "computer", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%computer%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0532", "db_id": "student_transcripts_tracking", "query": "select department_description from departments where department_name like '%computer%'", "query_toks": ["SELECT", "department_description", "FROM", "Departments", "WHERE", "department_name", "LIKE", "'", "%", "computer", "%", "'"], "query_toks_no_value": ["select", "department_description", "from", "departments", "where", "department_name", "like", "value"], "question": "What is the department description for the one whose name has the word computer?", "question_toks": ["What", "is", "the", "department", "description", "for", "the", "one", "whose", "name", "has", "the", "word", "computer", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%computer%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0701", "db_id": "voter_1", "query": "select contestant_name from contestants where contestant_name like \"%al%\"", "query_toks": ["select", "contestant_name", "from", "contestants", "where", "contestant_name", "like", "\"%al%\""], "query_toks_no_value": ["select", "contestant_name", "from", "contestants", "where", "contestant_name", "like", "value"], "question": "Return the names of the contestants whose names contain the substring 'Al' .", "question_toks": ["Return", "the", "names", "of", "the", "contestants", "whose", "names", "contain", "the", "substring", "'Al'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%al%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0970", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like '%west%'", "query_toks": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "'", "%", "West", "%", "'"], "query_toks_no_value": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "value"], "question": "Which professionals live in a city containing the substring 'West'? List his or her role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "a", "city", "containing", "the", "substring", "'West", "'", "?", "List", "his", "or", "her", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%West%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0971", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like '%west%'", "query_toks": ["SELECT", "role_code", ",", "street", ",", "city", ",", "state", "FROM", "professionals", "WHERE", "city", "LIKE", "'", "%", "West", "%", "'"], "query_toks_no_value": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "value"], "question": "Find the role, street, city and state of the professionals living in a city that contains the substring 'West'.", "question_toks": ["Find", "the", "role", ",", "street", ",", "city", "and", "state", "of", "the", "professionals", "living", "in", "a", "city", "that", "contains", "the", "substring", "'West", "'", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%West%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0973", "db_id": "dog_kennels", "query": "select first_name , last_name , email_address from owners where state like '%north%'", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "email_address", "FROM", "Owners", "WHERE", "state", "LIKE", "'", "%", "North", "%", "'"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "email_address", "from", "owners", "where", "state", "like", "value"], "question": "Return the first name, last name and email of the owners living in a state whose name contains the substring 'North'.", "question_toks": ["Return", "the", "first", "name", ",", "last", "name", "and", "email", "of", "the", "owners", "living", "in", "a", "state", "whose", "name", "contains", "the", "substring", "'North", "'", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%North%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0123", "db_id": "bike_1", "query": "select zip_code , avg(mean_temperature_f) from weather where date like \"8/%\" group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "WHERE", "date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "where", "date", "like", "value", "group", "by", "zip_code"], "question": "For each zip code, return the average mean temperature of August there.", "question_toks": ["For", "each", "zip", "code", ",", "return", "the", "average", "mean", "temperature", "of", "August", "there", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 25, false], null]]]], "where": [[false, 9, [0, [0, 23, false], null], "\"8/%\"", null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0124", "db_id": "bike_1", "query": "select zip_code , avg(mean_temperature_f) from weather where date like \"8/%\" group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "FROM", "weather", "WHERE", "date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "avg", "(", "mean_temperature_f", ")", "from", "weather", "where", "date", "like", "value", "group", "by", "zip_code"], "question": "For each zip code, what is the average mean temperature for all dates that start with '8'?", "question_toks": ["For", "each", "zip", "code", ",", "what", "is", "the", "average", "mean", "temperature", "for", "all", "dates", "that", "start", "with", "'8", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [5, [0, [0, 25, false], null]]]], "where": [[false, 9, [0, [0, 23, false], null], "\"8/%\"", null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0133", "db_id": "bike_1", "query": "select start_station_name , start_station_id from trip where start_date like \"8/%\" group by start_station_name order by count(*) desc limit 1", "query_toks": ["SELECT", "start_station_name", ",", "start_station_id", "FROM", "trip", "WHERE", "start_date", "LIKE", "``", "8/", "%", "''", "GROUP", "BY", "start_station_name", "ORDER", "BY", "COUNT", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "start_station_name", ",", "start_station_id", "from", "trip", "where", "start_date", "like", "value", "group", "by", "start_station_name", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which start station had the most trips starting from August? Give me the name and id of the station.", "question_toks": ["Which", "start", "station", "had", "the", "most", "trips", "starting", "from", "August", "?", "Give", "me", "the", "name", "and", "id", "of", "the", "station", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"8/%\"", null]], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL", "DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0143", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select name , id from station where installation_date like \"12/%\"", "query_toks": ["SELECT", "T1.name", ",", "T1.id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "T2.bikes_available", ")", ">", "14", "UNION", "SELECT", "name", ",", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "``", "12/", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "value", "union", "select", "name", ",", "id", "from", "station", "where", "installation_date", "like", "value"], "question": "What are the names and ids of stations that had more than 14 bikes available on average or were installed in December?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "stations", "that", "had", "more", "than", "14", "bikes", "available", "on", "average", "or", "were", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0144", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select name , id from station where installation_date like \"12/%\"", "query_toks": ["SELECT", "T1.name", ",", "T1.id", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "T2.bikes_available", ")", ">", "14", "UNION", "SELECT", "name", ",", "id", "FROM", "station", "WHERE", "installation_date", "LIKE", "``", "12/", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "value", "union", "select", "name", ",", "id", "from", "station", "where", "installation_date", "like", "value"], "question": "What are the names and ids of all stations that have more than 14 bikes available on average or had bikes installed in December?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "or", "had", "bikes", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0281", "db_id": "twitter_1", "query": "select name , email from user_profiles where name like '%swift%'", "query_toks": ["SELECT", "name", ",", "email", "FROM", "user_profiles", "WHERE", "name", "LIKE", "'", "%", "Swift", "%", "'"], "query_toks_no_value": ["select", "name", ",", "email", "from", "user_profiles", "where", "name", "like", "value"], "question": "Find the name and email of the user whose name contains the word \u2018Swift\u2019.", "question_toks": ["Find", "the", "name", "and", "email", "of", "the", "user", "whose", "name", "contains", "the", "word", "\u2018Swift\u2019", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 9, [0, [0, 8, false], null], "\"%Swift%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0282", "db_id": "twitter_1", "query": "select name from user_profiles where email like '%superstar%' or email like '%edu%'", "query_toks": ["SELECT", "name", "FROM", "user_profiles", "WHERE", "email", "LIKE", "'", "%", "superstar", "%", "'", "OR", "email", "LIKE", "'", "%", "edu", "%", "'"], "query_toks_no_value": ["select", "name", "from", "user_profiles", "where", "email", "like", "value", "or", "email", "like", "value"], "question": "Find the names of users whose emails contain \u2018superstar\u2019 or \u2018edu\u2019.", "question_toks": ["Find", "the", "names", "of", "users", "whose", "emails", "contain", "\u2018superstar\u2019", "or", "\u2018edu\u2019", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 9, [0, [0, 9, false], null], "\"%superstar%\"", null], "or", [false, 9, [0, [0, 9, false], null], "\"%edu%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0283", "db_id": "twitter_1", "query": "select text from tweets where text like '%intern%'", "query_toks": ["SELECT", "text", "FROM", "tweets", "WHERE", "text", "LIKE", "'", "%", "intern", "%", "'"], "query_toks_no_value": ["select", "text", "from", "tweets", "where", "text", "like", "value"], "question": "Return the text of tweets about the topic 'intern'.", "question_toks": ["Return", "the", "text", "of", "tweets", "about", "the", "topic", "'intern", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 5, false], null], "\"%intern%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0309", "db_id": "product_catalog", "query": "select distinct(catalog_publisher) from catalogs where catalog_publisher like \"%murray%\"", "query_toks": ["SELECT", "distinct", "(", "catalog_publisher", ")", "FROM", "catalogs", "WHERE", "catalog_publisher", "LIKE", "``", "%", "Murray", "%", "''"], "query_toks_no_value": ["select", "distinct", "(", "catalog_publisher", ")", "from", "catalogs", "where", "catalog_publisher", "like", "value"], "question": "Find all the catalog publishers whose name contains \"Murray\"", "question_toks": ["Find", "all", "the", "catalog", "publishers", "whose", "name", "contains", "``", "Murray", "''"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%Murray%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0327", "db_id": "product_catalog", "query": "select catalog_entry_name from catalog_contents where product_stock_number like \"2%\"", "query_toks": ["SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "product_stock_number", "LIKE", "``", "2", "%", "''"], "query_toks_no_value": ["select", "catalog_entry_name", "from", "catalog_contents", "where", "product_stock_number", "like", "value"], "question": "Find the names of all the products whose stock number starts with \"2\".", "question_toks": ["Find", "the", "names", "of", "all", "the", "products", "whose", "stock", "number", "starts", "with", "``", "2", "''", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 18, false], null], "\"2%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0328", "db_id": "product_catalog", "query": "select catalog_entry_name from catalog_contents where product_stock_number like \"2%\"", "query_toks": ["SELECT", "catalog_entry_name", "FROM", "catalog_contents", "WHERE", "product_stock_number", "LIKE", "``", "2", "%", "''"], "query_toks_no_value": ["select", "catalog_entry_name", "from", "catalog_contents", "where", "product_stock_number", "like", "value"], "question": "Which catalog contents have a product stock number that starts from \"2\"? Show the catalog entry names.", "question_toks": ["Which", "catalog", "contents", "have", "a", "product", "stock", "number", "that", "starts", "from", "``", "2", "''", "?", "Show", "the", "catalog", "entry", "names", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 9, [0, [0, 18, false], null], "\"2%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0555", "db_id": "store_1", "query": "select title from albums where title like 'a%' order by title;", "query_toks": ["SELECT", "title", "FROM", "albums", "WHERE", "title", "LIKE", "'A", "%", "'", "ORDER", "BY", "title", ";"], "query_toks_no_value": ["select", "title", "from", "albums", "where", "title", "like", "value", "order", "by", "title"], "question": "List every album whose title starts with A in alphabetical order.", "question_toks": ["List", "every", "album", "whose", "title", "starts", "with", "A", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"A%\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0556", "db_id": "store_1", "query": "select title from albums where title like 'a%' order by title;", "query_toks": ["SELECT", "title", "FROM", "albums", "WHERE", "title", "LIKE", "'A", "%", "'", "ORDER", "BY", "title", ";"], "query_toks_no_value": ["select", "title", "from", "albums", "where", "title", "like", "value", "order", "by", "title"], "question": "What are the titles of all albums that start with A in alphabetical order?", "question_toks": ["What", "are", "the", "titles", "of", "all", "albums", "that", "start", "with", "A", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"A%\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0583", "db_id": "store_1", "query": "select t2.title from artists as t1 join albums as t2 on t1.id = t2.artist_id where t1.name like '%led%'", "query_toks": ["SELECT", "T2.title", "FROM", "artists", "AS", "T1", "JOIN", "albums", "AS", "T2", "ON", "T1.id", "=", "T2.artist_id", "WHERE", "T1.name", "LIKE", "'", "%", "Led", "%", "'"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "artists", "as", "t1", "join", "albums", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "artist_id", "where", "t1", ".", "name", "like", "value"], "question": "List the name of albums that are released by aritist whose name has 'Led'", "question_toks": ["List", "the", "name", "of", "albums", "that", "are", "released", "by", "aritist", "whose", "name", "has", "'Led", "'"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Led%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0817", "db_id": "chinook_1", "query": "select name from artist where name like \"%a%\"", "query_toks": ["SELECT", "Name", "FROM", "ARTIST", "WHERE", "Name", "LIKE", "``", "%", "a", "%", "''"], "query_toks_no_value": ["select", "name", "from", "artist", "where", "name", "like", "value"], "question": "Find the names of all artists that have \"a\" in their names.", "question_toks": ["Find", "the", "names", "of", "all", "artists", "that", "have", "``", "a", "''", "in", "their", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 5, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0818", "db_id": "chinook_1", "query": "select name from artist where name like \"%a%\"", "query_toks": ["SELECT", "Name", "FROM", "ARTIST", "WHERE", "Name", "LIKE", "``", "%", "a", "%", "''"], "query_toks_no_value": ["select", "name", "from", "artist", "where", "name", "like", "value"], "question": "What are the names of artist who have the letter 'a' in their names?", "question_toks": ["What", "are", "the", "names", "of", "artist", "who", "have", "the", "letter", "'a", "'", "in", "their", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 5, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0827", "db_id": "chinook_1", "query": "select name from track where name like '%you%'", "query_toks": ["SELECT", "Name", "FROM", "TRACK", "WHERE", "Name", "LIKE", "'", "%", "you", "%", "'"], "query_toks_no_value": ["select", "name", "from", "track", "where", "name", "like", "value"], "question": "Find the names of all the tracks that contain the word \"you\".", "question_toks": ["Find", "the", "names", "of", "all", "the", "tracks", "that", "contain", "the", "word", "``", "you", "''", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [[false, 9, [0, [0, 57, false], null], "\"%you%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0828", "db_id": "chinook_1", "query": "select name from track where name like '%you%'", "query_toks": ["SELECT", "Name", "FROM", "TRACK", "WHERE", "Name", "LIKE", "'", "%", "you", "%", "'"], "query_toks_no_value": ["select", "name", "from", "track", "where", "name", "like", "value"], "question": "What are the names of tracks that contain the the word you in them?", "question_toks": ["What", "are", "the", "names", "of", "tracks", "that", "contain", "the", "the", "word", "you", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [[false, 9, [0, [0, 57, false], null], "\"%you%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0847", "db_id": "chinook_1", "query": "select count(*) from customer where email like \"%gmail.com%\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "CUSTOMER", "WHERE", "Email", "LIKE", "``", "%", "gmail.com", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customer", "where", "email", "like", "value"], "question": "How many customers have email that contains \"gmail.com\"?", "question_toks": ["How", "many", "customers", "have", "email", "that", "contains", "``", "gmail.com", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 17, false], null], "\"%gmail.com%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0848", "db_id": "chinook_1", "query": "select count(*) from customer where email like \"%gmail.com%\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "CUSTOMER", "WHERE", "Email", "LIKE", "``", "%", "gmail.com", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customer", "where", "email", "like", "value"], "question": "Count the number of customers that have an email containing \"gmail.com\".", "question_toks": ["Count", "the", "number", "of", "customers", "that", "have", "an", "email", "containing", "``", "gmail.com", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 17, false], null], "\"%gmail.com%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0925", "db_id": "insurance_fnol", "query": "select customer_id from customers where customer_name like \"%diana%\"", "query_toks": ["SELECT", "customer_id", "FROM", "customers", "WHERE", "customer_name", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "customer_id", "from", "customers", "where", "customer_name", "like", "value"], "question": "Find the IDs of customers whose name contains \"Diana\".", "question_toks": ["Find", "the", "IDs", "of", "customers", "whose", "name", "contains", "``", "Diana", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0926", "db_id": "insurance_fnol", "query": "select customer_id from customers where customer_name like \"%diana%\"", "query_toks": ["SELECT", "customer_id", "FROM", "customers", "WHERE", "customer_name", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "customer_id", "from", "customers", "where", "customer_name", "like", "value"], "question": "What are the IDs of customers who have \"Diana\" in part of their names?", "question_toks": ["What", "are", "the", "IDs", "of", "customers", "who", "have", "``", "Diana", "''", "in", "part", "of", "their", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0973", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme where name like \"%ala%\"", "query_toks": ["SELECT", "name", "FROM", "enzyme", "WHERE", "name", "LIKE", "``", "%", "ALA", "%", "''"], "query_toks_no_value": ["select", "name", "from", "enzyme", "where", "name", "like", "value"], "question": "Which enzyme names have the substring \"ALA\"?", "question_toks": ["Which", "enzyme", "names", "have", "the", "substring", "``", "ALA", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%ALA%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0974", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme where name like \"%ala%\"", "query_toks": ["SELECT", "name", "FROM", "enzyme", "WHERE", "name", "LIKE", "``", "%", "ALA", "%", "''"], "query_toks_no_value": ["select", "name", "from", "enzyme", "where", "name", "like", "value"], "question": "What are the names of enzymes that include the string 'ALA'?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "that", "include", "the", "string", "'ALA", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%ALA%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1009", "db_id": "university_basketball", "query": "select count(*) from university where location like \"%ny%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "university", "WHERE", "LOCATION", "LIKE", "``", "%", "NY", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "university", "where", "location", "like", "value"], "question": "Find how many school locations have the word 'NY'.", "question_toks": ["Find", "how", "many", "school", "locations", "have", "the", "word", "'NY", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%NY%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1010", "db_id": "university_basketball", "query": "select count(*) from university where location like \"%ny%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "university", "WHERE", "LOCATION", "LIKE", "``", "%", "NY", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "university", "where", "location", "like", "value"], "question": "How many universities have a location that contains NY?", "question_toks": ["How", "many", "universities", "have", "a", "location", "that", "contains", "NY", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%NY%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1030", "db_id": "phone_1", "query": "select hardware_model_name , company_name from phone where accreditation_type like 'full';", "query_toks": ["SELECT", "Hardware_Model_name", ",", "Company_name", "FROM", "phone", "WHERE", "Accreditation_type", "LIKE", "'Full", "'", ";"], "query_toks_no_value": ["select", "hardware_model_name", ",", "company_name", "from", "phone", "where", "accreditation_type", "like", "value"], "question": "Find all phones that have word 'Full' in their accreditation types. List the Hardware Model name and Company name.", "question_toks": ["Find", "all", "phones", "that", "have", "word", "'Full", "'", "in", "their", "accreditation", "types", ".", "List", "the", "Hardware", "Model", "name", "and", "Company", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 9, [0, [0, 17, false], null], "\"Full\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1056", "db_id": "match_season", "query": "select official_native_language from country where official_native_language like \"%english%\"", "query_toks": ["SELECT", "Official_native_language", "FROM", "country", "WHERE", "Official_native_language", "LIKE", "``", "%", "English", "%", "''"], "query_toks_no_value": ["select", "official_native_language", "from", "country", "where", "official_native_language", "like", "value"], "question": "Show all official native languages that contain the word \"English\".", "question_toks": ["Show", "all", "official", "native", "languages", "that", "contain", "the", "word", "``", "English", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%English%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1057", "db_id": "match_season", "query": "select official_native_language from country where official_native_language like \"%english%\"", "query_toks": ["SELECT", "Official_native_language", "FROM", "country", "WHERE", "Official_native_language", "LIKE", "``", "%", "English", "%", "''"], "query_toks_no_value": ["select", "official_native_language", "from", "country", "where", "official_native_language", "like", "value"], "question": "What are the official native languages that contain the string \"English\".", "question_toks": ["What", "are", "the", "official", "native", "languages", "that", "contain", "the", "string", "``", "English", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%English%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1172", "db_id": "body_builder", "query": "select t1.total from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t2.birth_date like \"%january%\";", "query_toks": ["SELECT", "T1.total", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id", "WHERE", "T2.Birth_Date", "LIKE", "``", "%", "January", "%", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "total", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "birth_date", "like", "value"], "question": "What are the total scores of the body builders whose birthday contains the string \"January\" ?", "question_toks": ["What", "are", "the", "total", "scores", "of", "the", "body", "builders", "whose", "birthday", "contains", "the", "string", "``", "January", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%January%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "LIKE_IN_SQL", "DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1204", "db_id": "apartment_rentals", "query": "select building_full_name from apartment_buildings where building_full_name like \"%court%\"", "query_toks": ["SELECT", "building_full_name", "FROM", "Apartment_Buildings", "WHERE", "building_full_name", "LIKE", "``", "%", "court", "%", "''"], "query_toks_no_value": ["select", "building_full_name", "from", "apartment_buildings", "where", "building_full_name", "like", "value"], "question": "What are the building full names that contain the word \"court\"?", "question_toks": ["What", "are", "the", "building", "full", "names", "that", "contain", "the", "word", "``", "court", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%court%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1205", "db_id": "apartment_rentals", "query": "select building_full_name from apartment_buildings where building_full_name like \"%court%\"", "query_toks": ["SELECT", "building_full_name", "FROM", "Apartment_Buildings", "WHERE", "building_full_name", "LIKE", "``", "%", "court", "%", "''"], "query_toks_no_value": ["select", "building_full_name", "from", "apartment_buildings", "where", "building_full_name", "like", "value"], "question": "Find all the building full names containing the word \"court\".", "question_toks": ["Find", "all", "the", "building", "full", "names", "containing", "the", "word", "``", "court", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%court%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1354", "db_id": "college_2", "query": "select dept_name from instructor where name like '%soisalon%'", "query_toks": ["SELECT", "dept_name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "Soisalon", "%", "'"], "query_toks_no_value": ["select", "dept_name", "from", "instructor", "where", "name", "like", "value"], "question": "Find the department name of the instructor whose name contains 'Soisalon'.", "question_toks": ["Find", "the", "department", "name", "of", "the", "instructor", "whose", "name", "contains", "'Soisalon", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%Soisalon%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1355", "db_id": "college_2", "query": "select dept_name from instructor where name like '%soisalon%'", "query_toks": ["SELECT", "dept_name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "Soisalon", "%", "'"], "query_toks_no_value": ["select", "dept_name", "from", "instructor", "where", "name", "like", "value"], "question": "What is the name of the department with an instructure who has a name like 'Soisalon'?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "with", "an", "instructure", "who", "has", "a", "name", "like", "'Soisalon", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%Soisalon%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1472", "db_id": "college_2", "query": "select name from instructor where name like '%dar%'", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "dar", "%", "'"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "name", "like", "value"], "question": "Find the names of all instructors whose name includes the substring \u201cdar\u201d.", "question_toks": ["Find", "the", "names", "of", "all", "instructors", "whose", "name", "includes", "the", "substring", "\u201cdar\u201d", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%dar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1473", "db_id": "college_2", "query": "select name from instructor where name like '%dar%'", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "name", "LIKE", "'", "%", "dar", "%", "'"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "name", "like", "value"], "question": "What are the names of all instructors with names that include \"dar\"?", "question_toks": ["What", "are", "the", "names", "of", "all", "instructors", "with", "names", "that", "include", "``", "dar", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%dar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1529", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers where customer_details like \"%diana%\"", "query_toks": ["SELECT", "customer_details", "FROM", "customers", "WHERE", "customer_details", "LIKE", "``", "%", "Diana", "%", "''"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "where", "customer_details", "like", "value"], "question": "Find the names of customers whose name contains \"Diana\".", "question_toks": ["Find", "the", "names", "of", "customers", "whose", "name", "contains", "``", "Diana", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Diana%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1788", "db_id": "small_bank_1", "query": "select t2.balance from accounts as t1 join checking as t2 on t1.custid = t2.custid where t1.name like '%ee%'", "query_toks": ["SELECT", "T2.balance", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "LIKE", "'", "%", "ee", "%", "'"], "query_toks_no_value": ["select", "t2", ".", "balance", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "like", "value"], "question": "What is the checking balance of the account whose owner\u2019s name contains the substring \u2018ee\u2019?", "question_toks": ["What", "is", "the", "checking", "balance", "of", "the", "account", "whose", "owner\u2019s", "name", "contains", "the", "substring", "\u2018ee\u2019", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%ee%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1958", "db_id": "cinema", "query": "select count(*) from film where title like \"%dummy%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "film", "WHERE", "title", "LIKE", "``", "%", "Dummy", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "film", "where", "title", "like", "value"], "question": "How many films have the word 'Dummy' in their titles?", "question_toks": ["How", "many", "films", "have", "the", "word", "'Dummy", "'", "in", "their", "titles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%Dummy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1959", "db_id": "cinema", "query": "select count(*) from film where title like \"%dummy%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "film", "WHERE", "title", "LIKE", "``", "%", "Dummy", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "film", "where", "title", "like", "value"], "question": "Count the number of films whose title contains the word 'Dummy'.", "question_toks": ["Count", "the", "number", "of", "films", "whose", "title", "contains", "the", "word", "'Dummy", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%Dummy%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3599", "db_id": "music_1", "query": "select max(t2.resolution) , min(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value"], "question": "What are the maximum and minimum resolution of songs whose duration is 3 minutes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "resolution", "of", "songs", "whose", "duration", "is", "3", "minutes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "LIKE_IN_SQL", "DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3600", "db_id": "music_1", "query": "select max(t2.resolution) , min(t2.resolution) from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"3:%\"", "query_toks": ["SELECT", "max", "(", "T2.resolution", ")", ",", "min", "(", "T2.resolution", ")", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "3", ":", "%", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "resolution", ")", ",", "min", "(", "t2", ".", "resolution", ")", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value"], "question": "What is the maximum and minimum resolution of all songs that are approximately 3 minutes long?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "resolution", "of", "all", "songs", "that", "are", "approximately", "3", "minutes", "long", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"3:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "LIKE_IN_SQL", "DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3726", "db_id": "mountain_photos", "query": "select name from camera_lens where name like \"%digital%\"", "query_toks": ["SELECT", "name", "FROM", "camera_lens", "WHERE", "name", "LIKE", "``", "%", "Digital", "%", "''"], "query_toks_no_value": ["select", "name", "from", "camera_lens", "where", "name", "like", "value"], "question": "List the camera lens names containing substring \"Digital\".", "question_toks": ["List", "the", "camera", "lens", "names", "containing", "substring", "``", "Digital", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 9, [0, [0, 9, false], null], "\"%Digital%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3793", "db_id": "e_learning", "query": "select count(*) from students where personal_name like \"%son%\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "Students", "WHERE", "personal_name", "LIKE", "``", "%", "son", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "students", "where", "personal_name", "like", "value"], "question": "Find the number of students who have the word \"son\" in their personal names.", "question_toks": ["Find", "the", "number", "of", "students", "who", "have", "the", "word", "``", "son", "''", "in", "their", "personal", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%son%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3946", "db_id": "hospital_1", "query": "select name from physician where position like '%senior%'", "query_toks": ["SELECT", "name", "FROM", "physician", "WHERE", "POSITION", "LIKE", "'", "%", "senior", "%", "'"], "query_toks_no_value": ["select", "name", "from", "physician", "where", "position", "like", "value"], "question": "Find the name of physicians whose position title contains the word 'senior'.", "question_toks": ["Find", "the", "name", "of", "physicians", "whose", "position", "title", "contains", "the", "word", "'senior", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%senior%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3947", "db_id": "hospital_1", "query": "select name from physician where position like '%senior%'", "query_toks": ["SELECT", "name", "FROM", "physician", "WHERE", "POSITION", "LIKE", "'", "%", "senior", "%", "'"], "query_toks_no_value": ["select", "name", "from", "physician", "where", "position", "like", "value"], "question": "What are the names of the physicians who have 'senior' in their titles.", "question_toks": ["What", "are", "the", "names", "of", "the", "physicians", "who", "have", "'senior", "'", "in", "their", "titles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%senior%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4150", "db_id": "film_rank", "query": "select title , studio from film where studio like \"%universal%\"", "query_toks": ["SELECT", "title", ",", "Studio", "FROM", "film", "WHERE", "Studio", "LIKE", "``", "%", "Universal", "%", "''"], "query_toks_no_value": ["select", "title", ",", "studio", "from", "film", "where", "studio", "like", "value"], "question": "Find the titles and studios of the films that are produced by some film studios that contained the word \"Universal\".", "question_toks": ["Find", "the", "titles", "and", "studios", "of", "the", "films", "that", "are", "produced", "by", "some", "film", "studios", "that", "contained", "the", "word", "``", "Universal", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%Universal%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4151", "db_id": "film_rank", "query": "select title , studio from film where studio like \"%universal%\"", "query_toks": ["SELECT", "title", ",", "Studio", "FROM", "film", "WHERE", "Studio", "LIKE", "``", "%", "Universal", "%", "''"], "query_toks_no_value": ["select", "title", ",", "studio", "from", "film", "where", "studio", "like", "value"], "question": "What are the titles and studios of films that have been produced by a studio whose name contains \"Universal\"?", "question_toks": ["What", "are", "the", "titles", "and", "studios", "of", "films", "that", "have", "been", "produced", "by", "a", "studio", "whose", "name", "contains", "``", "Universal", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%Universal%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4348", "db_id": "tracking_grants_for_research", "query": "select t1.project_details from projects as t1 join project_outcomes as t2 on t1.project_id = t2.project_id join research_outcomes as t3 on t2.outcome_code = t3.outcome_code where t3.outcome_description like '%published%'", "query_toks": ["SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Research_outcomes", "AS", "T3", "ON", "T2.outcome_code", "=", "T3.outcome_code", "WHERE", "T3.outcome_description", "LIKE", "'", "%", "Published", "%", "'"], "query_toks_no_value": ["select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "research_outcomes", "as", "t3", "on", "t2", ".", "outcome_code", "=", "t3", ".", "outcome_code", "where", "t3", ".", "outcome_description", "like", "value"], "question": "List the project details of the projects with the research outcome described with the substring 'Published'.", "question_toks": ["List", "the", "project", "details", "of", "the", "projects", "with", "the", "research", "outcome", "described", "with", "the", "substring", "'Published", "'", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 9, [0, [0, 33, false], null], "\"%Published%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4349", "db_id": "tracking_grants_for_research", "query": "select t1.project_details from projects as t1 join project_outcomes as t2 on t1.project_id = t2.project_id join research_outcomes as t3 on t2.outcome_code = t3.outcome_code where t3.outcome_description like '%published%'", "query_toks": ["SELECT", "T1.project_details", "FROM", "Projects", "AS", "T1", "JOIN", "Project_outcomes", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Research_outcomes", "AS", "T3", "ON", "T2.outcome_code", "=", "T3.outcome_code", "WHERE", "T3.outcome_description", "LIKE", "'", "%", "Published", "%", "'"], "query_toks_no_value": ["select", "t1", ".", "project_details", "from", "projects", "as", "t1", "join", "project_outcomes", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "research_outcomes", "as", "t3", "on", "t2", ".", "outcome_code", "=", "t3", ".", "outcome_code", "where", "t3", ".", "outcome_description", "like", "value"], "question": "What are the details for the project whose research has been published?", "question_toks": ["What", "are", "the", "details", "for", "the", "project", "whose", "research", "has", "been", "published", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 5], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 21, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 9, [0, [0, 33, false], null], "\"%Published%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4364", "db_id": "tracking_grants_for_research", "query": "select document_type_code from document_types where document_description like 'initial%'", "query_toks": ["SELECT", "document_type_code", "FROM", "Document_Types", "WHERE", "document_description", "LIKE", "'Initial", "%", "'"], "query_toks_no_value": ["select", "document_type_code", "from", "document_types", "where", "document_description", "like", "value"], "question": "Which document type is described with the prefix 'Initial'?", "question_toks": ["Which", "document", "type", "is", "described", "with", "the", "prefix", "'Initial", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"Initial%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4365", "db_id": "tracking_grants_for_research", "query": "select document_type_code from document_types where document_description like 'initial%'", "query_toks": ["SELECT", "document_type_code", "FROM", "Document_Types", "WHERE", "document_description", "LIKE", "'Initial", "%", "'"], "query_toks_no_value": ["select", "document_type_code", "from", "document_types", "where", "document_description", "like", "value"], "question": "What is the type of the document whose description starts with the word 'Initial'?", "question_toks": ["What", "is", "the", "type", "of", "the", "document", "whose", "description", "starts", "with", "the", "word", "'Initial", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"Initial%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4651", "db_id": "college_3", "query": "select distinct fname from student where fname like '%a%'", "query_toks": ["SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "Fname", "LIKE", "'", "%", "a", "%", "'"], "query_toks_no_value": ["select", "distinct", "fname", "from", "student", "where", "fname", "like", "value"], "question": "Find the first names of students whose first names contain letter \"a\".", "question_toks": ["Find", "the", "first", "names", "of", "students", "whose", "first", "names", "contain", "letter", "``", "a", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4652", "db_id": "college_3", "query": "select distinct fname from student where fname like '%a%'", "query_toks": ["SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "Fname", "LIKE", "'", "%", "a", "%", "'"], "query_toks_no_value": ["select", "distinct", "fname", "from", "student", "where", "fname", "like", "value"], "question": "What are the first names for students who have an \"a\" in their first name?", "question_toks": ["What", "are", "the", "first", "names", "for", "students", "who", "have", "an", "``", "a", "''", "in", "their", "first", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5200", "db_id": "music_2", "query": "select title from songs where title like '% the %'", "query_toks": ["SELECT", "title", "FROM", "songs", "WHERE", "title", "LIKE", "'", "%", "the", "%", "'"], "query_toks_no_value": ["select", "title", "from", "songs", "where", "title", "like", "value"], "question": "Find all the songs whose name contains the word \"the\".", "question_toks": ["Find", "all", "the", "songs", "whose", "name", "contains", "the", "word", "``", "the", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"% the %\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5201", "db_id": "music_2", "query": "select title from songs where title like '% the %'", "query_toks": ["SELECT", "title", "FROM", "songs", "WHERE", "title", "LIKE", "'", "%", "the", "%", "'"], "query_toks_no_value": ["select", "title", "from", "songs", "where", "title", "like", "value"], "question": "What are the names of the songs whose title has the word \"the\"?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "whose", "title", "has", "the", "word", "``", "the", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"% the %\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5288", "db_id": "manufactory_1", "query": "select founder from manufacturers where name like 's%'", "query_toks": ["SELECT", "founder", "FROM", "manufacturers", "WHERE", "name", "LIKE", "'S", "%", "'"], "query_toks_no_value": ["select", "founder", "from", "manufacturers", "where", "name", "like", "value"], "question": "Find the founder of the company whose name begins with the letter 'S'.", "question_toks": ["Find", "the", "founder", "of", "the", "company", "whose", "name", "begins", "with", "the", "letter", "'S", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"S%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5289", "db_id": "manufactory_1", "query": "select founder from manufacturers where name like 's%'", "query_toks": ["SELECT", "founder", "FROM", "manufacturers", "WHERE", "name", "LIKE", "'S", "%", "'"], "query_toks_no_value": ["select", "founder", "from", "manufacturers", "where", "name", "like", "value"], "question": "Who is the founders of companies whose first letter is S?", "question_toks": ["Who", "is", "the", "founders", "of", "companies", "whose", "first", "letter", "is", "S", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"S%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5442", "db_id": "shop_membership", "query": "select card_number from member where hometown like \"%kentucky%\"", "query_toks": ["SELECT", "card_number", "FROM", "member", "WHERE", "Hometown", "LIKE", "``", "%", "Kentucky", "%", "''"], "query_toks_no_value": ["select", "card_number", "from", "member", "where", "hometown", "like", "value"], "question": "list the card number of all members whose hometown address includes word \"Kentucky\".", "question_toks": ["list", "the", "card", "number", "of", "all", "members", "whose", "hometown", "address", "includes", "word", "``", "Kentucky", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%Kentucky%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5443", "db_id": "shop_membership", "query": "select card_number from member where hometown like \"%kentucky%\"", "query_toks": ["SELECT", "card_number", "FROM", "member", "WHERE", "Hometown", "LIKE", "``", "%", "Kentucky", "%", "''"], "query_toks_no_value": ["select", "card_number", "from", "member", "where", "hometown", "like", "value"], "question": "What are the card numbers of members from Kentucky?", "question_toks": ["What", "are", "the", "card", "numbers", "of", "members", "from", "Kentucky", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%Kentucky%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5542", "db_id": "products_gen_characteristics", "query": "select t1.product_category_description from ref_product_categories as t1 join products as t2 on t1.product_category_code = t2.product_category_code where t2.product_description like '%t%'", "query_toks": ["SELECT", "T1.product_category_description", "FROM", "ref_product_categories", "AS", "T1", "JOIN", "products", "AS", "T2", "ON", "T1.product_category_code", "=", "T2.product_category_code", "WHERE", "T2.product_description", "LIKE", "'", "%", "t", "%", "'"], "query_toks_no_value": ["select", "t1", ".", "product_category_description", "from", "ref_product_categories", "as", "t1", "join", "products", "as", "t2", "on", "t1", ".", "product_category_code", "=", "t2", ".", "product_category_code", "where", "t2", ".", "product_description", "like", "value"], "question": "Find the category descriptions of the products whose descriptions include letter 't'.", "question_toks": ["Find", "the", "category", "descriptions", "of", "the", "products", "whose", "descriptions", "include", "letter", "'t", "'", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 19, false], null], "\"%t%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5696", "db_id": "dorm_1", "query": "select student_capacity , gender from dorm where dorm_name like '%donor%'", "query_toks": ["SELECT", "student_capacity", ",", "gender", "FROM", "dorm", "WHERE", "dorm_name", "LIKE", "'", "%", "Donor", "%", "'"], "query_toks_no_value": ["select", "student_capacity", ",", "gender", "from", "dorm", "where", "dorm_name", "like", "value"], "question": "Find the capacity and gender type of the dorm whose name has substring \u2018Donor\u2019.", "question_toks": ["Find", "the", "capacity", "and", "gender", "type", "of", "the", "dorm", "whose", "name", "has", "substring", "\u2018Donor\u2019", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%Donor%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5697", "db_id": "dorm_1", "query": "select student_capacity , gender from dorm where dorm_name like '%donor%'", "query_toks": ["SELECT", "student_capacity", ",", "gender", "FROM", "dorm", "WHERE", "dorm_name", "LIKE", "'", "%", "Donor", "%", "'"], "query_toks_no_value": ["select", "student_capacity", ",", "gender", "from", "dorm", "where", "dorm_name", "like", "value"], "question": "What is the student capacity and type of gender for the dorm whose name as the phrase Donor in it?", "question_toks": ["What", "is", "the", "student", "capacity", "and", "type", "of", "gender", "for", "the", "dorm", "whose", "name", "as", "the", "phrase", "Donor", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%Donor%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6485", "db_id": "scientist_1", "query": "select t2.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t3.name like '%smith%'", "query_toks": ["SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "LIKE", "'", "%", "Smith", "%", "'"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "like", "value"], "question": "Find the name of the project for which a scientist whose name contains \u2018Smith\u2019 is assigned to.", "question_toks": ["Find", "the", "name", "of", "the", "project", "for", "which", "a", "scientist", "whose", "name", "contains", "\u2018Smith\u2019", "is", "assigned", "to", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Smith%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6486", "db_id": "scientist_1", "query": "select t2.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t3.name like '%smith%'", "query_toks": ["SELECT", "T2.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T3.name", "LIKE", "'", "%", "Smith", "%", "'"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t3", ".", "name", "like", "value"], "question": "What is the name of the project that has a scientist assigned to it whose name contains 'Smith'?", "question_toks": ["What", "is", "the", "name", "of", "the", "project", "that", "has", "a", "scientist", "assigned", "to", "it", "whose", "name", "contains", "'Smith", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%Smith%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6700", "db_id": "driving_school", "query": "select t1.lesson_id from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\" and nickname like \"%s%\";", "query_toks": ["SELECT", "T1.lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", "AND", "nickname", "LIKE", "``", "%", "s", "%", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "nickname", "like", "value"], "question": "List lesson id of all lessons taught by staff with first name as Janessa, last name as Sawayn and nickname containing letter 's'.", "question_toks": ["List", "lesson", "id", "of", "all", "lessons", "taught", "by", "staff", "with", "first", "name", "as", "Janessa", ",", "last", "name", "as", "Sawayn", "and", "nickname", "containing", "letter", "'s", "'", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Sawayn\"", null], "and", [false, 9, [0, [0, 9, false], null], "\"%s%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6701", "db_id": "driving_school", "query": "select t1.lesson_id from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\" and nickname like \"%s%\";", "query_toks": ["SELECT", "T1.lesson_id", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", "AND", "nickname", "LIKE", "``", "%", "s", "%", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "lesson_id", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "nickname", "like", "value"], "question": "What are the the lesson ids of all staff taught by Janessa Sawayn whose nickname has the letter s?", "question_toks": ["What", "are", "the", "the", "lesson", "ids", "of", "all", "staff", "taught", "by", "Janessa", "Sawayn", "whose", "nickname", "has", "the", "letter", "s", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Sawayn\"", null], "and", [false, 9, [0, [0, 9, false], null], "\"%s%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6702", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name like \"%a%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "LIKE", "``", "%", "a", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "like", "value"], "question": "How many lessons taught by staff whose first name has letter 'a' in it?", "question_toks": ["How", "many", "lessons", "taught", "by", "staff", "whose", "first", "name", "has", "letter", "'a", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6703", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id where t2.first_name like \"%a%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.first_name", "LIKE", "``", "%", "a", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "first_name", "like", "value"], "question": "How many lessons were taught by a staff member whose first name has the letter 'a' in it?", "question_toks": ["How", "many", "lessons", "were", "taught", "by", "a", "staff", "member", "whose", "first", "name", "has", "the", "letter", "'a", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%a%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6815", "db_id": "flight_4", "query": "select country from airlines where name like 'orbit%'", "query_toks": ["SELECT", "country", "FROM", "airlines", "WHERE", "name", "LIKE", "'Orbit", "%", "'"], "query_toks_no_value": ["select", "country", "from", "airlines", "where", "name", "like", "value"], "question": "Find the country of the airlines whose name starts with 'Orbit'.", "question_toks": ["Find", "the", "country", "of", "the", "airlines", "whose", "name", "starts", "with", "'Orbit", "'", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 9, [0, [0, 19, false], null], "\"Orbit%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6816", "db_id": "flight_4", "query": "select country from airlines where name like 'orbit%'", "query_toks": ["SELECT", "country", "FROM", "airlines", "WHERE", "name", "LIKE", "'Orbit", "%", "'"], "query_toks_no_value": ["select", "country", "from", "airlines", "where", "name", "like", "value"], "question": "What are the countries of all airlines whose names start with Orbit?", "question_toks": ["What", "are", "the", "countries", "of", "all", "airlines", "whose", "names", "start", "with", "Orbit", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 9, [0, [0, 19, false], null], "\"Orbit%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6821", "db_id": "flight_4", "query": "select count(*) from airports where name like '%international%'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "airports", "WHERE", "name", "LIKE", "'", "%", "International", "%", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airports", "where", "name", "like", "value"], "question": "Find the number of airports whose name contain the word 'International'.", "question_toks": ["Find", "the", "number", "of", "airports", "whose", "name", "contain", "the", "word", "'International", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%International%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6822", "db_id": "flight_4", "query": "select count(*) from airports where name like '%international%'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "airports", "WHERE", "name", "LIKE", "'", "%", "International", "%", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airports", "where", "name", "like", "value"], "question": "How many airports' names have the word Interanation in them?", "question_toks": ["How", "many", "airports", "'", "names", "have", "the", "word", "Interanation", "in", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%International%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6957", "db_id": "architecture", "query": "select name from mill where name like '%moulin%'", "query_toks": ["SELECT", "name", "FROM", "mill", "WHERE", "name", "LIKE", "'", "%", "Moulin", "%", "'"], "query_toks_no_value": ["select", "name", "from", "mill", "where", "name", "like", "value"], "question": "Which of the mill names contains the french word 'Moulin'?", "question_toks": ["Which", "of", "the", "mill", "names", "contains", "the", "french", "word", "'Moulin", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 14, false], null], "\"%Moulin%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0818", "db_id": "scholar", "query": "select distinct count ( distinct t3.paperid ) from paperdataset as t2 join dataset as t1 on t2.datasetid = t1.datasetid join paper as t3 on t3.paperid = t2.paperid where t1.datasetname like \"imagenet\";", "query_toks": ["SELECT", "DISTINCT", "COUNT", "(", "DISTINCT", "t3.paperid", ")", "FROM", "paperdataset", "AS", "t2", "JOIN", "dataset", "AS", "t1", "ON", "t2.datasetid", "=", "t1.datasetid", "JOIN", "paper", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "WHERE", "t1.datasetname", "LIKE", "``", "ImageNet", "''", ";"], "query_toks_no_value": ["select", "distinct", "count", "(", "distinct", "t3", ".", "paperid", ")", "from", "paperdataset", "as", "t2", "join", "dataset", "as", "t1", "on", "t2", ".", "datasetid", "=", "t1", ".", "datasetid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "datasetname", "like", "value"], "question": "how many papers use ImageNet ?", "question_toks": ["how", "many", "papers", "use", "ImageNet", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 20, false], null]]}, "select": [true, [[3, [0, [0, 11, true], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"ImageNet\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1025", "db_id": "scholar", "query": "select distinct t1.paperid from venue as t2 join paper as t1 on t2.venueid = t1.venueid where t1.title like \"neural attention\" and t1.year = 2016 and t2.venuename = \"acl\";", "query_toks": ["SELECT", "DISTINCT", "t1.paperid", "FROM", "venue", "AS", "t2", "JOIN", "paper", "AS", "t1", "ON", "t2.venueid", "=", "t1.venueid", "WHERE", "t1.title", "LIKE", "``", "neural", "attention", "''", "AND", "t1.year", "=", "2016", "AND", "t2.venuename", "=", "``", "ACL", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "paperid", "from", "venue", "as", "t2", "join", "paper", "as", "t1", "on", "t2", ".", "venueid", "=", "t1", ".", "venueid", "where", "t1", ".", "title", "like", "value", "and", "t1", ".", "year", "=", "value", "and", "t2", ".", "venuename", "=", "value"], "question": "ACL papers in 2016 with neural attention in the title", "question_toks": ["ACL", "papers", "in", "2016", "with", "neural", "attention", "in", "the", "title"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"neural attention\"", null], "and", [false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"ACL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1028", "db_id": "scholar", "query": "select distinct t1.authorname from paperkeyphrase as t2 join keyphrase as t4 on t2.keyphraseid = t4.keyphraseid join writes as t3 on t3.paperid = t2.paperid join author as t1 on t3.authorid = t1.authorid where t4.keyphrasename like \"sensor fusion\";", "query_toks": ["SELECT", "DISTINCT", "t1.authorname", "FROM", "paperkeyphrase", "AS", "t2", "JOIN", "keyphrase", "AS", "t4", "ON", "t2.keyphraseid", "=", "t4.keyphraseid", "JOIN", "writes", "AS", "t3", "ON", "t3.paperid", "=", "t2.paperid", "JOIN", "author", "AS", "t1", "ON", "t3.authorid", "=", "t1.authorid", "WHERE", "t4.keyphrasename", "LIKE", "``", "sensor", "fusion", "''", ";"], "query_toks_no_value": ["select", "distinct", "t1", ".", "authorname", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t4", "on", "t2", ".", "keyphraseid", "=", "t4", ".", "keyphraseid", "join", "writes", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "author", "as", "t1", "on", "t3", ".", "authorid", "=", "t1", ".", "authorid", "where", "t4", ".", "keyphrasename", "like", "value"], "question": "Authors of papers on sensor fusion", "question_toks": ["Authors", "of", "papers", "on", "sensor", "fusion"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"sensor fusion\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1116", "db_id": "scholar", "query": "select distinct t2.title from paperkeyphrase as t5 join keyphrase as t3 on t5.keyphraseid = t3.keyphraseid join writes as t4 on t4.paperid = t5.paperid join paper as t2 on t4.paperid = t2.paperid join author as t1 on t4.authorid = t1.authorid join venue as t6 on t6.venueid = t2.venueid where t1.authorname like \"eric c. kerrigan\" and t3.keyphrasename = \"liquid\" and t6.venuename = \"automatica\";", "query_toks": ["SELECT", "DISTINCT", "t2.title", "FROM", "paperkeyphrase", "AS", "t5", "JOIN", "keyphrase", "AS", "t3", "ON", "t5.keyphraseid", "=", "t3.keyphraseid", "JOIN", "writes", "AS", "t4", "ON", "t4.paperid", "=", "t5.paperid", "JOIN", "paper", "AS", "t2", "ON", "t4.paperid", "=", "t2.paperid", "JOIN", "author", "AS", "t1", "ON", "t4.authorid", "=", "t1.authorid", "JOIN", "venue", "AS", "t6", "ON", "t6.venueid", "=", "t2.venueid", "WHERE", "t1.authorname", "LIKE", "``", "Eric", "C.", "Kerrigan", "''", "AND", "t3.keyphrasename", "=", "``", "Liquid", "''", "AND", "t6.venuename", "=", "``", "Automatica", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "title", "from", "paperkeyphrase", "as", "t5", "join", "keyphrase", "as", "t3", "on", "t5", ".", "keyphraseid", "=", "t3", ".", "keyphraseid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t5", ".", "paperid", "join", "paper", "as", "t2", "on", "t4", ".", "paperid", "=", "t2", ".", "paperid", "join", "author", "as", "t1", "on", "t4", ".", "authorid", "=", "t1", ".", "authorid", "join", "venue", "as", "t6", "on", "t6", ".", "venueid", "=", "t2", ".", "venueid", "where", "t1", ".", "authorname", "like", "value", "and", "t3", ".", "keyphrasename", "=", "value", "and", "t6", ".", "venuename", "=", "value"], "question": "What is the name of Eric C. Kerrigan 's Liquid Automatica paper ?", "question_toks": ["What", "is", "the", "name", "of", "Eric", "C.", "Kerrigan", "'s", "Liquid", "Automatica", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 9], ["table_unit", 5], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"Eric C. Kerrigan\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Liquid\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Automatica\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["LIKE_IN_SQL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0485", "db_id": "allergy_1", "query": "select lname from student where age = (select min(age) from student)", "query_toks": ["SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")"], "question": "What is the last name of the youngest student?", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "youngest", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0486", "db_id": "allergy_1", "query": "select lname from student where age = (select min(age) from student)", "query_toks": ["SELECT", "LName", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "age", "=", "(", "select", "min", "(", "age", ")", "from", "student", ")"], "question": "Provide the last name of the youngest student.", "question_toks": ["Provide", "the", "last", "name", "of", "the", "youngest", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0169", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37.4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["select", "id", "from", "station", "where", "lat", ">", "value", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of stations that have latitude above 37.4 and never had bike availability below 7?", "question_toks": ["What", "are", "the", "ids", "of", "stations", "that", "have", "latitude", "above", "37.4", "and", "never", "had", "bike", "availability", "below", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["SYNONYMS", "NEGATION", "HIDDEN_MIN", "_REFORMULATION_SHORT", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0170", "db_id": "bike_1", "query": "select id from station where lat > 37.4 except select station_id from status group by station_id having min(bikes_available) < 7", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "lat", ">", "37.4", "EXCEPT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "min", "(", "bikes_available", ")", "<", "7"], "query_toks_no_value": ["select", "id", "from", "station", "where", "lat", ">", "value", "except", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "min", "(", "bikes_available", ")", "<", "value"], "question": "What are the ids of all stations that have a latitude above 37.4 and have never had less than 7 bikes available?", "question_toks": ["What", "are", "the", "ids", "of", "all", "stations", "that", "have", "a", "latitude", "above", "37.4", "and", "have", "never", "had", "less", "than", "7", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 37.4, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 4, [0, [2, 9, false], null], 7.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["SYNONYMS", "_NEGATION_ALL", "HIDDEN_MIN", "_REFORMULATION_SHORT", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0202", "db_id": "bike_1", "query": "select date , max_temperature_f - min_temperature_f from weather order by max_temperature_f - min_temperature_f limit 1", "query_toks": ["SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1"], "query_toks_no_value": ["select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "value"], "question": "What are the days that had the smallest temperature range, and what was that range?", "question_toks": ["What", "are", "the", "days", "that", "had", "the", "smallest", "temperature", "range", ",", "and", "what", "was", "that", "range", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 24, false], [0, 26, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 24, false], [0, 26, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "MATH_MINUS", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2416", "db_id": "candidate_poll", "query": "select t1.name , t1.sex , min(oppose_rate) from people as t1 join candidate as t2 on t1.people_id = t2.people_id group by t1.sex", "query_toks": ["SELECT", "t1.name", ",", "t1.sex", ",", "min", "(", "oppose_rate", ")", "FROM", "people", "AS", "t1", "JOIN", "candidate", "AS", "t2", "ON", "t1.people_id", "=", "t2.people_id", "GROUP", "BY", "t1.sex"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "sex", ",", "min", "(", "oppose_rate", ")", "from", "people", "as", "t1", "join", "candidate", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "group", "by", "t1", ".", "sex"], "question": "Find the name of the candidates whose oppose percentage is the lowest for each sex.", "question_toks": ["Find", "the", "name", "of", "the", "candidates", "whose", "oppose", "percentage", "is", "the", "lowest", "for", "each", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 10, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2426", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["SELECT", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "FROM", "candidate"], "query_toks_no_value": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "question": "find the highest support percentage, lowest consider rate and oppose rate of all candidates.", "question_toks": ["find", "the", "highest", "support", "percentage", ",", "lowest", "consider", "rate", "and", "oppose", "rate", "of", "all", "candidates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "AGGREGATION_MONO", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0101", "db_id": "car_1", "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);", "query_toks": ["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", ")", ";"], "query_toks_no_value": ["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", ")"], "question": "Find the make and production time of the cars that were produced in the earliest year?", "question_toks": ["Find", "the", "make", "and", "production", "time", "of", "the", "cars", "that", "were", "produced", "in", "the", "earliest", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "WHERE_MONO", "HIDDEN_MIN", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0102", "db_id": "car_1", "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);", "query_toks": ["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", ")", ";"], "query_toks_no_value": ["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", ")"], "question": "What is the maker of the carr produced in the earliest year and what year was it?", "question_toks": ["What", "is", "the", "maker", "of", "the", "carr", "produced", "in", "the", "earliest", "year", "and", "what", "year", "was", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1", "HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0119", "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8", "and", "year", "=", "1974"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value"], "question": "What is the smallest weight of the car produced with 8 cylinders on 1974 ?", "question_toks": ["What", "is", "the", "smallest", "weight", "of", "the", "car", "produced", "with", "8", "cylinders", "on", "1974", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "and", [false, 2, [0, [0, 23, false], null], 1974.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL", "HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0167", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "<", "=", "value"], "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid and make name.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "lowest", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "and", "make", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_NEGATION_OTHER_WORDS", "_JOIN_1", "_AND_TO_COLUMNS", "NEGATION", "HIDDEN_MIN", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0831", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "What are the durations of the longest and the shortest tracks in milliseconds?", "question_toks": ["What", "are", "the", "durations", "of", "the", "longest", "and", "the", "shortest", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0881", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Pop", "''"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "What are the duration of the longest and shortest pop tracks in milliseconds?", "question_toks": ["What", "are", "the", "duration", "of", "the", "longest", "and", "shortest", "pop", "tracks", "in", "milliseconds", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3222", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What is the highest, lowest, and average student GPA for every department?", "question_toks": ["What", "is", "the", "highest", ",", "lowest", ",", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1401", "db_id": "college_2", "query": "select min(salary) , dept_name from instructor group by dept_name having avg(salary) > (select avg(salary) from instructor)", "query_toks": ["SELECT", "min", "(", "salary", ")", ",", "dept_name", "FROM", "instructor", "GROUP", "BY", "dept_name", "HAVING", "avg", "(", "salary", ")", ">", "(", "SELECT", "avg", "(", "salary", ")", "FROM", "instructor", ")"], "query_toks_no_value": ["select", "min", "(", "salary", ")", ",", "dept_name", "from", "instructor", "group", "by", "dept_name", "having", "avg", "(", "salary", ")", ">", "(", "select", "avg", "(", "salary", ")", "from", "instructor", ")"], "question": "What is the lowest salary in departments with average salary greater than the overall average.", "question_toks": ["What", "is", "the", "lowest", "salary", "in", "departments", "with", "average", "salary", "greater", "than", "the", "overall", "average", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [5, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1488", "db_id": "college_2", "query": "select name from instructor where salary > (select min(salary) from instructor where dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")"], "question": "Find names of instructors with salary greater than that of some (at least one) instructor in the Biology department.", "question_toks": ["Find", "names", "of", "instructors", "with", "salary", "greater", "than", "that", "of", "some", "(", "at", "least", "one", ")", "instructor", "in", "the", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1489", "db_id": "college_2", "query": "select name from instructor where salary > (select min(salary) from instructor where dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "min", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "min", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")"], "question": "What are the names of instructors who earn more than at least one instructor from the Biology department?", "question_toks": ["What", "are", "the", "names", "of", "instructors", "who", "earn", "more", "than", "at", "least", "one", "instructor", "from", "the", "Biology", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0335", "db_id": "cre_Doc_Template_Mgt", "query": "select min(version_number) , template_type_code from templates", "query_toks": ["SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates"], "question": "What the smallest version number and its template type code?", "question_toks": ["What", "the", "smallest", "version", "number", "and", "its", "template", "type", "code", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0336", "db_id": "cre_Doc_Template_Mgt", "query": "select min(version_number) , template_type_code from templates", "query_toks": ["SELECT", "min", "(", "Version_Number", ")", ",", "template_type_code", "FROM", "Templates"], "query_toks_no_value": ["select", "min", "(", "version_number", ")", ",", "template_type_code", "from", "templates"], "question": "Return the lowest version number, along with its corresponding template type code.", "question_toks": ["Return", "the", "lowest", "version", "number", ",", "along", "with", "its", "corresponding", "template", "type", "code", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4753", "db_id": "department_store", "query": "select distinct customer_id from customer_orders where order_date > (select min(order_date) from customer_orders where order_status_code = \"cancelled\")", "query_toks": ["SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "(", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "``", "Cancelled", "''", ")"], "query_toks_no_value": ["select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "(", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "value", ")"], "question": "Find the ids of all distinct customers who made order after some orders that were Cancelled.", "question_toks": ["Find", "the", "ids", "of", "all", "distinct", "customers", "who", "made", "order", "after", "some", "orders", "that", "were", "Cancelled", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 31, false], null]]]], "where": [[false, 3, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[2, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"Cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4754", "db_id": "department_store", "query": "select distinct customer_id from customer_orders where order_date > (select min(order_date) from customer_orders where order_status_code = \"cancelled\")", "query_toks": ["SELECT", "DISTINCT", "customer_id", "FROM", "Customer_Orders", "WHERE", "order_date", ">", "(", "SELECT", "min", "(", "order_date", ")", "FROM", "Customer_Orders", "WHERE", "order_status_code", "=", "``", "Cancelled", "''", ")"], "query_toks_no_value": ["select", "distinct", "customer_id", "from", "customer_orders", "where", "order_date", ">", "(", "select", "min", "(", "order_date", ")", "from", "customer_orders", "where", "order_status_code", "=", "value", ")"], "question": "What are the distinct ids of customers who made an order after any order that was Cancelled?", "question_toks": ["What", "are", "the", "distinct", "ids", "of", "customers", "who", "made", "an", "order", "after", "any", "order", "that", "was", "Cancelled", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [true, [[0, [0, [0, 31, false], null]]]], "where": [[false, 3, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[2, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"Cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4775", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "What is the largest and smallest customer codes?", "question_toks": ["What", "is", "the", "largest", "and", "smallest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4781", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "What are the highest and lowest prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "highest", "and", "lowest", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1694", "db_id": "epinions_1", "query": "select min(rank) from review", "query_toks": ["SELECT", "min", "(", "rank", ")", "FROM", "review"], "query_toks_no_value": ["select", "min", "(", "rank", ")", "from", "review"], "question": "Find the highest rank of all reviews.", "question_toks": ["Find", "the", "highest", "rank", "of", "all", "reviews", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2197", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration > (select min(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "(", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "(", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "Find the distinct driver id of all drivers that have a longer stop duration than some drivers in the race whose id is 841?", "question_toks": ["Find", "the", "distinct", "driver", "id", "of", "all", "drivers", "that", "have", "a", "longer", "stop", "duration", "than", "some", "drivers", "in", "the", "race", "whose", "id", "is", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 3, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[2, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2198", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration > (select min(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", ">", "(", "SELECT", "min", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", ">", "(", "select", "min", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "What are the different ids and stop durations of all the drivers whose stop lasted longer than the driver in the race with the id 841?", "question_toks": ["What", "are", "the", "different", "ids", "and", "stop", "durations", "of", "all", "the", "drivers", "whose", "stop", "lasted", "longer", "than", "the", "driver", "in", "the", "race", "with", "the", "id", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 3, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[2, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0030", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "state", ")"], "question": "what state has the smallest population", "question_toks": ["what", "state", "has", "the", "smallest", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0031", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "state", ")"], "question": "what is the least populous state", "question_toks": ["what", "is", "the", "least", "populous", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0032", "db_id": "geo", "query": "select state_name from state where population = ( select min ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "state", ")"], "question": "what is the state with the lowest population", "question_toks": ["what", "is", "the", "state", "with", "the", "lowest", "population"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0145", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city where state_name = \"alaska\" ) and state_name = \"alaska\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "alaska", "''", ")", "AND", "state_name", "=", "``", "alaska", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the smallest city in alaska", "question_toks": ["what", "is", "the", "smallest", "city", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0151", "db_id": "geo", "query": "select density from state where area = ( select min ( area ) from state );", "query_toks": ["SELECT", "density", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "density", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the population density of the state with the smallest area", "question_toks": ["what", "is", "the", "population", "density", "of", "the", "state", "with", "the", "smallest", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0152", "db_id": "geo", "query": "select density from state where area = ( select min ( area ) from state );", "query_toks": ["SELECT", "density", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "density", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the population density of the smallest state", "question_toks": ["what", "is", "the", "population", "density", "of", "the", "smallest", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0173", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city where state_name in ( select state_name from state where area = ( select max ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select max ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the smallest city in the largest state", "question_toks": ["what", "is", "the", "smallest", "city", "in", "the", "largest", "state"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0189", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what is the state with the lowest population density", "question_toks": ["what", "is", "the", "state", "with", "the", "lowest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0190", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the lowest population density", "question_toks": ["what", "state", "has", "the", "lowest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0191", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the lowest population density", "question_toks": ["which", "state", "has", "the", "lowest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0192", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the smallest population density", "question_toks": ["which", "state", "has", "the", "smallest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0193", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the sparsest population density", "question_toks": ["what", "state", "has", "the", "sparsest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0194", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the sparsest population density", "question_toks": ["which", "state", "has", "the", "sparsest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0195", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the least population density", "question_toks": ["what", "state", "has", "the", "least", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0196", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "which state has the least population density", "question_toks": ["which", "state", "has", "the", "least", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0197", "db_id": "geo", "query": "select state_name from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what state has the smallest population density", "question_toks": ["what", "state", "has", "the", "smallest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0206", "db_id": "geo", "query": "select area from state where density = ( select min ( density ) from state );", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "area", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")"], "question": "what is the area of the state with the smallest population density", "question_toks": ["what", "is", "the", "area", "of", "the", "state", "with", "the", "smallest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0315", "db_id": "geo", "query": "select capital from state where area = ( select min ( area ) from state );", "query_toks": ["SELECT", "capital", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "capital", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the capital of the smallest state", "question_toks": ["what", "is", "the", "capital", "of", "the", "smallest", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0338", "db_id": "geo", "query": "select highest_point from highlow where state_name in ( select state_name from state where density = ( select min ( density ) from state ) );", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MIN", "(", "density", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "density", "=", "(", "select", "min", "(", "density", ")", "from", "state", ")", ")"], "question": "what is the highest point of the state with the smallest population density", "question_toks": ["what", "is", "the", "highest", "point", "of", "the", "state", "with", "the", "smallest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0339", "db_id": "geo", "query": "select city_name from city where state_name in ( select state_name from state where state_name in ( select traverse from river where river_name = \"mississippi\" ) and area = ( select min ( area ) from state where state_name in ( select traverse from river where river_name = \"mississippi\" ) ) ) order by population desc limit 1;", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "traverse", "FROM", "river", "WHERE", "river_name", "=", "``", "mississippi", "''", ")", "AND", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "traverse", "FROM", "river", "WHERE", "river_name", "=", "``", "mississippi", "''", ")", ")", ")", "ORDER", "BY", "population", "DESC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "state_name", "in", "(", "select", "traverse", "from", "river", "where", "river_name", "=", "value", ")", "and", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "traverse", "from", "river", "where", "river_name", "=", "value", ")", ")", ")", "order", "by", "population", "desc", "limit", "value"], "question": "what is the largest city in smallest state through which the mississippi runs", "question_toks": ["what", "is", "the", "largest", "city", "in", "smallest", "state", "through", "which", "the", "mississippi", "runs"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"mississippi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"mississippi\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0340", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the largest city in the smallest state in the usa", "question_toks": ["what", "is", "the", "largest", "city", "in", "the", "smallest", "state", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0341", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name in ( select state_name from state where area = ( select min ( area ) from state ) ) ) and state_name in ( select state_name from state where area = ( select min ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")", ")", "and", "state_name", "in", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")", ")"], "question": "what is the biggest city in the smallest state", "question_toks": ["what", "is", "the", "biggest", "city", "in", "the", "smallest", "state"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0356", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow );", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "what is the lowest point in usa", "question_toks": ["what", "is", "the", "lowest", "point", "in", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0357", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow );", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "what is the lowest point in the united states", "question_toks": ["what", "is", "the", "lowest", "point", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0358", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow );", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "where is the lowest point in the us", "question_toks": ["where", "is", "the", "lowest", "point", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0359", "db_id": "geo", "query": "select lowest_point from highlow where lowest_elevation = ( select min ( lowest_elevation ) from highlow );", "query_toks": ["SELECT", "lowest_point", "FROM", "highlow", "WHERE", "lowest_elevation", "=", "(", "SELECT", "MIN", "(", "lowest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "lowest_point", "from", "highlow", "where", "lowest_elevation", "=", "(", "select", "min", "(", "lowest_elevation", ")", "from", "highlow", ")"], "question": "what is the lowest point of the us", "question_toks": ["what", "is", "the", "lowest", "point", "of", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0375", "db_id": "geo", "query": "select population from state where area = ( select min ( area ) from state );", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "population", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", ")"], "question": "what is the population of the smallest state", "question_toks": ["what", "is", "the", "population", "of", "the", "smallest", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0378", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what is the smallest city in the usa", "question_toks": ["what", "is", "the", "smallest", "city", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0379", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what is the smallest city in the us", "question_toks": ["what", "is", "the", "smallest", "city", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0380", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what city has the least population", "question_toks": ["what", "city", "has", "the", "least", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0381", "db_id": "geo", "query": "select city_name from city where population = ( select min ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MIN", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "min", "(", "population", ")", "from", "city", ")"], "question": "what is the city with the smallest population", "question_toks": ["what", "is", "the", "city", "with", "the", "smallest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0382", "db_id": "geo", "query": "select state_name from state where area = ( select min ( area ) from state where state_name in ( select border from border_info where state_name = \"texas\" ) ) and state_name in ( select border from border_info where state_name = \"texas\" );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MIN", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "texas", "''", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "texas", "''", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "min", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")", ")", "and", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")"], "question": "what is the smallest state bordering texas", "question_toks": ["what", "is", "the", "smallest", "state", "bordering", "texas"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0460", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river );", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "what is the shortest river in the usa", "question_toks": ["what", "is", "the", "shortest", "river", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0461", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river );", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "what is the shortest river", "question_toks": ["what", "is", "the", "shortest", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0464", "db_id": "geo", "query": "select river_name from river where length = ( select min ( length ) from river );", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "which is the shortest river", "question_toks": ["which", "is", "the", "shortest", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0501", "db_id": "geo", "query": "select distinct traverse from river where length = ( select min ( distinct length ) from river );", "query_toks": ["SELECT", "DISTINCT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "DISTINCT", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "distinct", "traverse", "from", "river", "where", "length", "=", "(", "select", "min", "(", "distinct", "length", ")", "from", "river", ")"], "question": "what state has the shortest river", "question_toks": ["what", "state", "has", "the", "shortest", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0504", "db_id": "geo", "query": "select traverse from river where length = ( select min ( length ) from river );", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MIN", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "min", "(", "length", ")", "from", "river", ")"], "question": "what states does the shortest river run through", "question_toks": ["what", "states", "does", "the", "shortest", "river", "run", "through"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[2, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3966", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "What are the highest cost, lowest cost and average cost of procedures?", "question_toks": ["What", "are", "the", "highest", "cost", ",", "lowest", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3967", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["SELECT", "MAX", "(", "cost", ")", ",", "MIN", "(", "cost", ")", ",", "AVG", "(", "cost", ")", "FROM", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "Tell me the highest, lowest, and average cost of procedures.", "question_toks": ["Tell", "me", "the", "highest", ",", "lowest", ",", "and", "average", "cost", "of", "procedures", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3471", "db_id": "hr_1", "query": "select min(salary) , department_id from employees group by department_id", "query_toks": ["SELECT", "MIN", "(", "salary", ")", ",", "department_id", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["select", "min", "(", "salary", ")", ",", "department_id", "from", "employees", "group", "by", "department_id"], "question": "return the smallest salary for every departments.", "question_toks": ["return", "the", "smallest", "salary", "for", "every", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3473", "db_id": "hr_1", "query": "select first_name , last_name , department_id from employees where salary in (select min(salary) from employees group by department_id)", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")"], "question": "Find the first name and last name and department id for those employees who earn such amount of salary which is the smallest salary of any of the departments.", "question_toks": ["Find", "the", "first", "name", "and", "last", "name", "and", "department", "id", "for", "those", "employees", "who", "earn", "such", "amount", "of", "salary", "which", "is", "the", "smallest", "salary", "of", "any", "of", "the", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 8, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3474", "db_id": "hr_1", "query": "select first_name , last_name , department_id from employees where salary in (select min(salary) from employees group by department_id)", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "department_id", "FROM", "employees", "WHERE", "salary", "IN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", ")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "department_id", "from", "employees", "where", "salary", "in", "(", "select", "min", "(", "salary", ")", "from", "employees", "group", "by", "department_id", ")"], "question": "What are the full names and department ids for the lowest paid employees across all departments.", "question_toks": ["What", "are", "the", "full", "names", "and", "department", "ids", "for", "the", "lowest", "paid", "employees", "across", "all", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 8, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3495", "db_id": "hr_1", "query": "select * from employees where salary between (select min(salary) from employees) and 2500", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "(", "SELECT", "MIN", "(", "salary", ")", "FROM", "employees", ")", "AND", "2500"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "salary", "between", "(", "select", "min", "(", "salary", ")", "from", "employees", ")", "and", "value"], "question": "display all the information of the employees whose salary if within the range of smallest salary and 2500.", "question_toks": ["display", "all", "the", "information", "of", "the", "employees", "whose", "salary", "if", "within", "the", "range", "of", "smallest", "salary", "and", "2500", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, 2500.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3507", "db_id": "hr_1", "query": "select employee_id , job_id from employees where salary < ( select min(salary) from employees where job_id = 'mk_man' )", "query_toks": ["SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "(", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'MK_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "(", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "display the employee number and job id for all employees whose salary is smaller than any salary of those employees whose job title is MK_MAN.", "question_toks": ["display", "the", "employee", "number", "and", "job", "id", "for", "all", "employees", "whose", "salary", "is", "smaller", "than", "any", "salary", "of", "those", "employees", "whose", "job", "title", "is", "MK_MAN", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"MK_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3508", "db_id": "hr_1", "query": "select employee_id , job_id from employees where salary < ( select min(salary) from employees where job_id = 'mk_man' )", "query_toks": ["SELECT", "employee_id", ",", "job_id", "FROM", "employees", "WHERE", "salary", "<", "(", "SELECT", "min", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'MK_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "job_id", "from", "employees", "where", "salary", "<", "(", "select", "min", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "What are the employee ids and job ids for employees who make less than the lowest earning employee with title MK_MAN?", "question_toks": ["What", "are", "the", "employee", "ids", "and", "job", "ids", "for", "employees", "who", "make", "less", "than", "the", "lowest", "earning", "employee", "with", "title", "MK_MAN", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"MK_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5302", "db_id": "manufactory_1", "query": "select name from manufacturers where revenue < (select min(revenue) from manufacturers where headquarter = 'austin')", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "where", "revenue", "<", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")"], "question": "Find the name of companies whose revenue is smaller than the revenue of all companies based in Austin.", "question_toks": ["Find", "the", "name", "of", "companies", "whose", "revenue", "is", "smaller", "than", "the", "revenue", "of", "all", "companies", "based", "in", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5303", "db_id": "manufactory_1", "query": "select name from manufacturers where revenue < (select min(revenue) from manufacturers where headquarter = 'austin')", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "WHERE", "revenue", "<", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "where", "revenue", "<", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")"], "question": "What are the names of companies with revenue less than the lowest revenue of any manufacturer in Austin?", "question_toks": ["What", "are", "the", "names", "of", "companies", "with", "revenue", "less", "than", "the", "lowest", "revenue", "of", "any", "manufacturer", "in", "Austin", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5304", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers where revenue > (select min(revenue) from manufacturers where headquarter = 'austin')", "query_toks": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")"], "question": "Find the total revenue of companies whose revenue is larger than the revenue of some companies based in Austin.", "question_toks": ["Find", "the", "total", "revenue", "of", "companies", "whose", "revenue", "is", "larger", "than", "the", "revenue", "of", "some", "companies", "based", "in", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5305", "db_id": "manufactory_1", "query": "select sum(revenue) from manufacturers where revenue > (select min(revenue) from manufacturers where headquarter = 'austin')", "query_toks": ["SELECT", "sum", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "revenue", ">", "(", "SELECT", "min", "(", "revenue", ")", "FROM", "manufacturers", "WHERE", "headquarter", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "sum", "(", "revenue", ")", "from", "manufacturers", "where", "revenue", ">", "(", "select", "min", "(", "revenue", ")", "from", "manufacturers", "where", "headquarter", "=", "value", ")"], "question": "What is the total revenue of companies with revenue greater than the lowest revenue of any manufacturer in Austin?", "question_toks": ["What", "is", "the", "total", "revenue", "of", "companies", "with", "revenue", "greater", "than", "the", "lowest", "revenue", "of", "any", "manufacturer", "in", "Austin", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5350", "db_id": "manufactory_1", "query": "select code , name , min(price) from products group by name", "query_toks": ["SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name"], "query_toks_no_value": ["select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name"], "question": "Select the code of the product that is cheapest in each product category.", "question_toks": ["Select", "the", "code", "of", "the", "product", "that", "is", "cheapest", "in", "each", "product", "category", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5351", "db_id": "manufactory_1", "query": "select code , name , min(price) from products group by name", "query_toks": ["SELECT", "code", ",", "name", ",", "min", "(", "price", ")", "FROM", "products", "GROUP", "BY", "name"], "query_toks_no_value": ["select", "code", ",", "name", ",", "min", "(", "price", ")", "from", "products", "group", "by", "name"], "question": "What are the codes and names of the cheapest products in each category?", "question_toks": ["What", "are", "the", "codes", "and", "names", "of", "the", "cheapest", "products", "in", "each", "category", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2450", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What is the lowest and highest rating star?", "question_toks": ["What", "is", "the", "lowest", "and", "highest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2462", "db_id": "movie_1", "query": "select avg(t1.stars) , t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select min(year) from movie)", "query_toks": ["SELECT", "avg", "(", "T1.stars", ")", ",", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "movie", ")"], "question": "What is the average rating stars and title for the oldest movie?", "question_toks": ["What", "is", "the", "average", "rating", "stars", "and", "title", "for", "the", "oldest", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2463", "db_id": "movie_1", "query": "select avg(t1.stars) , t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select min(year) from movie)", "query_toks": ["SELECT", "avg", "(", "T1.stars", ")", ",", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "stars", ")", ",", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "min", "(", "year", ")", "from", "movie", ")"], "question": "For the oldest movie listed, what is its average rating and title?", "question_toks": ["For", "the", "oldest", "movie", "listed", ",", "what", "is", "its", "average", "rating", "and", "title", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2504", "db_id": "movie_1", "query": "select t2.title , t1.rid , t1.stars , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t1.rid", "query_toks": ["SELECT", "T2.title", ",", "T1.rID", ",", "T1.stars", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.rID"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid"], "question": "Find the title and star rating of the movie that got the least rating star for each reviewer.", "question_toks": ["Find", "the", "title", "and", "star", "rating", "of", "the", "movie", "that", "got", "the", "least", "rating", "star", "for", "each", "reviewer", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2505", "db_id": "movie_1", "query": "select t2.title , t1.rid , t1.stars , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t1.rid", "query_toks": ["SELECT", "T2.title", ",", "T1.rID", ",", "T1.stars", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T1.rID"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "rid", ",", "t1", ".", "stars", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t1", ".", "rid"], "question": "For each reviewer id, what is the title and rating for the movie with the smallest rating?", "question_toks": ["For", "each", "reviewer", "id", ",", "what", "is", "the", "title", "and", "rating", "for", "the", "movie", "with", "the", "smallest", "rating", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2506", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t2.director", "query_toks": ["SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T2.director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director"], "question": "Find the title and score of the movie with the lowest rating among all movies directed by each director.", "question_toks": ["Find", "the", "title", "and", "score", "of", "the", "movie", "with", "the", "lowest", "rating", "among", "all", "movies", "directed", "by", "each", "director", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2507", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , min(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid group by t2.director", "query_toks": ["SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "min", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "GROUP", "BY", "T2.director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "min", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "group", "by", "t2", ".", "director"], "question": "For each director, what is the title and score of their most poorly rated movie?", "question_toks": ["For", "each", "director", ",", "what", "is", "the", "title", "and", "score", "of", "their", "most", "poorly", "rated", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3569", "db_id": "music_1", "query": "select distinct song_name from song where resolution > (select min(resolution) from song where languages = \"english\")", "query_toks": ["SELECT", "DISTINCT", "song_name", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "min", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", ")"], "query_toks_no_value": ["select", "distinct", "song_name", "from", "song", "where", "resolution", ">", "(", "select", "min", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value", ")"], "question": "Find the distinct names of all songs that have a higher resolution than some songs in English.", "question_toks": ["Find", "the", "distinct", "names", "of", "all", "songs", "that", "have", "a", "higher", "resolution", "than", "some", "songs", "in", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3603", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["SELECT", "min", "(", "T1.duration", ")", ",", "min", "(", "T2.rating", ")", ",", "T2.genre_is", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.genre_is", "ORDER", "BY", "T2.genre_is"], "query_toks_no_value": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "question": "What are the shortest duration and lowest rating of songs grouped by genre and ordered by genre?", "question_toks": ["What", "are", "the", "shortest", "duration", "and", "lowest", "rating", "of", "songs", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3613", "db_id": "music_1", "query": "select song_name from song where rating < (select min(rating) from song where languages = 'english')", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "min", "(", "rating", ")", "FROM", "song", "WHERE", "languages", "=", "'english", "'", ")"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "min", "(", "rating", ")", "from", "song", "where", "languages", "=", "value", ")"], "question": "What are the names of the songs whose rating is below the rating of all songs in English?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "whose", "rating", "is", "below", "the", "rating", "of", "all", "songs", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4412", "db_id": "network_2", "query": "select name from person where gender = 'male' and age = (select min(age) from person where gender = 'male' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "'male", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")"], "question": "Who is the youngest male?", "question_toks": ["Who", "is", "the", "youngest", "male", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4413", "db_id": "network_2", "query": "select name from person where gender = 'male' and age = (select min(age) from person where gender = 'male' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "gender", "=", "'male", "'", "AND", "age", "=", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "gender", "=", "'male", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "gender", "=", "value", "and", "age", "=", "(", "select", "min", "(", "age", ")", "from", "person", "where", "gender", "=", "value", ")"], "question": "What is the name of the youngest male?", "question_toks": ["What", "is", "the", "name", "of", "the", "youngest", "male", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"male\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4427", "db_id": "network_2", "query": "select min(age) , job from person group by job", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "job", "FROM", "Person", "GROUP", "BY", "job"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "job", "from", "person", "group", "by", "job"], "question": "How old is the youngest person for each job?", "question_toks": ["How", "old", "is", "the", "youngest", "person", "for", "each", "job", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4430", "db_id": "network_2", "query": "select name from person where age > (select min(age) from person where job = 'engineer') order by age", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")", "order", "by", "age"], "question": "Find the name of people whose age is greater than any engineer sorted by their age.", "question_toks": ["Find", "the", "name", "of", "people", "whose", "age", "is", "greater", "than", "any", "engineer", "sorted", "by", "their", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4431", "db_id": "network_2", "query": "select name from person where age > (select min(age) from person where job = 'engineer') order by age", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "min", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", ">", "(", "select", "min", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")", "order", "by", "age"], "question": "What is the name of all the people who are older than at least one engineer? Order them by age.", "question_toks": ["What", "is", "the", "name", "of", "all", "the", "people", "who", "are", "older", "than", "at", "least", "one", "engineer", "?", "Order", "them", "by", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4472", "db_id": "network_2", "query": "select name from personfriend where friend = 'alice' and year = (select min(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "Find the name of persons who are friends with Alice for the shortest years.", "question_toks": ["Find", "the", "name", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "shortest", "years", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4473", "db_id": "network_2", "query": "select name from personfriend where friend = 'alice' and year = (select min(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "name", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", "AND", "YEAR", "=", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "name", "from", "personfriend", "where", "friend", "=", "value", "and", "year", "=", "(", "select", "min", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "What are the names of all people who are friends with Alice for the shortest amount of time?", "question_toks": ["What", "are", "the", "names", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "shortest", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6515", "db_id": "scientist_1", "query": "select t2.name , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select min(hours) from projects)", "query_toks": ["SELECT", "T2.name", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "min", "(", "hours", ")", "from", "projects", ")"], "question": "Find name of the project that needs the least amount of time to finish and the name of scientists who worked on it.", "question_toks": ["Find", "name", "of", "the", "project", "that", "needs", "the", "least", "amount", "of", "time", "to", "finish", "and", "the", "name", "of", "scientists", "who", "worked", "on", "it", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6516", "db_id": "scientist_1", "query": "select t2.name , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select min(hours) from projects)", "query_toks": ["SELECT", "T2.name", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "min", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "min", "(", "hours", ")", "from", "projects", ")"], "question": "What is the name of the project that requires the fewest number of hours, and the names of the scientists assigned to it?", "question_toks": ["What", "is", "the", "name", "of", "the", "project", "that", "requires", "the", "fewest", "number", "of", "hours", ",", "and", "the", "names", "of", "the", "scientists", "assigned", "to", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4992", "db_id": "soccer_2", "query": "select cname , state , min(enr) from college group by state", "query_toks": ["SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state"], "query_toks_no_value": ["select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state"], "question": "What is the name of school that has the smallest enrollment in each state?", "question_toks": ["What", "is", "the", "name", "of", "school", "that", "has", "the", "smallest", "enrollment", "in", "each", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4993", "db_id": "soccer_2", "query": "select cname , state , min(enr) from college group by state", "query_toks": ["SELECT", "cName", ",", "state", ",", "min", "(", "enr", ")", "FROM", "college", "GROUP", "BY", "state"], "query_toks_no_value": ["select", "cname", ",", "state", ",", "min", "(", "enr", ")", "from", "college", "group", "by", "state"], "question": "What is the name of the school with smallest enrollment size per state?", "question_toks": ["What", "is", "the", "name", "of", "the", "school", "with", "smallest", "enrollment", "size", "per", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5040", "db_id": "soccer_2", "query": "select distinct cname from college where enr > (select min(enr) from college where state = 'fl')", "query_toks": ["SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "'FL", "'", ")"], "query_toks_no_value": ["select", "distinct", "cname", "from", "college", "where", "enr", ">", "(", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "value", ")"], "question": "Find names of colleges with enrollment greater than that of some (at least one) college in the FL state.", "question_toks": ["Find", "names", "of", "colleges", "with", "enrollment", "greater", "than", "that", "of", "some", "(", "at", "least", "one", ")", "college", "in", "the", "FL", "state", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"FL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5041", "db_id": "soccer_2", "query": "select distinct cname from college where enr > (select min(enr) from college where state = 'fl')", "query_toks": ["SELECT", "DISTINCT", "cName", "FROM", "college", "WHERE", "enr", ">", "(", "SELECT", "min", "(", "enr", ")", "FROM", "college", "WHERE", "state", "=", "'FL", "'", ")"], "query_toks_no_value": ["select", "distinct", "cname", "from", "college", "where", "enr", ">", "(", "select", "min", "(", "enr", ")", "from", "college", "where", "state", "=", "value", ")"], "question": "What are the names of the colleges that are larger than at least one college in Florida?", "question_toks": ["What", "are", "the", "names", "of", "the", "colleges", "that", "are", "larger", "than", "at", "least", "one", "college", "in", "Florida", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"FL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3171", "db_id": "station_weather", "query": "select min(low_temperature) , max(wind_speed_mph) from weekly_weather", "query_toks": ["SELECT", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "FROM", "weekly_weather"], "query_toks_no_value": ["select", "min", "(", "low_temperature", ")", ",", "max", "(", "wind_speed_mph", ")", "from", "weekly_weather"], "question": "show the lowest low temperature and highest wind speed in miles per hour.", "question_toks": ["show", "the", "lowest", "low", "temperature", "and", "highest", "wind", "speed", "in", "miles", "per", "hour", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]], [1, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5388", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where date_problem_reported < ( select min(date_problem_reported) from problems as t3 join staff as t4 on t3.reported_by_staff_id = t4.staff_id where t4.staff_first_name = \"lysanne\" and t4.staff_last_name = \"turcotte\" )", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "date_problem_reported", "<", "(", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3.reported_by_staff_id", "=", "T4.staff_id", "WHERE", "T4.staff_first_name", "=", "``", "Lysanne", "''", "AND", "T4.staff_last_name", "=", "``", "Turcotte", "''", ")"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "(", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")"], "question": "What are the ids of the problems reported before the date of any problem reported by Lysanne Turcotte?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "reported", "before", "the", "date", "of", "any", "problem", "reported", "by", "Lysanne", "Turcotte", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[2, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Lysanne\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5389", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join staff as t2 on t1.reported_by_staff_id = t2.staff_id where date_problem_reported < ( select min(date_problem_reported) from problems as t3 join staff as t4 on t3.reported_by_staff_id = t4.staff_id where t4.staff_first_name = \"lysanne\" and t4.staff_last_name = \"turcotte\" )", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "staff", "AS", "T2", "ON", "T1.reported_by_staff_id", "=", "T2.staff_id", "WHERE", "date_problem_reported", "<", "(", "SELECT", "min", "(", "date_problem_reported", ")", "FROM", "problems", "AS", "T3", "JOIN", "staff", "AS", "T4", "ON", "T3.reported_by_staff_id", "=", "T4.staff_id", "WHERE", "T4.staff_first_name", "=", "``", "Lysanne", "''", "AND", "T4.staff_last_name", "=", "``", "Turcotte", "''", ")"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "reported_by_staff_id", "=", "t2", ".", "staff_id", "where", "date_problem_reported", "<", "(", "select", "min", "(", "date_problem_reported", ")", "from", "problems", "as", "t3", "join", "staff", "as", "t4", "on", "t3", ".", "reported_by_staff_id", "=", "t4", ".", "staff_id", "where", "t4", ".", "staff_first_name", "=", "value", "and", "t4", ".", "staff_last_name", "=", "value", ")"], "question": "Which problems were reported before the date of any problem reported by the staff Lysanne Turcotte? Give me the ids of the problems.", "question_toks": ["Which", "problems", "were", "reported", "before", "the", "date", "of", "any", "problem", "reported", "by", "the", "staff", "Lysanne", "Turcotte", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[2, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Lysanne\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5461", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "Tell me the ages of the oldest and youngest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "oldest", "and", "youngest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX", "HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6557", "db_id": "wine_1", "query": "select distinct name from wine where price > (select min(price) from wine where winery = \"john anthony\")", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "``", "John", "Anthony", "''", ")"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "where", "price", ">", "(", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "value", ")"], "question": "Find the distinct names of all wines that have prices higher than some wines from John Anthony winery.", "question_toks": ["Find", "the", "distinct", "names", "of", "all", "wines", "that", "have", "prices", "higher", "than", "some", "wines", "from", "John", "Anthony", "winery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"John Anthony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6558", "db_id": "wine_1", "query": "select distinct name from wine where price > (select min(price) from wine where winery = \"john anthony\")", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "min", "(", "Price", ")", "FROM", "wine", "WHERE", "Winery", "=", "``", "John", "Anthony", "''", ")"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "where", "price", ">", "(", "select", "min", "(", "price", ")", "from", "wine", "where", "winery", "=", "value", ")"], "question": "What are the distinct names of wines with prices higher than any wine from John Anthony winery.", "question_toks": ["What", "are", "the", "distinct", "names", "of", "wines", "with", "prices", "higher", "than", "any", "wine", "from", "John", "Anthony", "winery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"John Anthony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6583", "db_id": "wine_1", "query": "select name from wine where year < (select min(year) from wine where winery = \"brander\")", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "Brander", "''", ")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "year", "<", "(", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "value", ")"], "question": "What are the names of wines whose production year are before the year of all wines by Brander winery?", "question_toks": ["What", "are", "the", "names", "of", "wines", "whose", "production", "year", "are", "before", "the", "year", "of", "all", "wines", "by", "Brander", "winery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Brander\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6584", "db_id": "wine_1", "query": "select name from wine where year < (select min(year) from wine where winery = \"brander\")", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "YEAR", "<", "(", "SELECT", "min", "(", "YEAR", ")", "FROM", "WINE", "WHERE", "Winery", "=", "``", "Brander", "''", ")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "year", "<", "(", "select", "min", "(", "year", ")", "from", "wine", "where", "winery", "=", "value", ")"], "question": "What are the names of wines produced before any wine from the Brander winery?", "question_toks": ["What", "are", "the", "names", "of", "wines", "produced", "before", "any", "wine", "from", "the", "Brander", "winery", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Brander\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0775", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "population", "<", "(", "SELECT", "min", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", ")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")"], "question": "Which African countries have a smaller population than that of any country in Asia?", "question_toks": ["Which", "African", "countries", "have", "a", "smaller", "population", "than", "that", "of", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION", "AND_IN_SQL_BUT_NOT_IN_NL", "HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0439", "db_id": "wta_1", "query": "select min(loser_rank) from matches", "query_toks": ["SELECT", "min", "(", "loser_rank", ")", "FROM", "matches"], "query_toks_no_value": ["select", "min", "(", "loser_rank", ")", "from", "matches"], "question": "Find the highest rank of losers in all matches.", "question_toks": ["Find", "the", "highest", "rank", "of", "losers", "in", "all", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0440", "db_id": "wta_1", "query": "select min(loser_rank) from matches", "query_toks": ["SELECT", "min", "(", "loser_rank", ")", "FROM", "matches"], "query_toks_no_value": ["select", "min", "(", "loser_rank", ")", "from", "matches"], "question": "What is the best rank of losers across all matches?", "question_toks": ["What", "is", "the", "best", "rank", "of", "losers", "across", "all", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_min_0087", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "query_toks_no_value": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "question": "What is the shortest duration and most poorly rating of song for each genre, ordered alphabetically by genre?", "question_toks": ["What", "is", "the", "shortest", "duration", "and", "most", "poorly", "rating", "of", "song", "for", "each", "genre", ",", "ordered", "alphabetically", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MIN"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1812", "db_id": "small_bank_1", "query": "select t1.balance + t2.balance from checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance", "query_toks": ["SELECT", "T1.balance", "+", "T2.balance", "FROM", "checking", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "ORDER", "BY", "T1.balance", "+", "T2.balance"], "query_toks_no_value": ["select", "t1", ".", "balance", "+", "t2", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t1", ".", "balance", "+", "t2", ".", "balance"], "question": "Find the total checking and saving balance of all accounts sorted by the total balance in ascending order.", "question_toks": ["Find", "the", "total", "checking", "and", "saving", "balance", "of", "all", "accounts", "sorted", "by", "the", "total", "balance", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [false, [[0, [2, [0, 6, false], [0, 4, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 6, false], [0, 4, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1813", "db_id": "small_bank_1", "query": "select t1.balance + t2.balance from checking as t1 join savings as t2 on t1.custid = t2.custid order by t1.balance + t2.balance", "query_toks": ["SELECT", "T1.balance", "+", "T2.balance", "FROM", "checking", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "ORDER", "BY", "T1.balance", "+", "T2.balance"], "query_toks_no_value": ["select", "t1", ".", "balance", "+", "t2", ".", "balance", "from", "checking", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "order", "by", "t1", ".", "balance", "+", "t2", ".", "balance"], "question": "What is the sum of checking and savings balances for all customers, ordered by the total balance?", "question_toks": ["What", "is", "the", "sum", "of", "checking", "and", "savings", "balances", "for", "all", "customers", ",", "ordered", "by", "the", "total", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [false, [[0, [2, [0, 6, false], [0, 4, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[2, [0, 6, false], [0, 4, false]]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MATH_PLUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0128", "db_id": "car_1", "query": "select avg(weight) , year from cars_data group by year;", "query_toks": ["SELECT", "avg", "(", "Weight", ")", ",", "YEAR", "FROM", "CARS_DATA", "GROUP", "BY", "YEAR", ";"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", ",", "year", "from", "cars_data", "group", "by", "year"], "question": "What is the average weight and year for each year?", "question_toks": ["What", "is", "the", "average", "weight", "and", "year", "for", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0139", "db_id": "car_1", "query": "select max(accelerate) , cylinders from cars_data group by cylinders;", "query_toks": ["SELECT", "max", "(", "Accelerate", ")", ",", "Cylinders", "FROM", "CARS_DATA", "GROUP", "BY", "Cylinders", ";"], "query_toks_no_value": ["select", "max", "(", "accelerate", ")", ",", "cylinders", "from", "cars_data", "group", "by", "cylinders"], "question": "What is the maximum accelerate for different number of cylinders?", "question_toks": ["What", "is", "the", "maximum", "accelerate", "for", "different", "number", "of", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0140", "db_id": "car_1", "query": "select max(accelerate) , cylinders from cars_data group by cylinders;", "query_toks": ["SELECT", "max", "(", "Accelerate", ")", ",", "Cylinders", "FROM", "CARS_DATA", "GROUP", "BY", "Cylinders", ";"], "query_toks_no_value": ["select", "max", "(", "accelerate", ")", ",", "cylinders", "from", "cars_data", "group", "by", "cylinders"], "question": "What is the maximum accelerate for all the different cylinders?", "question_toks": ["What", "is", "the", "maximum", "accelerate", "for", "all", "the", "different", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0010", "db_id": "concert_singer", "query": "select country , count(*) from singer group by country", "query_toks": ["SELECT", "country", ",", "count", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "country"], "query_toks_no_value": ["select", "country", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "country"], "question": "Show all countries and the number of singers in each country.", "question_toks": ["Show", "all", "countries", "and", "the", "number", "of", "singers", "in", "each", "country", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0011", "db_id": "concert_singer", "query": "select country , count(*) from singer group by country", "query_toks": ["SELECT", "country", ",", "count", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "country"], "query_toks_no_value": ["select", "country", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "country"], "question": "How many singers are from each country?", "question_toks": ["How", "many", "singers", "are", "from", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0022", "db_id": "concert_singer", "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", "query_toks": ["SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "GROUP", "BY", "T1.stadium_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t1", ".", "stadium_id"], "question": "Show the stadium name and the number of concerts in each stadium.", "question_toks": ["Show", "the", "stadium", "name", "and", "the", "number", "of", "concerts", "in", "each", "stadium", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0393", "db_id": "course_teach", "query": "select hometown , count(*) from teacher group by hometown", "query_toks": ["SELECT", "Hometown", ",", "COUNT", "(", "*", ")", "FROM", "teacher", "GROUP", "BY", "Hometown"], "query_toks_no_value": ["select", "hometown", ",", "count", "(", "*", ")", "from", "teacher", "group", "by", "hometown"], "question": "Show different hometown of teachers and the number of teachers from each hometown.", "question_toks": ["Show", "different", "hometown", "of", "teachers", "and", "the", "number", "of", "teachers", "from", "each", "hometown", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0394", "db_id": "course_teach", "query": "select hometown , count(*) from teacher group by hometown", "query_toks": ["SELECT", "Hometown", ",", "COUNT", "(", "*", ")", "FROM", "teacher", "GROUP", "BY", "Hometown"], "query_toks_no_value": ["select", "hometown", ",", "count", "(", "*", ")", "from", "teacher", "group", "by", "hometown"], "question": "For each hometown, how many teachers are there?", "question_toks": ["For", "each", "hometown", ",", "how", "many", "teachers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0405", "db_id": "course_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", "query_toks": ["SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name"], "question": "Show names of teachers and the number of courses they teach.", "question_toks": ["Show", "names", "of", "teachers", "and", "the", "number", "of", "courses", "they", "teach", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0406", "db_id": "course_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", "query_toks": ["SELECT", "T2.Name", ",", "COUNT", "(", "*", ")", "FROM", "course_arrange", "AS", "T1", "JOIN", "teacher", "AS", "T2", "ON", "T1.Teacher_ID", "=", "T2.Teacher_ID", "GROUP", "BY", "T2.Name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "course_arrange", "as", "t1", "join", "teacher", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id", "group", "by", "t2", ".", "name"], "question": "What are the names of the teachers and how many courses do they teach?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "and", "how", "many", "courses", "do", "they", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0848", "db_id": "orchestra", "query": "select record_company , count(*) from orchestra group by record_company", "query_toks": ["SELECT", "Record_Company", ",", "COUNT", "(", "*", ")", "FROM", "orchestra", "GROUP", "BY", "Record_Company"], "query_toks_no_value": ["select", "record_company", ",", "count", "(", "*", ")", "from", "orchestra", "group", "by", "record_company"], "question": "Please show the different record companies and the corresponding number of orchestras.", "question_toks": ["Please", "show", "the", "different", "record", "companies", "and", "the", "corresponding", "number", "of", "orchestras", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0849", "db_id": "orchestra", "query": "select record_company , count(*) from orchestra group by record_company", "query_toks": ["SELECT", "Record_Company", ",", "COUNT", "(", "*", ")", "FROM", "orchestra", "GROUP", "BY", "Record_Company"], "query_toks_no_value": ["select", "record_company", ",", "count", "(", "*", ")", "from", "orchestra", "group", "by", "record_company"], "question": "How many orchestras does each record company manage?", "question_toks": ["How", "many", "orchestras", "does", "each", "record", "company", "manage", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0049", "db_id": "pets_1", "query": "select max(weight) , pettype from pets group by pettype", "query_toks": ["SELECT", "max", "(", "weight", ")", ",", "petType", "FROM", "pets", "GROUP", "BY", "petType"], "query_toks_no_value": ["select", "max", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "Find the maximum weight for each type of pet. List the maximum weight and pet type.", "question_toks": ["Find", "the", "maximum", "weight", "for", "each", "type", "of", "pet", ".", "List", "the", "maximum", "weight", "and", "pet", "type", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0050", "db_id": "pets_1", "query": "select max(weight) , pettype from pets group by pettype", "query_toks": ["SELECT", "max", "(", "weight", ")", ",", "petType", "FROM", "pets", "GROUP", "BY", "petType"], "query_toks_no_value": ["select", "max", "(", "weight", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "List the maximum weight and type for each type of pet.", "question_toks": ["List", "the", "maximum", "weight", "and", "type", "for", "each", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0071", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "Find the average and maximum age for each type of pet.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "for", "each", "type", "of", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0072", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["SELECT", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "FROM", "pets", "GROUP", "BY", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "What is the average and maximum age for each pet type?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0673", "db_id": "poker_player", "query": "select nationality , count(*) from people group by nationality", "query_toks": ["SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Nationality"], "query_toks_no_value": ["select", "nationality", ",", "count", "(", "*", ")", "from", "people", "group", "by", "nationality"], "question": "What are different nationalities of people and the corresponding number of people from each nation?", "question_toks": ["What", "are", "different", "nationalities", "of", "people", "and", "the", "corresponding", "number", "of", "people", "from", "each", "nation", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1012", "db_id": "singer", "query": "select citizenship , count(*) from singer group by citizenship", "query_toks": ["SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship"], "query_toks_no_value": ["select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship"], "question": "Show different citizenship of singers and the number of singers of each citizenship.", "question_toks": ["Show", "different", "citizenship", "of", "singers", "and", "the", "number", "of", "singers", "of", "each", "citizenship", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1016", "db_id": "singer", "query": "select citizenship , max(net_worth_millions) from singer group by citizenship", "query_toks": ["SELECT", "Citizenship", ",", "max", "(", "Net_Worth_Millions", ")", "FROM", "singer", "GROUP", "BY", "Citizenship"], "query_toks_no_value": ["select", "citizenship", ",", "max", "(", "net_worth_millions", ")", "from", "singer", "group", "by", "citizenship"], "question": "Show different citizenships and the maximum net worth of singers of each citizenship.", "question_toks": ["Show", "different", "citizenships", "and", "the", "maximum", "net", "worth", "of", "singers", "of", "each", "citizenship", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0607", "db_id": "tvshow", "query": "select language , count(*) from tv_channel group by language", "query_toks": ["SELECT", "LANGUAGE", ",", "count", "(", "*", ")", "FROM", "TV_Channel", "GROUP", "BY", "LANGUAGE"], "query_toks_no_value": ["select", "language", ",", "count", "(", "*", ")", "from", "tv_channel", "group", "by", "language"], "question": "List each language and the number of TV Channels using it.", "question_toks": ["List", "each", "language", "and", "the", "number", "of", "TV", "Channels", "using", "it", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0627", "db_id": "tvshow", "query": "select count(*) , directed_by from cartoon group by directed_by", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "Directed_by", "FROM", "cartoon", "GROUP", "BY", "Directed_by"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "directed_by", "from", "cartoon", "group", "by", "directed_by"], "question": "Find the number of cartoons directed by each of the listed directors.", "question_toks": ["Find", "the", "number", "of", "cartoons", "directed", "by", "each", "of", "the", "listed", "directors", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0628", "db_id": "tvshow", "query": "select count(*) , directed_by from cartoon group by directed_by", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "Directed_by", "FROM", "cartoon", "GROUP", "BY", "Directed_by"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "directed_by", "from", "cartoon", "group", "by", "directed_by"], "question": "How many cartoons did each director create?", "question_toks": ["How", "many", "cartoons", "did", "each", "director", "create", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0794", "db_id": "world_1", "query": "select count(*) , district from city where population > (select avg(population) from city) group by district", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "District", "FROM", "city", "WHERE", "Population", ">", "(", "SELECT", "avg", "(", "Population", ")", "FROM", "city", ")", "GROUP", "BY", "District"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "district", "from", "city", "where", "population", ">", "(", "select", "avg", "(", "population", ")", "from", "city", ")", "group", "by", "district"], "question": "Find the number of cities in each district whose population is greater than the average population of cities?", "question_toks": ["Find", "the", "number", "of", "cities", "in", "each", "district", "whose", "population", "is", "greater", "than", "the", "average", "population", "of", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0816", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "question": "What is the language spoken by the largest percentage of people in each country?", "question_toks": ["What", "is", "the", "language", "spoken", "by", "the", "largest", "percentage", "of", "people", "in", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0469", "db_id": "wta_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the average ranking for each player and their first name.", "question_toks": ["Find", "the", "average", "ranking", "for", "each", "player", "and", "their", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[5, [0, [0, 40, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0470", "db_id": "wta_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the first names of all players, and their average rankings?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "players", ",", "and", "their", "average", "rankings", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[5, [0, [0, 40, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0473", "db_id": "wta_1", "query": "select count(*) , country_code from players group by country_code", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "country_code", "FROM", "players", "GROUP", "BY", "country_code"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "country_code", "from", "players", "group", "by", "country_code"], "question": "find the number of players for each country.", "question_toks": ["find", "the", "number", "of", "players", "for", "each", "country", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0474", "db_id": "wta_1", "query": "select count(*) , country_code from players group by country_code", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "country_code", "FROM", "players", "GROUP", "BY", "country_code"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "country_code", "from", "players", "group", "by", "country_code"], "question": "How many players are from each country?", "question_toks": ["How", "many", "players", "are", "from", "each", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0479", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "query_toks_no_value": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "question": "Find the total number of tours for each ranking date.", "question_toks": ["Find", "the", "total", "number", "of", "tours", "for", "each", "ranking", "date", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "GROUP_BY", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0480", "db_id": "wta_1", "query": "select sum(tours) , ranking_date from rankings group by ranking_date", "query_toks": ["SELECT", "sum", "(", "tours", ")", ",", "ranking_date", "FROM", "rankings", "GROUP", "BY", "ranking_date"], "query_toks_no_value": ["select", "sum", "(", "tours", ")", ",", "ranking_date", "from", "rankings", "group", "by", "ranking_date"], "question": "How many total tours were there for each ranking date?", "question_toks": ["How", "many", "total", "tours", "were", "there", "for", "each", "ranking", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 43, false], null]], [0, [0, [0, 39, false], null]]]], "where": [], "groupBy": [[0, 39, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "_HIDDEN_SUM_TOTAL", "HIDDEN_SUM", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0481", "db_id": "wta_1", "query": "select count(*) , year from matches group by year", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "year", "from", "matches", "group", "by", "year"], "question": "Find the number of matches happened in each year.", "question_toks": ["Find", "the", "number", "of", "matches", "happened", "in", "each", "year", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0482", "db_id": "wta_1", "query": "select count(*) , year from matches group by year", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "YEAR", "FROM", "matches", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "year", "from", "matches", "group", "by", "year"], "question": "How many matches were played in each year?", "question_toks": ["How", "many", "matches", "were", "played", "in", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0489", "db_id": "wta_1", "query": "select count(*) , hand from players group by hand", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "hand", "FROM", "players", "GROUP", "BY", "hand"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "hand", "from", "players", "group", "by", "hand"], "question": "Find the number of players for each hand type.", "question_toks": ["Find", "the", "number", "of", "players", "for", "each", "hand", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0490", "db_id": "wta_1", "query": "select count(*) , hand from players group by hand", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "hand", "FROM", "players", "GROUP", "BY", "hand"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "hand", "from", "players", "group", "by", "hand"], "question": "How many players are there for each hand type?", "question_toks": ["How", "many", "players", "are", "there", "for", "each", "hand", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0453", "db_id": "allergy_1", "query": "select allergytype , count(*) from allergy_type group by allergytype", "query_toks": ["SELECT", "allergytype", ",", "count", "(", "*", ")", "FROM", "Allergy_type", "GROUP", "BY", "allergytype"], "query_toks_no_value": ["select", "allergytype", ",", "count", "(", "*", ")", "from", "allergy_type", "group", "by", "allergytype"], "question": "Show all allergy types and the number of allergies in each type.", "question_toks": ["Show", "all", "allergy", "types", "and", "the", "number", "of", "allergies", "in", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0454", "db_id": "allergy_1", "query": "select allergytype , count(*) from allergy_type group by allergytype", "query_toks": ["SELECT", "allergytype", ",", "count", "(", "*", ")", "FROM", "Allergy_type", "GROUP", "BY", "allergytype"], "query_toks_no_value": ["select", "allergytype", ",", "count", "(", "*", ")", "from", "allergy_type", "group", "by", "allergytype"], "question": "What are the allergy types and how many allergies correspond to each one?", "question_toks": ["What", "are", "the", "allergy", "types", "and", "how", "many", "allergies", "correspond", "to", "each", "one", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0489", "db_id": "allergy_1", "query": "select major , count(*) from student group by major", "query_toks": ["SELECT", "major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "major"], "query_toks_no_value": ["select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major"], "question": "Show all majors and corresponding number of students.", "question_toks": ["Show", "all", "majors", "and", "corresponding", "number", "of", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0490", "db_id": "allergy_1", "query": "select major , count(*) from student group by major", "query_toks": ["SELECT", "major", ",", "count", "(", "*", ")", "FROM", "Student", "GROUP", "BY", "major"], "query_toks_no_value": ["select", "major", ",", "count", "(", "*", ")", "from", "student", "group", "by", "major"], "question": "How many students are there for each major?", "question_toks": ["How", "many", "students", "are", "there", "for", "each", "major", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3637", "db_id": "baseball_1", "query": "select yearid , count(*) from hall_of_fame group by yearid;", "query_toks": ["SELECT", "yearid", ",", "count", "(", "*", ")", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", ";"], "query_toks_no_value": ["select", "yearid", ",", "count", "(", "*", ")", "from", "hall_of_fame", "group", "by", "yearid"], "question": "How many players enter hall of fame each year?", "question_toks": ["How", "many", "players", "enter", "hall", "of", "fame", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 145, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 145, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3638", "db_id": "baseball_1", "query": "select yearid , count(*) from hall_of_fame group by yearid;", "query_toks": ["SELECT", "yearid", ",", "count", "(", "*", ")", "FROM", "hall_of_fame", "GROUP", "BY", "yearid", ";"], "query_toks_no_value": ["select", "yearid", ",", "count", "(", "*", ")", "from", "hall_of_fame", "group", "by", "yearid"], "question": "Count the number of players who enter hall of fame for each year.", "question_toks": ["Count", "the", "number", "of", "players", "who", "enter", "hall", "of", "fame", "for", "each", "year", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 145, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 145, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3639", "db_id": "baseball_1", "query": "select year , avg(attendance) from home_game group by year;", "query_toks": ["SELECT", "YEAR", ",", "avg", "(", "attendance", ")", "FROM", "home_game", "GROUP", "BY", "YEAR", ";"], "query_toks_no_value": ["select", "year", ",", "avg", "(", "attendance", ")", "from", "home_game", "group", "by", "year"], "question": "What is the average number of attendance at home games for each year?", "question_toks": ["What", "is", "the", "average", "number", "of", "attendance", "at", "home", "games", "for", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 153, false], null]], [5, [0, [0, 161, false], null]]]], "where": [], "groupBy": [[0, 153, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3640", "db_id": "baseball_1", "query": "select year , avg(attendance) from home_game group by year;", "query_toks": ["SELECT", "YEAR", ",", "avg", "(", "attendance", ")", "FROM", "home_game", "GROUP", "BY", "YEAR", ";"], "query_toks_no_value": ["select", "year", ",", "avg", "(", "attendance", ")", "from", "home_game", "group", "by", "year"], "question": "For each year, return the year and the average number of attendance at home games.", "question_toks": ["For", "each", "year", ",", "return", "the", "year", "and", "the", "average", "number", "of", "attendance", "at", "home", "games", "."], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 153, false], null]], [5, [0, [0, 161, false], null]]]], "where": [], "groupBy": [[0, 153, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3120", "db_id": "behavior_monitoring", "query": "select t1.line_1 , avg(t2.monthly_rental) from addresses as t1 join student_addresses as t2 on t1.address_id = t2.address_id group by t2.address_id", "query_toks": ["SELECT", "T1.line_1", ",", "avg", "(", "T2.monthly_rental", ")", "FROM", "Addresses", "AS", "T1", "JOIN", "Student_Addresses", "AS", "T2", "ON", "T1.address_id", "=", "T2.address_id", "GROUP", "BY", "T2.address_id"], "query_toks_no_value": ["select", "t1", ".", "line_1", ",", "avg", "(", "t2", ".", "monthly_rental", ")", "from", "addresses", "as", "t1", "join", "student_addresses", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "group", "by", "t2", ".", "address_id"], "question": "What are the line 1 and average monthly rentals of all student addresses?", "question_toks": ["What", "are", "the", "line", "1", "and", "average", "monthly", "rentals", "of", "all", "student", "addresses", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 57, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 60, false], null]]]], "where": [], "groupBy": [[0, 57, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1163", "db_id": "body_builder", "query": "select birth_place , count(*) from people group by birth_place", "query_toks": ["SELECT", "Birth_Place", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Birth_Place"], "query_toks_no_value": ["select", "birth_place", ",", "count", "(", "*", ")", "from", "people", "group", "by", "birth_place"], "question": "List each birth place along with the number of people from there.", "question_toks": ["List", "each", "birth", "place", "along", "with", "the", "number", "of", "people", "from", "there", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2424", "db_id": "candidate_poll", "query": "select count(*) , sex from people where weight > 85 group by sex", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "people", "WHERE", "weight", ">", "85", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "sex", "from", "people", "where", "weight", ">", "value", "group", "by", "sex"], "question": "how many people are there whose weight is higher than 85 for each gender?", "question_toks": ["how", "many", "people", "are", "there", "whose", "weight", "is", "higher", "than", "85", "for", "each", "gender", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 85.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2425", "db_id": "candidate_poll", "query": "select count(*) , sex from people where weight > 85 group by sex", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "people", "WHERE", "weight", ">", "85", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "sex", "from", "people", "where", "weight", ">", "value", "group", "by", "sex"], "question": "Count the number of people of each sex who have a weight higher than 85.", "question_toks": ["Count", "the", "number", "of", "people", "of", "each", "sex", "who", "have", "a", "weight", "higher", "than", "85", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 85.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0833", "db_id": "chinook_1", "query": "select t1.title , t2.albumid , count(*) from album as t1 join track as t2 on t1.albumid = t2.albumid group by t2.albumid", "query_toks": ["SELECT", "T1.Title", ",", "T2.AlbumID", ",", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "GROUP", "BY", "T2.AlbumID"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid"], "question": "Show the album names, ids and the number of tracks for each album.", "question_toks": ["Show", "the", "album", "names", ",", "ids", "and", "the", "number", "of", "tracks", "for", "each", "album", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 58, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0834", "db_id": "chinook_1", "query": "select t1.title , t2.albumid , count(*) from album as t1 join track as t2 on t1.albumid = t2.albumid group by t2.albumid", "query_toks": ["SELECT", "T1.Title", ",", "T2.AlbumID", ",", "COUNT", "(", "*", ")", "FROM", "ALBUM", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.AlbumId", "=", "T2.AlbumId", "GROUP", "BY", "T2.AlbumID"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t2", ".", "albumid", ",", "count", "(", "*", ")", "from", "album", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "albumid", "=", "t2", ".", "albumid", "group", "by", "t2", ".", "albumid"], "question": "What are the names and ids of the different albums, and how many tracks are on each?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "the", "different", "albums", ",", "and", "how", "many", "tracks", "are", "on", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 58, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 58, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 58, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1949", "db_id": "cinema", "query": "select directed_by , count(*) from film group by directed_by", "query_toks": ["SELECT", "directed_by", ",", "count", "(", "*", ")", "FROM", "film", "GROUP", "BY", "directed_by"], "query_toks_no_value": ["select", "directed_by", ",", "count", "(", "*", ")", "from", "film", "group", "by", "directed_by"], "question": "List all directors along with the number of films directed by each director.", "question_toks": ["List", "all", "directors", "along", "with", "the", "number", "of", "films", "directed", "by", "each", "director", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1950", "db_id": "cinema", "query": "select t2.name , sum(t1.show_times_per_day) from schedule as t1 join cinema as t2 on t1.cinema_id = t2.cinema_id group by t1.cinema_id", "query_toks": ["SELECT", "T2.name", ",", "sum", "(", "T1.show_times_per_day", ")", "FROM", "schedule", "AS", "T1", "JOIN", "cinema", "AS", "T2", "ON", "T1.cinema_id", "=", "T2.cinema_id", "GROUP", "BY", "T1.cinema_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "sum", "(", "t1", ".", "show_times_per_day", ")", "from", "schedule", "as", "t1", "join", "cinema", "as", "t2", "on", "t1", ".", "cinema_id", "=", "t2", ".", "cinema_id", "group", "by", "t1", ".", "cinema_id"], "question": "What is total number of show times per dat for each cinema?", "question_toks": ["What", "is", "total", "number", "of", "show", "times", "per", "dat", "for", "each", "cinema", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [4, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["GROUP_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0201", "db_id": "bike_1", "query": "select date , max_temperature_f - min_temperature_f from weather order by max_temperature_f - min_temperature_f limit 1", "query_toks": ["SELECT", "date", ",", "max_temperature_f", "-", "min_temperature_f", "FROM", "weather", "ORDER", "BY", "max_temperature_f", "-", "min_temperature_f", "LIMIT", "1"], "query_toks_no_value": ["select", "date", ",", "max_temperature_f", "-", "min_temperature_f", "from", "weather", "order", "by", "max_temperature_f", "-", "min_temperature_f", "limit", "value"], "question": "Find the day in which the difference between the max temperature and min temperature was the smallest. Also report the difference.", "question_toks": ["Find", "the", "day", "in", "which", "the", "difference", "between", "the", "max", "temperature", "and", "min", "temperature", "was", "the", "smallest", ".", "Also", "report", "the", "difference", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [1, [0, 24, false], [0, 26, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 24, false], [0, 26, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "MATH_MINUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3443", "db_id": "hr_1", "query": "select job_title , max_salary - min_salary from jobs where max_salary between 12000 and 18000", "query_toks": ["SELECT", "job_title", ",", "max_salary", "-", "min_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000"], "query_toks_no_value": ["select", "job_title", ",", "max_salary", "-", "min_salary", "from", "jobs", "where", "max_salary", "between", "value", "and", "value"], "question": "display job Title, the difference between minimum and maximum salaries for those jobs which max salary within the range 12000 to 18000.", "question_toks": ["display", "job", "Title", ",", "the", "difference", "between", "minimum", "and", "maximum", "salaries", "for", "those", "jobs", "which", "max", "salary", "within", "the", "range", "12000", "to", "18000", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [1, [0, 13, false], [0, 12, false]]]]], "where": [[false, 1, [0, [0, 13, false], null], 12000.0, 18000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MATH_MINUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3444", "db_id": "hr_1", "query": "select job_title , max_salary - min_salary from jobs where max_salary between 12000 and 18000", "query_toks": ["SELECT", "job_title", ",", "max_salary", "-", "min_salary", "FROM", "jobs", "WHERE", "max_salary", "BETWEEN", "12000", "AND", "18000"], "query_toks_no_value": ["select", "job_title", ",", "max_salary", "-", "min_salary", "from", "jobs", "where", "max_salary", "between", "value", "and", "value"], "question": "What are the job titles, and range of salaries for jobs with maximum salary between 12000 and 18000?", "question_toks": ["What", "are", "the", "job", "titles", ",", "and", "range", "of", "salaries", "for", "jobs", "with", "maximum", "salary", "between", "12000", "and", "18000", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [1, [0, 13, false], [0, 12, false]]]]], "where": [[false, 1, [0, [0, 13, false], null], 12000.0, 18000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MATH_MINUS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4749", "db_id": "department_store", "query": "select t1.staff_id , t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id order by date_assigned_to - date_assigned_from limit 1", "query_toks": ["SELECT", "T1.staff_id", ",", "T1.staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "value"], "question": "Find the id and name of the staff who has been assigned for the shortest period.", "question_toks": ["Find", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "shortest", "period", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 56, false], [0, 54, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4750", "db_id": "department_store", "query": "select t1.staff_id , t1.staff_name from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id order by date_assigned_to - date_assigned_from limit 1", "query_toks": ["SELECT", "T1.staff_id", ",", "T1.staff_name", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "ORDER", "BY", "date_assigned_to", "-", "date_assigned_from", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "staff_id", ",", "t1", ".", "staff_name", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "order", "by", "date_assigned_to", "-", "date_assigned_from", "limit", "value"], "question": "What is the id and name of the staff who has been assigned for the least amount of time?", "question_toks": ["What", "is", "the", "id", "and", "name", "of", "the", "staff", "who", "has", "been", "assigned", "for", "the", "least", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[1, [0, 56, false], [0, 54, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6101", "db_id": "customers_and_addresses", "query": "select avg(active_to_date - active_from_date) from customer_contact_channels", "query_toks": ["SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels"], "query_toks_no_value": ["select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels"], "question": "What is the average time span of contact channels in the database?", "question_toks": ["What", "is", "the", "average", "time", "span", "of", "contact", "channels", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6102", "db_id": "customers_and_addresses", "query": "select avg(active_to_date - active_from_date) from customer_contact_channels", "query_toks": ["SELECT", "avg", "(", "active_to_date", "-", "active_from_date", ")", "FROM", "customer_contact_channels"], "query_toks_no_value": ["select", "avg", "(", "active_to_date", "-", "active_from_date", ")", "from", "customer_contact_channels"], "question": "Compute the average active time span of contact channels.", "question_toks": ["Compute", "the", "average", "active", "time", "span", "of", "contact", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[5, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6103", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels where active_to_date - active_from_date = (select active_to_date - active_from_date from customer_contact_channels order by (active_to_date - active_from_date) desc limit 1)", "query_toks": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "(", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "(", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "value", ")"], "question": "What is the channel code and contact number of the customer contact channel that was active for the longest time?", "question_toks": ["What", "is", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "that", "was", "active", "for", "the", "longest", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [1, [0, 23, false], [0, 22, false]], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[1, [0, 23, false], [0, 22, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6104", "db_id": "customers_and_addresses", "query": "select channel_code , contact_number from customer_contact_channels where active_to_date - active_from_date = (select active_to_date - active_from_date from customer_contact_channels order by (active_to_date - active_from_date) desc limit 1)", "query_toks": ["SELECT", "channel_code", ",", "contact_number", "FROM", "customer_contact_channels", "WHERE", "active_to_date", "-", "active_from_date", "=", "(", "SELECT", "active_to_date", "-", "active_from_date", "FROM", "customer_contact_channels", "ORDER", "BY", "(", "active_to_date", "-", "active_from_date", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "channel_code", ",", "contact_number", "from", "customer_contact_channels", "where", "active_to_date", "-", "active_from_date", "=", "(", "select", "active_to_date", "-", "active_from_date", "from", "customer_contact_channels", "order", "by", "(", "active_to_date", "-", "active_from_date", ")", "desc", "limit", "value", ")"], "question": "Return the channel code and contact number of the customer contact channel whose active duration was the longest.", "question_toks": ["Return", "the", "channel", "code", "and", "contact", "number", "of", "the", "customer", "contact", "channel", "whose", "active", "duration", "was", "the", "longest", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [1, [0, 23, false], [0, 22, false]], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [1, [0, 23, false], [0, 22, false]]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[1, [0, 23, false], [0, 22, false]]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MATH_MINUS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0240", "db_id": "musical", "query": "select name from actor where age != 20", "query_toks": ["SELECT", "Name", "FROM", "actor", "WHERE", "Age", "!", "=", "20"], "query_toks_no_value": ["select", "name", "from", "actor", "where", "age", "!", "=", "value"], "question": "List the name of actors whose age is not 20.", "question_toks": ["List", "the", "name", "of", "actors", "whose", "age", "is", "not", "20", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0241", "db_id": "musical", "query": "select name from actor where age != 20", "query_toks": ["SELECT", "Name", "FROM", "actor", "WHERE", "Age", "!", "=", "20"], "query_toks_no_value": ["select", "name", "from", "actor", "where", "age", "!", "=", "value"], "question": "What are the names of actors who are not 20 years old?", "question_toks": ["What", "are", "the", "names", "of", "actors", "who", "are", "not", "20", "years", "old", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2522", "db_id": "movie_1", "query": "select rid from rating where stars != 4", "query_toks": ["SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "!", "=", "4"], "query_toks_no_value": ["select", "rid", "from", "rating", "where", "stars", "!", "=", "value"], "question": "Find the ids of reviewers who didn't only give 4 star.", "question_toks": ["Find", "the", "ids", "of", "reviewers", "who", "did", "n't", "only", "give", "4", "star", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0216", "db_id": "book_2", "query": "select title from book where writer != \"elaine lee\"", "query_toks": ["SELECT", "Title", "FROM", "book", "WHERE", "Writer", "!", "=", "``", "Elaine", "Lee", "''"], "query_toks_no_value": ["select", "title", "from", "book", "where", "writer", "!", "=", "value"], "question": "What are the titles of the books whose writer is not \"Elaine Lee\"?", "question_toks": ["What", "are", "the", "titles", "of", "the", "books", "whose", "writer", "is", "not", "``", "Elaine", "Lee", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Elaine Lee\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4600", "db_id": "entertainment_awards", "query": "select name from artwork where type != \"program talent show\"", "query_toks": ["SELECT", "Name", "FROM", "artwork", "WHERE", "TYPE", "!", "=", "``", "Program", "Talent", "Show", "''"], "query_toks_no_value": ["select", "name", "from", "artwork", "where", "type", "!", "=", "value"], "question": "List the name of artworks whose type is not \"Program Talent Show\".", "question_toks": ["List", "the", "name", "of", "artworks", "whose", "type", "is", "not", "``", "Program", "Talent", "Show", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"Program Talent Show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6951", "db_id": "architecture", "query": "select name from mill where location != 'donceel'", "query_toks": ["SELECT", "name", "FROM", "mill", "WHERE", "LOCATION", "!", "=", "'Donceel", "'"], "query_toks_no_value": ["select", "name", "from", "mill", "where", "location", "!", "=", "value"], "question": "What are the names of the mills which are not located in 'Donceel'?", "question_toks": ["What", "are", "the", "names", "of", "the", "mills", "which", "are", "not", "located", "in", "'Donceel", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], "\"Donceel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3728", "db_id": "program_share", "query": "select name from channel where owner != 'cctv'", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "!", "=", "'CCTV", "'"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "!", "=", "value"], "question": "Find the names of channels that are not owned by CCTV.", "question_toks": ["Find", "the", "names", "of", "channels", "that", "are", "not", "owned", "by", "CCTV", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"CCTV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3729", "db_id": "program_share", "query": "select name from channel where owner != 'cctv'", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "!", "=", "'CCTV", "'"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "!", "=", "value"], "question": "Which channels are not owned by CCTV? Give me the channel names.", "question_toks": ["Which", "channels", "are", "not", "owned", "by", "CCTV", "?", "Give", "me", "the", "channel", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"CCTV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0943", "db_id": "medicine_enzyme_interaction", "query": "select name from enzyme where product != 'heme'", "query_toks": ["SELECT", "name", "FROM", "enzyme", "WHERE", "product", "!", "=", "'Heme", "'"], "query_toks_no_value": ["select", "name", "from", "enzyme", "where", "product", "!", "=", "value"], "question": "What are the names of enzymes who does not produce 'Heme'?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "who", "does", "not", "produce", "'Heme", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"Heme\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3760", "db_id": "program_share", "query": "select name from program where origin != 'beijing'", "query_toks": ["SELECT", "name", "FROM", "program", "WHERE", "origin", "!", "=", "'Beijing", "'"], "query_toks_no_value": ["select", "name", "from", "program", "where", "origin", "!", "=", "value"], "question": "find the names of programs whose origin is not in Beijing.", "question_toks": ["find", "the", "names", "of", "programs", "whose", "origin", "is", "not", "in", "Beijing", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Beijing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3761", "db_id": "program_share", "query": "select name from program where origin != 'beijing'", "query_toks": ["SELECT", "name", "FROM", "program", "WHERE", "origin", "!", "=", "'Beijing", "'"], "query_toks_no_value": ["select", "name", "from", "program", "where", "origin", "!", "=", "value"], "question": "Which programs' origins are not \"Beijing\"? Give me the program names.", "question_toks": ["Which", "programs", "'", "origins", "are", "not", "``", "Beijing", "''", "?", "Give", "me", "the", "program", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Beijing\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1114", "db_id": "climbing", "query": "select name from climber where country != \"switzerland\"", "query_toks": ["SELECT", "Name", "FROM", "climber", "WHERE", "Country", "!", "=", "``", "Switzerland", "''"], "query_toks_no_value": ["select", "name", "from", "climber", "where", "country", "!", "=", "value"], "question": "List the names of climbers whose country is not Switzerland.", "question_toks": ["List", "the", "names", "of", "climbers", "whose", "country", "is", "not", "Switzerland", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Switzerland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1115", "db_id": "climbing", "query": "select name from climber where country != \"switzerland\"", "query_toks": ["SELECT", "Name", "FROM", "climber", "WHERE", "Country", "!", "=", "``", "Switzerland", "''"], "query_toks_no_value": ["select", "name", "from", "climber", "where", "country", "!", "=", "value"], "question": "What are the names of climbers who are not from the country of Switzerland?", "question_toks": ["What", "are", "the", "names", "of", "climbers", "who", "are", "not", "from", "the", "country", "of", "Switzerland", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Switzerland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0005", "db_id": "department_management", "query": "select name from head where born_state != 'california'", "query_toks": ["SELECT", "name", "FROM", "head", "WHERE", "born_state", "!", "=", "'California", "'"], "query_toks_no_value": ["select", "name", "from", "head", "where", "born_state", "!", "=", "value"], "question": "What are the names of the heads who are born outside the California state?", "question_toks": ["What", "are", "the", "names", "of", "the", "heads", "who", "are", "born", "outside", "the", "California", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"California\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6372", "db_id": "flight_company", "query": "select name from airport where country != 'iceland'", "query_toks": ["SELECT", "name", "FROM", "airport", "WHERE", "country", "!", "=", "'Iceland", "'"], "query_toks_no_value": ["select", "name", "from", "airport", "where", "country", "!", "=", "value"], "question": "What are the names of the airports which are not in the country 'Iceland'?", "question_toks": ["What", "are", "the", "names", "of", "the", "airports", "which", "are", "not", "in", "the", "country", "'Iceland", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Iceland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2239", "db_id": "machine_repair", "query": "select name from technician where team != \"nyy\"", "query_toks": ["SELECT", "Name", "FROM", "technician", "WHERE", "Team", "!", "=", "``", "NYY", "''"], "query_toks_no_value": ["select", "name", "from", "technician", "where", "team", "!", "=", "value"], "question": "List the name of technicians whose team is not \"NYY\".", "question_toks": ["List", "the", "name", "of", "technicians", "whose", "team", "is", "not", "``", "NYY", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"NYY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2240", "db_id": "machine_repair", "query": "select name from technician where team != \"nyy\"", "query_toks": ["SELECT", "Name", "FROM", "technician", "WHERE", "Team", "!", "=", "``", "NYY", "''"], "query_toks_no_value": ["select", "name", "from", "technician", "where", "team", "!", "=", "value"], "question": "What is the name of the technician whose team is not 'NYY'?", "question_toks": ["What", "is", "the", "name", "of", "the", "technician", "whose", "team", "is", "not", "'NYY", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"NYY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0387", "db_id": "course_teach", "query": "select name from teacher where hometown != \"little lever urban district\"", "query_toks": ["select", "name", "from", "teacher", "where", "hometown", "!=", "\"little lever urban district\""], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "hometown", "!", "=", "value"], "question": "List the name of teachers whose hometown is not `` Little Lever Urban District '' .", "question_toks": ["List", "the", "name", "of", "teachers", "whose", "hometown", "is", "not", "``", "Little", "Lever", "Urban", "District", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 7, false], null], "\"little lever urban district\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0388", "db_id": "course_teach", "query": "select name from teacher where hometown != \"little lever urban district\"", "query_toks": ["select", "name", "from", "teacher", "where", "hometown", "!=", "\"little lever urban district\""], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "hometown", "!", "=", "value"], "question": "What are the names of the teachers whose hometown is not `` Little Lever Urban District '' ?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "whose", "hometown", "is", "not", "``", "Little", "Lever", "Urban", "District", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 7, false], null], "\"little lever urban district\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4004", "db_id": "ship_mission", "query": "select name from ship where nationality != \"united states\"", "query_toks": ["SELECT", "Name", "FROM", "ship", "WHERE", "Nationality", "!", "=", "``", "United", "States", "''"], "query_toks_no_value": ["select", "name", "from", "ship", "where", "nationality", "!", "=", "value"], "question": "List the name of ships whose nationality is not \"United States\".", "question_toks": ["List", "the", "name", "of", "ships", "whose", "nationality", "is", "not", "``", "United", "States", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4005", "db_id": "ship_mission", "query": "select name from ship where nationality != \"united states\"", "query_toks": ["SELECT", "Name", "FROM", "ship", "WHERE", "Nationality", "!", "=", "``", "United", "States", "''"], "query_toks_no_value": ["select", "name", "from", "ship", "where", "nationality", "!", "=", "value"], "question": "What are the names of the ships that are not from the United States?", "question_toks": ["What", "are", "the", "names", "of", "the", "ships", "that", "are", "not", "from", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6206", "db_id": "roller_coaster", "query": "select name from country where languages != \"german\"", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Languages", "!", "=", "``", "German", "''"], "query_toks_no_value": ["select", "name", "from", "country", "where", "languages", "!", "=", "value"], "question": "List the names of countries whose language is not \"German\".", "question_toks": ["List", "the", "names", "of", "countries", "whose", "language", "is", "not", "``", "German", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"German\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2492", "db_id": "movie_1", "query": "select director from movie where director != \"null\" group by director having count(*) = 1", "query_toks": ["SELECT", "director", "FROM", "Movie", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director", "HAVING", "count", "(", "*", ")", "=", "1"], "query_toks_no_value": ["select", "director", "from", "movie", "where", "director", "!", "=", "value", "group", "by", "director", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the names of the directors who made exactly one movie excluding director NULL?", "question_toks": ["What", "are", "the", "names", "of", "the", "directors", "who", "made", "exactly", "one", "movie", "excluding", "director", "NULL", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0681", "db_id": "poker_player", "query": "select name from people where nationality != \"russia\"", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "Nationality", "!", "=", "``", "Russia", "''"], "query_toks_no_value": ["select", "name", "from", "people", "where", "nationality", "!", "=", "value"], "question": "Show names of people whose nationality is not \"Russia\".", "question_toks": ["Show", "names", "of", "people", "whose", "nationality", "is", "not", "``", "Russia", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"Russia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1006", "db_id": "singer", "query": "select name from singer where citizenship != \"france\"", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Citizenship", "!", "=", "``", "France", "''"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "citizenship", "!", "=", "value"], "question": "List the name of singers whose citizenship is not \"France\".", "question_toks": ["List", "the", "name", "of", "singers", "whose", "citizenship", "is", "not", "``", "France", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1007", "db_id": "singer", "query": "select name from singer where citizenship != \"france\"", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Citizenship", "!", "=", "``", "France", "''"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "citizenship", "!", "=", "value"], "question": "What are the names of the singers who are not French citizens?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "who", "are", "not", "French", "citizens", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4938", "db_id": "store_product", "query": "select product from product where product != (select max_page_size from product group by max_page_size order by count(*) desc limit 1)", "query_toks": ["SELECT", "product", "FROM", "product", "WHERE", "product", "!", "=", "(", "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "product", "from", "product", "where", "product", "!", "=", "(", "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "Find the name of the products that are not using the most frequently-used max page size.", "question_toks": ["Find", "the", "name", "of", "the", "products", "that", "are", "not", "using", "the", "most", "frequently-used", "max", "page", "size", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1179", "db_id": "election_representative", "query": "select name from representative where party != \"republican\"", "query_toks": ["SELECT", "Name", "FROM", "Representative", "WHERE", "Party", "!", "=", "``", "Republican", "''"], "query_toks_no_value": ["select", "name", "from", "representative", "where", "party", "!", "=", "value"], "question": "What are the names of representatives whose party is not \"Republican\"?", "question_toks": ["What", "are", "the", "names", "of", "representatives", "whose", "party", "is", "not", "``", "Republican", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"Republican\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0054", "db_id": "farm", "query": "select census_ranking from city where status != \"village\"", "query_toks": ["SELECT", "Census_Ranking", "FROM", "city", "WHERE", "Status", "!", "=", "``", "Village", "''"], "query_toks_no_value": ["select", "census_ranking", "from", "city", "where", "status", "!", "=", "value"], "question": "Show the census ranking of cities whose status are not \"Village\".", "question_toks": ["Show", "the", "census", "ranking", "of", "cities", "whose", "status", "are", "not", "``", "Village", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Village\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0055", "db_id": "farm", "query": "select census_ranking from city where status != \"village\"", "query_toks": ["SELECT", "Census_Ranking", "FROM", "city", "WHERE", "Status", "!", "=", "``", "Village", "''"], "query_toks_no_value": ["select", "census_ranking", "from", "city", "where", "status", "!", "=", "value"], "question": "What are the census rankings of cities that do not have the status \"Village\"?", "question_toks": ["What", "are", "the", "census", "rankings", "of", "cities", "that", "do", "not", "have", "the", "status", "``", "Village", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"Village\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0826", "db_id": "orchestra", "query": "select name from conductor where nationality != 'usa'", "query_toks": ["SELECT", "Name", "FROM", "conductor", "WHERE", "Nationality", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "name", "from", "conductor", "where", "nationality", "!", "=", "value"], "question": "What are the names of conductors whose nationalities are not \"USA\"?", "question_toks": ["What", "are", "the", "names", "of", "conductors", "whose", "nationalities", "are", "not", "``", "USA", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0827", "db_id": "orchestra", "query": "select name from conductor where nationality != 'usa'", "query_toks": ["SELECT", "Name", "FROM", "conductor", "WHERE", "Nationality", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "name", "from", "conductor", "where", "nationality", "!", "=", "value"], "question": "Return the names of conductors that do not have the nationality \"USA\".", "question_toks": ["Return", "the", "names", "of", "conductors", "that", "do", "not", "have", "the", "nationality", "``", "USA", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5635", "db_id": "railway", "query": "select max(level) from manager where country != \"australia\t\"", "query_toks": ["SELECT", "max", "(", "LEVEL", ")", "FROM", "manager", "WHERE", "Country", "!", "=", "``", "Australia", "''"], "query_toks_no_value": ["select", "max", "(", "level", ")", "from", "manager", "where", "country", "!", "=", "value"], "question": "What is the maximum level of managers in countries that are not \"Australia\"?", "question_toks": ["What", "is", "the", "maximum", "level", "of", "managers", "in", "countries", "that", "are", "not", "``", "Australia", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 19, false], null]]]], "where": [[false, 7, [0, [0, 16, false], null], "\"Australia\t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0782", "db_id": "world_1", "query": "select code from country where governmentform != \"republic\" except select countrycode from countrylanguage where language = \"english\"", "query_toks": ["SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "!", "=", "``", "Republic", "''", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''"], "query_toks_no_value": ["select", "code", "from", "country", "where", "governmentform", "!", "=", "value", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value"], "question": "What are the codes of the countries that do not speak English and whose government forms are not Republic?", "question_toks": ["What", "are", "the", "codes", "of", "the", "countries", "that", "do", "not", "speak", "English", "and", "whose", "government", "forms", "are", "not", "Republic", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"Republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0783", "db_id": "world_1", "query": "select code from country where governmentform != \"republic\" except select countrycode from countrylanguage where language = \"english\"", "query_toks": ["SELECT", "Code", "FROM", "country", "WHERE", "GovernmentForm", "!", "=", "``", "Republic", "''", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''"], "query_toks_no_value": ["select", "code", "from", "country", "where", "governmentform", "!", "=", "value", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value"], "question": "Return the codes of countries that do not speak English and do not have Republics for governments.", "question_toks": ["Return", "the", "codes", "of", "countries", "that", "do", "not", "speak", "English", "and", "do", "not", "have", "Republics", "for", "governments", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"Republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1324", "db_id": "college_2", "query": "select count(*) from classroom where building != 'lamberton'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "classroom", "WHERE", "building", "!", "=", "'Lamberton", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "classroom", "where", "building", "!", "=", "value"], "question": "Count the number of rooms that are not in the Lamberton building.", "question_toks": ["Count", "the", "number", "of", "rooms", "that", "are", "not", "in", "the", "Lamberton", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 7, [0, [0, 1, false], null], "\"Lamberton\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4547", "db_id": "company_office", "query": "select name from companies where headquarters != 'usa'", "query_toks": ["SELECT", "name", "FROM", "Companies", "WHERE", "Headquarters", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "name", "from", "companies", "where", "headquarters", "!", "=", "value"], "question": "What are the names of companies whose headquarters are not \"USA\"?", "question_toks": ["What", "are", "the", "names", "of", "companies", "whose", "headquarters", "are", "not", "``", "USA", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4548", "db_id": "company_office", "query": "select name from companies where headquarters != 'usa'", "query_toks": ["SELECT", "name", "FROM", "Companies", "WHERE", "Headquarters", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "name", "from", "companies", "where", "headquarters", "!", "=", "value"], "question": "Find the names of the companies whose headquarters are not located in \"USA\".", "question_toks": ["Find", "the", "names", "of", "the", "companies", "whose", "headquarters", "are", "not", "located", "in", "``", "USA", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5732", "db_id": "dorm_1", "query": "select fname , lname from student where major != (select major from student group by major order by count(*) desc limit 1)", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "major", "!", "=", "(", "SELECT", "major", "FROM", "student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "major", "!", "=", "(", "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "Find the first and last name of students who are not in the largest major.", "question_toks": ["Find", "the", "first", "and", "last", "name", "of", "students", "who", "are", "not", "in", "the", "largest", "major", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5733", "db_id": "dorm_1", "query": "select fname , lname from student where major != (select major from student group by major order by count(*) desc limit 1)", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "major", "!", "=", "(", "SELECT", "major", "FROM", "student", "GROUP", "BY", "major", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "major", "!", "=", "(", "select", "major", "from", "student", "group", "by", "major", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What is the first and last name of the students who are not in the largest major?", "question_toks": ["What", "is", "the", "first", "and", "last", "name", "of", "the", "students", "who", "are", "not", "in", "the", "largest", "major", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0020", "db_id": "farm", "query": "select hosts from farm_competition where theme != 'aliens'", "query_toks": ["SELECT", "Hosts", "FROM", "farm_competition", "WHERE", "Theme", "!", "=", "'Aliens", "'"], "query_toks_no_value": ["select", "hosts", "from", "farm_competition", "where", "theme", "!", "=", "value"], "question": "What are the hosts of competitions whose theme is not \"Aliens\"?", "question_toks": ["What", "are", "the", "hosts", "of", "competitions", "whose", "theme", "is", "not", "``", "Aliens", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"Aliens\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0021", "db_id": "farm", "query": "select hosts from farm_competition where theme != 'aliens'", "query_toks": ["SELECT", "Hosts", "FROM", "farm_competition", "WHERE", "Theme", "!", "=", "'Aliens", "'"], "query_toks_no_value": ["select", "hosts", "from", "farm_competition", "where", "theme", "!", "=", "value"], "question": "Return the hosts of competitions for which the theme is not Aliens?", "question_toks": ["Return", "the", "hosts", "of", "competitions", "for", "which", "the", "theme", "is", "not", "Aliens", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 7, [0, [0, 19, false], null], "\"Aliens\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0248", "db_id": "musical", "query": "select distinct nominee from musical where award != \"tony award\"", "query_toks": ["SELECT", "DISTINCT", "Nominee", "FROM", "musical", "WHERE", "Award", "!", "=", "``", "Tony", "Award", "''"], "query_toks_no_value": ["select", "distinct", "nominee", "from", "musical", "where", "award", "!", "=", "value"], "question": "What are the distinct nominees of the musicals with the award that is not \"Tony Award\"?", "question_toks": ["What", "are", "the", "distinct", "nominees", "of", "the", "musicals", "with", "the", "award", "that", "is", "not", "``", "Tony", "Award", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"Tony Award\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0249", "db_id": "musical", "query": "select distinct nominee from musical where award != \"tony award\"", "query_toks": ["SELECT", "DISTINCT", "Nominee", "FROM", "musical", "WHERE", "Award", "!", "=", "``", "Tony", "Award", "''"], "query_toks_no_value": ["select", "distinct", "nominee", "from", "musical", "where", "award", "!", "=", "value"], "question": "Return the different nominees of musicals that have an award that is not the Tony Award.", "question_toks": ["Return", "the", "different", "nominees", "of", "musicals", "that", "have", "an", "award", "that", "is", "not", "the", "Tony", "Award", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"Tony Award\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4866", "db_id": "school_player", "query": "select enrollment from school where denomination != \"catholic\"", "query_toks": ["SELECT", "Enrollment", "FROM", "school", "WHERE", "Denomination", "!", "=", "``", "Catholic", "''"], "query_toks_no_value": ["select", "enrollment", "from", "school", "where", "denomination", "!", "=", "value"], "question": "What are the enrollments of schools whose denomination is not \"Catholic\"?", "question_toks": ["What", "are", "the", "enrollments", "of", "schools", "whose", "denomination", "is", "not", "``", "Catholic", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Catholic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4867", "db_id": "school_player", "query": "select enrollment from school where denomination != \"catholic\"", "query_toks": ["SELECT", "Enrollment", "FROM", "school", "WHERE", "Denomination", "!", "=", "``", "Catholic", "''"], "query_toks_no_value": ["select", "enrollment", "from", "school", "where", "denomination", "!", "=", "value"], "question": "List the enrollment for each school that does not have \"Catholic\" as denomination.", "question_toks": ["List", "the", "enrollment", "for", "each", "school", "that", "does", "not", "have", "``", "Catholic", "''", "as", "denomination", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Catholic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "NEGATION_WITH_ANY_ALL", "_NEGATION_ALL", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0983", "db_id": "university_basketball", "query": "select founded from university where affiliation != 'public' order by founded desc limit 1", "query_toks": ["SELECT", "founded", "FROM", "university", "WHERE", "affiliation", "!", "=", "'Public", "'", "ORDER", "BY", "founded", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "founded", "from", "university", "where", "affiliation", "!", "=", "value", "order", "by", "founded", "desc", "limit", "value"], "question": "Find the founded year of the newest non public school.", "question_toks": ["Find", "the", "founded", "year", "of", "the", "newest", "non", "public", "school", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 7, [0, [0, 17, false], null], "\"Public\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 16, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0984", "db_id": "university_basketball", "query": "select founded from university where affiliation != 'public' order by founded desc limit 1", "query_toks": ["SELECT", "founded", "FROM", "university", "WHERE", "affiliation", "!", "=", "'Public", "'", "ORDER", "BY", "founded", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "founded", "from", "university", "where", "affiliation", "!", "=", "value", "order", "by", "founded", "desc", "limit", "value"], "question": "What is the founded year of the non public school that was founded most recently?", "question_toks": ["What", "is", "the", "founded", "year", "of", "the", "non", "public", "school", "that", "was", "founded", "most", "recently", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 7, [0, [0, 17, false], null], "\"Public\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 16, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5054", "db_id": "device", "query": "select carrier from device where software_platform != 'android'", "query_toks": ["SELECT", "Carrier", "FROM", "device", "WHERE", "Software_Platform", "!", "=", "'Android", "'"], "query_toks_no_value": ["select", "carrier", "from", "device", "where", "software_platform", "!", "=", "value"], "question": "What are the carriers of devices whose software platforms are not \"Android\"?", "question_toks": ["What", "are", "the", "carriers", "of", "devices", "whose", "software", "platforms", "are", "not", "``", "Android", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Android\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5055", "db_id": "device", "query": "select carrier from device where software_platform != 'android'", "query_toks": ["SELECT", "Carrier", "FROM", "device", "WHERE", "Software_Platform", "!", "=", "'Android", "'"], "query_toks_no_value": ["select", "carrier", "from", "device", "where", "software_platform", "!", "=", "value"], "question": "Return the device carriers that do not have Android as their software platform.", "question_toks": ["Return", "the", "device", "carriers", "that", "do", "not", "have", "Android", "as", "their", "software", "platform", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Android\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5716", "db_id": "dorm_1", "query": "select fname , lname from student where city_code != 'hkg' order by age", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "city_code", "!", "=", "'HKG", "'", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "city_code", "!", "=", "value", "order", "by", "age"], "question": "List the first and last name of students who are not living in the city with code HKG, and sorted the results by their ages.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "students", "who", "are", "not", "living", "in", "the", "city", "with", "code", "HKG", ",", "and", "sorted", "the", "results", "by", "their", "ages", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"HKG\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4896", "db_id": "school_player", "query": "select nickname from school_details where division != \"division 1\"", "query_toks": ["SELECT", "Nickname", "FROM", "school_details", "WHERE", "Division", "!", "=", "``", "Division", "1", "''"], "query_toks_no_value": ["select", "nickname", "from", "school_details", "where", "division", "!", "=", "value"], "question": "Show the nicknames of schools that are not in division 1.", "question_toks": ["Show", "the", "nicknames", "of", "schools", "that", "are", "not", "in", "division", "1", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 16, false], null], "\"Division 1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4897", "db_id": "school_player", "query": "select nickname from school_details where division != \"division 1\"", "query_toks": ["SELECT", "Nickname", "FROM", "school_details", "WHERE", "Division", "!", "=", "``", "Division", "1", "''"], "query_toks_no_value": ["select", "nickname", "from", "school_details", "where", "division", "!", "=", "value"], "question": "What are the nicknames of schools whose division is not 1?", "question_toks": ["What", "are", "the", "nicknames", "of", "schools", "whose", "division", "is", "not", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 16, false], null], "\"Division 1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1656", "db_id": "theme_gallery", "query": "select name , year_join from artist where country != 'united states'", "query_toks": ["SELECT", "name", ",", "year_join", "FROM", "artist", "WHERE", "country", "!", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "name", ",", "year_join", "from", "artist", "where", "country", "!", "=", "value"], "question": "What are the names and year of joining for artists that do not have the country \"United States\"?", "question_toks": ["What", "are", "the", "names", "and", "year", "of", "joining", "for", "artists", "that", "do", "not", "have", "the", "country", "``", "United", "States", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1850", "db_id": "wrestler", "query": "select distinct reign from wrestler where location != \"tokyo , japan\"", "query_toks": ["SELECT", "DISTINCT", "Reign", "FROM", "wrestler", "WHERE", "LOCATION", "!", "=", "``", "Tokyo", ",", "Japan", "''"], "query_toks_no_value": ["select", "distinct", "reign", "from", "wrestler", "where", "location", "!", "=", "value"], "question": "What are the distinct reigns of wrestlers whose location is not \"Tokyo,Japan\" ?", "question_toks": ["What", "are", "the", "distinct", "reigns", "of", "wrestlers", "whose", "location", "is", "not", "``", "Tokyo", ",", "Japan", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Tokyo , Japan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1851", "db_id": "wrestler", "query": "select distinct reign from wrestler where location != \"tokyo , japan\"", "query_toks": ["SELECT", "DISTINCT", "Reign", "FROM", "wrestler", "WHERE", "LOCATION", "!", "=", "``", "Tokyo", ",", "Japan", "''"], "query_toks_no_value": ["select", "distinct", "reign", "from", "wrestler", "where", "location", "!", "=", "value"], "question": "Give the different reigns of wrestlers who are not located in Tokyo, Japan.", "question_toks": ["Give", "the", "different", "reigns", "of", "wrestlers", "who", "are", "not", "located", "in", "Tokyo", ",", "Japan", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Tokyo , Japan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6135", "db_id": "customers_and_addresses", "query": "select customer_name from customers where payment_method != 'cash'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "!", "=", "'Cash", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "where", "payment_method", "!", "=", "value"], "question": "Find the name of customers who did not pay with Cash.", "question_toks": ["Find", "the", "name", "of", "customers", "who", "did", "not", "pay", "with", "Cash", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"Cash\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6136", "db_id": "customers_and_addresses", "query": "select customer_name from customers where payment_method != 'cash'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "WHERE", "payment_method", "!", "=", "'Cash", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "where", "payment_method", "!", "=", "value"], "question": "What is the name of customers who do not use Cash as payment method.", "question_toks": ["What", "is", "the", "name", "of", "customers", "who", "do", "not", "use", "Cash", "as", "payment", "method", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 7, [0, [0, 11, false], null], "\"Cash\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0560", "db_id": "student_transcripts_tracking", "query": "select first_name from students where current_address_id != permanent_address_id", "query_toks": ["SELECT", "first_name", "FROM", "Students", "WHERE", "current_address_id", "!", "=", "permanent_address_id"], "query_toks_no_value": ["select", "first_name", "from", "students", "where", "current_address_id", "!", "=", "permanent_address_id"], "question": "What is the first name of the student whose permanent address is different from his or her current one?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "student", "whose", "permanent", "address", "is", "different", "from", "his", "or", "her", "current", "one", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 7, [0, [0, 33, false], null], [0, 34, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0497", "db_id": "battle_death", "query": "select name , result from battle where bulgarian_commander != 'boril'", "query_toks": ["SELECT", "name", ",", "RESULT", "FROM", "battle", "WHERE", "bulgarian_commander", "!", "=", "'Boril", "'"], "query_toks_no_value": ["select", "name", ",", "result", "from", "battle", "where", "bulgarian_commander", "!", "=", "value"], "question": "What are the name and results of the battles when the bulgarian commander is not 'Boril'", "question_toks": ["What", "are", "the", "name", "and", "results", "of", "the", "battles", "when", "the", "bulgarian", "commander", "is", "not", "'Boril", "'"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"Boril\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3433", "db_id": "hr_1", "query": "select salary , manager_id from employees where manager_id != \"null\"", "query_toks": ["SELECT", "salary", ",", "manager_id", "FROM", "employees", "WHERE", "manager_id", "!", "=", "``", "null", "''"], "query_toks_no_value": ["select", "salary", ",", "manager_id", "from", "employees", "where", "manager_id", "!", "=", "value"], "question": "Find the salary and manager number for those employees who is working under a manager.", "question_toks": ["Find", "the", "salary", "and", "manager", "number", "for", "those", "employees", "who", "is", "working", "under", "a", "manager", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 23, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3434", "db_id": "hr_1", "query": "select salary , manager_id from employees where manager_id != \"null\"", "query_toks": ["SELECT", "salary", ",", "manager_id", "FROM", "employees", "WHERE", "manager_id", "!", "=", "``", "null", "''"], "query_toks_no_value": ["select", "salary", ",", "manager_id", "from", "employees", "where", "manager_id", "!", "=", "value"], "question": "What are the salaries and manager ids for employees who have managers?", "question_toks": ["What", "are", "the", "salaries", "and", "manager", "ids", "for", "employees", "who", "have", "managers", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 23, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0832", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value"], "question": "What are the maximum and minimum share of performances whose type is not \"Live final\".", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "``", "Live", "final", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"Live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "WHERE_MONO", "_NEGATION_NOT_EQUAL", "MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0833", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "performance", "WHERE", "TYPE", "!", "=", "``", "Live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!", "=", "value"], "question": "Return the maximum and minimum shares for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "maximum", "and", "minimum", "shares", "for", "performances", "that", "do", "not", "have", "the", "type", "``", "Live", "final", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"Live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "WHERE_MONO", "_NEGATION_NOT_EQUAL", "MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0167", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107 and events != \"fog\" and events != \"rain\"", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "94107", "AND", "EVENTS", "!", "=", "``", "Fog", "''", "AND", "EVENTS", "!", "=", "``", "Rain", "''"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "zip_code", "=", "value", "and", "events", "!", "=", "value", "and", "events", "!", "=", "value"], "question": "In zip code 94107, on which day neither Fog nor Rain was not observed?", "question_toks": ["In", "zip", "code", "94107", ",", "on", "which", "day", "neither", "Fog", "nor", "Rain", "was", "not", "observed", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null], "and", [false, 7, [0, [0, 44, false], null], "\"Fog\"", null], "and", [false, 7, [0, [0, 44, false], null], "\"Rain\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "VALUES_WITHOUT_COLUMNS", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0168", "db_id": "bike_1", "query": "select date from weather where zip_code = 94107 and events != \"fog\" and events != \"rain\"", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "zip_code", "=", "94107", "AND", "EVENTS", "!", "=", "``", "Fog", "''", "AND", "EVENTS", "!", "=", "``", "Rain", "''"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "zip_code", "=", "value", "and", "events", "!", "=", "value", "and", "events", "!", "=", "value"], "question": "On which day has it neither been foggy nor rained in the zip code of 94107?", "question_toks": ["On", "which", "day", "has", "it", "neither", "been", "foggy", "nor", "rained", "in", "the", "zip", "code", "of", "94107", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null], "and", [false, 7, [0, [0, 44, false], null], "\"Fog\"", null], "and", [false, 7, [0, [0, 44, false], null], "\"Rain\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1722", "db_id": "riding_club", "query": "select player_name , residence from player where occupation != \"researcher\"", "query_toks": ["SELECT", "Player_name", ",", "residence", "FROM", "player", "WHERE", "Occupation", "!", "=", "``", "Researcher", "''"], "query_toks_no_value": ["select", "player_name", ",", "residence", "from", "player", "where", "occupation", "!", "=", "value"], "question": "List the name and residence for players whose occupation is not \"Researcher\".", "question_toks": ["List", "the", "name", "and", "residence", "for", "players", "whose", "occupation", "is", "not", "``", "Researcher", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"Researcher\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3345", "db_id": "sports_competition", "query": "select distinct year from competition where competition_type != \"tournament\"", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "competition", "WHERE", "Competition_type", "!", "=", "``", "Tournament", "''"], "query_toks_no_value": ["select", "distinct", "year", "from", "competition", "where", "competition_type", "!", "=", "value"], "question": "What are the distinct years in which the competitions type is not \"Tournament\"?", "question_toks": ["What", "are", "the", "distinct", "years", "in", "which", "the", "competitions", "type", "is", "not", "``", "Tournament", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 21, false], null], "\"Tournament\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3716", "db_id": "mountain_photos", "query": "select name , height , prominence from mountain where range != 'aberdare range'", "query_toks": ["SELECT", "name", ",", "height", ",", "prominence", "FROM", "mountain", "WHERE", "range", "!", "=", "'Aberdare", "Range", "'"], "query_toks_no_value": ["select", "name", ",", "height", ",", "prominence", "from", "mountain", "where", "range", "!", "=", "value"], "question": "What are the name, height and prominence of mountains which do not belong to the range 'Aberdare Range'?", "question_toks": ["What", "are", "the", "name", ",", "height", "and", "prominence", "of", "mountains", "which", "do", "not", "belong", "to", "the", "range", "'Aberdare", "Range", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Aberdare Range\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0780", "db_id": "world_1", "query": "select distinct countrycode from countrylanguage where language != \"english\"", "query_toks": ["SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "!", "=", "``", "English", "''"], "query_toks_no_value": ["select", "distinct", "countrycode", "from", "countrylanguage", "where", "language", "!", "=", "value"], "question": "What are the country codes of countries where people use languages other than English?", "question_toks": ["What", "are", "the", "country", "codes", "of", "countries", "where", "people", "use", "languages", "other", "than", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0781", "db_id": "world_1", "query": "select distinct countrycode from countrylanguage where language != \"english\"", "query_toks": ["SELECT", "DISTINCT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "!", "=", "``", "English", "''"], "query_toks_no_value": ["select", "distinct", "countrycode", "from", "countrylanguage", "where", "language", "!", "=", "value"], "question": "Give the country codes for countries in which people speak langauges that are not English.", "question_toks": ["Give", "the", "country", "codes", "for", "countries", "in", "which", "people", "speak", "langauges", "that", "are", "not", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2536", "db_id": "county_public_safety", "query": "select distinct police_force from county_public_safety where location != \"east\"", "query_toks": ["SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "!", "=", "``", "East", "''"], "query_toks_no_value": ["select", "distinct", "police_force", "from", "county_public_safety", "where", "location", "!", "=", "value"], "question": "List the distinct police forces of counties whose location is not on east side.", "question_toks": ["List", "the", "distinct", "police", "forces", "of", "counties", "whose", "location", "is", "not", "on", "east", "side", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"East\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2537", "db_id": "county_public_safety", "query": "select distinct police_force from county_public_safety where location != \"east\"", "query_toks": ["SELECT", "DISTINCT", "Police_force", "FROM", "county_public_safety", "WHERE", "LOCATION", "!", "=", "``", "East", "''"], "query_toks_no_value": ["select", "distinct", "police_force", "from", "county_public_safety", "where", "location", "!", "=", "value"], "question": "What are the different police forces of counties that are not located in the East?", "question_toks": ["What", "are", "the", "different", "police", "forces", "of", "counties", "that", "are", "not", "located", "in", "the", "East", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"East\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0639", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel where language != 'english'", "query_toks": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel", "WHERE", "LANGUAGE", "!", "=", "'English", "'"], "query_toks_no_value": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel", "where", "language", "!", "=", "value"], "question": "find the pixel aspect ratio and nation of the tv channels that do not use English.", "question_toks": ["find", "the", "pixel", "aspect", "ratio", "and", "nation", "of", "the", "tv", "channels", "that", "do", "not", "use", "English", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "VALUES_WITHOUT_COLUMNS", "_NEGATION_NOT_EQUAL", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1831", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator where connection != 'broadband'", "query_toks": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator", "WHERE", "CONNECTION", "!", "=", "'Broadband", "'"], "query_toks_no_value": ["select", "name", ",", "operating_system", "from", "web_client_accelerator", "where", "connection", "!", "=", "value"], "question": "What are the name and os of web client accelerators that do not work with only a 'Broadband' type connection?", "question_toks": ["What", "are", "the", "name", "and", "os", "of", "web", "client", "accelerators", "that", "do", "not", "work", "with", "only", "a", "'Broadband", "'", "type", "connection", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Broadband\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "NEGATION", "_REFORMULATION_ABBREVIATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4553", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies where industry != \"banking\"", "query_toks": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!", "=", "``", "Banking", "''"], "query_toks_no_value": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!", "=", "value"], "question": "What are the maximum and minimum sales of the companies whose industries are not \"Banking\".", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "whose", "industries", "are", "not", "``", "Banking", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4554", "db_id": "company_office", "query": "select max(sales_billion) , min(sales_billion) from companies where industry != \"banking\"", "query_toks": ["SELECT", "max", "(", "Sales_billion", ")", ",", "min", "(", "Sales_billion", ")", "FROM", "Companies", "WHERE", "Industry", "!", "=", "``", "Banking", "''"], "query_toks_no_value": ["select", "max", "(", "sales_billion", ")", ",", "min", "(", "sales_billion", ")", "from", "companies", "where", "industry", "!", "=", "value"], "question": "Find the maximum and minimum sales of the companies that are not in the \"Banking\" industry.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "sales", "of", "the", "companies", "that", "are", "not", "in", "the", "``", "Banking", "''", "industry", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]]]], "where": [[false, 7, [0, [0, 10, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1279", "db_id": "game_injury", "query": "select player , number_of_matches , source from injury_accident where injury != 'knee problem'", "query_toks": ["SELECT", "player", ",", "number_of_matches", ",", "SOURCE", "FROM", "injury_accident", "WHERE", "injury", "!", "=", "'Knee", "problem", "'"], "query_toks_no_value": ["select", "player", ",", "number_of_matches", ",", "source", "from", "injury_accident", "where", "injury", "!", "=", "value"], "question": "What are the player name, number of matches, and information source for players who do not suffer from injury of 'Knee problem'?", "question_toks": ["What", "are", "the", "player", "name", ",", "number", "of", "matches", ",", "and", "information", "source", "for", "players", "who", "do", "not", "suffer", "from", "injury", "of", "'Knee", "problem", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 18, false], null], "\"Knee problem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0165", "db_id": "bike_1", "query": "select count(*) from trip as t1 join station as t2 on t1.end_station_id = t2.id where t2.city != \"san francisco\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.end_station_id", "=", "T2.id", "WHERE", "T2.city", "!", "=", "``", "San", "Francisco", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id", "where", "t2", ".", "city", "!", "=", "value"], "question": "Count the number of trips that did not end in San Francisco city.", "question_toks": ["Count", "the", "number", "of", "trips", "that", "did", "not", "end", "in", "San", "Francisco", "city", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1777", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid where t1.name != 'brown'", "query_toks": ["SELECT", "sum", "(", "T2.balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "!", "=", "'Brown", "'"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "!", "=", "value"], "question": "What is the total balance of savings accounts not belonging to someone with the name Brown?", "question_toks": ["What", "is", "the", "total", "balance", "of", "savings", "accounts", "not", "belonging", "to", "someone", "with", "the", "name", "Brown", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], "\"Brown\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1748", "db_id": "gymnast", "query": "select t2.name from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t2.hometown != \"santo domingo\"", "query_toks": ["SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T2.Hometown", "!", "=", "``", "Santo", "Domingo", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t2", ".", "hometown", "!", "=", "value"], "question": "What are the names of gymnasts whose hometown is not \"Santo Domingo\"?", "question_toks": ["What", "are", "the", "names", "of", "gymnasts", "whose", "hometown", "is", "not", "``", "Santo", "Domingo", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], "\"Santo Domingo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1749", "db_id": "gymnast", "query": "select t2.name from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t2.hometown != \"santo domingo\"", "query_toks": ["SELECT", "T2.Name", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T2.Hometown", "!", "=", "``", "Santo", "Domingo", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t2", ".", "hometown", "!", "=", "value"], "question": "Return the names of gymnasts who did not grow up in Santo Domingo.", "question_toks": ["Return", "the", "names", "of", "gymnasts", "who", "did", "not", "grow", "up", "in", "Santo", "Domingo", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 13, false], null], "\"Santo Domingo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2310", "db_id": "perpetrator", "query": "select t1.name from people as t1 join perpetrator as t2 on t1.people_id = t2.people_id where t2.country != \"china\"", "query_toks": ["SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "perpetrator", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Country", "!", "=", "``", "China", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "perpetrator", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "country", "!", "=", "value"], "question": "What are the names of perpetrators whose country is not \"China\"?", "question_toks": ["What", "are", "the", "names", "of", "perpetrators", "whose", "country", "is", "not", "``", "China", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"China\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2275", "db_id": "entrepreneur", "query": "select t2.name from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id where t1.investor != \"rachel elnaugh\"", "query_toks": ["SELECT", "T2.Name", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Investor", "!", "=", "``", "Rachel", "Elnaugh", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "investor", "!", "=", "value"], "question": "What are the names of entrepreneurs whose investor is not \"Rachel Elnaugh\"?", "question_toks": ["What", "are", "the", "names", "of", "entrepreneurs", "whose", "investor", "is", "not", "``", "Rachel", "Elnaugh", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Rachel Elnaugh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2276", "db_id": "entrepreneur", "query": "select t2.name from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id where t1.investor != \"rachel elnaugh\"", "query_toks": ["SELECT", "T2.Name", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Investor", "!", "=", "``", "Rachel", "Elnaugh", "''"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "investor", "!", "=", "value"], "question": "Return the names of entrepreneurs do no not have the investor Rachel Elnaugh.", "question_toks": ["Return", "the", "names", "of", "entrepreneurs", "do", "no", "not", "have", "the", "investor", "Rachel", "Elnaugh", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 7, [0, [0, 5, false], null], "\"Rachel Elnaugh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2067", "db_id": "party_people", "query": "select t1.member_name from member as t1 join party as t2 on t1.party_id = t2.party_id where t2.party_name != \"progress party\"", "query_toks": ["SELECT", "T1.member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "WHERE", "T2.Party_name", "!", "=", "``", "Progress", "Party", "''"], "query_toks_no_value": ["select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "where", "t2", ".", "party_name", "!", "=", "value"], "question": "Show member names that are not in the Progress Party.", "question_toks": ["Show", "member", "names", "that", "are", "not", "in", "the", "Progress", "Party", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 7, [0, [0, 12, false], null], "\"Progress Party\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2068", "db_id": "party_people", "query": "select t1.member_name from member as t1 join party as t2 on t1.party_id = t2.party_id where t2.party_name != \"progress party\"", "query_toks": ["SELECT", "T1.member_name", "FROM", "Member", "AS", "T1", "JOIN", "party", "AS", "T2", "ON", "T1.party_id", "=", "T2.party_id", "WHERE", "T2.Party_name", "!", "=", "``", "Progress", "Party", "''"], "query_toks_no_value": ["select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party", "as", "t2", "on", "t1", ".", "party_id", "=", "t2", ".", "party_id", "where", "t2", ".", "party_name", "!", "=", "value"], "question": "Which member names corresponding to members who are not in the Progress Party?", "question_toks": ["Which", "member", "names", "corresponding", "to", "members", "who", "are", "not", "in", "the", "Progress", "Party", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 7, [0, [0, 12, false], null], "\"Progress Party\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4791", "db_id": "department_store", "query": "select customer_id , customer_name from customers where customer_address like \"%wy%\" and payment_method_code != \"credit card\"", "query_toks": ["SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "``", "%", "WY", "%", "''", "AND", "payment_method_code", "!", "=", "``", "Credit", "Card", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "value", "and", "payment_method_code", "!", "=", "value"], "question": "Find the id and name of customers whose address contains WY state and do not use credit card for payment.", "question_toks": ["Find", "the", "id", "and", "name", "of", "customers", "whose", "address", "contains", "WY", "state", "and", "do", "not", "use", "credit", "card", "for", "payment", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%WY%\"", null], "and", [false, 7, [0, [0, 12, false], null], "\"Credit Card\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4792", "db_id": "department_store", "query": "select customer_id , customer_name from customers where customer_address like \"%wy%\" and payment_method_code != \"credit card\"", "query_toks": ["SELECT", "customer_id", ",", "customer_name", "FROM", "customers", "WHERE", "customer_address", "LIKE", "``", "%", "WY", "%", "''", "AND", "payment_method_code", "!", "=", "``", "Credit", "Card", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_name", "from", "customers", "where", "customer_address", "like", "value", "and", "payment_method_code", "!", "=", "value"], "question": "What are the ids and names of customers with addressed that contain WY and who do not use a credit card for payment?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "customers", "with", "addressed", "that", "contain", "WY", "and", "who", "do", "not", "use", "a", "credit", "card", "for", "payment", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%WY%\"", null], "and", [false, 7, [0, [0, 12, false], null], "\"Credit Card\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4619", "db_id": "entertainment_awards", "query": "select year from festival_detail where location = 'united states' intersect select year from festival_detail where location != 'united states'", "query_toks": ["SELECT", "YEAR", "FROM", "festival_detail", "WHERE", "LOCATION", "=", "'United", "States", "'", "INTERSECT", "SELECT", "YEAR", "FROM", "festival_detail", "WHERE", "LOCATION", "!", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "year", "from", "festival_detail", "where", "location", "=", "value", "intersect", "select", "year", "from", "festival_detail", "where", "location", "!", "=", "value"], "question": "In which year are there festivals both inside the 'United States' and outside the 'United States'?", "question_toks": ["In", "which", "year", "are", "there", "festivals", "both", "inside", "the", "'United", "States", "'", "and", "outside", "the", "'United", "States", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0427", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain where state_name != \"alaska\" );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", "WHERE", "state_name", "!", "=", "``", "alaska", "''", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", "where", "state_name", "!", "=", "value", ")"], "question": "which is the highest peak not in alaska", "question_toks": ["which", "is", "the", "highest", "peak", "not", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 7, [0, [0, 25, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "HIDDEN_MAX", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4078", "db_id": "student_1", "query": "select distinct t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 3 and t2.firstname != \"covin\" and t2.lastname != \"jerome\"", "query_toks": ["SELECT", "DISTINCT", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "3", "AND", "T2.firstname", "!", "=", "``", "COVIN", "''", "AND", "T2.lastname", "!", "=", "``", "JEROME", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "and", "t2", ".", "firstname", "!", "=", "value", "and", "t2", ".", "lastname", "!", "=", "value"], "question": "Find the last names of the students in third grade that are not taught by COVIN JEROME.", "question_toks": ["Find", "the", "last", "names", "of", "the", "students", "in", "third", "grade", "that", "are", "not", "taught", "by", "COVIN", "JEROME", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 3.0, null], "and", [false, 7, [0, [0, 6, false], null], "\"COVIN\"", null], "and", [false, 7, [0, [0, 5, false], null], "\"JEROME\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4079", "db_id": "student_1", "query": "select distinct t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 3 and t2.firstname != \"covin\" and t2.lastname != \"jerome\"", "query_toks": ["SELECT", "DISTINCT", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "3", "AND", "T2.firstname", "!", "=", "``", "COVIN", "''", "AND", "T2.lastname", "!", "=", "``", "JEROME", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "and", "t2", ".", "firstname", "!", "=", "value", "and", "t2", ".", "lastname", "!", "=", "value"], "question": "Which students in third grade are not taught by teacher COVIN JEROME? Give me the last names of the students.", "question_toks": ["Which", "students", "in", "third", "grade", "are", "not", "taught", "by", "teacher", "COVIN", "JEROME", "?", "Give", "me", "the", "last", "names", "of", "the", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 3.0, null], "and", [false, 7, [0, [0, 6, false], null], "\"COVIN\"", null], "and", [false, 7, [0, [0, 5, false], null], "\"JEROME\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3502", "db_id": "hr_1", "query": "select first_name , last_name , hire_date from employees where department_id = ( select department_id from employees where first_name = \"clara\") and first_name != \"clara\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "Clara", "''", ")", "AND", "first_name", "!", "=", "``", "Clara", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", ")", "and", "first_name", "!", "=", "value"], "question": "What are the full names and hire dates for employees in the same department as someone with the first name Clara, not including Clara?", "question_toks": ["What", "are", "the", "full", "names", "and", "hire", "dates", "for", "employees", "in", "the", "same", "department", "as", "someone", "with", "the", "first", "name", "Clara", ",", "not", "including", "Clara", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 7, [0, [0, 15, false], null], "\"Clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1040", "db_id": "phone_1", "query": "select distinct t2.hardware_model_name from screen_mode as t1 join phone as t2 on t1.graphics_mode = t2.screen_mode where t2.company_name = \"nokia corporation\" and t1.type != \"text\";", "query_toks": ["SELECT", "DISTINCT", "T2.Hardware_Model_name", "FROM", "screen_mode", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Graphics_mode", "=", "T2.screen_mode", "WHERE", "t2.Company_name", "=", "``", "Nokia", "Corporation", "''", "AND", "T1.Type", "!", "=", "``", "Text", "''", ";"], "query_toks_no_value": ["select", "distinct", "t2", ".", "hardware_model_name", "from", "screen_mode", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "graphics_mode", "=", "t2", ".", "screen_mode", "where", "t2", ".", "company_name", "=", "value", "and", "t1", ".", "type", "!", "=", "value"], "question": "List the hardware model name for the phons that were produced by \"Nokia Corporation\" but whose screen mode type is not Text.", "question_toks": ["List", "the", "hardware", "model", "name", "for", "the", "phons", "that", "were", "produced", "by", "``", "Nokia", "Corporation", "''", "but", "whose", "screen", "mode", "type", "is", "not", "Text", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 21, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Nokia Corporation\"", null], "and", [false, 7, [0, [0, 14, false], null], "\"Text\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "AND_IN_SQL_BUT_NOT_IN_NL", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3327", "db_id": "college_1", "query": "select t2.emp_fname , t1.prof_office from professor as t1 join employee as t2 on t1.emp_num = t2.emp_num join department as t3 on t1.dept_code = t3.dept_code where t3.dept_name = 'history' and t1.prof_high_degree != 'ph.d.'", "query_toks": ["SELECT", "T2.emp_fname", ",", "T1.prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "AND", "T1.prof_high_degree", "!", "=", "'Ph.D", ".", "'"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "and", "t1", ".", "prof_high_degree", "!", "=", "value"], "question": "Find the first name and office of history professor who did not get a Ph.D. degree.", "question_toks": ["Find", "the", "first", "name", "and", "office", "of", "history", "professor", "who", "did", "not", "get", "a", "Ph.D.", "degree", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"History\"", null], "and", [false, 7, [0, [0, 31, false], null], "\"Ph.D.\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3328", "db_id": "college_1", "query": "select t2.emp_fname , t1.prof_office from professor as t1 join employee as t2 on t1.emp_num = t2.emp_num join department as t3 on t1.dept_code = t3.dept_code where t3.dept_name = 'history' and t1.prof_high_degree != 'ph.d.'", "query_toks": ["SELECT", "T2.emp_fname", ",", "T1.prof_office", "FROM", "professor", "AS", "T1", "JOIN", "employee", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "AND", "T1.prof_high_degree", "!", "=", "'Ph.D", ".", "'"], "query_toks_no_value": ["select", "t2", ".", "emp_fname", ",", "t1", ".", "prof_office", "from", "professor", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "and", "t1", ".", "prof_high_degree", "!", "=", "value"], "question": "What are the first names and offices of history professors who don't have Ph.D.s?", "question_toks": ["What", "are", "the", "first", "names", "and", "offices", "of", "history", "professors", "who", "do", "n't", "have", "Ph.D.s", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"History\"", null], "and", [false, 7, [0, [0, 31, false], null], "\"Ph.D.\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_EQUAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2520", "db_id": "movie_1", "query": "select rid from rating except select rid from rating where stars = 4", "query_toks": ["SELECT", "rID", "FROM", "Rating", "EXCEPT", "SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "=", "4"], "query_toks_no_value": ["select", "rid", "from", "rating", "except", "select", "rid", "from", "rating", "where", "stars", "=", "value"], "question": "find the ids of reviewers who did not give 4 star.", "question_toks": ["find", "the", "ids", "of", "reviewers", "who", "did", "not", "give", "4", "star", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0773", "db_id": "race_track", "query": "select name from track except select t2.name from race as t1 join track as t2 on t1.track_id = t2.track_id where t1.class = 'gt'", "query_toks": ["SELECT", "name", "FROM", "track", "EXCEPT", "SELECT", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "WHERE", "T1.class", "=", "'GT", "'"], "query_toks_no_value": ["select", "name", "from", "track", "except", "select", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "where", "t1", ".", "class", "=", "value"], "question": "What are the names for tracks without a race in class 'GT'.", "question_toks": ["What", "are", "the", "names", "for", "tracks", "without", "a", "race", "in", "class", "'GT", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"GT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0774", "db_id": "race_track", "query": "select name from track except select t2.name from race as t1 join track as t2 on t1.track_id = t2.track_id where t1.class = 'gt'", "query_toks": ["SELECT", "name", "FROM", "track", "EXCEPT", "SELECT", "T2.name", "FROM", "race", "AS", "T1", "JOIN", "track", "AS", "T2", "ON", "T1.track_id", "=", "T2.track_id", "WHERE", "T1.class", "=", "'GT", "'"], "query_toks_no_value": ["select", "name", "from", "track", "except", "select", "t2", ".", "name", "from", "race", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "track_id", "=", "t2", ".", "track_id", "where", "t1", ".", "class", "=", "value"], "question": "Give the names of tracks that do not have a race in the class 'GT'.", "question_toks": ["Give", "the", "names", "of", "tracks", "that", "do", "not", "have", "a", "race", "in", "the", "class", "'GT", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"GT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2723", "db_id": "storm_record", "query": "select name from storm except select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id having count(*) >= 2", "query_toks": ["SELECT", "name", "FROM", "storm", "EXCEPT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "name", "from", "storm", "except", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of storms that did not affect two or more regions?", "question_toks": ["What", "are", "the", "names", "of", "storms", "that", "did", "not", "affect", "two", "or", "more", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4152", "db_id": "film_rank", "query": "select studio from film except select studio from film where director = \"walter hill\"", "query_toks": ["SELECT", "Studio", "FROM", "film", "EXCEPT", "SELECT", "Studio", "FROM", "film", "WHERE", "Director", "=", "``", "Walter", "Hill", "''"], "query_toks_no_value": ["select", "studio", "from", "film", "except", "select", "studio", "from", "film", "where", "director", "=", "value"], "question": "Show the studios that have not produced films with director \"Walter Hill\".", "question_toks": ["Show", "the", "studios", "that", "have", "not", "produced", "films", "with", "director", "``", "Walter", "Hill", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Walter Hill\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4448", "db_id": "network_2", "query": "select name from person except select t2.name from person as t1 join personfriend as t2 on t1.name = t2.friend where t1.job = 'student'", "query_toks": ["SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.job", "=", "'student", "'"], "query_toks_no_value": ["select", "name", "from", "person", "except", "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "job", "=", "value"], "question": "Find the name of the person who has no student friends.", "question_toks": ["Find", "the", "name", "of", "the", "person", "who", "has", "no", "student", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4449", "db_id": "network_2", "query": "select name from person except select t2.name from person as t1 join personfriend as t2 on t1.name = t2.friend where t1.job = 'student'", "query_toks": ["SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "T2.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T1.job", "=", "'student", "'"], "query_toks_no_value": ["select", "name", "from", "person", "except", "select", "t2", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t1", ".", "job", "=", "value"], "question": "What are the names of the people who have no friends who are students?", "question_toks": ["What", "are", "the", "names", "of", "the", "people", "who", "have", "no", "friends", "who", "are", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1682", "db_id": "theme_gallery", "query": "select name from artist except select t2.name from exhibition as t1 join artist as t2 on t1.artist_id = t2.artist_id where t1.year = 2004", "query_toks": ["SELECT", "name", "FROM", "artist", "EXCEPT", "SELECT", "T2.name", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "WHERE", "T1.year", "=", "2004"], "query_toks_no_value": ["select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "year", "=", "value"], "question": "What are the names of artists who did not have an exhibition in 2004?", "question_toks": ["What", "are", "the", "names", "of", "artists", "who", "did", "not", "have", "an", "exhibition", "in", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 2004.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3990", "db_id": "hospital_1", "query": "select name from patient except select t1.name from patient as t1 join prescribes as t2 on t2.patient = t1.ssn join medication as t3 on t2.medication = t3.code where t3.name = 'procrastin-x'", "query_toks": ["SELECT", "name", "FROM", "patient", "EXCEPT", "SELECT", "T1.name", "FROM", "patient", "AS", "T1", "JOIN", "Prescribes", "AS", "T2", "ON", "T2.Patient", "=", "T1.SSN", "JOIN", "Medication", "AS", "T3", "ON", "T2.Medication", "=", "T3.Code", "WHERE", "T3.name", "=", "'Procrastin-X", "'"], "query_toks_no_value": ["select", "name", "from", "patient", "except", "select", "t1", ".", "name", "from", "patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t2", ".", "patient", "=", "t1", ".", "ssn", "join", "medication", "as", "t3", "on", "t2", ".", "medication", "=", "t3", ".", "code", "where", "t3", ".", "name", "=", "value"], "question": "Find the names of patients who are not using the medication of Procrastin-X.", "question_toks": ["Find", "the", "names", "of", "patients", "who", "are", "not", "using", "the", "medication", "of", "Procrastin-X", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 37, false], null], "\"Procrastin-X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3991", "db_id": "hospital_1", "query": "select name from patient except select t1.name from patient as t1 join prescribes as t2 on t2.patient = t1.ssn join medication as t3 on t2.medication = t3.code where t3.name = 'procrastin-x'", "query_toks": ["SELECT", "name", "FROM", "patient", "EXCEPT", "SELECT", "T1.name", "FROM", "patient", "AS", "T1", "JOIN", "Prescribes", "AS", "T2", "ON", "T2.Patient", "=", "T1.SSN", "JOIN", "Medication", "AS", "T3", "ON", "T2.Medication", "=", "T3.Code", "WHERE", "T3.name", "=", "'Procrastin-X", "'"], "query_toks_no_value": ["select", "name", "from", "patient", "except", "select", "t1", ".", "name", "from", "patient", "as", "t1", "join", "prescribes", "as", "t2", "on", "t2", ".", "patient", "=", "t1", ".", "ssn", "join", "medication", "as", "t3", "on", "t2", ".", "medication", "=", "t3", ".", "code", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of patients who are not taking the medication of Procrastin-X.", "question_toks": ["What", "are", "the", "names", "of", "patients", "who", "are", "not", "taking", "the", "medication", "of", "Procrastin-X", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 41, false], null], [0, 18, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 37, false], null], "\"Procrastin-X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3752", "db_id": "program_share", "query": "select name from program except select t1.name from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"morning\"", "query_toks": ["SELECT", "name", "FROM", "program", "EXCEPT", "SELECT", "t1.name", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''"], "query_toks_no_value": ["select", "name", "from", "program", "except", "select", "t1", ".", "name", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value"], "question": "Find the names of programs that are never broadcasted in the morning.", "question_toks": ["Find", "the", "names", "of", "programs", "that", "are", "never", "broadcasted", "in", "the", "morning", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Morning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3753", "db_id": "program_share", "query": "select name from program except select t1.name from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"morning\"", "query_toks": ["SELECT", "name", "FROM", "program", "EXCEPT", "SELECT", "t1.name", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''"], "query_toks_no_value": ["select", "name", "from", "program", "except", "select", "t1", ".", "name", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value"], "question": "Which programs are never broadcasted in the morning? Give me the names of the programs.", "question_toks": ["Which", "programs", "are", "never", "broadcasted", "in", "the", "morning", "?", "Give", "me", "the", "names", "of", "the", "programs", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Morning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6240", "db_id": "ship_1", "query": "select rank from captain except select rank from captain where class = 'third-rate ship of the line'", "query_toks": ["SELECT", "rank", "FROM", "captain", "EXCEPT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Third-rate", "ship", "of", "the", "line", "'"], "query_toks_no_value": ["select", "rank", "from", "captain", "except", "select", "rank", "from", "captain", "where", "class", "=", "value"], "question": "Find the captain rank that has no captain in Third-rate ship of the line class.", "question_toks": ["Find", "the", "captain", "rank", "that", "has", "no", "captain", "in", "Third-rate", "ship", "of", "the", "line", "class", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Third-rate ship of the line\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6241", "db_id": "ship_1", "query": "select rank from captain except select rank from captain where class = 'third-rate ship of the line'", "query_toks": ["SELECT", "rank", "FROM", "captain", "EXCEPT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Third-rate", "ship", "of", "the", "line", "'"], "query_toks_no_value": ["select", "rank", "from", "captain", "except", "select", "rank", "from", "captain", "where", "class", "=", "value"], "question": "What are the ranks of captains that have no captain that are in the Third-rate ship of the line class?", "question_toks": ["What", "are", "the", "ranks", "of", "captains", "that", "have", "no", "captain", "that", "are", "in", "the", "Third-rate", "ship", "of", "the", "line", "class", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Third-rate ship of the line\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1443", "db_id": "college_2", "query": "select id from instructor except select id from teaches", "query_toks": ["SELECT", "id", "FROM", "instructor", "EXCEPT", "SELECT", "id", "FROM", "teaches"], "query_toks_no_value": ["select", "id", "from", "instructor", "except", "select", "id", "from", "teaches"], "question": "What are the ids of instructors who didnt' teach?", "question_toks": ["What", "are", "the", "ids", "of", "instructors", "who", "didnt", "'", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6035", "db_id": "game_1", "query": "select stuid from student except select stuid from plays_games", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Plays_games"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "plays_games"], "question": "Show ids of students who don't play video game.", "question_toks": ["Show", "ids", "of", "students", "who", "do", "n't", "play", "video", "game", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1921", "db_id": "protein_institute", "query": "select name from building except select t1.name from building as t1 join institution as t2 on t1.building_id = t2.building_id where t2.founded = 2003", "query_toks": ["SELECT", "name", "FROM", "building", "EXCEPT", "SELECT", "T1.name", "FROM", "building", "AS", "T1", "JOIN", "institution", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T2.founded", "=", "2003"], "query_toks_no_value": ["select", "name", "from", "building", "except", "select", "t1", ".", "name", "from", "building", "as", "t1", "join", "institution", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t2", ".", "founded", "=", "value"], "question": "Show the names of buildings except for those having an institution founded in 2003.", "question_toks": ["Show", "the", "names", "of", "buildings", "except", "for", "those", "having", "an", "institution", "founded", "in", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5760", "db_id": "dorm_1", "query": "select dorm_name from dorm except select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'tv lounge'", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value"], "question": "Find the name of dorms that do not have amenity TV Lounge.", "question_toks": ["Find", "the", "name", "of", "dorms", "that", "do", "not", "have", "amenity", "TV", "Lounge", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5761", "db_id": "dorm_1", "query": "select dorm_name from dorm except select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'tv lounge'", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value"], "question": "What are the names of the dorm that does not have a TV Lounge?", "question_toks": ["What", "are", "the", "names", "of", "the", "dorm", "that", "does", "not", "have", "a", "TV", "Lounge", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0895", "db_id": "network_1", "query": "select id from highschooler except select student_id from friend", "query_toks": ["SELECT", "id", "FROM", "Highschooler", "EXCEPT", "SELECT", "student_id", "FROM", "Friend"], "query_toks_no_value": ["select", "id", "from", "highschooler", "except", "select", "student_id", "from", "friend"], "question": "What are the ids of high school students who do not have friends?", "question_toks": ["What", "are", "the", "ids", "of", "high", "school", "students", "who", "do", "not", "have", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6511", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "Find the names of scientists who are not working on the project with the highest hours.", "question_toks": ["Find", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "highest", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "HIDDEN_MAX", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6512", "db_id": "scientist_1", "query": "select name from scientists except select t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "name", "FROM", "scientists", "EXCEPT", "SELECT", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "except", "select", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "What are the names of scientists who are not working on the project with the most hours?", "question_toks": ["What", "are", "the", "names", "of", "scientists", "who", "are", "not", "working", "on", "the", "project", "with", "the", "most", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "HIDDEN_MAX", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1419", "db_id": "college_2", "query": "select course_id from course except select course_id from prereq", "query_toks": ["SELECT", "course_id", "FROM", "course", "EXCEPT", "SELECT", "course_id", "FROM", "prereq"], "query_toks_no_value": ["select", "course_id", "from", "course", "except", "select", "course_id", "from", "prereq"], "question": "What are the ids of courses without prerequisites?", "question_toks": ["What", "are", "the", "ids", "of", "courses", "without", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4673", "db_id": "college_3", "query": "select dname from department except select t1.dname from department as t1 join minor_in as t2 on t1.dno = t2.dno", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "EXCEPT", "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MINOR_IN", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO"], "query_toks_no_value": ["select", "dname", "from", "department", "except", "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "minor_in", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno"], "question": "Find the name of the department that has no students minored in?", "question_toks": ["Find", "the", "name", "of", "the", "department", "that", "has", "no", "students", "minored", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4674", "db_id": "college_3", "query": "select dname from department except select t1.dname from department as t1 join minor_in as t2 on t1.dno = t2.dno", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "EXCEPT", "SELECT", "T1.DName", "FROM", "DEPARTMENT", "AS", "T1", "JOIN", "MINOR_IN", "AS", "T2", "ON", "T1.DNO", "=", "T2.DNO"], "query_toks_no_value": ["select", "dname", "from", "department", "except", "select", "t1", ".", "dname", "from", "department", "as", "t1", "join", "minor_in", "as", "t2", "on", "t1", ".", "dno", "=", "t2", ".", "dno"], "question": "What is the name of the department htat has no students minoring in it?", "question_toks": ["What", "is", "the", "name", "of", "the", "department", "htat", "has", "no", "students", "minoring", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 34, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0858", "db_id": "chinook_1", "query": "select lastname from customer except select t1.lastname from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t2.total > 20", "query_toks": ["SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T2.total", ">", "20"], "query_toks_no_value": ["select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "total", ">", "value"], "question": "What are the last names of customers without invoice totals exceeding 20?", "question_toks": ["What", "are", "the", "last", "names", "of", "customers", "without", "invoice", "totals", "exceeding", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 44, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "AGGREGATION_IN_COLUMN", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0897", "db_id": "network_1", "query": "select name from highschooler except select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", "query_toks": ["SELECT", "name", "FROM", "Highschooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id"], "query_toks_no_value": ["select", "name", "from", "highschooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id"], "question": "What are the names of students who have no friends?", "question_toks": ["What", "are", "the", "names", "of", "students", "who", "have", "no", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3038", "db_id": "loan_1", "query": "select cust_name from customer except select cust_name from customer where acc_type = 'saving'", "query_toks": ["SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'saving", "'"], "query_toks_no_value": ["select", "cust_name", "from", "customer", "except", "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value"], "question": "Find the name of customers who do not have an saving account.", "question_toks": ["Find", "the", "name", "of", "customers", "who", "do", "not", "have", "an", "saving", "account", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"saving\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3039", "db_id": "loan_1", "query": "select cust_name from customer except select cust_name from customer where acc_type = 'saving'", "query_toks": ["SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "cust_name", "FROM", "customer", "WHERE", "acc_type", "=", "'saving", "'"], "query_toks_no_value": ["select", "cust_name", "from", "customer", "except", "select", "cust_name", "from", "customer", "where", "acc_type", "=", "value"], "question": "What are the names of customers who do not have saving accounts?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "do", "not", "have", "saving", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"saving\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3040", "db_id": "loan_1", "query": "select cust_name from customer except select t1.cust_name from customer as t1 join loan as t2 on t1.cust_id = t2.cust_id where t2.loan_type = 'mortgages'", "query_toks": ["SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "T2.loan_type", "=", "'Mortgages", "'"], "query_toks_no_value": ["select", "cust_name", "from", "customer", "except", "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "t2", ".", "loan_type", "=", "value"], "question": "Find the name of customers who do not have a loan with a type of Mortgages.", "question_toks": ["Find", "the", "name", "of", "customers", "who", "do", "not", "have", "a", "loan", "with", "a", "type", "of", "Mortgages", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Mortgages\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3041", "db_id": "loan_1", "query": "select cust_name from customer except select t1.cust_name from customer as t1 join loan as t2 on t1.cust_id = t2.cust_id where t2.loan_type = 'mortgages'", "query_toks": ["SELECT", "cust_name", "FROM", "customer", "EXCEPT", "SELECT", "T1.cust_name", "FROM", "customer", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.cust_id", "=", "T2.cust_id", "WHERE", "T2.loan_type", "=", "'Mortgages", "'"], "query_toks_no_value": ["select", "cust_name", "from", "customer", "except", "select", "t1", ".", "cust_name", "from", "customer", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "cust_id", "=", "t2", ".", "cust_id", "where", "t2", ".", "loan_type", "=", "value"], "question": "What are the names of customers who have not taken a Mortage loan?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "have", "not", "taken", "a", "Mortage", "loan", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Mortgages\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5318", "db_id": "manufactory_1", "query": "select name from manufacturers except select t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code where t1.name = 'dvd drive'", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "EXCEPT", "SELECT", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T1.name", "=", "'DVD", "drive", "'"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "except", "select", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t1", ".", "name", "=", "value"], "question": "Find the name of companies that do not make DVD drive.", "question_toks": ["Find", "the", "name", "of", "companies", "that", "do", "not", "make", "DVD", "drive", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"DVD drive\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5319", "db_id": "manufactory_1", "query": "select name from manufacturers except select t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code where t1.name = 'dvd drive'", "query_toks": ["SELECT", "name", "FROM", "manufacturers", "EXCEPT", "SELECT", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T1.name", "=", "'DVD", "drive", "'"], "query_toks_no_value": ["select", "name", "from", "manufacturers", "except", "select", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t1", ".", "name", "=", "value"], "question": "What are the names of companies that do not make DVD drives?", "question_toks": ["What", "are", "the", "names", "of", "companies", "that", "do", "not", "make", "DVD", "drives", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"DVD drive\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0636", "db_id": "tvshow", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the countries that are not playing cartoons written by Todd Casey?", "question_toks": ["What", "are", "the", "countries", "that", "are", "not", "playing", "cartoons", "written", "by", "Todd", "Casey", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"Todd Casey\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6981", "db_id": "culture_company", "query": "select publisher from book_club except select publisher from book_club where year = 1989", "query_toks": ["SELECT", "publisher", "FROM", "book_club", "EXCEPT", "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1989"], "query_toks_no_value": ["select", "publisher", "from", "book_club", "except", "select", "publisher", "from", "book_club", "where", "year", "=", "value"], "question": "Which publishers did not publish a book in 1989?", "question_toks": ["Which", "publishers", "did", "not", "publish", "a", "book", "in", "1989", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2022", "db_id": "gas_company", "query": "select headquarters from company except select headquarters from company where main_industry = 'banking'", "query_toks": ["SELECT", "headquarters", "FROM", "company", "EXCEPT", "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'"], "query_toks_no_value": ["select", "headquarters", "from", "company", "except", "select", "headquarters", "from", "company", "where", "main_industry", "=", "value"], "question": "What are the headquarters without companies that are in the banking industry?", "question_toks": ["What", "are", "the", "headquarters", "without", "companies", "that", "are", "in", "the", "banking", "industry", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0173", "db_id": "car_1", "query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country;", "query_toks": ["SELECT", "CountryName", "FROM", "countries", "EXCEPT", "SELECT", "T1.CountryName", "FROM", "countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.countryId", "=", "T2.Country", ";"], "query_toks_no_value": ["select", "countryname", "from", "countries", "except", "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country"], "question": "What are the name of the countries where there is not a single car maker?", "question_toks": ["What", "are", "the", "name", "of", "the", "countries", "where", "there", "is", "not", "a", "single", "car", "maker", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0174", "db_id": "car_1", "query": "select countryname from countries except select t1.countryname from countries as t1 join car_makers as t2 on t1.countryid = t2.country;", "query_toks": ["SELECT", "CountryName", "FROM", "countries", "EXCEPT", "SELECT", "T1.CountryName", "FROM", "countries", "AS", "T1", "JOIN", "CAR_MAKERS", "AS", "T2", "ON", "T1.countryId", "=", "T2.Country", ";"], "query_toks_no_value": ["select", "countryname", "from", "countries", "except", "select", "t1", ".", "countryname", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country"], "question": "What are the names of the countries with no car makers?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "with", "no", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6457", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents except select document_id from documents_with_expenses", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses"], "query_toks_no_value": ["select", "document_id", "from", "documents", "except", "select", "document_id", "from", "documents_with_expenses"], "question": "What are the ids of documents which don't have expense budgets?", "question_toks": ["What", "are", "the", "ids", "of", "documents", "which", "do", "n't", "have", "expense", "budgets", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6458", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents except select document_id from documents_with_expenses", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses"], "query_toks_no_value": ["select", "document_id", "from", "documents", "except", "select", "document_id", "from", "documents_with_expenses"], "question": "Return the ids of documents that do not have expenses.", "question_toks": ["Return", "the", "ids", "of", "documents", "that", "do", "not", "have", "expenses", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1563", "db_id": "customers_and_invoices", "query": "select customer_id from customers except select customer_id from accounts", "query_toks": ["SELECT", "customer_id", "FROM", "Customers", "EXCEPT", "SELECT", "customer_id", "FROM", "Accounts"], "query_toks_no_value": ["select", "customer_id", "from", "customers", "except", "select", "customer_id", "from", "accounts"], "question": "Show customer ids who don't have an account.", "question_toks": ["Show", "customer", "ids", "who", "do", "n't", "have", "an", "account", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1564", "db_id": "customers_and_invoices", "query": "select customer_id from customers except select customer_id from accounts", "query_toks": ["SELECT", "customer_id", "FROM", "Customers", "EXCEPT", "SELECT", "customer_id", "FROM", "Accounts"], "query_toks_no_value": ["select", "customer_id", "from", "customers", "except", "select", "customer_id", "from", "accounts"], "question": "What are the customer ids for customers who do not have an account?", "question_toks": ["What", "are", "the", "customer", "ids", "for", "customers", "who", "do", "not", "have", "an", "account", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1614", "db_id": "customers_and_invoices", "query": "select product_name from products except select t1.product_name from products as t1 join order_items as t2 on t1.product_id = t2.product_id", "query_toks": ["SELECT", "product_name", "FROM", "Products", "EXCEPT", "SELECT", "T1.product_name", "FROM", "Products", "AS", "T1", "JOIN", "Order_items", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id"], "query_toks_no_value": ["select", "product_name", "from", "products", "except", "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id"], "question": "What are the names of products that have never been ordered?", "question_toks": ["What", "are", "the", "names", "of", "products", "that", "have", "never", "been", "ordered", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 28, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6328", "db_id": "e_government", "query": "select service_name from services except select t1.service_name from services as t1 join party_services as t2 on t1.service_id = t2.service_id", "query_toks": ["SELECT", "service_name", "FROM", "services", "EXCEPT", "SELECT", "t1.service_name", "FROM", "services", "AS", "t1", "JOIN", "party_services", "AS", "t2", "ON", "t1.service_id", "=", "t2.service_id"], "query_toks_no_value": ["select", "service_name", "from", "services", "except", "select", "t1", ".", "service_name", "from", "services", "as", "t1", "join", "party_services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id"], "question": "Find name of the services that has never been used.", "question_toks": ["Find", "name", "of", "the", "services", "that", "has", "never", "been", "used", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 48, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6329", "db_id": "e_government", "query": "select service_name from services except select t1.service_name from services as t1 join party_services as t2 on t1.service_id = t2.service_id", "query_toks": ["SELECT", "service_name", "FROM", "services", "EXCEPT", "SELECT", "t1.service_name", "FROM", "services", "AS", "t1", "JOIN", "party_services", "AS", "t2", "ON", "t1.service_id", "=", "t2.service_id"], "query_toks_no_value": ["select", "service_name", "from", "services", "except", "select", "t1", ".", "service_name", "from", "services", "as", "t1", "join", "party_services", "as", "t2", "on", "t1", ".", "service_id", "=", "t2", ".", "service_id"], "question": "What are the names of the services that have never been used?", "question_toks": ["What", "are", "the", "names", "of", "the", "services", "that", "have", "never", "been", "used", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 48, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2848", "db_id": "customer_deliveries", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_addresses as t2 on t1.customer_id = t2.customer_id join addresses as t3 on t2.address_id = t3.address_id where t3.state_province_county = 'california'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", "WHERE", "t3.state_province_county", "=", "'California", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", "where", "t3", ".", "state_province_county", "=", "value"], "question": "Find the names of customers who are not living in the state of California.", "question_toks": ["Find", "the", "names", "of", "customers", "who", "are", "not", "living", "in", "the", "state", "of", "California", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"California\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6137", "db_id": "customers_and_addresses", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id join products as t4 on t3.product_id = t4.product_id where t4.product_details = 'latte'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Latte", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value"], "question": "Find the names of customers who never ordered product Latte.", "question_toks": ["Find", "the", "names", "of", "customers", "who", "never", "ordered", "product", "Latte", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null], "and", [false, 2, [0, [0, 31, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Latte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6138", "db_id": "customers_and_addresses", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id join products as t4 on t3.product_id = t4.product_id where t4.product_details = 'latte'", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "JOIN", "products", "AS", "t4", "ON", "t3.product_id", "=", "t4.product_id", "WHERE", "t4.product_details", "=", "'Latte", "'"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "join", "products", "as", "t4", "on", "t3", ".", "product_id", "=", "t4", ".", "product_id", "where", "t4", ".", "product_details", "=", "value"], "question": "What are names of customers who never ordered product Latte.", "question_toks": ["What", "are", "names", "of", "customers", "who", "never", "ordered", "product", "Latte", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null], "and", [false, 2, [0, [0, 31, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Latte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6139", "db_id": "customers_and_addresses", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Find the names of customers who never placed an order.", "question_toks": ["Find", "the", "names", "of", "customers", "who", "never", "placed", "an", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6140", "db_id": "customers_and_addresses", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "What are the names of customers who never made an order.", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "never", "made", "an", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0919", "db_id": "insurance_fnol", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Find the names of users who do not have a first notification of loss record.", "question_toks": ["Find", "the", "names", "of", "users", "who", "do", "not", "have", "a", "first", "notification", "of", "loss", "record", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0920", "db_id": "insurance_fnol", "query": "select customer_name from customers except select t1.customer_name from customers as t1 join first_notification_of_loss as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_name", "FROM", "customers", "EXCEPT", "SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "first_notification_of_loss", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_name", "from", "customers", "except", "select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "first_notification_of_loss", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Which customers do not have a first notification of loss record? Give me the customer names.", "question_toks": ["Which", "customers", "do", "not", "have", "a", "first", "notification", "of", "loss", "record", "?", "Give", "me", "the", "customer", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1769", "db_id": "gymnast", "query": "select distinct hometown from people except select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id", "query_toks": ["SELECT", "DISTINCT", "Hometown", "FROM", "people", "EXCEPT", "SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID"], "query_toks_no_value": ["select", "distinct", "hometown", "from", "people", "except", "select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id"], "question": "From which hometowns did no gymnasts come from?", "question_toks": ["From", "which", "hometowns", "did", "no", "gymnasts", "come", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1168", "db_id": "body_builder", "query": "select name , birth_place from people except select t1.name , t1.birth_place from people as t1 join body_builder as t2 on t1.people_id = t2.people_id", "query_toks": ["SELECT", "Name", ",", "birth_place", "FROM", "people", "EXCEPT", "SELECT", "T1.Name", ",", "T1.birth_place", "FROM", "people", "AS", "T1", "JOIN", "body_builder", "AS", "T2", "ON", "T1.people_id", "=", "T2.people_id"], "query_toks_no_value": ["select", "name", ",", "birth_place", "from", "people", "except", "select", "t1", ".", "name", ",", "t1", ".", "birth_place", "from", "people", "as", "t1", "join", "body_builder", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id"], "question": "List the names and origins of people who are not body builders.", "question_toks": ["List", "the", "names", "and", "origins", "of", "people", "who", "are", "not", "body", "builders", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1523", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers except select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_details", "FROM", "customers", "EXCEPT", "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "except", "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Find the names of customers who have no policies associated.", "question_toks": ["Find", "the", "names", "of", "customers", "who", "have", "no", "policies", "associated", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0969", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine except select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id join enzyme as t3 on t3.id = t2.enzyme_id where t3.product = 'protoporphyrinogen ix'", "query_toks": ["SELECT", "name", ",", "trade_name", "FROM", "medicine", "EXCEPT", "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "JOIN", "enzyme", "AS", "T3", "ON", "T3.id", "=", "T2.enzyme_id", "WHERE", "T3.product", "=", "'Protoporphyrinogen", "IX", "'"], "query_toks_no_value": ["select", "name", ",", "trade_name", "from", "medicine", "except", "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "join", "enzyme", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "enzyme_id", "where", "t3", ".", "product", "=", "value"], "question": "Show the medicine names and trade names that cannot interact with the enzyme with product 'Heme'.", "question_toks": ["Show", "the", "medicine", "names", "and", "trade", "names", "that", "can", "not", "interact", "with", "the", "enzyme", "with", "product", "'Heme", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 5, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Protoporphyrinogen IX\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0970", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine except select t1.name , t1.trade_name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id join enzyme as t3 on t3.id = t2.enzyme_id where t3.product = 'protoporphyrinogen ix'", "query_toks": ["SELECT", "name", ",", "trade_name", "FROM", "medicine", "EXCEPT", "SELECT", "T1.name", ",", "T1.trade_name", "FROM", "medicine", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T2.medicine_id", "=", "T1.id", "JOIN", "enzyme", "AS", "T3", "ON", "T3.id", "=", "T2.enzyme_id", "WHERE", "T3.product", "=", "'Protoporphyrinogen", "IX", "'"], "query_toks_no_value": ["select", "name", ",", "trade_name", "from", "medicine", "except", "select", "t1", ".", "name", ",", "t1", ".", "trade_name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "join", "enzyme", "as", "t3", "on", "t3", ".", "id", "=", "t2", ".", "enzyme_id", "where", "t3", ".", "product", "=", "value"], "question": "What are the medicine and trade names that cannot interact with the enzyme with the product 'Heme'?", "question_toks": ["What", "are", "the", "medicine", "and", "trade", "names", "that", "can", "not", "interact", "with", "the", "enzyme", "with", "the", "product", "'Heme", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 5, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Protoporphyrinogen IX\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3725", "db_id": "mountain_photos", "query": "select name , prominence from mountain except select t1.name , t1.prominence from mountain as t1 join photos as t2 on t1.id = t2.mountain_id join camera_lens as t3 on t2.camera_lens_id = t3.id where t3.brand = 'sigma'", "query_toks": ["SELECT", "name", ",", "prominence", "FROM", "mountain", "EXCEPT", "SELECT", "T1.name", ",", "T1.prominence", "FROM", "mountain", "AS", "T1", "JOIN", "photos", "AS", "T2", "ON", "T1.id", "=", "T2.mountain_id", "JOIN", "camera_lens", "AS", "T3", "ON", "T2.camera_lens_id", "=", "T3.id", "WHERE", "T3.brand", "=", "'Sigma", "'"], "query_toks_no_value": ["select", "name", ",", "prominence", "from", "mountain", "except", "select", "t1", ".", "name", ",", "t1", ".", "prominence", "from", "mountain", "as", "t1", "join", "photos", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "mountain_id", "join", "camera_lens", "as", "t3", "on", "t2", ".", "camera_lens_id", "=", "t3", ".", "id", "where", "t3", ".", "brand", "=", "value"], "question": "Show the name and prominence of the mountains whose picture is not taken by a lens of brand 'Sigma'.", "question_toks": ["Show", "the", "name", "and", "prominence", "of", "the", "mountains", "whose", "picture", "is", "not", "taken", "by", "a", "lens", "of", "brand", "'Sigma", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Sigma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0778", "db_id": "world_1", "query": "select countrycode from countrylanguage except select countrycode from countrylanguage where language = \"english\"", "query_toks": ["SELECT", "CountryCode", "FROM", "countrylanguage", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''"], "query_toks_no_value": ["select", "countrycode", "from", "countrylanguage", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value"], "question": "What are the country codes for countries that do not speak English?", "question_toks": ["What", "are", "the", "country", "codes", "for", "countries", "that", "do", "not", "speak", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0779", "db_id": "world_1", "query": "select countrycode from countrylanguage except select countrycode from countrylanguage where language = \"english\"", "query_toks": ["SELECT", "CountryCode", "FROM", "countrylanguage", "EXCEPT", "SELECT", "CountryCode", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "English", "''"], "query_toks_no_value": ["select", "countrycode", "from", "countrylanguage", "except", "select", "countrycode", "from", "countrylanguage", "where", "language", "=", "value"], "question": "Return the country codes for countries that do not speak English.", "question_toks": ["Return", "the", "country", "codes", "for", "countries", "that", "do", "not", "speak", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4854", "db_id": "local_govt_and_lot", "query": "select organization_id from organizations except select parent_organization_id from organizations", "query_toks": ["SELECT", "organization_id", "FROM", "organizations", "EXCEPT", "SELECT", "parent_organization_id", "FROM", "organizations"], "query_toks_no_value": ["select", "organization_id", "from", "organizations", "except", "select", "parent_organization_id", "from", "organizations"], "question": "Which organizations are not a parent organization of others? List the organization id.", "question_toks": ["Which", "organizations", "are", "not", "a", "parent", "organization", "of", "others", "?", "List", "the", "organization", "id", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5032", "db_id": "soccer_2", "query": "select cname from tryout where ppos = 'mid' except select cname from tryout where ppos = 'goalie'", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "ppos", "=", "value", "except", "select", "cname", "from", "tryout", "where", "ppos", "=", "value"], "question": "Find the names of schools that have some players in the mid position but not in the goalie position.", "question_toks": ["Find", "the", "names", "of", "schools", "that", "have", "some", "players", "in", "the", "mid", "position", "but", "not", "in", "the", "goalie", "position", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5033", "db_id": "soccer_2", "query": "select cname from tryout where ppos = 'mid' except select cname from tryout where ppos = 'goalie'", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "ppos", "=", "value", "except", "select", "cname", "from", "tryout", "where", "ppos", "=", "value"], "question": "What are the names of the schools with some players in the mid position but no goalies?", "question_toks": ["What", "are", "the", "names", "of", "the", "schools", "with", "some", "players", "in", "the", "mid", "position", "but", "no", "goalies", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3983", "db_id": "hospital_1", "query": "select name from procedures where cost > 1000 except select t3.name from physician as t1 join trained_in as t2 on t1.employeeid = t2.physician join procedures as t3 on t3.code = t2.treatment where t1.name = \"john wen\"", "query_toks": ["SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000", "EXCEPT", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''"], "query_toks_no_value": ["select", "name", "from", "procedures", "where", "cost", ">", "value", "except", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value"], "question": "Among the procedures that cost more than 1000, which were not specialized in by physician John Wen?", "question_toks": ["Among", "the", "procedures", "that", "cost", "more", "than", "1000", ",", "which", "were", "not", "specialized", "in", "by", "physician", "John", "Wen", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"John Wen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6593", "db_id": "wine_1", "query": "select appelation from wine where year > 2008 except select appelation from appellations where area = \"central coast\"", "query_toks": ["SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "2008", "EXCEPT", "SELECT", "Appelation", "FROM", "APPELLATIONS", "WHERE", "Area", "=", "``", "Central", "Coast", "''"], "query_toks_no_value": ["select", "appelation", "from", "wine", "where", "year", ">", "value", "except", "select", "appelation", "from", "appellations", "where", "area", "=", "value"], "question": "Find the appelations that produce wines after the year of 2008 but not in Central Coast area.", "question_toks": ["Find", "the", "appelations", "that", "produce", "wines", "after", "the", "year", "of", "2008", "but", "not", "in", "Central", "Coast", "area", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Central Coast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6594", "db_id": "wine_1", "query": "select appelation from wine where year > 2008 except select appelation from appellations where area = \"central coast\"", "query_toks": ["SELECT", "Appelation", "FROM", "WINE", "WHERE", "YEAR", ">", "2008", "EXCEPT", "SELECT", "Appelation", "FROM", "APPELLATIONS", "WHERE", "Area", "=", "``", "Central", "Coast", "''"], "query_toks_no_value": ["select", "appelation", "from", "wine", "where", "year", ">", "value", "except", "select", "appelation", "from", "appellations", "where", "area", "=", "value"], "question": "What are the appelations for wines produced after 2008 but not in the Central Coast area?", "question_toks": ["What", "are", "the", "appelations", "for", "wines", "produced", "after", "2008", "but", "not", "in", "the", "Central", "Coast", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Central Coast\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0207", "db_id": "bike_1", "query": "select name from station where city = \"palo alto\" except select end_station_name from trip group by end_station_name having count(*) > 100", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", "EXCEPT", "SELECT", "end_station_name", "FROM", "trip", "GROUP", "BY", "end_station_name", "HAVING", "count", "(", "*", ")", ">", "100"], "query_toks_no_value": ["select", "name", "from", "station", "where", "city", "=", "value", "except", "select", "end_station_name", "from", "trip", "group", "by", "end_station_name", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the names of stations that are located in Palo Alto city but have never been the ending point of trips more than 100 times?", "question_toks": ["What", "are", "the", "names", "of", "stations", "that", "are", "located", "in", "Palo", "Alto", "city", "but", "have", "never", "been", "the", "ending", "point", "of", "trips", "more", "than", "100", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 100.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0208", "db_id": "bike_1", "query": "select name from station where city = \"palo alto\" except select end_station_name from trip group by end_station_name having count(*) > 100", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", "EXCEPT", "SELECT", "end_station_name", "FROM", "trip", "GROUP", "BY", "end_station_name", "HAVING", "count", "(", "*", ")", ">", "100"], "query_toks_no_value": ["select", "name", "from", "station", "where", "city", "=", "value", "except", "select", "end_station_name", "from", "trip", "group", "by", "end_station_name", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the names of the stations that are located in Palo Alto but have never been the ending point of the trips", "question_toks": ["What", "are", "the", "names", "of", "the", "stations", "that", "are", "located", "in", "Palo", "Alto", "but", "have", "never", "been", "the", "ending", "point", "of", "the", "trips"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 100.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6797", "db_id": "activity_1", "query": "select lname from faculty where rank = 'professor' except select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = 'canoeing' or t3.activity_name = 'kayaking'", "query_toks": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "'Professor", "'", "EXCEPT", "SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'"], "query_toks_no_value": ["select", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value"], "question": "Find the first names of professors who are not playing Canoeing or Kayaking.", "question_toks": ["Find", "the", "first", "names", "of", "professors", "who", "are", "not", "playing", "Canoeing", "or", "Kayaking", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Canoeing\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "OR_IN_NL", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6798", "db_id": "activity_1", "query": "select lname from faculty where rank = 'professor' except select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = 'canoeing' or t3.activity_name = 'kayaking'", "query_toks": ["SELECT", "lname", "FROM", "faculty", "WHERE", "rank", "=", "'Professor", "'", "EXCEPT", "SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'"], "query_toks_no_value": ["select", "lname", "from", "faculty", "where", "rank", "=", "value", "except", "select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value"], "question": "What are the first names of the professors who do not play Canoeing or Kayaking as activities?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "who", "do", "not", "play", "Canoeing", "or", "Kayaking", "as", "activities", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Canoeing\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "OR_IN_NL", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0505", "db_id": "battle_death", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "Show names, results and bulgarian commanders of the battles with no ships lost in the 'English Channel'.", "question_toks": ["Show", "names", ",", "results", "and", "bulgarian", "commanders", "of", "the", "battles", "with", "no", "ships", "lost", "in", "the", "'English", "Channel", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"English Channel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0727", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers except select t1.customer_id , t2.customer_first_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id where card_type_code = \"credit\"", "query_toks": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_id", ",", "T2.customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "card_type_code", "=", "``", "Credit", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "value"], "question": "Show the customer ids and firstname without a credit card.", "question_toks": ["Show", "the", "customer", "ids", "and", "firstname", "without", "a", "credit", "card", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Credit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "VALUES_WITHOUT_COLUMNS", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0728", "db_id": "customers_card_transactions", "query": "select customer_id , customer_first_name from customers except select t1.customer_id , t2.customer_first_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id where card_type_code = \"credit\"", "query_toks": ["SELECT", "customer_id", ",", "customer_first_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_id", ",", "T2.customer_first_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "card_type_code", "=", "``", "Credit", "''"], "query_toks_no_value": ["select", "customer_id", ",", "customer_first_name", "from", "customers", "except", "select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "card_type_code", "=", "value"], "question": "What are the ids and first names of customers who do not hold a credit card?", "question_toks": ["What", "are", "the", "ids", "and", "first", "names", "of", "customers", "who", "do", "not", "hold", "a", "credit", "card", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Credit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1364", "db_id": "college_2", "query": "select title from course where dept_name = 'statistics' except select title from course where dept_name = 'psychology'", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "EXCEPT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'"], "query_toks_no_value": ["select", "title", "from", "course", "where", "dept_name", "=", "value", "except", "select", "title", "from", "course", "where", "dept_name", "=", "value"], "question": "Find the title of course that is provided by Statistics but not Psychology departments.", "question_toks": ["Find", "the", "title", "of", "course", "that", "is", "provided", "by", "Statistics", "but", "not", "Psychology", "departments", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Statistics\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Psychology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1365", "db_id": "college_2", "query": "select title from course where dept_name = 'statistics' except select title from course where dept_name = 'psychology'", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Statistics", "'", "EXCEPT", "SELECT", "title", "FROM", "course", "WHERE", "dept_name", "=", "'Psychology", "'"], "query_toks_no_value": ["select", "title", "from", "course", "where", "dept_name", "=", "value", "except", "select", "title", "from", "course", "where", "dept_name", "=", "value"], "question": "What are the titles of courses that are in the Statistics department but not the Psychology department?", "question_toks": ["What", "are", "the", "titles", "of", "courses", "that", "are", "in", "the", "Statistics", "department", "but", "not", "the", "Psychology", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Statistics\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Psychology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1840", "db_id": "browser_web", "query": "select name , operating_system from web_client_accelerator except select t1.name , t1.operating_system from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id join browser as t3 on t2.browser_id = t3.id where t3.name = 'opera'", "query_toks": ["SELECT", "name", ",", "operating_system", "FROM", "web_client_accelerator", "EXCEPT", "SELECT", "T1.name", ",", "T1.operating_system", "FROM", "web_client_accelerator", "AS", "T1", "JOIN", "accelerator_compatible_browser", "AS", "T2", "ON", "T2.accelerator_id", "=", "T1.id", "JOIN", "browser", "AS", "T3", "ON", "T2.browser_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Opera", "'"], "query_toks_no_value": ["select", "name", ",", "operating_system", "from", "web_client_accelerator", "except", "select", "t1", ".", "name", ",", "t1", ".", "operating_system", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "join", "browser", "as", "t3", "on", "t2", ".", "browser_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value"], "question": "Show the accelerator names and supporting operating systems that are not compatible with the browser named 'Opera'.", "question_toks": ["Show", "the", "accelerator", "names", "and", "supporting", "operating", "systems", "that", "are", "not", "compatible", "with", "the", "browser", "named", "'Opera", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 10, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Opera\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3273", "db_id": "college_1", "query": "select emp_fname from employee where emp_jobcode = 'prof' except select t1.emp_fname from employee as t1 join class as t2 on t1.emp_num = t2.prof_num", "query_toks": ["SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "'PROF", "'", "EXCEPT", "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num"], "query_toks_no_value": ["select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "value", "except", "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num"], "question": "What are the first names of the professors who do not teach a class.", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "professors", "who", "do", "not", "teach", "a", "class", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"PROF\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1289", "db_id": "game_injury", "query": "select name , average_attendance , total_attendance from stadium except select t2.name , t2.average_attendance , t2.total_attendance from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id", "query_toks": ["SELECT", "name", ",", "average_attendance", ",", "total_attendance", "FROM", "stadium", "EXCEPT", "SELECT", "T2.name", ",", "T2.average_attendance", ",", "T2.total_attendance", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1.id", "=", "T3.game_id"], "query_toks_no_value": ["select", "name", ",", "average_attendance", ",", "total_attendance", "from", "stadium", "except", "select", "t2", ".", "name", ",", "t2", ".", "average_attendance", ",", "t2", ".", "total_attendance", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id"], "question": "Show the name, average attendance, total attendance for stadiums where no accidents happened.", "question_toks": ["Show", "the", "name", ",", "average", "attendance", ",", "total", "attendance", "for", "stadiums", "where", "no", "accidents", "happened", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "AGGREGATION_IN_COLUMN", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6460", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents where document_type_code = \"cv\" except select document_id from documents_with_expenses", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses"], "query_toks_no_value": ["select", "document_id", "from", "documents", "where", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents_with_expenses"], "question": "What are the ids of documents with the type code CV that do not have expenses.", "question_toks": ["What", "are", "the", "ids", "of", "documents", "with", "the", "type", "code", "CV", "that", "do", "not", "have", "expenses", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"CV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3625", "db_id": "music_1", "query": "select distinct artist_name from song where languages = \"english\" except select distinct artist_name from song where rating > 8", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "8"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value"], "question": "Find the names of the artists who have produced English songs but have never received rating higher than 8.", "question_toks": ["Find", "the", "names", "of", "the", "artists", "who", "have", "produced", "English", "songs", "but", "have", "never", "received", "rating", "higher", "than", "8", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3626", "db_id": "music_1", "query": "select distinct artist_name from song where languages = \"english\" except select distinct artist_name from song where rating > 8", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "8"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "song", "where", "languages", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value"], "question": "What are the names of the different artists that have produced a song in English but have never receieved a rating higher than 8?", "question_toks": ["What", "are", "the", "names", "of", "the", "different", "artists", "that", "have", "produced", "a", "song", "in", "English", "but", "have", "never", "receieved", "a", "rating", "higher", "than", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3627", "db_id": "music_1", "query": "select distinct artist_name from artist where country = \"bangladesh\" except select distinct artist_name from song where rating > 7", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "Bangladesh", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "7"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value"], "question": "Find the names of the artists who are from Bangladesh and have never received rating higher than 7.", "question_toks": ["Find", "the", "names", "of", "the", "artists", "who", "are", "from", "Bangladesh", "and", "have", "never", "received", "rating", "higher", "than", "7", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Bangladesh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 7.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3628", "db_id": "music_1", "query": "select distinct artist_name from artist where country = \"bangladesh\" except select distinct artist_name from song where rating > 7", "query_toks": ["SELECT", "DISTINCT", "artist_name", "FROM", "artist", "WHERE", "country", "=", "``", "Bangladesh", "''", "EXCEPT", "SELECT", "DISTINCT", "artist_name", "FROM", "song", "WHERE", "rating", ">", "7"], "query_toks_no_value": ["select", "distinct", "artist_name", "from", "artist", "where", "country", "=", "value", "except", "select", "distinct", "artist_name", "from", "song", "where", "rating", ">", "value"], "question": "What are the names of the different artists from Bangladesh who never received a rating higher than a 7?", "question_toks": ["What", "are", "the", "names", "of", "the", "different", "artists", "from", "Bangladesh", "who", "never", "received", "a", "rating", "higher", "than", "a", "7", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Bangladesh\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 7.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0926", "db_id": "dog_kennels", "query": "select first_name from professionals union select first_name from owners except select name from dogs", "query_toks": ["SELECT", "first_name", "FROM", "Professionals", "UNION", "SELECT", "first_name", "FROM", "Owners", "EXCEPT", "SELECT", "name", "FROM", "Dogs"], "query_toks_no_value": ["select", "first_name", "from", "professionals", "union", "select", "first_name", "from", "owners", "except", "select", "name", "from", "dogs"], "question": "Which first names are used for professionals or owners but are not used as dog names?", "question_toks": ["Which", "first", "names", "are", "used", "for", "professionals", "or", "owners", "but", "are", "not", "used", "as", "dog", "names", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "except": null}, "tags": ["NEGATION", "OR_IN_NL", "_NEGATION_EXCEPT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5233", "db_id": "music_2", "query": "select distinct title from vocals as t1 join songs as t2 on t1.songid = t2.songid except select t2.title from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = \"lead\"", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "lead", "''"], "query_toks_no_value": ["select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value"], "question": "What are the names of the songs without a lead vocal?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "without", "a", "lead", "vocal", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"lead\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5264", "db_id": "music_2", "query": "select distinct title from vocals as t1 join songs as t2 on t1.songid = t2.songid except select t2.title from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = \"back\"", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''"], "query_toks_no_value": ["select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value"], "question": "Find the name of songs that does not have a back vocal.", "question_toks": ["Find", "the", "name", "of", "songs", "that", "does", "not", "have", "a", "back", "vocal", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"back\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5265", "db_id": "music_2", "query": "select distinct title from vocals as t1 join songs as t2 on t1.songid = t2.songid except select t2.title from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = \"back\"", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''"], "query_toks_no_value": ["select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value"], "question": "What are the names of the songs that do not have back vocals?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "that", "do", "not", "have", "back", "vocals", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"back\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5159", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.city_town from addresses as t1 join customers as t2 on t1.address_id = t2.address_id except select t1.city_town from addresses as t1 join performers as t2 on t1.address_id = t2.address_id", "query_toks": ["SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "EXCEPT", "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Performers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID"], "query_toks_no_value": ["select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "except", "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "performers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id"], "question": "Which cities have at least one customer but no performer?", "question_toks": ["Which", "cities", "have", "at", "least", "one", "customer", "but", "no", "performer", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5497", "db_id": "voter_2", "query": "select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = president_vote except select distinct lname from student where advisor = \"2192\"", "query_toks": ["SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "LName", "FROM", "STUDENT", "WHERE", "Advisor", "=", "``", "2192", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote", "except", "select", "distinct", "lname", "from", "student", "where", "advisor", "=", "value"], "question": "What are the distinct last names of the students who have president votes but do not have 2192 as the advisor?", "question_toks": ["What", "are", "the", "distinct", "last", "names", "of", "the", "students", "who", "have", "president", "votes", "but", "do", "not", "have", "2192", "as", "the", "advisor", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"2192\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5034", "db_id": "soccer_2", "query": "select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'mid' except select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'goalie'", "query_toks": ["SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value"], "question": "Find the names of states that have some college students playing in the mid position but not in the goalie position.", "question_toks": ["Find", "the", "names", "of", "states", "that", "have", "some", "college", "students", "playing", "in", "the", "mid", "position", "but", "not", "in", "the", "goalie", "position", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2121", "db_id": "cre_Doc_Control_Systems", "query": "select document_id from documents where document_status_code = \"done\" and document_type_code = \"paper\" except select document_id from documents join ref_shipping_agents on documents.shipping_agent_code = ref_shipping_agents.shipping_agent_code where ref_shipping_agents.shipping_agent_name = \"usps\";", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_status_code", "=", "``", "done", "''", "AND", "document_type_code", "=", "``", "Paper", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents", "JOIN", "Ref_Shipping_Agents", "ON", "Documents.shipping_agent_code", "=", "Ref_Shipping_Agents.shipping_agent_code", "WHERE", "Ref_Shipping_Agents.shipping_agent_name", "=", "``", "USPS", "''", ";"], "query_toks_no_value": ["select", "document_id", "from", "documents", "where", "document_status_code", "=", "value", "and", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents", "join", "ref_shipping_agents", "on", "documents.shipping_agent_code", "=", "ref_shipping_agents.shipping_agent_code", "where", "ref_shipping_agents.shipping_agent_name", "=", "value"], "question": "List the document ids of documents with the status done and type Paper, which not shipped by the shipping agent named USPS.", "question_toks": ["List", "the", "document", "ids", "of", "documents", "with", "the", "status", "done", "and", "type", "Paper", ",", "which", "not", "shipped", "by", "the", "shipping", "agent", "named", "USPS", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"done\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Paper\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"USPS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6292", "db_id": "city_record", "query": "select t1.city from city as t1 join temperature as t2 on t1.city_id = t2.city_id where t2.mar < t2.dec except select t3.city from city as t3 join hosting_city as t4 on t3.city_id = t4.host_city", "query_toks": ["SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Dec", "EXCEPT", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city"], "query_toks_no_value": ["select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "dec", "except", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city"], "question": "Give me a list of cities whose temperature in Mar is lower than that in Dec and which have never been host cities.", "question_toks": ["Give", "me", "a", "list", "of", "cities", "whose", "temperature", "in", "Mar", "is", "lower", "than", "that", "in", "Dec", "and", "which", "have", "never", "been", "host", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], [0, 24, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6293", "db_id": "city_record", "query": "select t1.city from city as t1 join temperature as t2 on t1.city_id = t2.city_id where t2.mar < t2.dec except select t3.city from city as t3 join hosting_city as t4 on t3.city_id = t4.host_city", "query_toks": ["SELECT", "T1.city", "FROM", "city", "AS", "T1", "JOIN", "temperature", "AS", "T2", "ON", "T1.city_id", "=", "T2.city_id", "WHERE", "T2.Mar", "<", "T2.Dec", "EXCEPT", "SELECT", "T3.city", "FROM", "city", "AS", "T3", "JOIN", "hosting_city", "AS", "T4", "ON", "T3.city_id", "=", "T4.host_city"], "query_toks_no_value": ["select", "t1", ".", "city", "from", "city", "as", "t1", "join", "temperature", "as", "t2", "on", "t1", ".", "city_id", "=", "t2", ".", "city_id", "where", "t2", ".", "mar", "<", "t2", ".", "dec", "except", "select", "t3", ".", "city", "from", "city", "as", "t3", "join", "hosting_city", "as", "t4", "on", "t3", ".", "city_id", "=", "t4", ".", "host_city"], "question": "Which cities have lower temperature in March than in Dec and have never served as host cities?", "question_toks": ["Which", "cities", "have", "lower", "temperature", "in", "March", "than", "in", "Dec", "and", "have", "never", "served", "as", "host", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 16, false], null], [0, 24, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5495", "db_id": "voter_2", "query": "select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.vice_president_vote except select distinct fname from student where city_code = \"pit\"", "query_toks": ["SELECT", "DISTINCT", "T1.Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.VICE_PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "city_code", "=", "``", "PIT", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "except", "select", "distinct", "fname", "from", "student", "where", "city_code", "=", "value"], "question": "What are the distinct first names of the students who have vice president votes and reside in a city whose city code is not PIT?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "of", "the", "students", "who", "have", "vice", "president", "votes", "and", "reside", "in", "a", "city", "whose", "city", "code", "is", "not", "PIT", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"PIT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0240", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "except", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"], "question": "Which airlines have departures from CVO but not from APG airports?", "question_toks": ["Which", "airlines", "have", "departures", "from", "CVO", "but", "not", "from", "APG", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"CVO\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["DEJOIN_TOTAL", "NEGATION", "_NEGATION_EXCEPT", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5037", "db_id": "soccer_2", "query": "select count(*) from (select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'mid' except select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'goalie')", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "(", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", ")"], "question": "What is the count of states with college students playing in the mid position but not as goalies?", "question_toks": ["What", "is", "the", "count", "of", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "but", "not", "as", "goalies", "?"], "sql": {"from": {"table_units": [["sql", {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4077", "db_id": "student_1", "query": "select distinct t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 1 except select t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t2.firstname = \"otha\" and t2.lastname = \"moyer\"", "query_toks": ["SELECT", "DISTINCT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "1", "EXCEPT", "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "OTHA", "''", "AND", "T2.lastname", "=", "``", "MOYER", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "except", "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value"], "question": "What are the first and last names of the first-grade students who are NOT taught by teacher OTHA MOYER?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "the", "first-grade", "students", "who", "are", "NOT", "taught", "by", "teacher", "OTHA", "MOYER", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"OTHA\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"MOYER\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0171", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10 except select name from station where city = \"san jose\"", "query_toks": ["SELECT", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value", "except", "select", "name", "from", "station", "where", "city", "=", "value"], "question": "What are names of stations that have average bike availability above 10 and are not located in San Jose city?", "question_toks": ["What", "are", "names", "of", "stations", "that", "have", "average", "bike", "availability", "above", "10", "and", "are", "not", "located", "in", "San", "Jose", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4446", "db_id": "network_2", "query": "select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age > 40) except select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age < 30)", "query_toks": ["SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "EXCEPT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "except", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")"], "question": "Find the name of the person who has friends with age above 40 but not under age 30?", "question_toks": ["Find", "the", "name", "of", "the", "person", "who", "has", "friends", "with", "age", "above", "40", "but", "not", "under", "age", "30", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 4, [0, [0, 2, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4447", "db_id": "network_2", "query": "select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age > 40) except select t1.name from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend in (select name from person where age < 30)", "query_toks": ["SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", ">", "40", ")", "EXCEPT", "SELECT", "T1.name", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "IN", "(", "SELECT", "name", "FROM", "Person", "WHERE", "age", "<", "30", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", ">", "value", ")", "except", "select", "t1", ".", "name", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "in", "(", "select", "name", "from", "person", "where", "age", "<", "value", ")"], "question": "What are the names of the people who are older 40 but no friends under age 30?", "question_toks": ["What", "are", "the", "names", "of", "the", "people", "who", "are", "older", "40", "but", "no", "friends", "under", "age", "30", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 4, [0, [0, 2, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4790", "db_id": "department_store", "query": "select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.job_title_code = \"sales person\" except select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.job_title_code = \"clerical staff\"", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Sales", "Person", "''", "EXCEPT", "SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "Staff_Department_Assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.job_title_code", "=", "``", "Clerical", "Staff", "''"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value", "except", "select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "job_title_code", "=", "value"], "question": "What are the names and genders of staff who have held the title Sales Person, but never Clerical Staff?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "staff", "who", "have", "held", "the", "title", "Sales", "Person", ",", "but", "never", "Clerical", "Staff", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"Sales Person\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"Clerical Staff\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5704", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'tv lounge' except select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'study room'", "query_toks": ["SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'Study", "Room", "'"], "query_toks_no_value": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value"], "question": "Find the name of dorms which have TV Lounge but no Study Room as amenity.", "question_toks": ["Find", "the", "name", "of", "dorms", "which", "have", "TV", "Lounge", "but", "no", "Study", "Room", "as", "amenity", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Study Room\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5705", "db_id": "dorm_1", "query": "select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'tv lounge' except select t1.dorm_name from dorm as t1 join has_amenity as t2 on t1.dormid = t2.dormid join dorm_amenity as t3 on t2.amenid = t3.amenid where t3.amenity_name = 'study room'", "query_toks": ["SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'TV", "Lounge", "'", "EXCEPT", "SELECT", "T1.dorm_name", "FROM", "dorm", "AS", "T1", "JOIN", "has_amenity", "AS", "T2", "ON", "T1.dormid", "=", "T2.dormid", "JOIN", "dorm_amenity", "AS", "T3", "ON", "T2.amenid", "=", "T3.amenid", "WHERE", "T3.amenity_name", "=", "'Study", "Room", "'"], "query_toks_no_value": ["select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value", "except", "select", "t1", ".", "dorm_name", "from", "dorm", "as", "t1", "join", "has_amenity", "as", "t2", "on", "t1", ".", "dormid", "=", "t2", ".", "dormid", "join", "dorm_amenity", "as", "t3", "on", "t2", ".", "amenid", "=", "t3", ".", "amenid", "where", "t3", ".", "amenity_name", "=", "value"], "question": "What is the name of each dorm that has a TV Lounge but no study rooms?", "question_toks": ["What", "is", "the", "name", "of", "each", "dorm", "that", "has", "a", "TV", "Lounge", "but", "no", "study", "rooms", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Study Room\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_ALL", "_NEGATION_EXCEPT", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3275", "db_id": "college_1", "query": "select t1.emp_fname from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'history' except select t4.emp_fname from employee as t4 join class as t5 on t4.emp_num = t5.prof_num", "query_toks": ["SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "EXCEPT", "SELECT", "T4.emp_fname", "FROM", "employee", "AS", "T4", "JOIN", "CLASS", "AS", "T5", "ON", "T4.emp_num", "=", "T5.prof_num"], "query_toks_no_value": ["select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "except", "select", "t4", ".", "emp_fname", "from", "employee", "as", "t4", "join", "class", "as", "t5", "on", "t4", ".", "emp_num", "=", "t5", ".", "prof_num"], "question": "What is the first names of the professors from the history department who do not teach a class.", "question_toks": ["What", "is", "the", "first", "names", "of", "the", "professors", "from", "the", "history", "department", "who", "do", "not", "teach", "a", "class", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"History\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2181", "db_id": "formula_1", "query": "select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"australian grand prix\" except select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"chinese grand prix\"", "query_toks": ["SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Australian", "Grand", "Prix", "''", "EXCEPT", "SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Chinese", "Grand", "Prix", "''"], "query_toks_no_value": ["select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "except", "select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value"], "question": "What are the forenames and surnames of drivers who participated in the races named Australian Grand Prix but not the races named Chinese Grand Prix?", "question_toks": ["What", "are", "the", "forenames", "and", "surnames", "of", "drivers", "who", "participated", "in", "the", "races", "named", "Australian", "Grand", "Prix", "but", "not", "the", "races", "named", "Chinese", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Australian Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Chinese Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5396", "db_id": "tracking_software_problems", "query": "select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"rem\" except select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"aut\"", "query_toks": ["SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "rem", "''", "EXCEPT", "SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "aut", "''"], "query_toks_no_value": ["select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value", "except", "select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value"], "question": "Find the first and last name of the staff members who reported problems from the product \"rem\" but not \"aut\"?", "question_toks": ["Find", "the", "first", "and", "last", "name", "of", "the", "staff", "members", "who", "reported", "problems", "from", "the", "product", "``", "rem", "''", "but", "not", "``", "aut", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"rem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"aut\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5397", "db_id": "tracking_software_problems", "query": "select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"rem\" except select t3.staff_first_name , t3.staff_last_name from problems as t1 join product as t2 join staff as t3 on t1.product_id = t2.product_id and t1.reported_by_staff_id = t3.staff_id where t2.product_name = \"aut\"", "query_toks": ["SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "rem", "''", "EXCEPT", "SELECT", "T3.staff_first_name", ",", "T3.staff_last_name", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "JOIN", "staff", "AS", "T3", "ON", "T1.product_id", "=", "T2.product_id", "AND", "T1.reported_by_staff_id", "=", "T3.staff_id", "WHERE", "T2.product_name", "=", "``", "aut", "''"], "query_toks_no_value": ["select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value", "except", "select", "t3", ".", "staff_first_name", ",", "t3", ".", "staff_last_name", "from", "problems", "as", "t1", "join", "product", "as", "t2", "join", "staff", "as", "t3", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "and", "t1", ".", "reported_by_staff_id", "=", "t3", ".", "staff_id", "where", "t2", ".", "product_name", "=", "value"], "question": "Which staff members who reported problems from the product \"rem\" but not \"aut\"? Give me their first and last names.", "question_toks": ["Which", "staff", "members", "who", "reported", "problems", "from", "the", "product", "``", "rem", "''", "but", "not", "``", "aut", "''", "?", "Give", "me", "their", "first", "and", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"rem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"aut\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5965", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\" except select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"rosalind\"", "query_toks": ["SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Alison", "''", "EXCEPT", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Rosalind", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "except", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value"], "question": "What are the names of tourist attraction that Alison visited but Rosalind did not visit?", "question_toks": ["What", "are", "the", "names", "of", "tourist", "attraction", "that", "Alison", "visited", "but", "Rosalind", "did", "not", "visit", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Rosalind\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5966", "db_id": "cre_Theme_park", "query": "select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"alison\" except select t1.name from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"rosalind\"", "query_toks": ["SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Alison", "''", "EXCEPT", "SELECT", "T1.Name", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Rosalind", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "except", "select", "t1", ".", "name", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value"], "question": "Find the the names of the tourist attractions that the tourist named Alison visited but Rosalind did not visit.", "question_toks": ["Find", "the", "the", "names", "of", "the", "tourist", "attractions", "that", "the", "tourist", "named", "Alison", "visited", "but", "Rosalind", "did", "not", "visit", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Alison\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Rosalind\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION", "_NEGATION_EXCEPT", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5626", "db_id": "swimming", "query": "select name from swimmer where id not in (select swimmer_id from record)", "query_toks": ["SELECT", "name", "FROM", "swimmer", "WHERE", "id", "NOT", "IN", "(", "SELECT", "swimmer_id", "FROM", "record", ")"], "query_toks_no_value": ["select", "name", "from", "swimmer", "where", "id", "not", "in", "(", "select", "swimmer_id", "from", "record", ")"], "question": "Find the names of the swimmers who have no record.", "question_toks": ["Find", "the", "names", "of", "the", "swimmers", "who", "have", "no", "record", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0925", "db_id": "dog_kennels", "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 )", "query_toks": ["select", "name", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", "group", "by", "dog_id", "having", "sum", "(", "cost_of_treatment", ")", ">", "1000", ")"], "query_toks_no_value": ["select", "name", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", "group", "by", "dog_id", "having", "sum", "(", "cost_of_treatment", ")", ">", "value", ")"], "question": "What are the names of the dogs for which the owner has not spend more than 1000 for treatment ?", "question_toks": ["What", "are", "the", "names", "of", "the", "dogs", "for", "which", "the", "owner", "has", "not", "spend", "more", "than", "1000", "for", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [4, 49, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "HAVING_IN_SQL", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0286", "db_id": "employee_hire_evaluation", "query": "select name from shop where shop_id not in (select shop_id from hiring)", "query_toks": ["SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")"], "query_toks_no_value": ["select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")"], "question": "Which shops run with no employees? Find the shop names", "question_toks": ["Which", "shops", "run", "with", "no", "employees", "?", "Find", "the", "shop", "names"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1104", "db_id": "match_season", "query": "select name from team where team_id not in (select team from match_season)", "query_toks": ["SELECT", "Name", "FROM", "team", "WHERE", "Team_id", "NOT", "IN", "(", "SELECT", "Team", "FROM", "match_season", ")"], "query_toks_no_value": ["select", "name", "from", "team", "where", "team_id", "not", "in", "(", "select", "team", "from", "match_season", ")"], "question": "What are the names of teams that do no have match season record?", "question_toks": ["What", "are", "the", "names", "of", "teams", "that", "do", "no", "have", "match", "season", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1105", "db_id": "match_season", "query": "select name from team where team_id not in (select team from match_season)", "query_toks": ["SELECT", "Name", "FROM", "team", "WHERE", "Team_id", "NOT", "IN", "(", "SELECT", "Team", "FROM", "match_season", ")"], "query_toks_no_value": ["select", "name", "from", "team", "where", "team_id", "not", "in", "(", "select", "team", "from", "match_season", ")"], "question": "Return the names of teams that have no match season record.", "question_toks": ["Return", "the", "names", "of", "teams", "that", "have", "no", "match", "season", "record", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0229", "db_id": "book_2", "query": "select title from book where book_id not in (select book_id from publication)", "query_toks": ["SELECT", "Title", "FROM", "book", "WHERE", "Book_ID", "NOT", "IN", "(", "SELECT", "Book_ID", "FROM", "publication", ")"], "query_toks_no_value": ["select", "title", "from", "book", "where", "book_id", "not", "in", "(", "select", "book_id", "from", "publication", ")"], "question": "List the titles of books that are not published.", "question_toks": ["List", "the", "titles", "of", "books", "that", "are", "not", "published", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4147", "db_id": "film_rank", "query": "select title from film where film_id not in (select film_id from film_market_estimation)", "query_toks": ["SELECT", "Title", "FROM", "film", "WHERE", "Film_ID", "NOT", "IN", "(", "SELECT", "Film_ID", "FROM", "film_market_estimation", ")"], "query_toks_no_value": ["select", "title", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", ")"], "question": "What are the titles of films that do not have a film market estimation?", "question_toks": ["What", "are", "the", "titles", "of", "films", "that", "do", "not", "have", "a", "film", "market", "estimation", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6505", "db_id": "scientist_1", "query": "select name from projects where code not in (select project from assignedto)", "query_toks": ["SELECT", "Name", "FROM", "Projects", "WHERE", "Code", "NOT", "IN", "(", "SELECT", "Project", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "name", "from", "projects", "where", "code", "not", "in", "(", "select", "project", "from", "assignedto", ")"], "question": "Select the project names which are not assigned yet.", "question_toks": ["Select", "the", "project", "names", "which", "are", "not", "assigned", "yet", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6506", "db_id": "scientist_1", "query": "select name from projects where code not in (select project from assignedto)", "query_toks": ["SELECT", "Name", "FROM", "Projects", "WHERE", "Code", "NOT", "IN", "(", "SELECT", "Project", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "name", "from", "projects", "where", "code", "not", "in", "(", "select", "project", "from", "assignedto", ")"], "question": "What are the names of projects that have not been assigned?", "question_toks": ["What", "are", "the", "names", "of", "projects", "that", "have", "not", "been", "assigned", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4841", "db_id": "aircraft", "query": "select name from pilot where pilot_id not in (select winning_pilot from match where country = 'australia')", "query_toks": ["SELECT", "name", "FROM", "pilot", "WHERE", "pilot_id", "NOT", "IN", "(", "SELECT", "Winning_Pilot", "FROM", "MATCH", "WHERE", "country", "=", "'Australia", "'", ")"], "query_toks_no_value": ["select", "name", "from", "pilot", "where", "pilot_id", "not", "in", "(", "select", "winning_pilot", "from", "match", "where", "country", "=", "value", ")"], "question": "find the name of pilots who did not win the matches held in the country of Australia.", "question_toks": ["find", "the", "name", "of", "pilots", "who", "did", "not", "win", "the", "matches", "held", "in", "the", "country", "of", "Australia", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Australia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6083", "db_id": "customers_and_addresses", "query": "select city from addresses where city not in ( select distinct t3.city from customers as t1 join customer_addresses as t2 on t1.customer_id = t2.customer_id join addresses as t3 on t2.address_id = t3.address_id)", "query_toks": ["SELECT", "city", "FROM", "addresses", "WHERE", "city", "NOT", "IN", "(", "SELECT", "DISTINCT", "t3.city", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", ")"], "query_toks_no_value": ["select", "city", "from", "addresses", "where", "city", "not", "in", "(", "select", "distinct", "t3", ".", "city", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", ")"], "question": "Find the list of cities that no customer is living in.", "question_toks": ["Find", "the", "list", "of", "cities", "that", "no", "customer", "is", "living", "in", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6084", "db_id": "customers_and_addresses", "query": "select city from addresses where city not in ( select distinct t3.city from customers as t1 join customer_addresses as t2 on t1.customer_id = t2.customer_id join addresses as t3 on t2.address_id = t3.address_id)", "query_toks": ["SELECT", "city", "FROM", "addresses", "WHERE", "city", "NOT", "IN", "(", "SELECT", "DISTINCT", "t3.city", "FROM", "customers", "AS", "t1", "JOIN", "customer_addresses", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "addresses", "AS", "t3", "ON", "t2.address_id", "=", "t3.address_id", ")"], "query_toks_no_value": ["select", "city", "from", "addresses", "where", "city", "not", "in", "(", "select", "distinct", "t3", ".", "city", "from", "customers", "as", "t1", "join", "customer_addresses", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "addresses", "as", "t3", "on", "t2", ".", "address_id", "=", "t3", ".", "address_id", ")"], "question": "What are the cities no customers live in?", "question_toks": ["What", "are", "the", "cities", "no", "customers", "live", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 16, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6508", "db_id": "scientist_1", "query": "select name from scientists where ssn not in (select scientist from assignedto)", "query_toks": ["SELECT", "Name", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")"], "question": "What are the names of scientists who have not been assigned a project?", "question_toks": ["What", "are", "the", "names", "of", "scientists", "who", "have", "not", "been", "assigned", "a", "project", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0151", "db_id": "bike_1", "query": "select avg(long) from station where id not in (select station_id from status group by station_id having max(bikes_available) > 10)", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "10", ")"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "value", ")"], "question": "What is the average longitude of stations that never had bike availability more than 10?", "question_toks": ["What", "is", "the", "average", "longitude", "of", "stations", "that", "never", "had", "bike", "availability", "more", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [1, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN", "HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2796", "db_id": "election", "query": "select party from party where party_id not in (select party from election)", "query_toks": ["SELECT", "Party", "FROM", "party", "WHERE", "Party_ID", "NOT", "IN", "(", "SELECT", "Party", "FROM", "election", ")"], "query_toks_no_value": ["select", "party", "from", "party", "where", "party_id", "not", "in", "(", "select", "party", "from", "election", ")"], "question": "What are the names of parties that do not have delegates in election?", "question_toks": ["What", "are", "the", "names", "of", "parties", "that", "do", "not", "have", "delegates", "in", "election", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3992", "db_id": "hospital_1", "query": "select count(*) from patient where ssn not in ( select t1.patient from prescribes as t1 join medication as t2 on t1.medication = t2.code where t2.name = 'procrastin-x' )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "patient", "WHERE", "SSN", "NOT", "IN", "(", "SELECT", "T1.patient", "FROM", "Prescribes", "AS", "T1", "JOIN", "Medication", "AS", "T2", "ON", "T1.Medication", "=", "T2.Code", "WHERE", "T2.name", "=", "'Procrastin-X", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "patient", "where", "ssn", "not", "in", "(", "select", "t1", ".", "patient", "from", "prescribes", "as", "t1", "join", "medication", "as", "t2", "on", "t1", ".", "medication", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", ")"], "question": "Find the number of patients who are not using the medication of Procrastin-X.", "question_toks": ["Find", "the", "number", "of", "patients", "who", "are", "not", "using", "the", "medication", "of", "Procrastin-X", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 9], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 42, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 37, false], null], "\"Procrastin-X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2420", "db_id": "candidate_poll", "query": "select name from people where people_id not in (select people_id from candidate)", "query_toks": ["SELECT", "name", "FROM", "people", "WHERE", "people_id", "NOT", "IN", "(", "SELECT", "people_id", "FROM", "candidate", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "candidate", ")"], "question": "what are the names of people who did not participate in the candidate election.", "question_toks": ["what", "are", "the", "names", "of", "people", "who", "did", "not", "participate", "in", "the", "candidate", "election", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2421", "db_id": "candidate_poll", "query": "select name from people where people_id not in (select people_id from candidate)", "query_toks": ["SELECT", "name", "FROM", "people", "WHERE", "people_id", "NOT", "IN", "(", "SELECT", "people_id", "FROM", "candidate", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "candidate", ")"], "question": "Give the names of people who did not participate in the candidate election.", "question_toks": ["Give", "the", "names", "of", "people", "who", "did", "not", "participate", "in", "the", "candidate", "election", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1506", "db_id": "debate", "query": "select name from people where people_id not in (select affirmative from debate_people)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_id", "NOT", "IN", "(", "SELECT", "Affirmative", "FROM", "debate_people", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "affirmative", "from", "debate_people", ")"], "question": "List the names of people that have not been on the affirmative side of debates.", "question_toks": ["List", "the", "names", "of", "people", "that", "have", "not", "been", "on", "the", "affirmative", "side", "of", "debates", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2295", "db_id": "entrepreneur", "query": "select name from people where people_id not in (select people_id from entrepreneur)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "entrepreneur", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "entrepreneur", ")"], "question": "List the names of people that are not entrepreneurs.", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "entrepreneurs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2296", "db_id": "entrepreneur", "query": "select name from people where people_id not in (select people_id from entrepreneur)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "entrepreneur", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "entrepreneur", ")"], "question": "What are the names of people who are not entrepreneurs?", "question_toks": ["What", "are", "the", "names", "of", "people", "who", "are", "not", "entrepreneurs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0422", "db_id": "museum_visit", "query": "select name from museum where museum_id not in (select museum_id from visit)", "query_toks": ["SELECT", "name", "FROM", "museum", "WHERE", "Museum_ID", "NOT", "IN", "(", "SELECT", "museum_id", "FROM", "visit", ")"], "query_toks_no_value": ["select", "name", "from", "museum", "where", "museum_id", "not", "in", "(", "select", "museum_id", "from", "visit", ")"], "question": "What is the name of the museum that had no visitor yet?", "question_toks": ["What", "is", "the", "name", "of", "the", "museum", "that", "had", "no", "visitor", "yet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2319", "db_id": "perpetrator", "query": "select name from people where people_id not in (select people_id from perpetrator)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "perpetrator", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "perpetrator", ")"], "question": "List the names of people that are not perpetrators.", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "perpetrators", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0683", "db_id": "poker_player", "query": "select name from people where people_id not in (select people_id from poker_player)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "poker_player", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "poker_player", ")"], "question": "List the names of people that are not poker players.", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "poker", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0684", "db_id": "poker_player", "query": "select name from people where people_id not in (select people_id from poker_player)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "poker_player", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "poker_player", ")"], "question": "What are the names of people who do not play poker?", "question_toks": ["What", "are", "the", "names", "of", "people", "who", "do", "not", "play", "poker", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6357", "db_id": "school_bus", "query": "select name from driver where driver_id not in (select driver_id from school_bus)", "query_toks": ["SELECT", "name", "FROM", "driver", "WHERE", "driver_id", "NOT", "IN", "(", "SELECT", "driver_id", "FROM", "school_bus", ")"], "query_toks_no_value": ["select", "name", "from", "driver", "where", "driver_id", "not", "in", "(", "select", "driver_id", "from", "school_bus", ")"], "question": "Show the names of the drivers without a school bus.", "question_toks": ["Show", "the", "names", "of", "the", "drivers", "without", "a", "school", "bus", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1349", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "What are the titles of courses without prerequisites?", "question_toks": ["What", "are", "the", "titles", "of", "courses", "without", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1421", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "What are the names of courses without prerequisites?", "question_toks": ["What", "are", "the", "names", "of", "courses", "without", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5082", "db_id": "device", "query": "select shop_name from shop where shop_id not in (select shop_id from stock)", "query_toks": ["SELECT", "Shop_Name", "FROM", "shop", "WHERE", "Shop_ID", "NOT", "IN", "(", "SELECT", "Shop_ID", "FROM", "stock", ")"], "query_toks_no_value": ["select", "shop_name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "stock", ")"], "question": "List the names of shops that have no devices in stock.", "question_toks": ["List", "the", "names", "of", "shops", "that", "have", "no", "devices", "in", "stock", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0409", "db_id": "course_teach", "query": "select name from teacher where teacher_id not in (select teacher_id from course_arrange)", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Teacher_id", "NOT", "IN", "(", "SELECT", "Teacher_id", "FROM", "course_arrange", ")"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "teacher_id", "not", "in", "(", "select", "teacher_id", "from", "course_arrange", ")"], "question": "List the names of teachers who have not been arranged to teach courses.", "question_toks": ["List", "the", "names", "of", "teachers", "who", "have", "not", "been", "arranged", "to", "teach", "courses", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0410", "db_id": "course_teach", "query": "select name from teacher where teacher_id not in (select teacher_id from course_arrange)", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Teacher_id", "NOT", "IN", "(", "SELECT", "Teacher_id", "FROM", "course_arrange", ")"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "teacher_id", "not", "in", "(", "select", "teacher_id", "from", "course_arrange", ")"], "question": "What are the names of the teachers whose courses have not been arranged?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "whose", "courses", "have", "not", "been", "arranged", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4616", "db_id": "entertainment_awards", "query": "select name from artwork where artwork_id not in (select artwork_id from nomination)", "query_toks": ["SELECT", "Name", "FROM", "Artwork", "WHERE", "Artwork_ID", "NOT", "IN", "(", "SELECT", "Artwork_ID", "FROM", "nomination", ")"], "query_toks_no_value": ["select", "name", "from", "artwork", "where", "artwork_id", "not", "in", "(", "select", "artwork_id", "from", "nomination", ")"], "question": "List the name of artworks that are not nominated.", "question_toks": ["List", "the", "name", "of", "artworks", "that", "are", "not", "nominated", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0268", "db_id": "musical", "query": "select name from musical where musical_id not in (select musical_id from actor)", "query_toks": ["SELECT", "Name", "FROM", "musical", "WHERE", "Musical_ID", "NOT", "IN", "(", "SELECT", "Musical_ID", "FROM", "actor", ")"], "query_toks_no_value": ["select", "name", "from", "musical", "where", "musical_id", "not", "in", "(", "select", "musical_id", "from", "actor", ")"], "question": "List the name of musicals that do not have actors.", "question_toks": ["List", "the", "name", "of", "musicals", "that", "do", "not", "have", "actors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0269", "db_id": "musical", "query": "select name from musical where musical_id not in (select musical_id from actor)", "query_toks": ["SELECT", "Name", "FROM", "musical", "WHERE", "Musical_ID", "NOT", "IN", "(", "SELECT", "Musical_ID", "FROM", "actor", ")"], "query_toks_no_value": ["select", "name", "from", "musical", "where", "musical_id", "not", "in", "(", "select", "musical_id", "from", "actor", ")"], "question": "What are the names of musicals who have no actors?", "question_toks": ["What", "are", "the", "names", "of", "musicals", "who", "have", "no", "actors", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0888", "db_id": "chinook_1", "query": "select count(*) from artist where artistid not in(select artistid from album)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "ARTIST", "WHERE", "artistid", "NOT", "IN", "(", "SELECT", "artistid", "FROM", "ALBUM", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "artist", "where", "artistid", "not", "in", "(", "select", "artistid", "from", "album", ")"], "question": "Cound the number of artists who have not released an album.", "question_toks": ["Cound", "the", "number", "of", "artists", "who", "have", "not", "released", "an", "album", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5086", "db_id": "device", "query": "select carrier from device where device_id not in (select device_id from stock)", "query_toks": ["SELECT", "Carrier", "FROM", "device", "WHERE", "Device_ID", "NOT", "IN", "(", "SELECT", "Device_ID", "FROM", "stock", ")"], "query_toks_no_value": ["select", "carrier", "from", "device", "where", "device_id", "not", "in", "(", "select", "device_id", "from", "stock", ")"], "question": "List the carriers of devices that have no devices in stock.", "question_toks": ["List", "the", "carriers", "of", "devices", "that", "have", "no", "devices", "in", "stock", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1143", "db_id": "climbing", "query": "select name from mountain where mountain_id not in (select mountain_id from climber)", "query_toks": ["SELECT", "Name", "FROM", "mountain", "WHERE", "Mountain_ID", "NOT", "IN", "(", "SELECT", "Mountain_ID", "FROM", "climber", ")"], "query_toks_no_value": ["select", "name", "from", "mountain", "where", "mountain_id", "not", "in", "(", "select", "mountain_id", "from", "climber", ")"], "question": "What are the names of countains that no climber has climbed?", "question_toks": ["What", "are", "the", "names", "of", "countains", "that", "no", "climber", "has", "climbed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1347", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "Count the number of courses without prerequisites.", "question_toks": ["Count", "the", "number", "of", "courses", "without", "prerequisites", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "NEGATION", "_REFORMULATION_SHORT", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3497", "db_id": "hr_1", "query": "select * from employees where department_id not in (select department_id from departments where manager_id between 100 and 200)", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "department_id", "NOT", "IN", "(", "SELECT", "department_id", "FROM", "departments", "WHERE", "manager_id", "BETWEEN", "100", "AND", "200", ")"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "department_id", "not", "in", "(", "select", "department_id", "from", "departments", "where", "manager_id", "between", "value", "and", "value", ")"], "question": "Find the ids of the employees who does not work in those departments where some employees works whose manager id within the range 100 and 200.", "question_toks": ["Find", "the", "ids", "of", "the", "employees", "who", "does", "not", "work", "in", "those", "departments", "where", "some", "employees", "works", "whose", "manager", "id", "within", "the", "range", "100", "and", "200", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 1, [0, [0, 8, false], null], 100.0, 200.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3498", "db_id": "hr_1", "query": "select * from employees where department_id not in (select department_id from departments where manager_id between 100 and 200)", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "department_id", "NOT", "IN", "(", "SELECT", "department_id", "FROM", "departments", "WHERE", "manager_id", "BETWEEN", "100", "AND", "200", ")"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "department_id", "not", "in", "(", "select", "department_id", "from", "departments", "where", "manager_id", "between", "value", "and", "value", ")"], "question": "What are the ids for employees who do not work in departments with managers that have ids between 100 and 200?", "question_toks": ["What", "are", "the", "ids", "for", "employees", "who", "do", "not", "work", "in", "departments", "with", "managers", "that", "have", "ids", "between", "100", "and", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 1, [0, [0, 8, false], null], 100.0, 200.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2064", "db_id": "party_people", "query": "select party_name from party where party_id not in (select party_id from member)", "query_toks": ["SELECT", "party_name", "FROM", "party", "WHERE", "party_id", "NOT", "IN", "(", "SELECT", "party_id", "FROM", "Member", ")"], "query_toks_no_value": ["select", "party_name", "from", "party", "where", "party_id", "not", "in", "(", "select", "party_id", "from", "member", ")"], "question": "What are the names of parties that have no members?", "question_toks": ["What", "are", "the", "names", "of", "parties", "that", "have", "no", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6265", "db_id": "ship_1", "query": "select name , flag from ship where ship_id not in (select ship_id from captain where rank = 'midshipman')", "query_toks": ["SELECT", "name", ",", "flag", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", "WHERE", "rank", "=", "'Midshipman", "'", ")"], "query_toks_no_value": ["select", "name", ",", "flag", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", "where", "rank", "=", "value", ")"], "question": "What are the names and flags of ships that do not have a captain with the rank of Midshipman?", "question_toks": ["What", "are", "the", "names", "and", "flags", "of", "ships", "that", "do", "not", "have", "a", "captain", "with", "the", "rank", "of", "Midshipman", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Midshipman\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1876", "db_id": "wrestler", "query": "select name from wrestler where wrestler_id not in (select wrestler_id from elimination)", "query_toks": ["SELECT", "Name", "FROM", "wrestler", "WHERE", "Wrestler_ID", "NOT", "IN", "(", "SELECT", "Wrestler_ID", "FROM", "elimination", ")"], "query_toks_no_value": ["select", "name", "from", "wrestler", "where", "wrestler_id", "not", "in", "(", "select", "wrestler_id", "from", "elimination", ")"], "question": "List the names of wrestlers that have not been eliminated.", "question_toks": ["List", "the", "names", "of", "wrestlers", "that", "have", "not", "been", "eliminated", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1877", "db_id": "wrestler", "query": "select name from wrestler where wrestler_id not in (select wrestler_id from elimination)", "query_toks": ["SELECT", "Name", "FROM", "wrestler", "WHERE", "Wrestler_ID", "NOT", "IN", "(", "SELECT", "Wrestler_ID", "FROM", "elimination", ")"], "query_toks_no_value": ["select", "name", "from", "wrestler", "where", "wrestler_id", "not", "in", "(", "select", "wrestler_id", "from", "elimination", ")"], "question": "What are the names of wrestlers who have never been eliminated?", "question_toks": ["What", "are", "the", "names", "of", "wrestlers", "who", "have", "never", "been", "eliminated", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1269", "db_id": "apartment_rentals", "query": "select count(*) from apartments where apt_id not in (select apt_id from apartment_facilities)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")"], "question": "Find the number of apartments that have no facility.", "question_toks": ["Find", "the", "number", "of", "apartments", "that", "have", "no", "facility", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0049", "db_id": "farm", "query": "select official_name from city where city_id not in (select host_city_id from farm_competition)", "query_toks": ["SELECT", "Official_Name", "FROM", "city", "WHERE", "City_ID", "NOT", "IN", "(", "SELECT", "Host_city_ID", "FROM", "farm_competition", ")"], "query_toks_no_value": ["select", "official_name", "from", "city", "where", "city_id", "not", "in", "(", "select", "host_city_id", "from", "farm_competition", ")"], "question": "What are the official names of cities that have not hosted a farm competition?", "question_toks": ["What", "are", "the", "official", "names", "of", "cities", "that", "have", "not", "hosted", "a", "farm", "competition", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0916", "db_id": "network_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "Find the minimum grade of students who have no friends.", "question_toks": ["Find", "the", "minimum", "grade", "of", "students", "who", "have", "no", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0061", "db_id": "pets_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["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", "=", "value", ")"], "question": "Find the major and age of students who do not have a cat pet.", "question_toks": ["Find", "the", "major", "and", "age", "of", "students", "who", "do", "not", "have", "a", "cat", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_NOT_IN", "WHERE_MONO", "AND_IN_NL", "NEGATION", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6261", "db_id": "ship_1", "query": "select name , class from ship where ship_id not in (select ship_id from captain)", "query_toks": ["SELECT", "name", ",", "CLASS", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", ")"], "query_toks_no_value": ["select", "name", ",", "class", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", ")"], "question": "Return the names and classes of ships that do not have a captain?", "question_toks": ["Return", "the", "names", "and", "classes", "of", "ships", "that", "do", "not", "have", "a", "captain", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6595", "db_id": "wine_1", "query": "select avg(price) from wine where appelation not in (select t1.appelation from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t1.county = 'sonoma')", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "wine", "WHERE", "Appelation", "NOT", "IN", "(", "SELECT", "T1.Appelation", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "'Sonoma", "'", ")"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "wine", "where", "appelation", "not", "in", "(", "select", "t1", ".", "appelation", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value", ")"], "question": "Find the average price of wines that are not produced from Sonoma county.", "question_toks": ["Find", "the", "average", "price", "of", "wines", "that", "are", "not", "produced", "from", "Sonoma", "county", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[true, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Sonoma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6596", "db_id": "wine_1", "query": "select avg(price) from wine where appelation not in (select t1.appelation from appellations as t1 join wine as t2 on t1.appelation = t2.appelation where t1.county = 'sonoma')", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "wine", "WHERE", "Appelation", "NOT", "IN", "(", "SELECT", "T1.Appelation", "FROM", "APPELLATIONS", "AS", "T1", "JOIN", "WINE", "AS", "T2", "ON", "T1.Appelation", "=", "T2.Appelation", "WHERE", "T1.County", "=", "'Sonoma", "'", ")"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "wine", "where", "appelation", "not", "in", "(", "select", "t1", ".", "appelation", "from", "appellations", "as", "t1", "join", "wine", "as", "t2", "on", "t1", ".", "appelation", "=", "t2", ".", "appelation", "where", "t1", ".", "county", "=", "value", ")"], "question": "What is the average price for wines not produced in Sonoma county?", "question_toks": ["What", "is", "the", "average", "price", "for", "wines", "not", "produced", "in", "Sonoma", "county", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[true, 8, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Sonoma\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0204", "db_id": "geo", "query": "select state_name from state where state_name not in ( select state_name from border_info );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "state_name", "NOT", "IN", "(", "SELECT", "state_name", "FROM", "border_info", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "state_name", "not", "in", "(", "select", "state_name", "from", "border_info", ")"], "question": "name the states which have no surrounding states", "question_toks": ["name", "the", "states", "which", "have", "no", "surrounding", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1628", "db_id": "customers_and_invoices", "query": "select count(*) from products where product_id not in ( select product_id from order_items )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "Order_items", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "order_items", ")"], "question": "Count the number of products that were never ordered.", "question_toks": ["Count", "the", "number", "of", "products", "that", "were", "never", "ordered", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1732", "db_id": "riding_club", "query": "select player_name from player where player_id not in (select player_id from player_coach)", "query_toks": ["SELECT", "Player_name", "FROM", "player", "WHERE", "Player_ID", "NOT", "IN", "(", "SELECT", "Player_ID", "FROM", "player_coach", ")"], "query_toks_no_value": ["select", "player_name", "from", "player", "where", "player_id", "not", "in", "(", "select", "player_id", "from", "player_coach", ")"], "question": "List the names of players that do not have coaches.", "question_toks": ["List", "the", "names", "of", "players", "that", "do", "not", "have", "coaches", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2710", "db_id": "storm_record", "query": "select region_name from region where region_id not in (select region_id from affected_region)", "query_toks": ["SELECT", "region_name", "FROM", "region", "WHERE", "region_id", "NOT", "IN", "(", "SELECT", "region_id", "FROM", "affected_region", ")"], "query_toks_no_value": ["select", "region_name", "from", "region", "where", "region_id", "not", "in", "(", "select", "region_id", "from", "affected_region", ")"], "question": "Show the name for regions not affected.", "question_toks": ["Show", "the", "name", "for", "regions", "not", "affected", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2711", "db_id": "storm_record", "query": "select region_name from region where region_id not in (select region_id from affected_region)", "query_toks": ["SELECT", "region_name", "FROM", "region", "WHERE", "region_id", "NOT", "IN", "(", "SELECT", "region_id", "FROM", "affected_region", ")"], "query_toks_no_value": ["select", "region_name", "from", "region", "where", "region_id", "not", "in", "(", "select", "region_id", "from", "affected_region", ")"], "question": "What are the names of regions that were not affected?", "question_toks": ["What", "are", "the", "names", "of", "regions", "that", "were", "not", "affected", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0766", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["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", "=", "value", ")"], "question": "What is the total number of people living in the nations that do not use English?", "question_toks": ["What", "is", "the", "total", "number", "of", "people", "living", "in", "the", "nations", "that", "do", "not", "use", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2259", "db_id": "machine_repair", "query": "select name from technician where technician_id not in (select technician_id from repair_assignment)", "query_toks": ["SELECT", "Name", "FROM", "technician", "WHERE", "technician_id", "NOT", "IN", "(", "SELECT", "technician_id", "FROM", "repair_assignment", ")"], "query_toks_no_value": ["select", "name", "from", "technician", "where", "technician_id", "not", "in", "(", "select", "technician_id", "from", "repair_assignment", ")"], "question": "List the names of technicians who have not been assigned to repair machines.", "question_toks": ["List", "the", "names", "of", "technicians", "who", "have", "not", "been", "assigned", "to", "repair", "machines", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[true, 8, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2260", "db_id": "machine_repair", "query": "select name from technician where technician_id not in (select technician_id from repair_assignment)", "query_toks": ["SELECT", "Name", "FROM", "technician", "WHERE", "technician_id", "NOT", "IN", "(", "SELECT", "technician_id", "FROM", "repair_assignment", ")"], "query_toks_no_value": ["select", "name", "from", "technician", "where", "technician_id", "not", "in", "(", "select", "technician_id", "from", "repair_assignment", ")"], "question": "What are the names of the technicians that have not been assigned to repair machines?", "question_toks": ["What", "are", "the", "names", "of", "the", "technicians", "that", "have", "not", "been", "assigned", "to", "repair", "machines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[true, 8, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6464", "db_id": "cre_Docs_and_Epenses", "query": "select count(*) from documents where document_id not in ( select document_id from documents_with_expenses )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_id", "NOT", "IN", "(", "SELECT", "document_id", "FROM", "Documents_with_expenses", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents", "where", "document_id", "not", "in", "(", "select", "document_id", "from", "documents_with_expenses", ")"], "question": "Count the number of documents that do not have expenses.", "question_toks": ["Count", "the", "number", "of", "documents", "that", "do", "not", "have", "expenses", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1560", "db_id": "customers_and_invoices", "query": "select count(*) from customers where customer_id not in (select customer_id from accounts)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Accounts", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "accounts", ")"], "question": "Count the number of customers who do not have an account.", "question_toks": ["Count", "the", "number", "of", "customers", "who", "do", "not", "have", "an", "account", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4158", "db_id": "film_rank", "query": "select title , director from film where film_id not in (select film_id from film_market_estimation as t1 join market as t2 on t1.market_id = t2.market_id where country = 'china')", "query_toks": ["SELECT", "title", ",", "director", "FROM", "film", "WHERE", "film_id", "NOT", "IN", "(", "SELECT", "film_id", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.market_id", "=", "T2.Market_ID", "WHERE", "country", "=", "'China", "'", ")"], "query_toks_no_value": ["select", "title", ",", "director", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "country", "=", "value", ")"], "question": "What are the titles and directors of the films were never presented in China?", "question_toks": ["What", "are", "the", "titles", "and", "directors", "of", "the", "films", "were", "never", "presented", "in", "China", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"China\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4159", "db_id": "film_rank", "query": "select title , director from film where film_id not in (select film_id from film_market_estimation as t1 join market as t2 on t1.market_id = t2.market_id where country = 'china')", "query_toks": ["SELECT", "title", ",", "director", "FROM", "film", "WHERE", "film_id", "NOT", "IN", "(", "SELECT", "film_id", "FROM", "film_market_estimation", "AS", "T1", "JOIN", "market", "AS", "T2", "ON", "T1.market_id", "=", "T2.Market_ID", "WHERE", "country", "=", "'China", "'", ")"], "query_toks_no_value": ["select", "title", ",", "director", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", "as", "t1", "join", "market", "as", "t2", "on", "t1", ".", "market_id", "=", "t2", ".", "market_id", "where", "country", "=", "value", ")"], "question": "Return the titles and directors of films that were never in the market of China.", "question_toks": ["Return", "the", "titles", "and", "directors", "of", "films", "that", "were", "never", "in", "the", "market", "of", "China", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"China\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0062", "db_id": "student_assessment", "query": "select student_id from students where student_id not in (select student_id from student_course_attendance)", "query_toks": ["SELECT", "student_id", "FROM", "students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")"], "query_toks_no_value": ["select", "student_id", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")"], "question": "List the id of students who never attends courses?", "question_toks": ["List", "the", "id", "of", "students", "who", "never", "attends", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[true, 8, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN", "WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0063", "db_id": "student_assessment", "query": "select student_id from students where student_id not in (select student_id from student_course_attendance)", "query_toks": ["SELECT", "student_id", "FROM", "students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")"], "query_toks_no_value": ["select", "student_id", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")"], "question": "What are the ids of every student who has never attended a course?", "question_toks": ["What", "are", "the", "ids", "of", "every", "student", "who", "has", "never", "attended", "a", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[true, 8, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN", "WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3005", "db_id": "sakila_1", "query": "select first_name from customer where customer_id not in( select customer_id from rental where rental_date > '2005-08-23 02:06:01' )", "query_toks": ["SELECT", "first_name", "FROM", "customer", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "rental", "WHERE", "rental_date", ">", "'2005-08-23", "02:06:01", "'", ")"], "query_toks_no_value": ["select", "first_name", "from", "customer", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "rental", "where", "rental_date", ">", "value", ")"], "question": "Return the first names of customers who did not rented a film after the date '2005-08-23 02:06:01'.", "question_toks": ["Return", "the", "first", "names", "of", "customers", "who", "did", "not", "rented", "a", "film", "after", "the", "date", "'2005-08-23", "02:06:01", "'", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[true, 8, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 71, false], null]]]], "where": [[false, 3, [0, [0, 69, false], null], "\"2005-08-23 02:06:01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6361", "db_id": "school_bus", "query": "select school , type from school where school_id not in (select school_id from school_bus)", "query_toks": ["SELECT", "school", ",", "TYPE", "FROM", "school", "WHERE", "school_id", "NOT", "IN", "(", "SELECT", "school_id", "FROM", "school_bus", ")"], "query_toks_no_value": ["select", "school", ",", "type", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "school_bus", ")"], "question": "Show the school name and type for schools without a school bus.", "question_toks": ["Show", "the", "school", "name", "and", "type", "for", "schools", "without", "a", "school", "bus", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0854", "db_id": "orchestra", "query": "select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance)", "query_toks": ["SELECT", "Orchestra", "FROM", "orchestra", "WHERE", "Orchestra_ID", "NOT", "IN", "(", "SELECT", "Orchestra_ID", "FROM", "performance", ")"], "query_toks_no_value": ["select", "orchestra", "from", "orchestra", "where", "orchestra_id", "not", "in", "(", "select", "orchestra_id", "from", "performance", ")"], "question": "List the names of orchestras that have no performance.", "question_toks": ["List", "the", "names", "of", "orchestras", "that", "have", "no", "performance", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0764", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "isofficial", "=", "value", ")"], "question": "What is average life expectancy in the countries where English is not the official language?", "question_toks": ["What", "is", "average", "life", "expectancy", "in", "the", "countries", "where", "English", "is", "not", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0765", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "isofficial", "=", "value", ")"], "question": "Give the mean life expectancy of countries in which English is not the official language.", "question_toks": ["Give", "the", "mean", "life", "expectancy", "of", "countries", "in", "which", "English", "is", "not", "the", "official", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG", "NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5790", "db_id": "customer_complaints", "query": "select product_price from products where product_id not in (select product_id from complaints)", "query_toks": ["SELECT", "product_price", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "complaints", ")"], "query_toks_no_value": ["select", "product_price", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "complaints", ")"], "question": "Find the prices of products which has never received a single complaint.", "question_toks": ["Find", "the", "prices", "of", "products", "which", "has", "never", "received", "a", "single", "complaint", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[true, 8, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5791", "db_id": "customer_complaints", "query": "select product_price from products where product_id not in (select product_id from complaints)", "query_toks": ["SELECT", "product_price", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "complaints", ")"], "query_toks_no_value": ["select", "product_price", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "complaints", ")"], "question": "What are the prices of products that have never gotten a complaint?", "question_toks": ["What", "are", "the", "prices", "of", "products", "that", "have", "never", "gotten", "a", "complaint", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[true, 8, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3085", "db_id": "loan_1", "query": "select avg(credit_score) from customer where cust_id not in (select cust_id from loan)", "query_toks": ["SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", "WHERE", "cust_id", "NOT", "IN", "(", "SELECT", "cust_id", "FROM", "loan", ")"], "query_toks_no_value": ["select", "avg", "(", "credit_score", ")", "from", "customer", "where", "cust_id", "not", "in", "(", "select", "cust_id", "from", "loan", ")"], "question": "What is the average credit score for customers who have never taken a loan?", "question_toks": ["What", "is", "the", "average", "credit", "score", "for", "customers", "who", "have", "never", "taken", "a", "loan", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5316", "db_id": "manufactory_1", "query": "select count(distinct name) from products where name not in (select t1.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code where t2.name = 'sony')", "query_toks": ["SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "products", "WHERE", "name", "NOT", "IN", "(", "SELECT", "T1.name", "FROM", "products", "AS", "T1", "JOIN", "manufacturers", "AS", "T2", "ON", "T1.Manufacturer", "=", "T2.code", "WHERE", "T2.name", "=", "'Sony", "'", ")"], "query_toks_no_value": ["select", "count", "(", "distinct", "name", ")", "from", "products", "where", "name", "not", "in", "(", "select", "t1", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "where", "t2", ".", "name", "=", "value", ")"], "question": "Find number of products which Sony does not make.", "question_toks": ["Find", "number", "of", "products", "which", "Sony", "does", "not", "make", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 7, true], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Sony\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0544", "db_id": "student_transcripts_tracking", "query": "select semester_name from semesters where semester_id not in( select semester_id from student_enrolment )", "query_toks": ["SELECT", "semester_name", "FROM", "Semesters", "WHERE", "semester_id", "NOT", "IN", "(", "SELECT", "semester_id", "FROM", "Student_Enrolment", ")"], "query_toks_no_value": ["select", "semester_name", "from", "semesters", "where", "semester_id", "not", "in", "(", "select", "semester_id", "from", "student_enrolment", ")"], "question": "What is the name of the semester with no students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "semester", "with", "no", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4358", "db_id": "tracking_grants_for_research", "query": "select project_details from projects where project_id not in ( select project_id from project_outcomes )", "query_toks": ["SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_outcomes", ")"], "query_toks_no_value": ["select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_outcomes", ")"], "question": "Which projects have no outcome? List the project details.", "question_toks": ["Which", "projects", "have", "no", "outcome", "?", "List", "the", "project", "details", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[true, 8, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4359", "db_id": "tracking_grants_for_research", "query": "select project_details from projects where project_id not in ( select project_id from project_outcomes )", "query_toks": ["SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_outcomes", ")"], "query_toks_no_value": ["select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_outcomes", ")"], "question": "What are the details of the project with no outcomes?", "question_toks": ["What", "are", "the", "details", "of", "the", "project", "with", "no", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[true, 8, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1191", "db_id": "election_representative", "query": "select name from representative where representative_id not in (select representative_id from election)", "query_toks": ["SELECT", "Name", "FROM", "representative", "WHERE", "Representative_ID", "NOT", "IN", "(", "SELECT", "Representative_ID", "FROM", "election", ")"], "query_toks_no_value": ["select", "name", "from", "representative", "where", "representative_id", "not", "in", "(", "select", "representative_id", "from", "election", ")"], "question": "List the names of representatives that have not participated in elections listed here.", "question_toks": ["List", "the", "names", "of", "representatives", "that", "have", "not", "participated", "in", "elections", "listed", "here", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0149", "db_id": "bike_1", "query": "select avg(bikes_available) from status where station_id not in (select id from station where city = \"palo alto\")", "query_toks": ["SELECT", "avg", "(", "bikes_available", ")", "FROM", "status", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", ")"], "query_toks_no_value": ["select", "avg", "(", "bikes_available", ")", "from", "status", "where", "station_id", "not", "in", "(", "select", "id", "from", "station", "where", "city", "=", "value", ")"], "question": "What is the average bike availability in stations that are not located in Palo Alto?", "question_toks": ["What", "is", "the", "average", "bike", "availability", "in", "stations", "that", "are", "not", "located", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0150", "db_id": "bike_1", "query": "select avg(bikes_available) from status where station_id not in (select id from station where city = \"palo alto\")", "query_toks": ["SELECT", "avg", "(", "bikes_available", ")", "FROM", "status", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "Palo", "Alto", "''", ")"], "query_toks_no_value": ["select", "avg", "(", "bikes_available", ")", "from", "status", "where", "station_id", "not", "in", "(", "select", "id", "from", "station", "where", "city", "=", "value", ")"], "question": "What is the average bike availablility for stations not in Palo Alto?", "question_toks": ["What", "is", "the", "average", "bike", "availablility", "for", "stations", "not", "in", "Palo", "Alto", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Palo Alto\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4480", "db_id": "network_2", "query": "select count(distinct name) from personfriend where friend not in (select name from person where city = 'austin')", "query_toks": ["SELECT", "count", "(", "DISTINCT", "name", ")", "FROM", "PersonFriend", "WHERE", "friend", "NOT", "IN", "(", "SELECT", "name", "FROM", "person", "WHERE", "city", "=", "'Austin", "'", ")"], "query_toks_no_value": ["select", "count", "(", "distinct", "name", ")", "from", "personfriend", "where", "friend", "not", "in", "(", "select", "name", "from", "person", "where", "city", "=", "value", ")"], "question": "What is the total number of people who has no friend living in the city of Austin.", "question_toks": ["What", "is", "the", "total", "number", "of", "people", "who", "has", "no", "friend", "living", "in", "the", "city", "of", "Austin", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Austin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2026", "db_id": "gas_company", "query": "select company , main_industry from company where company_id not in (select company_id from station_company)", "query_toks": ["SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "company_id", "NOT", "IN", "(", "SELECT", "company_id", "FROM", "station_company", ")"], "query_toks_no_value": ["select", "company", ",", "main_industry", "from", "company", "where", "company_id", "not", "in", "(", "select", "company_id", "from", "station_company", ")"], "question": "What are the main industries of the companies without gas stations and what are the companies?", "question_toks": ["What", "are", "the", "main", "industries", "of", "the", "companies", "without", "gas", "stations", "and", "what", "are", "the", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5782", "db_id": "customer_complaints", "query": "select email_address , phone_number from customers where customer_id not in (select customer_id from complaints)", "query_toks": ["SELECT", "email_address", ",", "phone_number", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "complaints", ")"], "query_toks_no_value": ["select", "email_address", ",", "phone_number", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "complaints", ")"], "question": "Find the email and phone number of the customers who have never filed a complaint before.", "question_toks": ["Find", "the", "email", "and", "phone", "number", "of", "the", "customers", "who", "have", "never", "filed", "a", "complaint", "before", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5783", "db_id": "customer_complaints", "query": "select email_address , phone_number from customers where customer_id not in (select customer_id from complaints)", "query_toks": ["SELECT", "email_address", ",", "phone_number", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "complaints", ")"], "query_toks_no_value": ["select", "email_address", ",", "phone_number", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "complaints", ")"], "question": "What are the emails and phone numbers of custoemrs who have never filed a complaint?", "question_toks": ["What", "are", "the", "emails", "and", "phone", "numbers", "of", "custoemrs", "who", "have", "never", "filed", "a", "complaint", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5656", "db_id": "customers_and_products_contacts", "query": "select customer_name , customer_phone from customers where customer_id not in (select customer_id from customer_address_history)", "query_toks": ["SELECT", "customer_name", ",", "customer_phone", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "customer_address_history", ")"], "query_toks_no_value": ["select", "customer_name", ",", "customer_phone", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_address_history", ")"], "question": "Show names and phones of customers who do not have address information.", "question_toks": ["Show", "names", "and", "phones", "of", "customers", "who", "do", "not", "have", "address", "information", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3140", "db_id": "assets_maintenance", "query": "select first_name , last_name from maintenance_engineers where engineer_id not in (select engineer_id from engineer_visits)", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "Maintenance_Engineers", "WHERE", "engineer_id", "NOT", "IN", "(", "SELECT", "engineer_id", "FROM", "Engineer_Visits", ")"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "maintenance_engineers", "where", "engineer_id", "not", "in", "(", "select", "engineer_id", "from", "engineer_visits", ")"], "question": "Which engineers have never visited to maintain the assets? List the engineer first name and last name.", "question_toks": ["Which", "engineers", "have", "never", "visited", "to", "maintain", "the", "assets", "?", "List", "the", "engineer", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]]]], "where": [[true, 8, [0, [0, 34, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5764", "db_id": "dorm_1", "query": "select t1.fname , t1.age from student as t1 join lives_in as t2 on t1.stuid = t2.stuid where t2.dormid not in (select t3.dormid from has_amenity as t3 join dorm_amenity as t4 on t3.amenid = t4.amenid where t4.amenity_name = 'tv lounge')", "query_toks": ["SELECT", "T1.fname", ",", "T1.age", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.dormid", "NOT", "IN", "(", "SELECT", "T3.dormid", "FROM", "has_amenity", "AS", "T3", "JOIN", "dorm_amenity", "AS", "T4", "ON", "T3.amenid", "=", "T4.amenid", "WHERE", "T4.amenity_name", "=", "'TV", "Lounge", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "fname", ",", "t1", ".", "age", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "dormid", "not", "in", "(", "select", "t3", ".", "dormid", "from", "has_amenity", "as", "t3", "join", "dorm_amenity", "as", "t4", "on", "t3", ".", "amenid", "=", "t4", ".", "amenid", "where", "t4", ".", "amenity_name", "=", "value", ")"], "question": "Find the first name and age of students who are living in the dorms that do not have amenity TV Lounge.", "question_toks": ["Find", "the", "first", "name", "and", "age", "of", "students", "who", "are", "living", "in", "the", "dorms", "that", "do", "not", "have", "amenity", "TV", "Lounge", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"TV Lounge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0784", "db_id": "world_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "value", "and", "t1", ".", "name", "not", "in", "(", "select", "t3", ".", "name", "from", "country", "as", "t3", "join", "countrylanguage", "as", "t4", "on", "t3", ".", "code", "=", "t4", ".", "countrycode", "where", "t4", ".", "isofficial", "=", "value", "and", "t4", ".", "language", "=", "value", ")"], "question": "Which cities are in European countries where English is not the official language?", "question_toks": ["Which", "cities", "are", "in", "European", "countries", "where", "English", "is", "not", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Europe\"", null], "and", [true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"T\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0785", "db_id": "world_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "country", "as", "t1", "join", "city", "as", "t2", "on", "t2", ".", "countrycode", "=", "t1", ".", "code", "where", "t1", ".", "continent", "=", "value", "and", "t1", ".", "name", "not", "in", "(", "select", "t3", ".", "name", "from", "country", "as", "t3", "join", "countrylanguage", "as", "t4", "on", "t3", ".", "code", "=", "t4", ".", "countrycode", "where", "t4", ".", "isofficial", "=", "value", "and", "t4", ".", "language", "=", "value", ")"], "question": "What are the names of cities in Europe for which English is not the official language?", "question_toks": ["What", "are", "the", "names", "of", "cities", "in", "Europe", "for", "which", "English", "is", "not", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Europe\"", null], "and", [true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"T\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_NOT_IN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6774", "db_id": "activity_1", "query": "select facid from faculty_participates_in intersect select advisor from student", "query_toks": ["SELECT", "FacID", "FROM", "Faculty_participates_in", "INTERSECT", "SELECT", "advisor", "FROM", "Student"], "query_toks_no_value": ["select", "facid", "from", "faculty_participates_in", "intersect", "select", "advisor", "from", "student"], "question": "What are ids of the faculty members who not only participate in an activity but also advise a student.", "question_toks": ["What", "are", "ids", "of", "the", "faculty", "members", "who", "not", "only", "participate", "in", "an", "activity", "but", "also", "advise", "a", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_REDUNDANT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0153", "db_id": "car_1", "query": "select distinct year from cars_data where weight between 3000 and 4000;", "query_toks": ["select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "3000", "and", "4000", ";"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "value", "and", "value"], "question": "In which years cars were produced weighing no less than 3000 and no more than 4000 ?", "question_toks": ["In", "which", "years", "cars", "were", "produced", "weighing", "no", "less", "than", "3000", "and", "no", "more", "than", "4000", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 3000.0, 4000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "NEGATION", "_NEGATION_OTHER_WORDS", "AND_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0871", "db_id": "chinook_1", "query": "select t1.lastname from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) <= 20", "query_toks": ["SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "EMPLOYEE", "AS", "T2", "ON", "T1.SupportRepId", "=", "T2.EmployeeId", "GROUP", "BY", "T1.SupportRepId", "HAVING", "COUNT", "(", "*", ")", "<", "=", "20"], "query_toks_no_value": ["select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(", "*", ")", "<", "=", "value"], "question": "Please show the employee last names that serves no more than 20 customers.", "question_toks": ["Please", "show", "the", "employee", "last", "names", "that", "serves", "no", "more", "than", "20", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 6, [0, [3, 0, false], null], 20.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5171", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = 'photo' intersect select t1.service_type_description from ref_service_types as t1 join services as t2 on t1.service_type_code = t2.service_type_code where t2.product_name = 'film'", "query_toks": ["SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Name", "=", "'photo", "'", "INTERSECT", "SELECT", "T1.Service_Type_Description", "FROM", "Ref_Service_Types", "AS", "T1", "JOIN", "Services", "AS", "T2", "ON", "T1.Service_Type_Code", "=", "T2.Service_Type_Code", "WHERE", "T2.Product_Name", "=", "'film", "'"], "query_toks_no_value": ["select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value", "intersect", "select", "t1", ".", "service_type_description", "from", "ref_service_types", "as", "t1", "join", "services", "as", "t2", "on", "t1", ".", "service_type_code", "=", "t2", ".", "service_type_code", "where", "t2", ".", "product_name", "=", "value"], "question": "Give me the description of the service type that offers not only the photo product but also the film product.", "question_toks": ["Give", "me", "the", "description", "of", "the", "service", "type", "that", "offers", "not", "only", "the", "photo", "product", "but", "also", "the", "film", "product", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 15]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 85, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 88, false], null], "\"photo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 15]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 85, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 88, false], null], "\"film\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_REDUNDANT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4516", "db_id": "document_management", "query": "select document_type_code from documents group by document_type_code having sum(access_count) > 10000", "query_toks": ["SELECT", "document_type_code", "FROM", "documents", "GROUP", "BY", "document_type_code", "HAVING", "sum", "(", "access_count", ")", ">", "10000"], "query_toks_no_value": ["select", "document_type_code", "from", "documents", "group", "by", "document_type_code", "having", "sum", "(", "access_count", ")", ">", "value"], "question": "Return the codes of the document types that do not have a total access count of over 10000.", "question_toks": ["Return", "the", "codes", "of", "the", "document", "types", "that", "do", "not", "have", "a", "total", "access", "count", "of", "over", "10000", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [[false, 3, [0, [4, 21, false], null], 10000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OPPOSITE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3415", "db_id": "hr_1", "query": "select hire_date from employees where first_name not like '%m%'", "query_toks": ["SELECT", "hire_date", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'"], "query_toks_no_value": ["select", "hire_date", "from", "employees", "where", "first_name", "not", "like", "value"], "question": "when is the hire date for those employees whose first name does not containing the letter M?", "question_toks": ["when", "is", "the", "hire", "date", "for", "those", "employees", "whose", "first", "name", "does", "not", "containing", "the", "letter", "M", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3416", "db_id": "hr_1", "query": "select hire_date from employees where first_name not like '%m%'", "query_toks": ["SELECT", "hire_date", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'"], "query_toks_no_value": ["select", "hire_date", "from", "employees", "where", "first_name", "not", "like", "value"], "question": "On what dates were employees without the letter M in their first names hired?", "question_toks": ["On", "what", "dates", "were", "employees", "without", "the", "letter", "M", "in", "their", "first", "names", "hired", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3417", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name not like '%m%'", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value"], "question": "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M.", "question_toks": ["display", "the", "full", "name", "(", "first", "and", "last", ")", ",", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employees", "whose", "first", "name", "does", "not", "containing", "the", "letter", "M", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3418", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name not like '%m%'", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value"], "question": "What are the full name, hire date, salary, and department id for employees without the letter M in their first name?", "question_toks": ["What", "are", "the", "full", "name", ",", "hire", "date", ",", "salary", ",", "and", "department", "id", "for", "employees", "without", "the", "letter", "M", "in", "their", "first", "name", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3419", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name not like '%m%' order by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'", "ORDER", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value", "order", "by", "department_id"], "question": "display the full name (first and last), hire date, salary, and department number for those employees whose first name does not containing the letter M and make the result set in ascending order by department number.", "question_toks": ["display", "the", "full", "name", "(", "first", "and", "last", ")", ",", "hire", "date", ",", "salary", ",", "and", "department", "number", "for", "those", "employees", "whose", "first", "name", "does", "not", "containing", "the", "letter", "M", "and", "make", "the", "result", "set", "in", "ascending", "order", "by", "department", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3420", "db_id": "hr_1", "query": "select first_name , last_name , hire_date , salary , department_id from employees where first_name not like '%m%' order by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "FROM", "employees", "WHERE", "first_name", "NOT", "LIKE", "'", "%", "M", "%", "'", "ORDER", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", ",", "salary", ",", "department_id", "from", "employees", "where", "first_name", "not", "like", "value", "order", "by", "department_id"], "question": "What are the full name, hire data, salary and department id for employees without the letter M in their first name, ordered by ascending department id?", "question_toks": ["What", "are", "the", "full", "name", ",", "hire", "data", ",", "salary", "and", "department", "id", "for", "employees", "without", "the", "letter", "M", "in", "their", "first", "name", ",", "ordered", "by", "ascending", "department", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[true, 9, [0, [0, 15, false], null], "\"%M%\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 24, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3426", "db_id": "hr_1", "query": "select first_name , last_name , salary from employees where commission_pct = \"null\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "commission_pct", "=", "value"], "question": "Return the full names and salaries of employees with null commissions.", "question_toks": ["Return", "the", "full", "names", "and", "salaries", "of", "employees", "with", "null", "commissions", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3445", "db_id": "hr_1", "query": "select email from employees where commission_pct = \"null\" and salary between 7000 and 12000 and department_id = 50", "query_toks": ["SELECT", "email", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''", "AND", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "50"], "query_toks_no_value": ["select", "email", "from", "employees", "where", "commission_pct", "=", "value", "and", "salary", "between", "value", "and", "value", "and", "department_id", "=", "value"], "question": "display the emails of the employees who have no commission percentage and salary within the range 7000 to 12000 and works in that department which number is 50.", "question_toks": ["display", "the", "emails", "of", "the", "employees", "who", "have", "no", "commission", "percentage", "and", "salary", "within", "the", "range", "7000", "to", "12000", "and", "works", "in", "that", "department", "which", "number", "is", "50", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"null\"", null], "and", [false, 1, [0, [0, 21, false], null], 7000.0, 12000.0], "and", [false, 2, [0, [0, 24, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3446", "db_id": "hr_1", "query": "select email from employees where commission_pct = \"null\" and salary between 7000 and 12000 and department_id = 50", "query_toks": ["SELECT", "email", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''", "AND", "salary", "BETWEEN", "7000", "AND", "12000", "AND", "department_id", "=", "50"], "query_toks_no_value": ["select", "email", "from", "employees", "where", "commission_pct", "=", "value", "and", "salary", "between", "value", "and", "value", "and", "department_id", "=", "value"], "question": "What are the emails of employees with null commission, salary between 7000 and 12000, and who work in department 50?", "question_toks": ["What", "are", "the", "emails", "of", "employees", "with", "null", "commission", ",", "salary", "between", "7000", "and", "12000", ",", "and", "who", "work", "in", "department", "50", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"null\"", null], "and", [false, 1, [0, [0, 21, false], null], 7000.0, 12000.0], "and", [false, 2, [0, [0, 24, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3863", "db_id": "insurance_policies", "query": "select date_claim_made from claims where amount_settled <= ( select avg(amount_settled) from claims )", "query_toks": ["SELECT", "Date_Claim_Made", "FROM", "Claims", "WHERE", "Amount_Settled", "<", "=", "(", "SELECT", "avg", "(", "Amount_Settled", ")", "FROM", "Claims", ")"], "query_toks_no_value": ["select", "date_claim_made", "from", "claims", "where", "amount_settled", "<", "=", "(", "select", "avg", "(", "amount_settled", ")", "from", "claims", ")"], "question": "Return the claim start date for the claims whose claimed amount is no more than the average", "question_toks": ["Return", "the", "claim", "start", "date", "for", "the", "claims", "whose", "claimed", "amount", "is", "no", "more", "than", "the", "average"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 6, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0413", "db_id": "museum_visit", "query": "select avg(age) from visitor where level_of_membership <= 4", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "visitor", "WHERE", "Level_of_membership", "<", "=", "4"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "visitor", "where", "level_of_membership", "<", "=", "value"], "question": "What is the average age of the visitors whose membership level is not higher than 4?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "visitors", "whose", "membership", "level", "is", "not", "higher", "than", "4", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 8, false], null]]]], "where": [[false, 6, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6192", "db_id": "music_4", "query": "select t1.famous_title from artist as t1 join volume as t2 on t1.artist_id = t2.artist_id where t2.weeks_on_top > 2 intersect select t1.famous_title from artist as t1 join volume as t2 on t1.artist_id = t2.artist_id where t2.weeks_on_top < 2", "query_toks": ["SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", ">", "2", "INTERSECT", "SELECT", "T1.Famous_Title", "FROM", "artist", "AS", "T1", "JOIN", "volume", "AS", "T2", "ON", "T1.Artist_ID", "=", "T2.Artist_ID", "WHERE", "T2.Weeks_on_Top", "<", "2"], "query_toks_no_value": ["select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", ">", "value", "intersect", "select", "t1", ".", "famous_title", "from", "artist", "as", "t1", "join", "volume", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t2", ".", "weeks_on_top", "<", "value"], "question": "What are the famous titles of artists who have not only had volumes that spent more than 2 weeks on top but also volumes that spent less than 2 weeks on top?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "who", "have", "not", "only", "had", "volumes", "that", "spent", "more", "than", "2", "weeks", "on", "top", "but", "also", "volumes", "that", "spent", "less", "than", "2", "weeks", "on", "top", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 2.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1047", "db_id": "phone_1", "query": "select count(*) from chip_model where wifi = 'no'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "chip_model", "WHERE", "wifi", "=", "'No", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "chip_model", "where", "wifi", "=", "value"], "question": "Count the number of chip model that do not have wifi.", "question_toks": ["Count", "the", "number", "of", "chip", "model", "that", "do", "not", "have", "wifi", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"No\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION", "_NEGATION_OTHER_WORDS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0501", "db_id": "battle_death", "query": "select name from battle where bulgarian_commander = 'kaloyan' and latin_commander = 'baldwin i'", "query_toks": ["SELECT", "name", "FROM", "battle", "WHERE", "bulgarian_commander", "=", "'Kaloyan", "'", "AND", "latin_commander", "=", "'Baldwin", "I", "'"], "query_toks_no_value": ["select", "name", "from", "battle", "where", "bulgarian_commander", "=", "value", "and", "latin_commander", "=", "value"], "question": "What are the distinct battle names which are between bulgarian commander 'Kaloyan' and latin commander 'Baldwin I'?", "question_toks": ["What", "are", "the", "distinct", "battle", "names", "which", "are", "between", "bulgarian", "commander", "'Kaloyan", "'", "and", "latin", "commander", "'Baldwin", "I", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Kaloyan\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Baldwin I\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0504", "db_id": "battle_death", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "date", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "name", "=", "value", "intersect", "select", "t1", ".", "name", ",", "t1", ".", "date", "from", "battle", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "lost_in_battle", "where", "t2", ".", "name", "=", "value"], "question": "List the name and date the battle that has lost the ship named 'Lettice' and the ship named 'HMS Atalanta'", "question_toks": ["List", "the", "name", "and", "date", "the", "battle", "that", "has", "lost", "the", "ship", "named", "'Lettice", "'", "and", "the", "ship", "named", "'HMS", "Atalanta", "'"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Lettice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"HMS Atalanta\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0154", "db_id": "car_1", "query": "select distinct year from cars_data where weight between 3000 and 4000;", "query_toks": ["select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "3000", "and", "4000", ";"], "query_toks_no_value": ["select", "distinct", "year", "from", "cars_data", "where", "weight", "between", "value", "and", "value"], "question": "What are the different years in which there were cars produced that weighed less than 4000 and also cars that weighted more than 3000 ?", "question_toks": ["What", "are", "the", "different", "years", "in", "which", "there", "were", "cars", "produced", "that", "weighed", "less", "than", "4000", "and", "also", "cars", "that", "weighted", "more", "than", "3000", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 3000.0, 4000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0168", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "<", "value"], "question": "Among the cars that do not have the minimum horsepower , what are the make ids and names of all those with less than 4 cylinders ?", "question_toks": ["Among", "the", "cars", "that", "do", "not", "have", "the", "minimum", "horsepower", ",", "what", "are", "the", "make", "ids", "and", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_JOIN_1", "_AND_TO_COLUMNS", "_NEGATION_ALL", "DEJOIN_TOTAL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0014", "db_id": "concert_singer", "query": "select location , name from stadium where capacity between 5000 and 10000", "query_toks": ["SELECT", "LOCATION", ",", "name", "FROM", "stadium", "WHERE", "capacity", "BETWEEN", "5000", "AND", "10000"], "query_toks_no_value": ["select", "location", ",", "name", "from", "stadium", "where", "capacity", "between", "value", "and", "value"], "question": "Show location and name for all stadiums with a capacity between 5000 and 10000.", "question_toks": ["Show", "location", "and", "name", "for", "all", "stadiums", "with", "a", "capacity", "between", "5000", "and", "10000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 5000.0, 10000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_COLUMNS", "AND_IN_NL", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0015", "db_id": "concert_singer", "query": "select location , name from stadium where capacity between 5000 and 10000", "query_toks": ["SELECT", "LOCATION", ",", "name", "FROM", "stadium", "WHERE", "capacity", "BETWEEN", "5000", "AND", "10000"], "query_toks_no_value": ["select", "location", ",", "name", "from", "stadium", "where", "capacity", "between", "value", "and", "value"], "question": "What are the locations and names of all stations with capacity between 5000 and 10000?", "question_toks": ["What", "are", "the", "locations", "and", "names", "of", "all", "stations", "with", "capacity", "between", "5000", "and", "10000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 5000.0, 10000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_COLUMNS", "AND_IN_NL", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0030", "db_id": "concert_singer", "query": "select country from singer where age > 40 intersect select country from singer where age < 30", "query_toks": ["SELECT", "country", "FROM", "singer", "WHERE", "age", ">", "40", "INTERSECT", "SELECT", "country", "FROM", "singer", "WHERE", "age", "<", "30"], "query_toks_no_value": ["select", "country", "from", "singer", "where", "age", ">", "value", "intersect", "select", "country", "from", "singer", "where", "age", "<", "value"], "question": "Show countries where a singer above age 40 and a singer below 30 are from.", "question_toks": ["Show", "countries", "where", "a", "singer", "above", "age", "40", "and", "a", "singer", "below", "30", "are", "from", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0041", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value", "intersect", "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value"], "question": "Find the name and location of the stadiums which some concerts happened in the years of both 2014 and 2015.", "question_toks": ["Find", "the", "name", "and", "location", "of", "the", "stadiums", "which", "some", "concerts", "happened", "in", "the", "years", "of", "both", "2014", "and", "2015", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_JOIN_1", "_ANY_REFORMULATION", "_AND_TO_INTERSECT", "DEJOIN_TOTAL", "ANY_SOME_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0042", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value", "intersect", "select", "t2", ".", "name", ",", "t2", ".", "location", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", "=", "value"], "question": "What are the names and locations of the stadiums that had concerts that occurred in both 2014 and 2015?", "question_toks": ["What", "are", "the", "names", "and", "locations", "of", "the", "stadiums", "that", "had", "concerts", "that", "occurred", "in", "both", "2014", "and", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "AND_IN_NL", "_AND_TO_INTERSECT", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0918", "db_id": "dog_kennels", "query": "select state from owners intersect select state from professionals", "query_toks": ["SELECT", "state", "FROM", "Owners", "INTERSECT", "SELECT", "state", "FROM", "Professionals"], "query_toks_no_value": ["select", "state", "from", "owners", "intersect", "select", "state", "from", "professionals"], "question": "Which states have both owners and professionals living there?", "question_toks": ["Which", "states", "have", "both", "owners", "and", "professionals", "living", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0919", "db_id": "dog_kennels", "query": "select state from owners intersect select state from professionals", "query_toks": ["SELECT", "state", "FROM", "Owners", "INTERSECT", "SELECT", "state", "FROM", "Professionals"], "query_toks_no_value": ["select", "state", "from", "owners", "intersect", "select", "state", "from", "professionals"], "question": "Find the states where both owners and professionals live.", "question_toks": ["Find", "the", "states", "where", "both", "owners", "and", "professionals", "live", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0922", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "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", "(", "*", ")", ">", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"Indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_WITH_OR_IN_NL", "AND_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "_AND_TO_INTERSECT", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0293", "db_id": "employee_hire_evaluation", "query": "select district from shop where number_products < 3000 intersect select district from shop where number_products > 10000", "query_toks": ["SELECT", "district", "FROM", "shop", "WHERE", "Number_products", "<", "3000", "INTERSECT", "SELECT", "district", "FROM", "shop", "WHERE", "Number_products", ">", "10000"], "query_toks_no_value": ["select", "district", "from", "shop", "where", "number_products", "<", "value", "intersect", "select", "district", "from", "shop", "where", "number_products", ">", "value"], "question": "Which district has both stores with less than 3000 products and stores with more than 10000 products?", "question_toks": ["Which", "district", "has", "both", "stores", "with", "less", "than", "3000", "products", "and", "stores", "with", "more", "than", "10000", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 4, [0, [0, 9, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 10000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0237", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "intersect", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"], "question": "Find all airlines that have flights from both airports 'APG' and 'CVO'.", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "both", "airports", "'APG", "'", "and", "'CVO", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"CVO\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0898", "db_id": "network_1", "query": "select student_id from friend intersect select liked_id from likes", "query_toks": ["SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes"], "query_toks_no_value": ["select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes"], "question": "Show the ids of high schoolers who have friends and are also liked by someone else.", "question_toks": ["Show", "the", "ids", "of", "high", "schoolers", "who", "have", "friends", "and", "are", "also", "liked", "by", "someone", "else", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "ANY_SOME_IN_NL", "AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0899", "db_id": "network_1", "query": "select student_id from friend intersect select liked_id from likes", "query_toks": ["SELECT", "student_id", "FROM", "Friend", "INTERSECT", "SELECT", "liked_id", "FROM", "Likes"], "query_toks_no_value": ["select", "student_id", "from", "friend", "intersect", "select", "liked_id", "from", "likes"], "question": "What are the ids of students who both have friends and are liked?", "question_toks": ["What", "are", "the", "ids", "of", "students", "who", "both", "have", "friends", "and", "are", "liked", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0856", "db_id": "orchestra", "query": "select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003", "INTERSECT", "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", ">", "2003"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value", "intersect", "select", "record_company", "from", "orchestra", "where", "year_of_founded", ">", "value"], "question": "Show the record companies shared by orchestras founded before 2003 and after 2003.", "question_toks": ["Show", "the", "record", "companies", "shared", "by", "orchestras", "founded", "before", "2003", "and", "after", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0857", "db_id": "orchestra", "query": "select record_company from orchestra where year_of_founded < 2003 intersect select record_company from orchestra where year_of_founded > 2003", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", "<", "2003", "INTERSECT", "SELECT", "Record_Company", "FROM", "orchestra", "WHERE", "Year_of_Founded", ">", "2003"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "where", "year_of_founded", "<", "value", "intersect", "select", "record_company", "from", "orchestra", "where", "year_of_founded", ">", "value"], "question": "What are the record companies that are used by both orchestras founded before 2003 and those founded after 2003?", "question_toks": ["What", "are", "the", "record", "companies", "that", "are", "used", "by", "both", "orchestras", "founded", "before", "2003", "and", "those", "founded", "after", "2003", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0062", "db_id": "pets_1", "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')", "query_toks": ["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", "'", ")"], "query_toks_no_value": ["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", "=", "value", ")"], "question": "What major is every student who does not own a cat as a pet, and also how old are they?", "question_toks": ["What", "major", "is", "every", "student", "who", "does", "not", "own", "a", "cat", "as", "a", "pet", ",", "and", "also", "how", "old", "are", "they", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "WHERE_MONO", "AND_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1028", "db_id": "singer", "query": "select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955", "query_toks": ["SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945", "INTERSECT", "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955"], "query_toks_no_value": ["select", "citizenship", "from", "singer", "where", "birth_year", "<", "value", "intersect", "select", "citizenship", "from", "singer", "where", "birth_year", ">", "value"], "question": "Show the citizenship shared by singers with birth year before 1945 and after 1955.", "question_toks": ["Show", "the", "citizenship", "shared", "by", "singers", "with", "birth", "year", "before", "1945", "and", "after", "1955", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 1945.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 1955.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1029", "db_id": "singer", "query": "select citizenship from singer where birth_year < 1945 intersect select citizenship from singer where birth_year > 1955", "query_toks": ["SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", "<", "1945", "INTERSECT", "SELECT", "Citizenship", "FROM", "singer", "WHERE", "Birth_Year", ">", "1955"], "query_toks_no_value": ["select", "citizenship", "from", "singer", "where", "birth_year", "<", "value", "intersect", "select", "citizenship", "from", "singer", "where", "birth_year", ">", "value"], "question": "What are the citizenships that are shared by singers with a birth year before 1945 and after 1955?", "question_toks": ["What", "are", "the", "citizenships", "that", "are", "shared", "by", "singers", "with", "a", "birth", "year", "before", "1945", "and", "after", "1955", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 1945.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 1955.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0553", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'", "query_toks": ["SELECT", "cell_mobile_number", "FROM", "Students", "WHERE", "first_name", "=", "'Timmothy", "'", "AND", "last_name", "=", "'Ward", "'"], "query_toks_no_value": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the phone number of the man with the first name Timmothy and the last name Ward?", "question_toks": ["What", "is", "the", "phone", "number", "of", "the", "man", "with", "the", "first", "name", "Timmothy", "and", "the", "last", "name", "Ward", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Timmothy\"", null], "and", [false, 2, [0, [0, 37, false], null], "\"Ward\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0575", "db_id": "student_transcripts_tracking", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "Find the semester when both Master students and Bachelor students got enrolled in.", "question_toks": ["Find", "the", "semester", "when", "both", "Master", "students", "and", "Bachelor", "students", "got", "enrolled", "in", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Master\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Bachelor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0576", "db_id": "student_transcripts_tracking", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "What is the id of the semester that had both Masters and Bachelors students enrolled?", "question_toks": ["What", "is", "the", "id", "of", "the", "semester", "that", "had", "both", "Masters", "and", "Bachelors", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Master\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Bachelor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0637", "db_id": "tvshow", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value", "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", "=", "value"], "question": "Find the series name and country of the tv channel that is playing some cartoons directed by Ben Jones and Michael Chang?", "question_toks": ["Find", "the", "series", "name", "and", "country", "of", "the", "tv", "channel", "that", "is", "playing", "some", "cartoons", "directed", "by", "Ben", "Jones", "and", "Michael", "Chang", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Michael Chang\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0638", "db_id": "tvshow", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["select", "t1", ".", "series_name", ",", "t1", ".", "country", "from", "tv_channel", "as", "t1", "join", "cartoon", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "channel", "where", "t2", ".", "directed_by", "=", "value", "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", "=", "value"], "question": "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?", "question_toks": ["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", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Michael Chang\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0700", "db_id": "voter_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "List the area codes in which voters voted both for the contestant 'Tabatha Gehling' and the contestant 'Kelly Clauss'.", "question_toks": ["List", "the", "area", "codes", "in", "which", "voters", "voted", "both", "for", "the", "contestant", "'Tabatha", "Gehling", "'", "and", "the", "contestant", "'Kelly", "Clauss", "'", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Tabatha Gehling\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Kelly Clauss\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0748", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What are the names of nations where both English and French are official languages?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "are", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"French\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "AND_IN_NL", "_AND_TO_INTERSECT", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0749", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "Give the names of countries with English and French as official languages.", "question_toks": ["Give", "the", "names", "of", "countries", "with", "English", "and", "French", "as", "official", "languages", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"French\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "AND_IN_NL", "_AND_TO_INTERSECT", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0787", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the official language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "official", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"T\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "AND_IN_NL", "_AND_TO_INTERSECT", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0808", "db_id": "world_1", "query": "select name from country where continent = \"europe\" and population = \"80000\"", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "Europe", "''", "AND", "Population", "=", "``", "80000", "''"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "=", "value"], "question": "What are the names of the countries that are in the continent of Europe and have a population of 80000?", "question_toks": ["What", "are", "the", "names", "of", "the", "countries", "that", "are", "in", "the", "continent", "of", "Europe", "and", "have", "a", "population", "of", "80000", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Europe\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"80000\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0809", "db_id": "world_1", "query": "select name from country where continent = \"europe\" and population = \"80000\"", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "continent", "=", "``", "Europe", "''", "AND", "Population", "=", "``", "80000", "''"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "=", "value"], "question": "Give the names of countries that are in Europe and have a population equal to 80000.", "question_toks": ["Give", "the", "names", "of", "countries", "that", "are", "in", "Europe", "and", "have", "a", "population", "equal", "to", "80000", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Europe\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"80000\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0810", "db_id": "world_1", "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "query_toks": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "\"north america\"", "and", "surfacearea", ">", "3000"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value"], "question": "What is the total population and average area of countries in the continent of North America whose area is bigger than 3000 ?", "question_toks": ["What", "is", "the", "total", "population", "and", "average", "area", "of", "countries", "in", "the", "continent", "of", "North", "America", "whose", "area", "is", "bigger", "than", "3000", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [5, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null], "and", [false, 3, [0, [0, 12, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0811", "db_id": "world_1", "query": "select sum(population) , avg(surfacearea) from country where continent = \"north america\" and surfacearea > 3000", "query_toks": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "\"north america\"", "and", "surfacearea", ">", "3000"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "avg", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "and", "surfacearea", ">", "value"], "question": "Give the total population and average surface area corresponding to countries in North America that have a surface area greater than 3000 .", "question_toks": ["Give", "the", "total", "population", "and", "average", "surface", "area", "corresponding", "to", "countries", "in", "North", "America", "that", "have", "a", "surface", "area", "greater", "than", "3000", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [5, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"north america\"", null], "and", [false, 3, [0, [0, 12, false], null], 3000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "HIDDEN_SUM", "AND_IN_NL", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0812", "db_id": "world_1", "query": "select name from city where population between 160000 and 900000", "query_toks": ["SELECT", "name", "FROM", "city", "WHERE", "Population", "BETWEEN", "160000", "AND", "900000"], "query_toks_no_value": ["select", "name", "from", "city", "where", "population", "between", "value", "and", "value"], "question": "What are the cities whose population is between 160000 and 900000?", "question_toks": ["What", "are", "the", "cities", "whose", "population", "is", "between", "160000", "and", "900000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 1, [0, [0, 5, false], null], 160000.0, 900000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0813", "db_id": "world_1", "query": "select name from city where population between 160000 and 900000", "query_toks": ["select", "name", "from", "city", "where", "population", "between", "160000", "and", "900000"], "query_toks_no_value": ["select", "name", "from", "city", "where", "population", "between", "value", "and", "value"], "question": "Return the names of cities that have a population between 160000 and 900000 .", "question_toks": ["Return", "the", "names", "of", "cities", "that", "have", "a", "population", "between", "160000", "and", "900000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 1, [0, [0, 5, false], null], 160000.0, 900000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0744", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "(", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", ")"], "question": "How many countries speak both English and Dutch?", "question_toks": ["How", "many", "countries", "speak", "both", "English", "and", "Dutch", "?"], "sql": {"from": {"table_units": [["sql", {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0747", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "Give the names of nations that speak both English and French.", "question_toks": ["Give", "the", "names", "of", "nations", "that", "speak", "both", "English", "and", "French", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"French\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0485", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = 'wta championships' and winner_hand = 'l'", "query_toks": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "'WTA", "Championships", "'", "AND", "winner_hand", "=", "'L", "'"], "query_toks_no_value": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "and", "winner_hand", "=", "value"], "question": "How many different winners both participated in the WTA Championships and were left handed?", "question_toks": ["How", "many", "different", "winners", "both", "participated", "in", "the", "WTA", "Championships", "and", "were", "left", "handed", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"WTA Championships\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"L\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "SYNONYMS", "AND_IN_NL", "_REFORMULATION_SYNONYM"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0447", "db_id": "wta_1", "query": "select winner_name from matches where year = 2013 intersect select winner_name from matches where year = 2016", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "INTERSECT", "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2016"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "year", "=", "value", "intersect", "select", "winner_name", "from", "matches", "where", "year", "=", "value"], "question": "List the names of all winners who played in both 2013 and 2016.", "question_toks": ["List", "the", "names", "of", "all", "winners", "who", "played", "in", "both", "2013", "and", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0448", "db_id": "wta_1", "query": "select winner_name from matches where year = 2013 intersect select winner_name from matches where year = 2016", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "INTERSECT", "SELECT", "winner_name", "FROM", "matches", "WHERE", "YEAR", "=", "2016"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "year", "=", "value", "intersect", "select", "winner_name", "from", "matches", "where", "year", "=", "value"], "question": "What are the names of players who won in both 2013 and 2016?", "question_toks": ["What", "are", "the", "names", "of", "players", "who", "won", "in", "both", "2013", "and", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0451", "db_id": "wta_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "What are the country code and first name of the players who won in both tourney WTA Championships and Australian Open?", "question_toks": ["What", "are", "the", "country", "code", "and", "first", "name", "of", "the", "players", "who", "won", "in", "both", "tourney", "WTA", "Championships", "and", "Australian", "Open", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"WTA Championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Australian Open\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0452", "db_id": "wta_1", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value", "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", "=", "value"], "question": "What are the first names and country codes for players who won both the WTA Championships and the Australian Open?", "question_toks": ["What", "are", "the", "first", "names", "and", "country", "codes", "for", "players", "who", "won", "both", "the", "WTA", "Championships", "and", "the", "Australian", "Open", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"WTA Championships\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Australian Open\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_INTERSECT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0533", "db_id": "allergy_1", "query": "select count(*) from student where age > 18 and stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\" or t2.allergytype = \"animal\")", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")"], "question": "Find the number of students who are older than 18 and do not have allergy to either food or animal.", "question_toks": ["Find", "the", "number", "of", "students", "who", "are", "older", "than", "18", "and", "do", "not", "have", "allergy", "to", "either", "food", "or", "animal", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null], "and", [true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "AND_IN_NL", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0534", "db_id": "allergy_1", "query": "select count(*) from student where age > 18 and stuid not in ( select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\" or t2.allergytype = \"animal\")", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", ">", "18", "AND", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", "OR", "T2.allergytype", "=", "``", "animal", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "age", ">", "value", "and", "stuid", "not", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", "or", "t2", ".", "allergytype", "=", "value", ")"], "question": "How many students are over 18 and do not have allergy to food type or animal type?", "question_toks": ["How", "many", "students", "are", "over", "18", "and", "do", "not", "have", "allergy", "to", "food", "type", "or", "animal", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 18.0, null], "and", [true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_FILTERS", "AND_IN_NL", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0519", "db_id": "allergy_1", "query": "select lname , age from student where stuid in (select stuid from has_allergy where allergy = \"milk\" intersect select stuid from has_allergy where allergy = \"cat\")", "query_toks": ["SELECT", "lname", ",", "age", "FROM", "Student", "WHERE", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Milk", "''", "INTERSECT", "SELECT", "StuID", "FROM", "Has_allergy", "WHERE", "Allergy", "=", "``", "Cat", "''", ")"], "query_toks_no_value": ["select", "lname", ",", "age", "from", "student", "where", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", "intersect", "select", "stuid", "from", "has_allergy", "where", "allergy", "=", "value", ")"], "question": "Find the last name and age of the student who has allergy to both milk and cat.", "question_toks": ["Find", "the", "last", "name", "and", "age", "of", "the", "student", "who", "has", "allergy", "to", "both", "milk", "and", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Milk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5677", "db_id": "dorm_1", "query": "select fname from student where city_code = 'phl' and age between 20 and 25", "query_toks": ["SELECT", "fname", "FROM", "student", "WHERE", "city_code", "=", "'PHL", "'", "AND", "age", "BETWEEN", "20", "AND", "25"], "query_toks_no_value": ["select", "fname", "from", "student", "where", "city_code", "=", "value", "and", "age", "between", "value", "and", "value"], "question": "What is the first name of the students who are in age 20 to 25 and living in PHL city?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "students", "who", "are", "in", "age", "20", "to", "25", "and", "living", "in", "PHL", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"PHL\"", null], "and", [false, 1, [0, [0, 4, false], null], 20.0, 25.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5706", "db_id": "dorm_1", "query": "select lname from student where sex = 'f' and city_code = 'bal' union select lname from student where sex = 'm' and age < 20", "query_toks": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "city_code", "=", "'BAL", "'", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'M", "'", "AND", "age", "<", "20"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "sex", "=", "value", "and", "city_code", "=", "value", "union", "select", "lname", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "Find the last name of students who is either female (sex is F) and living in the city of code BAL or male (sex is M) and in age of below 20.", "question_toks": ["Find", "the", "last", "name", "of", "students", "who", "is", "either", "female", "(", "sex", "is", "F", ")", "and", "living", "in", "the", "city", "of", "code", "BAL", "or", "male", "(", "sex", "is", "M", ")", "and", "in", "age", "of", "below", "20", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"BAL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"M\"", null], "and", [false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_AND_TO_FILTERS", "AND_IN_NL", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_UNION_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6648", "db_id": "driving_school", "query": "select t1.zip_postcode from addresses as t1 join staff as t2 on t1.address_id = t2.staff_address_id where t2.first_name = \"janessa\" and t2.last_name = \"sawayn\";", "query_toks": ["SELECT", "T1.zip_postcode", "FROM", "Addresses", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.address_id", "=", "T2.staff_address_id", "WHERE", "T2.first_name", "=", "``", "Janessa", "''", "AND", "T2.last_name", "=", "``", "Sawayn", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "zip_postcode", "from", "addresses", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "staff_address_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value"], "question": "What is the zip code of staff with first name as Janessa and last name as Sawayn lived?", "question_toks": ["What", "is", "the", "zip", "code", "of", "staff", "with", "first", "name", "as", "Janessa", "and", "last", "name", "as", "Sawayn", "lived", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Sawayn\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6668", "db_id": "driving_school", "query": "select date_became_customer from customers where first_name = \"carole\" and last_name = \"bernhard\";", "query_toks": ["SELECT", "date_became_customer", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Carole", "''", "AND", "last_name", "=", "``", "Bernhard", "''", ";"], "query_toks_no_value": ["select", "date_became_customer", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "When did customer with first name as Carole and last name as Bernhard became a customer?", "question_toks": ["When", "did", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "became", "a", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Carole\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Bernhard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6676", "db_id": "driving_school", "query": "select count(*) from lessons as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.first_name = \"rylan\" and t2.last_name = \"goodwin\" and t1.lesson_status_code = \"completed\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Lessons", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Rylan", "''", "AND", "T2.last_name", "=", "``", "Goodwin", "''", "AND", "T1.lesson_status_code", "=", "``", "Completed", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "lessons", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value", "and", "t1", ".", "lesson_status_code", "=", "value"], "question": "How many lessons taken by customer with first name as Rylan and last name as Goodwin were completed?", "question_toks": ["How", "many", "lessons", "taken", "by", "customer", "with", "first", "name", "as", "Rylan", "and", "last", "name", "as", "Goodwin", "were", "completed", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 18, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Rylan\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Goodwin\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"Completed\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0050", "db_id": "farm", "query": "select status from city where population > 1500 intersect select status from city where population < 500", "query_toks": ["SELECT", "Status", "FROM", "city", "WHERE", "Population", ">", "1500", "INTERSECT", "SELECT", "Status", "FROM", "city", "WHERE", "Population", "<", "500"], "query_toks_no_value": ["select", "status", "from", "city", "where", "population", ">", "value", "intersect", "select", "status", "from", "city", "where", "population", "<", "value"], "question": "Show the status shared by cities with population bigger than 1500 and smaller than 500.", "question_toks": ["Show", "the", "status", "shared", "by", "cities", "with", "population", "bigger", "than", "1500", "and", "smaller", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 1500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0051", "db_id": "farm", "query": "select status from city where population > 1500 intersect select status from city where population < 500", "query_toks": ["SELECT", "Status", "FROM", "city", "WHERE", "Population", ">", "1500", "INTERSECT", "SELECT", "Status", "FROM", "city", "WHERE", "Population", "<", "500"], "query_toks_no_value": ["select", "status", "from", "city", "where", "population", ">", "value", "intersect", "select", "status", "from", "city", "where", "population", "<", "value"], "question": "Which statuses correspond to both cities that have a population over 1500 and cities that have a population lower than 500?", "question_toks": ["Which", "statuses", "correspond", "to", "both", "cities", "that", "have", "a", "population", "over", "1500", "and", "cities", "that", "have", "a", "population", "lower", "than", "500", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 1500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2215", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "France", "''", "OR", "country", "=", "``", "Belgium", "''"], "query_toks_no_value": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "Find the id and location of circuits that belong to France or Belgium?", "question_toks": ["Find", "the", "id", "and", "location", "of", "circuits", "that", "belong", "to", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"France\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"Belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_TO_COLUMNS", "AND_IN_NL", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2216", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["SELECT", "circuitid", ",", "LOCATION", "FROM", "circuits", "WHERE", "country", "=", "``", "France", "''", "OR", "country", "=", "``", "Belgium", "''"], "query_toks_no_value": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "What are the ids and locations of all circuits in France or Belgium?", "question_toks": ["What", "are", "the", "ids", "and", "locations", "of", "all", "circuits", "in", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"France\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"Belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_WITH_OR_COLUMN_REMOVED", "_AND_TO_COLUMNS", "AND_IN_NL", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6029", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.Fname", "=", "``", "David", "''", "AND", "T2.Lname", "=", "``", "Shieber", "''"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value"], "question": "Show total hours per week and number of games played for student David Shieber.", "question_toks": ["Show", "total", "hours", "per", "week", "and", "number", "of", "games", "played", "for", "student", "David", "Shieber", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"David\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_COLUMNS", "_HIDDEN_SUM_TOTAL", "HIDDEN_SUM", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_in_nl_0064", "db_id": "dorm_1", "query": "select lname from student where sex = \"f\" and city_code = \"bal\" union select lname from student where sex = \"m\" and age < 20", "query_toks": ["select", "lname", "from", "student", "where", "sex", "=", "``", "f", "''", "and", "city_code", "=", "``", "bal", "''", "union", "select", "lname", "from", "student", "where", "sex", "=", "``", "m", "''", "and", "age", "<", "20"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "sex", "=", "value", "and", "city_code", "=", "value", "union", "select", "lname", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "What is the last name of every student who is either female and living in a city with the code BAL or male and under 20?", "question_toks": ["What", "is", "the", "last", "name", "of", "every", "student", "who", "is", "either", "female", "and", "living", "in", "a", "city", "with", "the", "code", "BAL", "or", "male", "and", "under", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"bal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"m\"", null], "and", [false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_IN_NL", "_AND_TO_FILTERS"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0803", "db_id": "coffee_shop", "query": "select t1.address , t1.shop_id from shop as t1 join happy_hour as t2 on t1.shop_id = t2.shop_id where month = 'may'", "query_toks": ["SELECT", "t1.address", ",", "t1.shop_id", "FROM", "shop", "AS", "t1", "JOIN", "happy_hour", "AS", "t2", "ON", "t1.shop_id", "=", "t2.shop_id", "WHERE", "MONTH", "=", "'May", "'"], "query_toks_no_value": ["select", "t1", ".", "address", ",", "t1", ".", "shop_id", "from", "shop", "as", "t1", "join", "happy_hour", "as", "t2", "on", "t1", ".", "shop_id", "=", "t2", ".", "shop_id", "where", "month", "=", "value"], "question": "What are the id and address of the shops which have a happy hour in May?", "question_toks": ["What", "are", "the", "id", "and", "address", "of", "the", "shops", "which", "have", "a", "happy", "hour", "in", "May", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"May\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4703", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where credits = 1 and hours = 4", "query_toks": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1", "AND", "Hours", "=", "4"], "query_toks_no_value": ["select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value", "and", "hours", "=", "value"], "question": "Find the names of courses that have either 3 credits or 1 credit but 4 hours.", "question_toks": ["Find", "the", "names", "of", "courses", "that", "have", "either", "3", "credits", "or", "1", "credit", "but", "4", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null], "and", [false, 2, [0, [0, 31, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4704", "db_id": "college_3", "query": "select cname from course where credits = 3 union select cname from course where credits = 1 and hours = 4", "query_toks": ["SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "3", "UNION", "SELECT", "CName", "FROM", "COURSE", "WHERE", "Credits", "=", "1", "AND", "Hours", "=", "4"], "query_toks_no_value": ["select", "cname", "from", "course", "where", "credits", "=", "value", "union", "select", "cname", "from", "course", "where", "credits", "=", "value", "and", "hours", "=", "value"], "question": "What are the names of courses that give either 3 credits, or 1 credit and 4 hours?", "question_toks": ["What", "are", "the", "names", "of", "courses", "that", "give", "either", "3", "credits", ",", "or", "1", "credit", "and", "4", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], 1.0, null], "and", [false, 2, [0, [0, 31, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "DATETIME", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6125", "db_id": "customers_and_addresses", "query": "select sum(t2.order_quantity) from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.order_date < \"2018-03-17 07:13:53\"", "query_toks": ["SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_date", "<", "``", "2018-03-17", "07:13:53", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value"], "question": "Find the total amount of products ordered before 2018-03-17 07:13:53.", "question_toks": ["Find", "the", "total", "amount", "of", "products", "ordered", "before", "2018-03-17", "07:13:53", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 4, [0, [0, 28, false], null], "\"2018-03-17 07:13:53\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6126", "db_id": "customers_and_addresses", "query": "select sum(t2.order_quantity) from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.order_date < \"2018-03-17 07:13:53\"", "query_toks": ["SELECT", "sum", "(", "t2.order_quantity", ")", "FROM", "customer_orders", "AS", "t1", "JOIN", "order_items", "AS", "t2", "ON", "t1.order_id", "=", "t2.order_id", "WHERE", "t1.order_date", "<", "``", "2018-03-17", "07:13:53", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value"], "question": "What is the total amount of products purchased before 2018-03-17 07:13:53?", "question_toks": ["What", "is", "the", "total", "amount", "of", "products", "purchased", "before", "2018-03-17", "07:13:53", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 4, [0, [0, 28, false], null], "\"2018-03-17 07:13:53\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4759", "db_id": "department_store", "query": "select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.date_assigned_from like \"2016%\"", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.date_assigned_from", "LIKE", "``", "2016", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "value"], "question": "Return the name and gender of the staff who was assigned in 2016.", "question_toks": ["Return", "the", "name", "and", "gender", "of", "the", "staff", "who", "was", "assigned", "in", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 54, false], null], "\"2016%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4760", "db_id": "department_store", "query": "select t1.staff_name , t1.staff_gender from staff as t1 join staff_department_assignments as t2 on t1.staff_id = t2.staff_id where t2.date_assigned_from like \"2016%\"", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_gender", "FROM", "staff", "AS", "T1", "JOIN", "staff_department_assignments", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id", "WHERE", "T2.date_assigned_from", "LIKE", "``", "2016", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_gender", "from", "staff", "as", "t1", "join", "staff_department_assignments", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id", "where", "t2", ".", "date_assigned_from", "like", "value"], "question": "What are the names and genders of staff who were assigned in 2016?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "staff", "who", "were", "assigned", "in", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 13]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 54, false], null], "\"2016%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2205", "db_id": "formula_1", "query": "select name from races where time > \"12:00:00\" or time < \"09:00:00\"", "query_toks": ["SELECT", "name", "FROM", "races", "WHERE", "TIME", ">", "``", "12:00:00", "''", "OR", "TIME", "<", "``", "09:00:00", "''"], "query_toks_no_value": ["select", "name", "from", "races", "where", "time", ">", "value", "or", "time", "<", "value"], "question": "What are the names of races held after 12:00:00 or before 09:00:00?", "question_toks": ["What", "are", "the", "names", "of", "races", "held", "after", "12:00:00", "or", "before", "09:00:00", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], "\"12:00:00\"", null], "or", [false, 4, [0, [0, 16, false], null], "\"09:00:00\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2206", "db_id": "formula_1", "query": "select name from races where time > \"12:00:00\" or time < \"09:00:00\"", "query_toks": ["SELECT", "name", "FROM", "races", "WHERE", "TIME", ">", "``", "12:00:00", "''", "OR", "TIME", "<", "``", "09:00:00", "''"], "query_toks_no_value": ["select", "name", "from", "races", "where", "time", ">", "value", "or", "time", "<", "value"], "question": "What are the names of all races that occurred after 12:00:00 or before 09:00:00?", "question_toks": ["What", "are", "the", "names", "of", "all", "races", "that", "occurred", "after", "12:00:00", "or", "before", "09:00:00", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], "\"12:00:00\"", null], "or", [false, 4, [0, [0, 16, false], null], "\"09:00:00\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3429", "db_id": "hr_1", "query": "select job_id , hire_date from employees where hire_date between '2007-11-05' and '2009-07-05'", "query_toks": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees", "WHERE", "hire_date", "BETWEEN", "'2007-11-05", "'", "AND", "'2009-07-05", "'"], "query_toks_no_value": ["select", "job_id", ",", "hire_date", "from", "employees", "where", "hire_date", "between", "value", "and", "value"], "question": "Find job id and date of hire for those employees who was hired between November 5th, 2007 and July 5th, 2009.", "question_toks": ["Find", "job", "id", "and", "date", "of", "hire", "for", "those", "employees", "who", "was", "hired", "between", "November", "5th", ",", "2007", "and", "July", "5th", ",", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 1, [0, [0, 19, false], null], "\"2007-11-05\"", "\"2009-07-05\""]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3430", "db_id": "hr_1", "query": "select job_id , hire_date from employees where hire_date between '2007-11-05' and '2009-07-05'", "query_toks": ["SELECT", "job_id", ",", "hire_date", "FROM", "employees", "WHERE", "hire_date", "BETWEEN", "'2007-11-05", "'", "AND", "'2009-07-05", "'"], "query_toks_no_value": ["select", "job_id", ",", "hire_date", "from", "employees", "where", "hire_date", "between", "value", "and", "value"], "question": "What are the job ids and dates of hire for employees hired after November 5th, 2007 and before July 5th, 2009?", "question_toks": ["What", "are", "the", "job", "ids", "and", "dates", "of", "hire", "for", "employees", "hired", "after", "November", "5th", ",", "2007", "and", "before", "July", "5th", ",", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 1, [0, [0, 19, false], null], "\"2007-11-05\"", "\"2009-07-05\""]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3435", "db_id": "hr_1", "query": "select * from employees where hire_date < '2002-06-21'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", "<", "'2002-06-21", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", "<", "value"], "question": "display all the details from Employees table for those employees who was hired before 2002-06-21.", "question_toks": ["display", "all", "the", "details", "from", "Employees", "table", "for", "those", "employees", "who", "was", "hired", "before", "2002-06-21", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], "\"2002-06-21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3436", "db_id": "hr_1", "query": "select * from employees where hire_date < '2002-06-21'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", "<", "'2002-06-21", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", "<", "value"], "question": "What is all the information about employees hired before June 21, 2002?", "question_toks": ["What", "is", "all", "the", "information", "about", "employees", "hired", "before", "June", "21", ",", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], "\"2002-06-21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3439", "db_id": "hr_1", "query": "select * from employees where hire_date > '1987-09-07'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", ">", "'1987-09-07", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", ">", "value"], "question": "display those employees who joined after 7th September, 1987.", "question_toks": ["display", "those", "employees", "who", "joined", "after", "7th", "September", ",", "1987", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], "\"1987-09-07\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3440", "db_id": "hr_1", "query": "select * from employees where hire_date > '1987-09-07'", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "hire_date", ">", "'1987-09-07", "'"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "hire_date", ">", "value"], "question": "Which employees were hired after September 7th, 1987?", "question_toks": ["Which", "employees", "were", "hired", "after", "September", "7th", ",", "1987", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], "\"1987-09-07\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3457", "db_id": "hr_1", "query": "select job_id from job_history where end_date - start_date > 300 group by job_id having count(*) >= 2", "query_toks": ["SELECT", "job_id", "FROM", "job_history", "WHERE", "end_date", "-", "start_date", ">", "300", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "job_id", "from", "job_history", "where", "end_date", "-", "start_date", ">", "value", "group", "by", "job_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "display job ID for those jobs that were done by two or more for more than 300 days.", "question_toks": ["display", "job", "ID", "for", "those", "jobs", "that", "were", "done", "by", "two", "or", "more", "for", "more", "than", "300", "days", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 3, [1, [0, 27, false], [0, 26, false]], 300.0, null]], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3458", "db_id": "hr_1", "query": "select job_id from job_history where end_date - start_date > 300 group by job_id having count(*) >= 2", "query_toks": ["SELECT", "job_id", "FROM", "job_history", "WHERE", "end_date", "-", "start_date", ">", "300", "GROUP", "BY", "job_id", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "job_id", "from", "job_history", "where", "end_date", "-", "start_date", ">", "value", "group", "by", "job_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the job ids for jobs done more than once for a period of more than 300 days?", "question_toks": ["What", "are", "the", "job", "ids", "for", "jobs", "done", "more", "than", "once", "for", "a", "period", "of", "more", "than", "300", "days", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[false, 3, [1, [0, 27, false], [0, 26, false]], 300.0, null]], "groupBy": [[0, 28, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2584", "db_id": "inn_1", "query": "select adults from reservations where checkin = \"2010-10-23\" and firstname = \"conrad\" and lastname = \"selbig\";", "query_toks": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-10-23", "''", "AND", "FirstName", "=", "``", "CONRAD", "''", "AND", "LastName", "=", "``", "SELBIG", "''", ";"], "query_toks_no_value": ["select", "adults", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many adults stay in the room CONRAD SELBIG checked in on Oct 23, 2010?", "question_toks": ["How", "many", "adults", "stay", "in", "the", "room", "CONRAD", "SELBIG", "checked", "in", "on", "Oct", "23", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-10-23\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"CONRAD\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SELBIG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING", "DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2585", "db_id": "inn_1", "query": "select adults from reservations where checkin = \"2010-10-23\" and firstname = \"conrad\" and lastname = \"selbig\";", "query_toks": ["SELECT", "Adults", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-10-23", "''", "AND", "FirstName", "=", "``", "CONRAD", "''", "AND", "LastName", "=", "``", "SELBIG", "''", ";"], "query_toks_no_value": ["select", "adults", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Find the number of adults for the room reserved and checked in by CONRAD SELBIG on Oct 23, 2010.", "question_toks": ["Find", "the", "number", "of", "adults", "for", "the", "room", "reserved", "and", "checked", "in", "by", "CONRAD", "SELBIG", "on", "Oct", "23", ",", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-10-23\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"CONRAD\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SELBIG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2586", "db_id": "inn_1", "query": "select kids from reservations where checkin = \"2010-09-21\" and firstname = \"damien\" and lastname = \"trachsel\";", "query_toks": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-09-21", "''", "AND", "FirstName", "=", "``", "DAMIEN", "''", "AND", "LastName", "=", "``", "TRACHSEL", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many kids stay in the room DAMIEN TRACHSEL checked in on Sep 21, 2010?", "question_toks": ["How", "many", "kids", "stay", "in", "the", "room", "DAMIEN", "TRACHSEL", "checked", "in", "on", "Sep", "21", ",", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-09-21\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"DAMIEN\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"TRACHSEL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING", "DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2587", "db_id": "inn_1", "query": "select kids from reservations where checkin = \"2010-09-21\" and firstname = \"damien\" and lastname = \"trachsel\";", "query_toks": ["SELECT", "Kids", "FROM", "Reservations", "WHERE", "CheckIn", "=", "``", "2010-09-21", "''", "AND", "FirstName", "=", "``", "DAMIEN", "''", "AND", "LastName", "=", "``", "TRACHSEL", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "checkin", "=", "value", "and", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Return the number of kids for the room reserved and checked in by DAMIEN TRACHSEL on Sep 21, 2010.", "question_toks": ["Return", "the", "number", "of", "kids", "for", "the", "room", "reserved", "and", "checked", "in", "by", "DAMIEN", "TRACHSEL", "on", "Sep", "21", ",", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"2010-09-21\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"DAMIEN\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"TRACHSEL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4851", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id , t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = 'close' or t1.date_and_date < '2017-06-19 02:59:21'", "query_toks": ["SELECT", "DISTINCT", "T2.thing_id", ",", "T2.Type_of_Thing_Code", "FROM", "Timed_Status_of_Things", "AS", "T1", "JOIN", "Things", "AS", "T2", "ON", "T1.thing_id", "=", "T2.thing_id", "WHERE", "T1.Status_of_Thing_Code", "=", "'Close", "'", "OR", "T1.Date_and_Date", "<", "'2017-06-19", "02:59:21", "'"], "query_toks_no_value": ["select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "value", "or", "t1", ".", "date_and_date", "<", "value"], "question": "What are the distinct id and type of the thing that has the status 'Close' or has a status record before the date '2017-06-19 02:59:21'", "question_toks": ["What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'Close", "'", "or", "has", "a", "status", "record", "before", "the", "date", "'2017-06-19", "02:59:21", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"Close\"", null], "or", [false, 4, [0, [0, 44, false], null], "\"2017-06-19 02:59:21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED", "DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3545", "db_id": "music_1", "query": "select count(*) from files where duration like \"4:%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "files", "WHERE", "duration", "LIKE", "``", "4", ":", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "files", "where", "duration", "like", "value"], "question": "How many songs have 4 minute duration?", "question_toks": ["How", "many", "songs", "have", "4", "minute", "duration", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3546", "db_id": "music_1", "query": "select count(*) from files where duration like \"4:%\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "files", "WHERE", "duration", "LIKE", "``", "4", ":", "%", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "files", "where", "duration", "like", "value"], "question": "What is the count of the songs that last approximately 4 minutes?", "question_toks": ["What", "is", "the", "count", "of", "the", "songs", "that", "last", "approximately", "4", "minutes", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3575", "db_id": "music_1", "query": "select t1.artist_name , t1.gender from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.releasedate like \"%mar%\"", "query_toks": ["SELECT", "T1.artist_name", ",", "T1.gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.releasedate", "LIKE", "``", "%", "Mar", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "value"], "question": "List the name and gender for all artists who released songs in March.", "question_toks": ["List", "the", "name", "and", "gender", "for", "all", "artists", "who", "released", "songs", "in", "March", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 20, false], null], "\"%Mar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3576", "db_id": "music_1", "query": "select t1.artist_name , t1.gender from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.releasedate like \"%mar%\"", "query_toks": ["SELECT", "T1.artist_name", ",", "T1.gender", "FROM", "artist", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.artist_name", "=", "T2.artist_name", "WHERE", "T2.releasedate", "LIKE", "``", "%", "Mar", "%", "''"], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "value"], "question": "What are the names and genders of all artists who released songs in the month of March?", "question_toks": ["What", "are", "the", "names", "and", "genders", "of", "all", "artists", "who", "released", "songs", "in", "the", "month", "of", "March", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 20, false], null], "\"%Mar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3583", "db_id": "music_1", "query": "select t2.song_name from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"4:%\" union select song_name from song where languages = \"english\"", "query_toks": ["SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "4", ":", "%", "''", "UNION", "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", "union", "select", "song_name", "from", "song", "where", "languages", "=", "value"], "question": "List the names of all songs that have 4 minute duration or are in English.", "question_toks": ["List", "the", "names", "of", "all", "songs", "that", "have", "4", "minute", "duration", "or", "are", "in", "English", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3584", "db_id": "music_1", "query": "select t2.song_name from files as t1 join song as t2 on t1.f_id = t2.f_id where t1.duration like \"4:%\" union select song_name from song where languages = \"english\"", "query_toks": ["SELECT", "T2.song_name", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "WHERE", "T1.duration", "LIKE", "``", "4", ":", "%", "''", "UNION", "SELECT", "song_name", "FROM", "song", "WHERE", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "t2", ".", "song_name", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "where", "t1", ".", "duration", "like", "value", "union", "select", "song_name", "from", "song", "where", "languages", "=", "value"], "question": "What are the names of all songs that are approximately 4 minutes long or are in English?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "are", "approximately", "4", "minutes", "long", "or", "are", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 11, false], null], "\"4:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4320", "db_id": "tracking_grants_for_research", "query": "select t1.grant_amount from grants as t1 join documents as t2 on t1.grant_id = t2.grant_id where t2.sent_date < '1986-08-26 20:49:27' intersect select grant_amount from grants where grant_end_date > '1989-03-16 18:27:16'", "query_toks": ["SELECT", "T1.grant_amount", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "WHERE", "T2.sent_date", "<", "'1986-08-26", "20:49:27", "'", "INTERSECT", "SELECT", "grant_amount", "FROM", "grants", "WHERE", "grant_end_date", ">", "'1989-03-16", "18:27:16", "'"], "query_toks_no_value": ["select", "t1", ".", "grant_amount", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "where", "t2", ".", "sent_date", "<", "value", "intersect", "select", "grant_amount", "from", "grants", "where", "grant_end_date", ">", "value"], "question": "What are the distinct grant amount for the grants where the documents were sent before '1986-08-26 20:49:27' and grant were ended after '1989-03-16 18:27:16'?", "question_toks": ["What", "are", "the", "distinct", "grant", "amount", "for", "the", "grants", "where", "the", "documents", "were", "sent", "before", "'1986-08-26", "20:49:27", "'", "and", "grant", "were", "ended", "after", "'1989-03-16", "18:27:16", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], "\"1986-08-26 20:49:27\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], "\"1989-03-16 18:27:16\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4321", "db_id": "tracking_grants_for_research", "query": "select t1.grant_amount from grants as t1 join documents as t2 on t1.grant_id = t2.grant_id where t2.sent_date < '1986-08-26 20:49:27' intersect select grant_amount from grants where grant_end_date > '1989-03-16 18:27:16'", "query_toks": ["SELECT", "T1.grant_amount", "FROM", "Grants", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.grant_id", "=", "T2.grant_id", "WHERE", "T2.sent_date", "<", "'1986-08-26", "20:49:27", "'", "INTERSECT", "SELECT", "grant_amount", "FROM", "grants", "WHERE", "grant_end_date", ">", "'1989-03-16", "18:27:16", "'"], "query_toks_no_value": ["select", "t1", ".", "grant_amount", "from", "grants", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "grant_id", "=", "t2", ".", "grant_id", "where", "t2", ".", "sent_date", "<", "value", "intersect", "select", "grant_amount", "from", "grants", "where", "grant_end_date", ">", "value"], "question": "What are the different grant amounts for documents sent before '1986-08-26 20:49:27' and after the grant ended on '1989-03-16 18:27:16'?", "question_toks": ["What", "are", "the", "different", "grant", "amounts", "for", "documents", "sent", "before", "'1986-08-26", "20:49:27", "'", "and", "after", "the", "grant", "ended", "on", "'1989-03-16", "18:27:16", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], "\"1986-08-26 20:49:27\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], "\"1989-03-16 18:27:16\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4376", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code = 'leader' or date_from < '1989-04-24 23:51:54'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'", "OR", "date_from", "<", "'1989-04-24", "23:51:54", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "project_staff", "where", "role_code", "=", "value", "or", "date_from", "<", "value"], "question": "How many project staff worked as leaders or started working before '1989-04-24 23:51:54'?", "question_toks": ["How", "many", "project", "staff", "worked", "as", "leaders", "or", "started", "working", "before", "'1989-04-24", "23:51:54", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null], "or", [false, 4, [0, [0, 26, false], null], "\"1989-04-24 23:51:54\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4377", "db_id": "tracking_grants_for_research", "query": "select count(*) from project_staff where role_code = 'leader' or date_from < '1989-04-24 23:51:54'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'leader", "'", "OR", "date_from", "<", "'1989-04-24", "23:51:54", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "project_staff", "where", "role_code", "=", "value", "or", "date_from", "<", "value"], "question": "How many project members were leaders or started working before '1989-04-24 23:51:54'?", "question_toks": ["How", "many", "project", "members", "were", "leaders", "or", "started", "working", "before", "'1989-04-24", "23:51:54", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"leader\"", null], "or", [false, 4, [0, [0, 26, false], null], "\"1989-04-24 23:51:54\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4392", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff where date_from > '2003-04-19 15:06:20' and date_to < '2016-03-15 00:33:18'", "query_toks": ["SELECT", "role_code", "FROM", "Project_Staff", "WHERE", "date_from", ">", "'2003-04-19", "15:06:20", "'", "AND", "date_to", "<", "'2016-03-15", "00:33:18", "'"], "query_toks_no_value": ["select", "role_code", "from", "project_staff", "where", "date_from", ">", "value", "and", "date_to", "<", "value"], "question": "What are the staff roles of the staff who", "question_toks": ["What", "are", "the", "staff", "roles", "of", "the", "staff", "who"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 3, [0, [0, 26, false], null], "\"2003-04-19 15:06:20\"", null], "and", [false, 4, [0, [0, 27, false], null], "\"2016-03-15 00:33:18\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4393", "db_id": "tracking_grants_for_research", "query": "select role_code from project_staff where date_from > '2003-04-19 15:06:20' and date_to < '2016-03-15 00:33:18'", "query_toks": ["SELECT", "role_code", "FROM", "Project_Staff", "WHERE", "date_from", ">", "'2003-04-19", "15:06:20", "'", "AND", "date_to", "<", "'2016-03-15", "00:33:18", "'"], "query_toks_no_value": ["select", "role_code", "from", "project_staff", "where", "date_from", ">", "value", "and", "date_to", "<", "value"], "question": "What roles did staff members play between '2003-04-19 15:06:20' and '2016-03-15 00:33:18'?", "question_toks": ["What", "roles", "did", "staff", "members", "play", "between", "'2003-04-19", "15:06:20", "'", "and", "'2016-03-15", "00:33:18", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 3, [0, [0, 26, false], null], "\"2003-04-19 15:06:20\"", null], "and", [false, 4, [0, [0, 27, false], null], "\"2016-03-15 00:33:18\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6905", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.date_order_placed >= \"2009-01-01\" and t2.date_order_placed <= \"2010-01-01\"", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.date_order_placed", ">", "=", "``", "2009-01-01", "''", "AND", "T2.date_order_placed", "<", "=", "``", "2010-01-01", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "date_order_placed", ">", "=", "value", "and", "t2", ".", "date_order_placed", "<", "=", "value"], "question": "Give me the names of customers who have placed orders between 2009-01-01 and 2010-01-01.", "question_toks": ["Give", "me", "the", "names", "of", "customers", "who", "have", "placed", "orders", "between", "2009-01-01", "and", "2010-01-01", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"2009-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"2010-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6906", "db_id": "tracking_orders", "query": "select t1.customer_name from customers as t1 join orders as t2 on t1.customer_id = t2.customer_id where t2.date_order_placed >= \"2009-01-01\" and t2.date_order_placed <= \"2010-01-01\"", "query_toks": ["SELECT", "T1.customer_name", "FROM", "customers", "AS", "T1", "JOIN", "orders", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.date_order_placed", ">", "=", "``", "2009-01-01", "''", "AND", "T2.date_order_placed", "<", "=", "``", "2010-01-01", "''"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "date_order_placed", ">", "=", "value", "and", "t2", ".", "date_order_placed", "<", "=", "value"], "question": "Which customers made orders between 2009-01-01 and 2010-01-01? Find their names.", "question_toks": ["Which", "customers", "made", "orders", "between", "2009-01-01", "and", "2010-01-01", "?", "Find", "their", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"2009-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"2010-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6907", "db_id": "tracking_orders", "query": "select distinct t2.product_id from orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.date_order_placed >= \"1975-01-01\" and t1.date_order_placed <= \"1976-01-01\"", "query_toks": ["SELECT", "DISTINCT", "T2.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T1.date_order_placed", ">", "=", "``", "1975-01-01", "''", "AND", "T1.date_order_placed", "<", "=", "``", "1976-01-01", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "date_order_placed", ">", "=", "value", "and", "t1", ".", "date_order_placed", "<", "=", "value"], "question": "Give me a list of distinct product ids from orders placed between 1975-01-01 and 1976-01-01?", "question_toks": ["Give", "me", "a", "list", "of", "distinct", "product", "ids", "from", "orders", "placed", "between", "1975-01-01", "and", "1976-01-01", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"1975-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"1976-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6908", "db_id": "tracking_orders", "query": "select distinct t2.product_id from orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.date_order_placed >= \"1975-01-01\" and t1.date_order_placed <= \"1976-01-01\"", "query_toks": ["SELECT", "DISTINCT", "T2.product_id", "FROM", "orders", "AS", "T1", "JOIN", "order_items", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "WHERE", "T1.date_order_placed", ">", "=", "``", "1975-01-01", "''", "AND", "T1.date_order_placed", "<", "=", "``", "1976-01-01", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "product_id", "from", "orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "date_order_placed", ">", "=", "value", "and", "t1", ".", "date_order_placed", "<", "=", "value"], "question": "What are the distinct ids of products ordered between 1975-01-01 and 1976-01-01??", "question_toks": ["What", "are", "the", "distinct", "ids", "of", "products", "ordered", "between", "1975-01-01", "and", "1976-01-01", "?", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 17, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], "\"1975-01-01\"", null], "and", [false, 6, [0, [0, 10, false], null], "\"1976-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6921", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date > \"2000-01-01\"", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", ">", "``", "2000-01-01", "''"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", ">", "value"], "question": "Find the ids of orders which are shipped after 2000-01-01.", "question_toks": ["Find", "the", "ids", "of", "orders", "which", "are", "shipped", "after", "2000-01-01", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], "\"2000-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6922", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date > \"2000-01-01\"", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", ">", "``", "2000-01-01", "''"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", ">", "value"], "question": "Which orders have shipment after 2000-01-01? Give me the order ids.", "question_toks": ["Which", "orders", "have", "shipment", "after", "2000-01-01", "?", "Give", "me", "the", "order", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], "\"2000-01-01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6933", "db_id": "tracking_orders", "query": "select invoice_number from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "invoice_number", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "invoice_number", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "Find the invoice numbers which are created before 1989-09-03 or after 2007-12-25.", "question_toks": ["Find", "the", "invoice", "numbers", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6934", "db_id": "tracking_orders", "query": "select invoice_number from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "invoice_number", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "invoice_number", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "What are the invoice numbers created before 1989-09-03 or after 2007-12-25?", "question_toks": ["What", "are", "the", "invoice", "numbers", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6935", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "distinct", "invoice_details", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "Find the distinct details of invoices which are created before 1989-09-03 or after 2007-12-25.", "question_toks": ["Find", "the", "distinct", "details", "of", "invoices", "which", "are", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6936", "db_id": "tracking_orders", "query": "select distinct invoice_details from invoices where invoice_date < \"1989-09-03\" or invoice_date > \"2007-12-25\"", "query_toks": ["SELECT", "DISTINCT", "invoice_details", "FROM", "invoices", "WHERE", "invoice_date", "<", "``", "1989-09-03", "''", "OR", "invoice_date", ">", "``", "2007-12-25", "''"], "query_toks_no_value": ["select", "distinct", "invoice_details", "from", "invoices", "where", "invoice_date", "<", "value", "or", "invoice_date", ">", "value"], "question": "What are the distinct details of invoices created before 1989-09-03 or after 2007-12-25?", "question_toks": ["What", "are", "the", "distinct", "details", "of", "invoices", "created", "before", "1989-09-03", "or", "after", "2007-12-25", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], "\"1989-09-03\"", null], "or", [false, 3, [0, [0, 5, false], null], "\"2007-12-25\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5372", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported > \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", ">", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", ">", "value"], "question": "What are the ids of the problems which are reported after 1978-06-26?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "which", "are", "reported", "after", "1978-06-26", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5373", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported > \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", ">", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", ">", "value"], "question": "Find the ids of the problems reported after 1978-06-26.", "question_toks": ["Find", "the", "ids", "of", "the", "problems", "reported", "after", "1978-06-26", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 3, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5374", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported < \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", "<", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", "<", "value"], "question": "What are the ids of the problems which are reported before 1978-06-26?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "which", "are", "reported", "before", "1978-06-26", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5375", "db_id": "tracking_software_problems", "query": "select problem_id from problems where date_problem_reported < \"1978-06-26\"", "query_toks": ["SELECT", "problem_id", "FROM", "problems", "WHERE", "date_problem_reported", "<", "``", "1978-06-26", "''"], "query_toks_no_value": ["select", "problem_id", "from", "problems", "where", "date_problem_reported", "<", "value"], "question": "Which problems are reported before 1978-06-26? Give me the ids of the problems.", "question_toks": ["Which", "problems", "are", "reported", "before", "1978-06-26", "?", "Give", "me", "the", "ids", "of", "the", "problems", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 25, false], null], "\"1978-06-26\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5378", "db_id": "tracking_software_problems", "query": "select count(*) , t2.product_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t1.date_problem_reported > \"1986-11-13\" group by t2.product_id", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "T2.product_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T1.date_problem_reported", ">", "``", "1986-11-13", "''", "GROUP", "BY", "T2.product_id"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "t2", ".", "product_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t1", ".", "date_problem_reported", ">", "value", "group", "by", "t2", ".", "product_id"], "question": "For each product that has problems, find the number of problems reported after 1986-11-13 and the product id?", "question_toks": ["For", "each", "product", "that", "has", "problems", ",", "find", "the", "number", "of", "problems", "reported", "after", "1986-11-13", "and", "the", "product", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 25, false], null], "\"1986-11-13\"", null]], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5394", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\" and t1.date_problem_reported > \"1995\"", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T2.product_name", "=", "``", "voluptatem", "''", "AND", "T1.date_problem_reported", ">", "``", "1995", "''"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value", "and", "t1", ".", "date_problem_reported", ">", "value"], "question": "List the ids of the problems from the product \"voluptatem\" that are reported after 1995?", "question_toks": ["List", "the", "ids", "of", "the", "problems", "from", "the", "product", "``", "voluptatem", "''", "that", "are", "reported", "after", "1995", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null], "and", [false, 3, [0, [0, 25, false], null], "\"1995\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5395", "db_id": "tracking_software_problems", "query": "select t1.problem_id from problems as t1 join product as t2 on t1.product_id = t2.product_id where t2.product_name = \"voluptatem\" and t1.date_problem_reported > \"1995\"", "query_toks": ["SELECT", "T1.problem_id", "FROM", "problems", "AS", "T1", "JOIN", "product", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id", "WHERE", "T2.product_name", "=", "``", "voluptatem", "''", "AND", "T1.date_problem_reported", ">", "``", "1995", "''"], "query_toks_no_value": ["select", "t1", ".", "problem_id", "from", "problems", "as", "t1", "join", "product", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "where", "t2", ".", "product_name", "=", "value", "and", "t1", ".", "date_problem_reported", ">", "value"], "question": "What are the ids of the problems that are from the product \"voluptatem\" and are reported after 1995?", "question_toks": ["What", "are", "the", "ids", "of", "the", "problems", "that", "are", "from", "the", "product", "``", "voluptatem", "''", "and", "are", "reported", "after", "1995", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"voluptatem\"", null], "and", [false, 3, [0, [0, 25, false], null], "\"1995\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0770", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the total number of unique official languages spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "official", "languages", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "DATETIME", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0771", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "For the countries founded before 1930, what is the total number of distinct official languages?", "question_toks": ["For", "the", "countries", "founded", "before", "1930", ",", "what", "is", "the", "total", "number", "of", "distinct", "official", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "DATETIME", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0000", "db_id": "aircraft", "query": "select country from match where date like \"%march%\"", "query_toks": ["select", "country", "from", "match", "where", "date", "like", "\"%", "march", "%\""], "query_toks_no_value": ["select", "country", "from", "match", "where", "date", "like", "\"%", "march", "%\""], "question": "In which countries are aircraft matches held in March?", "question_toks": ["In", "which", "countries", "are", "aircraft", "matches", "held", "in", "March", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 9, [0, [0, 13, false], null], "\"%march%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0001", "db_id": "apartment_rentals", "query": "select distinct(apt_booking_id) from view_unit_status where status_date = \"2015-07-15 11:06:29\"", "query_toks": ["select", "distinct", "(", "apt_booking_id", ")", "from", "view_unit_status", "where", "status_date", "=", "``", "2015", "-", "07", "-", "15", "11", ":", "06", ":", "29", "''"], "query_toks_no_value": ["select", "distinct", "(", "apt_booking_id", ")", "from", "view_unit_status", "where", "status_date", "=", "value", "-", "07", "-", "15", "11", ":", "06", ":", "29"], "question": "List all booking ID that became available at 2015-07-15 11:06:29", "question_toks": ["List", "all", "booking", "ID", "that", "became", "available", "at", "2015", "-", "07", "-", "15", "11", ":", "06", ":", "29"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 30, false], null], "\"2015-07-15 11:06:29\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0002", "db_id": "assets_maintenance", "query": "select distinct(engineer_id), visit_end_datetime from engineer_visits where visit_end_datetime like \"%21:%\" or visit_end_datetime like \"%22:%\" or visit_end_datetime like \"%23:%\" group by visit_end_datetime", "query_toks": ["select", "distinct", "(", "engineer_id", "),", "visit_end_datetime", "from", "engineer_visits", "where", "visit_end_datetime", "like", "\"%", "21", ":%\"", "or", "visit_end_datetime", "like", "\"%", "22", ":%\"", "or", "visit_end_datetime", "like", "\"%", "23", ":%\"", "group", "by", "visit_end_datetime"], "query_toks_no_value": ["select", "distinct", "(", "engineer_id", "),", "visit_end_datetime", "from", "engineer_visits", "where", "visit_end_datetime", "like", "\"%", "21", ":%\"", "or", "visit_end_datetime", "like", "\"%", "22", ":%\"", "or", "visit_end_datetime", "like", "\"%", "23", ":%\"", "group", "by", "visit_end_datetime"], "question": "Output the start times and id of all engineers who have ever begun their visit after 21:00", "question_toks": ["Output", "the", "start", "times", "and", "id", "of", "all", "engineers", "who", "have", "ever", "begun", "their", "visit", "after", "21", ":", "00"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [true, [[0, [0, [0, 49, false], null]], [0, [0, [0, 53, false], null]]]], "where": [[false, 9, [0, [0, 53, false], null], "\"%21:%\"", null], "or", [false, 9, [0, [0, 53, false], null], "\"%22:%\"", null], "or", [false, 9, [0, [0, 53, false], null], "\"%23:%\"", null]], "groupBy": [[0, 53, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0003", "db_id": "battle_death", "query": "select distinct(latin_commander) from battle where date like \"%april%\" and date like \"%1205%\"", "query_toks": ["select", "distinct", "(", "latin_commander", ")", "from", "battle", "where", "date", "like", "\"%", "april", "%\"", "and", "date", "like", "\"%", "1205", "%\""], "query_toks_no_value": ["select", "distinct", "(", "latin_commander", ")", "from", "battle", "where", "date", "like", "\"%", "april", "%\"", "and", "date", "like", "\"%", "1205", "%\""], "question": "Which of the Latin commanders participated in the battles in April 1205?", "question_toks": ["Which", "of", "the", "Latin", "commanders", "participated", "in", "the", "battles", "in", "April", "1205", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%april%\"", null], "and", [false, 9, [0, [0, 3, false], null], "\"%1205%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0004", "db_id": "battle_death", "query": "select count(distinct id) from battle where date like \"%1205%\" or date like \"%1206%\" or date like \"%1207%\"", "query_toks": ["select", "count", "(", "distinct", "id", ")", "from", "battle", "where", "date", "like", "\"%", "1205", "%\"", "or", "date", "like", "\"%", "1206", "%\"", "or", "date", "like", "\"%", "1207", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "id", ")", "from", "battle", "where", "date", "like", "\"%", "1205", "%\"", "or", "date", "like", "\"%", "1206", "%\"", "or", "date", "like", "\"%", "1207", "%\""], "question": "How many battles were fought between 1205 and 1207 inclusive?", "question_toks": ["How", "many", "battles", "were", "fought", "between", "1205", "and", "1207", "inclusive", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [[false, 9, [0, [0, 3, false], null], "\"%1205%\"", null], "or", [false, 9, [0, [0, 3, false], null], "\"%1206%\"", null], "or", [false, 9, [0, [0, 3, false], null], "\"%1207%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0005", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes where date_of_notes like \"%2005-06-30%\"", "query_toks": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "query_toks_no_value": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "question": "Show the id of the notes made on June 30, 2005", "question_toks": ["Show", "the", "id", "of", "the", "notes", "made", "on", "June", "30", ",", "2005"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 9, [0, [0, 38, false], null], "\"%2005-06-30%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0006", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes where date_of_notes like \"%2005-06-30%\"", "query_toks": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "query_toks_no_value": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "question": "ID of the notes made on 30th June, 2005", "question_toks": ["ID", "of", "the", "notes", "made", "on", "30th", "June", ",", "2005"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 9, [0, [0, 38, false], null], "\"%2005-06-30%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0007", "db_id": "behavior_monitoring", "query": "select notes_id from assessment_notes where date_of_notes like \"%2005-06-30%\"", "query_toks": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "query_toks_no_value": ["select", "notes_id", "from", "assessment_notes", "where", "date_of_notes", "like", "\"%", "2005", "-", "06", "-", "30", "%\""], "question": "What the id of the notes made on June the 30th, 2005", "question_toks": ["What", "the", "id", "of", "the", "notes", "made", "on", "June", "the", "30th", ",", "2005"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 9, [0, [0, 38, false], null], "\"%2005-06-30%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0011", "db_id": "cinema", "query": "select title from film where original_air_date = \"september 21\u201325, 1992\"", "query_toks": ["select", "title", "from", "film", "where", "original_air_date", "=", "``", "september", "21", "\u2013", "25", ",", "1992", "''"], "query_toks_no_value": ["select", "title", "from", "film", "where", "original_air_date", "=", "value", "21", "\u2013", "25", ",", "1992"], "question": "Title of the film, released from September 21 to September 25, 1992", "question_toks": ["Title", "of", "the", "film", ",", "released", "from", "September", "21", "to", "September", "25", ",", "1992"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"september 21\u201325, 1992\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0012", "db_id": "cinema", "query": "select title from film where original_air_date = \"september 21\u201325, 1992\"", "query_toks": ["select", "title", "from", "film", "where", "original_air_date", "=", "``", "september", "21", "\u2013", "25", ",", "1992", "''"], "query_toks_no_value": ["select", "title", "from", "film", "where", "original_air_date", "=", "value", "21", "\u2013", "25", ",", "1992"], "question": "Title of the film with original air date from 21 to 25 of September 1992", "question_toks": ["Title", "of", "the", "film", "with", "original", "air", "date", "from", "21", "to", "25", "of", "September", "1992"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"september 21\u201325, 1992\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0013", "db_id": "cinema", "query": "select distinct(title) from film where original_air_date like \"%october%\"", "query_toks": ["select", "distinct", "(", "title", ")", "from", "film", "where", "original_air_date", "like", "\"%", "october", "%\""], "query_toks_no_value": ["select", "distinct", "(", "title", ")", "from", "film", "where", "original_air_date", "like", "\"%", "october", "%\""], "question": "What are the titles of the films released in October?", "question_toks": ["What", "are", "the", "titles", "of", "the", "films", "released", "in", "October", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%october%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0014", "db_id": "cinema", "query": "select avg(show_times_per_day) from schedule where date like \"%july%\"", "query_toks": ["select", "avg", "(", "show_times_per_day", ")", "from", "schedule", "where", "date", "like", "\"%", "july", "%\""], "query_toks_no_value": ["select", "avg", "(", "show_times_per_day", ")", "from", "schedule", "where", "date", "like", "\"%", "july", "%\""], "question": "How many times per day are scheduled movies shown on average in July?", "question_toks": ["How", "many", "times", "per", "day", "are", "scheduled", "movies", "shown", "on", "average", "in", "July", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%july%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0016", "db_id": "coffee_shop", "query": "select distinct(address) from shop join happy_hour on shop.shop_id = happy_hour.shop_id where month = \"april\"", "query_toks": ["select", "distinct", "(", "address", ")", "from", "shop", "join", "happy_hour", "on", "shop", ".", "shop_id", "=", "happy_hour", ".", "shop_id", "where", "month", "=", "``", "april", "''"], "query_toks_no_value": ["select", "distinct", "(", "address", ")", "from", "shop", "join", "happy_hour", "on", "shop", ".", "shop_id", "=", "happy_hour", ".", "shop_id", "where", "month", "=", "value"], "question": "Addresses of shops where happy hour took place in April", "question_toks": ["Addresses", "of", "shops", "where", "happy", "hour", "took", "place", "in", "April"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"april\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0017", "db_id": "coffee_shop", "query": "select avg(num_of_shaff_in_charge) from happy_hour where month = \"may\"", "query_toks": ["select", "avg", "(", "num_of_shaff_in_charge", ")", "from", "happy_hour", "where", "month", "=", "``", "may", "''"], "query_toks_no_value": ["select", "avg", "(", "num_of_shaff_in_charge", ")", "from", "happy_hour", "where", "month", "=", "value"], "question": "Average number of staff in May", "question_toks": ["Average", "number", "of", "staff", "in", "May"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"may\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0018", "db_id": "college_1", "query": "select distinct(class_code) from class where class_time like \"%mwf%\"", "query_toks": ["select", "distinct", "(", "class_code", ")", "from", "class", "where", "class_time", "like", "\"%", "mwf", "%\""], "query_toks_no_value": ["select", "distinct", "(", "class_code", ")", "from", "class", "where", "class_time", "like", "\"%", "mwf", "%\""], "question": "Class Codes that run on Mondays, Wednesdays, and Fridays", "question_toks": ["Class", "Codes", "that", "run", "on", "Mondays", ",", "Wednesdays", ",", "and", "Fridays"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%mwf%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0019", "db_id": "college_1", "query": "select distinct(class_room) from class where class_time like \"%8:00-8:50 a.m.%\"", "query_toks": ["select", "distinct", "(", "class_room", ")", "from", "class", "where", "class_time", "like", "\"%", "8", ":", "00", "-", "8", ":", "50", "a", ".", "m", ".%\""], "query_toks_no_value": ["select", "distinct", "(", "class_room", ")", "from", "class", "where", "class_time", "like", "\"%", "8", ":", "00", "-", "8", ":", "50", "a", ".", "m", ".%\""], "question": "In what classrooms are classes held from 8 am to 9 am?", "question_toks": ["In", "what", "classrooms", "are", "classes", "held", "from", "8", "am", "to", "9", "am", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 4, false], null], "\"%8:00-8:50 a.m.%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0020", "db_id": "college_1", "query": "select distinct(stu_fname) from student where stu_dob like \"%1975%\"", "query_toks": ["select", "distinct", "(", "stu_fname", ")", "from", "student", "where", "stu_dob", "like", "\"%", "1975", "%\""], "query_toks_no_value": ["select", "distinct", "(", "stu_fname", ")", "from", "student", "where", "stu_dob", "like", "\"%", "1975", "%\""], "question": "Surnames of students born in 1975", "question_toks": ["Surnames", "of", "students", "born", "in", "1975"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 34, false], null]]]], "where": [[false, 9, [0, [0, 36, false], null], "\"%1975%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0023", "db_id": "course_teach", "query": "select count(distinct course_id) from course where staring_date like \"%may%\"", "query_toks": ["select", "count", "(", "distinct", "course_id", ")", "from", "course", "where", "staring_date", "like", "\"%", "may", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "course_id", ")", "from", "course", "where", "staring_date", "like", "\"%", "may", "%\""], "question": "Amount of courses started in May", "question_toks": ["Amount", "of", "courses", "started", "in", "May"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%may%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0024", "db_id": "course_teach", "query": "select distinct(course) from course where staring_date = \"14 may\"", "query_toks": ["select", "distinct", "(", "course", ")", "from", "course", "where", "staring_date", "=", "``", "14", "may", "''"], "query_toks_no_value": ["select", "distinct", "(", "course", ")", "from", "course", "where", "staring_date", "=", "value", "may"], "question": "Show me names of the courses started at the 14th of May", "question_toks": ["Show", "me", "names", "of", "the", "courses", "started", "at", "the", "14th", "of", "May"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"14 may\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0025", "db_id": "course_teach", "query": "select min(grade) from course_arrange join course on course_arrange.course_id = course.course_id where staring_date like \"%9 may%\"", "query_toks": ["select", "min", "(", "grade", ")", "from", "course_arrange", "join", "course", "on", "course_arrange", ".", "course_id", "=", "course", ".", "course_id", "where", "staring_date", "like", "\"%", "9", "may", "%\""], "query_toks_no_value": ["select", "min", "(", "grade", ")", "from", "course_arrange", "join", "course", "on", "course_arrange", ".", "course_id", "=", "course", ".", "course_id", "where", "staring_date", "like", "\"%", "9", "may", "%\""], "question": "What is the minimum grade for the May 9 course?", "question_toks": ["What", "is", "the", "minimum", "grade", "for", "the", "May", "9", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[2, [0, [0, 10, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%9 may%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0026", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents where receipt_date like \"%2008%\"", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents", "where", "receipt_date", "like", "\"%", "2008", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents", "where", "receipt_date", "like", "\"%", "2008", "%\""], "question": "Total number of documents received in 2008", "question_toks": ["Total", "number", "of", "documents", "received", "in", "2008"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [[false, 9, [0, [0, 16, false], null], "\"%2008%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0027", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed where mailing_date like \"%-11-%\"", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%-", "11", "-%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%-", "11", "-%\""], "question": "Number of documents mailed in November", "question_toks": ["Number", "of", "documents", "mailed", "in", "November"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [[false, 9, [0, [0, 35, false], null], "\"%-11-%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0028", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed where mailing_date like \"%-05-%\" and mailing_date like \"%1993%\"", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%-", "05", "-%\"", "and", "mailing_date", "like", "\"%", "1993", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%-", "05", "-%\"", "and", "mailing_date", "like", "\"%", "1993", "%\""], "question": "How many documents were mailed in the fifth month of 1993?", "question_toks": ["How", "many", "documents", "were", "mailed", "in", "the", "fifth", "month", "of", "1993", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [[false, 9, [0, [0, 35, false], null], "\"%-05-%\"", null], "and", [false, 9, [0, [0, 35, false], null], "\"%1993%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0029", "db_id": "cre_Doc_Control_Systems", "query": "select count(distinct document_id) from documents_mailed where mailing_date like \"%05%\" and mailing_date like \"%1993%\"", "query_toks": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%", "05", "%\"", "and", "mailing_date", "like", "\"%", "1993", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "document_id", ")", "from", "documents_mailed", "where", "mailing_date", "like", "\"%", "05", "%\"", "and", "mailing_date", "like", "\"%", "1993", "%\""], "question": "How many documents were sent in May 1993?", "question_toks": ["How", "many", "documents", "were", "sent", "in", "May", "1993", "?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[3, [0, [0, 33, true], null]]]], "where": [[false, 9, [0, [0, 35, false], null], "\"%05%\"", null], "and", [false, 9, [0, [0, 35, false], null], "\"%1993%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0030", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where date_effective_from like \"%2005%\" and date_effective_to like \"%2008%\"", "query_toks": ["select", "template_id", "from", "templates", "where", "date_effective_from", "like", "\"%", "2005", "%\"", "and", "date_effective_to", "like", "\"%", "2008", "%\""], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "date_effective_from", "like", "\"%", "2005", "%\"", "and", "date_effective_to", "like", "\"%", "2008", "%\""], "question": "Id of templates effective from 2005 to 2008", "question_toks": ["Id", "of", "templates", "effective", "from", "2005", "to", "2008"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2005%\"", null], "and", [false, 9, [0, [0, 7, false], null], "\"%2008%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0031", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where date_effective_from like \"%2005-11-12%\" and date_effective_to like \"%2008-01-05%\"", "query_toks": ["select", "template_id", "from", "templates", "where", "date_effective_from", "like", "\"%", "2005", "-", "11", "-", "12", "%\"", "and", "date_effective_to", "like", "\"%", "2008", "-", "01", "-", "05", "%\""], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "date_effective_from", "like", "\"%", "2005", "-", "11", "-", "12", "%\"", "and", "date_effective_to", "like", "\"%", "2008", "-", "01", "-", "05", "%\""], "question": "What are the IDs of templates effective from 2005-11-12 to 2008-01-05?", "question_toks": ["What", "are", "the", "IDs", "of", "templates", "effective", "from", "2005", "-", "11", "-", "12", "to", "2008", "-", "01", "-", "05", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2005-11-12%\"", null], "and", [false, 9, [0, [0, 7, false], null], "\"%2008-01-05%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0032", "db_id": "cre_Doc_Template_Mgt", "query": "select count(distinct template_id) from templates where date_effective_from like \"%2010%\" or date_effective_from like \"%2011%\" or date_effective_from like \"%2012%\"", "query_toks": ["select", "count", "(", "distinct", "template_id", ")", "from", "templates", "where", "date_effective_from", "like", "\"%", "2010", "%\"", "or", "date_effective_from", "like", "\"%", "2011", "%\"", "or", "date_effective_from", "like", "\"%", "2012", "%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "template_id", ")", "from", "templates", "where", "date_effective_from", "like", "\"%", "2010", "%\"", "or", "date_effective_from", "like", "\"%", "2011", "%\"", "or", "date_effective_from", "like", "\"%", "2012", "%\""], "question": "Number of templates that became effective between 2010 and 2012", "question_toks": ["Number", "of", "templates", "that", "became", "effective", "between", "2010", "and", "2012"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2010%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%2011%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%2012%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0035", "db_id": "customers_and_addresses", "query": "select sum(t2.order_quantity) from customer_orders as t1 join order_items as t2 on t1.order_id = t2.order_id where t1.order_date < \"2015-03-17 00:00:00.\"", "query_toks": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "``", "2015", "-", "03", "-", "17", "00", ":", "00", ":", "00", ".\""], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "order_quantity", ")", "from", "customer_orders", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "where", "t1", ".", "order_date", "<", "value", "-", "03", "-", "17", "00", ":", "00", ":", "00", ".\""], "question": "Display amount of products ordered before 2015-03-17 00:00:00.", "question_toks": ["Display", "amount", "of", "products", "ordered", "before", "2015", "-", "03", "-", "17", "00", ":", "00", ":", "00", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 4, [0, [0, 28, false], null], "\"2015-03-17 00:00:00.\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0038", "db_id": "entrepreneur", "query": "select distinct(name) from people where date_of_birth like \"%1975%\"", "query_toks": ["select", "distinct", "(", "name", ")", "from", "people", "where", "date_of_birth", "like", "\"%", "1975", "%\""], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "people", "where", "date_of_birth", "like", "\"%", "1975", "%\""], "question": "Surnames of born in 1975", "question_toks": ["Surnames", "of", "born", "in", "1975"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%1975%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0039", "db_id": "entrepreneur", "query": "select distinct(name) from people where date_of_birth like \"%1975-08-27%\"", "query_toks": ["select", "distinct", "(", "name", ")", "from", "people", "where", "date_of_birth", "like", "\"%", "1975", "-", "08", "-", "27", "%\""], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "people", "where", "date_of_birth", "like", "\"%", "1975", "-", "08", "-", "27", "%\""], "question": "Who was born on August 28, 1975?", "question_toks": ["Who", "was", "born", "on", "August", "28", ",", "1975", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%1975-08-27%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0054", "db_id": "inn_1", "query": "select lastname, firstname from reservations where checkin like \"%feb%\"", "query_toks": ["select", "lastname", ",", "firstname", "from", "reservations", "where", "checkin", "like", "\"%", "feb", "%\""], "query_toks_no_value": ["select", "lastname", ",", "firstname", "from", "reservations", "where", "checkin", "like", "\"%", "feb", "%\""], "question": "Last and first names of everyone who checked in in February", "question_toks": ["Last", "and", "first", "names", "of", "everyone", "who", "checked", "in", "in", "February"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%feb%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0055", "db_id": "inn_1", "query": "select lastname, firstname from reservations where checkin like \"%feb%\" and checkout like \"%mar%\"", "query_toks": ["select", "lastname", ",", "firstname", "from", "reservations", "where", "checkin", "like", "\"%", "feb", "%\"", "and", "checkout", "like", "\"%", "mar", "%\""], "query_toks_no_value": ["select", "lastname", ",", "firstname", "from", "reservations", "where", "checkin", "like", "\"%", "feb", "%\"", "and", "checkout", "like", "\"%", "mar", "%\""], "question": "Show me the last and first names of everyone who checked in in February and moved out in March", "question_toks": ["Show", "me", "the", "last", "and", "first", "names", "of", "everyone", "who", "checked", "in", "in", "February", "and", "moved", "out", "in", "March"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 9, [0, [0, 10, false], null], "\"%feb%\"", null], "and", [false, 9, [0, [0, 11, false], null], "\"%mar%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0065", "db_id": "music_1", "query": "select distinct(f_id) from files where duration > \"3:00\"", "query_toks": ["select", "distinct", "(", "f_id", ")", "from", "files", "where", "duration", ">", "``", "3", ":", "00", "''"], "query_toks_no_value": ["select", "distinct", "(", "f_id", ")", "from", "files", "where", "duration", ">", "value", ":", "00"], "question": "Id files with tracks longer than three minutes", "question_toks": ["Id", "files", "with", "tracks", "longer", "than", "three", "minutes"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], "\"3:00\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0066", "db_id": "music_1", "query": "select t1.artist_name , t1.gender from artist as t1 join song as t2 on t1.artist_name = t2.artist_name where t2.releasedate like \"%decr%\"", "query_toks": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "\"%", "decr", "%\""], "query_toks_no_value": ["select", "t1", ".", "artist_name", ",", "t1", ".", "gender", "from", "artist", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "artist_name", "=", "t2", ".", "artist_name", "where", "t2", ".", "releasedate", "like", "\"%", "decr", "%\""], "question": "What the names of all artists who released songs in December.", "question_toks": ["What", "the", "names", "of", "all", "artists", "who", "released", "songs", "in", "December", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 9, [0, [0, 20, false], null], "\"%decr%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0067", "db_id": "station_weather", "query": "select name from train where time = \"21:49\"", "query_toks": ["select", "name", "from", "train", "where", "time", "=", "``", "21", ":", "49", "''"], "query_toks_no_value": ["select", "name", "from", "train", "where", "time", "=", "value", ":", "49"], "question": "Name of train with departure time 9:49 PM", "question_toks": ["Name", "of", "train", "with", "departure", "time", "9", ":", "49", "PM"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"21:49\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0068", "db_id": "station_weather", "query": "select distinct(train_number) from train where time like \"%10:%\" or time like \"%11:%\" or time like \"%12:%\"", "query_toks": ["select", "distinct", "(", "train_number", ")", "from", "train", "where", "time", "like", "\"%", "10", ":%\"", "or", "time", "like", "\"%", "11", ":%\"", "or", "time", "like", "\"%", "12", ":%\""], "query_toks_no_value": ["select", "distinct", "(", "train_number", ")", "from", "train", "where", "time", "like", "\"%", "10", ":%\"", "or", "time", "like", "\"%", "11", ":%\"", "or", "time", "like", "\"%", "12", ":%\""], "question": "Give me all trains numbers with time between 10:00 and 13:00", "question_toks": ["Give", "me", "all", "trains", "numbers", "with", "time", "between", "10", ":", "00", "and", "13", ":", "00"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%10:%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%11:%\"", null], "or", [false, 9, [0, [0, 6, false], null], "\"%12:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0069", "db_id": "theme_gallery", "query": "select sum(attendance) from exhibition_record where date like \"%december%\"", "query_toks": ["select", "sum", "(", "attendance", ")", "from", "exhibition_record", "where", "date", "like", "\"%", "december", "%\""], "query_toks_no_value": ["select", "sum", "(", "attendance", ")", "from", "exhibition_record", "where", "date", "like", "\"%", "december", "%\""], "question": "How many people attended the gallery in December?", "question_toks": ["How", "many", "people", "attended", "the", "gallery", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]]]], "where": [[false, 9, [0, [0, 12, false], null], "\"%december%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0093", "db_id": "twitter_1", "query": "select count(distinct id) from tweets where createdate like \"%20:%\"", "query_toks": ["select", "count", "(", "distinct", "id", ")", "from", "tweets", "where", "createdate", "like", "\"%", "20", ":%\""], "query_toks_no_value": ["select", "count", "(", "distinct", "id", ")", "from", "tweets", "where", "createdate", "like", "\"%", "20", ":%\""], "question": "How many tweets are generated at 8 PM?", "question_toks": ["How", "many", "tweets", "are", "generated", "at", "8", "PM", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%20:%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0094", "db_id": "twitter_1", "query": "select text from tweets where createdate like \"%2018-03-12%\"", "query_toks": ["select", "text", "from", "tweets", "where", "createdate", "like", "\"%", "2018", "-", "03", "-", "12", "%\""], "query_toks_no_value": ["select", "text", "from", "tweets", "where", "createdate", "like", "\"%", "2018", "-", "03", "-", "12", "%\""], "question": "Tweet texts created December 3, 2018", "question_toks": ["Tweet", "texts", "created", "December", "3", ",", "2018"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 9, [0, [0, 6, false], null], "\"%2018-03-12%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0095", "db_id": "workshop_paper", "query": "select distinct(name) from workshop where date like \"%august%\" and date like \"%2007%\"", "query_toks": ["select", "distinct", "(", "name", ")", "from", "workshop", "where", "date", "like", "\"%", "august", "%\"", "and", "date", "like", "\"%", "2007", "%\""], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "workshop", "where", "date", "like", "\"%", "august", "%\"", "and", "date", "like", "\"%", "2007", "%\""], "question": "Names of workshops held in August 2007", "question_toks": ["Names", "of", "workshops", "held", "in", "August", "2007"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%august%\"", null], "and", [false, 9, [0, [0, 2, false], null], "\"%2007%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_datetime_0096", "db_id": "workshop_paper", "query": "select distinct(name) from workshop where date like \"%july%\" and date like \"%2011%\" and date like \"%5%\"", "query_toks": ["select", "distinct", "(", "name", ")", "from", "workshop", "where", "date", "like", "\"%", "july", "%\"", "and", "date", "like", "\"%", "2011", "%\"", "and", "date", "like", "\"%", "5", "%\""], "query_toks_no_value": ["select", "distinct", "(", "name", ")", "from", "workshop", "where", "date", "like", "\"%", "july", "%\"", "and", "date", "like", "\"%", "2011", "%\"", "and", "date", "like", "\"%", "5", "%\""], "question": "What was the name of the workshop held on 5th of July, 2011", "question_toks": ["What", "was", "the", "name", "of", "the", "workshop", "held", "on", "5th", "of", "July", ",", "2011"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 4, false], null]]]], "where": [[false, 9, [0, [0, 2, false], null], "\"%july%\"", null], "and", [false, 9, [0, [0, 2, false], null], "\"%2011%\"", null], "and", [false, 9, [0, [0, 2, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DATETIME"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0004", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = 'france'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "'France", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age of all singers from France?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0005", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = 'france'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "singer", "WHERE", "country", "=", "'France", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age for all French singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"France\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0017", "db_id": "concert_singer", "query": "select avg(capacity) , max(capacity) from stadium", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "question": "What is the average and maximum capacities for all stadiums ?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0271", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "find the minimum and maximum number of products of all stores.", "question_toks": ["find", "the", "minimum", "and", "maximum", "number", "of", "products", "of", "all", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0272", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["SELECT", "min", "(", "Number_products", ")", ",", "max", "(", "Number_products", ")", "FROM", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "What are the minimum and maximum number of products across all the shops?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0424", "db_id": "museum_visit", "query": "select avg(num_of_ticket) , max(num_of_ticket) from visit", "query_toks": ["SELECT", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "FROM", "visit"], "query_toks_no_value": ["select", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "from", "visit"], "question": "What are the average and maximum number of tickets bought in all visits?", "question_toks": ["What", "are", "the", "average", "and", "maximum", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0494", "db_id": "battle_death", "query": "select max(killed) , min(killed) from death", "query_toks": ["SELECT", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "FROM", "death"], "query_toks_no_value": ["select", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "from", "death"], "question": "What is maximum and minimum death toll caused each time?", "question_toks": ["What", "is", "maximum", "and", "minimum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0617", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series;", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What is minimum and maximum share of TV series?", "question_toks": ["What", "is", "minimum", "and", "maximum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0618", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series;", "query_toks": ["SELECT", "max", "(", "SHARE", ")", ",", "min", "(", "SHARE", ")", "FROM", "TV_series", ";"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What is the maximum and minimum share for the TV series?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0690", "db_id": "voter_1", "query": "select max(area_code) , min(area_code) from area_code_state", "query_toks": ["SELECT", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "FROM", "area_code_state"], "query_toks_no_value": ["select", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "from", "area_code_state"], "question": "What are the maximum and minimum values of area codes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 1, false], null]], [2, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0003", "db_id": "department_management", "query": "select max(budget_in_billions) , min(budget_in_billions) from department", "query_toks": ["SELECT", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "FROM", "department"], "query_toks_no_value": ["select", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "from", "department"], "question": "What are the maximum and minimum budget of the departments?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0026", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "What are the maximum and minimum number of cows across all farms.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0027", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["SELECT", "max", "(", "Cows", ")", ",", "min", "(", "Cows", ")", "FROM", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "Return the maximum and minimum number of cows across all farms.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0121", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and maximum duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "maximum", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0122", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["SELECT", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "FROM", "trip", "WHERE", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and maximum duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "maximum", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0300", "db_id": "twitter_1", "query": "select max(followers) , sum(followers) from user_profiles", "query_toks": ["SELECT", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "FROM", "user_profiles"], "query_toks_no_value": ["select", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "from", "user_profiles"], "question": "Find the maximum and total number of followers of all users.", "question_toks": ["Find", "the", "maximum", "and", "total", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0321", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "What are the average and minimum price (in Euro) of all products?", "question_toks": ["What", "are", "the", "average", "and", "minimum", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0322", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["SELECT", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "FROM", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "Give me the average and minimum price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "average", "and", "minimum", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0353", "db_id": "flight_1", "query": "select min(distance) , avg(distance) , max(distance) from aircraft", "query_toks": ["SELECT", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "FROM", "Aircraft"], "query_toks_no_value": ["select", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "from", "aircraft"], "question": "What is the minimum, average, and maximum distance of all aircrafts.", "question_toks": ["What", "is", "the", "minimum", ",", "average", ",", "and", "maximum", "distance", "of", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0354", "db_id": "flight_1", "query": "select min(distance) , avg(distance) , max(distance) from aircraft", "query_toks": ["SELECT", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "FROM", "Aircraft"], "query_toks_no_value": ["select", "min", "(", "distance", ")", ",", "avg", "(", "distance", ")", ",", "max", "(", "distance", ")", "from", "aircraft"], "question": "Return the minimum, average and maximum distances traveled across all aircrafts.", "question_toks": ["Return", "the", "minimum", ",", "average", "and", "maximum", "distances", "traveled", "across", "all", "aircrafts", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0371", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "question": "What is average and maximum salary of all employees.", "question_toks": ["What", "is", "average", "and", "maximum", "salary", "of", "all", "employees", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0372", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["SELECT", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "FROM", "Employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "question": "What is the average and largest salary of all employees?", "question_toks": ["What", "is", "the", "average", "and", "largest", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0483", "db_id": "allergy_1", "query": "select min(age) , avg(age) , max(age) from student", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student"], "question": "Show the minimum, average, and maximum age of all students.", "question_toks": ["Show", "the", "minimum", ",", "average", ",", "and", "maximum", "age", "of", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]], [1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0484", "db_id": "allergy_1", "query": "select min(age) , avg(age) , max(age) from student", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "FROM", "Student"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "avg", "(", "age", ")", ",", "max", "(", "age", ")", "from", "student"], "question": "What is the minimum, mean, and maximum age across all students?", "question_toks": ["What", "is", "the", "minimum", ",", "mean", ",", "and", "maximum", "age", "across", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]], [1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG", "MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0738", "db_id": "customers_card_transactions", "query": "select avg(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Return the average transaction amount, as well as the total amount of all transactions.", "question_toks": ["Return", "the", "average", "transaction", "amount", ",", "as", "well", "as", "the", "total", "amount", "of", "all", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]], [4, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0755", "db_id": "race_track", "query": "select min(seating) , max(seating) , avg(seating) from track", "query_toks": ["SELECT", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "FROM", "track"], "query_toks_no_value": ["select", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "from", "track"], "question": "What is the minimum, maximum, and average seating for all tracks.", "question_toks": ["What", "is", "the", "minimum", ",", "maximum", ",", "and", "average", "seating", "for", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0756", "db_id": "race_track", "query": "select min(seating) , max(seating) , avg(seating) from track", "query_toks": ["SELECT", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "FROM", "track"], "query_toks_no_value": ["select", "min", "(", "seating", ")", ",", "max", "(", "seating", ")", ",", "avg", "(", "seating", ")", "from", "track"], "question": "Return the minimum, maximum, and average seating across all tracks.", "question_toks": ["Return", "the", "minimum", ",", "maximum", ",", "and", "average", "seating", "across", "all", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0832", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "TRACK"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "Find the maximum and minimum durations of tracks in milliseconds.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "durations", "of", "tracks", "in", "milliseconds", "."], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0882", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"pop\"", "query_toks": ["SELECT", "max", "(", "Milliseconds", ")", ",", "min", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Pop", "''"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "Find the maximum and minimum millisecond lengths of pop tracks.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "millisecond", "lengths", "of", "pop", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0901", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the total and average amount of settlements.", "question_toks": ["Find", "the", "total", "and", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0902", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["SELECT", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Return the sum and average of all settlement amounts.", "question_toks": ["Return", "the", "sum", "and", "average", "of", "all", "settlement", "amounts", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0927", "db_id": "insurance_fnol", "query": "select max(settlement_amount) , min(settlement_amount) from settlements", "query_toks": ["SELECT", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "from", "settlements"], "question": "What are the maximum and minimum settlement amount on record?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "settlement", "amount", "on", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [2, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0928", "db_id": "insurance_fnol", "query": "select max(settlement_amount) , min(settlement_amount) from settlements", "query_toks": ["SELECT", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "FROM", "settlements"], "query_toks_no_value": ["select", "max", "(", "settlement_amount", ")", ",", "min", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the maximum and minimum settlement amount.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "settlement", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]], [2, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0999", "db_id": "university_basketball", "query": "select sum(enrollment) , min(enrollment) from university", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "university"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "university"], "question": "What is the total and minimum enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "and", "minimum", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1000", "db_id": "university_basketball", "query": "select sum(enrollment) , min(enrollment) from university", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "university"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "university"], "question": "Return the total and minimum enrollments across all schools.", "question_toks": ["Return", "the", "total", "and", "minimum", "enrollments", "across", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1027", "db_id": "phone_1", "query": "select max(t1.ram_mib) , min(t1.ram_mib) from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t2.company_name = \"nokia corporation\";", "query_toks": ["SELECT", "max", "(", "T1.RAM_MiB", ")", ",", "min", "(", "T1.RAM_MiB", ")", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "WHERE", "T2.Company_name", "=", "``", "Nokia", "Corporation", "''", ";"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "ram_mib", ")", ",", "min", "(", "t1", ".", "ram_mib", ")", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t2", ".", "company_name", "=", "value"], "question": "What is maximum and minimum RAM size of phone produced by company named \"Nokia Corporation\"?", "question_toks": ["What", "is", "maximum", "and", "minimum", "RAM", "size", "of", "phone", "produced", "by", "company", "named", "``", "Nokia", "Corporation", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Nokia Corporation\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1035", "db_id": "phone_1", "query": "select max(used_kb) , min(used_kb) , avg(used_kb) from screen_mode;", "query_toks": ["SELECT", "max", "(", "used_kb", ")", ",", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "FROM", "screen_mode", ";"], "query_toks_no_value": ["select", "max", "(", "used_kb", ")", ",", "min", "(", "used_kb", ")", ",", "avg", "(", "used_kb", ")", "from", "screen_mode"], "question": "List the maximum, minimum and average number of used kb in screen mode.", "question_toks": ["List", "the", "maximum", ",", "minimum", "and", "average", "number", "of", "used", "kb", "in", "screen", "mode", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]], [2, [0, [0, 12, false], null]], [5, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1177", "db_id": "election_representative", "query": "select min(vote_percent) , max(vote_percent) from election", "query_toks": ["SELECT", "min", "(", "Vote_Percent", ")", ",", "max", "(", "Vote_Percent", ")", "FROM", "election"], "query_toks_no_value": ["select", "min", "(", "vote_percent", ")", ",", "max", "(", "vote_percent", ")", "from", "election"], "question": "What are the minimum and maximum vote percents of elections?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "vote", "percents", "of", "elections", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1206", "db_id": "apartment_rentals", "query": "select min(bathroom_count) , max(bathroom_count) from apartments", "query_toks": ["SELECT", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["select", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "from", "apartments"], "question": "What is the minimum and maximum number of bathrooms of all the apartments?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "number", "of", "bathrooms", "of", "all", "the", "apartments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1207", "db_id": "apartment_rentals", "query": "select min(bathroom_count) , max(bathroom_count) from apartments", "query_toks": ["SELECT", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["select", "min", "(", "bathroom_count", ")", ",", "max", "(", "bathroom_count", ")", "from", "apartments"], "question": "Give me the minimum and maximum bathroom count among all the apartments.", "question_toks": ["Give", "me", "the", "minimum", "and", "maximum", "bathroom", "count", "among", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1264", "db_id": "apartment_rentals", "query": "select apt_type_code , max(room_count) , min(room_count) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "query_toks_no_value": ["select", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "question": "Show each apartment type code, and the maximum and minimum number of rooms for each type.", "question_toks": ["Show", "each", "apartment", "type", "code", ",", "and", "the", "maximum", "and", "minimum", "number", "of", "rooms", "for", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1265", "db_id": "apartment_rentals", "query": "select apt_type_code , max(room_count) , min(room_count) from apartments group by apt_type_code", "query_toks": ["SELECT", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "FROM", "Apartments", "GROUP", "BY", "apt_type_code"], "query_toks_no_value": ["select", "apt_type_code", ",", "max", "(", "room_count", ")", ",", "min", "(", "room_count", ")", "from", "apartments", "group", "by", "apt_type_code"], "question": "Return each apartment type code along with the maximum and minimum number of rooms among each type.", "question_toks": ["Return", "each", "apartment", "type", "code", "along", "with", "the", "maximum", "and", "minimum", "number", "of", "rooms", "among", "each", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1277", "db_id": "game_injury", "query": "select max(home_games) , min(home_games) , avg(home_games) from stadium", "query_toks": ["SELECT", "max", "(", "home_games", ")", ",", "min", "(", "home_games", ")", ",", "avg", "(", "home_games", ")", "FROM", "stadium"], "query_toks_no_value": ["select", "max", "(", "home_games", ")", ",", "min", "(", "home_games", ")", ",", "avg", "(", "home_games", ")", "from", "stadium"], "question": "What are the maximum, minimum and average home games each stadium held?", "question_toks": ["What", "are", "the", "maximum", ",", "minimum", "and", "average", "home", "games", "each", "stadium", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1296", "db_id": "soccer_1", "query": "select max(weight) , min(weight) from player", "query_toks": ["SELECT", "max", "(", "weight", ")", ",", "min", "(", "weight", ")", "FROM", "Player"], "query_toks_no_value": ["select", "max", "(", "weight", ")", ",", "min", "(", "weight", ")", "from", "player"], "question": "What is the maximum and minimum height of all players?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "height", "of", "all", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 51, false], null]], [2, [0, [0, 51, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1394", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "Find the maximum and average capacity among rooms in each building.", "question_toks": ["Find", "the", "maximum", "and", "average", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1395", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["SELECT", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "FROM", "classroom", "GROUP", "BY", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "What are the greatest and average capacity for rooms in each building?", "question_toks": ["What", "are", "the", "greatest", "and", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1515", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) , avg(amount_piad) from claim_headers", "query_toks": ["SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "query_toks_no_value": ["select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "question": "Find the total and average amount paid in claim headers.", "question_toks": ["Find", "the", "total", "and", "average", "amount", "paid", "in", "claim", "headers", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]], [5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1516", "db_id": "insurance_and_eClaims", "query": "select sum(amount_piad) , avg(amount_piad) from claim_headers", "query_toks": ["SELECT", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "FROM", "claim_headers"], "query_toks_no_value": ["select", "sum", "(", "amount_piad", ")", ",", "avg", "(", "amount_piad", ")", "from", "claim_headers"], "question": "What are the total amount and average amount paid in claim headers?", "question_toks": ["What", "are", "the", "total", "amount", "and", "average", "amount", "paid", "in", "claim", "headers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]], [5, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1583", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["SELECT", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "What is the average, minimum, maximum, and total transaction amount?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [1, [0, [0, 40, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1638", "db_id": "wedding", "query": "select min(age) , max(age) , avg(age) from people", "query_toks": ["SELECT", "min", "(", "age", ")", ",", "max", "(", "age", ")", ",", "avg", "(", "age", ")", "FROM", "people"], "query_toks_no_value": ["select", "min", "(", "age", ")", ",", "max", "(", "age", ")", ",", "avg", "(", "age", ")", "from", "people"], "question": "Show the minimum, maximum, and average age for all people.", "question_toks": ["Show", "the", "minimum", ",", "maximum", ",", "and", "average", "age", "for", "all", "people", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1659", "db_id": "theme_gallery", "query": "select avg(age) , min(age) from artist where country = 'united states'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "value"], "question": "What is the average and minimum age of all artists from United States.", "question_toks": ["What", "is", "the", "average", "and", "minimum", "age", "of", "all", "artists", "from", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1660", "db_id": "theme_gallery", "query": "select avg(age) , min(age) from artist where country = 'united states'", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "FROM", "artist", "WHERE", "country", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", "from", "artist", "where", "country", "=", "value"], "question": "Return the average and minimum ages across artists from the United States.", "question_toks": ["Return", "the", "average", "and", "minimum", "ages", "across", "artists", "from", "the", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1675", "db_id": "theme_gallery", "query": "select avg(ticket_price) , min(ticket_price) , max(ticket_price) from exhibition where year < 2009", "query_toks": ["SELECT", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009"], "query_toks_no_value": ["select", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value"], "question": "Show the average, minimum, and maximum ticket prices for exhibitions for all years before 2009.", "question_toks": ["Show", "the", "average", ",", "minimum", ",", "and", "maximum", "ticket", "prices", "for", "exhibitions", "for", "all", "years", "before", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]], [2, [0, [0, 10, false], null]], [1, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1676", "db_id": "theme_gallery", "query": "select avg(ticket_price) , min(ticket_price) , max(ticket_price) from exhibition where year < 2009", "query_toks": ["SELECT", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "FROM", "exhibition", "WHERE", "YEAR", "<", "2009"], "query_toks_no_value": ["select", "avg", "(", "ticket_price", ")", ",", "min", "(", "ticket_price", ")", ",", "max", "(", "ticket_price", ")", "from", "exhibition", "where", "year", "<", "value"], "question": "What are the average, minimum, and maximum ticket prices for exhibitions that happened prior to 2009?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "ticket", "prices", "for", "exhibitions", "that", "happened", "prior", "to", "2009", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]], [2, [0, [0, 10, false], null]], [1, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 7, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1693", "db_id": "epinions_1", "query": "select avg(rating) , max(rating) from review", "query_toks": ["SELECT", "avg", "(", "rating", ")", ",", "max", "(", "rating", ")", "FROM", "review"], "query_toks_no_value": ["select", "avg", "(", "rating", ")", ",", "max", "(", "rating", ")", "from", "review"], "question": "Find the average and maximum rating of all reviews.", "question_toks": ["Find", "the", "average", "and", "maximum", "rating", "of", "all", "reviews", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]], [1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1829", "db_id": "browser_web", "query": "select max(market_share) , min(market_share) , avg(market_share) from browser", "query_toks": ["SELECT", "max", "(", "market_share", ")", ",", "min", "(", "market_share", ")", ",", "avg", "(", "market_share", ")", "FROM", "browser"], "query_toks_no_value": ["select", "max", "(", "market_share", ")", ",", "min", "(", "market_share", ")", ",", "avg", "(", "market_share", ")", "from", "browser"], "question": "What is the maximum, minimum and average market share of the listed browsers?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "market", "share", "of", "the", "listed", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]], [5, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1888", "db_id": "school_finance", "query": "select sum(enrollment) , avg(enrollment) from school", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "from", "school"], "question": "What are the total and average enrollment of all schools?", "question_toks": ["What", "are", "the", "total", "and", "average", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]], [5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1891", "db_id": "school_finance", "query": "select avg(enrollment) , max(enrollment) , min(enrollment) from school", "query_toks": ["SELECT", "avg", "(", "enrollment", ")", ",", "max", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "FROM", "school"], "query_toks_no_value": ["select", "avg", "(", "enrollment", ")", ",", "max", "(", "enrollment", ")", ",", "min", "(", "enrollment", ")", "from", "school"], "question": "Show the average, maximum, minimum enrollment of all schools.", "question_toks": ["Show", "the", "average", ",", "maximum", ",", "minimum", "enrollment", "of", "all", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1913", "db_id": "protein_institute", "query": "select avg(floors) , max(floors) , min(floors) from building", "query_toks": ["SELECT", "avg", "(", "floors", ")", ",", "max", "(", "floors", ")", ",", "min", "(", "floors", ")", "FROM", "building"], "query_toks_no_value": ["select", "avg", "(", "floors", ")", ",", "max", "(", "floors", ")", ",", "min", "(", "floors", ")", "from", "building"], "question": "What are the average, maximum, and minimum number of floors for all buildings?", "question_toks": ["What", "are", "the", "average", ",", "maximum", ",", "and", "minimum", "number", "of", "floors", "for", "all", "buildings", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]], [1, [0, [0, 6, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1940", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema where openning_year >= 2011", "query_toks": ["SELECT", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "FROM", "cinema", "WHERE", "openning_year", ">", "=", "2011"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">", "=", "value"], "question": "Show the average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "the", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1971", "db_id": "products_for_hire", "query": "select max(booked_count) , min(booked_count) , avg(booked_count) from products_booked", "query_toks": ["SELECT", "max", "(", "booked_count", ")", ",", "min", "(", "booked_count", ")", ",", "avg", "(", "booked_count", ")", "FROM", "products_booked"], "query_toks_no_value": ["select", "max", "(", "booked_count", ")", ",", "min", "(", "booked_count", ")", ",", "avg", "(", "booked_count", ")", "from", "products_booked"], "question": "What are the maximum, minimum, and average booked count for the products booked?", "question_toks": ["What", "are", "the", "maximum", ",", "minimum", ",", "and", "average", "booked", "count", "for", "the", "products", "booked", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [5, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2001", "db_id": "gas_company", "query": "select min(market_value) , max(market_value) , avg(market_value) from company", "query_toks": ["SELECT", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "FROM", "company"], "query_toks_no_value": ["select", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "from", "company"], "question": "Show minimum, maximum, and average market value for all companies.", "question_toks": ["Show", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "all", "companies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2002", "db_id": "gas_company", "query": "select min(market_value) , max(market_value) , avg(market_value) from company", "query_toks": ["SELECT", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "FROM", "company"], "query_toks_no_value": ["select", "min", "(", "market_value", ")", ",", "max", "(", "market_value", ")", ",", "avg", "(", "market_value", ")", "from", "company"], "question": "What is the minimum, maximum, and average market value for every company?", "question_toks": ["What", "is", "the", "minimum", ",", "maximum", ",", "and", "average", "market", "value", "for", "every", "company", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]], [5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2412", "db_id": "candidate_poll", "query": "select avg(weight) , min(weight) , sex from people group by sex", "query_toks": ["SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "question": "Find the average and minimum weight for each gender.", "question_toks": ["Find", "the", "average", "and", "minimum", "weight", "for", "each", "gender", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "MULTI_AGGREGATION", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2413", "db_id": "candidate_poll", "query": "select avg(weight) , min(weight) , sex from people group by sex", "query_toks": ["SELECT", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "FROM", "people", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "weight", ")", ",", "min", "(", "weight", ")", ",", "sex", "from", "people", "group", "by", "sex"], "question": "What are the average and minimum weights for people of each sex?", "question_toks": ["What", "are", "the", "average", "and", "minimum", "weights", "for", "people", "of", "each", "sex", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2451", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["SELECT", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "FROM", "Rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What is the maximum and mininum number of stars a rating can receive?", "question_toks": ["What", "is", "the", "maximum", "and", "mininum", "number", "of", "stars", "a", "rating", "can", "receive", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2538", "db_id": "county_public_safety", "query": "select min(crime_rate) , max(crime_rate) from county_public_safety", "query_toks": ["SELECT", "min", "(", "Crime_rate", ")", ",", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "query_toks_no_value": ["select", "min", "(", "crime_rate", ")", ",", "max", "(", "crime_rate", ")", "from", "county_public_safety"], "question": "What are the minimum and maximum crime rate of counties?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "crime", "rate", "of", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2539", "db_id": "county_public_safety", "query": "select min(crime_rate) , max(crime_rate) from county_public_safety", "query_toks": ["SELECT", "min", "(", "Crime_rate", ")", ",", "max", "(", "Crime_rate", ")", "FROM", "county_public_safety"], "query_toks_no_value": ["select", "min", "(", "crime_rate", ")", ",", "max", "(", "crime_rate", ")", "from", "county_public_safety"], "question": "Return the minimum and maximum crime rates across all counties.", "question_toks": ["Return", "the", "minimum", "and", "maximum", "crime", "rates", "across", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2620", "db_id": "inn_1", "query": "select decor , avg(baseprice) , min(baseprice) from rooms group by decor;", "query_toks": ["SELECT", "decor", ",", "avg", "(", "basePrice", ")", ",", "min", "(", "basePrice", ")", "FROM", "Rooms", "GROUP", "BY", "decor", ";"], "query_toks_no_value": ["select", "decor", ",", "avg", "(", "baseprice", ")", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "question": "Find the average and minimum price of the rooms in different decor.", "question_toks": ["Find", "the", "average", "and", "minimum", "price", "of", "the", "rooms", "in", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [5, [0, [0, 6, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2702", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000"], "query_toks_no_value": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value"], "question": "Show the average and maximum damage for all storms with max speed higher than 1000.", "question_toks": ["Show", "the", "average", "and", "maximum", "damage", "for", "all", "storms", "with", "max", "speed", "higher", "than", "1000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2703", "db_id": "storm_record", "query": "select avg(damage_millions_usd) , max(damage_millions_usd) from storm where max_speed > 1000", "query_toks": ["SELECT", "avg", "(", "damage_millions_USD", ")", ",", "max", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "1000"], "query_toks_no_value": ["select", "avg", "(", "damage_millions_usd", ")", ",", "max", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value"], "question": "What is the average and maximum damage in millions for storms that had a max speed over 1000?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "damage", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "over", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2740", "db_id": "election", "query": "select max(population) , min(population) from county", "query_toks": ["SELECT", "max", "(", "Population", ")", ",", "min", "(", "Population", ")", "FROM", "county"], "query_toks_no_value": ["select", "max", "(", "population", ")", ",", "min", "(", "population", ")", "from", "county"], "question": "Return the maximum and minimum population among all counties.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "population", "among", "all", "counties", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2741", "db_id": "election", "query": "select max(population) , min(population) from county", "query_toks": ["SELECT", "max", "(", "Population", ")", ",", "min", "(", "Population", ")", "FROM", "county"], "query_toks_no_value": ["select", "max", "(", "population", ")", ",", "min", "(", "population", ")", "from", "county"], "question": "What are the maximum and minimum population of the counties?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "population", "of", "the", "counties", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [2, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2817", "db_id": "news_report", "query": "select avg(event_attendance) , max(event_attendance) from event", "query_toks": ["SELECT", "avg", "(", "Event_Attendance", ")", ",", "max", "(", "Event_Attendance", ")", "FROM", "event"], "query_toks_no_value": ["select", "avg", "(", "event_attendance", ")", ",", "max", "(", "event_attendance", ")", "from", "event"], "question": "what are the average and maximum attendances of all events?", "question_toks": ["what", "are", "the", "average", "and", "maximum", "attendances", "of", "all", "events", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3098", "db_id": "behavior_monitoring", "query": "select max(monthly_rental) , min(monthly_rental) from student_addresses", "query_toks": ["SELECT", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "FROM", "Student_Addresses"], "query_toks_no_value": ["select", "max", "(", "monthly_rental", ")", ",", "min", "(", "monthly_rental", ")", "from", "student_addresses"], "question": "Find the maximum and minimum monthly rental for all student addresses.", "question_toks": ["Find", "the", "maximum", "and", "minimum", "monthly", "rental", "for", "all", "student", "addresses", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[1, [0, [0, 60, false], null]], [2, [0, [0, 60, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3221", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["SELECT", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "Find the max, average, and minimum gpa of all students in each department.", "question_toks": ["Find", "the", "max", ",", "average", ",", "and", "minimum", "gpa", "of", "all", "students", "in", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3347", "db_id": "sports_competition", "query": "select max(silver) , min(silver) from club_rank", "query_toks": ["SELECT", "max", "(", "Silver", ")", ",", "min", "(", "Silver", ")", "FROM", "club_rank"], "query_toks_no_value": ["select", "max", "(", "silver", ")", ",", "min", "(", "silver", ")", "from", "club_rank"], "question": "What are the maximum and minimum number of silver medals for clubs.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "silver", "medals", "for", "clubs", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3348", "db_id": "sports_competition", "query": "select max(silver) , min(silver) from club_rank", "query_toks": ["SELECT", "max", "(", "Silver", ")", ",", "min", "(", "Silver", ")", "FROM", "club_rank"], "query_toks_no_value": ["select", "max", "(", "silver", ")", ",", "min", "(", "silver", ")", "from", "club_rank"], "question": "What are the maximum and minimum number of silver medals for all the clubs?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "silver", "medals", "for", "all", "the", "clubs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3714", "db_id": "mountain_photos", "query": "select max(height) , avg(height) from mountain", "query_toks": ["SELECT", "max", "(", "height", ")", ",", "avg", "(", "height", ")", "FROM", "mountain"], "query_toks_no_value": ["select", "max", "(", "height", ")", ",", "avg", "(", "height", ")", "from", "mountain"], "question": "What are the maximum and average height of the mountains?", "question_toks": ["What", "are", "the", "maximum", "and", "average", "height", "of", "the", "mountains", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4100", "db_id": "company_employee", "query": "select max(market_value_in_billion) , min(market_value_in_billion) from company", "query_toks": ["SELECT", "max", "(", "Market_Value_in_Billion", ")", ",", "min", "(", "Market_Value_in_Billion", ")", "FROM", "company"], "query_toks_no_value": ["select", "max", "(", "market_value_in_billion", ")", ",", "min", "(", "market_value_in_billion", ")", "from", "company"], "question": "What is the maximum and minimum market value of companies?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "market", "value", "of", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4122", "db_id": "film_rank", "query": "select max(number_cities) , min(number_cities) from market", "query_toks": ["SELECT", "max", "(", "Number_cities", ")", ",", "min", "(", "Number_cities", ")", "FROM", "market"], "query_toks_no_value": ["select", "max", "(", "number_cities", ")", ",", "min", "(", "number_cities", ")", "from", "market"], "question": "What are the maximum and minimum number of cities in all markets.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "cities", "in", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4123", "db_id": "film_rank", "query": "select max(number_cities) , min(number_cities) from market", "query_toks": ["SELECT", "max", "(", "Number_cities", ")", ",", "min", "(", "Number_cities", ")", "FROM", "market"], "query_toks_no_value": ["select", "max", "(", "number_cities", ")", ",", "min", "(", "number_cities", ")", "from", "market"], "question": "Return the maximum and minimum number of cities across all markets.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "number", "of", "cities", "across", "all", "markets", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]], [2, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4649", "db_id": "college_3", "query": "select max(gradepoint) , min(gradepoint) from gradeconversion", "query_toks": ["SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "Find the max and min grade point for all letter grade.", "question_toks": ["Find", "the", "max", "and", "min", "grade", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4650", "db_id": "college_3", "query": "select max(gradepoint) , min(gradepoint) from gradeconversion", "query_toks": ["SELECT", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "FROM", "GRADECONVERSION"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "What are the maximum and minumum grade points?", "question_toks": ["What", "are", "the", "maximum", "and", "minumum", "grade", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4701", "db_id": "college_3", "query": "select max(t2.gradepoint) , min(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["SELECT", "max", "(", "T2.gradepoint", ")", ",", "min", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.city_code", "=", "``", "NYC", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "gradepoint", ")", ",", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value"], "question": "What is the maximum and minimum grade point of students who live in NYC?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "grade", "point", "of", "students", "who", "live", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"NYC\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4702", "db_id": "college_3", "query": "select max(t2.gradepoint) , min(t2.gradepoint) from enrolled_in as t1 join gradeconversion as t2 join student as t3 on t1.grade = t2.lettergrade and t1.stuid = t3.stuid where t3.city_code = \"nyc\"", "query_toks": ["SELECT", "max", "(", "T2.gradepoint", ")", ",", "min", "(", "T2.gradepoint", ")", "FROM", "ENROLLED_IN", "AS", "T1", "JOIN", "GRADECONVERSION", "AS", "T2", "JOIN", "STUDENT", "AS", "T3", "ON", "T1.Grade", "=", "T2.lettergrade", "AND", "T1.StuID", "=", "T3.StuID", "WHERE", "T3.city_code", "=", "``", "NYC", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "gradepoint", ")", ",", "min", "(", "t2", ".", "gradepoint", ")", "from", "enrolled_in", "as", "t1", "join", "gradeconversion", "as", "t2", "join", "student", "as", "t3", "on", "t1", ".", "grade", "=", "t2", ".", "lettergrade", "and", "t1", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "city_code", "=", "value"], "question": "Give the maximum and minimum gradepoints for students living in NYC?", "question_toks": ["Give", "the", "maximum", "and", "minimum", "gradepoints", "for", "students", "living", "in", "NYC", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 37, false], null], [0, 38, false], null], "and", [false, 2, [0, [0, 35, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"NYC\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4776", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["SELECT", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "FROM", "Customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "Return the maximum and minimum customer codes.", "question_toks": ["Return", "the", "maximum", "and", "minimum", "customer", "codes", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4782", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["SELECT", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "FROM", "products", "GROUP", "BY", "product_type_code", "ORDER", "BY", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "Give the maximum and minimum product prices for each product type, grouped and ordered by product type.", "question_toks": ["Give", "the", "maximum", "and", "minimum", "product", "prices", "for", "each", "product", "type", ",", "grouped", "and", "ordered", "by", "product", "type", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4807", "db_id": "aircraft", "query": "select max(transit_passengers) , min(transit_passengers) from airport", "query_toks": ["SELECT", "max", "(", "Transit_Passengers", ")", ",", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "query_toks_no_value": ["select", "max", "(", "transit_passengers", ")", ",", "min", "(", "transit_passengers", ")", "from", "airport"], "question": "What are the maximum and minimum number of transit passengers of all aiports.", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "number", "of", "transit", "passengers", "of", "all", "aiports", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]], [2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4808", "db_id": "aircraft", "query": "select max(transit_passengers) , min(transit_passengers) from airport", "query_toks": ["SELECT", "max", "(", "Transit_Passengers", ")", ",", "min", "(", "Transit_Passengers", ")", "FROM", "airport"], "query_toks_no_value": ["select", "max", "(", "transit_passengers", ")", ",", "min", "(", "transit_passengers", ")", "from", "airport"], "question": "What is the maximum and mininum number of transit passengers for all airports?", "question_toks": ["What", "is", "the", "maximum", "and", "mininum", "number", "of", "transit", "passengers", "for", "all", "airports", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]], [2, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4966", "db_id": "soccer_2", "query": "select avg(hs) , max(hs) , min(hs) from player", "query_toks": ["SELECT", "avg", "(", "HS", ")", ",", "max", "(", "HS", ")", ",", "min", "(", "HS", ")", "FROM", "Player"], "query_toks_no_value": ["select", "avg", "(", "hs", ")", ",", "max", "(", "hs", ")", ",", "min", "(", "hs", ")", "from", "player"], "question": "Find the max, average and min training hours of all players.", "question_toks": ["Find", "the", "max", ",", "average", "and", "min", "training", "hours", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4967", "db_id": "soccer_2", "query": "select avg(hs) , max(hs) , min(hs) from player", "query_toks": ["SELECT", "avg", "(", "HS", ")", ",", "max", "(", "HS", ")", ",", "min", "(", "HS", ")", "FROM", "Player"], "query_toks_no_value": ["select", "avg", "(", "hs", ")", ",", "max", "(", "hs", ")", ",", "min", "(", "hs", ")", "from", "player"], "question": "What is the average, maximum, and minimum for the number of hours spent training?", "question_toks": ["What", "is", "the", "average", ",", "maximum", ",", "and", "minimum", "for", "the", "number", "of", "hours", "spent", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5010", "db_id": "soccer_2", "query": "select avg(t1.hs) , max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes'", "query_toks": ["SELECT", "avg", "(", "T1.HS", ")", ",", "max", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "Find the average and maximum hours for the students whose tryout decision is yes.", "question_toks": ["Find", "the", "average", "and", "maximum", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "yes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5011", "db_id": "soccer_2", "query": "select avg(t1.hs) , max(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes'", "query_toks": ["SELECT", "avg", "(", "T1.HS", ")", ",", "max", "(", "T1.HS", ")", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", ",", "max", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "What is the average and maximum number of hours students who made the team practiced?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "hours", "students", "who", "made", "the", "team", "practiced", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]], [1, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "_BINARY_POSITIVE_VALUE", "BINARY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5102", "db_id": "cre_Drama_Workshop_Groups", "query": "select min(order_quantity) , avg(order_quantity) , max(order_quantity) from invoices", "query_toks": ["SELECT", "min", "(", "Order_Quantity", ")", ",", "avg", "(", "Order_Quantity", ")", ",", "max", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "query_toks_no_value": ["select", "min", "(", "order_quantity", ")", ",", "avg", "(", "order_quantity", ")", ",", "max", "(", "order_quantity", ")", "from", "invoices"], "question": "Show the minimum, average, maximum order quantity of all invoices.", "question_toks": ["Show", "the", "minimum", ",", "average", ",", "maximum", "order", "quantity", "of", "all", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[2, [0, [0, 81, false], null]], [5, [0, [0, 81, false], null]], [1, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5103", "db_id": "cre_Drama_Workshop_Groups", "query": "select min(order_quantity) , avg(order_quantity) , max(order_quantity) from invoices", "query_toks": ["SELECT", "min", "(", "Order_Quantity", ")", ",", "avg", "(", "Order_Quantity", ")", ",", "max", "(", "Order_Quantity", ")", "FROM", "INVOICES"], "query_toks_no_value": ["select", "min", "(", "order_quantity", ")", ",", "avg", "(", "order_quantity", ")", ",", "max", "(", "order_quantity", ")", "from", "invoices"], "question": "What are the minimum, average, and maximum quantities ordered? Check all the invoices.", "question_toks": ["What", "are", "the", "minimum", ",", "average", ",", "and", "maximum", "quantities", "ordered", "?", "Check", "all", "the", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 14]], "conds": []}, "select": [false, [[2, [0, [0, 81, false], null]], [5, [0, [0, 81, false], null]], [1, [0, [0, 81, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5278", "db_id": "manufactory_1", "query": "select avg(revenue) , max(revenue) , sum(revenue) from manufacturers", "query_toks": ["SELECT", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "FROM", "manufacturers"], "query_toks_no_value": ["select", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "from", "manufacturers"], "question": "What are the average, maximum and total revenues of all companies?", "question_toks": ["What", "are", "the", "average", ",", "maximum", "and", "total", "revenues", "of", "all", "companies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5279", "db_id": "manufactory_1", "query": "select avg(revenue) , max(revenue) , sum(revenue) from manufacturers", "query_toks": ["SELECT", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "FROM", "manufacturers"], "query_toks_no_value": ["select", "avg", "(", "revenue", ")", ",", "max", "(", "revenue", ")", ",", "sum", "(", "revenue", ")", "from", "manufacturers"], "question": "Return the average, maximum, and total revenues across all manufacturers.", "question_toks": ["Return", "the", "average", ",", "maximum", ",", "and", "total", "revenues", "across", "all", "manufacturers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]], [4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5410", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = 'london'", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "'London", "'"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "Show minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": ["Show", "minimum", "and", "maximum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5411", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = 'london'", "query_toks": ["SELECT", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "FROM", "branch", "WHERE", "open_year", "=", "2011", "OR", "city", "=", "'London", "'"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "What are the minimum and maximum membership amounts for all branches that either opened in 2011 or are located in London?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "membership", "amounts", "for", "all", "branches", "that", "either", "opened", "in", "2011", "or", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5460", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["SELECT", "max", "(", "Age", ")", ",", "min", "(", "Age", ")", "FROM", "STUDENT", "WHERE", "Major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "What are the maximum and minimum age of students with major 600?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "age", "of", "students", "with", "major", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5662", "db_id": "customers_and_products_contacts", "query": "select min(product_price) , max(product_price) , avg(product_price) from products", "query_toks": ["SELECT", "min", "(", "product_price", ")", ",", "max", "(", "product_price", ")", ",", "avg", "(", "product_price", ")", "FROM", "products"], "query_toks_no_value": ["select", "min", "(", "product_price", ")", ",", "max", "(", "product_price", ")", ",", "avg", "(", "product_price", ")", "from", "products"], "question": "Show the minimum, maximum, average price for all products.", "question_toks": ["Show", "the", "minimum", ",", "maximum", ",", "average", "price", "for", "all", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 10, false], null]], [1, [0, [0, 10, false], null]], [5, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5688", "db_id": "dorm_1", "query": "select avg(student_capacity) , sum(student_capacity) from dorm where gender = 'x'", "query_toks": ["SELECT", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "'X", "'"], "query_toks_no_value": ["select", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value"], "question": "Find the average and total capacity of dorms for the students with gender X.", "question_toks": ["Find", "the", "average", "and", "total", "capacity", "of", "dorms", "for", "the", "students", "with", "gender", "X", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5689", "db_id": "dorm_1", "query": "select avg(student_capacity) , sum(student_capacity) from dorm where gender = 'x'", "query_toks": ["SELECT", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "FROM", "dorm", "WHERE", "gender", "=", "'X", "'"], "query_toks_no_value": ["select", "avg", "(", "student_capacity", ")", ",", "sum", "(", "student_capacity", ")", "from", "dorm", "where", "gender", "=", "value"], "question": "What is the average and total capacity for all dorms who are of gender X?", "question_toks": ["What", "is", "the", "average", "and", "total", "capacity", "for", "all", "dorms", "who", "are", "of", "gender", "X", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"X\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5722", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "question": "Find the average and oldest age for students with different sex.", "question_toks": ["Find", "the", "average", "and", "oldest", "age", "for", "students", "with", "different", "sex", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5723", "db_id": "dorm_1", "query": "select avg(age) , max(age) , sex from student group by sex", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "FROM", "student", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "max", "(", "age", ")", ",", "sex", "from", "student", "group", "by", "sex"], "question": "What is the average and oldest age for each gender of student?", "question_toks": ["What", "is", "the", "average", "and", "oldest", "age", "for", "each", "gender", "of", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION", "HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6157", "db_id": "music_4", "query": "select max(weeks_on_top) , min(weeks_on_top) from volume", "query_toks": ["SELECT", "max", "(", "Weeks_on_Top", ")", ",", "min", "(", "Weeks_on_Top", ")", "FROM", "volume"], "query_toks_no_value": ["select", "max", "(", "weeks_on_top", ")", ",", "min", "(", "weeks_on_top", ")", "from", "volume"], "question": "What are the maximum and minimum week on top of all volumes?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "week", "on", "top", "of", "all", "volumes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6158", "db_id": "music_4", "query": "select max(weeks_on_top) , min(weeks_on_top) from volume", "query_toks": ["SELECT", "max", "(", "Weeks_on_Top", ")", ",", "min", "(", "Weeks_on_Top", ")", "FROM", "volume"], "query_toks_no_value": ["select", "max", "(", "weeks_on_top", ")", ",", "min", "(", "weeks_on_top", ")", "from", "volume"], "question": "Give the maximum and minimum weeks on top across all volumes.", "question_toks": ["Give", "the", "maximum", "and", "minimum", "weeks", "on", "top", "across", "all", "volumes", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6236", "db_id": "ship_1", "query": "select avg(age) , min(age) , class from captain group by class", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "class", "from", "captain", "group", "by", "class"], "question": "What are the average and minimum age of captains in different class?", "question_toks": ["What", "are", "the", "average", "and", "minimum", "age", "of", "captains", "in", "different", "class", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6237", "db_id": "ship_1", "query": "select avg(age) , min(age) , class from captain group by class", "query_toks": ["SELECT", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "CLASS", "FROM", "captain", "GROUP", "BY", "CLASS"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "class", "from", "captain", "group", "by", "class"], "question": "Return the average and minimum age of captains in each class.", "question_toks": ["Return", "the", "average", "and", "minimum", "age", "of", "captains", "in", "each", "class", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6360", "db_id": "school_bus", "query": "select max(years_working) , min(years_working) , avg(years_working) from school_bus", "query_toks": ["SELECT", "max", "(", "years_working", ")", ",", "min", "(", "years_working", ")", ",", "avg", "(", "years_working", ")", "FROM", "school_bus"], "query_toks_no_value": ["select", "max", "(", "years_working", ")", ",", "min", "(", "years_working", ")", ",", "avg", "(", "years_working", ")", "from", "school_bus"], "question": "What is the maximum, minimum and average years spent working on a school bus?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", "and", "average", "years", "spent", "working", "on", "a", "school", "bus", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6678", "db_id": "driving_school", "query": "select max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) from customers;", "query_toks": ["SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";"], "query_toks_no_value": ["select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers"], "question": "What is maximum, minimum and average amount of outstanding of customer?", "question_toks": ["What", "is", "maximum", ",", "minimum", "and", "average", "amount", "of", "outstanding", "of", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 25, false], null]], [2, [0, [0, 25, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6679", "db_id": "driving_school", "query": "select max(amount_outstanding) , min(amount_outstanding) , avg(amount_outstanding) from customers;", "query_toks": ["SELECT", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "FROM", "Customers", ";"], "query_toks_no_value": ["select", "max", "(", "amount_outstanding", ")", ",", "min", "(", "amount_outstanding", ")", ",", "avg", "(", "amount_outstanding", ")", "from", "customers"], "question": "What is the maximum, minimum, and average amount of money outsanding for all customers?", "question_toks": ["What", "is", "the", "maximum", ",", "minimum", ",", "and", "average", "amount", "of", "money", "outsanding", "for", "all", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 25, false], null]], [2, [0, [0, 25, false], null]], [5, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6992", "db_id": "culture_company", "query": "select avg(budget_million) , max(budget_million) , min(budget_million) from movie where year < 2000", "query_toks": ["SELECT", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000"], "query_toks_no_value": ["select", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value"], "question": "What is the average, maximum, and minimum budget for all movies before 2000.", "question_toks": ["What", "is", "the", "average", ",", "maximum", ",", "and", "minimum", "budget", "for", "all", "movies", "before", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]], [2, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6993", "db_id": "culture_company", "query": "select avg(budget_million) , max(budget_million) , min(budget_million) from movie where year < 2000", "query_toks": ["SELECT", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "FROM", "movie", "WHERE", "YEAR", "<", "2000"], "query_toks_no_value": ["select", "avg", "(", "budget_million", ")", ",", "max", "(", "budget_million", ")", ",", "min", "(", "budget_million", ")", "from", "movie", "where", "year", "<", "value"], "question": "Return the average, maximum, and minimum budgets in millions for movies made before the year 2000.", "question_toks": ["Return", "the", "average", ",", "maximum", ",", "and", "minimum", "budgets", "in", "millions", "for", "movies", "made", "before", "the", "year", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 12, false], null]], [1, [0, [0, 12, false], null]], [2, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0001", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age of singers from France?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0002", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What are the average, minimum, and maximum age of all singers from France?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "of", "all", "singers", "from", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0004", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What is the average, minimum, and maximum age for French singers?", "question_toks": ["What", "is", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0005", "db_id": "concert_singer", "query": "select avg(age) , min(age) , max(age) from singer where country = \"france\"", "query_toks": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "``", "france", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", ",", "min", "(", "age", ")", ",", "max", "(", "age", ")", "from", "singer", "where", "country", "=", "value"], "question": "What are the average, minimum, and maximum age for all French singers?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "and", "maximum", "age", "for", "all", "French", "singers", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0007", "db_id": "concert_singer", "query": "select avg(capacity) , max(capacity) from stadium", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "stadium"], "question": "What are the average and maximum capacities for all stadiums ?", "question_toks": ["What", "are", "the", "average", "and", "maximum", "capacities", "for", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0009", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "Find the average and maximum age for each type of the pet.", "question_toks": ["Find", "the", "average", "and", "maximum", "age", "for", "each", "type", "of", "the", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0011", "db_id": "pets_1", "query": "select avg(pet_age) , max(pet_age) , pettype from pets group by pettype", "query_toks": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "query_toks_no_value": ["select", "avg", "(", "pet_age", ")", ",", "max", "(", "pet_age", ")", ",", "pettype", "from", "pets", "group", "by", "pettype"], "question": "What are the average and maximum age for each pet type?", "question_toks": ["What", "are", "the", "average", "and", "maximum", "age", "for", "each", "pet", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0013", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "find the minimum and maximum number of products of all the stores.", "question_toks": ["find", "the", "minimum", "and", "maximum", "number", "of", "products", "of", "all", "the", "stores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0015", "db_id": "employee_hire_evaluation", "query": "select min(number_products) , max(number_products) from shop", "query_toks": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "query_toks_no_value": ["select", "min", "(", "number_products", ")", ",", "max", "(", "number_products", ")", "from", "shop"], "question": "What is the minimum and maximum number of products across all the shops?", "question_toks": ["What", "is", "the", "minimum", "and", "maximum", "number", "of", "products", "across", "all", "the", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 9, false], null]], [1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0016", "db_id": "museum_visit", "query": "select avg(num_of_ticket) , max(num_of_ticket) from visit", "query_toks": ["select", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "from", "visit"], "query_toks_no_value": ["select", "avg", "(", "num_of_ticket", ")", ",", "max", "(", "num_of_ticket", ")", "from", "visit"], "question": "What is the average and maximum number of tickets bought in all visits?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "tickets", "bought", "in", "all", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0018", "db_id": "battle_death", "query": "select max(killed) , min(killed) from death", "query_toks": ["select", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "from", "death"], "query_toks_no_value": ["select", "max", "(", "killed", ")", ",", "min", "(", "killed", ")", "from", "death"], "question": "What are maximum and minimum death toll caused each time?", "question_toks": ["What", "are", "maximum", "and", "minimum", "death", "toll", "caused", "each", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [2, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0020", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What are the minimum and maximum share of TV series?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "share", "of", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0023", "db_id": "tvshow", "query": "select max(share) , min(share) from tv_series", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "tv_series"], "question": "What are the maximum and minimum share for the TV series?", "question_toks": ["What", "are", "the", "maximum", "and", "minimum", "share", "for", "the", "TV", "series", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0025", "db_id": "voter_1", "query": "select max(area_code) , min(area_code) from area_code_state", "query_toks": ["select", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "from", "area_code_state"], "query_toks_no_value": ["select", "max", "(", "area_code", ")", ",", "min", "(", "area_code", ")", "from", "area_code_state"], "question": "What is the maximum and minimum values of area codes?", "question_toks": ["What", "is", "the", "maximum", "and", "minimum", "values", "of", "area", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 1, false], null]], [2, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0027", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "value", "final"], "question": "What are the maximum and the minimum share of performances whose type is not \"Live final\".", "question_toks": ["What", "are", "the", "maximum", "and", "the", "minimum", "share", "of", "performances", "whose", "type", "is", "not", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0029", "db_id": "orchestra", "query": "select max(share) , min(share) from performance where type != \"live final\"", "query_toks": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "``", "live", "final", "''"], "query_toks_no_value": ["select", "max", "(", "share", ")", ",", "min", "(", "share", ")", "from", "performance", "where", "type", "!=", "value", "final"], "question": "Return the maximum and the minimum shares for performances that do not have the type \"Live final\".", "question_toks": ["Return", "the", "maximum", "and", "the", "minimum", "shares", "for", "performances", "that", "do", "not", "have", "the", "type", "\"", "Live", "final", "\"."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]], [2, [0, [0, 18, false], null]]]], "where": [[false, 7, [0, [0, 14, false], null], "\"live final\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0031", "db_id": "department_management", "query": "select max(budget_in_billions) , min(budget_in_billions) from department", "query_toks": ["select", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "from", "department"], "query_toks_no_value": ["select", "max", "(", "budget_in_billions", ")", ",", "min", "(", "budget_in_billions", ")", "from", "department"], "question": "What are the maximum and the minimum budget of the departments?", "question_toks": ["What", "are", "the", "maximum", "and", "the", "minimum", "budget", "of", "the", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0033", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "What are the maximum and the minimum number of cows across all farms.", "question_toks": ["What", "are", "the", "maximum", "and", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0035", "db_id": "farm", "query": "select max(cows) , min(cows) from farm", "query_toks": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "query_toks_no_value": ["select", "max", "(", "cows", ")", ",", "min", "(", "cows", ")", "from", "farm"], "question": "Return the maximum and the minimum number of cows across all farms.", "question_toks": ["Return", "the", "maximum", "and", "the", "minimum", "number", "of", "cows", "across", "all", "farms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]], [2, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0037", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and the maximum duration of trips with bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "the", "maximum", "duration", "of", "trips", "with", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0039", "db_id": "bike_1", "query": "select sum(duration) , max(duration) from trip where bike_id = 636", "query_toks": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "636"], "query_toks_no_value": ["select", "sum", "(", "duration", ")", ",", "max", "(", "duration", ")", "from", "trip", "where", "bike_id", "=", "value"], "question": "What is the total and the maximum duration for all trips with the bike id 636?", "question_toks": ["What", "is", "the", "total", "and", "the", "maximum", "duration", "for", "all", "trips", "with", "the", "bike", "id", "636", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 13, false], null]], [1, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], 636.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0041", "db_id": "twitter_1", "query": "select max(followers) , sum(followers) from user_profiles", "query_toks": ["select", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "from", "user_profiles"], "query_toks_no_value": ["select", "max", "(", "followers", ")", ",", "sum", "(", "followers", ")", "from", "user_profiles"], "question": "Find the maximum and the total number of followers of all users.", "question_toks": ["Find", "the", "maximum", "and", "the", "total", "number", "of", "followers", "of", "all", "users", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]], [4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0043", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "What are the average and the minimum price (in Euro) of all products?", "question_toks": ["What", "are", "the", "average", "and", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "all", "products", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0045", "db_id": "product_catalog", "query": "select avg(price_in_euros) , min(price_in_euros) from catalog_contents", "query_toks": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "query_toks_no_value": ["select", "avg", "(", "price_in_euros", ")", ",", "min", "(", "price_in_euros", ")", "from", "catalog_contents"], "question": "Give me the average and the minimum price (in Euro) of the products.", "question_toks": ["Give", "me", "the", "average", "and", "the", "minimum", "price", "(", "in", "Euro", ")", "of", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 20, false], null]], [2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0050", "db_id": "flight_1", "query": "select avg(salary) , max(salary) from employee", "query_toks": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "query_toks_no_value": ["select", "avg", "(", "salary", ")", ",", "max", "(", "salary", ")", "from", "employee"], "question": "What is the average and the largest salary of all employees?", "question_toks": ["What", "is", "the", "average", "and", "the", "largest", "salary", "of", "all", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 14, false], null]], [1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0054", "db_id": "customers_card_transactions", "query": "select avg(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["select", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Return the mean transaction amount, as well as the total amount of all transactions.", "question_toks": ["Return", "the", "mean", "transaction", "amount", ",", "as", "well", "as", "the", "total", "amount", "of", "all", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 25, false], null]], [4, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0058", "db_id": "chinook_1", "query": "select max(milliseconds) , min(milliseconds) from track", "query_toks": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "query_toks_no_value": ["select", "max", "(", "milliseconds", ")", ",", "min", "(", "milliseconds", ")", "from", "track"], "question": "What are the durations of the longest and the shortest tracks (milliseconds)?", "question_toks": ["What", "are", "the", "durations", "of", "the", "longest", "and", "the", "shortest", "tracks", "(", "milliseconds", ")?"], "sql": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[1, [0, [0, 62, false], null]], [2, [0, [0, 62, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0062", "db_id": "insurance_fnol", "query": "select sum(settlement_amount) , avg(settlement_amount) from settlements", "query_toks": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "query_toks_no_value": ["select", "sum", "(", "settlement_amount", ")", ",", "avg", "(", "settlement_amount", ")", "from", "settlements"], "question": "Find the total and the average amount of settlements.", "question_toks": ["Find", "the", "total", "and", "the", "average", "amount", "of", "settlements", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 22, false], null]], [5, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0078", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "Find the maximum and the average capacity among rooms in each building.", "question_toks": ["Find", "the", "maximum", "and", "the", "average", "capacity", "among", "rooms", "in", "each", "building", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0080", "db_id": "college_2", "query": "select max(capacity) , avg(capacity) , building from classroom group by building", "query_toks": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "avg", "(", "capacity", ")", ",", "building", "from", "classroom", "group", "by", "building"], "question": "What are the greatest and the average capacity for rooms in each building?", "question_toks": ["What", "are", "the", "greatest", "and", "the", "average", "capacity", "for", "rooms", "in", "each", "building", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]], [5, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0084", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "What are the average, minimum, maximum, and total transaction amount?", "question_toks": ["What", "are", "the", "average", ",", "minimum", ",", "maximum", ",", "and", "total", "transaction", "amount", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [1, [0, [0, 40, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0085", "db_id": "customers_and_invoices", "query": "select avg(transaction_amount) , min(transaction_amount) , max(transaction_amount) , sum(transaction_amount) from financial_transactions", "query_toks": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "query_toks_no_value": ["select", "avg", "(", "transaction_amount", ")", ",", "min", "(", "transaction_amount", ")", ",", "max", "(", "transaction_amount", ")", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions"], "question": "Compute the average active time span of contact channels.", "question_toks": ["Compute", "the", "average", "active", "time", "span", "of", "contact", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]], [2, [0, [0, 40, false], null]], [1, [0, [0, 40, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0094", "db_id": "school_finance", "query": "select sum(enrollment) , avg(enrollment) from school", "query_toks": ["select", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "from", "school"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "avg", "(", "enrollment", ")", "from", "school"], "question": "What is the total and average enrollment of all schools?", "question_toks": ["What", "is", "the", "total", "and", "average", "enrollment", "of", "all", "schools", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]], [5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0104", "db_id": "movie_1", "query": "select max(stars) , min(stars) from rating", "query_toks": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "query_toks_no_value": ["select", "max", "(", "stars", ")", ",", "min", "(", "stars", ")", "from", "rating"], "question": "What are the lowest and highest rating star?", "question_toks": ["What", "are", "the", "lowest", "and", "highest", "rating", "star", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]], [2, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0109", "db_id": "inn_1", "query": "select decor , avg(baseprice) , min(baseprice) from rooms group by decor", "query_toks": ["select", "decor", ",", "avg", "(", "baseprice", ")", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "query_toks_no_value": ["select", "decor", ",", "avg", "(", "baseprice", ")", ",", "min", "(", "baseprice", ")", "from", "rooms", "group", "by", "decor"], "question": "What is the average and minimum price of the rooms for each different decor.", "question_toks": ["What", "is", "the", "average", "and", "minimum", "price", "of", "the", "rooms", "for", "each", "different", "decor", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [5, [0, [0, 6, false], null]], [2, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0118", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What are the highest, lowest, and average student GPA for every department?", "question_toks": ["What", "are", "the", "highest", ",", "lowest", ",", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0119", "db_id": "college_1", "query": "select max(stu_gpa) , avg(stu_gpa) , min(stu_gpa) , dept_code from student group by dept_code", "query_toks": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "query_toks_no_value": ["select", "max", "(", "stu_gpa", ")", ",", "avg", "(", "stu_gpa", ")", ",", "min", "(", "stu_gpa", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "What are the lowest, highest and average student GPA for every department?", "question_toks": ["What", "are", "the", "lowest", ",", "highest", "and", "average", "student", "GPA", "for", "every", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [5, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0126", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "What is the highest cost, lowest cost and average cost of procedures?", "question_toks": ["What", "is", "the", "highest", "cost", ",", "lowest", "cost", "and", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0127", "db_id": "hospital_1", "query": "select max(cost) , min(cost) , avg(cost) from procedures", "query_toks": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "query_toks_no_value": ["select", "max", "(", "cost", ")", ",", "min", "(", "cost", ")", ",", "avg", "(", "cost", ")", "from", "procedures"], "question": "What are the highest cost, the lowest cost and the average cost of procedures?", "question_toks": ["What", "are", "the", "highest", "cost", ",", "the", "lowest", "cost", "and", "the", "average", "cost", "of", "procedures", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0135", "db_id": "college_3", "query": "select max(gradepoint) , min(gradepoint) from gradeconversion", "query_toks": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "query_toks_no_value": ["select", "max", "(", "gradepoint", ")", ",", "min", "(", "gradepoint", ")", "from", "gradeconversion"], "question": "Find the max and min grades point for all letter grade.", "question_toks": ["Find", "the", "max", "and", "min", "grades", "point", "for", "all", "letter", "grade", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[1, [0, [0, 39, false], null]], [2, [0, [0, 39, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0140", "db_id": "department_store", "query": "select max(customer_code) , min(customer_code) from customers", "query_toks": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "query_toks_no_value": ["select", "max", "(", "customer_code", ")", ",", "min", "(", "customer_code", ")", "from", "customers"], "question": "What are the largest and smallest customer codes?", "question_toks": ["What", "are", "the", "largest", "and", "smallest", "customer", "codes", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0143", "db_id": "department_store", "query": "select max(product_price) , min(product_price) , product_type_code from products group by product_type_code order by product_type_code", "query_toks": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "query_toks_no_value": ["select", "max", "(", "product_price", ")", ",", "min", "(", "product_price", ")", ",", "product_type_code", "from", "products", "group", "by", "product_type_code", "order", "by", "product_type_code"], "question": "What are the highest and the lowest prices of products, grouped by and alphabetically ordered by product type?", "question_toks": ["What", "are", "the", "highest", "and", "the", "lowest", "prices", "of", "products", ",", "grouped", "by", "and", "alphabetically", "ordered", "by", "product", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]], [2, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_multi_aggregation_0159", "db_id": "voter_2", "query": "select max(age) , min(age) from student where major = 600", "query_toks": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "600"], "query_toks_no_value": ["select", "max", "(", "age", ")", ",", "min", "(", "age", ")", "from", "student", "where", "major", "=", "value"], "question": "Tell me the ages of the oldest and the youngest students studying major 600.", "question_toks": ["Tell", "me", "the", "ages", "of", "the", "oldest", "and", "the", "youngest", "students", "studying", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [2, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["MULTI_AGGREGATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3375", "db_id": "sports_competition", "query": "select sum(points) from player", "query_toks": ["SELECT", "sum", "(", "Points", ")", "FROM", "player"], "query_toks_no_value": ["select", "sum", "(", "points", ")", "from", "player"], "question": "Show total points of all players.", "question_toks": ["Show", "total", "points", "of", "all", "players", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6031", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.age", "<", "20"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "value"], "question": "Show total hours per week and number of games played for students under 20.", "question_toks": ["Show", "total", "hours", "per", "week", "and", "number", "of", "games", "played", "for", "students", "under", "20", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "AGGREGATION_MONO", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0289", "db_id": "employee_hire_evaluation", "query": "select sum(bonus) from evaluation", "query_toks": ["SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation"], "query_toks_no_value": ["select", "sum", "(", "bonus", ")", "from", "evaluation"], "question": "What is total bonus given in all evaluations?", "question_toks": ["What", "is", "total", "bonus", "given", "in", "all", "evaluations", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6471", "db_id": "scientist_1", "query": "select sum(hours) from projects", "query_toks": ["SELECT", "sum", "(", "hours", ")", "FROM", "projects"], "query_toks_no_value": ["select", "sum", "(", "hours", ")", "from", "projects"], "question": "Find the total hours of all projects.", "question_toks": ["Find", "the", "total", "hours", "of", "all", "projects", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3237", "db_id": "college_1", "query": "select sum(t1.crs_credit) , t1.dept_code from course as t1 join class as t2 on t1.crs_code = t2.crs_code group by t1.dept_code", "query_toks": ["SELECT", "sum", "(", "T1.crs_credit", ")", ",", "T1.dept_code", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "GROUP", "BY", "T1.dept_code"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "crs_credit", ")", ",", "t1", ".", "dept_code", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "group", "by", "t1", ".", "dept_code"], "question": "Find the total credits of all classes offered by each department.", "question_toks": ["Find", "the", "total", "credits", "of", "all", "classes", "offered", "by", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5682", "db_id": "dorm_1", "query": "select sum(student_capacity) from dorm", "query_toks": ["SELECT", "sum", "(", "student_capacity", ")", "FROM", "dorm"], "query_toks_no_value": ["select", "sum", "(", "student_capacity", ")", "from", "dorm"], "question": "Find the total capacity of all dorms.", "question_toks": ["Find", "the", "total", "capacity", "of", "all", "dorms", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4505", "db_id": "document_management", "query": "select sum(access_count) from documents group by document_type_code order by count(*) desc limit 1", "query_toks": ["SELECT", "sum", "(", "access_count", ")", "FROM", "documents", "GROUP", "BY", "document_type_code", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "sum", "(", "access_count", ")", "from", "documents", "group", "by", "document_type_code", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the total access count of all documents in the most popular document type.", "question_toks": ["Find", "the", "total", "access", "count", "of", "all", "documents", "in", "the", "most", "popular", "document", "type", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3896", "db_id": "insurance_policies", "query": "select sum(amount_claimed) from claims", "query_toks": ["SELECT", "sum", "(", "Amount_Claimed", ")", "FROM", "Claims"], "query_toks_no_value": ["select", "sum", "(", "amount_claimed", ")", "from", "claims"], "question": "Find the total claimed amount of all the claims.", "question_toks": ["Find", "the", "total", "claimed", "amount", "of", "all", "the", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1240", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_facilities as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t1.facility_code = \"gym\"", "query_toks": ["SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.facility_code", "=", "``", "Gym", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "value"], "question": "Show the total number of rooms of all apartments with facility code \"Gym\".", "question_toks": ["Show", "the", "total", "number", "of", "rooms", "of", "all", "apartments", "with", "facility", "code", "``", "Gym", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Gym\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1776", "db_id": "small_bank_1", "query": "select sum(t2.balance) from accounts as t1 join savings as t2 on t1.custid = t2.custid where t1.name != 'brown'", "query_toks": ["SELECT", "sum", "(", "T2.balance", ")", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T1.name", "!", "=", "'Brown", "'"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t1", ".", "name", "!", "=", "value"], "question": "Find the total savings balance of all accounts except the account with name \u2018Brown\u2019.", "question_toks": ["Find", "the", "total", "savings", "balance", "of", "all", "accounts", "except", "the", "account", "with", "name", "\u2018Brown\u2019", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], "\"Brown\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_NEGATION_ALL", "_HIDDEN_SUM_TOTAL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3742", "db_id": "program_share", "query": "select sum(share_in_percent) from channel where owner = 'cctv'", "query_toks": ["SELECT", "sum", "(", "Share_in_percent", ")", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'"], "query_toks_no_value": ["select", "sum", "(", "share_in_percent", ")", "from", "channel", "where", "owner", "=", "value"], "question": "find the total percentage share of all channels owned by CCTV.", "question_toks": ["find", "the", "total", "percentage", "share", "of", "all", "channels", "owned", "by", "CCTV", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"CCTV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0290", "db_id": "employee_hire_evaluation", "query": "select sum(bonus) from evaluation", "query_toks": ["SELECT", "sum", "(", "bonus", ")", "FROM", "evaluation"], "query_toks_no_value": ["select", "sum", "(", "bonus", ")", "from", "evaluation"], "question": "Find the total amount of bonus given in all the evaluations.", "question_toks": ["Find", "the", "total", "amount", "of", "bonus", "given", "in", "all", "the", "evaluations", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3219", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "Find the total number of hours have done for all students in each department.", "question_toks": ["Find", "the", "total", "number", "of", "hours", "have", "done", "for", "all", "students", "in", "each", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2282", "db_id": "entrepreneur", "query": "select sum(t1.money_requested) from entrepreneur as t1 join people as t2 on t1.people_id = t2.people_id where t2.height > 1.85", "query_toks": ["SELECT", "sum", "(", "T1.Money_Requested", ")", "FROM", "entrepreneur", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Height", ">", "1.85"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "money_requested", ")", "from", "entrepreneur", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value"], "question": "Give the total money requested by entrepreneurs who are taller than 1.85.", "question_toks": ["Give", "the", "total", "money", "requested", "by", "entrepreneurs", "who", "are", "taller", "than", "1.85", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 1.85, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1399", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "query_toks_no_value": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "question": "How many total credits are offered by each department?", "question_toks": ["How", "many", "total", "credits", "are", "offered", "by", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0471", "db_id": "wta_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the total ranking points for each player and their first name.", "question_toks": ["Find", "the", "total", "ranking", "points", "for", "each", "player", "and", "their", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 41, false], null]]}, "select": [false, [[4, [0, [0, 42, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0727", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\" or continent = \"europe\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "OR", "Continent", "=", "``", "Europe", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value"], "question": "Give the total surface area covered by countries in Asia or Europe.", "question_toks": ["Give", "the", "total", "surface", "area", "covered", "by", "countries", "in", "Asia", "or", "Europe", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3391", "db_id": "manufacturer", "query": "select sum(market_rate) from furniture order by market_rate desc limit 2", "query_toks": ["SELECT", "sum", "(", "market_rate", ")", "FROM", "furniture", "ORDER", "BY", "market_rate", "DESC", "LIMIT", "2"], "query_toks_no_value": ["select", "sum", "(", "market_rate", ")", "from", "furniture", "order", "by", "market_rate", "desc", "limit", "value"], "question": "find the total market rate of the furnitures that have the top 2 market shares.", "question_toks": ["find", "the", "total", "market", "rate", "of", "the", "furnitures", "that", "have", "the", "top", "2", "market", "shares", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": 2, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3512", "db_id": "hr_1", "query": "select department_id , sum(salary) from employees group by department_id having count(*) >= 2", "query_toks": ["SELECT", "department_id", ",", "SUM", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "department_id", ",", "sum", "(", "salary", ")", "from", "employees", "group", "by", "department_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are total salaries and department id for each department that has more than 2 employees?", "question_toks": ["What", "are", "total", "salaries", "and", "department", "id", "for", "each", "department", "that", "has", "more", "than", "2", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1189", "db_id": "yelp", "query": "select sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"restaurant\" and t3.category_name = \"moroccan\";", "query_toks": ["SELECT", "SUM", "(", "t4.count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "WHERE", "t1.city", "=", "``", "Los", "Angeles", "''", "AND", "t2.category_name", "=", "``", "restaurant", "''", "AND", "t3.category_name", "=", "``", "Moroccan", "''", ";"], "query_toks_no_value": ["select", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "value", "and", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value"], "question": "find the total checkins in Moroccan restaurant in \" Los Angeles \"", "question_toks": ["find", "the", "total", "checkins", "in", "Moroccan", "restaurant", "in", "``", "Los", "Angeles", "``"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Moroccan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1190", "db_id": "yelp", "query": "select sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"moroccan\" and t3.category_name = \"restaurant\" and t4.day = \"friday\";", "query_toks": ["SELECT", "SUM", "(", "t4.count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "WHERE", "t1.city", "=", "``", "Los", "Angeles", "''", "AND", "t2.category_name", "=", "``", "Moroccan", "''", "AND", "t3.category_name", "=", "``", "restaurant", "''", "AND", "t4.day", "=", "``", "Friday", "''", ";"], "query_toks_no_value": ["select", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "value", "and", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "and", "t4", ".", "day", "=", "value"], "question": "find the total checkins in Moroccan restaurant in \" Los Angeles \" on Friday", "question_toks": ["find", "the", "total", "checkins", "in", "Moroccan", "restaurant", "in", "``", "Los", "Angeles", "``", "on", "Friday"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Moroccan\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"Friday\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1191", "db_id": "yelp", "query": "select t4.day , sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t1.city = \"los angeles\" and t2.category_name = \"moroccan\" and t3.category_name = \"restaurant\" group by t4.day;", "query_toks": ["SELECT", "t4.day", ",", "SUM", "(", "t4.count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "WHERE", "t1.city", "=", "``", "Los", "Angeles", "''", "AND", "t2.category_name", "=", "``", "Moroccan", "''", "AND", "t3.category_name", "=", "``", "restaurant", "''", "GROUP", "BY", "t4.day", ";"], "query_toks_no_value": ["select", "t4", ".", "day", ",", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t1", ".", "city", "=", "value", "and", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "group", "by", "t4", ".", "day"], "question": "find the total checkins in Moroccan restaurant in \" Los Angeles \" per day", "question_toks": ["find", "the", "total", "checkins", "in", "Moroccan", "restaurant", "in", "``", "Los", "Angeles", "``", "per", "day"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]], [4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Moroccan\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"restaurant\"", null]], "groupBy": [[0, 21, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1192", "db_id": "yelp", "query": "select t1.state , sum ( t4.count ) from category as t2 join business as t1 on t2.business_id = t1.business_id join category as t3 on t3.business_id = t1.business_id join checkin as t4 on t4.business_id = t1.business_id where t2.category_name = \"italian\" and t3.category_name = \"delis\" and t4.day = \"sunday\" group by t1.state;", "query_toks": ["SELECT", "t1.state", ",", "SUM", "(", "t4.count", ")", "FROM", "category", "AS", "t2", "JOIN", "business", "AS", "t1", "ON", "t2.business_id", "=", "t1.business_id", "JOIN", "category", "AS", "t3", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "checkin", "AS", "t4", "ON", "t4.business_id", "=", "t1.business_id", "WHERE", "t2.category_name", "=", "``", "Italian", "''", "AND", "t3.category_name", "=", "``", "Delis", "''", "AND", "t4.day", "=", "``", "Sunday", "''", "GROUP", "BY", "t1.state", ";"], "query_toks_no_value": ["select", "t1", ".", "state", ",", "sum", "(", "t4", ".", "count", ")", "from", "category", "as", "t2", "join", "business", "as", "t1", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "join", "category", "as", "t3", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "checkin", "as", "t4", "on", "t4", ".", "business_id", "=", "t1", ".", "business_id", "where", "t2", ".", "category_name", "=", "value", "and", "t3", ".", "category_name", "=", "value", "and", "t4", ".", "day", "=", "value", "group", "by", "t1", ".", "state"], "question": "find the total checkins in Italian Delis in each state on Sunday", "question_toks": ["find", "the", "total", "checkins", "in", "Italian", "Delis", "in", "each", "state", "on", "Sunday"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 1], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Italian\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"Delis\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"Sunday\"", null]], "groupBy": [[0, 11, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1228", "db_id": "yelp", "query": "select sum ( t3.count ) from checkin as t3 join business as t1 on t3.business_id = t1.business_id join neighbourhood as t2 on t2.business_id = t1.business_id where t2.neighbourhood_name = \"brighton heights\";", "query_toks": ["SELECT", "SUM", "(", "t3.count", ")", "FROM", "checkin", "AS", "t3", "JOIN", "business", "AS", "t1", "ON", "t3.business_id", "=", "t1.business_id", "JOIN", "neighbourhood", "AS", "t2", "ON", "t2.business_id", "=", "t1.business_id", "WHERE", "t2.neighbourhood_name", "=", "``", "Brighton", "Heights", "''", ";"], "query_toks_no_value": ["select", "sum", "(", "t3", ".", "count", ")", "from", "checkin", "as", "t3", "join", "business", "as", "t1", "on", "t3", ".", "business_id", "=", "t1", ".", "business_id", "join", "neighbourhood", "as", "t2", "on", "t2", ".", "business_id", "=", "t1", ".", "business_id", "where", "t2", ".", "neighbourhood_name", "=", "value"], "question": "Find the total checkins in \" Brighton Heights \" neighbourhood", "question_toks": ["Find", "the", "total", "checkins", "in", "``", "Brighton", "Heights", "``", "neighbourhood"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 23, false], null], [0, 2, false], null]]}, "select": [false, [[4, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Brighton Heights\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3700", "db_id": "baseball_1", "query": "select sum(t1.games) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year between 1990 and 2000;", "query_toks": ["SELECT", "sum", "(", "T1.games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "1990", "AND", "2000", ";"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value"], "question": "Count the total number of games the team Boston Red Stockings attended from 1990 to 2000.", "question_toks": ["Count", "the", "total", "number", "of", "games", "the", "team", "Boston", "Red", "Stockings", "attended", "from", "1990", "to", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 159, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 1990.0, 2000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6039", "db_id": "game_1", "query": "select gameid , sum(hours_played) from plays_games group by gameid", "query_toks": ["SELECT", "gameid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "gameid"], "query_toks_no_value": ["select", "gameid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "gameid"], "question": "Show all game ids and the number of hours played.", "question_toks": ["Show", "all", "game", "ids", "and", "the", "number", "of", "hours", "played", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6041", "db_id": "game_1", "query": "select stuid , sum(hours_played) from plays_games group by stuid", "query_toks": ["SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid"], "query_toks_no_value": ["select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid"], "question": "Show all student ids and the number of hours played.", "question_toks": ["Show", "all", "student", "ids", "and", "the", "number", "of", "hours", "played", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6045", "db_id": "game_1", "query": "select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid having sum(hours_played) >= 1000", "query_toks": ["SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "GROUP", "BY", "T1.gameid", "HAVING", "sum", "(", "hours_played", ")", ">", "=", "1000"], "query_toks_no_value": ["select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">", "=", "value"], "question": "Show all game names played by at least 1000 hours.", "question_toks": ["Show", "all", "game", "names", "played", "by", "at", "least", "1000", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [4, 14, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4767", "db_id": "department_store", "query": "select product_id from order_items group by product_id having count(*) > 3 union select product_id from product_suppliers group by product_id having sum(total_amount_purchased) > 80000", "query_toks": ["SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(", "*", ")", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "query_toks_no_value": ["select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "value"], "question": "Return the ids of all products that were ordered more than three times or supplied more than 80000.", "question_toks": ["Return", "the", "ids", "of", "all", "products", "that", "were", "ordered", "more", "than", "three", "times", "or", "supplied", "more", "than", "80000", "."], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [4, 50, false], null], 80000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6014", "db_id": "game_1", "query": "select stuid , count(*) , sum(gamesplayed) from sportsinfo group by stuid", "query_toks": ["SELECT", "StuID", ",", "count", "(", "*", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "GROUP", "BY", "StuID"], "query_toks_no_value": ["select", "stuid", ",", "count", "(", "*", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "group", "by", "stuid"], "question": "What are the ids of all students along with how many sports and games did they play?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "along", "with", "how", "many", "sports", "and", "games", "did", "they", "play", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [3, [0, [0, 0, false], null]], [4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4768", "db_id": "department_store", "query": "select product_id from order_items group by product_id having count(*) > 3 union select product_id from product_suppliers group by product_id having sum(total_amount_purchased) > 80000", "query_toks": ["SELECT", "product_id", "FROM", "Order_Items", "GROUP", "BY", "product_id", "HAVING", "count", "(", "*", ")", ">", "3", "UNION", "SELECT", "product_id", "FROM", "Product_Suppliers", "GROUP", "BY", "product_id", "HAVING", "sum", "(", "total_amount_purchased", ")", ">", "80000"], "query_toks_no_value": ["select", "product_id", "from", "order_items", "group", "by", "product_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "product_id", "from", "product_suppliers", "group", "by", "product_id", "having", "sum", "(", "total_amount_purchased", ")", ">", "value"], "question": "What are the ids of all products that were either ordered more than 3 times or have a cumulative amount purchased of above 80000?", "question_toks": ["What", "are", "the", "ids", "of", "all", "products", "that", "were", "either", "ordered", "more", "than", "3", "times", "or", "have", "a", "cumulative", "amount", "purchased", "of", "above", "80000", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [4, 50, false], null], 80000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6042", "db_id": "game_1", "query": "select stuid , sum(hours_played) from plays_games group by stuid", "query_toks": ["SELECT", "Stuid", ",", "sum", "(", "hours_played", ")", "FROM", "Plays_games", "GROUP", "BY", "Stuid"], "query_toks_no_value": ["select", "stuid", ",", "sum", "(", "hours_played", ")", "from", "plays_games", "group", "by", "stuid"], "question": "What are the ids of all students and number of hours played?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "and", "number", "of", "hours", "played", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [4, [0, [0, 14, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0321", "db_id": "geo", "query": "select sum ( area ) from state;", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "what is the area of all the states combined", "question_toks": ["what", "is", "the", "area", "of", "all", "the", "states", "combined"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0411", "db_id": "geo", "query": "select state_name from city group by state_name order by sum ( population ) limit 1;", "query_toks": ["SELECT", "state_name", "FROM", "city", "GROUP", "BY", "state_name", "ORDER", "BY", "SUM", "(", "population", ")", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "state_name", "from", "city", "group", "by", "state_name", "order", "by", "sum", "(", "population", ")", "limit", "value"], "question": "what state has the smallest urban population", "question_toks": ["what", "state", "has", "the", "smallest", "urban", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["asc", [[0, [4, 8, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6046", "db_id": "game_1", "query": "select gname from plays_games as t1 join video_games as t2 on t1.gameid = t2.gameid group by t1.gameid having sum(hours_played) >= 1000", "query_toks": ["SELECT", "gname", "FROM", "Plays_games", "AS", "T1", "JOIN", "Video_games", "AS", "T2", "ON", "T1.gameid", "=", "T2.gameid", "GROUP", "BY", "T1.gameid", "HAVING", "sum", "(", "hours_played", ")", ">", "=", "1000"], "query_toks_no_value": ["select", "gname", "from", "plays_games", "as", "t1", "join", "video_games", "as", "t2", "on", "t1", ".", "gameid", "=", "t2", ".", "gameid", "group", "by", "t1", ".", "gameid", "having", "sum", "(", "hours_played", ")", ">", "=", "value"], "question": "What are the names of all the games that have been played for at least 1000 hours?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "games", "that", "have", "been", "played", "for", "at", "least", "1000", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [4, 14, false], null], 1000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0320", "db_id": "geo", "query": "select sum ( area ) from state;", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "what is the combined area of all 50 states", "question_toks": ["what", "is", "the", "combined", "area", "of", "all", "50", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6007", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo"], "question": "How many games are played for all students?", "question_toks": ["How", "many", "games", "are", "played", "for", "all", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_HIDDEN_SUM_ALL", "_HOW_MANY_SUM", "HIDDEN_SUM", "HOW_MANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6009", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = 'y'", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''", "AND", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value"], "question": "How many games are played for all football games by students on scholarship?", "question_toks": ["How", "many", "games", "are", "played", "for", "all", "football", "games", "by", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "AND_IN_SQL_BUT_NOT_IN_NL", "_HIDDEN_SUM_ALL", "_HOW_MANY_SUM", "_BINARY_POSITIVE_VALUE", "HIDDEN_SUM", "BINARY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4329", "db_id": "tracking_grants_for_research", "query": "select t2.organisation_id , t2.organisation_details from grants as t1 join organisations as t2 on t1.organisation_id = t2.organisation_id group by t2.organisation_id having sum(t1.grant_amount) > 6000", "query_toks": ["SELECT", "T2.organisation_id", ",", "T2.organisation_details", "FROM", "Grants", "AS", "T1", "JOIN", "Organisations", "AS", "T2", "ON", "T1.organisation_id", "=", "T2.organisation_id", "GROUP", "BY", "T2.organisation_id", "HAVING", "sum", "(", "T1.grant_amount", ")", ">", "6000"], "query_toks_no_value": ["select", "t2", ".", "organisation_id", ",", "t2", ".", "organisation_details", "from", "grants", "as", "t1", "join", "organisations", "as", "t2", "on", "t1", ".", "organisation_id", "=", "t2", ".", "organisation_id", "group", "by", "t2", ".", "organisation_id", "having", "sum", "(", "t1", ".", "grant_amount", ")", ">", "value"], "question": "What are the ids and details for all organizations that have grants of more than 6000 dollars?", "question_toks": ["What", "are", "the", "ids", "and", "details", "for", "all", "organizations", "that", "have", "grants", "of", "more", "than", "6000", "dollars", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [[false, 3, [0, [4, 11, false], null], 6000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0240", "db_id": "geo", "query": "select sum ( population ) from state;", "query_toks": ["SELECT", "SUM", "(", "population", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "state"], "question": "what is the combined population of all 50 states", "question_toks": ["what", "is", "the", "combined", "population", "of", "all", "50", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3240", "db_id": "college_1", "query": "select t3.dept_name from course as t1 join class as t2 on t1.crs_code = t2.crs_code join department as t3 on t1.dept_code = t3.dept_code group by t1.dept_code order by sum(t1.crs_credit) desc limit 1", "query_toks": ["SELECT", "T3.dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "sum", "(", "T1.crs_credit", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "value"], "question": "Which department offers the most credits all together?", "question_toks": ["Which", "department", "offers", "the", "most", "credits", "all", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 10, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2348", "db_id": "csu_1", "query": "select campus from degrees group by campus order by sum(degrees) desc limit 1", "query_toks": ["SELECT", "campus", "FROM", "degrees", "GROUP", "BY", "campus", "ORDER", "BY", "sum", "(", "degrees", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "campus", "from", "degrees", "group", "by", "campus", "order", "by", "sum", "(", "degrees", ")", "desc", "limit", "value"], "question": "Which campus has the most degrees conferred in all times?", "question_toks": ["Which", "campus", "has", "the", "most", "degrees", "conferred", "in", "all", "times", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3239", "db_id": "college_1", "query": "select t3.dept_name from course as t1 join class as t2 on t1.crs_code = t2.crs_code join department as t3 on t1.dept_code = t3.dept_code group by t1.dept_code order by sum(t1.crs_credit) desc limit 1", "query_toks": ["SELECT", "T3.dept_name", "FROM", "course", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.crs_code", "=", "T2.crs_code", "JOIN", "department", "AS", "T3", "ON", "T1.dept_code", "=", "T3.dept_code", "GROUP", "BY", "T1.dept_code", "ORDER", "BY", "sum", "(", "T1.crs_credit", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "dept_name", "from", "course", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "crs_code", "=", "t2", ".", "crs_code", "join", "department", "as", "t3", "on", "t1", ".", "dept_code", "=", "t3", ".", "dept_code", "group", "by", "t1", ".", "dept_code", "order", "by", "sum", "(", "t1", ".", "crs_credit", ")", "desc", "limit", "value"], "question": "Find the name of the department that offers the largest number of credits of all classes.", "question_toks": ["Find", "the", "name", "of", "the", "department", "that", "offers", "the", "largest", "number", "of", "credits", "of", "all", "classes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [4, 10, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6016", "db_id": "game_1", "query": "select stuid from sportsinfo group by stuid having sum(hoursperweek) > 10", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "GROUP", "BY", "StuID", "HAVING", "sum", "(", "hoursperweek", ")", ">", "10"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "group", "by", "stuid", "having", "sum", "(", "hoursperweek", ")", ">", "value"], "question": "What are the student IDs for everybody who worked for more than 10 hours per week on all sports?", "question_toks": ["What", "are", "the", "student", "IDs", "for", "everybody", "who", "worked", "for", "more", "than", "10", "hours", "per", "week", "on", "all", "sports", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [[false, 3, [0, [4, 17, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0723", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value"], "question": "How many people live in Asia, and what is the largest GNP among them?", "question_toks": ["How", "many", "people", "live", "in", "Asia", ",", "and", "what", "is", "the", "largest", "GNP", "among", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION", "HIDDEN_MAX", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0728", "db_id": "world_1", "query": "select sum(population) from city where district = \"gelderland\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", "FROM", "city", "WHERE", "District", "=", "``", "Gelderland", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "city", "where", "district", "=", "value"], "question": "How many people live in Gelderland district?", "question_toks": ["How", "many", "people", "live", "in", "Gelderland", "district", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Gelderland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0767", "db_id": "world_1", "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\")", "query_toks": ["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", "''", ")"], "query_toks_no_value": ["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", "=", "value", ")"], "question": "How many people live in countries that do not speak English?", "question_toks": ["How", "many", "people", "live", "in", "countries", "that", "do", "not", "speak", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2357", "db_id": "csu_1", "query": "select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus", "query_toks": ["SELECT", "T1.campus", ",", "sum", "(", "T2.degrees", ")", "FROM", "campuses", "AS", "T1", "JOIN", "degrees", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", ">", "=", "1998", "AND", "T2.year", "<", "=", "2002", "GROUP", "BY", "T1.campus"], "query_toks_no_value": ["select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">", "=", "value", "and", "t2", ".", "year", "<", "=", "value", "group", "by", "t1", ".", "campus"], "question": "how many degrees were conferred between 1998 and 2002?", "question_toks": ["how", "many", "degrees", "were", "conferred", "between", "1998", "and", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 1998.0, null], "and", [false, 6, [0, [0, 9, false], null], 2002.0, null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2384", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["SELECT", "sum", "(", "t1.undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Jose", "State", "University", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value"], "question": "How many undergraduates are there in \"San Jose State University\" in year 2004?", "question_toks": ["How", "many", "undergraduates", "are", "there", "in", "``", "San", "Jose", "State", "University", "''", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"San Jose State University\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2385", "db_id": "csu_1", "query": "select sum(t1.undergraduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san jose state university\"", "query_toks": ["SELECT", "sum", "(", "t1.undergraduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Jose", "State", "University", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "undergraduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value"], "question": "How many undergraduates are there at San Jose State", "question_toks": ["How", "many", "undergraduates", "are", "there", "at", "San", "Jose", "State"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"San Jose State University\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2387", "db_id": "csu_1", "query": "select sum(t1.graduate) from discipline_enrollments as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["SELECT", "sum", "(", "t1.graduate", ")", "FROM", "discipline_enrollments", "AS", "t1", "JOIN", "campuses", "AS", "t2", "ON", "t1.campus", "=", "t2.id", "WHERE", "t1.year", "=", "2004", "AND", "t2.campus", "=", "``", "San", "Francisco", "State", "University", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "graduate", ")", "from", "discipline_enrollments", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value"], "question": "How many people graduated from San Francisco State University in 2004?", "question_toks": ["How", "many", "people", "graduated", "from", "San", "Francisco", "State", "University", "in", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"San Francisco State University\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2588", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = 'king';", "query_toks": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "'King", "'", ";"], "query_toks_no_value": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "value"], "question": "How many king beds are there?", "question_toks": ["How", "many", "king", "beds", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"King\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3008", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank", "query_toks": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank"], "query_toks_no_value": ["select", "sum", "(", "no_of_customers", ")", "from", "bank"], "question": "How many customers are there?", "question_toks": ["How", "many", "customers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3202", "db_id": "college_1", "query": "select sum(crs_credit) , dept_code from course group by dept_code", "query_toks": ["SELECT", "sum", "(", "crs_credit", ")", ",", "dept_code", "FROM", "course", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "crs_credit", ")", ",", "dept_code", "from", "course", "group", "by", "dept_code"], "question": "How many credits does the department offer?", "question_toks": ["How", "many", "credits", "does", "the", "department", "offer", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3220", "db_id": "college_1", "query": "select sum(stu_hrs) , dept_code from student group by dept_code", "query_toks": ["SELECT", "sum", "(", "stu_hrs", ")", ",", "dept_code", "FROM", "student", "GROUP", "BY", "dept_code"], "query_toks_no_value": ["select", "sum", "(", "stu_hrs", ")", ",", "dept_code", "from", "student", "group", "by", "dept_code"], "question": "How many hours do the students spend studying in each department?", "question_toks": ["How", "many", "hours", "do", "the", "students", "spend", "studying", "in", "each", "department", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 37, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [[0, 41, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4945", "db_id": "soccer_2", "query": "select sum(enr) from college", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "College"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college"], "question": "How many students are enrolled in college?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "college", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0239", "db_id": "geo", "query": "select sum ( population ) from state;", "query_toks": ["SELECT", "SUM", "(", "population", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "state"], "question": "how many people live in the united states", "question_toks": ["how", "many", "people", "live", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0322", "db_id": "geo", "query": "select sum ( area ) from state;", "query_toks": ["SELECT", "SUM", "(", "area", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "sum", "(", "area", ")", "from", "state"], "question": "how many square kilometers in the us", "question_toks": ["how", "many", "square", "kilometers", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM", "HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0707", "db_id": "world_1", "query": "select sum(surfacearea) from country where region = \"caribbean\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Region", "=", "``", "Caribbean", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "region", "=", "value"], "question": "How much surface area do the countires in the Carribean cover together?", "question_toks": ["How", "much", "surface", "area", "do", "the", "countires", "in", "the", "Carribean", "cover", "together", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"Caribbean\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1319", "db_id": "academic", "query": "select year , sum ( citation_num ) from publication where title = \"making database systems usable\" group by year;", "query_toks": ["SELECT", "YEAR", ",", "SUM", "(", "citation_num", ")", "FROM", "publication", "WHERE", "title", "=", "``", "Making", "database", "systems", "usable", "''", "GROUP", "BY", "YEAR", ";"], "query_toks_no_value": ["select", "year", ",", "sum", "(", "citation_num", ")", "from", "publication", "where", "title", "=", "value", "group", "by", "year"], "question": "return me the number of citations of \" Making database systems usable \" in each year .", "question_toks": ["return", "me", "the", "number", "of", "citations", "of", "``", "Making", "database", "systems", "usable", "``", "in", "each", "year", "."], "sql": {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [4, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"Making database systems usable\"", null]], "groupBy": [[0, 30, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1001", "db_id": "university_basketball", "query": "select sum(enrollment) , affiliation from university group by affiliation", "query_toks": ["SELECT", "sum", "(", "enrollment", ")", ",", "affiliation", "FROM", "university", "GROUP", "BY", "affiliation"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "group", "by", "affiliation"], "question": "Find the total student enrollment for different affiliation type schools.", "question_toks": ["Find", "the", "total", "student", "enrollment", "for", "different", "affiliation", "type", "schools", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1015", "db_id": "university_basketball", "query": "select sum(enrollment) , affiliation from university where founded > 1850 group by affiliation", "query_toks": ["SELECT", "sum", "(", "Enrollment", ")", ",", "affiliation", "FROM", "university", "WHERE", "founded", ">", "1850", "GROUP", "BY", "affiliation"], "query_toks_no_value": ["select", "sum", "(", "enrollment", ")", ",", "affiliation", "from", "university", "where", "founded", ">", "value", "group", "by", "affiliation"], "question": "Find the total number of students enrolled in the colleges that were founded after the year of 1850 for each affiliation type.", "question_toks": ["Find", "the", "total", "number", "of", "students", "enrolled", "in", "the", "colleges", "that", "were", "founded", "after", "the", "year", "of", "1850", "for", "each", "affiliation", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [[false, 3, [0, [0, 16, false], null], 1850.0, null]], "groupBy": [[0, 17, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1241", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_facilities as t1 join apartments as t2 on t1.apt_id = t2.apt_id where t1.facility_code = \"gym\"", "query_toks": ["SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Facilities", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.apt_id", "=", "T2.apt_id", "WHERE", "T1.facility_code", "=", "``", "Gym", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_facilities", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "apt_id", "=", "t2", ".", "apt_id", "where", "t1", ".", "facility_code", "=", "value"], "question": "Find the total number of rooms in the apartments that have facility code \"Gym\".", "question_toks": ["Find", "the", "total", "number", "of", "rooms", "in", "the", "apartments", "that", "have", "facility", "code", "``", "Gym", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Gym\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1242", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_buildings as t1 join apartments as t2 on t1.building_id = t2.building_id where t1.building_short_name = \"columbus square\"", "query_toks": ["SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T1.building_short_name", "=", "``", "Columbus", "Square", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "value"], "question": "Show the total number of rooms of the apartments in the building with short name \"Columbus Square\".", "question_toks": ["Show", "the", "total", "number", "of", "rooms", "of", "the", "apartments", "in", "the", "building", "with", "short", "name", "``", "Columbus", "Square", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Columbus Square\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1352", "db_id": "college_2", "query": "select sum(budget) from department where dept_name = 'marketing' or dept_name = 'finance'", "query_toks": ["SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "'Marketing", "'", "OR", "dept_name", "=", "'Finance", "'"], "query_toks_no_value": ["select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value"], "question": "Find the total budgets of the Marketing or Finance department.", "question_toks": ["Find", "the", "total", "budgets", "of", "the", "Marketing", "or", "Finance", "department", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Marketing\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Finance\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1398", "db_id": "college_2", "query": "select sum(credits) , dept_name from course group by dept_name", "query_toks": ["SELECT", "sum", "(", "credits", ")", ",", "dept_name", "FROM", "course", "GROUP", "BY", "dept_name"], "query_toks_no_value": ["select", "sum", "(", "credits", ")", ",", "dept_name", "from", "course", "group", "by", "dept_name"], "question": "Find the total credits of courses provided by different department.", "question_toks": ["Find", "the", "total", "credits", "of", "courses", "provided", "by", "different", "department", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1517", "db_id": "insurance_and_eClaims", "query": "select sum(t1.amount_claimed) from claim_headers as t1 join claims_documents as t2 on t1.claim_header_id = t2.claim_id where t2.created_date = (select created_date from claims_documents order by created_date limit 1)", "query_toks": ["SELECT", "sum", "(", "t1.amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1.claim_header_id", "=", "t2.claim_id", "WHERE", "t2.created_date", "=", "(", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "(", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "value", ")"], "question": "Find the total amount claimed in the most recently created document.", "question_toks": ["Find", "the", "total", "amount", "claimed", "in", "the", "most", "recently", "created", "document", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1588", "db_id": "customers_and_invoices", "query": "select transaction_type , sum(transaction_amount) from financial_transactions group by transaction_type", "query_toks": ["SELECT", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "FROM", "Financial_transactions", "GROUP", "BY", "transaction_type"], "query_toks_no_value": ["select", "transaction_type", ",", "sum", "(", "transaction_amount", ")", "from", "financial_transactions", "group", "by", "transaction_type"], "question": "What are total transaction amounts for each transaction type?", "question_toks": ["What", "are", "total", "transaction", "amounts", "for", "each", "transaction", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]], [4, [0, [0, 40, false], null]]]], "where": [], "groupBy": [[0, 38, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1781", "db_id": "small_bank_1", "query": "select sum(balance) from checking", "query_toks": ["SELECT", "sum", "(", "balance", ")", "FROM", "checking"], "query_toks_no_value": ["select", "sum", "(", "balance", ")", "from", "checking"], "question": "Find the total balance across checking accounts.", "question_toks": ["Find", "the", "total", "balance", "across", "checking", "accounts", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1806", "db_id": "small_bank_1", "query": "select sum(t2.balance) , t1.name from accounts as t1 join savings as t2 on t1.custid = t2.custid group by t1.name", "query_toks": ["SELECT", "sum", "(", "T2.balance", ")", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "savings", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "GROUP", "BY", "T1.name"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "balance", ")", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "savings", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "group", "by", "t1", ".", "name"], "question": "Find the total saving balance for each account name.", "question_toks": ["Find", "the", "total", "saving", "balance", "for", "each", "account", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 3, false], null]]}, "select": [false, [[4, [0, [0, 4, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2589", "db_id": "inn_1", "query": "select sum(beds) from rooms where bedtype = 'king';", "query_toks": ["SELECT", "sum", "(", "beds", ")", "FROM", "Rooms", "WHERE", "bedtype", "=", "'King", "'", ";"], "query_toks_no_value": ["select", "sum", "(", "beds", ")", "from", "rooms", "where", "bedtype", "=", "value"], "question": "Find the total number of king beds available.", "question_toks": ["Find", "the", "total", "number", "of", "king", "beds", "available", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"King\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3034", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = 'utah' or state = 'texas'", "query_toks": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "'Utah", "'", "OR", "state", "=", "'Texas", "'"], "query_toks_no_value": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "Find the total account balance of each customer from Utah or Texas.", "question_toks": ["Find", "the", "total", "account", "balance", "of", "each", "customer", "from", "Utah", "or", "Texas", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Utah\"", null], "or", [false, 2, [0, [0, 13, false], null], "\"Texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3060", "db_id": "loan_1", "query": "select sum(amount) , t1.bname from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id group by t1.bname", "query_toks": ["SELECT", "sum", "(", "amount", ")", ",", "T1.bname", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "GROUP", "BY", "T1.bname"], "query_toks_no_value": ["select", "sum", "(", "amount", ")", ",", "t1", ".", "bname", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "group", "by", "t1", ".", "bname"], "question": "Find the total amount of loans offered by each bank branch.", "question_toks": ["Find", "the", "total", "amount", "of", "loans", "offered", "by", "each", "bank", "branch", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3080", "db_id": "loan_1", "query": "select sum(t2.amount) from bank as t1 join loan as t2 on t1.branch_id = t2.branch_id where t1.state = 'new york'", "query_toks": ["SELECT", "sum", "(", "T2.amount", ")", "FROM", "bank", "AS", "T1", "JOIN", "loan", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "WHERE", "T1.state", "=", "'New", "York", "'"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "amount", ")", "from", "bank", "as", "t1", "join", "loan", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "where", "t1", ".", "state", "=", "value"], "question": "Find the total amount of loans provided by bank branches in the state of New York.", "question_toks": ["Find", "the", "total", "amount", "of", "loans", "provided", "by", "bank", "branches", "in", "the", "state", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null]]}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"New York\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1424", "db_id": "academic", "query": "select t1.name from domain_author as t6 join author as t1 on t6.aid = t1.aid join domain as t3 on t3.did = t6.did join organization as t5 on t5.oid = t1.oid join writes as t2 on t2.aid = t1.aid join publication as t4 on t2.pid = t4.pid where t3.name = \"databases\" and t5.name = \"university of michigan\" group by t1.name having sum ( t4.citation_num ) > 5000;", "query_toks": ["SELECT", "t1.name", "FROM", "domain_author", "AS", "t6", "JOIN", "author", "AS", "t1", "ON", "t6.aid", "=", "t1.aid", "JOIN", "DOMAIN", "AS", "t3", "ON", "t3.did", "=", "t6.did", "JOIN", "organization", "AS", "t5", "ON", "t5.oid", "=", "t1.oid", "JOIN", "writes", "AS", "t2", "ON", "t2.aid", "=", "t1.aid", "JOIN", "publication", "AS", "t4", "ON", "t2.pid", "=", "t4.pid", "WHERE", "t3.name", "=", "``", "Databases", "''", "AND", "t5.name", "=", "``", "University", "of", "Michigan", "''", "GROUP", "BY", "t1.name", "HAVING", "SUM", "(", "t4.citation_num", ")", ">", "5000", ";"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "domain_author", "as", "t6", "join", "author", "as", "t1", "on", "t6", ".", "aid", "=", "t1", ".", "aid", "join", "domain", "as", "t3", "on", "t3", ".", "did", "=", "t6", ".", "did", "join", "organization", "as", "t5", "on", "t5", ".", "oid", "=", "t1", ".", "oid", "join", "writes", "as", "t2", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "join", "publication", "as", "t4", "on", "t2", ".", "pid", "=", "t4", ".", "pid", "where", "t3", ".", "name", "=", "value", "and", "t5", ".", "name", "=", "value", "group", "by", "t1", ".", "name", "having", "sum", "(", "t4", ".", "citation_num", ")", ">", "value"], "question": "return me the author in the \" University of Michigan \" in Databases area whose papers have more than 5000 total citations .", "question_toks": ["return", "me", "the", "author", "in", "the", "``", "University", "of", "Michigan", "``", "in", "Databases", "area", "whose", "papers", "have", "more", "than", "5000", "total", "citations", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0], ["table_unit", 2], ["table_unit", 11], ["table_unit", 13], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 36, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 39, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 40, false], null], [0, 27, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Databases\"", null], "and", [false, 2, [0, [0, 35, false], null], "\"University of Michigan\"", null]], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [4, 25, false], null], 5000.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2840", "db_id": "restaurant_1", "query": "select restaurant.resname , sum(visits_restaurant.spent) from visits_restaurant join restaurant on visits_restaurant.resid = restaurant.resid group by restaurant.resid order by sum(visits_restaurant.spent) asc limit 1;", "query_toks": ["SELECT", "Restaurant.ResName", ",", "sum", "(", "Visits_Restaurant.Spent", ")", "FROM", "Visits_Restaurant", "JOIN", "Restaurant", "ON", "Visits_Restaurant.ResID", "=", "Restaurant.ResID", "GROUP", "BY", "Restaurant.ResID", "ORDER", "BY", "sum", "(", "Visits_Restaurant.Spent", ")", "ASC", "LIMIT", "1", ";"], "query_toks_no_value": ["select", "restaurant.resname", ",", "sum", "(", "visits_restaurant.spent", ")", "from", "visits_restaurant", "join", "restaurant", "on", "visits_restaurant.resid", "=", "restaurant.resid", "group", "by", "restaurant.resid", "order", "by", "sum", "(", "visits_restaurant.spent", ")", "asc", "limit", "value"], "question": "At which restaurant did the students spend the least amount of time? List restaurant and the time students spent on in total.", "question_toks": ["At", "which", "restaurant", "did", "the", "students", "spend", "the", "least", "amount", "of", "time", "?", "List", "restaurant", "and", "the", "time", "students", "spent", "on", "in", "total", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [4, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["asc", [[0, [4, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3010", "db_id": "loan_1", "query": "select sum(no_of_customers) from bank where city = 'new york city'", "query_toks": ["SELECT", "sum", "(", "no_of_customers", ")", "FROM", "bank", "WHERE", "city", "=", "'New", "York", "City", "'"], "query_toks_no_value": ["select", "sum", "(", "no_of_customers", ")", "from", "bank", "where", "city", "=", "value"], "question": "Find the number of customers in the banks at New York City.", "question_toks": ["Find", "the", "number", "of", "customers", "in", "the", "banks", "at", "New", "York", "City", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"New York City\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_NUMBER"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_sum_0004", "db_id": "cinema", "query": "select t2.name , sum(t1.show_times_per_day) from schedule as t1 join cinema as t2 on t1.cinema_id = t2.cinema_id group by t1.cinema_id", "query_toks": ["select", "t2", ".", "name", ",", "sum", "(", "t1", ".", "show_times_per_day", ")", "from", "schedule", "as", "t1", "join", "cinema", "as", "t2", "on", "t1", ".", "cinema_id", "=", "t2", ".", "cinema_id", "group", "by", "t1", ".", "cinema_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "sum", "(", "t1", ".", "show_times_per_day", ")", "from", "schedule", "as", "t1", "join", "cinema", "as", "t2", "on", "t1", ".", "cinema_id", "=", "t2", ".", "cinema_id", "group", "by", "t1", ".", "cinema_id"], "question": "What is total number of show times per day for each cinema?", "question_toks": ["What", "is", "total", "number", "of", "show", "times", "per", "day", "for", "each", "cinema", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [4, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_TOTAL"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_sum_0064", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc", "query_toks": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "derenzi", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "question": "what keyphrase does Brian DeRenzi write about that gets most citations ? Return also the number of citations", "question_toks": ["what", "keyphrase", "does", "Brian", "DeRenzi", "write", "about", "that", "gets", "most", "citations", "?", "Return", "also", "the", "number", "of", "citations"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_sum_0065", "db_id": "scholar", "query": "select distinct t1.keyphrasename , sum ( t3.numcitedby ) from paperkeyphrase as t2 join keyphrase as t1 on t2.keyphraseid = t1.keyphraseid join paper as t3 on t3.paperid = t2.paperid join writes as t4 on t4.paperid = t3.paperid join author as t5 on t4.authorid = t5.authorid where t5.authorname = \"brian derenzi\" group by t1.keyphrasename order by sum ( t3.numcitedby ) desc", "query_toks": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "``", "brian", "derenzi", "''", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "query_toks_no_value": ["select", "distinct", "t1", ".", "keyphrasename", ",", "sum", "(", "t3", ".", "numcitedby", ")", "from", "paperkeyphrase", "as", "t2", "join", "keyphrase", "as", "t1", "on", "t2", ".", "keyphraseid", "=", "t1", ".", "keyphraseid", "join", "paper", "as", "t3", "on", "t3", ".", "paperid", "=", "t2", ".", "paperid", "join", "writes", "as", "t4", "on", "t4", ".", "paperid", "=", "t3", ".", "paperid", "join", "author", "as", "t5", "on", "t4", ".", "authorid", "=", "t5", ".", "authorid", "where", "t5", ".", "authorname", "=", "value", "derenzi", "group", "by", "t1", ".", "keyphrasename", "order", "by", "sum", "(", "t3", ".", "numcitedby", ")", "desc"], "question": "main topics of work by Brian DeRenzi with the number of citation", "question_toks": ["main", "topics", "of", "work", "by", "Brian", "DeRenzi", "with", "the", "number", "of", "citation"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 4], ["table_unit", 5], ["table_unit", 9], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 22, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]], [4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"brian derenzi\"", null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_SUM", "_HIDDEN_SUM_WITHOUT_MENTIONS"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0487", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")"], "question": "Show the student id of the oldest student.", "question_toks": ["Show", "the", "student", "id", "of", "the", "oldest", "student", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0488", "db_id": "allergy_1", "query": "select stuid from student where age = (select max(age) from student)", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "Student", ")"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "student", ")"], "question": "What student id corresponds to the oldest student?", "question_toks": ["What", "student", "id", "corresponds", "to", "the", "oldest", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0113", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, return the highest latitude among its stations.", "question_toks": ["For", "each", "city", ",", "return", "the", "highest", "latitude", "among", "its", "stations", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT", "HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0114", "db_id": "bike_1", "query": "select city , max(lat) from station group by city", "query_toks": ["SELECT", "city", ",", "max", "(", "lat", ")", "FROM", "station", "GROUP", "BY", "city"], "query_toks_no_value": ["select", "city", ",", "max", "(", "lat", ")", "from", "station", "group", "by", "city"], "question": "For each city, what is the highest latitude for its stations?", "question_toks": ["For", "each", "city", ",", "what", "is", "the", "highest", "latitude", "for", "its", "stations", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT", "HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0183", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "query_toks_no_value": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "question": "List all the cities in a decreasing order of each city's stations' highest latitude.", "question_toks": ["List", "all", "the", "cities", "in", "a", "decreasing", "order", "of", "each", "city", "'s", "stations", "'", "highest", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0184", "db_id": "bike_1", "query": "select city from station group by city order by max(lat) desc", "query_toks": ["SELECT", "city", "FROM", "station", "GROUP", "BY", "city", "ORDER", "BY", "max", "(", "lat", ")", "DESC"], "query_toks_no_value": ["select", "city", "from", "station", "group", "by", "city", "order", "by", "max", "(", "lat", ")", "desc"], "question": "For each city, list their names in decreasing order by their highest station latitude.", "question_toks": ["For", "each", "city", ",", "list", "their", "names", "in", "decreasing", "order", "by", "their", "highest", "station", "latitude", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [1, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1952", "db_id": "cinema", "query": "select t2.title , max(t1.price) from schedule as t1 join film as t2 on t1.film_id = t2.film_id group by t1.film_id", "query_toks": ["SELECT", "T2.title", ",", "max", "(", "T1.price", ")", "FROM", "schedule", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T1.film_id"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "max", "(", "t1", ".", "price", ")", "from", "schedule", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t1", ".", "film_id"], "question": "Give me the title and highest price for each film.", "question_toks": ["Give", "me", "the", "title", "and", "highest", "price", "for", "each", "film", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [1, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 14, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1450", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "query_toks_no_value": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "question": "What is the title and credits of the course that is taught in the largest classroom (with the highest capacity)?", "question_toks": ["What", "is", "the", "title", "and", "credits", "of", "the", "course", "that", "is", "taught", "in", "the", "largest", "classroom", "(", "with", "the", "highest", "capacity", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1451", "db_id": "college_2", "query": "select t3.title , t3.credits from classroom as t1 join section as t2 on t1.building = t2.building and t1.room_number = t2.room_number join course as t3 on t2.course_id = t3.course_id where t1.capacity = (select max(capacity) from classroom)", "query_toks": ["SELECT", "T3.title", ",", "T3.credits", "FROM", "classroom", "AS", "T1", "JOIN", "SECTION", "AS", "T2", "ON", "T1.building", "=", "T2.building", "AND", "T1.room_number", "=", "T2.room_number", "JOIN", "course", "AS", "T3", "ON", "T2.course_id", "=", "T3.course_id", "WHERE", "T1.capacity", "=", "(", "SELECT", "max", "(", "capacity", ")", "FROM", "classroom", ")"], "query_toks_no_value": ["select", "t3", ".", "title", ",", "t3", ".", "credits", "from", "classroom", "as", "t1", "join", "section", "as", "t2", "on", "t1", ".", "building", "=", "t2", ".", "building", "and", "t1", ".", "room_number", "=", "t2", ".", "room_number", "join", "course", "as", "t3", "on", "t2", ".", "course_id", "=", "t3", ".", "course_id", "where", "t1", ".", "capacity", "=", "(", "select", "max", "(", "capacity", ")", "from", "classroom", ")"], "question": "Give the title and credits for the course that is taught in the classroom with the greatest capacity.", "question_toks": ["Give", "the", "title", "and", "credits", "for", "the", "course", "that", "is", "taught", "in", "the", "classroom", "with", "the", "greatest", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 2, false], null], [0, 20, false], null], "and", [false, 2, [0, [0, 15, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1482", "db_id": "college_2", "query": "select distinct salary from instructor where salary < (select max(salary) from instructor)", "query_toks": ["SELECT", "DISTINCT", "salary", "FROM", "instructor", "WHERE", "salary", "<", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", ")"], "query_toks_no_value": ["select", "distinct", "salary", "from", "instructor", "where", "salary", "<", "(", "select", "max", "(", "salary", ")", "from", "instructor", ")"], "question": "Find the salaries of all distinct instructors that are less than the largest salary.", "question_toks": ["Find", "the", "salaries", "of", "all", "distinct", "instructors", "that", "are", "less", "than", "the", "largest", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 14, false], null]]]], "where": [[false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1490", "db_id": "college_2", "query": "select name from instructor where salary > (select max(salary) from instructor where dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "instructor", "WHERE", "dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "instructor", "where", "dept_name", "=", "value", ")"], "question": "Find the names of all instructors whose salary is greater than the salary of all instructors in the Biology department.", "question_toks": ["Find", "the", "names", "of", "all", "instructors", "whose", "salary", "is", "greater", "than", "the", "salary", "of", "all", "instructors", "in", "the", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6467", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''"], "query_toks_no_value": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value"], "question": "What are the account details with the largest value or with value having char '5' in it?", "question_toks": ["What", "are", "the", "account", "details", "with", "the", "largest", "value", "or", "with", "value", "having", "char", "'5", "'", "in", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6468", "db_id": "cre_Docs_and_Epenses", "query": "select max(account_details) from accounts union select account_details from accounts where account_details like \"%5%\"", "query_toks": ["SELECT", "max", "(", "Account_details", ")", "FROM", "Accounts", "UNION", "SELECT", "Account_details", "FROM", "Accounts", "WHERE", "Account_details", "LIKE", "``", "%", "5", "%", "''"], "query_toks_no_value": ["select", "max", "(", "account_details", ")", "from", "accounts", "union", "select", "account_details", "from", "accounts", "where", "account_details", "like", "value"], "question": "Return the account details with the greatest value, as well as those that include the character 5.", "question_toks": ["Return", "the", "account", "details", "with", "the", "greatest", "value", ",", "as", "well", "as", "those", "that", "include", "the", "character", "5", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 9, [0, [0, 22, false], null], "\"%5%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2360", "db_id": "csu_1", "query": "select t1.campus from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and faculty > (select max(faculty) from campuses as t1 join faculty as t2 on t1.id = t2.campus where t2.year = 2002 and t1.county = \"orange\")", "query_toks": ["SELECT", "T1.campus", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "faculty", ">", "(", "SELECT", "max", "(", "faculty", ")", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "T2.campus", "WHERE", "T2.year", "=", "2002", "AND", "T1.county", "=", "``", "Orange", "''", ")"], "query_toks_no_value": ["select", "t1", ".", "campus", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "faculty", ">", "(", "select", "max", "(", "faculty", ")", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", "=", "value", "and", "t1", ".", "county", "=", "value", ")"], "question": "Find the names of the campus which has more faculties in 2002 than every campus in Orange county.", "question_toks": ["Find", "the", "names", "of", "the", "campus", "which", "has", "more", "faculties", "in", "2002", "than", "every", "campus", "in", "Orange", "county", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 3, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null], "and", [false, 2, [0, [0, 4, false], null], "\"Orange\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6099", "db_id": "customers_and_addresses", "query": "select max(t2.active_to_date) from customers as t1 join customer_contact_channels as t2 on t1.customer_id = t2.customer_id where t1.customer_name = \"tillman ernser\"", "query_toks": ["SELECT", "max", "(", "t2.active_to_date", ")", "FROM", "customers", "AS", "t1", "JOIN", "customer_contact_channels", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.customer_name", "=", "``", "Tillman", "Ernser", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "active_to_date", ")", "from", "customers", "as", "t1", "join", "customer_contact_channels", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "customer_name", "=", "value"], "question": "What is the \"active to date\" of the latest contact channel used by \"Tillman Ernser\"?", "question_toks": ["What", "is", "the", "``", "active", "to", "date", "''", "of", "the", "latest", "contact", "channel", "used", "by", "``", "Tillman", "Ernser", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 20, false], null]]}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Tillman Ernser\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6107", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t3.order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "question": "What is the name of the customer that made the order with the largest quantity?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "that", "made", "the", "order", "with", "the", "largest", "quantity", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6108", "db_id": "customers_and_addresses", "query": "select t1.customer_name from customers as t1 join customer_orders as t2 on t1.customer_id = t2.customer_id join order_items as t3 on t2.order_id = t3.order_id where t3.order_quantity = ( select max(order_quantity) from order_items)", "query_toks": ["SELECT", "t1.customer_name", "FROM", "customers", "AS", "t1", "JOIN", "customer_orders", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "JOIN", "order_items", "AS", "t3", "ON", "t2.order_id", "=", "t3.order_id", "WHERE", "t3.order_quantity", "=", "(", "SELECT", "max", "(", "order_quantity", ")", "FROM", "order_items", ")"], "query_toks_no_value": ["select", "t1", ".", "customer_name", "from", "customers", "as", "t1", "join", "customer_orders", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "order_items", "as", "t3", "on", "t2", ".", "order_id", "=", "t3", ".", "order_id", "where", "t3", ".", "order_quantity", "=", "(", "select", "max", "(", "order_quantity", ")", "from", "order_items", ")"], "question": "Find the name of the customer who made the order of the largest amount of goods.", "question_toks": ["Find", "the", "name", "of", "the", "customer", "who", "made", "the", "order", "of", "the", "largest", "amount", "of", "goods", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4755", "db_id": "department_store", "query": "select staff_id from staff_department_assignments where date_assigned_to < (select max(date_assigned_to) from staff_department_assignments where job_title_code = 'clerical staff')", "query_toks": ["SELECT", "staff_id", "FROM", "Staff_Department_Assignments", "WHERE", "date_assigned_to", "<", "(", "SELECT", "max", "(", "date_assigned_to", ")", "FROM", "Staff_Department_Assignments", "WHERE", "job_title_code", "=", "'Clerical", "Staff", "'", ")"], "query_toks_no_value": ["select", "staff_id", "from", "staff_department_assignments", "where", "date_assigned_to", "<", "(", "select", "max", "(", "date_assigned_to", ")", "from", "staff_department_assignments", "where", "job_title_code", "=", "value", ")"], "question": "What is id of the staff who had a Staff Department Assignment earlier than any Clerical Staff?", "question_toks": ["What", "is", "id", "of", "the", "staff", "who", "had", "a", "Staff", "Department", "Assignment", "earlier", "than", "any", "Clerical", "Staff", "?"], "sql": {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 52, false], null]]]], "where": [[false, 4, [0, [0, 56, false], null], {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[1, [0, [0, 56, false], null]]]], "where": [[false, 2, [0, [0, 55, false], null], "\"Clerical Staff\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0988", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "dogs"], "question": "What is the age of the oldest dog?", "question_toks": ["What", "is", "the", "age", "of", "the", "oldest", "dog", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0989", "db_id": "dog_kennels", "query": "select max(age) from dogs", "query_toks": ["SELECT", "max", "(", "age", ")", "FROM", "Dogs"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "dogs"], "question": "Tell me the age of the oldest dog.", "question_toks": ["Tell", "me", "the", "age", "of", "the", "oldest", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0992", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "query_toks_no_value": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "question": "How much does the most expensive charge type costs?", "question_toks": ["How", "much", "does", "the", "most", "expensive", "charge", "type", "costs", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "HIDDEN_MAX", "_HOW_MANY_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0993", "db_id": "dog_kennels", "query": "select max(charge_amount) from charges", "query_toks": ["SELECT", "max", "(", "charge_amount", ")", "FROM", "Charges"], "query_toks_no_value": ["select", "max", "(", "charge_amount", ")", "from", "charges"], "question": "What is the charge amount of the most expensive charge type?", "question_toks": ["What", "is", "the", "charge", "amount", "of", "the", "most", "expensive", "charge", "type", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5744", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["SELECT", "avg", "(", "T1.age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "question": "Find the average age of students who are living in the dorm with the largest capacity.", "question_toks": ["Find", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "largest", "capacity", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5745", "db_id": "dorm_1", "query": "select avg(t1.age) from student as t1 join lives_in as t2 on t1.stuid = t2.stuid join dorm as t3 on t3.dormid = t2.dormid where t3.student_capacity = (select max(student_capacity) from dorm)", "query_toks": ["SELECT", "avg", "(", "T1.age", ")", "FROM", "student", "AS", "T1", "JOIN", "lives_in", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "JOIN", "dorm", "AS", "T3", "ON", "T3.dormid", "=", "T2.dormid", "WHERE", "T3.student_capacity", "=", "(", "SELECT", "max", "(", "student_capacity", ")", "FROM", "dorm", ")"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", "from", "student", "as", "t1", "join", "lives_in", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "join", "dorm", "as", "t3", "on", "t3", ".", "dormid", "=", "t2", ".", "dormid", "where", "t3", ".", "student_capacity", "=", "(", "select", "max", "(", "student_capacity", ")", "from", "dorm", ")"], "question": "What is the average age of students who are living in the dorm with the largest capacity?", "question_toks": ["What", "is", "the", "average", "age", "of", "students", "who", "are", "living", "in", "the", "dorm", "with", "the", "largest", "capacity", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 17, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 18, false], null]]}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6324", "db_id": "e_government", "query": "select t3.individual_last_name from organizations as t1 join organization_contact_individuals as t2 on t1.organization_id = t2.organization_id join individuals as t3 on t2.individual_id = t3.individual_id where t1.uk_vat_number = (select max(uk_vat_number) from organizations) order by t2.date_contact_to asc limit 1", "query_toks": ["SELECT", "t3.individual_last_name", "FROM", "organizations", "AS", "t1", "JOIN", "organization_contact_individuals", "AS", "t2", "ON", "t1.organization_id", "=", "t2.organization_id", "JOIN", "individuals", "AS", "t3", "ON", "t2.individual_id", "=", "t3.individual_id", "WHERE", "t1.uk_vat_number", "=", "(", "SELECT", "max", "(", "uk_vat_number", ")", "FROM", "organizations", ")", "ORDER", "BY", "t2.date_contact_to", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t3", ".", "individual_last_name", "from", "organizations", "as", "t1", "join", "organization_contact_individuals", "as", "t2", "on", "t1", ".", "organization_id", "=", "t2", ".", "organization_id", "join", "individuals", "as", "t3", "on", "t2", ".", "individual_id", "=", "t3", ".", "individual_id", "where", "t1", ".", "uk_vat_number", "=", "(", "select", "max", "(", "uk_vat_number", ")", "from", "organizations", ")", "order", "by", "t2", ".", "date_contact_to", "asc", "limit", "value"], "question": "Find the last name of the first ever contact person of the organization with the highest UK Vat number.", "question_toks": ["Find", "the", "last", "name", "of", "the", "first", "ever", "contact", "person", "of", "the", "organization", "with", "the", "highest", "UK", "Vat", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 33, false], null], "and", [false, 2, [0, [0, 32, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 35, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6812", "db_id": "flight_4", "query": "select max(elevation) from airports where country = 'iceland'", "query_toks": ["SELECT", "max", "(", "elevation", ")", "FROM", "airports", "WHERE", "country", "=", "'Iceland", "'"], "query_toks_no_value": ["select", "max", "(", "elevation", ")", "from", "airports", "where", "country", "=", "value"], "question": "What is the highest elevation of an airport in the country of Iceland?", "question_toks": ["What", "is", "the", "highest", "elevation", "of", "an", "airport", "in", "the", "country", "of", "Iceland", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Iceland\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2195", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "Find the distinct driver id and the stop number of all drivers that have a shorter pit stop duration than some drivers in the race with id 841.", "question_toks": ["Find", "the", "distinct", "driver", "id", "and", "the", "stop", "number", "of", "all", "drivers", "that", "have", "a", "shorter", "pit", "stop", "duration", "than", "some", "drivers", "in", "the", "race", "with", "id", "841", "."], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2196", "db_id": "formula_1", "query": "select distinct driverid , stop from pitstops where duration < (select max(duration) from pitstops where raceid = 841)", "query_toks": ["SELECT", "DISTINCT", "driverid", ",", "STOP", "FROM", "pitstops", "WHERE", "duration", "<", "(", "SELECT", "max", "(", "duration", ")", "FROM", "pitstops", "WHERE", "raceid", "=", "841", ")"], "query_toks_no_value": ["select", "distinct", "driverid", ",", "stop", "from", "pitstops", "where", "duration", "<", "(", "select", "max", "(", "duration", ")", "from", "pitstops", "where", "raceid", "=", "value", ")"], "question": "What is the id and stop number for each driver that has a shorter pit stop than the driver in the race with id 841?", "question_toks": ["What", "is", "the", "id", "and", "stop", "number", "for", "each", "driver", "that", "has", "a", "shorter", "pit", "stop", "than", "the", "driver", "in", "the", "race", "with", "id", "841", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [true, [[0, [0, [0, 83, false], null]], [0, [0, [0, 84, false], null]]]], "where": [[false, 4, [0, [0, 87, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[1, [0, [0, 87, false], null]]]], "where": [[false, 2, [0, [0, 82, false], null], 841.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0000", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the biggest city in wyoming", "question_toks": ["what", "is", "the", "biggest", "city", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0001", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what wyoming city has the largest population", "question_toks": ["what", "wyoming", "city", "has", "the", "largest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0002", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what is the largest city in wyoming", "question_toks": ["what", "is", "the", "largest", "city", "in", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0003", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "where is the most populated area of wyoming", "question_toks": ["where", "is", "the", "most", "populated", "area", "of", "wyoming"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0004", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "which city in wyoming has the largest population", "question_toks": ["which", "city", "in", "wyoming", "has", "the", "largest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0005", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what cities in wyoming have the highest number of citizens", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "highest", "number", "of", "citizens"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0006", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city where state_name = \"wyoming\" ) and state_name = \"wyoming\";", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "wyoming", "''", ")", "AND", "state_name", "=", "``", "wyoming", "''", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "what cities in wyoming have the highest populations", "question_toks": ["what", "cities", "in", "wyoming", "have", "the", "highest", "populations"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"wyoming\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0068", "db_id": "geo", "query": "select state_name from state where population = ( select max ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "state", ")"], "question": "which state has the most people", "question_toks": ["which", "state", "has", "the", "most", "people"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0074", "db_id": "geo", "query": "select length from river where length = ( select max ( length ) from river );", "query_toks": ["SELECT", "LENGTH", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "length", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "how long is the longest river in the usa", "question_toks": ["how", "long", "is", "the", "longest", "river", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0075", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\";", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the longest river flowing through texas", "question_toks": ["what", "is", "the", "longest", "river", "flowing", "through", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0076", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\";", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the largest river in texas state", "question_toks": ["what", "is", "the", "largest", "river", "in", "texas", "state"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0077", "db_id": "geo", "query": "select river_name from river where length = ( select max ( length ) from river where traverse = \"texas\" ) and traverse = \"texas\";", "query_toks": ["SELECT", "river_name", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "texas", "''", ")", "AND", "traverse", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "river_name", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", "where", "traverse", "=", "value", ")", "and", "traverse", "=", "value"], "question": "what is the longest river in texas", "question_toks": ["what", "is", "the", "longest", "river", "in", "texas"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 29, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0147", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river );", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "which states does the longest river run through", "question_toks": ["which", "states", "does", "the", "longest", "river", "run", "through"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0148", "db_id": "geo", "query": "select traverse from river where length = ( select max ( length ) from river );", "query_toks": ["SELECT", "traverse", "FROM", "river", "WHERE", "LENGTH", "=", "(", "SELECT", "MAX", "(", "LENGTH", ")", "FROM", "river", ")", ";"], "query_toks_no_value": ["select", "traverse", "from", "river", "where", "length", "=", "(", "select", "max", "(", "length", ")", "from", "river", ")"], "question": "which state has the longest river", "question_toks": ["which", "state", "has", "the", "longest", "river"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0174", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what state is the biggest", "question_toks": ["what", "state", "is", "the", "biggest"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0175", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the state with the largest area", "question_toks": ["what", "is", "the", "state", "with", "the", "largest", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0176", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what state has the largest area", "question_toks": ["what", "state", "has", "the", "largest", "area"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0177", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the biggest state in continental us", "question_toks": ["what", "is", "the", "biggest", "state", "in", "continental", "us"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0211", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow;", "query_toks": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ";"], "query_toks_no_value": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "question": "how high is the highest point in america", "question_toks": ["how", "high", "is", "the", "highest", "point", "in", "america"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0212", "db_id": "geo", "query": "select max ( highest_elevation ) from highlow;", "query_toks": ["SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ";"], "query_toks_no_value": ["select", "max", "(", "highest_elevation", ")", "from", "highlow"], "question": "what is the highest elevation in the united states", "question_toks": ["what", "is", "the", "highest", "elevation", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0236", "db_id": "geo", "query": "select population from city where population = ( select max ( population ) from city where state_name = \"alaska\" ) and state_name = \"alaska\";", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", "WHERE", "state_name", "=", "``", "alaska", "''", ")", "AND", "state_name", "=", "``", "alaska", "''", ";"], "query_toks_no_value": ["select", "population", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", "where", "state_name", "=", "value", ")", "and", "state_name", "=", "value"], "question": "how large is the largest city in alaska", "question_toks": ["how", "large", "is", "the", "largest", "city", "in", "alaska"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 2, [0, [0, 10, false], null], "\"alaska\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0303", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", ")"], "question": "what city has the largest population", "question_toks": ["what", "city", "has", "the", "largest", "population"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0305", "db_id": "geo", "query": "select city_name from city where population = ( select max ( population ) from city );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "city", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "city", ")"], "question": "what is the biggest city in usa", "question_toks": ["what", "is", "the", "biggest", "city", "in", "usa"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0309", "db_id": "geo", "query": "select city_name from city where population = ( select max ( t1.population ) from state as t2 join city as t1 on t2.capital = t1.city_name );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "t1.population", ")", "FROM", "state", "AS", "t2", "JOIN", "city", "AS", "t1", "ON", "t2.capital", "=", "t1.city_name", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", "=", "(", "select", "max", "(", "t1", ".", "population", ")", "from", "state", "as", "t2", "join", "city", "as", "t1", "on", "t2", ".", "capital", "=", "t1", ".", "city_name", ")"], "question": "what is the largest capital", "question_toks": ["what", "is", "the", "largest", "capital"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 7, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0327", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the highest mountain in the us", "question_toks": ["what", "is", "the", "highest", "mountain", "in", "the", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0328", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the highest mountain in us", "question_toks": ["what", "is", "the", "highest", "mountain", "in", "us"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0329", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the tallest mountain in america", "question_toks": ["what", "is", "the", "tallest", "mountain", "in", "america"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0330", "db_id": "geo", "query": "select mountain_name from mountain where mountain_altitude = ( select max ( mountain_altitude ) from mountain );", "query_toks": ["SELECT", "mountain_name", "FROM", "mountain", "WHERE", "mountain_altitude", "=", "(", "SELECT", "MAX", "(", "mountain_altitude", ")", "FROM", "mountain", ")", ";"], "query_toks_no_value": ["select", "mountain_name", "from", "mountain", "where", "mountain_altitude", "=", "(", "select", "max", "(", "mountain_altitude", ")", "from", "mountain", ")"], "question": "what is the tallest mountain in the united states", "question_toks": ["what", "is", "the", "tallest", "mountain", "in", "the", "united", "states"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 23, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0333", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "what is the highest point in the usa", "question_toks": ["what", "is", "the", "highest", "point", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0334", "db_id": "geo", "query": "select highest_point from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "highest_point", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "highest_point", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "what is the highest point of the usa", "question_toks": ["what", "is", "the", "highest", "point", "of", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0342", "db_id": "geo", "query": "select state_name from state where area = ( select max ( area ) from state where state_name in ( select border from border_info where state_name = \"california\" ) ) and state_name in ( select border from border_info where state_name = \"california\" );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", "WHERE", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "california", "''", ")", ")", "AND", "state_name", "IN", "(", "SELECT", "border", "FROM", "border_info", "WHERE", "state_name", "=", "``", "california", "''", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", "where", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")", ")", "and", "state_name", "in", "(", "select", "border", "from", "border_info", "where", "state_name", "=", "value", ")"], "question": "what is the largest state bordering california", "question_toks": ["what", "is", "the", "largest", "state", "bordering", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0362", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "what is the most dense state in the usa", "question_toks": ["what", "is", "the", "most", "dense", "state", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0363", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the highest population density", "question_toks": ["which", "state", "has", "the", "highest", "population", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0364", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the greatest density", "question_toks": ["which", "state", "has", "the", "greatest", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0370", "db_id": "geo", "query": "select state_name from state where density = ( select max ( density ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "density", "=", "(", "SELECT", "MAX", "(", "density", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "density", "=", "(", "select", "max", "(", "density", ")", "from", "state", ")"], "question": "which state has the largest density", "question_toks": ["which", "state", "has", "the", "largest", "density"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0434", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "which state has the highest elevation", "question_toks": ["which", "state", "has", "the", "highest", "elevation"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0437", "db_id": "geo", "query": "select state_name from highlow where highest_elevation = ( select max ( highest_elevation ) from highlow );", "query_toks": ["SELECT", "state_name", "FROM", "highlow", "WHERE", "highest_elevation", "=", "(", "SELECT", "MAX", "(", "highest_elevation", ")", "FROM", "highlow", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "highlow", "where", "highest_elevation", "=", "(", "select", "max", "(", "highest_elevation", ")", "from", "highlow", ")"], "question": "in which state does the highest point in usa exist", "question_toks": ["in", "which", "state", "does", "the", "highest", "point", "in", "usa", "exist"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0515", "db_id": "geo", "query": "select capital from state where area = ( select max ( area ) from state );", "query_toks": ["SELECT", "capital", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "capital", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")"], "question": "what is the capital of the largest state", "question_toks": ["what", "is", "the", "capital", "of", "the", "largest", "state"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0522", "db_id": "geo", "query": "select city_name from city where population > 150000 and state_name = ( select state_name from state where area = ( select max ( area ) from state ) );", "query_toks": ["SELECT", "city_name", "FROM", "city", "WHERE", "population", ">", "150000", "AND", "state_name", "=", "(", "SELECT", "state_name", "FROM", "state", "WHERE", "area", "=", "(", "SELECT", "MAX", "(", "area", ")", "FROM", "state", ")", ")", ";"], "query_toks_no_value": ["select", "city_name", "from", "city", "where", "population", ">", "value", "and", "state_name", "=", "(", "select", "state_name", "from", "state", "where", "area", "=", "(", "select", "max", "(", "area", ")", "from", "state", ")", ")"], "question": "what are the major cities in the largest state", "question_toks": ["what", "are", "the", "major", "cities", "in", "the", "largest", "state"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 150000.0, null], "and", [false, 2, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0532", "db_id": "geo", "query": "select max ( area ) from state;", "query_toks": ["SELECT", "MAX", "(", "area", ")", "FROM", "state", ";"], "query_toks_no_value": ["select", "max", "(", "area", ")", "from", "state"], "question": "what is the size of the largest state in the usa", "question_toks": ["what", "is", "the", "size", "of", "the", "largest", "state", "in", "the", "usa"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3447", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "query_toks_no_value": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "question": "display the employee ID for each employee and the date on which he ended his previous job.", "question_toks": ["display", "the", "employee", "ID", "for", "each", "employee", "and", "the", "date", "on", "which", "he", "ended", "his", "previous", "job", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3448", "db_id": "hr_1", "query": "select employee_id , max(end_date) from job_history group by employee_id", "query_toks": ["SELECT", "employee_id", ",", "MAX", "(", "end_date", ")", "FROM", "job_history", "GROUP", "BY", "employee_id"], "query_toks_no_value": ["select", "employee_id", ",", "max", "(", "end_date", ")", "from", "job_history", "group", "by", "employee_id"], "question": "What are the employee ids for each employee and final dates of employment at their last job?", "question_toks": ["What", "are", "the", "employee", "ids", "for", "each", "employee", "and", "final", "dates", "of", "employment", "at", "their", "last", "job", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [1, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3509", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = 'pu_man' )", "query_toks": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'PU_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "display the employee number, name( first name and last name ) and job title for all employees whose salary is more than any salary of those employees whose job title is PU_MAN.", "question_toks": ["display", "the", "employee", "number", ",", "name", "(", "first", "name", "and", "last", "name", ")", "and", "job", "title", "for", "all", "employees", "whose", "salary", "is", "more", "than", "any", "salary", "of", "those", "employees", "whose", "job", "title", "is", "PU_MAN", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"PU_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3510", "db_id": "hr_1", "query": "select employee_id , first_name , last_name , job_id from employees where salary > ( select max(salary) from employees where job_id = 'pu_man' )", "query_toks": ["SELECT", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "FROM", "employees", "WHERE", "salary", ">", "(", "SELECT", "max", "(", "salary", ")", "FROM", "employees", "WHERE", "job_id", "=", "'PU_MAN", "'", ")"], "query_toks_no_value": ["select", "employee_id", ",", "first_name", ",", "last_name", ",", "job_id", "from", "employees", "where", "salary", ">", "(", "select", "max", "(", "salary", ")", "from", "employees", "where", "job_id", "=", "value", ")"], "question": "What are the employee ids, full names, and job ids for employees who make more than the highest earning employee with title PU_MAN?", "question_toks": ["What", "are", "the", "employee", "ids", ",", "full", "names", ",", "and", "job", "ids", "for", "employees", "who", "make", "more", "than", "the", "highest", "earning", "employee", "with", "title", "PU_MAN", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"PU_MAN\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3515", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "question": "display the department ID, full name (first and last name), salary for those employees who is highest salary in every department.", "question_toks": ["display", "the", "department", "ID", ",", "full", "name", "(", "first", "and", "last", "name", ")", ",", "salary", "for", "those", "employees", "who", "is", "highest", "salary", "in", "every", "department", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3516", "db_id": "hr_1", "query": "select first_name , last_name , salary , department_id , max(salary) from employees group by department_id", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "MAX", "(", "salary", ")", "FROM", "employees", "GROUP", "BY", "department_id"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", ",", "department_id", ",", "max", "(", "salary", ")", "from", "employees", "group", "by", "department_id"], "question": "What are the department ids, full names, and salaries for employees who make the most in their departments?", "question_toks": ["What", "are", "the", "department", "ids", ",", "full", "names", ",", "and", "salaries", "for", "employees", "who", "make", "the", "most", "in", "their", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]], [0, [0, [0, 24, false], null]], [1, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 24, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2912", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["SELECT", "t2.title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "WHERE", "t1.authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "question": "Retrieve the title of the paper that has the largest number of authors.", "question_toks": ["Retrieve", "the", "title", "of", "the", "paper", "that", "has", "the", "largest", "number", "of", "authors", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2913", "db_id": "icfp_1", "query": "select t2.title from authorship as t1 join papers as t2 on t1.paperid = t2.paperid where t1.authorder = (select max(authorder) from authorship)", "query_toks": ["SELECT", "t2.title", "FROM", "authorship", "AS", "t1", "JOIN", "papers", "AS", "t2", "ON", "t1.paperid", "=", "t2.paperid", "WHERE", "t1.authorder", "=", "(", "SELECT", "max", "(", "authorder", ")", "FROM", "authorship", ")"], "query_toks_no_value": ["select", "t2", ".", "title", "from", "authorship", "as", "t1", "join", "papers", "as", "t2", "on", "t1", ".", "paperid", "=", "t2", ".", "paperid", "where", "t1", ".", "authorder", "=", "(", "select", "max", "(", "authorder", ")", "from", "authorship", ")"], "question": "Which paper has the most authors? Give me the paper title.", "question_toks": ["Which", "paper", "has", "the", "most", "authors", "?", "Give", "me", "the", "paper", "title", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1519", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "question": "What is the name of the customer who has made the largest amount of claim in a single claim?", "question_toks": ["What", "is", "the", "name", "of", "the", "customer", "who", "has", "made", "the", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1520", "db_id": "insurance_and_eClaims", "query": "select t3.customer_details from claim_headers as t1 join policies as t2 on t1.policy_id = t2.policy_id join customers as t3 on t2.customer_id = t3.customer_id where t1.amount_claimed = (select max(amount_claimed) from claim_headers)", "query_toks": ["SELECT", "t3.customer_details", "FROM", "claim_headers", "AS", "t1", "JOIN", "policies", "AS", "t2", "ON", "t1.policy_id", "=", "t2.policy_id", "JOIN", "customers", "AS", "t3", "ON", "t2.customer_id", "=", "t3.customer_id", "WHERE", "t1.amount_claimed", "=", "(", "SELECT", "max", "(", "amount_claimed", ")", "FROM", "claim_headers", ")"], "query_toks_no_value": ["select", "t3", ".", "customer_details", "from", "claim_headers", "as", "t1", "join", "policies", "as", "t2", "on", "t1", ".", "policy_id", "=", "t2", ".", "policy_id", "join", "customers", "as", "t3", "on", "t2", ".", "customer_id", "=", "t3", ".", "customer_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claim_headers", ")"], "question": "Which customer made the largest amount of claim in a single claim? Return the customer details.", "question_toks": ["Which", "customer", "made", "the", "largest", "amount", "of", "claim", "in", "a", "single", "claim", "?", "Return", "the", "customer", "details", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1545", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "query_toks_no_value": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "question": "Which customer is associated with the latest policy?", "question_toks": ["Which", "customer", "is", "associated", "with", "the", "latest", "policy", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1546", "db_id": "insurance_and_eClaims", "query": "select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id where t1.start_date = (select max(start_date) from policies)", "query_toks": ["SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id", "WHERE", "t1.start_date", "=", "(", "SELECT", "max", "(", "start_date", ")", "FROM", "policies", ")"], "query_toks_no_value": ["select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t1", ".", "start_date", "=", "(", "select", "max", "(", "start_date", ")", "from", "policies", ")"], "question": "Find the customer who started a policy most recently.", "question_toks": ["Find", "the", "customer", "who", "started", "a", "policy", "most", "recently", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4855", "db_id": "local_govt_and_lot", "query": "select max(date_moved_in) from residents", "query_toks": ["SELECT", "max", "(", "date_moved_in", ")", "FROM", "Residents"], "query_toks_no_value": ["select", "max", "(", "date_moved_in", ")", "from", "residents"], "question": "When is the last day any resident moved in?", "question_toks": ["When", "is", "the", "last", "day", "any", "resident", "moved", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5308", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "query_toks_no_value": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "question": "Find the name and revenue of the company that earns the highest revenue in each city.", "question_toks": ["Find", "the", "name", "and", "revenue", "of", "the", "company", "that", "earns", "the", "highest", "revenue", "in", "each", "city", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5309", "db_id": "manufactory_1", "query": "select name , max(revenue) , headquarter from manufacturers group by headquarter", "query_toks": ["SELECT", "name", ",", "max", "(", "revenue", ")", ",", "Headquarter", "FROM", "manufacturers", "GROUP", "BY", "Headquarter"], "query_toks_no_value": ["select", "name", ",", "max", "(", "revenue", ")", ",", "headquarter", "from", "manufacturers", "group", "by", "headquarter"], "question": "What are the names and revenues of the companies with the highest revenues in each headquarter city?", "question_toks": ["What", "are", "the", "names", "and", "revenues", "of", "the", "companies", "with", "the", "highest", "revenues", "in", "each", "headquarter", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [1, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5348", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["SELECT", "T1.Name", ",", "max", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "question": "Select the name of each manufacturer along with the name and price of its most expensive product.", "question_toks": ["Select", "the", "name", "of", "each", "manufacturer", "along", "with", "the", "name", "and", "price", "of", "its", "most", "expensive", "product", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5349", "db_id": "manufactory_1", "query": "select t1.name , max(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name", "query_toks": ["SELECT", "T1.Name", ",", "max", "(", "T1.Price", ")", ",", "T2.name", "FROM", "products", "AS", "T1", "JOIN", "Manufacturers", "AS", "T2", "ON", "T1.manufacturer", "=", "T2.code", "GROUP", "BY", "T2.name"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "max", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name"], "question": "For each manufacturer name, what are the names and prices of their most expensive product?", "question_toks": ["For", "each", "manufacturer", "name", ",", "what", "are", "the", "names", "and", "prices", "of", "their", "most", "expensive", "product", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [1, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3394", "db_id": "manufacturer", "query": "select t1.name from furniture as t1 join furniture_manufacte as t2 on t1.furniture_id = t2.furniture_id where t2.price_in_dollar < (select max(price_in_dollar) from furniture_manufacte)", "query_toks": ["SELECT", "t1.name", "FROM", "furniture", "AS", "t1", "JOIN", "furniture_manufacte", "AS", "t2", "ON", "t1.Furniture_ID", "=", "t2.Furniture_ID", "WHERE", "t2.Price_in_Dollar", "<", "(", "SELECT", "max", "(", "Price_in_Dollar", ")", "FROM", "furniture_manufacte", ")"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "furniture", "as", "t1", "join", "furniture_manufacte", "as", "t2", "on", "t1", ".", "furniture_id", "=", "t2", ".", "furniture_id", "where", "t2", ".", "price_in_dollar", "<", "(", "select", "max", "(", "price_in_dollar", ")", "from", "furniture_manufacte", ")"], "question": "Find the names of furnitures whose prices are lower than the highest price.", "question_toks": ["Find", "the", "names", "of", "furnitures", "whose", "prices", "are", "lower", "than", "the", "highest", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 4, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2464", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the name of the most recent movie?", "question_toks": ["What", "is", "the", "name", "of", "the", "most", "recent", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2465", "db_id": "movie_1", "query": "select title from movie where year = (select max(year) from movie)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the title of the newest movie?", "question_toks": ["What", "is", "the", "title", "of", "the", "newest", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2467", "db_id": "movie_1", "query": "select max(t1.stars) , t2.year from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["SELECT", "max", "(", "T1.stars", ")", ",", "T2.year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is highest rating for the most recent movie and when was it released?", "question_toks": ["What", "is", "highest", "rating", "for", "the", "most", "recent", "movie", "and", "when", "was", "it", "released", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT", "HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2468", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "Steven", "Spielberg", "''", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", ")"], "question": "What is the names of movies whose created year is after all movies directed by Steven Spielberg?", "question_toks": ["What", "is", "the", "names", "of", "movies", "whose", "created", "year", "is", "after", "all", "movies", "directed", "by", "Steven", "Spielberg", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Steven Spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2469", "db_id": "movie_1", "query": "select title from movie where year > (select max(year) from movie where director = \"steven spielberg\")", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "YEAR", ">", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", "WHERE", "director", "=", "``", "Steven", "Spielberg", "''", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "year", ">", "(", "select", "max", "(", "year", ")", "from", "movie", "where", "director", "=", "value", ")"], "question": "What are the names of all movies that were created after the most recent Steven Spielberg film?", "question_toks": ["What", "are", "the", "names", "of", "all", "movies", "that", "were", "created", "after", "the", "most", "recent", "Steven", "Spielberg", "film", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Steven Spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2502", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid where director != \"null\" group by director", "query_toks": ["SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "max", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "director", "!", "=", "value", "group", "by", "director"], "question": "For each director, return the director's name together with the title of the movie they directed that received the highest rating among all of their movies, and the value of that rating. Ignore movies whose director is NULL.", "question_toks": ["For", "each", "director", ",", "return", "the", "director", "'s", "name", "together", "with", "the", "title", "of", "the", "movie", "they", "directed", "that", "received", "the", "highest", "rating", "among", "all", "of", "their", "movies", ",", "and", "the", "value", "of", "that", "rating", ".", "Ignore", "movies", "whose", "director", "is", "NULL", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ALL", "HIDDEN_MAX", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3571", "db_id": "music_1", "query": "select song_name from song where rating < (select max(rating) from song where genre_is = \"blues\")", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "rating", "<", "(", "SELECT", "max", "(", "rating", ")", "FROM", "song", "WHERE", "genre_is", "=", "``", "blues", "''", ")"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "rating", "<", "(", "select", "max", "(", "rating", ")", "from", "song", "where", "genre_is", "=", "value", ")"], "question": "What are the names of all songs that have a lower rating than some song of blues genre?", "question_toks": ["What", "are", "the", "names", "of", "all", "songs", "that", "have", "a", "lower", "rating", "than", "some", "song", "of", "blues", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"blues\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3615", "db_id": "music_1", "query": "select f_id from song where resolution > (select max(resolution) from song where rating < 8)", "query_toks": ["SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "(", "SELECT", "max", "(", "resolution", ")", "FROM", "song", "WHERE", "rating", "<", "8", ")"], "query_toks_no_value": ["select", "f_id", "from", "song", "where", "resolution", ">", "(", "select", "max", "(", "resolution", ")", "from", "song", "where", "rating", "<", "value", ")"], "question": "What is ids of the songs whose resolution is higher than the resolution of any songs with rating lower than 8?", "question_toks": ["What", "is", "ids", "of", "the", "songs", "whose", "resolution", "is", "higher", "than", "the", "resolution", "of", "any", "songs", "with", "rating", "lower", "than", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 21, false], null]]]], "where": [[false, 4, [0, [0, 18, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0917", "db_id": "network_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "What is the lowest grade of students who do not have any friends?", "question_toks": ["What", "is", "the", "lowest", "grade", "of", "students", "who", "do", "not", "have", "any", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[2, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "HIDDEN_MAX", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4408", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")"], "question": "Who is the oldest person?", "question_toks": ["Who", "is", "the", "oldest", "person", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4409", "db_id": "network_2", "query": "select name from person where age = (select max(age) from person)", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", ")"], "question": "What is the name of the person who is the oldest?", "question_toks": ["What", "is", "the", "name", "of", "the", "person", "who", "is", "the", "oldest", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4410", "db_id": "network_2", "query": "select name from person where job = 'student' and age = (select max(age) from person where job = 'student' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "Who is the oldest person whose job is student?", "question_toks": ["Who", "is", "the", "oldest", "person", "whose", "job", "is", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4411", "db_id": "network_2", "query": "select name from person where job = 'student' and age = (select max(age) from person where job = 'student' )", "query_toks": ["SELECT", "name", "FROM", "Person", "WHERE", "job", "=", "'student", "'", "AND", "age", "=", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'student", "'", ")"], "query_toks_no_value": ["select", "name", "from", "person", "where", "job", "=", "value", "and", "age", "=", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "What is the name of the oldest student?", "question_toks": ["What", "is", "the", "name", "of", "the", "oldest", "student", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null], "and", [false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"student\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4432", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = 'engineer')", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "Find the number of people whose age is greater than all engineers.", "question_toks": ["Find", "the", "number", "of", "people", "whose", "age", "is", "greater", "than", "all", "engineers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4433", "db_id": "network_2", "query": "select count(*) from person where age > (select max(age) from person where job = 'engineer')", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Person", "WHERE", "age", ">", "(", "SELECT", "max", "(", "age", ")", "FROM", "person", "WHERE", "job", "=", "'engineer", "'", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "person", "where", "age", ">", "(", "select", "max", "(", "age", ")", "from", "person", "where", "job", "=", "value", ")"], "question": "How many people are older than every engineer?", "question_toks": ["How", "many", "people", "are", "older", "than", "every", "engineer", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4468", "db_id": "network_2", "query": "select friend from personfriend where name = 'zach' and year = (select max(year) from personfriend where name = 'zach')", "query_toks": ["SELECT", "friend", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", "AND", "YEAR", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")"], "query_toks_no_value": ["select", "friend", "from", "personfriend", "where", "name", "=", "value", "and", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")"], "question": "Who is the friend of Zach with longest year relationship?", "question_toks": ["Who", "is", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4470", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'zach' and t2.year = (select max(year) from personfriend where name = 'zach')", "query_toks": ["SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")"], "question": "What is the age of the friend of Zach with longest year relationship?", "question_toks": ["What", "is", "the", "age", "of", "the", "friend", "of", "Zach", "with", "longest", "year", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4471", "db_id": "network_2", "query": "select t1.age from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'zach' and t2.year = (select max(year) from personfriend where name = 'zach')", "query_toks": ["SELECT", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Zach", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "name", "=", "'Zach", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "name", "=", "value", ")"], "question": "What are the ages of all of Zach's friends who are in the longest relationship?", "question_toks": ["What", "are", "the", "ages", "of", "all", "of", "Zach", "'s", "friends", "who", "are", "in", "the", "longest", "relationship", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Zach\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4474", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'alice' and t2.year = (select max(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "Find the name, age, and job title of persons who are friends with Alice for the longest years.", "question_toks": ["Find", "the", "name", ",", "age", ",", "and", "job", "title", "of", "persons", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "years", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4475", "db_id": "network_2", "query": "select t1.name , t1.age , t1.job from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'alice' and t2.year = (select max(year) from personfriend where friend = 'alice')", "query_toks": ["SELECT", "T1.name", ",", "T1.age", ",", "T1.job", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Alice", "'", "AND", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "PersonFriend", "WHERE", "friend", "=", "'Alice", "'", ")"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "age", ",", "t1", ".", "job", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "and", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "personfriend", "where", "friend", "=", "value", ")"], "question": "What are the names, ages, and jobs of all people who are friends with Alice for the longest amount of time?", "question_toks": ["What", "are", "the", "names", ",", "ages", ",", "and", "jobs", "of", "all", "people", "who", "are", "friends", "with", "Alice", "for", "the", "longest", "amount", "of", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2323", "db_id": "perpetrator", "query": "select max(year) from perpetrator;", "query_toks": ["SELECT", "max", "(", "YEAR", ")", "FROM", "perpetrator", ";"], "query_toks_no_value": ["select", "max", "(", "year", ")", "from", "perpetrator"], "question": "In which year did the most recent crime happen?", "question_toks": ["In", "which", "year", "did", "the", "most", "recent", "crime", "happen", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1541", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" );", "query_toks": ["SELECT", "t2.house_number", ",", "t1.name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", "AND", "t1.rating", "=", "(", "SELECT", "MAX", "(", "t1.rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", ")", ";"], "query_toks_no_value": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the best french restaurant in san francisco ?", "question_toks": ["what", "is", "the", "best", "french", "restaurant", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1542", "db_id": "restaurants", "query": "select t2.house_number , t1.name from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join location as t2 on t1.id = t2.restaurant_id where t2.city_name = \"san francisco\" and t1.food_type = \"french\" );", "query_toks": ["SELECT", "t2.house_number", ",", "t1.name", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", "AND", "t1.rating", "=", "(", "SELECT", "MAX", "(", "t1.rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "LOCATION", "AS", "t2", "ON", "t1.id", "=", "t2.restaurant_id", "WHERE", "t2.city_name", "=", "``", "san", "francisco", "''", "AND", "t1.food_type", "=", "``", "french", "''", ")", ";"], "query_toks_no_value": ["select", "t2", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "location", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "restaurant_id", "where", "t2", ".", "city_name", "=", "value", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "What is the best french in san francisco ?", "question_toks": ["What", "is", "the", "best", "french", "in", "san", "francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"san francisco\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"french\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1607", "db_id": "restaurants", "query": "select t3.house_number , t1.name from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name join location as t3 on t1.id = t3.restaurant_id where t2.region = \"bay area\" and t1.food_type = \"american\" and t1.rating = ( select max ( t1.rating ) from restaurant as t1 join geographic as t2 on t1.city_name = t2.city_name where t2.region = \"bay area\" and t1.food_type = \"american\" );", "query_toks": ["SELECT", "t3.house_number", ",", "t1.name", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1.city_name", "=", "t2.city_name", "JOIN", "LOCATION", "AS", "t3", "ON", "t1.id", "=", "t3.restaurant_id", "WHERE", "t2.region", "=", "``", "bay", "area", "''", "AND", "t1.food_type", "=", "``", "american", "''", "AND", "t1.rating", "=", "(", "SELECT", "MAX", "(", "t1.rating", ")", "FROM", "restaurant", "AS", "t1", "JOIN", "geographic", "AS", "t2", "ON", "t1.city_name", "=", "t2.city_name", "WHERE", "t2.region", "=", "``", "bay", "area", "''", "AND", "t1.food_type", "=", "``", "american", "''", ")", ";"], "query_toks_no_value": ["select", "t3", ".", "house_number", ",", "t1", ".", "name", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "join", "location", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "restaurant_id", "where", "t2", ".", "region", "=", "value", "and", "t1", ".", "food_type", "=", "value", "and", "t1", ".", "rating", "=", "(", "select", "max", "(", "t1", ".", "rating", ")", "from", "restaurant", "as", "t1", "join", "geographic", "as", "t2", "on", "t1", ".", "city_name", "=", "t2", ".", "city_name", "where", "t2", ".", "region", "=", "value", "and", "t1", ".", "food_type", "=", "value", ")"], "question": "what is the best american in the bay area ?", "question_toks": ["what", "is", "the", "best", "american", "in", "the", "bay", "area", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 4, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null], "and", [false, 2, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"bay area\"", null], "and", [false, 2, [0, [0, 6, false], null], "\"american\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0992", "db_id": "scholar", "query": "select distinct paperid from paper where year = ( select max ( year ) from paper );", "query_toks": ["SELECT", "DISTINCT", "paperid", "FROM", "paper", "WHERE", "YEAR", "=", "(", "SELECT", "MAX", "(", "YEAR", ")", "FROM", "paper", ")", ";"], "query_toks_no_value": ["select", "distinct", "paperid", "from", "paper", "where", "year", "=", "(", "select", "max", "(", "year", ")", "from", "paper", ")"], "question": "papers published in the last year", "question_toks": ["papers", "published", "in", "the", "last", "year"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1119", "db_id": "scholar", "query": "select distinct max ( t3.year ) from writes as t2 join author as t1 on t2.authorid = t1.authorid join paper as t3 on t2.paperid = t3.paperid where t1.authorname = \"mary crainie\";", "query_toks": ["SELECT", "DISTINCT", "MAX", "(", "t3.year", ")", "FROM", "writes", "AS", "t2", "JOIN", "author", "AS", "t1", "ON", "t2.authorid", "=", "t1.authorid", "JOIN", "paper", "AS", "t3", "ON", "t2.paperid", "=", "t3.paperid", "WHERE", "t1.authorname", "=", "``", "Mary", "Crainie", "''", ";"], "query_toks_no_value": ["select", "distinct", "max", "(", "t3", ".", "year", ")", "from", "writes", "as", "t2", "join", "author", "as", "t1", "on", "t2", ".", "authorid", "=", "t1", ".", "authorid", "join", "paper", "as", "t3", "on", "t2", ".", "paperid", "=", "t3", ".", "paperid", "where", "t1", ".", "authorname", "=", "value"], "question": "When was the last time Mary Crainie published a paper ?", "question_toks": ["When", "was", "the", "last", "time", "Mary", "Crainie", "published", "a", "paper", "?"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 25, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 24, false], null], [0, 11, false], null]]}, "select": [true, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Mary Crainie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6501", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "T3.ssn", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "Find the SSN and name of scientists who are assigned to the project with the longest hours.", "question_toks": ["Find", "the", "SSN", "and", "name", "of", "scientists", "who", "are", "assigned", "to", "the", "project", "with", "the", "longest", "hours", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6502", "db_id": "scientist_1", "query": "select t3.ssn , t3.name from assignedto as t1 join projects as t2 on t1.project = t2.code join scientists as t3 on t1.scientist = t3.ssn where t2.hours = (select max(hours) from projects)", "query_toks": ["SELECT", "T3.ssn", ",", "T3.name", "FROM", "assignedto", "AS", "T1", "JOIN", "projects", "AS", "T2", "ON", "T1.project", "=", "T2.code", "JOIN", "scientists", "AS", "T3", "ON", "T1.scientist", "=", "T3.SSN", "WHERE", "T2.hours", "=", "(", "SELECT", "max", "(", "hours", ")", "FROM", "projects", ")"], "query_toks_no_value": ["select", "t3", ".", "ssn", ",", "t3", ".", "name", "from", "assignedto", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project", "=", "t2", ".", "code", "join", "scientists", "as", "t3", "on", "t1", ".", "scientist", "=", "t3", ".", "ssn", "where", "t2", ".", "hours", "=", "(", "select", "max", "(", "hours", ")", "from", "projects", ")"], "question": "What are the SSN and names of scientists working on the project with the most hours?", "question_toks": ["What", "are", "the", "SSN", "and", "names", "of", "scientists", "working", "on", "the", "project", "with", "the", "most", "hours", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1787", "db_id": "small_bank_1", "query": "select t1.custid , t1.name from accounts as t1 join checking as t2 on t1.custid = t2.custid where t2.balance < (select max(balance) from checking)", "query_toks": ["SELECT", "T1.custid", ",", "T1.name", "FROM", "accounts", "AS", "T1", "JOIN", "checking", "AS", "T2", "ON", "T1.custid", "=", "T2.custid", "WHERE", "T2.balance", "<", "(", "SELECT", "max", "(", "balance", ")", "FROM", "checking", ")"], "query_toks_no_value": ["select", "t1", ".", "custid", ",", "t1", ".", "name", "from", "accounts", "as", "t1", "join", "checking", "as", "t2", "on", "t1", ".", "custid", "=", "t2", ".", "custid", "where", "t2", ".", "balance", "<", "(", "select", "max", "(", "balance", ")", "from", "checking", ")"], "question": "What are the customer id and name corresponding to accounts with a checking balance less than the largest checking balance?", "question_toks": ["What", "are", "the", "customer", "id", "and", "name", "corresponding", "to", "accounts", "with", "a", "checking", "balance", "less", "than", "the", "largest", "checking", "balance", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1298", "db_id": "soccer_1", "query": "select distinct t1.player_name from player as t1 join player_attributes as t2 on t1.player_api_id = t2.player_api_id where t2.dribbling = ( select max(overall_rating) from player_attributes)", "query_toks": ["SELECT", "DISTINCT", "T1.player_name", "FROM", "Player", "AS", "T1", "JOIN", "Player_Attributes", "AS", "T2", "ON", "T1.player_api_id", "=", "T2.player_api_id", "WHERE", "T2.dribbling", "=", "(", "SELECT", "max", "(", "overall_rating", ")", "FROM", "Player_Attributes", ")"], "query_toks_no_value": ["select", "distinct", "t1", ".", "player_name", "from", "player", "as", "t1", "join", "player_attributes", "as", "t2", "on", "t1", ".", "player_api_id", "=", "t2", ".", "player_api_id", "where", "t2", ".", "dribbling", "=", "(", "select", "max", "(", "overall_rating", ")", "from", "player_attributes", ")"], "question": "What are the names of players who have the best dribbling?", "question_toks": ["What", "are", "the", "names", "of", "players", "who", "have", "the", "best", "dribbling", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 47, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5038", "db_id": "soccer_2", "query": "select distinct state from college where enr < (select max(enr) from college)", "query_toks": ["SELECT", "DISTINCT", "state", "FROM", "college", "WHERE", "enr", "<", "(", "SELECT", "max", "(", "enr", ")", "FROM", "college", ")"], "query_toks_no_value": ["select", "distinct", "state", "from", "college", "where", "enr", "<", "(", "select", "max", "(", "enr", ")", "from", "college", ")"], "question": "Find the states where have the colleges whose enrollments are less than the largest size.", "question_toks": ["Find", "the", "states", "where", "have", "the", "colleges", "whose", "enrollments", "are", "less", "than", "the", "largest", "size", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6923", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "question": "Find the id of the order which is shipped most recently.", "question_toks": ["Find", "the", "id", "of", "the", "order", "which", "is", "shipped", "most", "recently", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6924", "db_id": "tracking_orders", "query": "select order_id from shipments where shipment_date = (select max(shipment_date) from shipments)", "query_toks": ["SELECT", "order_id", "FROM", "shipments", "WHERE", "shipment_date", "=", "(", "SELECT", "max", "(", "shipment_date", ")", "FROM", "shipments", ")"], "query_toks_no_value": ["select", "order_id", "from", "shipments", "where", "shipment_date", "=", "(", "select", "max", "(", "shipment_date", ")", "from", "shipments", ")"], "question": "Which order has the most recent shipment? Give me the order id.", "question_toks": ["Which", "order", "has", "the", "most", "recent", "shipment", "?", "Give", "me", "the", "order", "id", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0691", "db_id": "voter_1", "query": "select max(created) from votes where state = 'ca'", "query_toks": ["SELECT", "max", "(", "created", ")", "FROM", "votes", "WHERE", "state", "=", "'CA", "'"], "query_toks_no_value": ["select", "max", "(", "created", ")", "from", "votes", "where", "state", "=", "value"], "question": "What is last date created of votes from the state 'CA'?", "question_toks": ["What", "is", "last", "date", "created", "of", "votes", "from", "the", "state", "'CA", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"CA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5451", "db_id": "voter_2", "query": "select max(age) from student", "query_toks": ["SELECT", "max", "(", "Age", ")", "FROM", "STUDENT"], "query_toks_no_value": ["select", "max", "(", "age", ")", "from", "student"], "question": "What is the oldest age among the students?", "question_toks": ["What", "is", "the", "oldest", "age", "among", "the", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6585", "db_id": "wine_1", "query": "select name from wine where price > (select max(price) from wine where year = 2006)", "query_toks": ["SELECT", "Name", "FROM", "WINE", "WHERE", "Price", ">", "(", "SELECT", "max", "(", "Price", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2006", ")"], "query_toks_no_value": ["select", "name", "from", "wine", "where", "price", ">", "(", "select", "max", "(", "price", ")", "from", "wine", "where", "year", "=", "value", ")"], "question": "What are the names of wines that are more expensive then all wines made in the year 2006?", "question_toks": ["What", "are", "the", "names", "of", "wines", "that", "are", "more", "expensive", "then", "all", "wines", "made", "in", "the", "year", "2006", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2006.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0774", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select max(population) from country where continent = \"asia\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "population", "<", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", ")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")"], "question": "What are the African countries that have a population less than any country in Asia?", "question_toks": ["What", "are", "the", "African", "countries", "that", "have", "a", "population", "less", "than", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0817", "db_id": "world_1", "query": "select language , countrycode , max(percentage) from countrylanguage group by countrycode", "query_toks": ["SELECT", "LANGUAGE", ",", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "language", ",", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "group", "by", "countrycode"], "question": "What are the country codes of the different countries, and what are the languages spoken by the greatest percentage of people for each?", "question_toks": ["What", "are", "the", "country", "codes", "of", "the", "different", "countries", ",", "and", "what", "are", "the", "languages", "spoken", "by", "the", "greatest", "percentage", "of", "people", "for", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]], [0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0818", "db_id": "world_1", "query": "select count(*) , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "What is the total number of countries where Spanish is spoken by the largest percentage of people?", "question_toks": ["What", "is", "the", "total", "number", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0819", "db_id": "world_1", "query": "select count(*) , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "Count the number of countries for which Spanish is the predominantly spoken language.", "question_toks": ["Count", "the", "number", "of", "countries", "for", "which", "Spanish", "is", "the", "predominantly", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0820", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "What are the codes of countries where Spanish is spoken by the largest percentage of people?", "question_toks": ["What", "are", "the", "codes", "of", "countries", "where", "Spanish", "is", "spoken", "by", "the", "largest", "percentage", "of", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0821", "db_id": "world_1", "query": "select countrycode , max(percentage) from countrylanguage where language = \"spanish\" group by countrycode", "query_toks": ["SELECT", "CountryCode", ",", "max", "(", "Percentage", ")", "FROM", "countrylanguage", "WHERE", "LANGUAGE", "=", "``", "Spanish", "''", "GROUP", "BY", "CountryCode"], "query_toks_no_value": ["select", "countrycode", ",", "max", "(", "percentage", ")", "from", "countrylanguage", "where", "language", "=", "value", "group", "by", "countrycode"], "question": "Return the codes of countries for which Spanish is the predominantly spoken language.", "question_toks": ["Return", "the", "codes", "of", "countries", "for", "which", "Spanish", "is", "the", "predominantly", "spoken", "language", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [1, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Spanish\"", null]], "groupBy": [[0, 23, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0027", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "value", "select", "max", "(", "age", ")", "from", "dogs", ")"], "question": "List the last name of the owner owning the oldest dog.", "question_toks": ["List", "the", "last", "name", "of", "the", "owner", "owning", "the", "oldest", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0028", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["select", "t1", ".", "last_name", "from", "owners", "as", "t1", "join", "dogs", "as", "t2", "on", "t1", ".", "owner_id", "=", "t2", ".", "owner_id", "where", "t2", ".", "age", "=", "value", "select", "max", "(", "age", ")", "from", "dogs", ")"], "question": "Who owns the oldest dog? Give me his or her last name.", "question_toks": ["Who", "owns", "the", "oldest", "dog", "?", "Give", "me", "his", "or", "her", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0146", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["select", "name", "from", "country", "where", "surfacearea", ">", "(", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "surfacearea", ">", "value", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the countries that have greater surface area than that of any country in Europe?", "question_toks": ["What", "are", "the", "countries", "that", "have", "greater", "surface", "area", "than", "that", "of", "any", "country", "in", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0147", "db_id": "world_1", "query": "select name from country where surfacearea > (select max(surfacearea) from country where continent = \"europe\")", "query_toks": ["select", "name", "from", "country", "where", "surfacearea", ">", "(", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "``", "europe", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "surfacearea", ">", "value", "select", "max", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "Which countries have greater area than than any country in Europe?", "question_toks": ["Which", "countries", "have", "greater", "area", "than", "than", "any", "country", "in", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_max_0148", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "asia", "''", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "value", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the Asian countries which have a population larger than any country in Africa?", "question_toks": ["What", "are", "the", "Asian", "countries", "which", "have", "a", "population", "larger", "than", "any", "country", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_MAX"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0499", "db_id": "battle_death", "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", "query_toks": ["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"], "query_toks_no_value": ["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", ")", ">", "value"], "question": "What are the ids and names of the battles that led to more than 10 people killed in total.", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "battles", "that", "led", "to", "more", "than", "10", "people", "killed", "in", "total", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [4, 17, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0123", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the countries having at least one car maker? List name and id.", "question_toks": ["What", "are", "the", "countries", "having", "at", "least", "one", "car", "maker", "?", "List", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0124", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the names and ids of all countries with at least one car maker?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "countries", "with", "at", "least", "one", "car", "maker", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0397", "db_id": "course_teach", "query": "select hometown from teacher group by hometown having count(*) >= 2", "query_toks": ["SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "hometown", "from", "teacher", "group", "by", "hometown", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the hometowns shared by at least two teachers.", "question_toks": ["Show", "the", "hometowns", "shared", "by", "at", "least", "two", "teachers", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0398", "db_id": "course_teach", "query": "select hometown from teacher group by hometown having count(*) >= 2", "query_toks": ["SELECT", "Hometown", "FROM", "teacher", "GROUP", "BY", "Hometown", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "hometown", "from", "teacher", "group", "by", "hometown", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the towns from which at least two teachers come from?", "question_toks": ["What", "are", "the", "towns", "from", "which", "at", "least", "two", "teachers", "come", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0407", "db_id": "course_teach", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Show names of teachers that teach at least two courses.", "question_toks": ["Show", "names", "of", "teachers", "that", "teach", "at", "least", "two", "courses", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "HAVING_IN_SQL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0408", "db_id": "course_teach", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the names of the teachers who teach at least two courses?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "who", "teach", "at", "least", "two", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "HAVING_IN_SQL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0923", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "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", "(", "*", ")", ">", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"Indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_AND_WITH_OR_COLUMN_REMOVED", "OR_IN_NL", "AND_WITH_OR_IN_NL", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0943", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Find the id and cell phone of the professionals who operate two or more types of treatments.", "question_toks": ["Find", "the", "id", "and", "cell", "phone", "of", "the", "professionals", "who", "operate", "two", "or", "more", "types", "of", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_JOIN_1", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_TOTAL", "HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0241", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) > 10", "query_toks": ["SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", ">", "value"], "question": "Find all airlines that have at least 10 flights.", "question_toks": ["Find", "all", "airlines", "that", "have", "at", "least", "10", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "HAVING_IN_SQL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0419", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "find the id, name and age for visitors who visited some museums more than once.", "question_toks": ["find", "the", "id", ",", "name", "and", "age", "for", "visitors", "who", "visited", "some", "museums", "more", "than", "once", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "HAVING_IN_SQL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0880", "db_id": "network_1", "query": "select grade from highschooler group by grade having count(*) >= 4", "query_toks": ["SELECT", "grade", "FROM", "Highschooler", "GROUP", "BY", "grade", "HAVING", "count", "(", "*", ")", ">", "=", "4"], "query_toks_no_value": ["select", "grade", "from", "highschooler", "group", "by", "grade", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show me all grades that have at least 4 students.", "question_toks": ["Show", "me", "all", "grades", "that", "have", "at", "least", "4", "students", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0081", "db_id": "pets_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "Find the first name and gender of student who have more than one pet.", "question_toks": ["Find", "the", "first", "name", "and", "gender", "of", "student", "who", "have", "more", "than", "one", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "HAVING_IN_SQL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0082", "db_id": "pets_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "What is the first name and gender of the all the students who have more than one pet?", "question_toks": ["What", "is", "the", "first", "name", "and", "gender", "of", "the", "all", "the", "students", "who", "have", "more", "than", "one", "pet", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "HAVING_IN_SQL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0677", "db_id": "poker_player", "query": "select nationality from people group by nationality having count(*) >= 2", "query_toks": ["SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "nationality", "from", "people", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the nationalities that are shared by at least two people?", "question_toks": ["What", "are", "the", "nationalities", "that", "are", "shared", "by", "at", "least", "two", "people", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0678", "db_id": "poker_player", "query": "select nationality from people group by nationality having count(*) >= 2", "query_toks": ["SELECT", "Nationality", "FROM", "people", "GROUP", "BY", "Nationality", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "nationality", "from", "people", "group", "by", "nationality", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Return the nationalities for which there are two or more people.", "question_toks": ["Return", "the", "nationalities", "for", "which", "there", "are", "two", "or", "more", "people", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0641", "db_id": "tvshow", "query": "select id from tv_channel group by country having count(*) > 2", "query_toks": ["SELECT", "id", "FROM", "tv_channel", "GROUP", "BY", "country", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "id", "from", "tv_channel", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value"], "question": "find id of the tv channels that from the countries where have more than two tv channels.", "question_toks": ["find", "id", "of", "the", "tv", "channels", "that", "from", "the", "countries", "where", "have", "more", "than", "two", "tv", "channels", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0642", "db_id": "tvshow", "query": "select id from tv_channel group by country having count(*) > 2", "query_toks": ["SELECT", "id", "FROM", "tv_channel", "GROUP", "BY", "country", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "id", "from", "tv_channel", "group", "by", "country", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the ids of all tv channels that have more than 2 TV channels?", "question_toks": ["What", "are", "the", "ids", "of", "all", "tv", "channels", "that", "have", "more", "than", "2", "TV", "channels", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0445", "db_id": "wta_1", "query": "select tourney_name from matches group by tourney_name having count(*) > 10", "query_toks": ["SELECT", "tourney_name", "FROM", "matches", "GROUP", "BY", "tourney_name", "HAVING", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "tourney_name", "from", "matches", "group", "by", "tourney_name", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the name of tourney that has more than 10 matches.", "question_toks": ["Find", "the", "name", "of", "tourney", "that", "has", "more", "than", "10", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 27, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0446", "db_id": "wta_1", "query": "select tourney_name from matches group by tourney_name having count(*) > 10", "query_toks": ["SELECT", "tourney_name", "FROM", "matches", "GROUP", "BY", "tourney_name", "HAVING", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "tourney_name", "from", "matches", "group", "by", "tourney_name", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the names of tournaments that have more than 10 matches?", "question_toks": ["What", "are", "the", "names", "of", "tournaments", "that", "have", "more", "than", "10", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 27, false], null]]]], "where": [], "groupBy": [[0, 27, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0477", "db_id": "wta_1", "query": "select country_code from players group by country_code having count(*) > 50", "query_toks": ["SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "HAVING", "count", "(", "*", ")", ">", "50"], "query_toks_no_value": ["select", "country_code", "from", "players", "group", "by", "country_code", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the codes of countries that have more than 50 players.", "question_toks": ["Find", "the", "codes", "of", "countries", "that", "have", "more", "than", "50", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 50.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0478", "db_id": "wta_1", "query": "select country_code from players group by country_code having count(*) > 50", "query_toks": ["SELECT", "country_code", "FROM", "players", "GROUP", "BY", "country_code", "HAVING", "count", "(", "*", ")", ">", "50"], "query_toks_no_value": ["select", "country_code", "from", "players", "group", "by", "country_code", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the codes of countries with more than 50 players?", "question_toks": ["What", "are", "the", "codes", "of", "countries", "with", "more", "than", "50", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 50.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4829", "db_id": "aircraft", "query": "select t1.aircraft from aircraft as t1 join match as t2 on t1.aircraft_id = t2.winning_aircraft group by t2.winning_aircraft having count(*) >= 2", "query_toks": ["SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "List the names of aircrafts and that won matches at least twice.", "question_toks": ["List", "the", "names", "of", "aircrafts", "and", "that", "won", "matches", "at", "least", "twice", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4830", "db_id": "aircraft", "query": "select t1.aircraft from aircraft as t1 join match as t2 on t1.aircraft_id = t2.winning_aircraft group by t2.winning_aircraft having count(*) >= 2", "query_toks": ["SELECT", "T1.Aircraft", "FROM", "aircraft", "AS", "T1", "JOIN", "MATCH", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Winning_Aircraft", "GROUP", "BY", "T2.Winning_Aircraft", "HAVING", "COUNT", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "aircraft", "from", "aircraft", "as", "t1", "join", "match", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "winning_aircraft", "group", "by", "t2", ".", "winning_aircraft", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of all aircrafts that have won a match at least twice?", "question_toks": ["What", "are", "the", "names", "of", "all", "aircrafts", "that", "have", "won", "a", "match", "at", "least", "twice", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0505", "db_id": "allergy_1", "query": "select stuid from has_allergy group by stuid having count(*) >= 2", "query_toks": ["SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show all student IDs who have at least two allergies.", "question_toks": ["Show", "all", "student", "IDs", "who", "have", "at", "least", "two", "allergies", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0506", "db_id": "allergy_1", "query": "select stuid from has_allergy group by stuid having count(*) >= 2", "query_toks": ["SELECT", "StuID", "FROM", "Has_allergy", "GROUP", "BY", "StuID", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "stuid", "from", "has_allergy", "group", "by", "stuid", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the students ids of students who have more than one allergy?", "question_toks": ["What", "are", "the", "students", "ids", "of", "students", "who", "have", "more", "than", "one", "allergy", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6953", "db_id": "architecture", "query": "select t1.id , t1.name from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) >= 3", "query_toks": ["SELECT", "T1.id", ",", "T1.name", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", ">", "=", "3"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and names of the architects who built at least 3 bridges ?", "question_toks": ["What", "are", "the", "ids", "and", "names", "of", "the", "architects", "who", "built", "at", "least", "3", "bridges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HAVING_IN_SQL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6955", "db_id": "architecture", "query": "select t1.id , t1.name , t1.gender from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2 union select t1.id , t1.name , t1.gender from architect as t1 join mill as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 1", "query_toks": ["SELECT", "T1.id", ",", "T1.name", ",", "T1.gender", "FROM", "architect", "AS", "T1", "JOIN", "bridge", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", "=", "2", "UNION", "SELECT", "T1.id", ",", "T1.name", ",", "T1.gender", "FROM", "architect", "AS", "T1", "JOIN", "mill", "AS", "T2", "ON", "T1.id", "=", "T2.architect_id", "GROUP", "BY", "T1.id", "HAVING", "count", "(", "*", ")", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", "=", "value", "union", "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "mill", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the ids, names and genders of the architects who built two bridges or one mill?", "question_toks": ["What", "are", "the", "ids", ",", "names", "and", "genders", "of", "the", "architects", "who", "built", "two", "bridges", "or", "one", "mill", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_WITH_OR_IN_NL", "HAVING_IN_SQL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4947", "db_id": "soccer_2", "query": "select avg(enr) from college", "query_toks": ["SELECT", "avg", "(", "enr", ")", "FROM", "College"], "query_toks_no_value": ["select", "avg", "(", "enr", ")", "from", "college"], "question": "How many students, on average, does each college have enrolled?", "question_toks": ["How", "many", "students", ",", "on", "average", ",", "does", "each", "college", "have", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0439", "db_id": "allergy_1", "query": "select count(distinct allergy) from allergy_type", "query_toks": ["SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type"], "query_toks_no_value": ["select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type"], "question": "How many allergies are there?", "question_toks": ["How", "many", "allergies", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0440", "db_id": "allergy_1", "query": "select count(distinct allergy) from allergy_type", "query_toks": ["SELECT", "count", "(", "DISTINCT", "allergy", ")", "FROM", "Allergy_type"], "query_toks_no_value": ["select", "count", "(", "distinct", "allergy", ")", "from", "allergy_type"], "question": "How many allergy entries are there?", "question_toks": ["How", "many", "allergy", "entries", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0502", "db_id": "battle_death", "query": "select count(distinct result) from battle", "query_toks": ["SELECT", "count", "(", "DISTINCT", "RESULT", ")", "FROM", "battle"], "query_toks_no_value": ["select", "count", "(", "distinct", "result", ")", "from", "battle"], "question": "How many different results are there for the battles?", "question_toks": ["How", "many", "different", "results", "are", "there", "for", "the", "battles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1118", "db_id": "climbing", "query": "select count(distinct country) from climber", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Country", ")", "FROM", "climber"], "query_toks_no_value": ["select", "count", "(", "distinct", "country", ")", "from", "climber"], "question": "How many distinct countries are the climbers from?", "question_toks": ["How", "many", "distinct", "countries", "are", "the", "climbers", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 9, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4298", "db_id": "club_1", "query": "select count(distinct t2.position) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid where t1.clubname = \"bootup baltimore\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "t2.position", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "WHERE", "t1.clubname", "=", "``", "Bootup", "Baltimore", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "position", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "where", "t1", ".", "clubname", "=", "value"], "question": "How many different roles are there in the club \"Bootup Baltimore\"?", "question_toks": ["How", "many", "different", "roles", "are", "there", "in", "the", "club", "``", "Bootup", "Baltimore", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null]]}, "select": [false, [[3, [0, [0, 15, true], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Bootup Baltimore\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3227", "db_id": "college_1", "query": "select count(distinct class_code) from class", "query_toks": ["SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS"], "query_toks_no_value": ["select", "count", "(", "distinct", "class_code", ")", "from", "class"], "question": "How many different classes are there?", "question_toks": ["How", "many", "different", "classes", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3228", "db_id": "college_1", "query": "select count(distinct class_code) from class", "query_toks": ["SELECT", "count", "(", "DISTINCT", "class_code", ")", "FROM", "CLASS"], "query_toks_no_value": ["select", "count", "(", "distinct", "class_code", ")", "from", "class"], "question": "How many unique classes are offered?", "question_toks": ["How", "many", "unique", "classes", "are", "offered", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 1, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3231", "db_id": "college_1", "query": "select count(distinct dept_name) from department", "query_toks": ["SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department"], "query_toks_no_value": ["select", "count", "(", "distinct", "dept_name", ")", "from", "department"], "question": "How many departments does the college has?", "question_toks": ["How", "many", "departments", "does", "the", "college", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3232", "db_id": "college_1", "query": "select count(distinct dept_name) from department", "query_toks": ["SELECT", "count", "(", "DISTINCT", "dept_name", ")", "FROM", "department"], "query_toks_no_value": ["select", "count", "(", "distinct", "dept_name", ")", "from", "department"], "question": "How many different departments are there?", "question_toks": ["How", "many", "different", "departments", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 12, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0305", "db_id": "cre_Doc_Template_Mgt", "query": "select count(distinct template_id) from documents", "query_toks": ["SELECT", "count", "(", "DISTINCT", "template_id", ")", "FROM", "Documents"], "query_toks_no_value": ["select", "count", "(", "distinct", "template_id", ")", "from", "documents"], "question": "How many different templates do all document use?", "question_toks": ["How", "many", "different", "templates", "do", "all", "document", "use", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0966", "db_id": "dog_kennels", "query": "select count(distinct dog_id) from treatments", "query_toks": ["SELECT", "count", "(", "DISTINCT", "dog_id", ")", "FROM", "Treatments"], "query_toks_no_value": ["select", "count", "(", "distinct", "dog_id", ")", "from", "treatments"], "question": "How many dogs went through any treatments?", "question_toks": ["How", "many", "dogs", "went", "through", "any", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[3, [0, [0, 45, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0968", "db_id": "dog_kennels", "query": "select count(distinct professional_id) from treatments", "query_toks": ["SELECT", "count", "(", "DISTINCT", "professional_id", ")", "FROM", "Treatments"], "query_toks_no_value": ["select", "count", "(", "distinct", "professional_id", ")", "from", "treatments"], "question": "How many professionals have performed any treatment to dogs?", "question_toks": ["How", "many", "professionals", "have", "performed", "any", "treatment", "to", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[3, [0, [0, 46, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1501", "db_id": "imdb", "query": "select count ( distinct t1.name ) from cast as t2 join actor as t1 on t2.aid = t1.aid join movie as t3 on t3.mid = t2.msid where t3.title = \"saving private ryan\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t1.name", ")", "FROM", "CAST", "AS", "t2", "JOIN", "actor", "AS", "t1", "ON", "t2.aid", "=", "t1.aid", "JOIN", "movie", "AS", "t3", "ON", "t3.mid", "=", "t2.msid", "WHERE", "t3.title", "=", "``", "Saving", "Private", "Ryan", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t1", ".", "name", ")", "from", "cast", "as", "t2", "join", "actor", "as", "t1", "on", "t2", ".", "aid", "=", "t1", ".", "aid", "join", "movie", "as", "t3", "on", "t3", ".", "mid", "=", "t2", ".", "msid", "where", "t3", ".", "title", "=", "value"], "question": "How many actors are in the movie \" Saving Private Ryan \" ?", "question_toks": ["How", "many", "actors", "are", "in", "the", "movie", "``", "Saving", "Private", "Ryan", "``", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 43, false], null], "\"Saving Private Ryan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1502", "db_id": "imdb", "query": "select count ( distinct t3.title ) from director as t2 join directed_by as t1 on t2.did = t1.did join movie as t3 on t3.mid = t1.msid where t2.name = \"steven spielberg\";", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "t3.title", ")", "FROM", "director", "AS", "t2", "JOIN", "directed_by", "AS", "t1", "ON", "t2.did", "=", "t1.did", "JOIN", "movie", "AS", "t3", "ON", "t3.mid", "=", "t1.msid", "WHERE", "t2.name", "=", "``", "Steven", "Spielberg", "''", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3", ".", "title", ")", "from", "director", "as", "t2", "join", "directed_by", "as", "t1", "on", "t2", ".", "did", "=", "t1", ".", "did", "join", "movie", "as", "t3", "on", "t3", ".", "mid", "=", "t1", ".", "msid", "where", "t2", ".", "name", "=", "value"], "question": "How many movies did \" Steven Spielberg \" direct ?", "question_toks": ["How", "many", "movies", "did", "``", "Steven", "Spielberg", "``", "direct", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 8], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 36, false], null], "and", [false, 2, [0, [0, 42, false], null], [0, 35, false], null]]}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Steven Spielberg\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1503", "db_id": "imdb", "query": "select count ( distinct title ) from movie where release_year = 2013;", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "title", ")", "FROM", "movie", "WHERE", "release_year", "=", "2013", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "title", ")", "from", "movie", "where", "release_year", "=", "value"], "question": "How many movies were produced in the year 2013 ?", "question_toks": ["How", "many", "movies", "were", "produced", "in", "the", "year", "2013", "?"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[3, [0, [0, 43, true], null]]]], "where": [[false, 2, [0, [0, 44, false], null], 2013.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2580", "db_id": "inn_1", "query": "select count(*) from reservations where firstname = \"roy\" and lastname = \"sweazy\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many times does ROY SWEAZY has reserved a room.", "question_toks": ["How", "many", "times", "does", "ROY", "SWEAZY", "has", "reserved", "a", "room", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"ROY\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SWEAZY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2602", "db_id": "inn_1", "query": "select count(*) from reservations as t1 join rooms as t2 on t1.room = t2.roomid where t2.maxoccupancy = t1.adults + t1.kids;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "T2.maxOccupancy", "=", "T1.Adults", "+", "T1.Kids", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "t1", ".", "adults", "+", "t1", ".", "kids"], "question": "List how many times the number of people in the room reached the maximum occupancy of the room. The number of people include adults and kids.", "question_toks": ["List", "how", "many", "times", "the", "number", "of", "people", "in", "the", "room", "reached", "the", "maximum", "occupancy", "of", "the", "room", ".", "The", "number", "of", "people", "include", "adults", "and", "kids", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2603", "db_id": "inn_1", "query": "select count(*) from reservations as t1 join rooms as t2 on t1.room = t2.roomid where t2.maxoccupancy = t1.adults + t1.kids;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Reservations", "AS", "T1", "JOIN", "Rooms", "AS", "T2", "ON", "T1.Room", "=", "T2.RoomId", "WHERE", "T2.maxOccupancy", "=", "T1.Adults", "+", "T1.Kids", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "reservations", "as", "t1", "join", "rooms", "as", "t2", "on", "t1", ".", "room", "=", "t2", ".", "roomid", "where", "t2", ".", "maxoccupancy", "=", "t1", ".", "adults", "+", "t1", ".", "kids"], "question": "How many times the number of adults and kids staying in a room reached the maximum capacity of the room?", "question_toks": ["How", "many", "times", "the", "number", "of", "adults", "and", "kids", "staying", "in", "a", "room", "reached", "the", "maximum", "capacity", "of", "the", "room", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], [0, 15, false], null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2606", "db_id": "inn_1", "query": "select count(*) from rooms;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Rooms", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "rooms"], "question": "How many rooms are there?", "question_toks": ["How", "many", "rooms", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2609", "db_id": "inn_1", "query": "select count(*) from rooms where bedtype = \"king\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "rooms", "where", "bedtype", "=", "value"], "question": "How many rooms have a king bed?", "question_toks": ["How", "many", "rooms", "have", "a", "king", "bed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"King\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2619", "db_id": "inn_1", "query": "select decor , count(*) from rooms where bedtype = \"king\" group by decor;", "query_toks": ["SELECT", "decor", ",", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "bedType", "=", "``", "King", "''", "GROUP", "BY", "decor", ";"], "query_toks_no_value": ["select", "decor", ",", "count", "(", "*", ")", "from", "rooms", "where", "bedtype", "=", "value", "group", "by", "decor"], "question": "How many rooms have king beds? Report the number for each decor type.", "question_toks": ["How", "many", "rooms", "have", "king", "beds", "?", "Report", "the", "number", "for", "each", "decor", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"King\"", null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2625", "db_id": "inn_1", "query": "select decor , count(*) from rooms where baseprice > 120 group by decor;", "query_toks": ["SELECT", "decor", ",", "count", "(", "*", ")", "FROM", "Rooms", "WHERE", "basePrice", ">", "120", "GROUP", "BY", "decor", ";"], "query_toks_no_value": ["select", "decor", ",", "count", "(", "*", ")", "from", "rooms", "where", "baseprice", ">", "value", "group", "by", "decor"], "question": "How many rooms cost more than 120, for each different decor?", "question_toks": ["How", "many", "rooms", "cost", "more", "than", "120", ",", "for", "each", "different", "decor", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], 120.0, null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1052", "db_id": "match_season", "query": "select count(*) from country", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "country"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country"], "question": "How many countries are there in total?", "question_toks": ["How", "many", "countries", "are", "there", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0411", "db_id": "museum_visit", "query": "select count(*) from visitor where age < 30", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "visitor", "WHERE", "age", "<", "30"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "visitor", "where", "age", "<", "value"], "question": "How many visitors below age 30 are there?", "question_toks": ["How", "many", "visitors", "below", "age", "30", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "WHERE_MONO", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0428", "db_id": "museum_visit", "query": "select count(*) from museum where open_year > 2013 or open_year < 2008", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "museum", "WHERE", "open_year", ">", "2013", "OR", "open_year", "<", "2008"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "museum", "where", "open_year", ">", "value", "or", "open_year", "<", "value"], "question": "How many museums were opened after 2013 or before 2008?", "question_toks": ["How", "many", "museums", "were", "opened", "after", "2013", "or", "before", "2008", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2013.0, null], "or", [false, 4, [0, [0, 4, false], null], 2008.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "OR_IN_NL", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0647", "db_id": "poker_player", "query": "select count(*) from poker_player", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "poker_player"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "poker_player"], "question": "How many poker players are there?", "question_toks": ["How", "many", "poker", "players", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0674", "db_id": "poker_player", "query": "select nationality , count(*) from people group by nationality", "query_toks": ["SELECT", "Nationality", ",", "COUNT", "(", "*", ")", "FROM", "people", "GROUP", "BY", "Nationality"], "query_toks_no_value": ["select", "nationality", ",", "count", "(", "*", ")", "from", "people", "group", "by", "nationality"], "question": "How many people are there of each nationality?", "question_toks": ["How", "many", "people", "are", "there", "of", "each", "nationality", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2965", "db_id": "sakila_1", "query": "select t2.name , t1.category_id , count(*) from film_category as t1 join category as t2 on t1.category_id = t2.category_id group by t1.category_id", "query_toks": ["SELECT", "T2.name", ",", "T1.category_id", ",", "count", "(", "*", ")", "FROM", "film_category", "AS", "T1", "JOIN", "category", "AS", "T2", "ON", "T1.category_id", "=", "T2.category_id", "GROUP", "BY", "T1.category_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "category_id", ",", "count", "(", "*", ")", "from", "film_category", "as", "t1", "join", "category", "as", "t2", "on", "t1", ".", "category_id", "=", "t2", ".", "category_id", "group", "by", "t1", ".", "category_id"], "question": "What are the names and ids of the different categories, and how many films are in each?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "the", "different", "categories", ",", "and", "how", "many", "films", "are", "in", "each", "?"], "sql": {"from": {"table_units": [["table_unit", 8], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 49, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 49, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 49, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5413", "db_id": "shop_membership", "query": "select city , count(*) from branch where open_year < 2010 group by city", "query_toks": ["SELECT", "city", ",", "count", "(", "*", ")", "FROM", "branch", "WHERE", "open_year", "<", "2010", "GROUP", "BY", "city"], "query_toks_no_value": ["select", "city", ",", "count", "(", "*", ")", "from", "branch", "where", "open_year", "<", "value", "group", "by", "city"], "question": "For each city, how many branches opened before 2010?", "question_toks": ["For", "each", "city", ",", "how", "many", "branches", "opened", "before", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 8, false], null], 2010.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1302", "db_id": "soccer_1", "query": "select preferred_foot , count(*) from player_attributes where overall_rating > 80 group by preferred_foot", "query_toks": ["SELECT", "preferred_foot", ",", "count", "(", "*", ")", "FROM", "Player_Attributes", "WHERE", "overall_rating", ">", "80", "GROUP", "BY", "preferred_foot"], "query_toks_no_value": ["select", "preferred_foot", ",", "count", "(", "*", ")", "from", "player_attributes", "where", "overall_rating", ">", "value", "group", "by", "preferred_foot"], "question": "Of all players with an overall rating greater than 80, how many are right-footed and left-footed?", "question_toks": ["Of", "all", "players", "with", "an", "overall", "rating", "greater", "than", "80", ",", "how", "many", "are", "right-footed", "and", "left-footed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 80.0, null]], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1212", "db_id": "yelp", "query": "select review_count from business where name = \"acacia cafe\";", "query_toks": ["SELECT", "review_count", "FROM", "business", "WHERE", "name", "=", "``", "Acacia", "Cafe", "''", ";"], "query_toks_no_value": ["select", "review_count", "from", "business", "where", "name", "=", "value"], "question": "How many reviews does \" Acacia Cafe \" have ?", "question_toks": ["How", "many", "reviews", "does", "``", "Acacia", "Cafe", "``", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Acacia Cafe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6715", "db_id": "activity_1", "query": "select count(*) from faculty", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty"], "question": "How many faculty do we have?", "question_toks": ["How", "many", "faculty", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6727", "db_id": "activity_1", "query": "select count(*) from faculty where sex = 'f' and rank = \"professor\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'", "AND", "Rank", "=", "``", "Professor", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "where", "sex", "=", "value", "and", "rank", "=", "value"], "question": "How many female Professors do we have?", "question_toks": ["How", "many", "female", "Professors", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"Professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4797", "db_id": "aircraft", "query": "select count(*) from aircraft", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "aircraft"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "aircraft"], "question": "How many aircrafts are there?", "question_toks": ["How", "many", "aircrafts", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0451", "db_id": "allergy_1", "query": "select count(*) from allergy_type where allergytype = \"animal\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "animal", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "allergy_type", "where", "allergytype", "=", "value"], "question": "How many allergies have type animal?", "question_toks": ["How", "many", "allergies", "have", "type", "animal", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"animal\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0473", "db_id": "allergy_1", "query": "select count(*) from student where age = 18", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "age", "=", "18"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "age", "=", "value"], "question": "How many students are age 18?", "question_toks": ["How", "many", "students", "are", "age", "18", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 18.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1249", "db_id": "apartment_rentals", "query": "select \tbooking_status_code , count(*) from apartment_bookings group by booking_status_code", "query_toks": ["SELECT", "booking_status_code", ",", "COUNT", "(", "*", ")", "FROM", "Apartment_Bookings", "GROUP", "BY", "booking_status_code"], "query_toks_no_value": ["select", "booking_status_code", ",", "count", "(", "*", ")", "from", "apartment_bookings", "group", "by", "booking_status_code"], "question": "How many bookings does each booking status have? List the booking status code and the number of corresponding bookings.", "question_toks": ["How", "many", "bookings", "does", "each", "booking", "status", "have", "?", "List", "the", "booking", "status", "code", "and", "the", "number", "of", "corresponding", "bookings", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 25, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1268", "db_id": "apartment_rentals", "query": "select count(*) from apartments where apt_id not in (select apt_id from apartment_facilities)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Apartments", "WHERE", "apt_id", "NOT", "IN", "(", "SELECT", "apt_id", "FROM", "Apartment_Facilities", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "apartments", "where", "apt_id", "not", "in", "(", "select", "apt_id", "from", "apartment_facilities", ")"], "question": "How many apartments do not have any facility?", "question_toks": ["How", "many", "apartments", "do", "not", "have", "any", "facility", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6945", "db_id": "architecture", "query": "select count(*) from architect where gender = 'female'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "architect", "WHERE", "gender", "=", "'female", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "architect", "where", "gender", "=", "value"], "question": "How many architects are female?", "question_toks": ["How", "many", "architects", "are", "female", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"female\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3705", "db_id": "baseball_1", "query": "select count(*) from team_franchise where active = 'y';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "team_franchise", "WHERE", "active", "=", "'Y", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "team_franchise", "where", "active", "=", "value"], "question": "How many team franchises are active, with active value 'Y'?", "question_toks": ["How", "many", "team", "franchises", "are", "active", ",", "with", "active", "value", "'Y", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 24]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 341, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0491", "db_id": "battle_death", "query": "select count(*) from ship where disposition_of_ship = 'captured'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "ship", "WHERE", "disposition_of_ship", "=", "'Captured", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "ship", "where", "disposition_of_ship", "=", "value"], "question": "How many ships ended up being 'Captured'?", "question_toks": ["How", "many", "ships", "ended", "up", "being", "'Captured", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Captured\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "SYNONYMS", "_HOW_MANY_COUNT", "_REFORMULATION", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0503", "db_id": "battle_death", "query": "select count(*) from battle where id not in ( select lost_in_battle from ship where tonnage = '225' );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "battle", "WHERE", "id", "NOT", "IN", "(", "SELECT", "lost_in_battle", "FROM", "ship", "WHERE", "tonnage", "=", "'225", "'", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "battle", "where", "id", "not", "in", "(", "select", "lost_in_battle", "from", "ship", "where", "tonnage", "=", "value", ")"], "question": "How many battles did not lose any ship with tonnage '225'?", "question_toks": ["How", "many", "battles", "did", "not", "lose", "any", "ship", "with", "tonnage", "'225", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"225\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0092", "db_id": "car_1", "query": "select count(*) from countries;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "COUNTRIES", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries"], "question": "How many countries exist?", "question_toks": ["How", "many", "countries", "exist", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0093", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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"], "question": "How many models does each car maker produce? List maker full name, id and the number.", "question_toks": ["How", "many", "models", "does", "each", "car", "maker", "produce", "?", "List", "maker", "full", "name", ",", "id", "and", "the", "number", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0094", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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"], "question": "What is the full name of each car maker, along with its id and how many models it produces?", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "car", "maker", ",", "along", "with", "its", "id", "and", "how", "many", "models", "it", "produces", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0109", "db_id": "car_1", "query": "select count(*) , t2.fullname from model_list as t1 join car_makers as t2 on t1.maker = t2.id group by t2.id;", "query_toks": ["select", "count", "(", "*", ")", ",", "t2.fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.maker", "=", "t2.id", "group", "by", "t2.id", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "t2", ".", "fullname", "from", "model_list", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "maker", "=", "t2", ".", "id", "group", "by", "t2", ".", "id"], "question": "How many car models are produced by each maker ? Only list the count and the maker full name .", "question_toks": ["How", "many", "car", "models", "are", "produced", "by", "each", "maker", "?", "Only", "list", "the", "count", "and", "the", "maker", "full", "name", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0161", "db_id": "car_1", "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "query_toks": ["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value"], "question": "How many countries has more than 2 car makers ?", "question_toks": ["How", "many", "countries", "has", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0163", "db_id": "car_1", "query": "select count(*) from cars_data where cylinders > 6;", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "Cylinders", ">", "6", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "cars_data", "where", "cylinders", ">", "value"], "question": "How many cars has over 6 cylinders?", "question_toks": ["How", "many", "cars", "has", "over", "6", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 6.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0807", "db_id": "chinook_1", "query": "select count(*) from album", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "ALBUM"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "album"], "question": "How many albums are there?", "question_toks": ["How", "many", "albums", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0841", "db_id": "chinook_1", "query": "select count(*) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"rock\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Rock", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value"], "question": "How many tracks belong to rock genre?", "question_toks": ["How", "many", "tracks", "belong", "to", "rock", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Rock\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1110", "db_id": "climbing", "query": "select count(*) from climber", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "climber"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "climber"], "question": "How many climbers are there?", "question_toks": ["How", "many", "climbers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4250", "db_id": "club_1", "query": "select count(*) from club", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club"], "question": "How many clubs are there?", "question_toks": ["How", "many", "clubs", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4254", "db_id": "club_1", "query": "select count(*) from student", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student"], "question": "How many students are there?", "question_toks": ["How", "many", "students", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4269", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\" and t3.lname = \"kim\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Tracy", "''", "AND", "t3.lname", "=", "``", "Kim", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value"], "question": "For how many clubs is \"Tracy Kim\" a member?", "question_toks": ["For", "how", "many", "clubs", "is", "``", "Tracy", "Kim", "''", "a", "member", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Tracy\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Kim\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4292", "db_id": "club_1", "query": "select count(*) from club where clublocation = \"hhh\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "WHERE", "clublocation", "=", "``", "HHH", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "where", "clublocation", "=", "value"], "question": "How many clubs are located at \"HHH\"?", "question_toks": ["How", "many", "clubs", "are", "located", "at", "``", "HHH", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"HHH\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3287", "db_id": "college_1", "query": "select count(*) from professor where prof_high_degree = 'ph.d.' or prof_high_degree = 'ma'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'", "OR", "prof_high_degree", "=", "'MA", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "professor", "where", "prof_high_degree", "=", "value", "or", "prof_high_degree", "=", "value"], "question": "How many professors who has a either Ph.D. or MA degree?", "question_toks": ["How", "many", "professors", "who", "has", "a", "either", "Ph.D.", "or", "MA", "degree", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"Ph.D.\"", null], "or", [false, 2, [0, [0, 31, false], null], "\"MA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3288", "db_id": "college_1", "query": "select count(*) from professor where prof_high_degree = 'ph.d.' or prof_high_degree = 'ma'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "professor", "WHERE", "prof_high_degree", "=", "'Ph.D", ".", "'", "OR", "prof_high_degree", "=", "'MA", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "professor", "where", "prof_high_degree", "=", "value", "or", "prof_high_degree", "=", "value"], "question": "How many professors attained either Ph.D. or Masters degrees?", "question_toks": ["How", "many", "professors", "attained", "either", "Ph.D.", "or", "Masters", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"Ph.D.\"", null], "or", [false, 2, [0, [0, 31, false], null], "\"MA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0000", "db_id": "concert_singer", "query": "select count(*) from singer", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "singer"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "singer"], "question": "How many singers do we have?", "question_toks": ["How", "many", "singers", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0020", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 or year = 2015", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "concert", "WHERE", "YEAR", "=", "2014", "OR", "YEAR", "=", "2015"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "concert", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "How many concerts are there in year 2014 or 2015?", "question_toks": ["How", "many", "concerts", "are", "there", "in", "year", "2014", "or", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null], "or", [false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "OR_IN_NL", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0021", "db_id": "concert_singer", "query": "select count(*) from concert where year = 2014 or year = 2015", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "concert", "WHERE", "YEAR", "=", "2014", "OR", "YEAR", "=", "2015"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "concert", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "How many concerts occurred in 2014 or 2015?", "question_toks": ["How", "many", "concerts", "occurred", "in", "2014", "or", "2015", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null], "or", [false, 2, [0, [0, 19, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "OR_IN_NL", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0023", "db_id": "concert_singer", "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", "query_toks": ["SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "concert", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.stadium_id", "GROUP", "BY", "T1.stadium_id"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "group", "by", "t1", ".", "stadium_id"], "question": "For each stadium, how many concerts play there?", "question_toks": ["For", "each", "stadium", ",", "how", "many", "concerts", "play", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0381", "db_id": "course_teach", "query": "select count(*) from teacher", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "teacher"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "teacher"], "question": "How many teachers are there?", "question_toks": ["How", "many", "teachers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0297", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents"], "question": "How many documents do we have?", "question_toks": ["How", "many", "documents", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0307", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'ppt'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.Template_ID", "=", "T2.Template_ID", "WHERE", "T2.Template_Type_Code", "=", "'PPT", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "template_type_code", "=", "value"], "question": "How many documents are using the template with type code 'PPT'?", "question_toks": ["How", "many", "documents", "are", "using", "the", "template", "with", "type", "code", "'PPT", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"PPT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0310", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id , count(*) from documents group by template_id", "query_toks": ["SELECT", "template_id", ",", "count", "(", "*", ")", "FROM", "Documents", "GROUP", "BY", "template_id"], "query_toks_no_value": ["select", "template_id", ",", "count", "(", "*", ")", "from", "documents", "group", "by", "template_id"], "question": "What are all different template ids used for documents, and how many times were each of them used?", "question_toks": ["What", "are", "all", "different", "template", "ids", "used", "for", "documents", ",", "and", "how", "many", "times", "were", "each", "of", "them", "used", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0317", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from templates", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Templates"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "templates"], "question": "How many templates do we have?", "question_toks": ["How", "many", "templates", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0325", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from templates where template_type_code = \"cv\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "CV", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "templates", "where", "template_type_code", "=", "value"], "question": "How many templates have template type code CV?", "question_toks": ["How", "many", "templates", "have", "template", "type", "code", "CV", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"CV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2364", "db_id": "csu_1", "query": "select count(*) from campuses where county = \"los angeles\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "campuses", "where", "county", "=", "value"], "question": "How many campuses are there in Los Angeles county?", "question_toks": ["How", "many", "campuses", "are", "there", "in", "Los", "Angeles", "county", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2365", "db_id": "csu_1", "query": "select count(*) from campuses where county = \"los angeles\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "campuses", "WHERE", "county", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "campuses", "where", "county", "=", "value"], "question": "How many campuses exist are in the county of LA?", "question_toks": ["How", "many", "campuses", "exist", "are", "in", "the", "county", "of", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2392", "db_id": "csu_1", "query": "select count(*) from campuses", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "campuses"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "campuses"], "question": "How many CSU campuses are there?", "question_toks": ["How", "many", "CSU", "campuses", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6962", "db_id": "culture_company", "query": "select count(*) from book_club", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "book_club"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "book_club"], "question": "How many book clubs are there?", "question_toks": ["How", "many", "book", "clubs", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6971", "db_id": "culture_company", "query": "select publisher , count(*) from book_club group by publisher", "query_toks": ["SELECT", "publisher", ",", "count", "(", "*", ")", "FROM", "book_club", "GROUP", "BY", "publisher"], "query_toks_no_value": ["select", "publisher", ",", "count", "(", "*", ")", "from", "book_club", "group", "by", "publisher"], "question": "How many books are there for each publisher?", "question_toks": ["How", "many", "books", "are", "there", "for", "each", "publisher", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5768", "db_id": "customer_complaints", "query": "select count(*) from customers", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "customers"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers"], "question": "How many customers are there?", "question_toks": ["How", "many", "customers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5775", "db_id": "customer_complaints", "query": "select t1.product_name , count(*) from products as t1 join complaints as t2 on t1.product_id = t2.product_id group by t1.product_name", "query_toks": ["SELECT", "t1.product_name", ",", "count", "(", "*", ")", "FROM", "products", "AS", "t1", "JOIN", "complaints", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "GROUP", "BY", "t1.product_name"], "query_toks_no_value": ["select", "t1", ".", "product_name", ",", "count", "(", "*", ")", "from", "products", "as", "t1", "join", "complaints", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "group", "by", "t1", ".", "product_name"], "question": "What are all the different product names, and how many complains has each received?", "question_toks": ["What", "are", "all", "the", "different", "product", "names", ",", "and", "how", "many", "complains", "has", "each", "received", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 24, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1576", "db_id": "customers_and_invoices", "query": "select gender , count(*) from customers group by gender", "query_toks": ["SELECT", "gender", ",", "count", "(", "*", ")", "FROM", "Customers", "GROUP", "BY", "gender"], "query_toks_no_value": ["select", "gender", ",", "count", "(", "*", ")", "from", "customers", "group", "by", "gender"], "question": "How many customers are there of each gender?", "question_toks": ["How", "many", "customers", "are", "there", "of", "each", "gender", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4620", "db_id": "customers_campaigns_ecommerce", "query": "select count(*) from premises", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "premises"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "premises"], "question": "How many premises are there?", "question_toks": ["How", "many", "premises", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0667", "db_id": "customers_card_transactions", "query": "select count(*) from accounts", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Accounts"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "accounts"], "question": "How many accounts do we have?", "question_toks": ["How", "many", "accounts", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0675", "db_id": "customers_card_transactions", "query": "select count(*) from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.customer_first_name = \"art\" and t2.customer_last_name = \"turcotte\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Accounts", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.customer_first_name", "=", "``", "Art", "''", "AND", "T2.customer_last_name", "=", "``", "Turcotte", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "customer_first_name", "=", "value", "and", "t2", ".", "customer_last_name", "=", "value"], "question": "How many accounts does the customer with first name Art and last name Turcotte have?", "question_toks": ["How", "many", "accounts", "does", "the", "customer", "with", "first", "name", "Art", "and", "last", "name", "Turcotte", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Art\"", null], "and", [false, 2, [0, [0, 7, false], null], "\"Turcotte\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0974", "db_id": "dog_kennels", "query": "select count(*) from dogs where age < ( select avg(age) from dogs )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Dogs", "WHERE", "age", "<", "(", "SELECT", "avg", "(", "age", ")", "FROM", "Dogs", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dogs", "where", "age", "<", "(", "select", "avg", "(", "age", ")", "from", "dogs", ")"], "question": "How many dogs have an age below the average?", "question_toks": ["How", "many", "dogs", "have", "an", "age", "below", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0978", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Dogs", "WHERE", "dog_id", "NOT", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "How many dogs have not gone through any treatment?", "question_toks": ["How", "many", "dogs", "have", "not", "gone", "through", "any", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0980", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "question": "How many owners temporarily do not have any dogs?", "question_toks": ["How", "many", "owners", "temporarily", "do", "not", "have", "any", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0982", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "question": "How many professionals did not operate any treatment on dogs?", "question_toks": ["How", "many", "professionals", "did", "not", "operate", "any", "treatment", "on", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "_NEGATION_ANY", "_ANY_REFORMULATION", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5672", "db_id": "dorm_1", "query": "select count(*) from student where sex = 'f' and age < 25", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "age", "<", "25"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "How many female students (sex is F) whose age is below 25?", "question_toks": ["How", "many", "female", "students", "(", "sex", "is", "F", ")", "whose", "age", "is", "below", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 4, [0, [0, 4, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5673", "db_id": "dorm_1", "query": "select count(*) from student where sex = 'f' and age < 25", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "age", "<", "25"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "How many girl students who are younger than 25?", "question_toks": ["How", "many", "girl", "students", "who", "are", "younger", "than", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 4, [0, [0, 4, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5678", "db_id": "dorm_1", "query": "select count(*) from dorm", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "dorm"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dorm"], "question": "How many dorms are there?", "question_toks": ["How", "many", "dorms", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5679", "db_id": "dorm_1", "query": "select count(*) from dorm", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "dorm"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dorm"], "question": "How many dorms are in the database?", "question_toks": ["How", "many", "dorms", "are", "in", "the", "database", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5721", "db_id": "dorm_1", "query": "select count(*) , sum(student_capacity) , gender from dorm group by gender", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "sum", "(", "student_capacity", ")", ",", "gender", "FROM", "dorm", "GROUP", "BY", "gender"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "sum", "(", "student_capacity", ")", ",", "gender", "from", "dorm", "group", "by", "gender"], "question": "How many dorms are there and what is the total capacity for each gender?", "question_toks": ["How", "many", "dorms", "are", "there", "and", "what", "is", "the", "total", "capacity", "for", "each", "gender", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [4, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 12, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6693", "db_id": "driving_school", "query": "select count(*) from customers where customer_id not in ( select customer_id from customer_payments );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")"], "question": "How many customers have no payment histories?", "question_toks": ["How", "many", "customers", "have", "no", "payment", "histories", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6697", "db_id": "driving_school", "query": "select payment_method_code , count(*) from customer_payments group by payment_method_code;", "query_toks": ["SELECT", "payment_method_code", ",", "count", "(", "*", ")", "FROM", "Customer_Payments", "GROUP", "BY", "payment_method_code", ";"], "query_toks_no_value": ["select", "payment_method_code", ",", "count", "(", "*", ")", "from", "customer_payments", "group", "by", "payment_method_code"], "question": "For each payment method, how many payments were made?", "question_toks": ["For", "each", "payment", "method", ",", "how", "many", "payments", "were", "made", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 31, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6698", "db_id": "driving_school", "query": "select count(*) from lessons where lesson_status_code = \"cancelled\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Lessons", "WHERE", "lesson_status_code", "=", "``", "Cancelled", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "lessons", "where", "lesson_status_code", "=", "value"], "question": "How many lessons were in cancelled state?", "question_toks": ["How", "many", "lessons", "were", "in", "cancelled", "state", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Cancelled\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2288", "db_id": "entrepreneur", "query": "select investor , count(*) from entrepreneur group by investor", "query_toks": ["SELECT", "Investor", ",", "COUNT", "(", "*", ")", "FROM", "entrepreneur", "GROUP", "BY", "Investor"], "query_toks_no_value": ["select", "investor", ",", "count", "(", "*", ")", "from", "entrepreneur", "group", "by", "investor"], "question": "How many entrepreneurs correspond to each investor?", "question_toks": ["How", "many", "entrepreneurs", "correspond", "to", "each", "investor", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0381", "db_id": "flight_1", "query": "select count(*) from flight", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Flight"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flight"], "question": "How many flights do we have?", "question_toks": ["How", "many", "flights", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0404", "db_id": "flight_1", "query": "select origin , count(*) from flight group by origin", "query_toks": ["SELECT", "origin", ",", "count", "(", "*", ")", "FROM", "Flight", "GROUP", "BY", "origin"], "query_toks_no_value": ["select", "origin", ",", "count", "(", "*", ")", "from", "flight", "group", "by", "origin"], "question": "For each origin, how many flights came from there?", "question_toks": ["For", "each", "origin", ",", "how", "many", "flights", "came", "from", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0416", "db_id": "flight_1", "query": "select t2.name , count(*) from flight as t1 join aircraft as t2 on t1.aid = t2.aid group by t1.aid", "query_toks": ["SELECT", "T2.name", ",", "count", "(", "*", ")", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "GROUP", "BY", "T1.aid"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "count", "(", "*", ")", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "group", "by", "t1", ".", "aid"], "question": "What is the name of each aircraft and how many flights does each one complete?", "question_toks": ["What", "is", "the", "name", "of", "each", "aircraft", "and", "how", "many", "flights", "does", "each", "one", "complete", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0187", "db_id": "flight_2", "query": "select count(*) from airlines", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines"], "question": "How many airlines do we have?", "question_toks": ["How", "many", "airlines", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0189", "db_id": "flight_2", "query": "select count(*) from airports", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRPORTS"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airports"], "question": "How many airports do we have?", "question_toks": ["How", "many", "airports", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0191", "db_id": "flight_2", "query": "select count(*) from flights", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights"], "question": "How many flights do we have?", "question_toks": ["How", "many", "flights", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0195", "db_id": "flight_2", "query": "select count(*) from airlines where country = \"usa\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value"], "question": "How many airlines are from USA?", "question_toks": ["How", "many", "airlines", "are", "from", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "WHERE_MONO", "_HOW_MANY_COUNT", "VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0203", "db_id": "flight_2", "query": "select count(*) from flights where sourceairport = \"apg\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "SourceAirport", "=", "``", "APG", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "where", "sourceairport", "=", "value"], "question": "How many flights depart from 'APG'?", "question_toks": ["How", "many", "flights", "depart", "from", "'APG", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0205", "db_id": "flight_2", "query": "select count(*) from flights where destairport = \"ato\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "WHERE", "DestAirport", "=", "``", "ATO", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "where", "destairport", "=", "value"], "question": "How many flights have destination ATO?", "question_toks": ["How", "many", "flights", "have", "destination", "ATO", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"ATO\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0207", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "How many flights depart from City Aberdeen?", "question_toks": ["How", "many", "flights", "depart", "from", "City", "Aberdeen", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT", "DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6012", "db_id": "game_1", "query": "select sportname , count(*) from sportsinfo group by sportname", "query_toks": ["SELECT", "sportname", ",", "count", "(", "*", ")", "FROM", "Sportsinfo", "GROUP", "BY", "sportname"], "query_toks_no_value": ["select", "sportname", ",", "count", "(", "*", ")", "from", "sportsinfo", "group", "by", "sportname"], "question": "How many students play each sport?", "question_toks": ["How", "many", "students", "play", "each", "sport", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0081", "db_id": "geo", "query": "select count ( river_name ) from river where traverse = \"idaho\";", "query_toks": ["SELECT", "COUNT", "(", "river_name", ")", "FROM", "river", "WHERE", "traverse", "=", "``", "idaho", "''", ";"], "query_toks_no_value": ["select", "count", "(", "river_name", ")", "from", "river", "where", "traverse", "=", "value"], "question": "how many rivers are in idaho", "question_toks": ["how", "many", "rivers", "are", "in", "idaho"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"idaho\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0476", "db_id": "geo", "query": "select count ( state_name ) from city where city_name = \"springfield\";", "query_toks": ["SELECT", "COUNT", "(", "state_name", ")", "FROM", "city", "WHERE", "city_name", "=", "``", "springfield", "''", ";"], "query_toks_no_value": ["select", "count", "(", "state_name", ")", "from", "city", "where", "city_name", "=", "value"], "question": "how many states have a city named springfield", "question_toks": ["how", "many", "states", "have", "a", "city", "named", "springfield"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"springfield\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0482", "db_id": "geo", "query": "select count ( city_name ) from city where population > 150000 and state_name = \"texas\";", "query_toks": ["SELECT", "COUNT", "(", "city_name", ")", "FROM", "city", "WHERE", "population", ">", "150000", "AND", "state_name", "=", "``", "texas", "''", ";"], "query_toks_no_value": ["select", "count", "(", "city_name", ")", "from", "city", "where", "population", ">", "value", "and", "state_name", "=", "value"], "question": "how many major cities are in texas", "question_toks": ["how", "many", "major", "cities", "are", "in", "texas"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 150000.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3526", "db_id": "hr_1", "query": "select department_name , count(*) from employees as t1 join departments as t2 on t1.department_id = t2.department_id group by department_name", "query_toks": ["SELECT", "department_name", ",", "COUNT", "(", "*", ")", "FROM", "employees", "AS", "T1", "JOIN", "departments", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "GROUP", "BY", "department_name"], "query_toks_no_value": ["select", "department_name", ",", "count", "(", "*", ")", "from", "employees", "as", "t1", "join", "departments", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "group", "by", "department_name"], "question": "What are the department names and how many employees work in each of them?", "question_toks": ["What", "are", "the", "department", "names", "and", "how", "many", "employees", "work", "in", "each", "of", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 24, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 7, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2860", "db_id": "icfp_1", "query": "select count(*) from inst", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "inst"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "inst"], "question": "How many institutions are there?", "question_toks": ["How", "many", "institutions", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2862", "db_id": "icfp_1", "query": "select count(*) from papers", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "papers"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "papers"], "question": "How many papers are published in total?", "question_toks": ["How", "many", "papers", "are", "published", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1000", "db_id": "singer", "query": "select count(*) from singer", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "singer"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "singer"], "question": "How many singers are there?", "question_toks": ["How", "many", "singers", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1013", "db_id": "singer", "query": "select citizenship , count(*) from singer group by citizenship", "query_toks": ["SELECT", "Citizenship", ",", "COUNT", "(", "*", ")", "FROM", "singer", "GROUP", "BY", "Citizenship"], "query_toks_no_value": ["select", "citizenship", ",", "count", "(", "*", ")", "from", "singer", "group", "by", "citizenship"], "question": "For each citizenship, how many singers are from that country?", "question_toks": ["For", "each", "citizenship", ",", "how", "many", "singers", "are", "from", "that", "country", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 5, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2630", "db_id": "inn_1", "query": "select count(distinct bedtype) from rooms;", "query_toks": ["SELECT", "count", "(", "DISTINCT", "bedType", ")", "FROM", "Rooms", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "bedtype", ")", "from", "rooms"], "question": "How many different types of beds are there?", "question_toks": ["How", "many", "different", "types", "of", "beds", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 4, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3027", "db_id": "loan_1", "query": "select count(distinct city) from bank", "query_toks": ["SELECT", "count", "(", "DISTINCT", "city", ")", "FROM", "bank"], "query_toks_no_value": ["select", "count", "(", "distinct", "city", ")", "from", "bank"], "question": "In how many different cities are banks located?", "question_toks": ["In", "how", "many", "different", "cities", "are", "banks", "located", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 4, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0685", "db_id": "poker_player", "query": "select count(distinct nationality) from people", "query_toks": ["SELECT", "count", "(", "DISTINCT", "Nationality", ")", "FROM", "people"], "query_toks_no_value": ["select", "count", "(", "distinct", "nationality", ")", "from", "people"], "question": "How many distinct nationalities are there?", "question_toks": ["How", "many", "distinct", "nationalities", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 8, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1968", "db_id": "products_for_hire", "query": "select count(distinct product_type_code) from products_for_hire", "query_toks": ["SELECT", "count", "(", "DISTINCT", "product_type_code", ")", "FROM", "products_for_hire"], "query_toks_no_value": ["select", "count", "(", "distinct", "product_type_code", ")", "from", "products_for_hire"], "question": "How many different product types are there?", "question_toks": ["How", "many", "different", "product", "types", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5556", "db_id": "products_gen_characteristics", "query": "select count(distinct t3.characteristic_name) from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t1.product_name = \"sesame\"", "query_toks": ["SELECT", "count", "(", "DISTINCT", "t3.characteristic_name", ")", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t3", ".", "characteristic_name", ")", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value"], "question": "How many distinct characteristic names does the product \"cumin\" have?", "question_toks": ["How", "many", "distinct", "characteristic", "names", "does", "the", "product", "``", "cumin", "''", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null]]}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"sesame\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2924", "db_id": "sakila_1", "query": "select count(distinct last_name) from actor", "query_toks": ["SELECT", "count", "(", "DISTINCT", "last_name", ")", "FROM", "actor"], "query_toks_no_value": ["select", "count", "(", "distinct", "last_name", ")", "from", "actor"], "question": "How many different last names do the actors and actresses have?", "question_toks": ["How", "many", "different", "last", "names", "do", "the", "actors", "and", "actresses", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2970", "db_id": "sakila_1", "query": "select count(distinct language_id) from film", "query_toks": ["SELECT", "count", "(", "DISTINCT", "language_id", ")", "FROM", "film"], "query_toks_no_value": ["select", "count", "(", "distinct", "language_id", ")", "from", "film"], "question": "How many languages are in these films?", "question_toks": ["How", "many", "languages", "are", "in", "these", "films", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 36, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0518", "db_id": "student_transcripts_tracking", "query": "select count(distinct department_id) from degree_programs", "query_toks": ["SELECT", "count", "(", "DISTINCT", "department_id", ")", "FROM", "Degree_Programs"], "query_toks_no_value": ["select", "count", "(", "distinct", "department_id", ")", "from", "degree_programs"], "question": "How many different departments offer degrees?", "question_toks": ["How", "many", "different", "departments", "offer", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 19, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0519", "db_id": "student_transcripts_tracking", "query": "select count(distinct degree_summary_name) from degree_programs", "query_toks": ["SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs"], "query_toks_no_value": ["select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs"], "question": "How many different degree names are offered?", "question_toks": ["How", "many", "different", "degree", "names", "are", "offered", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 20, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0520", "db_id": "student_transcripts_tracking", "query": "select count(distinct degree_summary_name) from degree_programs", "query_toks": ["SELECT", "count", "(", "DISTINCT", "degree_summary_name", ")", "FROM", "Degree_Programs"], "query_toks_no_value": ["select", "count", "(", "distinct", "degree_summary_name", ")", "from", "degree_programs"], "question": "How many different degrees are offered?", "question_toks": ["How", "many", "different", "degrees", "are", "offered", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 20, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5414", "db_id": "shop_membership", "query": "select count(distinct level) from member", "query_toks": ["SELECT", "count", "(", "DISTINCT", "LEVEL", ")", "FROM", "member"], "query_toks_no_value": ["select", "count", "(", "distinct", "level", ")", "from", "member"], "question": "How many different levels do members have?", "question_toks": ["How", "many", "different", "levels", "do", "members", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_COUNT_DISTINCT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2637", "db_id": "inn_1", "query": "select count(*) from rooms where roomid not in (select distinct room from reservations)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "rooms", "WHERE", "roomid", "NOT", "IN", "(", "SELECT", "DISTINCT", "room", "FROM", "reservations", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "rooms", "where", "roomid", "not", "in", "(", "select", "distinct", "room", "from", "reservations", ")"], "question": "How many rooms have not had any reservation yet?", "question_toks": ["How", "many", "rooms", "have", "not", "had", "any", "reservation", "yet", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_NEGATION_ANY", "_HOW_MANY_COUNT_DISTINCT", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2578", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\" and lastname = \"sweazy\";", "query_toks": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "How many kids stay in the rooms reserved by ROY SWEAZY?", "question_toks": ["How", "many", "kids", "stay", "in", "the", "rooms", "reserved", "by", "ROY", "SWEAZY", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"ROY\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SWEAZY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3682", "db_id": "baseball_1", "query": "select salary from salary where year = 2001 order by salary desc limit 3;", "query_toks": ["SELECT", "salary", "FROM", "salary", "WHERE", "YEAR", "=", "2001", "ORDER", "BY", "salary", "DESC", "LIMIT", "3", ";"], "query_toks_no_value": ["select", "salary", "from", "salary", "where", "year", "=", "value", "order", "by", "salary", "desc", "limit", "value"], "question": "How much salary did the top 3 well-paid players get in 2001?", "question_toks": ["How", "much", "salary", "did", "the", "top", "3", "well-paid", "players", "get", "in", "2001", "?"], "sql": {"from": {"table_units": [["table_unit", 20]], "conds": []}, "select": [false, [[0, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 272, false], null], 2001.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 276, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0112", "db_id": "car_1", "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)';", "query_toks": ["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", ")", "'", ";"], "query_toks_no_value": ["select", "t1", ".", "accelerate", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "make", "=", "value"], "question": "How much does the car accelerate that makes amc hornet sportabout (sw)?", "question_toks": ["How", "much", "does", "the", "car", "accelerate", "that", "makes", "amc", "hornet", "sportabout", "(", "sw", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"amc hornet sportabout (sw)\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING", "DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0157", "db_id": "car_1", "query": "select t1.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;", "query_toks": ["SELECT", "T1.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", ";"], "query_toks_no_value": ["select", "t1", ".", "cylinders", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "model", "=", "value", "order", "by", "t1", ".", "accelerate", "asc", "limit", "value"], "question": "For model volvo, how many cylinders does the car with the least accelerate have?", "question_toks": ["For", "model", "volvo", ",", "how", "many", "cylinders", "does", "the", "car", "with", "the", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING", "DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0158", "db_id": "car_1", "query": "select t1.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;", "query_toks": ["SELECT", "T1.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", ";"], "query_toks_no_value": ["select", "t1", ".", "cylinders", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "model", "=", "value", "order", "by", "t1", ".", "accelerate", "asc", "limit", "value"], "question": "For a volvo model, how many cylinders does the version with least accelerate have?", "question_toks": ["For", "a", "volvo", "model", ",", "how", "many", "cylinders", "does", "the", "version", "with", "least", "accelerate", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING", "DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3286", "db_id": "college_1", "query": "select t4.crs_description , t4.crs_credit from class as t1 join enroll as t2 on t1.class_code = t2.class_code join student as t3 on t3.stu_num = t2.stu_num join course as t4 on t4.crs_code = t1.crs_code where t3.stu_lname = 'smithson'", "query_toks": ["SELECT", "T4.crs_description", ",", "T4.crs_credit", "FROM", "CLASS", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.class_code", "=", "T2.class_code", "JOIN", "student", "AS", "T3", "ON", "T3.stu_num", "=", "T2.stu_num", "JOIN", "course", "AS", "T4", "ON", "T4.crs_code", "=", "T1.crs_code", "WHERE", "T3.stu_lname", "=", "'Smithson", "'"], "query_toks_no_value": ["select", "t4", ".", "crs_description", ",", "t4", ".", "crs_credit", "from", "class", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "class_code", "=", "t2", ".", "class_code", "join", "student", "as", "t3", "on", "t3", ".", "stu_num", "=", "t2", ".", "stu_num", "join", "course", "as", "t4", "on", "t4", ".", "crs_code", "=", "t1", ".", "crs_code", "where", "t3", ".", "stu_lname", "=", "value"], "question": "How many credits is the course that the student with the last name Smithson took, and what is its description?", "question_toks": ["How", "many", "credits", "is", "the", "course", "that", "the", "student", "with", "the", "last", "name", "Smithson", "took", ",", "and", "what", "is", "its", "description", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 6], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 24, false], null], "and", [false, 2, [0, [0, 32, false], null], [0, 25, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 33, false], null], "\"Smithson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2376", "db_id": "csu_1", "query": "select faculty from faculty as t1 join campuses as t2 on t1.campus = t2.id where t1.year = 2004 and t2.campus = \"san francisco state university\"", "query_toks": ["SELECT", "faculty", "FROM", "faculty", "AS", "T1", "JOIN", "campuses", "AS", "T2", "ON", "T1.campus", "=", "T2.id", "WHERE", "T1.year", "=", "2004", "AND", "T2.campus", "=", "``", "San", "Francisco", "State", "University", "''"], "query_toks_no_value": ["select", "faculty", "from", "faculty", "as", "t1", "join", "campuses", "as", "t2", "on", "t1", ".", "campus", "=", "t2", ".", "id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "campus", "=", "value"], "question": "How many faculty lines are there in \"San Francisco State University\" in year 2004?", "question_toks": ["How", "many", "faculty", "lines", "are", "there", "in", "``", "San", "Francisco", "State", "University", "''", "in", "year", "2004", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2004.0, null], "and", [false, 2, [0, [0, 2, false], null], "\"San Francisco State University\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2380", "db_id": "csu_1", "query": "select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1", "query_toks": ["SELECT", "T2.faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "JOIN", "degrees", "AS", "T3", "ON", "T1.id", "=", "t3.campus", "AND", "t2.year", "=", "t3.year", "WHERE", "t2.year", "=", "2002", "ORDER", "BY", "t3.degrees", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "desc", "limit", "value"], "question": "How many faculty lines are there in the university that conferred the most number of degrees in year 2002?", "question_toks": ["How", "many", "faculty", "lines", "are", "there", "in", "the", "university", "that", "conferred", "the", "most", "number", "of", "degrees", "in", "year", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2381", "db_id": "csu_1", "query": "select t2.faculty from campuses as t1 join faculty as t2 on t1.id = t2.campus join degrees as t3 on t1.id = t3.campus and t2.year = t3.year where t2.year = 2002 order by t3.degrees desc limit 1", "query_toks": ["SELECT", "T2.faculty", "FROM", "campuses", "AS", "T1", "JOIN", "faculty", "AS", "T2", "ON", "T1.id", "=", "t2.campus", "JOIN", "degrees", "AS", "T3", "ON", "T1.id", "=", "t3.campus", "AND", "t2.year", "=", "t3.year", "WHERE", "t2.year", "=", "2002", "ORDER", "BY", "t3.degrees", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "faculty", "from", "campuses", "as", "t1", "join", "faculty", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "join", "degrees", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "campus", "and", "t2", ".", "year", "=", "t3", ".", "year", "where", "t2", ".", "year", "=", "value", "order", "by", "t3", ".", "degrees", "desc", "limit", "value"], "question": "How many faculty members did the university that conferred the most degrees in 2002 have?", "question_toks": ["How", "many", "faculty", "members", "did", "the", "university", "that", "conferred", "the", "most", "degrees", "in", "2002", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 10, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0976", "db_id": "dog_kennels", "query": "select cost_of_treatment from treatments order by date_of_treatment desc limit 1", "query_toks": ["SELECT", "cost_of_treatment", "FROM", "Treatments", "ORDER", "BY", "date_of_treatment", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "cost_of_treatment", "from", "treatments", "order", "by", "date_of_treatment", "desc", "limit", "value"], "question": "How much does the most recent treatment cost?", "question_toks": ["How", "much", "does", "the", "most", "recent", "treatment", "cost", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 49, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 48, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0990", "db_id": "dog_kennels", "query": "select charge_type , charge_amount from charges", "query_toks": ["SELECT", "charge_type", ",", "charge_amount", "FROM", "Charges"], "query_toks_no_value": ["select", "charge_type", ",", "charge_amount", "from", "charges"], "question": "How much does each charge type costs? List both charge type and amount.", "question_toks": ["How", "much", "does", "each", "charge", "type", "costs", "?", "List", "both", "charge", "type", "and", "amount", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0018", "db_id": "geo", "query": "select population from state where state_name = \"california\";", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "``", "california", "''", ";"], "query_toks_no_value": ["select", "population", "from", "state", "where", "state_name", "=", "value"], "question": "how many people live in california", "question_toks": ["how", "many", "people", "live", "in", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1444", "db_id": "imdb", "query": "select budget from movie where title = \"finding nemo\";", "query_toks": ["SELECT", "budget", "FROM", "movie", "WHERE", "title", "=", "``", "Finding", "Nemo", "''", ";"], "query_toks_no_value": ["select", "budget", "from", "movie", "where", "title", "=", "value"], "question": "How much was the budget of \" Finding Nemo \"", "question_toks": ["How", "much", "was", "the", "budget", "of", "``", "Finding", "Nemo", "``"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 43, false], null], "\"Finding Nemo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_NOTHING"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2599", "db_id": "inn_1", "query": "select sum(maxoccupancy) from rooms where decor = 'modern';", "query_toks": ["SELECT", "sum", "(", "maxOccupancy", ")", "FROM", "Rooms", "WHERE", "decor", "=", "'modern", "'", ";"], "query_toks_no_value": ["select", "sum", "(", "maxoccupancy", ")", "from", "rooms", "where", "decor", "=", "value"], "question": "How many people in total can stay in the modern rooms of this inn?", "question_toks": ["How", "many", "people", "in", "total", "can", "stay", "in", "the", "modern", "rooms", "of", "this", "inn", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"modern\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1518", "db_id": "insurance_and_eClaims", "query": "select sum(t1.amount_claimed) from claim_headers as t1 join claims_documents as t2 on t1.claim_header_id = t2.claim_id where t2.created_date = (select created_date from claims_documents order by created_date limit 1)", "query_toks": ["SELECT", "sum", "(", "t1.amount_claimed", ")", "FROM", "claim_headers", "AS", "t1", "JOIN", "claims_documents", "AS", "t2", "ON", "t1.claim_header_id", "=", "t2.claim_id", "WHERE", "t2.created_date", "=", "(", "SELECT", "created_date", "FROM", "claims_documents", "ORDER", "BY", "created_date", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "amount_claimed", ")", "from", "claim_headers", "as", "t1", "join", "claims_documents", "as", "t2", "on", "t1", ".", "claim_header_id", "=", "t2", ".", "claim_id", "where", "t2", ".", "created_date", "=", "(", "select", "created_date", "from", "claims_documents", "order", "by", "created_date", "limit", "value", ")"], "question": "How much amount in total were claimed in the most recently created document?", "question_toks": ["How", "much", "amount", "in", "total", "were", "claimed", "in", "the", "most", "recently", "created", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 21, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3389", "db_id": "manufacturer", "query": "select sum(num_of_component) from furniture", "query_toks": ["SELECT", "sum", "(", "num_of_component", ")", "FROM", "furniture"], "query_toks_no_value": ["select", "sum", "(", "num_of_component", ")", "from", "furniture"], "question": "How many furniture components are there in total?", "question_toks": ["How", "many", "furniture", "components", "are", "there", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1243", "db_id": "apartment_rentals", "query": "select sum(t2.room_count) from apartment_buildings as t1 join apartments as t2 on t1.building_id = t2.building_id where t1.building_short_name = \"columbus square\"", "query_toks": ["SELECT", "sum", "(", "T2.room_count", ")", "FROM", "Apartment_Buildings", "AS", "T1", "JOIN", "Apartments", "AS", "T2", "ON", "T1.building_id", "=", "T2.building_id", "WHERE", "T1.building_short_name", "=", "``", "Columbus", "Square", "''"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "room_count", ")", "from", "apartment_buildings", "as", "t1", "join", "apartments", "as", "t2", "on", "t1", ".", "building_id", "=", "t2", ".", "building_id", "where", "t1", ".", "building_short_name", "=", "value"], "question": "How many rooms in total are there in the apartments in the building with short name \"Columbus Square\"?", "question_toks": ["How", "many", "rooms", "in", "total", "are", "there", "in", "the", "apartments", "in", "the", "building", "with", "short", "name", "``", "Columbus", "Square", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Columbus Square\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3694", "db_id": "baseball_1", "query": "select sum(t1.attendance) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year between 2000 and 2010;", "query_toks": ["SELECT", "sum", "(", "T1.attendance", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "2000", "AND", "2010", ";"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "attendance", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value"], "question": "How many games in total did team Boston Red Stockings attend from 2000 to 2010?", "question_toks": ["How", "many", "games", "in", "total", "did", "team", "Boston", "Red", "Stockings", "attend", "from", "2000", "to", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 161, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 2000.0, 2010.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3695", "db_id": "baseball_1", "query": "select sum(t1.salary) from salary as t1 join player as t2 on t1.player_id = t2.player_id where t2.name_first = 'len' and t2.name_last = 'barker' and t1.year between 1985 and 1990;", "query_toks": ["SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "player", "AS", "T2", "ON", "T1.player_id", "=", "T2.player_id", "WHERE", "T2.name_first", "=", "'Len", "'", "AND", "T2.name_last", "=", "'Barker", "'", "AND", "T1.year", "BETWEEN", "1985", "AND", "1990", ";"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "player", "as", "t2", "on", "t1", ".", "player_id", "=", "t2", ".", "player_id", "where", "t2", ".", "name_first", "=", "value", "and", "t2", ".", "name_last", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value"], "question": "How much did the the player with first name Len and last name Barker earn between 1985 to 1990 in total?", "question_toks": ["How", "much", "did", "the", "the", "player", "with", "first", "name", "Len", "and", "last", "name", "Barker", "earn", "between", "1985", "to", "1990", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 20], ["table_unit", 16]], "conds": [[false, 2, [0, [0, 275, false], null], [0, 182, false], null]]}, "select": [false, [[4, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 195, false], null], "\"Len\"", null], "and", [false, 2, [0, [0, 196, false], null], "\"Barker\"", null], "and", [false, 1, [0, [0, 272, false], null], 1985.0, 1990.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3699", "db_id": "baseball_1", "query": "select sum(t1.games) from home_game as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year between 1990 and 2000;", "query_toks": ["SELECT", "sum", "(", "T1.games", ")", "FROM", "home_game", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "BETWEEN", "1990", "AND", "2000", ";"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "games", ")", "from", "home_game", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "between", "value", "and", "value"], "question": "How many home games did the team Boston Red Stockings play from 1990 to 2000 in total?", "question_toks": ["How", "many", "home", "games", "did", "the", "team", "Boston", "Red", "Stockings", "play", "from", "1990", "to", "2000", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 13], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 155, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 159, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 1, [0, [0, 153, false], null], 1990.0, 2000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2372", "db_id": "csu_1", "query": "select sum(faculty) from faculty where year = 2002", "query_toks": ["SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "2002"], "query_toks_no_value": ["select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "value"], "question": "How many faculty is there in total in the year of 2002?", "question_toks": ["How", "many", "faculty", "is", "there", "in", "total", "in", "the", "year", "of", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2373", "db_id": "csu_1", "query": "select sum(faculty) from faculty where year = 2002", "query_toks": ["SELECT", "sum", "(", "faculty", ")", "FROM", "faculty", "WHERE", "YEAR", "=", "2002"], "query_toks_no_value": ["select", "sum", "(", "faculty", ")", "from", "faculty", "where", "year", "=", "value"], "question": "How many faculty, in total, are there in the year 2002?", "question_toks": ["How", "many", "faculty", ",", "in", "total", ",", "are", "there", "in", "the", "year", "2002", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[4, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6690", "db_id": "driving_school", "query": "select sum(t1.amount_payment) from customer_payments as t1 join customers as t2 on t1.customer_id = t2.customer_id where t2.first_name = \"carole\" and t2.last_name = \"bernhard\"", "query_toks": ["SELECT", "sum", "(", "T1.amount_payment", ")", "FROM", "Customer_Payments", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "WHERE", "T2.first_name", "=", "``", "Carole", "''", "AND", "T2.last_name", "=", "``", "Bernhard", "''"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "amount_payment", ")", "from", "customer_payments", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "where", "t2", ".", "first_name", "=", "value", "and", "t2", ".", "last_name", "=", "value"], "question": "How much in total does customer with first name as Carole and last name as Bernhard paid?", "question_toks": ["How", "much", "in", "total", "does", "customer", "with", "first", "name", "as", "Carole", "and", "last", "name", "as", "Bernhard", "paid", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 29, false], null], [0, 18, false], null]]}, "select": [false, [[4, [0, [0, 32, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Carole\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"Bernhard\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_how_many_0162", "db_id": "csu_1", "query": "select t1.campus , sum(t2.degrees) from campuses as t1 join degrees as t2 on t1.id = t2.campus where t2.year >= 1998 and t2.year <= 2002 group by t1.campus", "query_toks": ["select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">=", "1998", "and", "t2", ".", "year", "<=", "2002", "group", "by", "t1", ".", "campus"], "query_toks_no_value": ["select", "t1", ".", "campus", ",", "sum", "(", "t2", ".", "degrees", ")", "from", "campuses", "as", "t1", "join", "degrees", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "campus", "where", "t2", ".", "year", ">=", "value", "and", "t2", ".", "year", "<=", "value", "group", "by", "t1", ".", "campus"], "question": "how many degrees were conferred between 1998 and 2002 in different campuses?", "question_toks": ["how", "many", "degrees", "were", "conferred", "between", "1998", "and", "2002", "in", "different", "campuses", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [4, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 1998.0, null], "and", [false, 6, [0, [0, 9, false], null], 2002.0, null]], "groupBy": [[0, 2, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HOW_MANY", "_HOW_MANY_SUM"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0435", "db_id": "wta_1", "query": "select avg(loser_age) , avg(winner_age) from matches", "query_toks": ["SELECT", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "FROM", "matches"], "query_toks_no_value": ["select", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "from", "matches"], "question": "Find the average age of losers and winners of all matches.", "question_toks": ["Find", "the", "average", "age", "of", "losers", "and", "winners", "of", "all", "matches", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0436", "db_id": "wta_1", "query": "select avg(loser_age) , avg(winner_age) from matches", "query_toks": ["SELECT", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "FROM", "matches"], "query_toks_no_value": ["select", "avg", "(", "loser_age", ")", ",", "avg", "(", "winner_age", ")", "from", "matches"], "question": "What are the average ages of losers and winners across matches?", "question_toks": ["What", "are", "the", "average", "ages", "of", "losers", "and", "winners", "across", "matches", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 28, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0597", "db_id": "tvshow", "query": "select count(distinct series_name) , count(distinct content) from tv_channel;", "query_toks": ["SELECT", "count", "(", "DISTINCT", "series_name", ")", ",", "count", "(", "DISTINCT", "content", ")", "FROM", "TV_Channel", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "series_name", ")", ",", "count", "(", "distinct", "content", ")", "from", "tv_channel"], "question": "List the number of different series names and contents in the TV Channel table.", "question_toks": ["List", "the", "number", "of", "different", "series", "names", "and", "contents", "in", "the", "TV", "Channel", "table", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]], [3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0598", "db_id": "tvshow", "query": "select count(distinct series_name) , count(distinct content) from tv_channel;", "query_toks": ["SELECT", "count", "(", "DISTINCT", "series_name", ")", ",", "count", "(", "DISTINCT", "content", ")", "FROM", "TV_Channel", ";"], "query_toks_no_value": ["select", "count", "(", "distinct", "series_name", ")", ",", "count", "(", "distinct", "content", ")", "from", "tv_channel"], "question": "How many different series and contents are listed in the TV Channel table?", "question_toks": ["How", "many", "different", "series", "and", "contents", "are", "listed", "in", "the", "TV", "Channel", "table", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 2, true], null]], [3, [0, [0, 5, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0117", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station where city = \"san jose\"", "query_toks": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''"], "query_toks_no_value": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "value"], "question": "What is the average latitude and longitude of stations located in San Jose city?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "of", "stations", "located", "in", "San", "Jose", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "WHERE_MONO", "_REFORMULATION_SHORT", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0118", "db_id": "bike_1", "query": "select avg(lat) , avg(long) from station where city = \"san jose\"", "query_toks": ["SELECT", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''"], "query_toks_no_value": ["select", "avg", "(", "lat", ")", ",", "avg", "(", "long", ")", "from", "station", "where", "city", "=", "value"], "question": "What is the average latitude and longitude in San Jose?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "WHERE_MONO", "_REFORMULATION_SHORT", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0211", "db_id": "bike_1", "query": "select avg(t1.lat) , avg(t1.long) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["SELECT", "avg", "(", "T1.lat", ")", ",", "avg", "(", "T1.long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "question": "What is the average latitude and longitude of the starting points of all trips?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "of", "the", "starting", "points", "of", "all", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0212", "db_id": "bike_1", "query": "select avg(t1.lat) , avg(t1.long) from station as t1 join trip as t2 on t1.id = t2.start_station_id", "query_toks": ["SELECT", "avg", "(", "T1.lat", ")", ",", "avg", "(", "T1.long", ")", "FROM", "station", "AS", "T1", "JOIN", "trip", "AS", "T2", "ON", "T1.id", "=", "T2.start_station_id"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "lat", ")", ",", "avg", "(", "t1", ".", "long", ")", "from", "station", "as", "t1", "join", "trip", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "start_station_id"], "question": "What is the average latitude and longitude of all starting stations for the trips?", "question_toks": ["What", "is", "the", "average", "latitude", "and", "longitude", "of", "all", "starting", "stations", "for", "the", "trips", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0402", "db_id": "flight_1", "query": "select avg(distance) , avg(price) from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value"], "question": "What is the average distance and price for all flights from LA?", "question_toks": ["What", "is", "the", "average", "distance", "and", "price", "for", "all", "flights", "from", "LA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2408", "db_id": "candidate_poll", "query": "select avg(height) , avg(weight) from people where sex = 'm'", "query_toks": ["SELECT", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "FROM", "people", "WHERE", "sex", "=", "'M", "'"], "query_toks_no_value": ["select", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "from", "people", "where", "sex", "=", "value"], "question": "Find the average height and weight for all males (sex is M).", "question_toks": ["Find", "the", "average", "height", "and", "weight", "for", "all", "males", "(", "sex", "is", "M", ")", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [5, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"M\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2409", "db_id": "candidate_poll", "query": "select avg(height) , avg(weight) from people where sex = 'm'", "query_toks": ["SELECT", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "FROM", "people", "WHERE", "sex", "=", "'M", "'"], "query_toks_no_value": ["select", "avg", "(", "height", ")", ",", "avg", "(", "weight", ")", "from", "people", "where", "sex", "=", "value"], "question": "What are the average height and weight across males (sex is M)?", "question_toks": ["What", "are", "the", "average", "height", "and", "weight", "across", "males", "(", "sex", "is", "M", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]], [5, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"M\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2704", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "(", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "query_toks_no_value": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "(", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "question": "What is the total number of deaths and damage for all storms with a max speed greater than the average?", "question_toks": ["What", "is", "the", "total", "number", "of", "deaths", "and", "damage", "for", "all", "storms", "with", "a", "max", "speed", "greater", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2818", "db_id": "news_report", "query": "select avg(t1.age) , avg(years_working) , t2.work_type from journalist as t1 join news_report as t2 on t1.journalist_id = t2.journalist_id group by t2.work_type", "query_toks": ["SELECT", "avg", "(", "t1.age", ")", ",", "avg", "(", "Years_working", ")", ",", "t2.work_type", "FROM", "journalist", "AS", "t1", "JOIN", "news_report", "AS", "t2", "ON", "t1.journalist_id", "=", "t2.journalist_id", "GROUP", "BY", "t2.work_type"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", ",", "avg", "(", "years_working", ")", ",", "t2", ".", "work_type", "from", "journalist", "as", "t1", "join", "news_report", "as", "t2", "on", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "group", "by", "t2", ".", "work_type"], "question": "Find the average age and experience working length of journalists working on different role type.", "question_toks": ["Find", "the", "average", "age", "and", "experience", "working", "length", "of", "journalists", "working", "on", "different", "role", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3597", "db_id": "music_1", "query": "select avg(rating) , avg(resolution) from song where languages = \"bangla\"", "query_toks": ["SELECT", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "bangla", "''"], "query_toks_no_value": ["select", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value"], "question": "What are the average rating and resolution of songs that are in Bangla?", "question_toks": ["What", "are", "the", "average", "rating", "and", "resolution", "of", "songs", "that", "are", "in", "Bangla", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 18, false], null]], [5, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"bangla\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3598", "db_id": "music_1", "query": "select avg(rating) , avg(resolution) from song where languages = \"bangla\"", "query_toks": ["SELECT", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "FROM", "song", "WHERE", "languages", "=", "``", "bangla", "''"], "query_toks_no_value": ["select", "avg", "(", "rating", ")", ",", "avg", "(", "resolution", ")", "from", "song", "where", "languages", "=", "value"], "question": "What is the average rating and resolution of all bangla songs?", "question_toks": ["What", "is", "the", "average", "rating", "and", "resolution", "of", "all", "bangla", "songs", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 18, false], null]], [5, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"bangla\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3601", "db_id": "music_1", "query": "select max(t1.duration) , max(t2.resolution) , t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages", "query_toks": ["SELECT", "max", "(", "T1.duration", ")", ",", "max", "(", "T2.resolution", ")", ",", "T2.languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.languages", "ORDER", "BY", "T2.languages"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "duration", ")", ",", "max", "(", "t2", ".", "resolution", ")", ",", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages"], "question": "What are the maximum duration and resolution of songs grouped and ordered by languages?", "question_toks": ["What", "are", "the", "maximum", "duration", "and", "resolution", "of", "songs", "grouped", "and", "ordered", "by", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 11, false], null]], [1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3602", "db_id": "music_1", "query": "select max(t1.duration) , max(t2.resolution) , t2.languages from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.languages order by t2.languages", "query_toks": ["SELECT", "max", "(", "T1.duration", ")", ",", "max", "(", "T2.resolution", ")", ",", "T2.languages", "FROM", "files", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.f_id", "=", "T2.f_id", "GROUP", "BY", "T2.languages", "ORDER", "BY", "T2.languages"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "duration", ")", ",", "max", "(", "t2", ".", "resolution", ")", ",", "t2", ".", "languages", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "languages", "order", "by", "t2", ".", "languages"], "question": "What are the maximum duration and resolution of all songs, for each language, ordered alphabetically by language?", "question_toks": ["What", "are", "the", "maximum", "duration", "and", "resolution", "of", "all", "songs", ",", "for", "each", "language", ",", "ordered", "alphabetically", "by", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[1, [0, [0, 11, false], null]], [1, [0, [0, 21, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4773", "db_id": "department_store", "query": "select avg(total_amount_purchased) , avg(total_value_purchased) from product_suppliers where supplier_id = (select supplier_id from product_suppliers group by supplier_id order by count(*) desc limit 1)", "query_toks": ["SELECT", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "(", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "(", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What are the average amount purchased and value purchased for the supplier who supplies the most products.", "question_toks": ["What", "are", "the", "average", "amount", "purchased", "and", "value", "purchased", "for", "the", "supplier", "who", "supplies", "the", "most", "products", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[5, [0, [0, 50, false], null]], [5, [0, [0, 51, false], null]]]], "where": [[false, 2, [0, [0, 47, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]]]], "where": [], "groupBy": [[0, 47, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4774", "db_id": "department_store", "query": "select avg(total_amount_purchased) , avg(total_value_purchased) from product_suppliers where supplier_id = (select supplier_id from product_suppliers group by supplier_id order by count(*) desc limit 1)", "query_toks": ["SELECT", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "FROM", "Product_Suppliers", "WHERE", "supplier_id", "=", "(", "SELECT", "supplier_id", "FROM", "Product_Suppliers", "GROUP", "BY", "supplier_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "avg", "(", "total_amount_purchased", ")", ",", "avg", "(", "total_value_purchased", ")", "from", "product_suppliers", "where", "supplier_id", "=", "(", "select", "supplier_id", "from", "product_suppliers", "group", "by", "supplier_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "Return the average total amount purchased and total value purchased for the supplier who supplies the greatest number of products.", "question_toks": ["Return", "the", "average", "total", "amount", "purchased", "and", "total", "value", "purchased", "for", "the", "supplier", "who", "supplies", "the", "greatest", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[5, [0, [0, 50, false], null]], [5, [0, [0, 51, false], null]]]], "where": [[false, 2, [0, [0, 47, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 47, false], null]]]], "where": [], "groupBy": [[0, 47, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5700", "db_id": "dorm_1", "query": "select count(distinct major) , count(distinct city_code) from student", "query_toks": ["SELECT", "count", "(", "DISTINCT", "major", ")", ",", "count", "(", "DISTINCT", "city_code", ")", "FROM", "student"], "query_toks_no_value": ["select", "count", "(", "distinct", "major", ")", ",", "count", "(", "distinct", "city_code", ")", "from", "student"], "question": "Find the numbers of different majors and cities.", "question_toks": ["Find", "the", "numbers", "of", "different", "majors", "and", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 6, true], null]], [3, [0, [0, 8, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6030", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.fname = \"david\" and t2.lname = \"shieber\"", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.Fname", "=", "``", "David", "''", "AND", "T2.Lname", "=", "``", "Shieber", "''"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "fname", "=", "value", "and", "t2", ".", "lname", "=", "value"], "question": "What is the total number of hours per work and number of games played by David Shieber?", "question_toks": ["What", "is", "the", "total", "number", "of", "hours", "per", "work", "and", "number", "of", "games", "played", "by", "David", "Shieber", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"David\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Shieber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6032", "db_id": "game_1", "query": "select sum(hoursperweek) , sum(gamesplayed) from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t2.age < 20", "query_toks": ["SELECT", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.age", "<", "20"], "query_toks_no_value": ["select", "sum", "(", "hoursperweek", ")", ",", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "age", "<", "value"], "question": "What is the total number of hours per week and number of games played by students under 20?", "question_toks": ["What", "is", "the", "total", "number", "of", "hours", "per", "week", "and", "number", "of", "games", "played", "by", "students", "under", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[4, [0, [0, 17, false], null]], [4, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6571", "db_id": "wine_1", "query": "select avg(price) , avg(cases) from wine where year = 2009 and grape = \"zinfandel\"", "query_toks": ["SELECT", "AVG", "(", "Price", ")", ",", "AVG", "(", "Cases", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2009", "AND", "Grape", "=", "``", "Zinfandel", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", ",", "avg", "(", "cases", ")", "from", "wine", "where", "year", "=", "value", "and", "grape", "=", "value"], "question": "What are the average prices and cases of wines produced in the year of 2009 and made of Zinfandel grape?", "question_toks": ["What", "are", "the", "average", "prices", "and", "cases", "of", "wines", "produced", "in", "the", "year", "of", "2009", "and", "made", "of", "Zinfandel", "grape", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2009.0, null], "and", [false, 2, [0, [0, 11, false], null], "\"Zinfandel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6572", "db_id": "wine_1", "query": "select avg(price) , avg(cases) from wine where year = 2009 and grape = \"zinfandel\"", "query_toks": ["SELECT", "AVG", "(", "Price", ")", ",", "AVG", "(", "Cases", ")", "FROM", "WINE", "WHERE", "YEAR", "=", "2009", "AND", "Grape", "=", "``", "Zinfandel", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", ",", "avg", "(", "cases", ")", "from", "wine", "where", "year", "=", "value", "and", "grape", "=", "value"], "question": "Give the average price and case of wines made from Zinfandel grapes in the year 2009.", "question_toks": ["Give", "the", "average", "price", "and", "case", "of", "wines", "made", "from", "Zinfandel", "grapes", "in", "the", "year", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], 2009.0, null], "and", [false, 2, [0, [0, 11, false], null], "\"Zinfandel\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6573", "db_id": "wine_1", "query": "select max(price) , max(score) from wine where appelation = \"st. helena\"", "query_toks": ["SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "``", "St.", "Helena", "''"], "query_toks_no_value": ["select", "max", "(", "price", ")", ",", "max", "(", "score", ")", "from", "wine", "where", "appelation", "=", "value"], "question": "What are the maximum price and score of wines produced by St. Helena appelation?", "question_toks": ["What", "are", "the", "maximum", "price", "and", "score", "of", "wines", "produced", "by", "St.", "Helena", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"St. Helena\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6574", "db_id": "wine_1", "query": "select max(price) , max(score) from wine where appelation = \"st. helena\"", "query_toks": ["SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", "FROM", "WINE", "WHERE", "Appelation", "=", "``", "St.", "Helena", "''"], "query_toks_no_value": ["select", "max", "(", "price", ")", ",", "max", "(", "score", ")", "from", "wine", "where", "appelation", "=", "value"], "question": "Give the maximum price and score for wines produced in the appelation St. Helena.", "question_toks": ["Give", "the", "maximum", "price", "and", "score", "for", "wines", "produced", "in", "the", "appelation", "St.", "Helena", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [1, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"St. Helena\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6575", "db_id": "wine_1", "query": "select max(price) , max(score) , year from wine group by year", "query_toks": ["SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["select", "max", "(", "price", ")", ",", "max", "(", "score", ")", ",", "year", "from", "wine", "group", "by", "year"], "question": "What are the maximum price and score of wines in each year?", "question_toks": ["What", "are", "the", "maximum", "price", "and", "score", "of", "wines", "in", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [1, [0, [0, 18, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6576", "db_id": "wine_1", "query": "select max(price) , max(score) , year from wine group by year", "query_toks": ["SELECT", "max", "(", "Price", ")", ",", "max", "(", "Score", ")", ",", "YEAR", "FROM", "WINE", "GROUP", "BY", "YEAR"], "query_toks_no_value": ["select", "max", "(", "price", ")", ",", "max", "(", "score", ")", ",", "year", "from", "wine", "group", "by", "year"], "question": "What are the maximum price and score of wines for each year?", "question_toks": ["What", "are", "the", "maximum", "price", "and", "score", "of", "wines", "for", "each", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]], [1, [0, [0, 18, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 16, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6577", "db_id": "wine_1", "query": "select avg(price) , avg(score) , appelation from wine group by appelation", "query_toks": ["SELECT", "avg", "(", "Price", ")", ",", "avg", "(", "Score", ")", ",", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation"], "query_toks_no_value": ["select", "avg", "(", "price", ")", ",", "avg", "(", "score", ")", ",", "appelation", "from", "wine", "group", "by", "appelation"], "question": "What are the average price and score of wines grouped by appelation?", "question_toks": ["What", "are", "the", "average", "price", "and", "score", "of", "wines", "grouped", "by", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [5, [0, [0, 18, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6578", "db_id": "wine_1", "query": "select avg(price) , avg(score) , appelation from wine group by appelation", "query_toks": ["SELECT", "avg", "(", "Price", ")", ",", "avg", "(", "Score", ")", ",", "Appelation", "FROM", "WINE", "GROUP", "BY", "Appelation"], "query_toks_no_value": ["select", "avg", "(", "price", ")", ",", "avg", "(", "score", ")", ",", "appelation", "from", "wine", "group", "by", "appelation"], "question": "What are the average price and score of wines for each appelation?", "question_toks": ["What", "are", "the", "average", "price", "and", "score", "of", "wines", "for", "each", "appelation", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]], [5, [0, [0, 18, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6605", "db_id": "train_station", "query": "select location , sum(number_of_platforms) , sum(total_passengers) from station group by location", "query_toks": ["SELECT", "LOCATION", ",", "sum", "(", "number_of_platforms", ")", ",", "sum", "(", "total_passengers", ")", "FROM", "station", "GROUP", "BY", "LOCATION"], "query_toks_no_value": ["select", "location", ",", "sum", "(", "number_of_platforms", ")", ",", "sum", "(", "total_passengers", ")", "from", "station", "group", "by", "location"], "question": "Show all locations and the total number of platforms and passengers for all train stations in each location.", "question_toks": ["Show", "all", "locations", "and", "the", "total", "number", "of", "platforms", "and", "passengers", "for", "all", "train", "stations", "in", "each", "location", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [4, [0, [0, 8, false], null]], [4, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2466", "db_id": "movie_1", "query": "select max(t1.stars) , t2.year from rating as t1 join movie as t2 on t1.mid = t2.mid where t2.year = (select max(year) from movie)", "query_toks": ["SELECT", "max", "(", "T1.stars", ")", ",", "T2.year", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.year", "=", "(", "SELECT", "max", "(", "YEAR", ")", "FROM", "Movie", ")"], "query_toks_no_value": ["select", "max", "(", "t1", ".", "stars", ")", ",", "t2", ".", "year", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "year", "=", "(", "select", "max", "(", "year", ")", "from", "movie", ")"], "question": "What is the maximum stars and year for the most recent movie?", "question_toks": ["What", "is", "the", "maximum", "stars", "and", "year", "for", "the", "most", "recent", "movie", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[1, [0, [0, 9, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0008", "db_id": "coffee_shop", "query": "select avg(num_of_staff) , avg(score) from shop", "query_toks": ["select", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "from", "shop"], "query_toks_no_value": ["select", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "from", "shop"], "question": "What are the average score and staff number of all shops?", "question_toks": ["What", "are", "the", "average", "score", "and", "staff", "number", "of", "all", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0009", "db_id": "coffee_shop", "query": "select avg(num_of_staff) , avg(score) from shop", "query_toks": ["select", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "from", "shop"], "query_toks_no_value": ["select", "avg", "(", "num_of_staff", ")", ",", "avg", "(", "score", ")", "from", "shop"], "question": "What are the average score and staff number of all shops?", "question_toks": ["What", "are", "the", "average", "score", "and", "staff", "number", "of", "all", "shops", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]], [5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0010", "db_id": "candidate_poll", "query": "select max(support_rate) , min(consider_rate) , min(oppose_rate) from candidate", "query_toks": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "query_toks_no_value": ["select", "max", "(", "support_rate", ")", ",", "min", "(", "consider_rate", ")", ",", "min", "(", "oppose_rate", ")", "from", "candidate"], "question": "Return the maximum support rate, minimum consider rate and oppose rate across all candidates?", "question_toks": ["Return", "the", "maximum", "support", "rate", ",", "minimum", "consider", "rate", "and", "oppose", "rate", "across", "all", "candidates", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 5, false], null]], [2, [0, [0, 6, false], null]], [2, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0011", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "(", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "query_toks_no_value": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "value", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "question": "Return the total number of deaths and damange in millions for storms that had a max speed greater than the average.", "question_toks": ["Return", "the", "total", "number", "of", "deaths", "and", "damange", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "greater", "than", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0012", "db_id": "music_1", "query": "select min(t1.duration) , min(t2.rating) , t2.genre_is from files as t1 join song as t2 on t1.f_id = t2.f_id group by t2.genre_is order by t2.genre_is", "query_toks": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "query_toks_no_value": ["select", "min", "(", "t1", ".", "duration", ")", ",", "min", "(", "t2", ".", "rating", ")", ",", "t2", ".", "genre_is", "from", "files", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "f_id", "=", "t2", ".", "f_id", "group", "by", "t2", ".", "genre_is", "order", "by", "t2", ".", "genre_is"], "question": "What are the minimal duration and rating of songs grouped by genre and ordered by genre?", "question_toks": ["What", "are", "the", "minimal", "duration", "and", "rating", "of", "songs", "grouped", "by", "genre", "and", "ordered", "by", "genre", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 16, false], null]]}, "select": [false, [[2, [0, [0, 11, false], null]], [2, [0, [0, 18, false], null]], [0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [[0, 17, false]], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_mono_0020", "db_id": "news_report", "query": "select avg(t1.age) , avg(years_working) , t2.work_type from journalist as t1 join news_report as t2 on t1.journalist_id = t2.journalist_id group by t2.work_type", "query_toks": ["select", "avg", "(", "t1", ".", "age", ")", ",", "avg", "(", "years_working", ")", ",", "t2", ".", "work_type", "from", "journalist", "as", "t1", "join", "news_report", "as", "t2", "on", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "group", "by", "t2", ".", "work_type"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "age", ")", ",", "avg", "(", "years_working", ")", ",", "t2", ".", "work_type", "from", "journalist", "as", "t1", "join", "news_report", "as", "t2", "on", "t1", ".", "journalist_id", "=", "t2", ".", "journalist_id", "group", "by", "t2", ".", "work_type"], "question": "What are the average age and experience working length of journalists working on different role type.", "question_toks": ["What", "are", "the", "average", "age", "and", "experience", "working", "length", "of", "journalists", "working", "on", "different", "role", "type", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[5, [0, [0, 9, false], null]], [5, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_MONO"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2136", "db_id": "company_1", "query": "select count(*) , sex from employee where salary < 50000 group by sex", "query_toks": ["SELECT", "count", "(", "*", ")", ",", "sex", "FROM", "employee", "WHERE", "salary", "<", "50000", "GROUP", "BY", "sex"], "query_toks_no_value": ["select", "count", "(", "*", ")", ",", "sex", "from", "employee", "where", "salary", "<", "value", "group", "by", "sex"], "question": "Find the number of employees of each gender whose salary is lower than 50000.", "question_toks": ["Find", "the", "number", "of", "employees", "of", "each", "gender", "whose", "salary", "is", "lower", "than", "50000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[false, 4, [0, [0, 11, false], null], 50000.0, null]], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2170", "db_id": "formula_1", "query": "select t1.driverid , t1.forename , t1.surname from drivers as t1 join laptimes as t2 on t1.driverid = t2.driverid where position = '1' group by t1.driverid having count(*) >= 2", "query_toks": ["SELECT", "T1.driverid", ",", "T1.forename", ",", "T1.surname", "FROM", "drivers", "AS", "T1", "JOIN", "laptimes", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "POSITION", "=", "'1", "'", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "driverid", ",", "t1", ".", "forename", ",", "t1", ".", "surname", "from", "drivers", "as", "t1", "join", "laptimes", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "position", "=", "value", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What is the id, first name, and last name of the driver who was in the first position for laptime at least twice?", "question_toks": ["What", "is", "the", "id", ",", "first", "name", ",", "and", "last", "name", "of", "the", "driver", "who", "was", "in", "the", "first", "position", "for", "laptime", "at", "least", "twice", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 90, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 92, false], null], "\"1\"", null]], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2200", "db_id": "formula_1", "query": "select distinct forename from drivers order by forename asc", "query_toks": ["SELECT", "DISTINCT", "forename", "FROM", "drivers", "ORDER", "BY", "forename", "ASC"], "query_toks_no_value": ["select", "distinct", "forename", "from", "drivers", "order", "by", "forename", "asc"], "question": "What are the first names of all the different drivers in alphabetical order?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "the", "different", "drivers", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 22, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2950", "db_id": "sakila_1", "query": "select t2.title , t2.film_id , t2.description from film_actor as t1 join film as t2 on t1.film_id = t2.film_id group by t2.film_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2.title", ",", "T2.film_id", ",", "T2.description", "FROM", "film_actor", "AS", "T1", "JOIN", "film", "AS", "T2", "ON", "T1.film_id", "=", "T2.film_id", "GROUP", "BY", "T2.film_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t2", ".", "film_id", ",", "t2", ".", "description", "from", "film_actor", "as", "t1", "join", "film", "as", "t2", "on", "t1", ".", "film_id", "=", "t2", ".", "film_id", "group", "by", "t2", ".", "film_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which film has the most number of actors or actresses? List the film name, film id and description.", "question_toks": ["Which", "film", "has", "the", "most", "number", "of", "actors", "or", "actresses", "?", "List", "the", "film", "name", ",", "film", "id", "and", "description", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 46, false], null], [0, 32, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 32, false], null]], [0, [0, [0, 34, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2953", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name , t2.actor_id from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2.first_name", ",", "T2.last_name", ",", "T2.actor_id", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "t2", ".", "actor_id", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the full name and id of the actor or actress who starred in the greatest number of films.", "question_toks": ["Return", "the", "full", "name", "and", "id", "of", "the", "actor", "or", "actress", "who", "starred", "in", "the", "greatest", "number", "of", "films", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6805", "db_id": "flight_4", "query": "select name , city , country , elevation from airports where city = 'new york'", "query_toks": ["SELECT", "name", ",", "city", ",", "country", ",", "elevation", "FROM", "airports", "WHERE", "city", "=", "'New", "York", "'"], "query_toks_no_value": ["select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "value"], "question": "Find the name, city, country, and altitude (or elevation) of the airports in the city of New York.", "question_toks": ["Find", "the", "name", ",", "city", ",", "country", ",", "and", "altitude", "(", "or", "elevation", ")", "of", "the", "airports", "in", "the", "city", "of", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"New York\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1209", "db_id": "apartment_rentals", "query": "select avg(bedroom_count) from apartments", "query_toks": ["SELECT", "avg", "(", "bedroom_count", ")", "FROM", "Apartments"], "query_toks_no_value": ["select", "avg", "(", "bedroom_count", ")", "from", "apartments"], "question": "Find the average number of bedrooms of all the apartments.", "question_toks": ["Find", "the", "average", "number", "of", "bedrooms", "of", "all", "the", "apartments", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1945", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "film"], "question": "Show the title and director for all films.", "question_toks": ["Show", "the", "title", "and", "director", "for", "all", "films", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1946", "db_id": "cinema", "query": "select title , directed_by from film", "query_toks": ["SELECT", "title", ",", "directed_by", "FROM", "film"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "film"], "question": "What are the title and director of each film?", "question_toks": ["What", "are", "the", "title", "and", "director", "of", "each", "film", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1947", "db_id": "cinema", "query": "select distinct directed_by from film", "query_toks": ["SELECT", "DISTINCT", "directed_by", "FROM", "film"], "query_toks_no_value": ["select", "distinct", "directed_by", "from", "film"], "question": "Show all directors.", "question_toks": ["Show", "all", "directors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0641", "db_id": "store_1", "query": "select unit_price from tracks where name = \"fast as a shark\";", "query_toks": ["SELECT", "unit_price", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";"], "query_toks_no_value": ["select", "unit_price", "from", "tracks", "where", "name", "=", "value"], "question": "How much is the track Fast As a Shark?", "question_toks": ["How", "much", "is", "the", "track", "Fast", "As", "a", "Shark", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 57, false], null]]]], "where": [[false, 2, [0, [0, 50, false], null], "\"Fast As a Shark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2184", "db_id": "formula_1", "query": "select distinct t1.forename from drivers as t1 join driverstandings as t2 on t1.driverid = t2.driverid where t2.position = 1 and t2.wins = 1", "query_toks": ["SELECT", "DISTINCT", "T1.forename", "FROM", "drivers", "AS", "T1", "JOIN", "driverstandings", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "WHERE", "T2.position", "=", "1", "AND", "T2.wins", "=", "1"], "query_toks_no_value": ["select", "distinct", "t1", ".", "forename", "from", "drivers", "as", "t1", "join", "driverstandings", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "where", "t2", ".", "position", "=", "value", "and", "t2", ".", "wins", "=", "value"], "question": "What are all the different first names of the drivers who are in position as standing and won?", "question_toks": ["What", "are", "all", "the", "different", "first", "names", "of", "the", "drivers", "who", "are", "in", "position", "as", "standing", "and", "won", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 63, false], null]]}, "select": [true, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 65, false], null], 1.0, null], "and", [false, 2, [0, [0, 67, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0004", "db_id": "department_management", "query": "select avg(num_employees) from department where ranking between 10 and 15", "query_toks": ["SELECT", "avg", "(", "num_employees", ")", "FROM", "department", "WHERE", "ranking", "BETWEEN", "10", "AND", "15"], "query_toks_no_value": ["select", "avg", "(", "num_employees", ")", "from", "department", "where", "ranking", "between", "value", "and", "value"], "question": "What is the average number of employees of the departments whose rank is between 10 and 15?", "question_toks": ["What", "is", "the", "average", "number", "of", "employees", "of", "the", "departments", "whose", "rank", "is", "between", "10", "and", "15", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [[false, 1, [0, [0, 4, false], null], 10.0, 15.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0111", "db_id": "bike_1", "query": "select name from station where lat < 37.5", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "37.5"], "query_toks_no_value": ["select", "name", "from", "station", "where", "lat", "<", "value"], "question": "What are the names of stations that have latitude lower than 37.5?", "question_toks": ["What", "are", "the", "names", "of", "stations", "that", "have", "latitude", "lower", "than", "37.5", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 37.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0112", "db_id": "bike_1", "query": "select name from station where lat < 37.5", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "lat", "<", "37.5"], "query_toks_no_value": ["select", "name", "from", "station", "where", "lat", "<", "value"], "question": "What are the names of all stations with a latitude smaller than 37.5?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "with", "a", "latitude", "smaller", "than", "37.5", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 37.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0365", "db_id": "flight_1", "query": "select eid from employee where salary > 100000", "query_toks": ["SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "100000"], "query_toks_no_value": ["select", "eid", "from", "employee", "where", "salary", ">", "value"], "question": "Show ids for all employees with at least 100000 salary.", "question_toks": ["Show", "ids", "for", "all", "employees", "with", "at", "least", "100000", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 100000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "WHERE_MONO", "_REFORMULATION_ABBREVIATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0366", "db_id": "flight_1", "query": "select eid from employee where salary > 100000", "query_toks": ["SELECT", "eid", "FROM", "Employee", "WHERE", "salary", ">", "100000"], "query_toks_no_value": ["select", "eid", "from", "employee", "where", "salary", ">", "value"], "question": "What is the id of every employee who has at least a salary of 100000?", "question_toks": ["What", "is", "the", "id", "of", "every", "employee", "who", "has", "at", "least", "a", "salary", "of", "100000", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 100000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0383", "db_id": "flight_1", "query": "select flno , origin , destination from flight order by origin", "query_toks": ["SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin"], "query_toks_no_value": ["select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin"], "question": "Show flight number, origin, destination of all flights in the alphabetical order of the departure cities.", "question_toks": ["Show", "flight", "number", ",", "origin", ",", "destination", "of", "all", "flights", "in", "the", "alphabetical", "order", "of", "the", "departure", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0384", "db_id": "flight_1", "query": "select flno , origin , destination from flight order by origin", "query_toks": ["SELECT", "flno", ",", "origin", ",", "destination", "FROM", "Flight", "ORDER", "BY", "origin"], "query_toks_no_value": ["select", "flno", ",", "origin", ",", "destination", "from", "flight", "order", "by", "origin"], "question": "What is the flight number, origin, and destination for all flights in alphabetical order by departure cities?", "question_toks": ["What", "is", "the", "flight", "number", ",", "origin", ",", "and", "destination", "for", "all", "flights", "in", "alphabetical", "order", "by", "departure", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0385", "db_id": "flight_1", "query": "select flno from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "flno", "from", "flight", "where", "origin", "=", "value"], "question": "Show all flight number from Los Angeles.", "question_toks": ["Show", "all", "flight", "number", "from", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0386", "db_id": "flight_1", "query": "select flno from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "flno", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "flno", "from", "flight", "where", "origin", "=", "value"], "question": "What are the numbers of all flights coming from Los Angeles?", "question_toks": ["What", "are", "the", "numbers", "of", "all", "flights", "coming", "from", "Los", "Angeles", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0391", "db_id": "flight_1", "query": "select flno from flight where distance > 2000", "query_toks": ["SELECT", "flno", "FROM", "Flight", "WHERE", "distance", ">", "2000"], "query_toks_no_value": ["select", "flno", "from", "flight", "where", "distance", ">", "value"], "question": "Show flight number for all flights with more than 2000 distance.", "question_toks": ["Show", "flight", "number", "for", "all", "flights", "with", "more", "than", "2000", "distance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0411", "db_id": "flight_1", "query": "select t2.name from flight as t1 join aircraft as t2 on t1.aid = t2.aid where t1.flno = 99", "query_toks": ["SELECT", "T2.name", "FROM", "Flight", "AS", "T1", "JOIN", "Aircraft", "AS", "T2", "ON", "T1.aid", "=", "T2.aid", "WHERE", "T1.flno", "=", "99"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "flight", "as", "t1", "join", "aircraft", "as", "t2", "on", "t1", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "flno", "=", "value"], "question": "What is the aircraft name for the flight with number 99", "question_toks": ["What", "is", "the", "aircraft", "name", "for", "the", "flight", "with", "number", "99"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], 99.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0419", "db_id": "flight_1", "query": "select count(distinct eid) from certificate", "query_toks": ["SELECT", "count", "(", "DISTINCT", "eid", ")", "FROM", "Certificate"], "query_toks_no_value": ["select", "count", "(", "distinct", "eid", ")", "from", "certificate"], "question": "How many employees have certificate.", "question_toks": ["How", "many", "employees", "have", "certificate", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 15, true], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0461", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "Student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "Show first name and last name for all students.", "question_toks": ["Show", "first", "name", "and", "last", "name", "for", "all", "students", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0462", "db_id": "allergy_1", "query": "select fname , lname from student", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "Student"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student"], "question": "What are the full names of all students", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "students"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0939", "db_id": "medicine_enzyme_interaction", "query": "select max(omim) from enzyme", "query_toks": ["SELECT", "max", "(", "OMIM", ")", "FROM", "enzyme"], "query_toks_no_value": ["select", "max", "(", "omim", ")", "from", "enzyme"], "question": "What is the maximum Online Mendelian Inheritance in Man (OMIM) value of the enzymes?", "question_toks": ["What", "is", "the", "maximum", "Online", "Mendelian", "Inheritance", "in", "Man", "(", "OMIM", ")", "value", "of", "the", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[1, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_ABBREVIATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1342", "db_id": "college_2", "query": "select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2", "query_toks": ["SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", "=", "value"], "question": "Find the title of courses that have two prerequisites?", "question_toks": ["Find", "the", "title", "of", "courses", "that", "have", "two", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1343", "db_id": "college_2", "query": "select t1.title from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) = 2", "query_toks": ["SELECT", "T1.title", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the titles for courses with two prerequisites?", "question_toks": ["What", "are", "the", "titles", "for", "courses", "with", "two", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1344", "db_id": "college_2", "query": "select t1.title , t1.credits , t1.dept_name from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) > 1", "query_toks": ["SELECT", "T1.title", ",", "T1.credits", ",", "T1.dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the title, credit, and department name of courses that have more than one prerequisites?", "question_toks": ["Find", "the", "title", ",", "credit", ",", "and", "department", "name", "of", "courses", "that", "have", "more", "than", "one", "prerequisites", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1345", "db_id": "college_2", "query": "select t1.title , t1.credits , t1.dept_name from course as t1 join prereq as t2 on t1.course_id = t2.course_id group by t2.course_id having count(*) > 1", "query_toks": ["SELECT", "T1.title", ",", "T1.credits", ",", "T1.dept_name", "FROM", "course", "AS", "T1", "JOIN", "prereq", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "GROUP", "BY", "T2.course_id", "HAVING", "count", "(", "*", ")", ">", "1"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t1", ".", "credits", ",", "t1", ".", "dept_name", "from", "course", "as", "t1", "join", "prereq", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "group", "by", "t2", ".", "course_id", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the title, credit value, and department name for courses with more than one prerequisite?", "question_toks": ["What", "is", "the", "title", ",", "credit", "value", ",", "and", "department", "name", "for", "courses", "with", "more", "than", "one", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 45, false]], "having": [[false, 3, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1346", "db_id": "college_2", "query": "select count(*) from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "How many courses that do not have prerequisite?", "question_toks": ["How", "many", "courses", "that", "do", "not", "have", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1420", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["SELECT", "title", "FROM", "course", "WHERE", "course_id", "NOT", "IN", "(", "SELECT", "course_id", "FROM", "prereq", ")"], "query_toks_no_value": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "Find the name of the courses that do not have any prerequisite?", "question_toks": ["Find", "the", "name", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM", "_NEGATION_ANY", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1986", "db_id": "phone_market", "query": "select carrier from phone where memory_in_g < 32 intersect select carrier from phone where memory_in_g > 64", "query_toks": ["SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", "<", "32", "INTERSECT", "SELECT", "Carrier", "FROM", "phone", "WHERE", "Memory_in_G", ">", "64"], "query_toks_no_value": ["select", "carrier", "from", "phone", "where", "memory_in_g", "<", "value", "intersect", "select", "carrier", "from", "phone", "where", "memory_in_g", ">", "value"], "question": "Show the carriers that have both phones with memory smaller than 32 and phones with memory bigger than 64.", "question_toks": ["Show", "the", "carriers", "that", "have", "both", "phones", "with", "memory", "smaller", "than", "32", "and", "phones", "with", "memory", "bigger", "than", "64", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 4, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 64.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6827", "db_id": "flight_4", "query": "select count(*) from airports as t1 join routes as t2 on t1.apid = t2.dst_apid where country = 'canada'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "WHERE", "country", "=", "'Canada", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "where", "country", "=", "value"], "question": "Find the number of routes whose destination airports are in Canada.", "question_toks": ["Find", "the", "number", "of", "routes", "whose", "destination", "airports", "are", "in", "Canada", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6833", "db_id": "flight_4", "query": "select t1.name , t1.city , t2.dst_apid from airports as t1 join routes as t2 on t1.apid = t2.dst_apid group by t2.dst_apid order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", ",", "T1.city", ",", "T2.dst_apid", "FROM", "airports", "AS", "T1", "JOIN", "routes", "AS", "T2", "ON", "T1.apid", "=", "T2.dst_apid", "GROUP", "BY", "T2.dst_apid", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "city", ",", "t2", ".", "dst_apid", "from", "airports", "as", "t1", "join", "routes", "as", "t2", "on", "t1", ".", "apid", "=", "t2", ".", "dst_apid", "group", "by", "t2", ".", "dst_apid", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the name and city of the airport which is the destination of the most number of routes.", "question_toks": ["Find", "the", "name", "and", "city", "of", "the", "airport", "which", "is", "the", "destination", "of", "the", "most", "number", "of", "routes", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SHORT"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0258", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", "query_toks": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")"], "query_toks_no_value": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")"], "question": "Which airports do not have departing or arriving flights?", "question_toks": ["Which", "airports", "do", "not", "have", "departing", "or", "arriving", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM", "OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0275", "db_id": "employee_hire_evaluation", "query": "select name from shop where number_products > (select avg(number_products) from shop)", "query_toks": ["SELECT", "name", "FROM", "shop", "WHERE", "number_products", ">", "(", "SELECT", "avg", "(", "number_products", ")", "FROM", "shop", ")"], "query_toks_no_value": ["select", "name", "from", "shop", "where", "number_products", ">", "(", "select", "avg", "(", "number_products", ")", "from", "shop", ")"], "question": "Find the names of stores whose number products is more than the average number of products.", "question_toks": ["Find", "the", "names", "of", "stores", "whose", "number", "products", "is", "more", "than", "the", "average", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM", "WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0496", "db_id": "battle_death", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["select", "t1", ".", "killed", ",", "t1", ".", "injured", "from", "death", "as", "t1", "join", "ship", "as", "t2", "on", "t1", ".", "caused_by_ship_id", "=", "t2", ".", "id", "where", "t2", ".", "tonnage", "=", "value"], "question": "What are the death and injury situations caused by the ship with tonnage 't'?", "question_toks": ["What", "are", "the", "death", "and", "injury", "situations", "caused", "by", "the", "ship", "with", "tonnage", "'t", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 17, false], null]], [0, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "AND_WITH_OR_IN_NL", "_REFORMULATION_SYNONYM", "WHERE_MONO", "_JOIN_1", "_AND_WITH_OR_COLUMN_REMOVED", "DEJOIN_TOTAL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0712", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "order", "by", "percentage", "desc", "limit", "value"], "question": "Which language is the most popular in Aruba?", "question_toks": ["Which", "language", "is", "the", "most", "popular", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Aruba\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "WHERE_MONO", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0713", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "order", "by", "percentage", "desc", "limit", "value"], "question": "What language is predominantly spoken in Aruba?", "question_toks": ["What", "language", "is", "predominantly", "spoken", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Aruba\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 26, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "WHERE_MONO", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0742", "db_id": "world_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which continent has the most diverse languages?", "question_toks": ["Which", "continent", "has", "the", "most", "diverse", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0016", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\";", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''", ";"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value"], "question": "what is the size of new mexico", "question_toks": ["what", "is", "the", "size", "of", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0140", "db_id": "geo", "query": "select population from city where city_name = \"boulder\";", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "city_name", "=", "``", "boulder", "''", ";"], "query_toks_no_value": ["select", "population", "from", "city", "where", "city_name", "=", "value"], "question": "people in boulder", "question_toks": ["people", "in", "boulder"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"boulder\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_1431", "db_id": "imdb", "query": "select title from movie where release_year = 2015;", "query_toks": ["SELECT", "title", "FROM", "movie", "WHERE", "release_year", "=", "2015", ";"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "release_year", "=", "value"], "question": "Find all movies produced in 2015", "question_toks": ["Find", "all", "movies", "produced", "in", "2015"], "sql": {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 44, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION_SYNONYM"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0012", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\";", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''", ";"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value"], "question": "how big is new mexico", "question_toks": ["how", "big", "is", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "VALUES_WITHOUT_COLUMNS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0014", "db_id": "geo", "query": "select area from state where state_name = \"new mexico\";", "query_toks": ["SELECT", "area", "FROM", "state", "WHERE", "state_name", "=", "``", "new", "mexico", "''", ";"], "query_toks_no_value": ["select", "area", "from", "state", "where", "state_name", "=", "value"], "question": "how large is new mexico", "question_toks": ["how", "large", "is", "new", "mexico"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"new mexico\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "VALUES_WITHOUT_COLUMNS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0026", "db_id": "geo", "query": "select population from state where state_name = \"california\";", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "``", "california", "''", ";"], "query_toks_no_value": ["select", "population", "from", "state", "where", "state_name", "=", "value"], "question": "how many people are there in california", "question_toks": ["how", "many", "people", "are", "there", "in", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0027", "db_id": "geo", "query": "select population from state where state_name = \"california\";", "query_toks": ["SELECT", "population", "FROM", "state", "WHERE", "state_name", "=", "``", "california", "''", ";"], "query_toks_no_value": ["select", "population", "from", "state", "where", "state_name", "=", "value"], "question": "how many citizens in california", "question_toks": ["how", "many", "citizens", "in", "california"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 1, false], null], "\"california\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0067", "db_id": "geo", "query": "select state_name from state where population = ( select max ( population ) from state );", "query_toks": ["SELECT", "state_name", "FROM", "state", "WHERE", "population", "=", "(", "SELECT", "MAX", "(", "population", ")", "FROM", "state", ")", ";"], "query_toks_no_value": ["select", "state_name", "from", "state", "where", "population", "=", "(", "select", "max", "(", "population", ")", "from", "state", ")"], "question": "what state has the most people", "question_toks": ["what", "state", "has", "the", "most", "people"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0392", "db_id": "course_teach", "query": "select hometown from teacher order by age asc limit 1", "query_toks": ["SELECT", "Hometown", "FROM", "teacher", "ORDER", "BY", "Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "hometown", "from", "teacher", "order", "by", "age", "asc", "limit", "value"], "question": "Where is the youngest teacher from?", "question_toks": ["Where", "is", "the", "youngest", "teacher", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0682", "db_id": "poker_player", "query": "select name from people where nationality != \"russia\"", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "Nationality", "!", "=", "``", "Russia", "''"], "query_toks_no_value": ["select", "name", "from", "people", "where", "nationality", "!", "=", "value"], "question": "What are the names of people who are not from Russia?", "question_toks": ["What", "are", "the", "names", "of", "people", "who", "are", "not", "from", "Russia", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"Russia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0750", "db_id": "world_1", "query": "select count( distinct continent) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"chinese\"", "query_toks": ["SELECT", "COUNT", "(", "DISTINCT", "Continent", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T2.Language", "=", "``", "Chinese", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "continent", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value"], "question": "What is the number of distinct continents where Chinese is spoken?", "question_toks": ["What", "is", "the", "number", "of", "distinct", "continents", "where", "Chinese", "is", "spoken", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 10, true], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Chinese\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "VALUES_WITHOUT_COLUMNS", "_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0401", "db_id": "flight_1", "query": "select avg(distance) , avg(price) from flight where origin = \"los angeles\"", "query_toks": ["SELECT", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''"], "query_toks_no_value": ["select", "avg", "(", "distance", ")", ",", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value"], "question": "What is the average distance and average price for flights from Los Angeles.", "question_toks": ["What", "is", "the", "average", "distance", "and", "average", "price", "for", "flights", "from", "Los", "Angeles", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]], [5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_synonyms_0054", "db_id": "company_1", "query": "select fname , lname from employee where salary > 30000", "query_toks": ["select", "fname", ",", "lname", "from", "employee", "where", "salary", ">", "30000"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "employee", "where", "salary", ">", "value"], "question": "Return the first names and last names of employees who earn more than 30000.", "question_toks": ["Return", "the", "first", "names", "and", "last", "names", "of", "employees", "who", "earn", "more", "than", "30000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 30000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["SYNONYMS", "_REFORMULATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0151", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "=", "value", "or", "t4", ".", "weight", ">", "value"], "question": "Which distinctive models are produced by maker with the full name General Motors or weighing more than 3500?", "question_toks": ["Which", "distinctive", "models", "are", "produced", "by", "maker", "with", "the", "full", "name", "General", "Motors", "or", "weighing", "more", "than", "3500", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"General Motors\"", null], "or", [false, 3, [0, [0, 21, false], null], 3500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0152", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "=", "value", "or", "t4", ".", "weight", ">", "value"], "question": "What are the different models created by either the car maker General Motors or weighed more than 3500?", "question_toks": ["What", "are", "the", "different", "models", "created", "by", "either", "the", "car", "maker", "General", "Motors", "or", "weighed", "more", "than", "3500", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 3], ["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"General Motors\"", null], "or", [false, 3, [0, [0, 21, false], null], 3500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0169", "db_id": "car_1", "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "query_toks": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "8", "or", "year", "<", "1980"], "query_toks_no_value": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value", "or", "year", "<", "value"], "question": "What is the maximum miles per gallon of the car with 8 cylinders or produced before 1980 ?", "question_toks": ["What", "is", "the", "maximum", "miles", "per", "gallon", "of", "the", "car", "with", "8", "cylinders", "or", "produced", "before", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "or", [false, 4, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0170", "db_id": "car_1", "query": "select max(mpg) from cars_data where cylinders = 8 or year < 1980", "query_toks": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "8", "or", "year", "<", "1980"], "query_toks_no_value": ["select", "max", "(", "mpg", ")", "from", "cars_data", "where", "cylinders", "=", "value", "or", "year", "<", "value"], "question": "What is the maximum mpg of the cars that had 8 cylinders or that were produced before 1980 ?", "question_toks": ["What", "is", "the", "maximum", "mpg", "of", "the", "cars", "that", "had", "8", "cylinders", "or", "that", "were", "produced", "before", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "or", [false, 4, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0389", "db_id": "course_teach", "query": "select name from teacher where age = 32 or age = 33", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "32", "OR", "Age", "=", "33"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "age", "=", "value", "or", "age", "=", "value"], "question": "Show the name of teachers aged either 32 or 33?", "question_toks": ["Show", "the", "name", "of", "teachers", "aged", "either", "32", "or", "33", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 32.0, null], "or", [false, 2, [0, [0, 6, false], null], 33.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0390", "db_id": "course_teach", "query": "select name from teacher where age = 32 or age = 33", "query_toks": ["SELECT", "Name", "FROM", "teacher", "WHERE", "Age", "=", "32", "OR", "Age", "=", "33"], "query_toks_no_value": ["select", "name", "from", "teacher", "where", "age", "=", "value", "or", "age", "=", "value"], "question": "What are the names of the teachers who are aged either 32 or 33?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "who", "are", "aged", "either", "32", "or", "33", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 32.0, null], "or", [false, 2, [0, [0, 6, false], null], 33.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0323", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where template_type_code = \"pp\" or template_type_code = \"ppt\"", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "PP", "''", "OR", "template_type_code", "=", "``", "PPT", "''"], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "template_type_code", "=", "value", "or", "template_type_code", "=", "value"], "question": "What are the ids of templates with template type code PP or PPT?", "question_toks": ["What", "are", "the", "ids", "of", "templates", "with", "template", "type", "code", "PP", "or", "PPT", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"PP\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"PPT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0324", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates where template_type_code = \"pp\" or template_type_code = \"ppt\"", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "WHERE", "template_type_code", "=", "``", "PP", "''", "OR", "template_type_code", "=", "``", "PPT", "''"], "query_toks_no_value": ["select", "template_id", "from", "templates", "where", "template_type_code", "=", "value", "or", "template_type_code", "=", "value"], "question": "Return the ids of templates that have the code PP or PPT.", "question_toks": ["Return", "the", "ids", "of", "templates", "that", "have", "the", "code", "PP", "or", "PPT", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"PP\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"PPT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0962", "db_id": "dog_kennels", "query": "select email_address from professionals where state = 'hawaii' or state = 'wisconsin'", "query_toks": ["SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "'Hawaii", "'", "OR", "state", "=", "'Wisconsin", "'"], "query_toks_no_value": ["select", "email_address", "from", "professionals", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "List the emails of the professionals who live in the state of Hawaii or the state of Wisconsin.", "question_toks": ["List", "the", "emails", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Hawaii", "or", "the", "state", "of", "Wisconsin", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"Hawaii\"", null], "or", [false, 2, [0, [0, 38, false], null], "\"Wisconsin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0963", "db_id": "dog_kennels", "query": "select email_address from professionals where state = 'hawaii' or state = 'wisconsin'", "query_toks": ["SELECT", "email_address", "FROM", "Professionals", "WHERE", "state", "=", "'Hawaii", "'", "OR", "state", "=", "'Wisconsin", "'"], "query_toks_no_value": ["select", "email_address", "from", "professionals", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "What are the emails of the professionals living in either the state of Hawaii or the state of Wisconsin?", "question_toks": ["What", "are", "the", "emails", "of", "the", "professionals", "living", "in", "either", "the", "state", "of", "Hawaii", "or", "the", "state", "of", "Wisconsin", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 41, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"Hawaii\"", null], "or", [false, 2, [0, [0, 38, false], null], "\"Wisconsin\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0927", "db_id": "dog_kennels", "query": "select first_name from professionals union select first_name from owners except select name from dogs", "query_toks": ["SELECT", "first_name", "FROM", "Professionals", "UNION", "SELECT", "first_name", "FROM", "Owners", "EXCEPT", "SELECT", "name", "FROM", "Dogs"], "query_toks_no_value": ["select", "first_name", "from", "professionals", "union", "select", "first_name", "from", "owners", "except", "select", "name", "from", "dogs"], "question": "Find the first names that are used for professionals or owners but are not used as dog names.", "question_toks": ["Find", "the", "first", "names", "that", "are", "used", "for", "professionals", "or", "owners", "but", "are", "not", "used", "as", "dog", "names", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0255", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\" or t2.city = \"abilene\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.city", "=", "``", "Aberdeen", "''", "OR", "T2.city", "=", "``", "Abilene", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "or", "t2", ".", "city", "=", "value"], "question": "Find the number of flights landing in the city of Aberdeen or Abilene.", "question_toks": ["Find", "the", "number", "of", "flights", "landing", "in", "the", "city", "of", "Aberdeen", "or", "Abilene", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"Abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "OR_IN_NL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0256", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\" or t2.city = \"abilene\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Flights", "AS", "T1", "JOIN", "Airports", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.city", "=", "``", "Aberdeen", "''", "OR", "T2.city", "=", "``", "Abilene", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value", "or", "t2", ".", "city", "=", "value"], "question": "How many flights land in Aberdeen or Abilene?", "question_toks": ["How", "many", "flights", "land", "in", "Aberdeen", "or", "Abilene", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"Abilene\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "OR_IN_NL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0874", "db_id": "network_1", "query": "select count(*) from highschooler where grade = 9 or grade = 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Highschooler", "WHERE", "grade", "=", "9", "OR", "grade", "=", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "highschooler", "where", "grade", "=", "value", "or", "grade", "=", "value"], "question": "How many high schoolers are there in grade 9 or 10?", "question_toks": ["How", "many", "high", "schoolers", "are", "there", "in", "grade", "9", "or", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 9.0, null], "or", [false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0875", "db_id": "network_1", "query": "select count(*) from highschooler where grade = 9 or grade = 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Highschooler", "WHERE", "grade", "=", "9", "OR", "grade", "=", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "highschooler", "where", "grade", "=", "value", "or", "grade", "=", "value"], "question": "Count the number of high schoolers in grades 9 or 10.", "question_toks": ["Count", "the", "number", "of", "high", "schoolers", "in", "grades", "9", "or", "10", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 9.0, null], "or", [false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0858", "db_id": "orchestra", "query": "select count(*) from orchestra where major_record_format = \"cd\" or major_record_format = \"dvd\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "CD", "''", "OR", "Major_Record_Format", "=", "``", "DVD", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "orchestra", "where", "major_record_format", "=", "value", "or", "major_record_format", "=", "value"], "question": "Find the number of orchestras whose record format is \"CD\" or \"DVD\".", "question_toks": ["Find", "the", "number", "of", "orchestras", "whose", "record", "format", "is", "``", "CD", "''", "or", "``", "DVD", "''", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"CD\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"DVD\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0859", "db_id": "orchestra", "query": "select count(*) from orchestra where major_record_format = \"cd\" or major_record_format = \"dvd\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "orchestra", "WHERE", "Major_Record_Format", "=", "``", "CD", "''", "OR", "Major_Record_Format", "=", "``", "DVD", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "orchestra", "where", "major_record_format", "=", "value", "or", "major_record_format", "=", "value"], "question": "Count the number of orchestras that have CD or DVD as their record format.", "question_toks": ["Count", "the", "number", "of", "orchestras", "that", "have", "CD", "or", "DVD", "as", "their", "record", "format", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"CD\"", null], "or", [false, 2, [0, [0, 11, false], null], "\"DVD\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1033", "db_id": "real_estate_properties", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "union", "select", "property_name", "from", "properties", "where", "property_type_code", "=", "value", "and", "room_count", ">", "value"], "question": "What are the names of properties that are either houses or apartments with more than 1 room?", "question_toks": ["What", "are", "the", "names", "of", "properties", "that", "are", "either", "houses", "or", "apartments", "with", "more", "than", "1", "room", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"House\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Apartment\"", null], "and", [false, 3, [0, [0, 15, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1008", "db_id": "singer", "query": "select name from singer where birth_year = 1948 or birth_year = 1949", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value"], "question": "Show the name of singers whose birth year is either 1948 or 1949?", "question_toks": ["Show", "the", "name", "of", "singers", "whose", "birth", "year", "is", "either", "1948", "or", "1949", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1948.0, null], "or", [false, 2, [0, [0, 3, false], null], 1949.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1009", "db_id": "singer", "query": "select name from singer where birth_year = 1948 or birth_year = 1949", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Birth_Year", "=", "1948", "OR", "Birth_Year", "=", "1949"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "birth_year", "=", "value", "or", "birth_year", "=", "value"], "question": "What are the names of the singers whose birth years are either 1948 or 1949?", "question_toks": ["What", "are", "the", "names", "of", "the", "singers", "whose", "birth", "years", "are", "either", "1948", "or", "1949", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1948.0, null], "or", [false, 2, [0, [0, 3, false], null], 1949.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0583", "db_id": "student_transcripts_tracking", "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' or t1.cell_mobile_number = '09700166582'", "query_toks": ["select", "t1.first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1.permanent_address_id", "=", "t2.address_id", "where", "t2.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\""], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value", "or", "t1", ".", "cell_mobile_number", "=", "value"], "question": "Find the first name of the students who permanently live in the country Haiti or have the cell phone number 09700166582 .", "question_toks": ["Find", "the", "first", "name", "of", "the", "students", "who", "permanently", "live", "in", "the", "country", "Haiti", "or", "have", "the", "cell", "phone", "number", "09700166582", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"haiti\"", null], "or", [false, 2, [0, [0, 38, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "OR_IN_NL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0584", "db_id": "student_transcripts_tracking", "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' or t1.cell_mobile_number = '09700166582'", "query_toks": ["select", "t1.first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1.permanent_address_id", "=", "t2.address_id", "where", "t2.country", "=", "\"haiti\"", "or", "t1.cell_mobile_number", "=", "\"09700166582\""], "query_toks_no_value": ["select", "t1", ".", "first_name", "from", "students", "as", "t1", "join", "addresses", "as", "t2", "on", "t1", ".", "permanent_address_id", "=", "t2", ".", "address_id", "where", "t2", ".", "country", "=", "value", "or", "t1", ".", "cell_mobile_number", "=", "value"], "question": "What are the first names of the students who live in Haiti permanently or have the cell phone number 09700166582 ?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "students", "who", "live", "in", "Haiti", "permanently", "or", "have", "the", "cell", "phone", "number", "09700166582", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"haiti\"", null], "or", [false, 2, [0, [0, 38, false], null], "\"09700166582\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "OR_IN_NL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0593", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\" or directed_by = \"brandon vietti\";", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", "OR", "Directed_by", "=", "``", "Brandon", "Vietti", "''", ";"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value", "or", "directed_by", "=", "value"], "question": "List the title of all cartoon directed by \"Ben Jones\" or \"Brandon Vietti\".", "question_toks": ["List", "the", "title", "of", "all", "cartoon", "directed", "by", "``", "Ben", "Jones", "''", "or", "``", "Brandon", "Vietti", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"Brandon Vietti\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0594", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\" or directed_by = \"brandon vietti\";", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", "OR", "Directed_by", "=", "``", "Brandon", "Vietti", "''", ";"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value", "or", "directed_by", "=", "value"], "question": "What are the titles of all cartoons directed by Ben Jones or Brandon Vietti?", "question_toks": ["What", "are", "the", "titles", "of", "all", "cartoons", "directed", "by", "Ben", "Jones", "or", "Brandon", "Vietti", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"Brandon Vietti\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0696", "db_id": "voter_1", "query": "select count(*) from votes where state = 'ny' or state = 'ca'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "votes", "WHERE", "state", "=", "'NY", "'", "OR", "state", "=", "'CA", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "votes", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "What are the number of votes from state 'NY' or 'CA'?", "question_toks": ["What", "are", "the", "number", "of", "votes", "from", "state", "'NY", "'", "or", "'CA", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"NY\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"CA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0752", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "or", "t2", ".", "language", "=", "value"], "question": "What are the regions that use English or Dutch?", "question_toks": ["What", "are", "the", "regions", "that", "use", "English", "or", "Dutch", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"Dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0753", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "region", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "or", "t2", ".", "language", "=", "value"], "question": "Which regions speak Dutch or English?", "question_toks": ["Which", "regions", "speak", "Dutch", "or", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"Dutch\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0754", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"t\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"t\"", "query_toks": ["select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"english\"", "and", "isofficial", "=", "\"t\"", "union", "select", "t1.name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1.code", "=", "t2.countrycode", "where", "t2.language", "=", "\"dutch\"", "and", "isofficial", "=", "\"t\""], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where either English or Dutch is the official language ?", "question_toks": ["What", "are", "the", "countries", "where", "either", "English", "or", "Dutch", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "_BINARY_POSITIVE_VALUE", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0755", "db_id": "world_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "*", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "Which countries have either English or Dutch as an official language?", "question_toks": ["Which", "countries", "have", "either", "English", "or", "Dutch", "as", "an", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"English\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "_BINARY_POSITIVE_VALUE", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0449", "db_id": "wta_1", "query": "select count(*) from matches where year = 2013 or year = 2016", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "OR", "YEAR", "=", "2016"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "matches", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "List the number of all matches who played in years of 2013 or 2016.", "question_toks": ["List", "the", "number", "of", "all", "matches", "who", "played", "in", "years", "of", "2013", "or", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null], "or", [false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0450", "db_id": "wta_1", "query": "select count(*) from matches where year = 2013 or year = 2016", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "matches", "WHERE", "YEAR", "=", "2013", "OR", "YEAR", "=", "2016"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "matches", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "How many matches were played in 2013 or 2016?", "question_toks": ["How", "many", "matches", "were", "played", "in", "2013", "or", "2016", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], 2013.0, null], "or", [false, 2, [0, [0, 38, false], null], 2016.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6795", "db_id": "activity_1", "query": "select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = 'canoeing' or t3.activity_name = 'kayaking'", "query_toks": ["SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value"], "question": "Find the first names of the faculty members who are playing Canoeing or Kayaking.", "question_toks": ["Find", "the", "first", "names", "of", "the", "faculty", "members", "who", "are", "playing", "Canoeing", "or", "Kayaking", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Canoeing\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6796", "db_id": "activity_1", "query": "select distinct t1.lname from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t2.actid = t2.actid where t3.activity_name = 'canoeing' or t3.activity_name = 'kayaking'", "query_toks": ["SELECT", "DISTINCT", "T1.lname", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "activity", "AS", "T3", "ON", "T2.actid", "=", "T2.actid", "WHERE", "T3.activity_name", "=", "'Canoeing", "'", "OR", "T3.activity_name", "=", "'Kayaking", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t2", ".", "actid", "=", "t2", ".", "actid", "where", "t3", ".", "activity_name", "=", "value", "or", "t3", ".", "activity_name", "=", "value"], "question": "Which faculty members are playing either Canoeing or Kayaking? Tell me their first names.", "question_toks": ["Which", "faculty", "members", "are", "playing", "either", "Canoeing", "or", "Kayaking", "?", "Tell", "me", "their", "first", "names", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Canoeing\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Kayaking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0481", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"hkg\" or city_code = \"chi\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "city_code", "=", "``", "HKG", "''", "OR", "city_code", "=", "``", "CHI", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "city_code", "=", "value", "or", "city_code", "=", "value"], "question": "How many students live in HKG or CHI?", "question_toks": ["How", "many", "students", "live", "in", "HKG", "or", "CHI", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"HKG\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"CHI\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0482", "db_id": "allergy_1", "query": "select count(*) from student where city_code = \"hkg\" or city_code = \"chi\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "city_code", "=", "``", "HKG", "''", "OR", "city_code", "=", "``", "CHI", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "city_code", "=", "value", "or", "city_code", "=", "value"], "question": "Give the number of students living in either HKG or CHI.", "question_toks": ["Give", "the", "number", "of", "students", "living", "in", "either", "HKG", "or", "CHI", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"HKG\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"CHI\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0509", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\" and t1.allergy = \"milk\" or t1.allergy = \"eggs\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value"], "question": "How many female students have milk or egg allergies?", "question_toks": ["How", "many", "female", "students", "have", "milk", "or", "egg", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Eggs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0510", "db_id": "allergy_1", "query": "select count(*) from has_allergy as t1 join student as t2 on t1.stuid = t2.stuid where t2.sex = \"f\" and t1.allergy = \"milk\" or t1.allergy = \"eggs\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "has_allergy", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T2.sex", "=", "``", "F", "''", "AND", "T1.allergy", "=", "``", "Milk", "''", "OR", "T1.allergy", "=", "``", "Eggs", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "has_allergy", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "sex", "=", "value", "and", "t1", ".", "allergy", "=", "value", "or", "t1", ".", "allergy", "=", "value"], "question": "How many students who are female are allergic to milk or eggs?", "question_toks": ["How", "many", "students", "who", "are", "female", "are", "allergic", "to", "milk", "or", "eggs", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Eggs\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6952", "db_id": "architecture", "query": "select distinct t1.type from mill as t1 join architect as t2 on t1.architect_id = t2.id where t2.nationality = 'american' or t2.nationality = 'canadian'", "query_toks": ["SELECT", "DISTINCT", "T1.type", "FROM", "mill", "AS", "T1", "JOIN", "architect", "AS", "t2", "ON", "T1.architect_id", "=", "T2.id", "WHERE", "T2.nationality", "=", "'American", "'", "OR", "T2.nationality", "=", "'Canadian", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "type", "from", "mill", "as", "t1", "join", "architect", "as", "t2", "on", "t1", ".", "architect_id", "=", "t2", ".", "id", "where", "t2", ".", "nationality", "=", "value", "or", "t2", ".", "nationality", "=", "value"], "question": "What are the distinct types of mills that are built by American or Canadian architects?", "question_toks": ["What", "are", "the", "distinct", "types", "of", "mills", "that", "are", "built", "by", "American", "or", "Canadian", "architects", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"American\"", null], "or", [false, 2, [0, [0, 3, false], null], "\"Canadian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6956", "db_id": "architecture", "query": "select location from bridge where name = 'kolob arch' or name = 'rainbow bridge'", "query_toks": ["SELECT", "LOCATION", "FROM", "bridge", "WHERE", "name", "=", "'Kolob", "Arch", "'", "OR", "name", "=", "'Rainbow", "Bridge", "'"], "query_toks_no_value": ["select", "location", "from", "bridge", "where", "name", "=", "value", "or", "name", "=", "value"], "question": "What is the location of the bridge named 'Kolob Arch' or 'Rainbow Bridge'?", "question_toks": ["What", "is", "the", "location", "of", "the", "bridge", "named", "'Kolob", "Arch", "'", "or", "'Rainbow", "Bridge", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Kolob Arch\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"Rainbow Bridge\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3129", "db_id": "assets_maintenance", "query": "select t1.company_id , t1.company_name from third_party_companies as t1 join maintenance_engineers as t2 on t1.company_id = t2.company_id group by t1.company_id having count(*) >= 2 union select t3.company_id , t3.company_name from third_party_companies as t3 join maintenance_contracts as t4 on t3.company_id = t4.maintenance_contract_company_id group by t3.company_id having count(*) >= 2", "query_toks": ["SELECT", "T1.company_id", ",", "T1.company_name", "FROM", "Third_Party_Companies", "AS", "T1", "JOIN", "Maintenance_Engineers", "AS", "T2", "ON", "T1.company_id", "=", "T2.company_id", "GROUP", "BY", "T1.company_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "UNION", "SELECT", "T3.company_id", ",", "T3.company_name", "FROM", "Third_Party_Companies", "AS", "T3", "JOIN", "Maintenance_Contracts", "AS", "T4", "ON", "T3.company_id", "=", "T4.maintenance_contract_company_id", "GROUP", "BY", "T3.company_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "company_id", ",", "t1", ".", "company_name", "from", "third_party_companies", "as", "t1", "join", "maintenance_engineers", "as", "t2", "on", "t1", ".", "company_id", "=", "t2", ".", "company_id", "group", "by", "t1", ".", "company_id", "having", "count", "(", "*", ")", ">", "=", "value", "union", "select", "t3", ".", "company_id", ",", "t3", ".", "company_name", "from", "third_party_companies", "as", "t3", "join", "maintenance_contracts", "as", "t4", "on", "t3", ".", "company_id", "=", "t4", ".", "maintenance_contract_company_id", "group", "by", "t3", ".", "company_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Which third party companies have at least 2 maintenance engineers or have at least 2 maintenance contracts? List the company id and name.", "question_toks": ["Which", "third", "party", "companies", "have", "at", "least", "2", "maintenance", "engineers", "or", "have", "at", "least", "2", "maintenance", "contracts", "?", "List", "the", "company", "id", "and", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 35, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["_AND_WITH_OR_COLUMN_REMOVED", "OR_IN_NL", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2334", "db_id": "csu_1", "query": "select campus from campuses where location = \"northridge\" and county = \"los angeles\" union select campus from campuses where location = \"san francisco\" and county = \"san francisco\"", "query_toks": ["SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "Northridge", "''", "AND", "county", "=", "``", "Los", "Angeles", "''", "UNION", "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "San", "Francisco", "''", "AND", "county", "=", "``", "San", "Francisco", "''"], "query_toks_no_value": ["select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value", "union", "select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value"], "question": "Find the name of the campuses that is in Northridge, Los Angeles or in San Francisco, San Francisco.", "question_toks": ["Find", "the", "name", "of", "the", "campuses", "that", "is", "in", "Northridge", ",", "Los", "Angeles", "or", "in", "San", "Francisco", ",", "San", "Francisco", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Northridge\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"San Francisco\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2335", "db_id": "csu_1", "query": "select campus from campuses where location = \"northridge\" and county = \"los angeles\" union select campus from campuses where location = \"san francisco\" and county = \"san francisco\"", "query_toks": ["SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "Northridge", "''", "AND", "county", "=", "``", "Los", "Angeles", "''", "UNION", "SELECT", "campus", "FROM", "campuses", "WHERE", "LOCATION", "=", "``", "San", "Francisco", "''", "AND", "county", "=", "``", "San", "Francisco", "''"], "query_toks_no_value": ["select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value", "union", "select", "campus", "from", "campuses", "where", "location", "=", "value", "and", "county", "=", "value"], "question": "What campuses are located in Northridge, Los Angeles or in San Francisco, San Francisco?", "question_toks": ["What", "campuses", "are", "located", "in", "Northridge", ",", "Los", "Angeles", "or", "in", "San", "Francisco", ",", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Northridge\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"Los Angeles\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"San Francisco\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1496", "db_id": "debate", "query": "select name from people where age = 35 or age = 36", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "Age", "=", "35", "OR", "Age", "=", "36"], "query_toks_no_value": ["select", "name", "from", "people", "where", "age", "=", "value", "or", "age", "=", "value"], "question": "Show the names of people aged either 35 or 36.", "question_toks": ["Show", "the", "names", "of", "people", "aged", "either", "35", "or", "36", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], 35.0, null], "or", [false, 2, [0, [0, 5, false], null], 36.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0653", "db_id": "journal_committee", "query": "select name from editor where age = 24 or age = 25", "query_toks": ["SELECT", "Name", "FROM", "editor", "WHERE", "Age", "=", "24", "OR", "Age", "=", "25"], "query_toks_no_value": ["select", "name", "from", "editor", "where", "age", "=", "value", "or", "age", "=", "value"], "question": "Show the names of editors of age either 24 or 25.", "question_toks": ["Show", "the", "names", "of", "editors", "of", "age", "either", "24", "or", "25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 24.0, null], "or", [false, 2, [0, [0, 7, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3035", "db_id": "loan_1", "query": "select sum(acc_bal) from customer where state = 'utah' or state = 'texas'", "query_toks": ["SELECT", "sum", "(", "acc_bal", ")", "FROM", "customer", "WHERE", "state", "=", "'Utah", "'", "OR", "state", "=", "'Texas", "'"], "query_toks_no_value": ["select", "sum", "(", "acc_bal", ")", "from", "customer", "where", "state", "=", "value", "or", "state", "=", "value"], "question": "What are the total account balances for each customer from Utah or Texas?", "question_toks": ["What", "are", "the", "total", "account", "balances", "for", "each", "customer", "from", "Utah", "or", "Texas", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Utah\"", null], "or", [false, 2, [0, [0, 13, false], null], "\"Texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3591", "db_id": "music_1", "query": "select song_name from song where genre_is = \"modern\" or languages = \"english\"", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''", "OR", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "genre_is", "=", "value", "or", "languages", "=", "value"], "question": "Find the names of songs whose genre is modern or language is English.", "question_toks": ["Find", "the", "names", "of", "songs", "whose", "genre", "is", "modern", "or", "language", "is", "English", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"modern\"", null], "or", [false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3592", "db_id": "music_1", "query": "select song_name from song where genre_is = \"modern\" or languages = \"english\"", "query_toks": ["SELECT", "song_name", "FROM", "song", "WHERE", "genre_is", "=", "``", "modern", "''", "OR", "languages", "=", "``", "english", "''"], "query_toks_no_value": ["select", "song_name", "from", "song", "where", "genre_is", "=", "value", "or", "languages", "=", "value"], "question": "What are the names of the songs that are modern or sung in English?", "question_toks": ["What", "are", "the", "names", "of", "the", "songs", "that", "are", "modern", "or", "sung", "in", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"modern\"", null], "or", [false, 2, [0, [0, 19, false], null], "\"english\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3581", "db_id": "music_1", "query": "select f_id from files where formats = \"mp4\" union select f_id from song where resolution > 720", "query_toks": ["SELECT", "f_id", "FROM", "files", "WHERE", "formats", "=", "``", "mp4", "''", "UNION", "SELECT", "f_id", "FROM", "song", "WHERE", "resolution", ">", "720"], "query_toks_no_value": ["select", "f_id", "from", "files", "where", "formats", "=", "value", "union", "select", "f_id", "from", "song", "where", "resolution", ">", "value"], "question": "What are the ids of songs that are available in either mp4 format or have resolution above 720?", "question_toks": ["What", "are", "the", "ids", "of", "songs", "that", "are", "available", "in", "either", "mp4", "format", "or", "have", "resolution", "above", "720", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"mp4\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 21, false], null], 720.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3762", "db_id": "program_share", "query": "select name from channel where owner = 'cctv' or owner = 'hbs'", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'", "OR", "OWNER", "=", "'HBS", "'"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "=", "value", "or", "owner", "=", "value"], "question": "What are the names of the channels owned by CCTV or HBS?", "question_toks": ["What", "are", "the", "names", "of", "the", "channels", "owned", "by", "CCTV", "or", "HBS", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"CCTV\"", null], "or", [false, 2, [0, [0, 8, false], null], "\"HBS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3763", "db_id": "program_share", "query": "select name from channel where owner = 'cctv' or owner = 'hbs'", "query_toks": ["SELECT", "name", "FROM", "channel", "WHERE", "OWNER", "=", "'CCTV", "'", "OR", "OWNER", "=", "'HBS", "'"], "query_toks_no_value": ["select", "name", "from", "channel", "where", "owner", "=", "value", "or", "owner", "=", "value"], "question": "List the names of all the channels owned by either CCTV or HBS", "question_toks": ["List", "the", "names", "of", "all", "the", "channels", "owned", "by", "either", "CCTV", "or", "HBS"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"CCTV\"", null], "or", [false, 2, [0, [0, 8, false], null], "\"HBS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1914", "db_id": "protein_institute", "query": "select count(*) from building where height_feet > (select avg(height_feet) from building) or floors > (select avg(floors) from building)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "building", "WHERE", "height_feet", ">", "(", "SELECT", "avg", "(", "height_feet", ")", "FROM", "building", ")", "OR", "floors", ">", "(", "SELECT", "avg", "(", "floors", ")", "FROM", "building", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "building", "where", "height_feet", ">", "(", "select", "avg", "(", "height_feet", ")", "from", "building", ")", "or", "floors", ">", "(", "select", "avg", "(", "floors", ")", "from", "building", ")"], "question": "Show the number of buildings with a height above the average or a number of floors above the average.", "question_toks": ["Show", "the", "number", "of", "buildings", "with", "a", "height", "above", "the", "average", "or", "a", "number", "of", "floors", "above", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "or", [false, 3, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6772", "db_id": "activity_1", "query": "select facid from faculty except select facid from faculty_participates_in", "query_toks": ["SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "FacID", "FROM", "Faculty_participates_in"], "query_toks_no_value": ["select", "facid", "from", "faculty", "except", "select", "facid", "from", "faculty_participates_in"], "question": "Which faculty do not participate in any activity? Find their faculty ids.", "question_toks": ["Which", "faculty", "do", "not", "participate", "in", "any", "activity", "?", "Find", "their", "faculty", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6763", "db_id": "activity_1", "query": "select facid from faculty except select advisor from student", "query_toks": ["SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "advisor", "FROM", "Student"], "query_toks_no_value": ["select", "facid", "from", "faculty", "except", "select", "advisor", "from", "student"], "question": "Show ids for the faculty members who don't advise any student.", "question_toks": ["Show", "ids", "for", "the", "faculty", "members", "who", "do", "n't", "advise", "any", "student", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6771", "db_id": "activity_1", "query": "select facid from faculty except select facid from faculty_participates_in", "query_toks": ["SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "FacID", "FROM", "Faculty_participates_in"], "query_toks_no_value": ["select", "facid", "from", "faculty", "except", "select", "facid", "from", "faculty_participates_in"], "question": "Show the ids of the faculty who don't participate in any activity.", "question_toks": ["Show", "the", "ids", "of", "the", "faculty", "who", "do", "n't", "participate", "in", "any", "activity", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6787", "db_id": "activity_1", "query": "select stuid from student except select stuid from participates_in", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Participates_in"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "participates_in"], "question": "Show the ids of the students who don't participate in any activity.", "question_toks": ["Show", "the", "ids", "of", "the", "students", "who", "do", "n't", "participate", "in", "any", "activity", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6788", "db_id": "activity_1", "query": "select stuid from student except select stuid from participates_in", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Participates_in"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "participates_in"], "question": "What are the ids of the students who are not involved in any activity", "question_toks": ["What", "are", "the", "ids", "of", "the", "students", "who", "are", "not", "involved", "in", "any", "activity"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6764", "db_id": "activity_1", "query": "select facid from faculty except select advisor from student", "query_toks": ["SELECT", "FacID", "FROM", "Faculty", "EXCEPT", "SELECT", "advisor", "FROM", "Student"], "query_toks_no_value": ["select", "facid", "from", "faculty", "except", "select", "advisor", "from", "student"], "question": "What are the ids of the faculty members who do not advise any student.", "question_toks": ["What", "are", "the", "ids", "of", "the", "faculty", "members", "who", "do", "not", "advise", "any", "student", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4831", "db_id": "aircraft", "query": "select aircraft from aircraft where aircraft_id not in (select winning_aircraft from match)", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft", "WHERE", "Aircraft_ID", "NOT", "IN", "(", "SELECT", "Winning_Aircraft", "FROM", "MATCH", ")"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft", "where", "aircraft_id", "not", "in", "(", "select", "winning_aircraft", "from", "match", ")"], "question": "List the names of aircrafts and that did not win any match.", "question_toks": ["List", "the", "names", "of", "aircrafts", "and", "that", "did", "not", "win", "any", "match", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4842", "db_id": "aircraft", "query": "select name from pilot where pilot_id not in (select winning_pilot from match where country = 'australia')", "query_toks": ["SELECT", "name", "FROM", "pilot", "WHERE", "pilot_id", "NOT", "IN", "(", "SELECT", "Winning_Pilot", "FROM", "MATCH", "WHERE", "country", "=", "'Australia", "'", ")"], "query_toks_no_value": ["select", "name", "from", "pilot", "where", "pilot_id", "not", "in", "(", "select", "winning_pilot", "from", "match", "where", "country", "=", "value", ")"], "question": "What are the names of the pilots that have not won any matches in Australia?", "question_toks": ["What", "are", "the", "names", "of", "the", "pilots", "that", "have", "not", "won", "any", "matches", "in", "Australia", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Australia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4832", "db_id": "aircraft", "query": "select aircraft from aircraft where aircraft_id not in (select winning_aircraft from match)", "query_toks": ["SELECT", "Aircraft", "FROM", "aircraft", "WHERE", "Aircraft_ID", "NOT", "IN", "(", "SELECT", "Winning_Aircraft", "FROM", "MATCH", ")"], "query_toks_no_value": ["select", "aircraft", "from", "aircraft", "where", "aircraft_id", "not", "in", "(", "select", "winning_aircraft", "from", "match", ")"], "question": "What are the names of all aicrafts that have never won any match?", "question_toks": ["What", "are", "the", "names", "of", "all", "aicrafts", "that", "have", "never", "won", "any", "match", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0507", "db_id": "allergy_1", "query": "select stuid from student except select stuid from has_allergy", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Has_allergy"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "has_allergy"], "question": "What are the student ids of students who don't have any allergies?", "question_toks": ["What", "are", "the", "student", "ids", "of", "students", "who", "do", "n't", "have", "any", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0527", "db_id": "allergy_1", "query": "select fname , lname from student where stuid not in (select t1.stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")"], "question": "List the first and last name of the students who do not have any food type allergy.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "the", "students", "who", "do", "not", "have", "any", "food", "type", "allergy", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0528", "db_id": "allergy_1", "query": "select fname , lname from student where stuid not in (select t1.stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "Student", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "T1.StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "stuid", "not", "in", "(", "select", "t1", ".", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")"], "question": "What is the full name of each student who is not allergic to any type of food.", "question_toks": ["What", "is", "the", "full", "name", "of", "each", "student", "who", "is", "not", "allergic", "to", "any", "type", "of", "food", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3156", "db_id": "assets_maintenance", "query": "select asset_model from assets where asset_id not in (select asset_id from fault_log)", "query_toks": ["SELECT", "asset_model", "FROM", "Assets", "WHERE", "asset_id", "NOT", "IN", "(", "SELECT", "asset_id", "FROM", "Fault_Log", ")"], "query_toks_no_value": ["select", "asset_model", "from", "assets", "where", "asset_id", "not", "in", "(", "select", "asset_id", "from", "fault_log", ")"], "question": "Which assets did not incur any fault log? List the asset model.", "question_toks": ["Which", "assets", "did", "not", "incur", "any", "fault", "log", "?", "List", "the", "asset", "model", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[true, 8, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 9]], "conds": []}, "select": [false, [[0, [0, [0, 42, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3130", "db_id": "assets_maintenance", "query": "select t1.staff_name , t1.staff_id from staff as t1 join fault_log as t2 on t1.staff_id = t2.recorded_by_staff_id except select t3.staff_name , t3.staff_id from staff as t3 join engineer_visits as t4 on t3.staff_id = t4.contact_staff_id", "query_toks": ["SELECT", "T1.staff_name", ",", "T1.staff_id", "FROM", "Staff", "AS", "T1", "JOIN", "Fault_Log", "AS", "T2", "ON", "T1.staff_id", "=", "T2.recorded_by_staff_id", "EXCEPT", "SELECT", "T3.staff_name", ",", "T3.staff_id", "FROM", "Staff", "AS", "T3", "JOIN", "Engineer_Visits", "AS", "T4", "ON", "T3.staff_id", "=", "T4.contact_staff_id"], "query_toks_no_value": ["select", "t1", ".", "staff_name", ",", "t1", ".", "staff_id", "from", "staff", "as", "t1", "join", "fault_log", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "recorded_by_staff_id", "except", "select", "t3", ".", "staff_name", ",", "t3", ".", "staff_id", "from", "staff", "as", "t3", "join", "engineer_visits", "as", "t4", "on", "t3", ".", "staff_id", "=", "t4", ".", "contact_staff_id"], "question": "What is the name and id of the staff who recorded the fault log but has not contacted any visiting engineers?", "question_toks": ["What", "is", "the", "name", "and", "id", "of", "the", "staff", "who", "recorded", "the", "fault", "log", "but", "has", "not", "contacted", "any", "visiting", "engineers", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 43, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 48, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3123", "db_id": "behavior_monitoring", "query": "select count(*) from students where student_id not in ( select student_id from behavior_incident )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "STUDENTS", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Behavior_Incident", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "behavior_incident", ")"], "question": "How many students are not involved in any behavior incident?", "question_toks": ["How", "many", "students", "are", "not", "involved", "in", "any", "behavior", "incident", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 16, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3124", "db_id": "behavior_monitoring", "query": "select last_name from teachers except select t1.last_name from teachers as t1 join detention as t2 on t1.teacher_id = t2.teacher_id", "query_toks": ["SELECT", "last_name", "FROM", "Teachers", "EXCEPT", "SELECT", "T1.last_name", "FROM", "Teachers", "AS", "T1", "JOIN", "Detention", "AS", "T2", "ON", "T1.teacher_id", "=", "T2.teacher_id"], "query_toks_no_value": ["select", "last_name", "from", "teachers", "except", "select", "t1", ".", "last_name", "from", "teachers", "as", "t1", "join", "detention", "as", "t2", "on", "t1", ".", "teacher_id", "=", "t2", ".", "teacher_id"], "question": "Find the last names of teachers who are not involved in any detention.", "question_toks": ["Find", "the", "last", "names", "of", "teachers", "who", "are", "not", "involved", "in", "any", "detention", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 26, false], null], [0, 51, false], null]]}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0152", "db_id": "bike_1", "query": "select avg(long) from station where id not in (select station_id from status group by station_id having max(bikes_available) > 10)", "query_toks": ["SELECT", "avg", "(", "long", ")", "FROM", "station", "WHERE", "id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "max", "(", "bikes_available", ")", ">", "10", ")"], "query_toks_no_value": ["select", "avg", "(", "long", ")", "from", "station", "where", "id", "not", "in", "(", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "max", "(", "bikes_available", ")", ">", "value", ")"], "question": "What is the mean longitude for all stations that have never had more than 10 bikes available?", "question_toks": ["What", "is", "the", "mean", "longitude", "for", "all", "stations", "that", "have", "never", "had", "more", "than", "10", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [1, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0172", "db_id": "bike_1", "query": "select t1.name from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(bikes_available) > 10 except select name from station where city = \"san jose\"", "query_toks": ["SELECT", "T1.name", "FROM", "station", "AS", "T1", "JOIN", "status", "AS", "T2", "ON", "T1.id", "=", "T2.station_id", "GROUP", "BY", "T2.station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10", "EXCEPT", "SELECT", "name", "FROM", "station", "WHERE", "city", "=", "``", "San", "Jose", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value", "except", "select", "name", "from", "station", "where", "city", "=", "value"], "question": "What are the names of all stations that have more than 10 bikes available and are not located in San Jose?", "question_toks": ["What", "are", "the", "names", "of", "all", "stations", "that", "have", "more", "than", "10", "bikes", "available", "and", "are", "not", "located", "in", "San", "Jose", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Jose\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["HIDDEN_AVG", "_NEGATION_ALL", "VALUES_WITHOUT_COLUMNS", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0195", "db_id": "bike_1", "query": "select distinct zip_code from weather except select distinct zip_code from weather where max_dew_point_f >= 70", "query_toks": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "max_dew_point_f", ">", "=", "70"], "query_toks_no_value": ["select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "max_dew_point_f", ">", "=", "value"], "question": "Find all the zip codes in which the max dew point have never reached 70.", "question_toks": ["Find", "all", "the", "zip", "codes", "in", "which", "the", "max", "dew", "point", "have", "never", "reached", "70", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 27, false], null], 70.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "AGGREGATION_IN_COLUMN", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0887", "db_id": "chinook_1", "query": "select count(*) from artist where artistid not in(select artistid from album)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "ARTIST", "WHERE", "artistid", "NOT", "IN", "(", "SELECT", "artistid", "FROM", "ALBUM", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "artist", "where", "artistid", "not", "in", "(", "select", "artistid", "from", "album", ")"], "question": "How many artists do not have any album?", "question_toks": ["How", "many", "artists", "do", "not", "have", "any", "album", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0877", "db_id": "chinook_1", "query": "select name from artist except select t2.name from album as t1 join artist as t2 on t1.artistid = t2.artistid", "query_toks": ["SELECT", "Name", "FROM", "ARTIST", "EXCEPT", "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId"], "query_toks_no_value": ["select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid"], "question": "Find the names of artists that do not have any albums.", "question_toks": ["Find", "the", "names", "of", "artists", "that", "do", "not", "have", "any", "albums", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0878", "db_id": "chinook_1", "query": "select name from artist except select t2.name from album as t1 join artist as t2 on t1.artistid = t2.artistid", "query_toks": ["SELECT", "Name", "FROM", "ARTIST", "EXCEPT", "SELECT", "T2.Name", "FROM", "ALBUM", "AS", "T1", "JOIN", "ARTIST", "AS", "T2", "ON", "T1.ArtistId", "=", "T2.ArtistId"], "query_toks_no_value": ["select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid"], "question": "What are the names of artists who have not released any albums?", "question_toks": ["What", "are", "the", "names", "of", "artists", "who", "have", "not", "released", "any", "albums", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0857", "db_id": "chinook_1", "query": "select lastname from customer except select t1.lastname from customer as t1 join invoice as t2 on t1.customerid = t2.customerid where t2.total > 20", "query_toks": ["SELECT", "LastName", "FROM", "CUSTOMER", "EXCEPT", "SELECT", "T1.LastName", "FROM", "CUSTOMER", "AS", "T1", "JOIN", "Invoice", "AS", "T2", "ON", "T1.CustomerId", "=", "T2.CustomerId", "WHERE", "T2.total", ">", "20"], "query_toks_no_value": ["select", "lastname", "from", "customer", "except", "select", "t1", ".", "lastname", "from", "customer", "as", "t1", "join", "invoice", "as", "t2", "on", "t1", ".", "customerid", "=", "t2", ".", "customerid", "where", "t2", ".", "total", ">", "value"], "question": "Find all the customer last names that do not have invoice totals larger than 20.", "question_toks": ["Find", "all", "the", "customer", "last", "names", "that", "do", "not", "have", "invoice", "totals", "larger", "than", "20", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 37, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 3, [0, [0, 44, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ALL", "AGGREGATION_IN_COLUMN", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1954", "db_id": "cinema", "query": "select title , directed_by from film where film_id not in (select film_id from schedule)", "query_toks": ["SELECT", "title", ",", "directed_by", "FROM", "film", "WHERE", "film_id", "NOT", "IN", "(", "SELECT", "film_id", "FROM", "schedule", ")"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "schedule", ")"], "question": "What are the title and director of the films without any schedule?", "question_toks": ["What", "are", "the", "title", "and", "director", "of", "the", "films", "without", "any", "schedule", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1930", "db_id": "cinema", "query": "select location from cinema except select location from cinema where capacity > 800", "query_toks": ["SELECT", "LOCATION", "FROM", "cinema", "EXCEPT", "SELECT", "LOCATION", "FROM", "cinema", "WHERE", "capacity", ">", "800"], "query_toks_no_value": ["select", "location", "from", "cinema", "except", "select", "location", "from", "cinema", "where", "capacity", ">", "value"], "question": "Show all the locations where no cinema has capacity over 800.", "question_toks": ["Show", "all", "the", "locations", "where", "no", "cinema", "has", "capacity", "over", "800", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 800.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1142", "db_id": "climbing", "query": "select name from mountain where mountain_id not in (select mountain_id from climber)", "query_toks": ["SELECT", "Name", "FROM", "mountain", "WHERE", "Mountain_ID", "NOT", "IN", "(", "SELECT", "Mountain_ID", "FROM", "climber", ")"], "query_toks_no_value": ["select", "name", "from", "mountain", "where", "mountain_id", "not", "in", "(", "select", "mountain_id", "from", "climber", ")"], "question": "List the names of mountains that do not have any climber.", "question_toks": ["List", "the", "names", "of", "mountains", "that", "do", "not", "have", "any", "climber", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0798", "db_id": "coffee_shop", "query": "select address from member except select address from member where membership_card = 'black'", "query_toks": ["SELECT", "address", "FROM", "member", "EXCEPT", "SELECT", "address", "FROM", "member", "WHERE", "Membership_card", "=", "'Black", "'"], "query_toks_no_value": ["select", "address", "from", "member", "except", "select", "address", "from", "member", "where", "membership_card", "=", "value"], "question": "Which address do not have any member with the black membership card?", "question_toks": ["Which", "address", "do", "not", "have", "any", "member", "with", "the", "black", "membership", "card", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Black\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0802", "db_id": "coffee_shop", "query": "select address , num_of_staff from shop where shop_id not in (select shop_id from happy_hour)", "query_toks": ["SELECT", "address", ",", "num_of_staff", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "happy_hour", ")"], "query_toks_no_value": ["select", "address", ",", "num_of_staff", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "happy_hour", ")"], "question": "Find the address and staff number of the shops that do not have any happy hour.", "question_toks": ["Find", "the", "address", "and", "staff", "number", "of", "the", "shops", "that", "do", "not", "have", "any", "happy", "hour", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3274", "db_id": "college_1", "query": "select emp_fname from employee where emp_jobcode = 'prof' except select t1.emp_fname from employee as t1 join class as t2 on t1.emp_num = t2.prof_num", "query_toks": ["SELECT", "emp_fname", "FROM", "employee", "WHERE", "emp_jobcode", "=", "'PROF", "'", "EXCEPT", "SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "CLASS", "AS", "T2", "ON", "T1.emp_num", "=", "T2.prof_num"], "query_toks_no_value": ["select", "emp_fname", "from", "employee", "where", "emp_jobcode", "=", "value", "except", "select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "class", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "prof_num"], "question": "What are the first names of all professors not teaching any classes?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "professors", "not", "teaching", "any", "classes", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"PROF\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3276", "db_id": "college_1", "query": "select t1.emp_fname from employee as t1 join professor as t2 on t1.emp_num = t2.emp_num join department as t3 on t2.dept_code = t3.dept_code where t3.dept_name = 'history' except select t4.emp_fname from employee as t4 join class as t5 on t4.emp_num = t5.prof_num", "query_toks": ["SELECT", "T1.emp_fname", "FROM", "employee", "AS", "T1", "JOIN", "professor", "AS", "T2", "ON", "T1.emp_num", "=", "T2.emp_num", "JOIN", "department", "AS", "T3", "ON", "T2.dept_code", "=", "T3.dept_code", "WHERE", "T3.dept_name", "=", "'History", "'", "EXCEPT", "SELECT", "T4.emp_fname", "FROM", "employee", "AS", "T4", "JOIN", "CLASS", "AS", "T5", "ON", "T4.emp_num", "=", "T5.prof_num"], "query_toks_no_value": ["select", "t1", ".", "emp_fname", "from", "employee", "as", "t1", "join", "professor", "as", "t2", "on", "t1", ".", "emp_num", "=", "t2", ".", "emp_num", "join", "department", "as", "t3", "on", "t2", ".", "dept_code", "=", "t3", ".", "dept_code", "where", "t3", ".", "dept_name", "=", "value", "except", "select", "t4", ".", "emp_fname", "from", "employee", "as", "t4", "join", "class", "as", "t5", "on", "t4", ".", "emp_num", "=", "t5", ".", "prof_num"], "question": "What are the first names of all history professors who do not teach?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "history", "professors", "who", "do", "not", "teach", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 27, false], null], "and", [false, 2, [0, [0, 28, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"History\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 17, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1452", "db_id": "college_2", "query": "select name from student where id not in (select t1.id from takes as t1 join course as t2 on t1.course_id = t2.course_id where t2.dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "student", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.id", "FROM", "takes", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "student", "where", "id", "not", "in", "(", "select", "t1", ".", "id", "from", "takes", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "dept_name", "=", "value", ")"], "question": "Find the name of students who didn't take any course from Biology department.", "question_toks": ["Find", "the", "name", "of", "students", "who", "did", "n't", "take", "any", "course", "from", "Biology", "department", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[true, 8, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1418", "db_id": "college_2", "query": "select course_id from course except select course_id from prereq", "query_toks": ["SELECT", "course_id", "FROM", "course", "EXCEPT", "SELECT", "course_id", "FROM", "prereq"], "query_toks_no_value": ["select", "course_id", "from", "course", "except", "select", "course_id", "from", "prereq"], "question": "Find the id of the courses that do not have any prerequisite?", "question_toks": ["Find", "the", "id", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1442", "db_id": "college_2", "query": "select id from instructor except select id from teaches", "query_toks": ["SELECT", "id", "FROM", "instructor", "EXCEPT", "SELECT", "id", "FROM", "teaches"], "query_toks_no_value": ["select", "id", "from", "instructor", "except", "select", "id", "from", "teaches"], "question": "Find the id of instructors who didn't teach any courses?", "question_toks": ["Find", "the", "id", "of", "instructors", "who", "did", "n't", "teach", "any", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1440", "db_id": "college_2", "query": "select name from instructor where id not in (select id from teaches)", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", ")"], "question": "Find the name of instructors who didn't teach any courses?", "question_toks": ["Find", "the", "name", "of", "instructors", "who", "did", "n't", "teach", "any", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1444", "db_id": "college_2", "query": "select name from instructor where id not in (select id from teaches where semester = 'spring')", "query_toks": ["SELECT", "name", "FROM", "instructor", "WHERE", "id", "NOT", "IN", "(", "SELECT", "id", "FROM", "teaches", "WHERE", "semester", "=", "'Spring", "'", ")"], "query_toks_no_value": ["select", "name", "from", "instructor", "where", "id", "not", "in", "(", "select", "id", "from", "teaches", "where", "semester", "=", "value", ")"], "question": "Find the names of instructors who didn't each any courses in any Spring semester.", "question_toks": ["Find", "the", "names", "of", "instructors", "who", "did", "n't", "each", "any", "courses", "in", "any", "Spring", "semester", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 11, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"Spring\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1453", "db_id": "college_2", "query": "select name from student where id not in (select t1.id from takes as t1 join course as t2 on t1.course_id = t2.course_id where t2.dept_name = 'biology')", "query_toks": ["SELECT", "name", "FROM", "student", "WHERE", "id", "NOT", "IN", "(", "SELECT", "T1.id", "FROM", "takes", "AS", "T1", "JOIN", "course", "AS", "T2", "ON", "T1.course_id", "=", "T2.course_id", "WHERE", "T2.dept_name", "=", "'Biology", "'", ")"], "query_toks_no_value": ["select", "name", "from", "student", "where", "id", "not", "in", "(", "select", "t1", ".", "id", "from", "takes", "as", "t1", "join", "course", "as", "t2", "on", "t1", ".", "course_id", "=", "t2", ".", "course_id", "where", "t2", ".", "dept_name", "=", "value", ")"], "question": "What are the names of students who haven't taken any Biology courses?", "question_toks": ["What", "are", "the", "names", "of", "students", "who", "have", "n't", "taken", "any", "Biology", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 28, false], null]]]], "where": [[true, 8, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Biology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4707", "db_id": "college_3", "query": "select fname from student where stuid not in (select stuid from enrolled_in)", "query_toks": ["SELECT", "Fname", "FROM", "STUDENT", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "ENROLLED_IN", ")"], "query_toks_no_value": ["select", "fname", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "enrolled_in", ")"], "question": "Find the first name of students not enrolled in any course.", "question_toks": ["Find", "the", "first", "name", "of", "students", "not", "enrolled", "in", "any", "course", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4708", "db_id": "college_3", "query": "select fname from student where stuid not in (select stuid from enrolled_in)", "query_toks": ["SELECT", "Fname", "FROM", "STUDENT", "WHERE", "StuID", "NOT", "IN", "(", "SELECT", "StuID", "FROM", "ENROLLED_IN", ")"], "query_toks_no_value": ["select", "fname", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "enrolled_in", ")"], "question": "What are the first names of all students that are not enrolled in courses?", "question_toks": ["What", "are", "the", "first", "names", "of", "all", "students", "that", "are", "not", "enrolled", "in", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4110", "db_id": "company_employee", "query": "select name from people where people_id not in (select people_id from employment)", "query_toks": ["SELECT", "Name", "FROM", "people", "WHERE", "People_ID", "NOT", "IN", "(", "SELECT", "People_ID", "FROM", "employment", ")"], "query_toks_no_value": ["select", "name", "from", "people", "where", "people_id", "not", "in", "(", "select", "people_id", "from", "employment", ")"], "question": "List the names of people that are not employed by any company", "question_toks": ["List", "the", "names", "of", "people", "that", "are", "not", "employed", "by", "any", "company"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4576", "db_id": "company_office", "query": "select name from buildings where id not in (select building_id from office_locations)", "query_toks": ["SELECT", "name", "FROM", "buildings", "WHERE", "id", "NOT", "IN", "(", "SELECT", "building_id", "FROM", "Office_locations", ")"], "query_toks_no_value": ["select", "name", "from", "buildings", "where", "id", "not", "in", "(", "select", "building_id", "from", "office_locations", ")"], "question": "Which buildings do not have any company office? Give me the building names.", "question_toks": ["Which", "buildings", "do", "not", "have", "any", "company", "office", "?", "Give", "me", "the", "building", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0028", "db_id": "concert_singer", "query": "select name from stadium where stadium_id not in (select stadium_id from concert)", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")"], "question": "Show the stadium names without any concert.", "question_toks": ["Show", "the", "stadium", "names", "without", "any", "concert", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0029", "db_id": "concert_singer", "query": "select name from stadium where stadium_id not in (select stadium_id from concert)", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "stadium_id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "concert", ")"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "stadium_id", "not", "in", "(", "select", "stadium_id", "from", "concert", ")"], "question": "What are the names of the stadiums without any concerts?", "question_toks": ["What", "are", "the", "names", "of", "the", "stadiums", "without", "any", "concerts", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0031", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "=", "value"], "question": "Show names for all stadiums except for stadiums having a concert in year 2014.", "question_toks": ["Show", "names", "for", "all", "stadiums", "except", "for", "stadiums", "having", "a", "concert", "in", "year", "2014", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["DEJOIN_TOTAL", "_NEGATION_ALL", "_JOIN_1", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0032", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "=", "value"], "question": "What are the names of all stadiums that did not have a concert in 2014?", "question_toks": ["What", "are", "the", "names", "of", "all", "stadiums", "that", "did", "not", "have", "a", "concert", "in", "2014", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["DEJOIN_TOTAL", "_NEGATION_ALL", "_JOIN_1", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2564", "db_id": "county_public_safety", "query": "select name from county_public_safety where county_id not in (select county_id from city)", "query_toks": ["SELECT", "Name", "FROM", "county_public_safety", "WHERE", "County_ID", "NOT", "IN", "(", "SELECT", "County_ID", "FROM", "city", ")"], "query_toks_no_value": ["select", "name", "from", "county_public_safety", "where", "county_id", "not", "in", "(", "select", "county_id", "from", "city", ")"], "question": "List the names of counties that do not have any cities.", "question_toks": ["List", "the", "names", "of", "counties", "that", "do", "not", "have", "any", "cities", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2565", "db_id": "county_public_safety", "query": "select name from county_public_safety where county_id not in (select county_id from city)", "query_toks": ["SELECT", "Name", "FROM", "county_public_safety", "WHERE", "County_ID", "NOT", "IN", "(", "SELECT", "County_ID", "FROM", "city", ")"], "query_toks_no_value": ["select", "name", "from", "county_public_safety", "where", "county_id", "not", "in", "(", "select", "county_id", "from", "city", ")"], "question": "What are the names of counties that do not contain any cities?", "question_toks": ["What", "are", "the", "names", "of", "counties", "that", "do", "not", "contain", "any", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2128", "db_id": "cre_Doc_Control_Systems", "query": "select employee_name from employees except select employees.employee_name from employees join circulation_history on circulation_history.employee_id = employees.employee_id", "query_toks": ["SELECT", "employee_name", "FROM", "Employees", "EXCEPT", "SELECT", "Employees.employee_name", "FROM", "Employees", "JOIN", "Circulation_History", "ON", "Circulation_History.employee_id", "=", "Employees.employee_id"], "query_toks_no_value": ["select", "employee_name", "from", "employees", "except", "select", "employees.employee_name", "from", "employees", "join", "circulation_history", "on", "circulation_history.employee_id", "=", "employees.employee_id"], "question": "List the employees who have not showed up in any circulation history of documents. List the employee's name.", "question_toks": ["List", "the", "employees", "who", "have", "not", "showed", "up", "in", "any", "circulation", "history", "of", "documents", ".", "List", "the", "employee", "'s", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0315", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates except select template_id from documents", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "EXCEPT", "SELECT", "template_id", "FROM", "Documents"], "query_toks_no_value": ["select", "template_id", "from", "templates", "except", "select", "template_id", "from", "documents"], "question": "Show ids for all templates not used by any document.", "question_toks": ["Show", "ids", "for", "all", "templates", "not", "used", "by", "any", "document", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0345", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show all template type codes that are not used by any document.", "question_toks": ["Show", "all", "template", "type", "codes", "that", "are", "not", "used", "by", "any", "document", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0316", "db_id": "cre_Doc_Template_Mgt", "query": "select template_id from templates except select template_id from documents", "query_toks": ["SELECT", "template_id", "FROM", "Templates", "EXCEPT", "SELECT", "template_id", "FROM", "Documents"], "query_toks_no_value": ["select", "template_id", "from", "templates", "except", "select", "template_id", "from", "documents"], "question": "What are the ids for templates that are not used in any documents?", "question_toks": ["What", "are", "the", "ids", "for", "templates", "that", "are", "not", "used", "in", "any", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0346", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the codes of template types that are not used for any document?", "question_toks": ["What", "are", "the", "codes", "of", "template", "types", "that", "are", "not", "used", "for", "any", "document", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4247", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees except select destroyed_by_employee_id from documents_to_be_destroyed", "query_toks": ["SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed"], "query_toks_no_value": ["select", "employee_id", "from", "employees", "except", "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed"], "question": "Which employees do not destroy any document? Find their employee ids.", "question_toks": ["Which", "employees", "do", "not", "destroy", "any", "document", "?", "Find", "their", "employee", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4246", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees except select destroyed_by_employee_id from documents_to_be_destroyed", "query_toks": ["SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destroyed_by_Employee_ID", "FROM", "Documents_to_be_destroyed"], "query_toks_no_value": ["select", "employee_id", "from", "employees", "except", "select", "destroyed_by_employee_id", "from", "documents_to_be_destroyed"], "question": "Show the ids of all employees who don't destroy any document.", "question_toks": ["Show", "the", "ids", "of", "all", "employees", "who", "do", "n't", "destroy", "any", "document", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4241", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees except select destruction_authorised_by_employee_id from documents_to_be_destroyed", "query_toks": ["SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed"], "query_toks_no_value": ["select", "employee_id", "from", "employees", "except", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed"], "question": "Which employees do not authorize destruction for any document? Give me their employee ids.", "question_toks": ["Which", "employees", "do", "not", "authorize", "destruction", "for", "any", "document", "?", "Give", "me", "their", "employee", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4240", "db_id": "cre_Doc_Tracking_DB", "query": "select employee_id from employees except select destruction_authorised_by_employee_id from documents_to_be_destroyed", "query_toks": ["SELECT", "employee_id", "FROM", "Employees", "EXCEPT", "SELECT", "Destruction_Authorised_by_Employee_ID", "FROM", "Documents_to_be_destroyed"], "query_toks_no_value": ["select", "employee_id", "from", "employees", "except", "select", "destruction_authorised_by_employee_id", "from", "documents_to_be_destroyed"], "question": "Show the ids of the employees who don't authorize destruction for any document.", "question_toks": ["Show", "the", "ids", "of", "the", "employees", "who", "do", "n't", "authorize", "destruction", "for", "any", "document", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6463", "db_id": "cre_Docs_and_Epenses", "query": "select count(*) from documents where document_id not in ( select document_id from documents_with_expenses )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents", "WHERE", "document_id", "NOT", "IN", "(", "SELECT", "document_id", "FROM", "Documents_with_expenses", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents", "where", "document_id", "not", "in", "(", "select", "document_id", "from", "documents_with_expenses", ")"], "question": "How many documents do not have any expense?", "question_toks": ["How", "many", "documents", "do", "not", "have", "any", "expense", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6459", "db_id": "cre_Docs_and_Epenses", "query": "select document_id from documents where document_type_code = \"cv\" except select document_id from documents_with_expenses", "query_toks": ["SELECT", "document_id", "FROM", "Documents", "WHERE", "document_type_code", "=", "``", "CV", "''", "EXCEPT", "SELECT", "document_id", "FROM", "Documents_with_expenses"], "query_toks_no_value": ["select", "document_id", "from", "documents", "where", "document_type_code", "=", "value", "except", "select", "document_id", "from", "documents_with_expenses"], "question": "Show ids for all documents in type CV without expense budgets.", "question_toks": ["Show", "ids", "for", "all", "documents", "in", "type", "CV", "without", "expense", "budgets", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"CV\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5165", "db_id": "cre_Drama_Workshop_Groups", "query": "select customer_name from clients except select t2.customer_name from bookings as t1 join clients as t2 on t1.customer_id = t2.client_id", "query_toks": ["SELECT", "Customer_Name", "FROM", "Clients", "EXCEPT", "SELECT", "T2.Customer_Name", "FROM", "Bookings", "AS", "T1", "JOIN", "Clients", "AS", "T2", "ON", "T1.Customer_ID", "=", "T2.Client_ID"], "query_toks_no_value": ["select", "customer_name", "from", "clients", "except", "select", "t2", ".", "customer_name", "from", "bookings", "as", "t1", "join", "clients", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "client_id"], "question": "What are the names of the clients who do not have any booking?", "question_toks": ["What", "are", "the", "names", "of", "the", "clients", "who", "do", "not", "have", "any", "booking", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 55, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5158", "db_id": "cre_Drama_Workshop_Groups", "query": "select t1.city_town from addresses as t1 join customers as t2 on t1.address_id = t2.address_id except select t1.city_town from addresses as t1 join performers as t2 on t1.address_id = t2.address_id", "query_toks": ["SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID", "EXCEPT", "SELECT", "T1.City_Town", "FROM", "Addresses", "AS", "T1", "JOIN", "Performers", "AS", "T2", "ON", "T1.Address_ID", "=", "T2.Address_ID"], "query_toks_no_value": ["select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id", "except", "select", "t1", ".", "city_town", "from", "addresses", "as", "t1", "join", "performers", "as", "t2", "on", "t1", ".", "address_id", "=", "t2", ".", "address_id"], "question": "Show all cities where at least one customer lives in but no performer lives in.", "question_toks": ["Show", "all", "cities", "where", "at", "least", "one", "customer", "lives", "in", "but", "no", "performer", "lives", "in", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 36, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5164", "db_id": "cre_Drama_Workshop_Groups", "query": "select customer_name from clients except select t2.customer_name from bookings as t1 join clients as t2 on t1.customer_id = t2.client_id", "query_toks": ["SELECT", "Customer_Name", "FROM", "Clients", "EXCEPT", "SELECT", "T2.Customer_Name", "FROM", "Bookings", "AS", "T1", "JOIN", "Clients", "AS", "T2", "ON", "T1.Customer_ID", "=", "T2.Client_ID"], "query_toks_no_value": ["select", "customer_name", "from", "clients", "except", "select", "t2", ".", "customer_name", "from", "bookings", "as", "t1", "join", "clients", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "client_id"], "question": "Show the names of all the clients with no booking.", "question_toks": ["Show", "the", "names", "of", "all", "the", "clients", "with", "no", "booking", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 10], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 55, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5967", "db_id": "cre_Theme_park", "query": "select count(*) from visitors where tourist_id not in ( select tourist_id from visits )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Visitors", "WHERE", "Tourist_ID", "NOT", "IN", "(", "SELECT", "Tourist_ID", "FROM", "Visits", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "visitors", "where", "tourist_id", "not", "in", "(", "select", "tourist_id", "from", "visits", ")"], "question": "How many tourists did not make any visit?", "question_toks": ["How", "many", "tourists", "did", "not", "make", "any", "visit", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5968", "db_id": "cre_Theme_park", "query": "select count(*) from visitors where tourist_id not in ( select tourist_id from visits )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Visitors", "WHERE", "Tourist_ID", "NOT", "IN", "(", "SELECT", "Tourist_ID", "FROM", "Visits", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "visitors", "where", "tourist_id", "not", "in", "(", "select", "tourist_id", "from", "visits", ")"], "question": "Count the number of tourists who did not visit any place.", "question_toks": ["Count", "the", "number", "of", "tourists", "who", "did", "not", "visit", "any", "place", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6980", "db_id": "culture_company", "query": "select publisher from book_club except select publisher from book_club where year = 1989", "query_toks": ["SELECT", "publisher", "FROM", "book_club", "EXCEPT", "SELECT", "publisher", "FROM", "book_club", "WHERE", "YEAR", "=", "1989"], "query_toks_no_value": ["select", "publisher", "from", "book_club", "except", "select", "publisher", "from", "book_club", "where", "year", "=", "value"], "question": "Show all publishers which do not have a book in 1989.", "question_toks": ["Show", "all", "publishers", "which", "do", "not", "have", "a", "book", "in", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2851", "db_id": "customer_deliveries", "query": "select state_province_county from addresses where address_id not in (select employee_address_id from employees)", "query_toks": ["SELECT", "state_province_county", "FROM", "addresses", "WHERE", "address_id", "NOT", "IN", "(", "SELECT", "employee_address_id", "FROM", "Employees", ")"], "query_toks_no_value": ["select", "state_province_county", "from", "addresses", "where", "address_id", "not", "in", "(", "select", "employee_address_id", "from", "employees", ")"], "question": "Find the states which do not have any employee in their record.", "question_toks": ["Find", "the", "states", "which", "do", "not", "have", "any", "employee", "in", "their", "record", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 11]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1627", "db_id": "customers_and_invoices", "query": "select count(*) from products where product_id not in ( select product_id from order_items )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "products", "WHERE", "product_id", "NOT", "IN", "(", "SELECT", "product_id", "FROM", "Order_items", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "order_items", ")"], "question": "How many products were not included in any order?", "question_toks": ["How", "many", "products", "were", "not", "included", "in", "any", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1613", "db_id": "customers_and_invoices", "query": "select product_name from products except select t1.product_name from products as t1 join order_items as t2 on t1.product_id = t2.product_id", "query_toks": ["SELECT", "product_name", "FROM", "Products", "EXCEPT", "SELECT", "T1.product_name", "FROM", "Products", "AS", "T1", "JOIN", "Order_items", "AS", "T2", "ON", "T1.product_id", "=", "T2.product_id"], "query_toks_no_value": ["select", "product_name", "from", "products", "except", "select", "t1", ".", "product_name", "from", "products", "as", "t1", "join", "order_items", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id"], "question": "Show all product names without an order.", "question_toks": ["Show", "all", "product", "names", "without", "an", "order", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 28, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4625", "db_id": "customers_campaigns_ecommerce", "query": "select customer_name , customer_phone from customers where customer_id not in (select customer_id from mailshot_customers)", "query_toks": ["SELECT", "customer_name", ",", "customer_phone", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "mailshot_customers", ")"], "query_toks_no_value": ["select", "customer_name", ",", "customer_phone", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "mailshot_customers", ")"], "question": "Show the name and phone of the customer without any mailshot.", "question_toks": ["Show", "the", "name", "and", "phone", "of", "the", "customer", "without", "any", "mailshot", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0686", "db_id": "customers_card_transactions", "query": "select customer_first_name , customer_last_name from customers except select t1.customer_first_name , t1.customer_last_name from customers as t1 join accounts as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_first_name", ",", "customer_last_name", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_first_name", ",", "T1.customer_last_name", "FROM", "Customers", "AS", "T1", "JOIN", "Accounts", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id"], "query_toks_no_value": ["select", "customer_first_name", ",", "customer_last_name", "from", "customers", "except", "select", "t1", ".", "customer_first_name", ",", "t1", ".", "customer_last_name", "from", "customers", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "What are the full names of customers who do not have any accounts?", "question_toks": ["What", "are", "the", "full", "names", "of", "customers", "who", "do", "not", "have", "any", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0683", "db_id": "customers_card_transactions", "query": "select count(*) from customers where customer_id not in (select customer_id from accounts)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Accounts", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "accounts", ")"], "question": "Show the number of all customers without an account.", "question_toks": ["Show", "the", "number", "of", "all", "customers", "without", "an", "account", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4498", "db_id": "decoration_competition", "query": "select name from member where member_id not in (select member_id from round)", "query_toks": ["SELECT", "Name", "FROM", "member", "WHERE", "Member_ID", "NOT", "IN", "(", "SELECT", "Member_ID", "FROM", "round", ")"], "query_toks_no_value": ["select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "round", ")"], "question": "List the names of members who did not participate in any round.", "question_toks": ["List", "the", "names", "of", "members", "who", "did", "not", "participate", "in", "any", "round", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5083", "db_id": "device", "query": "select shop_name from shop where shop_id not in (select shop_id from stock)", "query_toks": ["SELECT", "Shop_Name", "FROM", "shop", "WHERE", "Shop_ID", "NOT", "IN", "(", "SELECT", "Shop_ID", "FROM", "stock", ")"], "query_toks_no_value": ["select", "shop_name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "stock", ")"], "question": "What are the names of shops that do not have any devices in stock?", "question_toks": ["What", "are", "the", "names", "of", "shops", "that", "do", "not", "have", "any", "devices", "in", "stock", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4525", "db_id": "document_management", "query": "select document_name from documents except select t1.document_name from documents as t1 join document_sections as t2 on t1.document_code = t2.document_code join document_sections_images as t3 on t2.section_id = t3.section_id", "query_toks": ["SELECT", "document_name", "FROM", "documents", "EXCEPT", "SELECT", "t1.document_name", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "JOIN", "document_sections_images", "AS", "t3", "ON", "t2.section_id", "=", "t3.section_id"], "query_toks_no_value": ["select", "document_name", "from", "documents", "except", "select", "t1", ".", "document_name", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "join", "document_sections_images", "as", "t3", "on", "t2", ".", "section_id", "=", "t3", ".", "section_id"], "question": "Find names of the document without any images.", "question_toks": ["Find", "names", "of", "the", "document", "without", "any", "images", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4519", "db_id": "document_management", "query": "select document_name from documents where document_code not in (select document_code from document_sections)", "query_toks": ["SELECT", "document_name", "FROM", "documents", "WHERE", "document_code", "NOT", "IN", "(", "SELECT", "document_code", "FROM", "document_sections", ")"], "query_toks_no_value": ["select", "document_name", "from", "documents", "where", "document_code", "not", "in", "(", "select", "document_code", "from", "document_sections", ")"], "question": "Find all the name of documents without any sections.", "question_toks": ["Find", "all", "the", "name", "of", "documents", "without", "any", "sections", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4520", "db_id": "document_management", "query": "select document_name from documents where document_code not in (select document_code from document_sections)", "query_toks": ["SELECT", "document_name", "FROM", "documents", "WHERE", "document_code", "NOT", "IN", "(", "SELECT", "document_code", "FROM", "document_sections", ")"], "query_toks_no_value": ["select", "document_name", "from", "documents", "where", "document_code", "not", "in", "(", "select", "document_code", "from", "document_sections", ")"], "question": "What are the names of documents that do not have any sections?", "question_toks": ["What", "are", "the", "names", "of", "documents", "that", "do", "not", "have", "any", "sections", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4526", "db_id": "document_management", "query": "select document_name from documents except select t1.document_name from documents as t1 join document_sections as t2 on t1.document_code = t2.document_code join document_sections_images as t3 on t2.section_id = t3.section_id", "query_toks": ["SELECT", "document_name", "FROM", "documents", "EXCEPT", "SELECT", "t1.document_name", "FROM", "documents", "AS", "t1", "JOIN", "document_sections", "AS", "t2", "ON", "t1.document_code", "=", "t2.document_code", "JOIN", "document_sections_images", "AS", "t3", "ON", "t2.section_id", "=", "t3.section_id"], "query_toks_no_value": ["select", "document_name", "from", "documents", "except", "select", "t1", ".", "document_name", "from", "documents", "as", "t1", "join", "document_sections", "as", "t2", "on", "t1", ".", "document_code", "=", "t2", ".", "document_code", "join", "document_sections_images", "as", "t3", "on", "t2", ".", "section_id", "=", "t3", ".", "section_id"], "question": "What are the names of documents that do not have any images?", "question_toks": ["What", "are", "the", "names", "of", "documents", "that", "do", "not", "have", "any", "images", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 26, false], null], "and", [false, 2, [0, [0, 25, false], null], [0, 30, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0928", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which professional did not operate any treatment on dogs? List the professional's id, role and email.", "question_toks": ["Which", "professional", "did", "not", "operate", "any", "treatment", "on", "dogs", "?", "List", "the", "professional", "'s", "id", ",", "role", "and", "email", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0981", "db_id": "dog_kennels", "query": "select count(*) from owners where owner_id not in ( select owner_id from dogs )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Owners", "WHERE", "owner_id", "NOT", "IN", "(", "SELECT", "owner_id", "FROM", "Dogs", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "owners", "where", "owner_id", "not", "in", "(", "select", "owner_id", "from", "dogs", ")"], "question": "Find the number of owners who do not own any dogs at this moment.", "question_toks": ["Find", "the", "number", "of", "owners", "who", "do", "not", "own", "any", "dogs", "at", "this", "moment", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0979", "db_id": "dog_kennels", "query": "select count(*) from dogs where dog_id not in ( select dog_id from treatments )", "query_toks": ["select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "dogs", "where", "dog_id", "not", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "Tell me the number of dogs that have not received any treatment .", "question_toks": ["Tell", "me", "the", "number", "of", "dogs", "that", "have", "not", "received", "any", "treatment", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0983", "db_id": "dog_kennels", "query": "select count(*) from professionals where professional_id not in ( select professional_id from treatments )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Professionals", "WHERE", "professional_id", "NOT", "IN", "(", "SELECT", "professional_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "professionals", "where", "professional_id", "not", "in", "(", "select", "professional_id", "from", "treatments", ")"], "question": "Find the number of professionals who have not treated any dogs.", "question_toks": ["Find", "the", "number", "of", "professionals", "who", "have", "not", "treated", "any", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 33, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0929", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Give me the id, role and email of the professionals who did not perform any treatment on dogs.", "question_toks": ["Give", "me", "the", "id", ",", "role", "and", "email", "of", "the", "professionals", "who", "did", "not", "perform", "any", "treatment", "on", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 41, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5692", "db_id": "dorm_1", "query": "select dorm_name from dorm where dormid not in (select dormid from has_amenity)", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "WHERE", "dormid", "NOT", "IN", "(", "SELECT", "dormid", "FROM", "has_amenity", ")"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "where", "dormid", "not", "in", "(", "select", "dormid", "from", "has_amenity", ")"], "question": "Find the name of dorms that do not have any amenity", "question_toks": ["Find", "the", "name", "of", "dorms", "that", "do", "not", "have", "any", "amenity"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5693", "db_id": "dorm_1", "query": "select dorm_name from dorm where dormid not in (select dormid from has_amenity)", "query_toks": ["SELECT", "dorm_name", "FROM", "dorm", "WHERE", "dormid", "NOT", "IN", "(", "SELECT", "dormid", "FROM", "has_amenity", ")"], "query_toks_no_value": ["select", "dorm_name", "from", "dorm", "where", "dormid", "not", "in", "(", "select", "dormid", "from", "has_amenity", ")"], "question": "What are the names of all the dorms that don't have any amenities?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "dorms", "that", "do", "n't", "have", "any", "amenities", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 9, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5717", "db_id": "dorm_1", "query": "select fname , lname from student where city_code != 'hkg' order by age", "query_toks": ["SELECT", "fname", ",", "lname", "FROM", "student", "WHERE", "city_code", "!", "=", "'HKG", "'", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "city_code", "!", "=", "value", "order", "by", "age"], "question": "What are the first and last names of all students who are not living in the city HKG and order the results by age?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "all", "students", "who", "are", "not", "living", "in", "the", "city", "HKG", "and", "order", "the", "results", "by", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 8, false], null], "\"HKG\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6692", "db_id": "driving_school", "query": "select count(*) from customers where customer_id not in ( select customer_id from customer_payments );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "Customer_Payments", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_payments", ")"], "question": "List the number of customers that did not have any payment history.", "question_toks": ["List", "the", "number", "of", "customers", "that", "did", "not", "have", "any", "payment", "history", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 18, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6712", "db_id": "driving_school", "query": "select first_name from staff except select t2.first_name from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id", "query_toks": ["SELECT", "first_name", "FROM", "Staff", "EXCEPT", "SELECT", "T2.first_name", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id"], "query_toks_no_value": ["select", "first_name", "from", "staff", "except", "select", "t2", ".", "first_name", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id"], "question": "What is the first name of the staff who did not give any lesson?", "question_toks": ["What", "is", "the", "first", "name", "of", "the", "staff", "who", "did", "not", "give", "any", "lesson", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6713", "db_id": "driving_school", "query": "select first_name from staff except select t2.first_name from lessons as t1 join staff as t2 on t1.staff_id = t2.staff_id", "query_toks": ["SELECT", "first_name", "FROM", "Staff", "EXCEPT", "SELECT", "T2.first_name", "FROM", "Lessons", "AS", "T1", "JOIN", "Staff", "AS", "T2", "ON", "T1.staff_id", "=", "T2.staff_id"], "query_toks_no_value": ["select", "first_name", "from", "staff", "except", "select", "t2", ".", "first_name", "from", "lessons", "as", "t1", "join", "staff", "as", "t2", "on", "t1", ".", "staff_id", "=", "t2", ".", "staff_id"], "question": "What is the first name of all employees who do not give any lessons?", "question_toks": ["What", "is", "the", "first", "name", "of", "all", "employees", "who", "do", "not", "give", "any", "lessons", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3844", "db_id": "e_learning", "query": "select count(*) from students where student_id not in (select student_id from student_course_enrolment)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")"], "question": "How many students did not have any course enrollment?", "question_toks": ["How", "many", "students", "did", "not", "have", "any", "course", "enrollment", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3843", "db_id": "e_learning", "query": "select personal_name from students except select t1.personal_name from students as t1 join student_course_enrolment as t2 on t1.student_id = t2.student_id", "query_toks": ["SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1.personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id"], "query_toks_no_value": ["select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id"], "question": "Which students not enrolled in any course? Find their personal names.", "question_toks": ["Which", "students", "not", "enrolled", "in", "any", "course", "?", "Find", "their", "personal", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3845", "db_id": "e_learning", "query": "select count(*) from students where student_id not in (select student_id from student_course_enrolment)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Students", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "Student_Course_Enrolment", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "students", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_enrolment", ")"], "question": "Count the number of students who did not enroll in any course.", "question_toks": ["Count", "the", "number", "of", "students", "who", "did", "not", "enroll", "in", "any", "course", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 10, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3842", "db_id": "e_learning", "query": "select personal_name from students except select t1.personal_name from students as t1 join student_course_enrolment as t2 on t1.student_id = t2.student_id", "query_toks": ["SELECT", "personal_name", "FROM", "Students", "EXCEPT", "SELECT", "T1.personal_name", "FROM", "Students", "AS", "T1", "JOIN", "Student_Course_Enrolment", "AS", "T2", "ON", "T1.student_id", "=", "T2.student_id"], "query_toks_no_value": ["select", "personal_name", "from", "students", "except", "select", "t1", ".", "personal_name", "from", "students", "as", "t1", "join", "student_course_enrolment", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "student_id"], "question": "Find the personal names of students not enrolled in any course.", "question_toks": ["Find", "the", "personal", "names", "of", "students", "not", "enrolled", "in", "any", "course", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 26, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0281", "db_id": "employee_hire_evaluation", "query": "select name from employee where employee_id not in (select employee_id from evaluation)", "query_toks": ["SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")"], "query_toks_no_value": ["select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")"], "question": "Find the names of employees who never won any award in the evaluation.", "question_toks": ["Find", "the", "names", "of", "employees", "who", "never", "won", "any", "award", "in", "the", "evaluation", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0285", "db_id": "employee_hire_evaluation", "query": "select name from shop where shop_id not in (select shop_id from hiring)", "query_toks": ["SELECT", "name", "FROM", "shop", "WHERE", "shop_id", "NOT", "IN", "(", "SELECT", "shop_id", "FROM", "hiring", ")"], "query_toks_no_value": ["select", "name", "from", "shop", "where", "shop_id", "not", "in", "(", "select", "shop_id", "from", "hiring", ")"], "question": "Find the name of the shops that do not hire any employee.", "question_toks": ["Find", "the", "name", "of", "the", "shops", "that", "do", "not", "hire", "any", "employee", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0282", "db_id": "employee_hire_evaluation", "query": "select name from employee where employee_id not in (select employee_id from evaluation)", "query_toks": ["SELECT", "name", "FROM", "employee", "WHERE", "Employee_ID", "NOT", "IN", "(", "SELECT", "Employee_ID", "FROM", "evaluation", ")"], "query_toks_no_value": ["select", "name", "from", "employee", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "evaluation", ")"], "question": "What are the names of the employees who never received any evaluation?", "question_toks": ["What", "are", "the", "names", "of", "the", "employees", "who", "never", "received", "any", "evaluation", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1718", "db_id": "epinions_1", "query": "select count(*) from item where i_id not in (select i_id from review)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "item", "WHERE", "i_id", "NOT", "IN", "(", "SELECT", "i_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "item", "where", "i_id", "not", "in", "(", "select", "i_id", "from", "review", ")"], "question": "Find the number of items without any review.", "question_toks": ["Find", "the", "number", "of", "items", "without", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1716", "db_id": "epinions_1", "query": "select name from useracct where u_id not in (select u_id from review)", "query_toks": ["SELECT", "name", "FROM", "useracct", "WHERE", "u_id", "NOT", "IN", "(", "SELECT", "u_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "name", "from", "useracct", "where", "u_id", "not", "in", "(", "select", "u_id", "from", "review", ")"], "question": "Find the names of users who did not leave any review.", "question_toks": ["Find", "the", "names", "of", "users", "who", "did", "not", "leave", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1717", "db_id": "epinions_1", "query": "select count(*) from useracct where u_id not in (select u_id from review)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "useracct", "WHERE", "u_id", "NOT", "IN", "(", "SELECT", "u_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "useracct", "where", "u_id", "not", "in", "(", "select", "u_id", "from", "review", ")"], "question": "Find the number of users who did not write any review.", "question_toks": ["Find", "the", "number", "of", "users", "who", "did", "not", "write", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1697", "db_id": "epinions_1", "query": "select count(*) from item where i_id not in (select i_id from review)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "item", "WHERE", "i_id", "NOT", "IN", "(", "SELECT", "i_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "item", "where", "i_id", "not", "in", "(", "select", "i_id", "from", "review", ")"], "question": "Find the number of items that did not receive any review.", "question_toks": ["Find", "the", "number", "of", "items", "that", "did", "not", "receive", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1715", "db_id": "epinions_1", "query": "select title from item where i_id not in (select i_id from review)", "query_toks": ["SELECT", "title", "FROM", "item", "WHERE", "i_id", "NOT", "IN", "(", "SELECT", "i_id", "FROM", "review", ")"], "query_toks_no_value": ["select", "title", "from", "item", "where", "i_id", "not", "in", "(", "select", "i_id", "from", "review", ")"], "question": "Find the names of the items that did not receive any review.", "question_toks": ["Find", "the", "names", "of", "the", "items", "that", "did", "not", "receive", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0048", "db_id": "farm", "query": "select official_name from city where city_id not in (select host_city_id from farm_competition)", "query_toks": ["SELECT", "Official_Name", "FROM", "city", "WHERE", "City_ID", "NOT", "IN", "(", "SELECT", "Host_city_ID", "FROM", "farm_competition", ")"], "query_toks_no_value": ["select", "official_name", "from", "city", "where", "city_id", "not", "in", "(", "select", "host_city_id", "from", "farm_competition", ")"], "question": "List the official names of cities that have not held any competition.", "question_toks": ["List", "the", "official", "names", "of", "cities", "that", "have", "not", "held", "any", "competition", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4146", "db_id": "film_rank", "query": "select title from film where film_id not in (select film_id from film_market_estimation)", "query_toks": ["SELECT", "Title", "FROM", "film", "WHERE", "Film_ID", "NOT", "IN", "(", "SELECT", "Film_ID", "FROM", "film_market_estimation", ")"], "query_toks_no_value": ["select", "title", "from", "film", "where", "film_id", "not", "in", "(", "select", "film_id", "from", "film_market_estimation", ")"], "question": "List the title of films that do not have any market estimation.", "question_toks": ["List", "the", "title", "of", "films", "that", "do", "not", "have", "any", "market", "estimation", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0421", "db_id": "flight_1", "query": "select eid from employee except select eid from certificate", "query_toks": ["SELECT", "eid", "FROM", "Employee", "EXCEPT", "SELECT", "eid", "FROM", "Certificate"], "query_toks_no_value": ["select", "eid", "from", "employee", "except", "select", "eid", "from", "certificate"], "question": "Show ids for all employees who don't have a certificate.", "question_toks": ["Show", "ids", "for", "all", "employees", "who", "do", "n't", "have", "a", "certificate", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0422", "db_id": "flight_1", "query": "select eid from employee except select eid from certificate", "query_toks": ["SELECT", "eid", "FROM", "Employee", "EXCEPT", "SELECT", "eid", "FROM", "Certificate"], "query_toks_no_value": ["select", "eid", "from", "employee", "except", "select", "eid", "from", "certificate"], "question": "What are the ids of all employees that don't have certificates?", "question_toks": ["What", "are", "the", "ids", "of", "all", "employees", "that", "do", "n't", "have", "certificates", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0429", "db_id": "flight_1", "query": "select name from employee except select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.name = \"boeing 737-800\"", "query_toks": ["SELECT", "name", "FROM", "Employee", "EXCEPT", "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''"], "query_toks_no_value": ["select", "name", "from", "employee", "except", "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value"], "question": "Show names for all employees who do not have certificate of Boeing 737-800.", "question_toks": ["Show", "names", "for", "all", "employees", "who", "do", "not", "have", "certificate", "of", "Boeing", "737-800", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Boeing 737-800\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0430", "db_id": "flight_1", "query": "select name from employee except select t1.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t3.name = \"boeing 737-800\"", "query_toks": ["SELECT", "name", "FROM", "Employee", "EXCEPT", "SELECT", "T1.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T3.name", "=", "``", "Boeing", "737-800", "''"], "query_toks_no_value": ["select", "name", "from", "employee", "except", "select", "t1", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t3", ".", "name", "=", "value"], "question": "What are the names of all employees who are not certified to fly Boeing 737-800s?", "question_toks": ["What", "are", "the", "names", "of", "all", "employees", "who", "are", "not", "certified", "to", "fly", "Boeing", "737-800s", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Boeing 737-800\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0257", "db_id": "flight_2", "query": "select airportname from airports where airportcode not in (select sourceairport from flights union select destairport from flights)", "query_toks": ["SELECT", "AirportName", "FROM", "Airports", "WHERE", "AirportCode", "NOT", "IN", "(", "SELECT", "SourceAirport", "FROM", "Flights", "UNION", "SELECT", "DestAirport", "FROM", "Flights", ")"], "query_toks_no_value": ["select", "airportname", "from", "airports", "where", "airportcode", "not", "in", "(", "select", "sourceairport", "from", "flights", "union", "select", "destairport", "from", "flights", ")"], "question": "Find the name of airports which do not have any flight in and out.", "question_toks": ["Find", "the", "name", "of", "airports", "which", "do", "not", "have", "any", "flight", "in", "and", "out", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0239", "db_id": "flight_2", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value", "except", "select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "where", "t2", ".", "sourceairport", "=", "value"], "question": "Find all airlines that have flights from airport 'CVO' but not from 'APG'.", "question_toks": ["Find", "all", "airlines", "that", "have", "flights", "from", "airport", "'CVO", "'", "but", "not", "from", "'APG", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"CVO\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"APG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["DEJOIN_TOTAL", "_NEGATION_ALL", "_JOIN_1", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2182", "db_id": "formula_1", "query": "select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"australian grand prix\" except select t3.forename , t3.surname from races as t1 join results as t2 on t1.raceid = t2.raceid join drivers as t3 on t2.driverid = t3.driverid where t1.name = \"chinese grand prix\"", "query_toks": ["SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Australian", "Grand", "Prix", "''", "EXCEPT", "SELECT", "T3.forename", ",", "T3.surname", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "JOIN", "drivers", "AS", "T3", "ON", "T2.driverid", "=", "T3.driverid", "WHERE", "T1.name", "=", "``", "Chinese", "Grand", "Prix", "''"], "query_toks_no_value": ["select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value", "except", "select", "t3", ".", "forename", ",", "t3", ".", "surname", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "join", "drivers", "as", "t3", "on", "t2", ".", "driverid", "=", "t3", ".", "driverid", "where", "t1", ".", "name", "=", "value"], "question": "What are the first and last names of all drivers who participated in the Australian Grand Prix but not the Chinese Grand Prix?", "question_toks": ["What", "are", "the", "first", "and", "last", "names", "of", "all", "drivers", "who", "participated", "in", "the", "Australian", "Grand", "Prix", "but", "not", "the", "Chinese", "Grand", "Prix", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Australian Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null], "and", [false, 2, [0, [0, 45, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Chinese Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6021", "db_id": "game_1", "query": "select stuid from student except select stuid from sportsinfo", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "sportsinfo"], "question": "Show student ids who don't have any sports.", "question_toks": ["Show", "student", "ids", "who", "do", "n't", "have", "any", "sports", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6022", "db_id": "game_1", "query": "select stuid from student except select stuid from sportsinfo", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "sportsinfo"], "question": "What are the ids of all students who don't play sports?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "who", "do", "n't", "play", "sports", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6027", "db_id": "game_1", "query": "select stuid from student where sex = 'm' except select stuid from sportsinfo where sportname = \"football\"", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "'M", "'", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "sex", "=", "value", "except", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value"], "question": "Show all male student ids who don't play football.", "question_toks": ["Show", "all", "male", "student", "ids", "who", "do", "n't", "play", "football", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"M\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6028", "db_id": "game_1", "query": "select stuid from student where sex = 'm' except select stuid from sportsinfo where sportname = \"football\"", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "sex", "=", "'M", "'", "EXCEPT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "sex", "=", "value", "except", "select", "stuid", "from", "sportsinfo", "where", "sportname", "=", "value"], "question": "What are the ids of all male students who do not play football?", "question_toks": ["What", "are", "the", "ids", "of", "all", "male", "students", "who", "do", "not", "play", "football", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"M\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6036", "db_id": "game_1", "query": "select stuid from student except select stuid from plays_games", "query_toks": ["SELECT", "StuID", "FROM", "Student", "EXCEPT", "SELECT", "StuID", "FROM", "Plays_games"], "query_toks_no_value": ["select", "stuid", "from", "student", "except", "select", "stuid", "from", "plays_games"], "question": "What are the ids of all students who are not video game players?", "question_toks": ["What", "are", "the", "ids", "of", "all", "students", "who", "are", "not", "video", "game", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1997", "db_id": "gas_company", "query": "select company , main_industry from company where headquarters != 'usa'", "query_toks": ["SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "headquarters", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "company", ",", "main_industry", "from", "company", "where", "headquarters", "!", "=", "value"], "question": "Show the company name and the main industry for all companies whose headquarters are not from USA.", "question_toks": ["Show", "the", "company", "name", "and", "the", "main", "industry", "for", "all", "companies", "whose", "headquarters", "are", "not", "from", "USA", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2021", "db_id": "gas_company", "query": "select headquarters from company except select headquarters from company where main_industry = 'banking'", "query_toks": ["SELECT", "headquarters", "FROM", "company", "EXCEPT", "SELECT", "headquarters", "FROM", "company", "WHERE", "main_industry", "=", "'Banking", "'"], "query_toks_no_value": ["select", "headquarters", "from", "company", "except", "select", "headquarters", "from", "company", "where", "main_industry", "=", "value"], "question": "Show all headquarters without a company in banking industry.", "question_toks": ["Show", "all", "headquarters", "without", "a", "company", "in", "banking", "industry", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Banking\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1998", "db_id": "gas_company", "query": "select company , main_industry from company where headquarters != 'usa'", "query_toks": ["SELECT", "company", ",", "main_industry", "FROM", "company", "WHERE", "headquarters", "!", "=", "'USA", "'"], "query_toks_no_value": ["select", "company", ",", "main_industry", "from", "company", "where", "headquarters", "!", "=", "value"], "question": "What are the companies and main industries of all companies that are not headquartered in the United States?", "question_toks": ["What", "are", "the", "companies", "and", "main", "industries", "of", "all", "companies", "that", "are", "not", "headquartered", "in", "the", "United", "States", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1768", "db_id": "gymnast", "query": "select distinct hometown from people except select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id", "query_toks": ["SELECT", "DISTINCT", "Hometown", "FROM", "people", "EXCEPT", "SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID"], "query_toks_no_value": ["select", "distinct", "hometown", "from", "people", "except", "select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id"], "question": "List the distinct hometowns that are not associated with any gymnast.", "question_toks": ["List", "the", "distinct", "hometowns", "that", "are", "not", "associated", "with", "any", "gymnast", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3913", "db_id": "hospital_1", "query": "select name from physician except select t2.name from appointment as t1 join physician as t2 on t1.physician = t2.employeeid", "query_toks": ["SELECT", "name", "FROM", "physician", "EXCEPT", "SELECT", "T2.name", "FROM", "appointment", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.Physician", "=", "T2.EmployeeID"], "query_toks_no_value": ["select", "name", "from", "physician", "except", "select", "t2", ".", "name", "from", "appointment", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "physician", "=", "t2", ".", "employeeid"], "question": "Which physicians have never taken any appointment? Find their names.", "question_toks": ["Which", "physicians", "have", "never", "taken", "any", "appointment", "?", "Find", "their", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3912", "db_id": "hospital_1", "query": "select name from physician except select t2.name from appointment as t1 join physician as t2 on t1.physician = t2.employeeid", "query_toks": ["SELECT", "name", "FROM", "physician", "EXCEPT", "SELECT", "T2.name", "FROM", "appointment", "AS", "T1", "JOIN", "physician", "AS", "T2", "ON", "T1.Physician", "=", "T2.EmployeeID"], "query_toks_no_value": ["select", "name", "from", "physician", "except", "select", "t2", ".", "name", "from", "appointment", "as", "t1", "join", "physician", "as", "t2", "on", "t1", ".", "physician", "=", "t2", ".", "employeeid"], "question": "List the name of physicians who never took any appointment.", "question_toks": ["List", "the", "name", "of", "physicians", "who", "never", "took", "any", "appointment", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3982", "db_id": "hospital_1", "query": "select name from procedures where cost > 1000 except select t3.name from physician as t1 join trained_in as t2 on t1.employeeid = t2.physician join procedures as t3 on t3.code = t2.treatment where t1.name = \"john wen\"", "query_toks": ["SELECT", "name", "FROM", "procedures", "WHERE", "cost", ">", "1000", "EXCEPT", "SELECT", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''"], "query_toks_no_value": ["select", "name", "from", "procedures", "where", "cost", ">", "value", "except", "select", "t3", ".", "name", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value"], "question": "Find the names of all procedures which cost more than 1000 but which physician John Wen was not trained in?", "question_toks": ["Find", "the", "names", "of", "all", "procedures", "which", "cost", "more", "than", "1000", "but", "which", "physician", "John", "Wen", "was", "not", "trained", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"John Wen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3411", "db_id": "hr_1", "query": "select * from employees where department_id = \"null\"", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "department_id", "=", "``", "null", "''"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "department_id", "=", "value"], "question": "Return all the information for all employees without any department number.", "question_toks": ["Return", "all", "the", "information", "for", "all", "employees", "without", "any", "department", "number", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3513", "db_id": "hr_1", "query": "select * from employees where employee_id not in (select employee_id from job_history)", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "employee_id", "NOT", "IN", "(", "SELECT", "employee_id", "FROM", "job_history", ")"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "job_history", ")"], "question": "display all the information of those employees who did not have any job in the past.", "question_toks": ["display", "all", "the", "information", "of", "those", "employees", "who", "did", "not", "have", "any", "job", "in", "the", "past", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3425", "db_id": "hr_1", "query": "select first_name , last_name , salary from employees where commission_pct = \"null\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "salary", "FROM", "employees", "WHERE", "commission_pct", "=", "``", "null", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "salary", "from", "employees", "where", "commission_pct", "=", "value"], "question": "What are the full name (first and last name) and salary for all employees who does not have any value for commission?", "question_toks": ["What", "are", "the", "full", "name", "(", "first", "and", "last", "name", ")", "and", "salary", "for", "all", "employees", "who", "does", "not", "have", "any", "value", "for", "commission", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3412", "db_id": "hr_1", "query": "select * from employees where department_id = \"null\"", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "department_id", "=", "``", "null", "''"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "department_id", "=", "value"], "question": "What are all the employees without a department number?", "question_toks": ["What", "are", "all", "the", "employees", "without", "a", "department", "number", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3501", "db_id": "hr_1", "query": "select first_name , last_name , hire_date from employees where department_id = ( select department_id from employees where first_name = \"clara\") and first_name != \"clara\"", "query_toks": ["SELECT", "first_name", ",", "last_name", ",", "hire_date", "FROM", "employees", "WHERE", "department_id", "=", "(", "SELECT", "department_id", "FROM", "employees", "WHERE", "first_name", "=", "``", "Clara", "''", ")", "AND", "first_name", "!", "=", "``", "Clara", "''"], "query_toks_no_value": ["select", "first_name", ",", "last_name", ",", "hire_date", "from", "employees", "where", "department_id", "=", "(", "select", "department_id", "from", "employees", "where", "first_name", "=", "value", ")", "and", "first_name", "!", "=", "value"], "question": "display the employee name ( first name and last name ) and hire date for all employees in the same department as Clara excluding Clara.", "question_toks": ["display", "the", "employee", "name", "(", "first", "name", "and", "last", "name", ")", "and", "hire", "date", "for", "all", "employees", "in", "the", "same", "department", "as", "Clara", "excluding", "Clara", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]], [0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"Clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 7, [0, [0, 15, false], null], "\"Clara\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3514", "db_id": "hr_1", "query": "select * from employees where employee_id not in (select employee_id from job_history)", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "employee_id", "NOT", "IN", "(", "SELECT", "employee_id", "FROM", "job_history", ")"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "employee_id", "not", "in", "(", "select", "employee_id", "from", "job_history", ")"], "question": "What is all the information about employees who have never had a job in the past?", "question_toks": ["What", "is", "all", "the", "information", "about", "employees", "who", "have", "never", "had", "a", "job", "in", "the", "past", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2636", "db_id": "inn_1", "query": "select count(*) from rooms where roomid not in (select distinct room from reservations)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "rooms", "WHERE", "roomid", "NOT", "IN", "(", "SELECT", "DISTINCT", "room", "FROM", "reservations", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "rooms", "where", "roomid", "not", "in", "(", "select", "distinct", "room", "from", "reservations", ")"], "question": "Find the number of rooms that do not have any reservation.", "question_toks": ["Find", "the", "number", "of", "rooms", "that", "do", "not", "have", "any", "reservation", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1524", "db_id": "insurance_and_eClaims", "query": "select customer_details from customers except select t2.customer_details from policies as t1 join customers as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_details", "FROM", "customers", "EXCEPT", "SELECT", "t2.customer_details", "FROM", "policies", "AS", "t1", "JOIN", "customers", "AS", "t2", "ON", "t1.customer_id", "=", "t2.customer_id"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "except", "select", "t2", ".", "customer_details", "from", "policies", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "What are the names of customers who do not have any policies?", "question_toks": ["What", "are", "the", "names", "of", "customers", "who", "do", "not", "have", "any", "policies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3893", "db_id": "insurance_policies", "query": "select customer_details from customers except select t1.customer_details from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_details", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "except", "select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "Which customers do not have any policies? Find the details of these customers.", "question_toks": ["Which", "customers", "do", "not", "have", "any", "policies", "?", "Find", "the", "details", "of", "these", "customers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3892", "db_id": "insurance_policies", "query": "select customer_details from customers except select t1.customer_details from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id", "query_toks": ["SELECT", "customer_details", "FROM", "Customers", "EXCEPT", "SELECT", "T1.customer_details", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id"], "query_toks_no_value": ["select", "customer_details", "from", "customers", "except", "select", "t1", ".", "customer_details", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id"], "question": "List the details of the customers who do not have any policies.", "question_toks": ["List", "the", "details", "of", "the", "customers", "who", "do", "not", "have", "any", "policies", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3852", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "EXCEPT", "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2.policy_id", "=", "T3.policy_id"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "question": "Which customer had at least 2 policies but did not file any claims? List the customer details and id.", "question_toks": ["Which", "customer", "had", "at", "least", "2", "policies", "but", "did", "not", "file", "any", "claims", "?", "List", "the", "customer", "details", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3853", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "EXCEPT", "SELECT", "T1.customer_details", ",", "T1.customer_id", "FROM", "Customers", "AS", "T1", "JOIN", "Customer_Policies", "AS", "T2", "ON", "T1.Customer_id", "=", "T2.customer_id", "JOIN", "Claims", "AS", "T3", "ON", "T2.policy_id", "=", "T3.policy_id"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "question": "Give me the the customer details and id for the customers who had two or more policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customer", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "or", "more", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["_NEGATION_ANY", "_AND_WITH_OR_COLUMN_REMOVED", "AND_WITH_OR_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0664", "db_id": "journal_committee", "query": "select name from editor where editor_id not in (select editor_id from journal_committee)", "query_toks": ["SELECT", "Name", "FROM", "editor", "WHERE", "editor_id", "NOT", "IN", "(", "SELECT", "editor_id", "FROM", "journal_committee", ")"], "query_toks_no_value": ["select", "name", "from", "editor", "where", "editor_id", "not", "in", "(", "select", "editor_id", "from", "journal_committee", ")"], "question": "List the names of editors that are not on any journal committee.", "question_toks": ["List", "the", "names", "of", "editors", "that", "are", "not", "on", "any", "journal", "committee", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0665", "db_id": "journal_committee", "query": "select date , theme , sales from journal except select t1.date , t1.theme , t1.sales from journal as t1 join journal_committee as t2 on t1.journal_id = t2.journal_id", "query_toks": ["SELECT", "date", ",", "theme", ",", "sales", "FROM", "journal", "EXCEPT", "SELECT", "T1.date", ",", "T1.theme", ",", "T1.sales", "FROM", "journal", "AS", "T1", "JOIN", "journal_committee", "AS", "T2", "ON", "T1.journal_ID", "=", "T2.journal_ID"], "query_toks_no_value": ["select", "date", ",", "theme", ",", "sales", "from", "journal", "except", "select", "t1", ".", "date", ",", "t1", ".", "theme", ",", "t1", ".", "sales", "from", "journal", "as", "t1", "join", "journal_committee", "as", "t2", "on", "t1", ".", "journal_id", "=", "t2", ".", "journal_id"], "question": "List the date, theme and sales of the journal which did not have any of the listed editors serving on committee.", "question_toks": ["List", "the", "date", ",", "theme", "and", "sales", "of", "the", "journal", "which", "did", "not", "have", "any", "of", "the", "listed", "editors", "serving", "on", "committee", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3084", "db_id": "loan_1", "query": "select avg(credit_score) from customer where cust_id not in (select cust_id from loan)", "query_toks": ["SELECT", "avg", "(", "credit_score", ")", "FROM", "customer", "WHERE", "cust_id", "NOT", "IN", "(", "SELECT", "cust_id", "FROM", "loan", ")"], "query_toks_no_value": ["select", "avg", "(", "credit_score", ")", "from", "customer", "where", "cust_id", "not", "in", "(", "select", "cust_id", "from", "loan", ")"], "question": "Find the average credit score of the customers who do not have any loan.", "question_toks": ["Find", "the", "average", "credit", "score", "of", "the", "customers", "who", "do", "not", "have", "any", "loan", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4858", "db_id": "local_govt_and_lot", "query": "select count(*) from customers where customer_id not in ( select customer_id from customer_events )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "customers", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "customer_events", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "customer_events", ")"], "question": "How many customers did not have any event?", "question_toks": ["How", "many", "customers", "did", "not", "have", "any", "event", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2151", "db_id": "local_govt_in_alabama", "query": "select count(*) from events where event_id not in (select event_id from participants_in_events)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "EVENTS", "WHERE", "event_id", "NOT", "IN", "(", "SELECT", "event_id", "FROM", "Participants_in_Events", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "events", "where", "event_id", "not", "in", "(", "select", "event_id", "from", "participants_in_events", ")"], "question": "How many events did not have any participants?", "question_toks": ["How", "many", "events", "did", "not", "have", "any", "participants", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2658", "db_id": "local_govt_mdm", "query": "select cmi_cross_ref_id from cmi_cross_references except select cmi_cross_ref_id from parking_fines", "query_toks": ["SELECT", "cmi_cross_ref_id", "FROM", "cmi_cross_references", "EXCEPT", "SELECT", "cmi_cross_ref_id", "FROM", "parking_fines"], "query_toks_no_value": ["select", "cmi_cross_ref_id", "from", "cmi_cross_references", "except", "select", "cmi_cross_ref_id", "from", "parking_fines"], "question": "Which cmi cross reference id is not related to any parking taxes?", "question_toks": ["Which", "cmi", "cross", "reference", "id", "is", "not", "related", "to", "any", "parking", "taxes", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3403", "db_id": "manufacturer", "query": "select market_rate , name from furniture where furniture_id not in (select furniture_id from furniture_manufacte)", "query_toks": ["SELECT", "Market_Rate", ",", "name", "FROM", "furniture", "WHERE", "Furniture_ID", "NOT", "IN", "(", "SELECT", "Furniture_ID", "FROM", "furniture_manufacte", ")"], "query_toks_no_value": ["select", "market_rate", ",", "name", "from", "furniture", "where", "furniture_id", "not", "in", "(", "select", "furniture_id", "from", "furniture_manufacte", ")"], "question": "Find the market shares and names of furnitures which no any company is producing in our records.", "question_toks": ["Find", "the", "market", "shares", "and", "names", "of", "furnitures", "which", "no", "any", "company", "is", "producing", "in", "our", "records", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0961", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from enzyme where id not in ( select enzyme_id from medicine_enzyme_interaction );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "enzyme", "WHERE", "id", "NOT", "IN", "(", "SELECT", "enzyme_id", "FROM", "medicine_enzyme_interaction", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "enzyme", "where", "id", "not", "in", "(", "select", "enzyme_id", "from", "medicine_enzyme_interaction", ")"], "question": "How many enzymes do not have any interactions?", "question_toks": ["How", "many", "enzymes", "do", "not", "have", "any", "interactions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0962", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from enzyme where id not in ( select enzyme_id from medicine_enzyme_interaction );", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "enzyme", "WHERE", "id", "NOT", "IN", "(", "SELECT", "enzyme_id", "FROM", "medicine_enzyme_interaction", ")", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "enzyme", "where", "id", "not", "in", "(", "select", "enzyme_id", "from", "medicine_enzyme_interaction", ")"], "question": "What is the count of enzymes without any interactions?", "question_toks": ["What", "is", "the", "count", "of", "enzymes", "without", "any", "interactions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3722", "db_id": "mountain_photos", "query": "select count(*) from camera_lens where id not in ( select camera_lens_id from photos )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "camera_lens", "WHERE", "id", "NOT", "IN", "(", "SELECT", "camera_lens_id", "FROM", "photos", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "camera_lens", "where", "id", "not", "in", "(", "select", "camera_lens_id", "from", "photos", ")"], "question": "How many camera lenses are not used in taking any photos?", "question_toks": ["How", "many", "camera", "lenses", "are", "not", "used", "in", "taking", "any", "photos", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2514", "db_id": "movie_1", "query": "select mid , avg(stars) from rating where mid not in (select t1.mid from rating as t1 join reviewer as t2 on t1.rid = t2.rid where t2.name = \"brittany harris\") group by mid", "query_toks": ["SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''", ")", "GROUP", "BY", "mID"], "query_toks_no_value": ["select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "where", "mid", "not", "in", "(", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value", ")", "group", "by", "mid"], "question": "Find the average rating star for each movie that are not reviewed by Brittany Harris.", "question_toks": ["Find", "the", "average", "rating", "star", "for", "each", "movie", "that", "are", "not", "reviewed", "by", "Brittany", "Harris", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Brittany Harris\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2515", "db_id": "movie_1", "query": "select mid , avg(stars) from rating where mid not in (select t1.mid from rating as t1 join reviewer as t2 on t1.rid = t2.rid where t2.name = \"brittany harris\") group by mid", "query_toks": ["SELECT", "mID", ",", "avg", "(", "stars", ")", "FROM", "Rating", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''", ")", "GROUP", "BY", "mID"], "query_toks_no_value": ["select", "mid", ",", "avg", "(", "stars", ")", "from", "rating", "where", "mid", "not", "in", "(", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value", ")", "group", "by", "mid"], "question": "What is the average rating for each movie that has never been reviewed by Brittany Harris?", "question_toks": ["What", "is", "the", "average", "rating", "for", "each", "movie", "that", "has", "never", "been", "reviewed", "by", "Brittany", "Harris", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [5, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Brittany Harris\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [[0, 8, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2458", "db_id": "movie_1", "query": "select title from movie where mid not in (select mid from rating)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")"], "question": "Find the titles of all movies that have no ratings.", "question_toks": ["Find", "the", "titles", "of", "all", "movies", "that", "have", "no", "ratings", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2459", "db_id": "movie_1", "query": "select title from movie where mid not in (select mid from rating)", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "mID", "NOT", "IN", "(", "SELECT", "mID", "FROM", "Rating", ")"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "mid", "not", "in", "(", "select", "mid", "from", "rating", ")"], "question": "What are the titles of all movies that have not been rated?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "have", "not", "been", "rated", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2461", "db_id": "movie_1", "query": "select distinct name from reviewer as t1 join rating as t2 on t1.rid = t2.rid where ratingdate = \"null\"", "query_toks": ["SELECT", "DISTINCT", "name", "FROM", "Reviewer", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "ratingDate", "=", "``", "null", "''"], "query_toks_no_value": ["select", "distinct", "name", "from", "reviewer", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "ratingdate", "=", "value"], "question": "What are the different names of all reviewers whose ratings do not have a date field?", "question_toks": ["What", "are", "the", "different", "names", "of", "all", "reviewers", "whose", "ratings", "do", "not", "have", "a", "date", "field", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"null\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2484", "db_id": "movie_1", "query": "select distinct title from movie except select t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid join reviewer as t3 on t1.rid = t3.rid where t3.name = 'chris jackson'", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "Movie", "EXCEPT", "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Chris", "Jackson", "'"], "query_toks_no_value": ["select", "distinct", "title", "from", "movie", "except", "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value"], "question": "Find the titles of all movies not reviewed by Chris Jackson.", "question_toks": ["Find", "the", "titles", "of", "all", "movies", "not", "reviewed", "by", "Chris", "Jackson", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Chris Jackson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2485", "db_id": "movie_1", "query": "select distinct title from movie except select t2.title from rating as t1 join movie as t2 on t1.mid = t2.mid join reviewer as t3 on t1.rid = t3.rid where t3.name = 'chris jackson'", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "Movie", "EXCEPT", "SELECT", "T2.title", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "JOIN", "Reviewer", "AS", "T3", "ON", "T1.rID", "=", "T3.rID", "WHERE", "T3.name", "=", "'Chris", "Jackson", "'"], "query_toks_no_value": ["select", "distinct", "title", "from", "movie", "except", "select", "t2", ".", "title", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "join", "reviewer", "as", "t3", "on", "t1", ".", "rid", "=", "t3", ".", "rid", "where", "t3", ".", "name", "=", "value"], "question": "What are the titles of all movies that were not reviewed by Chris Jackson?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "were", "not", "reviewed", "by", "Chris", "Jackson", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Chris Jackson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2493", "db_id": "movie_1", "query": "select director from movie where director != \"null\" group by director having count(*) = 1", "query_toks": ["SELECT", "director", "FROM", "Movie", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director", "HAVING", "count", "(", "*", ")", "=", "1"], "query_toks_no_value": ["select", "director", "from", "movie", "where", "director", "!", "=", "value", "group", "by", "director", "having", "count", "(", "*", ")", "=", "value"], "question": "What are the names of all directors who have made one movie except for the director named NULL?", "question_toks": ["What", "are", "the", "names", "of", "all", "directors", "who", "have", "made", "one", "movie", "except", "for", "the", "director", "named", "NULL", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2503", "db_id": "movie_1", "query": "select t2.title , t1.stars , t2.director , max(t1.stars) from rating as t1 join movie as t2 on t1.mid = t2.mid where director != \"null\" group by director", "query_toks": ["SELECT", "T2.title", ",", "T1.stars", ",", "T2.director", ",", "max", "(", "T1.stars", ")", "FROM", "Rating", "AS", "T1", "JOIN", "Movie", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "director", "!", "=", "``", "null", "''", "GROUP", "BY", "director"], "query_toks_no_value": ["select", "t2", ".", "title", ",", "t1", ".", "stars", ",", "t2", ".", "director", ",", "max", "(", "t1", ".", "stars", ")", "from", "rating", "as", "t1", "join", "movie", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "director", "!", "=", "value", "group", "by", "director"], "question": "For each director, what are the titles and ratings for all the movies they reviewed?", "question_toks": ["For", "each", "director", ",", "what", "are", "the", "titles", "and", "ratings", "for", "all", "the", "movies", "they", "reviewed", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]], [1, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"null\"", null]], "groupBy": [[0, 4, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2517", "db_id": "movie_1", "query": "select mid from rating except select t1.mid from rating as t1 join reviewer as t2 on t1.rid = t2.rid where t2.name = \"brittany harris\"", "query_toks": ["SELECT", "mID", "FROM", "Rating", "EXCEPT", "SELECT", "T1.mID", "FROM", "Rating", "AS", "T1", "JOIN", "Reviewer", "AS", "T2", "ON", "T1.rID", "=", "T2.rID", "WHERE", "T2.name", "=", "``", "Brittany", "Harris", "''"], "query_toks_no_value": ["select", "mid", "from", "rating", "except", "select", "t1", ".", "mid", "from", "rating", "as", "t1", "join", "reviewer", "as", "t2", "on", "t1", ".", "rid", "=", "t2", ".", "rid", "where", "t2", ".", "name", "=", "value"], "question": "What are the ids of all moviest hat have not been reviewed by Britanny Harris?", "question_toks": ["What", "are", "the", "ids", "of", "all", "moviest", "hat", "have", "not", "been", "reviewed", "by", "Britanny", "Harris", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Brittany Harris\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2521", "db_id": "movie_1", "query": "select rid from rating except select rid from rating where stars = 4", "query_toks": ["SELECT", "rID", "FROM", "Rating", "EXCEPT", "SELECT", "rID", "FROM", "Rating", "WHERE", "stars", "=", "4"], "query_toks_no_value": ["select", "rid", "from", "rating", "except", "select", "rid", "from", "rating", "where", "stars", "=", "value"], "question": "What are the ids of all reviewers who did not give 4 stars?", "question_toks": ["What", "are", "the", "ids", "of", "all", "reviewers", "who", "did", "not", "give", "4", "stars", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0427", "db_id": "museum_visit", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ">", "value", ")"], "question": "Find the number of visitors who did not visit any museum opened after 2010.", "question_toks": ["Find", "the", "number", "of", "visitors", "who", "did", "not", "visit", "any", "museum", "opened", "after", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5253", "db_id": "music_2", "query": "select distinct title from vocals as t1 join songs as t2 on t1.songid = t2.songid except select t2.title from vocals as t1 join songs as t2 on t1.songid = t2.songid where type = \"back\"", "query_toks": ["SELECT", "DISTINCT", "title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "EXCEPT", "SELECT", "t2.title", "FROM", "vocals", "AS", "t1", "JOIN", "songs", "AS", "t2", "ON", "t1.songid", "=", "t2.songid", "WHERE", "TYPE", "=", "``", "back", "''"], "query_toks_no_value": ["select", "distinct", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "except", "select", "t2", ".", "title", "from", "vocals", "as", "t1", "join", "songs", "as", "t2", "on", "t1", ".", "songid", "=", "t2", ".", "songid", "where", "type", "=", "value"], "question": "What are the different names of all songs without back vocals?", "question_toks": ["What", "are", "the", "different", "names", "of", "all", "songs", "without", "back", "vocals", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"back\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6189", "db_id": "music_4", "query": "select famous_title from artist where artist_id not in(select artist_id from volume)", "query_toks": ["SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")"], "query_toks_no_value": ["select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")"], "question": "Find the famous titles of artists that do not have any volume.", "question_toks": ["Find", "the", "famous", "titles", "of", "artists", "that", "do", "not", "have", "any", "volume", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6190", "db_id": "music_4", "query": "select famous_title from artist where artist_id not in(select artist_id from volume)", "query_toks": ["SELECT", "Famous_Title", "FROM", "artist", "WHERE", "Artist_ID", "NOT", "IN", "(", "SELECT", "Artist_ID", "FROM", "volume", ")"], "query_toks_no_value": ["select", "famous_title", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "volume", ")"], "question": "What are the famous titles of artists who do not have any volumes?", "question_toks": ["What", "are", "the", "famous", "titles", "of", "artists", "who", "do", "not", "have", "any", "volumes", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0894", "db_id": "network_1", "query": "select id from highschooler except select student_id from friend", "query_toks": ["SELECT", "id", "FROM", "Highschooler", "EXCEPT", "SELECT", "student_id", "FROM", "Friend"], "query_toks_no_value": ["select", "id", "from", "highschooler", "except", "select", "student_id", "from", "friend"], "question": "Show ids of all students who do not have any friends.", "question_toks": ["Show", "ids", "of", "all", "students", "who", "do", "not", "have", "any", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0896", "db_id": "network_1", "query": "select name from highschooler except select t2.name from friend as t1 join highschooler as t2 on t1.student_id = t2.id", "query_toks": ["SELECT", "name", "FROM", "Highschooler", "EXCEPT", "SELECT", "T2.name", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id"], "query_toks_no_value": ["select", "name", "from", "highschooler", "except", "select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id"], "question": "Show names of all high school students who do not have any friends.", "question_toks": ["Show", "names", "of", "all", "high", "school", "students", "who", "do", "not", "have", "any", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4477", "db_id": "network_2", "query": "select name from person except select name from personfriend", "query_toks": ["SELECT", "name", "FROM", "person", "EXCEPT", "SELECT", "name", "FROM", "PersonFriend"], "query_toks_no_value": ["select", "name", "from", "person", "except", "select", "name", "from", "personfriend"], "question": "What are the names of all people who do not have friends?", "question_toks": ["What", "are", "the", "names", "of", "all", "people", "who", "do", "not", "have", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2816", "db_id": "news_report", "query": "select name from journalist where journalist_id not in (select journalist_id from news_report)", "query_toks": ["SELECT", "Name", "FROM", "journalist", "WHERE", "journalist_ID", "NOT", "IN", "(", "SELECT", "journalist_ID", "FROM", "news_report", ")"], "query_toks_no_value": ["select", "name", "from", "journalist", "where", "journalist_id", "not", "in", "(", "select", "journalist_id", "from", "news_report", ")"], "question": "List the names of journalists who have not reported any event.", "question_toks": ["List", "the", "names", "of", "journalists", "who", "have", "not", "reported", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0855", "db_id": "orchestra", "query": "select orchestra from orchestra where orchestra_id not in (select orchestra_id from performance)", "query_toks": ["SELECT", "Orchestra", "FROM", "orchestra", "WHERE", "Orchestra_ID", "NOT", "IN", "(", "SELECT", "Orchestra_ID", "FROM", "performance", ")"], "query_toks_no_value": ["select", "orchestra", "from", "orchestra", "where", "orchestra_id", "not", "in", "(", "select", "orchestra_id", "from", "performance", ")"], "question": "What are the orchestras that do not have any performances?", "question_toks": ["What", "are", "the", "orchestras", "that", "do", "not", "have", "any", "performances", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2689", "db_id": "party_host", "query": "select name from host where host_id not in (select host_id from party_host)", "query_toks": ["SELECT", "Name", "FROM", "HOST", "WHERE", "Host_ID", "NOT", "IN", "(", "SELECT", "Host_ID", "FROM", "party_host", ")"], "query_toks_no_value": ["select", "name", "from", "host", "where", "host_id", "not", "in", "(", "select", "host_id", "from", "party_host", ")"], "question": "What are the names of hosts who did not host any party in our record?", "question_toks": ["What", "are", "the", "names", "of", "hosts", "who", "did", "not", "host", "any", "party", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2688", "db_id": "party_host", "query": "select name from host where host_id not in (select host_id from party_host)", "query_toks": ["SELECT", "Name", "FROM", "HOST", "WHERE", "Host_ID", "NOT", "IN", "(", "SELECT", "Host_ID", "FROM", "party_host", ")"], "query_toks_no_value": ["select", "name", "from", "host", "where", "host_id", "not", "in", "(", "select", "host_id", "from", "party_host", ")"], "question": "List the names of hosts who did not serve as a host of any party in our record.", "question_toks": ["List", "the", "names", "of", "hosts", "who", "did", "not", "serve", "as", "a", "host", "of", "any", "party", "in", "our", "record", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2063", "db_id": "party_people", "query": "select party_name from party where party_id not in (select party_id from member)", "query_toks": ["SELECT", "party_name", "FROM", "party", "WHERE", "party_id", "NOT", "IN", "(", "SELECT", "party_id", "FROM", "Member", ")"], "query_toks_no_value": ["select", "party_name", "from", "party", "where", "party_id", "not", "in", "(", "select", "party_id", "from", "member", ")"], "question": "Show names of parties that does not have any members.", "question_toks": ["Show", "names", "of", "parties", "that", "does", "not", "have", "any", "members", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2073", "db_id": "party_people", "query": "select member_name from member except select t1.member_name from member as t1 join party_events as t2 on t1.member_id = t2.member_in_charge_id", "query_toks": ["SELECT", "member_name", "FROM", "member", "EXCEPT", "SELECT", "T1.member_name", "FROM", "member", "AS", "T1", "JOIN", "party_events", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_in_charge_id"], "query_toks_no_value": ["select", "member_name", "from", "member", "except", "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party_events", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_in_charge_id"], "question": "Show all member names who are not in charge of any event.", "question_toks": ["Show", "all", "member", "names", "who", "are", "not", "in", "charge", "of", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2074", "db_id": "party_people", "query": "select member_name from member except select t1.member_name from member as t1 join party_events as t2 on t1.member_id = t2.member_in_charge_id", "query_toks": ["SELECT", "member_name", "FROM", "member", "EXCEPT", "SELECT", "T1.member_name", "FROM", "member", "AS", "T1", "JOIN", "party_events", "AS", "T2", "ON", "T1.member_id", "=", "T2.member_in_charge_id"], "query_toks_no_value": ["select", "member_name", "from", "member", "except", "select", "t1", ".", "member_name", "from", "member", "as", "t1", "join", "party_events", "as", "t2", "on", "t1", ".", "member_id", "=", "t2", ".", "member_in_charge_id"], "question": "What are the names of members who are not in charge of any events?", "question_toks": ["What", "are", "the", "names", "of", "members", "who", "are", "not", "in", "charge", "of", "any", "events", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2049", "db_id": "party_people", "query": "select minister from party where party_name != 'progress party'", "query_toks": ["SELECT", "minister", "FROM", "party", "WHERE", "party_name", "!", "=", "'Progress", "Party", "'"], "query_toks_no_value": ["select", "minister", "from", "party", "where", "party_name", "!", "=", "value"], "question": "Show all ministers who do not belong to Progress Party.", "question_toks": ["Show", "all", "ministers", "who", "do", "not", "belong", "to", "Progress", "Party", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 7, [0, [0, 12, false], null], "\"Progress Party\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1321", "db_id": "performance_attendance", "query": "select name from member where member_id not in (select member_id from member_attendance)", "query_toks": ["SELECT", "Name", "FROM", "member", "WHERE", "Member_ID", "NOT", "IN", "(", "SELECT", "Member_ID", "FROM", "member_attendance", ")"], "query_toks_no_value": ["select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "member_attendance", ")"], "question": "List the names of members who did not attend any performance.", "question_toks": ["List", "the", "names", "of", "members", "who", "did", "not", "attend", "any", "performance", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0085", "db_id": "pets_1", "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", "query_toks": ["select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")"], "question": "Find the average age of students who do not have any pet .", "question_toks": ["Find", "the", "average", "age", "of", "students", "who", "do", "not", "have", "any", "pet", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0086", "db_id": "pets_1", "query": "select avg(age) from student where stuid not in (select stuid from has_pet)", "query_toks": ["select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "student", "where", "stuid", "not", "in", "(", "select", "stuid", "from", "has_pet", ")"], "question": "What is the average age for all students who do not own any pets ?", "question_toks": ["What", "is", "the", "average", "age", "for", "all", "students", "who", "do", "not", "own", "any", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1050", "db_id": "phone_1", "query": "select model_name from chip_model except select chip_model from phone where accreditation_type = 'full'", "query_toks": ["SELECT", "model_name", "FROM", "chip_model", "EXCEPT", "SELECT", "chip_model", "FROM", "phone", "WHERE", "Accreditation_type", "=", "'Full", "'"], "query_toks_no_value": ["select", "model_name", "from", "chip_model", "except", "select", "chip_model", "from", "phone", "where", "accreditation_type", "=", "value"], "question": "Find the names of the chip models that are not used by any phone with full accreditation type.", "question_toks": ["Find", "the", "names", "of", "the", "chip", "models", "that", "are", "not", "used", "by", "any", "phone", "with", "full", "accreditation", "type", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"Full\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1049", "db_id": "phone_1", "query": "select avg(ram_mib) from chip_model where model_name not in (select chip_model from phone)", "query_toks": ["SELECT", "avg", "(", "RAM_MiB", ")", "FROM", "chip_model", "WHERE", "model_name", "NOT", "IN", "(", "SELECT", "chip_model", "FROM", "phone", ")"], "query_toks_no_value": ["select", "avg", "(", "ram_mib", ")", "from", "chip_model", "where", "model_name", "not", "in", "(", "select", "chip_model", "from", "phone", ")"], "question": "Find the average ram mib size of the chip models that are never used by any phone.", "question_toks": ["Find", "the", "average", "ram", "mib", "size", "of", "the", "chip", "models", "that", "are", "never", "used", "by", "any", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1992", "db_id": "phone_market", "query": "select name from phone where phone_id not in (select phone_id from phone_market)", "query_toks": ["SELECT", "Name", "FROM", "phone", "WHERE", "Phone_id", "NOT", "IN", "(", "SELECT", "Phone_ID", "FROM", "phone_market", ")"], "query_toks_no_value": ["select", "name", "from", "phone", "where", "phone_id", "not", "in", "(", "select", "phone_id", "from", "phone_market", ")"], "question": "List the names of phones that are not on any market.", "question_toks": ["List", "the", "names", "of", "phones", "that", "are", "not", "on", "any", "market", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[true, 8, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2097", "db_id": "pilot_record", "query": "select pilot_name from pilot where pilot_id not in (select pilot_id from pilot_record)", "query_toks": ["SELECT", "Pilot_name", "FROM", "pilot", "WHERE", "Pilot_ID", "NOT", "IN", "(", "SELECT", "Pilot_ID", "FROM", "pilot_record", ")"], "query_toks_no_value": ["select", "pilot_name", "from", "pilot", "where", "pilot_id", "not", "in", "(", "select", "pilot_id", "from", "pilot_record", ")"], "question": "List the names of pilots that do not have any record.", "question_toks": ["List", "the", "names", "of", "pilots", "that", "do", "not", "have", "any", "record", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5600", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors where color_code not in ( select color_code from products )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Ref_colors", "WHERE", "color_code", "NOT", "IN", "(", "SELECT", "color_code", "FROM", "products", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "ref_colors", "where", "color_code", "not", "in", "(", "select", "color_code", "from", "products", ")"], "question": "How many colors are never used by any product?", "question_toks": ["How", "many", "colors", "are", "never", "used", "by", "any", "product", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5601", "db_id": "products_gen_characteristics", "query": "select count(*) from ref_colors where color_code not in ( select color_code from products )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Ref_colors", "WHERE", "color_code", "NOT", "IN", "(", "SELECT", "color_code", "FROM", "products", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "ref_colors", "where", "color_code", "not", "in", "(", "select", "color_code", "from", "products", ")"], "question": "Count the number of colors that are not used in any products.", "question_toks": ["Count", "the", "number", "of", "colors", "that", "are", "not", "used", "in", "any", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5597", "db_id": "products_gen_characteristics", "query": "select characteristic_name , other_characteristic_details , characteristic_data_type from characteristics except select t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type from characteristics as t1 join product_characteristics as t2 on t1.characteristic_id = t2.characteristic_id", "query_toks": ["SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS", "EXCEPT", "SELECT", "t1.characteristic_name", ",", "t1.other_characteristic_details", ",", "t1.characteristic_data_type", "FROM", "CHARACTERISTICS", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.characteristic_id", "=", "t2.characteristic_id"], "query_toks_no_value": ["select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics", "except", "select", "t1", ".", "characteristic_name", ",", "t1", ".", "other_characteristic_details", ",", "t1", ".", "characteristic_data_type", "from", "characteristics", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "characteristic_id", "=", "t2", ".", "characteristic_id"], "question": "Give the names, details, and data types of characteristics that are not found in any product.", "question_toks": ["Give", "the", "names", ",", "details", ",", "and", "data", "types", "of", "characteristics", "that", "are", "not", "found", "in", "any", "product", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 22, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5596", "db_id": "products_gen_characteristics", "query": "select characteristic_name , other_characteristic_details , characteristic_data_type from characteristics except select t1.characteristic_name , t1.other_characteristic_details , t1.characteristic_data_type from characteristics as t1 join product_characteristics as t2 on t1.characteristic_id = t2.characteristic_id", "query_toks": ["SELECT", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "FROM", "CHARACTERISTICS", "EXCEPT", "SELECT", "t1.characteristic_name", ",", "t1.other_characteristic_details", ",", "t1.characteristic_data_type", "FROM", "CHARACTERISTICS", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.characteristic_id", "=", "t2.characteristic_id"], "query_toks_no_value": ["select", "characteristic_name", ",", "other_characteristic_details", ",", "characteristic_data_type", "from", "characteristics", "except", "select", "t1", ".", "characteristic_name", ",", "t1", ".", "other_characteristic_details", ",", "t1", ".", "characteristic_data_type", "from", "characteristics", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "characteristic_id", "=", "t2", ".", "characteristic_id"], "question": "What are the names, details and data types of the characteristics which are never used by any product?", "question_toks": ["What", "are", "the", "names", ",", "details", "and", "data", "types", "of", "the", "characteristics", "which", "are", "never", "used", "by", "any", "product", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 22, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1920", "db_id": "protein_institute", "query": "select name from building where building_id not in (select building_id from institution)", "query_toks": ["SELECT", "name", "FROM", "building", "WHERE", "building_id", "NOT", "IN", "(", "SELECT", "building_id", "FROM", "institution", ")"], "query_toks_no_value": ["select", "name", "from", "building", "where", "building_id", "not", "in", "(", "select", "building_id", "from", "institution", ")"], "question": "Show the name of buildings that do not have any institution.", "question_toks": ["Show", "the", "name", "of", "buildings", "that", "do", "not", "have", "any", "institution", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0776", "db_id": "race_track", "query": "select name from track where track_id not in (select track_id from race)", "query_toks": ["SELECT", "name", "FROM", "track", "WHERE", "track_id", "NOT", "IN", "(", "SELECT", "track_id", "FROM", "race", ")"], "query_toks_no_value": ["select", "name", "from", "track", "where", "track_id", "not", "in", "(", "select", "track_id", "from", "race", ")"], "question": "Return the names of tracks that have no had any races.", "question_toks": ["Return", "the", "names", "of", "tracks", "that", "have", "no", "had", "any", "races", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0775", "db_id": "race_track", "query": "select name from track where track_id not in (select track_id from race)", "query_toks": ["SELECT", "name", "FROM", "track", "WHERE", "track_id", "NOT", "IN", "(", "SELECT", "track_id", "FROM", "race", ")"], "query_toks_no_value": ["select", "name", "from", "track", "where", "track_id", "not", "in", "(", "select", "track_id", "from", "race", ")"], "question": "Show all track names that have had no races.", "question_toks": ["Show", "all", "track", "names", "that", "have", "had", "no", "races", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5648", "db_id": "railway", "query": "select objectnumber from railway where railway_id not in (select railway_id from train)", "query_toks": ["SELECT", "ObjectNumber", "FROM", "railway", "WHERE", "Railway_ID", "NOT", "IN", "(", "SELECT", "Railway_ID", "FROM", "train", ")"], "query_toks_no_value": ["select", "objectnumber", "from", "railway", "where", "railway_id", "not", "in", "(", "select", "railway_id", "from", "train", ")"], "question": "List the object number of railways that do not have any trains.", "question_toks": ["List", "the", "object", "number", "of", "railways", "that", "do", "not", "have", "any", "trains", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2835", "db_id": "restaurant_1", "query": "select fname , lname from student where age > 18 and major != 600 and sex = 'f';", "query_toks": ["SELECT", "Fname", ",", "Lname", "FROM", "Student", "WHERE", "Age", ">", "18", "AND", "Major", "!", "=", "600", "AND", "Sex", "=", "'F", "'", ";"], "query_toks_no_value": ["select", "fname", ",", "lname", "from", "student", "where", "age", ">", "value", "and", "major", "!", "=", "value", "and", "sex", "=", "value"], "question": "List all female students age is older than 18 who is not majoring in 600. List students' first name and last name.", "question_toks": ["List", "all", "female", "students", "age", "is", "older", "than", "18", "who", "is", "not", "majoring", "in", "600", ".", "List", "students", "'", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 18.0, null], "and", [false, 7, [0, [0, 6, false], null], 600.0, null], "and", [false, 2, [0, [0, 5, false], null], "\"F\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3004", "db_id": "sakila_1", "query": "select first_name from customer where customer_id not in( select customer_id from rental where rental_date > '2005-08-23 02:06:01' )", "query_toks": ["SELECT", "first_name", "FROM", "customer", "WHERE", "customer_id", "NOT", "IN", "(", "SELECT", "customer_id", "FROM", "rental", "WHERE", "rental_date", ">", "'2005-08-23", "02:06:01", "'", ")"], "query_toks_no_value": ["select", "first_name", "from", "customer", "where", "customer_id", "not", "in", "(", "select", "customer_id", "from", "rental", "where", "rental_date", ">", "value", ")"], "question": "What are the first names of customers who have not rented any films after '2005-08-23 02:06:01'?", "question_toks": ["What", "are", "the", "first", "names", "of", "customers", "who", "have", "not", "rented", "any", "films", "after", "'2005-08-23", "02:06:01", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[true, 8, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 13]], "conds": []}, "select": [false, [[0, [0, [0, 71, false], null]]]], "where": [[false, 3, [0, [0, 69, false], null], "\"2005-08-23 02:06:01\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2992", "db_id": "sakila_1", "query": "select title from film where length > 100 or rating = 'pg' except select title from film where replacement_cost > 200", "query_toks": ["SELECT", "title", "FROM", "film", "WHERE", "LENGTH", ">", "100", "OR", "rating", "=", "'PG", "'", "EXCEPT", "SELECT", "title", "FROM", "film", "WHERE", "replacement_cost", ">", "200"], "query_toks_no_value": ["select", "title", "from", "film", "where", "length", ">", "value", "or", "rating", "=", "value", "except", "select", "title", "from", "film", "where", "replacement_cost", ">", "value"], "question": "Find all the films longer than 100 minutes, or rated PG, except those who cost more than 200 for replacement. List the titles.", "question_toks": ["Find", "all", "the", "films", "longer", "than", "100", "minutes", ",", "or", "rated", "PG", ",", "except", "those", "who", "cost", "more", "than", "200", "for", "replacement", ".", "List", "the", "titles", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 3, [0, [0, 40, false], null], 100.0, null], "or", [false, 2, [0, [0, 42, false], null], "\"PG\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 3, [0, [0, 41, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6356", "db_id": "school_bus", "query": "select home_city from driver except select home_city from driver where age > 40", "query_toks": ["SELECT", "home_city", "FROM", "driver", "EXCEPT", "SELECT", "home_city", "FROM", "driver", "WHERE", "age", ">", "40"], "query_toks_no_value": ["select", "home_city", "from", "driver", "except", "select", "home_city", "from", "driver", "where", "age", ">", "value"], "question": "Show all home cities except for those having a driver older than 40.", "question_toks": ["Show", "all", "home", "cities", "except", "for", "those", "having", "a", "driver", "older", "than", "40", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1895", "db_id": "school_finance", "query": "select school_name from school where school_id not in (select school_id from endowment)", "query_toks": ["SELECT", "school_name", "FROM", "school", "WHERE", "school_id", "NOT", "IN", "(", "SELECT", "school_id", "FROM", "endowment", ")"], "query_toks_no_value": ["select", "school_name", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "endowment", ")"], "question": "List the names of the schools without any endowment.", "question_toks": ["List", "the", "names", "of", "the", "schools", "without", "any", "endowment", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1898", "db_id": "school_finance", "query": "select donator_name from endowment except select donator_name from endowment where amount < 9", "query_toks": ["SELECT", "donator_name", "FROM", "endowment", "EXCEPT", "SELECT", "donator_name", "FROM", "endowment", "WHERE", "amount", "<", "9"], "query_toks_no_value": ["select", "donator_name", "from", "endowment", "except", "select", "donator_name", "from", "endowment", "where", "amount", "<", "value"], "question": "Show the names of all the donors except those whose donation amount less than 9.", "question_toks": ["Show", "the", "names", "of", "all", "the", "donors", "except", "those", "whose", "donation", "amount", "less", "than", "9", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]]]], "where": [[false, 4, [0, [0, 19, false], null], 9.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4892", "db_id": "school_player", "query": "select location from school where school_id not in (select school_id from player)", "query_toks": ["SELECT", "LOCATION", "FROM", "school", "WHERE", "School_ID", "NOT", "IN", "(", "SELECT", "School_ID", "FROM", "Player", ")"], "query_toks_no_value": ["select", "location", "from", "school", "where", "school_id", "not", "in", "(", "select", "school_id", "from", "player", ")"], "question": "List the locations of schools that do not have any player.", "question_toks": ["List", "the", "locations", "of", "schools", "that", "do", "not", "have", "any", "player", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6510", "db_id": "scientist_1", "query": "select count(*) from scientists where ssn not in (select scientist from assignedto)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")"], "question": "How many scientists do not have any projects assigned to them?", "question_toks": ["How", "many", "scientists", "do", "not", "have", "any", "projects", "assigned", "to", "them", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6507", "db_id": "scientist_1", "query": "select name from scientists where ssn not in (select scientist from assignedto)", "query_toks": ["SELECT", "Name", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "name", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")"], "question": "Find the name of scientists who are not assigned to any project.", "question_toks": ["Find", "the", "name", "of", "scientists", "who", "are", "not", "assigned", "to", "any", "project", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6509", "db_id": "scientist_1", "query": "select count(*) from scientists where ssn not in (select scientist from assignedto)", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "scientists", "WHERE", "ssn", "NOT", "IN", "(", "SELECT", "scientist", "FROM", "AssignedTo", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "scientists", "where", "ssn", "not", "in", "(", "select", "scientist", "from", "assignedto", ")"], "question": "Find the number of scientists who are not assigned to any project.", "question_toks": ["Find", "the", "number", "of", "scientists", "who", "are", "not", "assigned", "to", "any", "project", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6264", "db_id": "ship_1", "query": "select name , flag from ship where ship_id not in (select ship_id from captain where rank = 'midshipman')", "query_toks": ["SELECT", "name", ",", "flag", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", "WHERE", "rank", "=", "'Midshipman", "'", ")"], "query_toks_no_value": ["select", "name", ",", "flag", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", "where", "rank", "=", "value", ")"], "question": "Find the name and flag of ships that are not steered by any captain with Midshipman rank.", "question_toks": ["Find", "the", "name", "and", "flag", "of", "ships", "that", "are", "not", "steered", "by", "any", "captain", "with", "Midshipman", "rank", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Midshipman\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6260", "db_id": "ship_1", "query": "select name , class from ship where ship_id not in (select ship_id from captain)", "query_toks": ["SELECT", "name", ",", "CLASS", "FROM", "ship", "WHERE", "ship_id", "NOT", "IN", "(", "SELECT", "ship_id", "FROM", "captain", ")"], "query_toks_no_value": ["select", "name", ",", "class", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "captain", ")"], "question": "what are the names and classes of the ships that do not have any captain yet?", "question_toks": ["what", "are", "the", "names", "and", "classes", "of", "the", "ships", "that", "do", "not", "have", "any", "captain", "yet", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4024", "db_id": "ship_mission", "query": "select name from ship where ship_id not in (select ship_id from mission)", "query_toks": ["SELECT", "Name", "FROM", "ship", "WHERE", "Ship_ID", "NOT", "IN", "(", "SELECT", "Ship_ID", "FROM", "mission", ")"], "query_toks_no_value": ["select", "name", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "mission", ")"], "question": "List the name of ships that are not involved in any mission", "question_toks": ["List", "the", "name", "of", "ships", "that", "are", "not", "involved", "in", "any", "mission"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4025", "db_id": "ship_mission", "query": "select name from ship where ship_id not in (select ship_id from mission)", "query_toks": ["SELECT", "Name", "FROM", "ship", "WHERE", "Ship_ID", "NOT", "IN", "(", "SELECT", "Ship_ID", "FROM", "mission", ")"], "query_toks_no_value": ["select", "name", "from", "ship", "where", "ship_id", "not", "in", "(", "select", "ship_id", "from", "mission", ")"], "question": "What are the names of the ships that are not involved in any missions?", "question_toks": ["What", "are", "the", "names", "of", "the", "ships", "that", "are", "not", "involved", "in", "any", "missions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5424", "db_id": "shop_membership", "query": "select name from member where member_id not in (select member_id from membership_register_branch)", "query_toks": ["SELECT", "name", "FROM", "member", "WHERE", "member_id", "NOT", "IN", "(", "SELECT", "member_id", "FROM", "membership_register_branch", ")"], "query_toks_no_value": ["select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "membership_register_branch", ")"], "question": "Show member names without any registered branch.", "question_toks": ["Show", "member", "names", "without", "any", "registered", "branch", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5435", "db_id": "shop_membership", "query": "select city from branch except select city from branch where membership_amount > 100", "query_toks": ["SELECT", "city", "FROM", "branch", "EXCEPT", "SELECT", "city", "FROM", "branch", "WHERE", "membership_amount", ">", "100"], "query_toks_no_value": ["select", "city", "from", "branch", "except", "select", "city", "from", "branch", "where", "membership_amount", ">", "value"], "question": "What are the cities that do not have any branches with more than 100 members?", "question_toks": ["What", "are", "the", "cities", "that", "do", "not", "have", "any", "branches", "with", "more", "than", "100", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5426", "db_id": "shop_membership", "query": "select name , city from branch where branch_id not in (select branch_id from membership_register_branch)", "query_toks": ["SELECT", "name", ",", "city", "FROM", "branch", "WHERE", "branch_id", "NOT", "IN", "(", "SELECT", "branch_id", "FROM", "membership_register_branch", ")"], "query_toks_no_value": ["select", "name", ",", "city", "from", "branch", "where", "branch_id", "not", "in", "(", "select", "branch_id", "from", "membership_register_branch", ")"], "question": "List the branch name and city without any registered members.", "question_toks": ["List", "the", "branch", "name", "and", "city", "without", "any", "registered", "members", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5427", "db_id": "shop_membership", "query": "select name , city from branch where branch_id not in (select branch_id from membership_register_branch)", "query_toks": ["SELECT", "name", ",", "city", "FROM", "branch", "WHERE", "branch_id", "NOT", "IN", "(", "SELECT", "branch_id", "FROM", "membership_register_branch", ")"], "query_toks_no_value": ["select", "name", ",", "city", "from", "branch", "where", "branch_id", "not", "in", "(", "select", "branch_id", "from", "membership_register_branch", ")"], "question": "What are the names and cities of the branches that do not have any registered members?", "question_toks": ["What", "are", "the", "names", "and", "cities", "of", "the", "branches", "that", "do", "not", "have", "any", "registered", "members", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 6, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5425", "db_id": "shop_membership", "query": "select name from member where member_id not in (select member_id from membership_register_branch)", "query_toks": ["SELECT", "name", "FROM", "member", "WHERE", "member_id", "NOT", "IN", "(", "SELECT", "member_id", "FROM", "membership_register_branch", ")"], "query_toks_no_value": ["select", "name", "from", "member", "where", "member_id", "not", "in", "(", "select", "member_id", "from", "membership_register_branch", ")"], "question": "What are the names of the members that have never registered at any branch?", "question_toks": ["What", "are", "the", "names", "of", "the", "members", "that", "have", "never", "registered", "at", "any", "branch", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5434", "db_id": "shop_membership", "query": "select city from branch except select city from branch where membership_amount > 100", "query_toks": ["SELECT", "city", "FROM", "branch", "EXCEPT", "SELECT", "city", "FROM", "branch", "WHERE", "membership_amount", ">", "100"], "query_toks_no_value": ["select", "city", "from", "branch", "except", "select", "city", "from", "branch", "where", "membership_amount", ">", "value"], "question": "Show all cities without a branch having more than 100 memberships.", "question_toks": ["Show", "all", "cities", "without", "a", "branch", "having", "more", "than", "100", "memberships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1026", "db_id": "singer", "query": "select name from singer where singer_id not in (select singer_id from song)", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Singer_ID", "NOT", "IN", "(", "SELECT", "Singer_ID", "FROM", "song", ")"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "singer_id", "not", "in", "(", "select", "singer_id", "from", "song", ")"], "question": "List the name of singers that do not have any song.", "question_toks": ["List", "the", "name", "of", "singers", "that", "do", "not", "have", "any", "song", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1027", "db_id": "singer", "query": "select name from singer where singer_id not in (select singer_id from song)", "query_toks": ["SELECT", "Name", "FROM", "singer", "WHERE", "Singer_ID", "NOT", "IN", "(", "SELECT", "Singer_ID", "FROM", "song", ")"], "query_toks_no_value": ["select", "name", "from", "singer", "where", "singer_id", "not", "in", "(", "select", "singer_id", "from", "song", ")"], "question": "What is the sname of every sing that does not have any song?", "question_toks": ["What", "is", "the", "sname", "of", "every", "sing", "that", "does", "not", "have", "any", "song", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5045", "db_id": "soccer_2", "query": "select sum(enr) from college where cname not in (select cname from tryout where ppos = \"goalie\")", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "college", "WHERE", "cName", "NOT", "IN", "(", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "``", "goalie", "''", ")"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college", "where", "cname", "not", "in", "(", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", ")"], "question": "What is the total number of students enrolled in schools without any goalies?", "question_toks": ["What", "is", "the", "total", "number", "of", "students", "enrolled", "in", "schools", "without", "any", "goalies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5044", "db_id": "soccer_2", "query": "select sum(enr) from college where cname not in (select cname from tryout where ppos = \"goalie\")", "query_toks": ["SELECT", "sum", "(", "enr", ")", "FROM", "college", "WHERE", "cName", "NOT", "IN", "(", "SELECT", "cName", "FROM", "tryout", "WHERE", "pPos", "=", "``", "goalie", "''", ")"], "query_toks_no_value": ["select", "sum", "(", "enr", ")", "from", "college", "where", "cname", "not", "in", "(", "select", "cname", "from", "tryout", "where", "ppos", "=", "value", ")"], "question": "What is the total number of enrollment of schools that do not have any goalie player?", "question_toks": ["What", "is", "the", "total", "number", "of", "enrollment", "of", "schools", "that", "do", "not", "have", "any", "goalie", "player", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 3, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5035", "db_id": "soccer_2", "query": "select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'mid' except select t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.ppos = 'goalie'", "query_toks": ["SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'mid", "'", "EXCEPT", "SELECT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value", "except", "select", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "ppos", "=", "value"], "question": "What are the names of all the states with college students playing in the mid position but no goalies?", "question_toks": ["What", "are", "the", "names", "of", "all", "the", "states", "with", "college", "students", "playing", "in", "the", "mid", "position", "but", "no", "goalies", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"mid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4597", "db_id": "solvency_ii", "query": "select product_name from products where product_id not in (select product_id from products_in_events)", "query_toks": ["SELECT", "Product_Name", "FROM", "Products", "WHERE", "Product_ID", "NOT", "IN", "(", "SELECT", "Product_ID", "FROM", "Products_in_Events", ")"], "query_toks_no_value": ["select", "product_name", "from", "products", "where", "product_id", "not", "in", "(", "select", "product_id", "from", "products_in_events", ")"], "question": "List the names of products that are not in any event.", "question_toks": ["List", "the", "names", "of", "products", "that", "are", "not", "in", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3371", "db_id": "sports_competition", "query": "select name from club where club_id not in (select club_id from player)", "query_toks": ["SELECT", "name", "FROM", "CLub", "WHERE", "Club_ID", "NOT", "IN", "(", "SELECT", "Club_ID", "FROM", "player", ")"], "query_toks_no_value": ["select", "name", "from", "club", "where", "club_id", "not", "in", "(", "select", "club_id", "from", "player", ")"], "question": "List the names of clubs that do not have any players.", "question_toks": ["List", "the", "names", "of", "clubs", "that", "do", "not", "have", "any", "players", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_ANY_REFORMULATION", "_NEGATION_ANY", "ANY_SOME_IN_NL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3372", "db_id": "sports_competition", "query": "select name from club where club_id not in (select club_id from player)", "query_toks": ["SELECT", "name", "FROM", "CLub", "WHERE", "Club_ID", "NOT", "IN", "(", "SELECT", "Club_ID", "FROM", "player", ")"], "query_toks_no_value": ["select", "name", "from", "club", "where", "club_id", "not", "in", "(", "select", "club_id", "from", "player", ")"], "question": "What are the names of all clubs that do not have any players?", "question_toks": ["What", "are", "the", "names", "of", "all", "clubs", "that", "do", "not", "have", "any", "players", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3387", "db_id": "sports_competition", "query": "select country from competition except select country from competition where competition_type = 'friendly'", "query_toks": ["SELECT", "country", "FROM", "competition", "EXCEPT", "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Friendly", "'"], "query_toks_no_value": ["select", "country", "from", "competition", "except", "select", "country", "from", "competition", "where", "competition_type", "=", "value"], "question": "Find the countries that have never participated in any competition with Friendly type.", "question_toks": ["Find", "the", "countries", "that", "have", "never", "participated", "in", "any", "competition", "with", "Friendly", "type", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Friendly\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3388", "db_id": "sports_competition", "query": "select country from competition except select country from competition where competition_type = 'friendly'", "query_toks": ["SELECT", "country", "FROM", "competition", "EXCEPT", "SELECT", "country", "FROM", "competition", "WHERE", "competition_type", "=", "'Friendly", "'"], "query_toks_no_value": ["select", "country", "from", "competition", "except", "select", "country", "from", "competition", "where", "competition_type", "=", "value"], "question": "What are the countries that have never participated in any friendly-type competitions?", "question_toks": ["What", "are", "the", "countries", "that", "have", "never", "participated", "in", "any", "friendly-type", "competitions", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Friendly\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3346", "db_id": "sports_competition", "query": "select distinct year from competition where competition_type != \"tournament\"", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "competition", "WHERE", "Competition_type", "!", "=", "``", "Tournament", "''"], "query_toks_no_value": ["select", "distinct", "year", "from", "competition", "where", "competition_type", "!", "=", "value"], "question": "What are the different years for all competitions that are not of type equal to tournament?", "question_toks": ["What", "are", "the", "different", "years", "for", "all", "competitions", "that", "are", "not", "of", "type", "equal", "to", "tournament", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 20, false], null]]]], "where": [[false, 7, [0, [0, 21, false], null], "\"Tournament\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4939", "db_id": "store_product", "query": "select product from product where product != (select max_page_size from product group by max_page_size order by count(*) desc limit 1)", "query_toks": ["SELECT", "product", "FROM", "product", "WHERE", "product", "!", "=", "(", "SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1", ")"], "query_toks_no_value": ["select", "product", "from", "product", "where", "product", "!", "=", "(", "select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value", ")"], "question": "What are the names of all products that are not the most frequently-used maximum page size?", "question_toks": ["What", "are", "the", "names", "of", "all", "products", "that", "are", "not", "the", "most", "frequently-used", "maximum", "page", "size", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 7, [0, [0, 2, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2719", "db_id": "storm_record", "query": "select name from storm where storm_id not in (select storm_id from affected_region)", "query_toks": ["SELECT", "name", "FROM", "storm", "WHERE", "storm_id", "NOT", "IN", "(", "SELECT", "storm_id", "FROM", "affected_region", ")"], "query_toks_no_value": ["select", "name", "from", "storm", "where", "storm_id", "not", "in", "(", "select", "storm_id", "from", "affected_region", ")"], "question": "What are the names of storms that did not affect any regions?", "question_toks": ["What", "are", "the", "names", "of", "storms", "that", "did", "not", "affect", "any", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "ANY_SOME_IN_NL", "_ANY_REMOVE", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2696", "db_id": "storm_record", "query": "select region_name from region where region_name != 'denmark'", "query_toks": ["SELECT", "region_name", "FROM", "region", "WHERE", "region_name", "!", "=", "'Denmark", "'"], "query_toks_no_value": ["select", "region_name", "from", "region", "where", "region_name", "!", "=", "value"], "question": "Show names for all regions except for Denmark.", "question_toks": ["Show", "names", "for", "all", "regions", "except", "for", "Denmark", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Denmark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2697", "db_id": "storm_record", "query": "select region_name from region where region_name != 'denmark'", "query_toks": ["SELECT", "region_name", "FROM", "region", "WHERE", "region_name", "!", "=", "'Denmark", "'"], "query_toks_no_value": ["select", "region_name", "from", "region", "where", "region_name", "!", "=", "value"], "question": "Return the names of all regions other than Denmark.", "question_toks": ["Return", "the", "names", "of", "all", "regions", "other", "than", "Denmark", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 7, [0, [0, 9, false], null], "\"Denmark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2722", "db_id": "storm_record", "query": "select name from storm except select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id having count(*) >= 2", "query_toks": ["SELECT", "name", "FROM", "storm", "EXCEPT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "name", "from", "storm", "except", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show all storm names except for those with at least two affected regions.", "question_toks": ["Show", "all", "storm", "names", "except", "for", "those", "with", "at", "least", "two", "affected", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4076", "db_id": "student_1", "query": "select distinct t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t1.grade = 1 except select t1.firstname , t1.lastname from list as t1 join teachers as t2 on t1.classroom = t2.classroom where t2.firstname = \"otha\" and t2.lastname = \"moyer\"", "query_toks": ["SELECT", "DISTINCT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T1.grade", "=", "1", "EXCEPT", "SELECT", "T1.firstname", ",", "T1.lastname", "FROM", "list", "AS", "T1", "JOIN", "teachers", "AS", "T2", "ON", "T1.classroom", "=", "T2.classroom", "WHERE", "T2.firstname", "=", "``", "OTHA", "''", "AND", "T2.lastname", "=", "``", "MOYER", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t1", ".", "grade", "=", "value", "except", "select", "t1", ".", "firstname", ",", "t1", ".", "lastname", "from", "list", "as", "t1", "join", "teachers", "as", "t2", "on", "t1", ".", "classroom", "=", "t2", ".", "classroom", "where", "t2", ".", "firstname", "=", "value", "and", "t2", ".", "lastname", "=", "value"], "question": "Find all first-grade students who are NOT taught by OTHA MOYER. Report their first and last names.", "question_toks": ["Find", "all", "first-grade", "students", "who", "are", "NOT", "taught", "by", "OTHA", "MOYER", ".", "Report", "their", "first", "and", "last", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"OTHA\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"MOYER\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0104", "db_id": "student_assessment", "query": "select * from student_course_registrations where student_id not in (select student_id from student_course_attendance)", "query_toks": ["SELECT", "*", "FROM", "student_course_registrations", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")"], "query_toks_no_value": ["select", "*", "from", "student_course_registrations", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")"], "question": "What are all details of the students who registered but did not attend any course?", "question_toks": ["What", "are", "all", "details", "of", "the", "students", "who", "registered", "but", "did", "not", "attend", "any", "course", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0103", "db_id": "student_assessment", "query": "select * from student_course_registrations where student_id not in (select student_id from student_course_attendance)", "query_toks": ["SELECT", "*", "FROM", "student_course_registrations", "WHERE", "student_id", "NOT", "IN", "(", "SELECT", "student_id", "FROM", "student_course_attendance", ")"], "query_toks_no_value": ["select", "*", "from", "student_course_registrations", "where", "student_id", "not", "in", "(", "select", "student_id", "from", "student_course_attendance", ")"], "question": "What are all info of students who registered courses but not attended courses?", "question_toks": ["What", "are", "all", "info", "of", "students", "who", "registered", "courses", "but", "not", "attended", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 27, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0543", "db_id": "student_transcripts_tracking", "query": "select semester_name from semesters where semester_id not in( select semester_id from student_enrolment )", "query_toks": ["SELECT", "semester_name", "FROM", "Semesters", "WHERE", "semester_id", "NOT", "IN", "(", "SELECT", "semester_id", "FROM", "Student_Enrolment", ")"], "query_toks_no_value": ["select", "semester_name", "from", "semesters", "where", "semester_id", "not", "in", "(", "select", "semester_id", "from", "student_enrolment", ")"], "question": "Which semesters do not have any student enrolled? List the semester name.", "question_toks": ["Which", "semesters", "do", "not", "have", "any", "student", "enrolled", "?", "List", "the", "semester", "name", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 29, false], null]]]], "where": [[true, 8, [0, [0, 28, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0550", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "=", "value", "except", "select", "distinct", "t3", ".", "last_name", "from", "students", "as", "t3", "join", "student_enrolment", "as", "t4", "on", "t3", ".", "student_id", "=", "t4", ".", "student_id"], "question": "What are the last name of the students who live in North Carolina but have not registered in any degree programs?", "question_toks": ["What", "are", "the", "last", "name", "of", "the", "students", "who", "live", "in", "North", "Carolina", "but", "have", "not", "registered", "in", "any", "degree", "programs", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"NorthCarolina\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [true, [[0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0549", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "=", "value", "except", "select", "distinct", "t3", ".", "last_name", "from", "students", "as", "t3", "join", "student_enrolment", "as", "t4", "on", "t3", ".", "student_id", "=", "t4", ".", "student_id"], "question": "Find the last name of the students who currently live in the state of North Carolina but have not registered in any degree program.", "question_toks": ["Find", "the", "last", "name", "of", "the", "students", "who", "currently", "live", "in", "the", "state", "of", "North", "Carolina", "but", "have", "not", "registered", "in", "any", "degree", "program", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 37, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"NorthCarolina\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [true, [[0, [0, [0, 37, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5622", "db_id": "swimming", "query": "select name from stadium where id not in (select stadium_id from event)", "query_toks": ["SELECT", "name", "FROM", "stadium", "WHERE", "id", "NOT", "IN", "(", "SELECT", "stadium_id", "FROM", "event", ")"], "query_toks_no_value": ["select", "name", "from", "stadium", "where", "id", "not", "in", "(", "select", "stadium_id", "from", "event", ")"], "question": "Find the names of stadiums which have never had any event.", "question_toks": ["Find", "the", "names", "of", "stadiums", "which", "have", "never", "had", "any", "event", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[true, 8, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1671", "db_id": "theme_gallery", "query": "select name from artist where artist_id not in (select artist_id from exhibition)", "query_toks": ["SELECT", "name", "FROM", "artist", "WHERE", "artist_id", "NOT", "IN", "(", "SELECT", "artist_id", "FROM", "exhibition", ")"], "query_toks_no_value": ["select", "name", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "exhibition", ")"], "question": "Show names for artists without any exhibition.", "question_toks": ["Show", "names", "for", "artists", "without", "any", "exhibition", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1672", "db_id": "theme_gallery", "query": "select name from artist where artist_id not in (select artist_id from exhibition)", "query_toks": ["SELECT", "name", "FROM", "artist", "WHERE", "artist_id", "NOT", "IN", "(", "SELECT", "artist_id", "FROM", "exhibition", ")"], "query_toks_no_value": ["select", "name", "from", "artist", "where", "artist_id", "not", "in", "(", "select", "artist_id", "from", "exhibition", ")"], "question": "What are the names of artists that have not had any exhibitions?", "question_toks": ["What", "are", "the", "names", "of", "artists", "that", "have", "not", "had", "any", "exhibitions", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1655", "db_id": "theme_gallery", "query": "select name , year_join from artist where country != 'united states'", "query_toks": ["SELECT", "name", ",", "year_join", "FROM", "artist", "WHERE", "country", "!", "=", "'United", "States", "'"], "query_toks_no_value": ["select", "name", ",", "year_join", "from", "artist", "where", "country", "!", "=", "value"], "question": "Show all artist names and the year joined who are not from United States.", "question_toks": ["Show", "all", "artist", "names", "and", "the", "year", "joined", "who", "are", "not", "from", "United", "States", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 3, false], null], "\"United States\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1681", "db_id": "theme_gallery", "query": "select name from artist except select t2.name from exhibition as t1 join artist as t2 on t1.artist_id = t2.artist_id where t1.year = 2004", "query_toks": ["SELECT", "name", "FROM", "artist", "EXCEPT", "SELECT", "T2.name", "FROM", "exhibition", "AS", "T1", "JOIN", "artist", "AS", "T2", "ON", "T1.artist_id", "=", "T2.artist_id", "WHERE", "T1.year", "=", "2004"], "query_toks_no_value": ["select", "name", "from", "artist", "except", "select", "t2", ".", "name", "from", "exhibition", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "artist_id", "where", "t1", ".", "year", "=", "value"], "question": "Show all artist names who didn't have an exhibition in 2004.", "question_toks": ["Show", "all", "artist", "names", "who", "did", "n't", "have", "an", "exhibition", "in", "2004", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 2004.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4339", "db_id": "tracking_grants_for_research", "query": "select project_details from projects where project_id not in ( select project_id from project_staff where role_code = 'researcher' )", "query_toks": ["SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'researcher", "'", ")"], "query_toks_no_value": ["select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_staff", "where", "role_code", "=", "value", ")"], "question": "What are the details for all projects that did not hire any staff in a research role?", "question_toks": ["What", "are", "the", "details", "for", "all", "projects", "that", "did", "not", "hire", "any", "staff", "in", "a", "research", "role", "?"], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[true, 8, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"researcher\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4338", "db_id": "tracking_grants_for_research", "query": "select project_details from projects where project_id not in ( select project_id from project_staff where role_code = 'researcher' )", "query_toks": ["SELECT", "project_details", "FROM", "Projects", "WHERE", "project_id", "NOT", "IN", "(", "SELECT", "project_id", "FROM", "Project_Staff", "WHERE", "role_code", "=", "'researcher", "'", ")"], "query_toks_no_value": ["select", "project_details", "from", "projects", "where", "project_id", "not", "in", "(", "select", "project_id", "from", "project_staff", "where", "role_code", "=", "value", ")"], "question": "List the project details of the projects which did not hire any staff for a researcher role.", "question_toks": ["List", "the", "project", "details", "of", "the", "projects", "which", "did", "not", "hire", "any", "staff", "for", "a", "researcher", "role", "."], "sql": {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]]]], "where": [[true, 8, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"researcher\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5884", "db_id": "tracking_share_transactions", "query": "select lot_details from lots except select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.lot_id", "query_toks": ["SELECT", "lot_details", "FROM", "Lots", "EXCEPT", "SELECT", "T1.lot_details", "FROM", "Lots", "AS", "T1", "JOIN", "transactions_lots", "AS", "T2", "ON", "T1.lot_id", "=", "T2.lot_id"], "query_toks_no_value": ["select", "lot_details", "from", "lots", "except", "select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "lot_id"], "question": "What are the details of the lots which are not used in any transactions?", "question_toks": ["What", "are", "the", "details", "of", "the", "lots", "which", "are", "not", "used", "in", "any", "transactions", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6618", "db_id": "train_station", "query": "select name from station where station_id not in (select station_id from train_station)", "query_toks": ["SELECT", "name", "FROM", "station", "WHERE", "station_id", "NOT", "IN", "(", "SELECT", "station_id", "FROM", "train_station", ")"], "query_toks_no_value": ["select", "name", "from", "station", "where", "station_id", "not", "in", "(", "select", "station_id", "from", "train_station", ")"], "question": "Show station names without any trains.", "question_toks": ["Show", "station", "names", "without", "any", "trains", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6620", "db_id": "train_station", "query": "select t2.name from train_station as t1 join train as t2 on t1.train_id = t2.train_id where t1.station_id not in (select t4.station_id from train_station as t3 join station as t4 on t3.station_id = t4.station_id where t4.location = \"london\")", "query_toks": ["SELECT", "T2.name", "FROM", "train_station", "AS", "T1", "JOIN", "train", "AS", "T2", "ON", "T1.train_id", "=", "T2.train_id", "WHERE", "T1.station_id", "NOT", "IN", "(", "SELECT", "T4.station_id", "FROM", "train_station", "AS", "T3", "JOIN", "station", "AS", "T4", "ON", "T3.station_id", "=", "T4.station_id", "WHERE", "t4.location", "=", "``", "London", "''", ")"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "train_station", "as", "t1", "join", "train", "as", "t2", "on", "t1", ".", "train_id", "=", "t2", ".", "train_id", "where", "t1", ".", "station_id", "not", "in", "(", "select", "t4", ".", "station_id", "from", "train_station", "as", "t3", "join", "station", "as", "t4", "on", "t3", ".", "station_id", "=", "t4", ".", "station_id", "where", "t4", ".", "location", "=", "value", ")"], "question": "Find the names of the trains that do not pass any station located in London.", "question_toks": ["Find", "the", "names", "of", "the", "trains", "that", "do", "not", "pass", "any", "station", "located", "in", "London", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[true, 8, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6602", "db_id": "train_station", "query": "select name , total_passengers from station where location != 'london'", "query_toks": ["SELECT", "name", ",", "total_passengers", "FROM", "station", "WHERE", "LOCATION", "!", "=", "'London", "'"], "query_toks_no_value": ["select", "name", ",", "total_passengers", "from", "station", "where", "location", "!", "=", "value"], "question": "Show the names and total passengers for all train stations not in London.", "question_toks": ["Show", "the", "names", "and", "total", "passengers", "for", "all", "train", "stations", "not", "in", "London", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ALL", "AGGREGATION_IN_COLUMN", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6607", "db_id": "train_station", "query": "select location from station except select location from station where number_of_platforms >= 15", "query_toks": ["SELECT", "LOCATION", "FROM", "station", "EXCEPT", "SELECT", "LOCATION", "FROM", "station", "WHERE", "number_of_platforms", ">", "=", "15"], "query_toks_no_value": ["select", "location", "from", "station", "except", "select", "location", "from", "station", "where", "number_of_platforms", ">", "=", "value"], "question": "Show all locations which don't have a train station with at least 15 platforms.", "question_toks": ["Show", "all", "locations", "which", "do", "n't", "have", "a", "train", "station", "with", "at", "least", "15", "platforms", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 15.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0643", "db_id": "tvshow", "query": "select id from tv_channel except select channel from cartoon where directed_by = 'ben jones'", "query_toks": ["SELECT", "id", "FROM", "TV_Channel", "EXCEPT", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'"], "query_toks_no_value": ["select", "id", "from", "tv_channel", "except", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value"], "question": "find the id of tv channels that do not play any cartoon directed by Ben Jones.", "question_toks": ["find", "the", "id", "of", "tv", "channels", "that", "do", "not", "play", "any", "cartoon", "directed", "by", "Ben", "Jones", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0635", "db_id": "tvshow", "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'", "query_toks": ["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", "'"], "query_toks_no_value": ["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", "=", "value"], "question": "which countries' tv channels are not playing any cartoon written by Todd Casey?", "question_toks": ["which", "countries", "'", "tv", "channels", "are", "not", "playing", "any", "cartoon", "written", "by", "Todd", "Casey", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"Todd Casey\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0644", "db_id": "tvshow", "query": "select id from tv_channel except select channel from cartoon where directed_by = 'ben jones'", "query_toks": ["SELECT", "id", "FROM", "TV_Channel", "EXCEPT", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'"], "query_toks_no_value": ["select", "id", "from", "tv_channel", "except", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value"], "question": "What are the ids of the TV channels that do not have any cartoons directed by Ben Jones?", "question_toks": ["What", "are", "the", "ids", "of", "the", "TV", "channels", "that", "do", "not", "have", "any", "cartoons", "directed", "by", "Ben", "Jones", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0645", "db_id": "tvshow", "query": "select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'ben jones')", "query_toks": ["SELECT", "package_option", "FROM", "TV_Channel", "WHERE", "id", "NOT", "IN", "(", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'", ")"], "query_toks_no_value": ["select", "package_option", "from", "tv_channel", "where", "id", "not", "in", "(", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value", ")"], "question": "find the package option of the tv channel that do not have any cartoon directed by Ben Jones.", "question_toks": ["find", "the", "package", "option", "of", "the", "tv", "channel", "that", "do", "not", "have", "any", "cartoon", "directed", "by", "Ben", "Jones", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0646", "db_id": "tvshow", "query": "select package_option from tv_channel where id not in (select channel from cartoon where directed_by = 'ben jones')", "query_toks": ["SELECT", "package_option", "FROM", "TV_Channel", "WHERE", "id", "NOT", "IN", "(", "SELECT", "channel", "FROM", "cartoon", "WHERE", "directed_by", "=", "'Ben", "Jones", "'", ")"], "query_toks_no_value": ["select", "package_option", "from", "tv_channel", "where", "id", "not", "in", "(", "select", "channel", "from", "cartoon", "where", "directed_by", "=", "value", ")"], "question": "What are the package options of all tv channels that are not playing any cartoons directed by Ben Jones?", "question_toks": ["What", "are", "the", "package", "options", "of", "all", "tv", "channels", "that", "are", "not", "playing", "any", "cartoons", "directed", "by", "Ben", "Jones", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0640", "db_id": "tvshow", "query": "select pixel_aspect_ratio_par , country from tv_channel where language != 'english'", "query_toks": ["SELECT", "Pixel_aspect_ratio_PAR", ",", "country", "FROM", "tv_channel", "WHERE", "LANGUAGE", "!", "=", "'English", "'"], "query_toks_no_value": ["select", "pixel_aspect_ratio_par", ",", "country", "from", "tv_channel", "where", "language", "!", "=", "value"], "question": "What is the pixel aspect ratio and country of origin for all TV channels that do not use English?", "question_toks": ["What", "is", "the", "pixel", "aspect", "ratio", "and", "country", "of", "origin", "for", "all", "TV", "channels", "that", "do", "not", "use", "English", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"English\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0298", "db_id": "twitter_1", "query": "select avg(followers) from user_profiles where uid not in (select uid from tweets)", "query_toks": ["SELECT", "avg", "(", "followers", ")", "FROM", "user_profiles", "WHERE", "UID", "NOT", "IN", "(", "SELECT", "UID", "FROM", "tweets", ")"], "query_toks_no_value": ["select", "avg", "(", "followers", ")", "from", "user_profiles", "where", "uid", "not", "in", "(", "select", "uid", "from", "tweets", ")"], "question": "Find the average number of followers for the users who do not have any tweet.", "question_toks": ["Find", "the", "average", "number", "of", "followers", "for", "the", "users", "who", "do", "not", "have", "any", "tweet", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_NEGATION_ANY", "NEGATION_WITH_ANY_ALL", "WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5494", "db_id": "voter_2", "query": "select distinct t1.fname from student as t1 join voting_record as t2 on t1.stuid = t2.vice_president_vote except select distinct fname from student where city_code = \"pit\"", "query_toks": ["SELECT", "DISTINCT", "T1.Fname", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "T2.VICE_PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "Fname", "FROM", "STUDENT", "WHERE", "city_code", "=", "``", "PIT", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "vice_president_vote", "except", "select", "distinct", "fname", "from", "student", "where", "city_code", "=", "value"], "question": "Find the distinct first names of all the students who have vice president votes and whose city code is not PIT.", "question_toks": ["Find", "the", "distinct", "first", "names", "of", "all", "the", "students", "who", "have", "vice", "president", "votes", "and", "whose", "city", "code", "is", "not", "PIT", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 13, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"PIT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5496", "db_id": "voter_2", "query": "select distinct t1.lname from student as t1 join voting_record as t2 on t1.stuid = president_vote except select distinct lname from student where advisor = \"2192\"", "query_toks": ["SELECT", "DISTINCT", "T1.LName", "FROM", "STUDENT", "AS", "T1", "JOIN", "VOTING_RECORD", "AS", "T2", "ON", "T1.StuID", "=", "PRESIDENT_Vote", "EXCEPT", "SELECT", "DISTINCT", "LName", "FROM", "STUDENT", "WHERE", "Advisor", "=", "``", "2192", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "lname", "from", "student", "as", "t1", "join", "voting_record", "as", "t2", "on", "t1", ".", "stuid", "=", "president_vote", "except", "select", "distinct", "lname", "from", "student", "where", "advisor", "=", "value"], "question": "Find the distinct last names of all the students who have president votes and whose advisor is not 2192.", "question_toks": ["Find", "the", "distinct", "last", "names", "of", "all", "the", "students", "who", "have", "president", "votes", "and", "whose", "advisor", "is", "not", "2192", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"2192\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1641", "db_id": "wedding", "query": "select name , age from people where is_male = 't' and people_id not in (select male_id from wedding)", "query_toks": ["SELECT", "name", ",", "age", "FROM", "people", "WHERE", "is_male", "=", "'T", "'", "AND", "people_id", "NOT", "IN", "(", "SELECT", "male_id", "FROM", "wedding", ")"], "query_toks_no_value": ["select", "name", ",", "age", "from", "people", "where", "is_male", "=", "value", "and", "people_id", "not", "in", "(", "select", "male_id", "from", "wedding", ")"], "question": "Show the name and age for all male people who don't have a wedding.", "question_toks": ["Show", "the", "name", "and", "age", "for", "all", "male", "people", "who", "do", "n't", "have", "a", "wedding", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"T\"", null], "and", [true, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_UNORDERED", "_NEGATION_ALL", "NEGATION_WITH_ANY_ALL", "BINARY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1642", "db_id": "wedding", "query": "select name from church except select t1.name from church as t1 join wedding as t2 on t1.church_id = t2.church_id where t2.year = 2015", "query_toks": ["SELECT", "name", "FROM", "church", "EXCEPT", "SELECT", "T1.name", "FROM", "church", "AS", "T1", "JOIN", "wedding", "AS", "T2", "ON", "T1.church_id", "=", "T2.church_id", "WHERE", "T2.year", "=", "2015"], "query_toks_no_value": ["select", "name", "from", "church", "except", "select", "t1", ".", "name", "from", "church", "as", "t1", "join", "wedding", "as", "t2", "on", "t1", ".", "church_id", "=", "t2", ".", "church_id", "where", "t2", ".", "year", "=", "value"], "question": "Show all church names except for those that had a wedding in year 2015.", "question_toks": ["Show", "all", "church", "names", "except", "for", "those", "that", "had", "a", "wedding", "in", "year", "2015", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2015.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ALL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5843", "db_id": "workshop_paper", "query": "select author from submission where submission_id not in (select submission_id from acceptance)", "query_toks": ["SELECT", "Author", "FROM", "submission", "WHERE", "Submission_ID", "NOT", "IN", "(", "SELECT", "Submission_ID", "FROM", "acceptance", ")"], "query_toks_no_value": ["select", "author", "from", "submission", "where", "submission_id", "not", "in", "(", "select", "submission_id", "from", "acceptance", ")"], "question": "Which authors did not submit to any workshop?", "question_toks": ["Which", "authors", "did", "not", "submit", "to", "any", "workshop", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5842", "db_id": "workshop_paper", "query": "select author from submission where submission_id not in (select submission_id from acceptance)", "query_toks": ["SELECT", "Author", "FROM", "submission", "WHERE", "Submission_ID", "NOT", "IN", "(", "SELECT", "Submission_ID", "FROM", "acceptance", ")"], "query_toks_no_value": ["select", "author", "from", "submission", "where", "submission_id", "not", "in", "(", "select", "submission_id", "from", "acceptance", ")"], "question": "List the authors who do not have submission to any workshop.", "question_toks": ["List", "the", "authors", "who", "do", "not", "have", "submission", "to", "any", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[true, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_negation_with_any_all_0038", "db_id": "college_2", "query": "select title from course where course_id not in (select course_id from prereq)", "query_toks": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "query_toks_no_value": ["select", "title", "from", "course", "where", "course_id", "not", "in", "(", "select", "course_id", "from", "prereq", ")"], "question": "Find names of the courses that do not have any prerequisite?", "question_toks": ["Find", "names", "of", "the", "courses", "that", "do", "not", "have", "any", "prerequisite", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[true, 8, [0, [0, 7, false], null], {"from": {"table_units": [["table_unit", 10]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_negation_with_any_all_0106", "db_id": "epinions_1", "query": "select name from useracct where u_id not in (select u_id from review)", "query_toks": ["select", "name", "from", "useracct", "where", "u_id", "not", "in", "(", "select", "u_id", "from", "review", ")"], "query_toks_no_value": ["select", "name", "from", "useracct", "where", "u_id", "not", "in", "(", "select", "u_id", "from", "review", ")"], "question": "Find names of users who did not leave any review.", "question_toks": ["Find", "names", "of", "users", "who", "did", "not", "leave", "any", "review", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[true, 8, [0, [0, 8, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["NEGATION_WITH_ANY_ALL", "_NEGATION_ANY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3437", "db_id": "hr_1", "query": "select * from employees where first_name like '%d%' or first_name like '%s%' order by salary desc", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "first_name", "LIKE", "'", "%", "D", "%", "'", "OR", "first_name", "LIKE", "'", "%", "S", "%", "'", "ORDER", "BY", "salary", "DESC"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "first_name", "like", "value", "or", "first_name", "like", "value", "order", "by", "salary", "desc"], "question": "display all the information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary.", "question_toks": ["display", "all", "the", "information", "for", "all", "employees", "who", "have", "the", "letters", "D", "or", "S", "in", "their", "first", "name", "and", "also", "arrange", "the", "result", "in", "descending", "order", "by", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%D%\"", null], "or", [false, 9, [0, [0, 15, false], null], "\"%S%\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3423", "db_id": "hr_1", "query": "select * from employees where salary between 8000 and 12000 and commission_pct != \"null\" or department_id != 40", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000", "AND", "commission_pct", "!", "=", "``", "null", "''", "OR", "department_id", "!", "=", "40"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "salary", "between", "value", "and", "value", "and", "commission_pct", "!", "=", "value", "or", "department_id", "!", "=", "value"], "question": "display all the information of employees whose salary is in the range of 8000 and 12000 and commission is not null or department number does not equal to 40.", "question_toks": ["display", "all", "the", "information", "of", "employees", "whose", "salary", "is", "in", "the", "range", "of", "8000", "and", "12000", "and", "commission", "is", "not", "null", "or", "department", "number", "does", "not", "equal", "to", "40", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 8000.0, 12000.0], "and", [false, 7, [0, [0, 22, false], null], "\"null\"", null], "or", [false, 7, [0, [0, 24, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2452", "db_id": "movie_1", "query": "select distinct year from movie as t1 join rating as t2 on t1.mid = t2.mid where t2.stars >= 4 order by t1.year", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.stars", ">", "=", "4", "ORDER", "BY", "T1.year"], "query_toks_no_value": ["select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">", "=", "value", "order", "by", "t1", ".", "year"], "question": "Find all years that have a movie that received a rating of 4 or 5, and sort them in increasing order of year.", "question_toks": ["Find", "all", "years", "that", "have", "a", "movie", "that", "received", "a", "rating", "of", "4", "or", "5", ",", "and", "sort", "them", "in", "increasing", "order", "of", "year", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3319", "db_id": "college_1", "query": "select t1.stu_fname , t1.stu_lname from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num where t2.enroll_grade = 'c' or t2.enroll_grade = 'a'", "query_toks": ["SELECT", "T1.stu_fname", ",", "T1.stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "T2.enroll_grade", "=", "'C", "'", "OR", "T2.enroll_grade", "=", "'A", "'"], "query_toks_no_value": ["select", "t1", ".", "stu_fname", ",", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value", "or", "t2", ".", "enroll_grade", "=", "value"], "question": "Find names of all students who took some course and got A or C.", "question_toks": ["Find", "names", "of", "all", "students", "who", "took", "some", "course", "and", "got", "A", "or", "C", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"C\"", null], "or", [false, 2, [0, [0, 26, false], null], "\"A\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3851", "db_id": "insurance_policies", "query": "select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id having count(*) > 2 union select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id where t1.amount_claimed = ( select max(amount_claimed) from claims )", "query_toks": ["SELECT", "T1.Date_Claim_Made", ",", "T1.Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "GROUP", "BY", "T1.Claim_id", "HAVING", "count", "(", "*", ")", ">", "2", "UNION", "SELECT", "T1.Date_Claim_Made", ",", "T1.Claim_id", "FROM", "Claims", "AS", "T1", "JOIN", "Settlements", "AS", "T2", "ON", "T1.Claim_id", "=", "T2.Claim_id", "WHERE", "T1.Amount_Claimed", "=", "(", "SELECT", "max", "(", "Amount_Claimed", ")", "FROM", "Claims", ")"], "query_toks_no_value": ["select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")"], "question": "Find the claims that led to more than two settlements or have the maximum claim value. For each of them, return the date the claim was made and the id of the claim.", "question_toks": ["Find", "the", "claims", "that", "led", "to", "more", "than", "two", "settlements", "or", "have", "the", "maximum", "claim", "value", ".", "For", "each", "of", "them", ",", "return", "the", "date", "the", "claim", "was", "made", "and", "the", "id", "of", "the", "claim", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0531", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value"], "question": "Find the different first names and cities of the students who have allergy to milk or cat.", "question_toks": ["Find", "the", "different", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "to", "milk", "or", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0792", "db_id": "coffee_shop", "query": "select name , member_id from member where membership_card = 'black' or age < 30", "query_toks": ["SELECT", "name", ",", "member_id", "FROM", "member", "WHERE", "Membership_card", "=", "'Black", "'", "OR", "age", "<", "30"], "query_toks_no_value": ["select", "name", ",", "member_id", "from", "member", "where", "membership_card", "=", "value", "or", "age", "<", "value"], "question": "Find the ids and names of members who are under age 30 or with black membership card.", "question_toks": ["Find", "the", "ids", "and", "names", "of", "members", "who", "are", "under", "age", "30", "or", "with", "black", "membership", "card", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"Black\"", null], "or", [false, 4, [0, [0, 9, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6049", "db_id": "game_1", "query": "select t2.lname , t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["SELECT", "T2.lname", ",", "T2.fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.SportName", "=", "``", "Football", "''", "OR", "T1.SportName", "=", "``", "Lacrosse", "''"], "query_toks_no_value": ["select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value", "or", "t1", ".", "sportname", "=", "value"], "question": "Find the last and first name of students who are playing Football or Lacrosse.", "question_toks": ["Find", "the", "last", "and", "first", "name", "of", "students", "who", "are", "playing", "Football", "or", "Lacrosse", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"Lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4442", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'dan' or t2.friend = 'alice'", "query_toks": ["SELECT", "DISTINCT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "OR", "T2.friend", "=", "'Alice", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value"], "question": "Find the name and age of the person who is a friend of Dan or Alice.", "question_toks": ["Find", "the", "name", "and", "age", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "or", "Alice", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5698", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100"], "query_toks_no_value": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value"], "question": "Find the name and gender type of the dorms whose capacity is greater than 300 or less than 100.", "question_toks": ["Find", "the", "name", "and", "gender", "type", "of", "the", "dorms", "whose", "capacity", "is", "greater", "than", "300", "or", "less", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5912", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''"], "query_toks_no_value": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value"], "question": "Find the names and opening hours of the tourist attractions that we get to by bus or walk.", "question_toks": ["Find", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "we", "get", "to", "by", "bus", "or", "walk", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4705", "db_id": "college_3", "query": "select dname from department where division = \"as\" union select dname from department where division = \"en\" and building = \"neb\"", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "AS", "''", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "EN", "''", "AND", "Building", "=", "``", "NEB", "''"], "query_toks_no_value": ["select", "dname", "from", "department", "where", "division", "=", "value", "union", "select", "dname", "from", "department", "where", "division", "=", "value", "and", "building", "=", "value"], "question": "Find the names of departments that are either in division AS or in division EN and in Building NEB.", "question_toks": ["Find", "the", "names", "of", "departments", "that", "are", "either", "in", "division", "AS", "or", "in", "division", "EN", "and", "in", "Building", "NEB", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"AS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"EN\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"NEB\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5934", "db_id": "cre_Theme_park", "query": "select t1.name , t3.visit_date from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"vincent\" or t2.tourist_details = \"vivian\"", "query_toks": ["SELECT", "T1.Name", ",", "T3.Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Vincent", "''", "OR", "T2.Tourist_Details", "=", "``", "Vivian", "''"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "or", "t2", ".", "tourist_details", "=", "value"], "question": "For each tourist attraction, return its name and the date when the tourists named Vincent or Vivian visited there.", "question_toks": ["For", "each", "tourist", "attraction", ",", "return", "its", "name", "and", "the", "date", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Vincent\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Vivian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3398", "db_id": "manufacturer", "query": "select name , open_year from manufacturer where num_of_shops > 10 or num_of_factories < 10", "query_toks": ["SELECT", "name", ",", "open_year", "FROM", "manufacturer", "WHERE", "num_of_shops", ">", "10", "OR", "Num_of_Factories", "<", "10"], "query_toks_no_value": ["select", "name", ",", "open_year", "from", "manufacturer", "where", "num_of_shops", ">", "value", "or", "num_of_factories", "<", "value"], "question": "Give me the name and year of opening of the manufacturers that have either less than 10 factories or more than 10 shops.", "question_toks": ["Give", "me", "the", "name", "and", "year", "of", "opening", "of", "the", "manufacturers", "that", "have", "either", "less", "than", "10", "factories", "or", "more", "than", "10", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 10.0, null], "or", [false, 4, [0, [0, 4, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4770", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600 or product_price > 900", "query_toks": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900"], "query_toks_no_value": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value"], "question": "Give the ids and names of products with price lower than 600 or higher than 900.", "question_toks": ["Give", "the", "ids", "and", "names", "of", "products", "with", "price", "lower", "than", "600", "or", "higher", "than", "900", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2453", "db_id": "movie_1", "query": "select distinct year from movie as t1 join rating as t2 on t1.mid = t2.mid where t2.stars >= 4 order by t1.year", "query_toks": ["SELECT", "DISTINCT", "YEAR", "FROM", "Movie", "AS", "T1", "JOIN", "Rating", "AS", "T2", "ON", "T1.mID", "=", "T2.mID", "WHERE", "T2.stars", ">", "=", "4", "ORDER", "BY", "T1.year"], "query_toks_no_value": ["select", "distinct", "year", "from", "movie", "as", "t1", "join", "rating", "as", "t2", "on", "t1", ".", "mid", "=", "t2", ".", "mid", "where", "t2", ".", "stars", ">", "=", "value", "order", "by", "t1", ".", "year"], "question": "In what years did a movie receive a 4 or 5 star rating, and list the years from oldest to most recently?", "question_toks": ["In", "what", "years", "did", "a", "movie", "receive", "a", "4", "or", "5", "star", "rating", ",", "and", "list", "the", "years", "from", "oldest", "to", "most", "recently", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 3, false], null]]]], "where": [[false, 5, [0, [0, 9, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1284", "db_id": "game_injury", "query": "select t1.season , t2.name from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id where t3.injury = 'foot injury' or t3.injury = 'knee problem'", "query_toks": ["SELECT", "T1.season", ",", "T2.name", "FROM", "game", "AS", "T1", "JOIN", "stadium", "AS", "T2", "ON", "T1.stadium_id", "=", "T2.id", "JOIN", "injury_accident", "AS", "T3", "ON", "T1.id", "=", "T3.game_id", "WHERE", "T3.injury", "=", "'Foot", "injury", "'", "OR", "T3.injury", "=", "'Knee", "problem", "'"], "query_toks_no_value": ["select", "t1", ".", "season", ",", "t2", ".", "name", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "injury", "=", "value", "or", "t3", ".", "injury", "=", "value"], "question": "In which season and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?", "question_toks": ["In", "which", "season", "and", "which", "stadium", "did", "any", "player", "have", "an", "injury", "of", "'Foot", "injury", "'", "or", "'Knee", "problem", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Foot injury\"", null], "or", [false, 2, [0, [0, 18, false], null], "\"Knee problem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3663", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220 or height < 75", "query_toks": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75"], "query_toks_no_value": ["select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value"], "question": "List players' first name and last name who have weight greater than 220 or height shorter than 75.", "question_toks": ["List", "players", "'", "first", "name", "and", "last", "name", "who", "have", "weight", "greater", "than", "220", "or", "height", "shorter", "than", "75", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6401", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = 'noel cv' or document_name = 'king book'", "query_toks": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "'Noel", "CV", "'", "OR", "document_name", "=", "'King", "Book", "'"], "query_toks_no_value": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "or", "document_name", "=", "value"], "question": "List the document type code, document name, and document description for the document with name 'Noel CV' or name 'King Book'.", "question_toks": ["List", "the", "document", "type", "code", ",", "document", "name", ",", "and", "document", "description", "for", "the", "document", "with", "name", "'Noel", "CV", "'", "or", "name", "'King", "Book", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Noel CV\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"King Book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1029", "db_id": "phone_1", "query": "select t2.hardware_model_name , t2.company_name from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t1.launch_year = 2002 or t1.ram_mib > 32;", "query_toks": ["SELECT", "T2.Hardware_Model_name", ",", "T2.Company_name", "FROM", "chip_model", "AS", "T1", "JOIN", "phone", "AS", "T2", "ON", "T1.Model_name", "=", "T2.chip_model", "WHERE", "T1.Launch_year", "=", "2002", "OR", "T1.RAM_MiB", ">", "32", ";"], "query_toks_no_value": ["select", "t2", ".", "hardware_model_name", ",", "t2", ".", "company_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "value", "or", "t1", ".", "ram_mib", ">", "value"], "question": "List the hardware model name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.", "question_toks": ["List", "the", "hardware", "model", "name", "and", "company", "name", "for", "all", "the", "phones", "that", "were", "launched", "in", "year", "2002", "or", "have", "RAM", "size", "greater", "than", "32", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 2002.0, null], "or", [false, 3, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1909", "db_id": "school_finance", "query": "select t1.school_name , t1.mascot , t1.ihsaa_football_class from school as t1 join budget as t2 on t1.school_id = t2.school_id where budgeted > 6000 or year < 2003 order by t2.total_budget_percent_invested , t2.total_budget_percent_budgeted", "query_toks": ["SELECT", "T1.School_name", ",", "T1.Mascot", ",", "T1.IHSAA_Football_Class", "FROM", "school", "AS", "T1", "JOIN", "budget", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "Budgeted", ">", "6000", "OR", "YEAR", "<", "2003", "ORDER", "BY", "T2.total_budget_percent_invested", ",", "T2.total_budget_percent_budgeted"], "query_toks_no_value": ["select", "t1", ".", "school_name", ",", "t1", ".", "mascot", ",", "t1", ".", "ihsaa_football_class", "from", "school", "as", "t1", "join", "budget", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "budgeted", ">", "value", "or", "year", "<", "value", "order", "by", "t2", ".", "total_budget_percent_invested", ",", "t2", ".", "total_budget_percent_budgeted"], "question": "List the name, IHSAA Football Class, and Mascot of the schools that have more than 6000 of budgeted amount or were founded before 2003, in the order of percent of total invested budget and total budgeted budget.", "question_toks": ["List", "the", "name", ",", "IHSAA", "Football", "Class", ",", "and", "Mascot", "of", "the", "schools", "that", "have", "more", "than", "6000", "of", "budgeted", "amount", "or", "were", "founded", "before", "2003", ",", "in", "the", "order", "of", "percent", "of", "total", "invested", "budget", "and", "total", "budgeted", "budget", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 6000.0, null], "or", [false, 4, [0, [0, 10, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null], [0, [0, 12, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_AND_WITH_OR_COLUMN_REMOVED", "AGGREGATION_IN_COLUMN", "AND_WITH_OR_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3424", "db_id": "hr_1", "query": "select * from employees where salary between 8000 and 12000 and commission_pct != \"null\" or department_id != 40", "query_toks": ["SELECT", "*", "FROM", "employees", "WHERE", "salary", "BETWEEN", "8000", "AND", "12000", "AND", "commission_pct", "!", "=", "``", "null", "''", "OR", "department_id", "!", "=", "40"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "salary", "between", "value", "and", "value", "and", "commission_pct", "!", "=", "value", "or", "department_id", "!", "=", "value"], "question": "Return all information about employees with salaries between 8000 and 12000 for which commission is not null or where their department id is not 40.", "question_toks": ["Return", "all", "information", "about", "employees", "with", "salaries", "between", "8000", "and", "12000", "for", "which", "commission", "is", "not", "null", "or", "where", "their", "department", "id", "is", "not", "40", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 21, false], null], 8000.0, 12000.0], "and", [false, 7, [0, [0, 22, false], null], "\"null\"", null], "or", [false, 7, [0, [0, 24, false], null], 40.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3929", "db_id": "hospital_1", "query": "select t1.name , count(*) from physician as t1 join patient as t2 on t1.employeeid = t2.pcp group by t1.employeeid", "query_toks": ["SELECT", "T1.name", ",", "count", "(", "*", ")", "FROM", "physician", "AS", "T1", "JOIN", "patient", "AS", "T2", "ON", "T1.employeeid", "=", "T2.PCP", "GROUP", "BY", "T1.employeeid"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "count", "(", "*", ")", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid"], "question": "Return the name of each physician and the number of patients he or she treats.", "question_toks": ["Return", "the", "name", "of", "each", "physician", "and", "the", "number", "of", "patients", "he", "or", "she", "treats", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1610", "db_id": "customers_and_invoices", "query": "select t2.order_id , t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) > 2", "query_toks": ["SELECT", "T2.order_id", ",", "T2.order_details", "FROM", "Invoices", "AS", "T1", "JOIN", "Orders", "AS", "T2", "ON", "T1.order_id", "=", "T2.order_id", "GROUP", "BY", "T2.order_id", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(", "*", ")", ">", "value"], "question": "Return the order ids and details for orderes with two or more invoices.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "orderes", "with", "two", "or", "more", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6987", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<", "=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "where", "year", "<", "=", "value", "order", "by", "gross_worldwide", "desc", "limit", "value"], "question": "Return the title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.", "question_toks": ["Return", "the", "title", "and", "director", "of", "the", "movie", "released", "in", "the", "year", "2000", "or", "earlier", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1902", "db_id": "school_finance", "query": "select t2.school_name , t1.budgeted , t1.invested from budget as t1 join school as t2 on t1.school_id = t2.school_id where t1.year >= 2002", "query_toks": ["SELECT", "T2.school_name", ",", "T1.budgeted", ",", "T1.invested", "FROM", "budget", "AS", "T1", "JOIN", "school", "AS", "T2", "ON", "T1.school_id", "=", "T2.school_id", "WHERE", "T1.year", ">", "=", "2002"], "query_toks_no_value": ["select", "t2", ".", "school_name", ",", "t1", ".", "budgeted", ",", "t1", ".", "invested", "from", "budget", "as", "t1", "join", "school", "as", "t2", "on", "t1", ".", "school_id", "=", "t2", ".", "school_id", "where", "t1", ".", "year", ">", "=", "value"], "question": "Show each school name, its budgeted amount, and invested amount in year 2002 or after.", "question_toks": ["Show", "each", "school", "name", ",", "its", "budgeted", "amount", ",", "and", "invested", "amount", "in", "year", "2002", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2002.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2666", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "Spring", "''", "OR", "Party_Theme", "=", "``", "Teqnology", "''"], "query_toks_no_value": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value"], "question": "Show the first year and last year of parties with theme \"Spring\" or \"Teqnology\".", "question_toks": ["Show", "the", "first", "year", "and", "last", "year", "of", "parties", "with", "theme", "``", "Spring", "''", "or", "``", "Teqnology", "''", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4633", "db_id": "customers_campaigns_ecommerce", "query": "select order_shipping_charges , customer_id from customer_orders where order_status_code = 'cancelled' or order_status_code = 'paid'", "query_toks": ["SELECT", "order_shipping_charges", ",", "customer_id", "FROM", "customer_orders", "WHERE", "order_status_code", "=", "'Cancelled", "'", "OR", "order_status_code", "=", "'Paid", "'"], "query_toks_no_value": ["select", "order_shipping_charges", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "value", "or", "order_status_code", "=", "value"], "question": "Show the shipping charge and customer id for customer orders with order status Cancelled or Paid.", "question_toks": ["Show", "the", "shipping", "charge", "and", "customer", "id", "for", "customer", "orders", "with", "order", "status", "Cancelled", "or", "Paid", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Cancelled\"", null], "or", [false, 2, [0, [0, 27, false], null], "\"Paid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6964", "db_id": "culture_company", "query": "select book_title , author_or_editor from book_club where year > 1989", "query_toks": ["SELECT", "book_title", ",", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "1989"], "query_toks_no_value": ["select", "book_title", ",", "author_or_editor", "from", "book_club", "where", "year", ">", "value"], "question": "show the titles, and authors or editors for all books made after the year 1989.", "question_toks": ["show", "the", "titles", ",", "and", "authors", "or", "editors", "for", "all", "books", "made", "after", "the", "year", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4769", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600 or product_price > 900", "query_toks": ["SELECT", "product_id", ",", "product_name", "FROM", "products", "WHERE", "product_price", "<", "600", "OR", "product_price", ">", "900"], "query_toks_no_value": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value"], "question": "What are id and name of the products whose price is lower than 600 or higher than 900?", "question_toks": ["What", "are", "id", "and", "name", "of", "the", "products", "whose", "price", "is", "lower", "than", "600", "or", "higher", "than", "900", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4443", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = 'dan' or t2.friend = 'alice'", "query_toks": ["SELECT", "DISTINCT", "T1.name", ",", "T1.age", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.name", "WHERE", "T2.friend", "=", "'Dan", "'", "OR", "T2.friend", "=", "'Alice", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value"], "question": "What are the different names and ages of every friend of either Dan or alice?", "question_toks": ["What", "are", "the", "different", "names", "and", "ages", "of", "every", "friend", "of", "either", "Dan", "or", "alice", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"Alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0532", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["SELECT", "DISTINCT", "T1.fname", ",", "T1.city_code", "FROM", "Student", "AS", "T1", "JOIN", "Has_Allergy", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T2.Allergy", "=", "``", "Milk", "''", "OR", "T2.Allergy", "=", "``", "Cat", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value"], "question": "What are the distinct first names and cities of the students who have allergy either to milk or to cat?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "either", "to", "milk", "or", "to", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2208", "db_id": "formula_1", "query": "select t1.forename , t1.surname , t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename , t1.surname , t1.driverid from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "8", "UNION", "SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "5"], "query_toks_no_value": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the drivers' first names,last names, and ids for all those that had more than 8 stops or participated in more than 5 races?", "question_toks": ["What", "are", "the", "drivers", "'", "first", "names", ",", "last", "names", ",", "and", "ids", "for", "all", "those", "that", "had", "more", "than", "8", "stops", "or", "participated", "in", "more", "than", "5", "races", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2207", "db_id": "formula_1", "query": "select t1.forename , t1.surname , t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename , t1.surname , t1.driverid from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "pitstops", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "8", "UNION", "SELECT", "T1.forename", ",", "T1.surname", ",", "T1.driverid", "FROM", "drivers", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.driverid", "=", "T2.driverid", "GROUP", "BY", "T1.driverid", "HAVING", "count", "(", "*", ")", ">", "5"], "query_toks_no_value": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the drivers' first, last names and id who had more than 8 pit stops or participated in more than 5 race results?", "question_toks": ["What", "are", "the", "drivers", "'", "first", ",", "last", "names", "and", "id", "who", "had", "more", "than", "8", "pit", "stops", "or", "participated", "in", "more", "than", "5", "race", "results", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3431", "db_id": "hr_1", "query": "select first_name , last_name from employees where department_id = 70 or department_id = 90", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "employees", "WHERE", "department_id", "=", "70", "OR", "department_id", "=", "90"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "=", "value", "or", "department_id", "=", "value"], "question": "What are the first and last name for those employees who works either in department 70 or 90?", "question_toks": ["What", "are", "the", "first", "and", "last", "name", "for", "those", "employees", "who", "works", "either", "in", "department", "70", "or", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], 70.0, null], "or", [false, 2, [0, [0, 24, false], null], 90.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3664", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220 or height < 75", "query_toks": ["SELECT", "name_first", ",", "name_last", "FROM", "player", "WHERE", "weight", ">", "220", "OR", "height", "<", "75"], "query_toks_no_value": ["select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value"], "question": "What are the first name and last name of the players who have weight above 220 or height below 75?", "question_toks": ["What", "are", "the", "first", "name", "and", "last", "name", "of", "the", "players", "who", "have", "weight", "above", "220", "or", "height", "below", "75", "?"], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2667", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["SELECT", "First_year", ",", "Last_year", "FROM", "party", "WHERE", "Party_Theme", "=", "``", "Spring", "''", "OR", "Party_Theme", "=", "``", "Teqnology", "''"], "query_toks_no_value": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value"], "question": "What are the first year and last year of the parties whose theme is \"Spring\" or \"Teqnology\"?", "question_toks": ["What", "are", "the", "first", "year", "and", "last", "year", "of", "the", "parties", "whose", "theme", "is", "``", "Spring", "''", "or", "``", "Teqnology", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"Teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0716", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["SELECT", "T1.customer_id", ",", "T2.customer_first_name", ",", "T2.customer_last_name", "FROM", "Customers_cards", "AS", "T1", "JOIN", "Customers", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the ids and full names of customers who hold two or more cards?", "question_toks": ["What", "are", "the", "ids", "and", "full", "names", "of", "customers", "who", "hold", "two", "or", "more", "cards", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5911", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["SELECT", "Name", ",", "Opening_Hours", "FROM", "TOURIST_ATTRACTIONS", "WHERE", "How_to_Get_There", "=", "``", "bus", "''", "OR", "How_to_Get_There", "=", "``", "walk", "''"], "query_toks_no_value": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value"], "question": "What are the names and opening hours of the tourist attractions that can be accessed by bus or walk?", "question_toks": ["What", "are", "the", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "or", "walk", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5699", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["SELECT", "dorm_name", ",", "gender", "FROM", "dorm", "WHERE", "student_capacity", ">", "300", "OR", "student_capacity", "<", "100"], "query_toks_no_value": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value"], "question": "What are the names and types of the dorms that have a capacity greater than 300 or less than 100?", "question_toks": ["What", "are", "the", "names", "and", "types", "of", "the", "dorms", "that", "have", "a", "capacity", "greater", "than", "300", "or", "less", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4706", "db_id": "college_3", "query": "select dname from department where division = \"as\" union select dname from department where division = \"en\" and building = \"neb\"", "query_toks": ["SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "AS", "''", "UNION", "SELECT", "DName", "FROM", "DEPARTMENT", "WHERE", "Division", "=", "``", "EN", "''", "AND", "Building", "=", "``", "NEB", "''"], "query_toks_no_value": ["select", "dname", "from", "department", "where", "division", "=", "value", "union", "select", "dname", "from", "department", "where", "division", "=", "value", "and", "building", "=", "value"], "question": "What are the names of departments either in division AS, or in division EN and in building NEB?", "question_toks": ["What", "are", "the", "names", "of", "departments", "either", "in", "division", "AS", ",", "or", "in", "division", "EN", "and", "in", "building", "NEB", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"AS\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"EN\"", null], "and", [false, 2, [0, [0, 21, false], null], "\"NEB\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0911", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "value", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of high schoolers who have a grade of over 5 and have 2 or more friends?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "a", "grade", "of", "over", "5", "and", "have", "2", "or", "more", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 5.0, null]], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "AND_WITH_OR_IN_NL", "_JOIN_1", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2721", "db_id": "storm_record", "query": "select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id having count(*) >= 2 intersect select t1.name from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id having sum(t2.number_city_affected) >= 10", "query_toks": ["SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "count", "(", "*", ")", ">", "=", "2", "INTERSECT", "SELECT", "T1.name", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "HAVING", "sum", "(", "T2.number_city_affected", ")", ">", "=", "10"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "count", "(", "*", ")", ">", "=", "value", "intersect", "select", "t1", ".", "name", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "having", "sum", "(", "t2", ".", "number_city_affected", ")", ">", "=", "value"], "question": "What are the names of storms that both affected two or more regions and affected a total of 10 or more cities?", "question_toks": ["What", "are", "the", "names", "of", "storms", "that", "both", "affected", "two", "or", "more", "regions", "and", "affected", "a", "total", "of", "10", "or", "more", "cities", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [4, 12, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5933", "db_id": "cre_Theme_park", "query": "select t1.name , t3.visit_date from tourist_attractions as t1 join visitors as t2 join visits as t3 on t1.tourist_attraction_id = t3.tourist_attraction_id and t2.tourist_id = t3.tourist_id where t2.tourist_details = \"vincent\" or t2.tourist_details = \"vivian\"", "query_toks": ["SELECT", "T1.Name", ",", "T3.Visit_Date", "FROM", "Tourist_Attractions", "AS", "T1", "JOIN", "VISITORS", "AS", "T2", "JOIN", "VISITS", "AS", "T3", "ON", "T1.Tourist_Attraction_ID", "=", "T3.Tourist_Attraction_ID", "AND", "T2.Tourist_ID", "=", "T3.Tourist_ID", "WHERE", "T2.Tourist_Details", "=", "``", "Vincent", "''", "OR", "T2.Tourist_Details", "=", "``", "Vivian", "''"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "visit_date", "from", "tourist_attractions", "as", "t1", "join", "visitors", "as", "t2", "join", "visits", "as", "t3", "on", "t1", ".", "tourist_attraction_id", "=", "t3", ".", "tourist_attraction_id", "and", "t2", ".", "tourist_id", "=", "t3", ".", "tourist_id", "where", "t2", ".", "tourist_details", "=", "value", "or", "t2", ".", "tourist_details", "=", "value"], "question": "What are the names of the tourist attractions and the dates when the tourists named Vincent or Vivian visited there?", "question_toks": ["What", "are", "the", "names", "of", "the", "tourist", "attractions", "and", "the", "dates", "when", "the", "tourists", "named", "Vincent", "or", "Vivian", "visited", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 37, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 38, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 39, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Vincent\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Vivian\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5549", "db_id": "products_gen_characteristics", "query": "select t1.product_id , t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code join product_characteristics as t3 on t1.product_id = t3.product_id group by t1.product_id having count(*) >= 2", "query_toks": ["SELECT", "t1.product_id", ",", "t2.color_description", "FROM", "products", "AS", "t1", "JOIN", "ref_colors", "AS", "t2", "ON", "t1.color_code", "=", "t2.color_code", "JOIN", "product_characteristics", "AS", "t3", "ON", "t1.product_id", "=", "t3.product_id", "GROUP", "BY", "t1.product_id", "HAVING", "count", "(", "*", ")", ">", "=", "2"], "query_toks_no_value": ["select", "t1", ".", "product_id", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "join", "product_characteristics", "as", "t3", "on", "t1", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t1", ".", "product_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the product ids and color descriptions for products with two or more characteristics?", "question_toks": ["What", "are", "the", "product", "ids", "and", "color", "descriptions", "for", "products", "with", "two", "or", "more", "characteristics", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4340", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = 'omnis' union select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'omnis", "'", "UNION", "SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "GROUP", "BY", "T2.project_id", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the task details, task id and project id for the projects which are detailed as 'omnis' or have more than 2 outcomes?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "id", "and", "project", "id", "for", "the", "projects", "which", "are", "detailed", "as", "'omnis", "'", "or", "have", "more", "than", "2", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4341", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = 'omnis' union select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "WHERE", "T2.project_details", "=", "'omnis", "'", "UNION", "SELECT", "T1.task_details", ",", "T1.task_id", ",", "T2.project_id", "FROM", "Tasks", "AS", "T1", "JOIN", "Projects", "AS", "T2", "ON", "T1.project_id", "=", "T2.project_id", "JOIN", "Project_outcomes", "AS", "T3", "ON", "T2.project_id", "=", "T3.project_id", "GROUP", "BY", "T2.project_id", "HAVING", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(", "*", ")", ">", "value"], "question": "What are the task details, task ids, and project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "ids", ",", "and", "project", "ids", "for", "the", "progrects", "that", "are", "detailed", "as", "'omnis", "'", "or", "have", "at", "least", "3", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6965", "db_id": "culture_company", "query": "select book_title , author_or_editor from book_club where year > 1989", "query_toks": ["SELECT", "book_title", ",", "author_or_editor", "FROM", "book_club", "WHERE", "YEAR", ">", "1989"], "query_toks_no_value": ["select", "book_title", ",", "author_or_editor", "from", "book_club", "where", "year", ">", "value"], "question": "What are the titles and authors or editors that correspond to books made after 1989?", "question_toks": ["What", "are", "the", "titles", "and", "authors", "or", "editors", "that", "correspond", "to", "books", "made", "after", "1989", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6402", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = 'noel cv' or document_name = 'king book'", "query_toks": ["SELECT", "document_type_code", ",", "document_name", ",", "document_description", "FROM", "Documents", "WHERE", "document_name", "=", "'Noel", "CV", "'", "OR", "document_name", "=", "'King", "Book", "'"], "query_toks_no_value": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "or", "document_name", "=", "value"], "question": "What are the type come, name, and description of the document that has either the name 'Noel CV' or 'King Book'?", "question_toks": ["What", "are", "the", "type", "come", ",", "name", ",", "and", "description", "of", "the", "document", "that", "has", "either", "the", "name", "'Noel", "CV", "'", "or", "'King", "Book", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Noel CV\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"King Book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6604", "db_id": "train_station", "query": "select avg(total_passengers) , max(total_passengers) from station where location = 'london' or location = 'glasgow'", "query_toks": ["SELECT", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "FROM", "station", "WHERE", "LOCATION", "=", "'London", "'", "OR", "LOCATION", "=", "'Glasgow", "'"], "query_toks_no_value": ["select", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "value", "or", "location", "=", "value"], "question": "What is the average and maximum number of total passengers for train stations in London or Glasgow?", "question_toks": ["What", "is", "the", "average", "and", "maximum", "number", "of", "total", "passengers", "for", "train", "stations", "in", "London", "or", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"London\"", null], "or", [false, 2, [0, [0, 6, false], null], "\"Glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "AND_WITH_OR_IN_NL", "_AND_WITH_OR_AGG_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6050", "db_id": "game_1", "query": "select t2.lname , t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["SELECT", "T2.lname", ",", "T2.fname", "FROM", "SportsInfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.SportName", "=", "``", "Football", "''", "OR", "T1.SportName", "=", "``", "Lacrosse", "''"], "query_toks_no_value": ["select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value", "or", "t1", ".", "sportname", "=", "value"], "question": "What is the first and last name of all students who play Football or Lacrosse?", "question_toks": ["What", "is", "the", "first", "and", "last", "name", "of", "all", "students", "who", "play", "Football", "or", "Lacrosse", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"Lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5707", "db_id": "dorm_1", "query": "select lname from student where sex = 'f' and city_code = 'bal' union select lname from student where sex = 'm' and age < 20", "query_toks": ["SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'F", "'", "AND", "city_code", "=", "'BAL", "'", "UNION", "SELECT", "lname", "FROM", "student", "WHERE", "sex", "=", "'M", "'", "AND", "age", "<", "20"], "query_toks_no_value": ["select", "lname", "from", "student", "where", "sex", "=", "value", "and", "city_code", "=", "value", "union", "select", "lname", "from", "student", "where", "sex", "=", "value", "and", "age", "<", "value"], "question": "What is the last name of every student who is either female or living in a city with the code BAL or male and under 20?", "question_toks": ["What", "is", "the", "last", "name", "of", "every", "student", "who", "is", "either", "female", "or", "living", "in", "a", "city", "with", "the", "code", "BAL", "or", "male", "and", "under", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 8, false], null], "\"BAL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"M\"", null], "and", [false, 4, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6664", "db_id": "driving_school", "query": "select customer_status_code , cell_mobile_phone_number , email_address from customers where first_name = \"marina\" or last_name = \"kohler\"", "query_toks": ["SELECT", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Marina", "''", "OR", "last_name", "=", "``", "Kohler", "''"], "query_toks_no_value": ["select", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value"], "question": "What is the status code, mobile phone number and email address of customer with last name as Kohler or first name as Marina?", "question_toks": ["What", "is", "the", "status", "code", ",", "mobile", "phone", "number", "and", "email", "address", "of", "customer", "with", "last", "name", "as", "Kohler", "or", "first", "name", "as", "Marina", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 28, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Marina\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"Kohler\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6665", "db_id": "driving_school", "query": "select customer_status_code , cell_mobile_phone_number , email_address from customers where first_name = \"marina\" or last_name = \"kohler\"", "query_toks": ["SELECT", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "FROM", "Customers", "WHERE", "first_name", "=", "``", "Marina", "''", "OR", "last_name", "=", "``", "Kohler", "''"], "query_toks_no_value": ["select", "customer_status_code", ",", "cell_mobile_phone_number", ",", "email_address", "from", "customers", "where", "first_name", "=", "value", "or", "last_name", "=", "value"], "question": "What is the status code, phone number, and email address of the customer whose last name is Kohler or whose first name is Marina?", "question_toks": ["What", "is", "the", "status", "code", ",", "phone", "number", ",", "and", "email", "address", "of", "the", "customer", "whose", "last", "name", "is", "Kohler", "or", "whose", "first", "name", "is", "Marina", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 28, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], "\"Marina\"", null], "or", [false, 2, [0, [0, 24, false], null], "\"Kohler\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6986", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["SELECT", "title", ",", "director", "FROM", "movie", "WHERE", "YEAR", "<", "=", "2000", "ORDER", "BY", "gross_worldwide", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "where", "year", "<", "=", "value", "order", "by", "gross_worldwide", "desc", "limit", "value"], "question": "What is the title and director for the movie with highest worldwide gross in the year 2000 or before?", "question_toks": ["What", "is", "the", "title", "and", "director", "for", "the", "movie", "with", "highest", "worldwide", "gross", "in", "the", "year", "2000", "or", "before", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2960", "db_id": "sakila_1", "query": "select t1.first_name , t1.last_name , t1.customer_id from customer as t1 join payment as t2 on t1.customer_id = t2.customer_id group by t1.customer_id order by sum(amount) asc limit 1", "query_toks": ["SELECT", "T1.first_name", ",", "T1.last_name", ",", "T1.customer_id", "FROM", "customer", "AS", "T1", "JOIN", "payment", "AS", "T2", "ON", "T1.customer_id", "=", "T2.customer_id", "GROUP", "BY", "T1.customer_id", "ORDER", "BY", "sum", "(", "amount", ")", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "first_name", ",", "t1", ".", "last_name", ",", "t1", ".", "customer_id", "from", "customer", "as", "t1", "join", "payment", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "order", "by", "sum", "(", "amount", ")", "asc", "limit", "value"], "question": "Which customer, who has made at least one payment, has spent the least money? List his or her first name, last name, and the id.", "question_toks": ["Which", "customer", ",", "who", "has", "made", "at", "least", "one", "payment", ",", "has", "spent", "the", "least", "money", "?", "List", "his", "or", "her", "first", "name", ",", "last", "name", ",", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 12]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 62, false], null]]}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["asc", [[0, [4, 65, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2952", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name , t2.actor_id from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T2.first_name", ",", "T2.last_name", ",", "T2.actor_id", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", ",", "t2", ".", "actor_id", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which film actor (actress) starred the most films? List his or her first name, last name and actor id.", "question_toks": ["Which", "film", "actor", "(", "actress", ")", "starred", "the", "most", "films", "?", "List", "his", "or", "her", "first", "name", ",", "last", "name", "and", "actor", "id", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2954", "db_id": "sakila_1", "query": "select t2.first_name , t2.last_name from film_actor as t1 join actor as t2 on t1.actor_id = t2.actor_id group by t2.actor_id having count(*) > 30", "query_toks": ["SELECT", "T2.first_name", ",", "T2.last_name", "FROM", "film_actor", "AS", "T1", "JOIN", "actor", "AS", "T2", "ON", "T1.actor_id", "=", "T2.actor_id", "GROUP", "BY", "T2.actor_id", "HAVING", "count", "(", "*", ")", ">", "30"], "query_toks_no_value": ["select", "t2", ".", "first_name", ",", "t2", ".", "last_name", "from", "film_actor", "as", "t1", "join", "actor", "as", "t2", "on", "t1", ".", "actor_id", "=", "t2", ".", "actor_id", "group", "by", "t2", ".", "actor_id", "having", "count", "(", "*", ")", ">", "value"], "question": "Which film actors (actresses) played a role in more than 30 films? List his or her first name and last name.", "question_toks": ["Which", "film", "actors", "(", "actresses", ")", "played", "a", "role", "in", "more", "than", "30", "films", "?", "List", "his", "or", "her", "first", "name", "and", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 45, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 3, [0, [3, 0, false], null], 30.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0000", "db_id": "hr_1", "query": "select * from employees where first_name like \"%d%\" or first_name like \"%s%\" order by salary desc", "query_toks": ["select", "*", "from", "employees", "where", "first_name", "like", "\"%", "d", "%\"", "or", "first_name", "like", "\"%", "s", "%\"", "order", "by", "salary", "desc"], "query_toks_no_value": ["select", "*", "from", "employees", "where", "first_name", "like", "\"%", "d", "%\"", "or", "first_name", "like", "\"%", "s", "%\"", "order", "by", "salary", "desc"], "question": "display all information for all employees who have the letters D or S in their first name and also arrange the result in descending order by salary.", "question_toks": ["display", "all", "information", "for", "all", "employees", "who", "have", "the", "letters", "D", "or", "S", "in", "their", "first", "name", "and", "also", "arrange", "the", "result", "in", "descending", "order", "by", "salary", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 0, false], null]]]], "where": [[false, 9, [0, [0, 15, false], null], "\"%d%\"", null], "or", [false, 9, [0, [0, 15, false], null], "\"%s%\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0004", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "``", "milk", "''", "or", "t2", ".", "allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value"], "question": "Find different first names and cities of the students who have allergy to milk or cat.", "question_toks": ["Find", "different", "first", "names", "and", "cities", "of", "the", "students", "who", "have", "allergy", "to", "milk", "or", "cat", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0005", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "``", "france", "''", "or", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "Find id and location of circuits that belong to France or Belgium?", "question_toks": ["Find", "id", "and", "location", "of", "circuits", "that", "belong", "to", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0006", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "300", "or", "student_capacity", "<", "100"], "query_toks_no_value": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value"], "question": "Find name and gender of the dorms whose capacity is greater than 300 or less than 100.", "question_toks": ["Find", "name", "and", "gender", "of", "the", "dorms", "whose", "capacity", "is", "greater", "than", "300", "or", "less", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0012", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "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"], "question": "Find the id, last name and cell phone of the professionals who live in the state of Indiana or have performed more than 2 treatments", "question_toks": ["Find", "the", "id", ",", "last", "name", "and", "cell", "phone", "of", "the", "professionals", "who", "live", "in", "the", "state", "of", "Indiana", "or", "have", "performed", "more", "than", "2", "treatments"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0015", "db_id": "coffee_shop", "query": "select name , member_id from member where membership_card = \"black\" or age < 30", "query_toks": ["select", "name", ",", "member_id", "from", "member", "where", "membership_card", "=", "``", "black", "''", "or", "age", "<", "30"], "query_toks_no_value": ["select", "name", ",", "member_id", "from", "member", "where", "membership_card", "=", "value", "or", "age", "<", "value"], "question": "Find the ids and names of members who are under age 30 or with the black membership card.", "question_toks": ["Find", "the", "ids", "and", "names", "of", "members", "who", "are", "under", "age", "30", "or", "with", "the", "black", "membership", "card", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"black\"", null], "or", [false, 4, [0, [0, 9, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0017", "db_id": "game_1", "query": "select t2.lname , t2.fname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.sportname = \"football\" or t1.sportname = \"lacrosse\"", "query_toks": ["select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "``", "football", "''", "or", "t1", ".", "sportname", "=", "``", "lacrosse", "''"], "query_toks_no_value": ["select", "t2", ".", "lname", ",", "t2", ".", "fname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "sportname", "=", "value", "or", "t1", ".", "sportname", "=", "value"], "question": "Find the last and first names of students who are playing Football or Lacrosse.", "question_toks": ["Find", "the", "last", "and", "first", "names", "of", "students", "who", "are", "playing", "Football", "or", "Lacrosse", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"football\"", null], "or", [false, 2, [0, [0, 16, false], null], "\"lacrosse\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0021", "db_id": "flight_4", "query": "select name , city , country , elevation from airports where city = \"new york\"", "query_toks": ["select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "``", "new", "york", "''"], "query_toks_no_value": ["select", "name", ",", "city", ",", "country", ",", "elevation", "from", "airports", "where", "city", "=", "value", "york"], "question": "Find the name, city, country, and altitude (or elevation) of the airport in New York.", "question_toks": ["Find", "the", "name", ",", "city", ",", "country", ",", "and", "altitude", "(", "or", "elevation", ")", "of", "the", "airport", "in", "New", "York", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"new york\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0023", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" or t2.friend = \"alice\"", "query_toks": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "``", "dan", "''", "or", "t2", ".", "friend", "=", "``", "alice", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value"], "question": "Find the names and ages of the person who is a friend of Dan or Alice.", "question_toks": ["Find", "the", "names", "and", "ages", "of", "the", "person", "who", "is", "a", "friend", "of", "Dan", "or", "Alice", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0025", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "``", "bus", "''", "or", "how_to_get_there", "=", "``", "walk", "''"], "query_toks_no_value": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value"], "question": "Find the names and opening hours of tourist attractions that we get to by bus or walk.", "question_toks": ["Find", "the", "names", "and", "opening", "hours", "of", "tourist", "attractions", "that", "we", "get", "to", "by", "bus", "or", "walk", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0029", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Find the owner ids and zip codes of the owner who spent the most money in total for his or her dogs.", "question_toks": ["Find", "the", "owner", "ids", "and", "zip", "codes", "of", "the", "owner", "who", "spent", "the", "most", "money", "in", "total", "for", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0032", "db_id": "manufacturer", "query": "select name , open_year from manufacturer where num_of_shops > 10 or num_of_factories < 10", "query_toks": ["select", "name", ",", "open_year", "from", "manufacturer", "where", "num_of_shops", ">", "10", "or", "num_of_factories", "<", "10"], "query_toks_no_value": ["select", "name", ",", "open_year", "from", "manufacturer", "where", "num_of_shops", ">", "value", "or", "num_of_factories", "<", "value"], "question": "Give me the names and years of opening of manufacturers that have either less than 10 factories or more than 10 shops.", "question_toks": ["Give", "me", "the", "names", "and", "years", "of", "opening", "of", "manufacturers", "that", "have", "either", "less", "than", "10", "factories", "or", "more", "than", "10", "shops", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 10.0, null], "or", [false, 4, [0, [0, 4, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0034", "db_id": "insurance_policies", "query": "select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2 except select t1.customer_details , t1.customer_id from customers as t1 join customer_policies as t2 on t1.customer_id = t2.customer_id join claims as t3 on t2.policy_id = t3.policy_id", "query_toks": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "query_toks_no_value": ["select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2", "except", "select", "t1", ".", "customer_details", ",", "t1", ".", "customer_id", "from", "customers", "as", "t1", "join", "customer_policies", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "join", "claims", "as", "t3", "on", "t2", ".", "policy_id", "=", "t3", ".", "policy_id"], "question": "Give me the the customers details and id for the customers who had two or more policies but did not file any claims.", "question_toks": ["Give", "me", "the", "the", "customers", "details", "and", "id", "for", "the", "customers", "who", "had", "two", "or", "more", "policies", "but", "did", "not", "file", "any", "claims", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 4, false], null], "and", [false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0035", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600 or product_price > 900", "query_toks": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "600", "or", "product_price", ">", "900"], "query_toks_no_value": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value"], "question": "Give the id and names of products with price lower than 600 or higher than 900.", "question_toks": ["Give", "the", "id", "and", "names", "of", "products", "with", "price", "lower", "than", "600", "or", "higher", "than", "900", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0040", "db_id": "game_injury", "query": "select t1.season , t2.name from game as t1 join stadium as t2 on t1.stadium_id = t2.id join injury_accident as t3 on t1.id = t3.game_id where t3.injury = \"foot injury\" or t3.injury = \"knee problem\"", "query_toks": ["select", "t1", ".", "season", ",", "t2", ".", "name", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "injury", "=", "``", "foot", "injury", "''", "or", "t3", ".", "injury", "=", "``", "knee", "problem", "''"], "query_toks_no_value": ["select", "t1", ".", "season", ",", "t2", ".", "name", "from", "game", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "id", "join", "injury_accident", "as", "t3", "on", "t1", ".", "id", "=", "t3", ".", "game_id", "where", "t3", ".", "injury", "=", "value", "injury", "or", "t3", ".", "injury", "=", "value", "problem"], "question": "In which seasons and which stadium did any player have an injury of 'Foot injury' or 'Knee problem'?", "question_toks": ["In", "which", "seasons", "and", "which", "stadium", "did", "any", "player", "have", "an", "injury", "of", "'", "Foot", "injury", "'", "or", "'", "Knee", "problem", "'?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"foot injury\"", null], "or", [false, 2, [0, [0, 18, false], null], "\"knee problem\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0044", "db_id": "phone_1", "query": "select t2.hardware_model_name , t2.company_name from chip_model as t1 join phone as t2 on t1.model_name = t2.chip_model where t1.launch_year = 2002 or t1.ram_mib > 32", "query_toks": ["select", "t2", ".", "hardware_model_name", ",", "t2", ".", "company_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "2002", "or", "t1", ".", "ram_mib", ">", "32"], "query_toks_no_value": ["select", "t2", ".", "hardware_model_name", ",", "t2", ".", "company_name", "from", "chip_model", "as", "t1", "join", "phone", "as", "t2", "on", "t1", ".", "model_name", "=", "t2", ".", "chip_model", "where", "t1", ".", "launch_year", "=", "value", "or", "t1", ".", "ram_mib", ">", "value"], "question": "List the hardware models name and company name for all the phones that were launched in year 2002 or have RAM size greater than 32.", "question_toks": ["List", "the", "hardware", "models", "name", "and", "company", "name", "for", "all", "the", "phones", "that", "were", "launched", "in", "year", "2002", "or", "have", "RAM", "size", "greater", "than", "32", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], 2002.0, null], "or", [false, 3, [0, [0, 3, false], null], 32.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0046", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220 or height < 75", "query_toks": ["select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "220", "or", "height", "<", "75"], "query_toks_no_value": ["select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value"], "question": "List the players first names and last names who have weight greater than 220 or height shorter than 75.", "question_toks": ["List", "the", "players", "first", "names", "and", "last", "names", "who", "have", "weight", "greater", "than", "220", "or", "height", "shorter", "than", "75", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0048", "db_id": "hospital_1", "query": "select t1.name , count(*) from physician as t1 join patient as t2 on t1.employeeid = t2.pcp group by t1.employeeid", "query_toks": ["select", "t1", ".", "name", ",", "count", "(*)", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "count", "(*)", "from", "physician", "as", "t1", "join", "patient", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "pcp", "group", "by", "t1", ".", "employeeid"], "question": "Return names of each physician and the number of patients he or she treats.", "question_toks": ["Return", "names", "of", "each", "physician", "and", "the", "number", "of", "patients", "he", "or", "she", "treats", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0052", "db_id": "customers_and_invoices", "query": "select t2.order_id , t2.order_details from invoices as t1 join orders as t2 on t1.order_id = t2.order_id group by t2.order_id having count(*) >= 2", "query_toks": ["select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t2", ".", "order_id", ",", "t2", ".", "order_details", "from", "invoices", "as", "t1", "join", "orders", "as", "t2", "on", "t1", ".", "order_id", "=", "t2", ".", "order_id", "group", "by", "t2", ".", "order_id", "having", "count", "(*)", ">=", "2"], "question": "Return the order ids and details for orders with 2 or more invoices.", "question_toks": ["Return", "the", "order", "ids", "and", "details", "for", "orders", "with", "2", "or", "more", "invoices", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 16, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0054", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["select", "title", ",", "director", "from", "movie", "where", "year", "<=", "2000", "order", "by", "gross_worldwide", "desc", "limit", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "where", "year", "<=", "value", "order", "by", "gross_worldwide", "desc", "limit", "1"], "question": "Return title and director of the movie released in the year 2000 or earlier that had the highest worldwide gross.", "question_toks": ["Return", "title", "and", "director", "of", "the", "movie", "released", "in", "the", "year", "2000", "or", "earlier", "that", "had", "the", "highest", "worldwide", "gross", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0055", "db_id": "manufactory_1", "query": "select name , price from products where price >= 180 order by price desc , name asc", "query_toks": ["select", "name", ",", "price", "from", "products", "where", "price", ">=", "180", "order", "by", "price", "desc", ",", "name", "asc"], "query_toks_no_value": ["select", "name", ",", "price", "from", "products", "where", "price", ">=", "value", "order", "by", "price", "desc", ",", "name", "asc"], "question": "Select name and price of all products with a price larger than or equal to $180, and sort first by price (in descending order), and then by name (in ascending order).", "question_toks": ["Select", "name", "and", "price", "of", "all", "products", "with", "a", "price", "larger", "than", "or", "equal", "to", "$", "180", ",", "and", "sort", "first", "by", "price", "(", "in", "descending", "order", "),", "and", "then", "by", "name", "(", "in", "ascending", "order", ")."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 5, [0, [0, 8, false], null], 180.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null], [0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_ORDERING_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0057", "db_id": "cinema", "query": "select avg(capacity) , min(capacity) , max(capacity) from cinema where openning_year >= 2011", "query_toks": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">=", "2011"], "query_toks_no_value": ["select", "avg", "(", "capacity", ")", ",", "min", "(", "capacity", ")", ",", "max", "(", "capacity", ")", "from", "cinema", "where", "openning_year", ">=", "value"], "question": "Show average, minimum, and maximum capacity for all the cinemas opened in year 2011 or later.", "question_toks": ["Show", "average", ",", "minimum", ",", "and", "maximum", "capacity", "for", "all", "the", "cinemas", "opened", "in", "year", "2011", "or", "later", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 11, false], null]], [2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 10, false], null], 2011.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0059", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "``", "spring", "''", "or", "party_theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value"], "question": "Show first year and last year of parties with theme \"Spring\" or \"Teqnology\".", "question_toks": ["Show", "first", "year", "and", "last", "year", "of", "parties", "with", "theme", "\"", "Spring", "\"", "or", "\"", "Teqnology", "\"."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0061", "db_id": "customers_and_products_contacts", "query": "select product_type_code , product_name from products where product_price > 1000 or product_price < 500", "query_toks": ["select", "product_type_code", ",", "product_name", "from", "products", "where", "product_price", ">", "1000", "or", "product_price", "<", "500"], "query_toks_no_value": ["select", "product_type_code", ",", "product_name", "from", "products", "where", "product_price", ">", "value", "or", "product_price", "<", "value"], "question": "Show product type and name for the products with price higher than 1000 or lower than 500.", "question_toks": ["Show", "product", "type", "and", "name", "for", "the", "products", "with", "price", "higher", "than", "1000", "or", "lower", "than", "500", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 1000.0, null], "or", [false, 4, [0, [0, 10, false], null], 500.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0062", "db_id": "customers_campaigns_ecommerce", "query": "select order_shipping_charges , customer_id from customer_orders where order_status_code = \"cancelled\" or order_status_code = \"paid\"", "query_toks": ["select", "order_shipping_charges", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "``", "cancelled", "''", "or", "order_status_code", "=", "``", "paid", "''"], "query_toks_no_value": ["select", "order_shipping_charges", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "value", "or", "order_status_code", "=", "value"], "question": "Show shipping charge and customer id for customer orders with order status Cancelled or Paid.", "question_toks": ["Show", "shipping", "charge", "and", "customer", "id", "for", "customer", "orders", "with", "order", "status", "Cancelled", "or", "Paid", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 31, false], null]], [0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"cancelled\"", null], "or", [false, 2, [0, [0, 27, false], null], "\"paid\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0063", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t2", ".", "capacity", "from", "concert", "as", "t1", "join", "stadium", "as", "t2", "on", "t1", ".", "stadium_id", "=", "t2", ".", "stadium_id", "where", "t1", ".", "year", ">=", "value", "group", "by", "t2", ".", "stadium_id", "order", "by", "count", "(*)", "desc", "limit", "1"], "question": "Show stadium name and capacity with most number of concerts in year 2014 or after.", "question_toks": ["Show", "stadium", "name", "and", "capacity", "with", "most", "number", "of", "concerts", "in", "year", "2014", "or", "after", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 5, [0, [0, 19, false], null], 2014.0, null]], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0066", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "2011", "or", "city", "=", "``", "london", "''"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "Show the minimum and maximum amount of memberships for all branches opened in 2011 or located at city London.", "question_toks": ["Show", "the", "minimum", "and", "maximum", "amount", "of", "memberships", "for", "all", "branches", "opened", "in", "2011", "or", "located", "at", "city", "London", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0071", "db_id": "culture_company", "query": "select book_title , author_or_editor from book_club where year > 1989", "query_toks": ["select", "book_title", ",", "author_or_editor", "from", "book_club", "where", "year", ">", "1989"], "query_toks_no_value": ["select", "book_title", ",", "author_or_editor", "from", "book_club", "where", "year", ">", "value"], "question": "show titles, and authors or editors for all books made after the year 1989.", "question_toks": ["show", "titles", ",", "and", "authors", "or", "editors", "for", "all", "books", "made", "after", "the", "year", "1989", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 3, [0, [0, 2, false], null], 1989.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0072", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Tell me owner id and last name of the owner who spent the most on treatments of his or her dogs.", "question_toks": ["Tell", "me", "owner", "id", "and", "last", "name", "of", "the", "owner", "who", "spent", "the", "most", "on", "treatments", "of", "his", "or", "her", "dogs", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0074", "db_id": "network_2", "query": "select distinct t1.name , t1.age from person as t1 join personfriend as t2 on t1.name = t2.name where t2.friend = \"dan\" or t2.friend = \"alice\"", "query_toks": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "``", "dan", "''", "or", "t2", ".", "friend", "=", "``", "alice", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", ",", "t1", ".", "age", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "name", "where", "t2", ".", "friend", "=", "value", "or", "t2", ".", "friend", "=", "value"], "question": "What are different names and ages of every friend of either Dan or alice?", "question_toks": ["What", "are", "different", "names", "and", "ages", "of", "every", "friend", "of", "either", "Dan", "or", "alice", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"dan\"", null], "or", [false, 2, [0, [0, 7, false], null], "\"alice\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0076", "db_id": "car_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are id and names of the countries which have more than 3 car makers or produce the 'fiat' model?", "question_toks": ["What", "are", "id", "and", "names", "of", "the", "countries", "which", "have", "more", "than", "3", "car", "makers", "or", "produce", "the", "'", "fiat", "'", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0077", "db_id": "customers_and_invoices", "query": "select t1.account_id , t2.account_name from financial_transactions as t1 join accounts as t2 on t1.account_id = t2.account_id group by t1.account_id having count(*) >= 4", "query_toks": ["select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(*)", ">=", "4"], "query_toks_no_value": ["select", "t1", ".", "account_id", ",", "t2", ".", "account_name", "from", "financial_transactions", "as", "t1", "join", "accounts", "as", "t2", "on", "t1", ".", "account_id", "=", "t2", ".", "account_id", "group", "by", "t1", ".", "account_id", "having", "count", "(*)", ">=", "4"], "question": "What are ids and names of accounts with 4 or more transactions?", "question_toks": ["What", "are", "ids", "and", "names", "of", "accounts", "with", "4", "or", "more", "transactions", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 36, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 36, false], null]], [0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 36, false]], "having": [[false, 5, [0, [3, 0, false], null], 4.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0078", "db_id": "car_1", "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\"", "query_toks": ["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", "''"], "query_toks_no_value": ["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", "=", "value"], "question": "What are ids and names of all countries that either have more than 3 car makers or produce fiat model ?", "question_toks": ["What", "are", "ids", "and", "names", "of", "all", "countries", "that", "either", "have", "more", "than", "3", "car", "makers", "or", "produce", "fiat", "model", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"fiat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0079", "db_id": "medicine_enzyme_interaction", "query": "select t1.id , t1.name from medicine as t1 join medicine_enzyme_interaction as t2 on t2.medicine_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "medicine", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t2", ".", "medicine_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", ">=", "2"], "question": "What are ids and names of the medicine that can interact with two or more enzymes?", "question_toks": ["What", "are", "ids", "and", "names", "of", "the", "medicine", "that", "can", "interact", "with", "two", "or", "more", "enzymes", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0080", "db_id": "browser_web", "query": "select t1.id , t1.name from web_client_accelerator as t1 join accelerator_compatible_browser as t2 on t2.accelerator_id = t1.id group by t1.id having count(*) >= 2", "query_toks": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", "from", "web_client_accelerator", "as", "t1", "join", "accelerator_compatible_browser", "as", "t2", "on", "t2", ".", "accelerator_id", "=", "t1", ".", "id", "group", "by", "t1", ".", "id", "having", "count", "(*)", ">=", "2"], "question": "What are ids and names of the web accelerators that are compatible with two or more browsers?", "question_toks": ["What", "are", "ids", "and", "names", "of", "the", "web", "accelerators", "that", "are", "compatible", "with", "two", "or", "more", "browsers", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0081", "db_id": "architecture", "query": "select t1.id , t1.name , t1.gender from architect as t1 join bridge as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 2 union select t1.id , t1.name , t1.gender from architect as t1 join mill as t2 on t1.id = t2.architect_id group by t1.id having count(*) = 1", "query_toks": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2", "union", "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "mill", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "bridge", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "2", "union", "select", "t1", ".", "id", ",", "t1", ".", "name", ",", "t1", ".", "gender", "from", "architect", "as", "t1", "join", "mill", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "architect_id", "group", "by", "t1", ".", "id", "having", "count", "(*)", "=", "1"], "question": "What are ids, names and genders of the architects who built two bridges or one mill?", "question_toks": ["What", "are", "ids", ",", "names", "and", "genders", "of", "the", "architects", "who", "built", "two", "bridges", "or", "one", "mill", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [[false, 2, [0, [3, 0, false], null], 1.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0082", "db_id": "manufactory_1", "query": "select avg(t1.price) , t2.name from products as t1 join manufacturers as t2 on t1.manufacturer = t2.code group by t2.name having avg(t1.price) >= 150", "query_toks": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">=", "150"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "price", ")", ",", "t2", ".", "name", "from", "products", "as", "t1", "join", "manufacturers", "as", "t2", "on", "t1", ".", "manufacturer", "=", "t2", ".", "code", "group", "by", "t2", ".", "name", "having", "avg", "(", "t1", ".", "price", ")", ">=", "150"], "question": "What are names and average prices of products for manufacturers whose products cost on average 150 or more?", "question_toks": ["What", "are", "names", "and", "average", "prices", "of", "products", "for", "manufacturers", "whose", "products", "cost", "on", "average", "150", "or", "more", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 1, false], null]]}, "select": [false, [[5, [0, [0, 8, false], null]], [0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 5, [0, [5, 8, false], null], 150.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0083", "db_id": "bike_1", "query": "select t1.name , t1.id from station as t1 join status as t2 on t1.id = t2.station_id group by t2.station_id having avg(t2.bikes_available) > 14 union select name , id from station where installation_date like \"12/%\"", "query_toks": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14", "union", "select", "name", ",", "id", "from", "station", "where", "installation_date", "like", "``", "12", "/%\""], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "id", "from", "station", "as", "t1", "join", "status", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "station_id", "group", "by", "t2", ".", "station_id", "having", "avg", "(", "t2", ".", "bikes_available", ")", ">", "14", "union", "select", "name", ",", "id", "from", "station", "where", "installation_date", "like", "value", "/%\""], "question": "What are names and ids of all stations that have more than 14 bikes available on average or had bikes installed in December?", "question_toks": ["What", "are", "names", "and", "ids", "of", "all", "stations", "that", "have", "more", "than", "14", "bikes", "available", "on", "average", "or", "had", "bikes", "installed", "in", "December", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 14.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 1, false], null]]]], "where": [[false, 9, [0, [0, 7, false], null], "\"12/%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_UNION_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0084", "db_id": "chinook_1", "query": "select t2.name , t1.artistid from album as t1 join artist as t2 on t1.artistid = t2.artistid group by t1.artistid having count(*) >= 3 order by t2.name", "query_toks": ["select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(*)", ">=", "3", "order", "by", "t2", ".", "name"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "artistid", "from", "album", "as", "t1", "join", "artist", "as", "t2", "on", "t1", ".", "artistid", "=", "t2", ".", "artistid", "group", "by", "t1", ".", "artistid", "having", "count", "(*)", ">=", "3", "order", "by", "t2", ".", "name"], "question": "What are names and ids of artists with 3 or more albums, listed in alphabetical order?", "question_toks": ["What", "are", "names", "and", "ids", "of", "artists", "with", "3", "or", "more", "albums", ",", "listed", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 4, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0085", "db_id": "cre_Theme_park", "query": "select name , opening_hours from tourist_attractions where how_to_get_there = \"bus\" or how_to_get_there = \"walk\"", "query_toks": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "``", "bus", "''", "or", "how_to_get_there", "=", "``", "walk", "''"], "query_toks_no_value": ["select", "name", ",", "opening_hours", "from", "tourist_attractions", "where", "how_to_get_there", "=", "value", "or", "how_to_get_there", "=", "value"], "question": "What are names and opening hours of the tourist attractions that can be accessed by bus or walk?", "question_toks": ["What", "are", "names", "and", "opening", "hours", "of", "the", "tourist", "attractions", "that", "can", "be", "accessed", "by", "bus", "or", "walk", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"bus\"", null], "or", [false, 2, [0, [0, 21, false], null], "\"walk\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0086", "db_id": "dorm_1", "query": "select dorm_name , gender from dorm where student_capacity > 300 or student_capacity < 100", "query_toks": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "300", "or", "student_capacity", "<", "100"], "query_toks_no_value": ["select", "dorm_name", ",", "gender", "from", "dorm", "where", "student_capacity", ">", "value", "or", "student_capacity", "<", "value"], "question": "What are names and types of the dorms that have a capacity greater than 300 or less than 100?", "question_toks": ["What", "are", "names", "and", "types", "of", "the", "dorms", "that", "have", "a", "capacity", "greater", "than", "300", "or", "less", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 300.0, null], "or", [false, 4, [0, [0, 11, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0087", "db_id": "storm_record", "query": "select name , dates_active , number_deaths from storm where number_deaths >= 1", "query_toks": ["select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm", "where", "number_deaths", ">=", "1"], "query_toks_no_value": ["select", "name", ",", "dates_active", ",", "number_deaths", "from", "storm", "where", "number_deaths", ">=", "value"], "question": "What are names, dates active, and number of deaths for storms that had 1 or more death?", "question_toks": ["What", "are", "names", ",", "dates", "active", ",", "and", "number", "of", "deaths", "for", "storms", "that", "had", "1", "or", "more", "death", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 5, [0, [0, 6, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0088", "db_id": "products_gen_characteristics", "query": "select t1.product_id , t2.color_description from products as t1 join ref_colors as t2 on t1.color_code = t2.color_code join product_characteristics as t3 on t1.product_id = t3.product_id group by t1.product_id having count(*) >= 2", "query_toks": ["select", "t1", ".", "product_id", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "join", "product_characteristics", "as", "t3", "on", "t1", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t1", ".", "product_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "product_id", ",", "t2", ".", "color_description", "from", "products", "as", "t1", "join", "ref_colors", "as", "t2", "on", "t1", ".", "color_code", "=", "t2", ".", "color_code", "join", "product_characteristics", "as", "t3", "on", "t1", ".", "product_id", "=", "t3", ".", "product_id", "group", "by", "t1", ".", "product_id", "having", "count", "(*)", ">=", "2"], "question": "What are product ids and color descriptions for products with two or more characteristics?", "question_toks": ["What", "are", "product", "ids", "and", "color", "descriptions", "for", "products", "with", "two", "or", "more", "characteristics", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 1], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 3, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0092", "db_id": "allergy_1", "query": "select distinct t1.fname , t1.city_code from student as t1 join has_allergy as t2 on t1.stuid = t2.stuid where t2.allergy = \"milk\" or t2.allergy = \"cat\"", "query_toks": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "``", "milk", "''", "or", "t2", ".", "allergy", "=", "``", "cat", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "fname", ",", "t1", ".", "city_code", "from", "student", "as", "t1", "join", "has_allergy", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t2", ".", "allergy", "=", "value", "or", "t2", ".", "allergy", "=", "value"], "question": "What are the distinct first names and the cities of students who have allergy either to milk or to cat?", "question_toks": ["What", "are", "the", "distinct", "first", "names", "and", "the", "cities", "of", "students", "who", "have", "allergy", "either", "to", "milk", "or", "to", "cat", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 7, false], null]], [0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"milk\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"cat\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0094", "db_id": "local_govt_and_lot", "query": "select distinct t2.thing_id , t2.type_of_thing_code from timed_status_of_things as t1 join things as t2 on t1.thing_id = t2.thing_id where t1.status_of_thing_code = \"close\" or t1.date_and_date < \"2017-06-19 02:59:21\"", "query_toks": ["select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "``", "close", "''", "or", "t1", ".", "date_and_date", "<", "``", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "''"], "query_toks_no_value": ["select", "distinct", "t2", ".", "thing_id", ",", "t2", ".", "type_of_thing_code", "from", "timed_status_of_things", "as", "t1", "join", "things", "as", "t2", "on", "t1", ".", "thing_id", "=", "t2", ".", "thing_id", "where", "t1", ".", "status_of_thing_code", "=", "value", "or", "t1", ".", "date_and_date", "<", "value", "-", "06", "-", "19", "02", ":", "59", ":", "21"], "question": "What are the distinct id and type of the thing that has the status 'Close' or has the status record before the date '2017-06-19 02:59:21'", "question_toks": ["What", "are", "the", "distinct", "id", "and", "type", "of", "the", "thing", "that", "has", "the", "status", "'", "Close", "'", "or", "has", "the", "status", "record", "before", "the", "date", "'", "2017", "-", "06", "-", "19", "02", ":", "59", ":", "21", "'"], "sql": {"from": {"table_units": [["table_unit", 9], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 43, false], null], [0, 26, false], null]]}, "select": [true, [[0, [0, [0, 26, false], null]], [0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 45, false], null], "\"close\"", null], "or", [false, 4, [0, [0, 44, false], null], "\"2017-06-19 02:59:21\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0097", "db_id": "formula_1", "query": "select t1.forename , t1.surname , t1.driverid from drivers as t1 join pitstops as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 8 union select t1.forename , t1.surname , t1.driverid from drivers as t1 join results as t2 on t1.driverid = t2.driverid group by t1.driverid having count(*) > 5", "query_toks": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "8", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "5"], "query_toks_no_value": ["select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "pitstops", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "8", "union", "select", "t1", ".", "forename", ",", "t1", ".", "surname", ",", "t1", ".", "driverid", "from", "drivers", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "driverid", "=", "t2", ".", "driverid", "group", "by", "t1", ".", "driverid", "having", "count", "(*)", ">", "5"], "question": "What are the drivers' first, last names and the id who had more than 8 pit stops or participated in more than 5 race results?", "question_toks": ["What", "are", "the", "drivers", "'", "first", ",", "last", "names", "and", "the", "id", "who", "had", "more", "than", "8", "pit", "stops", "or", "participated", "in", "more", "than", "5", "race", "results", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 11]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 8.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]], [0, [0, [0, 23, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 3, [0, [3, 0, false], null], 5.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0099", "db_id": "hr_1", "query": "select first_name , last_name from employees where department_id = 70 or department_id = 90", "query_toks": ["select", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "=", "70", "or", "department_id", "=", "90"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "employees", "where", "department_id", "=", "value", "or", "department_id", "=", "value"], "question": "What are the first and last name for those employees who works either in departments 70 or 90?", "question_toks": ["What", "are", "the", "first", "and", "last", "name", "for", "those", "employees", "who", "works", "either", "in", "departments", "70", "or", "90", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], 70.0, null], "or", [false, 2, [0, [0, 24, false], null], 90.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0101", "db_id": "baseball_1", "query": "select name_first , name_last from player where weight > 220 or height < 75", "query_toks": ["select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "220", "or", "height", "<", "75"], "query_toks_no_value": ["select", "name_first", ",", "name_last", "from", "player", "where", "weight", ">", "value", "or", "height", "<", "value"], "question": "What are the first name and the last name of the players who have weight above 220 or height below 75?", "question_toks": ["What", "are", "the", "first", "name", "and", "the", "last", "name", "of", "the", "players", "who", "have", "weight", "above", "220", "or", "height", "below", "75", "?"], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[0, [0, [0, 195, false], null]], [0, [0, [0, 196, false], null]]]], "where": [[false, 3, [0, [0, 198, false], null], 220.0, null], "or", [false, 4, [0, [0, 199, false], null], 75.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0104", "db_id": "customers_and_invoices", "query": "select t2.customer_first_name , t1.customer_id from accounts as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t2", ".", "customer_first_name", ",", "t1", ".", "customer_id", "from", "accounts", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "question": "What are the first names and the ids for customers who have two or more accounts?", "question_toks": ["What", "are", "the", "first", "names", "and", "the", "ids", "for", "customers", "who", "have", "two", "or", "more", "accounts", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 21, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [[0, 21, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0105", "db_id": "chinook_1", "query": "select t1.firstname , t1.supportrepid from customer as t1 join employee as t2 on t1.supportrepid = t2.employeeid group by t1.supportrepid having count(*) >= 10", "query_toks": ["select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(*)", ">=", "10"], "query_toks_no_value": ["select", "t1", ".", "firstname", ",", "t1", ".", "supportrepid", "from", "customer", "as", "t1", "join", "employee", "as", "t2", "on", "t1", ".", "supportrepid", "=", "t2", ".", "employeeid", "group", "by", "t1", ".", "supportrepid", "having", "count", "(*)", ">=", "10"], "question": "What are the first names and the support rep ids for employees serving 10 or more customers?", "question_toks": ["What", "are", "the", "first", "names", "and", "the", "support", "rep", "ids", "for", "employees", "serving", "10", "or", "more", "customers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 19, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 18, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0107", "db_id": "party_host", "query": "select first_year , last_year from party where party_theme = \"spring\" or party_theme = \"teqnology\"", "query_toks": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "``", "spring", "''", "or", "party_theme", "=", "``", "teqnology", "''"], "query_toks_no_value": ["select", "first_year", ",", "last_year", "from", "party", "where", "party_theme", "=", "value", "or", "party_theme", "=", "value"], "question": "What are the first year and the last year of the parties whose theme is \"Spring\" or \"Teqnology\"?", "question_toks": ["What", "are", "the", "first", "year", "and", "the", "last", "year", "of", "the", "parties", "whose", "theme", "is", "\"", "Spring", "\"", "or", "\"", "Teqnology", "\"?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"spring\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"teqnology\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0108", "db_id": "department_store", "query": "select product_id , product_name from products where product_price < 600 or product_price > 900", "query_toks": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "600", "or", "product_price", ">", "900"], "query_toks_no_value": ["select", "product_id", ",", "product_name", "from", "products", "where", "product_price", "<", "value", "or", "product_price", ">", "value"], "question": "What are the id and name of the products whose price is lower than 600 or higher than 900?", "question_toks": ["What", "are", "the", "id", "and", "name", "of", "the", "products", "whose", "price", "is", "lower", "than", "600", "or", "higher", "than", "900", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 600.0, null], "or", [false, 3, [0, [0, 21, false], null], 900.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0111", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the id, the role, and the first name of the professionals who have performed two or more treatments?", "question_toks": ["What", "are", "the", "id", ",", "the", "role", ",", "and", "the", "first", "name", "of", "the", "professionals", "who", "have", "performed", "two", "or", "more", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0118", "db_id": "customers_card_transactions", "query": "select t1.customer_id , t2.customer_first_name , t2.customer_last_name from customers_cards as t1 join customers as t2 on t1.customer_id = t2.customer_id group by t1.customer_id having count(*) >= 2", "query_toks": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "query_toks_no_value": ["select", "t1", ".", "customer_id", ",", "t2", ".", "customer_first_name", ",", "t2", ".", "customer_last_name", "from", "customers_cards", "as", "t1", "join", "customers", "as", "t2", "on", "t1", ".", "customer_id", "=", "t2", ".", "customer_id", "group", "by", "t1", ".", "customer_id", "having", "count", "(*)", ">=", "2"], "question": "What are the ids and the full names of customers who hold two or more cards?", "question_toks": ["What", "are", "the", "ids", "and", "the", "full", "names", "of", "customers", "who", "hold", "two", "or", "more", "cards", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 13, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0119", "db_id": "formula_1", "query": "select circuitid , location from circuits where country = \"france\" or country = \"belgium\"", "query_toks": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "``", "france", "''", "or", "country", "=", "``", "belgium", "''"], "query_toks_no_value": ["select", "circuitid", ",", "location", "from", "circuits", "where", "country", "=", "value", "or", "country", "=", "value"], "question": "What are the ids and the locations of all circuits in France or Belgium?", "question_toks": ["What", "are", "the", "ids", "and", "the", "locations", "of", "all", "circuits", "in", "France", "or", "Belgium", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"france\"", null], "or", [false, 2, [0, [0, 5, false], null], "\"belgium\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0121", "db_id": "shop_membership", "query": "select min(membership_amount) , max(membership_amount) from branch where open_year = 2011 or city = \"london\"", "query_toks": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "2011", "or", "city", "=", "``", "london", "''"], "query_toks_no_value": ["select", "min", "(", "membership_amount", ")", ",", "max", "(", "membership_amount", ")", "from", "branch", "where", "open_year", "=", "value", "or", "city", "=", "value"], "question": "What are the minimum and maximum membership amounts for all branches that are located in London?", "question_toks": ["What", "are", "the", "minimum", "and", "maximum", "membership", "amounts", "for", "all", "branches", "that", "are", "located", "in", "London", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[2, [0, [0, 11, false], null]], [1, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], 2011.0, null], "or", [false, 2, [0, [0, 10, false], null], "\"london\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0136", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\" union select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "``", "omnis", "''", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(*)", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(*)", ">", "2"], "question": "What are the task details, task id and project id for projects which are detailed as 'omnis' or have more than 2 outcomes?", "question_toks": ["What", "are", "the", "task", "details", ",", "task", "id", "and", "project", "id", "for", "projects", "which", "are", "detailed", "as", "'", "omnis", "'", "or", "have", "more", "than", "2", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0139", "db_id": "tracking_grants_for_research", "query": "select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id where t2.project_details = \"omnis\" union select t1.task_details , t1.task_id , t2.project_id from tasks as t1 join projects as t2 on t1.project_id = t2.project_id join project_outcomes as t3 on t2.project_id = t3.project_id group by t2.project_id having count(*) > 2", "query_toks": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "``", "omnis", "''", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(*)", ">", "2"], "query_toks_no_value": ["select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "where", "t2", ".", "project_details", "=", "value", "union", "select", "t1", ".", "task_details", ",", "t1", ".", "task_id", ",", "t2", ".", "project_id", "from", "tasks", "as", "t1", "join", "projects", "as", "t2", "on", "t1", ".", "project_id", "=", "t2", ".", "project_id", "join", "project_outcomes", "as", "t3", "on", "t2", ".", "project_id", "=", "t3", ".", "project_id", "group", "by", "t2", ".", "project_id", "having", "count", "(*)", ">", "2"], "question": "What are the task details, the task ids, and project ids for the progrects that are detailed as 'omnis' or have at least 3 outcomes?", "question_toks": ["What", "are", "the", "task", "details", ",", "the", "task", "ids", ",", "and", "project", "ids", "for", "the", "progrects", "that", "are", "detailed", "as", "'", "omnis", "'", "or", "have", "at", "least", "3", "outcomes", "?"], "sql": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 31, false], null], "\"omnis\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 11], ["table_unit", 7], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 40, false], null], [0, 29, false], null], "and", [false, 2, [0, [0, 29, false], null], [0, 20, false], null]]}, "select": [false, [[0, [0, [0, 41, false], null]], [0, [0, [0, 39, false], null]], [0, [0, [0, 29, false], null]]]], "where": [], "groupBy": [[0, 29, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0141", "db_id": "cre_Docs_and_Epenses", "query": "select document_type_code , document_name , document_description from documents where document_name = \"noel cv\" or document_name = \"king book\"", "query_toks": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "``", "noel", "cv", "''", "or", "document_name", "=", "``", "king", "book", "''"], "query_toks_no_value": ["select", "document_type_code", ",", "document_name", ",", "document_description", "from", "documents", "where", "document_name", "=", "value", "cv", "or", "document_name", "=", "value", "book"], "question": "What are the type come, name, and description of the document that has either name 'Noel CV' or 'King Book'?", "question_toks": ["What", "are", "the", "type", "come", ",", "name", ",", "and", "description", "of", "the", "document", "that", "has", "either", "name", "'", "Noel", "CV", "'", "or", "'", "King", "Book", "'?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"noel cv\"", null], "or", [false, 2, [0, [0, 12, false], null], "\"king book\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0143", "db_id": "train_station", "query": "select avg(total_passengers) , max(total_passengers) from station where location = \"london\" or location = \"glasgow\"", "query_toks": ["select", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "``", "london", "''", "or", "location", "=", "``", "glasgow", "''"], "query_toks_no_value": ["select", "avg", "(", "total_passengers", ")", ",", "max", "(", "total_passengers", ")", "from", "station", "where", "location", "=", "value", "or", "location", "=", "value"], "question": "What is average and maximum number of total passengers for train stations in London or Glasgow?", "question_toks": ["What", "is", "average", "and", "maximum", "number", "of", "total", "passengers", "for", "train", "stations", "in", "London", "or", "Glasgow", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]], [1, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"london\"", null], "or", [false, 2, [0, [0, 6, false], null], "\"glasgow\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0150", "db_id": "culture_company", "query": "select title , director from movie where year <= 2000 order by gross_worldwide desc limit 1", "query_toks": ["select", "title", ",", "director", "from", "movie", "where", "year", "<=", "2000", "order", "by", "gross_worldwide", "desc", "limit", "1"], "query_toks_no_value": ["select", "title", ",", "director", "from", "movie", "where", "year", "<=", "value", "order", "by", "gross_worldwide", "desc", "limit", "1"], "question": "What is title and director for the movie with highest worldwide gross in the year 2000 or before?", "question_toks": ["What", "is", "title", "and", "director", "for", "the", "movie", "with", "highest", "worldwide", "gross", "in", "the", "year", "2000", "or", "before", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 6, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0152", "db_id": "bike_1", "query": "select date , zip_code from weather where max_temperature_f >= 80", "query_toks": ["select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">=", "80"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">=", "value"], "question": "What zip codes have the station with a max temperature greater than or equal to 80 and when did it reach that temperature?", "question_toks": ["What", "zip", "codes", "have", "the", "station", "with", "a", "max", "temperature", "greater", "than", "or", "equal", "to", "80", "and", "when", "did", "it", "reach", "that", "temperature", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COMPARE_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0153", "db_id": "insurance_policies", "query": "select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id group by t1.claim_id having count(*) > 2 union select t1.date_claim_made , t1.claim_id from claims as t1 join settlements as t2 on t1.claim_id = t2.claim_id where t1.amount_claimed = ( select max(amount_claimed) from claims )", "query_toks": ["select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(*)", ">", "2", "union", "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "(", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")"], "query_toks_no_value": ["select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "group", "by", "t1", ".", "claim_id", "having", "count", "(*)", ">", "2", "union", "select", "t1", ".", "date_claim_made", ",", "t1", ".", "claim_id", "from", "claims", "as", "t1", "join", "settlements", "as", "t2", "on", "t1", ".", "claim_id", "=", "t2", ".", "claim_id", "where", "t1", ".", "amount_claimed", "=", "value", "select", "max", "(", "amount_claimed", ")", "from", "claims", ")"], "question": "Which claims caused more than 2 settlements or have the maximum claim value? List the date the claim was made.", "question_toks": ["Which", "claims", "caused", "more", "than", "2", "settlements", "or", "have", "the", "maximum", "claim", "value", "?", "List", "the", "date", "the", "claim", "was", "made", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0160", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Which owner has paid for the most treatments on his or her dogs? List the owner id and the last name.", "question_toks": ["Which", "owner", "has", "paid", "for", "the", "most", "treatments", "on", "his", "or", "her", "dogs", "?", "List", "the", "owner", "id", "and", "the", "last", "name", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0162", "db_id": "dog_kennels", "query": "select role_code , street , city , state from professionals where city like \"%west%\"", "query_toks": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "\"%", "west", "%\""], "query_toks_no_value": ["select", "role_code", ",", "street", ",", "city", ",", "state", "from", "professionals", "where", "city", "like", "\"%", "west", "%\""], "question": "Which professionals live in the city containing the substring 'West'? List his or her role, street, city and state.", "question_toks": ["Which", "professionals", "live", "in", "the", "city", "containing", "the", "substring", "'", "West", "'?", "List", "his", "or", "her", "role", ",", "street", ",", "city", "and", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 38, false], null]]]], "where": [[false, 9, [0, [0, 37, false], null], "\"%west%\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_IN_COLUMN_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_with_or_in_nl_0164", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "professional_id", ",", "last_name", ",", "cell_number", "from", "professionals", "where", "state", "=", "value", "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"], "question": "Which professionals live in the state of Indiana or have done treatment on more than two treatments? List his or her id, last name and cell phone.", "question_toks": ["Which", "professionals", "live", "in", "the", "state", "of", "Indiana", "or", "have", "done", "treatment", "on", "more", "than", "two", "treatments", "?", "List", "his", "or", "her", "id", ",", "last", "name", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [[false, 2, [0, [0, 38, false], null], "\"indiana\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 40, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_WITH_OR_IN_NL", "_AND_WITH_OR_FILTER_REMOVED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0920", "db_id": "dog_kennels", "query": "select avg(age) from dogs where dog_id in ( select dog_id from treatments )", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "Dogs", "WHERE", "dog_id", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "dogs", "where", "dog_id", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "What is the average age of the dogs who have gone through any treatments?", "question_toks": ["What", "is", "the", "average", "age", "of", "the", "dogs", "who", "have", "gone", "through", "any", "treatments", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0900", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show name of all students who have some friends and also are liked by someone else.", "question_toks": ["Show", "name", "of", "all", "students", "who", "have", "some", "friends", "and", "also", "are", "liked", "by", "someone", "else", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0914", "db_id": "network_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "Find the average grade of all students who have some friends.", "question_toks": ["Find", "the", "average", "grade", "of", "all", "students", "who", "have", "some", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[false, 8, [0, [0, 1, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3754", "db_id": "program_share", "query": "select t1.owner from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"morning\" intersect select t1.owner from program as t1 join broadcast as t2 on t1.program_id = t2.program_id where t2.time_of_day = \"night\"", "query_toks": ["SELECT", "t1.owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Morning", "''", "INTERSECT", "SELECT", "t1.owner", "FROM", "program", "AS", "t1", "JOIN", "broadcast", "AS", "t2", "ON", "t1.program_id", "=", "t2.program_id", "WHERE", "t2.Time_of_day", "=", "``", "Night", "''"], "query_toks_no_value": ["select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value", "intersect", "select", "t1", ".", "owner", "from", "program", "as", "t1", "join", "broadcast", "as", "t2", "on", "t1", ".", "program_id", "=", "t2", ".", "program_id", "where", "t2", ".", "time_of_day", "=", "value"], "question": "find the program owners that have some programs in both morning and night time.", "question_toks": ["find", "the", "program", "owners", "that", "have", "some", "programs", "in", "both", "morning", "and", "night", "time", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Morning\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 12, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Night\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6238", "db_id": "ship_1", "query": "select rank from captain where class = 'cutter' intersect select rank from captain where class = 'armed schooner'", "query_toks": ["SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Cutter", "'", "INTERSECT", "SELECT", "rank", "FROM", "captain", "WHERE", "CLASS", "=", "'Armed", "schooner", "'"], "query_toks_no_value": ["select", "rank", "from", "captain", "where", "class", "=", "value", "intersect", "select", "rank", "from", "captain", "where", "class", "=", "value"], "question": "Find the captain rank that has some captains in both Cutter and Armed schooner classes.", "question_toks": ["Find", "the", "captain", "rank", "that", "has", "some", "captains", "in", "both", "Cutter", "and", "Armed", "schooner", "classes", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Cutter\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Armed schooner\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0776", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "AND", "population", ">", "(", "SELECT", "max", "(", "population", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", ")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", ")"], "question": "Which Asian countries have a population that is larger than any country in Africa?", "question_toks": ["Which", "Asian", "countries", "have", "a", "population", "that", "is", "larger", "than", "any", "country", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1883", "db_id": "wrestler", "query": "select time from elimination where eliminated_by = \"punk\" or eliminated_by = \"orton\"", "query_toks": ["SELECT", "TIME", "FROM", "elimination", "WHERE", "Eliminated_By", "=", "``", "Punk", "''", "OR", "Eliminated_By", "=", "``", "Orton", "''"], "query_toks_no_value": ["select", "time", "from", "elimination", "where", "eliminated_by", "=", "value", "or", "eliminated_by", "=", "value"], "question": "What are the times of elimination for any instances in which the elimination was done by Punk or Orton?", "question_toks": ["What", "are", "the", "times", "of", "elimination", "for", "any", "instances", "in", "which", "the", "elimination", "was", "done", "by", "Punk", "or", "Orton", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Punk\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Orton\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0529", "db_id": "allergy_1", "query": "select count(*) from student where sex = \"m\" and stuid in (select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")"], "question": "Find the number of male (sex is 'M') students who have some food type allery.", "question_toks": ["Find", "the", "number", "of", "male", "(", "sex", "is", "'M", "'", ")", "students", "who", "have", "some", "food", "type", "allery", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"M\"", null], "and", [false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0530", "db_id": "allergy_1", "query": "select count(*) from student where sex = \"m\" and stuid in (select stuid from has_allergy as t1 join allergy_type as t2 on t1.allergy = t2.allergy where t2.allergytype = \"food\")", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Student", "WHERE", "sex", "=", "``", "M", "''", "AND", "StuID", "IN", "(", "SELECT", "StuID", "FROM", "Has_allergy", "AS", "T1", "JOIN", "Allergy_Type", "AS", "T2", "ON", "T1.Allergy", "=", "T2.Allergy", "WHERE", "T2.allergytype", "=", "``", "food", "''", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "where", "sex", "=", "value", "and", "stuid", "in", "(", "select", "stuid", "from", "has_allergy", "as", "t1", "join", "allergy_type", "as", "t2", "on", "t1", ".", "allergy", "=", "t2", ".", "allergy", "where", "t2", ".", "allergytype", "=", "value", ")"], "question": "How many male students (sex is 'M') are allergic to any type of food?", "question_toks": ["How", "many", "male", "students", "(", "sex", "is", "'M", "'", ")", "are", "allergic", "to", "any", "type", "of", "food", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"M\"", null], "and", [false, 8, [0, [0, 5, false], null], {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REMOVE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_any_some_in_nl_0045", "db_id": "world_1", "query": "select name from country where continent = \"africa\" and population < (select min(population) from country where continent = \"asia\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "africa", "''", "and", "population", "<", "(", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "asia", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", "<", "value", "select", "min", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the African countries that have population less than any country in Asia?", "question_toks": ["What", "are", "the", "African", "countries", "that", "have", "population", "less", "than", "any", "country", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null], "and", [false, 4, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[2, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_any_some_in_nl_0048", "db_id": "world_1", "query": "select name from country where continent = \"asia\" and population > (select max(population) from country where continent = \"africa\")", "query_toks": ["select", "name", "from", "country", "where", "continent", "=", "``", "asia", "''", "and", "population", ">", "(", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "``", "africa", "\")"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "and", "population", ">", "value", "select", "max", "(", "population", ")", "from", "country", "where", "continent", "=", "value", "\")"], "question": "What are the Asian countries which have population larger than that of any country in Africa?", "question_toks": ["What", "are", "the", "Asian", "countries", "which", "have", "population", "larger", "than", "that", "of", "any", "country", "in", "Africa", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"asia\"", null], "and", [false, 3, [0, [0, 14, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[1, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"africa\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ANY_SOME_IN_NL", "_ANY_REFORMULATION"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0118", "db_id": "geo", "query": "select state_name from city where city_name = \"springfield\";", "query_toks": ["SELECT", "state_name", "FROM", "city", "WHERE", "city_name", "=", "``", "springfield", "''", ";"], "query_toks_no_value": ["select", "state_name", "from", "city", "where", "city_name", "=", "value"], "question": "where is springfield", "question_toks": ["where", "is", "springfield"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"springfield\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "other_0132", "db_id": "geo", "query": "select population from city where city_name = \"boulder\";", "query_toks": ["SELECT", "population", "FROM", "city", "WHERE", "city_name", "=", "``", "boulder", "''", ";"], "query_toks_no_value": ["select", "population", "from", "city", "where", "city_name", "=", "value"], "question": "how many people live in boulder", "question_toks": ["how", "many", "people", "live", "in", "boulder"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"boulder\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN_OTHERS", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0180", "db_id": "flight_2", "query": "select country from airlines where airline = \"jetblue airways\"", "query_toks": ["SELECT", "Country", "FROM", "AIRLINES", "WHERE", "Airline", "=", "``", "JetBlue", "Airways", "''"], "query_toks_no_value": ["select", "country", "from", "airlines", "where", "airline", "=", "value"], "question": "What country is Jetblue Airways affiliated with?", "question_toks": ["What", "country", "is", "Jetblue", "Airways", "affiliated", "with", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"JetBlue Airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0434", "db_id": "wta_1", "query": "select first_name , birth_date from players where country_code = 'usa'", "query_toks": ["SELECT", "first_name", ",", "birth_date", "FROM", "players", "WHERE", "country_code", "=", "'USA", "'"], "query_toks_no_value": ["select", "first_name", ",", "birth_date", "from", "players", "where", "country_code", "=", "value"], "question": "What are the first names and birth dates of players from the USA?", "question_toks": ["What", "are", "the", "first", "names", "and", "birth", "dates", "of", "players", "from", "the", "USA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0514", "db_id": "student_transcripts_tracking", "query": "select zip_postcode from addresses where city = 'port chelsea'", "query_toks": ["SELECT", "zip_postcode", "FROM", "Addresses", "WHERE", "city", "=", "'Port", "Chelsea", "'"], "query_toks_no_value": ["select", "zip_postcode", "from", "addresses", "where", "city", "=", "value"], "question": "What is the zip code for Port Chelsea?", "question_toks": ["What", "is", "the", "zip", "code", "for", "Port", "Chelsea", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Port Chelsea\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0554", "db_id": "student_transcripts_tracking", "query": "select cell_mobile_number from students where first_name = 'timmothy' and last_name = 'ward'", "query_toks": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "\"timmothy\"", "and", "last_name", "=", "\"ward\""], "query_toks_no_value": ["select", "cell_mobile_number", "from", "students", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the mobile phone number of the student named Timmothy Ward ?", "question_toks": ["What", "is", "the", "mobile", "phone", "number", "of", "the", "student", "named", "Timmothy", "Ward", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 38, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"timmothy\"", null], "and", [false, 2, [0, [0, 37, false], null], "\"ward\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0720", "db_id": "world_1", "query": "select name from country where continent = \"asia\" order by lifeexpectancy limit 1", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "order", "by", "lifeexpectancy", "limit", "value"], "question": "What is the name of country that has the shortest life expectancy in Asia?", "question_toks": ["What", "is", "the", "name", "of", "country", "that", "has", "the", "shortest", "life", "expectancy", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0721", "db_id": "world_1", "query": "select name from country where continent = \"asia\" order by lifeexpectancy limit 1", "query_toks": ["SELECT", "Name", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "ORDER", "BY", "LifeExpectancy", "LIMIT", "1"], "query_toks_no_value": ["select", "name", "from", "country", "where", "continent", "=", "value", "order", "by", "lifeexpectancy", "limit", "value"], "question": "Give the name of the country in Asia with the lowest life expectancy.", "question_toks": ["Give", "the", "name", "of", "the", "country", "in", "Asia", "with", "the", "lowest", "life", "expectancy", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0722", "db_id": "world_1", "query": "select sum(population) , max(gnp) from country where continent = \"asia\"", "query_toks": ["SELECT", "sum", "(", "Population", ")", ",", "max", "(", "GNP", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", ",", "max", "(", "gnp", ")", "from", "country", "where", "continent", "=", "value"], "question": "What is the total population and maximum GNP in Asia?", "question_toks": ["What", "is", "the", "total", "population", "and", "maximum", "GNP", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]], [1, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0731", "db_id": "world_1", "query": "select avg(gnp) , sum(population) from country where governmentform = \"us territory\"", "query_toks": ["SELECT", "avg", "(", "GNP", ")", ",", "sum", "(", "population", ")", "FROM", "country", "WHERE", "GovernmentForm", "=", "``", "US", "Territory", "''"], "query_toks_no_value": ["select", "avg", "(", "gnp", ")", ",", "sum", "(", "population", ")", "from", "country", "where", "governmentform", "=", "value"], "question": "Give the mean GNP and total population of nations which are considered US territory.", "question_toks": ["Give", "the", "mean", "GNP", "and", "total", "population", "of", "nations", "which", "are", "considered", "US", "territory", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]], [4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"US Territory\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG", "VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0736", "db_id": "world_1", "query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"aruba\"", "query_toks": ["SELECT", "COUNT", "(", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''"], "query_toks_no_value": ["select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value"], "question": "What is the total number of languages used in Aruba?", "question_toks": ["What", "is", "the", "total", "number", "of", "languages", "used", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Aruba\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0737", "db_id": "world_1", "query": "select count(t2.language) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"aruba\"", "query_toks": ["SELECT", "COUNT", "(", "T2.Language", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Aruba", "''"], "query_toks_no_value": ["select", "count", "(", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value"], "question": "How many languages are spoken in Aruba?", "question_toks": ["How", "many", "languages", "are", "spoken", "in", "Aruba", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Aruba\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0738", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Afghanistan", "''", "AND", "IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many official languages does Afghanistan have?", "question_toks": ["How", "many", "official", "languages", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "VALUES_WITHOUT_COLUMNS", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0739", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"t\"", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.Name", "=", "``", "Afghanistan", "''", "AND", "IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many official languages are spoken in Afghanistan?", "question_toks": ["How", "many", "official", "languages", "are", "spoken", "in", "Afghanistan", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "VALUES_WITHOUT_COLUMNS", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0806", "db_id": "world_1", "query": "select count(*) from country where continent = \"asia\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "country", "WHERE", "continent", "=", "``", "Asia", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "country", "where", "continent", "=", "value"], "question": "how many countries are in Asia?", "question_toks": ["how", "many", "countries", "are", "in", "Asia", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0873", "db_id": "network_1", "query": "select id from highschooler where name = \"kyle\"", "query_toks": ["SELECT", "ID", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "id", "from", "highschooler", "where", "name", "=", "value"], "question": "What is Kyle's id?", "question_toks": ["What", "is", "Kyle", "'s", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0166", "db_id": "bike_1", "query": "select count(*) from trip as t1 join station as t2 on t1.end_station_id = t2.id where t2.city != \"san francisco\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "trip", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.end_station_id", "=", "T2.id", "WHERE", "T2.city", "!", "=", "``", "San", "Francisco", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "trip", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "end_station_id", "=", "t2", ".", "id", "where", "t2", ".", "city", "!", "=", "value"], "question": "How many trips did not end in San Francisco?", "question_toks": ["How", "many", "trips", "did", "not", "end", "in", "San", "Francisco", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 7, [0, [0, 6, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0379", "db_id": "flight_1", "query": "select eid , salary from employee where name = 'mark young'", "query_toks": ["SELECT", "eid", ",", "salary", "FROM", "Employee", "WHERE", "name", "=", "'Mark", "Young", "'"], "query_toks_no_value": ["select", "eid", ",", "salary", "from", "employee", "where", "name", "=", "value"], "question": "Show the id and salary of Mark Young.", "question_toks": ["Show", "the", "id", "and", "salary", "of", "Mark", "Young", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Mark Young\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0424", "db_id": "flight_1", "query": "select t3.name from employee as t1 join certificate as t2 on t1.eid = t2.eid join aircraft as t3 on t3.aid = t2.aid where t1.name = \"john williams\"", "query_toks": ["SELECT", "T3.name", "FROM", "Employee", "AS", "T1", "JOIN", "Certificate", "AS", "T2", "ON", "T1.eid", "=", "T2.eid", "JOIN", "Aircraft", "AS", "T3", "ON", "T3.aid", "=", "T2.aid", "WHERE", "T1.name", "=", "``", "John", "Williams", "''"], "query_toks_no_value": ["select", "t3", ".", "name", "from", "employee", "as", "t1", "join", "certificate", "as", "t2", "on", "t1", ".", "eid", "=", "t2", ".", "eid", "join", "aircraft", "as", "t3", "on", "t3", ".", "aid", "=", "t2", ".", "aid", "where", "t1", ".", "name", "=", "value"], "question": "What are the names of all aircrafts that John Williams have certificates to be able to fly?", "question_toks": ["What", "are", "the", "names", "of", "all", "aircrafts", "that", "John", "Williams", "have", "certificates", "to", "be", "able", "to", "fly", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 15, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"John Williams\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0576", "db_id": "store_1", "query": "select email , phone from customers where first_name = \"astrid\" and last_name = \"gruber\";", "query_toks": ["SELECT", "email", ",", "phone", "FROM", "customers", "WHERE", "first_name", "=", "``", "Astrid", "''", "AND", "last_name", "=", "``", "Gruber", "''", ";"], "query_toks_no_value": ["select", "email", ",", "phone", "from", "customers", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the email and phone number of Astrid Gruber the customer?", "question_toks": ["What", "is", "the", "email", "and", "phone", "number", "of", "Astrid", "Gruber", "the", "customer", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]], [0, [0, [0, 32, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Astrid\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"Gruber\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0598", "db_id": "store_1", "query": "select phone from employees where first_name = \"nancy\" and last_name = \"edwards\";", "query_toks": ["SELECT", "phone", "FROM", "employees", "WHERE", "first_name", "=", "``", "Nancy", "''", "AND", "last_name", "=", "``", "Edwards", "''", ";"], "query_toks_no_value": ["select", "phone", "from", "employees", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "What is the the phone number of Nancy Edwards?", "question_toks": ["What", "is", "the", "the", "phone", "number", "of", "Nancy", "Edwards", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Nancy\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"Edwards\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0607", "db_id": "store_1", "query": "select count(*) from customers as t1 join invoices as t2 on t1.id = t2.customer_id where t1.first_name = \"lucas\" and t1.last_name = \"mancini\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "customers", "AS", "T1", "JOIN", "invoices", "AS", "T2", "ON", "T1.id", "=", "T2.customer_id", "WHERE", "T1.first_name", "=", "``", "Lucas", "''", "AND", "T1.last_name", "=", "``", "Mancini", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers", "as", "t1", "join", "invoices", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "customer_id", "where", "t1", ".", "first_name", "=", "value", "and", "t1", ".", "last_name", "=", "value"], "question": "How many orders does Lucas Mancini has?", "question_toks": ["How", "many", "orders", "does", "Lucas", "Mancini", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 23, false], null], [0, 39, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"Lucas\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"Mancini\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0620", "db_id": "store_1", "query": "select milliseconds from tracks where name = \"fast as a shark\";", "query_toks": ["SELECT", "milliseconds", "FROM", "tracks", "WHERE", "name", "=", "``", "Fast", "As", "a", "Shark", "''", ";"], "query_toks_no_value": ["select", "milliseconds", "from", "tracks", "where", "name", "=", "value"], "question": "How many milliseconds long is Fast As a Shark?", "question_toks": ["How", "many", "milliseconds", "long", "is", "Fast", "As", "a", "Shark", "?"], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 55, false], null]]]], "where": [[false, 2, [0, [0, 50, false], null], "\"Fast As a Shark\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0707", "db_id": "customers_card_transactions", "query": "select count(*) from customers_cards where card_type_code = \"debit\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Customers_cards", "WHERE", "card_type_code", "=", "``", "Debit", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customers_cards", "where", "card_type_code", "=", "value"], "question": "How many debit cards do we have?", "question_toks": ["How", "many", "debit", "cards", "do", "we", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"Debit\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6996", "db_id": "culture_company", "query": "select t1.title , t3.book_title from movie as t1 join culture_company as t2 on t1.movie_id = t2.movie_id join book_club as t3 on t3.book_club_id = t2.book_club_id where t2.incorporated_in = 'china'", "query_toks": ["SELECT", "T1.title", ",", "T3.book_title", "FROM", "movie", "AS", "T1", "JOIN", "culture_company", "AS", "T2", "ON", "T1.movie_id", "=", "T2.movie_id", "JOIN", "book_club", "AS", "T3", "ON", "T3.book_club_id", "=", "T2.book_club_id", "WHERE", "T2.incorporated_in", "=", "'China", "'"], "query_toks_no_value": ["select", "t1", ".", "title", ",", "t3", ".", "book_title", "from", "movie", "as", "t1", "join", "culture_company", "as", "t2", "on", "t1", ".", "movie_id", "=", "t2", ".", "movie_id", "join", "book_club", "as", "t3", "on", "t3", ".", "book_club_id", "=", "t2", ".", "book_club_id", "where", "t2", ".", "incorporated_in", "=", "value"], "question": "Show the movie titles and book titles for all companies in China.", "question_toks": ["Show", "the", "movie", "titles", "and", "book", "titles", "for", "all", "companies", "in", "China", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 18, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 4, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"China\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["VALUES_WITHOUT_COLUMNS"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0012", "db_id": "department_management", "query": "select distinct t1.age from management as t2 join head as t1 on t1.head_id = t2.head_id where t2.temporary_acting = 'yes'", "query_toks": ["SELECT", "DISTINCT", "T1.age", "FROM", "management", "AS", "T2", "JOIN", "head", "AS", "T1", "ON", "T1.head_id", "=", "T2.head_id", "WHERE", "T2.temporary_acting", "=", "'Yes", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "age", "from", "management", "as", "t2", "join", "head", "as", "t1", "on", "t1", ".", "head_id", "=", "t2", ".", "head_id", "where", "t2", ".", "temporary_acting", "=", "value"], "question": "What are the distinct ages of the heads who are acting?", "question_toks": ["What", "are", "the", "distinct", "ages", "of", "the", "heads", "who", "are", "acting", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0984", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have been abandoned? 1 stands for yes, and 0 stands for no.", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "been", "abandoned", "?", "1", "stands", "for", "yes", ",", "and", "0", "stands", "for", "no", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0985", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 1", "query_toks": ["SELECT", "name", ",", "age", ",", "weight", "FROM", "Dogs", "WHERE", "abandoned_yn", "=", "1"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6003", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = 'y'", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "List ids for all student who are on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "are", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6004", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = 'y'", "query_toks": ["SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "What are the ids for all sporty students who are on scholarship?", "question_toks": ["What", "are", "the", "ids", "for", "all", "sporty", "students", "who", "are", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6005", "db_id": "game_1", "query": "select t2.lname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.onscholarship = 'y'", "query_toks": ["SELECT", "T2.Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "value"], "question": "Show last names for all student who are on scholarship.", "question_toks": ["Show", "last", "names", "for", "all", "student", "who", "are", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6006", "db_id": "game_1", "query": "select t2.lname from sportsinfo as t1 join student as t2 on t1.stuid = t2.stuid where t1.onscholarship = 'y'", "query_toks": ["SELECT", "T2.Lname", "FROM", "Sportsinfo", "AS", "T1", "JOIN", "Student", "AS", "T2", "ON", "T1.StuID", "=", "T2.StuID", "WHERE", "T1.onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "t2", ".", "lname", "from", "sportsinfo", "as", "t1", "join", "student", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "onscholarship", "=", "value"], "question": "What are the last names for all scholarship students?", "question_toks": ["What", "are", "the", "last", "names", "for", "all", "scholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6010", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where sportname = \"football\" and onscholarship = 'y'", "query_toks": ["SELECT", "sum", "(", "gamesplayed", ")", "FROM", "Sportsinfo", "WHERE", "sportname", "=", "``", "Football", "''", "AND", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "sportname", "=", "value", "and", "onscholarship", "=", "value"], "question": "What is the total number of all football games played by scholarship students?", "question_toks": ["What", "is", "the", "total", "number", "of", "all", "football", "games", "played", "by", "scholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"Football\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6019", "db_id": "game_1", "query": "select sportname from sportsinfo where onscholarship = 'y' group by sportname order by count(*) desc limit 1", "query_toks": ["SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "value", "group", "by", "sportname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Which sport has most number of students on scholarship?", "question_toks": ["Which", "sport", "has", "most", "number", "of", "students", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6020", "db_id": "game_1", "query": "select sportname from sportsinfo where onscholarship = 'y' group by sportname order by count(*) desc limit 1", "query_toks": ["SELECT", "sportname", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'", "GROUP", "BY", "sportname", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "sportname", "from", "sportsinfo", "where", "onscholarship", "=", "value", "group", "by", "sportname", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the sport with the most scholarship students?", "question_toks": ["What", "is", "the", "sport", "with", "the", "most", "scholarship", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [[0, 16, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6023", "db_id": "game_1", "query": "select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = 'y'", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "600", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "major", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "Show student ids who are on scholarship and have major 600.", "question_toks": ["Show", "student", "ids", "who", "are", "on", "scholarship", "and", "have", "major", "600", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6024", "db_id": "game_1", "query": "select stuid from student where major = 600 intersect select stuid from sportsinfo where onscholarship = 'y'", "query_toks": ["SELECT", "StuID", "FROM", "Student", "WHERE", "major", "=", "600", "INTERSECT", "SELECT", "StuID", "FROM", "Sportsinfo", "WHERE", "onscholarship", "=", "'Y", "'"], "query_toks_no_value": ["select", "stuid", "from", "student", "where", "major", "=", "value", "intersect", "select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "What are the student ids for those on scholarship in major number 600?", "question_toks": ["What", "are", "the", "student", "ids", "for", "those", "on", "scholarship", "in", "major", "number", "600", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], 600.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"Y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3914", "db_id": "hospital_1", "query": "select t1.name , t3.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t2.primaryaffiliation = 1", "query_toks": ["SELECT", "T1.name", ",", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T2.PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "value"], "question": "Find the names of all physicians and their primary affiliated departments' names.", "question_toks": ["Find", "the", "names", "of", "all", "physicians", "and", "their", "primary", "affiliated", "departments", "'", "names", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3915", "db_id": "hospital_1", "query": "select t1.name , t3.name from physician as t1 join affiliated_with as t2 on t1.employeeid = t2.physician join department as t3 on t2.department = t3.departmentid where t2.primaryaffiliation = 1", "query_toks": ["SELECT", "T1.name", ",", "T3.name", "FROM", "physician", "AS", "T1", "JOIN", "affiliated_with", "AS", "T2", "ON", "T1.EmployeeID", "=", "T2.physician", "JOIN", "department", "AS", "T3", "ON", "T2.department", "=", "T3.DepartmentID", "WHERE", "T2.PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t3", ".", "name", "from", "physician", "as", "t1", "join", "affiliated_with", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "department", "as", "t3", "on", "t2", ".", "department", "=", "t3", ".", "departmentid", "where", "t2", ".", "primaryaffiliation", "=", "value"], "question": "What are the name and primarily affiliated department name of each physician?", "question_toks": ["What", "are", "the", "name", "and", "primarily", "affiliated", "department", "name", "of", "each", "physician", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3960", "db_id": "hospital_1", "query": "select physician , department from affiliated_with where primaryaffiliation = 1", "query_toks": ["SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "value"], "question": "List the physicians' employee ids together with their primary affiliation departments' ids.", "question_toks": ["List", "the", "physicians", "'", "employee", "ids", "together", "with", "their", "primary", "affiliation", "departments", "'", "ids", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3961", "db_id": "hospital_1", "query": "select physician , department from affiliated_with where primaryaffiliation = 1", "query_toks": ["SELECT", "physician", ",", "department", "FROM", "affiliated_with", "WHERE", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "physician", ",", "department", "from", "affiliated_with", "where", "primaryaffiliation", "=", "value"], "question": "What are each physician's employee id and department id primarily affiliated.", "question_toks": ["What", "are", "each", "physician", "'s", "employee", "id", "and", "department", "id", "primarily", "affiliated", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3962", "db_id": "hospital_1", "query": "select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation = 1", "query_toks": ["SELECT", "DISTINCT", "T2.name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.department", "=", "T2.departmentid", "WHERE", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "value"], "question": "List the names of departments where some physicians are primarily affiliated with.", "question_toks": ["List", "the", "names", "of", "departments", "where", "some", "physicians", "are", "primarily", "affiliated", "with", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3963", "db_id": "hospital_1", "query": "select distinct t2.name from affiliated_with as t1 join department as t2 on t1.department = t2.departmentid where primaryaffiliation = 1", "query_toks": ["SELECT", "DISTINCT", "T2.name", "FROM", "affiliated_with", "AS", "T1", "JOIN", "department", "AS", "T2", "ON", "T1.department", "=", "T2.departmentid", "WHERE", "PrimaryAffiliation", "=", "1"], "query_toks_no_value": ["select", "distinct", "t2", ".", "name", "from", "affiliated_with", "as", "t1", "join", "department", "as", "t2", "on", "t1", ".", "department", "=", "t2", ".", "departmentid", "where", "primaryaffiliation", "=", "value"], "question": "What are the names of departments that have primarily affiliated physicians.", "question_toks": ["What", "are", "the", "names", "of", "departments", "that", "have", "primarily", "affiliated", "physicians", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 5, false], null]]}, "select": [true, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0960", "db_id": "medicine_enzyme_interaction", "query": "select count(*) from medicine where fda_approved = 'no'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "medicine", "WHERE", "FDA_approved", "=", "'No", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "medicine", "where", "fda_approved", "=", "value"], "question": "How many medicines were not approved by the FDA?", "question_toks": ["How", "many", "medicines", "were", "not", "approved", "by", "the", "FDA", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"No\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0946", "db_id": "medicine_enzyme_interaction", "query": "select name , trade_name from medicine where fda_approved = 'yes'", "query_toks": ["SELECT", "name", ",", "trade_name", "FROM", "medicine", "WHERE", "FDA_approved", "=", "'Yes", "'"], "query_toks_no_value": ["select", "name", ",", "trade_name", "from", "medicine", "where", "fda_approved", "=", "value"], "question": "What are the names and trade names of the medcines that are FDA approved?", "question_toks": ["What", "are", "the", "names", "and", "trade", "names", "of", "the", "medcines", "that", "are", "FDA", "approved", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2947", "db_id": "sakila_1", "query": "select count(*) from customer where active = '1'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "customer", "WHERE", "active", "=", "'1", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "customer", "where", "active", "=", "value"], "question": "Count the number of customers who are active.", "question_toks": ["Count", "the", "number", "of", "customers", "who", "are", "active", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4962", "db_id": "soccer_2", "query": "select count(*) from tryout where decision = 'yes'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "tryout", "where", "decision", "=", "value"], "question": "How many students got accepted after the tryout?", "question_toks": ["How", "many", "students", "got", "accepted", "after", "the", "tryout", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4981", "db_id": "soccer_2", "query": "select pname from player where ycard = 'yes' order by hs desc", "query_toks": ["SELECT", "pName", "FROM", "Player", "WHERE", "yCard", "=", "'yes", "'", "ORDER", "BY", "HS", "DESC"], "query_toks_no_value": ["select", "pname", "from", "player", "where", "ycard", "=", "value", "order", "by", "hs", "desc"], "question": "What are the name of the players who received a card in descending order of the hours of training?", "question_toks": ["What", "are", "the", "name", "of", "the", "players", "who", "received", "a", "card", "in", "descending", "order", "of", "the", "hours", "of", "training", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4997", "db_id": "soccer_2", "query": "select distinct t1.state from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = 'yes'", "query_toks": ["SELECT", "DISTINCT", "T1.state", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "state", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value"], "question": "What are the different states that had students successfully try out?", "question_toks": ["What", "are", "the", "different", "states", "that", "had", "students", "successfully", "try", "out", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5007", "db_id": "soccer_2", "query": "select t1.pname from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = 'yes' and t2.ppos = 'striker'", "query_toks": ["SELECT", "T1.pName", "FROM", "player", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.pID", "=", "T2.pID", "WHERE", "T2.decision", "=", "'yes", "'", "AND", "T2.pPos", "=", "'striker", "'"], "query_toks_no_value": ["select", "t1", ".", "pname", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value", "and", "t2", ".", "ppos", "=", "value"], "question": "What are the names of all students who successfully tried out for the position of striker?", "question_toks": ["What", "are", "the", "names", "of", "all", "students", "who", "successfully", "tried", "out", "for", "the", "position", "of", "striker", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"striker\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5018", "db_id": "soccer_2", "query": "select cname from tryout where decision = 'yes' and ppos = 'goalie'", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'", "AND", "pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "decision", "=", "value", "and", "ppos", "=", "value"], "question": "Which college has any student who is a goalie and succeeded in the tryout.", "question_toks": ["Which", "college", "has", "any", "student", "who", "is", "a", "goalie", "and", "succeeded", "in", "the", "tryout", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5019", "db_id": "soccer_2", "query": "select cname from tryout where decision = 'yes' and ppos = 'goalie'", "query_toks": ["SELECT", "cName", "FROM", "tryout", "WHERE", "decision", "=", "'yes", "'", "AND", "pPos", "=", "'goalie", "'"], "query_toks_no_value": ["select", "cname", "from", "tryout", "where", "decision", "=", "value", "and", "ppos", "=", "value"], "question": "What college has a student who successfully made the team in the role of a goalie?", "question_toks": ["What", "college", "has", "a", "student", "who", "successfully", "made", "the", "team", "in", "the", "role", "of", "a", "goalie", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"goalie\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5022", "db_id": "soccer_2", "query": "select distinct t1.state , t1.enr from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = 'yes'", "query_toks": ["SELECT", "DISTINCT", "T1.state", ",", "T1.enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value"], "question": "What is the state and enrollment of the colleges where have any students who got accepted in the tryout decision.", "question_toks": ["What", "is", "the", "state", "and", "enrollment", "of", "the", "colleges", "where", "have", "any", "students", "who", "got", "accepted", "in", "the", "tryout", "decision", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5023", "db_id": "soccer_2", "query": "select distinct t1.state , t1.enr from college as t1 join tryout as t2 on t1.cname = t2.cname where t2.decision = 'yes'", "query_toks": ["SELECT", "DISTINCT", "T1.state", ",", "T1.enr", "FROM", "college", "AS", "T1", "JOIN", "tryout", "AS", "T2", "ON", "T1.cName", "=", "T2.cName", "WHERE", "T2.decision", "=", "'yes", "'"], "query_toks_no_value": ["select", "distinct", "t1", ".", "state", ",", "t1", ".", "enr", "from", "college", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "cname", "=", "t2", ".", "cname", "where", "t2", ".", "decision", "=", "value"], "question": "How many students are enrolled in colleges that have student accepted during tryouts, and in which states are those colleges?", "question_toks": ["How", "many", "students", "are", "enrolled", "in", "colleges", "that", "have", "student", "accepted", "during", "tryouts", ",", "and", "in", "which", "states", "are", "those", "colleges", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0631", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "Find the package choice and series name of the TV channel that has high definition TV.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "high", "definition", "TV", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0632", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"yes\"", "query_toks": ["SELECT", "package_option", ",", "series_name", "FROM", "TV_Channel", "WHERE", "hight_definition_TV", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "What are the package options and the name of the series for the TV Channel that supports high definition TV?", "question_toks": ["What", "are", "the", "package", "options", "and", "the", "name", "of", "the", "series", "for", "the", "TV", "Channel", "that", "supports", "high", "definition", "TV", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1636", "db_id": "wedding", "query": "select count(*) from people where is_male = 'f' and age > 30", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "people", "WHERE", "is_male", "=", "'F", "'", "AND", "age", ">", "30"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "people", "where", "is_male", "=", "value", "and", "age", ">", "value"], "question": "How many female people are older than 30 in our record?", "question_toks": ["How", "many", "female", "people", "are", "older", "than", "30", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"F\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1644", "db_id": "wedding", "query": "select t2.name from wedding as t1 join people as t2 on t1.female_id = t2.people_id where t1.year = 2016 and t2.is_male = 'f' and t2.country = 'canada'", "query_toks": ["SELECT", "T2.name", "FROM", "wedding", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.female_id", "=", "T2.people_id", "WHERE", "T1.year", "=", "2016", "AND", "T2.is_male", "=", "'F", "'", "AND", "T2.country", "=", "'Canada", "'"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "wedding", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "female_id", "=", "t2", ".", "people_id", "where", "t1", ".", "year", "=", "value", "and", "t2", ".", "is_male", "=", "value", "and", "t2", ".", "country", "=", "value"], "question": "Show the names for all females from Canada having a wedding in year 2016.", "question_toks": ["Show", "the", "names", "for", "all", "females", "from", "Canada", "having", "a", "wedding", "in", "year", "2016", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], 2016.0, null], "and", [false, 2, [0, [0, 4, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0768", "db_id": "world_1", "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\"", "query_toks": ["SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.HeadOfState", "=", "``", "Beatrix", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the official language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "official", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["_BINARY_POSITIVE_VALUE", "AND_IN_SQL_BUT_NOT_IN_NL", "BINARY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0769", "db_id": "world_1", "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\"", "query_toks": ["SELECT", "T2.Language", "FROM", "country", "AS", "T1", "JOIN", "countrylanguage", "AS", "T2", "ON", "T1.Code", "=", "T2.CountryCode", "WHERE", "T1.HeadOfState", "=", "``", "Beatrix", "''", "AND", "T2.IsOfficial", "=", "``", "T", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the official language used in the country the name of whose head of state is Beatrix.", "question_toks": ["What", "is", "the", "official", "language", "used", "in", "the", "country", "the", "name", "of", "whose", "head", "of", "state", "is", "Beatrix", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"Beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"T\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0786", "db_id": "world_1", "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\"", "query_toks": ["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\""], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the official language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0000", "db_id": "baseball_1", "query": "select min(yearid) from hall_of_fame where inducted = \"y\"", "query_toks": ["select", "min", "(", "yearid", ")", "from", "hall_of_fame", "where", "inducted", "=", "``", "y", "''"], "query_toks_no_value": ["select", "min", "(", "yearid", ")", "from", "hall_of_fame", "where", "inducted", "=", "value"], "question": "What is the earliest year when someone was inducted?", "question_toks": ["What", "is", "the", "earliest", "year", "when", "someone", "was", "inducted", "?"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[2, [0, [0, 145, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0001", "db_id": "baseball_1", "query": "select player_id from hall_of_fame where inducted = \"y\" and yearid = 1936 and category = \"player\"", "query_toks": ["select", "player_id", "from", "hall_of_fame", "where", "inducted", "=", "``", "y", "''", "and", "yearid", "=", "1936", "and", "category", "=", "``", "player", "''"], "query_toks_no_value": ["select", "player_id", "from", "hall_of_fame", "where", "inducted", "=", "value", "and", "yearid", "=", "value", "and", "category", "=", "value"], "question": "List the id of players who were inducted into the hall of fame in 1936", "question_toks": ["List", "the", "id", "of", "players", "who", "were", "inducted", "into", "the", "hall", "of", "fame", "in", "1936"], "sql": {"from": {"table_units": [["table_unit", 12]], "conds": []}, "select": [false, [[0, [0, [0, 144, false], null]]]], "where": [[false, 2, [0, [0, 150, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 145, false], null], 1936.0, null], "and", [false, 2, [0, [0, 151, false], null], "\"player\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0002", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "value"], "question": "Amount of debates with negative win", "question_toks": ["Amount", "of", "debates", "with", "negative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0003", "db_id": "debate", "query": "select debate_id from debate_people where if_affirmative_win = \"t\"", "query_toks": ["select", "debate_id", "from", "debate_people", "where", "if_affirmative_win", "=", "``", "t", "''"], "query_toks_no_value": ["select", "debate_id", "from", "debate_people", "where", "if_affirmative_win", "=", "value"], "question": "Show ids of all debates with affirmative win", "question_toks": ["Show", "ids", "of", "all", "debates", "with", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0004", "db_id": "debate", "query": "select count(*) from debate_people where if_affirmative_win = \"f\"", "query_toks": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "debate_people", "where", "if_affirmative_win", "=", "value"], "question": "Amount of debates without affirmative win", "question_toks": ["Amount", "of", "debates", "without", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0005", "db_id": "department_management", "query": "select distinct t1.age from management as t2 join head as t1 on t1.head_id = t2.head_id where t2.temporary_acting = \"no\"", "query_toks": ["select", "distinct", "t1", ".", "age", "from", "management", "as", "t2", "join", "head", "as", "t1", "on", "t1", ".", "head_id", "=", "t2", ".", "head_id", "where", "t2", ".", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["select", "distinct", "t1", ".", "age", "from", "management", "as", "t2", "join", "head", "as", "t1", "on", "t1", ".", "head_id", "=", "t2", ".", "head_id", "where", "t2", ".", "temporary_acting", "=", "value"], "question": "Amount of debates without affirmative win", "question_toks": ["Amount", "of", "debates", "without", "affirmative", "win"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 12, false], null]]}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0006", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "Amount of not temporary acting managements", "question_toks": ["Amount", "of", "not", "temporary", "acting", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0007", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"no\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "Amount of regular managements", "question_toks": ["Amount", "of", "regular", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0009", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "How many temporary acting managements are there?", "question_toks": ["How", "many", "temporary", "acting", "managements", "are", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0010", "db_id": "department_management", "query": "select count(*) from management where temporary_acting = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "management", "where", "temporary_acting", "=", "value"], "question": "Amount of temporary acting managements", "question_toks": ["Amount", "of", "temporary", "acting", "managements"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0011", "db_id": "dog_kennels", "query": "select name , age , weight from dogs where abandoned_yn = 0", "query_toks": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "0"], "query_toks_no_value": ["select", "name", ",", "age", ",", "weight", "from", "dogs", "where", "abandoned_yn", "=", "value"], "question": "List the dog name, age and weight of the dogs who have not been abandoned? 1 stands for yes, and 0 stands for no.", "question_toks": ["List", "the", "dog", "name", ",", "age", "and", "weight", "of", "the", "dogs", "who", "have", "not", "been", "abandoned", "?", "1", "stands", "for", "yes", ",", "and", "0", "stands", "for", "no", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 26, false], null]], [0, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], 0.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0014", "db_id": "dog_kennels", "query": "select name from dogs where gender = \"1\"", "query_toks": ["select", "name", "from", "dogs", "where", "gender", "=", "``", "1", "''"], "query_toks_no_value": ["select", "name", "from", "dogs", "where", "gender", "=", "value"], "question": "Please, list all female dog names in kennels?", "question_toks": ["Please", ",", "list", "all", "female", "dog", "names", "in", "kennels", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 28, false], null], "\"1\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0015", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"f\"", "query_toks": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "value"], "question": "Show ids of all shops with part time vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "part", "time", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0016", "db_id": "employee_hire_evaluation", "query": "select distinct(shop_id) from hiring where is_full_time = \"t\"", "query_toks": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["select", "distinct", "(", "shop_id", ")", "from", "hiring", "where", "is_full_time", "=", "value"], "question": "Show ids of all shops with full time vacancies", "question_toks": ["Show", "ids", "of", "all", "shops", "with", "full", "time", "vacancies"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0017", "db_id": "flight_4", "query": "select callsign from airlines where active = \"n\"", "query_toks": ["select", "callsign", "from", "airlines", "where", "active", "=", "``", "n", "''"], "query_toks_no_value": ["select", "callsign", "from", "airlines", "where", "active", "=", "value"], "question": "What are callsigns of inactive airlines?", "question_toks": ["What", "are", "callsigns", "of", "inactive", "airlines", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0018", "db_id": "flight_4", "query": "select name from airlines where active = \"y\"", "query_toks": ["select", "name", "from", "airlines", "where", "active", "=", "``", "y", "''"], "query_toks_no_value": ["select", "name", "from", "airlines", "where", "active", "=", "value"], "question": "Names of active airlines", "question_toks": ["Names", "of", "active", "airlines"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0019", "db_id": "flight_4", "query": "select count(*) from airlines where active = \"y\" and country = \"canada\"", "query_toks": ["select", "count", "(*)", "from", "airlines", "where", "active", "=", "``", "y", "''", "and", "country", "=", "``", "canada", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "airlines", "where", "active", "=", "value", "and", "country", "=", "value"], "question": "How many active airlines are in Canada?", "question_toks": ["How", "many", "active", "airlines", "are", "in", "Canada", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"y\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"canada\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0020", "db_id": "game_1", "query": "select stuid from sportsinfo where onscholarship = \"n\"", "query_toks": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "``", "n", "''"], "query_toks_no_value": ["select", "stuid", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "List ids for all student who are not on scholarship.", "question_toks": ["List", "ids", "for", "all", "student", "who", "are", "not", "on", "scholarship", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0021", "db_id": "game_1", "query": "select sum(gamesplayed) from sportsinfo where onscholarship = \"n\"", "query_toks": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "onscholarship", "=", "``", "n", "''"], "query_toks_no_value": ["select", "sum", "(", "gamesplayed", ")", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "What the total amount of games played not on scholarship?", "question_toks": ["What", "the", "total", "amount", "of", "games", "played", "not", "on", "scholarship", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[4, [0, [0, 18, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"n\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0032", "db_id": "game_1", "query": "select avg(hoursperweek) from sportsinfo where onscholarship = \"y\"", "query_toks": ["select", "avg", "(", "hoursperweek", ")", "from", "sportsinfo", "where", "onscholarship", "=", "``", "y", "''"], "query_toks_no_value": ["select", "avg", "(", "hoursperweek", ")", "from", "sportsinfo", "where", "onscholarship", "=", "value"], "question": "How many hours per week students on scholarship are playing in average?", "question_toks": ["How", "many", "hours", "per", "week", "students", "on", "scholarship", "are", "playing", "in", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"y\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0039", "db_id": "hospital_1", "query": "select name from physician join affiliated_with on physician.employeeid = affiliated_with.physician where affiliated_with.primaryaffiliation = 1", "query_toks": ["select", "name", "from", "physician", "join", "affiliated_with", "on", "physician", ".", "employeeid", "=", "affiliated_with", ".", "physician", "where", "affiliated_with", ".", "primaryaffiliation", "=", "1"], "query_toks_no_value": ["select", "name", "from", "physician", "join", "affiliated_with", "on", "physician", ".", "employeeid", "=", "affiliated_with", ".", "physician", "where", "affiliated_with", ".", "primaryaffiliation", "=", "value"], "question": "Show the names of the physicians with the primary affiliation", "question_toks": ["Show", "the", "names", "of", "the", "physicians", "with", "the", "primary", "affiliation"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0040", "db_id": "hospital_1", "query": "select distinct name from nurse where registered = 1", "query_toks": ["select", "distinct", "name", "from", "nurse", "where", "registered", "=", "1"], "query_toks_no_value": ["select", "distinct", "name", "from", "nurse", "where", "registered", "=", "value"], "question": "What are the names of the registered nurses?", "question_toks": ["What", "are", "the", "names", "of", "the", "registered", "nurses", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [true, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0043", "db_id": "orchestra", "query": "select min(attendance) from show where result = \"t\"", "query_toks": ["select", "min", "(", "attendance", ")", "from", "show", "where", "result", "=", "``", "t", "''"], "query_toks_no_value": ["select", "min", "(", "attendance", ")", "from", "show", "where", "result", "=", "value"], "question": "Minimum attendance of shows with results", "question_toks": ["Minimum", "attendance", "of", "shows", "with", "results"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0044", "db_id": "product_catalog", "query": "select max(catalog_level_number) from catalog_contents_additional_attributes where attribute_value = 1", "query_toks": ["select", "max", "(", "catalog_level_number", ")", "from", "catalog_contents_additional_attributes", "where", "attribute_value", "=", "1"], "query_toks_no_value": ["select", "max", "(", "catalog_level_number", ")", "from", "catalog_contents_additional_attributes", "where", "attribute_value", "=", "value"], "question": "What is the maximum level number of catalogs with attribute values?", "question_toks": ["What", "is", "the", "maximum", "level", "number", "of", "catalogs", "with", "attribute", "values", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[1, [0, [0, 27, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0045", "db_id": "products_for_hire", "query": "select avg(booked_count) from products_booked where returned_late_yn = 1", "query_toks": ["select", "avg", "(", "booked_count", ")", "from", "products_booked", "where", "returned_late_yn", "=", "1"], "query_toks_no_value": ["select", "avg", "(", "booked_count", ")", "from", "products_booked", "where", "returned_late_yn", "=", "value"], "question": "What is the average amount of booked counts that were returned late?", "question_toks": ["What", "is", "the", "average", "amount", "of", "booked", "counts", "that", "were", "returned", "late", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 40, false], null]]]], "where": [[false, 2, [0, [0, 39, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0047", "db_id": "sakila_1", "query": "select first_name from customer where active = 1", "query_toks": ["select", "first_name", "from", "customer", "where", "active", "=", "1"], "query_toks_no_value": ["select", "first_name", "from", "customer", "where", "active", "=", "value"], "question": "Show me the first names of active customers", "question_toks": ["Show", "me", "the", "first", "names", "of", "active", "customers"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [[false, 2, [0, [0, 29, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0048", "db_id": "school_bus", "query": "select count(distinct school_id) from school_bus where if_full_time = \"t\"", "query_toks": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "value"], "question": "How many schools have buses working full time?", "question_toks": ["How", "many", "schools", "have", "buses", "working", "full", "time", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0049", "db_id": "school_bus", "query": "select count(distinct school_id) from school_bus where if_full_time = \"f\"", "query_toks": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "school_id", ")", "from", "school_bus", "where", "if_full_time", "=", "value"], "question": "How many schools don't have full time buses?", "question_toks": ["How", "many", "schools", "don", "'", "t", "have", "full", "time", "buses", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 11, true], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0050", "db_id": "soccer_2", "query": "select avg(t1.hs) from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"no\"", "query_toks": ["select", "avg", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "``", "no", "''"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "hs", ")", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "Find the average hours for the students whose tryout decision is negative.", "question_toks": ["Find", "the", "average", "hours", "for", "the", "students", "whose", "tryout", "decision", "is", "negative", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0054", "db_id": "soccer_2", "query": "select t1.pname , t1.hs from player as t1 join tryout as t2 on t1.pid = t2.pid where t2.decision = \"yes\"", "query_toks": ["select", "t1", ".", "pname", ",", "t1", ".", "hs", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "t1", ".", "pname", ",", "t1", ".", "hs", "from", "player", "as", "t1", "join", "tryout", "as", "t2", "on", "t1", ".", "pid", "=", "t2", ".", "pid", "where", "t2", ".", "decision", "=", "value"], "question": "Find the name and hours of the students who got positive dicision.", "question_toks": ["Find", "the", "name", "and", "hours", "of", "the", "students", "who", "got", "positive", "dicision", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0061", "db_id": "tvshow", "query": "select package_option , series_name from tv_channel where hight_definition_tv = \"no\"", "query_toks": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "``", "no", "''"], "query_toks_no_value": ["select", "package_option", ",", "series_name", "from", "tv_channel", "where", "hight_definition_tv", "=", "value"], "question": "Find the package choice and series name of the TV channel that has low definition TV.", "question_toks": ["Find", "the", "package", "choice", "and", "series", "name", "of", "the", "TV", "channel", "that", "has", "low", "definition", "TV", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0062", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"no\"", "query_toks": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "``", "no", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "value"], "question": "Amount of TV channels without paying per view", "question_toks": ["Amount", "of", "TV", "channels", "without", "paying", "per", "view"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"no\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0065", "db_id": "tvshow", "query": "select count(*) from tv_channel where pay_per_view_ppv = \"yes\"", "query_toks": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "``", "yes", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "tv_channel", "where", "pay_per_view_ppv", "=", "value"], "question": "Amount of TV channels with paying per view", "question_toks": ["Amount", "of", "TV", "channels", "with", "paying", "per", "view"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"yes\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0068", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"f\"", "query_toks": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "``", "f", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "value"], "question": "Average age of women", "question_toks": ["Average", "age", "of", "women"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0069", "db_id": "wedding", "query": "select count(*) from people where is_male = \"t\" and age > 30", "query_toks": ["select", "count", "(*)", "from", "people", "where", "is_male", "=", "``", "t", "''", "and", "age", ">", "30"], "query_toks_no_value": ["select", "count", "(*)", "from", "people", "where", "is_male", "=", "value", "and", "age", ">", "value"], "question": "How many males are older than 30 in our record?", "question_toks": ["How", "many", "males", "are", "older", "than", "30", "in", "our", "record", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null], "and", [false, 3, [0, [0, 5, false], null], 30.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0071", "db_id": "wedding", "query": "select avg(age) from people where is_male = \"t\"", "query_toks": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "``", "t", "''"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "people", "where", "is_male", "=", "value"], "question": "Show me the average age of men", "question_toks": ["Show", "me", "the", "average", "age", "of", "men"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0072", "db_id": "wedding", "query": "select count(distinct country) from people where is_male = \"t\"", "query_toks": ["select", "count", "(", "distinct", "country", ")", "from", "people", "where", "is_male", "=", "``", "t", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "country", ")", "from", "people", "where", "is_male", "=", "value"], "question": "How many countries are the men from?", "question_toks": ["How", "many", "countries", "are", "the", "men", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 3, true], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_UNORDERED"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0073", "db_id": "world_1", "query": "select count(*) from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.name = \"afghanistan\" and isofficial = \"f\"", "query_toks": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "``", "afghanistan", "''", "and", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(*)", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "name", "=", "value", "and", "isofficial", "=", "value"], "question": "How many not official languages does Afghanistan have?", "question_toks": ["How", "many", "not", "official", "languages", "does", "Afghanistan", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"afghanistan\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0074", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and t2.isofficial = \"f\" intersect select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"french\" and t2.isofficial = \"f\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "t2", ".", "isofficial", "=", "``", "f", "''", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "french", "''", "and", "t2", ".", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value", "intersect", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What are the names of nations where both English and French are inofficial languages?", "question_toks": ["What", "are", "the", "names", "of", "nations", "where", "both", "English", "and", "French", "are", "inofficial", "languages", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"french\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0075", "db_id": "world_1", "query": "select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"english\" and isofficial = \"f\" union select t1.name from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t2.language = \"dutch\" and isofficial = \"f\"", "query_toks": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "english", "''", "and", "isofficial", "=", "``", "f", "''", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "``", "dutch", "''", "and", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value", "union", "select", "t1", ".", "name", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t2", ".", "language", "=", "value", "and", "isofficial", "=", "value"], "question": "What are the countries where neither English nor Dutch is the official language ?", "question_toks": ["What", "are", "the", "countries", "where", "neither", "English", "nor", "Dutch", "is", "the", "official", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"english\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 2, [0, [0, 24, false], null], "\"dutch\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0076", "db_id": "world_1", "query": "select t2.language from country as t1 join countrylanguage as t2 on t1.code = t2.countrycode where t1.headofstate = \"beatrix\" and t2.isofficial = \"f\"", "query_toks": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "``", "beatrix", "''", "and", "t2", ".", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "t2", ".", "language", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "t1", ".", "headofstate", "=", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the inofficial language spoken in the country whose head of state is Beatrix?", "question_toks": ["What", "is", "the", "inofficial", "language", "spoken", "in", "the", "country", "whose", "head", "of", "state", "is", "Beatrix", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 20, false], null], "\"beatrix\"", null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0077", "db_id": "world_1", "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 = \"f\"", "query_toks": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "1930", "and", "t2", ".", "isofficial", "=", "``", "f", "''"], "query_toks_no_value": ["select", "count", "(", "distinct", "t2", ".", "language", ")", "from", "country", "as", "t1", "join", "countrylanguage", "as", "t2", "on", "t1", ".", "code", "=", "t2", ".", "countrycode", "where", "indepyear", "<", "value", "and", "t2", ".", "isofficial", "=", "value"], "question": "What is the total number of unique inofficial languages spoken in the countries that are founded before 1930?", "question_toks": ["What", "is", "the", "total", "number", "of", "unique", "inofficial", "languages", "spoken", "in", "the", "countries", "that", "are", "founded", "before", "1930", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null]]}, "select": [false, [[3, [0, [0, 24, true], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 1930.0, null], "and", [false, 2, [0, [0, 25, false], null], "\"f\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0078", "db_id": "world_1", "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 = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["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", "=", "``", "f", "''", "and", "t2", ".", "language", "=", "``", "chinese", "''", "and", "t1", ".", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Which unique cities are in Asian countries where Chinese is the unofficial language ?", "question_toks": ["Which", "unique", "cities", "are", "in", "Asian", "countries", "where", "Chinese", "is", "the", "unofficial", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0079", "db_id": "world_1", "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 = \"f\" and t2.language = \"chinese\" and t1.continent = \"asia\"", "query_toks": ["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", "=", "``", "f", "''", "and", "t2", ".", "language", "=", "``", "chinese", "''", "and", "t1", ".", "continent", "=", "``", "asia", "''"], "query_toks_no_value": ["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", "=", "value", "and", "t2", ".", "language", "=", "value", "and", "t1", ".", "continent", "=", "value"], "question": "Return the different names of cities that are in Asia and for which Chinese is the inofficial language.", "question_toks": ["Return", "the", "different", "names", "of", "cities", "that", "are", "in", "Asia", "and", "for", "which", "Chinese", "is", "the", "inofficial", "language", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 23, false], null], "and", [false, 2, [0, [0, 8, false], null], [0, 3, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 2, [0, [0, 24, false], null], "\"chinese\"", null], "and", [false, 2, [0, [0, 10, false], null], "\"asia\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0080", "db_id": "world_1", "query": "select distinct(countrycode) from countrylanguage where isofficial = \"f\" and percentage > 10", "query_toks": ["select", "distinct", "(", "countrycode", ")", "from", "countrylanguage", "where", "isofficial", "=", "``", "f", "''", "and", "percentage", ">", "10"], "query_toks_no_value": ["select", "distinct", "(", "countrycode", ")", "from", "countrylanguage", "where", "isofficial", "=", "value", "and", "percentage", ">", "value"], "question": "Print me different codes of countries in which there are more then 10 percent of people speaking not official languages", "question_toks": ["Print", "me", "different", "codes", "of", "countries", "in", "which", "there", "are", "more", "then", "10", "percent", "of", "people", "speaking", "not", "official", "languages"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 23, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"f\"", null], "and", [false, 3, [0, [0, 26, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_NEGATIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0093", "db_id": "world_1", "query": "select avg(percentage) from countrylanguage where isofficial = \"t\"", "query_toks": ["select", "avg", "(", "percentage", ")", "from", "countrylanguage", "where", "isofficial", "=", "``", "t", "''"], "query_toks_no_value": ["select", "avg", "(", "percentage", ")", "from", "countrylanguage", "where", "isofficial", "=", "value"], "question": "What is the average percentage of people in countries speaking offical language?", "question_toks": ["What", "is", "the", "average", "percentage", "of", "people", "in", "countries", "speaking", "offical", "language", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_binary_0094", "db_id": "world_1", "query": "select percentage from countrylanguage where isofficial = \"t\" and countrycode = \"kaz\"", "query_toks": ["select", "percentage", "from", "countrylanguage", "where", "isofficial", "=", "``", "t", "''", "and", "countrycode", "=", "``", "kaz", "''"], "query_toks_no_value": ["select", "percentage", "from", "countrylanguage", "where", "isofficial", "=", "value", "and", "countrycode", "=", "value"], "question": "What is the percentage of people speaking offical language in KAZ?", "question_toks": ["What", "is", "the", "percentage", "of", "people", "speaking", "offical", "language", "in", "KAZ", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 26, false], null]]]], "where": [[false, 2, [0, [0, 25, false], null], "\"t\"", null], "and", [false, 2, [0, [0, 23, false], null], "\"kaz\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["BINARY", "_BINARY_POSITIVE_VALUE"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0492", "db_id": "battle_death", "query": "select name , tonnage from ship order by name desc", "query_toks": ["SELECT", "name", ",", "tonnage", "FROM", "ship", "ORDER", "BY", "name", "DESC"], "query_toks_no_value": ["select", "name", ",", "tonnage", "from", "ship", "order", "by", "name", "desc"], "question": "List the name and tonnage ordered by in descending alphaetical order for the names.", "question_toks": ["List", "the", "name", "and", "tonnage", "ordered", "by", "in", "descending", "alphaetical", "order", "for", "the", "names", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0002", "db_id": "concert_singer", "query": "select name , country , age from singer order by age desc", "query_toks": ["SELECT", "name", ",", "country", ",", "age", "FROM", "singer", "ORDER", "BY", "age", "DESC"], "query_toks_no_value": ["select", "name", ",", "country", ",", "age", "from", "singer", "order", "by", "age", "desc"], "question": "Show name, country, age for all singers ordered by age from the oldest to the youngest.", "question_toks": ["Show", "name", ",", "country", ",", "age", "for", "all", "singers", "ordered", "by", "age", "from", "the", "oldest", "to", "the", "youngest", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0003", "db_id": "concert_singer", "query": "select name , country , age from singer order by age desc", "query_toks": ["SELECT", "name", ",", "country", ",", "age", "FROM", "singer", "ORDER", "BY", "age", "DESC"], "query_toks_no_value": ["select", "name", ",", "country", ",", "age", "from", "singer", "order", "by", "age", "desc"], "question": "What are the names, countries, and ages for every singer in descending order of age?", "question_toks": ["What", "are", "the", "names", ",", "countries", ",", "and", "ages", "for", "every", "singer", "in", "descending", "order", "of", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0383", "db_id": "course_teach", "query": "select name from teacher order by age asc", "query_toks": ["SELECT", "Name", "FROM", "teacher", "ORDER", "BY", "Age", "ASC"], "query_toks_no_value": ["select", "name", "from", "teacher", "order", "by", "age", "asc"], "question": "List the names of teachers in ascending order of age.", "question_toks": ["List", "the", "names", "of", "teachers", "in", "ascending", "order", "of", "age", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0384", "db_id": "course_teach", "query": "select name from teacher order by age asc", "query_toks": ["SELECT", "Name", "FROM", "teacher", "ORDER", "BY", "Age", "ASC"], "query_toks_no_value": ["select", "name", "from", "teacher", "order", "by", "age", "asc"], "question": "What are the names of the teachers ordered by ascending age?", "question_toks": ["What", "are", "the", "names", "of", "the", "teachers", "ordered", "by", "ascending", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0261", "db_id": "employee_hire_evaluation", "query": "select name from employee order by age", "query_toks": ["SELECT", "name", "FROM", "employee", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "name", "from", "employee", "order", "by", "age"], "question": "Sort employee names by their age in ascending order.", "question_toks": ["Sort", "employee", "names", "by", "their", "age", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0262", "db_id": "employee_hire_evaluation", "query": "select name from employee order by age", "query_toks": ["SELECT", "name", "FROM", "employee", "ORDER", "BY", "age"], "query_toks_no_value": ["select", "name", "from", "employee", "order", "by", "age"], "question": "List the names of employees and sort in ascending order of age.", "question_toks": ["List", "the", "names", "of", "employees", "and", "sort", "in", "ascending", "order", "of", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0273", "db_id": "employee_hire_evaluation", "query": "select name , location , district from shop order by number_products desc", "query_toks": ["SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC"], "query_toks_no_value": ["select", "name", ",", "location", ",", "district", "from", "shop", "order", "by", "number_products", "desc"], "question": "Return the name, location and district of all shops in descending order of number of products.", "question_toks": ["Return", "the", "name", ",", "location", "and", "district", "of", "all", "shops", "in", "descending", "order", "of", "number", "of", "products", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0274", "db_id": "employee_hire_evaluation", "query": "select name , location , district from shop order by number_products desc", "query_toks": ["SELECT", "name", ",", "LOCATION", ",", "district", "FROM", "shop", "ORDER", "BY", "number_products", "DESC"], "query_toks_no_value": ["select", "name", ",", "location", ",", "district", "from", "shop", "order", "by", "number_products", "desc"], "question": "Sort all the shops by number products in descending order, and return the name, location and district of each shop.", "question_toks": ["Sort", "all", "the", "shops", "by", "number", "products", "in", "descending", "order", ",", "and", "return", "the", "name", ",", "location", "and", "district", "of", "each", "shop", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]], [0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0412", "db_id": "museum_visit", "query": "select name from visitor where level_of_membership > 4 order by level_of_membership desc", "query_toks": ["SELECT", "name", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4", "ORDER", "BY", "Level_of_membership", "DESC"], "query_toks_no_value": ["select", "name", "from", "visitor", "where", "level_of_membership", ">", "value", "order", "by", "level_of_membership", "desc"], "question": "Find the names of the visitors whose membership level is higher than 4, and order the results by the level from high to low.", "question_toks": ["Find", "the", "names", "of", "the", "visitors", "whose", "membership", "level", "is", "higher", "than", "4", ",", "and", "order", "the", "results", "by", "the", "level", "from", "high", "to", "low", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0414", "db_id": "museum_visit", "query": "select name , level_of_membership from visitor where level_of_membership > 4 order by age desc", "query_toks": ["SELECT", "name", ",", "Level_of_membership", "FROM", "visitor", "WHERE", "Level_of_membership", ">", "4", "ORDER", "BY", "age", "DESC"], "query_toks_no_value": ["select", "name", ",", "level_of_membership", "from", "visitor", "where", "level_of_membership", ">", "value", "order", "by", "age", "desc"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0824", "db_id": "orchestra", "query": "select name from conductor order by age asc", "query_toks": ["SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Age", "ASC"], "query_toks_no_value": ["select", "name", "from", "conductor", "order", "by", "age", "asc"], "question": "List the names of conductors in ascending order of age.", "question_toks": ["List", "the", "names", "of", "conductors", "in", "ascending", "order", "of", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0825", "db_id": "orchestra", "query": "select name from conductor order by age asc", "query_toks": ["SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Age", "ASC"], "query_toks_no_value": ["select", "name", "from", "conductor", "order", "by", "age", "asc"], "question": "What are the names of conductors, ordered by age?", "question_toks": ["What", "are", "the", "names", "of", "conductors", ",", "ordered", "by", "age", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0828", "db_id": "orchestra", "query": "select record_company from orchestra order by year_of_founded desc", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc"], "question": "What are the record companies of orchestras in descending order of years in which they were founded?", "question_toks": ["What", "are", "the", "record", "companies", "of", "orchestras", "in", "descending", "order", "of", "years", "in", "which", "they", "were", "founded", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0829", "db_id": "orchestra", "query": "select record_company from orchestra order by year_of_founded desc", "query_toks": ["SELECT", "Record_Company", "FROM", "orchestra", "ORDER", "BY", "Year_of_Founded", "DESC"], "query_toks_no_value": ["select", "record_company", "from", "orchestra", "order", "by", "year_of_founded", "desc"], "question": "Return the record companies of orchestras, sorted descending by the years in which they were founded.", "question_toks": ["Return", "the", "record", "companies", "of", "orchestras", ",", "sorted", "descending", "by", "the", "years", "in", "which", "they", "were", "founded", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0836", "db_id": "orchestra", "query": "select name from conductor order by year_of_work desc", "query_toks": ["SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC"], "query_toks_no_value": ["select", "name", "from", "conductor", "order", "by", "year_of_work", "desc"], "question": "List names of conductors in descending order of years of work.", "question_toks": ["List", "names", "of", "conductors", "in", "descending", "order", "of", "years", "of", "work", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0837", "db_id": "orchestra", "query": "select name from conductor order by year_of_work desc", "query_toks": ["SELECT", "Name", "FROM", "conductor", "ORDER", "BY", "Year_of_Work", "DESC"], "query_toks_no_value": ["select", "name", "from", "conductor", "order", "by", "year_of_work", "desc"], "question": "What are the names of conductors, sorted descending by the number of years they have worked?", "question_toks": ["What", "are", "the", "names", "of", "conductors", ",", "sorted", "descending", "by", "the", "number", "of", "years", "they", "have", "worked", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0649", "db_id": "poker_player", "query": "select earnings from poker_player order by earnings desc", "query_toks": ["SELECT", "Earnings", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC"], "query_toks_no_value": ["select", "earnings", "from", "poker_player", "order", "by", "earnings", "desc"], "question": "List the earnings of poker players in descending order.", "question_toks": ["List", "the", "earnings", "of", "poker", "players", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0650", "db_id": "poker_player", "query": "select earnings from poker_player order by earnings desc", "query_toks": ["SELECT", "Earnings", "FROM", "poker_player", "ORDER", "BY", "Earnings", "DESC"], "query_toks_no_value": ["select", "earnings", "from", "poker_player", "order", "by", "earnings", "desc"], "question": "What are the earnings of poker players, ordered descending by value?", "question_toks": ["What", "are", "the", "earnings", "of", "poker", "players", ",", "ordered", "descending", "by", "value", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0663", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "List the names of poker players ordered by the final tables made in ascending order.", "question_toks": ["List", "the", "names", "of", "poker", "players", "ordered", "by", "the", "final", "tables", "made", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0664", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the names of poker players, ordered ascending by the number of final tables they have made?", "question_toks": ["What", "are", "the", "names", "of", "poker", "players", ",", "ordered", "ascending", "by", "the", "number", "of", "final", "tables", "they", "have", "made", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0671", "db_id": "poker_player", "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", "query_toks": ["SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "DESC"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "desc"], "question": "What are the names of poker players in descending order of earnings?", "question_toks": ["What", "are", "the", "names", "of", "poker", "players", "in", "descending", "order", "of", "earnings", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0672", "db_id": "poker_player", "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", "query_toks": ["SELECT", "T1.Name", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Earnings", "DESC"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "earnings", "desc"], "question": "Return the names of poker players sorted by their earnings descending.", "question_toks": ["Return", "the", "names", "of", "poker", "players", "sorted", "by", "their", "earnings", "descending", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0679", "db_id": "poker_player", "query": "select name , birth_date from people order by name asc", "query_toks": ["SELECT", "Name", ",", "Birth_Date", "FROM", "people", "ORDER", "BY", "Name", "ASC"], "query_toks_no_value": ["select", "name", ",", "birth_date", "from", "people", "order", "by", "name", "asc"], "question": "List the names and birth dates of people in ascending alphabetical order of name.", "question_toks": ["List", "the", "names", "and", "birth", "dates", "of", "people", "in", "ascending", "alphabetical", "order", "of", "name", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0680", "db_id": "poker_player", "query": "select name , birth_date from people order by name asc", "query_toks": ["SELECT", "Name", ",", "Birth_Date", "FROM", "people", "ORDER", "BY", "Name", "ASC"], "query_toks_no_value": ["select", "name", ",", "birth_date", "from", "people", "order", "by", "name", "asc"], "question": "What are the names and birth dates of people, ordered by their names in alphabetical order?", "question_toks": ["What", "are", "the", "names", "and", "birth", "dates", "of", "people", ",", "ordered", "by", "their", "names", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1002", "db_id": "singer", "query": "select name from singer order by net_worth_millions asc", "query_toks": ["SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "ASC"], "query_toks_no_value": ["select", "name", "from", "singer", "order", "by", "net_worth_millions", "asc"], "question": "List the name of singers in ascending order of net worth.", "question_toks": ["List", "the", "name", "of", "singers", "in", "ascending", "order", "of", "net", "worth", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1003", "db_id": "singer", "query": "select name from singer order by net_worth_millions asc", "query_toks": ["SELECT", "Name", "FROM", "singer", "ORDER", "BY", "Net_Worth_Millions", "ASC"], "query_toks_no_value": ["select", "name", "from", "singer", "order", "by", "net_worth_millions", "asc"], "question": "What are the names of singers ordered by ascending net worth?", "question_toks": ["What", "are", "the", "names", "of", "singers", "ordered", "by", "ascending", "net", "worth", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0527", "db_id": "student_transcripts_tracking", "query": "select section_name from sections order by section_name desc", "query_toks": ["SELECT", "section_name", "FROM", "Sections", "ORDER", "BY", "section_name", "DESC"], "query_toks_no_value": ["select", "section_name", "from", "sections", "order", "by", "section_name", "desc"], "question": "List the section_name in reversed lexicographical order.", "question_toks": ["List", "the", "section_name", "in", "reversed", "lexicographical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 25, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0528", "db_id": "student_transcripts_tracking", "query": "select section_name from sections order by section_name desc", "query_toks": ["SELECT", "section_name", "FROM", "Sections", "ORDER", "BY", "section_name", "DESC"], "query_toks_no_value": ["select", "section_name", "from", "sections", "order", "by", "section_name", "desc"], "question": "What are the names of the sections in reverse alphabetical order?", "question_toks": ["What", "are", "the", "names", "of", "the", "sections", "in", "reverse", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[0, [0, [0, 25, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 25, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0579", "db_id": "student_transcripts_tracking", "query": "select other_student_details from students order by other_student_details desc", "query_toks": ["SELECT", "other_student_details", "FROM", "Students", "ORDER", "BY", "other_student_details", "DESC"], "query_toks_no_value": ["select", "other_student_details", "from", "students", "order", "by", "other_student_details", "desc"], "question": "List all the student details in reversed lexicographical order.", "question_toks": ["List", "all", "the", "student", "details", "in", "reversed", "lexicographical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 43, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0580", "db_id": "student_transcripts_tracking", "query": "select other_student_details from students order by other_student_details desc", "query_toks": ["SELECT", "other_student_details", "FROM", "Students", "ORDER", "BY", "other_student_details", "DESC"], "query_toks_no_value": ["select", "other_student_details", "from", "students", "order", "by", "other_student_details", "desc"], "question": "What other details can you tell me about students in reverse alphabetical order?", "question_toks": ["What", "other", "details", "can", "you", "tell", "me", "about", "students", "in", "reverse", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 43, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0585", "db_id": "tvshow", "query": "select title from cartoon order by title", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "ORDER", "BY", "title"], "query_toks_no_value": ["select", "title", "from", "cartoon", "order", "by", "title"], "question": "List the title of all cartoons in alphabetical order.", "question_toks": ["List", "the", "title", "of", "all", "cartoons", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0586", "db_id": "tvshow", "query": "select title from cartoon order by title", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "ORDER", "BY", "title"], "query_toks_no_value": ["select", "title", "from", "cartoon", "order", "by", "title"], "question": "What are the titles of the cartoons sorted alphabetically?", "question_toks": ["What", "are", "the", "titles", "of", "the", "cartoons", "sorted", "alphabetically", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0591", "db_id": "tvshow", "query": "select title , directed_by from cartoon order by original_air_date", "query_toks": ["SELECT", "title", ",", "Directed_by", "FROM", "Cartoon", "ORDER", "BY", "Original_air_date"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "cartoon", "order", "by", "original_air_date"], "question": "list all cartoon titles and their directors ordered by their air date", "question_toks": ["list", "all", "cartoon", "titles", "and", "their", "directors", "ordered", "by", "their", "air", "date"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 23, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0592", "db_id": "tvshow", "query": "select title , directed_by from cartoon order by original_air_date", "query_toks": ["SELECT", "title", ",", "Directed_by", "FROM", "Cartoon", "ORDER", "BY", "Original_air_date"], "query_toks_no_value": ["select", "title", ",", "directed_by", "from", "cartoon", "order", "by", "original_air_date"], "question": "What is the name and directors of all the cartoons that are ordered by air date?", "question_toks": ["What", "is", "the", "name", "and", "directors", "of", "all", "the", "cartoons", "that", "are", "ordered", "by", "air", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 23, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0613", "db_id": "tvshow", "query": "select episode from tv_series order by rating", "query_toks": ["SELECT", "Episode", "FROM", "TV_series", "ORDER", "BY", "rating"], "query_toks_no_value": ["select", "episode", "from", "tv_series", "order", "by", "rating"], "question": "List the Episode of all TV series sorted by rating.", "question_toks": ["List", "the", "Episode", "of", "all", "TV", "series", "sorted", "by", "rating", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0614", "db_id": "tvshow", "query": "select episode from tv_series order by rating", "query_toks": ["SELECT", "Episode", "FROM", "TV_series", "ORDER", "BY", "rating"], "query_toks_no_value": ["select", "episode", "from", "tv_series", "order", "by", "rating"], "question": "What are all of the episodes ordered by ratings?", "question_toks": ["What", "are", "all", "of", "the", "episodes", "ordered", "by", "ratings", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0688", "db_id": "voter_1", "query": "select contestant_number , contestant_name from contestants order by contestant_name desc", "query_toks": ["SELECT", "contestant_number", ",", "contestant_name", "FROM", "contestants", "ORDER", "BY", "contestant_name", "DESC"], "query_toks_no_value": ["select", "contestant_number", ",", "contestant_name", "from", "contestants", "order", "by", "contestant_name", "desc"], "question": "List the contestant numbers and names, ordered by contestant name descending.", "question_toks": ["List", "the", "contestant", "numbers", "and", "names", ",", "ordered", "by", "contestant", "name", "descending", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0456", "db_id": "wta_1", "query": "select first_name , last_name from players order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "order", "by", "birth_date"], "question": "What are the full names of all players, sorted by birth date?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "players", ",", "sorted", "by", "birth", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0457", "db_id": "wta_1", "query": "select first_name , last_name from players where hand = 'l' order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "'L", "'", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value", "order", "by", "birth_date"], "question": "List the first and last name of all players who are left / L hand in the order of birth date.", "question_toks": ["List", "the", "first", "and", "last", "name", "of", "all", "players", "who", "are", "left", "/", "L", "hand", "in", "the", "order", "of", "birth", "date", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"L\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0458", "db_id": "wta_1", "query": "select first_name , last_name from players where hand = 'l' order by birth_date", "query_toks": ["SELECT", "first_name", ",", "last_name", "FROM", "players", "WHERE", "hand", "=", "'L", "'", "ORDER", "BY", "birth_date"], "query_toks_no_value": ["select", "first_name", ",", "last_name", "from", "players", "where", "hand", "=", "value", "order", "by", "birth_date"], "question": "What are the full names of all left handed players, in order of birth date?", "question_toks": ["What", "are", "the", "full", "names", "of", "all", "left", "handed", "players", ",", "in", "order", "of", "birth", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"L\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1151", "db_id": "body_builder", "query": "select total from body_builder order by total asc", "query_toks": ["SELECT", "Total", "FROM", "body_builder", "ORDER", "BY", "Total", "ASC"], "query_toks_no_value": ["select", "total", "from", "body_builder", "order", "by", "total", "asc"], "question": "List the total scores of body builders in ascending order.", "question_toks": ["List", "the", "total", "scores", "of", "body", "builders", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1152", "db_id": "body_builder", "query": "select snatch , clean_jerk from body_builder order by snatch asc", "query_toks": ["SELECT", "Snatch", ",", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Snatch", "ASC"], "query_toks_no_value": ["select", "snatch", ",", "clean_jerk", "from", "body_builder", "order", "by", "snatch", "asc"], "question": "List the snatch score and clean jerk score of body builders in ascending order of snatch score.", "question_toks": ["List", "the", "snatch", "score", "and", "clean", "jerk", "score", "of", "body", "builders", "in", "ascending", "order", "of", "snatch", "score", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1155", "db_id": "body_builder", "query": "select birth_date from people order by height asc", "query_toks": ["SELECT", "Birth_Date", "FROM", "People", "ORDER", "BY", "Height", "ASC"], "query_toks_no_value": ["select", "birth_date", "from", "people", "order", "by", "height", "asc"], "question": "What are the birthdays of people in ascending order of height?", "question_toks": ["What", "are", "the", "birthdays", "of", "people", "in", "ascending", "order", "of", "height", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1162", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id order by t1.total desc", "query_toks": ["SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total", "DESC"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total", "desc"], "question": "What are the names of body builders in descending order of total scores?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "in", "descending", "order", "of", "total", "scores", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN", "ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1166", "db_id": "body_builder", "query": "select height , weight from people order by height desc", "query_toks": ["SELECT", "Height", ",", "Weight", "FROM", "people", "ORDER", "BY", "Height", "DESC"], "query_toks_no_value": ["select", "height", ",", "weight", "from", "people", "order", "by", "height", "desc"], "question": "List the height and weight of people in descending order of height.", "question_toks": ["List", "the", "height", "and", "weight", "of", "people", "in", "descending", "order", "of", "height", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0214", "db_id": "book_2", "query": "select writer from book order by writer asc", "query_toks": ["SELECT", "Writer", "FROM", "book", "ORDER", "BY", "Writer", "ASC"], "query_toks_no_value": ["select", "writer", "from", "book", "order", "by", "writer", "asc"], "question": "List the writers of the books in ascending alphabetical order.", "question_toks": ["List", "the", "writers", "of", "the", "books", "in", "ascending", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0215", "db_id": "book_2", "query": "select title from book order by issues asc", "query_toks": ["SELECT", "Title", "FROM", "book", "ORDER", "BY", "Issues", "ASC"], "query_toks_no_value": ["select", "title", "from", "book", "order", "by", "issues", "asc"], "question": "List the titles of the books in ascending order of issues.", "question_toks": ["List", "the", "titles", "of", "the", "books", "in", "ascending", "order", "of", "issues", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0218", "db_id": "book_2", "query": "select publication_date from publication order by price desc", "query_toks": ["SELECT", "Publication_Date", "FROM", "publication", "ORDER", "BY", "Price", "DESC"], "query_toks_no_value": ["select", "publication_date", "from", "publication", "order", "by", "price", "desc"], "question": "What are the dates of publications in descending order of price?", "question_toks": ["What", "are", "the", "dates", "of", "publications", "in", "descending", "order", "of", "price", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0224", "db_id": "book_2", "query": "select t1.title from book as t1 join publication as t2 on t1.book_id = t2.book_id order by t2.price desc", "query_toks": ["SELECT", "T1.Title", "FROM", "book", "AS", "T1", "JOIN", "publication", "AS", "T2", "ON", "T1.Book_ID", "=", "T2.Book_ID", "ORDER", "BY", "T2.Price", "DESC"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "book", "as", "t1", "join", "publication", "as", "t2", "on", "t1", ".", "book_id", "=", "t2", ".", "book_id", "order", "by", "t2", ".", "price", "desc"], "question": "Show the titles of books in descending order of publication price.", "question_toks": ["Show", "the", "titles", "of", "books", "in", "descending", "order", "of", "publication", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3757", "db_id": "program_share", "query": "select origin from program order by origin", "query_toks": ["SELECT", "origin", "FROM", "program", "ORDER", "BY", "origin"], "query_toks_no_value": ["select", "origin", "from", "program", "order", "by", "origin"], "question": "What is the list of program origins ordered alphabetically?", "question_toks": ["What", "is", "the", "list", "of", "program", "origins", "ordered", "alphabetically", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1911", "db_id": "protein_institute", "query": "select name , street_address , floors from building order by floors", "query_toks": ["SELECT", "name", ",", "street_address", ",", "floors", "FROM", "building", "ORDER", "BY", "floors"], "query_toks_no_value": ["select", "name", ",", "street_address", ",", "floors", "from", "building", "order", "by", "floors"], "question": "Show the name, street address, and number of floors for all buildings ordered by the number of floors.", "question_toks": ["Show", "the", "name", ",", "street", "address", ",", "and", "number", "of", "floors", "for", "all", "buildings", "ordered", "by", "the", "number", "of", "floors", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0751", "db_id": "race_track", "query": "select name , seating from track where year_opened > 2000 order by seating", "query_toks": ["SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "2000", "ORDER", "BY", "seating"], "query_toks_no_value": ["select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "value", "order", "by", "seating"], "question": "Show names and seatings, ordered by seating for all tracks opened after 2000.", "question_toks": ["Show", "names", "and", "seatings", ",", "ordered", "by", "seating", "for", "all", "tracks", "opened", "after", "2000", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0752", "db_id": "race_track", "query": "select name , seating from track where year_opened > 2000 order by seating", "query_toks": ["SELECT", "name", ",", "seating", "FROM", "track", "WHERE", "year_opened", ">", "2000", "ORDER", "BY", "seating"], "query_toks_no_value": ["select", "name", ",", "seating", "from", "track", "where", "year_opened", ">", "value", "order", "by", "seating"], "question": "What are the names and seatings for all tracks opened after 2000, ordered by seating?", "question_toks": ["What", "are", "the", "names", "and", "seatings", "for", "all", "tracks", "opened", "after", "2000", ",", "ordered", "by", "seating", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 10, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5633", "db_id": "railway", "query": "select builder from railway order by builder asc", "query_toks": ["SELECT", "Builder", "FROM", "railway", "ORDER", "BY", "Builder", "ASC"], "query_toks_no_value": ["select", "builder", "from", "railway", "order", "by", "builder", "asc"], "question": "List the builders of railways in ascending alphabetical order.", "question_toks": ["List", "the", "builders", "of", "railways", "in", "ascending", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5637", "db_id": "railway", "query": "select name from manager order by level asc", "query_toks": ["SELECT", "Name", "FROM", "manager", "ORDER", "BY", "LEVEL", "ASC"], "query_toks_no_value": ["select", "name", "from", "manager", "order", "by", "level", "asc"], "question": "What are the names of managers in ascending order of level?", "question_toks": ["What", "are", "the", "names", "of", "managers", "in", "ascending", "order", "of", "level", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5651", "db_id": "railway", "query": "select working_year_starts from manager order by level desc", "query_toks": ["SELECT", "Working_year_starts", "FROM", "manager", "ORDER", "BY", "LEVEL", "DESC"], "query_toks_no_value": ["select", "working_year_starts", "from", "manager", "order", "by", "level", "desc"], "question": "Show the working years of managers in descending order of their level.", "question_toks": ["Show", "the", "working", "years", "of", "managers", "in", "descending", "order", "of", "their", "level", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 17, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 19, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4000", "db_id": "ship_mission", "query": "select name from ship order by tonnage asc", "query_toks": ["SELECT", "Name", "FROM", "ship", "ORDER", "BY", "Tonnage", "ASC"], "query_toks_no_value": ["select", "name", "from", "ship", "order", "by", "tonnage", "asc"], "question": "List the name of ships in ascending order of tonnage.", "question_toks": ["List", "the", "name", "of", "ships", "in", "ascending", "order", "of", "tonnage", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 12, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4001", "db_id": "ship_mission", "query": "select name from ship order by tonnage asc", "query_toks": ["SELECT", "Name", "FROM", "ship", "ORDER", "BY", "Tonnage", "ASC"], "query_toks_no_value": ["select", "name", "from", "ship", "order", "by", "tonnage", "asc"], "question": "what are the names of the ships ordered by ascending tonnage?", "question_toks": ["what", "are", "the", "names", "of", "the", "ships", "ordered", "by", "ascending", "tonnage", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 12, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5402", "db_id": "shop_membership", "query": "select name , address_road , city from branch order by open_year", "query_toks": ["SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch", "ORDER", "BY", "open_year"], "query_toks_no_value": ["select", "name", ",", "address_road", ",", "city", "from", "branch", "order", "by", "open_year"], "question": "Show name, address road, and city for all branches sorted by open year.", "question_toks": ["Show", "name", ",", "address", "road", ",", "and", "city", "for", "all", "branches", "sorted", "by", "open", "year", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5403", "db_id": "shop_membership", "query": "select name , address_road , city from branch order by open_year", "query_toks": ["SELECT", "name", ",", "address_road", ",", "city", "FROM", "branch", "ORDER", "BY", "open_year"], "query_toks_no_value": ["select", "name", ",", "address_road", ",", "city", "from", "branch", "order", "by", "open_year"], "question": "What are the names, address roads, and cities of the branches ordered by opening year?", "question_toks": ["What", "are", "the", "names", ",", "address", "roads", ",", "and", "cities", "of", "the", "branches", "ordered", "by", "opening", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5416", "db_id": "shop_membership", "query": "select card_number , name , hometown from member order by level desc", "query_toks": ["SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member", "ORDER", "BY", "LEVEL", "DESC"], "query_toks_no_value": ["select", "card_number", ",", "name", ",", "hometown", "from", "member", "order", "by", "level", "desc"], "question": "Show card number, name, and hometown for all members in a descending order of level.", "question_toks": ["Show", "card", "number", ",", "name", ",", "and", "hometown", "for", "all", "members", "in", "a", "descending", "order", "of", "level", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5417", "db_id": "shop_membership", "query": "select card_number , name , hometown from member order by level desc", "query_toks": ["SELECT", "card_number", ",", "name", ",", "hometown", "FROM", "member", "ORDER", "BY", "LEVEL", "DESC"], "query_toks_no_value": ["select", "card_number", ",", "name", ",", "hometown", "from", "member", "order", "by", "level", "desc"], "question": "What are the card numbers, names, and hometowns of every member ordered by descending level?", "question_toks": ["What", "are", "the", "card", "numbers", ",", "names", ",", "and", "hometowns", "of", "every", "member", "ordered", "by", "descending", "level", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5420", "db_id": "shop_membership", "query": "select t3.name , t2.name from membership_register_branch as t1 join branch as t2 on t1.branch_id = t2.branch_id join member as t3 on t1.member_id = t3.member_id order by t1.register_year", "query_toks": ["SELECT", "T3.name", ",", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "ORDER", "BY", "T1.register_year"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "order", "by", "t1", ".", "register_year"], "question": "Show all member names and registered branch names sorted by register year.", "question_toks": ["Show", "all", "member", "names", "and", "registered", "branch", "names", "sorted", "by", "register", "year", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5421", "db_id": "shop_membership", "query": "select t3.name , t2.name from membership_register_branch as t1 join branch as t2 on t1.branch_id = t2.branch_id join member as t3 on t1.member_id = t3.member_id order by t1.register_year", "query_toks": ["SELECT", "T3.name", ",", "T2.name", "FROM", "membership_register_branch", "AS", "T1", "JOIN", "branch", "AS", "T2", "ON", "T1.branch_id", "=", "T2.branch_id", "JOIN", "member", "AS", "T3", "ON", "T1.member_id", "=", "T3.member_id", "ORDER", "BY", "T1.register_year"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t2", ".", "name", "from", "membership_register_branch", "as", "t1", "join", "branch", "as", "t2", "on", "t1", ".", "branch_id", "=", "t2", ".", "branch_id", "join", "member", "as", "t3", "on", "t1", ".", "member_id", "=", "t3", ".", "member_id", "order", "by", "t1", ".", "register_year"], "question": "What are the names of the members and branches at which they are registered sorted by year of registration?", "question_toks": ["What", "are", "the", "names", "of", "the", "members", "and", "branches", "at", "which", "they", "are", "registered", "sorted", "by", "year", "of", "registration", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4584", "db_id": "solvency_ii", "query": "select product_name from products order by product_price asc", "query_toks": ["SELECT", "Product_Name", "FROM", "Products", "ORDER", "BY", "Product_Price", "ASC"], "query_toks_no_value": ["select", "product_name", "from", "products", "order", "by", "product_price", "asc"], "question": "List the name of products in ascending order of price.", "question_toks": ["List", "the", "name", "of", "products", "in", "ascending", "order", "of", "price", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0097", "db_id": "student_assessment", "query": "select first_name from people order by first_name", "query_toks": ["SELECT", "first_name", "FROM", "people", "ORDER", "BY", "first_name"], "query_toks_no_value": ["select", "first_name", "from", "people", "order", "by", "first_name"], "question": "List the first names of people in alphabetical order?", "question_toks": ["List", "the", "first", "names", "of", "people", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0098", "db_id": "student_assessment", "query": "select first_name from people order by first_name", "query_toks": ["SELECT", "first_name", "FROM", "people", "ORDER", "BY", "first_name"], "query_toks_no_value": ["select", "first_name", "from", "people", "order", "by", "first_name"], "question": "What are the first names of the people in alphabetical order?", "question_toks": ["What", "are", "the", "first", "names", "of", "the", "people", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5603", "db_id": "swimming", "query": "select name from event order by year desc", "query_toks": ["SELECT", "name", "FROM", "event", "ORDER", "BY", "YEAR", "DESC"], "query_toks_no_value": ["select", "name", "from", "event", "order", "by", "year", "desc"], "question": "List all the event names by year from the most recent to the oldest.", "question_toks": ["List", "all", "the", "event", "names", "by", "year", "from", "the", "most", "recent", "to", "the", "oldest", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 21, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5615", "db_id": "swimming", "query": "select name from swimmer order by meter_100", "query_toks": ["SELECT", "name", "FROM", "swimmer", "ORDER", "BY", "meter_100"], "query_toks_no_value": ["select", "name", "from", "swimmer", "order", "by", "meter_100"], "question": "Find the names of all swimmers, sorted by their 100 meter scores in ascending order.", "question_toks": ["Find", "the", "names", "of", "all", "swimmers", ",", "sorted", "by", "their", "100", "meter", "scores", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1651", "db_id": "theme_gallery", "query": "select name , age , country from artist order by year_join", "query_toks": ["SELECT", "name", ",", "age", ",", "country", "FROM", "artist", "ORDER", "BY", "Year_Join"], "query_toks_no_value": ["select", "name", ",", "age", ",", "country", "from", "artist", "order", "by", "year_join"], "question": "Show all artist name, age, and country ordered by the yeared they joined.", "question_toks": ["Show", "all", "artist", "name", ",", "age", ",", "and", "country", "ordered", "by", "the", "yeared", "they", "joined", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1652", "db_id": "theme_gallery", "query": "select name , age , country from artist order by year_join", "query_toks": ["SELECT", "name", ",", "age", ",", "country", "FROM", "artist", "ORDER", "BY", "Year_Join"], "query_toks_no_value": ["select", "name", ",", "age", ",", "country", "from", "artist", "order", "by", "year_join"], "question": "What are the names, ages, and countries of artists, sorted by the year they joined?", "question_toks": ["What", "are", "the", "names", ",", "ages", ",", "and", "countries", "of", "artists", ",", "sorted", "by", "the", "year", "they", "joined", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1677", "db_id": "theme_gallery", "query": "select theme , year from exhibition order by ticket_price desc", "query_toks": ["SELECT", "theme", ",", "YEAR", "FROM", "exhibition", "ORDER", "BY", "ticket_price", "DESC"], "query_toks_no_value": ["select", "theme", ",", "year", "from", "exhibition", "order", "by", "ticket_price", "desc"], "question": "Show theme and year for all exhibitions in an descending order of ticket price.", "question_toks": ["Show", "theme", "and", "year", "for", "all", "exhibitions", "in", "an", "descending", "order", "of", "ticket", "price", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1678", "db_id": "theme_gallery", "query": "select theme , year from exhibition order by ticket_price desc", "query_toks": ["SELECT", "theme", ",", "YEAR", "FROM", "exhibition", "ORDER", "BY", "ticket_price", "DESC"], "query_toks_no_value": ["select", "theme", ",", "year", "from", "exhibition", "order", "by", "ticket_price", "desc"], "question": "What are the themes and years for exhibitions, sorted by ticket price descending?", "question_toks": ["What", "are", "the", "themes", "and", "years", "for", "exhibitions", ",", "sorted", "by", "ticket", "price", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6926", "db_id": "tracking_orders", "query": "select distinct product_name from products order by product_name", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "products", "ORDER", "BY", "product_name"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "products", "order", "by", "product_name"], "question": "Sort all the distinct products in alphabetical order.", "question_toks": ["Sort", "all", "the", "distinct", "products", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6927", "db_id": "tracking_orders", "query": "select distinct order_id from orders order by date_order_placed", "query_toks": ["SELECT", "DISTINCT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed"], "query_toks_no_value": ["select", "distinct", "order_id", "from", "orders", "order", "by", "date_order_placed"], "question": "List the ids of all distinct orders ordered by placed date.", "question_toks": ["List", "the", "ids", "of", "all", "distinct", "orders", "ordered", "by", "placed", "date", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6928", "db_id": "tracking_orders", "query": "select distinct order_id from orders order by date_order_placed", "query_toks": ["SELECT", "DISTINCT", "order_id", "FROM", "orders", "ORDER", "BY", "date_order_placed"], "query_toks_no_value": ["select", "distinct", "order_id", "from", "orders", "order", "by", "date_order_placed"], "question": "What are ids of the all distinct orders, sorted by placement date?", "question_toks": ["What", "are", "ids", "of", "the", "all", "distinct", "orders", ",", "sorted", "by", "placement", "date", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 10, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5380", "db_id": "tracking_software_problems", "query": "select distinct product_name from product order by product_name", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_name"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product", "order", "by", "product_name"], "question": "List the names of all the distinct product names in alphabetical order?", "question_toks": ["List", "the", "names", "of", "all", "the", "distinct", "product", "names", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5381", "db_id": "tracking_software_problems", "query": "select distinct product_name from product order by product_name", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_name"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product", "order", "by", "product_name"], "question": "Sort all the distinct product names in alphabetical order.", "question_toks": ["Sort", "all", "the", "distinct", "product", "names", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5382", "db_id": "tracking_software_problems", "query": "select distinct product_name from product order by product_id", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_id"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product", "order", "by", "product_id"], "question": "List all the distinct product names ordered by product id?", "question_toks": ["List", "all", "the", "distinct", "product", "names", "ordered", "by", "product", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5383", "db_id": "tracking_software_problems", "query": "select distinct product_name from product order by product_id", "query_toks": ["SELECT", "DISTINCT", "product_name", "FROM", "product", "ORDER", "BY", "product_id"], "query_toks_no_value": ["select", "distinct", "product_name", "from", "product", "order", "by", "product_id"], "question": "What is the list of distinct product names sorted by product id?", "question_toks": ["What", "is", "the", "list", "of", "distinct", "product", "names", "sorted", "by", "product", "id", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 14, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6611", "db_id": "train_station", "query": "select name , service from train order by time", "query_toks": ["SELECT", "name", ",", "service", "FROM", "train", "ORDER", "BY", "TIME"], "query_toks_no_value": ["select", "name", ",", "service", "from", "train", "order", "by", "time"], "question": "Show the name and service for all trains in order by time.", "question_toks": ["Show", "the", "name", "and", "service", "for", "all", "trains", "in", "order", "by", "time", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6614", "db_id": "train_station", "query": "select t3.name , t3.time from train_station as t1 join station as t2 on t1.station_id = t2.station_id join train as t3 on t3.train_id = t1.train_id where t2.location = 'london' order by t3.time desc", "query_toks": ["SELECT", "T3.name", ",", "T3.time", "FROM", "train_station", "AS", "T1", "JOIN", "station", "AS", "T2", "ON", "T1.station_id", "=", "T2.station_id", "JOIN", "train", "AS", "T3", "ON", "T3.train_id", "=", "T1.train_id", "WHERE", "T2.location", "=", "'London", "'", "ORDER", "BY", "T3.time", "DESC"], "query_toks_no_value": ["select", "t3", ".", "name", ",", "t3", ".", "time", "from", "train_station", "as", "t1", "join", "station", "as", "t2", "on", "t1", ".", "station_id", "=", "t2", ".", "station_id", "join", "train", "as", "t3", "on", "t3", ".", "train_id", "=", "t1", ".", "train_id", "where", "t2", ".", "location", "=", "value", "order", "by", "t3", ".", "time", "desc"], "question": "Show all train names and times in stations in London in descending order by train time.", "question_toks": ["Show", "all", "train", "names", "and", "times", "in", "stations", "in", "London", "in", "descending", "order", "by", "train", "time", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 9, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"London\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6621", "db_id": "train_station", "query": "select name , location from station order by annual_entry_exit , annual_interchanges", "query_toks": ["SELECT", "name", ",", "LOCATION", "FROM", "station", "ORDER", "BY", "Annual_entry_exit", ",", "Annual_interchanges"], "query_toks_no_value": ["select", "name", ",", "location", "from", "station", "order", "by", "annual_entry_exit", ",", "annual_interchanges"], "question": "List the names and locations of all stations ordered by their yearly entry exit and interchange amounts.", "question_toks": ["List", "the", "names", "and", "locations", "of", "all", "stations", "ordered", "by", "their", "yearly", "entry", "exit", "and", "interchange", "amounts", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null], [0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0292", "db_id": "twitter_1", "query": "select name , followers from user_profiles order by followers desc", "query_toks": ["SELECT", "name", ",", "followers", "FROM", "user_profiles", "ORDER", "BY", "followers", "DESC"], "query_toks_no_value": ["select", "name", ",", "followers", "from", "user_profiles", "order", "by", "followers", "desc"], "question": "List the name and number of followers for each user, and sort the results by the number of followers in descending order.", "question_toks": ["List", "the", "name", "and", "number", "of", "followers", "for", "each", "user", ",", "and", "sort", "the", "results", "by", "the", "number", "of", "followers", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0294", "db_id": "twitter_1", "query": "select text from tweets order by createdate", "query_toks": ["SELECT", "text", "FROM", "tweets", "ORDER", "BY", "createdate"], "query_toks_no_value": ["select", "text", "from", "tweets", "order", "by", "createdate"], "question": "List the text of all tweets in the order of date.", "question_toks": ["List", "the", "text", "of", "all", "tweets", "in", "the", "order", "of", "date", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1631", "db_id": "wedding", "query": "select name from church order by open_date desc", "query_toks": ["SELECT", "name", "FROM", "church", "ORDER", "BY", "open_date", "DESC"], "query_toks_no_value": ["select", "name", "from", "church", "order", "by", "open_date", "desc"], "question": "List all church names in descending order of opening date.", "question_toks": ["List", "all", "church", "names", "in", "descending", "order", "of", "opening", "date", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6559", "db_id": "wine_1", "query": "select distinct name from wine order by name", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "Name"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "order", "by", "name"], "question": "List the names of all distinct wines in alphabetical order.", "question_toks": ["List", "the", "names", "of", "all", "distinct", "wines", "in", "alphabetical", "order", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6560", "db_id": "wine_1", "query": "select distinct name from wine order by name", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "Name"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "order", "by", "name"], "question": "What are the names of wines, sorted in alphabetical order?", "question_toks": ["What", "are", "the", "names", "of", "wines", ",", "sorted", "in", "alphabetical", "order", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6561", "db_id": "wine_1", "query": "select distinct name from wine order by price", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "price"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "order", "by", "price"], "question": "List the names of all distinct wines ordered by price.", "question_toks": ["List", "the", "names", "of", "all", "distinct", "wines", "ordered", "by", "price", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6562", "db_id": "wine_1", "query": "select distinct name from wine order by price", "query_toks": ["SELECT", "DISTINCT", "Name", "FROM", "WINE", "ORDER", "BY", "price"], "query_toks_no_value": ["select", "distinct", "name", "from", "wine", "order", "by", "price"], "question": "What are the names of wines, sorted by price ascending?", "question_toks": ["What", "are", "the", "names", "of", "wines", ",", "sorted", "by", "price", "ascending", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [true, [[0, [0, [0, 15, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 17, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6589", "db_id": "wine_1", "query": "select grape , winery , year from wine where price > 100 order by year", "query_toks": ["SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "100", "ORDER", "BY", "YEAR"], "query_toks_no_value": ["select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "value", "order", "by", "year"], "question": "List the grape, winery and year of the wines whose price is bigger than 100 ordered by year.", "question_toks": ["List", "the", "grape", ",", "winery", "and", "year", "of", "the", "wines", "whose", "price", "is", "bigger", "than", "100", "ordered", "by", "year", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6590", "db_id": "wine_1", "query": "select grape , winery , year from wine where price > 100 order by year", "query_toks": ["SELECT", "Grape", ",", "Winery", ",", "YEAR", "FROM", "WINE", "WHERE", "Price", ">", "100", "ORDER", "BY", "YEAR"], "query_toks_no_value": ["select", "grape", ",", "winery", ",", "year", "from", "wine", "where", "price", ">", "value", "order", "by", "year"], "question": "What are the grapes, wineries and years for wines with price higher than 100, sorted by year?", "question_toks": ["What", "are", "the", "grapes", ",", "wineries", "and", "years", "for", "wines", "with", "price", "higher", "than", "100", ",", "sorted", "by", "year", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 12, false], null]], [0, [0, [0, 16, false], null]]]], "where": [[false, 3, [0, [0, 17, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 16, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6591", "db_id": "wine_1", "query": "select grape , appelation , name from wine where score > 93 order by name", "query_toks": ["SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "93", "ORDER", "BY", "Name"], "query_toks_no_value": ["select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "value", "order", "by", "name"], "question": "List the grape, appelation and name of wines whose score is higher than 93 ordered by Name.", "question_toks": ["List", "the", "grape", ",", "appelation", "and", "name", "of", "wines", "whose", "score", "is", "higher", "than", "93", "ordered", "by", "Name", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 93.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6592", "db_id": "wine_1", "query": "select grape , appelation , name from wine where score > 93 order by name", "query_toks": ["SELECT", "Grape", ",", "Appelation", ",", "Name", "FROM", "WINE", "WHERE", "Score", ">", "93", "ORDER", "BY", "Name"], "query_toks_no_value": ["select", "grape", ",", "appelation", ",", "name", "from", "wine", "where", "score", ">", "value", "order", "by", "name"], "question": "What are the grapes, appelations, and wines with scores above 93, sorted by Name?", "question_toks": ["What", "are", "the", "grapes", ",", "appelations", ",", "and", "wines", "with", "scores", "above", "93", ",", "sorted", "by", "Name", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 18, false], null], 93.0, null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 15, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5816", "db_id": "workshop_paper", "query": "select author from submission order by scores asc", "query_toks": ["SELECT", "Author", "FROM", "submission", "ORDER", "BY", "Scores", "ASC"], "query_toks_no_value": ["select", "author", "from", "submission", "order", "by", "scores", "asc"], "question": "List the authors of submissions in ascending order of scores.", "question_toks": ["List", "the", "authors", "of", "submissions", "in", "ascending", "order", "of", "scores", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5817", "db_id": "workshop_paper", "query": "select author from submission order by scores asc", "query_toks": ["SELECT", "Author", "FROM", "submission", "ORDER", "BY", "Scores", "ASC"], "query_toks_no_value": ["select", "author", "from", "submission", "order", "by", "scores", "asc"], "question": "Find the author for each submission and list them in ascending order of submission score.", "question_toks": ["Find", "the", "author", "for", "each", "submission", "and", "list", "them", "in", "ascending", "order", "of", "submission", "score", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5840", "db_id": "workshop_paper", "query": "select date , venue from workshop order by venue", "query_toks": ["SELECT", "Date", ",", "Venue", "FROM", "workshop", "ORDER", "BY", "Venue"], "query_toks_no_value": ["select", "date", ",", "venue", "from", "workshop", "order", "by", "venue"], "question": "Show the date and venue of each workshop in ascending alphabetical order of the venue.", "question_toks": ["Show", "the", "date", "and", "venue", "of", "each", "workshop", "in", "ascending", "alphabetical", "order", "of", "the", "venue", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5841", "db_id": "workshop_paper", "query": "select date , venue from workshop order by venue", "query_toks": ["SELECT", "Date", ",", "Venue", "FROM", "workshop", "ORDER", "BY", "Venue"], "query_toks_no_value": ["select", "date", ",", "venue", "from", "workshop", "order", "by", "venue"], "question": "Sort the each workshop in alphabetical order of the venue. Return the date and venue of each workshop.", "question_toks": ["Sort", "the", "each", "workshop", "in", "alphabetical", "order", "of", "the", "venue", ".", "Return", "the", "date", "and", "venue", "of", "each", "workshop", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 3, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1846", "db_id": "wrestler", "query": "select name from wrestler order by days_held desc", "query_toks": ["SELECT", "Name", "FROM", "wrestler", "ORDER", "BY", "Days_held", "DESC"], "query_toks_no_value": ["select", "name", "from", "wrestler", "order", "by", "days_held", "desc"], "question": "List the names of wrestlers in descending order of days held.", "question_toks": ["List", "the", "names", "of", "wrestlers", "in", "descending", "order", "of", "days", "held", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1847", "db_id": "wrestler", "query": "select name from wrestler order by days_held desc", "query_toks": ["SELECT", "Name", "FROM", "wrestler", "ORDER", "BY", "Days_held", "DESC"], "query_toks_no_value": ["select", "name", "from", "wrestler", "order", "by", "days_held", "desc"], "question": "What are the names of the wrestlers, ordered descending by days held?", "question_toks": ["What", "are", "the", "names", "of", "the", "wrestlers", ",", "ordered", "descending", "by", "days", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1858", "db_id": "wrestler", "query": "select t2.name , t1.team from elimination as t1 join wrestler as t2 on t1.wrestler_id = t2.wrestler_id order by t2.days_held desc", "query_toks": ["SELECT", "T2.Name", ",", "T1.Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "ORDER", "BY", "T2.Days_held", "DESC"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "order", "by", "t2", ".", "days_held", "desc"], "question": "List the names of wrestlers and the teams in elimination in descending order of days held.", "question_toks": ["List", "the", "names", "of", "wrestlers", "and", "the", "teams", "in", "elimination", "in", "descending", "order", "of", "days", "held", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1859", "db_id": "wrestler", "query": "select t2.name , t1.team from elimination as t1 join wrestler as t2 on t1.wrestler_id = t2.wrestler_id order by t2.days_held desc", "query_toks": ["SELECT", "T2.Name", ",", "T1.Team", "FROM", "elimination", "AS", "T1", "JOIN", "wrestler", "AS", "T2", "ON", "T1.Wrestler_ID", "=", "T2.Wrestler_ID", "ORDER", "BY", "T2.Days_held", "DESC"], "query_toks_no_value": ["select", "t2", ".", "name", ",", "t1", ".", "team", "from", "elimination", "as", "t1", "join", "wrestler", "as", "t2", "on", "t1", ".", "wrestler_id", "=", "t2", ".", "wrestler_id", "order", "by", "t2", ".", "days_held", "desc"], "question": "What are the names of wrestlers and their teams in elimination, ordered descending by days held?", "question_toks": ["What", "are", "the", "names", "of", "wrestlers", "and", "their", "teams", "in", "elimination", ",", "ordered", "descending", "by", "days", "held", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_order_by_0000", "db_id": "department_store", "query": "select order_id , customer_id from customer_orders where order_status_code = \"\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0438\u043b\u0438\u0430\u043b\" order by order_date", "query_toks": ["select", "order_id", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "``", "\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d", "\u0432", "\u0434\u0440\u0443\u0433\u043e\u0439", "\u0444\u0438\u043b\u0438\u0430\u043b", "''", "order", "by", "order_date"], "query_toks_no_value": ["select", "order_id", ",", "customer_id", "from", "customer_orders", "where", "order_status_code", "=", "value", "\u0432", "\u0434\u0440\u0443\u0433\u043e\u0439", "\u0444\u0438\u043b\u0438\u0430\u043b", "order", "by", "order_date"], "question": "Show, please, the order id, customer id for orders that was rescheduled, ordered by their order dates.", "question_toks": ["Show", ",", "please", ",", "the", "order", "id", ",", "customer", "id", "for", "orders", "that", "was", "rescheduled", ",", "ordered", "by", "their", "order", "dates", "."], "sql": {"from": {"table_units": [["table_unit", 8]], "conds": []}, "select": [false, [[0, [0, [0, 30, false], null]], [0, [0, [0, 31, false], null]]]], "where": [[false, 2, [0, [0, 32, false], null], "\"\u043f\u0435\u0440\u0435\u043d\u0435\u0441\u0451\u043d \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0438\u043b\u0438\u0430\u043b\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 33, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_order_by_0001", "db_id": "riding_club", "query": "select distinct(rank) from player where gender = \"m\" order by rank", "query_toks": ["select", "distinct", "(", "rank", ")", "from", "player", "where", "gender", "=", "``", "m", "''", "order", "by", "rank"], "query_toks_no_value": ["select", "distinct", "(", "rank", ")", "from", "player", "where", "gender", "=", "value", "order", "by", "rank"], "question": "Sort out the ranks of the men. Bring each one out once.", "question_toks": ["Sort", "out", "the", "ranks", "of", "the", "men", ".", "Bring", "each", "one", "out", "once", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_order_by_0002", "db_id": "riding_club", "query": "select distinct(rank) from player where gender = \"m\" order by rank", "query_toks": ["select", "distinct", "(", "rank", ")", "from", "player", "where", "gender", "=", "``", "m", "''", "order", "by", "rank"], "query_toks_no_value": ["select", "distinct", "(", "rank", ")", "from", "player", "where", "gender", "=", "value", "order", "by", "rank"], "question": "Sort out the distinct ranks of the men.", "question_toks": ["Sort", "out", "the", "distinct", "ranks", "of", "the", "men", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 8, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"m\"", null]], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["ORDER_BY"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0120", "db_id": "car_1", "query": "select min(weight) from cars_data where cylinders = 8 and year = 1974", "query_toks": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "8", "and", "year", "=", "1974"], "query_toks_no_value": ["select", "min", "(", "weight", ")", "from", "cars_data", "where", "cylinders", "=", "value", "and", "year", "=", "value"], "question": "What is the minimum weight of the car with 8 cylinders produced in 1974 ?", "question_toks": ["What", "is", "the", "minimum", "weight", "of", "the", "car", "with", "8", "cylinders", "produced", "in", "1974", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 21, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 8.0, null], "and", [false, 2, [0, [0, 23, false], null], 1974.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0171", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "<", "value", "and", "t4", ".", "fullname", "!", "=", "value"], "question": "Which models are lighter than 3500 but not built by the 'Ford Motor Company'?", "question_toks": ["Which", "models", "are", "lighter", "than", "3500", "but", "not", "built", "by", "the", "'Ford", "Motor", "Company", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 3500.0, null], "and", [false, 7, [0, [0, 8, false], null], "\"Ford Motor Company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0172", "db_id": "car_1", "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';", "query_toks": ["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", "'", ";"], "query_toks_no_value": ["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", "<", "value", "and", "t4", ".", "fullname", "!", "=", "value"], "question": "What are the different models wthat are lighter than 3500 but were not built by the Ford Motor Company?", "question_toks": ["What", "are", "the", "different", "models", "wthat", "are", "lighter", "than", "3500", "but", "were", "not", "built", "by", "the", "Ford", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 4], ["table_unit", 5], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 16, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 6, false], null]]}, "select": [true, [[0, [0, [0, 12, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], 3500.0, null], "and", [false, 7, [0, [0, 8, false], null], "\"Ford Motor Company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0215", "db_id": "flight_2", "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\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.DestAirport", "=", "``", "ASY", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "destairport", "=", "value"], "question": "How many 'United Airlines' flights go to Airport 'ASY'?", "question_toks": ["How", "many", "'United", "Airlines", "'", "flights", "go", "to", "Airport", "'ASY", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"ASY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0216", "db_id": "flight_2", "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\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.DestAirport", "=", "``", "ASY", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "destairport", "=", "value"], "question": "Count the number of United Airlines flights arriving in ASY Airport.", "question_toks": ["Count", "the", "number", "of", "United", "Airlines", "flights", "arriving", "in", "ASY", "Airport", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"ASY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0217", "db_id": "flight_2", "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\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.SourceAirport", "=", "``", "AHD", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "sourceairport", "=", "value"], "question": "How many 'United Airlines' flights depart from Airport 'AHD'?", "question_toks": ["How", "many", "'United", "Airlines", "'", "flights", "depart", "from", "Airport", "'AHD", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"AHD\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0218", "db_id": "flight_2", "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\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T2.Airline", "=", "T1.uid", "WHERE", "T1.Airline", "=", "``", "United", "Airlines", "''", "AND", "T2.SourceAirport", "=", "``", "AHD", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t2", ".", "airline", "=", "t1", ".", "uid", "where", "t1", ".", "airline", "=", "value", "and", "t2", ".", "sourceairport", "=", "value"], "question": "Return the number of United Airlines flights leaving from AHD Airport.", "question_toks": ["Return", "the", "number", "of", "United", "Airlines", "flights", "leaving", "from", "AHD", "Airport", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"AHD\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1", "AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0724", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country where continent = \"africa\" and governmentform = \"republic\"", "query_toks": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "GovernmentForm", "=", "``", "Republic", "''"], "query_toks_no_value": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "value", "and", "governmentform", "=", "value"], "question": "What is the average life expectancy in African countries that are republics?", "question_toks": ["What", "is", "the", "average", "life", "expectancy", "in", "African", "countries", "that", "are", "republics", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0725", "db_id": "world_1", "query": "select avg(lifeexpectancy) from country where continent = \"africa\" and governmentform = \"republic\"", "query_toks": ["SELECT", "avg", "(", "LifeExpectancy", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Africa", "''", "AND", "GovernmentForm", "=", "``", "Republic", "''"], "query_toks_no_value": ["select", "avg", "(", "lifeexpectancy", ")", "from", "country", "where", "continent", "=", "value", "and", "governmentform", "=", "value"], "question": "Give the average life expectancy for countries in Africa which are republics?", "question_toks": ["Give", "the", "average", "life", "expectancy", "for", "countries", "in", "Africa", "which", "are", "republics", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Africa\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"Republic\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0486", "db_id": "wta_1", "query": "select count(distinct winner_name) from matches where tourney_name = 'wta championships' and winner_hand = 'l'", "query_toks": ["SELECT", "count", "(", "DISTINCT", "winner_name", ")", "FROM", "matches", "WHERE", "tourney_name", "=", "'WTA", "Championships", "'", "AND", "winner_hand", "=", "'L", "'"], "query_toks_no_value": ["select", "count", "(", "distinct", "winner_name", ")", "from", "matches", "where", "tourney_name", "=", "value", "and", "winner_hand", "=", "value"], "question": "Find the number of left handed winners who participated in the WTA Championships.", "question_toks": ["Find", "the", "number", "of", "left", "handed", "winners", "who", "participated", "in", "the", "WTA", "Championships", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 34, true], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"WTA Championships\"", null], "and", [false, 2, [0, [0, 30, false], null], "\"L\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6728", "db_id": "activity_1", "query": "select count(*) from faculty where sex = 'f' and rank = \"professor\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Sex", "=", "'F", "'", "AND", "Rank", "=", "``", "Professor", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "where", "sex", "=", "value", "and", "rank", "=", "value"], "question": "Count the number of female Professors we have.", "question_toks": ["Count", "the", "number", "of", "female", "Professors", "we", "have", "."], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 19, false], null], "\"F\"", null], "and", [false, 2, [0, [0, 18, false], null], "\"Professor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6731", "db_id": "activity_1", "query": "select count(*) from faculty where rank = \"professor\" and building = \"neb\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "WHERE", "Rank", "=", "``", "Professor", "''", "AND", "building", "=", "``", "NEB", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "where", "rank", "=", "value", "and", "building", "=", "value"], "question": "How many Professors are in building NEB?", "question_toks": ["How", "many", "Professors", "are", "in", "building", "NEB", "?"], "sql": {"from": {"table_units": [["table_unit", 4]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], "\"Professor\"", null], "and", [false, 2, [0, [0, 22, false], null], "\"NEB\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6775", "db_id": "activity_1", "query": "select count(*) from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid where t1.fname = \"mark\" and t1.lname = \"giuliano\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value"], "question": "How many activities does Mark Giuliano participate in?", "question_toks": ["How", "many", "activities", "does", "Mark", "Giuliano", "participate", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"Mark\"", null], "and", [false, 2, [0, [0, 16, false], null], "\"Giuliano\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6776", "db_id": "activity_1", "query": "select count(*) from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid where t1.fname = \"mark\" and t1.lname = \"giuliano\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value"], "question": "Find the number of activities Mark Giuliano is involved in.", "question_toks": ["Find", "the", "number", "of", "activities", "Mark", "Giuliano", "is", "involved", "in", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"Mark\"", null], "and", [false, 2, [0, [0, 16, false], null], "\"Giuliano\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6777", "db_id": "activity_1", "query": "select t3.activity_name from faculty as t1 join faculty_participates_in as t2 on t1.facid = t2.facid join activity as t3 on t3.actid = t2.actid where t1.fname = \"mark\" and t1.lname = \"giuliano\"", "query_toks": ["SELECT", "T3.activity_name", "FROM", "Faculty", "AS", "T1", "JOIN", "Faculty_participates_in", "AS", "T2", "ON", "T1.facID", "=", "T2.facID", "JOIN", "Activity", "AS", "T3", "ON", "T3.actid", "=", "T2.actid", "WHERE", "T1.fname", "=", "``", "Mark", "''", "AND", "T1.lname", "=", "``", "Giuliano", "''"], "query_toks_no_value": ["select", "t3", ".", "activity_name", "from", "faculty", "as", "t1", "join", "faculty_participates_in", "as", "t2", "on", "t1", ".", "facid", "=", "t2", ".", "facid", "join", "activity", "as", "t3", "on", "t3", ".", "actid", "=", "t2", ".", "actid", "where", "t1", ".", "fname", "=", "value", "and", "t1", ".", "lname", "=", "value"], "question": "Show the names of all the activities Mark Giuliano participates in.", "question_toks": ["Show", "the", "names", "of", "all", "the", "activities", "Mark", "Giuliano", "participates", "in", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 5, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 17, false], null], "\"Mark\"", null], "and", [false, 2, [0, [0, 16, false], null], "\"Giuliano\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3653", "db_id": "baseball_1", "query": "select count(*) from player where birth_country = 'usa' and bats = 'r';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "player", "WHERE", "birth_country", "=", "'USA", "'", "AND", "bats", "=", "'R", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "player", "where", "birth_country", "=", "value", "and", "bats", "=", "value"], "question": "How many players born in USA are right-handed batters? That is, have the batter value 'R'.", "question_toks": ["How", "many", "players", "born", "in", "USA", "are", "right-handed", "batters", "?", "That", "is", ",", "have", "the", "batter", "value", "'R", "'", "."], "sql": {"from": {"table_units": [["table_unit", 16]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 186, false], null], "\"USA\"", null], "and", [false, 2, [0, [0, 200, false], null], "\"R\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3667", "db_id": "baseball_1", "query": "select count(*) from postseason as t1 join team as t2 on t1.team_id_loser = t2.team_id_br where t2.name = 'boston red stockings' and t1.year = 2009;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2009", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value"], "question": "How many times did Boston Red Stockings lose in 2009 postseason?", "question_toks": ["How", "many", "times", "did", "Boston", "Red", "Stockings", "lose", "in", "2009", "postseason", "?"], "sql": {"from": {"table_units": [["table_unit", 22], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 286, false], null], [0, 336, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 2, [0, [0, 282, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3668", "db_id": "baseball_1", "query": "select count(*) from postseason as t1 join team as t2 on t1.team_id_loser = t2.team_id_br where t2.name = 'boston red stockings' and t1.year = 2009;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "postseason", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id_loser", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2009", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "postseason", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id_loser", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value"], "question": "Count the number of times the team \"Boston Red Stockings\" lost in 2009 postseason.", "question_toks": ["Count", "the", "number", "of", "times", "the", "team", "``", "Boston", "Red", "Stockings", "''", "lost", "in", "2009", "postseason", "."], "sql": {"from": {"table_units": [["table_unit", 22], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 286, false], null], [0, 336, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 2, [0, [0, 282, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3677", "db_id": "baseball_1", "query": "select sum(t1.salary) from salary as t1 join team as t2 on t1.team_id = t2.team_id_br where t2.name = 'boston red stockings' and t1.year = 2010", "query_toks": ["SELECT", "sum", "(", "T1.salary", ")", "FROM", "salary", "AS", "T1", "JOIN", "team", "AS", "T2", "ON", "T1.team_id", "=", "T2.team_id_br", "WHERE", "T2.name", "=", "'Boston", "Red", "Stockings", "'", "AND", "T1.year", "=", "2010"], "query_toks_no_value": ["select", "sum", "(", "t1", ".", "salary", ")", "from", "salary", "as", "t1", "join", "team", "as", "t2", "on", "t1", ".", "team_id", "=", "t2", ".", "team_id_br", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "year", "=", "value"], "question": "What is the total salary paid by team Boston Red Stockings in 2010?", "question_toks": ["What", "is", "the", "total", "salary", "paid", "by", "team", "Boston", "Red", "Stockings", "in", "2010", "?"], "sql": {"from": {"table_units": [["table_unit", 20], ["table_unit", 23]], "conds": [[false, 2, [0, [0, 273, false], null], [0, 336, false], null]]}, "select": [false, [[4, [0, [0, 276, false], null]]]], "where": [[false, 2, [0, [0, 331, false], null], "\"Boston Red Stockings\"", null], "and", [false, 2, [0, [0, 272, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4266", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"linda\" and t3.lname = \"smith\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Linda", "''", "AND", "t3.lname", "=", "``", "Smith", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value"], "question": "How many clubs does \"Linda Smith\" belong to?", "question_toks": ["How", "many", "clubs", "does", "``", "Linda", "Smith", "''", "belong", "to", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Linda\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4267", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"linda\" and t3.lname = \"smith\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Linda", "''", "AND", "t3.lname", "=", "``", "Smith", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value"], "question": "How many clubs does \"Linda Smith\" have membership for?", "question_toks": ["How", "many", "clubs", "does", "``", "Linda", "Smith", "''", "have", "membership", "for", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Linda\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Smith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4268", "db_id": "club_1", "query": "select count(*) from club as t1 join member_of_club as t2 on t1.clubid = t2.clubid join student as t3 on t2.stuid = t3.stuid where t3.fname = \"tracy\" and t3.lname = \"kim\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club", "AS", "t1", "JOIN", "member_of_club", "AS", "t2", "ON", "t1.clubid", "=", "t2.clubid", "JOIN", "student", "AS", "t3", "ON", "t2.stuid", "=", "t3.stuid", "WHERE", "t3.fname", "=", "``", "Tracy", "''", "AND", "t3.lname", "=", "``", "Kim", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club", "as", "t1", "join", "member_of_club", "as", "t2", "on", "t1", ".", "clubid", "=", "t2", ".", "clubid", "join", "student", "as", "t3", "on", "t2", ".", "stuid", "=", "t3", ".", "stuid", "where", "t3", ".", "fname", "=", "value", "and", "t3", ".", "lname", "=", "value"], "question": "Find the number of clubs where \"Tracy Kim\" is a member.", "question_toks": ["Find", "the", "number", "of", "clubs", "where", "``", "Tracy", "Kim", "''", "is", "a", "member", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Tracy\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Kim\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3325", "db_id": "college_1", "query": "select t1.stu_lname from student as t1 join enroll as t2 on t1.stu_num = t2.stu_num where t2.enroll_grade = 'a' and t2.class_code = 10018", "query_toks": ["SELECT", "T1.stu_lname", "FROM", "student", "AS", "T1", "JOIN", "enroll", "AS", "T2", "ON", "T1.stu_num", "=", "T2.stu_num", "WHERE", "T2.enroll_grade", "=", "'A", "'", "AND", "T2.class_code", "=", "10018"], "query_toks_no_value": ["select", "t1", ".", "stu_lname", "from", "student", "as", "t1", "join", "enroll", "as", "t2", "on", "t1", ".", "stu_num", "=", "t2", ".", "stu_num", "where", "t2", ".", "enroll_grade", "=", "value", "and", "t2", ".", "class_code", "=", "value"], "question": "What is the last name of the student who got a grade A in the class with code 10018.", "question_toks": ["What", "is", "the", "last", "name", "of", "the", "student", "who", "got", "a", "grade", "A", "in", "the", "class", "with", "code", "10018", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 25, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], "\"A\"", null], "and", [false, 2, [0, [0, 24, false], null], 10018.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5898", "db_id": "cre_Theme_park", "query": "select avg(price_range) from hotels where star_rating_code = \"5\" and pets_allowed_yn = 1", "query_toks": ["SELECT", "avg", "(", "price_range", ")", "FROM", "HOTELS", "WHERE", "star_rating_code", "=", "``", "5", "''", "AND", "pets_allowed_yn", "=", "1"], "query_toks_no_value": ["select", "avg", "(", "price_range", ")", "from", "hotels", "where", "star_rating_code", "=", "value", "and", "pets_allowed_yn", "=", "value"], "question": "What is the average price range of five star hotels that allow pets?", "question_toks": ["What", "is", "the", "average", "price", "range", "of", "five", "star", "hotels", "that", "allow", "pets", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"5\"", null], "and", [false, 2, [0, [0, 15, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6133", "db_id": "customers_and_addresses", "query": "select address_content from addresses where city = \"east julianaside\" and state_province_county = \"texas\" union select address_content from addresses where city = \"gleasonmouth\" and state_province_county = \"arizona\"", "query_toks": ["SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "East", "Julianaside", "''", "AND", "state_province_county", "=", "``", "Texas", "''", "UNION", "SELECT", "address_content", "FROM", "addresses", "WHERE", "city", "=", "``", "Gleasonmouth", "''", "AND", "state_province_county", "=", "``", "Arizona", "''"], "query_toks_no_value": ["select", "address_content", "from", "addresses", "where", "city", "=", "value", "and", "state_province_county", "=", "value", "union", "select", "address_content", "from", "addresses", "where", "city", "=", "value", "and", "state_province_county", "=", "value"], "question": "Find all the addresses in East Julianaside, Texas or in Gleasonmouth, Arizona.", "question_toks": ["Find", "all", "the", "addresses", "in", "East", "Julianaside", ",", "Texas", "or", "in", "Gleasonmouth", ",", "Arizona", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"East Julianaside\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Texas\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], "\"Gleasonmouth\"", null], "and", [false, 2, [0, [0, 5, false], null], "\"Arizona\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6635", "db_id": "driving_school", "query": "select date_left_staff from staff where first_name = \"janessa\" and last_name = \"sawayn\";", "query_toks": ["SELECT", "date_left_staff", "FROM", "Staff", "WHERE", "first_name", "=", "``", "Janessa", "''", "AND", "last_name", "=", "``", "Sawayn", "''", ";"], "query_toks_no_value": ["select", "date_left_staff", "from", "staff", "where", "first_name", "=", "value", "and", "last_name", "=", "value"], "question": "When did the staff member Janessa Sawayn leave the company?", "question_toks": ["When", "did", "the", "staff", "member", "Janessa", "Sawayn", "leave", "the", "company", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Janessa\"", null], "and", [false, 2, [0, [0, 12, false], null], "\"Sawayn\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0393", "db_id": "flight_1", "query": "select avg(price) from flight where origin = \"los angeles\" and destination = \"honolulu\"", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value"], "question": "What is the average price for flights from Los Angeles to Honolulu.", "question_toks": ["What", "is", "the", "average", "price", "for", "flights", "from", "Los", "Angeles", "to", "Honolulu", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0394", "db_id": "flight_1", "query": "select avg(price) from flight where origin = \"los angeles\" and destination = \"honolulu\"", "query_toks": ["SELECT", "avg", "(", "price", ")", "FROM", "Flight", "WHERE", "origin", "=", "``", "Los", "Angeles", "''", "AND", "destination", "=", "``", "Honolulu", "''"], "query_toks_no_value": ["select", "avg", "(", "price", ")", "from", "flight", "where", "origin", "=", "value", "and", "destination", "=", "value"], "question": "What is the average price for flights from LA to Honolulu?", "question_toks": ["What", "is", "the", "average", "price", "for", "flights", "from", "LA", "to", "Honolulu", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Los Angeles\"", null], "and", [false, 2, [0, [0, 3, false], null], "\"Honolulu\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6871", "db_id": "flight_4", "query": "select count(*) from routes as t1 join airports as t2 on t1.dst_apid = t2.apid join airlines as t3 on t1.alid = t3.alid where t2.country = 'italy' and t3.name = 'american airlines'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "routes", "AS", "T1", "JOIN", "airports", "AS", "T2", "ON", "T1.dst_apid", "=", "T2.apid", "JOIN", "airlines", "AS", "T3", "ON", "T1.alid", "=", "T3.alid", "WHERE", "T2.country", "=", "'Italy", "'", "AND", "T3.name", "=", "'American", "Airlines", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "routes", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "dst_apid", "=", "t2", ".", "apid", "join", "airlines", "as", "t3", "on", "t1", ".", "alid", "=", "t3", ".", "alid", "where", "t2", ".", "country", "=", "value", "and", "t3", ".", "name", "=", "value"], "question": "Return the number of routes with destination airport in Italy operated by the airline with name 'American Airlines'.", "question_toks": ["Return", "the", "number", "of", "routes", "with", "destination", "airport", "in", "Italy", "operated", "by", "the", "airline", "with", "name", "'American", "Airlines", "'", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 9, false], null], "and", [false, 2, [0, [0, 6, false], null], [0, 18, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 12, false], null], "\"Italy\"", null], "and", [false, 2, [0, [0, 19, false], null], "\"American Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2222", "db_id": "formula_1", "query": "select max(t2.fastestlapspeed) from races as t1 join results as t2 on t1.raceid = t2.raceid where t1.year = 2008 and t1.name = \"monaco grand prix\"", "query_toks": ["SELECT", "max", "(", "T2.fastestlapspeed", ")", "FROM", "races", "AS", "T1", "JOIN", "results", "AS", "T2", "ON", "T1.raceid", "=", "T2.raceid", "WHERE", "T1.year", "=", "2008", "AND", "T1.name", "=", "``", "Monaco", "Grand", "Prix", "''"], "query_toks_no_value": ["select", "max", "(", "t2", ".", "fastestlapspeed", ")", "from", "races", "as", "t1", "join", "results", "as", "t2", "on", "t1", ".", "raceid", "=", "t2", ".", "raceid", "where", "t1", ".", "year", "=", "value", "and", "t1", ".", "name", "=", "value"], "question": "What is the maximum fastest lap speed in the Monaco Grand Prix in 2008?", "question_toks": ["What", "is", "the", "maximum", "fastest", "lap", "speed", "in", "the", "Monaco", "Grand", "Prix", "in", "2008", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 44, false], null]]}, "select": [false, [[1, [0, [0, 59, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 2008.0, null], "and", [false, 2, [0, [0, 14, false], null], "\"Monaco Grand Prix\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2579", "db_id": "inn_1", "query": "select kids from reservations where firstname = \"roy\" and lastname = \"sweazy\";", "query_toks": ["SELECT", "kids", "FROM", "Reservations", "WHERE", "FirstName", "=", "``", "ROY", "''", "AND", "LastName", "=", "``", "SWEAZY", "''", ";"], "query_toks_no_value": ["select", "kids", "from", "reservations", "where", "firstname", "=", "value", "and", "lastname", "=", "value"], "question": "Find the number of kids staying in the rooms reserved by a person called ROY SWEAZ.", "question_toks": ["Find", "the", "number", "of", "kids", "staying", "in", "the", "rooms", "reserved", "by", "a", "person", "called", "ROY", "SWEAZ", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 16, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"ROY\"", null], "and", [false, 2, [0, [0, 13, false], null], "\"SWEAZY\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0947", "db_id": "medicine_enzyme_interaction", "query": "select t1.name from enzyme as t1 join medicine_enzyme_interaction as t2 on t1.id = t2.enzyme_id join medicine as t3 on t2.medicine_id = t3.id where t3.name = 'amisulpride' and t2.interaction_type = 'inhibitor'", "query_toks": ["SELECT", "T1.name", "FROM", "enzyme", "AS", "T1", "JOIN", "medicine_enzyme_interaction", "AS", "T2", "ON", "T1.id", "=", "T2.enzyme_id", "JOIN", "medicine", "AS", "T3", "ON", "T2.medicine_id", "=", "T3.id", "WHERE", "T3.name", "=", "'Amisulpride", "'", "AND", "T2.interaction_type", "=", "'inhibitor", "'"], "query_toks_no_value": ["select", "t1", ".", "name", "from", "enzyme", "as", "t1", "join", "medicine_enzyme_interaction", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "enzyme_id", "join", "medicine", "as", "t3", "on", "t2", ".", "medicine_id", "=", "t3", ".", "id", "where", "t3", ".", "name", "=", "value", "and", "t2", ".", "interaction_type", "=", "value"], "question": "What are the names of enzymes in the medicine named 'Amisulpride' that can serve as an 'inhibitor'?", "question_toks": ["What", "are", "the", "names", "of", "enzymes", "in", "the", "medicine", "named", "'Amisulpride", "'", "that", "can", "serve", "as", "an", "'inhibitor", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 12, false], null], "and", [false, 2, [0, [0, 13, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Amisulpride\"", null], "and", [false, 2, [0, [0, 14, false], null], "\"inhibitor\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2437", "db_id": "movie_1", "query": "select title from movie where director = 'james cameron' and year > 2000", "query_toks": ["SELECT", "title", "FROM", "Movie", "WHERE", "director", "=", "'James", "Cameron", "'", "AND", "YEAR", ">", "2000"], "query_toks_no_value": ["select", "title", "from", "movie", "where", "director", "=", "value", "and", "year", ">", "value"], "question": "What are the titles of all movies that James Cameron directed after 2000?", "question_toks": ["What", "are", "the", "titles", "of", "all", "movies", "that", "James", "Cameron", "directed", "after", "2000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"James Cameron\"", null], "and", [false, 3, [0, [0, 3, false], null], 2000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5204", "db_id": "music_2", "query": "select t4.instrument from performance as t1 join band as t2 on t1.bandmate = t2.id join songs as t3 on t3.songid = t1.songid join instruments as t4 on t4.songid = t3.songid and t4.bandmateid = t2.id where t2.lastname = \"heilo\" and t3.title = \"le pop\"", "query_toks": ["SELECT", "T4.instrument", "FROM", "Performance", "AS", "T1", "JOIN", "Band", "AS", "T2", "ON", "T1.bandmate", "=", "T2.id", "JOIN", "Songs", "AS", "T3", "ON", "T3.SongId", "=", "T1.SongId", "JOIN", "Instruments", "AS", "T4", "ON", "T4.songid", "=", "T3.songid", "AND", "T4.bandmateid", "=", "T2.id", "WHERE", "T2.lastname", "=", "``", "Heilo", "''", "AND", "T3.title", "=", "``", "Le", "Pop", "''"], "query_toks_no_value": ["select", "t4", ".", "instrument", "from", "performance", "as", "t1", "join", "band", "as", "t2", "on", "t1", ".", "bandmate", "=", "t2", ".", "id", "join", "songs", "as", "t3", "on", "t3", ".", "songid", "=", "t1", ".", "songid", "join", "instruments", "as", "t4", "on", "t4", ".", "songid", "=", "t3", ".", "songid", "and", "t4", ".", "bandmateid", "=", "t2", ".", "id", "where", "t2", ".", "lastname", "=", "value", "and", "t3", ".", "title", "=", "value"], "question": "What instrument did the musician with last name \"Heilo\" use in the song \"Le Pop\"?", "question_toks": ["What", "instrument", "did", "the", "musician", "with", "last", "name", "``", "Heilo", "''", "use", "in", "the", "song", "``", "Le", "Pop", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 2], ["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 8, false], null], "and", [false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 1, false], null], "and", [false, 2, [0, [0, 12, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Heilo\"", null], "and", [false, 2, [0, [0, 2, false], null], "\"Le Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4458", "db_id": "network_2", "query": "select t2.friend from person as t1 join personfriend as t2 on t1.name = t2.friend where t2.name = 'alice' and t1.gender = 'female'", "query_toks": ["SELECT", "T2.friend", "FROM", "Person", "AS", "T1", "JOIN", "PersonFriend", "AS", "T2", "ON", "T1.name", "=", "T2.friend", "WHERE", "T2.name", "=", "'Alice", "'", "AND", "T1.gender", "=", "'female", "'"], "query_toks_no_value": ["select", "t2", ".", "friend", "from", "person", "as", "t1", "join", "personfriend", "as", "t2", "on", "t1", ".", "name", "=", "t2", ".", "friend", "where", "t2", ".", "name", "=", "value", "and", "t1", ".", "gender", "=", "value"], "question": "Find the female friends of Alice.", "question_toks": ["Find", "the", "female", "friends", "of", "Alice", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 7, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"Alice\"", null], "and", [false, 2, [0, [0, 4, false], null], "\"female\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5562", "db_id": "products_gen_characteristics", "query": "select t3.characteristic_name from products as t1 join product_characteristics as t2 on t1.product_id = t2.product_id join characteristics as t3 on t2.characteristic_id = t3.characteristic_id where t1.product_name = \"sesame\" and t3.characteristic_type_code = \"grade\"", "query_toks": ["SELECT", "t3.characteristic_name", "FROM", "products", "AS", "t1", "JOIN", "product_characteristics", "AS", "t2", "ON", "t1.product_id", "=", "t2.product_id", "JOIN", "CHARACTERISTICS", "AS", "t3", "ON", "t2.characteristic_id", "=", "t3.characteristic_id", "WHERE", "t1.product_name", "=", "``", "sesame", "''", "AND", "t3.characteristic_type_code", "=", "``", "Grade", "''"], "query_toks_no_value": ["select", "t3", ".", "characteristic_name", "from", "products", "as", "t1", "join", "product_characteristics", "as", "t2", "on", "t1", ".", "product_id", "=", "t2", ".", "product_id", "join", "characteristics", "as", "t3", "on", "t2", ".", "characteristic_id", "=", "t3", ".", "characteristic_id", "where", "t1", ".", "product_name", "=", "value", "and", "t3", ".", "characteristic_type_code", "=", "value"], "question": "List all characteristics of product named \"sesame\" with type code \"Grade\".", "question_toks": ["List", "all", "characteristics", "of", "product", "named", "``", "sesame", "''", "with", "type", "code", "``", "Grade", "''", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 21, false], null], "and", [false, 2, [0, [0, 22, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"sesame\"", null], "and", [false, 2, [0, [0, 9, false], null], "\"Grade\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0559", "db_id": "store_1", "query": "select sum(total) from invoices where billing_city = \"chicago\" and billing_state = \"il\";", "query_toks": ["SELECT", "sum", "(", "total", ")", "FROM", "invoices", "WHERE", "billing_city", "=", "``", "Chicago", "''", "AND", "billing_state", "=", "``", "IL", "''", ";"], "query_toks_no_value": ["select", "sum", "(", "total", ")", "from", "invoices", "where", "billing_city", "=", "value", "and", "billing_state", "=", "value"], "question": "List total amount of invoice from Chicago, IL.", "question_toks": ["List", "total", "amount", "of", "invoice", "from", "Chicago", ",", "IL", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[4, [0, [0, 46, false], null]]]], "where": [[false, 2, [0, [0, 42, false], null], "\"Chicago\"", null], "and", [false, 2, [0, [0, 43, false], null], "\"IL\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_in_sql_but_not_in_nl_0069", "db_id": "car_1", "query": "select 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", "query_toks": ["select", "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"], "query_toks_no_value": ["select", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "value", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<=", "value"], "question": "Among the cars with more than lowest horsepower, which ones do not have more than 3 cylinders? List the car makeid.", "question_toks": ["Among", "the", "cars", "with", "more", "than", "lowest", "horsepower", ",", "which", "ones", "do", "not", "have", "more", "than", "3", "cylinders", "?", "List", "the", "car", "makeid", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 6, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_and_in_sql_but_not_in_nl_0070", "db_id": "car_1", "query": "select 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", "query_toks": ["select", "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"], "query_toks_no_value": ["select", "t2", ".", "make", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t1", ".", "horsepower", ">", "value", "select", "min", "(", "horsepower", ")", "from", "cars_data", ")", "and", "t1", ".", "cylinders", "<", "value"], "question": "Among the cars that do not have the minimum horsepower , what are the names of all those with less than 4 cylinders ?", "question_toks": ["Among", "the", "cars", "that", "do", "not", "have", "the", "minimum", "horsepower", ",", "what", "are", "the", "names", "of", "all", "those", "with", "less", "than", "4", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]]]], "where": [[false, 3, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[2, [0, [0, 20, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null], "and", [false, 4, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AND_IN_SQL_BUT_NOT_IN_NL"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0196", "db_id": "bike_1", "query": "select distinct zip_code from weather except select distinct zip_code from weather where max_dew_point_f >= 70", "query_toks": ["SELECT", "DISTINCT", "zip_code", "FROM", "weather", "EXCEPT", "SELECT", "DISTINCT", "zip_code", "FROM", "weather", "WHERE", "max_dew_point_f", ">", "=", "70"], "query_toks_no_value": ["select", "distinct", "zip_code", "from", "weather", "except", "select", "distinct", "zip_code", "from", "weather", "where", "max_dew_point_f", ">", "=", "value"], "question": "What are all the different zip codes that have a maximum dew point that was always below 70?", "question_toks": ["What", "are", "all", "the", "different", "zip", "codes", "that", "have", "a", "maximum", "dew", "point", "that", "was", "always", "below", "70", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [true, [[0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 27, false], null], 70.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0200", "db_id": "bike_1", "query": "select date from weather where mean_sea_level_pressure_inches between 30.3 and 31", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "mean_sea_level_pressure_inches", "BETWEEN", "30.3", "AND", "31"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "mean_sea_level_pressure_inches", "between", "value", "and", "value"], "question": "What are the dates that have an average sea level pressure between 30.3 and 31?", "question_toks": ["What", "are", "the", "dates", "that", "have", "an", "average", "sea", "level", "pressure", "between", "30.3", "and", "31", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 34, false], null], 30.3, 31.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0016", "db_id": "concert_singer", "query": "select max(capacity), average from stadium", "query_toks": ["select", "max", "(", "capacity", ")", ",", "average", "from", "stadium"], "query_toks_no_value": ["select", "max", "(", "capacity", ")", ",", "average", "from", "stadium"], "question": "What is the maximum capacity and the average of all stadiums ?", "question_toks": ["What", "is", "the", "maximum", "capacity", "and", "the", "average", "of", "all", "stadiums", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 4, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0018", "db_id": "concert_singer", "query": "select name , capacity from stadium order by average desc limit 1", "query_toks": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "average", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "name", ",", "capacity", "from", "stadium", "order", "by", "average", "desc", "limit", "value"], "question": "What is the name and capacity for the stadium with highest average attendance?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "highest", "average", "attendance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0019", "db_id": "concert_singer", "query": "select name , capacity from stadium order by average desc limit 1", "query_toks": ["SELECT", "name", ",", "capacity", "FROM", "stadium", "ORDER", "BY", "average", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "name", ",", "capacity", "from", "stadium", "order", "by", "average", "desc", "limit", "value"], "question": "What is the name and capacity for the stadium with the highest average attendance?", "question_toks": ["What", "is", "the", "name", "and", "capacity", "for", "the", "stadium", "with", "the", "highest", "average", "attendance", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 7, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1278", "db_id": "game_injury", "query": "select average_attendance from stadium where capacity_percentage > 100", "query_toks": ["SELECT", "average_attendance", "FROM", "stadium", "WHERE", "capacity_percentage", ">", "100"], "query_toks_no_value": ["select", "average_attendance", "from", "stadium", "where", "capacity_percentage", ">", "value"], "question": "What is the average attendance of stadiums with capacity percentage higher than 100%?", "question_toks": ["What", "is", "the", "average", "attendance", "of", "stadiums", "with", "capacity", "percentage", "higher", "than", "100", "%", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 3, [0, [0, 6, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3712", "db_id": "mountain_photos", "query": "select brand , name from camera_lens order by max_aperture desc", "query_toks": ["SELECT", "brand", ",", "name", "FROM", "camera_lens", "ORDER", "BY", "max_aperture", "DESC"], "query_toks_no_value": ["select", "brand", ",", "name", "from", "camera_lens", "order", "by", "max_aperture", "desc"], "question": "Find the brand and name for each camera lens, and sort in descending order of maximum aperture.", "question_toks": ["Find", "the", "brand", "and", "name", "for", "each", "camera", "lens", ",", "and", "sort", "in", "descending", "order", "of", "maximum", "aperture", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3349", "db_id": "sports_competition", "query": "select count(*) from club_rank where total < 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club_rank", "WHERE", "Total", "<", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club_rank", "where", "total", "<", "value"], "question": "How many clubs have total medals less than 10?", "question_toks": ["How", "many", "clubs", "have", "total", "medals", "less", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3350", "db_id": "sports_competition", "query": "select count(*) from club_rank where total < 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "club_rank", "WHERE", "Total", "<", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "club_rank", "where", "total", "<", "value"], "question": "What is the total number of clubs that have less than 10 medals in total?", "question_toks": ["What", "is", "the", "total", "number", "of", "clubs", "that", "have", "less", "than", "10", "medals", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 4, [0, [0, 10, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2705", "db_id": "storm_record", "query": "select sum(number_deaths) , sum(damage_millions_usd) from storm where max_speed > (select avg(max_speed) from storm)", "query_toks": ["SELECT", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_USD", ")", "FROM", "storm", "WHERE", "max_speed", ">", "(", "SELECT", "avg", "(", "max_speed", ")", "FROM", "storm", ")"], "query_toks_no_value": ["select", "sum", "(", "number_deaths", ")", ",", "sum", "(", "damage_millions_usd", ")", "from", "storm", "where", "max_speed", ">", "(", "select", "avg", "(", "max_speed", ")", "from", "storm", ")"], "question": "Return the total number of deaths and total damange in millions for storms that had a max speed greater than the average.", "question_toks": ["Return", "the", "total", "number", "of", "deaths", "and", "total", "damange", "in", "millions", "for", "storms", "that", "had", "a", "max", "speed", "greater", "than", "the", "average", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]], [4, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2706", "db_id": "storm_record", "query": "select name , damage_millions_usd from storm order by max_speed desc", "query_toks": ["SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "max_speed", "DESC"], "query_toks_no_value": ["select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "max_speed", "desc"], "question": "List name and damage for all storms in a descending order of max speed.", "question_toks": ["List", "name", "and", "damage", "for", "all", "storms", "in", "a", "descending", "order", "of", "max", "speed", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2707", "db_id": "storm_record", "query": "select name , damage_millions_usd from storm order by max_speed desc", "query_toks": ["SELECT", "name", ",", "damage_millions_USD", "FROM", "storm", "ORDER", "BY", "max_speed", "DESC"], "query_toks_no_value": ["select", "name", ",", "damage_millions_usd", "from", "storm", "order", "by", "max_speed", "desc"], "question": "What are the names and damage in millions for storms, ordered by their max speeds descending?", "question_toks": ["What", "are", "the", "names", "and", "damage", "in", "millions", "for", "storms", ",", "ordered", "by", "their", "max", "speeds", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 4, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2716", "db_id": "storm_record", "query": "select t1.name , t1.max_speed from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", ",", "T1.max_speed", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "max_speed", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the storm name and max speed which affected the greatest number of regions?", "question_toks": ["What", "is", "the", "storm", "name", "and", "max", "speed", "which", "affected", "the", "greatest", "number", "of", "regions", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_2717", "db_id": "storm_record", "query": "select t1.name , t1.max_speed from storm as t1 join affected_region as t2 on t1.storm_id = t2.storm_id group by t1.storm_id order by count(*) desc limit 1", "query_toks": ["SELECT", "T1.name", ",", "T1.max_speed", "FROM", "storm", "AS", "T1", "JOIN", "affected_region", "AS", "T2", "ON", "T1.storm_id", "=", "T2.storm_id", "GROUP", "BY", "T1.storm_id", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "name", ",", "t1", ".", "max_speed", "from", "storm", "as", "t1", "join", "affected_region", "as", "t2", "on", "t1", ".", "storm_id", "=", "t2", ".", "storm_id", "group", "by", "t1", ".", "storm_id", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Return the name and max speed of the storm that affected the most regions.", "question_toks": ["Return", "the", "name", "and", "max", "speed", "of", "the", "storm", "that", "affected", "the", "most", "regions", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5855", "db_id": "tracking_share_transactions", "query": "select max(share_count) from transactions where amount_of_transaction < 10000", "query_toks": ["SELECT", "max", "(", "share_count", ")", "FROM", "TRANSACTIONS", "WHERE", "amount_of_transaction", "<", "10000"], "query_toks_no_value": ["select", "max", "(", "share_count", ")", "from", "transactions", "where", "amount_of_transaction", "<", "value"], "question": "Show the maximum share count of transactions where the amount is smaller than 10000", "question_toks": ["Show", "the", "maximum", "share", "count", "of", "transactions", "where", "the", "amount", "is", "smaller", "than", "10000"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[1, [0, [0, 13, false], null]]]], "where": [[false, 4, [0, [0, 12, false], null], 10000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5856", "db_id": "tracking_share_transactions", "query": "select date_of_transaction from transactions where share_count > 100 or amount_of_transaction > 1000", "query_toks": ["SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "share_count", ">", "100", "OR", "amount_of_transaction", ">", "1000"], "query_toks_no_value": ["select", "date_of_transaction", "from", "transactions", "where", "share_count", ">", "value", "or", "amount_of_transaction", ">", "value"], "question": "Show the dates of transactions if the share count is bigger than 100 or the amount is bigger than 1000.", "question_toks": ["Show", "the", "dates", "of", "transactions", "if", "the", "share", "count", "is", "bigger", "than", "100", "or", "the", "amount", "is", "bigger", "than", "1000", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 100.0, null], "or", [false, 3, [0, [0, 12, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5857", "db_id": "tracking_share_transactions", "query": "select t1.transaction_type_description , t2.date_of_transaction from ref_transaction_types as t1 join transactions as t2 on t1.transaction_type_code = t2.transaction_type_code where t2.share_count < 10", "query_toks": ["SELECT", "T1.transaction_type_description", ",", "T2.date_of_transaction", "FROM", "Ref_Transaction_Types", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.transaction_type_code", "=", "T2.transaction_type_code", "WHERE", "T2.share_count", "<", "10"], "query_toks_no_value": ["select", "t1", ".", "transaction_type_description", ",", "t2", ".", "date_of_transaction", "from", "ref_transaction_types", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "transaction_type_code", "=", "t2", ".", "transaction_type_code", "where", "t2", ".", "share_count", "<", "value"], "question": "Show the transaction type descriptions and dates if the share count is smaller than 10.", "question_toks": ["Show", "the", "transaction", "type", "descriptions", "and", "dates", "if", "the", "share", "count", "is", "smaller", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5858", "db_id": "tracking_share_transactions", "query": "select t1.investor_details from investors as t1 join transactions as t2 on t1.investor_id = t2.investor_id where t2.share_count > 100", "query_toks": ["SELECT", "T1.Investor_details", "FROM", "INVESTORS", "AS", "T1", "JOIN", "TRANSACTIONS", "AS", "T2", "ON", "T1.investor_id", "=", "T2.investor_id", "WHERE", "T2.share_count", ">", "100"], "query_toks_no_value": ["select", "t1", ".", "investor_details", "from", "investors", "as", "t1", "join", "transactions", "as", "t2", "on", "t1", ".", "investor_id", "=", "t2", ".", "investor_id", "where", "t2", ".", "share_count", ">", "value"], "question": "Show details of all investors if they make any transaction with share count greater than 100.", "question_toks": ["Show", "details", "of", "all", "investors", "if", "they", "make", "any", "transaction", "with", "share", "count", "greater", "than", "100", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5864", "db_id": "tracking_share_transactions", "query": "select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.transaction_id join transactions as t3 on t2.transaction_id = t3.transaction_id where t3.share_count < 50", "query_toks": ["SELECT", "T1.lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1.lot_id", "=", "T2.transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2.transaction_id", "=", "T3.transaction_id", "WHERE", "T3.share_count", "<", "50"], "query_toks_no_value": ["select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "share_count", "<", "value"], "question": "What are the lot details of lots associated with transactions with share count smaller than 50?", "question_toks": ["What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "with", "share", "count", "smaller", "than", "50", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 4, [0, [0, 13, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5865", "db_id": "tracking_share_transactions", "query": "select t1.lot_details from lots as t1 join transactions_lots as t2 on t1.lot_id = t2.transaction_id join transactions as t3 on t2.transaction_id = t3.transaction_id where t3.share_count > 100 and t3.transaction_type_code = \"pur\"", "query_toks": ["SELECT", "T1.lot_details", "FROM", "LOTS", "AS", "T1", "JOIN", "TRANSACTIONS_LOTS", "AS", "T2", "ON", "T1.lot_id", "=", "T2.transaction_id", "JOIN", "TRANSACTIONS", "AS", "T3", "ON", "T2.transaction_id", "=", "T3.transaction_id", "WHERE", "T3.share_count", ">", "100", "AND", "T3.transaction_type_code", "=", "``", "PUR", "''"], "query_toks_no_value": ["select", "t1", ".", "lot_details", "from", "lots", "as", "t1", "join", "transactions_lots", "as", "t2", "on", "t1", ".", "lot_id", "=", "t2", ".", "transaction_id", "join", "transactions", "as", "t3", "on", "t2", ".", "transaction_id", "=", "t3", ".", "transaction_id", "where", "t3", ".", "share_count", ">", "value", "and", "t3", ".", "transaction_type_code", "=", "value"], "question": "What are the lot details of lots associated with transactions whose share count is bigger than 100 and whose type code is \"PUR\"?", "question_toks": ["What", "are", "the", "lot", "details", "of", "lots", "associated", "with", "transactions", "whose", "share", "count", "is", "bigger", "than", "100", "and", "whose", "type", "code", "is", "``", "PUR", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 6], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 19, false], null], "and", [false, 2, [0, [0, 19, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 100.0, null], "and", [false, 2, [0, [0, 10, false], null], "\"PUR\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5867", "db_id": "tracking_share_transactions", "query": "select transaction_type_code , max(share_count) , min(share_count) from transactions group by transaction_type_code", "query_toks": ["SELECT", "transaction_type_code", ",", "max", "(", "share_count", ")", ",", "min", "(", "share_count", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "transaction_type_code"], "query_toks_no_value": ["select", "transaction_type_code", ",", "max", "(", "share_count", ")", ",", "min", "(", "share_count", ")", "from", "transactions", "group", "by", "transaction_type_code"], "question": "Show the maximum and minimum share count of different transaction types.", "question_toks": ["Show", "the", "maximum", "and", "minimum", "share", "count", "of", "different", "transaction", "types", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 10, false], null]], [1, [0, [0, 13, false], null]], [2, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5868", "db_id": "tracking_share_transactions", "query": "select investor_id , avg(share_count) from transactions group by investor_id", "query_toks": ["SELECT", "investor_id", ",", "avg", "(", "share_count", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id"], "query_toks_no_value": ["select", "investor_id", ",", "avg", "(", "share_count", ")", "from", "transactions", "group", "by", "investor_id"], "question": "Show the average share count of transactions for different investors.", "question_toks": ["Show", "the", "average", "share", "count", "of", "transactions", "for", "different", "investors", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5869", "db_id": "tracking_share_transactions", "query": "select investor_id , avg(share_count) from transactions group by investor_id order by avg(share_count)", "query_toks": ["SELECT", "investor_id", ",", "avg", "(", "share_count", ")", "FROM", "TRANSACTIONS", "GROUP", "BY", "investor_id", "ORDER", "BY", "avg", "(", "share_count", ")"], "query_toks_no_value": ["select", "investor_id", ",", "avg", "(", "share_count", ")", "from", "transactions", "group", "by", "investor_id", "order", "by", "avg", "(", "share_count", ")"], "question": "Show the average share count of transactions each each investor, ordered by average share count.", "question_toks": ["Show", "the", "average", "share", "count", "of", "transactions", "each", "each", "investor", ",", "ordered", "by", "average", "share", "count", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]], [5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["asc", [[0, [5, 13, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5882", "db_id": "tracking_share_transactions", "query": "select date_of_transaction from transactions where share_count >= 100 or amount_of_transaction >= 100", "query_toks": ["SELECT", "date_of_transaction", "FROM", "TRANSACTIONS", "WHERE", "share_count", ">", "=", "100", "OR", "amount_of_transaction", ">", "=", "100"], "query_toks_no_value": ["select", "date_of_transaction", "from", "transactions", "where", "share_count", ">", "=", "value", "or", "amount_of_transaction", ">", "=", "value"], "question": "What are the dates of transactions with at least 100 share count or amount bigger than 100?", "question_toks": ["What", "are", "the", "dates", "of", "transactions", "with", "at", "least", "100", "share", "count", "or", "amount", "bigger", "than", "100", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 5, [0, [0, 13, false], null], 100.0, null], "or", [false, 5, [0, [0, 12, false], null], 100.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4817", "db_id": "aircraft", "query": "select t1.aircraft , t1.description from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.total_passengers > 10000000", "query_toks": ["SELECT", "T1.Aircraft", ",", "T1.Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Total_Passengers", ">", "10000000"], "query_toks_no_value": ["select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "total_passengers", ">", "value"], "question": "Please show the names and descriptions of aircrafts associated with airports that have a total number of passengers bigger than 10000000.", "question_toks": ["Please", "show", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "airports", "that", "have", "a", "total", "number", "of", "passengers", "bigger", "than", "10000000", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], 10000000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4818", "db_id": "aircraft", "query": "select t1.aircraft , t1.description from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t3.total_passengers > 10000000", "query_toks": ["SELECT", "T1.Aircraft", ",", "T1.Description", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T3.Total_Passengers", ">", "10000000"], "query_toks_no_value": ["select", "t1", ".", "aircraft", ",", "t1", ".", "description", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t3", ".", "total_passengers", ">", "value"], "question": "What are the names and descriptions of aircrafts associated with an airport that has more total passengers than 10000000?", "question_toks": ["What", "are", "the", "names", "and", "descriptions", "of", "aircrafts", "associated", "with", "an", "airport", "that", "has", "more", "total", "passengers", "than", "10000000", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]], [0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 19, false], null], 10000000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4819", "db_id": "aircraft", "query": "select avg(t3.total_passengers) from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t1.aircraft = \"robinson r-22\"", "query_toks": ["SELECT", "avg", "(", "T3.Total_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T1.Aircraft", "=", "``", "Robinson", "R-22", "''"], "query_toks_no_value": ["select", "avg", "(", "t3", ".", "total_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "value"], "question": "What is the average total number of passengers of airports that are associated with aircraft \"Robinson R-22\"?", "question_toks": ["What", "is", "the", "average", "total", "number", "of", "passengers", "of", "airports", "that", "are", "associated", "with", "aircraft", "``", "Robinson", "R-22", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Robinson R-22\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4820", "db_id": "aircraft", "query": "select avg(t3.total_passengers) from aircraft as t1 join airport_aircraft as t2 on t1.aircraft_id = t2.aircraft_id join airport as t3 on t2.airport_id = t3.airport_id where t1.aircraft = \"robinson r-22\"", "query_toks": ["SELECT", "avg", "(", "T3.Total_Passengers", ")", "FROM", "aircraft", "AS", "T1", "JOIN", "airport_aircraft", "AS", "T2", "ON", "T1.Aircraft_ID", "=", "T2.Aircraft_ID", "JOIN", "airport", "AS", "T3", "ON", "T2.Airport_ID", "=", "T3.Airport_ID", "WHERE", "T1.Aircraft", "=", "``", "Robinson", "R-22", "''"], "query_toks_no_value": ["select", "avg", "(", "t3", ".", "total_passengers", ")", "from", "aircraft", "as", "t1", "join", "airport_aircraft", "as", "t2", "on", "t1", ".", "aircraft_id", "=", "t2", ".", "aircraft_id", "join", "airport", "as", "t3", "on", "t2", ".", "airport_id", "=", "t3", ".", "airport_id", "where", "t1", ".", "aircraft", "=", "value"], "question": "What is the average total number of passengers for all airports that the aircraft \"Robinson R-22\" visits?", "question_toks": ["What", "is", "the", "average", "total", "number", "of", "passengers", "for", "all", "airports", "that", "the", "aircraft", "``", "Robinson", "R-22", "''", "visits", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 28, false], null], "and", [false, 2, [0, [0, 27, false], null], [0, 17, false], null]]}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Robinson R-22\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1738", "db_id": "gymnast", "query": "select total_points from gymnast order by total_points desc", "query_toks": ["SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC"], "query_toks_no_value": ["select", "total_points", "from", "gymnast", "order", "by", "total_points", "desc"], "question": "List the total points of gymnasts in descending order.", "question_toks": ["List", "the", "total", "points", "of", "gymnasts", "in", "descending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1739", "db_id": "gymnast", "query": "select total_points from gymnast order by total_points desc", "query_toks": ["SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Total_Points", "DESC"], "query_toks_no_value": ["select", "total_points", "from", "gymnast", "order", "by", "total_points", "desc"], "question": "What are the total points for all gymnasts, ordered by total points descending?", "question_toks": ["What", "are", "the", "total", "points", "for", "all", "gymnasts", ",", "ordered", "by", "total", "points", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1740", "db_id": "gymnast", "query": "select total_points from gymnast order by floor_exercise_points desc", "query_toks": ["SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC"], "query_toks_no_value": ["select", "total_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc"], "question": "List the total points of gymnasts in descending order of floor exercise points.", "question_toks": ["List", "the", "total", "points", "of", "gymnasts", "in", "descending", "order", "of", "floor", "exercise", "points", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1741", "db_id": "gymnast", "query": "select total_points from gymnast order by floor_exercise_points desc", "query_toks": ["SELECT", "Total_Points", "FROM", "gymnast", "ORDER", "BY", "Floor_Exercise_Points", "DESC"], "query_toks_no_value": ["select", "total_points", "from", "gymnast", "order", "by", "floor_exercise_points", "desc"], "question": "What are the total points of gymnasts, ordered by their floor exercise points descending?", "question_toks": ["What", "are", "the", "total", "points", "of", "gymnasts", ",", "ordered", "by", "their", "floor", "exercise", "points", "descending", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 2, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1754", "db_id": "gymnast", "query": "select t1.total_points from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t2.age asc limit 1", "query_toks": ["SELECT", "T1.Total_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "total_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "value"], "question": "What is the total point count of the youngest gymnast?", "question_toks": ["What", "is", "the", "total", "point", "count", "of", "the", "youngest", "gymnast", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1755", "db_id": "gymnast", "query": "select t1.total_points from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t2.age asc limit 1", "query_toks": ["SELECT", "T1.Total_Points", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T2.Age", "ASC", "LIMIT", "1"], "query_toks_no_value": ["select", "t1", ".", "total_points", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t2", ".", "age", "asc", "limit", "value"], "question": "Return the total points of the gymnast with the lowest age.", "question_toks": ["Return", "the", "total", "points", "of", "the", "gymnast", "with", "the", "lowest", "age", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1758", "db_id": "gymnast", "query": "select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t1.total_points > 57.5", "query_toks": ["SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T1.Total_Points", ">", "57.5"], "query_toks_no_value": ["select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total_points", ">", "value"], "question": "What are the distinct hometowns of gymnasts with total points more than 57.5?", "question_toks": ["What", "are", "the", "distinct", "hometowns", "of", "gymnasts", "with", "total", "points", "more", "than", "57.5", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 57.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1759", "db_id": "gymnast", "query": "select distinct t2.hometown from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id where t1.total_points > 57.5", "query_toks": ["SELECT", "DISTINCT", "T2.Hometown", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "WHERE", "T1.Total_Points", ">", "57.5"], "query_toks_no_value": ["select", "distinct", "t2", ".", "hometown", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total_points", ">", "value"], "question": "Give the different hometowns of gymnasts that have a total point score of above 57.5.", "question_toks": ["Give", "the", "different", "hometowns", "of", "gymnasts", "that", "have", "a", "total", "point", "score", "of", "above", "57.5", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [true, [[0, [0, [0, 13, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 57.5, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1774", "db_id": "gymnast", "query": "select t2.age from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t1.total_points desc", "query_toks": ["SELECT", "T2.Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total_Points", "DESC"], "query_toks_no_value": ["select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total_points", "desc"], "question": "Show the ages of gymnasts in descending order of total points.", "question_toks": ["Show", "the", "ages", "of", "gymnasts", "in", "descending", "order", "of", "total", "points", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1775", "db_id": "gymnast", "query": "select t2.age from gymnast as t1 join people as t2 on t1.gymnast_id = t2.people_id order by t1.total_points desc", "query_toks": ["SELECT", "T2.Age", "FROM", "gymnast", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.Gymnast_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total_Points", "DESC"], "query_toks_no_value": ["select", "t2", ".", "age", "from", "gymnast", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "gymnast_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total_points", "desc"], "question": "What are the ages of the gymnasts, ordered descending by their total points?", "question_toks": ["What", "are", "the", "ages", "of", "the", "gymnasts", ",", "ordered", "descending", "by", "their", "total", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 8, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4902", "db_id": "store_product", "query": "select max_page_size from product group by max_page_size having count(*) > 3", "query_toks": ["SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "HAVING", "count", "(", "*", ")", ">", "3"], "query_toks_no_value": ["select", "max_page_size", "from", "product", "group", "by", "max_page_size", "having", "count", "(", "*", ")", ">", "value"], "question": "Find the list of page size which have more than 3 product listed", "question_toks": ["Find", "the", "list", "of", "page", "size", "which", "have", "more", "than", "3", "product", "listed"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4903", "db_id": "store_product", "query": "select max_page_size from product group by max_page_size having count(*) > 3", "query_toks": ["SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "HAVING", "count", "(", "*", ")", ">", "3"], "query_toks_no_value": ["select", "max_page_size", "from", "product", "group", "by", "max_page_size", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the maximum page size for everything that has more than 3 products listed?", "question_toks": ["What", "is", "the", "maximum", "page", "size", "for", "everything", "that", "has", "more", "than", "3", "products", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4936", "db_id": "store_product", "query": "select max_page_size from product group by max_page_size order by count(*) desc limit 1", "query_toks": ["SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "Find the most prominent max page size among all the products.", "question_toks": ["Find", "the", "most", "prominent", "max", "page", "size", "among", "all", "the", "products", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_4937", "db_id": "store_product", "query": "select max_page_size from product group by max_page_size order by count(*) desc limit 1", "query_toks": ["SELECT", "max_page_size", "FROM", "product", "GROUP", "BY", "max_page_size", "ORDER", "BY", "count", "(", "*", ")", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "max_page_size", "from", "product", "group", "by", "max_page_size", "order", "by", "count", "(", "*", ")", "desc", "limit", "value"], "question": "What is the most common maximum page size?", "question_toks": ["What", "is", "the", "most", "common", "maximum", "page", "size", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_6603", "db_id": "train_station", "query": "select name , main_services from station order by total_passengers desc limit 3", "query_toks": ["SELECT", "name", ",", "main_services", "FROM", "station", "ORDER", "BY", "total_passengers", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "name", ",", "main_services", "from", "station", "order", "by", "total_passengers", "desc", "limit", "value"], "question": "Show the names and main services for train stations that have the top three total number of passengers.", "question_toks": ["Show", "the", "names", "and", "main", "services", "for", "train", "stations", "that", "have", "the", "top", "three", "total", "number", "of", "passengers", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5848", "db_id": "tracking_share_transactions", "query": "select date_of_transaction , share_count from transactions", "query_toks": ["SELECT", "date_of_transaction", ",", "share_count", "FROM", "TRANSACTIONS"], "query_toks_no_value": ["select", "date_of_transaction", ",", "share_count", "from", "transactions"], "question": "Show all date and share count of transactions.", "question_toks": ["Show", "all", "date", "and", "share", "count", "of", "transactions", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_5854", "db_id": "tracking_share_transactions", "query": "select min(amount_of_transaction) from transactions where transaction_type_code = \"pur\" and share_count > 50", "query_toks": ["SELECT", "min", "(", "amount_of_transaction", ")", "FROM", "TRANSACTIONS", "WHERE", "transaction_type_code", "=", "``", "PUR", "''", "AND", "share_count", ">", "50"], "query_toks_no_value": ["select", "min", "(", "amount_of_transaction", ")", "from", "transactions", "where", "transaction_type_code", "=", "value", "and", "share_count", ">", "value"], "question": "Show the minimum amount of transactions whose type code is \"PUR\" and whose share count is bigger than 50.", "question_toks": ["Show", "the", "minimum", "amount", "of", "transactions", "whose", "type", "code", "is", "``", "PUR", "''", "and", "whose", "share", "count", "is", "bigger", "than", "50", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"PUR\"", null], "and", [false, 3, [0, [0, 13, false], null], 50.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0109", "db_id": "bike_1", "query": "select date from weather where max_temperature_f > 85", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "max_temperature_f", ">", "85"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "max_temperature_f", ">", "value"], "question": "Give me the dates when the max temperature was higher than 85.", "question_toks": ["Give", "me", "the", "dates", "when", "the", "max", "temperature", "was", "higher", "than", "85", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], 85.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO", "AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0110", "db_id": "bike_1", "query": "select date from weather where max_temperature_f > 85", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "max_temperature_f", ">", "85"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "max_temperature_f", ">", "value"], "question": "What are the dates with a maximum temperature higher than 85?", "question_toks": ["What", "are", "the", "dates", "with", "a", "maximum", "temperature", "higher", "than", "85", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 3, [0, [0, 24, false], null], 85.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0137", "db_id": "bike_1", "query": "select count(*) from weather where mean_humidity > 50 and mean_visibility_miles > 8", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "weather", "WHERE", "mean_humidity", ">", "50", "AND", "mean_visibility_miles", ">", "8"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "weather", "where", "mean_humidity", ">", "value", "and", "mean_visibility_miles", ">", "value"], "question": "How many days had both mean humidity above 50 and mean visibility above 8?", "question_toks": ["How", "many", "days", "had", "both", "mean", "humidity", "above", "50", "and", "mean", "visibility", "above", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 31, false], null], 50.0, null], "and", [false, 3, [0, [0, 37, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0138", "db_id": "bike_1", "query": "select count(*) from weather where mean_humidity > 50 and mean_visibility_miles > 8", "query_toks": ["SELECT", "COUNT", "(", "*", ")", "FROM", "weather", "WHERE", "mean_humidity", ">", "50", "AND", "mean_visibility_miles", ">", "8"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "weather", "where", "mean_humidity", ">", "value", "and", "mean_visibility_miles", ">", "value"], "question": "What is the number of days that had an average humity above 50 and an average visibility above 8?", "question_toks": ["What", "is", "the", "number", "of", "days", "that", "had", "an", "average", "humity", "above", "50", "and", "an", "average", "visibility", "above", "8", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 31, false], null], 50.0, null], "and", [false, 3, [0, [0, 37, false], null], 8.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0147", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code order by avg(mean_sea_level_pressure_inches) limit 1", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "mean_sea_level_pressure_inches", ")", "LIMIT", "1"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "mean_sea_level_pressure_inches", ")", "limit", "value"], "question": "What is the zip code in which the average mean sea level pressure is the lowest?", "question_toks": ["What", "is", "the", "zip", "code", "in", "which", "the", "average", "mean", "sea", "level", "pressure", "is", "the", "lowest", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["asc", [[0, [5, 34, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0148", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code order by avg(mean_sea_level_pressure_inches) limit 1", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "ORDER", "BY", "avg", "(", "mean_sea_level_pressure_inches", ")", "LIMIT", "1"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "order", "by", "avg", "(", "mean_sea_level_pressure_inches", ")", "limit", "value"], "question": "What is the zip code that has the lowest average mean sea level pressure?", "question_toks": ["What", "is", "the", "zip", "code", "that", "has", "the", "lowest", "average", "mean", "sea", "level", "pressure", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [], "orderBy": ["asc", [[0, [5, 34, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0153", "db_id": "bike_1", "query": "select date , zip_code from weather where max_temperature_f >= 80", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "max_temperature_f", ">", "=", "80"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "max_temperature_f", ">", "=", "value"], "question": "When and in what zip code did max temperature reach 80?", "question_toks": ["When", "and", "in", "what", "zip", "code", "did", "max", "temperature", "reach", "80", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 5, [0, [0, 24, false], null], 80.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0155", "db_id": "bike_1", "query": "select t1.id from trip as t1 join weather as t2 on t1.zip_code = t2.zip_code group by t2.zip_code having avg(t2.mean_temperature_f) > 60", "query_toks": ["SELECT", "T1.id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1.zip_code", "=", "T2.zip_code", "GROUP", "BY", "T2.zip_code", "HAVING", "avg", "(", "T2.mean_temperature_f", ")", ">", "60"], "query_toks_no_value": ["select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "mean_temperature_f", ")", ">", "value"], "question": "Give me ids for all the trip that took place in a zip code area with average mean temperature above 60.", "question_toks": ["Give", "me", "ids", "for", "all", "the", "trip", "that", "took", "place", "in", "a", "zip", "code", "area", "with", "average", "mean", "temperature", "above", "60", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [5, 25, false], null], 60.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0156", "db_id": "bike_1", "query": "select t1.id from trip as t1 join weather as t2 on t1.zip_code = t2.zip_code group by t2.zip_code having avg(t2.mean_temperature_f) > 60", "query_toks": ["SELECT", "T1.id", "FROM", "trip", "AS", "T1", "JOIN", "weather", "AS", "T2", "ON", "T1.zip_code", "=", "T2.zip_code", "GROUP", "BY", "T2.zip_code", "HAVING", "avg", "(", "T2.mean_temperature_f", ")", ">", "60"], "query_toks_no_value": ["select", "t1", ".", "id", "from", "trip", "as", "t1", "join", "weather", "as", "t2", "on", "t1", ".", "zip_code", "=", "t2", ".", "zip_code", "group", "by", "t2", ".", "zip_code", "having", "avg", "(", "t2", ".", "mean_temperature_f", ")", ">", "value"], "question": "For each zip code, find the ids of all trips that have a higher average mean temperature above 60?", "question_toks": ["For", "each", "zip", "code", ",", "find", "the", "ids", "of", "all", "trips", "that", "have", "a", "higher", "average", "mean", "temperature", "above", "60", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 22, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 3, [0, [5, 25, false], null], 60.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0157", "db_id": "bike_1", "query": "select zip_code , count(*) from weather where max_wind_speed_mph >= 25 group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "count", "(", "*", ")", "FROM", "weather", "WHERE", "max_wind_Speed_mph", ">", "=", "25", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "count", "(", "*", ")", "from", "weather", "where", "max_wind_speed_mph", ">", "=", "value", "group", "by", "zip_code"], "question": "For each zip code, return how many times max wind speed reached 25?", "question_toks": ["For", "each", "zip", "code", ",", "return", "how", "many", "times", "max", "wind", "speed", "reached", "25", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 39, false], null], 25.0, null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0158", "db_id": "bike_1", "query": "select zip_code , count(*) from weather where max_wind_speed_mph >= 25 group by zip_code", "query_toks": ["SELECT", "zip_code", ",", "count", "(", "*", ")", "FROM", "weather", "WHERE", "max_wind_Speed_mph", ">", "=", "25", "GROUP", "BY", "zip_code"], "query_toks_no_value": ["select", "zip_code", ",", "count", "(", "*", ")", "from", "weather", "where", "max_wind_speed_mph", ">", "=", "value", "group", "by", "zip_code"], "question": "For each zip code, how many times has the maximum wind speed reached 25 mph?", "question_toks": ["For", "each", "zip", "code", ",", "how", "many", "times", "has", "the", "maximum", "wind", "speed", "reached", "25", "mph", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 5, [0, [0, 39, false], null], 25.0, null]], "groupBy": [[0, 46, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0159", "db_id": "bike_1", "query": "select date , zip_code from weather where min_dew_point_f < (select min(min_dew_point_f) from weather where zip_code = 94107)", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "min_dew_point_f", "<", "(", "SELECT", "min", "(", "min_dew_point_f", ")", "FROM", "weather", "WHERE", "zip_code", "=", "94107", ")"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "min_dew_point_f", "<", "(", "select", "min", "(", "min_dew_point_f", ")", "from", "weather", "where", "zip_code", "=", "value", ")"], "question": "On which day and in which zip code was the min dew point lower than any day in zip code 94107?", "question_toks": ["On", "which", "day", "and", "in", "which", "zip", "code", "was", "the", "min", "dew", "point", "lower", "than", "any", "day", "in", "zip", "code", "94107", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 4, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0160", "db_id": "bike_1", "query": "select date , zip_code from weather where min_dew_point_f < (select min(min_dew_point_f) from weather where zip_code = 94107)", "query_toks": ["SELECT", "date", ",", "zip_code", "FROM", "weather", "WHERE", "min_dew_point_f", "<", "(", "SELECT", "min", "(", "min_dew_point_f", ")", "FROM", "weather", "WHERE", "zip_code", "=", "94107", ")"], "query_toks_no_value": ["select", "date", ",", "zip_code", "from", "weather", "where", "min_dew_point_f", "<", "(", "select", "min", "(", "min_dew_point_f", ")", "from", "weather", "where", "zip_code", "=", "value", ")"], "question": "Which days had a minimum dew point smaller than any day in zip code 94107, and in which zip codes were those measurements taken?", "question_toks": ["Which", "days", "had", "a", "minimum", "dew", "point", "smaller", "than", "any", "day", "in", "zip", "code", "94107", ",", "and", "in", "which", "zip", "codes", "were", "those", "measurements", "taken", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 46, false], null]]]], "where": [[false, 4, [0, [0, 29, false], null], {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[2, [0, [0, 29, false], null]]]], "where": [[false, 2, [0, [0, 46, false], null], 94107.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0175", "db_id": "bike_1", "query": "select date , mean_temperature_f , mean_humidity from weather order by max_gust_speed_mph desc limit 3", "query_toks": ["SELECT", "date", ",", "mean_temperature_f", ",", "mean_humidity", "FROM", "weather", "ORDER", "BY", "max_gust_speed_mph", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "date", ",", "mean_temperature_f", ",", "mean_humidity", "from", "weather", "order", "by", "max_gust_speed_mph", "desc", "limit", "value"], "question": "What are the date, mean temperature and mean humidity for the top 3 days with the largest max gust speeds?", "question_toks": ["What", "are", "the", "date", ",", "mean", "temperature", "and", "mean", "humidity", "for", "the", "top", "3", "days", "with", "the", "largest", "max", "gust", "speeds", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 25, false], null]], [0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 41, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0176", "db_id": "bike_1", "query": "select date , mean_temperature_f , mean_humidity from weather order by max_gust_speed_mph desc limit 3", "query_toks": ["SELECT", "date", ",", "mean_temperature_f", ",", "mean_humidity", "FROM", "weather", "ORDER", "BY", "max_gust_speed_mph", "DESC", "LIMIT", "3"], "query_toks_no_value": ["select", "date", ",", "mean_temperature_f", ",", "mean_humidity", "from", "weather", "order", "by", "max_gust_speed_mph", "desc", "limit", "value"], "question": "What is the date, average temperature and mean humidity for the days with the 3 largest maximum gust speeds?", "question_toks": ["What", "is", "the", "date", ",", "average", "temperature", "and", "mean", "humidity", "for", "the", "days", "with", "the", "3", "largest", "maximum", "gust", "speeds", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]], [0, [0, [0, 25, false], null]], [0, [0, [0, 31, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 41, false], null]]], "limit": 3, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0181", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(mean_visibility_miles) < 10", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_visibility_miles", ")", "<", "10"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_visibility_miles", ")", "<", "value"], "question": "Find the zip code in which the average mean visibility is lower than 10.", "question_toks": ["Find", "the", "zip", "code", "in", "which", "the", "average", "mean", "visibility", "is", "lower", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 37, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0182", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(mean_visibility_miles) < 10", "query_toks": ["SELECT", "zip_code", "FROM", "weather", "GROUP", "BY", "zip_code", "HAVING", "avg", "(", "mean_visibility_miles", ")", "<", "10"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_visibility_miles", ")", "<", "value"], "question": "For each zip code, select all those that have an average mean visiblity below 10.", "question_toks": ["For", "each", "zip", "code", ",", "select", "all", "those", "that", "have", "an", "average", "mean", "visiblity", "below", "10", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 37, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0199", "db_id": "bike_1", "query": "select date from weather where mean_sea_level_pressure_inches between 30.3 and 31", "query_toks": ["SELECT", "date", "FROM", "weather", "WHERE", "mean_sea_level_pressure_inches", "BETWEEN", "30.3", "AND", "31"], "query_toks_no_value": ["select", "date", "from", "weather", "where", "mean_sea_level_pressure_inches", "between", "value", "and", "value"], "question": "What are the dates in which the mean sea level pressure was between 30.3 and 31?", "question_toks": ["What", "are", "the", "dates", "in", "which", "the", "mean", "sea", "level", "pressure", "was", "between", "30.3", "and", "31", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [[false, 1, [0, [0, 34, false], null], 30.3, 31.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1154", "db_id": "body_builder", "query": "select clean_jerk from body_builder order by total desc limit 1", "query_toks": ["SELECT", "Clean_Jerk", "FROM", "body_builder", "ORDER", "BY", "Total", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "clean_jerk", "from", "body_builder", "order", "by", "total", "desc", "limit", "value"], "question": "What are the clean and jerk score of the body builder with the highest total score?", "question_toks": ["What", "are", "the", "clean", "and", "jerk", "score", "of", "the", "body", "builder", "with", "the", "highest", "total", "score", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1157", "db_id": "body_builder", "query": "select t2.name from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t1.total > 300", "query_toks": ["SELECT", "T2.Name", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Total", ">", "300"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total", ">", "value"], "question": "What are the names of body builders whose total score is higher than 300?", "question_toks": ["What", "are", "the", "names", "of", "body", "builders", "whose", "total", "score", "is", "higher", "than", "300", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 7, false], null]]]], "where": [[false, 3, [0, [0, 5, false], null], 300.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1159", "db_id": "body_builder", "query": "select t2.birth_date , t2.birth_place from body_builder as t1 join people as t2 on t1.people_id = t2.people_id order by t1.total desc limit 1", "query_toks": ["SELECT", "T2.Birth_Date", ",", "T2.Birth_Place", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "ORDER", "BY", "T1.Total", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "t2", ".", "birth_date", ",", "t2", ".", "birth_place", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "order", "by", "t1", ".", "total", "desc", "limit", "value"], "question": "What are the birth date and birth place of the body builder with the highest total points?", "question_toks": ["What", "are", "the", "birth", "date", "and", "birth", "place", "of", "the", "body", "builder", "with", "the", "highest", "total", "points", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 5, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1160", "db_id": "body_builder", "query": "select t2.height from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t1.total < 315", "query_toks": ["SELECT", "T2.Height", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Total", "<", "315"], "query_toks_no_value": ["select", "t2", ".", "height", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "total", "<", "value"], "question": "What are the heights of body builders with total score smaller than 315?", "question_toks": ["What", "are", "the", "heights", "of", "body", "builders", "with", "total", "score", "smaller", "than", "315", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [[false, 4, [0, [0, 5, false], null], 315.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1161", "db_id": "body_builder", "query": "select avg(t1.total) from body_builder as t1 join people as t2 on t1.people_id = t2.people_id where t2.height > 200", "query_toks": ["SELECT", "avg", "(", "T1.Total", ")", "FROM", "body_builder", "AS", "T1", "JOIN", "people", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T2.Height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t1", ".", "total", ")", "from", "body_builder", "as", "t1", "join", "people", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t2", ".", "height", ">", "value"], "question": "What is the average total score of body builders with height bigger than 200?", "question_toks": ["What", "is", "the", "average", "total", "score", "of", "body", "builders", "with", "height", "bigger", "than", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 2, false], null], [0, 6, false], null]]}, "select": [false, [[5, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 8, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0018", "db_id": "farm", "query": "select total_horses from farm order by total_horses asc", "query_toks": ["SELECT", "Total_Horses", "FROM", "farm", "ORDER", "BY", "Total_Horses", "ASC"], "query_toks_no_value": ["select", "total_horses", "from", "farm", "order", "by", "total_horses", "asc"], "question": "List the total number of horses on farms in ascending order.", "question_toks": ["List", "the", "total", "number", "of", "horses", "on", "farms", "in", "ascending", "order", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0019", "db_id": "farm", "query": "select total_horses from farm order by total_horses asc", "query_toks": ["SELECT", "Total_Horses", "FROM", "farm", "ORDER", "BY", "Total_Horses", "ASC"], "query_toks_no_value": ["select", "total_horses", "from", "farm", "order", "by", "total_horses", "asc"], "question": "What is the total horses record for each farm, sorted ascending?", "question_toks": ["What", "is", "the", "total", "horses", "record", "for", "each", "farm", ",", "sorted", "ascending", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 9, false], null]]], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0420", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What are the id, name and membership level of visitors who have spent the largest amount of money in total in all museum tickets?", "question_toks": ["What", "are", "the", "id", ",", "name", "and", "membership", "level", "of", "visitors", "who", "have", "spent", "the", "largest", "amount", "of", "money", "in", "total", "in", "all", "museum", "tickets", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 6, false], null]], [0, [0, [0, 7, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [4, 12, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0425", "db_id": "museum_visit", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "sum", "(", "t2", ".", "total_spent", ")", "from", "visitor", "as", "t1", "join", "visit", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "visitor_id", "where", "t1", ".", "level_of_membership", "=", "value"], "question": "What is the total ticket expense of the visitors whose membership level is 1?", "question_toks": ["What", "is", "the", "total", "ticket", "expense", "of", "the", "visitors", "whose", "membership", "level", "is", "1", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 5, false], null], [0, 10, false], null]]}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "AGGREGATION_IN_COLUMN", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_in_column_0077", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(mean_humidity) < 70 intersect select zip_code from trip group by zip_code having count(*) >= 10", "query_toks": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_humidity", ")", "<", "70", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(*)", ">=", "10"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_humidity", ")", "<", "70", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(*)", ">=", "10"], "question": "Give me the zip code where the average mean humidity is below 70 and at least 10 trips took place.", "question_toks": ["Give", "me", "the", "zip", "code", "where", "the", "average", "mean", "humidity", "is", "below", "70", "and", "at", "least", "10", "trips", "took", "place", "."], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 31, false], null], 70.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_aggregation_in_column_0078", "db_id": "bike_1", "query": "select zip_code from weather group by zip_code having avg(mean_humidity) < 70 intersect select zip_code from trip group by zip_code having count(*) >= 10", "query_toks": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_humidity", ")", "<", "70", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(*)", ">=", "10"], "query_toks_no_value": ["select", "zip_code", "from", "weather", "group", "by", "zip_code", "having", "avg", "(", "mean_humidity", ")", "<", "70", "intersect", "select", "zip_code", "from", "trip", "group", "by", "zip_code", "having", "count", "(*)", ">=", "10"], "question": "What are the zip codes that have an average mean humidity below 70 and had at least 10 trips come through there?", "question_toks": ["What", "are", "the", "zip", "codes", "that", "have", "an", "average", "mean", "humidity", "below", "70", "and", "had", "at", "least", "10", "trips", "come", "through", "there", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 46, false], null]]]], "where": [], "groupBy": [[0, 46, false]], "having": [[false, 4, [0, [5, 31, false], null], 70.0, null]], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [], "groupBy": [[0, 22, false]], "having": [[false, 5, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["AGGREGATION_IN_COLUMN"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0726", "db_id": "world_1", "query": "select sum(surfacearea) from country where continent = \"asia\" or continent = \"europe\"", "query_toks": ["SELECT", "sum", "(", "SurfaceArea", ")", "FROM", "country", "WHERE", "Continent", "=", "``", "Asia", "''", "OR", "Continent", "=", "``", "Europe", "''"], "query_toks_no_value": ["select", "sum", "(", "surfacearea", ")", "from", "country", "where", "continent", "=", "value", "or", "continent", "=", "value"], "question": "What is the total surface area of the continents Asia and Europe?", "question_toks": ["What", "is", "the", "total", "surface", "area", "of", "the", "continents", "Asia", "and", "Europe", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 10, false], null], "\"Asia\"", null], "or", [false, 2, [0, [0, 10, false], null], "\"Europe\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0868", "db_id": "chinook_1", "query": "select avg(milliseconds) from genre as t1 join track as t2 on t1.genreid = t2.genreid where t1.name = \"latin\" or t1.name = \"pop\"", "query_toks": ["SELECT", "AVG", "(", "Milliseconds", ")", "FROM", "GENRE", "AS", "T1", "JOIN", "TRACK", "AS", "T2", "ON", "T1.GenreId", "=", "T2.GenreId", "WHERE", "T1.Name", "=", "``", "Latin", "''", "OR", "T1.Name", "=", "``", "Pop", "''"], "query_toks_no_value": ["select", "avg", "(", "milliseconds", ")", "from", "genre", "as", "t1", "join", "track", "as", "t2", "on", "t1", ".", "genreid", "=", "t2", ".", "genreid", "where", "t1", ".", "name", "=", "value", "or", "t1", ".", "name", "=", "value"], "question": "Find the average millisecond length of Latin and Pop tracks.", "question_toks": ["Find", "the", "average", "millisecond", "length", "of", "Latin", "and", "Pop", "tracks", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 10]], "conds": [[false, 2, [0, [0, 34, false], null], [0, 60, false], null]]}, "select": [false, [[5, [0, [0, 62, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], "\"Latin\"", null], "or", [false, 2, [0, [0, 35, false], null], "\"Pop\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1353", "db_id": "college_2", "query": "select sum(budget) from department where dept_name = 'marketing' or dept_name = 'finance'", "query_toks": ["SELECT", "sum", "(", "budget", ")", "FROM", "department", "WHERE", "dept_name", "=", "'Marketing", "'", "OR", "dept_name", "=", "'Finance", "'"], "query_toks_no_value": ["select", "sum", "(", "budget", ")", "from", "department", "where", "dept_name", "=", "value", "or", "dept_name", "=", "value"], "question": "What is the sum of budgets of the Marketing and Finance departments?", "question_toks": ["What", "is", "the", "sum", "of", "budgets", "of", "the", "Marketing", "and", "Finance", "departments", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[4, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"Marketing\"", null], "or", [false, 2, [0, [0, 4, false], null], "\"Finance\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1368", "db_id": "college_2", "query": "select distinct t1.name from student as t1 join takes as t2 on t1.id = t2.id where year = 2009 or year = 2010", "query_toks": ["SELECT", "DISTINCT", "T1.name", "FROM", "student", "AS", "T1", "JOIN", "takes", "AS", "T2", "ON", "T1.id", "=", "T2.id", "WHERE", "YEAR", "=", "2009", "OR", "YEAR", "=", "2010"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "student", "as", "t1", "join", "takes", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "id", "where", "year", "=", "value", "or", "year", "=", "value"], "question": "Find the name of students who took any class in the years of 2009 and 2010.", "question_toks": ["Find", "the", "name", "of", "students", "who", "took", "any", "class", "in", "the", "years", "of", "2009", "and", "2010", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 27, false], null], [0, 31, false], null]]}, "select": [true, [[0, [0, [0, 28, false], null]]]], "where": [[false, 2, [0, [0, 35, false], null], 2009.0, null], "or", [false, 2, [0, [0, 35, false], null], 2010.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_changed_logical_connectives_0004", "db_id": "world_1", "query": "select sum(population) from country where name = \"brunei\" or name = \"bhutan\"", "query_toks": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "``", "brunei", "''", "or", "name", "=", "``", "bhutan", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "country", "where", "name", "=", "value", "or", "name", "=", "value"], "question": "What is the total population of Brunei and Bhutan?", "question_toks": ["What", "is", "the", "total", "population", "of", "Brunei", "and", "Bhutan", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"brunei\"", null], "or", [false, 2, [0, [0, 9, false], null], "\"bhutan\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_changed_logical_connectives_0005", "db_id": "world_1", "query": "select sum(population) from city where name = \"amsterdam\" or name = \"roterdam\"", "query_toks": ["select", "sum", "(", "population", ")", "from", "city", "where", "name", "=", "``", "amsterdam", "''", "or", "name", "=", "``", "roterdam", "''"], "query_toks_no_value": ["select", "sum", "(", "population", ")", "from", "city", "where", "name", "=", "value", "or", "name", "=", "value"], "question": "How many people live in Amsterdam and Rotterdam in total?", "question_toks": ["How", "many", "people", "live", "in", "Amsterdam", "and", "Rotterdam", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[4, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"amsterdam\"", null], "or", [false, 2, [0, [0, 2, false], null], "\"roterdam\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_changed_logical_connectives_0006", "db_id": "pets_1", "query": "select sum(weight) from pets where petid = 2001 or petid = 2003 ", "query_toks": ["select", "sum", "(", "weight", ")", "from", "pets", "where", "petid", "=", "2001", "or", "petid", "=", "2003"], "query_toks_no_value": ["select", "sum", "(", "weight", ")", "from", "pets", "where", "petid", "=", "value", "or", "petid", "=", "value"], "question": "Find the total weight for pets with id 2001 and 2003.", "question_toks": ["Find", "the", "total", "weight", "for", "pets", "with", "id", "2001", "and", "2003", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[4, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], 2001.0, null], "or", [false, 2, [0, [0, 11, false], null], 2003.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["CHANGED_LOGICAL_CONNECTIVES"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0033", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show the name and theme for all concerts and the number of singers in each concert.", "question_toks": ["Show", "the", "name", "and", "theme", "for", "all", "concerts", "and", "the", "number", "of", "singers", "in", "each", "concert", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 17, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0034", "db_id": "concert_singer", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the names , themes , and number of singers for every concert ?", "question_toks": ["What", "are", "the", "names", ",", "themes", ",", "and", "number", "of", "singers", "for", "every", "concert", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 16, false], null]], [0, [0, [0, 17, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0051", "db_id": "pets_1", "query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.age > 20", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.age", ">", "20"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "age", ">", "value"], "question": "Find number of pets owned by students who are older than 20.", "question_toks": ["Find", "number", "of", "pets", "owned", "by", "students", "who", "are", "older", "than", "20", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "WHERE_MONO", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0052", "db_id": "pets_1", "query": "select count(*) from student as t1 join has_pet as t2 on t1.stuid = t2.stuid where t1.age > 20", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "student", "AS", "T1", "JOIN", "has_pet", "AS", "T2", "ON", "T1.stuid", "=", "T2.stuid", "WHERE", "T1.age", ">", "20"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "student", "as", "t1", "join", "has_pet", "as", "t2", "on", "t1", ".", "stuid", "=", "t2", ".", "stuid", "where", "t1", ".", "age", ">", "value"], "question": "How many pets are owned by students that have an age greater than 20?", "question_toks": ["How", "many", "pets", "are", "owned", "by", "students", "that", "have", "an", "age", "greater", "than", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0089", "db_id": "car_1", "query": "select t1.contid , t1.continent , count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent group by t1.contid;", "query_toks": ["SELECT", "T1.ContId", ",", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.Continent", "GROUP", "BY", "T1.ContId", ";"], "query_toks_no_value": ["select", "t1", ".", "contid", ",", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "group", "by", "t1", ".", "contid"], "question": "How many countries does each continent have? List the continent id, continent name and the number of countries.", "question_toks": ["How", "many", "countries", "does", "each", "continent", "have", "?", "List", "the", "continent", "id", ",", "continent", "name", "and", "the", "number", "of", "countries", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0090", "db_id": "car_1", "query": "select t1.contid , t1.continent , count(*) from continents as t1 join countries as t2 on t1.contid = t2.continent group by t1.contid;", "query_toks": ["SELECT", "T1.ContId", ",", "T1.Continent", ",", "count", "(", "*", ")", "FROM", "CONTINENTS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.ContId", "=", "T2.Continent", "GROUP", "BY", "T1.ContId", ";"], "query_toks_no_value": ["select", "t1", ".", "contid", ",", "t1", ".", "continent", ",", "count", "(", "*", ")", "from", "continents", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "contid", "=", "t2", ".", "continent", "group", "by", "t1", ".", "contid"], "question": "For each continent, list its id, name, and how many countries it has?", "question_toks": ["For", "each", "continent", ",", "list", "its", "id", ",", "name", ",", "and", "how", "many", "countries", "it", "has", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0095", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "horsepower", "asc", "limit", "value"], "question": "Which model of the car has the minimum horsepower?", "question_toks": ["Which", "model", "of", "the", "car", "has", "the", "minimum", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0096", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "horsepower", "asc", "limit", "value"], "question": "What is the model of the car with the smallest amount of horsepower?", "question_toks": ["What", "is", "the", "model", "of", "the", "car", "with", "the", "smallest", "amount", "of", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0097", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "Find the model of the car whose weight is below the average weight.", "question_toks": ["Find", "the", "model", "of", "the", "car", "whose", "weight", "is", "below", "the", "average", "weight", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0098", "db_id": "car_1", "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)", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "What is the model for the car with a weight smaller than the average?", "question_toks": ["What", "is", "the", "model", "for", "the", "car", "with", "a", "weight", "smaller", "than", "the", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 4, [0, [0, 21, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 21, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0107", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "value"], "question": "Which of the countries has the most car makers? List the country name.", "question_toks": ["Which", "of", "the", "countries", "has", "the", "most", "car", "makers", "?", "List", "the", "country", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0108", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the country with the most car makers?", "question_toks": ["What", "is", "the", "name", "of", "the", "country", "with", "the", "most", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 9, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0111", "db_id": "car_1", "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)';", "query_toks": ["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", ")", "'", ";"], "query_toks_no_value": ["select", "t1", ".", "accelerate", "from", "cars_data", "as", "t1", "join", "car_names", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "makeid", "where", "t2", ".", "make", "=", "value"], "question": "What is the accelerate of the car make amc hornet sportabout (sw)?", "question_toks": ["What", "is", "the", "accelerate", "of", "the", "car", "make", "amc", "hornet", "sportabout", "(", "sw", ")", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 4]], "conds": [[false, 2, [0, [0, 16, false], null], [0, 13, false], null]]}, "select": [false, [[0, [0, [0, 22, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"amc hornet sportabout (sw)\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0113", "db_id": "car_1", "query": "select count(*) from car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'france';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "WHERE", "T2.CountryName", "=", "'france", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "where", "t2", ".", "countryname", "=", "value"], "question": "How many car makers are there in france?", "question_toks": ["How", "many", "car", "makers", "are", "there", "in", "france", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "WHERE_MONO", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0114", "db_id": "car_1", "query": "select count(*) from car_makers as t1 join countries as t2 on t1.country = t2.countryid where t2.countryname = 'france';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "COUNTRIES", "AS", "T2", "ON", "T1.Country", "=", "T2.CountryId", "WHERE", "T2.CountryName", "=", "'france", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "countries", "as", "t2", "on", "t1", ".", "country", "=", "t2", ".", "countryid", "where", "t2", ".", "countryname", "=", "value"], "question": "What is the number of makers of care in France?", "question_toks": ["What", "is", "the", "number", "of", "makers", "of", "care", "in", "France", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 9, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"france\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "WHERE_MONO", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0131", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t2", ".", "horsepower", ",", "t1", ".", "make", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value"], "question": "What is the maximum horsepower and the make of the car models with 3 cylinders?", "question_toks": ["What", "is", "the", "maximum", "horsepower", "and", "the", "make", "of", "the", "car", "models", "with", "3", "cylinders", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0132", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t2", ".", "horsepower", ",", "t1", ".", "make", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value"], "question": "What is the largest amount of horsepower for the models with 3 cylinders and what make is it?", "question_toks": ["What", "is", "the", "largest", "amount", "of", "horsepower", "for", "the", "models", "with", "3", "cylinders", "and", "what", "make", "is", "it", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 3.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0133", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "mpg", "desc", "limit", "value"], "question": "Which model saves the most gasoline? That is to say, have the maximum miles per gallon.", "question_toks": ["Which", "model", "saves", "the", "most", "gasoline", "?", "That", "is", "to", "say", ",", "have", "the", "maximum", "miles", "per", "gallon", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 17, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0134", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "order", "by", "t2", ".", "mpg", "desc", "limit", "value"], "question": "What is the car model with the highest mpg ?", "question_toks": ["What", "is", "the", "car", "model", "with", "the", "highest", "mpg", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 17, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0137", "db_id": "car_1", "query": "select avg(t2.edispl) from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t1.model = 'volvo';", "query_toks": ["SELECT", "avg", "(", "T2.edispl", ")", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T1.Model", "=", "'volvo", "'", ";"], "query_toks_no_value": ["select", "avg", "(", "t2", ".", "edispl", ")", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t1", ".", "model", "=", "value"], "question": "What is the average edispl of the cars of model volvo?", "question_toks": ["What", "is", "the", "average", "edispl", "of", "the", "cars", "of", "model", "volvo", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "WHERE_MONO", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0138", "db_id": "car_1", "query": "select avg(t2.edispl) from car_names as t1 join cars_data as t2 on t1.makeid = t2.id where t1.model = 'volvo';", "query_toks": ["SELECT", "avg", "(", "T2.edispl", ")", "FROM", "CAR_NAMES", "AS", "T1", "JOIN", "CARS_DATA", "AS", "T2", "ON", "T1.MakeId", "=", "T2.Id", "WHERE", "T1.Model", "=", "'volvo", "'", ";"], "query_toks_no_value": ["select", "avg", "(", "t2", ".", "edispl", ")", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t1", ".", "model", "=", "value"], "question": "What is the average edispl for all volvos?", "question_toks": ["What", "is", "the", "average", "edispl", "for", "all", "volvos", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[5, [0, [0, 19, false], null]]]], "where": [[false, 2, [0, [0, 14, false], null], "\"volvo\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0147", "db_id": "car_1", "query": "select count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker where t1.fullname = 'american motor company';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "WHERE", "T1.FullName", "=", "'American", "Motor", "Company", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "where", "t1", ".", "fullname", "=", "value"], "question": "How many car models were produced by the maker with full name American Motor Company?", "question_toks": ["How", "many", "car", "models", "were", "produced", "by", "the", "maker", "with", "full", "name", "American", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"American Motor Company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0148", "db_id": "car_1", "query": "select count(*) from car_makers as t1 join model_list as t2 on t1.id = t2.maker where t1.fullname = 'american motor company';", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CAR_MAKERS", "AS", "T1", "JOIN", "MODEL_LIST", "AS", "T2", "ON", "T1.Id", "=", "T2.Maker", "WHERE", "T1.FullName", "=", "'American", "Motor", "Company", "'", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "car_makers", "as", "t1", "join", "model_list", "as", "t2", "on", "t1", ".", "id", "=", "t2", ".", "maker", "where", "t1", ".", "fullname", "=", "value"], "question": "What is the number of car models created by the car maker American Motor Company?", "question_toks": ["What", "is", "the", "number", "of", "car", "models", "created", "by", "the", "car", "maker", "American", "Motor", "Company", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 8, false], null], "\"American Motor Company\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0149", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "Which makers designed more than 3 car models? List full name and the id.", "question_toks": ["Which", "makers", "designed", "more", "than", "3", "car", "models", "?", "List", "full", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0150", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["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", "(", "*", ")", ">", "value"], "question": "What are the names and ids of all makers with more than 3 models?", "question_toks": ["What", "are", "the", "names", "and", "ids", "of", "all", "makers", "with", "more", "than", "3", "models", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 11, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 3, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0162", "db_id": "car_1", "query": "select count(*) from countries as t1 join car_makers as t2 on t1.countryid = t2.country group by t1.countryid having count(*) > 2", "query_toks": ["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1.countryid", "=", "t2.country", "group", "by", "t1.countryid", "having", "count", "(", "*", ")", ">", "2"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "countries", "as", "t1", "join", "car_makers", "as", "t2", "on", "t1", ".", "countryid", "=", "t2", ".", "country", "group", "by", "t1", ".", "countryid", "having", "count", "(", "*", ")", ">", "value"], "question": "What is the number of countries with more than 2 car makers ?", "question_toks": ["What", "is", "the", "number", "of", "countries", "with", "more", "than", "2", "car", "makers", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 3, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0165", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value"], "question": "For the cars with 4 cylinders, which model has the largest horsepower?", "question_toks": ["For", "the", "cars", "with", "4", "cylinders", ",", "which", "model", "has", "the", "largest", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0166", "db_id": "car_1", "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;", "query_toks": ["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", ";"], "query_toks_no_value": ["select", "t1", ".", "model", "from", "car_names", "as", "t1", "join", "cars_data", "as", "t2", "on", "t1", ".", "makeid", "=", "t2", ".", "id", "where", "t2", ".", "cylinders", "=", "value", "order", "by", "t2", ".", "horsepower", "desc", "limit", "value"], "question": "For all of the 4 cylinder cars, which model has the most horsepower?", "question_toks": ["For", "all", "of", "the", "4", "cylinder", "cars", ",", "which", "model", "has", "the", "most", "horsepower", "?"], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 16, false], null]]}, "select": [false, [[0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 18, false], null], 4.0, null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 20, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0208", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.sourceairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.SourceAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "sourceairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "Return the number of flights departing from Aberdeen.", "question_toks": ["Return", "the", "number", "of", "flights", "departing", "from", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 12, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0209", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "How many flights arriving in Aberdeen city?", "question_toks": ["How", "many", "flights", "arriving", "in", "Aberdeen", "city", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0210", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "Return the number of flights arriving in Aberdeen.", "question_toks": ["Return", "the", "number", "of", "flights", "arriving", "in", "Aberdeen", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0213", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airlines as t2 on t1.airline = t2.uid where t2.airline = \"jetblue airways\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T1.Airline", "=", "T2.uid", "WHERE", "T2.Airline", "=", "``", "JetBlue", "Airways", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t1", ".", "airline", "=", "t2", ".", "uid", "where", "t2", ".", "airline", "=", "value"], "question": "How many flights does airline 'JetBlue Airways' have?", "question_toks": ["How", "many", "flights", "does", "airline", "'JetBlue", "Airways", "'", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"JetBlue Airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0214", "db_id": "flight_2", "query": "select count(*) from flights as t1 join airlines as t2 on t1.airline = t2.uid where t2.airline = \"jetblue airways\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T1.Airline", "=", "T2.uid", "WHERE", "T2.Airline", "=", "``", "JetBlue", "Airways", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t1", ".", "airline", "=", "t2", ".", "uid", "where", "t2", ".", "airline", "=", "value"], "question": "Give the number of Jetblue Airways flights.", "question_toks": ["Give", "the", "number", "of", "Jetblue", "Airways", "flights", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"JetBlue Airways\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0229", "db_id": "flight_2", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which airline has most number of flights?", "question_toks": ["Which", "airline", "has", "most", "number", "of", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0230", "db_id": "flight_2", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What airline serves the most flights?", "question_toks": ["What", "airline", "serves", "the", "most", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0242", "db_id": "flight_2", "query": "select t1.airline from airlines as t1 join flights as t2 on t1.uid = t2.airline group by t1.airline having count(*) > 10", "query_toks": ["SELECT", "T1.Airline", "FROM", "AIRLINES", "AS", "T1", "JOIN", "FLIGHTS", "AS", "T2", "ON", "T1.uid", "=", "T2.Airline", "GROUP", "BY", "T1.Airline", "HAVING", "count", "(", "*", ")", ">", "10"], "query_toks_no_value": ["select", "t1", ".", "airline", "from", "airlines", "as", "t1", "join", "flights", "as", "t2", "on", "t1", ".", "uid", "=", "t2", ".", "airline", "group", "by", "t1", ".", "airline", "having", "count", "(", "*", ")", ">", "value"], "question": "Which airlines have at least 10 flights?", "question_toks": ["Which", "airlines", "have", "at", "least", "10", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [[false, 3, [0, [3, 0, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0245", "db_id": "flight_2", "query": "select t1.flightno from flights as t1 join airlines as t2 on t2.uid = t1.airline where t2.airline = \"united airlines\"", "query_toks": ["SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T2.uid", "=", "T1.Airline", "WHERE", "T2.Airline", "=", "``", "United", "Airlines", "''"], "query_toks_no_value": ["select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t2", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "airline", "=", "value"], "question": "What are flight numbers of Airline \"United Airlines\"?", "question_toks": ["What", "are", "flight", "numbers", "of", "Airline", "``", "United", "Airlines", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0246", "db_id": "flight_2", "query": "select t1.flightno from flights as t1 join airlines as t2 on t2.uid = t1.airline where t2.airline = \"united airlines\"", "query_toks": ["SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRLINES", "AS", "T2", "ON", "T2.uid", "=", "T1.Airline", "WHERE", "T2.Airline", "=", "``", "United", "Airlines", "''"], "query_toks_no_value": ["select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airlines", "as", "t2", "on", "t2", ".", "uid", "=", "t1", ".", "airline", "where", "t2", ".", "airline", "=", "value"], "question": "Which flight numbers correspond to United Airlines flights?", "question_toks": ["Which", "flight", "numbers", "correspond", "to", "United", "Airlines", "flights", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 10, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"United Airlines\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0277", "db_id": "employee_hire_evaluation", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "find the name of employee who was awarded the most times in the evaluation.", "question_toks": ["find", "the", "name", "of", "employee", "who", "was", "awarded", "the", "most", "times", "in", "the", "evaluation", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0278", "db_id": "employee_hire_evaluation", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which employee received the most awards in evaluations? Give me the employee name.", "question_toks": ["Which", "employee", "received", "the", "most", "awards", "in", "evaluations", "?", "Give", "me", "the", "employee", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 15, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0283", "db_id": "employee_hire_evaluation", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the shop that is hiring the largest number of employees?", "question_toks": ["What", "is", "the", "name", "of", "the", "shop", "that", "is", "hiring", "the", "largest", "number", "of", "employees", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0284", "db_id": "employee_hire_evaluation", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which shop has the most employees? Give me the shop name.", "question_toks": ["Which", "shop", "has", "the", "most", "employees", "?", "Give", "me", "the", "shop", "name", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 11, false], null], [0, 5, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0308", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from documents as t1 join templates as t2 on t1.template_id = t2.template_id where t2.template_type_code = 'ppt'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Documents", "AS", "T1", "JOIN", "Templates", "AS", "T2", "ON", "T1.Template_ID", "=", "T2.Template_ID", "WHERE", "T2.Template_Type_Code", "=", "'PPT", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "documents", "as", "t1", "join", "templates", "as", "t2", "on", "t1", ".", "template_id", "=", "t2", ".", "template_id", "where", "t2", ".", "template_type_code", "=", "value"], "question": "Count the number of documents that use the PPT template type.", "question_toks": ["Count", "the", "number", "of", "documents", "that", "use", "the", "PPT", "template", "type", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"PPT\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "WHERE_MONO", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0311", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the id and type code for the template used by the most documents?", "question_toks": ["What", "is", "the", "id", "and", "type", "code", "for", "the", "template", "used", "by", "the", "most", "documents", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0312", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the id and type code of the template that is used for the greatest number of documents.", "question_toks": ["Return", "the", "id", "and", "type", "code", "of", "the", "template", "that", "is", "used", "for", "the", "greatest", "number", "of", "documents", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]], [0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0359", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'summer show'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_ID", "=", "T2.document_ID", "WHERE", "T2.document_name", "=", "'Summer", "Show", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value"], "question": "How many paragraphs for the document with name 'Summer Show'?", "question_toks": ["How", "many", "paragraphs", "for", "the", "document", "with", "name", "'Summer", "Show", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"Summer Show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "WHERE_MONO", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0360", "db_id": "cre_Doc_Template_Mgt", "query": "select count(*) from paragraphs as t1 join documents as t2 on t1.document_id = t2.document_id where t2.document_name = 'summer show'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Paragraphs", "AS", "T1", "JOIN", "Documents", "AS", "T2", "ON", "T1.document_ID", "=", "T2.document_ID", "WHERE", "T2.document_name", "=", "'Summer", "Show", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "paragraphs", "as", "t1", "join", "documents", "as", "t2", "on", "t1", ".", "document_id", "=", "t2", ".", "document_id", "where", "t2", ".", "document_name", "=", "value"], "question": "Count the number of paragraphs in the document named 'Summer Show'.", "question_toks": ["Count", "the", "number", "of", "paragraphs", "in", "the", "document", "named", "'Summer", "Show", "'", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"Summer Show\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "WHERE_MONO", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0374", "db_id": "cre_Doc_Template_Mgt", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the id and name of the document with the most paragraphs.", "question_toks": ["Return", "the", "id", "and", "name", "of", "the", "document", "with", "the", "most", "paragraphs", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 15, false], null], [0, 9, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 15, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0500", "db_id": "battle_death", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the ship id and name that caused most total injuries?", "question_toks": ["What", "is", "the", "ship", "id", "and", "name", "that", "caused", "most", "total", "injuries", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0515", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which department offers the most number of degrees? List department name and id.", "question_toks": ["Which", "department", "offers", "the", "most", "number", "of", "degrees", "?", "List", "department", "name", "and", "id", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0516", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name and id of the department with the most number of degrees ?", "question_toks": ["What", "is", "the", "name", "and", "id", "of", "the", "department", "with", "the", "most", "number", "of", "degrees", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 19, false], null], [0, 14, false], null]]}, "select": [false, [[0, [0, [0, 15, false], null]], [0, [0, [0, 19, false], null]]]], "where": [], "groupBy": [[0, 19, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0521", "db_id": "student_transcripts_tracking", "query": "select count(*) from departments as t1 join degree_programs as t2 on t1.department_id = t2.department_id where t1.department_name = 'engineer'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Departments", "AS", "T1", "JOIN", "Degree_Programs", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T1.department_name", "=", "'engineer", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "departments", "as", "t1", "join", "degree_programs", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t1", ".", "department_name", "=", "value"], "question": "How many degrees does the engineering department offer?", "question_toks": ["How", "many", "degrees", "does", "the", "engineering", "department", "offer", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0522", "db_id": "student_transcripts_tracking", "query": "select count(*) from departments as t1 join degree_programs as t2 on t1.department_id = t2.department_id where t1.department_name = 'engineer'", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Departments", "AS", "T1", "JOIN", "Degree_Programs", "AS", "T2", "ON", "T1.department_id", "=", "T2.department_id", "WHERE", "T1.department_name", "=", "'engineer", "'"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "departments", "as", "t1", "join", "degree_programs", "as", "t2", "on", "t1", ".", "department_id", "=", "t2", ".", "department_id", "where", "t1", ".", "department_name", "=", "value"], "question": "How many degrees does the engineering department have?", "question_toks": ["How", "many", "degrees", "does", "the", "engineering", "department", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 14, false], null], [0, 19, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 15, false], null], "\"engineer\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0529", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the semester which most student registered in? Show both the name and the id.", "question_toks": ["What", "is", "the", "semester", "which", "most", "student", "registered", "in", "?", "Show", "both", "the", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 28, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]], [0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0530", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "For each semester, what is the name and id of the one with the most students registered?", "question_toks": ["For", "each", "semester", ",", "what", "is", "the", "name", "and", "id", "of", "the", "one", "with", "the", "most", "students", "registered", "?"], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 28, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 29, false], null]], [0, [0, [0, 28, false], null]]]], "where": [], "groupBy": [[0, 28, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0533", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", "=", "value"], "question": "Who are enrolled in 2 degree programs in one semester? List the first name, middle name and last name and the id.", "question_toks": ["Who", "are", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?", "List", "the", "first", "name", ",", "middle", "name", "and", "last", "name", "and", "the", "id", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0534", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", "=", "value"], "question": "What are the first, middle, and last names, along with the ids, of all students who enrolled in 2 degree programs in one semester?", "question_toks": ["What", "are", "the", "first", ",", "middle", ",", "and", "last", "names", ",", "along", "with", "the", "ids", ",", "of", "all", "students", "who", "enrolled", "in", "2", "degree", "programs", "in", "one", "semester", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [[false, 2, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0537", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Find the kind of program which most number of students are enrolled in?", "question_toks": ["Find", "the", "kind", "of", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0538", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the degree summary name that has the most number of students enrolled?", "question_toks": ["What", "is", "the", "degree", "summary", "name", "that", "has", "the", "most", "number", "of", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 20, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0539", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Find the program which most number of students are enrolled in. List both the id and the summary.", "question_toks": ["Find", "the", "program", "which", "most", "number", "of", "students", "are", "enrolled", "in", ".", "List", "both", "the", "id", "and", "the", "summary", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0540", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the program id and the summary of the degree that has the most students enrolled?", "question_toks": ["What", "is", "the", "program", "id", "and", "the", "summary", "of", "the", "degree", "that", "has", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 18, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 18, false], null]], [0, [0, [0, 20, false], null]]]], "where": [], "groupBy": [[0, 18, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0541", "db_id": "student_transcripts_tracking", "query": "select t1.student_id , 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", "query_toks": ["SELECT", "T1.student_id", ",", "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"], "query_toks_no_value": ["select", "t1", ".", "student_id", ",", "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", "value"], "question": "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.", "question_toks": ["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", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [3, [0, [0, 0, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0542", "db_id": "student_transcripts_tracking", "query": "select t1.student_id , 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", "query_toks": ["SELECT", "T1.student_id", ",", "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"], "query_toks_no_value": ["select", "t1", ".", "student_id", ",", "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", "value"], "question": "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?", "question_toks": ["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", "?"], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 32, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 32, false], null]], [0, [0, [0, 35, false], null]], [0, [0, [0, 36, false], null]], [0, [0, [0, 37, false], null]], [3, [0, [0, 0, false], null]], [0, [0, [0, 32, false], null]]]], "where": [], "groupBy": [[0, 32, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0547", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What's the name of the course with most number of enrollments?", "question_toks": ["What", "'s", "the", "name", "of", "the", "course", "with", "most", "number", "of", "enrollments", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 50, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0548", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the course with the most students enrolled?", "question_toks": ["What", "is", "the", "name", "of", "the", "course", "with", "the", "most", "students", "enrolled", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 8]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 50, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [], "groupBy": [[0, 11, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0551", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Show the date and id of the transcript with at least 2 course results.", "question_toks": ["Show", "the", "date", "and", "id", "of", "the", "transcript", "with", "at", "least", "2", "course", "results", "."], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 56, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 53, false], null]], [0, [0, [0, 56, false], null]]]], "where": [], "groupBy": [[0, 56, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0552", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What is the date and id of the transcript with at least 2 courses listed?", "question_toks": ["What", "is", "the", "date", "and", "id", "of", "the", "transcript", "with", "at", "least", "2", "courses", "listed", "?"], "sql": {"from": {"table_units": [["table_unit", 10], ["table_unit", 9]], "conds": [[false, 2, [0, [0, 56, false], null], [0, 52, false], null]]}, "select": [false, [[0, [0, [0, 53, false], null]], [0, [0, [0, 56, false], null]]]], "where": [], "groupBy": [[0, 56, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0561", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which address holds the most number of students currently? List the address id and all lines.", "question_toks": ["Which", "address", "holds", "the", "most", "number", "of", "students", "currently", "?", "List", "the", "address", "id", "and", "all", "lines", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0562", "db_id": "student_transcripts_tracking", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the id, line 1, and line 2 of the address with the most students?", "question_toks": ["What", "is", "the", "id", ",", "line", "1", ",", "and", "line", "2", "of", "the", "address", "with", "the", "most", "students", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 6]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 33, false], null]]}, "select": [false, [[0, [0, [0, 1, false], null]], [0, [0, [0, 2, false], null]], [0, [0, [0, 3, false], null]]]], "where": [], "groupBy": [[0, 1, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0665", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the birth date of the poker player with the lowest earnings?", "question_toks": ["What", "is", "the", "birth", "date", "of", "the", "poker", "player", "with", "the", "lowest", "earnings", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0666", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the birth date of the poker player with the lowest earnings.", "question_toks": ["Return", "the", "birth", "date", "of", "the", "poker", "player", "with", "the", "lowest", "earnings", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 10, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["asc", [[0, [0, 6, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0667", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the money rank of the tallest poker player?", "question_toks": ["What", "is", "the", "money", "rank", "of", "the", "tallest", "poker", "player", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0668", "db_id": "poker_player", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the money rank of the poker player with the greatest height.", "question_toks": ["Return", "the", "money", "rank", "of", "the", "poker", "player", "with", "the", "greatest", "height", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[0, [0, [0, 5, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 11, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0669", "db_id": "poker_player", "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", "query_toks": ["SELECT", "avg", "(", "T2.Earnings", ")", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t2", ".", "earnings", ")", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "height", ">", "value"], "question": "What is the average earnings of poker players with height higher than 200?", "question_toks": ["What", "is", "the", "average", "earnings", "of", "poker", "players", "with", "height", "higher", "than", "200", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0670", "db_id": "poker_player", "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", "query_toks": ["SELECT", "avg", "(", "T2.Earnings", ")", "FROM", "people", "AS", "T1", "JOIN", "poker_player", "AS", "T2", "ON", "T1.People_ID", "=", "T2.People_ID", "WHERE", "T1.Height", ">", "200"], "query_toks_no_value": ["select", "avg", "(", "t2", ".", "earnings", ")", "from", "people", "as", "t1", "join", "poker_player", "as", "t2", "on", "t1", ".", "people_id", "=", "t2", ".", "people_id", "where", "t1", ".", "height", ">", "value"], "question": "Give average earnings of poker players who are taller than 200.", "question_toks": ["Give", "average", "earnings", "of", "poker", "players", "who", "are", "taller", "than", "200", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 2, false], null]]}, "select": [false, [[5, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 200.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0694", "db_id": "voter_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "What are the contestant numbers and names of the contestants who had at least two votes?", "question_toks": ["What", "are", "the", "contestant", "numbers", "and", "names", "of", "the", "contestants", "who", "had", "at", "least", "two", "votes", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 2]], "conds": [[false, 2, [0, [0, 3, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 3, false], null]], [0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 3, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0886", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the high schooler who has the greatest number of friends?", "question_toks": ["What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0887", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Return the name of the high school student with the most friends.", "question_toks": ["Return", "the", "name", "of", "the", "high", "school", "student", "with", "the", "most", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0888", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of high schoolers who have at least 3 friends.", "question_toks": ["Show", "the", "names", "of", "high", "schoolers", "who", "have", "at", "least", "3", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0889", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of high schoolers who have 3 or more friends?", "question_toks": ["What", "are", "the", "names", "of", "high", "schoolers", "who", "have", "3", "or", "more", "friends", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 3.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0892", "db_id": "network_1", "query": "select count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"kyle\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "How many friends does the high school student Kyle have?", "question_toks": ["How", "many", "friends", "does", "the", "high", "school", "student", "Kyle", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0893", "db_id": "network_1", "query": "select count(*) from friend as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"kyle\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Friend", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "Count the number of friends Kyle has.", "question_toks": ["Count", "the", "number", "of", "friends", "Kyle", "has", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "WHERE_MONO", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0906", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the high schooler who has the greatest number of likes?", "question_toks": ["What", "is", "the", "name", "of", "the", "high", "schooler", "who", "has", "the", "greatest", "number", "of", "likes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0907", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Give the name of the student with the most likes.", "question_toks": ["Give", "the", "name", "of", "the", "student", "with", "the", "most", "likes", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0908", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of students who have at least 2 likes.", "question_toks": ["Show", "the", "names", "of", "students", "who", "have", "at", "least", "2", "likes", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0909", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "What are the names of students who have 2 or more likes?", "question_toks": ["What", "are", "the", "names", "of", "students", "who", "have", "2", "or", "more", "likes", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 6, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0910", "db_id": "network_1", "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", "query_toks": ["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"], "query_toks_no_value": ["select", "t2", ".", "name", "from", "friend", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "grade", ">", "value", "group", "by", "t1", ".", "student_id", "having", "count", "(", "*", ")", ">", "=", "value"], "question": "Show the names of students who have a grade higher than 5 and have at least 2 friends.", "question_toks": ["Show", "the", "names", "of", "students", "who", "have", "a", "grade", "higher", "than", "5", "and", "have", "at", "least", "2", "friends", "."], "sql": {"from": {"table_units": [["table_unit", 1], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 4, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 3, false], null], 5.0, null]], "groupBy": [[0, 4, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0912", "db_id": "network_1", "query": "select count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"kyle\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "How many likes does Kyle have?", "question_toks": ["How", "many", "likes", "does", "Kyle", "have", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0913", "db_id": "network_1", "query": "select count(*) from likes as t1 join highschooler as t2 on t1.student_id = t2.id where t2.name = \"kyle\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Likes", "AS", "T1", "JOIN", "Highschooler", "AS", "T2", "ON", "T1.student_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "likes", "as", "t1", "join", "highschooler", "as", "t2", "on", "t1", ".", "student_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "Return the number of likes that the high schooler named Kyle has.", "question_toks": ["Return", "the", "number", "of", "likes", "that", "the", "high", "schooler", "named", "Kyle", "has", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 6, false], null], [0, 1, false], null]]}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0932", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Which professionals have done at least two treatments? List the professional's id, role, and first name.", "question_toks": ["Which", "professionals", "have", "done", "at", "least", "two", "treatments", "?", "List", "the", "professional", "'s", "id", ",", "role", ",", "and", "first", "name", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 34, false], null]], [0, [0, [0, 35, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0934", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the name of the breed with the most dogs?", "question_toks": ["What", "is", "the", "name", "of", "the", "breed", "with", "the", "most", "dogs", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0935", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Which breed do the most dogs have? Give me the breed name.", "question_toks": ["Which", "breed", "do", "the", "most", "dogs", "have", "?", "Give", "me", "the", "breed", "name", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 23, false], null]]}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [], "groupBy": [[0, 2, false]], "having": [], "orderBy": ["desc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0938", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "What is the description of the treatment type that costs the least money in total?", "question_toks": ["What", "is", "the", "description", "of", "the", "treatment", "type", "that", "costs", "the", "least", "money", "in", "total", "?"], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["asc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0939", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "value"], "question": "Give me the description of the treatment type whose total cost is the lowest.", "question_toks": ["Give", "me", "the", "description", "of", "the", "treatment", "type", "whose", "total", "cost", "is", "the", "lowest", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 8, false], null], [0, 47, false], null]]}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [], "orderBy": ["asc", [[0, [4, 49, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0942", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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", "(", "*", ")", ">", "=", "value"], "question": "Which professionals have done at least two types of treatments? List the professional id and cell phone.", "question_toks": ["Which", "professionals", "have", "done", "at", "least", "two", "types", "of", "treatments", "?", "List", "the", "professional", "id", "and", "cell", "phone", "."], "sql": {"from": {"table_units": [["table_unit", 6], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 33, false], null], [0, 46, false], null]]}, "select": [false, [[0, [0, [0, 33, false], null]], [0, [0, [0, 43, false], null]]]], "where": [], "groupBy": [[0, 33, false]], "having": [[false, 5, [0, [3, 0, false], null], 2.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0948", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "List the cost of each treatment and the corresponding treatment type description.", "question_toks": ["List", "the", "cost", "of", "each", "treatment", "and", "the", "corresponding", "treatment", "type", "description", "."], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 47, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0949", "db_id": "dog_kennels", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "What are the cost and treatment type description of each treatment?", "question_toks": ["What", "are", "the", "cost", "and", "treatment", "type", "description", "of", "each", "treatment", "?"], "sql": {"from": {"table_units": [["table_unit", 7], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 47, false], null], [0, 8, false], null]]}, "select": [false, [[0, [0, [0, 49, false], null]], [0, [0, [0, 9, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1032", "db_id": "real_estate_properties", "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", "query_toks": ["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"], "query_toks_no_value": ["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"], "question": "Show the property type descriptions of properties belonging to that code.", "question_toks": ["Show", "the", "property", "type", "descriptions", "of", "properties", "belonging", "to", "that", "code", "."], "sql": {"from": {"table_units": [["table_unit", 3], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 3, false], null]]}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [], "groupBy": [[0, 10, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["DEJOIN_TOTAL", "_JOIN_1"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0142", "db_id": "bike_1", "query": "select id from station where city = \"san francisco\" intersect select station_id from status group by station_id having avg(bikes_available) > 10", "query_toks": ["SELECT", "id", "FROM", "station", "WHERE", "city", "=", "``", "San", "Francisco", "''", "INTERSECT", "SELECT", "station_id", "FROM", "status", "GROUP", "BY", "station_id", "HAVING", "avg", "(", "bikes_available", ")", ">", "10"], "query_toks_no_value": ["select", "id", "from", "station", "where", "city", "=", "value", "intersect", "select", "station_id", "from", "status", "group", "by", "station_id", "having", "avg", "(", "bikes_available", ")", ">", "value"], "question": "What are the ids of the stations in San Francisco that normally have more than 10 bikes available?", "question_toks": ["What", "are", "the", "ids", "of", "the", "stations", "in", "San", "Francisco", "that", "normally", "have", "more", "than", "10", "bikes", "available", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"San Francisco\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [[0, 8, false]], "having": [[false, 3, [0, [5, 9, false], null], 10.0, null]], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "union": null, "except": null}, "tags": ["HIDDEN_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_3977", "db_id": "hospital_1", "query": "select avg(t3.cost) from physician as t1 join trained_in as t2 on t1.employeeid = t2.physician join procedures as t3 on t3.code = t2.treatment where t1.name = \"john wen\"", "query_toks": ["SELECT", "avg", "(", "T3.cost", ")", "FROM", "physician", "AS", "T1", "JOIN", "trained_in", "AS", "T2", "ON", "T1.employeeid", "=", "T2.physician", "JOIN", "procedures", "AS", "T3", "ON", "T3.code", "=", "T2.treatment", "WHERE", "T1.name", "=", "``", "John", "Wen", "''"], "query_toks_no_value": ["select", "avg", "(", "t3", ".", "cost", ")", "from", "physician", "as", "t1", "join", "trained_in", "as", "t2", "on", "t1", ".", "employeeid", "=", "t2", ".", "physician", "join", "procedures", "as", "t3", "on", "t3", ".", "code", "=", "t2", ".", "treatment", "where", "t1", ".", "name", "=", "value"], "question": "Compute the mean price of procedures physician John Wen was trained in.", "question_toks": ["Compute", "the", "mean", "price", "of", "procedures", "physician", "John", "Wen", "was", "trained", "in", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 4], ["table_unit", 3]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 14, false], null], "and", [false, 2, [0, [0, 11, false], null], [0, 15, false], null]]}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"John Wen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "added_for_hidden_avg_0007", "db_id": "flight_company", "query": "select avg(velocity) from flight where pilot = \"thompson\"", "query_toks": ["select", "avg", "(", "velocity", ")", "from", "flight", "where", "pilot", "=", "``", "thompson", "''"], "query_toks_no_value": ["select", "avg", "(", "velocity", ")", "from", "flight", "where", "pilot", "=", "value"], "question": "What is the mean velocity of the pilot named 'Thompson'?", "question_toks": ["What", "is", "the", "mean", "velocity", "of", "the", "pilot", "named", "'", "Thompson", "'?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[5, [0, [0, 17, false], null]]]], "where": [[false, 2, [0, [0, 16, false], null], "\"thompson\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["HIDDEN_AVG"], "source": "ADDED", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0008", "db_id": "concert_singer", "query": "select distinct country from singer where age > 20", "query_toks": ["SELECT", "DISTINCT", "country", "FROM", "singer", "WHERE", "age", ">", "20"], "query_toks_no_value": ["select", "distinct", "country", "from", "singer", "where", "age", ">", "value"], "question": "What are all distinct countries where singers above age 20 are from?", "question_toks": ["What", "are", "all", "distinct", "countries", "where", "singers", "above", "age", "20", "are", "from", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0009", "db_id": "concert_singer", "query": "select distinct country from singer where age > 20", "query_toks": ["SELECT", "DISTINCT", "country", "FROM", "singer", "WHERE", "age", ">", "20"], "query_toks_no_value": ["select", "distinct", "country", "from", "singer", "where", "age", ">", "value"], "question": "What are the different countries with singers above age 20?", "question_toks": ["What", "are", "the", "different", "countries", "with", "singers", "above", "age", "20", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [true, [[0, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 20.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0012", "db_id": "concert_singer", "query": "select song_name from singer where age > (select avg(age) from singer)", "query_toks": ["SELECT", "song_name", "FROM", "singer", "WHERE", "age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "singer", ")"], "query_toks_no_value": ["select", "song_name", "from", "singer", "where", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "singer", ")"], "question": "List all song names by singers above the average age.", "question_toks": ["List", "all", "song", "names", "by", "singers", "above", "the", "average", "age", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0013", "db_id": "concert_singer", "query": "select song_name from singer where age > (select avg(age) from singer)", "query_toks": ["SELECT", "song_name", "FROM", "singer", "WHERE", "age", ">", "(", "SELECT", "avg", "(", "age", ")", "FROM", "singer", ")"], "query_toks_no_value": ["select", "song_name", "from", "singer", "where", "age", ">", "(", "select", "avg", "(", "age", ")", "from", "singer", ")"], "question": "What are all the song names by singers who are older than average?", "question_toks": ["What", "are", "all", "the", "song", "names", "by", "singers", "who", "are", "older", "than", "average", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 13, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0045", "db_id": "pets_1", "query": "select count(*) from pets where weight > 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "pets", "WHERE", "weight", ">", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "pets", "where", "weight", ">", "value"], "question": "Find the number of pets whose weight is heavier than 10.", "question_toks": ["Find", "the", "number", "of", "pets", "whose", "weight", "is", "heavier", "than", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0046", "db_id": "pets_1", "query": "select count(*) from pets where weight > 10", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "pets", "WHERE", "weight", ">", "10"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "pets", "where", "weight", ">", "value"], "question": "How many pets have a greater weight than 10?", "question_toks": ["How", "many", "pets", "have", "a", "greater", "weight", "than", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 3, [0, [0, 14, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0069", "db_id": "pets_1", "query": "select petid , weight from pets where pet_age > 1", "query_toks": ["SELECT", "petid", ",", "weight", "FROM", "pets", "WHERE", "pet_age", ">", "1"], "query_toks_no_value": ["select", "petid", ",", "weight", "from", "pets", "where", "pet_age", ">", "value"], "question": "Find the id and weight of all pets whose age is older than 1.", "question_toks": ["Find", "the", "id", "and", "weight", "of", "all", "pets", "whose", "age", "is", "older", "than", "1", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 3, [0, [0, 13, false], null], 1.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0145", "db_id": "car_1", "query": "select count(*) from cars_data where year = 1980;", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "CARS_DATA", "WHERE", "YEAR", "=", "1980", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "cars_data", "where", "year", "=", "value"], "question": "how many cars were produced in 1980?", "question_toks": ["how", "many", "cars", "were", "produced", "in", "1980", "?"], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], 1980.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0196", "db_id": "flight_2", "query": "select count(*) from airlines where country = \"usa\"", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "AIRLINES", "WHERE", "Country", "=", "``", "USA", "''"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "airlines", "where", "country", "=", "value"], "question": "Return the number of airlines in the USA.", "question_toks": ["Return", "the", "number", "of", "airlines", "in", "the", "USA", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 4, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0253", "db_id": "flight_2", "query": "select t1.flightno from flights as t1 join airports as t2 on t1.destairport = t2.airportcode where t2.city = \"aberdeen\"", "query_toks": ["SELECT", "T1.FlightNo", "FROM", "FLIGHTS", "AS", "T1", "JOIN", "AIRPORTS", "AS", "T2", "ON", "T1.DestAirport", "=", "T2.AirportCode", "WHERE", "T2.City", "=", "``", "Aberdeen", "''"], "query_toks_no_value": ["select", "t1", ".", "flightno", "from", "flights", "as", "t1", "join", "airports", "as", "t2", "on", "t1", ".", "destairport", "=", "t2", ".", "airportcode", "where", "t2", ".", "city", "=", "value"], "question": "What are flight numbers of flights arriving at City \"Aberdeen\"?", "question_toks": ["What", "are", "flight", "numbers", "of", "flights", "arriving", "at", "City", "``", "Aberdeen", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 13, false], null], [0, 6, false], null]]}, "select": [false, [[0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 5, false], null], "\"Aberdeen\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0327", "db_id": "cre_Doc_Template_Mgt", "query": "select version_number , template_type_code from templates where version_number > 5", "query_toks": ["SELECT", "version_number", ",", "template_type_code", "FROM", "Templates", "WHERE", "version_number", ">", "5"], "query_toks_no_value": ["select", "version_number", ",", "template_type_code", "from", "templates", "where", "version_number", ">", "value"], "question": "What is the version number and template type code for the template with version number later than 5?", "question_toks": ["What", "is", "the", "version", "number", "and", "template", "type", "code", "for", "the", "template", "with", "version", "number", "later", "than", "5", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 5.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0328", "db_id": "cre_Doc_Template_Mgt", "query": "select version_number , template_type_code from templates where version_number > 5", "query_toks": ["SELECT", "version_number", ",", "template_type_code", "FROM", "Templates", "WHERE", "version_number", ">", "5"], "query_toks_no_value": ["select", "version_number", ",", "template_type_code", "from", "templates", "where", "version_number", ">", "value"], "question": "Return the version numbers and template type codes of templates with a version number greater than 5.", "question_toks": ["Return", "the", "version", "numbers", "and", "template", "type", "codes", "of", "templates", "with", "a", "version", "number", "greater", "than", "5", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 3, [0, [0, 4, false], null], 5.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0416", "db_id": "museum_visit", "query": "select avg(num_of_staff) from museum where open_year < 2009", "query_toks": ["SELECT", "avg", "(", "num_of_staff", ")", "FROM", "museum", "WHERE", "open_year", "<", "2009"], "query_toks_no_value": ["select", "avg", "(", "num_of_staff", ")", "from", "museum", "where", "open_year", "<", "value"], "question": "Find the average number of staff working for the museums that were open before 2009.", "question_toks": ["Find", "the", "average", "number", "of", "staff", "working", "for", "the", "museums", "that", "were", "open", "before", "2009", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[5, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 4, false], null], 2009.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0433", "db_id": "wta_1", "query": "select first_name , birth_date from players where country_code = 'usa'", "query_toks": ["SELECT", "first_name", ",", "birth_date", "FROM", "players", "WHERE", "country_code", "=", "'USA", "'"], "query_toks_no_value": ["select", "first_name", ",", "birth_date", "from", "players", "where", "country_code", "=", "value"], "question": "List the first name and birth date of all players from the country with code USA.", "question_toks": ["List", "the", "first", "name", "and", "birth", "date", "of", "all", "players", "from", "the", "country", "with", "code", "USA", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]], [0, [0, [0, 5, false], null]]]], "where": [[false, 2, [0, [0, 6, false], null], "\"USA\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0465", "db_id": "wta_1", "query": "select winner_name from matches where tourney_name = 'australian open' order by winner_rank_points desc limit 1", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "tourney_name", "=", "'Australian", "Open", "'", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "tourney_name", "=", "value", "order", "by", "winner_rank_points", "desc", "limit", "value"], "question": "Find the name of the winner who has the highest rank points and participated in the Australian Open tourney.", "question_toks": ["Find", "the", "name", "of", "the", "winner", "who", "has", "the", "highest", "rank", "points", "and", "participated", "in", "the", "Australian", "Open", "tourney", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Australian Open\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 36, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0466", "db_id": "wta_1", "query": "select winner_name from matches where tourney_name = 'australian open' order by winner_rank_points desc limit 1", "query_toks": ["SELECT", "winner_name", "FROM", "matches", "WHERE", "tourney_name", "=", "'Australian", "Open", "'", "ORDER", "BY", "winner_rank_points", "DESC", "LIMIT", "1"], "query_toks_no_value": ["select", "winner_name", "from", "matches", "where", "tourney_name", "=", "value", "order", "by", "winner_rank_points", "desc", "limit", "value"], "question": "What is the name of the winner with the most rank points who participated in the Australian Open tournament?", "question_toks": ["What", "is", "the", "name", "of", "the", "winner", "with", "the", "most", "rank", "points", "who", "participated", "in", "the", "Australian", "Open", "tournament", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 34, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Australian Open\"", null]], "groupBy": [], "having": [], "orderBy": ["desc", [[0, [0, 36, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0511", "db_id": "student_transcripts_tracking", "query": "select course_description from courses where course_name = 'math'", "query_toks": ["SELECT", "course_description", "FROM", "Courses", "WHERE", "course_name", "=", "'math", "'"], "query_toks_no_value": ["select", "course_description", "from", "courses", "where", "course_name", "=", "value"], "question": "How is the math course described?", "question_toks": ["How", "is", "the", "math", "course", "described", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"math\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0512", "db_id": "student_transcripts_tracking", "query": "select course_description from courses where course_name = 'math'", "query_toks": ["SELECT", "course_description", "FROM", "Courses", "WHERE", "course_name", "=", "'math", "'"], "query_toks_no_value": ["select", "course_description", "from", "courses", "where", "course_name", "=", "value"], "question": "What are the descriptions for all the math courses?", "question_toks": ["What", "are", "the", "descriptions", "for", "all", "the", "math", "courses", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 11, false], null], "\"math\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0587", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\";", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", ";"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value"], "question": "List all cartoon directed by \"Ben Jones\".", "question_toks": ["List", "all", "cartoon", "directed", "by", "``", "Ben", "Jones", "''", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0588", "db_id": "tvshow", "query": "select title from cartoon where directed_by = \"ben jones\";", "query_toks": ["SELECT", "Title", "FROM", "Cartoon", "WHERE", "Directed_by", "=", "``", "Ben", "Jones", "''", ";"], "query_toks_no_value": ["select", "title", "from", "cartoon", "where", "directed_by", "=", "value"], "question": "What are the names of all cartoons directed by Ben Jones?", "question_toks": ["What", "are", "the", "names", "of", "all", "cartoons", "directed", "by", "Ben", "Jones", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 20, false], null]]]], "where": [[false, 2, [0, [0, 21, false], null], "\"Ben Jones\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0589", "db_id": "tvshow", "query": "select count(*) from cartoon where written_by = \"joseph kuhr\";", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Cartoon", "WHERE", "Written_by", "=", "``", "Joseph", "Kuhr", "''", ";"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "cartoon", "where", "written_by", "=", "value"], "question": "How many cartoons were written by \"Joseph Kuhr\"?", "question_toks": ["How", "many", "cartoons", "were", "written", "by", "``", "Joseph", "Kuhr", "''", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 22, false], null], "\"Joseph Kuhr\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0657", "db_id": "poker_player", "query": "select max(final_table_made) from poker_player where earnings < 200000", "query_toks": ["SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player", "WHERE", "Earnings", "<", "200000"], "query_toks_no_value": ["select", "max", "(", "final_table_made", ")", "from", "poker_player", "where", "earnings", "<", "value"], "question": "What is the maximum number of final tables made among poker players with earnings less than 200000?", "question_toks": ["What", "is", "the", "maximum", "number", "of", "final", "tables", "made", "among", "poker", "players", "with", "earnings", "less", "than", "200000", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], 200000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0658", "db_id": "poker_player", "query": "select max(final_table_made) from poker_player where earnings < 200000", "query_toks": ["SELECT", "max", "(", "Final_Table_Made", ")", "FROM", "poker_player", "WHERE", "Earnings", "<", "200000"], "query_toks_no_value": ["select", "max", "(", "final_table_made", ")", "from", "poker_player", "where", "earnings", "<", "value"], "question": "Return the maximum final tables made across all poker players who have earnings below 200000.", "question_toks": ["Return", "the", "maximum", "final", "tables", "made", "across", "all", "poker", "players", "who", "have", "earnings", "below", "200000", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[1, [0, [0, 3, false], null]]]], "where": [[false, 4, [0, [0, 6, false], null], 200000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0692", "db_id": "voter_1", "query": "select contestant_name from contestants where contestant_name != 'jessie alloway'", "query_toks": ["SELECT", "contestant_name", "FROM", "contestants", "WHERE", "contestant_name", "!", "=", "'Jessie", "Alloway", "'"], "query_toks_no_value": ["select", "contestant_name", "from", "contestants", "where", "contestant_name", "!", "=", "value"], "question": "What are the names of the contestants whose names are not 'Jessie Alloway'", "question_toks": ["What", "are", "the", "names", "of", "the", "contestants", "whose", "names", "are", "not", "'Jessie", "Alloway", "'"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 4, false], null]]]], "where": [[false, 7, [0, [0, 4, false], null], "\"Jessie Alloway\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0697", "db_id": "voter_1", "query": "select count(*) from contestants where contestant_number not in ( select contestant_number from votes )", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "contestants", "WHERE", "contestant_number", "NOT", "IN", "(", "SELECT", "contestant_number", "FROM", "votes", ")"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "contestants", "where", "contestant_number", "not", "in", "(", "select", "contestant_number", "from", "votes", ")"], "question": "How many contestants did not get voted?", "question_toks": ["How", "many", "contestants", "did", "not", "get", "voted", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[true, 8, [0, [0, 3, false], null], {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0715", "db_id": "world_1", "query": "select population , lifeexpectancy from country where name = \"brazil\"", "query_toks": ["SELECT", "Population", ",", "LifeExpectancy", "FROM", "country", "WHERE", "Name", "=", "``", "Brazil", "''"], "query_toks_no_value": ["select", "population", ",", "lifeexpectancy", "from", "country", "where", "name", "=", "value"], "question": "Give me Brazil\u2019s population and life expectancies.", "question_toks": ["Give", "me", "Brazil\u2019s", "population", "and", "life", "expectancies", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 14, false], null]], [0, [0, [0, 15, false], null]]]], "where": [[false, 2, [0, [0, 9, false], null], "\"Brazil\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0869", "db_id": "network_1", "query": "select grade from highschooler where name = \"kyle\"", "query_toks": ["SELECT", "grade", "FROM", "Highschooler", "WHERE", "name", "=", "``", "Kyle", "''"], "query_toks_no_value": ["select", "grade", "from", "highschooler", "where", "name", "=", "value"], "question": "Return the grade for the high schooler named Kyle.", "question_toks": ["Return", "the", "grade", "for", "the", "high", "schooler", "named", "Kyle", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 3, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Kyle\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0870", "db_id": "network_1", "query": "select name from highschooler where grade = 10", "query_toks": ["SELECT", "name", "FROM", "Highschooler", "WHERE", "grade", "=", "10"], "query_toks_no_value": ["select", "name", "from", "highschooler", "where", "grade", "=", "value"], "question": "Show the names of all high schoolers in grade 10.", "question_toks": ["Show", "the", "names", "of", "all", "high", "schoolers", "in", "grade", "10", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0871", "db_id": "network_1", "query": "select name from highschooler where grade = 10", "query_toks": ["SELECT", "name", "FROM", "Highschooler", "WHERE", "grade", "=", "10"], "query_toks_no_value": ["select", "name", "from", "highschooler", "where", "grade", "=", "value"], "question": "What are the names of all high schoolers in grade 10?", "question_toks": ["What", "are", "the", "names", "of", "all", "high", "schoolers", "in", "grade", "10", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 2, false], null]]]], "where": [[false, 2, [0, [0, 3, false], null], 10.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0921", "db_id": "dog_kennels", "query": "select avg(age) from dogs where dog_id in ( select dog_id from treatments )", "query_toks": ["SELECT", "avg", "(", "age", ")", "FROM", "Dogs", "WHERE", "dog_id", "IN", "(", "SELECT", "dog_id", "FROM", "Treatments", ")"], "query_toks_no_value": ["select", "avg", "(", "age", ")", "from", "dogs", "where", "dog_id", "in", "(", "select", "dog_id", "from", "treatments", ")"], "question": "Find the average age of the dogs who went through treatments.", "question_toks": ["Find", "the", "average", "age", "of", "the", "dogs", "who", "went", "through", "treatments", "."], "sql": {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[5, [0, [0, 26, false], null]]]], "where": [[false, 8, [0, [0, 20, false], null], {"from": {"table_units": [["table_unit", 7]], "conds": []}, "select": [false, [[0, [0, [0, 45, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0954", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["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", "value", ")"], "question": "List the names of the dogs of the rarest breed and the treatment dates of them.", "question_toks": ["List", "the", "names", "of", "the", "dogs", "of", "the", "rarest", "breed", "and", "the", "treatment", "dates", "of", "them", "."], "sql": {"from": {"table_units": [["table_unit", 5], ["table_unit", 7]], "conds": [[false, 2, [0, [0, 20, false], null], [0, 45, false], null]]}, "select": [false, [[0, [0, [0, 25, false], null]], [0, [0, [0, 48, false], null]]]], "where": [[false, 2, [0, [0, 23, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[0, [0, [0, 23, false], null]]]], "where": [], "groupBy": [[0, 23, false]], "having": [], "orderBy": ["asc", [[0, [3, 0, false], null]]], "limit": 1, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_0960", "db_id": "dog_kennels", "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 )", "query_toks": ["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", ")"], "query_toks_no_value": ["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", ")"], "question": "List the last name of the owner owning the youngest dog.", "question_toks": ["List", "the", "last", "name", "of", "the", "owner", "owning", "the", "youngest", "dog", "."], "sql": {"from": {"table_units": [["table_unit", 4], ["table_unit", 5]], "conds": [[false, 2, [0, [0, 10, false], null], [0, 21, false], null]]}, "select": [false, [[0, [0, [0, 12, false], null]]]], "where": [[false, 2, [0, [0, 26, false], null], {"from": {"table_units": [["table_unit", 5]], "conds": []}, "select": [false, [[1, [0, [0, 26, false], null]]]], "where": [], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1020", "db_id": "singer", "query": "select distinct t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id where t2.sales > 300000", "query_toks": ["SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value"], "question": "Show distinct names of singers that have songs with sales more than 300000.", "question_toks": ["Show", "distinct", "names", "of", "singers", "that", "have", "songs", "with", "sales", "more", "than", "300000", "."], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 300000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "dev_1021", "db_id": "singer", "query": "select distinct t1.name from singer as t1 join song as t2 on t1.singer_id = t2.singer_id where t2.sales > 300000", "query_toks": ["SELECT", "DISTINCT", "T1.Name", "FROM", "singer", "AS", "T1", "JOIN", "song", "AS", "T2", "ON", "T1.Singer_ID", "=", "T2.Singer_ID", "WHERE", "T2.Sales", ">", "300000"], "query_toks_no_value": ["select", "distinct", "t1", ".", "name", "from", "singer", "as", "t1", "join", "song", "as", "t2", "on", "t1", ".", "singer_id", "=", "t2", ".", "singer_id", "where", "t2", ".", "sales", ">", "value"], "question": "what are the different names of the singers that have sales more than 300000?", "question_toks": ["what", "are", "the", "different", "names", "of", "the", "singers", "that", "have", "sales", "more", "than", "300000", "?"], "sql": {"from": {"table_units": [["table_unit", 0], ["table_unit", 1]], "conds": [[false, 2, [0, [0, 1, false], null], [0, 8, false], null]]}, "select": [true, [[0, [0, [0, 2, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 300000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_DEV", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0024", "db_id": "farm", "query": "select avg(working_horses) from farm where total_horses > 5000", "query_toks": ["SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm", "WHERE", "Total_Horses", ">", "5000"], "query_toks_no_value": ["select", "avg", "(", "working_horses", ")", "from", "farm", "where", "total_horses", ">", "value"], "question": "What is the average number of working horses of farms with more than 5000 total number of horses?", "question_toks": ["What", "is", "the", "average", "number", "of", "working", "horses", "of", "farms", "with", "more", "than", "5000", "total", "number", "of", "horses", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 5000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0025", "db_id": "farm", "query": "select avg(working_horses) from farm where total_horses > 5000", "query_toks": ["SELECT", "avg", "(", "Working_Horses", ")", "FROM", "farm", "WHERE", "Total_Horses", ">", "5000"], "query_toks_no_value": ["select", "avg", "(", "working_horses", ")", "from", "farm", "where", "total_horses", ">", "value"], "question": "Give the average number of working horses on farms with more than 5000 total horses.", "question_toks": ["Give", "the", "average", "number", "of", "working", "horses", "on", "farms", "with", "more", "than", "5000", "total", "horses", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[5, [0, [0, 10, false], null]]]], "where": [[false, 3, [0, [0, 9, false], null], 5000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0284", "db_id": "twitter_1", "query": "select name , email from user_profiles where followers > 1000", "query_toks": ["SELECT", "name", ",", "email", "FROM", "user_profiles", "WHERE", "followers", ">", "1000"], "query_toks_no_value": ["select", "name", ",", "email", "from", "user_profiles", "where", "followers", ">", "value"], "question": "Find the name and email of the users who have more than 1000 followers.", "question_toks": ["Find", "the", "name", "and", "email", "of", "the", "users", "who", "have", "more", "than", "1000", "followers", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0307", "db_id": "product_catalog", "query": "select catalog_level_name , catalog_level_number from catalog_structure where catalog_level_number between 5 and 10", "query_toks": ["SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure", "WHERE", "catalog_level_number", "BETWEEN", "5", "AND", "10"], "query_toks_no_value": ["select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure", "where", "catalog_level_number", "between", "value", "and", "value"], "question": "Find the name and level of catalog structure with level between 5 and 10.", "question_toks": ["Find", "the", "name", "and", "level", "of", "catalog", "structure", "with", "level", "between", "5", "and", "10", "."], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 1, [0, [0, 9, false], null], 5.0, 10.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0308", "db_id": "product_catalog", "query": "select catalog_level_name , catalog_level_number from catalog_structure where catalog_level_number between 5 and 10", "query_toks": ["SELECT", "catalog_level_name", ",", "catalog_level_number", "FROM", "Catalog_Structure", "WHERE", "catalog_level_number", "BETWEEN", "5", "AND", "10"], "query_toks_no_value": ["select", "catalog_level_name", ",", "catalog_level_number", "from", "catalog_structure", "where", "catalog_level_number", "between", "value", "and", "value"], "question": "What are the name and level of catalog structure with level number between 5 and 10", "question_toks": ["What", "are", "the", "name", "and", "level", "of", "catalog", "structure", "with", "level", "number", "between", "5", "and", "10"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 11, false], null]], [0, [0, [0, 9, false], null]]]], "where": [[false, 1, [0, [0, 9, false], null], 5.0, 10.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0347", "db_id": "flight_1", "query": "select aid from aircraft where distance > 1000", "query_toks": ["SELECT", "aid", "FROM", "Aircraft", "WHERE", "distance", ">", "1000"], "query_toks_no_value": ["select", "aid", "from", "aircraft", "where", "distance", ">", "value"], "question": "Show ids for all aircrafts with more than 1000 distance.", "question_toks": ["Show", "ids", "for", "all", "aircrafts", "with", "more", "than", "1000", "distance", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0348", "db_id": "flight_1", "query": "select aid from aircraft where distance > 1000", "query_toks": ["SELECT", "aid", "FROM", "Aircraft", "WHERE", "distance", ">", "1000"], "query_toks_no_value": ["select", "aid", "from", "aircraft", "where", "distance", ">", "value"], "question": "What are the ids of all aircrafts that can cover a distance of more than 1000?", "question_toks": ["What", "are", "the", "ids", "of", "all", "aircrafts", "that", "can", "cover", "a", "distance", "of", "more", "than", "1000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 9, false], null]]]], "where": [[false, 3, [0, [0, 11, false], null], 1000.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0350", "db_id": "flight_1", "query": "select count(*) from aircraft where distance between 1000 and 5000", "query_toks": ["SELECT", "count", "(", "*", ")", "FROM", "Aircraft", "WHERE", "distance", "BETWEEN", "1000", "AND", "5000"], "query_toks_no_value": ["select", "count", "(", "*", ")", "from", "aircraft", "where", "distance", "between", "value", "and", "value"], "question": "What is the count of aircrafts that have a distance between 1000 and 5000?", "question_toks": ["What", "is", "the", "count", "of", "aircrafts", "that", "have", "a", "distance", "between", "1000", "and", "5000", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[3, [0, [0, 0, false], null]]]], "where": [[false, 1, [0, [0, 11, false], null], 1000.0, 5000.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0380", "db_id": "flight_1", "query": "select eid , salary from employee where name = 'mark young'", "query_toks": ["SELECT", "eid", ",", "salary", "FROM", "Employee", "WHERE", "name", "=", "'Mark", "Young", "'"], "query_toks_no_value": ["select", "eid", ",", "salary", "from", "employee", "where", "name", "=", "value"], "question": "What is the id and salary of the employee named Mark Young?", "question_toks": ["What", "is", "the", "id", "and", "salary", "of", "the", "employee", "named", "Mark", "Young", "?"], "sql": {"from": {"table_units": [["table_unit", 2]], "conds": []}, "select": [false, [[0, [0, [0, 12, false], null]], [0, [0, [0, 14, false], null]]]], "where": [[false, 2, [0, [0, 13, false], null], "\"Mark Young\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0447", "db_id": "allergy_1", "query": "select distinct allergy from allergy_type where allergytype = \"food\"", "query_toks": ["SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "food", "''"], "query_toks_no_value": ["select", "distinct", "allergy", "from", "allergy_type", "where", "allergytype", "=", "value"], "question": "Show all allergies with type food.", "question_toks": ["Show", "all", "allergies", "with", "type", "food", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0448", "db_id": "allergy_1", "query": "select distinct allergy from allergy_type where allergytype = \"food\"", "query_toks": ["SELECT", "DISTINCT", "allergy", "FROM", "Allergy_type", "WHERE", "allergytype", "=", "``", "food", "''"], "query_toks_no_value": ["select", "distinct", "allergy", "from", "allergy_type", "where", "allergytype", "=", "value"], "question": "What are all the different food allergies?", "question_toks": ["What", "are", "all", "the", "different", "food", "allergies", "?"], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [true, [[0, [0, [0, 1, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"food\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0563", "db_id": "store_1", "query": "select billing_state , count(*) from invoices where billing_country = \"usa\" group by billing_state;", "query_toks": ["SELECT", "billing_state", ",", "COUNT", "(", "*", ")", "FROM", "invoices", "WHERE", "billing_country", "=", "``", "USA", "''", "GROUP", "BY", "billing_state", ";"], "query_toks_no_value": ["select", "billing_state", ",", "count", "(", "*", ")", "from", "invoices", "where", "billing_country", "=", "value", "group", "by", "billing_state"], "question": "List the number of invoices from the US, grouped by state.", "question_toks": ["List", "the", "number", "of", "invoices", "from", "the", "US", ",", "grouped", "by", "state", "."], "sql": {"from": {"table_units": [["table_unit", 6]], "conds": []}, "select": [false, [[0, [0, [0, 43, false], null]], [3, [0, [0, 0, false], null]]]], "where": [[false, 2, [0, [0, 44, false], null], "\"USA\"", null]], "groupBy": [[0, 43, false]], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0569", "db_id": "store_1", "query": "select t1.title from albums as t1 join artists as t2 on t1.artist_id = t2.id where t2.name = \"aerosmith\";", "query_toks": ["SELECT", "T1.title", "FROM", "albums", "AS", "T1", "JOIN", "artists", "AS", "T2", "ON", "T1.artist_id", "=", "T2.id", "WHERE", "T2.name", "=", "``", "Aerosmith", "''", ";"], "query_toks_no_value": ["select", "t1", ".", "title", "from", "albums", "as", "t1", "join", "artists", "as", "t2", "on", "t1", ".", "artist_id", "=", "t2", ".", "id", "where", "t2", ".", "name", "=", "value"], "question": "List Aerosmith's albums.", "question_toks": ["List", "Aerosmith", "'s", "albums", "."], "sql": {"from": {"table_units": [["table_unit", 2], ["table_unit", 0]], "conds": [[false, 2, [0, [0, 7, false], null], [0, 1, false], null]]}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 2, [0, [0, 2, false], null], "\"Aerosmith\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0652", "db_id": "journal_committee", "query": "select name from editor where age > 25", "query_toks": ["SELECT", "Name", "FROM", "editor", "WHERE", "Age", ">", "25"], "query_toks_no_value": ["select", "name", "from", "editor", "where", "age", ">", "value"], "question": "List the names of editors who are older than 25.", "question_toks": ["List", "the", "names", "of", "editors", "who", "are", "older", "than", "25", "."], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 6, false], null]]]], "where": [[false, 3, [0, [0, 7, false], null], 25.0, null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0883", "db_id": "chinook_1", "query": "select birthdate from employee where city = \"edmonton\"", "query_toks": ["SELECT", "BirthDate", "FROM", "EMPLOYEE", "WHERE", "City", "=", "``", "Edmonton", "''"], "query_toks_no_value": ["select", "birthdate", "from", "employee", "where", "city", "=", "value"], "question": "What are the birth dates of employees living in Edmonton?", "question_toks": ["What", "are", "the", "birth", "dates", "of", "employees", "living", "in", "Edmonton", "?"], "sql": {"from": {"table_units": [["table_unit", 3]], "conds": []}, "select": [false, [[0, [0, [0, 24, false], null]]]], "where": [[false, 2, [0, [0, 27, false], null], "\"Edmonton\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_0941", "db_id": "medicine_enzyme_interaction", "query": "select product , chromosome , porphyria from enzyme where location = 'cytosol'", "query_toks": ["SELECT", "product", ",", "chromosome", ",", "porphyria", "FROM", "enzyme", "WHERE", "LOCATION", "=", "'Cytosol", "'"], "query_toks_no_value": ["select", "product", ",", "chromosome", ",", "porphyria", "from", "enzyme", "where", "location", "=", "value"], "question": "What is the product, chromosome and porphyria related to the enzymes which take effect at the location 'Cytosol'?", "question_toks": ["What", "is", "the", "product", ",", "chromosome", "and", "porphyria", "related", "to", "the", "enzymes", "which", "take", "effect", "at", "the", "location", "'Cytosol", "'", "?"], "sql": {"from": {"table_units": [["table_unit", 1]], "conds": []}, "select": [false, [[0, [0, [0, 8, false], null]], [0, [0, [0, 9, false], null]], [0, [0, [0, 11, false], null]]]], "where": [[false, 2, [0, [0, 7, false], null], "\"Cytosol\"", null]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}, {"id": "train_1023", "db_id": "phone_1", "query": "select model_name from chip_model where launch_year between 2002 and 2004;", "query_toks": ["SELECT", "Model_name", "FROM", "chip_model", "WHERE", "Launch_year", "BETWEEN", "2002", "AND", "2004", ";"], "query_toks_no_value": ["select", "model_name", "from", "chip_model", "where", "launch_year", "between", "value", "and", "value"], "question": "the names of models that launched between 2002 and 2004.", "question_toks": ["the", "names", "of", "models", "that", "launched", "between", "2002", "and", "2004", "."], "sql": {"from": {"table_units": [["table_unit", 0]], "conds": []}, "select": [false, [[0, [0, [0, 1, false], null]]]], "where": [[false, 1, [0, [0, 2, false], null], 2002.0, 2004.0]], "groupBy": [], "having": [], "orderBy": [], "limit": null, "intersect": null, "union": null, "except": null}, "tags": ["WHERE_MONO"], "source": "SPIDER_TRAIN", "parents_id": null, "is_simplification": false, "simplifications_tags": []}] \ No newline at end of file